mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-15 11:47:54 +00:00
1811 lines
5.8 MiB
1811 lines
5.8 MiB
var Qmt=Object.defineProperty;var Z_e=e=>{throw TypeError(e)};var Zmt=(e,n,r)=>n in e?Qmt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var $t=(e,n,r)=>Zmt(e,typeof n!="symbol"?n+"":n,r),bW=(e,n,r)=>n.has(e)||Z_e("Cannot "+r);var He=(e,n,r)=>(bW(e,n,"read from private field"),r?r.call(e):n.get(e)),Xn=(e,n,r)=>n.has(e)?Z_e("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,r),xn=(e,n,r,i)=>(bW(e,n,"write to private field"),i?i.call(e,r):n.set(e,r),r),ir=(e,n,r)=>(bW(e,n,"access private method"),r);var sE=(e,n,r,i)=>({set _(o){xn(e,n,o,r)},get _(){return He(e,n,i)}});function a7(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(i,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function HD(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var r=function i(){return this instanceof i?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}),r}var o4e={exports:{}},s7={},a4e={exports:{}},Hi={};/**
|
||
* @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 zD=Symbol.for("react.element"),Jmt=Symbol.for("react.portal"),evt=Symbol.for("react.fragment"),tvt=Symbol.for("react.strict_mode"),nvt=Symbol.for("react.profiler"),rvt=Symbol.for("react.provider"),ivt=Symbol.for("react.context"),ovt=Symbol.for("react.forward_ref"),avt=Symbol.for("react.suspense"),svt=Symbol.for("react.memo"),lvt=Symbol.for("react.lazy"),J_e=Symbol.iterator;function cvt(e){return e===null||typeof e!="object"?null:(e=J_e&&e[J_e]||e["@@iterator"],typeof e=="function"?e:null)}var s4e={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l4e=Object.assign,c4e={};function GR(e,n,r){this.props=e,this.context=n,this.refs=c4e,this.updater=r||s4e}GR.prototype.isReactComponent={};GR.prototype.setState=function(e,n){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,n,"setState")};GR.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function u4e(){}u4e.prototype=GR.prototype;function mle(e,n,r){this.props=e,this.context=n,this.refs=c4e,this.updater=r||s4e}var vle=mle.prototype=new u4e;vle.constructor=mle;l4e(vle,GR.prototype);vle.isPureReactComponent=!0;var ebe=Array.isArray,d4e=Object.prototype.hasOwnProperty,yle={current:null},f4e={key:!0,ref:!0,__self:!0,__source:!0};function p4e(e,n,r){var i,o={},a=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(a=""+n.key),n)d4e.call(n,i)&&!f4e.hasOwnProperty(i)&&(o[i]=n[i]);var l=arguments.length-2;if(l===1)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)o[i]===void 0&&(o[i]=l[i]);return{$$typeof:zD,type:e,key:a,ref:s,props:o,_owner:yle.current}}function uvt(e,n){return{$$typeof:zD,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function _le(e){return typeof e=="object"&&e!==null&&e.$$typeof===zD}function dvt(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return n[r]})}var tbe=/\/+/g;function SW(e,n){return typeof e=="object"&&e!==null&&e.key!=null?dvt(""+e.key):n.toString(36)}function x5(e,n,r,i,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case zD:case Jmt:s=!0}}if(s)return s=e,o=o(s),e=i===""?"."+SW(s,0):i,ebe(o)?(r="",e!=null&&(r=e.replace(tbe,"$&/")+"/"),x5(o,n,r,"",function(u){return u})):o!=null&&(_le(o)&&(o=uvt(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(tbe,"$&/")+"/")+e)),n.push(o)),1;if(s=0,i=i===""?".":i+":",ebe(e))for(var l=0;l<e.length;l++){a=e[l];var c=i+SW(a,l);s+=x5(a,n,r,c,o)}else if(c=cvt(e),typeof c=="function")for(e=c.call(e),l=0;!(a=e.next()).done;)a=a.value,c=i+SW(a,l++),s+=x5(a,n,r,c,o);else if(a==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return s}function l3(e,n,r){if(e==null)return e;var i=[],o=0;return x5(e,i,"","",function(a){return n.call(r,a,o++)}),i}function fvt(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Tu={current:null},T5={transition:null},pvt={ReactCurrentDispatcher:Tu,ReactCurrentBatchConfig:T5,ReactCurrentOwner:yle};function h4e(){throw Error("act(...) is not supported in production builds of React.")}Hi.Children={map:l3,forEach:function(e,n,r){l3(e,function(){n.apply(this,arguments)},r)},count:function(e){var n=0;return l3(e,function(){n++}),n},toArray:function(e){return l3(e,function(n){return n})||[]},only:function(e){if(!_le(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Hi.Component=GR;Hi.Fragment=evt;Hi.Profiler=nvt;Hi.PureComponent=mle;Hi.StrictMode=tvt;Hi.Suspense=avt;Hi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pvt;Hi.act=h4e;Hi.cloneElement=function(e,n,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=l4e({},e.props),o=e.key,a=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(a=n.ref,s=yle.current),n.key!==void 0&&(o=""+n.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in n)d4e.call(n,c)&&!f4e.hasOwnProperty(c)&&(i[c]=n[c]===void 0&&l!==void 0?l[c]:n[c])}var c=arguments.length-2;if(c===1)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:zD,type:e.type,key:o,ref:a,props:i,_owner:s}};Hi.createContext=function(e){return e={$$typeof:ivt,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:rvt,_context:e},e.Consumer=e};Hi.createElement=p4e;Hi.createFactory=function(e){var n=p4e.bind(null,e);return n.type=e,n};Hi.createRef=function(){return{current:null}};Hi.forwardRef=function(e){return{$$typeof:ovt,render:e}};Hi.isValidElement=_le;Hi.lazy=function(e){return{$$typeof:lvt,_payload:{_status:-1,_result:e},_init:fvt}};Hi.memo=function(e,n){return{$$typeof:svt,type:e,compare:n===void 0?null:n}};Hi.startTransition=function(e){var n=T5.transition;T5.transition={};try{e()}finally{T5.transition=n}};Hi.unstable_act=h4e;Hi.useCallback=function(e,n){return Tu.current.useCallback(e,n)};Hi.useContext=function(e){return Tu.current.useContext(e)};Hi.useDebugValue=function(){};Hi.useDeferredValue=function(e){return Tu.current.useDeferredValue(e)};Hi.useEffect=function(e,n){return Tu.current.useEffect(e,n)};Hi.useId=function(){return Tu.current.useId()};Hi.useImperativeHandle=function(e,n,r){return Tu.current.useImperativeHandle(e,n,r)};Hi.useInsertionEffect=function(e,n){return Tu.current.useInsertionEffect(e,n)};Hi.useLayoutEffect=function(e,n){return Tu.current.useLayoutEffect(e,n)};Hi.useMemo=function(e,n){return Tu.current.useMemo(e,n)};Hi.useReducer=function(e,n,r){return Tu.current.useReducer(e,n,r)};Hi.useRef=function(e){return Tu.current.useRef(e)};Hi.useState=function(e){return Tu.current.useState(e)};Hi.useSyncExternalStore=function(e,n,r){return Tu.current.useSyncExternalStore(e,n,r)};Hi.useTransition=function(){return Tu.current.useTransition()};Hi.version="18.3.1";a4e.exports=Hi;var m=a4e.exports;const V=Or(m),VD=a7({__proto__:null,default:V},[m]);/**
|
||
* @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 hvt=m,gvt=Symbol.for("react.element"),mvt=Symbol.for("react.fragment"),vvt=Object.prototype.hasOwnProperty,yvt=hvt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_vt={key:!0,ref:!0,__self:!0,__source:!0};function g4e(e,n,r){var i,o={},a=null,s=null;r!==void 0&&(a=""+r),n.key!==void 0&&(a=""+n.key),n.ref!==void 0&&(s=n.ref);for(i in n)vvt.call(n,i)&&!_vt.hasOwnProperty(i)&&(o[i]=n[i]);if(e&&e.defaultProps)for(i in n=e.defaultProps,n)o[i]===void 0&&(o[i]=n[i]);return{$$typeof:gvt,type:e,key:a,ref:s,props:o,_owner:yvt.current}}s7.Fragment=mvt;s7.jsx=g4e;s7.jsxs=g4e;o4e.exports=s7;var N=o4e.exports;const bvt={BASE_URL:"/agenticflow",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},nbe=e=>{let n;const r=new Set,i=(d,f)=>{const p=typeof d=="function"?d(n):d;if(!Object.is(p,n)){const h=n;n=f??(typeof p!="object"||p===null)?p:Object.assign({},n,p),r.forEach(g=>g(n,h))}},o=()=>n,c={setState:i,getState:o,getInitialState:()=>u,subscribe:d=>(r.add(d),()=>r.delete(d)),destroy:()=>{(bvt?"open":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."),r.clear()}},u=n=e(i,o,c);return c},m4e=e=>e?nbe(e):nbe;var v4e={exports:{}},y4e={},_4e={exports:{}},b4e={};/**
|
||
* @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 mO=m;function Svt(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Evt=typeof Object.is=="function"?Object.is:Svt,Cvt=mO.useState,wvt=mO.useEffect,xvt=mO.useLayoutEffect,Tvt=mO.useDebugValue;function Ovt(e,n){var r=n(),i=Cvt({inst:{value:r,getSnapshot:n}}),o=i[0].inst,a=i[1];return xvt(function(){o.value=r,o.getSnapshot=n,EW(o)&&a({inst:o})},[e,r,n]),wvt(function(){return EW(o)&&a({inst:o}),e(function(){EW(o)&&a({inst:o})})},[e]),Tvt(r),r}function EW(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!Evt(e,r)}catch{return!0}}function Rvt(e,n){return n()}var Ivt=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Rvt:Ovt;b4e.useSyncExternalStore=mO.useSyncExternalStore!==void 0?mO.useSyncExternalStore:Ivt;_4e.exports=b4e;var S4e=_4e.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 l7=m,Nvt=S4e;function Mvt(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Pvt=typeof Object.is=="function"?Object.is:Mvt,Avt=Nvt.useSyncExternalStore,Dvt=l7.useRef,kvt=l7.useEffect,Lvt=l7.useMemo,$vt=l7.useDebugValue;y4e.useSyncExternalStoreWithSelector=function(e,n,r,i,o){var a=Dvt(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=Lvt(function(){function c(h){if(!u){if(u=!0,d=h,h=i(h),o!==void 0&&s.hasValue){var g=s.value;if(o(g,h))return f=g}return f=h}if(g=f,Pvt(d,h))return g;var v=i(h);return o!==void 0&&o(g,v)?g:(d=h,f=v)}var u=!1,d,f,p=r===void 0?null:r;return[function(){return c(n())},p===null?void 0:function(){return c(p())}]},[n,r,i,o]);var l=Avt(e,a[0],a[1]);return kvt(function(){s.hasValue=!0,s.value=l},[l]),$vt(l),l};v4e.exports=y4e;var Fvt=v4e.exports;const E4e=Or(Fvt),C4e={BASE_URL:"/agenticflow",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},{useDebugValue:Bvt}=V,{useSyncExternalStoreWithSelector:jvt}=E4e;let rbe=!1;const Uvt=e=>e;function Hvt(e,n=Uvt,r){(C4e?"open":void 0)!=="production"&&r&&!rbe&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),rbe=!0);const i=jvt(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,r);return Bvt(i),i}const ibe=e=>{(C4e?"open":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const n=typeof e=="function"?m4e(e):e,r=(i,o)=>Hvt(n,i,o);return Object.assign(r,n),r},Ou=e=>e?ibe(e):ibe,O5={BASE_URL:"/agenticflow",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},Eee=new Map,c3=e=>{const n=Eee.get(e);return n?Object.fromEntries(Object.entries(n.stores).map(([r,i])=>[r,i.getState()])):{}},zvt=(e,n,r)=>{if(e===void 0)return{type:"untracked",connection:n.connect(r)};const i=Eee.get(r.name);if(i)return{type:"tracked",store:e,...i};const o={connection:n.connect(r),stores:{}};return Eee.set(r.name,o),{type:"tracked",store:e,...o}},Vvt=(e,n={})=>(r,i,o)=>{const{enabled:a,anonymousActionType:s,store:l,...c}=n;let u;try{u=(a??(O5?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return(O5?"open":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(r,i,o);const{connection:d,...f}=zvt(l,u,c);let p=!0;o.setState=(v,y,_)=>{const S=r(v,y);if(!p)return S;const b=_===void 0?{type:s||"anonymous"}:typeof _=="string"?{type:_}:_;return l===void 0?(d==null||d.send(b,i()),S):(d==null||d.send({...b,type:`${l}/${b.type}`},{...c3(c.name),[l]:o.getState()}),S)};const h=(...v)=>{const y=p;p=!1,r(...v),p=y},g=e(o.setState,i,o);if(f.type==="untracked"?d==null||d.init(g):(f.stores[f.store]=o,d==null||d.init(Object.fromEntries(Object.entries(f.stores).map(([v,y])=>[v,v===f.store?g:y.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let v=!1;const y=o.dispatch;o.dispatch=(..._)=>{(O5?"open":void 0)!=="production"&&_[0].type==="__setState"&&!v&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),v=!0),y(..._)}}return d.subscribe(v=>{var y;switch(v.type){case"ACTION":if(typeof v.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return CW(v.payload,_=>{if(_.type==="__setState"){if(l===void 0){h(_.state);return}Object.keys(_.state).length!==1&&console.error(`
|
||
[zustand devtools middleware] Unsupported __setState action format.
|
||
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
||
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
||
`);const S=_.state[l];if(S==null)return;JSON.stringify(o.getState())!==JSON.stringify(S)&&h(S);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(_)});case"DISPATCH":switch(v.payload.type){case"RESET":return h(g),l===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(c3(c.name));case"COMMIT":if(l===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(c3(c.name));case"ROLLBACK":return CW(v.state,_=>{if(l===void 0){h(_),d==null||d.init(o.getState());return}h(_[l]),d==null||d.init(c3(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return CW(v.state,_=>{if(l===void 0){h(_);return}JSON.stringify(o.getState())!==JSON.stringify(_[l])&&h(_[l])});case"IMPORT_STATE":{const{nextLiftedState:_}=v.payload,S=(y=_.computedStates.slice(-1)[0])==null?void 0:y.state;if(!S)return;h(l===void 0?S:S[l]),d==null||d.send(null,_);return}case"PAUSE_RECORDING":return p=!p}return}}),g},kp=Vvt,CW=(e,n)=>{let r;try{r=JSON.parse(e)}catch(i){console.error("[zustand devtools middleware] Could not parse the received json",i)}r!==void 0&&n(r)};function Gvt(e,n){let r;try{r=e()}catch{return}return{getItem:o=>{var a;const s=c=>c===null?null:JSON.parse(c,void 0),l=(a=r.getItem(o))!=null?a:null;return l instanceof Promise?l.then(s):s(l)},setItem:(o,a)=>r.setItem(o,JSON.stringify(a,void 0)),removeItem:o=>r.removeItem(o)}}const MP=e=>n=>{try{const r=e(n);return r instanceof Promise?r:{then(i){return MP(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return MP(i)(r)}}}},Wvt=(e,n)=>(r,i,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:y=>y,version:0,merge:(y,_)=>({..._,...y}),...n},s=!1;const l=new Set,c=new Set;let u;try{u=a.getStorage()}catch{}if(!u)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...y)},i,o);const d=MP(a.serialize),f=()=>{const y=a.partialize({...i()});let _;const S=d({state:y,version:a.version}).then(b=>u.setItem(a.name,b)).catch(b=>{_=b});if(_)throw _;return S},p=o.setState;o.setState=(y,_)=>{p(y,_),f()};const h=e((...y)=>{r(...y),f()},i,o);let g;const v=()=>{var y;if(!u)return;s=!1,l.forEach(S=>S(i()));const _=((y=a.onRehydrateStorage)==null?void 0:y.call(a,i()))||void 0;return MP(u.getItem.bind(u))(a.name).then(S=>{if(S)return a.deserialize(S)}).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==a.version){if(a.migrate)return a.migrate(S.state,S.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return S.state}).then(S=>{var b;return g=a.merge(S,(b=i())!=null?b:h),r(g,!0),f()}).then(()=>{_==null||_(g,void 0),s=!0,c.forEach(S=>S(g))}).catch(S=>{_==null||_(void 0,S)})};return o.persist={setOptions:y=>{a={...a,...y},y.getStorage&&(u=y.getStorage())},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>v(),hasHydrated:()=>s,onHydrate:y=>(l.add(y),()=>{l.delete(y)}),onFinishHydration:y=>(c.add(y),()=>{c.delete(y)})},v(),g||h},Yvt=(e,n)=>(r,i,o)=>{let a={storage:Gvt(()=>localStorage),partialize:v=>v,version:0,merge:(v,y)=>({...y,...v}),...n},s=!1;const l=new Set,c=new Set;let u=a.storage;if(!u)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...v)},i,o);const d=()=>{const v=a.partialize({...i()});return u.setItem(a.name,{state:v,version:a.version})},f=o.setState;o.setState=(v,y)=>{f(v,y),d()};const p=e((...v)=>{r(...v),d()},i,o);o.getInitialState=()=>p;let h;const g=()=>{var v,y;if(!u)return;s=!1,l.forEach(S=>{var b;return S((b=i())!=null?b:p)});const _=((y=a.onRehydrateStorage)==null?void 0:y.call(a,(v=i())!=null?v:p))||void 0;return MP(u.getItem.bind(u))(a.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==a.version){if(a.migrate)return[!0,a.migrate(S.state,S.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,S.state];return[!1,void 0]}).then(S=>{var b;const[E,w]=S;if(h=a.merge(w,(b=i())!=null?b:p),r(h,!0),E)return d()}).then(()=>{_==null||_(h,void 0),h=i(),s=!0,c.forEach(S=>S(h))}).catch(S=>{_==null||_(void 0,S)})};return o.persist={setOptions:v=>{a={...a,...v},v.storage&&(u=v.storage)},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:v=>(l.add(v),()=>{l.delete(v)}),onFinishHydration:v=>(c.add(v),()=>{c.delete(v)})},a.skipHydration||g(),h||p},qvt=(e,n)=>"getStorage"in n||"serialize"in n||"deserialize"in n?((O5?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Wvt(e,n)):Yvt(e,n),Sd=qvt;var w4e=Symbol.for("immer-nothing"),obe=Symbol.for("immer-draftable"),mf=Symbol.for("immer-state");function Rh(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var vO=Object.getPrototypeOf;function yO(e){return!!e&&!!e[mf]}function H1(e){var n;return e?x4e(e)||Array.isArray(e)||!!e[obe]||!!((n=e.constructor)!=null&&n[obe])||u7(e)||d7(e):!1}var Kvt=Object.prototype.constructor.toString();function x4e(e){if(!e||typeof e!="object")return!1;const n=vO(e);if(n===null)return!0;const r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Kvt}function SF(e,n){c7(e)===0?Reflect.ownKeys(e).forEach(r=>{n(r,e[r],e)}):e.forEach((r,i)=>n(i,r,e))}function c7(e){const n=e[mf];return n?n.type_:Array.isArray(e)?1:u7(e)?2:d7(e)?3:0}function Cee(e,n){return c7(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function T4e(e,n,r){const i=c7(e);i===2?e.set(n,r):i===3?e.add(r):e[n]=r}function Xvt(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function u7(e){return e instanceof Map}function d7(e){return e instanceof Set}function RE(e){return e.copy_||e.base_}function wee(e,n){if(u7(e))return new Map(e);if(d7(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=x4e(e);if(n===!0||n==="class_only"&&!r){const i=Object.getOwnPropertyDescriptors(e);delete i[mf];let o=Reflect.ownKeys(i);for(let a=0;a<o.length;a++){const s=o[a],l=i[s];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(i[s]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[s]})}return Object.create(vO(e),i)}else{const i=vO(e);if(i!==null&&r)return{...e};const o=Object.create(i);return Object.assign(o,e)}}function ble(e,n=!1){return f7(e)||yO(e)||!H1(e)||(c7(e)>1&&(e.set=e.add=e.clear=e.delete=Qvt),Object.freeze(e),n&&Object.entries(e).forEach(([r,i])=>ble(i,!0))),e}function Qvt(){Rh(2)}function f7(e){return Object.isFrozen(e)}var Zvt={};function z1(e){const n=Zvt[e];return n||Rh(0,e),n}var PP;function O4e(){return PP}function Jvt(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function abe(e,n){n&&(z1("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function xee(e){Tee(e),e.drafts_.forEach(eyt),e.drafts_=null}function Tee(e){e===PP&&(PP=e.parent_)}function sbe(e){return PP=Jvt(PP,e)}function eyt(e){const n=e[mf];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function lbe(e,n){n.unfinalizedDrafts_=n.drafts_.length;const r=n.drafts_[0];return e!==void 0&&e!==r?(r[mf].modified_&&(xee(n),Rh(4)),H1(e)&&(e=EF(n,e),n.parent_||CF(n,e)),n.patches_&&z1("Patches").generateReplacementPatches_(r[mf].base_,e,n.patches_,n.inversePatches_)):e=EF(n,r,[]),xee(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==w4e?e:void 0}function EF(e,n,r){if(f7(n))return n;const i=n[mf];if(!i)return SF(n,(o,a)=>cbe(e,i,n,o,a,r)),n;if(i.scope_!==e)return n;if(!i.modified_)return CF(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let a=o,s=!1;i.type_===3&&(a=new Set(o),o.clear(),s=!0),SF(a,(l,c)=>cbe(e,i,o,l,c,r,s)),CF(e,o,!1),r&&e.patches_&&z1("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function cbe(e,n,r,i,o,a,s){if(yO(o)){const l=a&&n&&n.type_!==3&&!Cee(n.assigned_,i)?a.concat(i):void 0,c=EF(e,o,l);if(T4e(r,i,c),yO(c))e.canAutoFreeze_=!1;else return}else s&&r.add(o);if(H1(o)&&!f7(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;EF(e,o),(!n||!n.scope_.parent_)&&typeof i!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,i)&&CF(e,o)}}function CF(e,n,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ble(n,r)}function tyt(e,n){const r=Array.isArray(e),i={type_:r?1:0,scope_:n?n.scope_:O4e(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,a=Sle;r&&(o=[i],a=AP);const{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}var Sle={get(e,n){if(n===mf)return e;const r=RE(e);if(!Cee(r,n))return nyt(e,r,n);const i=r[n];return e.finalized_||!H1(i)?i:i===wW(e.base_,n)?(xW(e),e.copy_[n]=Ree(i,e)):i},has(e,n){return n in RE(e)},ownKeys(e){return Reflect.ownKeys(RE(e))},set(e,n,r){const i=R4e(RE(e),n);if(i!=null&&i.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){const o=wW(RE(e),n),a=o==null?void 0:o[mf];if(a&&a.base_===r)return e.copy_[n]=r,e.assigned_[n]=!1,!0;if(Xvt(r,o)&&(r!==void 0||Cee(e.base_,n)))return!0;xW(e),Oee(e)}return e.copy_[n]===r&&(r!==void 0||n in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=r,e.assigned_[n]=!0),!0},deleteProperty(e,n){return wW(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,xW(e),Oee(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const r=RE(e),i=Reflect.getOwnPropertyDescriptor(r,n);return i&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:i.enumerable,value:r[n]}},defineProperty(){Rh(11)},getPrototypeOf(e){return vO(e.base_)},setPrototypeOf(){Rh(12)}},AP={};SF(Sle,(e,n)=>{AP[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});AP.deleteProperty=function(e,n){return AP.set.call(this,e,n,void 0)};AP.set=function(e,n,r){return Sle.set.call(this,e[0],n,r,e[0])};function wW(e,n){const r=e[mf];return(r?RE(r):e)[n]}function nyt(e,n,r){var o;const i=R4e(n,r);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function R4e(e,n){if(!(n in e))return;let r=vO(e);for(;r;){const i=Object.getOwnPropertyDescriptor(r,n);if(i)return i;r=vO(r)}}function Oee(e){e.modified_||(e.modified_=!0,e.parent_&&Oee(e.parent_))}function xW(e){e.copy_||(e.copy_=wee(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ryt=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,r,i)=>{if(typeof n=="function"&&typeof r!="function"){const a=r;r=n;const s=this;return function(c=a,...u){return s.produce(c,d=>r.call(this,d,...u))}}typeof r!="function"&&Rh(6),i!==void 0&&typeof i!="function"&&Rh(7);let o;if(H1(n)){const a=sbe(this),s=Ree(n,void 0);let l=!0;try{o=r(s),l=!1}finally{l?xee(a):Tee(a)}return abe(a,i),lbe(o,a)}else if(!n||typeof n!="object"){if(o=r(n),o===void 0&&(o=n),o===w4e&&(o=void 0),this.autoFreeze_&&ble(o,!0),i){const a=[],s=[];z1("Patches").generateReplacementPatches_(n,o,a,s),i(a,s)}return o}else Rh(1,n)},this.produceWithPatches=(n,r)=>{if(typeof n=="function")return(s,...l)=>this.produceWithPatches(s,c=>n(c,...l));let i,o;return[this.produce(n,r,(s,l)=>{i=s,o=l}),i,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){H1(e)||Rh(8),yO(e)&&(e=iyt(e));const n=sbe(this),r=Ree(e,void 0);return r[mf].isManual_=!0,Tee(n),r}finishDraft(e,n){const r=e&&e[mf];(!r||!r.isManual_)&&Rh(9);const{scope_:i}=r;return abe(i,n),lbe(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let r;for(r=n.length-1;r>=0;r--){const o=n[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(n=n.slice(r+1));const i=z1("Patches").applyPatches_;return yO(e)?i(e,n):this.produce(e,o=>i(o,n))}};function Ree(e,n){const r=u7(e)?z1("MapSet").proxyMap_(e,n):d7(e)?z1("MapSet").proxySet_(e,n):tyt(e,n);return(n?n.scope_:O4e()).drafts_.push(r),r}function iyt(e){return yO(e)||Rh(10,e),I4e(e)}function I4e(e){if(!H1(e)||f7(e))return e;const n=e[mf];let r;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=wee(e,n.scope_.immer_.useStrictShallowCopy_)}else r=wee(e,!0);return SF(r,(i,o)=>{T4e(r,i,I4e(o))}),n&&(n.finalized_=!1),r}var vf=new ryt,oyt=vf.produce;vf.produceWithPatches.bind(vf);vf.setAutoFreeze.bind(vf);vf.setUseStrictShallowCopy.bind(vf);vf.applyPatches.bind(vf);vf.createDraft.bind(vf);vf.finishDraft.bind(vf);const ayt=e=>(n,r,i)=>(i.setState=(o,a,...s)=>{const l=typeof o=="function"?oyt(o):o;return n(l,a,...s)},e(i.setState,r,i)),Lp=ayt,syt="dev",N4e="open",ube="prod",lyt="quanjing",M4e="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open");let bs;switch(M4e){case"dev":bs={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9006",IS_DEBUG:!0,SERVER_MODE:syt,CLIENT:"WEB",USER_PRIVACY_URL:"http://127.0.0.1:9003/protocol",SHOW_SWITCH_SERVER:!0,SHOW_SCAN_LOGIN:!0,LOGO_URL:"http://127.0.0.1:9003/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0,SHOW_TRIAL_TIP:!1};break;case"prod-open":bs={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:N4e,CLIENT:"WEB",USER_PRIVACY_URL:"http://127.0.0.1:9003/protocol",SHOW_SWITCH_SERVER:!0,SHOW_SCAN_LOGIN:!0,LOGO_URL:"http://127.0.0.1:9003/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0,SHOW_TRIAL_TIP:!1};break;case"prod-quanjing":bs={API_URL:"https://kf.gxzgt.com:9003",MQTT_URL:"wss://kf.gxzgt.com:9003/websocket",HTML_URL:"https://kf.gxzgt.com:9003",IS_DEBUG:!1,SERVER_MODE:lyt,CLIENT:"WEB",USER_PRIVACY_URL:"https://zgtapp.zwfw.gxzf.gov.cn/zgt-h5/userProtocol/index.html",SHOW_SWITCH_SERVER:!1,SHOW_SCAN_LOGIN:!1,LOGO_URL:"https://kf.gxzgt.com:9003/assets/images/logos/zhiguitong.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!1,SHOW_CREATE_LLM:!1,SHOW_CONTACTS:!1,SHOW_FAVORITE:!1,SHOW_TRIAL_TIP:!1};break;case"prod-web":bs={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:ube,CLIENT:"WEB",USER_PRIVACY_URL:"https://www.weiyuai.cn/protocol.html",SHOW_SWITCH_SERVER:!1,SHOW_SCAN_LOGIN:!0,LOGO_URL:"https://www.weiyuai.cn/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0,SHOW_TRIAL_TIP:!1};break;default:bs={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:ube,CLIENT:"ELECTRON",USER_PRIVACY_URL:"https://www.weiyuai.cn/protocol.html",SHOW_SWITCH_SERVER:!1,SHOW_SCAN_LOGIN:!0,LOGO_URL:"https://www.weiyuai.cn/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0,SHOW_TRIAL_TIP:!1}}console.log("config.API_BASE_URL: ",M4e,bs);const Yl=navigator.userAgent.toLowerCase().indexOf("electron")>-1,TW=bs.API_URL,dbe=bs.MQTT_URL;bs.HTML_URL;const _O=bs.IS_DEBUG,cyt=bs.SERVER_MODE,xo=bs.CLIENT,uyt=bs.USER_PRIVACY_URL,dyt=bs.SHOW_SWITCH_SERVER,fyt=bs.SHOW_SCAN_LOGIN,pyt=bs.LOGO_URL,hyt=bs.LOGO_NAME;bs.SHOW_CREATE_GROUP;bs.SHOW_CREATE_LLM;bs.SHOW_CONTACTS;bs.SHOW_FAVORITE;bs.SHOW_TRIAL_TIP;const Ep="BYTEDESK",fbe="locale",pbe="mode",PT="team",V1="agent",wF="personal",hbe="i18n.",u3="i18n.new.message",P4e="ANONYMOUS",Kd="bytedesk_login_credentials",gbe="THEME_MODE_TYPE",mbe="THEME_NAME_TYPE",R5="PLAY_AUDIO",A2="NETWORK_STATUS_NOTIFICATION",D2="CONFIG_ENABLED_AGENT",I5="CONFIG_API_URL_AGENT",N5="CONFIG_WEBSOCKET_URL_AGENT",OW="CONFIG_HTML_URL_AGENT",gyt="false",eT="CONFIG_CUSTOM_ENABLED_AGENT",XM="CONFIG_CUSTOM_API_URL_AGENT",QM="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",myt="CONFIG_PROPERTIES",vyt="SCREENSHOT_OK",yyt="EVENT_BUS_SERVER_ERROR_500",Jb="EVENT_BUS_TOKEN_INVALID",DP="EVENT_BUS_MQTT_MESSAGE",Iee="EVENT_BUS_MQTT_CONNECTED",Nee="EVENT_BUS_MQTT_OFFLINE",Mee="EVENT_BUS_MQTT_CLOSE",Pee="EVENT_BUS_MQTT_DISCONNECTED",Aee="EVENT_BUS_MQTT_ERROR",Dee="EVENT_BUS_MQTT_END",A4e="EVENT_BUS_MESSAGE_TYPE_STATUS",_yt="EVENT_BUS_MESSAGE_TYPE_TYPING",byt="EVENT_BUS_MESSAGE_TYPE_PROCESSING",Syt="EVENT_BUS_MESSAGE_TYPE_STREAM",Eyt="EVENT_BUS_MESSAGE_TYPE_PREVIEW",kee="EVENT_BUS_MESSAGE_TYPE_TRANSFER",Lee="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",$ee="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",Cyt="EVENT_BUS_SCREEN_CAPTURE_IMAGE",wyt="AUTH_STORE",G1="ACCESS_TOKEN",xyt="ORGANIZATION_STORE",Tyt="MEMBER_STORE",Oyt="MESSAGE_STORE",Ryt="CONTACT_STORE",Iyt="USER_STORE",Nyt="SETTINGS_STORE",Myt="THREAD_STORE",Pyt="DEVICE_STORE",Ayt="AGENT_STORE",Dyt="WORKGROUP_STORE",kyt="PROCESS_STORE",Lyt="member",D4e="device",$yt="MOBILE_LOGIN",Fyt="MOBILE_RESET",Byt="MOBILE_VERIFY",jyt="EMAIL_RESET",Uyt="EMAIL_VERIFY",Hyt="PENDING",zyt="SCANNED",Vyt="CONFIRMED",Gyt="EXPIRED",Wyt="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",Yyt="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",qyt="https://www.weiyuai.cn/download.html",vbe="AGENT",ybe="USER",_be="AGENT",bbe="WORKGROUP",Sbe="QUEUING",Ebe="CLOSED",Cbe="SENDING",Fee="SUCCESS",Kyt="TRANSFER_ACCEPT",Xyt="TRANSFER_REJECT",Bee="CONTINUE",k4e="SYSTEM",Qyt="QUEUE",Zyt="TEXT",Jyt="IMAGE",e_t="FILE",t_t="AUDIO",n_t="VIDEO",jee="TYPING",Uee="PROCESSING",kP="STREAM",wbe="PREVIEW",xbe="RECALL",Hee="DELIVERED",zee="READ",r_t="FAQ_UP",i_t="FAQ_DOWN",o_t="ROBOT_UP",a_t="ROBOT_DOWN",s_t="RATE_SUBMIT",l_t="RATE_CANCEL",LP="AUTO_CLOSED",$P="AGENT_CLOSED",Tbe="TRANSFER",Obe="TRANSFER_ACCEPT",Rbe="TRANSFER_REJECT",Ibe="AVAILABLE",RW="OFFLINE",Nbe="REST",c_t="org/group/",u_t="TICKET",d_t="FLOWGRAM",f_t="CHAT",Vee="lastPath",xF="TICKET",IW="FLOWGRAM",p_t="ROLE_SUPER",h_t="ROLE_ADMIN",g_t="ROLE_MEMBER",m_t="ROLE_AGENT",GD=Ou()(kp(Sd(Lp((e,n)=>({accessToken:"",setAccessToken(r){localStorage.setItem(G1,r),e({accessToken:r})},getAccessToken(){return n().accessToken},removeAccessToken(){localStorage.removeItem(G1),e({accessToken:""})}})),{name:wyt}))),v_t=Ou()(kp(Sd(Lp(e=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1,proLayoutCollapsed:!0},currentMenu:"chat",setCurrentMenu(n){e({currentMenu:n})},setProLayoutCollapsed(n){e(r=>({settings:{...r.settings,proLayoutCollapsed:n}}))}})),{name:Nyt})));var HC={},L4e={exports:{}};(function(e){function n(r){return r&&r.__esModule?r:{default:r}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(L4e);var di=L4e.exports,p7={};Object.defineProperty(p7,"__esModule",{value:!0});p7.default=void 0;var y_t={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"};p7.default=y_t;var h7={},WD={},g7={},$4e={exports:{}},F4e={exports:{}},B4e={exports:{}},j4e={exports:{}};(function(e){function n(r){"@babel/helpers - typeof";return e.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,n(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(j4e);var zC=j4e.exports,U4e={exports:{}};(function(e){var n=zC.default;function r(i,o){if(n(i)!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var s=a.call(i,o||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(U4e);var __t=U4e.exports;(function(e){var n=zC.default,r=__t;function i(o){var a=r(o,"string");return n(a)=="symbol"?a:a+""}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(B4e);var b_t=B4e.exports;(function(e){var n=b_t;function r(i,o,a){return(o=n(o))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(F4e);var H4e=F4e.exports;(function(e){var n=H4e;function r(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);a&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),s.push.apply(s,l)}return s}function i(o){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(o,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(s,l))})}return o}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})($4e);var VC=$4e.exports,WR={};Object.defineProperty(WR,"__esModule",{value:!0});WR.commonLocale=void 0;WR.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var S_t=di.default;Object.defineProperty(g7,"__esModule",{value:!0});g7.default=void 0;var Mbe=S_t(VC),E_t=WR,C_t=(0,Mbe.default)((0,Mbe.default)({},E_t.commonLocale),{},{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"});g7.default=C_t;var YD={};Object.defineProperty(YD,"__esModule",{value:!0});YD.default=void 0;const w_t={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};YD.default=w_t;var z4e=di.default;Object.defineProperty(WD,"__esModule",{value:!0});WD.default=void 0;var x_t=z4e(g7),T_t=z4e(YD);const O_t={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"]},x_t.default),timePickerLocale:Object.assign({},T_t.default)};WD.default=O_t;var R_t=di.default;Object.defineProperty(h7,"__esModule",{value:!0});h7.default=void 0;var I_t=R_t(WD);h7.default=I_t.default;var m7=di.default;Object.defineProperty(HC,"__esModule",{value:!0});HC.default=void 0;var N_t=m7(p7),M_t=m7(h7),P_t=m7(WD),A_t=m7(YD);const Pd="${label} is not a valid ${type}",D_t={locale:"en",Pagination:N_t.default,DatePicker:P_t.default,TimePicker:A_t.default,Calendar:M_t.default,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:Pd,method:Pd,array:Pd,object:Pd,number:Pd,date:Pd,boolean:Pd,integer:Pd,float:Pd,regexp:Pd,email:Pd,url:Pd,hex:Pd},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"}};HC.default=D_t;var k_t=HC;const Pbe=Or(k_t);var v7={},y7={};Object.defineProperty(y7,"__esModule",{value:!0});y7.default=void 0;var L_t={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:"页码"};y7.default=L_t;var _7={},qD={},b7={},$_t=di.default;Object.defineProperty(b7,"__esModule",{value:!0});b7.default=void 0;var Abe=$_t(VC),F_t=WR,B_t=(0,Abe.default)((0,Abe.default)({},F_t.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});b7.default=B_t;var KD={};Object.defineProperty(KD,"__esModule",{value:!0});KD.default=void 0;const j_t={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};KD.default=j_t;var V4e=di.default;Object.defineProperty(qD,"__esModule",{value:!0});qD.default=void 0;var U_t=V4e(b7),H_t=V4e(KD);const G4e={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},U_t.default),timePickerLocale:Object.assign({},H_t.default)};G4e.lang.ok="确定";qD.default=G4e;var z_t=di.default;Object.defineProperty(_7,"__esModule",{value:!0});_7.default=void 0;var V_t=z_t(qD);_7.default=V_t.default;var S7=di.default;Object.defineProperty(v7,"__esModule",{value:!0});v7.default=void 0;var G_t=S7(y7),W_t=S7(_7),Y_t=S7(qD),q_t=S7(KD);const Ad="${label}不是一个有效的${type}",K_t={locale:"zh-cn",Pagination:G_t.default,DatePicker:Y_t.default,TimePicker:q_t.default,Calendar:W_t.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Ad,method:Ad,array:Ad,object:Ad,number:Ad,date:Ad,boolean:Ad,integer:Ad,float:Ad,regexp:Ad,email:Ad,url:Ad,hex:Ad},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};v7.default=K_t;var X_t=v7;const tT=Or(X_t);var E7={},C7={};Object.defineProperty(C7,"__esModule",{value:!0});C7.default=void 0;var Q_t={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:"頁碼"};C7.default=Q_t;var w7={},XD={},x7={},Z_t=di.default;Object.defineProperty(x7,"__esModule",{value:!0});x7.default=void 0;var Dbe=Z_t(VC),J_t=WR,ebt=(0,Dbe.default)((0,Dbe.default)({},J_t.commonLocale),{},{locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀",cellDateFormat:"D",monthBeforeYear:!1});x7.default=ebt;var QD={};Object.defineProperty(QD,"__esModule",{value:!0});QD.default=void 0;const tbt={placeholder:"請選擇時間"};QD.default=tbt;var W4e=di.default;Object.defineProperty(XD,"__esModule",{value:!0});XD.default=void 0;var nbt=W4e(x7),rbt=W4e(QD);const Y4e={lang:Object.assign({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeQuarterPlaceholder:["開始季度","結束季度"],rangeWeekPlaceholder:["開始周","結束周"]},nbt.default),timePickerLocale:Object.assign({},rbt.default)};Y4e.lang.ok="確 定";XD.default=Y4e;var ibt=di.default;Object.defineProperty(w7,"__esModule",{value:!0});w7.default=void 0;var obt=ibt(XD);w7.default=obt.default;var T7=di.default;Object.defineProperty(E7,"__esModule",{value:!0});E7.default=void 0;var abt=T7(C7),sbt=T7(w7),lbt=T7(XD),cbt=T7(QD);const Dd="${label}不是一個有效的${type}",ubt={locale:"zh-tw",Pagination:abt.default,DatePicker:lbt.default,TimePicker:cbt.default,Calendar:sbt.default,global:{placeholder:"請選擇"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",filterEmptyText:"無篩選項",filterCheckall:"全選",filterSearchPlaceholder:"在篩選項中搜尋",emptyText:"暫無數據",selectAll:"全部選取",selectInvert:"反向選取",selectNone:"清空所有",selectionAll:"全選所有",sortTitle:"排序",expand:"展開行",collapse:"關閉行",triggerDesc:"點擊降序",triggerAsc:"點擊升序",cancelSort:"取消排序"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"結束導覽"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{titles:["",""],searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目",remove:"删除",selectCurrent:"全選當頁",removeCurrent:"删除當頁",selectAll:"全選所有",removeAll:"删除全部",selectInvert:"反選當頁"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開"},Form:{optional:"(可選)",defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:Dd,method:Dd,array:Dd,object:Dd,number:Dd,date:Dd,boolean:Dd,integer:Dd,float:Dd,regexp:Dd,email:Dd,url:Dd,hex:Dd},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}},Image:{preview:"預覽"},QRCode:{expired:"二維碼過期",refresh:"點擊刷新",scanned:"已掃描"}};E7.default=ubt;var dbt=E7;const fbt=Or(dbt);function q4e(){const e=localStorage.getItem(mbe)||"light",[n,r]=m.useState(e),i=localStorage.getItem(gbe)||"system",[o,a]=m.useState(i);return m.useEffect(()=>{i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?r("dark"):r("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>{s.matches?r("dark"):r("light")}))},[]),m.useEffect(()=>{localStorage.setItem(gbe,o),o==="light"?r("light"):o==="dark"?r("dark"):o==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?r("dark"):r("light"))},[o]),m.useEffect(()=>{localStorage.setItem(mbe,n)},[n]),{themeName:n,setThemeName:r,themeMode:o,setThemeMode:a,isDarkMode:n==="dark",isLightMode:n==="light"}}function K4e(e,n){return function(){return e.apply(n,arguments)}}const{toString:pbt}=Object.prototype,{getPrototypeOf:Ele}=Object,O7=(e=>n=>{const r=pbt.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),gg=e=>(e=e.toLowerCase(),n=>O7(n)===e),R7=e=>n=>typeof n===e,{isArray:YR}=Array,FP=R7("undefined");function hbt(e){return e!==null&&!FP(e)&&e.constructor!==null&&!FP(e.constructor)&&ff(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const X4e=gg("ArrayBuffer");function gbt(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&X4e(e.buffer),n}const mbt=R7("string"),ff=R7("function"),Q4e=R7("number"),I7=e=>e!==null&&typeof e=="object",vbt=e=>e===!0||e===!1,M5=e=>{if(O7(e)!=="object")return!1;const n=Ele(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ybt=gg("Date"),_bt=gg("File"),bbt=gg("Blob"),Sbt=gg("FileList"),Ebt=e=>I7(e)&&ff(e.pipe),Cbt=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||ff(e.append)&&((n=O7(e))==="formdata"||n==="object"&&ff(e.toString)&&e.toString()==="[object FormData]"))},wbt=gg("URLSearchParams"),[xbt,Tbt,Obt,Rbt]=["ReadableStream","Request","Response","Headers"].map(gg),Ibt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ZD(e,n,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),YR(e))for(i=0,o=e.length;i<o;i++)n.call(null,e[i],i,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let l;for(i=0;i<s;i++)l=a[i],n.call(null,e[l],l,e)}}function Z4e(e,n){n=n.toLowerCase();const r=Object.keys(e);let i=r.length,o;for(;i-- >0;)if(o=r[i],n===o.toLowerCase())return o;return null}const KE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,J4e=e=>!FP(e)&&e!==KE;function Gee(){const{caseless:e}=J4e(this)&&this||{},n={},r=(i,o)=>{const a=e&&Z4e(n,o)||o;M5(n[a])&&M5(i)?n[a]=Gee(n[a],i):M5(i)?n[a]=Gee({},i):YR(i)?n[a]=i.slice():n[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&ZD(arguments[i],r);return n}const Nbt=(e,n,r,{allOwnKeys:i}={})=>(ZD(n,(o,a)=>{r&&ff(o)?e[a]=K4e(o,r):e[a]=o},{allOwnKeys:i}),e),Mbt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Pbt=(e,n,r,i)=>{e.prototype=Object.create(n.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),r&&Object.assign(e.prototype,r)},Abt=(e,n,r,i)=>{let o,a,s;const l={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!i||i(s,e,n))&&!l[s]&&(n[s]=e[s],l[s]=!0);e=r!==!1&&Ele(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},Dbt=(e,n,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;const i=e.indexOf(n,r);return i!==-1&&i===r},kbt=e=>{if(!e)return null;if(YR(e))return e;let n=e.length;if(!Q4e(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=e[n];return r},Lbt=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&Ele(Uint8Array)),$bt=(e,n)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const a=o.value;n.call(e,a[0],a[1])}},Fbt=(e,n)=>{let r;const i=[];for(;(r=e.exec(n))!==null;)i.push(r);return i},Bbt=gg("HTMLFormElement"),jbt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,o){return i.toUpperCase()+o}),kbe=(({hasOwnProperty:e})=>(n,r)=>e.call(n,r))(Object.prototype),Ubt=gg("RegExp"),e5e=(e,n)=>{const r=Object.getOwnPropertyDescriptors(e),i={};ZD(r,(o,a)=>{let s;(s=n(o,a,e))!==!1&&(i[a]=s||o)}),Object.defineProperties(e,i)},Hbt=e=>{e5e(e,(n,r)=>{if(ff(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=e[r];if(ff(i)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},zbt=(e,n)=>{const r={},i=o=>{o.forEach(a=>{r[a]=!0})};return YR(e)?i(e):i(String(e).split(n)),r},Vbt=()=>{},Gbt=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,NW="abcdefghijklmnopqrstuvwxyz",Lbe="0123456789",t5e={DIGIT:Lbe,ALPHA:NW,ALPHA_DIGIT:NW+NW.toUpperCase()+Lbe},Wbt=(e=16,n=t5e.ALPHA_DIGIT)=>{let r="";const{length:i}=n;for(;e--;)r+=n[Math.random()*i|0];return r};function Ybt(e){return!!(e&&ff(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const qbt=e=>{const n=new Array(10),r=(i,o)=>{if(I7(i)){if(n.indexOf(i)>=0)return;if(!("toJSON"in i)){n[o]=i;const a=YR(i)?[]:{};return ZD(i,(s,l)=>{const c=r(s,o+1);!FP(c)&&(a[l]=c)}),n[o]=void 0,a}}return i};return r(e,0)},Kbt=gg("AsyncFunction"),Xbt=e=>e&&(I7(e)||ff(e))&&ff(e.then)&&ff(e.catch),n5e=((e,n)=>e?setImmediate:n?((r,i)=>(KE.addEventListener("message",({source:o,data:a})=>{o===KE&&a===r&&i.length&&i.shift()()},!1),o=>{i.push(o),KE.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ff(KE.postMessage)),Qbt=typeof queueMicrotask<"u"?queueMicrotask.bind(KE):typeof process<"u"&&process.nextTick||n5e,nn={isArray:YR,isArrayBuffer:X4e,isBuffer:hbt,isFormData:Cbt,isArrayBufferView:gbt,isString:mbt,isNumber:Q4e,isBoolean:vbt,isObject:I7,isPlainObject:M5,isReadableStream:xbt,isRequest:Tbt,isResponse:Obt,isHeaders:Rbt,isUndefined:FP,isDate:ybt,isFile:_bt,isBlob:bbt,isRegExp:Ubt,isFunction:ff,isStream:Ebt,isURLSearchParams:wbt,isTypedArray:Lbt,isFileList:Sbt,forEach:ZD,merge:Gee,extend:Nbt,trim:Ibt,stripBOM:Mbt,inherits:Pbt,toFlatObject:Abt,kindOf:O7,kindOfTest:gg,endsWith:Dbt,toArray:kbt,forEachEntry:$bt,matchAll:Fbt,isHTMLForm:Bbt,hasOwnProperty:kbe,hasOwnProp:kbe,reduceDescriptors:e5e,freezeMethods:Hbt,toObjectSet:zbt,toCamelCase:jbt,noop:Vbt,toFiniteNumber:Gbt,findKey:Z4e,global:KE,isContextDefined:J4e,ALPHABET:t5e,generateString:Wbt,isSpecCompliantForm:Ybt,toJSONObject:qbt,isAsyncFn:Kbt,isThenable:Xbt,setImmediate:n5e,asap:Qbt};function fi(e,n,r,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status?o.status:null)}nn.inherits(fi,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:nn.toJSONObject(this.config),code:this.code,status:this.status}}});const r5e=fi.prototype,i5e={};["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=>{i5e[e]={value:e}});Object.defineProperties(fi,i5e);Object.defineProperty(r5e,"isAxiosError",{value:!0});fi.from=(e,n,r,i,o,a)=>{const s=Object.create(r5e);return nn.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),fi.call(s,e.message,n,r,i,o),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const Zbt=null;function Wee(e){return nn.isPlainObject(e)||nn.isArray(e)}function o5e(e){return nn.endsWith(e,"[]")?e.slice(0,-2):e}function $be(e,n,r){return e?e.concat(n).map(function(o,a){return o=o5e(o),!r&&a?"["+o+"]":o}).join(r?".":""):n}function Jbt(e){return nn.isArray(e)&&!e.some(Wee)}const e0t=nn.toFlatObject(nn,{},null,function(n){return/^is[A-Z]/.test(n)});function N7(e,n,r){if(!nn.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,r=nn.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,y){return!nn.isUndefined(y[v])});const i=r.metaTokens,o=r.visitor||d,a=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&nn.isSpecCompliantForm(n);if(!nn.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(nn.isDate(g))return g.toISOString();if(!c&&nn.isBlob(g))throw new fi("Blob is not supported. Use a Buffer instead.");return nn.isArrayBuffer(g)||nn.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,v,y){let _=g;if(g&&!y&&typeof g=="object"){if(nn.endsWith(v,"{}"))v=i?v:v.slice(0,-2),g=JSON.stringify(g);else if(nn.isArray(g)&&Jbt(g)||(nn.isFileList(g)||nn.endsWith(v,"[]"))&&(_=nn.toArray(g)))return v=o5e(v),_.forEach(function(b,E){!(nn.isUndefined(b)||b===null)&&n.append(s===!0?$be([v],E,a):s===null?v:v+"[]",u(b))}),!1}return Wee(g)?!0:(n.append($be(y,v,a),u(g)),!1)}const f=[],p=Object.assign(e0t,{defaultVisitor:d,convertValue:u,isVisitable:Wee});function h(g,v){if(!nn.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),nn.forEach(g,function(_,S){(!(nn.isUndefined(_)||_===null)&&o.call(n,_,nn.isString(S)?S.trim():S,v,p))===!0&&h(_,v?v.concat(S):[S])}),f.pop()}}if(!nn.isObject(e))throw new TypeError("data must be an object");return h(e),n}function Fbe(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return n[i]})}function Cle(e,n){this._pairs=[],e&&N7(e,this,n)}const a5e=Cle.prototype;a5e.append=function(n,r){this._pairs.push([n,r])};a5e.toString=function(n){const r=n?function(i){return n.call(this,i,Fbe)}:Fbe;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function t0t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function s5e(e,n,r){if(!n)return e;const i=r&&r.encode||t0t;nn.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let a;if(o?a=o(n,r):a=nn.isURLSearchParams(n)?n.toString():new Cle(n,r).toString(i),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Bbe{constructor(){this.handlers=[]}use(n,r,i){return this.handlers.push({fulfilled:n,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){nn.forEach(this.handlers,function(i){i!==null&&n(i)})}}const l5e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},n0t=typeof URLSearchParams<"u"?URLSearchParams:Cle,r0t=typeof FormData<"u"?FormData:null,i0t=typeof Blob<"u"?Blob:null,o0t={isBrowser:!0,classes:{URLSearchParams:n0t,FormData:r0t,Blob:i0t},protocols:["http","https","file","blob","url","data"]},wle=typeof window<"u"&&typeof document<"u",Yee=typeof navigator=="object"&&navigator||void 0,a0t=wle&&(!Yee||["ReactNative","NativeScript","NS"].indexOf(Yee.product)<0),s0t=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",l0t=wle&&window.location.href||"http://localhost",c0t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wle,hasStandardBrowserEnv:a0t,hasStandardBrowserWebWorkerEnv:s0t,navigator:Yee,origin:l0t},Symbol.toStringTag,{value:"Module"})),Fc={...c0t,...o0t};function u0t(e,n){return N7(e,new Fc.classes.URLSearchParams,Object.assign({visitor:function(r,i,o,a){return Fc.isNode&&nn.isBuffer(r)?(this.append(i,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},n))}function d0t(e){return nn.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function f0t(e){const n={},r=Object.keys(e);let i;const o=r.length;let a;for(i=0;i<o;i++)a=r[i],n[a]=e[a];return n}function c5e(e){function n(r,i,o,a){let s=r[a++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=a>=r.length;return s=!s&&nn.isArray(o)?o.length:s,c?(nn.hasOwnProp(o,s)?o[s]=[o[s],i]:o[s]=i,!l):((!o[s]||!nn.isObject(o[s]))&&(o[s]=[]),n(r,i,o[s],a)&&nn.isArray(o[s])&&(o[s]=f0t(o[s])),!l)}if(nn.isFormData(e)&&nn.isFunction(e.entries)){const r={};return nn.forEachEntry(e,(i,o)=>{n(d0t(i),o,r,0)}),r}return null}function p0t(e,n,r){if(nn.isString(e))try{return(n||JSON.parse)(e),nn.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(e)}const JD={transitional:l5e,adapter:["xhr","http","fetch"],transformRequest:[function(n,r){const i=r.getContentType()||"",o=i.indexOf("application/json")>-1,a=nn.isObject(n);if(a&&nn.isHTMLForm(n)&&(n=new FormData(n)),nn.isFormData(n))return o?JSON.stringify(c5e(n)):n;if(nn.isArrayBuffer(n)||nn.isBuffer(n)||nn.isStream(n)||nn.isFile(n)||nn.isBlob(n)||nn.isReadableStream(n))return n;if(nn.isArrayBufferView(n))return n.buffer;if(nn.isURLSearchParams(n))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return u0t(n,this.formSerializer).toString();if((l=nn.isFileList(n))||i.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return N7(l?{"files[]":n}:n,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),p0t(n)):n}],transformResponse:[function(n){const r=this.transitional||JD.transitional,i=r&&r.forcedJSONParsing,o=this.responseType==="json";if(nn.isResponse(n)||nn.isReadableStream(n))return n;if(n&&nn.isString(n)&&(i&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(n)}catch(l){if(s)throw l.name==="SyntaxError"?fi.from(l,fi.ERR_BAD_RESPONSE,this,null,this.response):l}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fc.classes.FormData,Blob:Fc.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};nn.forEach(["delete","get","head","post","put","patch"],e=>{JD.headers[e]={}});const h0t=nn.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"]),g0t=e=>{const n={};let r,i,o;return e&&e.split(`
|
||
`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),i=s.substring(o+1).trim(),!(!r||n[r]&&h0t[r])&&(r==="set-cookie"?n[r]?n[r].push(i):n[r]=[i]:n[r]=n[r]?n[r]+", "+i:i)}),n},jbe=Symbol("internals");function HN(e){return e&&String(e).trim().toLowerCase()}function P5(e){return e===!1||e==null?e:nn.isArray(e)?e.map(P5):String(e)}function m0t(e){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)n[i[1]]=i[2];return n}const v0t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function MW(e,n,r,i,o){if(nn.isFunction(i))return i.call(this,n,r);if(o&&(n=r),!!nn.isString(n)){if(nn.isString(i))return n.indexOf(i)!==-1;if(nn.isRegExp(i))return i.test(n)}}function y0t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,i)=>r.toUpperCase()+i)}function _0t(e,n){const r=nn.toCamelCase(" "+n);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(o,a,s){return this[i].call(this,n,o,a,s)},configurable:!0})})}class ud{constructor(n){n&&this.set(n)}set(n,r,i){const o=this;function a(l,c,u){const d=HN(c);if(!d)throw new Error("header name must be a non-empty string");const f=nn.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||c]=P5(l))}const s=(l,c)=>nn.forEach(l,(u,d)=>a(u,d,c));if(nn.isPlainObject(n)||n instanceof this.constructor)s(n,r);else if(nn.isString(n)&&(n=n.trim())&&!v0t(n))s(g0t(n),r);else if(nn.isHeaders(n))for(const[l,c]of n.entries())a(c,l,i);else n!=null&&a(r,n,i);return this}get(n,r){if(n=HN(n),n){const i=nn.findKey(this,n);if(i){const o=this[i];if(!r)return o;if(r===!0)return m0t(o);if(nn.isFunction(r))return r.call(this,o,i);if(nn.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=HN(n),n){const i=nn.findKey(this,n);return!!(i&&this[i]!==void 0&&(!r||MW(this,this[i],i,r)))}return!1}delete(n,r){const i=this;let o=!1;function a(s){if(s=HN(s),s){const l=nn.findKey(i,s);l&&(!r||MW(i,i[l],l,r))&&(delete i[l],o=!0)}}return nn.isArray(n)?n.forEach(a):a(n),o}clear(n){const r=Object.keys(this);let i=r.length,o=!1;for(;i--;){const a=r[i];(!n||MW(this,this[a],a,n,!0))&&(delete this[a],o=!0)}return o}normalize(n){const r=this,i={};return nn.forEach(this,(o,a)=>{const s=nn.findKey(i,a);if(s){r[s]=P5(o),delete r[a];return}const l=n?y0t(a):String(a).trim();l!==a&&delete r[a],r[l]=P5(o),i[l]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return nn.forEach(this,(i,o)=>{i!=null&&i!==!1&&(r[o]=n&&nn.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const i=new this(n);return r.forEach(o=>i.set(o)),i}static accessor(n){const i=(this[jbe]=this[jbe]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=HN(s);i[l]||(_0t(o,s),i[l]=!0)}return nn.isArray(n)?n.forEach(a):a(n),this}}ud.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);nn.reduceDescriptors(ud.prototype,({value:e},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(i){this[r]=i}}});nn.freezeMethods(ud);function PW(e,n){const r=this||JD,i=n||r,o=ud.from(i.headers);let a=i.data;return nn.forEach(e,function(l){a=l.call(r,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function u5e(e){return!!(e&&e.__CANCEL__)}function qR(e,n,r){fi.call(this,e??"canceled",fi.ERR_CANCELED,n,r),this.name="CanceledError"}nn.inherits(qR,fi,{__CANCEL__:!0});function d5e(e,n,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):n(new fi("Request failed with status code "+r.status,[fi.ERR_BAD_REQUEST,fi.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function b0t(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function S0t(e,n){e=e||10;const r=new Array(e),i=new Array(e);let o=0,a=0,s;return n=n!==void 0?n:1e3,function(c){const u=Date.now(),d=i[a];s||(s=u),r[o]=c,i[o]=u;let f=a,p=0;for(;f!==o;)p+=r[f++],f=f%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-s<n)return;const h=d&&u-d;return h?Math.round(p*1e3/h):void 0}}function E0t(e,n){let r=0,i=1e3/n,o,a;const s=(u,d=Date.now())=>{r=d,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-r;f>=i?s(u,d):(o=u,a||(a=setTimeout(()=>{a=null,s(o)},i-f)))},()=>o&&s(o)]}const TF=(e,n,r=3)=>{let i=0;const o=S0t(50,250);return E0t(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,c=s-i,u=o(c),d=s<=l;i=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:a,lengthComputable:l!=null,[n?"download":"upload"]:!0};e(f)},r)},Ube=(e,n)=>{const r=e!=null;return[i=>n[0]({lengthComputable:r,total:e,loaded:i}),n[1]]},Hbe=e=>(...n)=>nn.asap(()=>e(...n)),C0t=Fc.hasStandardBrowserEnv?((e,n)=>r=>(r=new URL(r,Fc.origin),e.protocol===r.protocol&&e.host===r.host&&(n||e.port===r.port)))(new URL(Fc.origin),Fc.navigator&&/(msie|trident)/i.test(Fc.navigator.userAgent)):()=>!0,w0t=Fc.hasStandardBrowserEnv?{write(e,n,r,i,o,a){const s=[e+"="+encodeURIComponent(n)];nn.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),nn.isString(i)&&s.push("path="+i),nn.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function x0t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function T0t(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function f5e(e,n){return e&&!x0t(n)?T0t(e,n):n}const zbe=e=>e instanceof ud?{...e}:e;function W1(e,n){n=n||{};const r={};function i(u,d,f,p){return nn.isPlainObject(u)&&nn.isPlainObject(d)?nn.merge.call({caseless:p},u,d):nn.isPlainObject(d)?nn.merge({},d):nn.isArray(d)?d.slice():d}function o(u,d,f,p){if(nn.isUndefined(d)){if(!nn.isUndefined(u))return i(void 0,u,f,p)}else return i(u,d,f,p)}function a(u,d){if(!nn.isUndefined(d))return i(void 0,d)}function s(u,d){if(nn.isUndefined(d)){if(!nn.isUndefined(u))return i(void 0,u)}else return i(void 0,d)}function l(u,d,f){if(f in n)return i(u,d);if(f in e)return i(void 0,u)}const c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d,f)=>o(zbe(u),zbe(d),f,!0)};return nn.forEach(Object.keys(Object.assign({},e,n)),function(d){const f=c[d]||o,p=f(e[d],n[d],d);nn.isUndefined(p)&&f!==l||(r[d]=p)}),r}const p5e=e=>{const n=W1({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;n.headers=s=ud.from(s),n.url=s5e(f5e(n.baseURL,n.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(nn.isFormData(r)){if(Fc.hasStandardBrowserEnv||Fc.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...d]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Fc.hasStandardBrowserEnv&&(i&&nn.isFunction(i)&&(i=i(n)),i||i!==!1&&C0t(n.url))){const u=o&&a&&w0t.read(a);u&&s.set(o,u)}return n},O0t=typeof XMLHttpRequest<"u",R0t=O0t&&function(e){return new Promise(function(r,i){const o=p5e(e);let a=o.data;const s=ud.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,f,p,h,g;function v(){h&&h(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function _(){if(!y)return;const b=ud.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:b,config:e,request:y};d5e(function(x){r(x),v()},function(x){i(x),v()},w),y=null}"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(_)},y.onabort=function(){y&&(i(new fi("Request aborted",fi.ECONNABORTED,e,y)),y=null)},y.onerror=function(){i(new fi("Network Error",fi.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||l5e;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),i(new fi(E,w.clarifyTimeoutError?fi.ETIMEDOUT:fi.ECONNABORTED,e,y)),y=null},a===void 0&&s.setContentType(null),"setRequestHeader"in y&&nn.forEach(s.toJSON(),function(E,w){y.setRequestHeader(w,E)}),nn.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),l&&l!=="json"&&(y.responseType=o.responseType),u&&([p,g]=TF(u,!0),y.addEventListener("progress",p)),c&&y.upload&&([f,h]=TF(c),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(d=b=>{y&&(i(!b||b.type?new qR(null,e,y):b),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const S=b0t(o.url);if(S&&Fc.protocols.indexOf(S)===-1){i(new fi("Unsupported protocol "+S+":",fi.ERR_BAD_REQUEST,e));return}y.send(a||null)})},I0t=(e,n)=>{const{length:r}=e=e?e.filter(Boolean):[];if(n||r){let i=new AbortController,o;const a=function(u){if(!o){o=!0,l();const d=u instanceof Error?u:this.reason;i.abort(d instanceof fi?d:new qR(d instanceof Error?d.message:d))}};let s=n&&setTimeout(()=>{s=null,a(new fi(`timeout ${n} of ms exceeded`,fi.ETIMEDOUT))},n);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:c}=i;return c.unsubscribe=()=>nn.asap(l),c}},N0t=function*(e,n){let r=e.byteLength;if(r<n){yield e;return}let i=0,o;for(;i<r;)o=i+n,yield e.slice(i,o),i=o},M0t=async function*(e,n){for await(const r of P0t(e))yield*N0t(r,n)},P0t=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:r,value:i}=await n.read();if(r)break;yield i}}finally{await n.cancel()}},Vbe=(e,n,r,i)=>{const o=M0t(e,n);let a=0,s,l=c=>{s||(s=!0,i&&i(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){l(),c.close();return}let f=d.byteLength;if(r){let p=a+=f;r(p)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},M7=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",h5e=M7&&typeof ReadableStream=="function",A0t=M7&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),g5e=(e,...n)=>{try{return!!e(...n)}catch{return!1}},D0t=h5e&&g5e(()=>{let e=!1;const n=new Request(Fc.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),Gbe=64*1024,qee=h5e&&g5e(()=>nn.isReadableStream(new Response("").body)),OF={stream:qee&&(e=>e.body)};M7&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!OF[n]&&(OF[n]=nn.isFunction(e[n])?r=>r[n]():(r,i)=>{throw new fi(`Response type '${n}' is not supported`,fi.ERR_NOT_SUPPORT,i)})})})(new Response);const k0t=async e=>{if(e==null)return 0;if(nn.isBlob(e))return e.size;if(nn.isSpecCompliantForm(e))return(await new Request(Fc.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(nn.isArrayBufferView(e)||nn.isArrayBuffer(e))return e.byteLength;if(nn.isURLSearchParams(e)&&(e=e+""),nn.isString(e))return(await A0t(e)).byteLength},L0t=async(e,n)=>{const r=nn.toFiniteNumber(e.getContentLength());return r??k0t(n)},$0t=M7&&(async e=>{let{url:n,method:r,data:i,signal:o,cancelToken:a,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:p}=p5e(e);u=u?(u+"").toLowerCase():"text";let h=I0t([o,a&&a.toAbortSignal()],s),g;const v=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(c&&D0t&&r!=="get"&&r!=="head"&&(y=await L0t(d,i))!==0){let w=new Request(n,{method:"POST",body:i,duplex:"half"}),C;if(nn.isFormData(i)&&(C=w.headers.get("content-type"))&&d.setContentType(C),w.body){const[x,T]=Ube(y,TF(Hbe(c)));i=Vbe(w.body,Gbe,x,T)}}nn.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;g=new Request(n,{...p,signal:h,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:_?f:void 0});let S=await fetch(g);const b=qee&&(u==="stream"||u==="response");if(qee&&(l||b&&v)){const w={};["status","statusText","headers"].forEach(R=>{w[R]=S[R]});const C=nn.toFiniteNumber(S.headers.get("content-length")),[x,T]=l&&Ube(C,TF(Hbe(l),!0))||[];S=new Response(Vbe(S.body,Gbe,x,()=>{T&&T(),v&&v()}),w)}u=u||"text";let E=await OF[nn.findKey(OF,u)||"text"](S,e);return!b&&v&&v(),await new Promise((w,C)=>{d5e(w,C,{data:E,headers:ud.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:g})})}catch(_){throw v&&v(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new fi("Network Error",fi.ERR_NETWORK,e,g),{cause:_.cause||_}):fi.from(_,_&&_.code,e,g)}}),Kee={http:Zbt,xhr:R0t,fetch:$0t};nn.forEach(Kee,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Wbe=e=>`- ${e}`,F0t=e=>nn.isFunction(e)||e===null||e===!1,m5e={getAdapter:e=>{e=nn.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let s;if(i=r,!F0t(r)&&(i=Kee[(s=String(r)).toLowerCase()],i===void 0))throw new fi(`Unknown adapter '${s}'`);if(i)break;o[s||"#"+a]=i}if(!i){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
|
||
`+a.map(Wbe).join(`
|
||
`):" "+Wbe(a[0]):"as no adapter specified";throw new fi("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:Kee};function AW(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qR(null,e)}function Ybe(e){return AW(e),e.headers=ud.from(e.headers),e.data=PW.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),m5e.getAdapter(e.adapter||JD.adapter)(e).then(function(i){return AW(e),i.data=PW.call(e,e.transformResponse,i),i.headers=ud.from(i.headers),i},function(i){return u5e(i)||(AW(e),i&&i.response&&(i.response.data=PW.call(e,e.transformResponse,i.response),i.response.headers=ud.from(i.response.headers))),Promise.reject(i)})}const v5e="1.7.9",P7={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{P7[e]=function(i){return typeof i===e||"a"+(n<1?"n ":" ")+e}});const qbe={};P7.transitional=function(n,r,i){function o(a,s){return"[Axios v"+v5e+"] Transitional option '"+a+"'"+s+(i?". "+i:"")}return(a,s,l)=>{if(n===!1)throw new fi(o(s," has been removed"+(r?" in "+r:"")),fi.ERR_DEPRECATED);return r&&!qbe[s]&&(qbe[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(a,s,l):!0}};P7.spelling=function(n){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${n}`),!0)};function B0t(e,n,r){if(typeof e!="object")throw new fi("options must be an object",fi.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],s=n[a];if(s){const l=e[a],c=l===void 0||s(l,a,e);if(c!==!0)throw new fi("option "+a+" must be "+c,fi.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new fi("Unknown option "+a,fi.ERR_BAD_OPTION)}}const A5={assertOptions:B0t,validators:P7},$g=A5.validators;class b1{constructor(n){this.defaults=n,this.interceptors={request:new Bbe,response:new Bbe}}async request(n,r){try{return await this._request(n,r)}catch(i){if(i instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
||
`+a):i.stack=a}catch{}}throw i}}_request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=W1(this.defaults,r);const{transitional:i,paramsSerializer:o,headers:a}=r;i!==void 0&&A5.assertOptions(i,{silentJSONParsing:$g.transitional($g.boolean),forcedJSONParsing:$g.transitional($g.boolean),clarifyTimeoutError:$g.transitional($g.boolean)},!1),o!=null&&(nn.isFunction(o)?r.paramsSerializer={serialize:o}:A5.assertOptions(o,{encode:$g.function,serialize:$g.function},!0)),A5.assertOptions(r,{baseUrl:$g.spelling("baseURL"),withXsrfToken:$g.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=a&&nn.merge(a.common,a[r.method]);a&&nn.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),r.headers=ud.concat(s,a);const l=[];let c=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(c=c&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let d,f=0,p;if(!c){const g=[Ybe.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),p=g.length,d=Promise.resolve(r);f<p;)d=d.then(g[f++],g[f++]);return d}p=l.length;let h=r;for(f=0;f<p;){const g=l[f++],v=l[f++];try{h=g(h)}catch(y){v.call(this,y);break}}try{d=Ybe.call(this,h)}catch(g){return Promise.reject(g)}for(f=0,p=u.length;f<p;)d=d.then(u[f++],u[f++]);return d}getUri(n){n=W1(this.defaults,n);const r=f5e(n.baseURL,n.url);return s5e(r,n.params,n.paramsSerializer)}}nn.forEach(["delete","get","head","options"],function(n){b1.prototype[n]=function(r,i){return this.request(W1(i||{},{method:n,url:r,data:(i||{}).data}))}});nn.forEach(["post","put","patch"],function(n){function r(i){return function(a,s,l){return this.request(W1(l||{},{method:n,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}b1.prototype[n]=r(),b1.prototype[n+"Form"]=r(!0)});class xle{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const i=this;this.promise.then(o=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](o);i._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(l=>{i.subscribe(l),a=l}).then(o);return s.cancel=function(){i.unsubscribe(a)},s},n(function(a,s,l){i.reason||(i.reason=new qR(a,s,l),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const n=new AbortController,r=i=>{n.abort(i)};return this.subscribe(r),n.signal.unsubscribe=()=>this.unsubscribe(r),n.signal}static source(){let n;return{token:new xle(function(o){n=o}),cancel:n}}}function j0t(e){return function(r){return e.apply(null,r)}}function U0t(e){return nn.isObject(e)&&e.isAxiosError===!0}const Xee={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(Xee).forEach(([e,n])=>{Xee[n]=e});function y5e(e){const n=new b1(e),r=K4e(b1.prototype.request,n);return nn.extend(r,b1.prototype,n,{allOwnKeys:!0}),nn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(o){return y5e(W1(e,o))},r}const Gs=y5e(JD);Gs.Axios=b1;Gs.CanceledError=qR;Gs.CancelToken=xle;Gs.isCancel=u5e;Gs.VERSION=v5e;Gs.toFormData=N7;Gs.AxiosError=fi;Gs.Cancel=Gs.CanceledError;Gs.all=function(n){return Promise.all(n)};Gs.spread=j0t;Gs.isAxiosError=U0t;Gs.mergeConfig=W1;Gs.AxiosHeaders=ud;Gs.formToJSON=e=>c5e(nn.isHTMLForm(e)?new FormData(e):e);Gs.getAdapter=m5e.getAdapter;Gs.HttpStatusCode=Xee;Gs.default=Gs;function H0t(e){return{all:e=e||new Map,on:function(n,r){var i=e.get(n);i?i.push(r):e.set(n,[r])},off:function(n,r){var i=e.get(n);i&&(r?i.splice(i.indexOf(r)>>>0,1):e.set(n,[]))},emit:function(n,r){var i=e.get(n);i&&i.slice().map(function(o){o(r)}),(i=e.get("*"))&&i.slice().map(function(o){o(n,r)})}}}const Qr=H0t();async function z0t(){return so("/config/bytedesk/properties",{method:"GET",params:{client:xo}})}async function _5e(){try{const n=(await Gs.get("/agenticflow/config.json")).data;if(n.enabled)console.log("config enabled: ",n),localStorage.setItem(D2,"true"),localStorage.setItem(I5,n.apiUrl),localStorage.setItem(N5,n.websocketUrl),localStorage.setItem(OW,n.htmlUrl);else if(cyt===N4e){console.log("config opensource");const r=window.location.port,i=window.location.protocol+"//"+window.location.hostname+":"+r,o="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",i," port:",r," websocketUrl:",o),localStorage.setItem(D2,"true"),localStorage.setItem(I5,i),localStorage.setItem(N5,o),localStorage.setItem(OW,i)}else console.log("config disabled"),localStorage.setItem(D2,gyt),localStorage.removeItem(I5),localStorage.removeItem(N5),localStorage.removeItem(OW)}catch(e){console.log("loadConfig error: ",e)}}function A7(){const e=localStorage.getItem(eT);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(XM);return r===null?TW:r}if(localStorage.getItem(D2)==="true"){const r=localStorage.getItem(I5);return r===null?TW:r}return TW}function RF(){return A7()+"/api/v1/upload/file"}function V0t(){const e=localStorage.getItem(eT);if(console.log("custom_enabled: ",e),e==="true"){const i=localStorage.getItem(QM);return i===null?dbe:i}const n=localStorage.getItem(D2),r=localStorage.getItem(N5);return n==="true"?r:dbe}async function b5e(){const e=await z0t();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem(myt,JSON.stringify(e.data.data)),e.data.data):null}const so=Gs.create({timeout:2e4,baseURL:A7(),paramsSerializer:{indexes:null}});so.interceptors.request.use(e=>{e.baseURL=A7();const n=localStorage.getItem(G1);return n&&n.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${n}`),!n&&e.url.startsWith("/api")?Promise.reject(G0t):e},e=>(console.debug("request error",e),e.response.status===403&&Qr.emit(Jb,"403"),e.response.status===401&&Qr.emit(Jb,"401"),Promise.reject(e)));so.interceptors.response.use(e=>e,e=>{var n,r,i;if(console.debug("response error",e),e!=null&&e.response)switch((n=e==null?void 0:e.response)==null?void 0:n.status){case 400:console.log("axios interception error 400"),Qr.emit(Jb,"400");break;case 401:console.log("axios interception error 401"),Qr.emit(Jb,"401");break;case 403:console.log("axios interception error 403"),Qr.emit(Jb,"403");break;case 500:console.log("axios interception error 500"),Qr.emit(yyt,"500");break;case 601:console.log("axios interception error 601",e.message);break}return Promise.resolve({message:e==null?void 0:e.message,code:(r=e==null?void 0:e.response)==null?void 0:r.status,data:{message:e==null?void 0:e.message,code:(i=e==null?void 0:e.response)==null?void 0:i.status,data:!1}})});const DW={data:null,status:601,statusText:P4e,headers:{},config:{headers:void 0},request:null},G0t={message:"匿名用户,无需访问服务器接口",name:P4e,code:"601",config:DW.config,request:DW.request,response:DW,isAxiosError:!0,toJSON:function(){return{message:this.message,name:this.name,code:this.code,config:this.config,request:this.request,response:this.response}}};async function W0t(e){return so("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:xo}})}async function Y0t(e){return so("/api/v1/agent/update",{method:"POST",data:{...e,client:xo}})}async function q0t(e){return so("/api/v1/agent/update/status",{method:"POST",data:{...e,client:xo}})}async function K0t(e){return so("/api/v1/message/unread/query",{method:"GET",params:{userUid:e,client:xo}})}async function X0t(e){return so("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:xo}})}var Tle=Object.defineProperty,Q0t=Object.getOwnPropertyDescriptor,Z0t=Object.getOwnPropertyNames,J0t=Object.prototype.hasOwnProperty,bc=(e,n)=>()=>(e&&(n=e(e=0)),n),On=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),GC=(e,n)=>{for(var r in n)Tle(e,r,{get:n[r],enumerable:!0})},eSt=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Z0t(n))!J0t.call(e,o)&&o!==r&&Tle(e,o,{get:()=>n[o],enumerable:!(i=Q0t(n,o))||i.enumerable});return e},na=e=>eSt(Tle({},"__esModule",{value:!0}),e),fn=bc(()=>{}),Ao={};GC(Ao,{_debugEnd:()=>Ite,_debugProcess:()=>Rte,_events:()=>Vte,_eventsCount:()=>Gte,_exiting:()=>hte,_fatalExceptions:()=>xte,_getActiveHandles:()=>O5e,_getActiveRequests:()=>T5e,_kill:()=>vte,_linkedBinding:()=>w5e,_maxListeners:()=>zte,_preload_modules:()=>Ute,_rawDebug:()=>dte,_startProfilerIdleNotifier:()=>Nte,_stopProfilerIdleNotifier:()=>Mte,_tickCallback:()=>Ote,abort:()=>kte,addListener:()=>Wte,allowedNodeEnvironmentFlags:()=>Cte,arch:()=>Zee,argv:()=>tte,argv0:()=>jte,assert:()=>R5e,binding:()=>ate,chdir:()=>cte,config:()=>gte,cpuUsage:()=>ZM,cwd:()=>lte,debugPort:()=>Bte,default:()=>Rle,dlopen:()=>x5e,domain:()=>pte,emit:()=>Qte,emitWarning:()=>ote,env:()=>ete,execArgv:()=>nte,execPath:()=>Fte,exit:()=>Ste,features:()=>wte,hasUncaughtExceptionCaptureCallback:()=>I5e,hrtime:()=>D5,kill:()=>bte,listeners:()=>M5e,memoryUsage:()=>_te,moduleLoadList:()=>fte,nextTick:()=>E5e,off:()=>qte,on:()=>Nv,once:()=>Yte,openStdin:()=>Ete,pid:()=>Lte,platform:()=>Jee,ppid:()=>$te,prependListener:()=>Zte,prependOnceListener:()=>Jte,reallyExit:()=>mte,release:()=>ute,removeAllListeners:()=>Xte,removeListener:()=>Kte,resourceUsage:()=>yte,setSourceMapsEnabled:()=>Hte,setUncaughtExceptionCaptureCallback:()=>Tte,stderr:()=>Ate,stdin:()=>Dte,stdout:()=>Pte,title:()=>Qee,umask:()=>ste,uptime:()=>N5e,version:()=>rte,versions:()=>ite});function Ole(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function tSt(){!S1||!XE||(S1=!1,XE.length?am=XE.concat(am):k2=-1,am.length&&S5e())}function S5e(){if(!S1){var e=setTimeout(tSt,0);S1=!0;for(var n=am.length;n;){for(XE=am,am=[];++k2<n;)XE&&XE[k2].run();k2=-1,n=am.length}XE=null,S1=!1,clearTimeout(e)}}function E5e(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];am.push(new C5e(e,n)),am.length===1&&!S1&&setTimeout(S5e,0)}function C5e(e,n){this.fun=e,this.array=n}function Ic(){}function w5e(e){Ole("_linkedBinding")}function x5e(e){Ole("dlopen")}function T5e(){return[]}function O5e(){return[]}function R5e(e,n){if(!e)throw new Error(n||"assertion error")}function I5e(){return!1}function N5e(){return Uv.now()/1e3}function D5(e){var n=Math.floor((Date.now()-Uv.now())*.001),r=Uv.now()*.001,i=Math.floor(r)+n,o=Math.floor(r%1*1e9);return e&&(i=i-e[0],o=o-e[1],o<0&&(i--,o+=k5)),[i,o]}function Nv(){return Rle}function M5e(e){return[]}var am,S1,XE,k2,Qee,Zee,Jee,ete,tte,nte,rte,ite,ote,ate,ste,lte,cte,ute,dte,fte,pte,hte,gte,mte,vte,ZM,yte,_te,bte,Ste,Ete,Cte,wte,xte,Tte,Ote,Rte,Ite,Nte,Mte,Pte,Ate,Dte,kte,Lte,$te,Fte,Bte,jte,Ute,Hte,Uv,kW,k5,zte,Vte,Gte,Wte,Yte,qte,Kte,Xte,Qte,Zte,Jte,Rle,nSt=bc(()=>{fn(),hn(),pn(),am=[],S1=!1,k2=-1,C5e.prototype.run=function(){this.fun.apply(null,this.array)},Qee="browser",Zee="x64",Jee="browser",ete={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},tte=["/usr/bin/node"],nte=[],rte="v16.8.0",ite={},ote=function(e,n){console.warn((n?n+": ":"")+e)},ate=function(e){Ole("binding")},ste=function(e){return 0},lte=function(){return"/"},cte=function(e){},ute={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},dte=Ic,fte=[],pte={},hte=!1,gte={},mte=Ic,vte=Ic,ZM=function(){return{}},yte=ZM,_te=ZM,bte=Ic,Ste=Ic,Ete=Ic,Cte={},wte={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},xte=Ic,Tte=Ic,Ote=Ic,Rte=Ic,Ite=Ic,Nte=Ic,Mte=Ic,Pte=void 0,Ate=void 0,Dte=void 0,kte=Ic,Lte=2,$te=1,Fte="/bin/usr/node",Bte=9229,jte="node",Ute=[],Hte=Ic,Uv={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Uv.now===void 0&&(kW=Date.now(),Uv.timing&&Uv.timing.navigationStart&&(kW=Uv.timing.navigationStart),Uv.now=()=>Date.now()-kW),k5=1e9,D5.bigint=function(e){var n=D5(e);return typeof BigInt>"u"?n[0]*k5+n[1]:BigInt(n[0]*k5)+BigInt(n[1])},zte=10,Vte={},Gte=0,Wte=Nv,Yte=Nv,qte=Nv,Kte=Nv,Xte=Nv,Qte=Ic,Zte=Nv,Jte=Nv,Rle={version:rte,versions:ite,arch:Zee,platform:Jee,release:ute,_rawDebug:dte,moduleLoadList:fte,binding:ate,_linkedBinding:w5e,_events:Vte,_eventsCount:Gte,_maxListeners:zte,on:Nv,addListener:Wte,once:Yte,off:qte,removeListener:Kte,removeAllListeners:Xte,emit:Qte,prependListener:Zte,prependOnceListener:Jte,listeners:M5e,domain:pte,_exiting:hte,config:gte,dlopen:x5e,uptime:N5e,_getActiveRequests:T5e,_getActiveHandles:O5e,reallyExit:mte,_kill:vte,cpuUsage:ZM,resourceUsage:yte,memoryUsage:_te,kill:bte,exit:Ste,openStdin:Ete,allowedNodeEnvironmentFlags:Cte,assert:R5e,features:wte,_fatalExceptions:xte,setUncaughtExceptionCaptureCallback:Tte,hasUncaughtExceptionCaptureCallback:I5e,emitWarning:ote,nextTick:E5e,_tickCallback:Ote,_debugProcess:Rte,_debugEnd:Ite,_startProfilerIdleNotifier:Nte,_stopProfilerIdleNotifier:Mte,stdout:Pte,stdin:Dte,stderr:Ate,abort:kte,umask:ste,chdir:cte,cwd:lte,env:ete,title:Qee,argv:tte,execArgv:nte,pid:Lte,ppid:$te,execPath:Fte,debugPort:Bte,hrtime:D5,argv0:jte,_preload_modules:Ute,setSourceMapsEnabled:Hte}}),pn=bc(()=>{nSt()}),Sc={};GC(Sc,{Buffer:()=>IF,INSPECT_MAX_BYTES:()=>P5e,default:()=>Mv,kMaxLength:()=>A5e});function rSt(){if(ene)return Kx;ene=!0,Kx.byteLength=l,Kx.toByteArray=u,Kx.fromByteArray=p;for(var e=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=i.length;o<a;++o)e[o]=i[o],n[i.charCodeAt(o)]=o;n[45]=62,n[95]=63;function s(h){var g=h.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=h.indexOf("=");v===-1&&(v=g);var y=v===g?0:4-v%4;return[v,y]}function l(h){var g=s(h),v=g[0],y=g[1];return(v+y)*3/4-y}function c(h,g,v){return(g+v)*3/4-v}function u(h){var g,v=s(h),y=v[0],_=v[1],S=new r(c(h,y,_)),b=0,E=_>0?y-4:y,w;for(w=0;w<E;w+=4)g=n[h.charCodeAt(w)]<<18|n[h.charCodeAt(w+1)]<<12|n[h.charCodeAt(w+2)]<<6|n[h.charCodeAt(w+3)],S[b++]=g>>16&255,S[b++]=g>>8&255,S[b++]=g&255;return _===2&&(g=n[h.charCodeAt(w)]<<2|n[h.charCodeAt(w+1)]>>4,S[b++]=g&255),_===1&&(g=n[h.charCodeAt(w)]<<10|n[h.charCodeAt(w+1)]<<4|n[h.charCodeAt(w+2)]>>2,S[b++]=g>>8&255,S[b++]=g&255),S}function d(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function f(h,g,v){for(var y,_=[],S=g;S<v;S+=3)y=(h[S]<<16&16711680)+(h[S+1]<<8&65280)+(h[S+2]&255),_.push(d(y));return _.join("")}function p(h){for(var g,v=h.length,y=v%3,_=[],S=16383,b=0,E=v-y;b<E;b+=S)_.push(f(h,b,b+S>E?E:b+S));return y===1?(g=h[v-1],_.push(e[g>>2]+e[g<<4&63]+"==")):y===2&&(g=(h[v-2]<<8)+h[v-1],_.push(e[g>>10]+e[g>>4&63]+e[g<<2&63]+"=")),_.join("")}return Kx}function iSt(){return tne?JM:(tne=!0,JM.read=function(e,n,r,i,o){var a,s,l=o*8-i-1,c=(1<<l)-1,u=c>>1,d=-7,f=r?o-1:0,p=r?-1:1,h=e[n+f];for(f+=p,a=h&(1<<-d)-1,h>>=-d,d+=l;d>0;a=a*256+e[n+f],f+=p,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=i;d>0;s=s*256+e[n+f],f+=p,d-=8);if(a===0)a=1-u;else{if(a===c)return s?NaN:(h?-1:1)*(1/0);s=s+Math.pow(2,i),a=a-u}return(h?-1:1)*s*Math.pow(2,a-i)},JM.write=function(e,n,r,i,o,a){var s,l,c,u=a*8-o-1,d=(1<<u)-1,f=d>>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:a-1,g=i?1:-1,v=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(l=isNaN(n)?1:0,s=d):(s=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+f>=1?n+=p/c:n+=p*Math.pow(2,1-f),n*c>=2&&(s++,c/=2),s+f>=d?(l=0,s=d):s+f>=1?(l=(n*c-1)*Math.pow(2,o),s=s+f):(l=n*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+h]=l&255,h+=g,l/=256,o-=8);for(s=s<<o|l,u+=o;u>0;e[r+h]=s&255,h+=g,s/=256,u-=8);e[r+h-g]|=v*128},JM)}function oSt(){if(nne)return rb;nne=!0;let e=rSt(),n=iSt(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;rb.Buffer=s,rb.SlowBuffer=_,rb.INSPECT_MAX_BYTES=50;let i=2147483647;rb.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{let ne=new Uint8Array(1),J={foo:function(){return 42}};return Object.setPrototypeOf(J,Uint8Array.prototype),Object.setPrototypeOf(ne,J),ne.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(ne){if(ne>i)throw new RangeError('The value "'+ne+'" is invalid for option "size"');let J=new Uint8Array(ne);return Object.setPrototypeOf(J,s.prototype),J}function s(ne,J,ae){if(typeof ne=="number"){if(typeof J=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(ne)}return l(ne,J,ae)}s.poolSize=8192;function l(ne,J,ae){if(typeof ne=="string")return f(ne,J);if(ArrayBuffer.isView(ne))return h(ne);if(ne==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ne);if(Re(ne,ArrayBuffer)||ne&&Re(ne.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Re(ne,SharedArrayBuffer)||ne&&Re(ne.buffer,SharedArrayBuffer)))return g(ne,J,ae);if(typeof ne=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let Se=ne.valueOf&&ne.valueOf();if(Se!=null&&Se!==ne)return s.from(Se,J,ae);let xe=v(ne);if(xe)return xe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ne[Symbol.toPrimitive]=="function")return s.from(ne[Symbol.toPrimitive]("string"),J,ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ne)}s.from=function(ne,J,ae){return l(ne,J,ae)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(ne){if(typeof ne!="number")throw new TypeError('"size" argument must be of type number');if(ne<0)throw new RangeError('The value "'+ne+'" is invalid for option "size"')}function u(ne,J,ae){return c(ne),ne<=0?a(ne):J!==void 0?typeof ae=="string"?a(ne).fill(J,ae):a(ne).fill(J):a(ne)}s.alloc=function(ne,J,ae){return u(ne,J,ae)};function d(ne){return c(ne),a(ne<0?0:y(ne)|0)}s.allocUnsafe=function(ne){return d(ne)},s.allocUnsafeSlow=function(ne){return d(ne)};function f(ne,J){if((typeof J!="string"||J==="")&&(J="utf8"),!s.isEncoding(J))throw new TypeError("Unknown encoding: "+J);let ae=S(ne,J)|0,Se=a(ae),xe=Se.write(ne,J);return xe!==ae&&(Se=Se.slice(0,xe)),Se}function p(ne){let J=ne.length<0?0:y(ne.length)|0,ae=a(J);for(let Se=0;Se<J;Se+=1)ae[Se]=ne[Se]&255;return ae}function h(ne){if(Re(ne,Uint8Array)){let J=new Uint8Array(ne);return g(J.buffer,J.byteOffset,J.byteLength)}return p(ne)}function g(ne,J,ae){if(J<0||ne.byteLength<J)throw new RangeError('"offset" is outside of buffer bounds');if(ne.byteLength<J+(ae||0))throw new RangeError('"length" is outside of buffer bounds');let Se;return J===void 0&&ae===void 0?Se=new Uint8Array(ne):ae===void 0?Se=new Uint8Array(ne,J):Se=new Uint8Array(ne,J,ae),Object.setPrototypeOf(Se,s.prototype),Se}function v(ne){if(s.isBuffer(ne)){let J=y(ne.length)|0,ae=a(J);return ae.length===0||ne.copy(ae,0,0,J),ae}if(ne.length!==void 0)return typeof ne.length!="number"||Te(ne.length)?a(0):p(ne);if(ne.type==="Buffer"&&Array.isArray(ne.data))return p(ne.data)}function y(ne){if(ne>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return ne|0}function _(ne){return+ne!=ne&&(ne=0),s.alloc(+ne)}s.isBuffer=function(ne){return ne!=null&&ne._isBuffer===!0&&ne!==s.prototype},s.compare=function(ne,J){if(Re(ne,Uint8Array)&&(ne=s.from(ne,ne.offset,ne.byteLength)),Re(J,Uint8Array)&&(J=s.from(J,J.offset,J.byteLength)),!s.isBuffer(ne)||!s.isBuffer(J))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ne===J)return 0;let ae=ne.length,Se=J.length;for(let xe=0,ue=Math.min(ae,Se);xe<ue;++xe)if(ne[xe]!==J[xe]){ae=ne[xe],Se=J[xe];break}return ae<Se?-1:Se<ae?1:0},s.isEncoding=function(ne){switch(String(ne).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(ne,J){if(!Array.isArray(ne))throw new TypeError('"list" argument must be an Array of Buffers');if(ne.length===0)return s.alloc(0);let ae;if(J===void 0)for(J=0,ae=0;ae<ne.length;++ae)J+=ne[ae].length;let Se=s.allocUnsafe(J),xe=0;for(ae=0;ae<ne.length;++ae){let ue=ne[ae];if(Re(ue,Uint8Array))xe+ue.length>Se.length?(s.isBuffer(ue)||(ue=s.from(ue)),ue.copy(Se,xe)):Uint8Array.prototype.set.call(Se,ue,xe);else if(s.isBuffer(ue))ue.copy(Se,xe);else throw new TypeError('"list" argument must be an Array of Buffers');xe+=ue.length}return Se};function S(ne,J){if(s.isBuffer(ne))return ne.length;if(ArrayBuffer.isView(ne)||Re(ne,ArrayBuffer))return ne.byteLength;if(typeof ne!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ne);let ae=ne.length,Se=arguments.length>2&&arguments[2]===!0;if(!Se&&ae===0)return 0;let xe=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return ae;case"utf8":case"utf-8":return be(ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae*2;case"hex":return ae>>>1;case"base64":return Ae(ne).length;default:if(xe)return Se?-1:be(ne).length;J=(""+J).toLowerCase(),xe=!0}}s.byteLength=S;function b(ne,J,ae){let Se=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((ae===void 0||ae>this.length)&&(ae=this.length),ae<=0)||(ae>>>=0,J>>>=0,ae<=J))return"";for(ne||(ne="utf8");;)switch(ne){case"hex":return B(this,J,ae);case"utf8":case"utf-8":return k(this,J,ae);case"ascii":return z(this,J,ae);case"latin1":case"binary":return D(this,J,ae);case"base64":return P(this,J,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,J,ae);default:if(Se)throw new TypeError("Unknown encoding: "+ne);ne=(ne+"").toLowerCase(),Se=!0}}s.prototype._isBuffer=!0;function E(ne,J,ae){let Se=ne[J];ne[J]=ne[ae],ne[ae]=Se}s.prototype.swap16=function(){let ne=this.length;if(ne%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<ne;J+=2)E(this,J,J+1);return this},s.prototype.swap32=function(){let ne=this.length;if(ne%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<ne;J+=4)E(this,J,J+3),E(this,J+1,J+2);return this},s.prototype.swap64=function(){let ne=this.length;if(ne%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<ne;J+=8)E(this,J,J+7),E(this,J+1,J+6),E(this,J+2,J+5),E(this,J+3,J+4);return this},s.prototype.toString=function(){let ne=this.length;return ne===0?"":arguments.length===0?k(this,0,ne):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(ne){if(!s.isBuffer(ne))throw new TypeError("Argument must be a Buffer");return this===ne?!0:s.compare(this,ne)===0},s.prototype.inspect=function(){let ne="",J=rb.INSPECT_MAX_BYTES;return ne=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J&&(ne+=" ... "),"<Buffer "+ne+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(ne,J,ae,Se,xe){if(Re(ne,Uint8Array)&&(ne=s.from(ne,ne.offset,ne.byteLength)),!s.isBuffer(ne))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ne);if(J===void 0&&(J=0),ae===void 0&&(ae=ne?ne.length:0),Se===void 0&&(Se=0),xe===void 0&&(xe=this.length),J<0||ae>ne.length||Se<0||xe>this.length)throw new RangeError("out of range index");if(Se>=xe&&J>=ae)return 0;if(Se>=xe)return-1;if(J>=ae)return 1;if(J>>>=0,ae>>>=0,Se>>>=0,xe>>>=0,this===ne)return 0;let ue=xe-Se,Me=ae-J,$e=Math.min(ue,Me),ge=this.slice(Se,xe),Ve=ne.slice(J,ae);for(let st=0;st<$e;++st)if(ge[st]!==Ve[st]){ue=ge[st],Me=Ve[st];break}return ue<Me?-1:Me<ue?1:0};function w(ne,J,ae,Se,xe){if(ne.length===0)return-1;if(typeof ae=="string"?(Se=ae,ae=0):ae>2147483647?ae=2147483647:ae<-2147483648&&(ae=-2147483648),ae=+ae,Te(ae)&&(ae=xe?0:ne.length-1),ae<0&&(ae=ne.length+ae),ae>=ne.length){if(xe)return-1;ae=ne.length-1}else if(ae<0)if(xe)ae=0;else return-1;if(typeof J=="string"&&(J=s.from(J,Se)),s.isBuffer(J))return J.length===0?-1:C(ne,J,ae,Se,xe);if(typeof J=="number")return J=J&255,typeof Uint8Array.prototype.indexOf=="function"?xe?Uint8Array.prototype.indexOf.call(ne,J,ae):Uint8Array.prototype.lastIndexOf.call(ne,J,ae):C(ne,[J],ae,Se,xe);throw new TypeError("val must be string, number or Buffer")}function C(ne,J,ae,Se,xe){let ue=1,Me=ne.length,$e=J.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(ne.length<2||J.length<2)return-1;ue=2,Me/=2,$e/=2,ae/=2}function ge(st,Je){return ue===1?st[Je]:st.readUInt16BE(Je*ue)}let Ve;if(xe){let st=-1;for(Ve=ae;Ve<Me;Ve++)if(ge(ne,Ve)===ge(J,st===-1?0:Ve-st)){if(st===-1&&(st=Ve),Ve-st+1===$e)return st*ue}else st!==-1&&(Ve-=Ve-st),st=-1}else for(ae+$e>Me&&(ae=Me-$e),Ve=ae;Ve>=0;Ve--){let st=!0;for(let Je=0;Je<$e;Je++)if(ge(ne,Ve+Je)!==ge(J,Je)){st=!1;break}if(st)return Ve}return-1}s.prototype.includes=function(ne,J,ae){return this.indexOf(ne,J,ae)!==-1},s.prototype.indexOf=function(ne,J,ae){return w(this,ne,J,ae,!0)},s.prototype.lastIndexOf=function(ne,J,ae){return w(this,ne,J,ae,!1)};function x(ne,J,ae,Se){ae=Number(ae)||0;let xe=ne.length-ae;Se?(Se=Number(Se),Se>xe&&(Se=xe)):Se=xe;let ue=J.length;Se>ue/2&&(Se=ue/2);let Me;for(Me=0;Me<Se;++Me){let $e=parseInt(J.substr(Me*2,2),16);if(Te($e))return Me;ne[ae+Me]=$e}return Me}function T(ne,J,ae,Se){return Ee(be(J,ne.length-ae),ne,ae,Se)}function R(ne,J,ae,Se){return Ee(we(J),ne,ae,Se)}function O(ne,J,ae,Se){return Ee(Ae(J),ne,ae,Se)}function M(ne,J,ae,Se){return Ee(De(J,ne.length-ae),ne,ae,Se)}s.prototype.write=function(ne,J,ae,Se){if(J===void 0)Se="utf8",ae=this.length,J=0;else if(ae===void 0&&typeof J=="string")Se=J,ae=this.length,J=0;else if(isFinite(J))J=J>>>0,isFinite(ae)?(ae=ae>>>0,Se===void 0&&(Se="utf8")):(Se=ae,ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let xe=this.length-J;if((ae===void 0||ae>xe)&&(ae=xe),ne.length>0&&(ae<0||J<0)||J>this.length)throw new RangeError("Attempt to write outside buffer bounds");Se||(Se="utf8");let ue=!1;for(;;)switch(Se){case"hex":return x(this,ne,J,ae);case"utf8":case"utf-8":return T(this,ne,J,ae);case"ascii":case"latin1":case"binary":return R(this,ne,J,ae);case"base64":return O(this,ne,J,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,ne,J,ae);default:if(ue)throw new TypeError("Unknown encoding: "+Se);Se=(""+Se).toLowerCase(),ue=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(ne,J,ae){return J===0&&ae===ne.length?e.fromByteArray(ne):e.fromByteArray(ne.slice(J,ae))}function k(ne,J,ae){ae=Math.min(ne.length,ae);let Se=[],xe=J;for(;xe<ae;){let ue=ne[xe],Me=null,$e=ue>239?4:ue>223?3:ue>191?2:1;if(xe+$e<=ae){let ge,Ve,st,Je;switch($e){case 1:ue<128&&(Me=ue);break;case 2:ge=ne[xe+1],(ge&192)===128&&(Je=(ue&31)<<6|ge&63,Je>127&&(Me=Je));break;case 3:ge=ne[xe+1],Ve=ne[xe+2],(ge&192)===128&&(Ve&192)===128&&(Je=(ue&15)<<12|(ge&63)<<6|Ve&63,Je>2047&&(Je<55296||Je>57343)&&(Me=Je));break;case 4:ge=ne[xe+1],Ve=ne[xe+2],st=ne[xe+3],(ge&192)===128&&(Ve&192)===128&&(st&192)===128&&(Je=(ue&15)<<18|(ge&63)<<12|(Ve&63)<<6|st&63,Je>65535&&Je<1114112&&(Me=Je))}}Me===null?(Me=65533,$e=1):Me>65535&&(Me-=65536,Se.push(Me>>>10&1023|55296),Me=56320|Me&1023),Se.push(Me),xe+=$e}return U(Se)}let $=4096;function U(ne){let J=ne.length;if(J<=$)return String.fromCharCode.apply(String,ne);let ae="",Se=0;for(;Se<J;)ae+=String.fromCharCode.apply(String,ne.slice(Se,Se+=$));return ae}function z(ne,J,ae){let Se="";ae=Math.min(ne.length,ae);for(let xe=J;xe<ae;++xe)Se+=String.fromCharCode(ne[xe]&127);return Se}function D(ne,J,ae){let Se="";ae=Math.min(ne.length,ae);for(let xe=J;xe<ae;++xe)Se+=String.fromCharCode(ne[xe]);return Se}function B(ne,J,ae){let Se=ne.length;(!J||J<0)&&(J=0),(!ae||ae<0||ae>Se)&&(ae=Se);let xe="";for(let ue=J;ue<ae;++ue)xe+=Oe[ne[ue]];return xe}function Y(ne,J,ae){let Se=ne.slice(J,ae),xe="";for(let ue=0;ue<Se.length-1;ue+=2)xe+=String.fromCharCode(Se[ue]+Se[ue+1]*256);return xe}s.prototype.slice=function(ne,J){let ae=this.length;ne=~~ne,J=J===void 0?ae:~~J,ne<0?(ne+=ae,ne<0&&(ne=0)):ne>ae&&(ne=ae),J<0?(J+=ae,J<0&&(J=0)):J>ae&&(J=ae),J<ne&&(J=ne);let Se=this.subarray(ne,J);return Object.setPrototypeOf(Se,s.prototype),Se};function q(ne,J,ae){if(ne%1!==0||ne<0)throw new RangeError("offset is not uint");if(ne+J>ae)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(ne,J,ae){ne=ne>>>0,J=J>>>0,ae||q(ne,J,this.length);let Se=this[ne],xe=1,ue=0;for(;++ue<J&&(xe*=256);)Se+=this[ne+ue]*xe;return Se},s.prototype.readUintBE=s.prototype.readUIntBE=function(ne,J,ae){ne=ne>>>0,J=J>>>0,ae||q(ne,J,this.length);let Se=this[ne+--J],xe=1;for(;J>0&&(xe*=256);)Se+=this[ne+--J]*xe;return Se},s.prototype.readUint8=s.prototype.readUInt8=function(ne,J){return ne=ne>>>0,J||q(ne,1,this.length),this[ne]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(ne,J){return ne=ne>>>0,J||q(ne,2,this.length),this[ne]|this[ne+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(ne,J){return ne=ne>>>0,J||q(ne,2,this.length),this[ne]<<8|this[ne+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),(this[ne]|this[ne+1]<<8|this[ne+2]<<16)+this[ne+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),this[ne]*16777216+(this[ne+1]<<16|this[ne+2]<<8|this[ne+3])},s.prototype.readBigUInt64LE=Ne(function(ne){ne=ne>>>0,pe(ne,"offset");let J=this[ne],ae=this[ne+7];(J===void 0||ae===void 0)&&me(ne,this.length-8);let Se=J+this[++ne]*2**8+this[++ne]*2**16+this[++ne]*2**24,xe=this[++ne]+this[++ne]*2**8+this[++ne]*2**16+ae*2**24;return BigInt(Se)+(BigInt(xe)<<BigInt(32))}),s.prototype.readBigUInt64BE=Ne(function(ne){ne=ne>>>0,pe(ne,"offset");let J=this[ne],ae=this[ne+7];(J===void 0||ae===void 0)&&me(ne,this.length-8);let Se=J*2**24+this[++ne]*2**16+this[++ne]*2**8+this[++ne],xe=this[++ne]*2**24+this[++ne]*2**16+this[++ne]*2**8+ae;return(BigInt(Se)<<BigInt(32))+BigInt(xe)}),s.prototype.readIntLE=function(ne,J,ae){ne=ne>>>0,J=J>>>0,ae||q(ne,J,this.length);let Se=this[ne],xe=1,ue=0;for(;++ue<J&&(xe*=256);)Se+=this[ne+ue]*xe;return xe*=128,Se>=xe&&(Se-=Math.pow(2,8*J)),Se},s.prototype.readIntBE=function(ne,J,ae){ne=ne>>>0,J=J>>>0,ae||q(ne,J,this.length);let Se=J,xe=1,ue=this[ne+--Se];for(;Se>0&&(xe*=256);)ue+=this[ne+--Se]*xe;return xe*=128,ue>=xe&&(ue-=Math.pow(2,8*J)),ue},s.prototype.readInt8=function(ne,J){return ne=ne>>>0,J||q(ne,1,this.length),this[ne]&128?(255-this[ne]+1)*-1:this[ne]},s.prototype.readInt16LE=function(ne,J){ne=ne>>>0,J||q(ne,2,this.length);let ae=this[ne]|this[ne+1]<<8;return ae&32768?ae|4294901760:ae},s.prototype.readInt16BE=function(ne,J){ne=ne>>>0,J||q(ne,2,this.length);let ae=this[ne+1]|this[ne]<<8;return ae&32768?ae|4294901760:ae},s.prototype.readInt32LE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),this[ne]|this[ne+1]<<8|this[ne+2]<<16|this[ne+3]<<24},s.prototype.readInt32BE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),this[ne]<<24|this[ne+1]<<16|this[ne+2]<<8|this[ne+3]},s.prototype.readBigInt64LE=Ne(function(ne){ne=ne>>>0,pe(ne,"offset");let J=this[ne],ae=this[ne+7];(J===void 0||ae===void 0)&&me(ne,this.length-8);let Se=this[ne+4]+this[ne+5]*2**8+this[ne+6]*2**16+(ae<<24);return(BigInt(Se)<<BigInt(32))+BigInt(J+this[++ne]*2**8+this[++ne]*2**16+this[++ne]*2**24)}),s.prototype.readBigInt64BE=Ne(function(ne){ne=ne>>>0,pe(ne,"offset");let J=this[ne],ae=this[ne+7];(J===void 0||ae===void 0)&&me(ne,this.length-8);let Se=(J<<24)+this[++ne]*2**16+this[++ne]*2**8+this[++ne];return(BigInt(Se)<<BigInt(32))+BigInt(this[++ne]*2**24+this[++ne]*2**16+this[++ne]*2**8+ae)}),s.prototype.readFloatLE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),n.read(this,ne,!0,23,4)},s.prototype.readFloatBE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),n.read(this,ne,!1,23,4)},s.prototype.readDoubleLE=function(ne,J){return ne=ne>>>0,J||q(ne,8,this.length),n.read(this,ne,!0,52,8)},s.prototype.readDoubleBE=function(ne,J){return ne=ne>>>0,J||q(ne,8,this.length),n.read(this,ne,!1,52,8)};function K(ne,J,ae,Se,xe,ue){if(!s.isBuffer(ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>xe||J<ue)throw new RangeError('"value" argument is out of bounds');if(ae+Se>ne.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(ne,J,ae,Se){if(ne=+ne,J=J>>>0,ae=ae>>>0,!Se){let Me=Math.pow(2,8*ae)-1;K(this,ne,J,ae,Me,0)}let xe=1,ue=0;for(this[J]=ne&255;++ue<ae&&(xe*=256);)this[J+ue]=ne/xe&255;return J+ae},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(ne,J,ae,Se){if(ne=+ne,J=J>>>0,ae=ae>>>0,!Se){let Me=Math.pow(2,8*ae)-1;K(this,ne,J,ae,Me,0)}let xe=ae-1,ue=1;for(this[J+xe]=ne&255;--xe>=0&&(ue*=256);)this[J+xe]=ne/ue&255;return J+ae},s.prototype.writeUint8=s.prototype.writeUInt8=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,1,255,0),this[J]=ne&255,J+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,2,65535,0),this[J]=ne&255,this[J+1]=ne>>>8,J+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,2,65535,0),this[J]=ne>>>8,this[J+1]=ne&255,J+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,4,4294967295,0),this[J+3]=ne>>>24,this[J+2]=ne>>>16,this[J+1]=ne>>>8,this[J]=ne&255,J+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,4,4294967295,0),this[J]=ne>>>24,this[J+1]=ne>>>16,this[J+2]=ne>>>8,this[J+3]=ne&255,J+4};function H(ne,J,ae,Se,xe){de(J,Se,xe,ne,ae,7);let ue=Number(J&BigInt(4294967295));ne[ae++]=ue,ue=ue>>8,ne[ae++]=ue,ue=ue>>8,ne[ae++]=ue,ue=ue>>8,ne[ae++]=ue;let Me=Number(J>>BigInt(32)&BigInt(4294967295));return ne[ae++]=Me,Me=Me>>8,ne[ae++]=Me,Me=Me>>8,ne[ae++]=Me,Me=Me>>8,ne[ae++]=Me,ae}function G(ne,J,ae,Se,xe){de(J,Se,xe,ne,ae,7);let ue=Number(J&BigInt(4294967295));ne[ae+7]=ue,ue=ue>>8,ne[ae+6]=ue,ue=ue>>8,ne[ae+5]=ue,ue=ue>>8,ne[ae+4]=ue;let Me=Number(J>>BigInt(32)&BigInt(4294967295));return ne[ae+3]=Me,Me=Me>>8,ne[ae+2]=Me,Me=Me>>8,ne[ae+1]=Me,Me=Me>>8,ne[ae]=Me,ae+8}s.prototype.writeBigUInt64LE=Ne(function(ne,J=0){return H(this,ne,J,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Ne(function(ne,J=0){return G(this,ne,J,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(ne,J,ae,Se){if(ne=+ne,J=J>>>0,!Se){let $e=Math.pow(2,8*ae-1);K(this,ne,J,ae,$e-1,-$e)}let xe=0,ue=1,Me=0;for(this[J]=ne&255;++xe<ae&&(ue*=256);)ne<0&&Me===0&&this[J+xe-1]!==0&&(Me=1),this[J+xe]=(ne/ue>>0)-Me&255;return J+ae},s.prototype.writeIntBE=function(ne,J,ae,Se){if(ne=+ne,J=J>>>0,!Se){let $e=Math.pow(2,8*ae-1);K(this,ne,J,ae,$e-1,-$e)}let xe=ae-1,ue=1,Me=0;for(this[J+xe]=ne&255;--xe>=0&&(ue*=256);)ne<0&&Me===0&&this[J+xe+1]!==0&&(Me=1),this[J+xe]=(ne/ue>>0)-Me&255;return J+ae},s.prototype.writeInt8=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,1,127,-128),ne<0&&(ne=255+ne+1),this[J]=ne&255,J+1},s.prototype.writeInt16LE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,2,32767,-32768),this[J]=ne&255,this[J+1]=ne>>>8,J+2},s.prototype.writeInt16BE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,2,32767,-32768),this[J]=ne>>>8,this[J+1]=ne&255,J+2},s.prototype.writeInt32LE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,4,2147483647,-2147483648),this[J]=ne&255,this[J+1]=ne>>>8,this[J+2]=ne>>>16,this[J+3]=ne>>>24,J+4},s.prototype.writeInt32BE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,4,2147483647,-2147483648),ne<0&&(ne=4294967295+ne+1),this[J]=ne>>>24,this[J+1]=ne>>>16,this[J+2]=ne>>>8,this[J+3]=ne&255,J+4},s.prototype.writeBigInt64LE=Ne(function(ne,J=0){return H(this,ne,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Ne(function(ne,J=0){return G(this,ne,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Q(ne,J,ae,Se,xe,ue){if(ae+Se>ne.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("Index out of range")}function le(ne,J,ae,Se,xe){return J=+J,ae=ae>>>0,xe||Q(ne,J,ae,4),n.write(ne,J,ae,Se,23,4),ae+4}s.prototype.writeFloatLE=function(ne,J,ae){return le(this,ne,J,!0,ae)},s.prototype.writeFloatBE=function(ne,J,ae){return le(this,ne,J,!1,ae)};function Z(ne,J,ae,Se,xe){return J=+J,ae=ae>>>0,xe||Q(ne,J,ae,8),n.write(ne,J,ae,Se,52,8),ae+8}s.prototype.writeDoubleLE=function(ne,J,ae){return Z(this,ne,J,!0,ae)},s.prototype.writeDoubleBE=function(ne,J,ae){return Z(this,ne,J,!1,ae)},s.prototype.copy=function(ne,J,ae,Se){if(!s.isBuffer(ne))throw new TypeError("argument should be a Buffer");if(ae||(ae=0),!Se&&Se!==0&&(Se=this.length),J>=ne.length&&(J=ne.length),J||(J=0),Se>0&&Se<ae&&(Se=ae),Se===ae||ne.length===0||this.length===0)return 0;if(J<0)throw new RangeError("targetStart out of bounds");if(ae<0||ae>=this.length)throw new RangeError("Index out of range");if(Se<0)throw new RangeError("sourceEnd out of bounds");Se>this.length&&(Se=this.length),ne.length-J<Se-ae&&(Se=ne.length-J+ae);let xe=Se-ae;return this===ne&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(J,ae,Se):Uint8Array.prototype.set.call(ne,this.subarray(ae,Se),J),xe},s.prototype.fill=function(ne,J,ae,Se){if(typeof ne=="string"){if(typeof J=="string"?(Se=J,J=0,ae=this.length):typeof ae=="string"&&(Se=ae,ae=this.length),Se!==void 0&&typeof Se!="string")throw new TypeError("encoding must be a string");if(typeof Se=="string"&&!s.isEncoding(Se))throw new TypeError("Unknown encoding: "+Se);if(ne.length===1){let ue=ne.charCodeAt(0);(Se==="utf8"&&ue<128||Se==="latin1")&&(ne=ue)}}else typeof ne=="number"?ne=ne&255:typeof ne=="boolean"&&(ne=Number(ne));if(J<0||this.length<J||this.length<ae)throw new RangeError("Out of range index");if(ae<=J)return this;J=J>>>0,ae=ae===void 0?this.length:ae>>>0,ne||(ne=0);let xe;if(typeof ne=="number")for(xe=J;xe<ae;++xe)this[xe]=ne;else{let ue=s.isBuffer(ne)?ne:s.from(ne,Se),Me=ue.length;if(Me===0)throw new TypeError('The value "'+ne+'" is invalid for argument "value"');for(xe=0;xe<ae-J;++xe)this[xe+J]=ue[xe%Me]}return this};let j={};function F(ne,J,ae){j[ne]=class extends ae{constructor(){super(),Object.defineProperty(this,"message",{value:J.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${ne}]`,this.stack,delete this.name}get code(){return ne}set code(Se){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Se,writable:!0})}toString(){return`${this.name} [${ne}]: ${this.message}`}}}F("ERR_BUFFER_OUT_OF_BOUNDS",function(ne){return ne?`${ne} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(ne,J){return`The "${ne}" argument must be of type number. Received type ${typeof J}`},TypeError),F("ERR_OUT_OF_RANGE",function(ne,J,ae){let Se=`The value of "${ne}" is out of range.`,xe=ae;return Number.isInteger(ae)&&Math.abs(ae)>2**32?xe=te(String(ae)):typeof ae=="bigint"&&(xe=String(ae),(ae>BigInt(2)**BigInt(32)||ae<-(BigInt(2)**BigInt(32)))&&(xe=te(xe)),xe+="n"),Se+=` It must be ${J}. Received ${xe}`,Se},RangeError);function te(ne){let J="",ae=ne.length,Se=ne[0]==="-"?1:0;for(;ae>=Se+4;ae-=3)J=`_${ne.slice(ae-3,ae)}${J}`;return`${ne.slice(0,ae)}${J}`}function oe(ne,J,ae){pe(J,"offset"),(ne[J]===void 0||ne[J+ae]===void 0)&&me(J,ne.length-(ae+1))}function de(ne,J,ae,Se,xe,ue){if(ne>ae||ne<J){let Me=typeof J=="bigint"?"n":"",$e;throw J===0||J===BigInt(0)?$e=`>= 0${Me} and < 2${Me} ** ${(ue+1)*8}${Me}`:$e=`>= -(2${Me} ** ${(ue+1)*8-1}${Me}) and < 2 ** ${(ue+1)*8-1}${Me}`,new j.ERR_OUT_OF_RANGE("value",$e,ne)}oe(Se,xe,ue)}function pe(ne,J){if(typeof ne!="number")throw new j.ERR_INVALID_ARG_TYPE(J,"number",ne)}function me(ne,J,ae){throw Math.floor(ne)!==ne?(pe(ne,ae),new j.ERR_OUT_OF_RANGE("offset","an integer",ne)):J<0?new j.ERR_BUFFER_OUT_OF_BOUNDS:new j.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${J}`,ne)}let ve=/[^+/0-9A-Za-z-_]/g;function he(ne){if(ne=ne.split("=")[0],ne=ne.trim().replace(ve,""),ne.length<2)return"";for(;ne.length%4!==0;)ne=ne+"=";return ne}function be(ne,J){J=J||1/0;let ae,Se=ne.length,xe=null,ue=[];for(let Me=0;Me<Se;++Me){if(ae=ne.charCodeAt(Me),ae>55295&&ae<57344){if(!xe){if(ae>56319){(J-=3)>-1&&ue.push(239,191,189);continue}else if(Me+1===Se){(J-=3)>-1&&ue.push(239,191,189);continue}xe=ae;continue}if(ae<56320){(J-=3)>-1&&ue.push(239,191,189),xe=ae;continue}ae=(xe-55296<<10|ae-56320)+65536}else xe&&(J-=3)>-1&&ue.push(239,191,189);if(xe=null,ae<128){if((J-=1)<0)break;ue.push(ae)}else if(ae<2048){if((J-=2)<0)break;ue.push(ae>>6|192,ae&63|128)}else if(ae<65536){if((J-=3)<0)break;ue.push(ae>>12|224,ae>>6&63|128,ae&63|128)}else if(ae<1114112){if((J-=4)<0)break;ue.push(ae>>18|240,ae>>12&63|128,ae>>6&63|128,ae&63|128)}else throw new Error("Invalid code point")}return ue}function we(ne){let J=[];for(let ae=0;ae<ne.length;++ae)J.push(ne.charCodeAt(ae)&255);return J}function De(ne,J){let ae,Se,xe,ue=[];for(let Me=0;Me<ne.length&&!((J-=2)<0);++Me)ae=ne.charCodeAt(Me),Se=ae>>8,xe=ae%256,ue.push(xe),ue.push(Se);return ue}function Ae(ne){return e.toByteArray(he(ne))}function Ee(ne,J,ae,Se){let xe;for(xe=0;xe<Se&&!(xe+ae>=J.length||xe>=ne.length);++xe)J[xe+ae]=ne[xe];return xe}function Re(ne,J){return ne instanceof J||ne!=null&&ne.constructor!=null&&ne.constructor.name!=null&&ne.constructor.name===J.name}function Te(ne){return ne!==ne}let Oe=function(){let ne="0123456789abcdef",J=new Array(256);for(let ae=0;ae<16;++ae){let Se=ae*16;for(let xe=0;xe<16;++xe)J[Se+xe]=ne[ae]+ne[xe]}return J}();function Ne(ne){return typeof BigInt>"u"?je:ne}function je(){throw new Error("BigInt not supported")}return rb}var Kx,ene,JM,tne,rb,nne,Mv,IF,P5e,A5e,Ec=bc(()=>{fn(),hn(),pn(),Kx={},ene=!1,JM={},tne=!1,rb={},nne=!1,Mv=oSt(),Mv.Buffer,Mv.SlowBuffer,Mv.INSPECT_MAX_BYTES,Mv.kMaxLength,IF=Mv.Buffer,P5e=Mv.INSPECT_MAX_BYTES,A5e=Mv.kMaxLength}),hn=bc(()=>{Ec()}),aSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=class{constructor(r){this.aliasToTopic={},this.max=r}put(r,i){return i===0||i>this.max?!1:(this.aliasToTopic[i]=r,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(r){return this.aliasToTopic[r]}clear(){this.aliasToTopic={}}};e.default=n}),xl=On((e,n)=>{fn(),hn(),pn(),n.exports={ArrayIsArray(r){return Array.isArray(r)},ArrayPrototypeIncludes(r,i){return r.includes(i)},ArrayPrototypeIndexOf(r,i){return r.indexOf(i)},ArrayPrototypeJoin(r,i){return r.join(i)},ArrayPrototypeMap(r,i){return r.map(i)},ArrayPrototypePop(r,i){return r.pop(i)},ArrayPrototypePush(r,i){return r.push(i)},ArrayPrototypeSlice(r,i,o){return r.slice(i,o)},Error,FunctionPrototypeCall(r,i,...o){return r.call(i,...o)},FunctionPrototypeSymbolHasInstance(r,i){return Function.prototype[Symbol.hasInstance].call(r,i)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(r,i){return Object.defineProperties(r,i)},ObjectDefineProperty(r,i,o){return Object.defineProperty(r,i,o)},ObjectGetOwnPropertyDescriptor(r,i){return Object.getOwnPropertyDescriptor(r,i)},ObjectKeys(r){return Object.keys(r)},ObjectSetPrototypeOf(r,i){return Object.setPrototypeOf(r,i)},Promise,PromisePrototypeCatch(r,i){return r.catch(i)},PromisePrototypeThen(r,i,o){return r.then(i,o)},PromiseReject(r){return Promise.reject(r)},ReflectApply:Reflect.apply,RegExpPrototypeTest(r,i){return r.test(i)},SafeSet:Set,String,StringPrototypeSlice(r,i,o){return r.slice(i,o)},StringPrototypeToLowerCase(r){return r.toLowerCase()},StringPrototypeToUpperCase(r){return r.toUpperCase()},StringPrototypeTrim(r){return r.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(r,i,o){return r.set(i,o)},Uint8Array}}),Sy=On((e,n)=>{fn(),hn(),pn();var r=(Ec(),na(Sc)),i=Object.getPrototypeOf(async function(){}).constructor,o=globalThis.Blob||r.Blob,a=typeof o<"u"?function(l){return l instanceof o}:function(l){return!1},s=class extends Error{constructor(l){if(!Array.isArray(l))throw new TypeError(`Expected input to be an Array, got ${typeof l}`);let c="";for(let u=0;u<l.length;u++)c+=` ${l[u].stack}
|
||
`;super(c),this.name="AggregateError",this.errors=l}};n.exports={AggregateError:s,kEmptyObject:Object.freeze({}),once(l){let c=!1;return function(...u){c||(c=!0,l.apply(this,u))}},createDeferredPromise:function(){let l,c;return{promise:new Promise((u,d)=>{l=u,c=d}),resolve:l,reject:c}},promisify(l){return new Promise((c,u)=>{l((d,...f)=>d?u(d):c(...f))})},debuglog(){return function(){}},format(l,...c){return l.replace(/%([sdifj])/g,function(...[u,d]){let f=c.shift();return d==="f"?f.toFixed(6):d==="j"?JSON.stringify(f):d==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.toString()})},inspect(l){switch(typeof l){case"string":if(l.includes("'"))if(l.includes('"')){if(!l.includes("`")&&!l.includes("${"))return`\`${l}\``}else return`"${l}"`;return`'${l}'`;case"number":return isNaN(l)?"NaN":Object.is(l,-0)?String(l):l;case"bigint":return`${String(l)}n`;case"boolean":case"undefined":return String(l);case"object":return"{}"}},types:{isAsyncFunction(l){return l instanceof i},isArrayBufferView(l){return ArrayBuffer.isView(l)}},isBlob:a},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),Ile=On((e,n)=>{fn(),hn(),pn();var{AbortController:r,AbortSignal:i}=typeof self<"u"?self:typeof window<"u"?window:void 0;n.exports=r,n.exports.AbortSignal=i,n.exports.default=r}),Ed=On((e,n)=>{fn(),hn(),pn();var{format:r,inspect:i,AggregateError:o}=Sy(),a=globalThis.AggregateError||o,s=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],c=/^([A-Z][a-z0-9]*)+$/,u="__node_internal_",d={};function f(S,b){if(!S)throw new d.ERR_INTERNAL_ASSERTION(b)}function p(S){let b="",E=S.length,w=S[0]==="-"?1:0;for(;E>=w+4;E-=3)b=`_${S.slice(E-3,E)}${b}`;return`${S.slice(0,E)}${b}`}function h(S,b,E){if(typeof b=="function")return f(b.length<=E.length,`Code: ${S}; The provided arguments length (${E.length}) does not match the required ones (${b.length}).`),b(...E);let w=(b.match(/%[dfijoOs]/g)||[]).length;return f(w===E.length,`Code: ${S}; The provided arguments length (${E.length}) does not match the required ones (${w}).`),E.length===0?b:r(b,...E)}function g(S,b,E){E||(E=Error);class w extends E{constructor(...x){super(h(S,b,x))}toString(){return`${this.name} [${S}]: ${this.message}`}}Object.defineProperties(w.prototype,{name:{value:E.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${S}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),w.prototype.code=S,w.prototype[s]=!0,d[S]=w}function v(S){let b=u+S.name;return Object.defineProperty(S,"name",{value:b}),S}function y(S,b){if(S&&b&&S!==b){if(Array.isArray(b.errors))return b.errors.push(S),b;let E=new a([b,S],b.message);return E.code=b.code,E}return S||b}var _=class extends Error{constructor(S="The operation was aborted",b=void 0){if(b!==void 0&&typeof b!="object")throw new d.ERR_INVALID_ARG_TYPE("options","Object",b);super(S,b),this.code="ABORT_ERR",this.name="AbortError"}};g("ERR_ASSERTION","%s",Error),g("ERR_INVALID_ARG_TYPE",(S,b,E)=>{f(typeof S=="string","'name' must be a string"),Array.isArray(b)||(b=[b]);let w="The ";S.endsWith(" argument")?w+=`${S} `:w+=`"${S}" ${S.includes(".")?"property":"argument"} `,w+="must be ";let C=[],x=[],T=[];for(let O of b)f(typeof O=="string","All expected entries have to be of type string"),l.includes(O)?C.push(O.toLowerCase()):c.test(O)?x.push(O):(f(O!=="object",'The value "object" should be written as "Object"'),T.push(O));if(x.length>0){let O=C.indexOf("object");O!==-1&&(C.splice(C,O,1),x.push("Object"))}if(C.length>0){switch(C.length){case 1:w+=`of type ${C[0]}`;break;case 2:w+=`one of type ${C[0]} or ${C[1]}`;break;default:{let O=C.pop();w+=`one of type ${C.join(", ")}, or ${O}`}}(x.length>0||T.length>0)&&(w+=" or ")}if(x.length>0){switch(x.length){case 1:w+=`an instance of ${x[0]}`;break;case 2:w+=`an instance of ${x[0]} or ${x[1]}`;break;default:{let O=x.pop();w+=`an instance of ${x.join(", ")}, or ${O}`}}T.length>0&&(w+=" or ")}switch(T.length){case 0:break;case 1:T[0].toLowerCase()!==T[0]&&(w+="an "),w+=`${T[0]}`;break;case 2:w+=`one of ${T[0]} or ${T[1]}`;break;default:{let O=T.pop();w+=`one of ${T.join(", ")}, or ${O}`}}if(E==null)w+=`. Received ${E}`;else if(typeof E=="function"&&E.name)w+=`. Received function ${E.name}`;else if(typeof E=="object"){var R;if((R=E.constructor)!==null&&R!==void 0&&R.name)w+=`. Received an instance of ${E.constructor.name}`;else{let O=i(E,{depth:-1});w+=`. Received ${O}`}}else{let O=i(E,{colors:!1});O.length>25&&(O=`${O.slice(0,25)}...`),w+=`. Received type ${typeof E} (${O})`}return w},TypeError),g("ERR_INVALID_ARG_VALUE",(S,b,E="is invalid")=>{let w=i(b);return w.length>128&&(w=w.slice(0,128)+"..."),`The ${S.includes(".")?"property":"argument"} '${S}' ${E}. Received ${w}`},TypeError),g("ERR_INVALID_RETURN_VALUE",(S,b,E)=>{var w;let C=E!=null&&(w=E.constructor)!==null&&w!==void 0&&w.name?`instance of ${E.constructor.name}`:`type ${typeof E}`;return`Expected ${S} to be returned from the "${b}" function but got ${C}.`},TypeError),g("ERR_MISSING_ARGS",(...S)=>{f(S.length>0,"At least one arg needs to be specified");let b,E=S.length;switch(S=(Array.isArray(S)?S:[S]).map(w=>`"${w}"`).join(" or "),E){case 1:b+=`The ${S[0]} argument`;break;case 2:b+=`The ${S[0]} and ${S[1]} arguments`;break;default:{let w=S.pop();b+=`The ${S.join(", ")}, and ${w} arguments`}break}return`${b} must be specified`},TypeError),g("ERR_OUT_OF_RANGE",(S,b,E)=>{f(b,'Missing "range" argument');let w;return Number.isInteger(E)&&Math.abs(E)>2**32?w=p(String(E)):typeof E=="bigint"?(w=String(E),(E>2n**32n||E<-(2n**32n))&&(w=p(w)),w+="n"):w=i(E),`The value of "${S}" is out of range. It must be ${b}. Received ${w}`},RangeError),g("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),g("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),g("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),g("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),g("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),g("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),g("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),g("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),g("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),g("ERR_STREAM_WRITE_AFTER_END","write after end",Error),g("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),n.exports={AbortError:_,aggregateTwoErrors:v(y),hideStackFrames:v,codes:d}}),D7=On((e,n)=>{fn(),hn(),pn();var{ArrayIsArray:r,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:o,ArrayPrototypeMap:a,NumberIsInteger:s,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:u,NumberParseInt:d,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:p,String:h,StringPrototypeToUpperCase:g,StringPrototypeTrim:v}=xl(),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:_,ERR_INVALID_ARG_TYPE:S,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:E,ERR_UNKNOWN_SIGNAL:w}}=Ed(),{normalizeEncoding:C}=Sy(),{isAsyncFunction:x,isArrayBufferView:T}=Sy().types,R={};function O(Ee){return Ee===(Ee|0)}function M(Ee){return Ee===Ee>>>0}var P=/^[0-7]+$/,k="must be a 32-bit unsigned integer or an octal string";function $(Ee,Re,Te){if(typeof Ee>"u"&&(Ee=Te),typeof Ee=="string"){if(p(P,Ee)===null)throw new b(Re,Ee,k);Ee=d(Ee,8)}return D(Ee,Re),Ee}var U=y((Ee,Re,Te=u,Oe=c)=>{if(typeof Ee!="number")throw new S(Re,"number",Ee);if(!s(Ee))throw new E(Re,"an integer",Ee);if(Ee<Te||Ee>Oe)throw new E(Re,`>= ${Te} && <= ${Oe}`,Ee)}),z=y((Ee,Re,Te=-2147483648,Oe=2147483647)=>{if(typeof Ee!="number")throw new S(Re,"number",Ee);if(!s(Ee))throw new E(Re,"an integer",Ee);if(Ee<Te||Ee>Oe)throw new E(Re,`>= ${Te} && <= ${Oe}`,Ee)}),D=y((Ee,Re,Te=!1)=>{if(typeof Ee!="number")throw new S(Re,"number",Ee);if(!s(Ee))throw new E(Re,"an integer",Ee);let Oe=Te?1:0,Ne=4294967295;if(Ee<Oe||Ee>Ne)throw new E(Re,`>= ${Oe} && <= ${Ne}`,Ee)});function B(Ee,Re){if(typeof Ee!="string")throw new S(Re,"string",Ee)}function Y(Ee,Re,Te=void 0,Oe){if(typeof Ee!="number")throw new S(Re,"number",Ee);if(Te!=null&&Ee<Te||Oe!=null&&Ee>Oe||(Te!=null||Oe!=null)&&l(Ee))throw new E(Re,`${Te!=null?`>= ${Te}`:""}${Te!=null&&Oe!=null?" && ":""}${Oe!=null?`<= ${Oe}`:""}`,Ee)}var q=y((Ee,Re,Te)=>{if(!i(Te,Ee)){let Oe="must be one of: "+o(a(Te,Ne=>typeof Ne=="string"?`'${Ne}'`:h(Ne)),", ");throw new b(Re,Ee,Oe)}});function K(Ee,Re){if(typeof Ee!="boolean")throw new S(Re,"boolean",Ee)}function H(Ee,Re,Te){return Ee==null||!f(Ee,Re)?Te:Ee[Re]}var G=y((Ee,Re,Te=null)=>{let Oe=H(Te,"allowArray",!1),Ne=H(Te,"allowFunction",!1);if(!H(Te,"nullable",!1)&&Ee===null||!Oe&&r(Ee)||typeof Ee!="object"&&(!Ne||typeof Ee!="function"))throw new S(Re,"Object",Ee)}),Q=y((Ee,Re)=>{if(Ee!=null&&typeof Ee!="object"&&typeof Ee!="function")throw new S(Re,"a dictionary",Ee)}),le=y((Ee,Re,Te=0)=>{if(!r(Ee))throw new S(Re,"Array",Ee);if(Ee.length<Te){let Oe=`must be longer than ${Te}`;throw new b(Re,Ee,Oe)}});function Z(Ee,Re){le(Ee,Re);for(let Te=0;Te<Ee.length;Te++)B(Ee[Te],`${Re}[${Te}]`)}function j(Ee,Re){le(Ee,Re);for(let Te=0;Te<Ee.length;Te++)K(Ee[Te],`${Re}[${Te}]`)}function F(Ee,Re="signal"){if(B(Ee,Re),R[Ee]===void 0)throw R[g(Ee)]!==void 0?new w(Ee+" (signals must use all capital letters)"):new w(Ee)}var te=y((Ee,Re="buffer")=>{if(!T(Ee))throw new S(Re,["Buffer","TypedArray","DataView"],Ee)});function oe(Ee,Re){let Te=C(Re),Oe=Ee.length;if(Te==="hex"&&Oe%2!==0)throw new b("encoding",Re,`is invalid for data of length ${Oe}`)}function de(Ee,Re="Port",Te=!0){if(typeof Ee!="number"&&typeof Ee!="string"||typeof Ee=="string"&&v(Ee).length===0||+Ee!==+Ee>>>0||Ee>65535||Ee===0&&!Te)throw new _(Re,Ee,Te);return Ee|0}var pe=y((Ee,Re)=>{if(Ee!==void 0&&(Ee===null||typeof Ee!="object"||!("aborted"in Ee)))throw new S(Re,"AbortSignal",Ee)}),me=y((Ee,Re)=>{if(typeof Ee!="function")throw new S(Re,"Function",Ee)}),ve=y((Ee,Re)=>{if(typeof Ee!="function"||x(Ee))throw new S(Re,"Function",Ee)}),he=y((Ee,Re)=>{if(Ee!==void 0)throw new S(Re,"undefined",Ee)});function be(Ee,Re,Te){if(!i(Te,Ee))throw new S(Re,`('${o(Te,"|")}')`,Ee)}var we=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function De(Ee,Re){if(typeof Ee>"u"||!p(we,Ee))throw new b(Re,Ee,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function Ae(Ee){if(typeof Ee=="string")return De(Ee,"hints"),Ee;if(r(Ee)){let Re=Ee.length,Te="";if(Re===0)return Te;for(let Oe=0;Oe<Re;Oe++){let Ne=Ee[Oe];De(Ne,"hints"),Te+=Ne,Oe!==Re-1&&(Te+=", ")}return Te}throw new b("hints",Ee,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}n.exports={isInt32:O,isUint32:M,parseFileMode:$,validateArray:le,validateStringArray:Z,validateBooleanArray:j,validateBoolean:K,validateBuffer:te,validateDictionary:Q,validateEncoding:oe,validateFunction:me,validateInt32:z,validateInteger:U,validateNumber:Y,validateObject:G,validateOneOf:q,validatePlainFunction:ve,validatePort:de,validateSignalName:F,validateString:B,validateUint32:D,validateUndefined:he,validateUnion:be,validateAbortSignal:pe,validateLinkHeaderValue:Ae}}),WC=On((e,n)=>{fn(),hn(),pn();var r=n.exports={},i,o;function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?i=setTimeout:i=a}catch{i=a}try{typeof clearTimeout=="function"?o=clearTimeout:o=s}catch{o=s}})();function l(_){if(i===setTimeout)return setTimeout(_,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(_,0);try{return i(_,0)}catch{try{return i.call(null,_,0)}catch{return i.call(this,_,0)}}}function c(_){if(o===clearTimeout)return clearTimeout(_);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(_);try{return o(_)}catch{try{return o.call(null,_)}catch{return o.call(this,_)}}}var u=[],d=!1,f,p=-1;function h(){!d||!f||(d=!1,f.length?u=f.concat(u):p=-1,u.length&&g())}function g(){if(!d){var _=l(h);d=!0;for(var S=u.length;S;){for(f=u,u=[];++p<S;)f&&f[p].run();p=-1,S=u.length}f=null,d=!1,c(_)}}r.nextTick=function(_){var S=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)S[b-1]=arguments[b];u.push(new v(_,S)),u.length===1&&!d&&l(g)};function v(_,S){this.fun=_,this.array=S}v.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function y(){}r.on=y,r.addListener=y,r.once=y,r.off=y,r.removeListener=y,r.removeAllListeners=y,r.emit=y,r.prependListener=y,r.prependOnceListener=y,r.listeners=function(_){return[]},r.binding=function(_){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(_){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}}),Hy=On((e,n)=>{fn(),hn(),pn();var{Symbol:r,SymbolAsyncIterator:i,SymbolIterator:o,SymbolFor:a}=xl(),s=r("kDestroyed"),l=r("kIsErrored"),c=r("kIsReadable"),u=r("kIsDisturbed"),d=a("nodejs.webstream.isClosedPromise"),f=a("nodejs.webstream.controllerErrorFunction");function p(H,G=!1){var Q;return!!(H&&typeof H.pipe=="function"&&typeof H.on=="function"&&(!G||typeof H.pause=="function"&&typeof H.resume=="function")&&(!H._writableState||((Q=H._readableState)===null||Q===void 0?void 0:Q.readable)!==!1)&&(!H._writableState||H._readableState))}function h(H){var G;return!!(H&&typeof H.write=="function"&&typeof H.on=="function"&&(!H._readableState||((G=H._writableState)===null||G===void 0?void 0:G.writable)!==!1))}function g(H){return!!(H&&typeof H.pipe=="function"&&H._readableState&&typeof H.on=="function"&&typeof H.write=="function")}function v(H){return H&&(H._readableState||H._writableState||typeof H.write=="function"&&typeof H.on=="function"||typeof H.pipe=="function"&&typeof H.on=="function")}function y(H){return!!(H&&!v(H)&&typeof H.pipeThrough=="function"&&typeof H.getReader=="function"&&typeof H.cancel=="function")}function _(H){return!!(H&&!v(H)&&typeof H.getWriter=="function"&&typeof H.abort=="function")}function S(H){return!!(H&&!v(H)&&typeof H.readable=="object"&&typeof H.writable=="object")}function b(H){return y(H)||_(H)||S(H)}function E(H,G){return H==null?!1:G===!0?typeof H[i]=="function":G===!1?typeof H[o]=="function":typeof H[i]=="function"||typeof H[o]=="function"}function w(H){if(!v(H))return null;let G=H._writableState,Q=H._readableState,le=G||Q;return!!(H.destroyed||H[s]||le!=null&&le.destroyed)}function C(H){if(!h(H))return null;if(H.writableEnded===!0)return!0;let G=H._writableState;return G!=null&&G.errored?!1:typeof(G==null?void 0:G.ended)!="boolean"?null:G.ended}function x(H,G){if(!h(H))return null;if(H.writableFinished===!0)return!0;let Q=H._writableState;return Q!=null&&Q.errored?!1:typeof(Q==null?void 0:Q.finished)!="boolean"?null:!!(Q.finished||G===!1&&Q.ended===!0&&Q.length===0)}function T(H){if(!p(H))return null;if(H.readableEnded===!0)return!0;let G=H._readableState;return!G||G.errored?!1:typeof(G==null?void 0:G.ended)!="boolean"?null:G.ended}function R(H,G){if(!p(H))return null;let Q=H._readableState;return Q!=null&&Q.errored?!1:typeof(Q==null?void 0:Q.endEmitted)!="boolean"?null:!!(Q.endEmitted||G===!1&&Q.ended===!0&&Q.length===0)}function O(H){return H&&H[c]!=null?H[c]:typeof(H==null?void 0:H.readable)!="boolean"?null:w(H)?!1:p(H)&&H.readable&&!R(H)}function M(H){return typeof(H==null?void 0:H.writable)!="boolean"?null:w(H)?!1:h(H)&&H.writable&&!C(H)}function P(H,G){return v(H)?w(H)?!0:!((G==null?void 0:G.readable)!==!1&&O(H)||(G==null?void 0:G.writable)!==!1&&M(H)):null}function k(H){var G,Q;return v(H)?H.writableErrored?H.writableErrored:(G=(Q=H._writableState)===null||Q===void 0?void 0:Q.errored)!==null&&G!==void 0?G:null:null}function $(H){var G,Q;return v(H)?H.readableErrored?H.readableErrored:(G=(Q=H._readableState)===null||Q===void 0?void 0:Q.errored)!==null&&G!==void 0?G:null:null}function U(H){if(!v(H))return null;if(typeof H.closed=="boolean")return H.closed;let G=H._writableState,Q=H._readableState;return typeof(G==null?void 0:G.closed)=="boolean"||typeof(Q==null?void 0:Q.closed)=="boolean"?(G==null?void 0:G.closed)||(Q==null?void 0:Q.closed):typeof H._closed=="boolean"&&z(H)?H._closed:null}function z(H){return typeof H._closed=="boolean"&&typeof H._defaultKeepAlive=="boolean"&&typeof H._removedConnection=="boolean"&&typeof H._removedContLen=="boolean"}function D(H){return typeof H._sent100=="boolean"&&z(H)}function B(H){var G;return typeof H._consuming=="boolean"&&typeof H._dumped=="boolean"&&((G=H.req)===null||G===void 0?void 0:G.upgradeOrConnect)===void 0}function Y(H){if(!v(H))return null;let G=H._writableState,Q=H._readableState,le=G||Q;return!le&&D(H)||!!(le&&le.autoDestroy&&le.emitClose&&le.closed===!1)}function q(H){var G;return!!(H&&((G=H[u])!==null&&G!==void 0?G:H.readableDidRead||H.readableAborted))}function K(H){var G,Q,le,Z,j,F,te,oe,de,pe;return!!(H&&((G=(Q=(le=(Z=(j=(F=H[l])!==null&&F!==void 0?F:H.readableErrored)!==null&&j!==void 0?j:H.writableErrored)!==null&&Z!==void 0?Z:(te=H._readableState)===null||te===void 0?void 0:te.errorEmitted)!==null&&le!==void 0?le:(oe=H._writableState)===null||oe===void 0?void 0:oe.errorEmitted)!==null&&Q!==void 0?Q:(de=H._readableState)===null||de===void 0?void 0:de.errored)!==null&&G!==void 0?G:!((pe=H._writableState)===null||pe===void 0)&&pe.errored))}n.exports={kDestroyed:s,isDisturbed:q,kIsDisturbed:u,isErrored:K,kIsErrored:l,isReadable:O,kIsReadable:c,kIsClosedPromise:d,kControllerErrorFunction:f,isClosed:U,isDestroyed:w,isDuplexNodeStream:g,isFinished:P,isIterable:E,isReadableNodeStream:p,isReadableStream:y,isReadableEnded:T,isReadableFinished:R,isReadableErrored:$,isNodeStream:v,isWebStream:b,isWritable:M,isWritableNodeStream:h,isWritableStream:_,isWritableEnded:C,isWritableFinished:x,isWritableErrored:k,isServerRequest:B,isServerResponse:D,willEmitClose:Y,isTransformStream:S}}),K0=On((e,n)=>{fn(),hn(),pn();var r=WC(),{AbortError:i,codes:o}=Ed(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:s}=o,{kEmptyObject:l,once:c}=Sy(),{validateAbortSignal:u,validateFunction:d,validateObject:f,validateBoolean:p}=D7(),{Promise:h,PromisePrototypeThen:g}=xl(),{isClosed:v,isReadable:y,isReadableNodeStream:_,isReadableStream:S,isReadableFinished:b,isReadableErrored:E,isWritable:w,isWritableNodeStream:C,isWritableStream:x,isWritableFinished:T,isWritableErrored:R,isNodeStream:O,willEmitClose:M,kIsClosedPromise:P}=Hy();function k(B){return B.setHeader&&typeof B.abort=="function"}var $=()=>{};function U(B,Y,q){var K,H;if(arguments.length===2?(q=Y,Y=l):Y==null?Y=l:f(Y,"options"),d(q,"callback"),u(Y.signal,"options.signal"),q=c(q),S(B)||x(B))return z(B,Y,q);if(!O(B))throw new a("stream",["ReadableStream","WritableStream","Stream"],B);let G=(K=Y.readable)!==null&&K!==void 0?K:_(B),Q=(H=Y.writable)!==null&&H!==void 0?H:C(B),le=B._writableState,Z=B._readableState,j=()=>{B.writable||oe()},F=M(B)&&_(B)===G&&C(B)===Q,te=T(B,!1),oe=()=>{te=!0,B.destroyed&&(F=!1),!(F&&(!B.readable||G))&&(!G||de)&&q.call(B)},de=b(B,!1),pe=()=>{de=!0,B.destroyed&&(F=!1),!(F&&(!B.writable||Q))&&(!Q||te)&&q.call(B)},me=Ae=>{q.call(B,Ae)},ve=v(B),he=()=>{ve=!0;let Ae=R(B)||E(B);if(Ae&&typeof Ae!="boolean")return q.call(B,Ae);if(G&&!de&&_(B,!0)&&!b(B,!1))return q.call(B,new s);if(Q&&!te&&!T(B,!1))return q.call(B,new s);q.call(B)},be=()=>{ve=!0;let Ae=R(B)||E(B);if(Ae&&typeof Ae!="boolean")return q.call(B,Ae);q.call(B)},we=()=>{B.req.on("finish",oe)};k(B)?(B.on("complete",oe),F||B.on("abort",he),B.req?we():B.on("request",we)):Q&&!le&&(B.on("end",j),B.on("close",j)),!F&&typeof B.aborted=="boolean"&&B.on("aborted",he),B.on("end",pe),B.on("finish",oe),Y.error!==!1&&B.on("error",me),B.on("close",he),ve?r.nextTick(he):le!=null&&le.errorEmitted||Z!=null&&Z.errorEmitted?F||r.nextTick(be):(!G&&(!F||y(B))&&(te||w(B)===!1)||!Q&&(!F||w(B))&&(de||y(B)===!1)||Z&&B.req&&B.aborted)&&r.nextTick(be);let De=()=>{q=$,B.removeListener("aborted",he),B.removeListener("complete",oe),B.removeListener("abort",he),B.removeListener("request",we),B.req&&B.req.removeListener("finish",oe),B.removeListener("end",j),B.removeListener("close",j),B.removeListener("finish",oe),B.removeListener("end",pe),B.removeListener("error",me),B.removeListener("close",he)};if(Y.signal&&!ve){let Ae=()=>{let Ee=q;De(),Ee.call(B,new i(void 0,{cause:Y.signal.reason}))};if(Y.signal.aborted)r.nextTick(Ae);else{let Ee=q;q=c((...Re)=>{Y.signal.removeEventListener("abort",Ae),Ee.apply(B,Re)}),Y.signal.addEventListener("abort",Ae)}}return De}function z(B,Y,q){let K=!1,H=$;if(Y.signal)if(H=()=>{K=!0,q.call(B,new i(void 0,{cause:Y.signal.reason}))},Y.signal.aborted)r.nextTick(H);else{let Q=q;q=c((...le)=>{Y.signal.removeEventListener("abort",H),Q.apply(B,le)}),Y.signal.addEventListener("abort",H)}let G=(...Q)=>{K||r.nextTick(()=>q.apply(B,Q))};return g(B[P].promise,G,G),$}function D(B,Y){var q;let K=!1;return Y===null&&(Y=l),(q=Y)!==null&&q!==void 0&&q.cleanup&&(p(Y.cleanup,"cleanup"),K=Y.cleanup),new h((H,G)=>{let Q=U(B,Y,le=>{K&&Q(),le?G(le):H()})})}n.exports=U,n.exports.finished=D}),KR=On((e,n)=>{fn(),hn(),pn();var r=WC(),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:a}=Ed(),{Symbol:s}=xl(),{kDestroyed:l,isDestroyed:c,isFinished:u,isServerRequest:d}=Hy(),f=s("kDestroy"),p=s("kConstruct");function h(P,k,$){P&&(P.stack,k&&!k.errored&&(k.errored=P),$&&!$.errored&&($.errored=P))}function g(P,k){let $=this._readableState,U=this._writableState,z=U||$;return U!=null&&U.destroyed||$!=null&&$.destroyed?(typeof k=="function"&&k(),this):(h(P,U,$),U&&(U.destroyed=!0),$&&($.destroyed=!0),z.constructed?v(this,P,k):this.once(f,function(D){v(this,i(D,P),k)}),this)}function v(P,k,$){let U=!1;function z(D){if(U)return;U=!0;let B=P._readableState,Y=P._writableState;h(D,Y,B),Y&&(Y.closed=!0),B&&(B.closed=!0),typeof $=="function"&&$(D),D?r.nextTick(y,P,D):r.nextTick(_,P)}try{P._destroy(k||null,z)}catch(D){z(D)}}function y(P,k){S(P,k),_(P)}function _(P){let k=P._readableState,$=P._writableState;$&&($.closeEmitted=!0),k&&(k.closeEmitted=!0),($!=null&&$.emitClose||k!=null&&k.emitClose)&&P.emit("close")}function S(P,k){let $=P._readableState,U=P._writableState;U!=null&&U.errorEmitted||$!=null&&$.errorEmitted||(U&&(U.errorEmitted=!0),$&&($.errorEmitted=!0),P.emit("error",k))}function b(){let P=this._readableState,k=this._writableState;P&&(P.constructed=!0,P.closed=!1,P.closeEmitted=!1,P.destroyed=!1,P.errored=null,P.errorEmitted=!1,P.reading=!1,P.ended=P.readable===!1,P.endEmitted=P.readable===!1),k&&(k.constructed=!0,k.destroyed=!1,k.closed=!1,k.closeEmitted=!1,k.errored=null,k.errorEmitted=!1,k.finalCalled=!1,k.prefinished=!1,k.ended=k.writable===!1,k.ending=k.writable===!1,k.finished=k.writable===!1)}function E(P,k,$){let U=P._readableState,z=P._writableState;if(z!=null&&z.destroyed||U!=null&&U.destroyed)return this;U!=null&&U.autoDestroy||z!=null&&z.autoDestroy?P.destroy(k):k&&(k.stack,z&&!z.errored&&(z.errored=k),U&&!U.errored&&(U.errored=k),$?r.nextTick(S,P,k):S(P,k))}function w(P,k){if(typeof P._construct!="function")return;let $=P._readableState,U=P._writableState;$&&($.constructed=!1),U&&(U.constructed=!1),P.once(p,k),!(P.listenerCount(p)>1)&&r.nextTick(C,P)}function C(P){let k=!1;function $(U){if(k){E(P,U??new o);return}k=!0;let z=P._readableState,D=P._writableState,B=D||z;z&&(z.constructed=!0),D&&(D.constructed=!0),B.destroyed?P.emit(f,U):U?E(P,U,!0):r.nextTick(x,P)}try{P._construct(U=>{r.nextTick($,U)})}catch(U){r.nextTick($,U)}}function x(P){P.emit(p)}function T(P){return(P==null?void 0:P.setHeader)&&typeof P.abort=="function"}function R(P){P.emit("close")}function O(P,k){P.emit("error",k),r.nextTick(R,P)}function M(P,k){!P||c(P)||(!k&&!u(P)&&(k=new a),d(P)?(P.socket=null,P.destroy(k)):T(P)?P.abort():T(P.req)?P.req.abort():typeof P.destroy=="function"?P.destroy(k):typeof P.close=="function"?P.close():k?r.nextTick(O,P,k):r.nextTick(R,P),P.destroyed||(P[l]=!0))}n.exports={construct:w,destroyer:M,destroy:g,undestroy:b,errorOrDestroy:E}});function Wo(){Wo.init.call(this)}function L5(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function D5e(e){return e._maxListeners===void 0?Wo.defaultMaxListeners:e._maxListeners}function Kbe(e,n,r,i){var o,a,s,l;if(L5(r),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",n,r.listener?r.listener:r),a=e._events),s=a[n]),s===void 0)s=a[n]=r,++e._eventsCount;else if(typeof s=="function"?s=a[n]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(o=D5e(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=n,c.count=s.length,l=c,console&&console.warn&&console.warn(l)}return e}function sSt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Xbe(e,n,r){var i={fired:!1,wrapFn:void 0,target:e,type:n,listener:r},o=sSt.bind(i);return o.listener=r,i.wrapFn=o,o}function Qbe(e,n,r){var i=e._events;if(i===void 0)return[];var o=i[n];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?function(a){for(var s=new Array(a.length),l=0;l<s.length;++l)s[l]=a[l].listener||a[l];return s}(o):k5e(o,o.length)}function Zbe(e){var n=this._events;if(n!==void 0){var r=n[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}function k5e(e,n){for(var r=new Array(n),i=0;i<n;++i)r[i]=e[i];return r}var Jbe,e0e,lE,LW,$W,FW,Yd,t0e=bc(()=>{fn(),hn(),pn(),lE=typeof Reflect=="object"?Reflect:null,LW=lE&&typeof lE.apply=="function"?lE.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},e0e=lE&&typeof lE.ownKeys=="function"?lE.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},$W=Number.isNaN||function(e){return e!=e},Jbe=Wo,Wo.EventEmitter=Wo,Wo.prototype._events=void 0,Wo.prototype._eventsCount=0,Wo.prototype._maxListeners=void 0,FW=10,Object.defineProperty(Wo,"defaultMaxListeners",{enumerable:!0,get:function(){return FW},set:function(e){if(typeof e!="number"||e<0||$W(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");FW=e}}),Wo.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Wo.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||$W(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},Wo.prototype.getMaxListeners=function(){return D5e(this)},Wo.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=e==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var a;if(n.length>0&&(a=n[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(l===void 0)return!1;if(typeof l=="function")LW(l,this,n);else{var c=l.length,u=k5e(l,c);for(r=0;r<c;++r)LW(u[r],this,n)}return!0},Wo.prototype.addListener=function(e,n){return Kbe(this,e,n,!1)},Wo.prototype.on=Wo.prototype.addListener,Wo.prototype.prependListener=function(e,n){return Kbe(this,e,n,!0)},Wo.prototype.once=function(e,n){return L5(n),this.on(e,Xbe(this,e,n)),this},Wo.prototype.prependOnceListener=function(e,n){return L5(n),this.prependListener(e,Xbe(this,e,n)),this},Wo.prototype.removeListener=function(e,n){var r,i,o,a,s;if(L5(n),(i=this._events)===void 0)return this;if((r=i[e])===void 0)return this;if(r===n||r.listener===n)--this._eventsCount==0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){s=r[a].listener,o=a;break}if(o<0)return this;o===0?r.shift():function(l,c){for(;c+1<l.length;c++)l[c]=l[c+1];l.pop()}(r,o),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",e,s||n)}return this},Wo.prototype.off=Wo.prototype.removeListener,Wo.prototype.removeAllListeners=function(e){var n,r,i;if((r=this._events)===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var o,a=Object.keys(r);for(i=0;i<a.length;++i)(o=a[i])!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(n=r[e])=="function")this.removeListener(e,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(e,n[i]);return this},Wo.prototype.listeners=function(e){return Qbe(this,e,!0)},Wo.prototype.rawListeners=function(e){return Qbe(this,e,!1)},Wo.listenerCount=function(e,n){return typeof e.listenerCount=="function"?e.listenerCount(n):Zbe.call(e,n)},Wo.prototype.listenerCount=Zbe,Wo.prototype.eventNames=function(){return this._eventsCount>0?e0e(this._events):[]},Yd=Jbe,Yd.EventEmitter,Yd.defaultMaxListeners,Yd.init,Yd.listenerCount,Yd.EventEmitter,Yd.defaultMaxListeners,Yd.init,Yd.listenerCount}),YC={};GC(YC,{EventEmitter:()=>L5e,default:()=>Yd,defaultMaxListeners:()=>$5e,init:()=>F5e,listenerCount:()=>B5e,on:()=>j5e,once:()=>U5e});var L5e,$5e,F5e,B5e,j5e,U5e,XR=bc(()=>{fn(),hn(),pn(),t0e(),t0e(),Yd.once=function(e,n){return new Promise((r,i)=>{function o(...s){a!==void 0&&e.removeListener("error",a),r(s)}let a;n!=="error"&&(a=s=>{e.removeListener(name,o),i(s)},e.once("error",a)),e.once(n,o)})},Yd.on=function(e,n){let r=[],i=[],o=null,a=!1,s={async next(){let u=r.shift();if(u)return createIterResult(u,!1);if(o){let d=Promise.reject(o);return o=null,d}return a?createIterResult(void 0,!0):new Promise((d,f)=>i.push({resolve:d,reject:f}))},async return(){e.removeListener(n,l),e.removeListener("error",c),a=!0;for(let u of i)u.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(u){o=u,e.removeListener(n,l),e.removeListener("error",c)},[Symbol.asyncIterator](){return this}};return e.on(n,l),e.on("error",c),s;function l(...u){let d=i.shift();d?d.resolve(createIterResult(u,!1)):r.push(u)}function c(u){a=!0;let d=i.shift();d?d.reject(u):o=u,s.return()}},{EventEmitter:L5e,defaultMaxListeners:$5e,init:F5e,listenerCount:B5e,on:j5e,once:U5e}=Yd}),Nle=On((e,n)=>{fn(),hn(),pn();var{ArrayIsArray:r,ObjectSetPrototypeOf:i}=xl(),{EventEmitter:o}=(XR(),na(YC));function a(l){o.call(this,l)}i(a.prototype,o.prototype),i(a,o),a.prototype.pipe=function(l,c){let u=this;function d(_){l.writable&&l.write(_)===!1&&u.pause&&u.pause()}u.on("data",d);function f(){u.readable&&u.resume&&u.resume()}l.on("drain",f),!l._isStdio&&(!c||c.end!==!1)&&(u.on("end",h),u.on("close",g));let p=!1;function h(){p||(p=!0,l.end())}function g(){p||(p=!0,typeof l.destroy=="function"&&l.destroy())}function v(_){y(),o.listenerCount(this,"error")===0&&this.emit("error",_)}s(u,"error",v),s(l,"error",v);function y(){u.removeListener("data",d),l.removeListener("drain",f),u.removeListener("end",h),u.removeListener("close",g),u.removeListener("error",v),l.removeListener("error",v),u.removeListener("end",y),u.removeListener("close",y),l.removeListener("close",y)}return u.on("end",y),u.on("close",y),l.on("close",y),l.emit("pipe",u),l};function s(l,c,u){if(typeof l.prependListener=="function")return l.prependListener(c,u);!l._events||!l._events[c]?l.on(c,u):r(l._events[c])?l._events[c].unshift(u):l._events[c]=[u,l._events[c]]}n.exports={Stream:a,prependListener:s}}),k7=On((e,n)=>{fn(),hn(),pn();var{AbortError:r,codes:i}=Ed(),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:s}=Hy(),l=K0(),{ERR_INVALID_ARG_TYPE:c}=i,u=(d,f)=>{if(typeof d!="object"||!("aborted"in d))throw new c(f,"AbortSignal",d)};n.exports.addAbortSignal=function(d,f){if(u(d,"signal"),!o(f)&&!a(f))throw new c("stream",["ReadableStream","WritableStream","Stream"],f);return n.exports.addAbortSignalNoValidate(d,f)},n.exports.addAbortSignalNoValidate=function(d,f){if(typeof d!="object"||!("aborted"in d))return f;let p=o(f)?()=>{f.destroy(new r(void 0,{cause:d.reason}))}:()=>{f[s](new r(void 0,{cause:d.reason}))};return d.aborted?p():(d.addEventListener("abort",p),l(f,()=>d.removeEventListener("abort",p))),f}}),lSt=On((e,n)=>{fn(),hn(),pn();var{StringPrototypeSlice:r,SymbolIterator:i,TypedArrayPrototypeSet:o,Uint8Array:a}=xl(),{Buffer:s}=(Ec(),na(Sc)),{inspect:l}=Sy();n.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(c){let u={data:c,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length}unshift(c){let u={data:c,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}shift(){if(this.length===0)return;let c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}clear(){this.head=this.tail=null,this.length=0}join(c){if(this.length===0)return"";let u=this.head,d=""+u.data;for(;(u=u.next)!==null;)d+=c+u.data;return d}concat(c){if(this.length===0)return s.alloc(0);let u=s.allocUnsafe(c>>>0),d=this.head,f=0;for(;d;)o(u,d.data,f),f+=d.data.length,d=d.next;return u}consume(c,u){let d=this.head.data;if(c<d.length){let f=d.slice(0,c);return this.head.data=d.slice(c),f}return c===d.length?this.shift():u?this._getString(c):this._getBuffer(c)}first(){return this.head.data}*[i](){for(let c=this.head;c;c=c.next)yield c.data}_getString(c){let u="",d=this.head,f=0;do{let p=d.data;if(c>p.length)u+=p,c-=p.length;else{c===p.length?(u+=p,++f,d.next?this.head=d.next:this.head=this.tail=null):(u+=r(p,0,c),this.head=d,d.data=r(p,c));break}++f}while((d=d.next)!==null);return this.length-=f,u}_getBuffer(c){let u=s.allocUnsafe(c),d=c,f=this.head,p=0;do{let h=f.data;if(c>h.length)o(u,h,d-c),c-=h.length;else{c===h.length?(o(u,h,d-c),++p,f.next?this.head=f.next:this.head=this.tail=null):(o(u,new a(h.buffer,h.byteOffset,c),d-c),this.head=f,f.data=h.slice(c));break}++p}while((f=f.next)!==null);return this.length-=p,u}[Symbol.for("nodejs.util.inspect.custom")](c,u){return l(this,{...u,depth:0,customInspect:!1})}}}),Mle=On((e,n)=>{fn(),hn(),pn();var{MathFloor:r,NumberIsInteger:i}=xl(),{ERR_INVALID_ARG_VALUE:o}=Ed().codes;function a(c,u,d){return c.highWaterMark!=null?c.highWaterMark:u?c[d]:null}function s(c){return c?16:16*1024}function l(c,u,d,f){let p=a(u,f,d);if(p!=null){if(!i(p)||p<0){let h=f?`options.${d}`:"options.highWaterMark";throw new o(h,p)}return r(p)}return s(c.objectMode)}n.exports={getHighWaterMark:l,getDefaultHighWaterMark:s}});function n0e(e){var n=e.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return r===-1&&(r=n),[r,r===n?0:4-r%4]}function cSt(e,n,r){for(var i,o,a=[],s=n;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(Sh[(o=i)>>18&63]+Sh[o>>12&63]+Sh[o>>6&63]+Sh[63&o]);return a.join("")}function qv(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=new Uint8Array(e);return Object.setPrototypeOf(n,_n.prototype),n}function _n(e,n,r){if(typeof e=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return rne(e)}return H5e(e,n,r)}function H5e(e,n,r){if(typeof e=="string")return function(a,s){if(typeof s=="string"&&s!==""||(s="utf8"),!_n.isEncoding(s))throw new TypeError("Unknown encoding: "+s);var l=0|V5e(a,s),c=qv(l),u=c.write(a,s);return u!==l&&(c=c.slice(0,u)),c}(e,n);if(ArrayBuffer.isView(e))return BW(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Kv(e,ArrayBuffer)||e&&Kv(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Kv(e,SharedArrayBuffer)||e&&Kv(e.buffer,SharedArrayBuffer)))return uSt(e,n,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return _n.from(i,n,r);var o=function(a){if(_n.isBuffer(a)){var s=0|Ple(a.length),l=qv(s);return l.length===0||a.copy(l,0,0,s),l}if(a.length!==void 0)return typeof a.length!="number"||Ale(a.length)?qv(0):BW(a);if(a.type==="Buffer"&&Array.isArray(a.data))return BW(a.data)}(e);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return _n.from(e[Symbol.toPrimitive]("string"),n,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function z5e(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function rne(e){return z5e(e),qv(e<0?0:0|Ple(e))}function BW(e){for(var n=e.length<0?0:0|Ple(e.length),r=qv(n),i=0;i<n;i+=1)r[i]=255&e[i];return r}function uSt(e,n,r){if(n<0||e.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<n+(r||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=n===void 0&&r===void 0?new Uint8Array(e):r===void 0?new Uint8Array(e,n):new Uint8Array(e,n,r),Object.setPrototypeOf(i,_n.prototype),i}function Ple(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function V5e(e,n){if(_n.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Kv(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;for(var o=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ine(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q5e(e).length;default:if(o)return i?-1:ine(e).length;n=(""+n).toLowerCase(),o=!0}}function dSt(e,n,r){var i=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return bSt(this,n,r);case"utf8":case"utf-8":return W5e(this,n,r);case"ascii":return ySt(this,n,r);case"latin1":case"binary":return _St(this,n,r);case"base64":return vSt(this,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return SSt(this,n,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function cE(e,n,r){var i=e[n];e[n]=e[r],e[r]=i}function r0e(e,n,r,i,o){if(e.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Ale(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if(typeof n=="string"&&(n=_n.from(n,i)),_n.isBuffer(n))return n.length===0?-1:i0e(e,n,r,i,o);if(typeof n=="number")return n&=255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):i0e(e,[n],r,i,o);throw new TypeError("val must be string, number or Buffer")}function i0e(e,n,r,i,o){var a,s=1,l=e.length,c=n.length;if(i!==void 0&&((i=String(i).toLowerCase())==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||n.length<2)return-1;s=2,l/=2,c/=2,r/=2}function u(h,g){return s===1?h[g]:h.readUInt16BE(g*s)}if(o){var d=-1;for(a=r;a<l;a++)if(u(e,a)===u(n,d===-1?0:a-d)){if(d===-1&&(d=a),a-d+1===c)return d*s}else d!==-1&&(a-=a-d),d=-1}else for(r+c>l&&(r=l-c),a=r;a>=0;a--){for(var f=!0,p=0;p<c;p++)if(u(e,a+p)!==u(n,p)){f=!1;break}if(f)return a}return-1}function fSt(e,n,r,i){r=Number(r)||0;var o=e.length-r;i?(i=Number(i))>o&&(i=o):i=o;var a=n.length;i>a/2&&(i=a/2);for(var s=0;s<i;++s){var l=parseInt(n.substr(2*s,2),16);if(Ale(l))return s;e[r+s]=l}return s}function pSt(e,n,r,i){return L7(ine(n,e.length-r),e,r,i)}function G5e(e,n,r,i){return L7(function(o){for(var a=[],s=0;s<o.length;++s)a.push(255&o.charCodeAt(s));return a}(n),e,r,i)}function hSt(e,n,r,i){return G5e(e,n,r,i)}function gSt(e,n,r,i){return L7(q5e(n),e,r,i)}function mSt(e,n,r,i){return L7(function(o,a){for(var s,l,c,u=[],d=0;d<o.length&&!((a-=2)<0);++d)s=o.charCodeAt(d),l=s>>8,c=s%256,u.push(c),u.push(l);return u}(n,e.length-r),e,r,i)}function vSt(e,n,r){return n===0&&r===e.length?NF.fromByteArray(e):NF.fromByteArray(e.slice(n,r))}function W5e(e,n,r){r=Math.min(e.length,r);for(var i=[],o=n;o<r;){var a,s,l,c,u=e[o],d=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(d=u);break;case 2:(192&(a=e[o+1]))==128&&(c=(31&u)<<6|63&a)>127&&(d=c);break;case 3:a=e[o+1],s=e[o+2],(192&a)==128&&(192&s)==128&&(c=(15&u)<<12|(63&a)<<6|63&s)>2047&&(c<55296||c>57343)&&(d=c);break;case 4:a=e[o+1],s=e[o+2],l=e[o+3],(192&a)==128&&(192&s)==128&&(192&l)==128&&(c=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&l)>65535&&c<1114112&&(d=c)}d===null?(d=65533,f=1):d>65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|1023&d),i.push(d),o+=f}return function(p){var h=p.length;if(h<=4096)return String.fromCharCode.apply(String,p);for(var g="",v=0;v<h;)g+=String.fromCharCode.apply(String,p.slice(v,v+=4096));return g}(i)}function ySt(e,n,r){var i="";r=Math.min(e.length,r);for(var o=n;o<r;++o)i+=String.fromCharCode(127&e[o]);return i}function _St(e,n,r){var i="";r=Math.min(e.length,r);for(var o=n;o<r;++o)i+=String.fromCharCode(e[o]);return i}function bSt(e,n,r){var i=e.length;(!n||n<0)&&(n=0),(!r||r<0||r>i)&&(r=i);for(var o="",a=n;a<r;++a)o+=X5e[e[a]];return o}function SSt(e,n,r){for(var i=e.slice(n,r),o="",a=0;a<i.length;a+=2)o+=String.fromCharCode(i[a]+256*i[a+1]);return o}function Fl(e,n,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>r)throw new RangeError("Trying to access beyond buffer length")}function Hu(e,n,r,i,o,a){if(!_n.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||n<a)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function Y5e(e,n,r,i,o,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function o0e(e,n,r,i,o){return n=+n,r>>>=0,o||Y5e(e,0,r,4),BE.write(e,n,r,i,23,4),r+4}function a0e(e,n,r,i,o){return n=+n,r>>>=0,o||Y5e(e,0,r,8),BE.write(e,n,r,i,52,8),r+8}function ine(e,n){var r;n=n||1/0;for(var i=e.length,o=null,a=[],s=0;s<i;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(n-=3)>-1&&a.push(239,191,189);continue}if(s+1===i){(n-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(n-=3)>-1&&a.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(n-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((n-=1)<0)break;a.push(r)}else if(r<2048){if((n-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((n-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function q5e(e){return NF.toByteArray(function(n){if((n=(n=n.split("=")[0]).trim().replace(K5e,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(e))}function L7(e,n,r,i){for(var o=0;o<i&&!(o+r>=n.length||o>=e.length);++o)n[o+r]=e[o];return o}function Kv(e,n){return e instanceof n||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===n.name}function Ale(e){return e!=e}function s0e(e,n){for(var r in e)n[r]=e[r]}function uE(e,n,r){return fh(e,n,r)}function zN(e){var n;switch(this.encoding=function(r){var i=function(o){if(!o)return"utf8";for(var a;;)switch(o){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return o;default:if(a)return;o=(""+o).toLowerCase(),a=!0}}(r);if(typeof i!="string"&&(MF.isEncoding===one||!one(r)))throw new Error("Unknown encoding: "+r);return i||r}(e),this.encoding){case"utf16le":this.text=CSt,this.end=wSt,n=4;break;case"utf8":this.fillLast=ESt,n=4;break;case"base64":this.text=xSt,this.end=TSt,n=3;break;default:return this.write=OSt,this.end=RSt,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=MF.allocUnsafe(n)}function jW(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function ESt(e){var n=this.lastTotal-this.lastNeed,r=function(i,o,a){if((192&o[0])!=128)return i.lastNeed=0,"<22>";if(i.lastNeed>1&&o.length>1){if((192&o[1])!=128)return i.lastNeed=1,"<22>";if(i.lastNeed>2&&o.length>2&&(192&o[2])!=128)return i.lastNeed=2,"<22>"}}(this,e);return r!==void 0?r:this.lastNeed<=e.length?(e.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,n,0,e.length),this.lastNeed-=e.length,void 0)}function CSt(e,n){if((e.length-n)%2==0){var r=e.toString("utf16le",n);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",n,e.length-1)}function wSt(e){var n=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,r)}return n}function xSt(e,n){var r=(e.length-n)%3;return r===0?e.toString("base64",n):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",n,e.length-r))}function TSt(e){var n=e&&e.length?this.write(e):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function OSt(e){return e.toString(this.encoding)}function RSt(e){return e&&e.length?this.write(e):""}var l0e,Sh,kd,c0e,d3,dE,u0e,d0e,Fg,NF,BE,UW,K5e,X5e,VN,GN,fh,f0e,nT,MF,one,p0e=bc(()=>{for(fn(),hn(),pn(),l0e={byteLength:function(e){var n=n0e(e),r=n[0],i=n[1];return 3*(r+i)/4-i},toByteArray:function(e){var n,r,i=n0e(e),o=i[0],a=i[1],s=new c0e(function(u,d,f){return 3*(d+f)/4-f}(0,o,a)),l=0,c=a>0?o-4:o;for(r=0;r<c;r+=4)n=kd[e.charCodeAt(r)]<<18|kd[e.charCodeAt(r+1)]<<12|kd[e.charCodeAt(r+2)]<<6|kd[e.charCodeAt(r+3)],s[l++]=n>>16&255,s[l++]=n>>8&255,s[l++]=255&n;return a===2&&(n=kd[e.charCodeAt(r)]<<2|kd[e.charCodeAt(r+1)]>>4,s[l++]=255&n),a===1&&(n=kd[e.charCodeAt(r)]<<10|kd[e.charCodeAt(r+1)]<<4|kd[e.charCodeAt(r+2)]>>2,s[l++]=n>>8&255,s[l++]=255&n),s},fromByteArray:function(e){for(var n,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(cSt(e,a,a+16383>s?s:a+16383));return i===1?(n=e[r-1],o.push(Sh[n>>2]+Sh[n<<4&63]+"==")):i===2&&(n=(e[r-2]<<8)+e[r-1],o.push(Sh[n>>10]+Sh[n>>4&63]+Sh[n<<2&63]+"=")),o.join("")}},Sh=[],kd=[],c0e=typeof Uint8Array<"u"?Uint8Array:Array,d3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dE=0,u0e=d3.length;dE<u0e;++dE)Sh[dE]=d3[dE],kd[d3.charCodeAt(dE)]=dE;kd[45]=62,kd[95]=63,d0e={read:function(e,n,r,i,o){var a,s,l=8*o-i-1,c=(1<<l)-1,u=c>>1,d=-7,f=r?o-1:0,p=r?-1:1,h=e[n+f];for(f+=p,a=h&(1<<-d)-1,h>>=-d,d+=l;d>0;a=256*a+e[n+f],f+=p,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=i;d>0;s=256*s+e[n+f],f+=p,d-=8);if(a===0)a=1-u;else{if(a===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,i),a-=u}return(h?-1:1)*s*Math.pow(2,a-i)},write:function(e,n,r,i,o,a){var s,l,c,u=8*a-o-1,d=(1<<u)-1,f=d>>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:a-1,g=i?1:-1,v=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(l=isNaN(n)?1:0,s=d):(s=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-s))<1&&(s--,c*=2),(n+=s+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=d?(l=0,s=d):s+f>=1?(l=(n*c-1)*Math.pow(2,o),s+=f):(l=n*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+h]=255&l,h+=g,l/=256,o-=8);for(s=s<<o|l,u+=o;u>0;e[r+h]=255&s,h+=g,s/=256,u-=8);e[r+h-g]|=128*v}},Fg={},NF=l0e,BE=d0e,UW=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,Fg.Buffer=_n,Fg.SlowBuffer=function(e){return+e!=e&&(e=0),_n.alloc(+e)},Fg.INSPECT_MAX_BYTES=50,Fg.kMaxLength=2147483647,_n.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(e,n),e.foo()===42}catch{return!1}}(),_n.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(_n.prototype,"parent",{enumerable:!0,get:function(){if(_n.isBuffer(this))return this.buffer}}),Object.defineProperty(_n.prototype,"offset",{enumerable:!0,get:function(){if(_n.isBuffer(this))return this.byteOffset}}),_n.poolSize=8192,_n.from=function(e,n,r){return H5e(e,n,r)},Object.setPrototypeOf(_n.prototype,Uint8Array.prototype),Object.setPrototypeOf(_n,Uint8Array),_n.alloc=function(e,n,r){return function(i,o,a){return z5e(i),i<=0?qv(i):o!==void 0?typeof a=="string"?qv(i).fill(o,a):qv(i).fill(o):qv(i)}(e,n,r)},_n.allocUnsafe=function(e){return rne(e)},_n.allocUnsafeSlow=function(e){return rne(e)},_n.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==_n.prototype},_n.compare=function(e,n){if(Kv(e,Uint8Array)&&(e=_n.from(e,e.offset,e.byteLength)),Kv(n,Uint8Array)&&(n=_n.from(n,n.offset,n.byteLength)),!_n.isBuffer(e)||!_n.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;for(var r=e.length,i=n.length,o=0,a=Math.min(r,i);o<a;++o)if(e[o]!==n[o]){r=e[o],i=n[o];break}return r<i?-1:i<r?1:0},_n.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},_n.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return _n.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<e.length;++r)n+=e[r].length;var i=_n.allocUnsafe(n),o=0;for(r=0;r<e.length;++r){var a=e[r];if(Kv(a,Uint8Array)&&(a=_n.from(a)),!_n.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i},_n.byteLength=V5e,_n.prototype._isBuffer=!0,_n.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)cE(this,n,n+1);return this},_n.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)cE(this,n,n+3),cE(this,n+1,n+2);return this},_n.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)cE(this,n,n+7),cE(this,n+1,n+6),cE(this,n+2,n+5),cE(this,n+3,n+4);return this},_n.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?W5e(this,0,e):dSt.apply(this,arguments)},_n.prototype.toLocaleString=_n.prototype.toString,_n.prototype.equals=function(e){if(!_n.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||_n.compare(this,e)===0},_n.prototype.inspect=function(){var e="",n=Fg.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},UW&&(_n.prototype[UW]=_n.prototype.inspect),_n.prototype.compare=function(e,n,r,i,o){if(Kv(e,Uint8Array)&&(e=_n.from(e,e.offset,e.byteLength)),!_n.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(n===void 0&&(n=0),r===void 0&&(r=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),n<0||r>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&n>=r)return 0;if(i>=o)return-1;if(n>=r)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(i>>>=0),s=(r>>>=0)-(n>>>=0),l=Math.min(a,s),c=this.slice(i,o),u=e.slice(n,r),d=0;d<l;++d)if(c[d]!==u[d]){a=c[d],s=u[d];break}return a<s?-1:s<a?1:0},_n.prototype.includes=function(e,n,r){return this.indexOf(e,n,r)!==-1},_n.prototype.indexOf=function(e,n,r){return r0e(this,e,n,r,!0)},_n.prototype.lastIndexOf=function(e,n,r){return r0e(this,e,n,r,!1)},_n.prototype.write=function(e,n,r,i){if(n===void 0)i="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")i=n,r=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n>>>=0,isFinite(r)?(r>>>=0,i===void 0&&(i="utf8")):(i=r,r=void 0)}var o=this.length-n;if((r===void 0||r>o)&&(r=o),e.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return fSt(this,e,n,r);case"utf8":case"utf-8":return pSt(this,e,n,r);case"ascii":return G5e(this,e,n,r);case"latin1":case"binary":return hSt(this,e,n,r);case"base64":return gSt(this,e,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mSt(this,e,n,r);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},_n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},_n.prototype.slice=function(e,n){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=n===void 0?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<e&&(n=e);var i=this.subarray(e,n);return Object.setPrototypeOf(i,_n.prototype),i},_n.prototype.readUIntLE=function(e,n,r){e>>>=0,n>>>=0,r||Fl(e,n,this.length);for(var i=this[e],o=1,a=0;++a<n&&(o*=256);)i+=this[e+a]*o;return i},_n.prototype.readUIntBE=function(e,n,r){e>>>=0,n>>>=0,r||Fl(e,n,this.length);for(var i=this[e+--n],o=1;n>0&&(o*=256);)i+=this[e+--n]*o;return i},_n.prototype.readUInt8=function(e,n){return e>>>=0,n||Fl(e,1,this.length),this[e]},_n.prototype.readUInt16LE=function(e,n){return e>>>=0,n||Fl(e,2,this.length),this[e]|this[e+1]<<8},_n.prototype.readUInt16BE=function(e,n){return e>>>=0,n||Fl(e,2,this.length),this[e]<<8|this[e+1]},_n.prototype.readUInt32LE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},_n.prototype.readUInt32BE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},_n.prototype.readIntLE=function(e,n,r){e>>>=0,n>>>=0,r||Fl(e,n,this.length);for(var i=this[e],o=1,a=0;++a<n&&(o*=256);)i+=this[e+a]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*n)),i},_n.prototype.readIntBE=function(e,n,r){e>>>=0,n>>>=0,r||Fl(e,n,this.length);for(var i=n,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*n)),a},_n.prototype.readInt8=function(e,n){return e>>>=0,n||Fl(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},_n.prototype.readInt16LE=function(e,n){e>>>=0,n||Fl(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},_n.prototype.readInt16BE=function(e,n){e>>>=0,n||Fl(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},_n.prototype.readInt32LE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},_n.prototype.readInt32BE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},_n.prototype.readFloatLE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),BE.read(this,e,!0,23,4)},_n.prototype.readFloatBE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),BE.read(this,e,!1,23,4)},_n.prototype.readDoubleLE=function(e,n){return e>>>=0,n||Fl(e,8,this.length),BE.read(this,e,!0,52,8)},_n.prototype.readDoubleBE=function(e,n){return e>>>=0,n||Fl(e,8,this.length),BE.read(this,e,!1,52,8)},_n.prototype.writeUIntLE=function(e,n,r,i){e=+e,n>>>=0,r>>>=0,i||Hu(this,e,n,r,Math.pow(2,8*r)-1,0);var o=1,a=0;for(this[n]=255&e;++a<r&&(o*=256);)this[n+a]=e/o&255;return n+r},_n.prototype.writeUIntBE=function(e,n,r,i){e=+e,n>>>=0,r>>>=0,i||Hu(this,e,n,r,Math.pow(2,8*r)-1,0);var o=r-1,a=1;for(this[n+o]=255&e;--o>=0&&(a*=256);)this[n+o]=e/a&255;return n+r},_n.prototype.writeUInt8=function(e,n,r){return e=+e,n>>>=0,r||Hu(this,e,n,1,255,0),this[n]=255&e,n+1},_n.prototype.writeUInt16LE=function(e,n,r){return e=+e,n>>>=0,r||Hu(this,e,n,2,65535,0),this[n]=255&e,this[n+1]=e>>>8,n+2},_n.prototype.writeUInt16BE=function(e,n,r){return e=+e,n>>>=0,r||Hu(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=255&e,n+2},_n.prototype.writeUInt32LE=function(e,n,r){return e=+e,n>>>=0,r||Hu(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e,n+4},_n.prototype.writeUInt32BE=function(e,n,r){return e=+e,n>>>=0,r||Hu(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},_n.prototype.writeIntLE=function(e,n,r,i){if(e=+e,n>>>=0,!i){var o=Math.pow(2,8*r-1);Hu(this,e,n,r,o-1,-o)}var a=0,s=1,l=0;for(this[n]=255&e;++a<r&&(s*=256);)e<0&&l===0&&this[n+a-1]!==0&&(l=1),this[n+a]=(e/s>>0)-l&255;return n+r},_n.prototype.writeIntBE=function(e,n,r,i){if(e=+e,n>>>=0,!i){var o=Math.pow(2,8*r-1);Hu(this,e,n,r,o-1,-o)}var a=r-1,s=1,l=0;for(this[n+a]=255&e;--a>=0&&(s*=256);)e<0&&l===0&&this[n+a+1]!==0&&(l=1),this[n+a]=(e/s>>0)-l&255;return n+r},_n.prototype.writeInt8=function(e,n,r){return e=+e,n>>>=0,r||Hu(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=255&e,n+1},_n.prototype.writeInt16LE=function(e,n,r){return e=+e,n>>>=0,r||Hu(this,e,n,2,32767,-32768),this[n]=255&e,this[n+1]=e>>>8,n+2},_n.prototype.writeInt16BE=function(e,n,r){return e=+e,n>>>=0,r||Hu(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=255&e,n+2},_n.prototype.writeInt32LE=function(e,n,r){return e=+e,n>>>=0,r||Hu(this,e,n,4,2147483647,-2147483648),this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4},_n.prototype.writeInt32BE=function(e,n,r){return e=+e,n>>>=0,r||Hu(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},_n.prototype.writeFloatLE=function(e,n,r){return o0e(this,e,n,!0,r)},_n.prototype.writeFloatBE=function(e,n,r){return o0e(this,e,n,!1,r)},_n.prototype.writeDoubleLE=function(e,n,r){return a0e(this,e,n,!0,r)},_n.prototype.writeDoubleBE=function(e,n,r){return a0e(this,e,n,!1,r)},_n.prototype.copy=function(e,n,r,i){if(!_n.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||i===0||(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&i<r&&(i=r),i===r||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-n<i-r&&(i=e.length-n+r);var o=i-r;if(this===e&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(n,r,i);else if(this===e&&r<n&&n<i)for(var a=o-1;a>=0;--a)e[a+n]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),n);return o},_n.prototype.fill=function(e,n,r,i){if(typeof e=="string"){if(typeof n=="string"?(i=n,n=0,r=this.length):typeof r=="string"&&(i=r,r=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!_n.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;var a;if(n>>>=0,r=r===void 0?this.length:r>>>0,e||(e=0),typeof e=="number")for(a=n;a<r;++a)this[a]=e;else{var s=_n.isBuffer(e)?e:_n.from(e,i),l=s.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-n;++a)this[a+n]=s[a%l]}return this},K5e=/[^+/0-9A-Za-z-_]/g,X5e=function(){for(var e=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)e[r+i]="0123456789abcdef"[n]+"0123456789abcdef"[i];return e}(),Fg.Buffer,Fg.INSPECT_MAX_BYTES,Fg.kMaxLength,VN={},GN=Fg,fh=GN.Buffer,fh.from&&fh.alloc&&fh.allocUnsafe&&fh.allocUnsafeSlow?VN=GN:(s0e(GN,VN),VN.Buffer=uE),uE.prototype=Object.create(fh.prototype),s0e(fh,uE),uE.from=function(e,n,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return fh(e,n,r)},uE.alloc=function(e,n,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=fh(e);return n!==void 0?typeof r=="string"?i.fill(n,r):i.fill(n):i.fill(0),i},uE.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return fh(e)},uE.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return GN.SlowBuffer(e)},f0e=VN,nT={},MF=f0e.Buffer,one=MF.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},nT.StringDecoder=zN,zN.prototype.write=function(e){if(e.length===0)return"";var n,r;if(this.lastNeed){if((n=this.fillLast(e))===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?n?n+this.text(e,r):this.text(e,r):n||""},zN.prototype.end=function(e){var n=e&&e.length?this.write(e):"";return this.lastNeed?n+"<22>":n},zN.prototype.text=function(e,n){var r=function(o,a,s){var l=a.length-1;if(l<s)return 0;var c=jW(a[l]);return c>=0?(c>0&&(o.lastNeed=c-1),c):--l<s||c===-2?0:(c=jW(a[l]))>=0?(c>0&&(o.lastNeed=c-2),c):--l<s||c===-2?0:(c=jW(a[l]))>=0?(c>0&&(c===2?c=0:o.lastNeed=c-3),c):0}(this,e,n);if(!this.lastNeed)return e.toString("utf8",n);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",n,i)},zN.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},nT.StringDecoder,nT.StringDecoder}),Q5e={};GC(Q5e,{StringDecoder:()=>Z5e,default:()=>nT});var Z5e,ISt=bc(()=>{fn(),hn(),pn(),p0e(),p0e(),Z5e=nT.StringDecoder}),J5e=On((e,n)=>{fn(),hn(),pn();var r=WC(),{PromisePrototypeThen:i,SymbolAsyncIterator:o,SymbolIterator:a}=xl(),{Buffer:s}=(Ec(),na(Sc)),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:c}=Ed().codes;function u(d,f,p){let h;if(typeof f=="string"||f instanceof s)return new d({objectMode:!0,...p,read(){this.push(f),this.push(null)}});let g;if(f&&f[o])g=!0,h=f[o]();else if(f&&f[a])g=!1,h=f[a]();else throw new l("iterable",["Iterable"],f);let v=new d({objectMode:!0,highWaterMark:1,...p}),y=!1;v._read=function(){y||(y=!0,S())},v._destroy=function(b,E){i(_(b),()=>r.nextTick(E,b),w=>r.nextTick(E,w||b))};async function _(b){let E=b!=null,w=typeof h.throw=="function";if(E&&w){let{value:C,done:x}=await h.throw(b);if(await C,x)return}if(typeof h.return=="function"){let{value:C}=await h.return();await C}}async function S(){for(;;){try{let{value:b,done:E}=g?await h.next():h.next();if(E)v.push(null);else{let w=b&&typeof b.then=="function"?await b:b;if(w===null)throw y=!1,new c;if(v.push(w))continue;y=!1}}catch(b){v.destroy(b)}break}}return v}n.exports=u}),$7=On((e,n)=>{fn(),hn(),pn();var r=WC(),{ArrayPrototypeIndexOf:i,NumberIsInteger:o,NumberIsNaN:a,NumberParseInt:s,ObjectDefineProperties:l,ObjectKeys:c,ObjectSetPrototypeOf:u,Promise:d,SafeSet:f,SymbolAsyncIterator:p,Symbol:h}=xl();n.exports=H,H.ReadableState=K;var{EventEmitter:g}=(XR(),na(YC)),{Stream:v,prependListener:y}=Nle(),{Buffer:_}=(Ec(),na(Sc)),{addAbortSignal:S}=k7(),b=K0(),E=Sy().debuglog("stream",J=>{E=J}),w=lSt(),C=KR(),{getHighWaterMark:x,getDefaultHighWaterMark:T}=Mle(),{aggregateTwoErrors:R,codes:{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_OUT_OF_RANGE:P,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:$}}=Ed(),{validateObject:U}=D7(),z=h("kPaused"),{StringDecoder:D}=(ISt(),na(Q5e)),B=J5e();u(H.prototype,v.prototype),u(H,v);var Y=()=>{},{errorOrDestroy:q}=C;function K(J,ae,Se){typeof Se!="boolean"&&(Se=ae instanceof Ey()),this.objectMode=!!(J&&J.objectMode),Se&&(this.objectMode=this.objectMode||!!(J&&J.readableObjectMode)),this.highWaterMark=J?x(this,J,"readableHighWaterMark",Se):T(!1),this.buffer=new w,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[z]=null,this.errorEmitted=!1,this.emitClose=!J||J.emitClose!==!1,this.autoDestroy=!J||J.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=J&&J.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,J&&J.encoding&&(this.decoder=new D(J.encoding),this.encoding=J.encoding)}function H(J){if(!(this instanceof H))return new H(J);let ae=this instanceof Ey();this._readableState=new K(J,this,ae),J&&(typeof J.read=="function"&&(this._read=J.read),typeof J.destroy=="function"&&(this._destroy=J.destroy),typeof J.construct=="function"&&(this._construct=J.construct),J.signal&&!ae&&S(J.signal,this)),v.call(this,J),C.construct(this,()=>{this._readableState.needReadable&&de(this,this._readableState)})}H.prototype.destroy=C.destroy,H.prototype._undestroy=C.undestroy,H.prototype._destroy=function(J,ae){ae(J)},H.prototype[g.captureRejectionSymbol]=function(J){this.destroy(J)},H.prototype.push=function(J,ae){return G(this,J,ae,!1)},H.prototype.unshift=function(J,ae){return G(this,J,ae,!0)};function G(J,ae,Se,xe){E("readableAddChunk",ae);let ue=J._readableState,Me;if(ue.objectMode||(typeof ae=="string"?(Se=Se||ue.defaultEncoding,ue.encoding!==Se&&(xe&&ue.encoding?ae=_.from(ae,Se).toString(ue.encoding):(ae=_.from(ae,Se),Se=""))):ae instanceof _?Se="":v._isUint8Array(ae)?(ae=v._uint8ArrayToBuffer(ae),Se=""):ae!=null&&(Me=new O("chunk",["string","Buffer","Uint8Array"],ae))),Me)q(J,Me);else if(ae===null)ue.reading=!1,F(J,ue);else if(ue.objectMode||ae&&ae.length>0)if(xe)if(ue.endEmitted)q(J,new $);else{if(ue.destroyed||ue.errored)return!1;Q(J,ue,ae,!0)}else if(ue.ended)q(J,new k);else{if(ue.destroyed||ue.errored)return!1;ue.reading=!1,ue.decoder&&!Se?(ae=ue.decoder.write(ae),ue.objectMode||ae.length!==0?Q(J,ue,ae,!1):de(J,ue)):Q(J,ue,ae,!1)}else xe||(ue.reading=!1,de(J,ue));return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function Q(J,ae,Se,xe){ae.flowing&&ae.length===0&&!ae.sync&&J.listenerCount("data")>0?(ae.multiAwaitDrain?ae.awaitDrainWriters.clear():ae.awaitDrainWriters=null,ae.dataEmitted=!0,J.emit("data",Se)):(ae.length+=ae.objectMode?1:Se.length,xe?ae.buffer.unshift(Se):ae.buffer.push(Se),ae.needReadable&&te(J)),de(J,ae)}H.prototype.isPaused=function(){let J=this._readableState;return J[z]===!0||J.flowing===!1},H.prototype.setEncoding=function(J){let ae=new D(J);this._readableState.decoder=ae,this._readableState.encoding=this._readableState.decoder.encoding;let Se=this._readableState.buffer,xe="";for(let ue of Se)xe+=ae.write(ue);return Se.clear(),xe!==""&&Se.push(xe),this._readableState.length=xe.length,this};var le=1073741824;function Z(J){if(J>le)throw new P("size","<= 1GiB",J);return J--,J|=J>>>1,J|=J>>>2,J|=J>>>4,J|=J>>>8,J|=J>>>16,J++,J}function j(J,ae){return J<=0||ae.length===0&&ae.ended?0:ae.objectMode?1:a(J)?ae.flowing&&ae.length?ae.buffer.first().length:ae.length:J<=ae.length?J:ae.ended?ae.length:0}H.prototype.read=function(J){E("read",J),J===void 0?J=NaN:o(J)||(J=s(J,10));let ae=this._readableState,Se=J;if(J>ae.highWaterMark&&(ae.highWaterMark=Z(J)),J!==0&&(ae.emittedReadable=!1),J===0&&ae.needReadable&&((ae.highWaterMark!==0?ae.length>=ae.highWaterMark:ae.length>0)||ae.ended))return E("read: emitReadable",ae.length,ae.ended),ae.length===0&&ae.ended?Te(this):te(this),null;if(J=j(J,ae),J===0&&ae.ended)return ae.length===0&&Te(this),null;let xe=ae.needReadable;if(E("need readable",xe),(ae.length===0||ae.length-J<ae.highWaterMark)&&(xe=!0,E("length less than watermark",xe)),ae.ended||ae.reading||ae.destroyed||ae.errored||!ae.constructed)xe=!1,E("reading, ended or constructing",xe);else if(xe){E("do read"),ae.reading=!0,ae.sync=!0,ae.length===0&&(ae.needReadable=!0);try{this._read(ae.highWaterMark)}catch(Me){q(this,Me)}ae.sync=!1,ae.reading||(J=j(Se,ae))}let ue;return J>0?ue=Re(J,ae):ue=null,ue===null?(ae.needReadable=ae.length<=ae.highWaterMark,J=0):(ae.length-=J,ae.multiAwaitDrain?ae.awaitDrainWriters.clear():ae.awaitDrainWriters=null),ae.length===0&&(ae.ended||(ae.needReadable=!0),Se!==J&&ae.ended&&Te(this)),ue!==null&&!ae.errorEmitted&&!ae.closeEmitted&&(ae.dataEmitted=!0,this.emit("data",ue)),ue};function F(J,ae){if(E("onEofChunk"),!ae.ended){if(ae.decoder){let Se=ae.decoder.end();Se&&Se.length&&(ae.buffer.push(Se),ae.length+=ae.objectMode?1:Se.length)}ae.ended=!0,ae.sync?te(J):(ae.needReadable=!1,ae.emittedReadable=!0,oe(J))}}function te(J){let ae=J._readableState;E("emitReadable",ae.needReadable,ae.emittedReadable),ae.needReadable=!1,ae.emittedReadable||(E("emitReadable",ae.flowing),ae.emittedReadable=!0,r.nextTick(oe,J))}function oe(J){let ae=J._readableState;E("emitReadable_",ae.destroyed,ae.length,ae.ended),!ae.destroyed&&!ae.errored&&(ae.length||ae.ended)&&(J.emit("readable"),ae.emittedReadable=!1),ae.needReadable=!ae.flowing&&!ae.ended&&ae.length<=ae.highWaterMark,De(J)}function de(J,ae){!ae.readingMore&&ae.constructed&&(ae.readingMore=!0,r.nextTick(pe,J,ae))}function pe(J,ae){for(;!ae.reading&&!ae.ended&&(ae.length<ae.highWaterMark||ae.flowing&&ae.length===0);){let Se=ae.length;if(E("maybeReadMore read 0"),J.read(0),Se===ae.length)break}ae.readingMore=!1}H.prototype._read=function(J){throw new M("_read()")},H.prototype.pipe=function(J,ae){let Se=this,xe=this._readableState;xe.pipes.length===1&&(xe.multiAwaitDrain||(xe.multiAwaitDrain=!0,xe.awaitDrainWriters=new f(xe.awaitDrainWriters?[xe.awaitDrainWriters]:[]))),xe.pipes.push(J),E("pipe count=%d opts=%j",xe.pipes.length,ae);let ue=(!ae||ae.end!==!1)&&J!==r.stdout&&J!==r.stderr?$e:at;xe.endEmitted?r.nextTick(ue):Se.once("end",ue),J.on("unpipe",Me);function Me(pt,Ct){E("onunpipe"),pt===Se&&Ct&&Ct.hasUnpiped===!1&&(Ct.hasUnpiped=!0,st())}function $e(){E("onend"),J.end()}let ge,Ve=!1;function st(){E("cleanup"),J.removeListener("close",Ze),J.removeListener("finish",bt),ge&&J.removeListener("drain",ge),J.removeListener("error",Xe),J.removeListener("unpipe",Me),Se.removeListener("end",$e),Se.removeListener("end",at),Se.removeListener("data",ot),Ve=!0,ge&&xe.awaitDrainWriters&&(!J._writableState||J._writableState.needDrain)&&ge()}function Je(){Ve||(xe.pipes.length===1&&xe.pipes[0]===J?(E("false write response, pause",0),xe.awaitDrainWriters=J,xe.multiAwaitDrain=!1):xe.pipes.length>1&&xe.pipes.includes(J)&&(E("false write response, pause",xe.awaitDrainWriters.size),xe.awaitDrainWriters.add(J)),Se.pause()),ge||(ge=me(Se,J),J.on("drain",ge))}Se.on("data",ot);function ot(pt){E("ondata");let Ct=J.write(pt);E("dest.write",Ct),Ct===!1&&Je()}function Xe(pt){if(E("onerror",pt),at(),J.removeListener("error",Xe),J.listenerCount("error")===0){let Ct=J._writableState||J._readableState;Ct&&!Ct.errorEmitted?q(J,pt):J.emit("error",pt)}}y(J,"error",Xe);function Ze(){J.removeListener("finish",bt),at()}J.once("close",Ze);function bt(){E("onfinish"),J.removeListener("close",Ze),at()}J.once("finish",bt);function at(){E("unpipe"),Se.unpipe(J)}return J.emit("pipe",Se),J.writableNeedDrain===!0?xe.flowing&&Je():xe.flowing||(E("pipe resume"),Se.resume()),J};function me(J,ae){return function(){let Se=J._readableState;Se.awaitDrainWriters===ae?(E("pipeOnDrain",1),Se.awaitDrainWriters=null):Se.multiAwaitDrain&&(E("pipeOnDrain",Se.awaitDrainWriters.size),Se.awaitDrainWriters.delete(ae)),(!Se.awaitDrainWriters||Se.awaitDrainWriters.size===0)&&J.listenerCount("data")&&J.resume()}}H.prototype.unpipe=function(J){let ae=this._readableState,Se={hasUnpiped:!1};if(ae.pipes.length===0)return this;if(!J){let ue=ae.pipes;ae.pipes=[],this.pause();for(let Me=0;Me<ue.length;Me++)ue[Me].emit("unpipe",this,{hasUnpiped:!1});return this}let xe=i(ae.pipes,J);return xe===-1?this:(ae.pipes.splice(xe,1),ae.pipes.length===0&&this.pause(),J.emit("unpipe",this,Se),this)},H.prototype.on=function(J,ae){let Se=v.prototype.on.call(this,J,ae),xe=this._readableState;return J==="data"?(xe.readableListening=this.listenerCount("readable")>0,xe.flowing!==!1&&this.resume()):J==="readable"&&!xe.endEmitted&&!xe.readableListening&&(xe.readableListening=xe.needReadable=!0,xe.flowing=!1,xe.emittedReadable=!1,E("on readable",xe.length,xe.reading),xe.length?te(this):xe.reading||r.nextTick(he,this)),Se},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(J,ae){let Se=v.prototype.removeListener.call(this,J,ae);return J==="readable"&&r.nextTick(ve,this),Se},H.prototype.off=H.prototype.removeListener,H.prototype.removeAllListeners=function(J){let ae=v.prototype.removeAllListeners.apply(this,arguments);return(J==="readable"||J===void 0)&&r.nextTick(ve,this),ae};function ve(J){let ae=J._readableState;ae.readableListening=J.listenerCount("readable")>0,ae.resumeScheduled&&ae[z]===!1?ae.flowing=!0:J.listenerCount("data")>0?J.resume():ae.readableListening||(ae.flowing=null)}function he(J){E("readable nexttick read 0"),J.read(0)}H.prototype.resume=function(){let J=this._readableState;return J.flowing||(E("resume"),J.flowing=!J.readableListening,be(this,J)),J[z]=!1,this};function be(J,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,r.nextTick(we,J,ae))}function we(J,ae){E("resume",ae.reading),ae.reading||J.read(0),ae.resumeScheduled=!1,J.emit("resume"),De(J),ae.flowing&&!ae.reading&&J.read(0)}H.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[z]=!0,this};function De(J){let ae=J._readableState;for(E("flow",ae.flowing);ae.flowing&&J.read()!==null;);}H.prototype.wrap=function(J){let ae=!1;J.on("data",xe=>{!this.push(xe)&&J.pause&&(ae=!0,J.pause())}),J.on("end",()=>{this.push(null)}),J.on("error",xe=>{q(this,xe)}),J.on("close",()=>{this.destroy()}),J.on("destroy",()=>{this.destroy()}),this._read=()=>{ae&&J.resume&&(ae=!1,J.resume())};let Se=c(J);for(let xe=1;xe<Se.length;xe++){let ue=Se[xe];this[ue]===void 0&&typeof J[ue]=="function"&&(this[ue]=J[ue].bind(J))}return this},H.prototype[p]=function(){return Ae(this)},H.prototype.iterator=function(J){return J!==void 0&&U(J,"options"),Ae(this,J)};function Ae(J,ae){typeof J.read!="function"&&(J=H.wrap(J,{objectMode:!0}));let Se=Ee(J,ae);return Se.stream=J,Se}async function*Ee(J,ae){let Se=Y;function xe($e){this===J?(Se(),Se=Y):Se=$e}J.on("readable",xe);let ue,Me=b(J,{writable:!1},$e=>{ue=$e?R(ue,$e):null,Se(),Se=Y});try{for(;;){let $e=J.destroyed?null:J.read();if($e!==null)yield $e;else{if(ue)throw ue;if(ue===null)return;await new d(xe)}}}catch($e){throw ue=R(ue,$e),ue}finally{(ue||(ae==null?void 0:ae.destroyOnReturn)!==!1)&&(ue===void 0||J._readableState.autoDestroy)?C.destroyer(J,null):(J.off("readable",xe),Me())}}l(H.prototype,{readable:{__proto__:null,get(){let J=this._readableState;return!!J&&J.readable!==!1&&!J.destroyed&&!J.errorEmitted&&!J.endEmitted},set(J){this._readableState&&(this._readableState.readable=!!J)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(J){this._readableState&&(this._readableState.flowing=J)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(J){this._readableState&&(this._readableState.destroyed=J)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),l(K.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[z]!==!1},set(J){this[z]=!!J}}}),H._fromList=Re;function Re(J,ae){if(ae.length===0)return null;let Se;return ae.objectMode?Se=ae.buffer.shift():!J||J>=ae.length?(ae.decoder?Se=ae.buffer.join(""):ae.buffer.length===1?Se=ae.buffer.first():Se=ae.buffer.concat(ae.length),ae.buffer.clear()):Se=ae.buffer.consume(J,ae.decoder),Se}function Te(J){let ae=J._readableState;E("endReadable",ae.endEmitted),ae.endEmitted||(ae.ended=!0,r.nextTick(Oe,ae,J))}function Oe(J,ae){if(E("endReadableNT",J.endEmitted,J.length),!J.errored&&!J.closeEmitted&&!J.endEmitted&&J.length===0){if(J.endEmitted=!0,ae.emit("end"),ae.writable&&ae.allowHalfOpen===!1)r.nextTick(Ne,ae);else if(J.autoDestroy){let Se=ae._writableState;(!Se||Se.autoDestroy&&(Se.finished||Se.writable===!1))&&ae.destroy()}}}function Ne(J){J.writable&&!J.writableEnded&&!J.destroyed&&J.end()}H.from=function(J,ae){return B(H,J,ae)};var je;function ne(){return je===void 0&&(je={}),je}H.fromWeb=function(J,ae){return ne().newStreamReadableFromReadableStream(J,ae)},H.toWeb=function(J,ae){return ne().newReadableStreamFromStreamReadable(J,ae)},H.wrap=function(J,ae){var Se,xe;return new H({objectMode:(Se=(xe=J.readableObjectMode)!==null&&xe!==void 0?xe:J.objectMode)!==null&&Se!==void 0?Se:!0,...ae,destroy(ue,Me){C.destroyer(J,ue),Me(ue)}}).wrap(J)}}),e6e=On((e,n)=>{fn(),hn(),pn();var r=WC(),{ArrayPrototypeSlice:i,Error:o,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:s,ObjectDefineProperties:l,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:u,Symbol:d,SymbolHasInstance:f}=xl();n.exports=D,D.WritableState=U;var{EventEmitter:p}=(XR(),na(YC)),h=Nle().Stream,{Buffer:g}=(Ec(),na(Sc)),v=KR(),{addAbortSignal:y}=k7(),{getHighWaterMark:_,getDefaultHighWaterMark:S}=Mle(),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_MULTIPLE_CALLBACK:w,ERR_STREAM_CANNOT_PIPE:C,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:T,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:M}=Ed().codes,{errorOrDestroy:P}=v;c(D.prototype,h.prototype),c(D,h);function k(){}var $=d("kOnFinished");function U(he,be,we){typeof we!="boolean"&&(we=be instanceof Ey()),this.objectMode=!!(he&&he.objectMode),we&&(this.objectMode=this.objectMode||!!(he&&he.writableObjectMode)),this.highWaterMark=he?_(this,he,"writableHighWaterMark",we):S(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let De=!!(he&&he.decodeStrings===!1);this.decodeStrings=!De,this.defaultEncoding=he&&he.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=H.bind(void 0,be),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,z(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!he||he.emitClose!==!1,this.autoDestroy=!he||he.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[$]=[]}function z(he){he.buffered=[],he.bufferedIndex=0,he.allBuffers=!0,he.allNoop=!0}U.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},s(U.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function D(he){let be=this instanceof Ey();if(!be&&!a(D,this))return new D(he);this._writableState=new U(he,this,be),he&&(typeof he.write=="function"&&(this._write=he.write),typeof he.writev=="function"&&(this._writev=he.writev),typeof he.destroy=="function"&&(this._destroy=he.destroy),typeof he.final=="function"&&(this._final=he.final),typeof he.construct=="function"&&(this._construct=he.construct),he.signal&&y(he.signal,this)),h.call(this,he),v.construct(this,()=>{let we=this._writableState;we.writing||Z(this,we),oe(this,we)})}s(D,f,{__proto__:null,value:function(he){return a(this,he)?!0:this!==D?!1:he&&he._writableState instanceof U}}),D.prototype.pipe=function(){P(this,new C)};function B(he,be,we,De){let Ae=he._writableState;if(typeof we=="function")De=we,we=Ae.defaultEncoding;else{if(!we)we=Ae.defaultEncoding;else if(we!=="buffer"&&!g.isEncoding(we))throw new M(we);typeof De!="function"&&(De=k)}if(be===null)throw new R;if(!Ae.objectMode)if(typeof be=="string")Ae.decodeStrings!==!1&&(be=g.from(be,we),we="buffer");else if(be instanceof g)we="buffer";else if(h._isUint8Array(be))be=h._uint8ArrayToBuffer(be),we="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],be);let Ee;return Ae.ending?Ee=new O:Ae.destroyed&&(Ee=new x("write")),Ee?(r.nextTick(De,Ee),P(he,Ee,!0),Ee):(Ae.pendingcb++,Y(he,Ae,be,we,De))}D.prototype.write=function(he,be,we){return B(this,he,be,we)===!0},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){let he=this._writableState;he.corked&&(he.corked--,he.writing||Z(this,he))},D.prototype.setDefaultEncoding=function(he){if(typeof he=="string"&&(he=u(he)),!g.isEncoding(he))throw new M(he);return this._writableState.defaultEncoding=he,this};function Y(he,be,we,De,Ae){let Ee=be.objectMode?1:we.length;be.length+=Ee;let Re=be.length<be.highWaterMark;return Re||(be.needDrain=!0),be.writing||be.corked||be.errored||!be.constructed?(be.buffered.push({chunk:we,encoding:De,callback:Ae}),be.allBuffers&&De!=="buffer"&&(be.allBuffers=!1),be.allNoop&&Ae!==k&&(be.allNoop=!1)):(be.writelen=Ee,be.writecb=Ae,be.writing=!0,be.sync=!0,he._write(we,De,be.onwrite),be.sync=!1),Re&&!be.errored&&!be.destroyed}function q(he,be,we,De,Ae,Ee,Re){be.writelen=De,be.writecb=Re,be.writing=!0,be.sync=!0,be.destroyed?be.onwrite(new x("write")):we?he._writev(Ae,be.onwrite):he._write(Ae,Ee,be.onwrite),be.sync=!1}function K(he,be,we,De){--be.pendingcb,De(we),le(be),P(he,we)}function H(he,be){let we=he._writableState,De=we.sync,Ae=we.writecb;if(typeof Ae!="function"){P(he,new w);return}we.writing=!1,we.writecb=null,we.length-=we.writelen,we.writelen=0,be?(be.stack,we.errored||(we.errored=be),he._readableState&&!he._readableState.errored&&(he._readableState.errored=be),De?r.nextTick(K,he,we,be,Ae):K(he,we,be,Ae)):(we.buffered.length>we.bufferedIndex&&Z(he,we),De?we.afterWriteTickInfo!==null&&we.afterWriteTickInfo.cb===Ae?we.afterWriteTickInfo.count++:(we.afterWriteTickInfo={count:1,cb:Ae,stream:he,state:we},r.nextTick(G,we.afterWriteTickInfo)):Q(he,we,1,Ae))}function G({stream:he,state:be,count:we,cb:De}){return be.afterWriteTickInfo=null,Q(he,be,we,De)}function Q(he,be,we,De){for(!be.ending&&!he.destroyed&&be.length===0&&be.needDrain&&(be.needDrain=!1,he.emit("drain"));we-- >0;)be.pendingcb--,De();be.destroyed&&le(be),oe(he,be)}function le(he){if(he.writing)return;for(let Ae=he.bufferedIndex;Ae<he.buffered.length;++Ae){var be;let{chunk:Ee,callback:Re}=he.buffered[Ae],Te=he.objectMode?1:Ee.length;he.length-=Te,Re((be=he.errored)!==null&&be!==void 0?be:new x("write"))}let we=he[$].splice(0);for(let Ae=0;Ae<we.length;Ae++){var De;we[Ae]((De=he.errored)!==null&&De!==void 0?De:new x("end"))}z(he)}function Z(he,be){if(be.corked||be.bufferProcessing||be.destroyed||!be.constructed)return;let{buffered:we,bufferedIndex:De,objectMode:Ae}=be,Ee=we.length-De;if(!Ee)return;let Re=De;if(be.bufferProcessing=!0,Ee>1&&he._writev){be.pendingcb-=Ee-1;let Te=be.allNoop?k:Ne=>{for(let je=Re;je<we.length;++je)we[je].callback(Ne)},Oe=be.allNoop&&Re===0?we:i(we,Re);Oe.allBuffers=be.allBuffers,q(he,be,!0,be.length,Oe,"",Te),z(be)}else{do{let{chunk:Te,encoding:Oe,callback:Ne}=we[Re];we[Re++]=null;let je=Ae?1:Te.length;q(he,be,!1,je,Te,Oe,Ne)}while(Re<we.length&&!be.writing);Re===we.length?z(be):Re>256?(we.splice(0,Re),be.bufferedIndex=0):be.bufferedIndex=Re}be.bufferProcessing=!1}D.prototype._write=function(he,be,we){if(this._writev)this._writev([{chunk:he,encoding:be}],we);else throw new E("_write()")},D.prototype._writev=null,D.prototype.end=function(he,be,we){let De=this._writableState;typeof he=="function"?(we=he,he=null,be=null):typeof be=="function"&&(we=be,be=null);let Ae;if(he!=null){let Ee=B(this,he,be);Ee instanceof o&&(Ae=Ee)}return De.corked&&(De.corked=1,this.uncork()),Ae||(!De.errored&&!De.ending?(De.ending=!0,oe(this,De,!0),De.ended=!0):De.finished?Ae=new T("end"):De.destroyed&&(Ae=new x("end"))),typeof we=="function"&&(Ae||De.finished?r.nextTick(we,Ae):De[$].push(we)),this};function j(he){return he.ending&&!he.destroyed&&he.constructed&&he.length===0&&!he.errored&&he.buffered.length===0&&!he.finished&&!he.writing&&!he.errorEmitted&&!he.closeEmitted}function F(he,be){let we=!1;function De(Ae){if(we){P(he,Ae??w());return}if(we=!0,be.pendingcb--,Ae){let Ee=be[$].splice(0);for(let Re=0;Re<Ee.length;Re++)Ee[Re](Ae);P(he,Ae,be.sync)}else j(be)&&(be.prefinished=!0,he.emit("prefinish"),be.pendingcb++,r.nextTick(de,he,be))}be.sync=!0,be.pendingcb++;try{he._final(De)}catch(Ae){De(Ae)}be.sync=!1}function te(he,be){!be.prefinished&&!be.finalCalled&&(typeof he._final=="function"&&!be.destroyed?(be.finalCalled=!0,F(he,be)):(be.prefinished=!0,he.emit("prefinish")))}function oe(he,be,we){j(be)&&(te(he,be),be.pendingcb===0&&(we?(be.pendingcb++,r.nextTick((De,Ae)=>{j(Ae)?de(De,Ae):Ae.pendingcb--},he,be)):j(be)&&(be.pendingcb++,de(he,be))))}function de(he,be){be.pendingcb--,be.finished=!0;let we=be[$].splice(0);for(let De=0;De<we.length;De++)we[De]();if(he.emit("finish"),be.autoDestroy){let De=he._readableState;(!De||De.autoDestroy&&(De.endEmitted||De.readable===!1))&&he.destroy()}}l(D.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(he){this._writableState&&(this._writableState.destroyed=he)}},writable:{__proto__:null,get(){let he=this._writableState;return!!he&&he.writable!==!1&&!he.destroyed&&!he.errored&&!he.ending&&!he.ended},set(he){this._writableState&&(this._writableState.writable=!!he)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let he=this._writableState;return he?!he.destroyed&&!he.ending&&he.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var pe=v.destroy;D.prototype.destroy=function(he,be){let we=this._writableState;return!we.destroyed&&(we.bufferedIndex<we.buffered.length||we[$].length)&&r.nextTick(le,we),pe.call(this,he,be),this},D.prototype._undestroy=v.undestroy,D.prototype._destroy=function(he,be){be(he)},D.prototype[p.captureRejectionSymbol]=function(he){this.destroy(he)};var me;function ve(){return me===void 0&&(me={}),me}D.fromWeb=function(he,be){return ve().newStreamWritableFromWritableStream(he,be)},D.toWeb=function(he){return ve().newWritableStreamFromStreamWritable(he)}}),NSt=On((e,n)=>{fn(),hn(),pn();var r=WC(),i=(Ec(),na(Sc)),{isReadable:o,isWritable:a,isIterable:s,isNodeStream:l,isReadableNodeStream:c,isWritableNodeStream:u,isDuplexNodeStream:d}=Hy(),f=K0(),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:g}}=Ed(),{destroyer:v}=KR(),y=Ey(),_=$7(),{createDeferredPromise:S}=Sy(),b=J5e(),E=globalThis.Blob||i.Blob,w=typeof E<"u"?function(M){return M instanceof E}:function(M){return!1},C=globalThis.AbortController||Ile().AbortController,{FunctionPrototypeCall:x}=xl(),T=class extends y{constructor(M){super(M),(M==null?void 0:M.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(M==null?void 0:M.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};n.exports=function M(P,k){if(d(P))return P;if(c(P))return O({readable:P});if(u(P))return O({writable:P});if(l(P))return O({writable:!1,readable:!1});if(typeof P=="function"){let{value:U,write:z,final:D,destroy:B}=R(P);if(s(U))return b(T,U,{objectMode:!0,write:z,final:D,destroy:B});let Y=U==null?void 0:U.then;if(typeof Y=="function"){let q,K=x(Y,U,H=>{if(H!=null)throw new g("nully","body",H)},H=>{v(q,H)});return q=new T({objectMode:!0,readable:!1,write:z,final(H){D(async()=>{try{await K,r.nextTick(H,null)}catch(G){r.nextTick(H,G)}})},destroy:B})}throw new g("Iterable, AsyncIterable or AsyncFunction",k,U)}if(w(P))return M(P.arrayBuffer());if(s(P))return b(T,P,{objectMode:!0,writable:!1});if(typeof(P==null?void 0:P.writable)=="object"||typeof(P==null?void 0:P.readable)=="object"){let U=P!=null&&P.readable?c(P==null?void 0:P.readable)?P==null?void 0:P.readable:M(P.readable):void 0,z=P!=null&&P.writable?u(P==null?void 0:P.writable)?P==null?void 0:P.writable:M(P.writable):void 0;return O({readable:U,writable:z})}let $=P==null?void 0:P.then;if(typeof $=="function"){let U;return x($,P,z=>{z!=null&&U.push(z),U.push(null)},z=>{v(U,z)}),U=new T({objectMode:!0,writable:!1,read(){}})}throw new h(k,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],P)};function R(M){let{promise:P,resolve:k}=S(),$=new C,U=$.signal;return{value:M(async function*(){for(;;){let z=P;P=null;let{chunk:D,done:B,cb:Y}=await z;if(r.nextTick(Y),B)return;if(U.aborted)throw new p(void 0,{cause:U.reason});({promise:P,resolve:k}=S()),yield D}}(),{signal:U}),write(z,D,B){let Y=k;k=null,Y({chunk:z,done:!1,cb:B})},final(z){let D=k;k=null,D({done:!0,cb:z})},destroy(z,D){$.abort(),D(z)}}}function O(M){let P=M.readable&&typeof M.readable.read!="function"?_.wrap(M.readable):M.readable,k=M.writable,$=!!o(P),U=!!a(k),z,D,B,Y,q;function K(H){let G=Y;Y=null,G?G(H):H&&q.destroy(H)}return q=new T({readableObjectMode:!!(P!=null&&P.readableObjectMode),writableObjectMode:!!(k!=null&&k.writableObjectMode),readable:$,writable:U}),U&&(f(k,H=>{U=!1,H&&v(P,H),K(H)}),q._write=function(H,G,Q){k.write(H,G)?Q():z=Q},q._final=function(H){k.end(),D=H},k.on("drain",function(){if(z){let H=z;z=null,H()}}),k.on("finish",function(){if(D){let H=D;D=null,H()}})),$&&(f(P,H=>{$=!1,H&&v(P,H),K(H)}),P.on("readable",function(){if(B){let H=B;B=null,H()}}),P.on("end",function(){q.push(null)}),q._read=function(){for(;;){let H=P.read();if(H===null){B=q._read;return}if(!q.push(H))return}}),q._destroy=function(H,G){!H&&Y!==null&&(H=new p),B=null,z=null,D=null,Y===null?G(H):(Y=G,v(k,H),v(P,H))},q}}),Ey=On((e,n)=>{fn(),hn(),pn();var{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:o,ObjectSetPrototypeOf:a}=xl();n.exports=c;var s=$7(),l=e6e();a(c.prototype,s.prototype),a(c,s);{let p=o(l.prototype);for(let h=0;h<p.length;h++){let g=p[h];c.prototype[g]||(c.prototype[g]=l.prototype[g])}}function c(p){if(!(this instanceof c))return new c(p);s.call(this,p),l.call(this,p),p?(this.allowHalfOpen=p.allowHalfOpen!==!1,p.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),p.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}r(c.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(p){this._readableState&&this._writableState&&(this._readableState.destroyed=p,this._writableState.destroyed=p)}}});var u;function d(){return u===void 0&&(u={}),u}c.fromWeb=function(p,h){return d().newStreamDuplexFromReadableWritablePair(p,h)},c.toWeb=function(p){return d().newReadableWritablePairFromDuplex(p)};var f;c.from=function(p){return f||(f=NSt()),f(p,"body")}}),t6e=On((e,n)=>{fn(),hn(),pn();var{ObjectSetPrototypeOf:r,Symbol:i}=xl();n.exports=c;var{ERR_METHOD_NOT_IMPLEMENTED:o}=Ed().codes,a=Ey(),{getHighWaterMark:s}=Mle();r(c.prototype,a.prototype),r(c,a);var l=i("kCallback");function c(f){if(!(this instanceof c))return new c(f);let p=f?s(this,f,"readableHighWaterMark",!0):null;p===0&&(f={...f,highWaterMark:null,readableHighWaterMark:p,writableHighWaterMark:f.writableHighWaterMark||0}),a.call(this,f),this._readableState.sync=!1,this[l]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",d)}function u(f){typeof this._flush=="function"&&!this.destroyed?this._flush((p,h)=>{if(p){f?f(p):this.destroy(p);return}h!=null&&this.push(h),this.push(null),f&&f()}):(this.push(null),f&&f())}function d(){this._final!==u&&u.call(this)}c.prototype._final=u,c.prototype._transform=function(f,p,h){throw new o("_transform()")},c.prototype._write=function(f,p,h){let g=this._readableState,v=this._writableState,y=g.length;this._transform(f,p,(_,S)=>{if(_){h(_);return}S!=null&&this.push(S),v.ended||y===g.length||g.length<g.highWaterMark?h():this[l]=h})},c.prototype._read=function(){if(this[l]){let f=this[l];this[l]=null,f()}}}),n6e=On((e,n)=>{fn(),hn(),pn();var{ObjectSetPrototypeOf:r}=xl();n.exports=o;var i=t6e();r(o.prototype,i.prototype),r(o,i);function o(a){if(!(this instanceof o))return new o(a);i.call(this,a)}o.prototype._transform=function(a,s,l){l(null,a)}}),Dle=On((e,n)=>{fn(),hn(),pn();var r=WC(),{ArrayIsArray:i,Promise:o,SymbolAsyncIterator:a}=xl(),s=K0(),{once:l}=Sy(),c=KR(),u=Ey(),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:g,ERR_STREAM_PREMATURE_CLOSE:v},AbortError:y}=Ed(),{validateFunction:_,validateAbortSignal:S}=D7(),{isIterable:b,isReadable:E,isReadableNodeStream:w,isNodeStream:C,isTransformStream:x,isWebStream:T,isReadableStream:R,isReadableEnded:O}=Hy(),M=globalThis.AbortController||Ile().AbortController,P,k;function $(G,Q,le){let Z=!1;G.on("close",()=>{Z=!0});let j=s(G,{readable:Q,writable:le},F=>{Z=!F});return{destroy:F=>{Z||(Z=!0,c.destroyer(G,F||new g("pipe")))},cleanup:j}}function U(G){return _(G[G.length-1],"streams[stream.length - 1]"),G.pop()}function z(G){if(b(G))return G;if(w(G))return D(G);throw new f("val",["Readable","Iterable","AsyncIterable"],G)}async function*D(G){k||(k=$7()),yield*k.prototype[a].call(G)}async function B(G,Q,le,{end:Z}){let j,F=null,te=pe=>{if(pe&&(j=pe),F){let me=F;F=null,me()}},oe=()=>new o((pe,me)=>{j?me(j):F=()=>{j?me(j):pe()}});Q.on("drain",te);let de=s(Q,{readable:!1},te);try{Q.writableNeedDrain&&await oe();for await(let pe of G)Q.write(pe)||await oe();Z&&Q.end(),await oe(),le()}catch(pe){le(j!==pe?d(j,pe):pe)}finally{de(),Q.off("drain",te)}}async function Y(G,Q,le,{end:Z}){x(Q)&&(Q=Q.writable);let j=Q.getWriter();try{for await(let F of G)await j.ready,j.write(F).catch(()=>{});await j.ready,Z&&await j.close(),le()}catch(F){try{await j.abort(F),le(F)}catch(te){le(te)}}}function q(...G){return K(G,l(U(G)))}function K(G,Q,le){if(G.length===1&&i(G[0])&&(G=G[0]),G.length<2)throw new h("streams");let Z=new M,j=Z.signal,F=le==null?void 0:le.signal,te=[];S(F,"options.signal");function oe(){be(new y)}F==null||F.addEventListener("abort",oe);let de,pe,me=[],ve=0;function he(Ee){be(Ee,--ve===0)}function be(Ee,Re){if(Ee&&(!de||de.code==="ERR_STREAM_PREMATURE_CLOSE")&&(de=Ee),!(!de&&!Re)){for(;me.length;)me.shift()(de);F==null||F.removeEventListener("abort",oe),Z.abort(),Re&&(de||te.forEach(Te=>Te()),r.nextTick(Q,de,pe))}}let we;for(let Ee=0;Ee<G.length;Ee++){let Re=G[Ee],Te=Ee<G.length-1,Oe=Ee>0,Ne=Te||(le==null?void 0:le.end)!==!1,je=Ee===G.length-1;if(C(Re)){let ne=function(J){J&&J.name!=="AbortError"&&J.code!=="ERR_STREAM_PREMATURE_CLOSE"&&he(J)};if(Ne){let{destroy:J,cleanup:ae}=$(Re,Te,Oe);me.push(J),E(Re)&&je&&te.push(ae)}Re.on("error",ne),E(Re)&&je&&te.push(()=>{Re.removeListener("error",ne)})}if(Ee===0)if(typeof Re=="function"){if(we=Re({signal:j}),!b(we))throw new p("Iterable, AsyncIterable or Stream","source",we)}else b(Re)||w(Re)||x(Re)?we=Re:we=u.from(Re);else if(typeof Re=="function"){if(x(we)){var De;we=z((De=we)===null||De===void 0?void 0:De.readable)}else we=z(we);if(we=Re(we,{signal:j}),Te){if(!b(we,!0))throw new p("AsyncIterable",`transform[${Ee-1}]`,we)}else{var Ae;P||(P=n6e());let ne=new P({objectMode:!0}),J=(Ae=we)===null||Ae===void 0?void 0:Ae.then;if(typeof J=="function")ve++,J.call(we,xe=>{pe=xe,xe!=null&&ne.write(xe),Ne&&ne.end(),r.nextTick(he)},xe=>{ne.destroy(xe),r.nextTick(he,xe)});else if(b(we,!0))ve++,B(we,ne,he,{end:Ne});else if(R(we)||x(we)){let xe=we.readable||we;ve++,B(xe,ne,he,{end:Ne})}else throw new p("AsyncIterable or Promise","destination",we);we=ne;let{destroy:ae,cleanup:Se}=$(we,!1,!0);me.push(ae),je&&te.push(Se)}}else if(C(Re)){if(w(we)){ve+=2;let ne=H(we,Re,he,{end:Ne});E(Re)&&je&&te.push(ne)}else if(x(we)||R(we)){let ne=we.readable||we;ve++,B(ne,Re,he,{end:Ne})}else if(b(we))ve++,B(we,Re,he,{end:Ne});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],we);we=Re}else if(T(Re)){if(w(we))ve++,Y(z(we),Re,he,{end:Ne});else if(R(we)||b(we))ve++,Y(we,Re,he,{end:Ne});else if(x(we))ve++,Y(we.readable,Re,he,{end:Ne});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],we);we=Re}else we=u.from(Re)}return(j!=null&&j.aborted||F!=null&&F.aborted)&&r.nextTick(oe),we}function H(G,Q,le,{end:Z}){let j=!1;if(Q.on("close",()=>{j||le(new v)}),G.pipe(Q,{end:!1}),Z){let F=function(){j=!0,Q.end()};O(G)?r.nextTick(F):G.once("end",F)}else le();return s(G,{readable:!0,writable:!1},F=>{let te=G._readableState;F&&F.code==="ERR_STREAM_PREMATURE_CLOSE"&&te&&te.ended&&!te.errored&&!te.errorEmitted?G.once("end",le).once("error",le):le(F)}),s(Q,{readable:!1,writable:!0},le)}n.exports={pipelineImpl:K,pipeline:q}}),r6e=On((e,n)=>{fn(),hn(),pn();var{pipeline:r}=Dle(),i=Ey(),{destroyer:o}=KR(),{isNodeStream:a,isReadable:s,isWritable:l,isWebStream:c,isTransformStream:u,isWritableStream:d,isReadableStream:f}=Hy(),{AbortError:p,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:g}}=Ed(),v=K0();n.exports=function(...y){if(y.length===0)throw new g("streams");if(y.length===1)return i.from(y[0]);let _=[...y];if(typeof y[0]=="function"&&(y[0]=i.from(y[0])),typeof y[y.length-1]=="function"){let P=y.length-1;y[P]=i.from(y[P])}for(let P=0;P<y.length;++P)if(!(!a(y[P])&&!c(y[P]))){if(P<y.length-1&&!(s(y[P])||f(y[P])||u(y[P])))throw new h(`streams[${P}]`,_[P],"must be readable");if(P>0&&!(l(y[P])||d(y[P])||u(y[P])))throw new h(`streams[${P}]`,_[P],"must be writable")}let S,b,E,w,C;function x(P){let k=w;w=null,k?k(P):P?C.destroy(P):!M&&!O&&C.destroy()}let T=y[0],R=r(y,x),O=!!(l(T)||d(T)||u(T)),M=!!(s(R)||f(R)||u(R));if(C=new i({writableObjectMode:!!(T!=null&&T.writableObjectMode),readableObjectMode:!!(R!=null&&R.writableObjectMode),writable:O,readable:M}),O){if(a(T))C._write=function(k,$,U){T.write(k,$)?U():S=U},C._final=function(k){T.end(),b=k},T.on("drain",function(){if(S){let k=S;S=null,k()}});else if(c(T)){let k=(u(T)?T.writable:T).getWriter();C._write=async function($,U,z){try{await k.ready,k.write($).catch(()=>{}),z()}catch(D){z(D)}},C._final=async function($){try{await k.ready,k.close().catch(()=>{}),b=$}catch(U){$(U)}}}let P=u(R)?R.readable:R;v(P,()=>{if(b){let k=b;b=null,k()}})}if(M){if(a(R))R.on("readable",function(){if(E){let P=E;E=null,P()}}),R.on("end",function(){C.push(null)}),C._read=function(){for(;;){let P=R.read();if(P===null){E=C._read;return}if(!C.push(P))return}};else if(c(R)){let P=(u(R)?R.readable:R).getReader();C._read=async function(){for(;;)try{let{value:k,done:$}=await P.read();if(!C.push(k))return;if($){C.push(null);return}}catch{return}}}}return C._destroy=function(P,k){!P&&w!==null&&(P=new p),E=null,S=null,b=null,w===null?k(P):(w=k,a(R)&&o(R,P))},C}}),MSt=On((e,n)=>{fn(),hn(),pn();var r=globalThis.AbortController||Ile().AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:s},AbortError:l}=Ed(),{validateAbortSignal:c,validateInteger:u,validateObject:d}=D7(),f=xl().Symbol("kWeak"),{finished:p}=K0(),h=r6e(),{addAbortSignalNoValidate:g}=k7(),{isWritable:v,isNodeStream:y}=Hy(),{ArrayPrototypePush:_,MathFloor:S,Number:b,NumberIsNaN:E,Promise:w,PromiseReject:C,PromisePrototypeThen:x,Symbol:T}=xl(),R=T("kEmpty"),O=T("kEof");function M(Z,j){if(j!=null&&d(j,"options"),(j==null?void 0:j.signal)!=null&&c(j.signal,"options.signal"),y(Z)&&!v(Z))throw new i("stream",Z,"must be writable");let F=h(this,Z);return j!=null&&j.signal&&g(j.signal,F),F}function P(Z,j){if(typeof Z!="function")throw new o("fn",["Function","AsyncFunction"],Z);j!=null&&d(j,"options"),(j==null?void 0:j.signal)!=null&&c(j.signal,"options.signal");let F=1;return(j==null?void 0:j.concurrency)!=null&&(F=S(j.concurrency)),u(F,"concurrency",1),(async function*(){var te,oe;let de=new r,pe=this,me=[],ve=de.signal,he={signal:ve},be=()=>de.abort();j!=null&&(te=j.signal)!==null&&te!==void 0&&te.aborted&&be(),j==null||(oe=j.signal)===null||oe===void 0||oe.addEventListener("abort",be);let we,De,Ae=!1;function Ee(){Ae=!0}async function Re(){try{for await(let Ne of pe){var Te;if(Ae)return;if(ve.aborted)throw new l;try{Ne=Z(Ne,he)}catch(je){Ne=C(je)}Ne!==R&&(typeof((Te=Ne)===null||Te===void 0?void 0:Te.catch)=="function"&&Ne.catch(Ee),me.push(Ne),we&&(we(),we=null),!Ae&&me.length&&me.length>=F&&await new w(je=>{De=je}))}me.push(O)}catch(Ne){let je=C(Ne);x(je,void 0,Ee),me.push(je)}finally{var Oe;Ae=!0,we&&(we(),we=null),j==null||(Oe=j.signal)===null||Oe===void 0||Oe.removeEventListener("abort",be)}}Re();try{for(;;){for(;me.length>0;){let Te=await me[0];if(Te===O)return;if(ve.aborted)throw new l;Te!==R&&(yield Te),me.shift(),De&&(De(),De=null)}await new w(Te=>{we=Te})}}finally{de.abort(),Ae=!0,De&&(De(),De=null)}}).call(this)}function k(Z=void 0){return Z!=null&&d(Z,"options"),(Z==null?void 0:Z.signal)!=null&&c(Z.signal,"options.signal"),(async function*(){let j=0;for await(let te of this){var F;if(Z!=null&&(F=Z.signal)!==null&&F!==void 0&&F.aborted)throw new l({cause:Z.signal.reason});yield[j++,te]}}).call(this)}async function $(Z,j=void 0){for await(let F of B.call(this,Z,j))return!0;return!1}async function U(Z,j=void 0){if(typeof Z!="function")throw new o("fn",["Function","AsyncFunction"],Z);return!await $.call(this,async(...F)=>!await Z(...F),j)}async function z(Z,j){for await(let F of B.call(this,Z,j))return F}async function D(Z,j){if(typeof Z!="function")throw new o("fn",["Function","AsyncFunction"],Z);async function F(te,oe){return await Z(te,oe),R}for await(let te of P.call(this,F,j));}function B(Z,j){if(typeof Z!="function")throw new o("fn",["Function","AsyncFunction"],Z);async function F(te,oe){return await Z(te,oe)?te:R}return P.call(this,F,j)}var Y=class extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function q(Z,j,F){var te;if(typeof Z!="function")throw new o("reducer",["Function","AsyncFunction"],Z);F!=null&&d(F,"options"),(F==null?void 0:F.signal)!=null&&c(F.signal,"options.signal");let oe=arguments.length>1;if(F!=null&&(te=F.signal)!==null&&te!==void 0&&te.aborted){let he=new l(void 0,{cause:F.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(he)),he}let de=new r,pe=de.signal;if(F!=null&&F.signal){let he={once:!0,[f]:this};F.signal.addEventListener("abort",()=>de.abort(),he)}let me=!1;try{for await(let he of this){var ve;if(me=!0,F!=null&&(ve=F.signal)!==null&&ve!==void 0&&ve.aborted)throw new l;oe?j=await Z(j,he,{signal:pe}):(j=he,oe=!0)}if(!me&&!oe)throw new Y}finally{de.abort()}return j}async function K(Z){Z!=null&&d(Z,"options"),(Z==null?void 0:Z.signal)!=null&&c(Z.signal,"options.signal");let j=[];for await(let te of this){var F;if(Z!=null&&(F=Z.signal)!==null&&F!==void 0&&F.aborted)throw new l(void 0,{cause:Z.signal.reason});_(j,te)}return j}function H(Z,j){let F=P.call(this,Z,j);return(async function*(){for await(let te of F)yield*te}).call(this)}function G(Z){if(Z=b(Z),E(Z))return 0;if(Z<0)throw new s("number",">= 0",Z);return Z}function Q(Z,j=void 0){return j!=null&&d(j,"options"),(j==null?void 0:j.signal)!=null&&c(j.signal,"options.signal"),Z=G(Z),(async function*(){var F;if(j!=null&&(F=j.signal)!==null&&F!==void 0&&F.aborted)throw new l;for await(let oe of this){var te;if(j!=null&&(te=j.signal)!==null&&te!==void 0&&te.aborted)throw new l;Z--<=0&&(yield oe)}}).call(this)}function le(Z,j=void 0){return j!=null&&d(j,"options"),(j==null?void 0:j.signal)!=null&&c(j.signal,"options.signal"),Z=G(Z),(async function*(){var F;if(j!=null&&(F=j.signal)!==null&&F!==void 0&&F.aborted)throw new l;for await(let oe of this){var te;if(j!=null&&(te=j.signal)!==null&&te!==void 0&&te.aborted)throw new l;if(Z-- >0)yield oe;else return}}).call(this)}n.exports.streamReturningOperators={asIndexedPairs:k,drop:Q,filter:B,flatMap:H,map:P,take:le,compose:M},n.exports.promiseReturningOperators={every:U,forEach:D,reduce:q,toArray:K,some:$,find:z}}),i6e=On((e,n)=>{fn(),hn(),pn();var{ArrayPrototypePop:r,Promise:i}=xl(),{isIterable:o,isNodeStream:a,isWebStream:s}=Hy(),{pipelineImpl:l}=Dle(),{finished:c}=K0();o6e();function u(...d){return new i((f,p)=>{let h,g,v=d[d.length-1];if(v&&typeof v=="object"&&!a(v)&&!o(v)&&!s(v)){let y=r(d);h=y.signal,g=y.end}l(d,(y,_)=>{y?p(y):f(_)},{signal:h,end:g})})}n.exports={finished:c,pipeline:u}}),o6e=On((e,n)=>{fn(),hn(),pn();var{Buffer:r}=(Ec(),na(Sc)),{ObjectDefineProperty:i,ObjectKeys:o,ReflectApply:a}=xl(),{promisify:{custom:s}}=Sy(),{streamReturningOperators:l,promiseReturningOperators:c}=MSt(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=Ed(),d=r6e(),{pipeline:f}=Dle(),{destroyer:p}=KR(),h=K0(),g=i6e(),v=Hy(),y=n.exports=Nle().Stream;y.isDisturbed=v.isDisturbed,y.isErrored=v.isErrored,y.isReadable=v.isReadable,y.Readable=$7();for(let S of o(l)){let b=function(...w){if(new.target)throw u();return y.Readable.from(a(E,this,w))},E=l[S];i(b,"name",{__proto__:null,value:E.name}),i(b,"length",{__proto__:null,value:E.length}),i(y.Readable.prototype,S,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}for(let S of o(c)){let b=function(...w){if(new.target)throw u();return a(E,this,w)},E=c[S];i(b,"name",{__proto__:null,value:E.name}),i(b,"length",{__proto__:null,value:E.length}),i(y.Readable.prototype,S,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}y.Writable=e6e(),y.Duplex=Ey(),y.Transform=t6e(),y.PassThrough=n6e(),y.pipeline=f;var{addAbortSignal:_}=k7();y.addAbortSignal=_,y.finished=h,y.destroy=p,y.compose=d,i(y,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return g}}),i(f,s,{__proto__:null,enumerable:!0,get(){return g.pipeline}}),i(h,s,{__proto__:null,enumerable:!0,get(){return g.finished}}),y.Stream=y,y._isUint8Array=function(S){return S instanceof Uint8Array},y._uint8ArrayToBuffer=function(S){return r.from(S.buffer,S.byteOffset,S.byteLength)}}),qC=On((e,n)=>{fn(),hn(),pn();var r=o6e(),i=i6e(),o=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=o,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return i}}),n.exports.Stream=r.Stream,n.exports.default=n.exports}),PSt=On((e,n)=>{fn(),hn(),pn(),typeof Object.create=="function"?n.exports=function(r,i){i&&(r.super_=i,r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(r,i){if(i){r.super_=i;var o=function(){};o.prototype=i.prototype,r.prototype=new o,r.prototype.constructor=r}}}),ASt=On((e,n)=>{fn(),hn(),pn();var{Buffer:r}=(Ec(),na(Sc)),i=Symbol.for("BufferList");function o(a){if(!(this instanceof o))return new o(a);o._init.call(this,a)}o._init=function(a){Object.defineProperty(this,i,{value:!0}),this._bufs=[],this.length=0,a&&this.append(a)},o.prototype._new=function(a){return new o(a)},o.prototype._offset=function(a){if(a===0)return[0,0];let s=0;for(let l=0;l<this._bufs.length;l++){let c=s+this._bufs[l].length;if(a<c||l===this._bufs.length-1)return[l,a-s];s=c}},o.prototype._reverseOffset=function(a){let s=a[0],l=a[1];for(let c=0;c<s;c++)l+=this._bufs[c].length;return l},o.prototype.get=function(a){if(a>this.length||a<0)return;let s=this._offset(a);return this._bufs[s[0]][s[1]]},o.prototype.slice=function(a,s){return typeof a=="number"&&a<0&&(a+=this.length),typeof s=="number"&&s<0&&(s+=this.length),this.copy(null,0,a,s)},o.prototype.copy=function(a,s,l,c){if((typeof l!="number"||l<0)&&(l=0),(typeof c!="number"||c>this.length)&&(c=this.length),l>=this.length||c<=0)return a||r.alloc(0);let u=!!a,d=this._offset(l),f=c-l,p=f,h=u&&s||0,g=d[1];if(l===0&&c===this.length){if(!u)return this._bufs.length===1?this._bufs[0]:r.concat(this._bufs,this.length);for(let v=0;v<this._bufs.length;v++)this._bufs[v].copy(a,h),h+=this._bufs[v].length;return a}if(p<=this._bufs[d[0]].length-g)return u?this._bufs[d[0]].copy(a,s,g,g+p):this._bufs[d[0]].slice(g,g+p);u||(a=r.allocUnsafe(f));for(let v=d[0];v<this._bufs.length;v++){let y=this._bufs[v].length-g;if(p>y)this._bufs[v].copy(a,h,g),h+=y;else{this._bufs[v].copy(a,h,g,g+p),h+=y;break}p-=y,g&&(g=0)}return a.length>h?a.slice(0,h):a},o.prototype.shallowSlice=function(a,s){if(a=a||0,s=typeof s!="number"?this.length:s,a<0&&(a+=this.length),s<0&&(s+=this.length),a===s)return this._new();let l=this._offset(a),c=this._offset(s),u=this._bufs.slice(l[0],c[0]+1);return c[1]===0?u.pop():u[u.length-1]=u[u.length-1].slice(0,c[1]),l[1]!==0&&(u[0]=u[0].slice(l[1])),this._new(u)},o.prototype.toString=function(a,s,l){return this.slice(s,l).toString(a)},o.prototype.consume=function(a){if(a=Math.trunc(a),Number.isNaN(a)||a<=0)return this;for(;this._bufs.length;)if(a>=this._bufs[0].length)a-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(a),this.length-=a;break}return this},o.prototype.duplicate=function(){let a=this._new();for(let s=0;s<this._bufs.length;s++)a.append(this._bufs[s]);return a},o.prototype.append=function(a){if(a==null)return this;if(a.buffer)this._appendBuffer(r.from(a.buffer,a.byteOffset,a.byteLength));else if(Array.isArray(a))for(let s=0;s<a.length;s++)this.append(a[s]);else if(this._isBufferList(a))for(let s=0;s<a._bufs.length;s++)this.append(a._bufs[s]);else typeof a=="number"&&(a=a.toString()),this._appendBuffer(r.from(a));return this},o.prototype._appendBuffer=function(a){this._bufs.push(a),this.length+=a.length},o.prototype.indexOf=function(a,s,l){if(l===void 0&&typeof s=="string"&&(l=s,s=void 0),typeof a=="function"||Array.isArray(a))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof a=="number"?a=r.from([a]):typeof a=="string"?a=r.from(a,l):this._isBufferList(a)?a=a.slice():Array.isArray(a.buffer)?a=r.from(a.buffer,a.byteOffset,a.byteLength):r.isBuffer(a)||(a=r.from(a)),s=Number(s||0),isNaN(s)&&(s=0),s<0&&(s=this.length+s),s<0&&(s=0),a.length===0)return s>this.length?this.length:s;let c=this._offset(s),u=c[0],d=c[1];for(;u<this._bufs.length;u++){let f=this._bufs[u];for(;d<f.length;)if(f.length-d>=a.length){let p=f.indexOf(a,d);if(p!==-1)return this._reverseOffset([u,p]);d=f.length-a.length+1}else{let p=this._reverseOffset([u,d]);if(this._match(p,a))return p;d++}d=0}return-1},o.prototype._match=function(a,s){if(this.length-a<s.length)return!1;for(let l=0;l<s.length;l++)if(this.get(a+l)!==s[l])return!1;return!0},function(){let a={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readBigInt64BE:8,readBigInt64LE:8,readBigUInt64BE:8,readBigUInt64LE:8,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let s in a)(function(l){a[l]===null?o.prototype[l]=function(c,u){return this.slice(c,c+u)[l](0,u)}:o.prototype[l]=function(c=0){return this.slice(c,c+a[l])[l](0)}})(s)}(),o.prototype._isBufferList=function(a){return a instanceof o||o.isBufferList(a)},o.isBufferList=function(a){return a!=null&&a[i]},n.exports=o}),DSt=On((e,n)=>{fn(),hn(),pn();var r=qC().Duplex,i=PSt(),o=ASt();function a(s){if(!(this instanceof a))return new a(s);if(typeof s=="function"){this._callback=s;let l=(function(c){this._callback&&(this._callback(c),this._callback=null)}).bind(this);this.on("pipe",function(c){c.on("error",l)}),this.on("unpipe",function(c){c.removeListener("error",l)}),s=null}o._init.call(this,s),r.call(this)}i(a,r),Object.assign(a.prototype,o.prototype),a.prototype._new=function(s){return new a(s)},a.prototype._write=function(s,l,c){this._appendBuffer(s),typeof c=="function"&&c()},a.prototype._read=function(s){if(!this.length)return this.push(null);s=Math.min(s,this.length),this.push(this.slice(0,s)),this.consume(s)},a.prototype.end=function(s){r.prototype.end.call(this,s),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype._destroy=function(s,l){this._bufs.length=0,this.length=0,l(s)},a.prototype._isBufferList=function(s){return s instanceof a||s instanceof o||a.isBufferList(s)},a.isBufferList=o.isBufferList,n.exports=a,n.exports.BufferListStream=a,n.exports.BufferList=o}),kSt=On((e,n)=>{fn(),hn(),pn();var r=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};n.exports=r}),a6e=On((e,n)=>{fn(),hn(),pn();var r=n.exports,{Buffer:i}=(Ec(),na(Sc));r.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},r.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},r.requiredHeaderFlagsErrors={};for(let a in r.requiredHeaderFlags){let s=r.requiredHeaderFlags[a];r.requiredHeaderFlagsErrors[a]="Invalid header flag bits, must be 0x"+s.toString(16)+" for "+r.types[a]+" packet"}r.codes={};for(let a in r.types){let s=r.types[a];r.codes[s]=a}r.CMD_SHIFT=4,r.CMD_MASK=240,r.DUP_MASK=8,r.QOS_MASK=3,r.QOS_SHIFT=1,r.RETAIN_MASK=1,r.VARBYTEINT_MASK=127,r.VARBYTEINT_FIN_MASK=128,r.VARBYTEINT_MAX=268435455,r.SESSIONPRESENT_MASK=1,r.SESSIONPRESENT_HEADER=i.from([r.SESSIONPRESENT_MASK]),r.CONNACK_HEADER=i.from([r.codes.connack<<r.CMD_SHIFT]),r.USERNAME_MASK=128,r.PASSWORD_MASK=64,r.WILL_RETAIN_MASK=32,r.WILL_QOS_MASK=24,r.WILL_QOS_SHIFT=3,r.WILL_FLAG_MASK=4,r.CLEAN_SESSION_MASK=2,r.CONNECT_HEADER=i.from([r.codes.connect<<r.CMD_SHIFT]),r.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},r.propertiesCodes={};for(let a in r.properties){let s=r.properties[a];r.propertiesCodes[s]=a}r.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"};function o(a){return[0,1,2].map(s=>[0,1].map(l=>[0,1].map(c=>{let u=i.alloc(1);return u.writeUInt8(r.codes[a]<<r.CMD_SHIFT|(l?r.DUP_MASK:0)|s<<r.QOS_SHIFT|c,0,!0),u})))}r.PUBLISH_HEADER=o("publish"),r.SUBSCRIBE_HEADER=o("subscribe"),r.SUBSCRIBE_OPTIONS_QOS_MASK=3,r.SUBSCRIBE_OPTIONS_NL_MASK=1,r.SUBSCRIBE_OPTIONS_NL_SHIFT=2,r.SUBSCRIBE_OPTIONS_RAP_MASK=1,r.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,r.SUBSCRIBE_OPTIONS_RH_MASK=3,r.SUBSCRIBE_OPTIONS_RH_SHIFT=4,r.SUBSCRIBE_OPTIONS_RH=[0,16,32],r.SUBSCRIBE_OPTIONS_NL=4,r.SUBSCRIBE_OPTIONS_RAP=8,r.SUBSCRIBE_OPTIONS_QOS=[0,1,2],r.UNSUBSCRIBE_HEADER=o("unsubscribe"),r.ACKS={unsuback:o("unsuback"),puback:o("puback"),pubcomp:o("pubcomp"),pubrel:o("pubrel"),pubrec:o("pubrec")},r.SUBACK_HEADER=i.from([r.codes.suback<<r.CMD_SHIFT]),r.VERSION3=i.from([3]),r.VERSION4=i.from([4]),r.VERSION5=i.from([5]),r.VERSION131=i.from([131]),r.VERSION132=i.from([132]),r.QOS=[0,1,2].map(a=>i.from([a])),r.EMPTY={pingreq:i.from([r.codes.pingreq<<4,0]),pingresp:i.from([r.codes.pingresp<<4,0]),disconnect:i.from([r.codes.disconnect<<4,0])},r.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},r.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},r.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},r.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},r.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},r.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),LSt=On((e,n)=>{fn(),hn(),pn();var r=1e3,i=r*60,o=i*60,a=o*24,s=a*7,l=a*365.25;n.exports=function(p,h){h=h||{};var g=typeof p;if(g==="string"&&p.length>0)return c(p);if(g==="number"&&isFinite(p))return h.long?d(p):u(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function c(p){if(p=String(p),!(p.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(h){var g=parseFloat(h[1]),v=(h[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return g*l;case"weeks":case"week":case"w":return g*s;case"days":case"day":case"d":return g*a;case"hours":case"hour":case"hrs":case"hr":case"h":return g*o;case"minutes":case"minute":case"mins":case"min":case"m":return g*i;case"seconds":case"second":case"secs":case"sec":case"s":return g*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}function u(p){var h=Math.abs(p);return h>=a?Math.round(p/a)+"d":h>=o?Math.round(p/o)+"h":h>=i?Math.round(p/i)+"m":h>=r?Math.round(p/r)+"s":p+"ms"}function d(p){var h=Math.abs(p);return h>=a?f(p,h,a,"day"):h>=o?f(p,h,o,"hour"):h>=i?f(p,h,i,"minute"):h>=r?f(p,h,r,"second"):p+" ms"}function f(p,h,g,v){var y=h>=g*1.5;return Math.round(p/g)+" "+v+(y?"s":"")}}),$St=On((e,n)=>{fn(),hn(),pn();function r(i){a.debug=a,a.default=a,a.coerce=f,a.disable=c,a.enable=l,a.enabled=u,a.humanize=LSt(),a.destroy=p,Object.keys(i).forEach(h=>{a[h]=i[h]}),a.names=[],a.skips=[],a.formatters={};function o(h){let g=0;for(let v=0;v<h.length;v++)g=(g<<5)-g+h.charCodeAt(v),g|=0;return a.colors[Math.abs(g)%a.colors.length]}a.selectColor=o;function a(h){let g,v=null,y,_;function S(...b){if(!S.enabled)return;let E=S,w=Number(new Date),C=w-(g||w);E.diff=C,E.prev=g,E.curr=w,g=w,b[0]=a.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let x=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(T,R)=>{if(T==="%%")return"%";x++;let O=a.formatters[R];if(typeof O=="function"){let M=b[x];T=O.call(E,M),b.splice(x,1),x--}return T}),a.formatArgs.call(E,b),(E.log||a.log).apply(E,b)}return S.namespace=h,S.useColors=a.useColors(),S.color=a.selectColor(h),S.extend=s,S.destroy=a.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(y!==a.namespaces&&(y=a.namespaces,_=a.enabled(h)),_),set:b=>{v=b}}),typeof a.init=="function"&&a.init(S),S}function s(h,g){let v=a(this.namespace+(typeof g>"u"?":":g)+h);return v.log=this.log,v}function l(h){a.save(h),a.namespaces=h,a.names=[],a.skips=[];let g,v=(typeof h=="string"?h:"").split(/[\s,]+/),y=v.length;for(g=0;g<y;g++)v[g]&&(h=v[g].replace(/\*/g,".*?"),h[0]==="-"?a.skips.push(new RegExp("^"+h.slice(1)+"$")):a.names.push(new RegExp("^"+h+"$")))}function c(){let h=[...a.names.map(d),...a.skips.map(d).map(g=>"-"+g)].join(",");return a.enable(""),h}function u(h){if(h[h.length-1]==="*")return!0;let g,v;for(g=0,v=a.skips.length;g<v;g++)if(a.skips[g].test(h))return!1;for(g=0,v=a.names.length;g<v;g++)if(a.names[g].test(h))return!0;return!1}function d(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function f(h){return h instanceof Error?h.stack||h.message:h}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a.enable(a.load()),a}n.exports=r}),Cy=On((e,n)=>{fn(),hn(),pn(),e.formatArgs=i,e.save=o,e.load=a,e.useColors=r,e.storage=s(),e.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;let u="color: "+this.color;c.splice(1,0,u,"color: inherit");let d=0,f=0;c[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(d++,p==="%c"&&(f=d))}),c.splice(f,0,u)}e.log=console.debug||console.log||(()=>{});function o(c){try{c?e.storage.setItem("debug",c):e.storage.removeItem("debug")}catch{}}function a(){let c;try{c=e.storage.getItem("debug")}catch{}return!c&&typeof Ao<"u"&&"env"in Ao&&(c=Ao.env.DEBUG),c}function s(){try{return localStorage}catch{}}n.exports=$St()(e);var{formatters:l}=n.exports;l.j=function(c){try{return JSON.stringify(c)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}),FSt=On((e,n)=>{fn(),hn(),pn();var r=DSt(),{EventEmitter:i}=(XR(),na(YC)),o=kSt(),a=a6e(),s=Cy()("mqtt-packet:parser"),l=class ane extends i{constructor(){super(),this.parser=this.constructor.parser}static parser(u){return this instanceof ane?(this.settings=u||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new ane().parser(u)}_resetState(){s("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new o,this.error=null,this._list=r(),this._stateCounter=0}parse(u){for(this.error&&this._resetState(),this._list.append(u),s("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,s("parse: state complete. _stateCounter is now: %d",this._stateCounter),s("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return s("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let u=this._list.readUInt8(0),d=u>>a.CMD_SHIFT;this.packet.cmd=a.types[d];let f=u&15,p=a.requiredHeaderFlags[d];return p!=null&&f!==p?this._emitError(new Error(a.requiredHeaderFlagsErrors[d])):(this.packet.retain=(u&a.RETAIN_MASK)!==0,this.packet.qos=u>>a.QOS_SHIFT&a.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(u&a.DUP_MASK)!==0,s("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let u=this._parseVarByteNum(!0);return u&&(this.packet.length=u.value,this._list.consume(u.bytes)),s("_parseLength %d",u.value),!!u}_parsePayload(){s("_parsePayload: payload %O",this._list);let u=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}u=!0}return s("_parsePayload complete result: %s",u),u}_parseConnect(){s("_parseConnect");let u,d,f,p,h={},g=this.packet,v=this._parseString();if(v===null)return this._emitError(new Error("Cannot parse protocolId"));if(v!=="MQTT"&&v!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(g.protocolId=v,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(g.protocolVersion=this._list.readUInt8(this._pos),g.protocolVersion>=128&&(g.bridgeMode=!0,g.protocolVersion=g.protocolVersion-128),g.protocolVersion!==3&&g.protocolVersion!==4&&g.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));h.username=this._list.readUInt8(this._pos)&a.USERNAME_MASK,h.password=this._list.readUInt8(this._pos)&a.PASSWORD_MASK,h.will=this._list.readUInt8(this._pos)&a.WILL_FLAG_MASK;let y=!!(this._list.readUInt8(this._pos)&a.WILL_RETAIN_MASK),_=(this._list.readUInt8(this._pos)&a.WILL_QOS_MASK)>>a.WILL_QOS_SHIFT;if(h.will)g.will={},g.will.retain=y,g.will.qos=_;else{if(y)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(_)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(g.clean=(this._list.readUInt8(this._pos)&a.CLEAN_SESSION_MASK)!==0,this._pos++,g.keepalive=this._parseNum(),g.keepalive===-1)return this._emitError(new Error("Packet too short"));if(g.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(g.properties=b)}let S=this._parseString();if(S===null)return this._emitError(new Error("Packet too short"));if(g.clientId=S,s("_parseConnect: packet.clientId: %s",g.clientId),h.will){if(g.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(g.will.properties=b)}if(u=this._parseString(),u===null)return this._emitError(new Error("Cannot parse will topic"));if(g.will.topic=u,s("_parseConnect: packet.will.topic: %s",g.will.topic),d=this._parseBuffer(),d===null)return this._emitError(new Error("Cannot parse will payload"));g.will.payload=d,s("_parseConnect: packet.will.paylaod: %s",g.will.payload)}if(h.username){if(p=this._parseString(),p===null)return this._emitError(new Error("Cannot parse username"));g.username=p,s("_parseConnect: packet.username: %s",g.username)}if(h.password){if(f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse password"));g.password=f}return this.settings=g,s("_parseConnect: complete"),g}_parseConnack(){s("_parseConnack");let u=this.packet;if(this._list.length<1)return null;let d=this._list.readUInt8(this._pos++);if(d>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(u.sessionPresent=!!(d&a.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?u.reasonCode=this._list.readUInt8(this._pos++):u.reasonCode=0;else{if(this._list.length<2)return null;u.returnCode=this._list.readUInt8(this._pos++)}if(u.returnCode===-1||u.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(u.properties=f)}s("_parseConnack: complete")}_parsePublish(){s("_parsePublish");let u=this.packet;if(u.topic=this._parseString(),u.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(u.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(u.properties=d)}u.payload=this._list.slice(this._pos,u.length),s("_parsePublish: payload from buffer list: %o",u.payload)}}_parseSubscribe(){s("_parseSubscribe");let u=this.packet,d,f,p,h,g,v,y;if(u.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(u.properties=_)}if(u.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos<u.length;){if(d=this._parseString(),d===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=u.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(f=this._parseByte(),this.settings.protocolVersion===5){if(f&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(f&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(p=f&a.SUBSCRIBE_OPTIONS_QOS_MASK,p>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(v=(f>>a.SUBSCRIBE_OPTIONS_NL_SHIFT&a.SUBSCRIBE_OPTIONS_NL_MASK)!==0,g=(f>>a.SUBSCRIBE_OPTIONS_RAP_SHIFT&a.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,h=f>>a.SUBSCRIBE_OPTIONS_RH_SHIFT&a.SUBSCRIBE_OPTIONS_RH_MASK,h>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));y={topic:d,qos:p},this.settings.protocolVersion===5?(y.nl=v,y.rap=g,y.rh=h):this.settings.bridgeMode&&(y.rh=0,y.rap=!0,y.nl=!0),s("_parseSubscribe: push subscription `%s` to subscription",y),u.subscriptions.push(y)}}}_parseSuback(){s("_parseSuback");let u=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(u.properties=d)}if(u.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos<this.packet.length;){let d=this._list.readUInt8(this._pos++);if(this.settings.protocolVersion===5){if(!a.MQTT5_SUBACK_CODES[d])return this._emitError(new Error("Invalid suback code"))}else if(d>2&&d!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(d)}}}_parseUnsubscribe(){s("_parseUnsubscribe");let u=this.packet;if(u.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(u.properties=d)}if(u.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos<u.length;){let d=this._parseString();if(d===null)return this._emitError(new Error("Cannot parse topic"));s("_parseUnsubscribe: push topic `%s` to unsubscriptions",d),u.unsubscriptions.push(d)}}}_parseUnsuback(){s("_parseUnsuback");let u=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if((this.settings.protocolVersion===3||this.settings.protocolVersion===4)&&u.length!==2)return this._emitError(new Error("Malformed unsuback, payload length must be 2"));if(u.length<=0)return this._emitError(new Error("Malformed unsuback, no payload specified"));if(this.settings.protocolVersion===5){let d=this._parseProperties();for(Object.getOwnPropertyNames(d).length&&(u.properties=d),u.granted=[];this._pos<this.packet.length;){let f=this._list.readUInt8(this._pos++);if(!a.MQTT5_UNSUBACK_CODES[f])return this._emitError(new Error("Invalid unsuback code"));this.packet.granted.push(f)}}}_parseConfirmation(){s("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);let u=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5){if(u.length>2){switch(u.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!a.MQTT5_PUBACK_PUBREC_CODES[u.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!a.MQTT5_PUBREL_PUBCOMP_CODES[u.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}s("_parseConfirmation: packet.reasonCode `%d`",u.reasonCode)}else u.reasonCode=0;if(u.length>3){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(u.properties=d)}}return!0}_parseDisconnect(){let u=this.packet;if(s("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(u.reasonCode=this._parseByte(),a.MQTT5_DISCONNECT_CODES[u.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):u.reasonCode=0;let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(u.properties=d)}return s("_parseDisconnect result: true"),!0}_parseAuth(){s("_parseAuth");let u=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(u.reasonCode=this._parseByte(),!a.MQTT5_AUTH_CODES[u.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let d=this._parseProperties();return Object.getOwnPropertyNames(d).length&&(u.properties=d),s("_parseAuth: result: true"),!0}_parseMessageId(){let u=this.packet;return u.messageId=this._parseNum(),u.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(s("_parseMessageId: packet.messageId %d",u.messageId),!0)}_parseString(u){let d=this._parseNum(),f=d+this._pos;if(d===-1||f>this._list.length||f>this.packet.length)return null;let p=this._list.toString("utf8",this._pos,f);return this._pos+=d,s("_parseString: result: %s",p),p}_parseStringPair(){return s("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let u=this._parseNum(),d=u+this._pos;if(u===-1||d>this._list.length||d>this.packet.length)return null;let f=this._list.slice(this._pos,d);return this._pos+=u,s("_parseBuffer: result: %o",f),f}_parseNum(){if(this._list.length-this._pos<2)return-1;let u=this._list.readUInt16BE(this._pos);return this._pos+=2,s("_parseNum: result: %s",u),u}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let u=this._list.readUInt32BE(this._pos);return this._pos+=4,s("_parse4ByteNum: result: %s",u),u}_parseVarByteNum(u){s("_parseVarByteNum");let d=4,f=0,p=1,h=0,g=!1,v,y=this._pos?this._pos:0;for(;f<d&&y+f<this._list.length;){if(v=this._list.readUInt8(y+f++),h+=p*(v&a.VARBYTEINT_MASK),p*=128,!(v&a.VARBYTEINT_FIN_MASK)){g=!0;break}if(this._list.length<=f)break}return!g&&f===d&&this._list.length>=f&&this._emitError(new Error("Invalid variable byte integer")),y&&(this._pos+=f),g?u?g={bytes:f,value:h}:g=h:g=!1,s("_parseVarByteNum: result: %o",g),g}_parseByte(){let u;return this._pos<this._list.length&&(u=this._list.readUInt8(this._pos),this._pos++),s("_parseByte: result: %o",u),u}_parseByType(u){switch(s("_parseByType: type: %s",u),u){case"byte":return this._parseByte()!==0;case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){s("_parseProperties");let u=this._parseVarByteNum(),d=this._pos+u,f={};for(;this._pos<d;){let p=this._parseByte();if(!p)return this._emitError(new Error("Cannot parse property code type")),!1;let h=a.propertiesCodes[p];if(!h)return this._emitError(new Error("Unknown property")),!1;if(h==="userProperties"){f[h]||(f[h]=Object.create(null));let g=this._parseByType(a.propertiesTypes[h]);if(f[h][g.name])if(Array.isArray(f[h][g.name]))f[h][g.name].push(g.value);else{let v=f[h][g.name];f[h][g.name]=[v],f[h][g.name].push(g.value)}else f[h][g.name]=g.value;continue}f[h]?Array.isArray(f[h])?f[h].push(this._parseByType(a.propertiesTypes[h])):(f[h]=[f[h]],f[h].push(this._parseByType(a.propertiesTypes[h]))):f[h]=this._parseByType(a.propertiesTypes[h])}return f}_newPacket(){return s("_newPacket"),this.packet&&(this._list.consume(this.packet.length),s("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),s("_newPacket: new packet"),this.packet=new o,this._pos=0,!0}_emitError(u){s("_emitError",u),this.error=u,this.emit("error",u)}};n.exports=l}),BSt=On((e,n)=>{fn(),hn(),pn();var{Buffer:r}=(Ec(),na(Sc)),i=65536,o={},a=r.isBuffer(r.from([1,2]).subarray(0,1));function s(d){let f=r.allocUnsafe(2);return f.writeUInt8(d>>8,0),f.writeUInt8(d&255,1),f}function l(){for(let d=0;d<i;d++)o[d]=s(d)}function c(d){let f=0,p=0,h=r.allocUnsafe(4);do f=d%128|0,d=d/128|0,d>0&&(f=f|128),h.writeUInt8(f,p++);while(d>0&&p<4);return d>0&&(p=0),a?h.subarray(0,p):h.slice(0,p)}function u(d){let f=r.allocUnsafe(4);return f.writeUInt32BE(d,0),f}n.exports={cache:o,generateCache:l,generateNumber:s,genBufVariableByteInt:c,generate4ByteBuffer:u}}),jSt=On((e,n)=>{fn(),hn(),pn(),typeof Ao>"u"||!Ao.version||Ao.version.indexOf("v0.")===0||Ao.version.indexOf("v1.")===0&&Ao.version.indexOf("v1.8.")!==0?n.exports={nextTick:r}:n.exports=Ao;function r(i,o,a,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var l=arguments.length,c,u;switch(l){case 0:case 1:return Ao.nextTick(i);case 2:return Ao.nextTick(function(){i.call(null,o)});case 3:return Ao.nextTick(function(){i.call(null,o,a)});case 4:return Ao.nextTick(function(){i.call(null,o,a,s)});default:for(c=new Array(l-1),u=0;u<c.length;)c[u++]=arguments[u];return Ao.nextTick(function(){i.apply(null,c)})}}}),s6e=On((e,n)=>{fn(),hn(),pn();var r=a6e(),{Buffer:i}=(Ec(),na(Sc)),o=i.allocUnsafe(0),a=i.from([0]),s=BSt(),l=jSt().nextTick,c=Cy()("mqtt-packet:writeToStream"),u=s.cache,d=s.generateNumber,f=s.generateCache,p=s.genBufVariableByteInt,h=s.generate4ByteBuffer,g=D,v=!0;function y(j,F,te){switch(c("generate called"),F.cork&&(F.cork(),l(_,F)),v&&(v=!1,f()),c("generate: packet.cmd: %s",j.cmd),j.cmd){case"connect":return S(j,F);case"connack":return b(j,F,te);case"publish":return E(j,F,te);case"puback":case"pubrec":case"pubrel":case"pubcomp":return w(j,F,te);case"subscribe":return C(j,F,te);case"suback":return x(j,F,te);case"unsubscribe":return T(j,F,te);case"unsuback":return R(j,F,te);case"pingreq":case"pingresp":return O(j,F);case"disconnect":return M(j,F,te);case"auth":return P(j,F,te);default:return F.destroy(new Error("Unknown command")),!1}}Object.defineProperty(y,"cacheNumbers",{get(){return g===D},set(j){j?((!u||Object.keys(u).length===0)&&(v=!0),g=D):(v=!1,g=B)}});function _(j){j.uncork()}function S(j,F,te){let oe=j||{},de=oe.protocolId||"MQTT",pe=oe.protocolVersion||4,me=oe.will,ve=oe.clean,he=oe.keepalive||0,be=oe.clientId||"",we=oe.username,De=oe.password,Ae=oe.properties;ve===void 0&&(ve=!0);let Ee=0;if(!de||typeof de!="string"&&!i.isBuffer(de))return F.destroy(new Error("Invalid protocolId")),!1;if(Ee+=de.length+2,pe!==3&&pe!==4&&pe!==5)return F.destroy(new Error("Invalid protocol version")),!1;if(Ee+=1,(typeof be=="string"||i.isBuffer(be))&&(be||pe>=4)&&(be||ve))Ee+=i.byteLength(be)+2;else{if(pe<4)return F.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(ve*1===0)return F.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof he!="number"||he<0||he>65535||he%1!==0)return F.destroy(new Error("Invalid keepalive")),!1;Ee+=2,Ee+=1;let Re,Te;if(pe===5){if(Re=K(F,Ae),!Re)return!1;Ee+=Re.length}if(me){if(typeof me!="object")return F.destroy(new Error("Invalid will")),!1;if(!me.topic||typeof me.topic!="string")return F.destroy(new Error("Invalid will topic")),!1;if(Ee+=i.byteLength(me.topic)+2,Ee+=2,me.payload)if(me.payload.length>=0)typeof me.payload=="string"?Ee+=i.byteLength(me.payload):Ee+=me.payload.length;else return F.destroy(new Error("Invalid will payload")),!1;if(Te={},pe===5){if(Te=K(F,me.properties),!Te)return!1;Ee+=Te.length}}let Oe=!1;if(we!=null)if(Z(we))Oe=!0,Ee+=i.byteLength(we)+2;else return F.destroy(new Error("Invalid username")),!1;if(De!=null){if(!Oe)return F.destroy(new Error("Username is required to use password")),!1;if(Z(De))Ee+=le(De)+2;else return F.destroy(new Error("Invalid password")),!1}F.write(r.CONNECT_HEADER),$(F,Ee),q(F,de),oe.bridgeMode&&(pe+=128),F.write(pe===131?r.VERSION131:pe===132?r.VERSION132:pe===4?r.VERSION4:pe===5?r.VERSION5:r.VERSION3);let Ne=0;return Ne|=we!=null?r.USERNAME_MASK:0,Ne|=De!=null?r.PASSWORD_MASK:0,Ne|=me&&me.retain?r.WILL_RETAIN_MASK:0,Ne|=me&&me.qos?me.qos<<r.WILL_QOS_SHIFT:0,Ne|=me?r.WILL_FLAG_MASK:0,Ne|=ve?r.CLEAN_SESSION_MASK:0,F.write(i.from([Ne])),g(F,he),pe===5&&Re.write(),q(F,be),me&&(pe===5&&Te.write(),U(F,me.topic),q(F,me.payload)),we!=null&&q(F,we),De!=null&&q(F,De),!0}function b(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=oe===5?de.reasonCode:de.returnCode,me=de.properties,ve=2;if(typeof pe!="number")return F.destroy(new Error("Invalid return code")),!1;let he=null;if(oe===5){if(he=K(F,me),!he)return!1;ve+=he.length}return F.write(r.CONNACK_HEADER),$(F,ve),F.write(de.sessionPresent?r.SESSIONPRESENT_HEADER:a),F.write(i.from([pe])),he==null||he.write(),!0}function E(j,F,te){c("publish: packet: %o",j);let oe=te?te.protocolVersion:4,de=j||{},pe=de.qos||0,me=de.retain?r.RETAIN_MASK:0,ve=de.topic,he=de.payload||o,be=de.messageId,we=de.properties,De=0;if(typeof ve=="string")De+=i.byteLength(ve)+2;else if(i.isBuffer(ve))De+=ve.length+2;else return F.destroy(new Error("Invalid topic")),!1;if(i.isBuffer(he)?De+=he.length:De+=i.byteLength(he),pe&&typeof be!="number")return F.destroy(new Error("Invalid messageId")),!1;pe&&(De+=2);let Ae=null;if(oe===5){if(Ae=K(F,we),!Ae)return!1;De+=Ae.length}return F.write(r.PUBLISH_HEADER[pe][de.dup?1:0][me?1:0]),$(F,De),g(F,le(ve)),F.write(ve),pe>0&&g(F,be),Ae==null||Ae.write(),c("publish: payload: %o",he),F.write(he)}function w(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.cmd||"puback",me=de.messageId,ve=de.dup&&pe==="pubrel"?r.DUP_MASK:0,he=0,be=de.reasonCode,we=de.properties,De=oe===5?3:2;if(pe==="pubrel"&&(he=1),typeof me!="number")return F.destroy(new Error("Invalid messageId")),!1;let Ae=null;if(oe===5&&typeof we=="object"){if(Ae=H(F,we,te,De),!Ae)return!1;De+=Ae.length}return F.write(r.ACKS[pe][he][ve][0]),De===3&&(De+=be!==0?1:-1),$(F,De),g(F,me),oe===5&&De!==2&&F.write(i.from([be])),Ae!==null?Ae.write():De===4&&F.write(i.from([0])),!0}function C(j,F,te){c("subscribe: packet: ");let oe=te?te.protocolVersion:4,de=j||{},pe=de.dup?r.DUP_MASK:0,me=de.messageId,ve=de.subscriptions,he=de.properties,be=0;if(typeof me!="number")return F.destroy(new Error("Invalid messageId")),!1;be+=2;let we=null;if(oe===5){if(we=K(F,he),!we)return!1;be+=we.length}if(typeof ve=="object"&&ve.length)for(let Ae=0;Ae<ve.length;Ae+=1){let Ee=ve[Ae].topic,Re=ve[Ae].qos;if(typeof Ee!="string")return F.destroy(new Error("Invalid subscriptions - invalid topic")),!1;if(typeof Re!="number")return F.destroy(new Error("Invalid subscriptions - invalid qos")),!1;if(oe===5){if(typeof(ve[Ae].nl||!1)!="boolean")return F.destroy(new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(ve[Ae].rap||!1)!="boolean")return F.destroy(new Error("Invalid subscriptions - invalid Retain as Published")),!1;let Te=ve[Ae].rh||0;if(typeof Te!="number"||Te>2)return F.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}be+=i.byteLength(Ee)+2+1}else return F.destroy(new Error("Invalid subscriptions")),!1;c("subscribe: writing to stream: %o",r.SUBSCRIBE_HEADER),F.write(r.SUBSCRIBE_HEADER[1][pe?1:0][0]),$(F,be),g(F,me),we!==null&&we.write();let De=!0;for(let Ae of ve){let Ee=Ae.topic,Re=Ae.qos,Te=+Ae.nl,Oe=+Ae.rap,Ne=Ae.rh,je;U(F,Ee),je=r.SUBSCRIBE_OPTIONS_QOS[Re],oe===5&&(je|=Te?r.SUBSCRIBE_OPTIONS_NL:0,je|=Oe?r.SUBSCRIBE_OPTIONS_RAP:0,je|=Ne?r.SUBSCRIBE_OPTIONS_RH[Ne]:0),De=F.write(i.from([je]))}return De}function x(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.messageId,me=de.granted,ve=de.properties,he=0;if(typeof pe!="number")return F.destroy(new Error("Invalid messageId")),!1;if(he+=2,typeof me=="object"&&me.length)for(let we=0;we<me.length;we+=1){if(typeof me[we]!="number")return F.destroy(new Error("Invalid qos vector")),!1;he+=1}else return F.destroy(new Error("Invalid qos vector")),!1;let be=null;if(oe===5){if(be=H(F,ve,te,he),!be)return!1;he+=be.length}return F.write(r.SUBACK_HEADER),$(F,he),g(F,pe),be!==null&&be.write(),F.write(i.from(me))}function T(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.messageId,me=de.dup?r.DUP_MASK:0,ve=de.unsubscriptions,he=de.properties,be=0;if(typeof pe!="number")return F.destroy(new Error("Invalid messageId")),!1;if(be+=2,typeof ve=="object"&&ve.length)for(let Ae=0;Ae<ve.length;Ae+=1){if(typeof ve[Ae]!="string")return F.destroy(new Error("Invalid unsubscriptions")),!1;be+=i.byteLength(ve[Ae])+2}else return F.destroy(new Error("Invalid unsubscriptions")),!1;let we=null;if(oe===5){if(we=K(F,he),!we)return!1;be+=we.length}F.write(r.UNSUBSCRIBE_HEADER[1][me?1:0][0]),$(F,be),g(F,pe),we!==null&&we.write();let De=!0;for(let Ae=0;Ae<ve.length;Ae++)De=U(F,ve[Ae]);return De}function R(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.messageId,me=de.dup?r.DUP_MASK:0,ve=de.granted,he=de.properties,be=de.cmd,we=0,De=2;if(typeof pe!="number")return F.destroy(new Error("Invalid messageId")),!1;if(oe===5)if(typeof ve=="object"&&ve.length)for(let Ee=0;Ee<ve.length;Ee+=1){if(typeof ve[Ee]!="number")return F.destroy(new Error("Invalid qos vector")),!1;De+=1}else return F.destroy(new Error("Invalid qos vector")),!1;let Ae=null;if(oe===5){if(Ae=H(F,he,te,De),!Ae)return!1;De+=Ae.length}return F.write(r.ACKS[be][we][me][0]),$(F,De),g(F,pe),Ae!==null&&Ae.write(),oe===5&&F.write(i.from(ve)),!0}function O(j,F,te){return F.write(r.EMPTY[j.cmd])}function M(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.reasonCode,me=de.properties,ve=oe===5?1:0,he=null;if(oe===5){if(he=H(F,me,te,ve),!he)return!1;ve+=he.length}return F.write(i.from([r.codes.disconnect<<4])),$(F,ve),oe===5&&F.write(i.from([pe])),he!==null&&he.write(),!0}function P(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.reasonCode,me=de.properties,ve=oe===5?1:0;oe!==5&&F.destroy(new Error("Invalid mqtt version for auth packet"));let he=H(F,me,te,ve);return he?(ve+=he.length,F.write(i.from([r.codes.auth<<4])),$(F,ve),F.write(i.from([pe])),he!==null&&he.write(),!0):!1}var k={};function $(j,F){if(F>r.VARBYTEINT_MAX)return j.destroy(new Error(`Invalid variable byte integer: ${F}`)),!1;let te=k[F];return te||(te=p(F),F<16384&&(k[F]=te)),c("writeVarByteInt: writing to stream: %o",te),j.write(te)}function U(j,F){let te=i.byteLength(F);return g(j,te),c("writeString: %s",F),j.write(F,"utf8")}function z(j,F,te){U(j,F),U(j,te)}function D(j,F){return c("writeNumberCached: number: %d",F),c("writeNumberCached: %o",u[F]),j.write(u[F])}function B(j,F){let te=d(F);return c("writeNumberGenerated: %o",te),j.write(te)}function Y(j,F){let te=h(F);return c("write4ByteNumber: %o",te),j.write(te)}function q(j,F){typeof F=="string"?U(j,F):F?(g(j,F.length),j.write(F)):g(j,0)}function K(j,F){if(typeof F!="object"||F.length!=null)return{length:1,write(){Q(j,{},0)}};let te=0;function oe(de,pe){let me=r.propertiesTypes[de],ve=0;switch(me){case"byte":{if(typeof pe!="boolean")return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=2;break}case"int8":{if(typeof pe!="number"||pe<0||pe>255)return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=2;break}case"binary":{if(pe&&pe===null)return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=1+i.byteLength(pe)+2;break}case"int16":{if(typeof pe!="number"||pe<0||pe>65535)return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=3;break}case"int32":{if(typeof pe!="number"||pe<0||pe>4294967295)return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=5;break}case"var":{if(typeof pe!="number"||pe<0||pe>268435455)return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=1+i.byteLength(p(pe));break}case"string":{if(typeof pe!="string")return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=3+i.byteLength(pe.toString());break}case"pair":{if(typeof pe!="object")return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=Object.getOwnPropertyNames(pe).reduce((he,be)=>{let we=pe[be];return Array.isArray(we)?he+=we.reduce((De,Ae)=>(De+=3+i.byteLength(be.toString())+2+i.byteLength(Ae.toString()),De),0):he+=3+i.byteLength(be.toString())+2+i.byteLength(pe[be].toString()),he},0);break}default:return j.destroy(new Error(`Invalid property ${de}: ${pe}`)),!1}return ve}if(F)for(let de in F){let pe=0,me=0,ve=F[de];if(Array.isArray(ve))for(let he=0;he<ve.length;he++){if(me=oe(de,ve[he]),!me)return!1;pe+=me}else{if(me=oe(de,ve),!me)return!1;pe=me}if(!pe)return!1;te+=pe}return{length:i.byteLength(p(te))+te,write(){Q(j,F,te)}}}function H(j,F,te,oe){let de=["reasonString","userProperties"],pe=te&&te.properties&&te.properties.maximumPacketSize?te.properties.maximumPacketSize:0,me=K(j,F);if(pe)for(;oe+me.length>pe;){let ve=de.shift();if(ve&&F[ve])delete F[ve],me=K(j,F);else return!1}return me}function G(j,F,te){switch(r.propertiesTypes[F]){case"byte":{j.write(i.from([r.properties[F]])),j.write(i.from([+te]));break}case"int8":{j.write(i.from([r.properties[F]])),j.write(i.from([te]));break}case"binary":{j.write(i.from([r.properties[F]])),q(j,te);break}case"int16":{j.write(i.from([r.properties[F]])),g(j,te);break}case"int32":{j.write(i.from([r.properties[F]])),Y(j,te);break}case"var":{j.write(i.from([r.properties[F]])),$(j,te);break}case"string":{j.write(i.from([r.properties[F]])),U(j,te);break}case"pair":{Object.getOwnPropertyNames(te).forEach(oe=>{let de=te[oe];Array.isArray(de)?de.forEach(pe=>{j.write(i.from([r.properties[F]])),z(j,oe.toString(),pe.toString())}):(j.write(i.from([r.properties[F]])),z(j,oe.toString(),de.toString()))});break}default:return j.destroy(new Error(`Invalid property ${F} value: ${te}`)),!1}}function Q(j,F,te){$(j,te);for(let oe in F)if(Object.prototype.hasOwnProperty.call(F,oe)&&F[oe]!==null){let de=F[oe];if(Array.isArray(de))for(let pe=0;pe<de.length;pe++)G(j,oe,de[pe]);else G(j,oe,de)}}function le(j){return j?j instanceof i?j.length:i.byteLength(j):0}function Z(j){return typeof j=="string"||j instanceof i}n.exports=y}),USt=On((e,n)=>{fn(),hn(),pn();var r=s6e(),{EventEmitter:i}=(XR(),na(YC)),{Buffer:o}=(Ec(),na(Sc));function a(l,c){let u=new s;return r(l,u,c),u.concat()}var s=class extends i{constructor(){super(),this._array=new Array(20),this._i=0}write(l){return this._array[this._i++]=l,!0}concat(){let l=0,c=new Array(this._array.length),u=this._array,d=0,f;for(f=0;f<u.length&&u[f]!==void 0;f++)typeof u[f]!="string"?c[f]=u[f].length:c[f]=o.byteLength(u[f]),l+=c[f];let p=o.allocUnsafe(l);for(f=0;f<u.length&&u[f]!==void 0;f++)typeof u[f]!="string"?(u[f].copy(p,d),d+=c[f]):(p.write(u[f],d),d+=c[f]);return p}destroy(l){l&&this.emit("error",l)}};n.exports=a}),HSt=On(e=>{fn(),hn(),pn(),e.parser=FSt().parser,e.generate=USt(),e.writeToStream=s6e()}),l6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let r=this.nextId++;return this.nextId===65536&&(this.nextId=1),r}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(r){return!0}deallocate(r){}clear(){}};e.default=n}),zSt=On((e,n)=>{fn(),hn(),pn(),n.exports=i;function r(a){return a instanceof IF?IF.from(a):new a.constructor(a.buffer.slice(),a.byteOffset,a.length)}function i(a){if(a=a||{},a.circles)return o(a);return a.proto?c:l;function s(u,d){for(var f=Object.keys(u),p=new Array(f.length),h=0;h<f.length;h++){var g=f[h],v=u[g];typeof v!="object"||v===null?p[g]=v:v instanceof Date?p[g]=new Date(v):ArrayBuffer.isView(v)?p[g]=r(v):p[g]=d(v)}return p}function l(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return s(u,l);if(u instanceof Map)return new Map(s(Array.from(u),l));if(u instanceof Set)return new Set(s(Array.from(u),l));var d={};for(var f in u)if(Object.hasOwnProperty.call(u,f)!==!1){var p=u[f];typeof p!="object"||p===null?d[f]=p:p instanceof Date?d[f]=new Date(p):p instanceof Map?d[f]=new Map(s(Array.from(p),l)):p instanceof Set?d[f]=new Set(s(Array.from(p),l)):ArrayBuffer.isView(p)?d[f]=r(p):d[f]=l(p)}return d}function c(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return s(u,c);if(u instanceof Map)return new Map(s(Array.from(u),c));if(u instanceof Set)return new Set(s(Array.from(u),c));var d={};for(var f in u){var p=u[f];typeof p!="object"||p===null?d[f]=p:p instanceof Date?d[f]=new Date(p):p instanceof Map?d[f]=new Map(s(Array.from(p),c)):p instanceof Set?d[f]=new Set(s(Array.from(p),c)):ArrayBuffer.isView(p)?d[f]=r(p):d[f]=c(p)}return d}}function o(a){var s=[],l=[];return a.proto?d:u;function c(f,p){for(var h=Object.keys(f),g=new Array(h.length),v=0;v<h.length;v++){var y=h[v],_=f[y];if(typeof _!="object"||_===null)g[y]=_;else if(_ instanceof Date)g[y]=new Date(_);else if(ArrayBuffer.isView(_))g[y]=r(_);else{var S=s.indexOf(_);S!==-1?g[y]=l[S]:g[y]=p(_)}}return g}function u(f){if(typeof f!="object"||f===null)return f;if(f instanceof Date)return new Date(f);if(Array.isArray(f))return c(f,u);if(f instanceof Map)return new Map(c(Array.from(f),u));if(f instanceof Set)return new Set(c(Array.from(f),u));var p={};s.push(f),l.push(p);for(var h in f)if(Object.hasOwnProperty.call(f,h)!==!1){var g=f[h];if(typeof g!="object"||g===null)p[h]=g;else if(g instanceof Date)p[h]=new Date(g);else if(g instanceof Map)p[h]=new Map(c(Array.from(g),u));else if(g instanceof Set)p[h]=new Set(c(Array.from(g),u));else if(ArrayBuffer.isView(g))p[h]=r(g);else{var v=s.indexOf(g);v!==-1?p[h]=l[v]:p[h]=u(g)}}return s.pop(),l.pop(),p}function d(f){if(typeof f!="object"||f===null)return f;if(f instanceof Date)return new Date(f);if(Array.isArray(f))return c(f,d);if(f instanceof Map)return new Map(c(Array.from(f),d));if(f instanceof Set)return new Set(c(Array.from(f),d));var p={};s.push(f),l.push(p);for(var h in f){var g=f[h];if(typeof g!="object"||g===null)p[h]=g;else if(g instanceof Date)p[h]=new Date(g);else if(g instanceof Map)p[h]=new Map(c(Array.from(g),d));else if(g instanceof Set)p[h]=new Set(c(Array.from(g),d));else if(ArrayBuffer.isView(g))p[h]=r(g);else{var v=s.indexOf(g);v!==-1?p[h]=l[v]:p[h]=d(g)}}return s.pop(),l.pop(),p}}}),VSt=On((e,n)=>{fn(),hn(),pn(),n.exports=zSt()()}),GSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function n(i){let o=i.split("/");for(let a=0;a<o.length;a++)if(o[a]!=="+"){if(o[a]==="#")return a===o.length-1;if(o[a].indexOf("+")!==-1||o[a].indexOf("#")!==-1)return!1}return!0}e.validateTopic=n;function r(i){if(i.length===0)return"empty_topic_list";for(let o=0;o<i.length;o++)if(!n(i[o]))return i[o];return null}e.validateTopics=r}),c6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=qC(),r={objectMode:!0},i={clean:!0},o=class{constructor(a){this.options=a||{},this.options=Object.assign(Object.assign({},i),a),this._inflights=new Map}put(a,s){return this._inflights.set(a.messageId,a),s&&s(),this}createStream(){let a=new n.Readable(r),s=[],l=!1,c=0;return this._inflights.forEach((u,d)=>{s.push(u)}),a._read=()=>{!l&&c<s.length?a.push(s[c++]):a.push(null)},a.destroy=u=>{if(!l)return l=!0,setTimeout(()=>{a.emit("close")},0),a},a}del(a,s){let l=this._inflights.get(a.messageId);return l?(this._inflights.delete(a.messageId),s(null,l)):s&&s(new Error("missing packet")),this}get(a,s){let l=this._inflights.get(a.messageId);return l?s(null,l):s&&s(new Error("missing packet")),this}close(a){this.options.clean&&(this._inflights=null),a&&a()}};e.default=o}),WSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=[0,16,128,131,135,144,145,151,153],r=(i,o,a)=>{i.log("handlePublish: packet %o",o),a=typeof a<"u"?a:i.noop;let s=o.topic.toString(),l=o.payload,{qos:c}=o,{messageId:u}=o,{options:d}=i;if(i.options.protocolVersion===5){let f;if(o.properties&&(f=o.properties.topicAlias),typeof f<"u")if(s.length===0)if(f>0&&f<=65535){let p=i.topicAliasRecv.getTopicByAlias(f);if(p)s=p,i.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",s,f);else{i.log("handlePublish :: unregistered topic alias. alias: %d",f),i.emit("error",new Error("Received unregistered Topic Alias"));return}}else{i.log("handlePublish :: topic alias out of range. alias: %d",f),i.emit("error",new Error("Received Topic Alias is out of range"));return}else if(i.topicAliasRecv.put(s,f))i.log("handlePublish :: registered topic: %s - alias: %d",s,f);else{i.log("handlePublish :: topic alias out of range. alias: %d",f),i.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(i.log("handlePublish: qos %d",c),c){case 2:{d.customHandleAcks(s,l,o,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return i.emit("error",f);if(n.indexOf(p)===-1)return i.emit("error",new Error("Wrong reason code for pubrec"));p?i._sendPacket({cmd:"pubrec",messageId:u,reasonCode:p},a):i.incomingStore.put(o,()=>{i._sendPacket({cmd:"pubrec",messageId:u},a)})});break}case 1:{d.customHandleAcks(s,l,o,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return i.emit("error",f);if(n.indexOf(p)===-1)return i.emit("error",new Error("Wrong reason code for puback"));p||i.emit("message",s,l,o),i.handleMessage(o,h=>{if(h)return a&&a(h);i._sendPacket({cmd:"puback",messageId:u,reasonCode:p},a)})});break}case 0:i.emit("message",s,l,o),i.handleMessage(o,a);break;default:i.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=r}),YSt=On((e,n)=>{n.exports={version:"5.10.3"}}),QR=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var n=class u6e extends Error{constructor(o,a){super(o),this.code=a,Object.setPrototypeOf(this,u6e.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=n;function r(i,o,a=!1){var s;let l=[o];for(;;){let c=l[0],u=Object.getPrototypeOf(c);if(u!=null&&u.prototype)l.unshift(u);else break}for(let c of l)for(let u of Object.getOwnPropertyNames(c.prototype))(a||u!=="constructor")&&Object.defineProperty(i.prototype,u,(s=Object.getOwnPropertyDescriptor(c.prototype,u))!==null&&s!==void 0?s:Object.create(null))}e.applyMixin=r,e.nextTick=typeof(Ao==null?void 0:Ao.nextTick)=="function"?Ao.nextTick:i=>{setTimeout(i,0)},e.MQTTJS_VERSION=YSt().version}),F7=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var n=QR();e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var r=(i,o)=>{let{messageId:a}=o,s=o.cmd,l=null,c=i.outgoing[a]?i.outgoing[a].cb:null,u=null;if(!c){i.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(i.log("_handleAck :: packet type",s),s){case"pubcomp":case"puback":{let d=o.reasonCode;d&&d>0&&d!==16?(u=new n.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[d]}`,d),i._removeOutgoingAndStoreMessage(a,()=>{c(u,o)})):i._removeOutgoingAndStoreMessage(a,c);break}case"pubrec":{l={cmd:"pubrel",qos:2,messageId:a};let d=o.reasonCode;d&&d>0&&d!==16?(u=new n.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[d]}`,d),i._removeOutgoingAndStoreMessage(a,()=>{c(u,o)})):i._sendPacket(l);break}case"suback":{delete i.outgoing[a],i.messageIdProvider.deallocate(a);let d=o.granted;for(let f=0;f<d.length;f++){let p=d[f];if(p&128){u=new Error(`Subscribe error: ${e.ReasonCodes[p]}`),u.code=p;let h=i.messageIdToTopic[a];h&&h.forEach(g=>{delete i._resubscribeTopics[g]})}}delete i.messageIdToTopic[a],i._invokeStoreProcessingQueue(),c(u,o);break}case"unsuback":{delete i.outgoing[a],i.messageIdProvider.deallocate(a),i._invokeStoreProcessingQueue(),c(null,o);break}default:i.emit("error",new Error("unrecognized packet type"))}i.disconnecting&&Object.keys(i.outgoing).length===0&&i.emit("outgoingEmpty")};e.default=r}),qSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=QR(),r=F7(),i=(o,a)=>{let{options:s}=o,l=s.protocolVersion,c=l===5?a.reasonCode:a.returnCode;if(l!==5){let u=new n.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${l}`,c);o.emit("error",u);return}o.handleAuth(a,(u,d)=>{if(u){o.emit("error",u);return}if(c===24)o.reconnecting=!1,o._sendPacket(d);else{let f=new n.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[c]}`,c);o.emit("error",f)}})};e.default=i}),KSt=On(e=>{var h,g,v,y,_,S,b,E,w,C,x,T,R,O,M,P,k,$,U,z,D,B,Y,q,K,H,sne,Q,le,Z,j,d6e,te,oe,de,ib,ob,lne,$5,F5,Da,cne,e2,Ee;fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var n=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,i=typeof Ao=="object"&&Ao?Ao:{},o=(Re,Te,Oe,Ne)=>{typeof i.emitWarning=="function"?i.emitWarning(Re,Te,Oe,Ne):console.error(`[${Oe}] ${Te}: ${Re}`)},a=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof a>"u"){s=class{constructor(){$t(this,"onabort");$t(this,"_onabort",[]);$t(this,"reason");$t(this,"aborted",!1)}addEventListener(Oe,Ne){this._onabort.push(Ne)}},a=class{constructor(){$t(this,"signal",new s);Te()}abort(Oe){var Ne,je;if(!this.signal.aborted){this.signal.reason=Oe,this.signal.aborted=!0;for(let ne of this.signal._onabort)ne(Oe);(je=(Ne=this.signal).onabort)==null||je.call(Ne,Oe)}}};let Re=((h=i.env)==null?void 0:h.LRU_CACHE_IGNORE_AC_WARNING)!=="1",Te=()=>{Re&&(Re=!1,o("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Te))}}var l=Re=>!r.has(Re),c=Re=>Re&&Re===Math.floor(Re)&&Re>0&&isFinite(Re),u=Re=>c(Re)?Re<=Math.pow(2,8)?Uint8Array:Re<=Math.pow(2,16)?Uint16Array:Re<=Math.pow(2,32)?Uint32Array:Re<=Number.MAX_SAFE_INTEGER?d:null:null,d=class extends Array{constructor(Re){super(Re),this.fill(0)}},f=(g=class{constructor(Te,Oe){$t(this,"heap");$t(this,"length");if(!He(g,v))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new Oe(Te),this.length=0}static create(Te){let Oe=u(Te);if(!Oe)return[];xn(g,v,!0);let Ne=new g(Te,Oe);return xn(g,v,!1),Ne}push(Te){this.heap[this.length++]=Te}pop(){return this.heap[--this.length]}},v=new WeakMap,Xn(g,v,!1),g),p=(Ee=class{constructor(Te){Xn(this,H);Xn(this,y);Xn(this,_);Xn(this,S);Xn(this,b);Xn(this,E);$t(this,"ttl");$t(this,"ttlResolution");$t(this,"ttlAutopurge");$t(this,"updateAgeOnGet");$t(this,"updateAgeOnHas");$t(this,"allowStale");$t(this,"noDisposeOnSet");$t(this,"noUpdateTTL");$t(this,"maxEntrySize");$t(this,"sizeCalculation");$t(this,"noDeleteOnFetchRejection");$t(this,"noDeleteOnStaleGet");$t(this,"allowStaleOnFetchAbort");$t(this,"allowStaleOnFetchRejection");$t(this,"ignoreFetchAbort");Xn(this,w);Xn(this,C);Xn(this,x);Xn(this,T);Xn(this,R);Xn(this,O);Xn(this,M);Xn(this,P);Xn(this,k);Xn(this,$);Xn(this,U);Xn(this,z);Xn(this,D);Xn(this,B);Xn(this,Y);Xn(this,q);Xn(this,K);Xn(this,Q,()=>{});Xn(this,le,()=>{});Xn(this,Z,()=>{});Xn(this,j,()=>!1);Xn(this,te,Te=>{});Xn(this,oe,(Te,Oe,Ne)=>{});Xn(this,de,(Te,Oe,Ne,je)=>{if(Ne||je)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:Oe=0,ttl:Ne,ttlResolution:je=1,ttlAutopurge:ne,updateAgeOnGet:J,updateAgeOnHas:ae,allowStale:Se,dispose:xe,disposeAfter:ue,noDisposeOnSet:Me,noUpdateTTL:$e,maxSize:ge=0,maxEntrySize:Ve=0,sizeCalculation:st,fetchMethod:Je,noDeleteOnFetchRejection:ot,noDeleteOnStaleGet:Xe,allowStaleOnFetchRejection:Ze,allowStaleOnFetchAbort:bt,ignoreFetchAbort:at}=Te;if(Oe!==0&&!c(Oe))throw new TypeError("max option must be a nonnegative integer");let pt=Oe?u(Oe):Array;if(!pt)throw new Error("invalid max value: "+Oe);if(xn(this,y,Oe),xn(this,_,ge),this.maxEntrySize=Ve||He(this,_),this.sizeCalculation=st,this.sizeCalculation){if(!He(this,_)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Je!==void 0&&typeof Je!="function")throw new TypeError("fetchMethod must be a function if specified");if(xn(this,E,Je),xn(this,q,!!Je),xn(this,x,new Map),xn(this,T,new Array(Oe).fill(void 0)),xn(this,R,new Array(Oe).fill(void 0)),xn(this,O,new pt(Oe)),xn(this,M,new pt(Oe)),xn(this,P,0),xn(this,k,0),xn(this,$,f.create(Oe)),xn(this,w,0),xn(this,C,0),typeof xe=="function"&&xn(this,S,xe),typeof ue=="function"?(xn(this,b,ue),xn(this,U,[])):(xn(this,b,void 0),xn(this,U,void 0)),xn(this,Y,!!He(this,S)),xn(this,K,!!He(this,b)),this.noDisposeOnSet=!!Me,this.noUpdateTTL=!!$e,this.noDeleteOnFetchRejection=!!ot,this.allowStaleOnFetchRejection=!!Ze,this.allowStaleOnFetchAbort=!!bt,this.ignoreFetchAbort=!!at,this.maxEntrySize!==0){if(He(this,_)!==0&&!c(He(this,_)))throw new TypeError("maxSize must be a positive integer if specified");if(!c(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ir(this,H,d6e).call(this)}if(this.allowStale=!!Se,this.noDeleteOnStaleGet=!!Xe,this.updateAgeOnGet=!!J,this.updateAgeOnHas=!!ae,this.ttlResolution=c(je)||je===0?je:1,this.ttlAutopurge=!!ne,this.ttl=Ne||0,this.ttl){if(!c(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ir(this,H,sne).call(this)}if(He(this,y)===0&&this.ttl===0&&He(this,_)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!He(this,y)&&!He(this,_)){let Ct="LRU_CACHE_UNBOUNDED";l(Ct)&&(r.add(Ct),o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Ct,Ee))}}static unsafeExposeInternals(Te){return{starts:He(Te,D),ttls:He(Te,B),sizes:He(Te,z),keyMap:He(Te,x),keyList:He(Te,T),valList:He(Te,R),next:He(Te,O),prev:He(Te,M),get head(){return He(Te,P)},get tail(){return He(Te,k)},free:He(Te,$),isBackgroundFetch:Oe=>{var Ne;return ir(Ne=Te,H,Da).call(Ne,Oe)},backgroundFetch:(Oe,Ne,je,ne)=>{var J;return ir(J=Te,H,F5).call(J,Oe,Ne,je,ne)},moveToTail:Oe=>{var Ne;return ir(Ne=Te,H,e2).call(Ne,Oe)},indexes:Oe=>{var Ne;return ir(Ne=Te,H,ib).call(Ne,Oe)},rindexes:Oe=>{var Ne;return ir(Ne=Te,H,ob).call(Ne,Oe)},isStale:Oe=>{var Ne;return He(Ne=Te,j).call(Ne,Oe)}}}get max(){return He(this,y)}get maxSize(){return He(this,_)}get calculatedSize(){return He(this,C)}get size(){return He(this,w)}get fetchMethod(){return He(this,E)}get dispose(){return He(this,S)}get disposeAfter(){return He(this,b)}getRemainingTTL(Te){return He(this,x).has(Te)?1/0:0}*entries(){for(let Te of ir(this,H,ib).call(this))He(this,R)[Te]!==void 0&&He(this,T)[Te]!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield[He(this,T)[Te],He(this,R)[Te]])}*rentries(){for(let Te of ir(this,H,ob).call(this))He(this,R)[Te]!==void 0&&He(this,T)[Te]!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield[He(this,T)[Te],He(this,R)[Te]])}*keys(){for(let Te of ir(this,H,ib).call(this)){let Oe=He(this,T)[Te];Oe!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield Oe)}}*rkeys(){for(let Te of ir(this,H,ob).call(this)){let Oe=He(this,T)[Te];Oe!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield Oe)}}*values(){for(let Te of ir(this,H,ib).call(this))He(this,R)[Te]!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield He(this,R)[Te])}*rvalues(){for(let Te of ir(this,H,ob).call(this))He(this,R)[Te]!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield He(this,R)[Te])}[Symbol.iterator](){return this.entries()}find(Te,Oe={}){for(let Ne of ir(this,H,ib).call(this)){let je=He(this,R)[Ne],ne=ir(this,H,Da).call(this,je)?je.__staleWhileFetching:je;if(ne!==void 0&&Te(ne,He(this,T)[Ne],this))return this.get(He(this,T)[Ne],Oe)}}forEach(Te,Oe=this){for(let Ne of ir(this,H,ib).call(this)){let je=He(this,R)[Ne],ne=ir(this,H,Da).call(this,je)?je.__staleWhileFetching:je;ne!==void 0&&Te.call(Oe,ne,He(this,T)[Ne],this)}}rforEach(Te,Oe=this){for(let Ne of ir(this,H,ob).call(this)){let je=He(this,R)[Ne],ne=ir(this,H,Da).call(this,je)?je.__staleWhileFetching:je;ne!==void 0&&Te.call(Oe,ne,He(this,T)[Ne],this)}}purgeStale(){let Te=!1;for(let Oe of ir(this,H,ob).call(this,{allowStale:!0}))He(this,j).call(this,Oe)&&(this.delete(He(this,T)[Oe]),Te=!0);return Te}dump(){let Te=[];for(let Oe of ir(this,H,ib).call(this,{allowStale:!0})){let Ne=He(this,T)[Oe],je=He(this,R)[Oe],ne=ir(this,H,Da).call(this,je)?je.__staleWhileFetching:je;if(ne===void 0||Ne===void 0)continue;let J={value:ne};if(He(this,B)&&He(this,D)){J.ttl=He(this,B)[Oe];let ae=n.now()-He(this,D)[Oe];J.start=Math.floor(Date.now()-ae)}He(this,z)&&(J.size=He(this,z)[Oe]),Te.unshift([Ne,J])}return Te}load(Te){this.clear();for(let[Oe,Ne]of Te){if(Ne.start){let je=Date.now()-Ne.start;Ne.start=n.now()-je}this.set(Oe,Ne.value,Ne)}}set(Te,Oe,Ne={}){var $e,ge,Ve,st,Je;if(Oe===void 0)return this.delete(Te),this;let{ttl:je=this.ttl,start:ne,noDisposeOnSet:J=this.noDisposeOnSet,sizeCalculation:ae=this.sizeCalculation,status:Se}=Ne,{noUpdateTTL:xe=this.noUpdateTTL}=Ne,ue=He(this,de).call(this,Te,Oe,Ne.size||0,ae);if(this.maxEntrySize&&ue>this.maxEntrySize)return Se&&(Se.set="miss",Se.maxEntrySizeExceeded=!0),this.delete(Te),this;let Me=He(this,w)===0?void 0:He(this,x).get(Te);if(Me===void 0)Me=He(this,w)===0?He(this,k):He(this,$).length!==0?He(this,$).pop():He(this,w)===He(this,y)?ir(this,H,$5).call(this,!1):He(this,w),He(this,T)[Me]=Te,He(this,R)[Me]=Oe,He(this,x).set(Te,Me),He(this,O)[He(this,k)]=Me,He(this,M)[Me]=He(this,k),xn(this,k,Me),sE(this,w)._++,He(this,oe).call(this,Me,ue,Se),Se&&(Se.set="add"),xe=!1;else{ir(this,H,e2).call(this,Me);let ot=He(this,R)[Me];if(Oe!==ot){if(He(this,q)&&ir(this,H,Da).call(this,ot)){ot.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Xe}=ot;Xe!==void 0&&!J&&(He(this,Y)&&(($e=He(this,S))==null||$e.call(this,Xe,Te,"set")),He(this,K)&&((ge=He(this,U))==null||ge.push([Xe,Te,"set"])))}else J||(He(this,Y)&&((Ve=He(this,S))==null||Ve.call(this,ot,Te,"set")),He(this,K)&&((st=He(this,U))==null||st.push([ot,Te,"set"])));if(He(this,te).call(this,Me),He(this,oe).call(this,Me,ue,Se),He(this,R)[Me]=Oe,Se){Se.set="replace";let Xe=ot&&ir(this,H,Da).call(this,ot)?ot.__staleWhileFetching:ot;Xe!==void 0&&(Se.oldValue=Xe)}}else Se&&(Se.set="update")}if(je!==0&&!He(this,B)&&ir(this,H,sne).call(this),He(this,B)&&(xe||He(this,Z).call(this,Me,je,ne),Se&&He(this,le).call(this,Se,Me)),!J&&He(this,K)&&He(this,U)){let ot=He(this,U),Xe;for(;Xe=ot==null?void 0:ot.shift();)(Je=He(this,b))==null||Je.call(this,...Xe)}return this}pop(){var Te;try{for(;He(this,w);){let Oe=He(this,R)[He(this,P)];if(ir(this,H,$5).call(this,!0),ir(this,H,Da).call(this,Oe)){if(Oe.__staleWhileFetching)return Oe.__staleWhileFetching}else if(Oe!==void 0)return Oe}}finally{if(He(this,K)&&He(this,U)){let Oe=He(this,U),Ne;for(;Ne=Oe==null?void 0:Oe.shift();)(Te=He(this,b))==null||Te.call(this,...Ne)}}}has(Te,Oe={}){let{updateAgeOnHas:Ne=this.updateAgeOnHas,status:je}=Oe,ne=He(this,x).get(Te);if(ne!==void 0){let J=He(this,R)[ne];if(ir(this,H,Da).call(this,J)&&J.__staleWhileFetching===void 0)return!1;if(He(this,j).call(this,ne))je&&(je.has="stale",He(this,le).call(this,je,ne));else return Ne&&He(this,Q).call(this,ne),je&&(je.has="hit",He(this,le).call(this,je,ne)),!0}else je&&(je.has="miss");return!1}peek(Te,Oe={}){let{allowStale:Ne=this.allowStale}=Oe,je=He(this,x).get(Te);if(je!==void 0&&(Ne||!He(this,j).call(this,je))){let ne=He(this,R)[je];return ir(this,H,Da).call(this,ne)?ne.__staleWhileFetching:ne}}async fetch(Te,Oe={}){let{allowStale:Ne=this.allowStale,updateAgeOnGet:je=this.updateAgeOnGet,noDeleteOnStaleGet:ne=this.noDeleteOnStaleGet,ttl:J=this.ttl,noDisposeOnSet:ae=this.noDisposeOnSet,size:Se=0,sizeCalculation:xe=this.sizeCalculation,noUpdateTTL:ue=this.noUpdateTTL,noDeleteOnFetchRejection:Me=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:$e=this.allowStaleOnFetchRejection,ignoreFetchAbort:ge=this.ignoreFetchAbort,allowStaleOnFetchAbort:Ve=this.allowStaleOnFetchAbort,context:st,forceRefresh:Je=!1,status:ot,signal:Xe}=Oe;if(!He(this,q))return ot&&(ot.fetch="get"),this.get(Te,{allowStale:Ne,updateAgeOnGet:je,noDeleteOnStaleGet:ne,status:ot});let Ze={allowStale:Ne,updateAgeOnGet:je,noDeleteOnStaleGet:ne,ttl:J,noDisposeOnSet:ae,size:Se,sizeCalculation:xe,noUpdateTTL:ue,noDeleteOnFetchRejection:Me,allowStaleOnFetchRejection:$e,allowStaleOnFetchAbort:Ve,ignoreFetchAbort:ge,status:ot,signal:Xe},bt=He(this,x).get(Te);if(bt===void 0){ot&&(ot.fetch="miss");let at=ir(this,H,F5).call(this,Te,bt,Ze,st);return at.__returned=at}else{let at=He(this,R)[bt];if(ir(this,H,Da).call(this,at)){let Wt=Ne&&at.__staleWhileFetching!==void 0;return ot&&(ot.fetch="inflight",Wt&&(ot.returnedStale=!0)),Wt?at.__staleWhileFetching:at.__returned=at}let pt=He(this,j).call(this,bt);if(!Je&&!pt)return ot&&(ot.fetch="hit"),ir(this,H,e2).call(this,bt),je&&He(this,Q).call(this,bt),ot&&He(this,le).call(this,ot,bt),at;let Ct=ir(this,H,F5).call(this,Te,bt,Ze,st),It=Ct.__staleWhileFetching!==void 0&&Ne;return ot&&(ot.fetch=pt?"stale":"refresh",It&&pt&&(ot.returnedStale=!0)),It?Ct.__staleWhileFetching:Ct.__returned=Ct}}get(Te,Oe={}){let{allowStale:Ne=this.allowStale,updateAgeOnGet:je=this.updateAgeOnGet,noDeleteOnStaleGet:ne=this.noDeleteOnStaleGet,status:J}=Oe,ae=He(this,x).get(Te);if(ae!==void 0){let Se=He(this,R)[ae],xe=ir(this,H,Da).call(this,Se);return J&&He(this,le).call(this,J,ae),He(this,j).call(this,ae)?(J&&(J.get="stale"),xe?(J&&Ne&&Se.__staleWhileFetching!==void 0&&(J.returnedStale=!0),Ne?Se.__staleWhileFetching:void 0):(ne||this.delete(Te),J&&Ne&&(J.returnedStale=!0),Ne?Se:void 0)):(J&&(J.get="hit"),xe?Se.__staleWhileFetching:(ir(this,H,e2).call(this,ae),je&&He(this,Q).call(this,ae),Se))}else J&&(J.get="miss")}delete(Te){var Ne,je,ne,J;let Oe=!1;if(He(this,w)!==0){let ae=He(this,x).get(Te);if(ae!==void 0)if(Oe=!0,He(this,w)===1)this.clear();else{He(this,te).call(this,ae);let Se=He(this,R)[ae];ir(this,H,Da).call(this,Se)?Se.__abortController.abort(new Error("deleted")):(He(this,Y)||He(this,K))&&(He(this,Y)&&((Ne=He(this,S))==null||Ne.call(this,Se,Te,"delete")),He(this,K)&&((je=He(this,U))==null||je.push([Se,Te,"delete"]))),He(this,x).delete(Te),He(this,T)[ae]=void 0,He(this,R)[ae]=void 0,ae===He(this,k)?xn(this,k,He(this,M)[ae]):ae===He(this,P)?xn(this,P,He(this,O)[ae]):(He(this,O)[He(this,M)[ae]]=He(this,O)[ae],He(this,M)[He(this,O)[ae]]=He(this,M)[ae]),sE(this,w)._--,He(this,$).push(ae)}}if(He(this,K)&&((ne=He(this,U))!=null&&ne.length)){let ae=He(this,U),Se;for(;Se=ae==null?void 0:ae.shift();)(J=He(this,b))==null||J.call(this,...Se)}return Oe}clear(){var Te,Oe,Ne;for(let je of ir(this,H,ob).call(this,{allowStale:!0})){let ne=He(this,R)[je];if(ir(this,H,Da).call(this,ne))ne.__abortController.abort(new Error("deleted"));else{let J=He(this,T)[je];He(this,Y)&&((Te=He(this,S))==null||Te.call(this,ne,J,"delete")),He(this,K)&&((Oe=He(this,U))==null||Oe.push([ne,J,"delete"]))}}if(He(this,x).clear(),He(this,R).fill(void 0),He(this,T).fill(void 0),He(this,B)&&He(this,D)&&(He(this,B).fill(0),He(this,D).fill(0)),He(this,z)&&He(this,z).fill(0),xn(this,P,0),xn(this,k,0),He(this,$).length=0,xn(this,C,0),xn(this,w,0),He(this,K)&&He(this,U)){let je=He(this,U),ne;for(;ne=je==null?void 0:je.shift();)(Ne=He(this,b))==null||Ne.call(this,...ne)}}},y=new WeakMap,_=new WeakMap,S=new WeakMap,b=new WeakMap,E=new WeakMap,w=new WeakMap,C=new WeakMap,x=new WeakMap,T=new WeakMap,R=new WeakMap,O=new WeakMap,M=new WeakMap,P=new WeakMap,k=new WeakMap,$=new WeakMap,U=new WeakMap,z=new WeakMap,D=new WeakMap,B=new WeakMap,Y=new WeakMap,q=new WeakMap,K=new WeakMap,H=new WeakSet,sne=function(){let Te=new d(He(this,y)),Oe=new d(He(this,y));xn(this,B,Te),xn(this,D,Oe),xn(this,Z,(ne,J,ae=n.now())=>{if(Oe[ne]=J!==0?ae:0,Te[ne]=J,J!==0&&this.ttlAutopurge){let Se=setTimeout(()=>{He(this,j).call(this,ne)&&this.delete(He(this,T)[ne])},J+1);Se.unref&&Se.unref()}}),xn(this,Q,ne=>{Oe[ne]=Te[ne]!==0?n.now():0}),xn(this,le,(ne,J)=>{if(Te[J]){let ae=Te[J],Se=Oe[J];ne.ttl=ae,ne.start=Se,ne.now=Ne||je();let xe=ne.now-Se;ne.remainingTTL=ae-xe}});let Ne=0,je=()=>{let ne=n.now();if(this.ttlResolution>0){Ne=ne;let J=setTimeout(()=>Ne=0,this.ttlResolution);J.unref&&J.unref()}return ne};this.getRemainingTTL=ne=>{let J=He(this,x).get(ne);if(J===void 0)return 0;let ae=Te[J],Se=Oe[J];if(ae===0||Se===0)return 1/0;let xe=(Ne||je())-Se;return ae-xe},xn(this,j,ne=>Te[ne]!==0&&Oe[ne]!==0&&(Ne||je())-Oe[ne]>Te[ne])},Q=new WeakMap,le=new WeakMap,Z=new WeakMap,j=new WeakMap,d6e=function(){let Te=new d(He(this,y));xn(this,C,0),xn(this,z,Te),xn(this,te,Oe=>{xn(this,C,He(this,C)-Te[Oe]),Te[Oe]=0}),xn(this,de,(Oe,Ne,je,ne)=>{if(ir(this,H,Da).call(this,Ne))return 0;if(!c(je))if(ne){if(typeof ne!="function")throw new TypeError("sizeCalculation must be a function");if(je=ne(Ne,Oe),!c(je))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return je}),xn(this,oe,(Oe,Ne,je)=>{if(Te[Oe]=Ne,He(this,_)){let ne=He(this,_)-Te[Oe];for(;He(this,C)>ne;)ir(this,H,$5).call(this,!0)}xn(this,C,He(this,C)+Te[Oe]),je&&(je.entrySize=Ne,je.totalCalculatedSize=He(this,C))})},te=new WeakMap,oe=new WeakMap,de=new WeakMap,ib=function*({allowStale:Te=this.allowStale}={}){if(He(this,w))for(let Oe=He(this,k);!(!ir(this,H,lne).call(this,Oe)||((Te||!He(this,j).call(this,Oe))&&(yield Oe),Oe===He(this,P)));)Oe=He(this,M)[Oe]},ob=function*({allowStale:Te=this.allowStale}={}){if(He(this,w))for(let Oe=He(this,P);!(!ir(this,H,lne).call(this,Oe)||((Te||!He(this,j).call(this,Oe))&&(yield Oe),Oe===He(this,k)));)Oe=He(this,O)[Oe]},lne=function(Te){return Te!==void 0&&He(this,x).get(He(this,T)[Te])===Te},$5=function(Te){var ne,J;let Oe=He(this,P),Ne=He(this,T)[Oe],je=He(this,R)[Oe];return He(this,q)&&ir(this,H,Da).call(this,je)?je.__abortController.abort(new Error("evicted")):(He(this,Y)||He(this,K))&&(He(this,Y)&&((ne=He(this,S))==null||ne.call(this,je,Ne,"evict")),He(this,K)&&((J=He(this,U))==null||J.push([je,Ne,"evict"]))),He(this,te).call(this,Oe),Te&&(He(this,T)[Oe]=void 0,He(this,R)[Oe]=void 0,He(this,$).push(Oe)),He(this,w)===1?(xn(this,P,xn(this,k,0)),He(this,$).length=0):xn(this,P,He(this,O)[Oe]),He(this,x).delete(Ne),sE(this,w)._--,Oe},F5=function(Te,Oe,Ne,je){let ne=Oe===void 0?void 0:He(this,R)[Oe];if(ir(this,H,Da).call(this,ne))return ne;let J=new a,{signal:ae}=Ne;ae==null||ae.addEventListener("abort",()=>J.abort(ae.reason),{signal:J.signal});let Se={signal:J.signal,options:Ne,context:je},xe=(st,Je=!1)=>{let{aborted:ot}=J.signal,Xe=Ne.ignoreFetchAbort&&st!==void 0;if(Ne.status&&(ot&&!Je?(Ne.status.fetchAborted=!0,Ne.status.fetchError=J.signal.reason,Xe&&(Ne.status.fetchAbortIgnored=!0)):Ne.status.fetchResolved=!0),ot&&!Xe&&!Je)return Me(J.signal.reason);let Ze=ge;return He(this,R)[Oe]===ge&&(st===void 0?Ze.__staleWhileFetching?He(this,R)[Oe]=Ze.__staleWhileFetching:this.delete(Te):(Ne.status&&(Ne.status.fetchUpdated=!0),this.set(Te,st,Se.options))),st},ue=st=>(Ne.status&&(Ne.status.fetchRejected=!0,Ne.status.fetchError=st),Me(st)),Me=st=>{let{aborted:Je}=J.signal,ot=Je&&Ne.allowStaleOnFetchAbort,Xe=ot||Ne.allowStaleOnFetchRejection,Ze=Xe||Ne.noDeleteOnFetchRejection,bt=ge;if(He(this,R)[Oe]===ge&&(!Ze||bt.__staleWhileFetching===void 0?this.delete(Te):ot||(He(this,R)[Oe]=bt.__staleWhileFetching)),Xe)return Ne.status&&bt.__staleWhileFetching!==void 0&&(Ne.status.returnedStale=!0),bt.__staleWhileFetching;if(bt.__returned===bt)throw st},$e=(st,Je)=>{var Xe;let ot=(Xe=He(this,E))==null?void 0:Xe.call(this,Te,ne,Se);ot&&ot instanceof Promise&&ot.then(Ze=>st(Ze===void 0?void 0:Ze),Je),J.signal.addEventListener("abort",()=>{(!Ne.ignoreFetchAbort||Ne.allowStaleOnFetchAbort)&&(st(void 0),Ne.allowStaleOnFetchAbort&&(st=Ze=>xe(Ze,!0)))})};Ne.status&&(Ne.status.fetchDispatched=!0);let ge=new Promise($e).then(xe,ue),Ve=Object.assign(ge,{__abortController:J,__staleWhileFetching:ne,__returned:void 0});return Oe===void 0?(this.set(Te,Ve,{...Se.options,status:void 0}),Oe=He(this,x).get(Te)):He(this,R)[Oe]=Ve,Ve},Da=function(Te){if(!He(this,q))return!1;let Oe=Te;return!!Oe&&Oe instanceof Promise&&Oe.hasOwnProperty("__staleWhileFetching")&&Oe.__abortController instanceof a},cne=function(Te,Oe){He(this,M)[Oe]=Te,He(this,O)[Te]=Oe},e2=function(Te){Te!==He(this,k)&&(Te===He(this,P)?xn(this,P,He(this,O)[Te]):ir(this,H,cne).call(this,He(this,M)[Te],He(this,O)[Te]),ir(this,H,cne).call(this,He(this,k),Te),xn(this,k,Te))},Ee);e.LRUCache=p}),zy=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var n=class{constructor(o=0){this.iteratorType=o}equals(o){return this.o===o.o}};e.ContainerIterator=n;var r=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=r;var i=class extends r{};e.Container=i}),XSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=zy(),r=class extends n.Base{constructor(o=[]){super(),this.S=[];let a=this;o.forEach(function(s){a.push(s)})}clear(){this.i=0,this.S=[]}push(o){return this.S.push(o),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},i=r;e.default=i}),QSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=zy(),r=class extends n.Base{constructor(o=[]){super(),this.j=0,this.q=[];let a=this;o.forEach(function(s){a.push(s)})}clear(){this.q=[],this.i=this.j=0}push(o){let a=this.q.length;if(this.j/a>.5&&this.j+this.i>=a&&a>4096){let s=this.i;for(let l=0;l<s;++l)this.q[l]=this.q[this.j+l];this.j=0,this.q[this.i]=o}else this.q[this.j+this.i]=o;return++this.i}pop(){if(this.i===0)return;let o=this.q[this.j++];return this.i-=1,o}front(){if(this.i!==0)return this.q[this.j]}},i=r;e.default=i}),ZSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=zy(),r=class extends n.Base{constructor(o=[],a=function(l,c){return l>c?-1:l<c?1:0},s=!0){if(super(),this.v=a,Array.isArray(o))this.C=s?[...o]:o;else{this.C=[];let c=this;o.forEach(function(u){c.C.push(u)})}this.i=this.C.length;let l=this.i>>1;for(let c=this.i-1>>1;c>=0;--c)this.k(c,l)}m(o){let a=this.C[o];for(;o>0;){let s=o-1>>1,l=this.C[s];if(this.v(l,a)<=0)break;this.C[o]=l,o=s}this.C[o]=a}k(o,a){let s=this.C[o];for(;o<a;){let l=o<<1|1,c=l+1,u=this.C[l];if(c<this.i&&this.v(u,this.C[c])>0&&(l=c,u=this.C[c]),this.v(u,s)>=0)break;this.C[o]=u,o=l}this.C[o]=s}clear(){this.i=0,this.C.length=0}push(o){this.C.push(o),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let o=this.C[0],a=this.C.pop();return this.i-=1,this.i&&(this.C[0]=a,this.k(0,this.i>>1)),o}top(){return this.C[0]}find(o){return this.C.indexOf(o)>=0}remove(o){let a=this.C.indexOf(o);return a<0?!1:(a===0?this.pop():a===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(a,1,this.C.pop()),this.i-=1,this.m(a),this.k(a,this.i>>1)),!0)}updateItem(o){let a=this.C.indexOf(o);return a<0?!1:(this.m(a),this.k(a,this.i>>1),!0)}toArray(){return[...this.C]}},i=r;e.default=i}),kle=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=zy(),r=class extends n.Container{},i=r;e.default=i}),Vy=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=n;function n(){throw new RangeError("Iterator access denied!")}}),f6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var n=zy(),r=Vy(),i=class extends n.ContainerIterator{constructor(o,a){super(a),this.o=o,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,r.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,r.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,r.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,r.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(o){this.container.setElementByPos(this.o,o)}};e.RandomIterator=i}),JSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=i(kle()),r=f6e();function i(l){return l&&l.t?l:{default:l}}var o=class p6e extends r.RandomIterator{constructor(c,u,d){super(c,d),this.container=u}copy(){return new p6e(this.o,this.container,this.iteratorType)}},a=class extends n.default{constructor(l=[],c=!0){if(super(),Array.isArray(l))this.J=c?[...l]:l,this.i=l.length;else{this.J=[];let u=this;l.forEach(function(d){u.pushBack(d)})}}clear(){this.i=0,this.J.length=0}begin(){return new o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;return this.J[l]}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;return this.J.splice(l,1),this.i-=1,this.i}eraseElementByValue(l){let c=0;for(let u=0;u<this.i;++u)this.J[u]!==l&&(this.J[c++]=this.J[u]);return this.i=this.J.length=c,this.i}eraseElementByIterator(l){let c=l.o;return l=l.next(),this.eraseElementByPos(c),l}pushBack(l){return this.J.push(l),this.i+=1,this.i}popBack(){if(this.i!==0)return this.i-=1,this.J.pop()}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;this.J[l]=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;return this.J.splice(l,0,...new Array(u).fill(c)),this.i+=u,this.i}find(l){for(let c=0;c<this.i;++c)if(this.J[c]===l)return new o(c,this);return this.end()}reverse(){this.J.reverse()}unique(){let l=1;for(let c=1;c<this.i;++c)this.J[c]!==this.J[c-1]&&(this.J[l++]=this.J[c]);return this.i=this.J.length=l,this.i}sort(l){this.J.sort(l)}forEach(l){for(let c=0;c<this.i;++c)l(this.J[c],c,this)}[Symbol.iterator](){return(function*(){yield*this.J}).bind(this)()}},s=a;e.default=s}),eEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=o(kle()),r=zy(),i=Vy();function o(c){return c&&c.t?c:{default:c}}var a=class h6e extends r.ContainerIterator{constructor(u,d,f,p){super(p),this.o=u,this.h=d,this.container=f,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o.l}set pointer(u){this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o.l=u}copy(){return new h6e(this.o,this.h,this.container,this.iteratorType)}},s=class extends n.default{constructor(c=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let u=this;c.forEach(function(d){u.pushBack(d)})}V(c){let{L:u,B:d}=c;u.B=d,d.L=u,c===this.p&&(this.p=d),c===this._&&(this._=u),this.i-=1}G(c,u){let d=u.B,f={l:c,L:u,B:d};u.B=f,d.L=f,u===this.h&&(this.p=f),d===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(c){if(c<0||c>this.i-1)throw new RangeError;let u=this.p;for(;c--;)u=u.B;return u.l}eraseElementByPos(c){if(c<0||c>this.i-1)throw new RangeError;let u=this.p;for(;c--;)u=u.B;return this.V(u),this.i}eraseElementByValue(c){let u=this.p;for(;u!==this.h;)u.l===c&&this.V(u),u=u.B;return this.i}eraseElementByIterator(c){let u=c.o;return u===this.h&&(0,i.throwIteratorAccessError)(),c=c.next(),this.V(u),c}pushBack(c){return this.G(c,this._),this.i}popBack(){if(this.i===0)return;let c=this._.l;return this.V(this._),c}pushFront(c){return this.G(c,this.h),this.i}popFront(){if(this.i===0)return;let c=this.p.l;return this.V(this.p),c}setElementByPos(c,u){if(c<0||c>this.i-1)throw new RangeError;let d=this.p;for(;c--;)d=d.B;d.l=u}insert(c,u,d=1){if(c<0||c>this.i)throw new RangeError;if(d<=0)return this.i;if(c===0)for(;d--;)this.pushFront(u);else if(c===this.i)for(;d--;)this.pushBack(u);else{let f=this.p;for(let h=1;h<c;++h)f=f.B;let p=f.B;for(this.i+=d;d--;)f.B={l:u,L:f},f.B.L=f,f=f.B;f.B=p,p.L=f}return this.i}find(c){let u=this.p;for(;u!==this.h;){if(u.l===c)return new a(u,this.h,this);u=u.B}return this.end()}reverse(){if(this.i<=1)return;let c=this.p,u=this._,d=0;for(;d<<1<this.i;){let f=c.l;c.l=u.l,u.l=f,c=c.B,u=u.L,d+=1}}unique(){if(this.i<=1)return this.i;let c=this.p;for(;c!==this.h;){let u=c;for(;u.B!==this.h&&u.l===u.B.l;)u=u.B,this.i-=1;c.B=u.B,c.B.L=c,c=c.B}return this.i}sort(c){if(this.i<=1)return;let u=[];this.forEach(function(f){u.push(f)}),u.sort(c);let d=this.p;u.forEach(function(f){d.l=f,d=d.B})}merge(c){let u=this;if(this.i===0)c.forEach(function(d){u.pushBack(d)});else{let d=this.p;c.forEach(function(f){for(;d!==u.h&&d.l<=f;)d=d.B;u.G(f,d.L)})}return this.i}forEach(c){let u=this.p,d=0;for(;u!==this.h;)c(u.l,d++,this),u=u.B}[Symbol.iterator](){return(function*(){if(this.i===0)return;let c=this.p;for(;c!==this.h;)yield c.l,c=c.B}).bind(this)()}},l=s;e.default=l}),tEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=i(kle()),r=f6e();function i(l){return l&&l.t?l:{default:l}}var o=class g6e extends r.RandomIterator{constructor(c,u,d){super(c,d),this.container=u}copy(){return new g6e(this.o,this.container,this.iteratorType)}},a=class extends n.default{constructor(l=[],c=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let u=(()=>{if(typeof l.length=="number")return l.length;if(typeof l.size=="number")return l.size;if(typeof l.size=="function")return l.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=c,this.P=Math.max(Math.ceil(u/this.F),1);for(let p=0;p<this.P;++p)this.A.push(new Array(this.F));let d=Math.ceil(u/this.F);this.j=this.R=(this.P>>1)-(d>>1),this.D=this.N=this.F-u%this.F>>1;let f=this;l.forEach(function(p){f.pushBack(p)})}T(){let l=[],c=Math.max(this.P>>1,1);for(let u=0;u<c;++u)l[u]=new Array(this.F);for(let u=this.j;u<this.P;++u)l[l.length]=this.A[u];for(let u=0;u<this.R;++u)l[l.length]=this.A[u];l[l.length]=[...this.A[this.R]],this.j=c,this.R=l.length-1;for(let u=0;u<c;++u)l[l.length]=new Array(this.F);this.A=l,this.P=l.length}O(l){let c=this.D+l+1,u=c%this.F,d=u-1,f=this.j+(c-u)/this.F;return u===0&&(f-=1),f%=this.P,d<0&&(d+=this.F),{curNodeBucketIndex:f,curNodePointerIndex:d}}clear(){this.A=[new Array(this.F)],this.P=1,this.j=this.R=this.i=0,this.D=this.N=this.F>>1}begin(){return new o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(l){return this.i&&(this.N<this.F-1?this.N+=1:this.R<this.P-1?(this.R+=1,this.N=0):(this.R=0,this.N=0),this.R===this.j&&this.N===this.D&&this.T()),this.i+=1,this.A[this.R][this.N]=l,this.i}popBack(){if(this.i===0)return;let l=this.A[this.R][this.N];return this.i!==1&&(this.N>0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,l}pushFront(l){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=l,this.i}popFront(){if(this.i===0)return;let l=this.A[this.j][this.D];return this.i!==1&&(this.D<this.F-1?this.D+=1:this.j<this.P-1?(this.j+=1,this.D=0):(this.j=0,this.D=0)),this.i-=1,l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(l);return this.A[c][u]}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let{curNodeBucketIndex:u,curNodePointerIndex:d}=this.O(l);this.A[u][d]=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let d=[];for(let f=l;f<this.i;++f)d.push(this.getElementByPos(f));this.cut(l-1);for(let f=0;f<u;++f)this.pushBack(c);for(let f=0;f<d.length;++f)this.pushBack(d[f])}return this.i}cut(l){if(l<0)return this.clear(),0;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(l);return this.R=c,this.N=u,this.i=l+1,this.i}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;if(l===0)this.popFront();else if(l===this.i-1)this.popBack();else{let c=[];for(let d=l+1;d<this.i;++d)c.push(this.getElementByPos(d));this.cut(l),this.popBack();let u=this;c.forEach(function(d){u.pushBack(d)})}return this.i}eraseElementByValue(l){if(this.i===0)return 0;let c=[];for(let d=0;d<this.i;++d){let f=this.getElementByPos(d);f!==l&&c.push(f)}let u=c.length;for(let d=0;d<u;++d)this.setElementByPos(d,c[d]);return this.cut(u-1)}eraseElementByIterator(l){let c=l.o;return this.eraseElementByPos(c),l=l.next(),l}find(l){for(let c=0;c<this.i;++c)if(this.getElementByPos(c)===l)return new o(c,this);return this.end()}reverse(){let l=0,c=this.i-1;for(;l<c;){let u=this.getElementByPos(l);this.setElementByPos(l,this.getElementByPos(c)),this.setElementByPos(c,u),l+=1,c-=1}}unique(){if(this.i<=1)return this.i;let l=1,c=this.getElementByPos(0);for(let u=1;u<this.i;++u){let d=this.getElementByPos(u);d!==c&&(c=d,this.setElementByPos(l++,d))}for(;this.i>l;)this.popBack();return this.i}sort(l){let c=[];for(let u=0;u<this.i;++u)c.push(this.getElementByPos(u));c.sort(l);for(let u=0;u<this.i;++u)this.setElementByPos(u,c[u])}shrinkToFit(){if(this.i===0)return;let l=[];this.forEach(function(c){l.push(c)}),this.P=Math.max(Math.ceil(this.i/this.F),1),this.i=this.j=this.R=this.D=this.N=0,this.A=[];for(let c=0;c<this.P;++c)this.A.push(new Array(this.F));for(let c=0;c<l.length;++c)this.pushBack(l[c])}forEach(l){for(let c=0;c<this.i;++c)l(this.getElementByPos(c),c,this)}[Symbol.iterator](){return(function*(){for(let l=0;l<this.i;++l)yield this.getElementByPos(l)}).bind(this)()}},s=a;e.default=s}),nEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var n=class{constructor(i,o){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=i,this.l=o}L(){let i=this;if(i.ee===1&&i.tt.tt===i)i=i.W;else if(i.U)for(i=i.U;i.W;)i=i.W;else{let o=i.tt;for(;o.U===i;)i=o,o=i.tt;i=o}return i}B(){let i=this;if(i.W){for(i=i.W;i.U;)i=i.U;return i}else{let o=i.tt;for(;o.W===i;)i=o,o=i.tt;return i.W!==o?o:i}}te(){let i=this.tt,o=this.W,a=o.U;return i.tt===this?i.tt=o:i.U===this?i.U=o:i.W=o,o.tt=i,o.U=this,this.tt=o,this.W=a,a&&(a.tt=this),o}se(){let i=this.tt,o=this.U,a=o.W;return i.tt===this?i.tt=o:i.U===this?i.U=o:i.W=o,o.tt=i,o.W=this,this.tt=o,this.U=a,a&&(a.tt=this),o}};e.TreeNode=n;var r=class extends n{constructor(){super(...arguments),this.rt=1}te(){let i=super.te();return this.ie(),i.ie(),i}se(){let i=super.se();return this.ie(),i.ie(),i}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=r}),m6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=nEt(),r=zy(),i=Vy(),o=class extends r.Container{constructor(s=function(c,u){return c<u?-1:c>u?1:0},l=!1){super(),this.Y=void 0,this.v=s,l?(this.re=n.TreeNodeEnableIndex,this.M=function(c,u,d){let f=this.ne(c,u,d);if(f){let p=f.tt;for(;p!==this.h;)p.rt+=1,p=p.tt;let h=this.he(f);if(h){let{parentNode:g,grandParent:v,curNode:y}=h;g.ie(),v.ie(),y.ie()}}return this.i},this.V=function(c){let u=this.fe(c);for(;u!==this.h;)u.rt-=1,u=u.tt}):(this.re=n.TreeNode,this.M=function(c,u,d){let f=this.ne(c,u,d);return f&&this.he(f),this.i},this.V=this.fe),this.h=new this.re}X(s,l){let c=this.h;for(;s;){let u=this.v(s.u,l);if(u<0)s=s.W;else if(u>0)c=s,s=s.U;else return s}return c}Z(s,l){let c=this.h;for(;s;)this.v(s.u,l)<=0?s=s.W:(c=s,s=s.U);return c}$(s,l){let c=this.h;for(;s;){let u=this.v(s.u,l);if(u<0)c=s,s=s.W;else if(u>0)s=s.U;else return s}return c}rr(s,l){let c=this.h;for(;s;)this.v(s.u,l)<0?(c=s,s=s.W):s=s.U;return c}ue(s){for(;;){let l=s.tt;if(l===this.h)return;if(s.ee===1){s.ee=0;return}if(s===l.U){let c=l.W;if(c.ee===1)c.ee=0,l.ee=1,l===this.Y?this.Y=l.te():l.te();else if(c.W&&c.W.ee===1){c.ee=l.ee,l.ee=0,c.W.ee=0,l===this.Y?this.Y=l.te():l.te();return}else c.U&&c.U.ee===1?(c.ee=1,c.U.ee=0,c.se()):(c.ee=1,s=l)}else{let c=l.U;if(c.ee===1)c.ee=0,l.ee=1,l===this.Y?this.Y=l.se():l.se();else if(c.U&&c.U.ee===1){c.ee=l.ee,l.ee=0,c.U.ee=0,l===this.Y?this.Y=l.se():l.se();return}else c.W&&c.W.ee===1?(c.ee=1,c.W.ee=0,c.te()):(c.ee=1,s=l)}}}fe(s){if(this.i===1)return this.clear(),this.h;let l=s;for(;l.U||l.W;){if(l.W)for(l=l.W;l.U;)l=l.U;else l=l.U;[s.u,l.u]=[l.u,s.u],[s.l,l.l]=[l.l,s.l],s=l}this.h.U===l?this.h.U=l.tt:this.h.W===l&&(this.h.W=l.tt),this.ue(l);let c=l.tt;return l===c.U?c.U=void 0:c.W=void 0,this.i-=1,this.Y.ee=0,c}oe(s,l){return s===void 0?!1:this.oe(s.U,l)||l(s)?!0:this.oe(s.W,l)}he(s){for(;;){let l=s.tt;if(l.ee===0)return;let c=l.tt;if(l===c.U){let u=c.W;if(u&&u.ee===1){if(u.ee=l.ee=0,c===this.Y)return;c.ee=1,s=c;continue}else if(s===l.W){if(s.ee=0,s.U&&(s.U.tt=l),s.W&&(s.W.tt=c),l.W=s.U,c.U=s.W,s.U=l,s.W=c,c===this.Y)this.Y=s,this.h.tt=s;else{let d=c.tt;d.U===c?d.U=s:d.W=s}return s.tt=c.tt,l.tt=s,c.tt=s,c.ee=1,{parentNode:l,grandParent:c,curNode:s}}else l.ee=0,c===this.Y?this.Y=c.se():c.se(),c.ee=1}else{let u=c.U;if(u&&u.ee===1){if(u.ee=l.ee=0,c===this.Y)return;c.ee=1,s=c;continue}else if(s===l.U){if(s.ee=0,s.U&&(s.U.tt=c),s.W&&(s.W.tt=l),c.W=s.U,l.U=s.W,s.U=c,s.W=l,c===this.Y)this.Y=s,this.h.tt=s;else{let d=c.tt;d.U===c?d.U=s:d.W=s}return s.tt=c.tt,l.tt=s,c.tt=s,c.ee=1,{parentNode:l,grandParent:c,curNode:s}}else l.ee=0,c===this.Y?this.Y=c.te():c.te(),c.ee=1}return}}ne(s,l,c){if(this.Y===void 0){this.i+=1,this.Y=new this.re(s,l),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let u,d=this.h.U,f=this.v(d.u,s);if(f===0){d.l=l;return}else if(f>0)d.U=new this.re(s,l),d.U.tt=d,u=d.U,this.h.U=u;else{let p=this.h.W,h=this.v(p.u,s);if(h===0){p.l=l;return}else if(h<0)p.W=new this.re(s,l),p.W.tt=p,u=p.W,this.h.W=u;else{if(c!==void 0){let g=c.o;if(g!==this.h){let v=this.v(g.u,s);if(v===0){g.l=l;return}else if(v>0){let y=g.L(),_=this.v(y.u,s);if(_===0){y.l=l;return}else _<0&&(u=new this.re(s,l),y.W===void 0?(y.W=u,u.tt=y):(g.U=u,u.tt=g))}}}if(u===void 0)for(u=this.Y;;){let g=this.v(u.u,s);if(g>0){if(u.U===void 0){u.U=new this.re(s,l),u.U.tt=u,u=u.U;break}u=u.U}else if(g<0){if(u.W===void 0){u.W=new this.re(s,l),u.W.tt=u,u=u.W;break}u=u.W}else{u.l=l;return}}}}return this.i+=1,u}I(s,l){for(;s;){let c=this.v(s.u,l);if(c<0)s=s.W;else if(c>0)s=s.U;else return s}return s||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(s,l){let c=s.o;if(c===this.h&&(0,i.throwIteratorAccessError)(),this.i===1)return c.u=l,!0;if(c===this.h.U)return this.v(c.B().u,l)>0?(c.u=l,!0):!1;if(c===this.h.W)return this.v(c.L().u,l)<0?(c.u=l,!0):!1;let u=c.L().u;if(this.v(u,l)>=0)return!1;let d=c.B().u;return this.v(d,l)<=0?!1:(c.u=l,!0)}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=0,c=this;return this.oe(this.Y,function(u){return s===l?(c.V(u),!0):(l+=1,!1)}),this.i}eraseElementByKey(s){if(this.i===0)return!1;let l=this.I(this.Y,s);return l===this.h?!1:(this.V(l),!0)}eraseElementByIterator(s){let l=s.o;l===this.h&&(0,i.throwIteratorAccessError)();let c=l.W===void 0;return s.iteratorType===0?c&&s.next():(!c||l.U===void 0)&&s.next(),this.V(l),s}forEach(s){let l=0;for(let c of this)s(c,l++,this)}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l,c=0;for(let u of this){if(c===s){l=u;break}c+=1}return l}getHeight(){if(this.i===0)return 0;let s=function(l){return l?Math.max(s(l.U),s(l.W))+1:0};return s(this.Y)}},a=o;e.default=a}),v6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=zy(),r=Vy(),i=class extends n.ContainerIterator{constructor(a,s,l){super(l),this.o=a,this.h=s,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,r.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,r.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let a=this.o,s=this.h.tt;if(a===this.h)return s?s.rt-1:0;let l=0;for(a.U&&(l+=a.U.rt);a!==s;){let c=a.tt;a===c.W&&(l+=1,c.U&&(l+=c.U.rt)),a=c}return l}},o=i;e.default=o}),rEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=o(m6e()),r=o(v6e()),i=Vy();function o(c){return c&&c.t?c:{default:c}}var a=class y6e extends r.default{constructor(u,d,f,p){super(u,d,p),this.container=f}get pointer(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o.u}copy(){return new y6e(this.o,this.h,this.container,this.iteratorType)}},s=class extends n.default{constructor(c=[],u,d){super(u,d);let f=this;c.forEach(function(p){f.insert(p)})}*K(c){c!==void 0&&(yield*this.K(c.U),yield c.u,yield*this.K(c.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(c,u){return this.M(c,void 0,u)}find(c){let u=this.I(this.Y,c);return new a(u,this.h,this)}lowerBound(c){let u=this.X(this.Y,c);return new a(u,this.h,this)}upperBound(c){let u=this.Z(this.Y,c);return new a(u,this.h,this)}reverseLowerBound(c){let u=this.$(this.Y,c);return new a(u,this.h,this)}reverseUpperBound(c){let u=this.rr(this.Y,c);return new a(u,this.h,this)}union(c){let u=this;return c.forEach(function(d){u.insert(d)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},l=s;e.default=l}),iEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=o(m6e()),r=o(v6e()),i=Vy();function o(c){return c&&c.t?c:{default:c}}var a=class _6e extends r.default{constructor(u,d,f,p){super(u,d,p),this.container=f}get pointer(){this.o===this.h&&(0,i.throwIteratorAccessError)();let u=this;return new Proxy([],{get(d,f){if(f==="0")return u.o.u;if(f==="1")return u.o.l},set(d,f,p){if(f!=="1")throw new TypeError("props must be 1");return u.o.l=p,!0}})}copy(){return new _6e(this.o,this.h,this.container,this.iteratorType)}},s=class extends n.default{constructor(c=[],u,d){super(u,d);let f=this;c.forEach(function(p){f.setElement(p[0],p[1])})}*K(c){c!==void 0&&(yield*this.K(c.U),yield[c.u,c.l],yield*this.K(c.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i===0)return;let c=this.h.U;return[c.u,c.l]}back(){if(this.i===0)return;let c=this.h.W;return[c.u,c.l]}lowerBound(c){let u=this.X(this.Y,c);return new a(u,this.h,this)}upperBound(c){let u=this.Z(this.Y,c);return new a(u,this.h,this)}reverseLowerBound(c){let u=this.$(this.Y,c);return new a(u,this.h,this)}reverseUpperBound(c){let u=this.rr(this.Y,c);return new a(u,this.h,this)}setElement(c,u,d){return this.M(c,u,d)}find(c){let u=this.I(this.Y,c);return new a(u,this.h,this)}getElementByKey(c){return this.I(this.Y,c).l}union(c){let u=this;return c.forEach(function(d){u.setElement(d[0],d[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},l=s;e.default=l}),b6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=n;function n(r){let i=typeof r;return i==="object"&&r!==null||i==="function"}}),S6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var n=zy(),r=o(b6e()),i=Vy();function o(l){return l&&l.t?l:{default:l}}var a=class extends n.ContainerIterator{constructor(l,c,u){super(u),this.o=l,this.h=c,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=a;var s=class extends n.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(l){let{L:c,B:u}=l;c.B=u,u.L=c,l===this.p&&(this.p=u),l===this._&&(this._=c),this.i-=1}M(l,c,u){u===void 0&&(u=(0,r.default)(l));let d;if(u){let f=l[this.HASH_TAG];if(f!==void 0)return this.H[f].l=c,this.i;Object.defineProperty(l,this.HASH_TAG,{value:this.H.length,configurable:!0}),d={u:l,l:c,L:this._,B:this.h},this.H.push(d)}else{let f=this.g[l];if(f)return f.l=c,this.i;d={u:l,l:c,L:this._,B:this.h},this.g[l]=d}return this.i===0?(this.p=d,this.h.B=d):this._.B=d,this._=d,this.h.L=d,++this.i}I(l,c){if(c===void 0&&(c=(0,r.default)(l)),c){let u=l[this.HASH_TAG];return u===void 0?this.h:this.H[u]}else return this.g[l]||this.h}clear(){let l=this.HASH_TAG;this.H.forEach(function(c){delete c.u[l]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(l,c){let u;if(c===void 0&&(c=(0,r.default)(l)),c){let d=l[this.HASH_TAG];if(d===void 0)return!1;delete l[this.HASH_TAG],u=this.H[d],delete this.H[d]}else{if(u=this.g[l],u===void 0)return!1;delete this.g[l]}return this.V(u),!0}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,i.throwIteratorAccessError)(),this.V(c),l.next()}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return this.V(c),this.i}};e.HashContainer=s}),oEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=S6e(),r=Vy(),i=class E6e extends n.HashContainerIterator{constructor(l,c,u,d){super(l,c,d),this.container=u}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new E6e(this.o,this.h,this.container,this.iteratorType)}},o=class extends n.HashContainer{constructor(s=[]){super();let l=this;s.forEach(function(c){l.insert(c)})}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(s,l){return this.M(s,void 0,l)}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=this.p;for(;s--;)l=l.B;return l.u}find(s,l){let c=this.I(s,l);return new i(c,this.h,this)}forEach(s){let l=0,c=this.p;for(;c!==this.h;)s(c.u,l++,this),c=c.B}[Symbol.iterator](){return(function*(){let s=this.p;for(;s!==this.h;)yield s.u,s=s.B}).bind(this)()}},a=o;e.default=a}),aEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=S6e(),r=o(b6e()),i=Vy();function o(c){return c&&c.t?c:{default:c}}var a=class C6e extends n.HashContainerIterator{constructor(u,d,f,p){super(u,d,p),this.container=f}get pointer(){this.o===this.h&&(0,i.throwIteratorAccessError)();let u=this;return new Proxy([],{get(d,f){if(f==="0")return u.o.u;if(f==="1")return u.o.l},set(d,f,p){if(f!=="1")throw new TypeError("props must be 1");return u.o.l=p,!0}})}copy(){return new C6e(this.o,this.h,this.container,this.iteratorType)}},s=class extends n.HashContainer{constructor(c=[]){super();let u=this;c.forEach(function(d){u.setElement(d[0],d[1])})}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(c,u,d){return this.M(c,u,d)}getElementByKey(c,u){if(u===void 0&&(u=(0,r.default)(c)),u){let f=c[this.HASH_TAG];return f!==void 0?this.H[f].l:void 0}let d=this.g[c];return d?d.l:void 0}getElementByPos(c){if(c<0||c>this.i-1)throw new RangeError;let u=this.p;for(;c--;)u=u.B;return[u.u,u.l]}find(c,u){let d=this.I(c,u);return new a(d,this.h,this)}forEach(c){let u=0,d=this.p;for(;d!==this.h;)c([d.u,d.l],u++,this),d=d.B}[Symbol.iterator](){return(function*(){let c=this.p;for(;c!==this.h;)yield[c.u,c.l],c=c.B}).bind(this)()}},l=s;e.default=l}),sEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return o.default}});var n=f(XSt()),r=f(QSt()),i=f(ZSt()),o=f(JSt()),a=f(eEt()),s=f(tEt()),l=f(rEt()),c=f(iEt()),u=f(oEt()),d=f(aEt());function f(p){return p&&p.t?p:{default:p}}}),lEt=On((e,n)=>{fn(),hn(),pn();var r=sEt().OrderedSet,i=Cy()("number-allocator:trace"),o=Cy()("number-allocator:error");function a(l,c){this.low=l,this.high=c}a.prototype.equals=function(l){return this.low===l.low&&this.high===l.high},a.prototype.compare=function(l){return this.low<l.low&&this.high<l.low?-1:l.low<this.low&&l.high<this.low?1:0};function s(l,c){if(!(this instanceof s))return new s(l,c);this.min=l,this.max=c,this.ss=new r([],(u,d)=>u.compare(d)),i("Create"),this.clear()}s.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},s.prototype.alloc=function(){if(this.ss.size()===0)return i("alloc():empty"),null;let l=this.ss.begin(),c=l.pointer.low,u=l.pointer.high,d=c;return d+1<=u?this.ss.updateKeyByIterator(l,new a(c+1,u)):this.ss.eraseElementByPos(0),i("alloc():"+d),d},s.prototype.use=function(l){let c=new a(l,l),u=this.ss.lowerBound(c);if(!u.equals(this.ss.end())){let d=u.pointer.low,f=u.pointer.high;return u.pointer.equals(c)?(this.ss.eraseElementByIterator(u),i("use():"+l),!0):d>l?!1:d===l?(this.ss.updateKeyByIterator(u,new a(d+1,f)),i("use():"+l),!0):f===l?(this.ss.updateKeyByIterator(u,new a(d,f-1)),i("use():"+l),!0):(this.ss.updateKeyByIterator(u,new a(l+1,f)),this.ss.insert(new a(d,l-1)),i("use():"+l),!0)}return i("use():failed"),!1},s.prototype.free=function(l){if(l<this.min||l>this.max){o("free():"+l+" is out of range");return}let c=new a(l,l),u=this.ss.upperBound(c);if(u.equals(this.ss.end())){if(u.equals(this.ss.begin())){this.ss.insert(c);return}u.pre();let d=u.pointer.high;u.pointer.high+1===l?this.ss.updateKeyByIterator(u,new a(d,l)):this.ss.insert(c)}else if(u.equals(this.ss.begin()))if(l+1===u.pointer.low){let d=u.pointer.high;this.ss.updateKeyByIterator(u,new a(l,d))}else this.ss.insert(c);else{let d=u.pointer.low,f=u.pointer.high;u.pre();let p=u.pointer.low;u.pointer.high+1===l?l+1===d?(this.ss.eraseElementByIterator(u),this.ss.updateKeyByIterator(u,new a(p,f))):this.ss.updateKeyByIterator(u,new a(p,l)):l+1===d?(this.ss.eraseElementByIterator(u.next()),this.ss.insert(new a(l,f))):this.ss.insert(c)}i("free():"+l)},s.prototype.clear=function(){i("clear()"),this.ss.clear(),this.ss.insert(new a(this.min,this.max))},s.prototype.intervalCount=function(){return this.ss.size()},s.prototype.dump=function(){console.log("length:"+this.ss.size());for(let l of this.ss)console.log(l)},n.exports=s}),w6e=On((e,n)=>{fn(),hn(),pn();var r=lEt();n.exports.NumberAllocator=r}),cEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=KSt(),r=w6e(),i=class{constructor(o){o>0&&(this.aliasToTopic=new n.LRUCache({max:o}),this.topicToAlias={},this.numberAllocator=new r.NumberAllocator(1,o),this.max=o,this.length=0)}put(o,a){if(a===0||a>this.max)return!1;let s=this.aliasToTopic.get(a);return s&&delete this.topicToAlias[s],this.aliasToTopic.set(a,o),this.topicToAlias[o]=a,this.numberAllocator.use(a),this.length=this.aliasToTopic.size,!0}getTopicByAlias(o){return this.aliasToTopic.get(o)}getAliasByTopic(o){let a=this.topicToAlias[o];return typeof a<"u"&&this.aliasToTopic.get(a),a}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};e.default=i}),uEt=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var r=F7(),i=n(cEt()),o=QR(),a=(s,l)=>{s.log("_handleConnack");let{options:c}=s,u=c.protocolVersion===5?l.reasonCode:l.returnCode;if(clearTimeout(s.connackTimer),delete s.topicAliasSend,l.properties){if(l.properties.topicAliasMaximum){if(l.properties.topicAliasMaximum>65535){s.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}l.properties.topicAliasMaximum>0&&(s.topicAliasSend=new i.default(l.properties.topicAliasMaximum))}l.properties.serverKeepAlive&&c.keepalive&&(c.keepalive=l.properties.serverKeepAlive),l.properties.maximumPacketSize&&(c.properties||(c.properties={}),c.properties.maximumPacketSize=l.properties.maximumPacketSize)}if(u===0)s.reconnecting=!1,s._onConnect(l);else if(u>0){let d=new o.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[u]}`,u);s.emit("error",d),s.options.reconnectOnConnackError&&s._cleanUp(!0)}};e.default=a}),dEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=(r,i,o)=>{r.log("handling pubrel packet");let a=typeof o<"u"?o:r.noop,{messageId:s}=i,l={cmd:"pubcomp",messageId:s};r.incomingStore.get(i,(c,u)=>{c?r._sendPacket(l,a):(r.emit("message",u.topic,u.payload,u),r.handleMessage(u,d=>{if(d)return a(d);r.incomingStore.del(u,r.noop),r._sendPacket(l,a)}))})};e.default=n}),fEt=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(WSt()),i=n(qSt()),o=n(uEt()),a=n(F7()),s=n(dEt()),l=(c,u,d)=>{let{options:f}=c;if(f.protocolVersion===5&&f.properties&&f.properties.maximumPacketSize&&f.properties.maximumPacketSize<u.length)return c.emit("error",new Error(`exceeding packets size ${u.cmd}`)),c.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),c;switch(c.log("_handlePacket :: emitting packetreceive"),c.emit("packetreceive",u),u.cmd){case"publish":(0,r.default)(c,u,d);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":c.reschedulePing(),(0,a.default)(c,u),d();break;case"pubrel":c.reschedulePing(),(0,s.default)(c,u,d);break;case"connack":(0,o.default)(c,u),d();break;case"auth":c.reschedulePing(),(0,i.default)(c,u),d();break;case"pingresp":c.log("_handlePacket :: received pingresp"),c.reschedulePing(!0),d();break;case"disconnect":c.emit("disconnect",u),d();break;default:c.log("_handlePacket :: unknown command"),d();break}};e.default=l}),pEt=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var r=n((XR(),na(YC))),i=QR(),o=class{};e.TypedEventEmitter=o,(0,i.applyMixin)(o,r.default)}),B7=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var n=()=>{var a;return typeof window<"u"?typeof navigator<"u"&&((a=navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase().indexOf(" electron/"))>-1&&Ao!=null&&Ao.versions?!Object.prototype.hasOwnProperty.call(Ao.versions,"electron"):typeof window.document<"u":!1},r=()=>{var a,s;return!!(typeof self=="object"&&!((s=(a=self==null?void 0:self.constructor)===null||a===void 0?void 0:a.name)===null||s===void 0)&&s.includes("WorkerGlobalScope"))},i=()=>typeof navigator<"u"&&navigator.product==="ReactNative",o=n()||r()||i();e.isWebWorker=r(),e.isReactNativeBrowser=i(),e.default=o}),hEt=On((e,n)=>{fn(),hn(),pn(),function(r,i){typeof e=="object"&&typeof n<"u"?i(e):typeof define=="function"&&define.amd?define(["exports"],i):(r=typeof globalThis<"u"?globalThis:r||self,i(r.fastUniqueNumbers={}))}(e,function(r){var i=function(h){return function(g){var v=h(g);return g.add(v),v}},o=function(h){return function(g,v){return h.set(g,v),v}},a=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,s=536870912,l=s*2,c=function(h,g){return function(v){var y=g.get(v),_=y===void 0?v.size:y<l?y+1:0;if(!v.has(_))return h(v,_);if(v.size<s){for(;v.has(_);)_=Math.floor(Math.random()*l);return h(v,_)}if(v.size>a)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;v.has(_);)_=Math.floor(Math.random()*a);return h(v,_)}},u=new WeakMap,d=o(u),f=c(d,u),p=i(f);r.addUniqueNumber=p,r.generateUniqueNumber=f})}),gEt=On((e,n)=>{fn(),hn(),pn(),function(r,i){typeof e=="object"&&typeof n<"u"?i(e,hEt()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],i):(r=typeof globalThis<"u"?globalThis:r||self,i(r.workerTimersBroker={},r.fastUniqueNumbers))}(e,function(r,i){var o=function(l){return l.method!==void 0&&l.method==="call"},a=function(l){return l.error===null&&typeof l.id=="number"},s=function(l){var c=new Map([[0,function(){}]]),u=new Map([[0,function(){}]]),d=new Map,f=new Worker(l);f.addEventListener("message",function(y){var _=y.data;if(o(_)){var S=_.params,b=S.timerId,E=S.timerType;if(E==="interval"){var w=c.get(b);if(typeof w=="number"){var C=d.get(w);if(C===void 0||C.timerId!==b||C.timerType!==E)throw new Error("The timer is in an undefined state.")}else if(typeof w<"u")w();else throw new Error("The timer is in an undefined state.")}else if(E==="timeout"){var x=u.get(b);if(typeof x=="number"){var T=d.get(x);if(T===void 0||T.timerId!==b||T.timerType!==E)throw new Error("The timer is in an undefined state.")}else if(typeof x<"u")x(),u.delete(b);else throw new Error("The timer is in an undefined state.")}}else if(a(_)){var R=_.id,O=d.get(R);if(O===void 0)throw new Error("The timer is in an undefined state.");var M=O.timerId,P=O.timerType;d.delete(R),P==="interval"?c.delete(M):u.delete(M)}else{var k=_.error.message;throw new Error(k)}});var p=function(y){var _=i.generateUniqueNumber(d);d.set(_,{timerId:y,timerType:"interval"}),c.set(y,_),f.postMessage({id:_,method:"clear",params:{timerId:y,timerType:"interval"}})},h=function(y){var _=i.generateUniqueNumber(d);d.set(_,{timerId:y,timerType:"timeout"}),u.set(y,_),f.postMessage({id:_,method:"clear",params:{timerId:y,timerType:"timeout"}})},g=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,S=i.generateUniqueNumber(c);return c.set(S,function(){y(),typeof c.get(S)=="function"&&f.postMessage({id:null,method:"set",params:{delay:_,now:performance.now(),timerId:S,timerType:"interval"}})}),f.postMessage({id:null,method:"set",params:{delay:_,now:performance.now(),timerId:S,timerType:"interval"}}),S},v=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,S=i.generateUniqueNumber(u);return u.set(S,y),f.postMessage({id:null,method:"set",params:{delay:_,now:performance.now(),timerId:S,timerType:"timeout"}}),S};return{clearInterval:p,clearTimeout:h,setInterval:g,setTimeout:v}};r.load=s})}),mEt=On((e,n)=>{fn(),hn(),pn(),function(r,i){typeof e=="object"&&typeof n<"u"?i(e,gEt()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],i):(r=typeof globalThis<"u"?globalThis:r||self,i(r.workerTimers={},r.workerTimersBroker))}(e,function(r,i){var o=function(f,p){var h=null;return function(){if(h!==null)return h;var g=new Blob([p],{type:"application/javascript; charset=utf-8"}),v=URL.createObjectURL(g);return h=f(v),setTimeout(function(){return URL.revokeObjectURL(v)}),h}},a=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,s=o(i.load,a),l=function(f){return s().clearInterval(f)},c=function(f){return s().clearTimeout(f)},u=function(){var f;return(f=s()).setInterval.apply(f,arguments)},d=function(){var f;return(f=s()).setTimeout.apply(f,arguments)};r.clearInterval=l,r.clearTimeout=c,r.setInterval=u,r.setTimeout=d})}),vEt=On(e=>{fn(),hn(),pn();var n=e&&e.__createBinding||(Object.create?function(u,d,f,p){p===void 0&&(p=f);var h=Object.getOwnPropertyDescriptor(d,f);(!h||("get"in h?!d.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(u,p,h)}:function(u,d,f,p){p===void 0&&(p=f),u[p]=d[f]}),r=e&&e.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),i=e&&e.__importStar||function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var f in u)f!=="default"&&Object.prototype.hasOwnProperty.call(u,f)&&n(d,u,f);return r(d,u),d};Object.defineProperty(e,"__esModule",{value:!0});var o=i(B7()),a=mEt(),s={set:a.setInterval,clear:a.clearInterval},l={set:(u,d)=>setInterval(u,d),clear:u=>clearInterval(u)},c=u=>{switch(u){case"native":return l;case"worker":return s;case"auto":default:return o.default&&!o.isWebWorker&&!o.isReactNativeBrowser?s:l}};e.default=c}),x6e=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(vEt()),i=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(o,a){this.destroyed=!1,this.client=o,this.timer=typeof a=="object"&&"set"in a&&"clear"in a?a:(0,r.default)(a),this.setKeepalive(o.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(o){if(o*=1e3,isNaN(o)||o<=0||o>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${o}`);this._keepalive=o,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${o}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let o=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+o,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};e.default=i}),une=On(e=>{fn(),hn(),pn();var n=e&&e.__createBinding||(Object.create?function(w,C,x,T){T===void 0&&(T=x);var R=Object.getOwnPropertyDescriptor(C,x);(!R||("get"in R?!C.__esModule:R.writable||R.configurable))&&(R={enumerable:!0,get:function(){return C[x]}}),Object.defineProperty(w,T,R)}:function(w,C,x,T){T===void 0&&(T=x),w[T]=C[x]}),r=e&&e.__setModuleDefault||(Object.create?function(w,C){Object.defineProperty(w,"default",{enumerable:!0,value:C})}:function(w,C){w.default=C}),i=e&&e.__importStar||function(w){if(w&&w.__esModule)return w;var C={};if(w!=null)for(var x in w)x!=="default"&&Object.prototype.hasOwnProperty.call(w,x)&&n(C,w,x);return r(C,w),C},o=e&&e.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(aSt()),s=o(HSt()),l=o(l6e()),c=qC(),u=o(VSt()),d=i(GSt()),f=o(Cy()),p=o(c6e()),h=o(fEt()),g=QR(),v=pEt(),y=o(x6e()),_=i(B7()),S=globalThis.setImmediate||((...w)=>{let C=w.shift();(0,g.nextTick)(()=>{C(...w)})}),b={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},E=class dne extends v.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(C,x){super(),this.options=x||{};for(let T in b)typeof this.options[T]>"u"?this.options[T]=b[T]:this.options[T]=x[T];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",dne.VERSION),_.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",_.default?"browser":"node"),this.log("MqttClient :: options.protocol",x.protocol),this.log("MqttClient :: options.protocolVersion",x.protocolVersion),this.log("MqttClient :: options.username",x.username),this.log("MqttClient :: options.keepalive",x.keepalive),this.log("MqttClient :: options.reconnectPeriod",x.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",x.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",x.properties?x.properties.topicAliasMaximum:void 0),this.options.clientId=typeof x.clientId=="string"?x.clientId:dne.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=x.protocolVersion===5&&x.customHandleAcks?x.customHandleAcks:(...T)=>{T[3](null,0)},this.options.writeCache||(s.default.writeToStream.cacheNumbers=!1),this.streamBuilder=C,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new l.default:this.options.messageIdProvider,this.outgoingStore=x.outgoingStore||new p.default,this.incomingStore=x.incomingStore||new p.default,this.queueQoSZero=x.queueQoSZero===void 0?!0:x.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,x.properties&&x.properties.topicAliasMaximum>0&&(x.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new a.default(x.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:T}=this,R=()=>{let O=T.shift();this.log("deliver :: entry %o",O);let M=null;if(!O){this._resubscribe();return}M=O.packet,this.log("deliver :: call _sendPacket for %o",M);let P=!0;M.messageId&&M.messageId!==0&&(this.messageIdProvider.register(M.messageId)||(P=!1)),P?this._sendPacket(M,k=>{O.cb&&O.cb(k),R()}):(this.log("messageId: %d has already used. The message is skipped and removed.",M.messageId),R())};this.log("connect :: sending queued packets"),R()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(C,x){x()}handleMessage(C,x){x()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var C;let x=new c.Writable,T=s.default.parser(this.options),R=null,O=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),T.on("packet",U=>{this.log("parser :: on packet push to packets array."),O.push(U)});let M=()=>{this.log("work :: getting next packet in queue");let U=O.shift();if(U)this.log("work :: packet pulled from queue"),(0,h.default)(this,U,P);else{this.log("work :: no packets in queue");let z=R;R=null,this.log("work :: done flag is %s",!!z),z&&z()}},P=()=>{if(O.length)(0,g.nextTick)(M);else{let U=R;R=null,U()}};x._write=(U,z,D)=>{R=D,this.log("writable stream :: parsing buffer"),T.parse(U),M()};let k=U=>{this.log("streamErrorHandler :: error",U.message),U.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",U)):this.noop(U)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(x),this.stream.on("error",k),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let $={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&($.will=Object.assign(Object.assign({},this.options.will),{payload:(C=this.options.will)===null||C===void 0?void 0:C.payload})),this.topicAliasRecv&&($.properties||($.properties={}),this.topicAliasRecv&&($.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket($),T.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let U=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(U)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(C,x,T,R){this.log("publish :: message `%s` to topic `%s`",x,C);let{options:O}=this;typeof T=="function"&&(R=T,T=null),T=T||{},T=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),T);let{qos:M,retain:P,dup:k,properties:$,cbStorePut:U}=T;if(this._checkDisconnecting(R))return this;let z=()=>{let D=0;if((M===1||M===2)&&(D=this._nextId(),D===null))return this.log("No messageId left"),!1;let B={cmd:"publish",topic:C,payload:x,qos:M,retain:P,messageId:D,dup:k};switch(O.protocolVersion===5&&(B.properties=$),this.log("publish :: qos",M),M){case 1:case 2:this.outgoing[B.messageId]={volatile:!1,cb:R||this.noop},this.log("MqttClient:publish: packet cmd: %s",B.cmd),this._sendPacket(B,void 0,U);break;default:this.log("MqttClient:publish: packet cmd: %s",B.cmd),this._sendPacket(B,R,U);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!z())&&this._storeProcessingQueue.push({invoke:z,cbStorePut:T.cbStorePut,callback:R}),this}publishAsync(C,x,T){return new Promise((R,O)=>{this.publish(C,x,T,(M,P)=>{M?O(M):R(P)})})}subscribe(C,x,T){let R=this.options.protocolVersion;typeof x=="function"&&(T=x),T=T||this.noop;let O=!1,M=[];typeof C=="string"?(C=[C],M=C):Array.isArray(C)?M=C:typeof C=="object"&&(O=C.resubscribe,delete C.resubscribe,M=Object.keys(C));let P=d.validateTopics(M);if(P!==null)return S(T,new Error(`Invalid topic ${P}`)),this;if(this._checkDisconnecting(T))return this.log("subscribe: discconecting true"),this;let k={qos:0};R===5&&(k.nl=!1,k.rap=!1,k.rh=0),x=Object.assign(Object.assign({},k),x);let $=x.properties,U=[],z=(B,Y)=>{if(Y=Y||x,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,B)||this._resubscribeTopics[B].qos<Y.qos||O){let q={topic:B,qos:Y.qos};R===5&&(q.nl=Y.nl,q.rap=Y.rap,q.rh=Y.rh,q.properties=$),this.log("subscribe: pushing topic `%s` and qos `%s` to subs list",q.topic,q.qos),U.push(q)}};if(Array.isArray(C)?C.forEach(B=>{this.log("subscribe: array topic %s",B),z(B)}):Object.keys(C).forEach(B=>{this.log("subscribe: object topic %s, %o",B,C[B]),z(B,C[B])}),!U.length)return T(null,[]),this;let D=()=>{let B=this._nextId();if(B===null)return this.log("No messageId left"),!1;let Y={cmd:"subscribe",subscriptions:U,messageId:B};if($&&(Y.properties=$),this.options.resubscribe){this.log("subscribe :: resubscribe true");let q=[];U.forEach(K=>{if(this.options.reconnectPeriod>0){let H={qos:K.qos};R===5&&(H.nl=K.nl||!1,H.rap=K.rap||!1,H.rh=K.rh||0,H.properties=K.properties),this._resubscribeTopics[K.topic]=H,q.push(K.topic)}}),this.messageIdToTopic[Y.messageId]=q}return this.outgoing[Y.messageId]={volatile:!0,cb(q,K){if(!q){let{granted:H}=K;for(let G=0;G<H.length;G+=1)U[G].qos=H[G]}T(q,U,K)}},this.log("subscribe :: call _sendPacket"),this._sendPacket(Y),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!D())&&this._storeProcessingQueue.push({invoke:D,callback:T}),this}subscribeAsync(C,x){return new Promise((T,R)=>{this.subscribe(C,x,(O,M)=>{O?R(O):T(M)})})}unsubscribe(C,x,T){typeof C=="string"&&(C=[C]),typeof x=="function"&&(T=x),T=T||this.noop;let R=d.validateTopics(C);if(R!==null)return S(T,new Error(`Invalid topic ${R}`)),this;if(this._checkDisconnecting(T))return this;let O=()=>{let M=this._nextId();if(M===null)return this.log("No messageId left"),!1;let P={cmd:"unsubscribe",messageId:M,unsubscriptions:[]};return typeof C=="string"?P.unsubscriptions=[C]:Array.isArray(C)&&(P.unsubscriptions=C),this.options.resubscribe&&P.unsubscriptions.forEach(k=>{delete this._resubscribeTopics[k]}),typeof x=="object"&&x.properties&&(P.properties=x.properties),this.outgoing[P.messageId]={volatile:!0,cb:T},this.log("unsubscribe: call _sendPacket"),this._sendPacket(P),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!O())&&this._storeProcessingQueue.push({invoke:O,callback:T}),this}unsubscribeAsync(C,x){return new Promise((T,R)=>{this.unsubscribe(C,x,(O,M)=>{O?R(O):T(M)})})}end(C,x,T){this.log("end :: (%s)",this.options.clientId),(C==null||typeof C!="boolean")&&(T=T||x,x=C,C=!1),typeof x!="object"&&(T=T||x,x=null),this.log("end :: cb? %s",!!T),(!T||typeof T!="function")&&(T=this.noop);let R=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(M=>{this.outgoingStore.close(P=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),T){let k=M||P;this.log("end :: closeStores: invoking callback with args"),T(k)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},O=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,C),this._cleanUp(C,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,g.nextTick)(R)},x)};return this.disconnecting?(T(),this):(this._clearReconnect(),this.disconnecting=!0,!C&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,O,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),O()),this)}endAsync(C,x){return new Promise((T,R)=>{this.end(C,x,O=>{O?R(O):T()})})}removeOutgoingMessage(C){if(this.outgoing[C]){let{cb:x}=this.outgoing[C];this._removeOutgoingAndStoreMessage(C,()=>{x(new Error("Message removed"))})}return this}reconnect(C){this.log("client reconnect");let x=()=>{C?(this.options.incomingStore=C.incomingStore,this.options.outgoingStore=C.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=x:x(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(C=>{this.outgoing[C].volatile&&typeof this.outgoing[C].cb=="function"&&(this.outgoing[C].cb(new Error("Connection closed")),delete this.outgoing[C])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(C=>{typeof this.outgoing[C].cb=="function"&&(this.outgoing[C].cb(new Error("Connection closed")),delete this.outgoing[C])}))}_removeTopicAliasAndRecoverTopicName(C){let x;C.properties&&(x=C.properties.topicAlias);let T=C.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",x,T),T.length===0){if(typeof x>"u")return new Error("Unregistered Topic Alias");if(T=this.topicAliasSend.getTopicByAlias(x),typeof T>"u")return new Error("Unregistered Topic Alias");C.topic=T}x&&delete C.properties.topicAlias}_checkDisconnecting(C){return this.disconnecting&&(C&&C!==this.noop?C(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(C,x,T={}){if(x&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",x)),this.log("_cleanUp :: forced? %s",C),C)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let R=Object.assign({cmd:"disconnect"},T);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(R,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),S(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),x&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",x),x())}_storeAndSend(C,x,T){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",C.cmd);let R=C,O;if(R.cmd==="publish"&&(R=(0,u.default)(C),O=this._removeTopicAliasAndRecoverTopicName(R),O))return x&&x(O);this.outgoingStore.put(R,M=>{if(M)return x&&x(M);T(),this._writePacket(C,x)})}_applyTopicAlias(C){if(this.options.protocolVersion===5&&C.cmd==="publish"){let x;C.properties&&(x=C.properties.topicAlias);let T=C.topic.toString();if(this.topicAliasSend)if(x){if(T.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",T,x),!this.topicAliasSend.put(T,x)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",T,x),new Error("Sending Topic Alias out of range")}else T.length!==0&&(this.options.autoAssignTopicAlias?(x=this.topicAliasSend.getAliasByTopic(T),x?(C.topic="",C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",T,x)):(x=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(T,x),C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",T,x))):this.options.autoUseTopicAlias&&(x=this.topicAliasSend.getAliasByTopic(T),x&&(C.topic="",C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",T,x))));else if(x)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",T,x),new Error("Sending Topic Alias out of range")}}_noop(C){this.log("noop ::",C)}_writePacket(C,x){this.log("_writePacket :: packet: %O",C),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",C),this.log("_writePacket :: writing to stream");let T=s.default.writeToStream(C,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",T),!T&&x&&x!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",x)):x&&(this.log("_writePacket :: invoking cb"),x())}_sendPacket(C,x,T,R){this.log("_sendPacket :: (%s) :: start",this.options.clientId),T=T||this.noop,x=x||this.noop;let O=this._applyTopicAlias(C);if(O){x(O);return}if(!this.connected){if(C.cmd==="auth"){this._writePacket(C,x);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(C,x,T);return}if(R){this._writePacket(C,x);return}switch(C.cmd){case"publish":break;case"pubrel":this._storeAndSend(C,x,T);return;default:this._writePacket(C,x);return}switch(C.qos){case 2:case 1:this._storeAndSend(C,x,T);break;case 0:default:this._writePacket(C,x);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(C,x,T){this.log("_storePacket :: packet: %o",C),this.log("_storePacket :: cb? %s",!!x),T=T||this.noop;let R=C;if(R.cmd==="publish"){R=(0,u.default)(C);let M=this._removeTopicAliasAndRecoverTopicName(R);if(M)return x&&x(M)}let O=R.qos||0;O===0&&this.queueQoSZero||R.cmd!=="publish"?this.queue.push({packet:R,cb:x}):O>0?(x=this.outgoing[R.messageId]?this.outgoing[R.messageId].cb:null,this.outgoingStore.put(R,M=>{if(M)return x&&x(M);T()})):x&&x(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new y.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(C=!1){this.keepaliveManager&&this.options.keepalive&&(C||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let C=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&C.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let x=0;x<C.length;x++){let T={};T[C[x]]=this._resubscribeTopics[C[x]],T.resubscribe=!0,this.subscribe(T,{properties:T[C[x]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1}_onConnect(C){if(this.disconnected){this.emit("connect",C);return}this.connackPacket=C,this.messageIdProvider.clear(),this._setupKeepaliveManager(),this.connected=!0;let x=()=>{let T=this.outgoingStore.createStream(),R=()=>{T.destroy(),T=null,this._flushStoreProcessingQueue(),O()},O=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",R),T.on("error",P=>{O(),this._flushStoreProcessingQueue(),this.removeListener("close",R),this.emit("error",P)});let M=()=>{if(!T)return;let P=T.read(1),k;if(!P){T.once("readable",M);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[P.messageId]){M();return}!this.disconnecting&&!this.reconnectTimer?(k=this.outgoing[P.messageId]?this.outgoing[P.messageId].cb:null,this.outgoing[P.messageId]={volatile:!1,cb($,U){k&&k($,U),M()}},this._packetIdsDuringStoreProcessing[P.messageId]=!0,this.messageIdProvider.register(P.messageId)?this._sendPacket(P,void 0,void 0,!0):this.log("messageId: %d has already used.",P.messageId)):T.destroy&&T.destroy()};T.on("end",()=>{let P=!0;for(let k in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[k]){P=!1;break}this.removeListener("close",R),P?(O(),this._invokeAllStoreProcessingQueue(),this.emit("connect",C)):x()}),M()};x()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let C=this._storeProcessingQueue[0];if(C&&C.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let C of this._storeProcessingQueue)C.cbStorePut&&C.cbStorePut(new Error("Connection closed")),C.callback&&C.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(C,x){delete this.outgoing[C],this.outgoingStore.del({messageId:C},(T,R)=>{x(T,R),this.messageIdProvider.deallocate(C),this._invokeStoreProcessingQueue()})}};E.VERSION=g.MQTTJS_VERSION,e.default=E}),yEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=w6e(),r=class{constructor(){this.numberAllocator=new n.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(i){return this.numberAllocator.use(i)}deallocate(i){this.numberAllocator.free(i)}clear(){this.numberAllocator.clear()}};e.default=r});function fE(e){throw new RangeError(O6e[e])}function h0e(e,n){let r=e.split("@"),i="";r.length>1&&(i=r[0]+"@",e=r[1]);let o=function(a,s){let l=[],c=a.length;for(;c--;)l[c]=s(a[c]);return l}((e=e.replace(T6e,".")).split("."),n).join(".");return i+o}function g0e(e){let n=[],r=0,i=e.length;for(;r<i;){let o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<i){let a=e.charCodeAt(r++);(64512&a)==56320?n.push(((1023&o)<<10)+(1023&a)+65536):(n.push(o),r--)}else n.push(o)}return n}var m0e,v0e,T6e,O6e,lh,f3,HW,zW,VW,GW,ab,_Et=bc(()=>{fn(),hn(),pn(),m0e=/^xn--/,v0e=/[^\0-\x7E]/,T6e=/[\x2E\u3002\uFF0E\uFF61]/g,O6e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},lh=Math.floor,f3=String.fromCharCode,HW=function(e,n){return e+22+75*(e<26)-((n!=0)<<5)},zW=function(e,n,r){let i=0;for(e=r?lh(e/700):e>>1,e+=lh(e/n);e>455;i+=36)e=lh(e/35);return lh(i+36*e/(e+38))},VW=function(e){let n=[],r=e.length,i=0,o=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let c=0;c<s;++c)e.charCodeAt(c)>=128&&fE("not-basic"),n.push(e.charCodeAt(c));for(let c=s>0?s+1:0;c<r;){let u=i;for(let f=1,p=36;;p+=36){c>=r&&fE("invalid-input");let h=(l=e.charCodeAt(c++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36;(h>=36||h>lh((2147483647-i)/f))&&fE("overflow"),i+=h*f;let g=p<=a?1:p>=a+26?26:p-a;if(h<g)break;let v=36-g;f>lh(2147483647/v)&&fE("overflow"),f*=v}let d=n.length+1;a=zW(i-u,d,u==0),lh(i/d)>2147483647-o&&fE("overflow"),o+=lh(i/d),i%=d,n.splice(i++,0,o)}var l;return String.fromCodePoint(...n)},GW=function(e){let n=[],r=(e=g0e(e)).length,i=128,o=0,a=72;for(let c of e)c<128&&n.push(f3(c));let s=n.length,l=s;for(s&&n.push("-");l<r;){let c=2147483647;for(let d of e)d>=i&&d<c&&(c=d);let u=l+1;c-i>lh((2147483647-o)/u)&&fE("overflow"),o+=(c-i)*u,i=c;for(let d of e)if(d<i&&++o>2147483647&&fE("overflow"),d==i){let f=o;for(let p=36;;p+=36){let h=p<=a?1:p>=a+26?26:p-a;if(f<h)break;let g=f-h,v=36-h;n.push(f3(HW(h+g%v,0))),f=lh(g/v)}n.push(f3(HW(f,0))),a=zW(o,u,l==s),o=0,++l}++o,++i}return n.join("")},ab={version:"2.1.0",ucs2:{decode:g0e,encode:e=>String.fromCodePoint(...e)},decode:VW,encode:GW,toASCII:function(e){return h0e(e,function(n){return v0e.test(n)?"xn--"+GW(n):n})},toUnicode:function(e){return h0e(e,function(n){return m0e.test(n)?VW(n.slice(4).toLowerCase()):n})}},ab.decode,ab.encode,ab.toASCII,ab.toUnicode,ab.ucs2,ab.version});function bEt(e,n){return Object.prototype.hasOwnProperty.call(e,n)}var y0e,ux,_0e,zg,SEt=bc(()=>{fn(),hn(),pn(),y0e=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if(typeof e!="string"||e.length===0)return o;var a=/\+/g;e=e.split(n);var s=1e3;i&&typeof i.maxKeys=="number"&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u,d,f,p,h=e[c].replace(a,"%20"),g=h.indexOf(r);g>=0?(u=h.substr(0,g),d=h.substr(g+1)):(u=h,d=""),f=decodeURIComponent(u),p=decodeURIComponent(d),bEt(o,f)?Array.isArray(o[f])?o[f].push(p):o[f]=[o[f],p]:o[f]=p}return o},ux=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},_0e=function(e,n,r,i){return n=n||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(o){var a=encodeURIComponent(ux(o))+r;return Array.isArray(e[o])?e[o].map(function(s){return a+encodeURIComponent(ux(s))}).join(n):a+encodeURIComponent(ux(e[o]))}).join(n):i?encodeURIComponent(ux(i))+r+encodeURIComponent(ux(e)):""},zg={},zg.decode=zg.parse=y0e,zg.encode=zg.stringify=_0e,zg.decode,zg.encode,zg.parse,zg.stringify});function fne(){throw new Error("setTimeout has not been defined")}function pne(){throw new Error("clearTimeout has not been defined")}function R6e(e){if(Lv===setTimeout)return setTimeout(e,0);if((Lv===fne||!Lv)&&setTimeout)return Lv=setTimeout,setTimeout(e,0);try{return Lv(e,0)}catch{try{return Lv.call(null,e,0)}catch{return Lv.call(this||E1,e,0)}}}function EEt(){C1&&QE&&(C1=!1,QE.length?sm=QE.concat(sm):L2=-1,sm.length&&I6e())}function I6e(){if(!C1){var e=R6e(EEt);C1=!0;for(var n=sm.length;n;){for(QE=sm,sm=[];++L2<n;)QE&&QE[L2].run();L2=-1,n=sm.length}QE=null,C1=!1,function(r){if($v===clearTimeout)return clearTimeout(r);if(($v===pne||!$v)&&clearTimeout)return $v=clearTimeout,clearTimeout(r);try{$v(r)}catch{try{return $v.call(null,r)}catch{return $v.call(this||E1,r)}}}(e)}}function b0e(e,n){(this||E1).fun=e,(this||E1).array=n}function Ev(){}var S0e,Lv,$v,E1,fs,QE,sm,C1,L2,es,CEt=bc(()=>{fn(),hn(),pn(),E1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,fs=S0e={},function(){try{Lv=typeof setTimeout=="function"?setTimeout:fne}catch{Lv=fne}try{$v=typeof clearTimeout=="function"?clearTimeout:pne}catch{$v=pne}}(),sm=[],C1=!1,L2=-1,fs.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];sm.push(new b0e(e,n)),sm.length!==1||C1||R6e(I6e)},b0e.prototype.run=function(){(this||E1).fun.apply(null,(this||E1).array)},fs.title="browser",fs.browser=!0,fs.env={},fs.argv=[],fs.version="",fs.versions={},fs.on=Ev,fs.addListener=Ev,fs.once=Ev,fs.off=Ev,fs.removeListener=Ev,fs.removeAllListeners=Ev,fs.emit=Ev,fs.prependListener=Ev,fs.prependOnceListener=Ev,fs.listeners=function(e){return[]},fs.binding=function(e){throw new Error("process.binding is not supported")},fs.cwd=function(){return"/"},fs.chdir=function(e){throw new Error("process.chdir is not supported")},fs.umask=function(){return 0},es=S0e,es.addListener,es.argv,es.binding,es.browser,es.chdir,es.cwd,es.emit,es.env,es.listeners,es.nextTick,es.off,es.on,es.once,es.prependListener,es.prependOnceListener,es.removeAllListeners,es.removeListener,es.title,es.umask,es.version,es.versions});function wEt(){if(hne)return B5;hne=!0;var e=B5={},n,r;function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?n=setTimeout:n=i}catch{n=i}try{typeof clearTimeout=="function"?r=clearTimeout:r=o}catch{r=o}})();function a(v){if(n===setTimeout)return setTimeout(v,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(v,0);try{return n(v,0)}catch{try{return n.call(null,v,0)}catch{return n.call(this||IE,v,0)}}}function s(v){if(r===clearTimeout)return clearTimeout(v);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(v);try{return r(v)}catch{try{return r.call(null,v)}catch{return r.call(this||IE,v)}}}var l=[],c=!1,u,d=-1;function f(){!c||!u||(c=!1,u.length?l=u.concat(l):d=-1,l.length&&p())}function p(){if(!c){var v=a(f);c=!0;for(var y=l.length;y;){for(u=l,l=[];++d<y;)u&&u[d].run();d=-1,y=l.length}u=null,c=!1,s(v)}}e.nextTick=function(v){var y=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)y[_-1]=arguments[_];l.push(new h(v,y)),l.length===1&&!c&&a(p)};function h(v,y){(this||IE).fun=v,(this||IE).array=y}h.prototype.run=function(){(this||IE).fun.apply(null,(this||IE).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function g(){}return e.on=g,e.addListener=g,e.once=g,e.off=g,e.removeListener=g,e.removeAllListeners=g,e.emit=g,e.prependListener=g,e.prependOnceListener=g,e.listeners=function(v){return[]},e.binding=function(v){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(v){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},B5}var B5,hne,IE,ka,N6e=bc(()=>{fn(),hn(),pn(),B5={},hne=!1,IE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,ka=wEt(),ka.platform="browser",ka.addListener,ka.argv,ka.binding,ka.browser,ka.chdir,ka.cwd,ka.emit,ka.env,ka.listeners,ka.nextTick,ka.off,ka.on,ka.once,ka.prependListener,ka.prependOnceListener,ka.removeAllListeners,ka.removeListener,ka.title,ka.umask,ka.version,ka.versions});function xEt(){if(gne)return j5;gne=!0;var e=ka;function n(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,s){for(var l="",c=0,u=-1,d=0,f,p=0;p<=a.length;++p){if(p<a.length)f=a.charCodeAt(p);else{if(f===47)break;f=47}if(f===47){if(!(u===p-1||d===1))if(u!==p-1&&d===2){if(l.length<2||c!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var h=l.lastIndexOf("/");if(h!==l.length-1){h===-1?(l="",c=0):(l=l.slice(0,h),c=l.length-1-l.lastIndexOf("/")),u=p,d=0;continue}}else if(l.length===2||l.length===1){l="",c=0,u=p,d=0;continue}}s&&(l.length>0?l+="/..":l="..",c=2)}else l.length>0?l+="/"+a.slice(u+1,p):l=a.slice(u+1,p),c=p-u-1;u=p,d=0}else f===46&&d!==-1?++d:d=-1}return l}function i(a,s){var l=s.dir||s.root,c=s.base||(s.name||"")+(s.ext||"");return l?l===s.root?l+c:l+a+c:c}var o={resolve:function(){for(var a="",s=!1,l,c=arguments.length-1;c>=-1&&!s;c--){var u;c>=0?u=arguments[c]:(l===void 0&&(l=e.cwd()),u=l),n(u),u.length!==0&&(a=u+"/"+a,s=u.charCodeAt(0)===47)}return a=r(a,!s),s?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(n(a),a.length===0)return".";var s=a.charCodeAt(0)===47,l=a.charCodeAt(a.length-1)===47;return a=r(a,!s),a.length===0&&!s&&(a="."),a.length>0&&l&&(a+="/"),s?"/"+a:a},isAbsolute:function(a){return n(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,s=0;s<arguments.length;++s){var l=arguments[s];n(l),l.length>0&&(a===void 0?a=l:a+="/"+l)}return a===void 0?".":o.normalize(a)},relative:function(a,s){if(n(a),n(s),a===s||(a=o.resolve(a),s=o.resolve(s),a===s))return"";for(var l=1;l<a.length&&a.charCodeAt(l)===47;++l);for(var c=a.length,u=c-l,d=1;d<s.length&&s.charCodeAt(d)===47;++d);for(var f=s.length,p=f-d,h=u<p?u:p,g=-1,v=0;v<=h;++v){if(v===h){if(p>h){if(s.charCodeAt(d+v)===47)return s.slice(d+v+1);if(v===0)return s.slice(d+v)}else u>h&&(a.charCodeAt(l+v)===47?g=v:v===0&&(g=0));break}var y=a.charCodeAt(l+v),_=s.charCodeAt(d+v);if(y!==_)break;y===47&&(g=v)}var S="";for(v=l+g+1;v<=c;++v)(v===c||a.charCodeAt(v)===47)&&(S.length===0?S+="..":S+="/..");return S.length>0?S+s.slice(d+g):(d+=g,s.charCodeAt(d)===47&&++d,s.slice(d))},_makeLong:function(a){return a},dirname:function(a){if(n(a),a.length===0)return".";for(var s=a.charCodeAt(0),l=s===47,c=-1,u=!0,d=a.length-1;d>=1;--d)if(s=a.charCodeAt(d),s===47){if(!u){c=d;break}}else u=!1;return c===-1?l?"/":".":l&&c===1?"//":a.slice(0,c)},basename:function(a,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');n(a);var l=0,c=-1,u=!0,d;if(s!==void 0&&s.length>0&&s.length<=a.length){if(s.length===a.length&&s===a)return"";var f=s.length-1,p=-1;for(d=a.length-1;d>=0;--d){var h=a.charCodeAt(d);if(h===47){if(!u){l=d+1;break}}else p===-1&&(u=!1,p=d+1),f>=0&&(h===s.charCodeAt(f)?--f===-1&&(c=d):(f=-1,c=p))}return l===c?c=p:c===-1&&(c=a.length),a.slice(l,c)}else{for(d=a.length-1;d>=0;--d)if(a.charCodeAt(d)===47){if(!u){l=d+1;break}}else c===-1&&(u=!1,c=d+1);return c===-1?"":a.slice(l,c)}},extname:function(a){n(a);for(var s=-1,l=0,c=-1,u=!0,d=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!u){l=f+1;break}continue}c===-1&&(u=!1,c=f+1),p===46?s===-1?s=f:d!==1&&(d=1):s!==-1&&(d=-1)}return s===-1||c===-1||d===0||d===1&&s===c-1&&s===l+1?"":a.slice(s,c)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return i("/",a)},parse:function(a){n(a);var s={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return s;var l=a.charCodeAt(0),c=l===47,u;c?(s.root="/",u=1):u=0;for(var d=-1,f=0,p=-1,h=!0,g=a.length-1,v=0;g>=u;--g){if(l=a.charCodeAt(g),l===47){if(!h){f=g+1;break}continue}p===-1&&(h=!1,p=g+1),l===46?d===-1?d=g:v!==1&&(v=1):d!==-1&&(v=-1)}return d===-1||p===-1||v===0||v===1&&d===p-1&&d===f+1?p!==-1&&(f===0&&c?s.base=s.name=a.slice(1,p):s.base=s.name=a.slice(f,p)):(f===0&&c?(s.name=a.slice(1,d),s.base=a.slice(1,p)):(s.name=a.slice(f,d),s.base=a.slice(f,p)),s.ext=a.slice(d,p)),f>0?s.dir=a.slice(0,f-1):c&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,j5=o,j5}var j5,gne,mne,TEt=bc(()=>{fn(),hn(),pn(),N6e(),j5={},gne=!1,mne=xEt()}),M6e={};GC(M6e,{URL:()=>K6e,Url:()=>V6e,default:()=>Go,fileURLToPath:()=>P6e,format:()=>G6e,parse:()=>q6e,pathToFileURL:()=>A6e,resolve:()=>W6e,resolveObject:()=>Y6e});function Xf(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function WN(e,n,r){if(e&&ph.isObject(e)&&e instanceof Xf)return e;var i=new Xf;return i.parse(e,n,r),i}function OEt(){if(vne)return U5;vne=!0;var e=es;function n(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,s){for(var l="",c=0,u=-1,d=0,f,p=0;p<=a.length;++p){if(p<a.length)f=a.charCodeAt(p);else{if(f===47)break;f=47}if(f===47){if(!(u===p-1||d===1))if(u!==p-1&&d===2){if(l.length<2||c!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var h=l.lastIndexOf("/");if(h!==l.length-1){h===-1?(l="",c=0):(l=l.slice(0,h),c=l.length-1-l.lastIndexOf("/")),u=p,d=0;continue}}else if(l.length===2||l.length===1){l="",c=0,u=p,d=0;continue}}s&&(l.length>0?l+="/..":l="..",c=2)}else l.length>0?l+="/"+a.slice(u+1,p):l=a.slice(u+1,p),c=p-u-1;u=p,d=0}else f===46&&d!==-1?++d:d=-1}return l}function i(a,s){var l=s.dir||s.root,c=s.base||(s.name||"")+(s.ext||"");return l?l===s.root?l+c:l+a+c:c}var o={resolve:function(){for(var a="",s=!1,l,c=arguments.length-1;c>=-1&&!s;c--){var u;c>=0?u=arguments[c]:(l===void 0&&(l=e.cwd()),u=l),n(u),u.length!==0&&(a=u+"/"+a,s=u.charCodeAt(0)===47)}return a=r(a,!s),s?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(n(a),a.length===0)return".";var s=a.charCodeAt(0)===47,l=a.charCodeAt(a.length-1)===47;return a=r(a,!s),a.length===0&&!s&&(a="."),a.length>0&&l&&(a+="/"),s?"/"+a:a},isAbsolute:function(a){return n(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,s=0;s<arguments.length;++s){var l=arguments[s];n(l),l.length>0&&(a===void 0?a=l:a+="/"+l)}return a===void 0?".":o.normalize(a)},relative:function(a,s){if(n(a),n(s),a===s||(a=o.resolve(a),s=o.resolve(s),a===s))return"";for(var l=1;l<a.length&&a.charCodeAt(l)===47;++l);for(var c=a.length,u=c-l,d=1;d<s.length&&s.charCodeAt(d)===47;++d);for(var f=s.length,p=f-d,h=u<p?u:p,g=-1,v=0;v<=h;++v){if(v===h){if(p>h){if(s.charCodeAt(d+v)===47)return s.slice(d+v+1);if(v===0)return s.slice(d+v)}else u>h&&(a.charCodeAt(l+v)===47?g=v:v===0&&(g=0));break}var y=a.charCodeAt(l+v),_=s.charCodeAt(d+v);if(y!==_)break;y===47&&(g=v)}var S="";for(v=l+g+1;v<=c;++v)(v===c||a.charCodeAt(v)===47)&&(S.length===0?S+="..":S+="/..");return S.length>0?S+s.slice(d+g):(d+=g,s.charCodeAt(d)===47&&++d,s.slice(d))},_makeLong:function(a){return a},dirname:function(a){if(n(a),a.length===0)return".";for(var s=a.charCodeAt(0),l=s===47,c=-1,u=!0,d=a.length-1;d>=1;--d)if(s=a.charCodeAt(d),s===47){if(!u){c=d;break}}else u=!1;return c===-1?l?"/":".":l&&c===1?"//":a.slice(0,c)},basename:function(a,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');n(a);var l=0,c=-1,u=!0,d;if(s!==void 0&&s.length>0&&s.length<=a.length){if(s.length===a.length&&s===a)return"";var f=s.length-1,p=-1;for(d=a.length-1;d>=0;--d){var h=a.charCodeAt(d);if(h===47){if(!u){l=d+1;break}}else p===-1&&(u=!1,p=d+1),f>=0&&(h===s.charCodeAt(f)?--f===-1&&(c=d):(f=-1,c=p))}return l===c?c=p:c===-1&&(c=a.length),a.slice(l,c)}else{for(d=a.length-1;d>=0;--d)if(a.charCodeAt(d)===47){if(!u){l=d+1;break}}else c===-1&&(u=!1,c=d+1);return c===-1?"":a.slice(l,c)}},extname:function(a){n(a);for(var s=-1,l=0,c=-1,u=!0,d=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!u){l=f+1;break}continue}c===-1&&(u=!1,c=f+1),p===46?s===-1?s=f:d!==1&&(d=1):s!==-1&&(d=-1)}return s===-1||c===-1||d===0||d===1&&s===c-1&&s===l+1?"":a.slice(s,c)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return i("/",a)},parse:function(a){n(a);var s={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return s;var l=a.charCodeAt(0),c=l===47,u;c?(s.root="/",u=1):u=0;for(var d=-1,f=0,p=-1,h=!0,g=a.length-1,v=0;g>=u;--g){if(l=a.charCodeAt(g),l===47){if(!h){f=g+1;break}continue}p===-1&&(h=!1,p=g+1),l===46?d===-1?d=g:v!==1&&(v=1):d!==-1&&(v=-1)}return d===-1||p===-1||v===0||v===1&&d===p-1&&d===f+1?p!==-1&&(f===0&&c?s.base=s.name=a.slice(1,p):s.base=s.name=a.slice(f,p)):(f===0&&c?(s.name=a.slice(1,d),s.base=a.slice(1,p)):(s.name=a.slice(f,d),s.base=a.slice(f,p)),s.ext=a.slice(d,p)),f>0?s.dir=a.slice(0,f-1):c&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,U5=o,U5}function REt(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return PF?IEt(e):NEt(e)}function IEt(e){let n=e.hostname,r=e.pathname;for(let i=0;i<r.length;i++)if(r[i]==="%"){let o=r.codePointAt(i+2)||32;if(r[i+1]==="2"&&o===102||r[i+1]==="5"&&o===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(F6e,"\\"),r=decodeURIComponent(r),n!=="")return`\\\\${n}${r}`;{let i=r.codePointAt(1)|32,o=r[2];if(i<L6e||i>$6e||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function NEt(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let n=e.pathname;for(let r=0;r<n.length;r++)if(n[r]==="%"){let i=n.codePointAt(r+2)||32;if(n[r+1]==="2"&&i===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(n)}function MEt(e){let n=yne.resolve(e),r=e.charCodeAt(e.length-1);(r===k6e||PF&&r===D6e)&&n[n.length-1]!==yne.sep&&(n+="/");let i=new URL("file://");return n.includes("%")&&(n=n.replace(B6e,"%25")),!PF&&n.includes("\\")&&(n=n.replace(j6e,"%5C")),n.includes(`
|
||
`)&&(n=n.replace(U6e,"%0A")),n.includes("\r")&&(n=n.replace(H6e,"%0D")),n.includes(" ")&&(n=n.replace(z6e,"%09")),i.pathname=n,i}function P6e(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return AF?PEt(e):AEt(e)}function PEt(e){let n=e.hostname,r=e.pathname;for(let i=0;i<r.length;i++)if(r[i]==="%"){let o=r.codePointAt(i+2)||32;if(r[i+1]==="2"&&o===102||r[i+1]==="5"&&o===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(eFe,"\\"),r=decodeURIComponent(r),n!=="")return`\\\\${n}${r}`;{let i=r.codePointAt(1)|32,o=r[2];if(i<Z6e||i>J6e||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function AEt(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let n=e.pathname;for(let r=0;r<n.length;r++)if(n[r]==="%"){let i=n.codePointAt(r+2)||32;if(n[r+1]==="2"&&i===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(n)}function A6e(e){let n=mne.resolve(e),r=e.charCodeAt(e.length-1);(r===Q6e||AF&&r===X6e)&&n[n.length-1]!==mne.sep&&(n+="/");let i=new URL("file://");return n.includes("%")&&(n=n.replace(tFe,"%25")),!AF&&n.includes("\\")&&(n=n.replace(nFe,"%5C")),n.includes(`
|
||
`)&&(n=n.replace(rFe,"%0A")),n.includes("\r")&&(n=n.replace(iFe,"%0D")),n.includes(" ")&&(n=n.replace(oFe,"%09")),i.pathname=n,i}var Go,E0e,ph,C0e,w0e,x0e,T0e,p3,WW,YW,qW,O0e,R0e,h3,pE,g3,U5,vne,yne,I0e,D6e,k6e,L6e,$6e,PF,F6e,B6e,j6e,U6e,H6e,z6e,N0e,V6e,G6e,W6e,Y6e,q6e,K6e,X6e,Q6e,Z6e,J6e,AF,eFe,tFe,nFe,rFe,iFe,oFe,DEt=bc(()=>{fn(),hn(),pn(),_Et(),SEt(),CEt(),TEt(),N6e(),Go={},E0e=ab,ph={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},Go.parse=WN,Go.resolve=function(e,n){return WN(e,!1,!0).resolve(n)},Go.resolveObject=function(e,n){return e?WN(e,!1,!0).resolveObject(n):n},Go.format=function(e){return ph.isString(e)&&(e=WN(e)),e instanceof Xf?e.format():Xf.prototype.format.call(e)},Go.Url=Xf,C0e=/^([a-z0-9.+-]+:)/i,w0e=/:[0-9]*$/,x0e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,T0e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
||
`," "]),p3=["'"].concat(T0e),WW=["%","/","?",";","#"].concat(p3),YW=["/","?","#"],qW=/^[+a-z0-9A-Z_-]{0,63}$/,O0e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,R0e={javascript:!0,"javascript:":!0},h3={javascript:!0,"javascript:":!0},pE={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g3=zg,Xf.prototype.parse=function(e,n,r){if(!ph.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),o=i!==-1&&i<e.indexOf("#")?"?":"#",a=e.split(o);a[0]=a[0].replace(/\\/g,"/");var s=e=a.join(o);if(s=s.trim(),!r&&e.split("#").length===1){var l=x0e.exec(s);if(l)return this.path=s,this.href=s,this.pathname=l[1],l[2]?(this.search=l[2],this.query=n?g3.parse(this.search.substr(1)):this.search.substr(1)):n&&(this.search="",this.query={}),this}var c=C0e.exec(s);if(c){var u=(c=c[0]).toLowerCase();this.protocol=u,s=s.substr(c.length)}if(r||c||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var d=s.substr(0,2)==="//";!d||c&&h3[c]||(s=s.substr(2),this.slashes=!0)}if(!h3[c]&&(d||c&&!pE[c])){for(var f,p,h=-1,g=0;g<YW.length;g++)(v=s.indexOf(YW[g]))!==-1&&(h===-1||v<h)&&(h=v);for((p=h===-1?s.lastIndexOf("@"):s.lastIndexOf("@",h))!==-1&&(f=s.slice(0,p),s=s.slice(p+1),this.auth=decodeURIComponent(f)),h=-1,g=0;g<WW.length;g++){var v;(v=s.indexOf(WW[g]))!==-1&&(h===-1||v<h)&&(h=v)}h===-1&&(h=s.length),this.host=s.slice(0,h),s=s.slice(h),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var _=this.hostname.split(/\./),S=(g=0,_.length);g<S;g++){var b=_[g];if(b&&!b.match(qW)){for(var E="",w=0,C=b.length;w<C;w++)b.charCodeAt(w)>127?E+="x":E+=b[w];if(!E.match(qW)){var x=_.slice(0,g),T=_.slice(g+1),R=b.match(O0e);R&&(x.push(R[1]),T.unshift(R[2])),T.length&&(s="/"+T.join(".")+s),this.hostname=x.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=E0e.toASCII(this.hostname));var O=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+O,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!R0e[u])for(g=0,S=p3.length;g<S;g++){var P=p3[g];if(s.indexOf(P)!==-1){var k=encodeURIComponent(P);k===P&&(k=escape(P)),s=s.split(P).join(k)}}var $=s.indexOf("#");$!==-1&&(this.hash=s.substr($),s=s.slice(0,$));var U=s.indexOf("?");if(U!==-1?(this.search=s.substr(U),this.query=s.substr(U+1),n&&(this.query=g3.parse(this.query)),s=s.slice(0,U)):n&&(this.search="",this.query={}),s&&(this.pathname=s),pE[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){O=this.pathname||"";var z=this.search||"";this.path=O+z}return this.href=this.format(),this},Xf.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var n=this.protocol||"",r=this.pathname||"",i=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&ph.isObject(this.query)&&Object.keys(this.query).length&&(a=g3.stringify(this.query));var s=this.search||a&&"?"+a||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||pE[n])&&o!==!1?(o="//"+(o||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):o||(o=""),i&&i.charAt(0)!=="#"&&(i="#"+i),s&&s.charAt(0)!=="?"&&(s="?"+s),n+o+(r=r.replace(/[?#]/g,function(l){return encodeURIComponent(l)}))+(s=s.replace("#","%23"))+i},Xf.prototype.resolve=function(e){return this.resolveObject(WN(e,!1,!0)).format()},Xf.prototype.resolveObject=function(e){if(ph.isString(e)){var n=new Xf;n.parse(e,!1,!0),e=n}for(var r=new Xf,i=Object.keys(this),o=0;o<i.length;o++){var a=i[o];r[a]=this[a]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var c=s[l];c!=="protocol"&&(r[c]=e[c])}return pE[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!pE[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var f=u[d];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||h3[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),p[0]!==""&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var h=r.pathname||"",g=r.search||"";r.path=h+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&r.pathname.charAt(0)==="/",y=e.host||e.pathname&&e.pathname.charAt(0)==="/",_=y||v||r.host&&e.pathname,S=_,b=r.pathname&&r.pathname.split("/")||[],E=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!pE[r.protocol]);if(E&&(r.hostname="",r.port=null,r.host&&(b[0]===""?b[0]=r.host:b.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(p[0]===""?p[0]=e.host:p.unshift(e.host)),e.host=null),_=_&&(p[0]===""||b[0]==="")),y)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,b=p;else if(p.length)b||(b=[]),b.pop(),b=b.concat(p),r.search=e.search,r.query=e.query;else if(!ph.isNullOrUndefined(e.search))return E&&(r.hostname=r.host=b.shift(),(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,ph.isNull(r.pathname)&&ph.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!b.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var w=b.slice(-1)[0],C=(r.host||e.host||b.length>1)&&(w==="."||w==="..")||w==="",x=0,T=b.length;T>=0;T--)(w=b[T])==="."?b.splice(T,1):w===".."?(b.splice(T,1),x++):x&&(b.splice(T,1),x--);if(!_&&!S)for(;x--;x)b.unshift("..");!_||b[0]===""||b[0]&&b[0].charAt(0)==="/"||b.unshift(""),C&&b.join("/").substr(-1)!=="/"&&b.push("");var R,O=b[0]===""||b[0]&&b[0].charAt(0)==="/";return E&&(r.hostname=r.host=O?"":b.length?b.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),(_=_||r.host&&b.length)&&!O&&b.unshift(""),b.length?r.pathname=b.join("/"):(r.pathname=null,r.path=null),ph.isNull(r.pathname)&&ph.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Xf.prototype.parseHost=function(){var e=this.host,n=w0e.exec(e);n&&((n=n[0])!==":"&&(this.port=n.substr(1)),e=e.substr(0,e.length-n.length)),e&&(this.hostname=e)},Go.Url,Go.format,Go.resolve,Go.resolveObject,U5={},vne=!1,yne=OEt(),I0e=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Go.URL=typeof URL<"u"?URL:null,Go.pathToFileURL=MEt,Go.fileURLToPath=REt,Go.Url,Go.format,Go.resolve,Go.resolveObject,Go.URL,D6e=92,k6e=47,L6e=97,$6e=122,PF=I0e==="win32",F6e=/\//g,B6e=/%/g,j6e=/\\/g,U6e=/\n/g,H6e=/\r/g,z6e=/\t/g,N0e=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Go.URL=typeof URL<"u"?URL:null,Go.pathToFileURL=A6e,Go.fileURLToPath=P6e,V6e=Go.Url,G6e=Go.format,W6e=Go.resolve,Y6e=Go.resolveObject,q6e=Go.parse,K6e=Go.URL,X6e=92,Q6e=47,Z6e=97,J6e=122,AF=N0e==="win32",eFe=/\//g,tFe=/%/g,nFe=/\\/g,rFe=/\n/g,iFe=/\r/g,oFe=/\t/g}),kEt=On((e,n)=>{fn(),hn(),pn(),n.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),Lle=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var n=qC(),r=(Ec(),na(Sc));function i(a,s){let l=new Array(a.length);for(let c=0;c<a.length;c++)typeof a[c].chunk=="string"?l[c]=r.Buffer.from(a[c].chunk,"utf8"):l[c]=a[c].chunk;this._write(r.Buffer.concat(l),"binary",s)}e.writev=i;var o=class extends n.Duplex{constructor(a,s,l){super({objectMode:!0}),this.proxy=s,this.socket=l,this.writeQueue=[],a.objectMode||(this._writev=i.bind(this)),this.isSocketOpen=!1,this.proxy.on("data",c=>{this.destroyed||this.push(c)})}_read(a){this.proxy.read(a)}_write(a,s,l){this.isSocketOpen?this.writeToProxy(a,s,l):this.writeQueue.push({chunk:a,encoding:s,cb:l})}_final(a){this.writeQueue=[],this.proxy.end(a)}_destroy(a,s){this.writeQueue=[],this.proxy.destroy(),s(a)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(a,s,l){this.proxy.write(a,s)===!1?this.proxy.once("drain",l):l()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:a,encoding:s,cb:l}=this.writeQueue.shift();this.writeToProxy(a,s,l)}}};e.BufferedDuplex=o}),m3=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var r=(Ec(),na(Sc)),i=n(kEt()),o=n(Cy()),a=qC(),s=n(B7()),l=Lle(),c=(0,o.default)("mqttjs:ws"),u=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function d(_,S){let b=`${_.protocol}://${_.hostname}:${_.port}${_.path}`;return typeof _.transformWsUrl=="function"&&(b=_.transformWsUrl(b,_,S)),b}function f(_){let S=_;return _.port||(_.protocol==="wss"?S.port=443:S.port=80),_.path||(S.path="/"),_.wsOptions||(S.wsOptions={}),!s.default&&!_.forceNativeWebSocket&&_.protocol==="wss"&&u.forEach(b=>{Object.prototype.hasOwnProperty.call(_,b)&&!Object.prototype.hasOwnProperty.call(_.wsOptions,b)&&(S.wsOptions[b]=_[b])}),S}function p(_){let S=f(_);if(S.hostname||(S.hostname=S.host),!S.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let b=new URL(document.URL);S.hostname=b.hostname,S.port||(S.port=Number(b.port))}return S.objectMode===void 0&&(S.objectMode=!(S.binary===!0||S.binary===void 0)),S}function h(_,S,b){c("createWebSocket"),c(`protocol: ${b.protocolId} ${b.protocolVersion}`);let E=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt";c(`creating new Websocket for url: ${S} and protocol: ${E}`);let w;return b.createWebsocket?w=b.createWebsocket(S,[E],b):w=new i.default(S,[E],b.wsOptions),w}function g(_,S){let b=S.protocolId==="MQIsdp"&&S.protocolVersion===3?"mqttv3.1":"mqtt",E=d(S,_),w;return S.createWebsocket?w=S.createWebsocket(E,[b],S):w=new WebSocket(E,[b]),w.binaryType="arraybuffer",w}var v=(_,S)=>{c("streamBuilder");let b=f(S);b.hostname=b.hostname||b.host||"localhost";let E=d(b,_),w=h(_,E,b),C=i.default.createWebSocketStream(w,b.wsOptions);return C.url=E,w.on("close",()=>{C.destroy()}),C};e.streamBuilder=v;var y=(_,S)=>{c("browserStreamBuilder");let b,E=p(S).browserBufferSize||1024*512,w=S.browserBufferTimeout||1e3,C=!S.objectMode,x=g(_,S),T=O(S,U,z);S.objectMode||(T._writev=l.writev.bind(T)),T.on("close",()=>{x.close()});let R=typeof x.addEventListener<"u";x.readyState===x.OPEN?(b=T,b.socket=x):(b=new l.BufferedDuplex(S,T,x),R?x.addEventListener("open",M):x.onopen=M),R?(x.addEventListener("close",P),x.addEventListener("error",k),x.addEventListener("message",$)):(x.onclose=P,x.onerror=k,x.onmessage=$);function O(D,B,Y){let q=new a.Transform({objectMode:D.objectMode});return q._write=B,q._flush=Y,q}function M(){c("WebSocket onOpen"),b instanceof l.BufferedDuplex&&b.socketReady()}function P(D){c("WebSocket onClose",D),b.end(),b.destroy()}function k(D){c("WebSocket onError",D);let B=new Error("WebSocket error");B.event=D,b.destroy(B)}async function $(D){let{data:B}=D;B instanceof ArrayBuffer?B=r.Buffer.from(B):B instanceof Blob?B=r.Buffer.from(await new Response(B).arrayBuffer()):B=r.Buffer.from(B,"utf8"),T&&!T.destroyed&&T.push(B)}function U(D,B,Y){if(x.bufferedAmount>E){setTimeout(U,w,D,B,Y);return}C&&typeof D=="string"&&(D=r.Buffer.from(D,"utf8"));try{x.send(D)}catch(q){return Y(q)}Y()}function z(D){x.close(),D()}return b};e.browserStreamBuilder=y}),$le={};GC($le,{Server:()=>Fa,Socket:()=>Fa,Stream:()=>Fa,_createServerHandle:()=>Fa,_normalizeArgs:()=>Fa,_setSimultaneousAccepts:()=>Fa,connect:()=>Fa,createConnection:()=>Fa,createServer:()=>Fa,default:()=>aFe,isIP:()=>Fa,isIPv4:()=>Fa,isIPv6:()=>Fa});function Fa(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var aFe,sFe=bc(()=>{fn(),hn(),pn(),aFe={_createServerHandle:Fa,_normalizeArgs:Fa,_setSimultaneousAccepts:Fa,connect:Fa,createConnection:Fa,createServer:Fa,isIP:Fa,isIPv4:Fa,isIPv6:Fa,Server:Fa,Socket:Fa,Stream:Fa}}),M0e=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var r=n((sFe(),na($le))),i=n(Cy()),o=(0,i.default)("mqttjs:tcp"),a=(s,l)=>{l.port=l.port||1883,l.hostname=l.hostname||l.host||"localhost";let{port:c,path:u}=l,d=l.hostname;return o("port %d and host %s",c,d),r.default.createConnection({port:c,host:d,path:u})};e.default=a}),lFe={};GC(lFe,{default:()=>cFe});var cFe,LEt=bc(()=>{fn(),hn(),pn(),cFe={}}),P0e=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var r=n((LEt(),na(lFe))),i=n((sFe(),na($le))),o=n(Cy()),a=(0,o.default)("mqttjs:tls"),s=(l,c)=>{c.port=c.port||8883,c.host=c.hostname||c.host||"localhost",i.default.isIP(c.host)===0&&(c.servername=c.host),c.rejectUnauthorized=c.rejectUnauthorized!==!1,delete c.path,a("port %d host %s rejectUnauthorized %b",c.port,c.host,c.rejectUnauthorized);let u=r.default.connect(c);u.on("secureConnect",()=>{c.rejectUnauthorized&&!u.authorized?u.emit("error",new Error("TLS not authorized")):u.removeListener("error",d)});function d(f){c.rejectUnauthorized&&l.emit("error",f),u.end()}return u.on("error",d),u};e.default=s}),A0e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=(Ec(),na(Sc)),r=qC(),i=Lle(),o,a,s;function l(){let p=new r.Transform;return p._write=(h,g,v)=>{o.send({data:h.buffer,success(){v()},fail(y){v(new Error(y))}})},p._flush=h=>{o.close({success(){h()}})},p}function c(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function u(p,h){let g=p.protocol==="wxs"?"wss":"ws",v=`${g}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(v=`${g}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(v=p.transformWsUrl(v,p,h)),v}function d(){o.onOpen(()=>{s.socketReady()}),o.onMessage(p=>{let{data:h}=p;h instanceof ArrayBuffer?h=n.Buffer.from(h):h=n.Buffer.from(h,"utf8"),a.push(h)}),o.onClose(()=>{s.emit("close"),s.end(),s.destroy()}),o.onError(p=>{let h=new Error(p.errMsg);s.destroy(h)})}var f=(p,h)=>{if(h.hostname=h.hostname||h.host,!h.hostname)throw new Error("Could not determine host. Specify host manually.");let g=h.protocolId==="MQIsdp"&&h.protocolVersion===3?"mqttv3.1":"mqtt";c(h);let v=u(h,p);o=wx.connectSocket({url:v,protocols:[g]}),a=l(),s=new i.BufferedDuplex(h,a,o),s._destroy=(_,S)=>{o.close({success(){S&&S(_)}})};let y=s.destroy;return s.destroy=(_,S)=>(s.destroy=y,setTimeout(()=>{o.close({fail(){s._destroy(_,S)}})},0),s),d(),s};e.default=f}),D0e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=(Ec(),na(Sc)),r=qC(),i=Lle(),o,a,s,l=!1;function c(){let h=new r.Transform;return h._write=(g,v,y)=>{o.sendSocketMessage({data:g.buffer,success(){y()},fail(){y(new Error)}})},h._flush=g=>{o.closeSocket({success(){g()}})},h}function u(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function d(h,g){let v=h.protocol==="alis"?"wss":"ws",y=`${v}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(y=`${v}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(y=h.transformWsUrl(y,h,g)),y}function f(){l||(l=!0,o.onSocketOpen(()=>{s.socketReady()}),o.onSocketMessage(h=>{if(typeof h.data=="string"){let g=n.Buffer.from(h.data,"base64");a.push(g)}else{let g=new FileReader;g.addEventListener("load",()=>{let v=g.result;v instanceof ArrayBuffer?v=n.Buffer.from(v):v=n.Buffer.from(v,"utf8"),a.push(v)}),g.readAsArrayBuffer(h.data)}}),o.onSocketClose(()=>{s.end(),s.destroy()}),o.onSocketError(h=>{s.destroy(h)}))}var p=(h,g)=>{if(g.hostname=g.hostname||g.host,!g.hostname)throw new Error("Could not determine host. Specify host manually.");let v=g.protocolId==="MQIsdp"&&g.protocolVersion===3?"mqttv3.1":"mqtt";u(g);let y=d(g,h);return o=g.my,o.connectSocket({url:y,protocols:v}),a=c(),s=new i.BufferedDuplex(g,a,o),f(),s};e.default=p}),$Et=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var r=n(Cy()),i=n((DEt(),na(M6e))),o=n(une()),a=n(B7());typeof(Ao==null?void 0:Ao.nextTick)!="function"&&(Ao.nextTick=setImmediate);var s=(0,r.default)("mqttjs"),l=null;function c(f){let p;f.auth&&(p=f.auth.match(/^(.+):(.+)$/),p?(f.username=p[1],f.password=p[2]):f.username=f.auth)}function u(f,p){var h,g,v,y;if(s("connecting to an MQTT broker..."),typeof f=="object"&&!p&&(p=f,f=""),p=p||{},f&&typeof f=="string"){let b=i.default.parse(f,!0),E={};if(b.port!=null&&(E.port=Number(b.port)),E.host=b.hostname,E.query=b.query,E.auth=b.auth,E.protocol=b.protocol,E.path=b.path,E.protocol=(h=E.protocol)===null||h===void 0?void 0:h.replace(/:$/,""),p=Object.assign(Object.assign({},E),p),!p.protocol)throw new Error("Missing protocol")}if(p.unixSocket=p.unixSocket||((g=p.protocol)===null||g===void 0?void 0:g.includes("+unix")),p.unixSocket?p.protocol=p.protocol.replace("+unix",""):!(!((v=p.protocol)===null||v===void 0)&&v.startsWith("ws"))&&!(!((y=p.protocol)===null||y===void 0)&&y.startsWith("wx"))&&delete p.path,c(p),p.query&&typeof p.query.clientId=="string"&&(p.clientId=p.query.clientId),p.cert&&p.key)if(p.protocol){if(["mqtts","wss","wxs","alis"].indexOf(p.protocol)===-1)switch(p.protocol){case"mqtt":p.protocol="mqtts";break;case"ws":p.protocol="wss";break;case"wx":p.protocol="wxs";break;case"ali":p.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${p.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(l||(l={},!a.default&&!p.forceNativeWebSocket?(l.ws=m3().streamBuilder,l.wss=m3().streamBuilder,l.mqtt=M0e().default,l.tcp=M0e().default,l.ssl=P0e().default,l.tls=l.ssl,l.mqtts=P0e().default):(l.ws=m3().browserStreamBuilder,l.wss=m3().browserStreamBuilder,l.wx=A0e().default,l.wxs=A0e().default,l.ali=D0e().default,l.alis=D0e().default)),!l[p.protocol]){let b=["mqtts","wss"].indexOf(p.protocol)!==-1;p.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((E,w)=>b&&w%2===0?!1:typeof l[E]=="function")[0]}if(p.clean===!1&&!p.clientId)throw new Error("Missing clientId for unclean clients");p.protocol&&(p.defaultProtocol=p.protocol);function _(b){return p.servers&&((!b._reconnectCount||b._reconnectCount===p.servers.length)&&(b._reconnectCount=0),p.host=p.servers[b._reconnectCount].host,p.port=p.servers[b._reconnectCount].port,p.protocol=p.servers[b._reconnectCount].protocol?p.servers[b._reconnectCount].protocol:p.defaultProtocol,p.hostname=p.host,b._reconnectCount++),s("calling streambuilder for",p.protocol),l[p.protocol](b,p)}let S=new o.default(_,p);return S.on("error",()=>{}),S}function d(f,p,h=!0){return new Promise((g,v)=>{let y=u(f,p),_={connect:b=>{S(),g(y)},end:()=>{S(),g(y)},error:b=>{S(),y.end(),v(b)}};h===!1&&(_.close=()=>{_.error(new Error("Couldn't connect to server"))});function S(){Object.keys(_).forEach(b=>{y.off(b,_[b])})}Object.keys(_).forEach(b=>{y.on(b,_[b])})})}e.connectAsync=d,e.default=u}),k0e=On(e=>{fn(),hn(),pn();var n=e&&e.__createBinding||(Object.create?function(h,g,v,y){y===void 0&&(y=v);var _=Object.getOwnPropertyDescriptor(g,v);(!_||("get"in _?!g.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return g[v]}}),Object.defineProperty(h,y,_)}:function(h,g,v,y){y===void 0&&(y=v),h[y]=g[v]}),r=e&&e.__setModuleDefault||(Object.create?function(h,g){Object.defineProperty(h,"default",{enumerable:!0,value:g})}:function(h,g){h.default=g}),i=e&&e.__importStar||function(h){if(h&&h.__esModule)return h;var g={};if(h!=null)for(var v in h)v!=="default"&&Object.prototype.hasOwnProperty.call(h,v)&&n(g,h,v);return r(g,h),g},o=e&&e.__exportStar||function(h,g){for(var v in h)v!=="default"&&!Object.prototype.hasOwnProperty.call(g,v)&&n(g,h,v)},a=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.KeepaliveManager=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var s=a(une());e.MqttClient=s.default;var l=a(l6e());e.DefaultMessageIdProvider=l.default;var c=a(yEt());e.UniqueMessageIdProvider=c.default;var u=a(c6e());e.Store=u.default;var d=i($Et());e.connect=d.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return d.connectAsync}});var f=a(x6e());e.KeepaliveManager=f.default,e.Client=s.default,o(une(),e),o(QR(),e);var p=F7();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return p.ReasonCodes}})}),FEt=On(e=>{fn(),hn(),pn();var n=e&&e.__createBinding||(Object.create?function(s,l,c,u){u===void 0&&(u=c);var d=Object.getOwnPropertyDescriptor(l,c);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[c]}}),Object.defineProperty(s,u,d)}:function(s,l,c,u){u===void 0&&(u=c),s[u]=l[c]}),r=e&&e.__setModuleDefault||(Object.create?function(s,l){Object.defineProperty(s,"default",{enumerable:!0,value:l})}:function(s,l){s.default=l}),i=e&&e.__importStar||function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var c in s)c!=="default"&&Object.prototype.hasOwnProperty.call(s,c)&&n(l,s,c);return r(l,s),l},o=e&&e.__exportStar||function(s,l){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(l,c)&&n(l,s,c)};Object.defineProperty(e,"__esModule",{value:!0});var a=i(k0e());e.default=a,o(k0e(),e)});const BEt=FEt();/*! Bundled license information:
|
||
|
||
@jspm/core/nodelibs/browser/buffer.js:
|
||
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||
*/var Un={};(function(e){var n=typeof Object.defineProperties=="function"?Object.defineProperty:function(A,W,ce){A!=Array.prototype&&A!=Object.prototype&&(A[W]=ce.value)},r=(typeof window<"u"&&window===oo||typeof oo<"u"&&oo!=null,oo);function i(A,W){if(W){var ce=r;A=A.split(".");for(var Pe=0;Pe<A.length-1;Pe++){var qe=A[Pe];qe in ce||(ce[qe]={}),ce=ce[qe]}A=A[A.length-1],Pe=ce[A],W=W(Pe),W!=Pe&&W!=null&&n(ce,A,{configurable:!0,writable:!0,value:W})}}function o(A){var W=0;return function(){return W<A.length?{done:!1,value:A[W++]}:{done:!0}}}function a(){a=function(){},r.Symbol||(r.Symbol=l)}function s(A,W){this.a=A,n(this,"description",{configurable:!0,writable:!0,value:W})}s.prototype.toString=function(){return this.a};var l=function(){function A(ce){if(this instanceof A)throw new TypeError("Symbol is not a constructor");return new s("jscomp_symbol_"+(ce||"")+"_"+W++,ce)}var W=0;return A}();function c(){a();var A=r.Symbol.iterator;A||(A=r.Symbol.iterator=r.Symbol("Symbol.iterator")),typeof Array.prototype[A]!="function"&&n(Array.prototype,A,{configurable:!0,writable:!0,value:function(){return u(o(this))}}),c=function(){}}function u(A){return c(),A={next:A},A[r.Symbol.iterator]=function(){return this},A}function d(A,W){c(),A instanceof String&&(A+="");var ce=0,Pe={next:function(){if(ce<A.length){var qe=ce++;return{value:W(qe,A[qe]),done:!1}}return Pe.next=function(){return{done:!0,value:void 0}},Pe.next()}};return Pe[Symbol.iterator]=function(){return Pe},Pe}i("Array.prototype.entries",function(A){return A||function(){return d(this,function(W,ce){return[W,ce]})}});var f=oo||self;function p(A,W,ce){A=A.split("."),ce=ce||f,A[0]in ce||typeof ce.execScript>"u"||ce.execScript("var "+A[0]);for(var Pe;A.length&&(Pe=A.shift());)A.length||W===void 0?ce[Pe]&&ce[Pe]!==Object.prototype[Pe]?ce=ce[Pe]:ce=ce[Pe]={}:ce[Pe]=W}function h(A){var W=typeof A;if(W=="object")if(A){if(A instanceof Array)return"array";if(A instanceof Object)return W;var ce=Object.prototype.toString.call(A);if(ce=="[object Window]")return"object";if(ce=="[object Array]"||typeof A.length=="number"&&typeof A.splice<"u"&&typeof A.propertyIsEnumerable<"u"&&!A.propertyIsEnumerable("splice"))return"array";if(ce=="[object Function]"||typeof A.call<"u"&&typeof A.propertyIsEnumerable<"u"&&!A.propertyIsEnumerable("call"))return"function"}else return"null";else if(W=="function"&&typeof A.call>"u")return"object";return W}function g(A){var W=typeof A;return W=="object"&&A!=null||W=="function"}function v(A,W,ce){p(A,W,ce)}function y(A,W){function ce(){}ce.prototype=W.prototype,A.prototype=new ce,A.prototype.constructor=A}var _="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function S(A,W){for(var ce,Pe,qe=1;qe<arguments.length;qe++){Pe=arguments[qe];for(ce in Pe)A[ce]=Pe[ce];for(var gt=0;gt<_.length;gt++)ce=_[gt],Object.prototype.hasOwnProperty.call(Pe,ce)&&(A[ce]=Pe[ce])}}var b=Array.prototype.forEach?function(A,W){Array.prototype.forEach.call(A,W,void 0)}:function(A,W){for(var ce=A.length,Pe=typeof A=="string"?A.split(""):A,qe=0;qe<ce;qe++)qe in Pe&&W.call(void 0,Pe[qe],qe,A)},E=Array.prototype.map?function(A,W){return Array.prototype.map.call(A,W,void 0)}:function(A,W){for(var ce=A.length,Pe=Array(ce),qe=typeof A=="string"?A.split(""):A,gt=0;gt<ce;gt++)gt in qe&&(Pe[gt]=W.call(void 0,qe[gt],gt,A));return Pe};function w(A,W,ce){return 2>=arguments.length?Array.prototype.slice.call(A,W):Array.prototype.slice.call(A,W,ce)}function C(A,W,ce,Pe){var qe="Assertion failed";if(ce){qe+=": "+ce;var gt=Pe}else A&&(qe+=": "+A,gt=W);throw Error(qe,gt||[])}function x(A,W,ce){for(var Pe=[],qe=2;qe<arguments.length;++qe)Pe[qe-2]=arguments[qe];return A||C("",null,W,Pe),A}function T(A,W,ce){for(var Pe=[],qe=2;qe<arguments.length;++qe)Pe[qe-2]=arguments[qe];typeof A!="string"&&C("Expected string but got %s: %s.",[h(A),A],W,Pe)}function R(A,W,ce){for(var Pe=[],qe=2;qe<arguments.length;++qe)Pe[qe-2]=arguments[qe];Array.isArray(A)||C("Expected array but got %s: %s.",[h(A),A],W,Pe)}function O(A,W){for(var ce=[],Pe=1;Pe<arguments.length;++Pe)ce[Pe-1]=arguments[Pe];throw Error("Failure"+(A?": "+A:""),ce)}function M(A,W,ce,Pe){for(var qe=[],gt=3;gt<arguments.length;++gt)qe[gt-3]=arguments[gt];A instanceof W||C("Expected instanceof %s but got %s.",[P(W),P(A)],ce,qe)}function P(A){return A instanceof Function?A.displayName||A.name||"unknown type name":A instanceof Object?A.constructor.displayName||A.constructor.name||Object.prototype.toString.call(A):A===null?"null":typeof A}function k(A,W){if(this.c=A,this.b=W,this.a={},this.arrClean=!0,0<this.c.length){for(A=0;A<this.c.length;A++){W=this.c[A];var ce=W[0];this.a[ce.toString()]=new D(ce,W[1])}this.arrClean=!0}}p("jspb.Map",k,void 0),k.prototype.g=function(){if(this.arrClean){if(this.b){var A=this.a,W;for(W in A)if(Object.prototype.hasOwnProperty.call(A,W)){var ce=A[W].a;ce&&ce.g()}}}else{for(this.c.length=0,A=z(this),A.sort(),W=0;W<A.length;W++){var Pe=this.a[A[W]];(ce=Pe.a)&&ce.g(),this.c.push([Pe.key,Pe.value])}this.arrClean=!0}return this.c},k.prototype.toArray=k.prototype.g,k.prototype.Mc=function(A,W){for(var ce=this.g(),Pe=[],qe=0;qe<ce.length;qe++){var gt=this.a[ce[qe][0].toString()];U(this,gt);var Yt=gt.a;Yt?(x(W),Pe.push([gt.key,W(A,Yt)])):Pe.push([gt.key,gt.value])}return Pe},k.prototype.toObject=k.prototype.Mc,k.fromObject=function(A,W,ce){W=new k([],W);for(var Pe=0;Pe<A.length;Pe++){var qe=A[Pe][0],gt=ce(A[Pe][1]);W.set(qe,gt)}return W};function $(A){this.a=0,this.b=A}$.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&($.prototype[Symbol.iterator]=function(){return this}),k.prototype.Jb=function(){return z(this).length},k.prototype.getLength=k.prototype.Jb,k.prototype.clear=function(){this.a={},this.arrClean=!1},k.prototype.clear=k.prototype.clear,k.prototype.Cb=function(A){A=A.toString();var W=this.a.hasOwnProperty(A);return delete this.a[A],this.arrClean=!1,W},k.prototype.del=k.prototype.Cb,k.prototype.Eb=function(){var A=[],W=z(this);W.sort();for(var ce=0;ce<W.length;ce++){var Pe=this.a[W[ce]];A.push([Pe.key,Pe.value])}return A},k.prototype.getEntryList=k.prototype.Eb,k.prototype.entries=function(){var A=[],W=z(this);W.sort();for(var ce=0;ce<W.length;ce++){var Pe=this.a[W[ce]];A.push([Pe.key,U(this,Pe)])}return new $(A)},k.prototype.entries=k.prototype.entries,k.prototype.keys=function(){var A=[],W=z(this);W.sort();for(var ce=0;ce<W.length;ce++)A.push(this.a[W[ce]].key);return new $(A)},k.prototype.keys=k.prototype.keys,k.prototype.values=function(){var A=[],W=z(this);W.sort();for(var ce=0;ce<W.length;ce++)A.push(U(this,this.a[W[ce]]));return new $(A)},k.prototype.values=k.prototype.values,k.prototype.forEach=function(A,W){var ce=z(this);ce.sort();for(var Pe=0;Pe<ce.length;Pe++){var qe=this.a[ce[Pe]];A.call(W,U(this,qe),qe.key,this)}},k.prototype.forEach=k.prototype.forEach,k.prototype.set=function(A,W){var ce=new D(A);return this.b?(ce.a=W,ce.value=W.g()):ce.value=W,this.a[A.toString()]=ce,this.arrClean=!1,this},k.prototype.set=k.prototype.set;function U(A,W){return A.b?(W.a||(W.a=new A.b(W.value)),W.a):W.value}k.prototype.get=function(A){if(A=this.a[A.toString()])return U(this,A)},k.prototype.get=k.prototype.get,k.prototype.has=function(A){return A.toString()in this.a},k.prototype.has=k.prototype.has,k.prototype.Jc=function(A,W,ce,Pe,qe){var gt=z(this);gt.sort();for(var Yt=0;Yt<gt.length;Yt++){var Nn=this.a[gt[Yt]];W.Va(A),ce.call(W,1,Nn.key),this.b?Pe.call(W,2,U(this,Nn),qe):Pe.call(W,2,Nn.value),W.Ya()}},k.prototype.serializeBinary=k.prototype.Jc,k.deserializeBinary=function(A,W,ce,Pe,qe,gt,Yt){for(;W.oa()&&!W.bb();){var Nn=W.c;Nn==1?gt=ce.call(W):Nn==2&&(A.b?(x(qe),Yt||(Yt=new A.b),Pe.call(W,Yt,qe)):Yt=Pe.call(W))}x(gt!=null),x(Yt!=null),A.set(gt,Yt)};function z(A){A=A.a;var W=[],ce;for(ce in A)Object.prototype.hasOwnProperty.call(A,ce)&&W.push(ce);return W}function D(A,W){this.key=A,this.value=W,this.a=void 0}function B(A){if(8192>=A.length)return String.fromCharCode.apply(null,A);for(var W="",ce=0;ce<A.length;ce+=8192)W+=String.fromCharCode.apply(null,w(A,ce,ce+8192));return W}var Y={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},q={"'":"\\'"},K={},H=null;function G(A,W){W===void 0&&(W=0),Z(),W=K[W];for(var ce=[],Pe=0;Pe<A.length;Pe+=3){var qe=A[Pe],gt=Pe+1<A.length,Yt=gt?A[Pe+1]:0,Nn=Pe+2<A.length,Jn=Nn?A[Pe+2]:0,Ci=qe>>2;qe=(qe&3)<<4|Yt>>4,Yt=(Yt&15)<<2|Jn>>6,Jn&=63,Nn||(Jn=64,gt||(Yt=64)),ce.push(W[Ci],W[qe],W[Yt]||"",W[Jn]||"")}return ce.join("")}function Q(A){var W=A.length,ce=3*W/4;ce%3?ce=Math.floor(ce):"=.".indexOf(A[W-1])!=-1&&(ce="=.".indexOf(A[W-2])!=-1?ce-2:ce-1);var Pe=new Uint8Array(ce),qe=0;return le(A,function(gt){Pe[qe++]=gt}),Pe.subarray(0,qe)}function le(A,W){function ce(Jn){for(;Pe<A.length;){var Ci=A.charAt(Pe++),wi=H[Ci];if(wi!=null)return wi;if(!/^[\s\xa0]*$/.test(Ci))throw Error("Unknown base64 encoding at char: "+Ci)}return Jn}Z();for(var Pe=0;;){var qe=ce(-1),gt=ce(0),Yt=ce(64),Nn=ce(64);if(Nn===64&&qe===-1)break;W(qe<<2|gt>>4),Yt!=64&&(W(gt<<4&240|Yt>>2),Nn!=64&&W(Yt<<6&192|Nn))}}function Z(){if(!H){H={};for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),W=["+/=","+/","-_=","-_.","-_"],ce=0;5>ce;ce++){var Pe=A.concat(W[ce].split(""));K[ce]=Pe;for(var qe=0;qe<Pe.length;qe++){var gt=Pe[qe];H[gt]===void 0&&(H[gt]=qe)}}}}p("jspb.ConstBinaryMessage",function(){},void 0),p("jspb.BinaryMessage",function(){},void 0),p("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),p("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),p("jspb.BinaryConstants.FieldTypeToWireType",function(A){switch(A){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0),p("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),p("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),p("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),p("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),p("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),p("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),p("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),p("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),p("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),p("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),p("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),p("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),p("jspb.BinaryConstants.TWO_TO_63",9223372036854776e3,void 0),p("jspb.BinaryConstants.TWO_TO_64",18446744073709552e3,void 0),p("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var j=0,F=0;p("jspb.utils.getSplit64Low",function(){return j},void 0),p("jspb.utils.getSplit64High",function(){return F},void 0);function te(A){var W=A>>>0;A=Math.floor((A-W)/4294967296)>>>0,j=W,F=A}p("jspb.utils.splitUint64",te,void 0);function oe(A){var W=0>A;A=Math.abs(A);var ce=A>>>0;A=Math.floor((A-ce)/4294967296),A>>>=0,W&&(A=~A>>>0,ce=(~ce>>>0)+1,4294967295<ce&&(ce=0,A++,4294967295<A&&(A=0))),j=ce,F=A}p("jspb.utils.splitInt64",oe,void 0);function de(A){var W=0>A;A=2*Math.abs(A),te(A),A=j;var ce=F;W&&(A==0?ce==0?ce=A=4294967295:(ce--,A=4294967295):A--),j=A,F=ce}p("jspb.utils.splitZigzag64",de,void 0);function pe(A){var W=0>A?1:0;if(A=W?-A:A,A===0)0<1/A?j=F=0:(F=0,j=2147483648);else if(isNaN(A))F=0,j=2147483647;else if(34028234663852886e22<A)F=0,j=(W<<31|2139095040)>>>0;else if(11754943508222875e-54>A)A=Math.round(A/Math.pow(2,-149)),F=0,j=(W<<31|A)>>>0;else{var ce=Math.floor(Math.log(A)/Math.LN2);A*=Math.pow(2,-ce),A=Math.round(8388608*A),16777216<=A&&++ce,F=0,j=(W<<31|ce+127<<23|A&8388607)>>>0}}p("jspb.utils.splitFloat32",pe,void 0);function me(A){var W=0>A?1:0;if(A=W?-A:A,A===0)F=0<1/A?0:2147483648,j=0;else if(isNaN(A))F=2147483647,j=4294967295;else if(17976931348623157e292<A)F=(W<<31|2146435072)>>>0,j=0;else if(22250738585072014e-324>A)A/=Math.pow(2,-1074),F=(W<<31|A/4294967296)>>>0,j=A>>>0;else{var ce=A,Pe=0;if(2<=ce)for(;2<=ce&&1023>Pe;)Pe++,ce/=2;else for(;1>ce&&-1022<Pe;)ce*=2,Pe--;A*=Math.pow(2,-Pe),F=(W<<31|Pe+1023<<20|1048576*A&1048575)>>>0,j=4503599627370496*A>>>0}}p("jspb.utils.splitFloat64",me,void 0);function ve(A){var W=A.charCodeAt(4),ce=A.charCodeAt(5),Pe=A.charCodeAt(6),qe=A.charCodeAt(7);j=A.charCodeAt(0)+(A.charCodeAt(1)<<8)+(A.charCodeAt(2)<<16)+(A.charCodeAt(3)<<24)>>>0,F=W+(ce<<8)+(Pe<<16)+(qe<<24)>>>0}p("jspb.utils.splitHash64",ve,void 0);function he(A,W){return 4294967296*W+(A>>>0)}p("jspb.utils.joinUint64",he,void 0);function be(A,W){var ce=W&2147483648;return ce&&(A=~A+1>>>0,W=~W>>>0,A==0&&(W=W+1>>>0)),A=he(A,W),ce?-A:A}p("jspb.utils.joinInt64",be,void 0);function we(A,W,ce){var Pe=W>>31;return ce(A<<1^Pe,(W<<1|A>>>31)^Pe)}p("jspb.utils.toZigzag64",we,void 0);function De(A,W){return Ae(A,W,be)}p("jspb.utils.joinZigzag64",De,void 0);function Ae(A,W,ce){var Pe=-(A&1);return ce((A>>>1|W<<31)^Pe,W>>>1^Pe)}p("jspb.utils.fromZigzag64",Ae,void 0);function Ee(A){var W=2*(A>>31)+1,ce=A>>>23&255;return A&=8388607,ce==255?A?NaN:1/0*W:ce==0?W*Math.pow(2,-149)*A:W*Math.pow(2,ce-150)*(A+Math.pow(2,23))}p("jspb.utils.joinFloat32",Ee,void 0);function Re(A,W){var ce=2*(W>>31)+1,Pe=W>>>20&2047;return A=4294967296*(W&1048575)+A,Pe==2047?A?NaN:1/0*ce:Pe==0?ce*Math.pow(2,-1074)*A:ce*Math.pow(2,Pe-1075)*(A+4503599627370496)}p("jspb.utils.joinFloat64",Re,void 0);function Te(A,W){return String.fromCharCode(A>>>0&255,A>>>8&255,A>>>16&255,A>>>24&255,W>>>0&255,W>>>8&255,W>>>16&255,W>>>24&255)}p("jspb.utils.joinHash64",Te,void 0),p("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function Oe(A,W){function ce(qe,gt){return qe=qe?String(qe):"",gt?"0000000".slice(qe.length)+qe:qe}if(2097151>=W)return""+he(A,W);var Pe=(A>>>24|W<<8)>>>0&16777215;return W=W>>16&65535,A=(A&16777215)+6777216*Pe+6710656*W,Pe+=8147497*W,W*=2,1e7<=A&&(Pe+=Math.floor(A/1e7),A%=1e7),1e7<=Pe&&(W+=Math.floor(Pe/1e7),Pe%=1e7),ce(W,0)+ce(Pe,W)+ce(A,1)}p("jspb.utils.joinUnsignedDecimalString",Oe,void 0);function Ne(A,W){var ce=W&2147483648;return ce&&(A=~A+1>>>0,W=~W+(A==0?1:0)>>>0),A=Oe(A,W),ce?"-"+A:A}p("jspb.utils.joinSignedDecimalString",Ne,void 0);function je(A,W){ve(A),A=j;var ce=F;return W?Ne(A,ce):Oe(A,ce)}p("jspb.utils.hash64ToDecimalString",je,void 0),p("jspb.utils.hash64ArrayToDecimalStrings",function(A,W){for(var ce=Array(A.length),Pe=0;Pe<A.length;Pe++)ce[Pe]=je(A[Pe],W);return ce},void 0);function ne(A){function W(Yt,Nn){for(var Jn=0;8>Jn&&(Yt!==1||0<Nn);Jn++)Nn=Yt*qe[Jn]+Nn,qe[Jn]=Nn&255,Nn>>>=8}function ce(){for(var Yt=0;8>Yt;Yt++)qe[Yt]=~qe[Yt]&255}x(0<A.length);var Pe=!1;A[0]==="-"&&(Pe=!0,A=A.slice(1));for(var qe=[0,0,0,0,0,0,0,0],gt=0;gt<A.length;gt++)W(10,A.charCodeAt(gt)-48);return Pe&&(ce(),W(1,1)),B(qe)}p("jspb.utils.decimalStringToHash64",ne,void 0),p("jspb.utils.splitDecimalString",function(A){ve(ne(A))},void 0);function J(A){return String.fromCharCode(10>A?48+A:87+A)}function ae(A){return 97<=A?A-97+10:A-48}p("jspb.utils.hash64ToHexString",function(A){var W=Array(18);W[0]="0",W[1]="x";for(var ce=0;8>ce;ce++){var Pe=A.charCodeAt(7-ce);W[2*ce+2]=J(Pe>>4),W[2*ce+3]=J(Pe&15)}return W.join("")},void 0),p("jspb.utils.hexStringToHash64",function(A){A=A.toLowerCase(),x(A.length==18),x(A[0]=="0"),x(A[1]=="x");for(var W="",ce=0;8>ce;ce++)W=String.fromCharCode(16*ae(A.charCodeAt(2*ce+2))+ae(A.charCodeAt(2*ce+3)))+W;return W},void 0),p("jspb.utils.hash64ToNumber",function(A,W){ve(A),A=j;var ce=F;return W?be(A,ce):he(A,ce)},void 0),p("jspb.utils.numberToHash64",function(A){return oe(A),Te(j,F)},void 0),p("jspb.utils.countVarints",function(A,W,ce){for(var Pe=0,qe=W;qe<ce;qe++)Pe+=A[qe]>>7;return ce-W-Pe},void 0),p("jspb.utils.countVarintFields",function(A,W,ce,Pe){var qe=0;if(Pe*=8,128>Pe)for(;W<ce&&A[W++]==Pe;)for(qe++;;){var gt=A[W++];if(!(gt&128))break}else for(;W<ce;){for(gt=Pe;128<gt;){if(A[W]!=(gt&127|128))return qe;W++,gt>>=7}if(A[W++]!=gt)break;for(qe++;gt=A[W++],(gt&128)!=0;);}return qe},void 0);function Se(A,W,ce,Pe,qe){var gt=0;if(128>Pe)for(;W<ce&&A[W++]==Pe;)gt++,W+=qe;else for(;W<ce;){for(var Yt=Pe;128<Yt;){if(A[W++]!=(Yt&127|128))return gt;Yt>>=7}if(A[W++]!=Yt)break;gt++,W+=qe}return gt}p("jspb.utils.countFixed32Fields",function(A,W,ce,Pe){return Se(A,W,ce,8*Pe+5,4)},void 0),p("jspb.utils.countFixed64Fields",function(A,W,ce,Pe){return Se(A,W,ce,8*Pe+1,8)},void 0),p("jspb.utils.countDelimitedFields",function(A,W,ce,Pe){var qe=0;for(Pe=8*Pe+2;W<ce;){for(var gt=Pe;128<gt;){if(A[W++]!=(gt&127|128))return qe;gt>>=7}if(A[W++]!=gt)break;qe++;for(var Yt=0,Nn=1;gt=A[W++],Yt+=(gt&127)*Nn,Nn*=128,(gt&128)!=0;);W+=Yt}return qe},void 0),p("jspb.utils.debugBytesToTextFormat",function(A){var W='"';if(A){A=xe(A);for(var ce=0;ce<A.length;ce++)W+="\\x",16>A[ce]&&(W+="0"),W+=A[ce].toString(16)}return W+'"'},void 0),p("jspb.utils.debugScalarToTextFormat",function(A){if(typeof A=="string"){A=String(A);for(var W=['"'],ce=0;ce<A.length;ce++){var Pe=A.charAt(ce),qe=Pe.charCodeAt(0),gt=ce+1,Yt;(Yt=Y[Pe])||(31<qe&&127>qe||(qe=Pe,qe in q?Pe=q[qe]:qe in Y?Pe=q[qe]=Y[qe]:(Yt=qe.charCodeAt(0),31<Yt&&127>Yt?Pe=qe:(256>Yt?(Pe="\\x",(16>Yt||256<Yt)&&(Pe+="0")):(Pe="\\u",4096>Yt&&(Pe+="0")),Pe+=Yt.toString(16).toUpperCase()),Pe=q[qe]=Pe)),Yt=Pe),W[gt]=Yt}W.push('"'),A=W.join("")}else A=A.toString();return A},void 0),p("jspb.utils.stringToByteArray",function(A){for(var W=new Uint8Array(A.length),ce=0;ce<A.length;ce++){var Pe=A.charCodeAt(ce);if(255<Pe)throw Error("Conversion error: string contains codepoint outside of byte range");W[ce]=Pe}return W},void 0);function xe(A){return A.constructor===Uint8Array?A:A.constructor===ArrayBuffer?new Uint8Array(A):A.constructor===Array?new Uint8Array(A):A.constructor===String?Q(A):A instanceof Uint8Array?new Uint8Array(A.buffer,A.byteOffset,A.byteLength):(O("Type not convertible to Uint8Array."),new Uint8Array(0))}p("jspb.utils.byteSourceToUint8Array",xe,void 0);function ue(A,W,ce){this.b=null,this.a=this.c=this.h=0,this.v=!1,A&&this.H(A,W,ce)}p("jspb.BinaryDecoder",ue,void 0);var Me=[];ue.getInstanceCacheLength=function(){return Me.length};function $e(A,W,ce){if(Me.length){var Pe=Me.pop();return A&&Pe.H(A,W,ce),Pe}return new ue(A,W,ce)}ue.alloc=$e,ue.prototype.Ca=function(){this.clear(),100>Me.length&&Me.push(this)},ue.prototype.free=ue.prototype.Ca,ue.prototype.clone=function(){return $e(this.b,this.h,this.c-this.h)},ue.prototype.clone=ue.prototype.clone,ue.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},ue.prototype.clear=ue.prototype.clear,ue.prototype.Y=function(){return this.b},ue.prototype.getBuffer=ue.prototype.Y,ue.prototype.H=function(A,W,ce){this.b=xe(A),this.h=W!==void 0?W:0,this.c=ce!==void 0?this.h+ce:this.b.length,this.a=this.h},ue.prototype.setBlock=ue.prototype.H,ue.prototype.Db=function(){return this.c},ue.prototype.getEnd=ue.prototype.Db,ue.prototype.setEnd=function(A){this.c=A},ue.prototype.setEnd=ue.prototype.setEnd,ue.prototype.reset=function(){this.a=this.h},ue.prototype.reset=ue.prototype.reset,ue.prototype.B=function(){return this.a},ue.prototype.getCursor=ue.prototype.B,ue.prototype.Ma=function(A){this.a=A},ue.prototype.setCursor=ue.prototype.Ma,ue.prototype.advance=function(A){this.a+=A,x(this.a<=this.c)},ue.prototype.advance=ue.prototype.advance,ue.prototype.ya=function(){return this.a==this.c},ue.prototype.atEnd=ue.prototype.ya,ue.prototype.Qb=function(){return this.a>this.c},ue.prototype.pastEnd=ue.prototype.Qb,ue.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},ue.prototype.getError=ue.prototype.getError,ue.prototype.w=function(A){for(var W=128,ce=0,Pe=0,qe=0;4>qe&&128<=W;qe++)W=this.b[this.a++],ce|=(W&127)<<7*qe;if(128<=W&&(W=this.b[this.a++],ce|=(W&127)<<28,Pe|=(W&127)>>4),128<=W)for(qe=0;5>qe&&128<=W;qe++)W=this.b[this.a++],Pe|=(W&127)<<7*qe+3;if(128>W)return A(ce>>>0,Pe>>>0);O("Failed to read varint, encoding is invalid."),this.v=!0},ue.prototype.readSplitVarint64=ue.prototype.w,ue.prototype.ea=function(A){return this.w(function(W,ce){return Ae(W,ce,A)})},ue.prototype.readSplitZigzagVarint64=ue.prototype.ea,ue.prototype.ta=function(A){var W=this.b,ce=this.a;this.a+=8;for(var Pe=0,qe=0,gt=ce+7;gt>=ce;gt--)Pe=Pe<<8|W[gt],qe=qe<<8|W[gt+4];return A(Pe,qe)},ue.prototype.readSplitFixed64=ue.prototype.ta,ue.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},ue.prototype.skipVarint=ue.prototype.kb,ue.prototype.mb=function(A){for(;128<A;)this.a--,A>>>=7;this.a--},ue.prototype.unskipVarint=ue.prototype.mb,ue.prototype.o=function(){var A=this.b,W=A[this.a],ce=W&127;return 128>W?(this.a+=1,x(this.a<=this.c),ce):(W=A[this.a+1],ce|=(W&127)<<7,128>W?(this.a+=2,x(this.a<=this.c),ce):(W=A[this.a+2],ce|=(W&127)<<14,128>W?(this.a+=3,x(this.a<=this.c),ce):(W=A[this.a+3],ce|=(W&127)<<21,128>W?(this.a+=4,x(this.a<=this.c),ce):(W=A[this.a+4],ce|=(W&15)<<28,128>W?(this.a+=5,x(this.a<=this.c),ce>>>0):(this.a+=5,128<=A[this.a++]&&128<=A[this.a++]&&128<=A[this.a++]&&128<=A[this.a++]&&128<=A[this.a++]&&x(!1),x(this.a<=this.c),ce)))))},ue.prototype.readUnsignedVarint32=ue.prototype.o,ue.prototype.da=function(){return~~this.o()},ue.prototype.readSignedVarint32=ue.prototype.da,ue.prototype.O=function(){return this.o().toString()},ue.prototype.Ea=function(){return this.da().toString()},ue.prototype.readSignedVarint32String=ue.prototype.Ea,ue.prototype.Ia=function(){var A=this.o();return A>>>1^-(A&1)},ue.prototype.readZigzagVarint32=ue.prototype.Ia,ue.prototype.Ga=function(){return this.w(he)},ue.prototype.readUnsignedVarint64=ue.prototype.Ga,ue.prototype.Ha=function(){return this.w(Oe)},ue.prototype.readUnsignedVarint64String=ue.prototype.Ha,ue.prototype.sa=function(){return this.w(be)},ue.prototype.readSignedVarint64=ue.prototype.sa,ue.prototype.Fa=function(){return this.w(Ne)},ue.prototype.readSignedVarint64String=ue.prototype.Fa,ue.prototype.Ja=function(){return this.w(De)},ue.prototype.readZigzagVarint64=ue.prototype.Ja,ue.prototype.fb=function(){return this.ea(Te)},ue.prototype.readZigzagVarintHash64=ue.prototype.fb,ue.prototype.Ka=function(){return this.ea(Ne)},ue.prototype.readZigzagVarint64String=ue.prototype.Ka,ue.prototype.Gc=function(){var A=this.b[this.a];return this.a+=1,x(this.a<=this.c),A},ue.prototype.readUint8=ue.prototype.Gc,ue.prototype.Ec=function(){var A=this.b[this.a],W=this.b[this.a+1];return this.a+=2,x(this.a<=this.c),A<<0|W<<8},ue.prototype.readUint16=ue.prototype.Ec,ue.prototype.m=function(){var A=this.b[this.a],W=this.b[this.a+1],ce=this.b[this.a+2],Pe=this.b[this.a+3];return this.a+=4,x(this.a<=this.c),(A<<0|W<<8|ce<<16|Pe<<24)>>>0},ue.prototype.readUint32=ue.prototype.m,ue.prototype.ga=function(){var A=this.m(),W=this.m();return he(A,W)},ue.prototype.readUint64=ue.prototype.ga,ue.prototype.ha=function(){var A=this.m(),W=this.m();return Oe(A,W)},ue.prototype.readUint64String=ue.prototype.ha,ue.prototype.Xb=function(){var A=this.b[this.a];return this.a+=1,x(this.a<=this.c),A<<24>>24},ue.prototype.readInt8=ue.prototype.Xb,ue.prototype.Vb=function(){var A=this.b[this.a],W=this.b[this.a+1];return this.a+=2,x(this.a<=this.c),(A<<0|W<<8)<<16>>16},ue.prototype.readInt16=ue.prototype.Vb,ue.prototype.P=function(){var A=this.b[this.a],W=this.b[this.a+1],ce=this.b[this.a+2],Pe=this.b[this.a+3];return this.a+=4,x(this.a<=this.c),A<<0|W<<8|ce<<16|Pe<<24},ue.prototype.readInt32=ue.prototype.P,ue.prototype.ba=function(){var A=this.m(),W=this.m();return be(A,W)},ue.prototype.readInt64=ue.prototype.ba,ue.prototype.ca=function(){var A=this.m(),W=this.m();return Ne(A,W)},ue.prototype.readInt64String=ue.prototype.ca,ue.prototype.aa=function(){var A=this.m();return Ee(A)},ue.prototype.readFloat=ue.prototype.aa,ue.prototype.Z=function(){var A=this.m(),W=this.m();return Re(A,W)},ue.prototype.readDouble=ue.prototype.Z,ue.prototype.pa=function(){return!!this.b[this.a++]},ue.prototype.readBool=ue.prototype.pa,ue.prototype.ra=function(){return this.da()},ue.prototype.readEnum=ue.prototype.ra,ue.prototype.fa=function(A){var W=this.b,ce=this.a;A=ce+A;for(var Pe=[],qe="";ce<A;){var gt=W[ce++];if(128>gt)Pe.push(gt);else{if(192>gt)continue;if(224>gt){var Yt=W[ce++];Pe.push((gt&31)<<6|Yt&63)}else if(240>gt){Yt=W[ce++];var Nn=W[ce++];Pe.push((gt&15)<<12|(Yt&63)<<6|Nn&63)}else if(248>gt){Yt=W[ce++],Nn=W[ce++];var Jn=W[ce++];gt=(gt&7)<<18|(Yt&63)<<12|(Nn&63)<<6|Jn&63,gt-=65536,Pe.push((gt>>10&1023)+55296,(gt&1023)+56320)}}8192<=Pe.length&&(qe+=String.fromCharCode.apply(null,Pe),Pe.length=0)}return qe+=B(Pe),this.a=ce,qe},ue.prototype.readString=ue.prototype.fa,ue.prototype.Dc=function(){var A=this.o();return this.fa(A)},ue.prototype.readStringWithLength=ue.prototype.Dc,ue.prototype.qa=function(A){if(0>A||this.a+A>this.b.length)return this.v=!0,O("Invalid byte length!"),new Uint8Array(0);var W=this.b.subarray(this.a,this.a+A);return this.a+=A,x(this.a<=this.c),W},ue.prototype.readBytes=ue.prototype.qa,ue.prototype.ia=function(){return this.w(Te)},ue.prototype.readVarintHash64=ue.prototype.ia,ue.prototype.$=function(){var A=this.b,W=this.a,ce=A[W],Pe=A[W+1],qe=A[W+2],gt=A[W+3],Yt=A[W+4],Nn=A[W+5],Jn=A[W+6];return A=A[W+7],this.a+=8,String.fromCharCode(ce,Pe,qe,gt,Yt,Nn,Jn,A)},ue.prototype.readFixedHash64=ue.prototype.$;function ge(A,W,ce){this.a=$e(A,W,ce),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}p("jspb.BinaryReader",ge,void 0);var Ve=[];ge.clearInstanceCache=function(){Ve=[]},ge.getInstanceCacheLength=function(){return Ve.length};function st(A,W,ce){if(Ve.length){var Pe=Ve.pop();return A&&Pe.a.H(A,W,ce),Pe}return new ge(A,W,ce)}ge.alloc=st,ge.prototype.zb=st,ge.prototype.alloc=ge.prototype.zb,ge.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>Ve.length&&Ve.push(this)},ge.prototype.free=ge.prototype.Ca,ge.prototype.Fb=function(){return this.O},ge.prototype.getFieldCursor=ge.prototype.Fb,ge.prototype.B=function(){return this.a.B()},ge.prototype.getCursor=ge.prototype.B,ge.prototype.Y=function(){return this.a.Y()},ge.prototype.getBuffer=ge.prototype.Y,ge.prototype.Hb=function(){return this.c},ge.prototype.getFieldNumber=ge.prototype.Hb,ge.prototype.Lb=function(){return this.b},ge.prototype.getWireType=ge.prototype.Lb,ge.prototype.Mb=function(){return this.b==2},ge.prototype.isDelimited=ge.prototype.Mb,ge.prototype.bb=function(){return this.b==4},ge.prototype.isEndGroup=ge.prototype.bb,ge.prototype.getError=function(){return this.h||this.a.getError()},ge.prototype.getError=ge.prototype.getError,ge.prototype.H=function(A,W,ce){this.a.H(A,W,ce),this.b=this.c=-1},ge.prototype.setBlock=ge.prototype.H,ge.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ge.prototype.reset=ge.prototype.reset,ge.prototype.advance=function(A){this.a.advance(A)},ge.prototype.advance=ge.prototype.advance,ge.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return O("Decoder hit an error"),!1;this.O=this.a.B();var A=this.a.o(),W=A>>>3;return A&=7,A!=0&&A!=5&&A!=1&&A!=2&&A!=3&&A!=4?(O("Invalid wire type: %s (at position %s)",A,this.O),this.h=!0,!1):(this.c=W,this.b=A,!0)},ge.prototype.nextField=ge.prototype.oa,ge.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ge.prototype.unskipHeader=ge.prototype.Oa,ge.prototype.Lc=function(){var A=this.c;for(this.Oa();this.oa()&&this.c==A;)this.C();this.a.ya()||this.Oa()},ge.prototype.skipMatchingFields=ge.prototype.Lc,ge.prototype.lb=function(){this.b!=0?(O("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ge.prototype.skipVarintField=ge.prototype.lb,ge.prototype.gb=function(){if(this.b!=2)O("Invalid wire type for skipDelimitedField"),this.C();else{var A=this.a.o();this.a.advance(A)}},ge.prototype.skipDelimitedField=ge.prototype.gb,ge.prototype.hb=function(){this.b!=5?(O("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ge.prototype.skipFixed32Field=ge.prototype.hb,ge.prototype.ib=function(){this.b!=1?(O("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ge.prototype.skipFixed64Field=ge.prototype.ib,ge.prototype.jb=function(){var A=this.c;do{if(!this.oa()){O("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=A&&(O("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},ge.prototype.skipGroup=ge.prototype.jb,ge.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:O("Invalid wire encoding for field.")}},ge.prototype.skipField=ge.prototype.C,ge.prototype.Hc=function(A,W){this.v===null&&(this.v={}),x(!this.v[A]),this.v[A]=W},ge.prototype.registerReadCallback=ge.prototype.Hc,ge.prototype.Ic=function(A){return x(this.v!==null),A=this.v[A],x(A),A(this)},ge.prototype.runReadCallback=ge.prototype.Ic,ge.prototype.Yb=function(A,W){x(this.b==2);var ce=this.a.c,Pe=this.a.o();Pe=this.a.B()+Pe,this.a.setEnd(Pe),W(A,this),this.a.Ma(Pe),this.a.setEnd(ce)},ge.prototype.readMessage=ge.prototype.Yb,ge.prototype.Ub=function(A,W,ce){x(this.b==3),x(this.c==A),ce(W,this),this.h||this.b==4||(O("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ge.prototype.readGroup=ge.prototype.Ub,ge.prototype.Gb=function(){x(this.b==2);var A=this.a.o(),W=this.a.B(),ce=W+A;return A=$e(this.a.Y(),W,A),this.a.Ma(ce),A},ge.prototype.getFieldDecoder=ge.prototype.Gb,ge.prototype.P=function(){return x(this.b==0),this.a.da()},ge.prototype.readInt32=ge.prototype.P,ge.prototype.Wb=function(){return x(this.b==0),this.a.Ea()},ge.prototype.readInt32String=ge.prototype.Wb,ge.prototype.ba=function(){return x(this.b==0),this.a.sa()},ge.prototype.readInt64=ge.prototype.ba,ge.prototype.ca=function(){return x(this.b==0),this.a.Fa()},ge.prototype.readInt64String=ge.prototype.ca,ge.prototype.m=function(){return x(this.b==0),this.a.o()},ge.prototype.readUint32=ge.prototype.m,ge.prototype.Fc=function(){return x(this.b==0),this.a.O()},ge.prototype.readUint32String=ge.prototype.Fc,ge.prototype.ga=function(){return x(this.b==0),this.a.Ga()},ge.prototype.readUint64=ge.prototype.ga,ge.prototype.ha=function(){return x(this.b==0),this.a.Ha()},ge.prototype.readUint64String=ge.prototype.ha,ge.prototype.zc=function(){return x(this.b==0),this.a.Ia()},ge.prototype.readSint32=ge.prototype.zc,ge.prototype.Ac=function(){return x(this.b==0),this.a.Ja()},ge.prototype.readSint64=ge.prototype.Ac,ge.prototype.Bc=function(){return x(this.b==0),this.a.Ka()},ge.prototype.readSint64String=ge.prototype.Bc,ge.prototype.Rb=function(){return x(this.b==5),this.a.m()},ge.prototype.readFixed32=ge.prototype.Rb,ge.prototype.Sb=function(){return x(this.b==1),this.a.ga()},ge.prototype.readFixed64=ge.prototype.Sb,ge.prototype.Tb=function(){return x(this.b==1),this.a.ha()},ge.prototype.readFixed64String=ge.prototype.Tb,ge.prototype.vc=function(){return x(this.b==5),this.a.P()},ge.prototype.readSfixed32=ge.prototype.vc,ge.prototype.wc=function(){return x(this.b==5),this.a.P().toString()},ge.prototype.readSfixed32String=ge.prototype.wc,ge.prototype.xc=function(){return x(this.b==1),this.a.ba()},ge.prototype.readSfixed64=ge.prototype.xc,ge.prototype.yc=function(){return x(this.b==1),this.a.ca()},ge.prototype.readSfixed64String=ge.prototype.yc,ge.prototype.aa=function(){return x(this.b==5),this.a.aa()},ge.prototype.readFloat=ge.prototype.aa,ge.prototype.Z=function(){return x(this.b==1),this.a.Z()},ge.prototype.readDouble=ge.prototype.Z,ge.prototype.pa=function(){return x(this.b==0),!!this.a.o()},ge.prototype.readBool=ge.prototype.pa,ge.prototype.ra=function(){return x(this.b==0),this.a.sa()},ge.prototype.readEnum=ge.prototype.ra,ge.prototype.fa=function(){x(this.b==2);var A=this.a.o();return this.a.fa(A)},ge.prototype.readString=ge.prototype.fa,ge.prototype.qa=function(){x(this.b==2);var A=this.a.o();return this.a.qa(A)},ge.prototype.readBytes=ge.prototype.qa,ge.prototype.ia=function(){return x(this.b==0),this.a.ia()},ge.prototype.readVarintHash64=ge.prototype.ia,ge.prototype.Cc=function(){return x(this.b==0),this.a.fb()},ge.prototype.readSintHash64=ge.prototype.Cc,ge.prototype.w=function(A){return x(this.b==0),this.a.w(A)},ge.prototype.readSplitVarint64=ge.prototype.w,ge.prototype.ea=function(A){return x(this.b==0),this.a.w(function(W,ce){return Ae(W,ce,A)})},ge.prototype.readSplitZigzagVarint64=ge.prototype.ea,ge.prototype.$=function(){return x(this.b==1),this.a.$()},ge.prototype.readFixedHash64=ge.prototype.$,ge.prototype.ta=function(A){return x(this.b==1),this.a.ta(A)},ge.prototype.readSplitFixed64=ge.prototype.ta;function Je(A,W){x(A.b==2);var ce=A.a.o();ce=A.a.B()+ce;for(var Pe=[];A.a.B()<ce;)Pe.push(W.call(A.a));return Pe}ge.prototype.gc=function(){return Je(this,this.a.da)},ge.prototype.readPackedInt32=ge.prototype.gc,ge.prototype.hc=function(){return Je(this,this.a.Ea)},ge.prototype.readPackedInt32String=ge.prototype.hc,ge.prototype.ic=function(){return Je(this,this.a.sa)},ge.prototype.readPackedInt64=ge.prototype.ic,ge.prototype.jc=function(){return Je(this,this.a.Fa)},ge.prototype.readPackedInt64String=ge.prototype.jc,ge.prototype.qc=function(){return Je(this,this.a.o)},ge.prototype.readPackedUint32=ge.prototype.qc,ge.prototype.rc=function(){return Je(this,this.a.O)},ge.prototype.readPackedUint32String=ge.prototype.rc,ge.prototype.sc=function(){return Je(this,this.a.Ga)},ge.prototype.readPackedUint64=ge.prototype.sc,ge.prototype.tc=function(){return Je(this,this.a.Ha)},ge.prototype.readPackedUint64String=ge.prototype.tc,ge.prototype.nc=function(){return Je(this,this.a.Ia)},ge.prototype.readPackedSint32=ge.prototype.nc,ge.prototype.oc=function(){return Je(this,this.a.Ja)},ge.prototype.readPackedSint64=ge.prototype.oc,ge.prototype.pc=function(){return Je(this,this.a.Ka)},ge.prototype.readPackedSint64String=ge.prototype.pc,ge.prototype.bc=function(){return Je(this,this.a.m)},ge.prototype.readPackedFixed32=ge.prototype.bc,ge.prototype.cc=function(){return Je(this,this.a.ga)},ge.prototype.readPackedFixed64=ge.prototype.cc,ge.prototype.dc=function(){return Je(this,this.a.ha)},ge.prototype.readPackedFixed64String=ge.prototype.dc,ge.prototype.kc=function(){return Je(this,this.a.P)},ge.prototype.readPackedSfixed32=ge.prototype.kc,ge.prototype.lc=function(){return Je(this,this.a.ba)},ge.prototype.readPackedSfixed64=ge.prototype.lc,ge.prototype.mc=function(){return Je(this,this.a.ca)},ge.prototype.readPackedSfixed64String=ge.prototype.mc,ge.prototype.fc=function(){return Je(this,this.a.aa)},ge.prototype.readPackedFloat=ge.prototype.fc,ge.prototype.$b=function(){return Je(this,this.a.Z)},ge.prototype.readPackedDouble=ge.prototype.$b,ge.prototype.Zb=function(){return Je(this,this.a.pa)},ge.prototype.readPackedBool=ge.prototype.Zb,ge.prototype.ac=function(){return Je(this,this.a.ra)},ge.prototype.readPackedEnum=ge.prototype.ac,ge.prototype.uc=function(){return Je(this,this.a.ia)},ge.prototype.readPackedVarintHash64=ge.prototype.uc,ge.prototype.ec=function(){return Je(this,this.a.$)},ge.prototype.readPackedFixedHash64=ge.prototype.ec;function ot(A,W,ce,Pe,qe){this.ma=A,this.Ba=W,this.la=ce,this.Na=Pe,this.na=qe}p("jspb.ExtensionFieldInfo",ot,void 0);function Xe(A,W,ce,Pe,qe,gt){this.Za=A,this.za=W,this.Aa=ce,this.Wa=Pe,this.Ab=qe,this.Nb=gt}p("jspb.ExtensionFieldBinaryInfo",Xe,void 0),ot.prototype.F=function(){return!!this.la},ot.prototype.isMessageType=ot.prototype.F;function Ze(){}p("jspb.Message",Ze,void 0),Ze.GENERATE_TO_OBJECT=!0,Ze.GENERATE_FROM_OBJECT=!0;var bt=typeof Uint8Array=="function";Ze.prototype.Ib=function(){return this.b},Ze.prototype.getJsPbMessageId=Ze.prototype.Ib,Ze.initialize=function(A,W,ce,Pe,qe,gt){A.f=null,W||(W=ce?[ce]:[]),A.b=ce?String(ce):void 0,A.D=ce===0?-1:0,A.u=W;e:{if(ce=A.u.length,W=-1,ce&&(W=ce-1,ce=A.u[W],!(ce===null||typeof ce!="object"||Array.isArray(ce)||bt&&ce instanceof Uint8Array))){A.G=W-A.D,A.i=ce;break e}-1<Pe?(A.G=Math.max(Pe,W+1-A.D),A.i=null):A.G=Number.MAX_VALUE}if(A.a={},qe)for(Pe=0;Pe<qe.length;Pe++)W=qe[Pe],W<A.G?(W+=A.D,A.u[W]=A.u[W]||at):(pt(A),A.i[W]=A.i[W]||at);if(gt&>.length)for(Pe=0;Pe<gt.length;Pe++)Dt(A,gt[Pe])};var at=Object.freeze?Object.freeze([]):[];function pt(A){var W=A.G+A.D;A.u[W]||(A.i=A.u[W]={})}function Ct(A,W,ce){for(var Pe=[],qe=0;qe<A.length;qe++)Pe[qe]=W.call(A[qe],ce,A[qe]);return Pe}Ze.toObjectList=Ct,Ze.toObjectExtension=function(A,W,ce,Pe,qe){for(var gt in ce){var Yt=ce[gt],Nn=Pe.call(A,Yt);if(Nn!=null){for(var Jn in Yt.Ba)if(Yt.Ba.hasOwnProperty(Jn))break;W[Jn]=Yt.Na?Yt.na?Ct(Nn,Yt.Na,qe):Yt.Na(qe,Nn):Nn}}},Ze.serializeBinaryExtensions=function(A,W,ce,Pe){for(var qe in ce){var gt=ce[qe],Yt=gt.Za;if(!gt.Aa)throw Error("Message extension present that was generated without binary serialization support");var Nn=Pe.call(A,Yt);if(Nn!=null)if(Yt.F())if(gt.Wa)gt.Aa.call(W,Yt.ma,Nn,gt.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else gt.Aa.call(W,Yt.ma,Nn)}},Ze.readBinaryExtension=function(A,W,ce,Pe,qe){var gt=ce[W.c];if(gt){if(ce=gt.Za,!gt.za)throw Error("Deserializing extension whose generated code does not support binary format");if(ce.F()){var Yt=new ce.la;gt.za.call(W,Yt,gt.Ab)}else Yt=gt.za.call(W);ce.na&&!gt.Nb?(W=Pe.call(A,ce))?W.push(Yt):qe.call(A,ce,[Yt]):qe.call(A,ce,Yt)}else W.C()};function It(A,W){if(W<A.G){W+=A.D;var ce=A.u[W];return ce===at?A.u[W]=[]:ce}if(A.i)return ce=A.i[W],ce===at?A.i[W]=[]:ce}Ze.getField=It,Ze.getRepeatedField=function(A,W){return It(A,W)};function Wt(A,W){return A=It(A,W),A==null?A:+A}Ze.getOptionalFloatingPointField=Wt;function Bt(A,W){return A=It(A,W),A==null?A:!!A}Ze.getBooleanField=Bt,Ze.getRepeatedFloatingPointField=function(A,W){var ce=It(A,W);if(A.a||(A.a={}),!A.a[W]){for(var Pe=0;Pe<ce.length;Pe++)ce[Pe]=+ce[Pe];A.a[W]=!0}return ce},Ze.getRepeatedBooleanField=function(A,W){var ce=It(A,W);if(A.a||(A.a={}),!A.a[W]){for(var Pe=0;Pe<ce.length;Pe++)ce[Pe]=!!ce[Pe];A.a[W]=!0}return ce};function Vt(A){return A==null||typeof A=="string"?A:bt&&A instanceof Uint8Array?G(A):(O("Cannot coerce to b64 string: "+h(A)),null)}Ze.bytesAsB64=Vt;function rn(A){return A==null||A instanceof Uint8Array?A:typeof A=="string"?Q(A):(O("Cannot coerce to Uint8Array: "+h(A)),null)}Ze.bytesAsU8=rn,Ze.bytesListAsB64=function(A){return tt(A),A.length&&typeof A[0]!="string"?E(A,Vt):A},Ze.bytesListAsU8=function(A){return tt(A),!A.length||A[0]instanceof Uint8Array?A:E(A,rn)};function tt(A){if(A&&1<A.length){var W=h(A[0]);b(A,function(ce){h(ce)!=W&&O("Inconsistent type in JSPB repeated field array. Got "+h(ce)+" expected "+W)})}}function it(A,W,ce){return A=It(A,W),A??ce}Ze.getFieldWithDefault=it,Ze.getBooleanFieldWithDefault=function(A,W,ce){return A=Bt(A,W),A??ce},Ze.getFloatingPointFieldWithDefault=function(A,W,ce){return A=Wt(A,W),A??ce},Ze.getFieldProto3=it,Ze.getMapField=function(A,W,ce,Pe){if(A.f||(A.f={}),W in A.f)return A.f[W];var qe=It(A,W);if(!qe){if(ce)return;qe=[],nt(A,W,qe)}return A.f[W]=new k(qe,Pe)};function nt(A,W,ce){return M(A,Ze),W<A.G?A.u[W+A.D]=ce:(pt(A),A.i[W]=ce),A}Ze.setField=nt,Ze.setProto3IntField=function(A,W,ce){return vt(A,W,ce,0)},Ze.setProto3FloatField=function(A,W,ce){return vt(A,W,ce,0)},Ze.setProto3BooleanField=function(A,W,ce){return vt(A,W,ce,!1)},Ze.setProto3StringField=function(A,W,ce){return vt(A,W,ce,"")},Ze.setProto3BytesField=function(A,W,ce){return vt(A,W,ce,"")},Ze.setProto3EnumField=function(A,W,ce){return vt(A,W,ce,0)},Ze.setProto3StringIntField=function(A,W,ce){return vt(A,W,ce,"0")};function vt(A,W,ce,Pe){return M(A,Ze),ce!==Pe?nt(A,W,ce):W<A.G?A.u[W+A.D]=null:(pt(A),delete A.i[W]),A}Ze.addToRepeatedField=function(A,W,ce,Pe){return M(A,Ze),W=It(A,W),Pe!=null?W.splice(Pe,0,ce):W.push(ce),A};function kt(A,W,ce,Pe){return M(A,Ze),(ce=Dt(A,ce))&&ce!==W&&Pe!==void 0&&(A.f&&ce in A.f&&(A.f[ce]=void 0),nt(A,ce,void 0)),nt(A,W,Pe)}Ze.setOneofField=kt;function Dt(A,W){for(var ce,Pe,qe=0;qe<W.length;qe++){var gt=W[qe],Yt=It(A,gt);Yt!=null&&(ce=gt,Pe=Yt,nt(A,gt,void 0))}return ce?(nt(A,ce,Pe),ce):0}Ze.computeOneofCase=Dt,Ze.getWrapperField=function(A,W,ce,Pe){if(A.f||(A.f={}),!A.f[ce]){var qe=It(A,ce);(Pe||qe)&&(A.f[ce]=new W(qe))}return A.f[ce]},Ze.getRepeatedWrapperField=function(A,W,ce){return Kt(A,W,ce),W=A.f[ce],W==at&&(W=A.f[ce]=[]),W};function Kt(A,W,ce){if(A.f||(A.f={}),!A.f[ce]){for(var Pe=It(A,ce),qe=[],gt=0;gt<Pe.length;gt++)qe[gt]=new W(Pe[gt]);A.f[ce]=qe}}Ze.setWrapperField=function(A,W,ce){M(A,Ze),A.f||(A.f={});var Pe=ce&&ce.g();return A.f[W]=ce,nt(A,W,Pe)},Ze.setOneofWrapperField=function(A,W,ce,Pe){M(A,Ze),A.f||(A.f={});var qe=Pe&&Pe.g();return A.f[W]=Pe,kt(A,W,ce,qe)},Ze.setRepeatedWrapperField=function(A,W,ce){M(A,Ze),A.f||(A.f={}),ce=ce||[];for(var Pe=[],qe=0;qe<ce.length;qe++)Pe[qe]=ce[qe].g();return A.f[W]=ce,nt(A,W,Pe)},Ze.addToRepeatedWrapperField=function(A,W,ce,Pe,qe){Kt(A,Pe,W);var gt=A.f[W];return gt||(gt=A.f[W]=[]),ce=ce||new Pe,A=It(A,W),qe!=null?(gt.splice(qe,0,ce),A.splice(qe,0,ce.g())):(gt.push(ce),A.push(ce.g())),ce},Ze.toMap=function(A,W,ce,Pe){for(var qe={},gt=0;gt<A.length;gt++)qe[W.call(A[gt])]=ce?ce.call(A[gt],Pe,A[gt]):A[gt];return qe};function Ht(A){if(A.f)for(var W in A.f){var ce=A.f[W];if(Array.isArray(ce))for(var Pe=0;Pe<ce.length;Pe++)ce[Pe]&&ce[Pe].g();else ce&&ce.g()}}Ze.prototype.g=function(){return Ht(this),this.u},Ze.prototype.toArray=Ze.prototype.g,Ze.prototype.toString=function(){return Ht(this),this.u.toString()},Ze.prototype.getExtension=function(A){if(this.i){this.f||(this.f={});var W=A.ma;if(A.na){if(A.F())return this.f[W]||(this.f[W]=E(this.i[W]||[],function(ce){return new A.la(ce)})),this.f[W]}else if(A.F())return!this.f[W]&&this.i[W]&&(this.f[W]=new A.la(this.i[W])),this.f[W];return this.i[W]}},Ze.prototype.getExtension=Ze.prototype.getExtension,Ze.prototype.Kc=function(A,W){this.f||(this.f={}),pt(this);var ce=A.ma;return A.na?(W=W||[],A.F()?(this.f[ce]=W,this.i[ce]=E(W,function(Pe){return Pe.g()})):this.i[ce]=W):A.F()?(this.f[ce]=W,this.i[ce]=W&&W.g()):this.i[ce]=W,this},Ze.prototype.setExtension=Ze.prototype.Kc,Ze.difference=function(A,W){if(!(A instanceof W.constructor))throw Error("Messages have different types.");var ce=A.g();W=W.g();var Pe=[],qe=0,gt=ce.length>W.length?ce.length:W.length;for(A.b&&(Pe[0]=A.b,qe=1);qe<gt;qe++)on(ce[qe],W[qe])||(Pe[qe]=W[qe]);return new A.constructor(Pe)},Ze.equals=function(A,W){return A==W||!(!A||!W)&&A instanceof W.constructor&&on(A.g(),W.g())};function tn(A,W){A=A||{},W=W||{};var ce={},Pe;for(Pe in A)ce[Pe]=0;for(Pe in W)ce[Pe]=0;for(Pe in ce)if(!on(A[Pe],W[Pe]))return!1;return!0}Ze.compareExtensions=tn;function on(A,W){if(A==W)return!0;if(!g(A)||!g(W))return typeof A=="number"&&isNaN(A)||typeof W=="number"&&isNaN(W)?String(A)==String(W):!1;if(A.constructor!=W.constructor)return!1;if(bt&&A.constructor===Uint8Array){if(A.length!=W.length)return!1;for(var ce=0;ce<A.length;ce++)if(A[ce]!=W[ce])return!1;return!0}if(A.constructor===Array){var Pe=void 0,qe=void 0,gt=Math.max(A.length,W.length);for(ce=0;ce<gt;ce++){var Yt=A[ce],Nn=W[ce];if(Yt&&Yt.constructor==Object&&(x(Pe===void 0),x(ce===A.length-1),Pe=Yt,Yt=void 0),Nn&&Nn.constructor==Object&&(x(qe===void 0),x(ce===W.length-1),qe=Nn,Nn=void 0),!on(Yt,Nn))return!1}return Pe||qe?(Pe=Pe||{},qe=qe||{},tn(Pe,qe)):!0}if(A.constructor===Object)return tn(A,W);throw Error("Invalid type in JSPB array")}Ze.compareFields=on,Ze.prototype.Bb=function(){return sn(this)},Ze.prototype.cloneMessage=Ze.prototype.Bb,Ze.prototype.clone=function(){return sn(this)},Ze.prototype.clone=Ze.prototype.clone,Ze.clone=function(A){return sn(A)};function sn(A){return new A.constructor(Jt(A.g()))}Ze.copyInto=function(A,W){M(A,Ze),M(W,Ze),x(A.constructor==W.constructor,"Copy source and target message should have the same type."),A=sn(A);for(var ce=W.g(),Pe=A.g(),qe=ce.length=0;qe<Pe.length;qe++)ce[qe]=Pe[qe];W.f=A.f,W.i=A.i};function Jt(A){if(Array.isArray(A)){for(var W=Array(A.length),ce=0;ce<A.length;ce++){var Pe=A[ce];Pe!=null&&(W[ce]=typeof Pe=="object"?Jt(x(Pe)):Pe)}return W}if(bt&&A instanceof Uint8Array)return new Uint8Array(A);W={};for(ce in A)Pe=A[ce],Pe!=null&&(W[ce]=typeof Pe=="object"?Jt(x(Pe)):Pe);return W}Ze.registerMessageType=function(A,W){W.we=A};var En={dump:function(A){return M(A,Ze,"jspb.Message instance expected"),x(A.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),En.X(A)}};p("jspb.debug.dump",En.dump,void 0),En.X=function(A){var W=h(A);if(W=="number"||W=="string"||W=="boolean"||W=="null"||W=="undefined"||typeof Uint8Array<"u"&&A instanceof Uint8Array)return A;if(W=="array")return R(A),E(A,En.X);if(A instanceof k){var ce={};A=A.entries();for(var Pe=A.next();!Pe.done;Pe=A.next())ce[Pe.value[0]]=En.X(Pe.value[1]);return ce}M(A,Ze,"Only messages expected: "+A),W=A.constructor;var qe={$name:W.name||W.displayName};for(Nn in W.prototype){var gt=/^get([A-Z]\w*)/.exec(Nn);if(gt&&Nn!="getExtension"&&Nn!="getJsPbMessageId"){var Yt="has"+gt[1];(!A[Yt]||A[Yt]())&&(Yt=A[Nn](),qe[En.$a(gt[1])]=En.X(Yt))}}if(A.extensionObject_)return qe.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",qe;for(Pe in W.extensions)if(/^\d+$/.test(Pe)){Yt=W.extensions[Pe];var Nn=A.getExtension(Yt);gt=void 0,Yt=Yt.Ba;var Jn=[],Ci=0;for(gt in Yt)Jn[Ci++]=gt;gt=Jn[0],Nn!=null&&(ce||(ce=qe.$extensions={}),ce[En.$a(gt)]=En.X(Nn))}return qe},En.$a=function(A){return A.replace(/^[A-Z]/,function(W){return W.toLowerCase()})};function Pt(){this.a=[]}p("jspb.BinaryEncoder",Pt,void 0),Pt.prototype.length=function(){return this.a.length},Pt.prototype.length=Pt.prototype.length,Pt.prototype.end=function(){var A=this.a;return this.a=[],A},Pt.prototype.end=Pt.prototype.end,Pt.prototype.l=function(A,W){for(x(A==Math.floor(A)),x(W==Math.floor(W)),x(0<=A&&4294967296>A),x(0<=W&&4294967296>W);0<W||127<A;)this.a.push(A&127|128),A=(A>>>7|W<<25)>>>0,W>>>=7;this.a.push(A)},Pt.prototype.writeSplitVarint64=Pt.prototype.l,Pt.prototype.A=function(A,W){x(A==Math.floor(A)),x(W==Math.floor(W)),x(0<=A&&4294967296>A),x(0<=W&&4294967296>W),this.s(A),this.s(W)},Pt.prototype.writeSplitFixed64=Pt.prototype.A,Pt.prototype.j=function(A){for(x(A==Math.floor(A)),x(0<=A&&4294967296>A);127<A;)this.a.push(A&127|128),A>>>=7;this.a.push(A)},Pt.prototype.writeUnsignedVarint32=Pt.prototype.j,Pt.prototype.M=function(A){if(x(A==Math.floor(A)),x(-2147483648<=A&&2147483648>A),0<=A)this.j(A);else{for(var W=0;9>W;W++)this.a.push(A&127|128),A>>=7;this.a.push(1)}},Pt.prototype.writeSignedVarint32=Pt.prototype.M,Pt.prototype.va=function(A){x(A==Math.floor(A)),x(0<=A&&18446744073709552e3>A),oe(A),this.l(j,F)},Pt.prototype.writeUnsignedVarint64=Pt.prototype.va,Pt.prototype.ua=function(A){x(A==Math.floor(A)),x(-9223372036854776e3<=A&&9223372036854776e3>A),oe(A),this.l(j,F)},Pt.prototype.writeSignedVarint64=Pt.prototype.ua,Pt.prototype.wa=function(A){x(A==Math.floor(A)),x(-2147483648<=A&&2147483648>A),this.j((A<<1^A>>31)>>>0)},Pt.prototype.writeZigzagVarint32=Pt.prototype.wa,Pt.prototype.xa=function(A){x(A==Math.floor(A)),x(-9223372036854776e3<=A&&9223372036854776e3>A),de(A),this.l(j,F)},Pt.prototype.writeZigzagVarint64=Pt.prototype.xa,Pt.prototype.Ta=function(A){this.W(ne(A))},Pt.prototype.writeZigzagVarint64String=Pt.prototype.Ta,Pt.prototype.W=function(A){var W=this;ve(A),we(j,F,function(ce,Pe){W.l(ce>>>0,Pe>>>0)})},Pt.prototype.writeZigzagVarintHash64=Pt.prototype.W,Pt.prototype.be=function(A){x(A==Math.floor(A)),x(0<=A&&256>A),this.a.push(A>>>0&255)},Pt.prototype.writeUint8=Pt.prototype.be,Pt.prototype.ae=function(A){x(A==Math.floor(A)),x(0<=A&&65536>A),this.a.push(A>>>0&255),this.a.push(A>>>8&255)},Pt.prototype.writeUint16=Pt.prototype.ae,Pt.prototype.s=function(A){x(A==Math.floor(A)),x(0<=A&&4294967296>A),this.a.push(A>>>0&255),this.a.push(A>>>8&255),this.a.push(A>>>16&255),this.a.push(A>>>24&255)},Pt.prototype.writeUint32=Pt.prototype.s,Pt.prototype.V=function(A){x(A==Math.floor(A)),x(0<=A&&18446744073709552e3>A),te(A),this.s(j),this.s(F)},Pt.prototype.writeUint64=Pt.prototype.V,Pt.prototype.Qc=function(A){x(A==Math.floor(A)),x(-128<=A&&128>A),this.a.push(A>>>0&255)},Pt.prototype.writeInt8=Pt.prototype.Qc,Pt.prototype.Pc=function(A){x(A==Math.floor(A)),x(-32768<=A&&32768>A),this.a.push(A>>>0&255),this.a.push(A>>>8&255)},Pt.prototype.writeInt16=Pt.prototype.Pc,Pt.prototype.S=function(A){x(A==Math.floor(A)),x(-2147483648<=A&&2147483648>A),this.a.push(A>>>0&255),this.a.push(A>>>8&255),this.a.push(A>>>16&255),this.a.push(A>>>24&255)},Pt.prototype.writeInt32=Pt.prototype.S,Pt.prototype.T=function(A){x(A==Math.floor(A)),x(-9223372036854776e3<=A&&9223372036854776e3>A),oe(A),this.A(j,F)},Pt.prototype.writeInt64=Pt.prototype.T,Pt.prototype.ka=function(A){x(A==Math.floor(A)),x(-9223372036854776e3<=+A&&9223372036854776e3>+A),ve(ne(A)),this.A(j,F)},Pt.prototype.writeInt64String=Pt.prototype.ka,Pt.prototype.L=function(A){x(A===1/0||A===-1/0||isNaN(A)||-34028234663852886e22<=A&&34028234663852886e22>=A),pe(A),this.s(j)},Pt.prototype.writeFloat=Pt.prototype.L,Pt.prototype.J=function(A){x(A===1/0||A===-1/0||isNaN(A)||-17976931348623157e292<=A&&17976931348623157e292>=A),me(A),this.s(j),this.s(F)},Pt.prototype.writeDouble=Pt.prototype.J,Pt.prototype.I=function(A){x(typeof A=="boolean"||typeof A=="number"),this.a.push(A?1:0)},Pt.prototype.writeBool=Pt.prototype.I,Pt.prototype.R=function(A){x(A==Math.floor(A)),x(-2147483648<=A&&2147483648>A),this.M(A)},Pt.prototype.writeEnum=Pt.prototype.R,Pt.prototype.ja=function(A){this.a.push.apply(this.a,A)},Pt.prototype.writeBytes=Pt.prototype.ja,Pt.prototype.N=function(A){ve(A),this.l(j,F)},Pt.prototype.writeVarintHash64=Pt.prototype.N,Pt.prototype.K=function(A){ve(A),this.s(j),this.s(F)},Pt.prototype.writeFixedHash64=Pt.prototype.K,Pt.prototype.U=function(A){var W=this.a.length;T(A);for(var ce=0;ce<A.length;ce++){var Pe=A.charCodeAt(ce);if(128>Pe)this.a.push(Pe);else if(2048>Pe)this.a.push(Pe>>6|192),this.a.push(Pe&63|128);else if(65536>Pe)if(55296<=Pe&&56319>=Pe&&ce+1<A.length){var qe=A.charCodeAt(ce+1);56320<=qe&&57343>=qe&&(Pe=1024*(Pe-55296)+qe-56320+65536,this.a.push(Pe>>18|240),this.a.push(Pe>>12&63|128),this.a.push(Pe>>6&63|128),this.a.push(Pe&63|128),ce++)}else this.a.push(Pe>>12|224),this.a.push(Pe>>6&63|128),this.a.push(Pe&63|128)}return this.a.length-W},Pt.prototype.writeString=Pt.prototype.U;function Qt(A,W){this.lo=A,this.hi=W}p("jspb.arith.UInt64",Qt,void 0),Qt.prototype.cmp=function(A){return this.hi<A.hi||this.hi==A.hi&&this.lo<A.lo?-1:this.hi==A.hi&&this.lo==A.lo?0:1},Qt.prototype.cmp=Qt.prototype.cmp,Qt.prototype.La=function(){return new Qt((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},Qt.prototype.rightShift=Qt.prototype.La,Qt.prototype.Da=function(){return new Qt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},Qt.prototype.leftShift=Qt.prototype.Da,Qt.prototype.cb=function(){return!!(this.hi&2147483648)},Qt.prototype.msb=Qt.prototype.cb,Qt.prototype.Ob=function(){return!!(this.lo&1)},Qt.prototype.lsb=Qt.prototype.Ob,Qt.prototype.Ua=function(){return this.lo==0&&this.hi==0},Qt.prototype.zero=Qt.prototype.Ua,Qt.prototype.add=function(A){return new Qt((this.lo+A.lo&4294967295)>>>0>>>0,((this.hi+A.hi&4294967295)>>>0)+(4294967296<=this.lo+A.lo?1:0)>>>0)},Qt.prototype.add=Qt.prototype.add,Qt.prototype.sub=function(A){return new Qt((this.lo-A.lo&4294967295)>>>0>>>0,((this.hi-A.hi&4294967295)>>>0)-(0>this.lo-A.lo?1:0)>>>0)},Qt.prototype.sub=Qt.prototype.sub;function ln(A,W){var ce=A&65535;A>>>=16;var Pe=W&65535,qe=W>>>16;for(W=ce*Pe+65536*(ce*qe&65535)+65536*(A*Pe&65535),ce=A*qe+(ce*qe>>>16)+(A*Pe>>>16);4294967296<=W;)W-=4294967296,ce+=1;return new Qt(W>>>0,ce>>>0)}Qt.mul32x32=ln,Qt.prototype.eb=function(A){var W=ln(this.lo,A);return A=ln(this.hi,A),A.hi=A.lo,A.lo=0,W.add(A)},Qt.prototype.mul=Qt.prototype.eb,Qt.prototype.Xa=function(A){if(A==0)return[];var W=new Qt(0,0),ce=new Qt(this.lo,this.hi);A=new Qt(A,0);for(var Pe=new Qt(1,0);!A.cb();)A=A.Da(),Pe=Pe.Da();for(;!Pe.Ua();)0>=A.cmp(ce)&&(W=W.add(Pe),ce=ce.sub(A)),A=A.La(),Pe=Pe.La();return[W,ce]},Qt.prototype.div=Qt.prototype.Xa,Qt.prototype.toString=function(){for(var A="",W=this;!W.Ua();){W=W.Xa(10);var ce=W[0];A=W[1].lo+A,W=ce}return A==""&&(A="0"),A},Qt.prototype.toString=Qt.prototype.toString;function jt(A){for(var W=new Qt(0,0),ce=new Qt(0,0),Pe=0;Pe<A.length;Pe++){if("0">A[Pe]||"9"<A[Pe])return null;ce.lo=parseInt(A[Pe],10),W=W.eb(10).add(ce)}return W}Qt.fromString=jt,Qt.prototype.clone=function(){return new Qt(this.lo,this.hi)},Qt.prototype.clone=Qt.prototype.clone;function Lt(A,W){this.lo=A,this.hi=W}p("jspb.arith.Int64",Lt,void 0),Lt.prototype.add=function(A){return new Lt((this.lo+A.lo&4294967295)>>>0>>>0,((this.hi+A.hi&4294967295)>>>0)+(4294967296<=this.lo+A.lo?1:0)>>>0)},Lt.prototype.add=Lt.prototype.add,Lt.prototype.sub=function(A){return new Lt((this.lo-A.lo&4294967295)>>>0>>>0,((this.hi-A.hi&4294967295)>>>0)-(0>this.lo-A.lo?1:0)>>>0)},Lt.prototype.sub=Lt.prototype.sub,Lt.prototype.clone=function(){return new Lt(this.lo,this.hi)},Lt.prototype.clone=Lt.prototype.clone,Lt.prototype.toString=function(){var A=(this.hi&2147483648)!=0,W=new Qt(this.lo,this.hi);return A&&(W=new Qt(0,0).sub(W)),(A?"-":"")+W.toString()},Lt.prototype.toString=Lt.prototype.toString;function en(A){var W=0<A.length&&A[0]=="-";return W&&(A=A.substring(1)),A=jt(A),A===null?null:(W&&(A=new Qt(0,0).sub(A)),new Lt(A.lo,A.hi))}Lt.fromString=en;function Ue(){this.c=[],this.b=0,this.a=new Pt,this.h=[]}p("jspb.BinaryWriter",Ue,void 0);function Zt(A,W){var ce=A.a.end();A.c.push(ce),A.c.push(W),A.b+=ce.length+W.length}function Et(A,W){return zt(A,W,2),W=A.a.end(),A.c.push(W),A.b+=W.length,W.push(A.b),W}function Gt(A,W){var ce=W.pop();for(ce=A.b+A.a.length()-ce,x(0<=ce);127<ce;)W.push(ce&127|128),ce>>>=7,A.b++;W.push(ce),A.b++}Ue.prototype.pb=function(A,W,ce){Zt(this,A.subarray(W,ce))},Ue.prototype.writeSerializedMessage=Ue.prototype.pb,Ue.prototype.Pb=function(A,W,ce){A!=null&&W!=null&&ce!=null&&this.pb(A,W,ce)},Ue.prototype.maybeWriteSerializedMessage=Ue.prototype.Pb,Ue.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Ue.prototype.reset=Ue.prototype.reset,Ue.prototype.ab=function(){x(this.h.length==0);for(var A=new Uint8Array(this.b+this.a.length()),W=this.c,ce=W.length,Pe=0,qe=0;qe<ce;qe++){var gt=W[qe];A.set(gt,Pe),Pe+=gt.length}return W=this.a.end(),A.set(W,Pe),Pe+=W.length,x(Pe==A.length),this.c=[A],A},Ue.prototype.getResultBuffer=Ue.prototype.ab,Ue.prototype.Kb=function(A){return G(this.ab(),A)},Ue.prototype.getResultBase64String=Ue.prototype.Kb,Ue.prototype.Va=function(A){this.h.push(Et(this,A))},Ue.prototype.beginSubMessage=Ue.prototype.Va,Ue.prototype.Ya=function(){x(0<=this.h.length),Gt(this,this.h.pop())},Ue.prototype.endSubMessage=Ue.prototype.Ya;function zt(A,W,ce){x(1<=W&&W==Math.floor(W)),A.a.j(8*W+ce)}Ue.prototype.Nc=function(A,W,ce){switch(A){case 1:this.J(W,ce);break;case 2:this.L(W,ce);break;case 3:this.T(W,ce);break;case 4:this.V(W,ce);break;case 5:this.S(W,ce);break;case 6:this.Qa(W,ce);break;case 7:this.Pa(W,ce);break;case 8:this.I(W,ce);break;case 9:this.U(W,ce);break;case 10:O("Group field type not supported in writeAny()");break;case 11:O("Message field type not supported in writeAny()");break;case 12:this.ja(W,ce);break;case 13:this.s(W,ce);break;case 14:this.R(W,ce);break;case 15:this.Ra(W,ce);break;case 16:this.Sa(W,ce);break;case 17:this.rb(W,ce);break;case 18:this.sb(W,ce);break;case 30:this.K(W,ce);break;case 31:this.N(W,ce);break;default:O("Invalid field type in writeAny()")}},Ue.prototype.writeAny=Ue.prototype.Nc;function Vn(A,W,ce){ce!=null&&(zt(A,W,0),A.a.j(ce))}function sr(A,W,ce){ce!=null&&(zt(A,W,0),A.a.M(ce))}Ue.prototype.S=function(A,W){W!=null&&(x(-2147483648<=W&&2147483648>W),sr(this,A,W))},Ue.prototype.writeInt32=Ue.prototype.S,Ue.prototype.ob=function(A,W){W!=null&&(W=parseInt(W,10),x(-2147483648<=W&&2147483648>W),sr(this,A,W))},Ue.prototype.writeInt32String=Ue.prototype.ob,Ue.prototype.T=function(A,W){W!=null&&(x(-9223372036854776e3<=W&&9223372036854776e3>W),W!=null&&(zt(this,A,0),this.a.ua(W)))},Ue.prototype.writeInt64=Ue.prototype.T,Ue.prototype.ka=function(A,W){W!=null&&(W=en(W),zt(this,A,0),this.a.l(W.lo,W.hi))},Ue.prototype.writeInt64String=Ue.prototype.ka,Ue.prototype.s=function(A,W){W!=null&&(x(0<=W&&4294967296>W),Vn(this,A,W))},Ue.prototype.writeUint32=Ue.prototype.s,Ue.prototype.ub=function(A,W){W!=null&&(W=parseInt(W,10),x(0<=W&&4294967296>W),Vn(this,A,W))},Ue.prototype.writeUint32String=Ue.prototype.ub,Ue.prototype.V=function(A,W){W!=null&&(x(0<=W&&18446744073709552e3>W),W!=null&&(zt(this,A,0),this.a.va(W)))},Ue.prototype.writeUint64=Ue.prototype.V,Ue.prototype.vb=function(A,W){W!=null&&(W=jt(W),zt(this,A,0),this.a.l(W.lo,W.hi))},Ue.prototype.writeUint64String=Ue.prototype.vb,Ue.prototype.rb=function(A,W){W!=null&&(x(-2147483648<=W&&2147483648>W),W!=null&&(zt(this,A,0),this.a.wa(W)))},Ue.prototype.writeSint32=Ue.prototype.rb,Ue.prototype.sb=function(A,W){W!=null&&(x(-9223372036854776e3<=W&&9223372036854776e3>W),W!=null&&(zt(this,A,0),this.a.xa(W)))},Ue.prototype.writeSint64=Ue.prototype.sb,Ue.prototype.$d=function(A,W){W!=null&&W!=null&&(zt(this,A,0),this.a.W(W))},Ue.prototype.writeSintHash64=Ue.prototype.$d,Ue.prototype.Zd=function(A,W){W!=null&&W!=null&&(zt(this,A,0),this.a.Ta(W))},Ue.prototype.writeSint64String=Ue.prototype.Zd,Ue.prototype.Pa=function(A,W){W!=null&&(x(0<=W&&4294967296>W),zt(this,A,5),this.a.s(W))},Ue.prototype.writeFixed32=Ue.prototype.Pa,Ue.prototype.Qa=function(A,W){W!=null&&(x(0<=W&&18446744073709552e3>W),zt(this,A,1),this.a.V(W))},Ue.prototype.writeFixed64=Ue.prototype.Qa,Ue.prototype.nb=function(A,W){W!=null&&(W=jt(W),zt(this,A,1),this.a.A(W.lo,W.hi))},Ue.prototype.writeFixed64String=Ue.prototype.nb,Ue.prototype.Ra=function(A,W){W!=null&&(x(-2147483648<=W&&2147483648>W),zt(this,A,5),this.a.S(W))},Ue.prototype.writeSfixed32=Ue.prototype.Ra,Ue.prototype.Sa=function(A,W){W!=null&&(x(-9223372036854776e3<=W&&9223372036854776e3>W),zt(this,A,1),this.a.T(W))},Ue.prototype.writeSfixed64=Ue.prototype.Sa,Ue.prototype.qb=function(A,W){W!=null&&(W=en(W),zt(this,A,1),this.a.A(W.lo,W.hi))},Ue.prototype.writeSfixed64String=Ue.prototype.qb,Ue.prototype.L=function(A,W){W!=null&&(zt(this,A,5),this.a.L(W))},Ue.prototype.writeFloat=Ue.prototype.L,Ue.prototype.J=function(A,W){W!=null&&(zt(this,A,1),this.a.J(W))},Ue.prototype.writeDouble=Ue.prototype.J,Ue.prototype.I=function(A,W){W!=null&&(x(typeof W=="boolean"||typeof W=="number"),zt(this,A,0),this.a.I(W))},Ue.prototype.writeBool=Ue.prototype.I,Ue.prototype.R=function(A,W){W!=null&&(x(-2147483648<=W&&2147483648>W),zt(this,A,0),this.a.M(W))},Ue.prototype.writeEnum=Ue.prototype.R,Ue.prototype.U=function(A,W){W!=null&&(A=Et(this,A),this.a.U(W),Gt(this,A))},Ue.prototype.writeString=Ue.prototype.U,Ue.prototype.ja=function(A,W){W!=null&&(W=xe(W),zt(this,A,2),this.a.j(W.length),Zt(this,W))},Ue.prototype.writeBytes=Ue.prototype.ja,Ue.prototype.Rc=function(A,W,ce){W!=null&&(A=Et(this,A),ce(W,this),Gt(this,A))},Ue.prototype.writeMessage=Ue.prototype.Rc,Ue.prototype.Sc=function(A,W,ce){W!=null&&(zt(this,1,3),zt(this,2,0),this.a.M(A),A=Et(this,3),ce(W,this),Gt(this,A),zt(this,1,4))},Ue.prototype.writeMessageSet=Ue.prototype.Sc,Ue.prototype.Oc=function(A,W,ce){W!=null&&(zt(this,A,3),ce(W,this),zt(this,A,4))},Ue.prototype.writeGroup=Ue.prototype.Oc,Ue.prototype.K=function(A,W){W!=null&&(x(W.length==8),zt(this,A,1),this.a.K(W))},Ue.prototype.writeFixedHash64=Ue.prototype.K,Ue.prototype.N=function(A,W){W!=null&&(x(W.length==8),zt(this,A,0),this.a.N(W))},Ue.prototype.writeVarintHash64=Ue.prototype.N,Ue.prototype.A=function(A,W,ce){zt(this,A,1),this.a.A(W,ce)},Ue.prototype.writeSplitFixed64=Ue.prototype.A,Ue.prototype.l=function(A,W,ce){zt(this,A,0),this.a.l(W,ce)},Ue.prototype.writeSplitVarint64=Ue.prototype.l,Ue.prototype.tb=function(A,W,ce){zt(this,A,0);var Pe=this.a;we(W,ce,function(qe,gt){Pe.l(qe>>>0,gt>>>0)})},Ue.prototype.writeSplitZigzagVarint64=Ue.prototype.tb,Ue.prototype.Ed=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)sr(this,A,W[ce])},Ue.prototype.writeRepeatedInt32=Ue.prototype.Ed,Ue.prototype.Fd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.ob(A,W[ce])},Ue.prototype.writeRepeatedInt32String=Ue.prototype.Fd,Ue.prototype.Gd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.ua(Pe))}},Ue.prototype.writeRepeatedInt64=Ue.prototype.Gd,Ue.prototype.Qd=function(A,W,ce,Pe){if(W!=null)for(var qe=0;qe<W.length;qe++)this.A(A,ce(W[qe]),Pe(W[qe]))},Ue.prototype.writeRepeatedSplitFixed64=Ue.prototype.Qd,Ue.prototype.Rd=function(A,W,ce,Pe){if(W!=null)for(var qe=0;qe<W.length;qe++)this.l(A,ce(W[qe]),Pe(W[qe]))},Ue.prototype.writeRepeatedSplitVarint64=Ue.prototype.Rd,Ue.prototype.Sd=function(A,W,ce,Pe){if(W!=null)for(var qe=0;qe<W.length;qe++)this.tb(A,ce(W[qe]),Pe(W[qe]))},Ue.prototype.writeRepeatedSplitZigzagVarint64=Ue.prototype.Sd,Ue.prototype.Hd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.ka(A,W[ce])},Ue.prototype.writeRepeatedInt64String=Ue.prototype.Hd,Ue.prototype.Ud=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)Vn(this,A,W[ce])},Ue.prototype.writeRepeatedUint32=Ue.prototype.Ud,Ue.prototype.Vd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.ub(A,W[ce])},Ue.prototype.writeRepeatedUint32String=Ue.prototype.Vd,Ue.prototype.Wd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.va(Pe))}},Ue.prototype.writeRepeatedUint64=Ue.prototype.Wd,Ue.prototype.Xd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.vb(A,W[ce])},Ue.prototype.writeRepeatedUint64String=Ue.prototype.Xd,Ue.prototype.Md=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.wa(Pe))}},Ue.prototype.writeRepeatedSint32=Ue.prototype.Md,Ue.prototype.Nd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.xa(Pe))}},Ue.prototype.writeRepeatedSint64=Ue.prototype.Nd,Ue.prototype.Od=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.Ta(Pe))}},Ue.prototype.writeRepeatedSint64String=Ue.prototype.Od,Ue.prototype.Pd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.W(Pe))}},Ue.prototype.writeRepeatedSintHash64=Ue.prototype.Pd,Ue.prototype.yd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.Pa(A,W[ce])},Ue.prototype.writeRepeatedFixed32=Ue.prototype.yd,Ue.prototype.zd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.Qa(A,W[ce])},Ue.prototype.writeRepeatedFixed64=Ue.prototype.zd,Ue.prototype.Ad=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.nb(A,W[ce])},Ue.prototype.writeRepeatedFixed64String=Ue.prototype.Ad,Ue.prototype.Jd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.Ra(A,W[ce])},Ue.prototype.writeRepeatedSfixed32=Ue.prototype.Jd,Ue.prototype.Kd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.Sa(A,W[ce])},Ue.prototype.writeRepeatedSfixed64=Ue.prototype.Kd,Ue.prototype.Ld=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.qb(A,W[ce])},Ue.prototype.writeRepeatedSfixed64String=Ue.prototype.Ld,Ue.prototype.Cd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.L(A,W[ce])},Ue.prototype.writeRepeatedFloat=Ue.prototype.Cd,Ue.prototype.wd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.J(A,W[ce])},Ue.prototype.writeRepeatedDouble=Ue.prototype.wd,Ue.prototype.ud=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.I(A,W[ce])},Ue.prototype.writeRepeatedBool=Ue.prototype.ud,Ue.prototype.xd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.R(A,W[ce])},Ue.prototype.writeRepeatedEnum=Ue.prototype.xd,Ue.prototype.Td=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.U(A,W[ce])},Ue.prototype.writeRepeatedString=Ue.prototype.Td,Ue.prototype.vd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.ja(A,W[ce])},Ue.prototype.writeRepeatedBytes=Ue.prototype.vd,Ue.prototype.Id=function(A,W,ce){if(W!=null)for(var Pe=0;Pe<W.length;Pe++){var qe=Et(this,A);ce(W[Pe],this),Gt(this,qe)}},Ue.prototype.writeRepeatedMessage=Ue.prototype.Id,Ue.prototype.Dd=function(A,W,ce){if(W!=null)for(var Pe=0;Pe<W.length;Pe++)zt(this,A,3),ce(W[Pe],this),zt(this,A,4)},Ue.prototype.writeRepeatedGroup=Ue.prototype.Dd,Ue.prototype.Bd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.K(A,W[ce])},Ue.prototype.writeRepeatedFixedHash64=Ue.prototype.Bd,Ue.prototype.Yd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.N(A,W[ce])},Ue.prototype.writeRepeatedVarintHash64=Ue.prototype.Yd,Ue.prototype.ad=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.M(W[ce]);Gt(this,A)}},Ue.prototype.writePackedInt32=Ue.prototype.ad,Ue.prototype.bd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.M(parseInt(W[ce],10));Gt(this,A)}},Ue.prototype.writePackedInt32String=Ue.prototype.bd,Ue.prototype.cd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.ua(W[ce]);Gt(this,A)}},Ue.prototype.writePackedInt64=Ue.prototype.cd,Ue.prototype.md=function(A,W,ce,Pe){if(W!=null){A=Et(this,A);for(var qe=0;qe<W.length;qe++)this.a.A(ce(W[qe]),Pe(W[qe]));Gt(this,A)}},Ue.prototype.writePackedSplitFixed64=Ue.prototype.md,Ue.prototype.nd=function(A,W,ce,Pe){if(W!=null){A=Et(this,A);for(var qe=0;qe<W.length;qe++)this.a.l(ce(W[qe]),Pe(W[qe]));Gt(this,A)}},Ue.prototype.writePackedSplitVarint64=Ue.prototype.nd,Ue.prototype.od=function(A,W,ce,Pe){if(W!=null){A=Et(this,A);for(var qe=this.a,gt=0;gt<W.length;gt++)we(ce(W[gt]),Pe(W[gt]),function(Yt,Nn){qe.l(Yt>>>0,Nn>>>0)});Gt(this,A)}},Ue.prototype.writePackedSplitZigzagVarint64=Ue.prototype.od,Ue.prototype.dd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++){var Pe=en(W[ce]);this.a.l(Pe.lo,Pe.hi)}Gt(this,A)}},Ue.prototype.writePackedInt64String=Ue.prototype.dd,Ue.prototype.pd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.j(W[ce]);Gt(this,A)}},Ue.prototype.writePackedUint32=Ue.prototype.pd,Ue.prototype.qd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.j(parseInt(W[ce],10));Gt(this,A)}},Ue.prototype.writePackedUint32String=Ue.prototype.qd,Ue.prototype.rd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.va(W[ce]);Gt(this,A)}},Ue.prototype.writePackedUint64=Ue.prototype.rd,Ue.prototype.sd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++){var Pe=jt(W[ce]);this.a.l(Pe.lo,Pe.hi)}Gt(this,A)}},Ue.prototype.writePackedUint64String=Ue.prototype.sd,Ue.prototype.hd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.wa(W[ce]);Gt(this,A)}},Ue.prototype.writePackedSint32=Ue.prototype.hd,Ue.prototype.jd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.xa(W[ce]);Gt(this,A)}},Ue.prototype.writePackedSint64=Ue.prototype.jd,Ue.prototype.kd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.W(ne(W[ce]));Gt(this,A)}},Ue.prototype.writePackedSint64String=Ue.prototype.kd,Ue.prototype.ld=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.W(W[ce]);Gt(this,A)}},Ue.prototype.writePackedSintHash64=Ue.prototype.ld,Ue.prototype.Wc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(4*W.length),A=0;A<W.length;A++)this.a.s(W[A])},Ue.prototype.writePackedFixed32=Ue.prototype.Wc,Ue.prototype.Xc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++)this.a.V(W[A])},Ue.prototype.writePackedFixed64=Ue.prototype.Xc,Ue.prototype.Yc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++){var ce=jt(W[A]);this.a.A(ce.lo,ce.hi)}},Ue.prototype.writePackedFixed64String=Ue.prototype.Yc,Ue.prototype.ed=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(4*W.length),A=0;A<W.length;A++)this.a.S(W[A])},Ue.prototype.writePackedSfixed32=Ue.prototype.ed,Ue.prototype.fd=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++)this.a.T(W[A])},Ue.prototype.writePackedSfixed64=Ue.prototype.fd,Ue.prototype.gd=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++)this.a.ka(W[A])},Ue.prototype.writePackedSfixed64String=Ue.prototype.gd,Ue.prototype.$c=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(4*W.length),A=0;A<W.length;A++)this.a.L(W[A])},Ue.prototype.writePackedFloat=Ue.prototype.$c,Ue.prototype.Uc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++)this.a.J(W[A])},Ue.prototype.writePackedDouble=Ue.prototype.Uc,Ue.prototype.Tc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(W.length),A=0;A<W.length;A++)this.a.I(W[A])},Ue.prototype.writePackedBool=Ue.prototype.Tc,Ue.prototype.Vc=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.R(W[ce]);Gt(this,A)}},Ue.prototype.writePackedEnum=Ue.prototype.Vc,Ue.prototype.Zc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++)this.a.K(W[A])},Ue.prototype.writePackedFixedHash64=Ue.prototype.Zc,Ue.prototype.td=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.N(W[ce]);Gt(this,A)}},Ue.prototype.writePackedVarintHash64=Ue.prototype.td,e.debug=En,e.Map=k,e.Message=Ze,e.BinaryReader=ge,e.BinaryWriter=Ue,e.ExtensionFieldInfo=ot,e.ExtensionFieldBinaryInfo=Xe,e.exportSymbol=v,e.inherits=y,e.object={extend:S},e.typeOf=h})(Un);const jEt=Or(Un),Fle=a7({__proto__:null,default:jEt},[Un]);var Ble=Fle,_ne=(function(){return this?this:typeof window<"u"?window:typeof _ne<"u"?_ne:typeof self<"u"?self:Function("return this")()}).call(null);Ble.exportSymbol("proto.User",null,_ne);proto.User=function(e){Un.Message.initialize(this,e,0,-1,null,null)};Ble.inherits(proto.User,Un.Message);Ble.DEBUG&&!COMPILED&&(proto.User.displayName="proto.User");Un.Message.GENERATE_TO_OBJECT&&(proto.User.prototype.toObject=function(e){return proto.User.toObject(e,this)},proto.User.toObject=function(e,n){var r={uid:Un.Message.getFieldWithDefault(n,1,""),nickname:Un.Message.getFieldWithDefault(n,2,""),avatar:Un.Message.getFieldWithDefault(n,3,""),type:Un.Message.getFieldWithDefault(n,4,""),extra:Un.Message.getFieldWithDefault(n,5,"")};return e&&(r.$jspbMessageInstance=n),r});proto.User.deserializeBinary=function(e){var n=new Un.BinaryReader(e),r=new proto.User;return proto.User.deserializeBinaryFromReader(r,n)};proto.User.deserializeBinaryFromReader=function(e,n){for(;n.nextField()&&!n.isEndGroup();){var r=n.getFieldNumber();switch(r){case 1:var i=n.readString();e.setUid(i);break;case 2:var i=n.readString();e.setNickname(i);break;case 3:var i=n.readString();e.setAvatar(i);break;case 4:var i=n.readString();e.setType(i);break;case 5:var i=n.readString();e.setExtra(i);break;default:n.skipField();break}}return e};proto.User.prototype.serializeBinary=function(){var e=new Un.BinaryWriter;return proto.User.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.User.serializeBinaryToWriter=function(e,n){var r=void 0;r=e.getUid(),r.length>0&&n.writeString(1,r),r=e.getNickname(),r.length>0&&n.writeString(2,r),r=e.getAvatar(),r.length>0&&n.writeString(3,r),r=e.getType(),r.length>0&&n.writeString(4,r),r=e.getExtra(),r.length>0&&n.writeString(5,r)};proto.User.prototype.getUid=function(){return Un.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return Un.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return Un.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return Un.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return Un.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return Un.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return Un.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return Un.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return Un.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return Un.Message.setProto3StringField(this,5,e)};const L0e=proto;var jle=Fle,bne=(function(){return this?this:typeof window<"u"?window:typeof bne<"u"?bne:typeof self<"u"?self:Function("return this")()}).call(null);jle.exportSymbol("proto.Thread",null,bne);proto.Thread=function(e){Un.Message.initialize(this,e,0,-1,null,null)};jle.inherits(proto.Thread,Un.Message);jle.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");Un.Message.GENERATE_TO_OBJECT&&(proto.Thread.prototype.toObject=function(e){return proto.Thread.toObject(e,this)},proto.Thread.toObject=function(e,n){var r,i={uid:Un.Message.getFieldWithDefault(n,1,""),topic:Un.Message.getFieldWithDefault(n,2,""),type:Un.Message.getFieldWithDefault(n,3,""),state:Un.Message.getFieldWithDefault(n,4,""),user:(r=n.getUser())&&proto.User.toObject(e,r),client:Un.Message.getFieldWithDefault(n,6,""),extra:Un.Message.getFieldWithDefault(n,7,"")};return e&&(i.$jspbMessageInstance=n),i});proto.Thread.deserializeBinary=function(e){var n=new Un.BinaryReader(e),r=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(r,n)};proto.Thread.deserializeBinaryFromReader=function(e,n){for(;n.nextField()&&!n.isEndGroup();){var r=n.getFieldNumber();switch(r){case 1:var i=n.readString();e.setUid(i);break;case 2:var i=n.readString();e.setTopic(i);break;case 3:var i=n.readString();e.setType(i);break;case 4:var i=n.readString();e.setState(i);break;case 5:var i=new proto.User;n.readMessage(i,proto.User.deserializeBinaryFromReader),e.setUser(i);break;case 6:var i=n.readString();e.setClient(i);break;case 7:var i=n.readString();e.setExtra(i);break;default:n.skipField();break}}return e};proto.Thread.prototype.serializeBinary=function(){var e=new Un.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Thread.serializeBinaryToWriter=function(e,n){var r=void 0;r=e.getUid(),r.length>0&&n.writeString(1,r),r=e.getTopic(),r.length>0&&n.writeString(2,r),r=e.getType(),r.length>0&&n.writeString(3,r),r=e.getState(),r.length>0&&n.writeString(4,r),r=e.getUser(),r!=null&&n.writeMessage(5,r,proto.User.serializeBinaryToWriter),r=e.getClient(),r.length>0&&n.writeString(6,r),r=e.getExtra(),r.length>0&&n.writeString(7,r)};proto.Thread.prototype.getUid=function(){return Un.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return Un.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return Un.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return Un.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return Un.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return Un.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return Un.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return Un.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return Un.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return Un.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return Un.Message.getField(this,5)!=null};proto.Thread.prototype.getClient=function(){return Un.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setClient=function(e){return Un.Message.setProto3StringField(this,6,e)};proto.Thread.prototype.getExtra=function(){return Un.Message.getFieldWithDefault(this,7,"")};proto.Thread.prototype.setExtra=function(e){return Un.Message.setProto3StringField(this,7,e)};const UEt=proto;var Ule=Fle,Sne=(function(){return this?this:typeof window<"u"?window:typeof Sne<"u"?Sne:typeof self<"u"?self:Function("return this")()}).call(null);Ule.exportSymbol("proto.Message",null,Sne);proto.Message=function(e){Un.Message.initialize(this,e,0,-1,null,null)};Ule.inherits(proto.Message,Un.Message);Ule.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");Un.Message.GENERATE_TO_OBJECT&&(proto.Message.prototype.toObject=function(e){return proto.Message.toObject(e,this)},proto.Message.toObject=function(e,n){var r,i={uid:Un.Message.getFieldWithDefault(n,1,""),type:Un.Message.getFieldWithDefault(n,2,""),content:Un.Message.getFieldWithDefault(n,3,""),status:Un.Message.getFieldWithDefault(n,4,""),createdat:Un.Message.getFieldWithDefault(n,5,""),client:Un.Message.getFieldWithDefault(n,6,""),thread:(r=n.getThread())&&proto.Thread.toObject(e,r),user:(r=n.getUser())&&proto.User.toObject(e,r),extra:Un.Message.getFieldWithDefault(n,9,"")};return e&&(i.$jspbMessageInstance=n),i});proto.Message.deserializeBinary=function(e){var n=new Un.BinaryReader(e),r=new proto.Message;return proto.Message.deserializeBinaryFromReader(r,n)};proto.Message.deserializeBinaryFromReader=function(e,n){for(;n.nextField()&&!n.isEndGroup();){var r=n.getFieldNumber();switch(r){case 1:var i=n.readString();e.setUid(i);break;case 2:var i=n.readString();e.setType(i);break;case 3:var i=n.readString();e.setContent(i);break;case 4:var i=n.readString();e.setStatus(i);break;case 5:var i=n.readString();e.setCreatedat(i);break;case 6:var i=n.readString();e.setClient(i);break;case 7:var i=new proto.Thread;n.readMessage(i,proto.Thread.deserializeBinaryFromReader),e.setThread(i);break;case 8:var i=new proto.User;n.readMessage(i,proto.User.deserializeBinaryFromReader),e.setUser(i);break;case 9:var i=n.readString();e.setExtra(i);break;default:n.skipField();break}}return e};proto.Message.prototype.serializeBinary=function(){var e=new Un.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Message.serializeBinaryToWriter=function(e,n){var r=void 0;r=e.getUid(),r.length>0&&n.writeString(1,r),r=e.getType(),r.length>0&&n.writeString(2,r),r=e.getContent(),r.length>0&&n.writeString(3,r),r=e.getStatus(),r.length>0&&n.writeString(4,r),r=e.getCreatedat(),r.length>0&&n.writeString(5,r),r=e.getClient(),r.length>0&&n.writeString(6,r),r=e.getThread(),r!=null&&n.writeMessage(7,r,proto.Thread.serializeBinaryToWriter),r=e.getUser(),r!=null&&n.writeMessage(8,r,proto.User.serializeBinaryToWriter),r=e.getExtra(),r.length>0&&n.writeString(9,r)};proto.Message.prototype.getUid=function(){return Un.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return Un.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return Un.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return Un.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return Un.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return Un.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return Un.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return Un.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return Un.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return Un.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return Un.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return Un.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return Un.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return Un.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return Un.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return Un.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return Un.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return Un.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return Un.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return Un.Message.setProto3StringField(this,9,e)};const uFe=proto,HEt="modulepreload",zEt=function(e){return"/agenticflow/"+e},$0e={},VEt=function(n,r,i){let o=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(r.map(c=>{if(c=zEt(c),c in $0e)return;$0e[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":HEt,u||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&a(l.reason);return n().catch(a)})};//! moment.js
|
||
//! version : 2.30.1
|
||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
//! license : MIT
|
||
//! momentjs.com
|
||
var dFe;function zn(){return dFe.apply(null,arguments)}function GEt(e){dFe=e}function Qh(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function w1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function _o(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Hle(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var n;for(n in e)if(_o(e,n))return!1;return!0}function Ku(e){return e===void 0}function wy(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ek(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function fFe(e,n){var r=[],i,o=e.length;for(i=0;i<o;++i)r.push(n(e[i],i));return r}function Db(e,n){for(var r in n)_o(n,r)&&(e[r]=n[r]);return _o(n,"toString")&&(e.toString=n.toString),_o(n,"valueOf")&&(e.valueOf=n.valueOf),e}function Qm(e,n,r,i){return kFe(e,n,r,i,!0).utc()}function WEt(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function gi(e){return e._pf==null&&(e._pf=WEt()),e._pf}var Ene;Array.prototype.some?Ene=Array.prototype.some:Ene=function(e){var n=Object(this),r=n.length>>>0,i;for(i=0;i<r;i++)if(i in n&&e.call(this,n[i],i,n))return!0;return!1};function zle(e){var n=null,r=!1,i=e._d&&!isNaN(e._d.getTime());if(i&&(n=gi(e),r=Ene.call(n.parsedDateParts,function(o){return o!=null}),i=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&r),e._strict&&(i=i&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function j7(e){var n=Qm(NaN);return e!=null?Db(gi(n),e):gi(n).userInvalidated=!0,n}var F0e=zn.momentProperties=[],KW=!1;function Vle(e,n){var r,i,o,a=F0e.length;if(Ku(n._isAMomentObject)||(e._isAMomentObject=n._isAMomentObject),Ku(n._i)||(e._i=n._i),Ku(n._f)||(e._f=n._f),Ku(n._l)||(e._l=n._l),Ku(n._strict)||(e._strict=n._strict),Ku(n._tzm)||(e._tzm=n._tzm),Ku(n._isUTC)||(e._isUTC=n._isUTC),Ku(n._offset)||(e._offset=n._offset),Ku(n._pf)||(e._pf=gi(n)),Ku(n._locale)||(e._locale=n._locale),a>0)for(r=0;r<a;r++)i=F0e[r],o=n[i],Ku(o)||(e[i]=o);return e}function tk(e){Vle(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),KW===!1&&(KW=!0,zn.updateOffset(this),KW=!1)}function Zh(e){return e instanceof tk||e!=null&&e._isAMomentObject!=null}function pFe(e){zn.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function $p(e,n){var r=!0;return Db(function(){if(zn.deprecationHandler!=null&&zn.deprecationHandler(null,e),r){var i=[],o,a,s,l=arguments.length;for(a=0;a<l;a++){if(o="",typeof arguments[a]=="object"){o+=`
|
||
[`+a+"] ";for(s in arguments[0])_o(arguments[0],s)&&(o+=s+": "+arguments[0][s]+", ");o=o.slice(0,-2)}else o=arguments[a];i.push(o)}pFe(e+`
|
||
Arguments: `+Array.prototype.slice.call(i).join("")+`
|
||
`+new Error().stack),r=!1}return n.apply(this,arguments)},n)}var B0e={};function hFe(e,n){zn.deprecationHandler!=null&&zn.deprecationHandler(e,n),B0e[e]||(pFe(n),B0e[e]=!0)}zn.suppressDeprecationWarnings=!1;zn.deprecationHandler=null;function Zm(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function YEt(e){var n,r;for(r in e)_o(e,r)&&(n=e[r],Zm(n)?this[r]=n:this["_"+r]=n);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Cne(e,n){var r=Db({},e),i;for(i in n)_o(n,i)&&(w1(e[i])&&w1(n[i])?(r[i]={},Db(r[i],e[i]),Db(r[i],n[i])):n[i]!=null?r[i]=n[i]:delete r[i]);for(i in e)_o(e,i)&&!_o(n,i)&&w1(e[i])&&(r[i]=Db({},r[i]));return r}function Gle(e){e!=null&&this.set(e)}var wne;Object.keys?wne=Object.keys:wne=function(e){var n,r=[];for(n in e)_o(e,n)&&r.push(n);return r};var qEt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function KEt(e,n,r){var i=this._calendar[e]||this._calendar.sameElse;return Zm(i)?i.call(n,r):i}function Rm(e,n,r){var i=""+Math.abs(e),o=n-i.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var Wle=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,v3=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,XW={},AT={};function Rr(e,n,r,i){var o=i;typeof i=="string"&&(o=function(){return this[i]()}),e&&(AT[e]=o),n&&(AT[n[0]]=function(){return Rm(o.apply(this,arguments),n[1],n[2])}),r&&(AT[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function XEt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function QEt(e){var n=e.match(Wle),r,i;for(r=0,i=n.length;r<i;r++)AT[n[r]]?n[r]=AT[n[r]]:n[r]=XEt(n[r]);return function(o){var a="",s;for(s=0;s<i;s++)a+=Zm(n[s])?n[s].call(o,e):n[s];return a}}function H5(e,n){return e.isValid()?(n=gFe(n,e.localeData()),XW[n]=XW[n]||QEt(n),XW[n](e)):e.localeData().invalidDate()}function gFe(e,n){var r=5;function i(o){return n.longDateFormat(o)||o}for(v3.lastIndex=0;r>=0&&v3.test(e);)e=e.replace(v3,i),v3.lastIndex=0,r-=1;return e}var ZEt={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"};function JEt(e){var n=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return n||!r?n:(this._longDateFormat[e]=r.match(Wle).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var e1t="Invalid date";function t1t(){return this._invalidDate}var n1t="%d",r1t=/\d{1,2}/;function i1t(e){return this._ordinal.replace("%d",e)}var o1t={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a1t(e,n,r,i){var o=this._relativeTime[r];return Zm(o)?o(e,n,r,i):o.replace(/%d/i,e)}function s1t(e,n){var r=this._relativeTime[e>0?"future":"past"];return Zm(r)?r(n):r.replace(/%s/i,n)}var j0e={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Fp(e){return typeof e=="string"?j0e[e]||j0e[e.toLowerCase()]:void 0}function Yle(e){var n={},r,i;for(i in e)_o(e,i)&&(r=Fp(i),r&&(n[r]=e[i]));return n}var l1t={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function c1t(e){var n=[],r;for(r in e)_o(e,r)&&n.push({unit:r,priority:l1t[r]});return n.sort(function(i,o){return i.priority-o.priority}),n}var mFe=/\d/,Nf=/\d\d/,vFe=/\d{3}/,qle=/\d{4}/,U7=/[+-]?\d{6}/,Ra=/\d\d?/,yFe=/\d\d\d\d?/,_Fe=/\d\d\d\d\d\d?/,H7=/\d{1,3}/,Kle=/\d{1,4}/,z7=/[+-]?\d{1,6}/,ZR=/\d+/,V7=/[+-]?\d+/,u1t=/Z|[+-]\d\d:?\d\d/gi,G7=/Z|[+-]\d\d(?::?\d\d)?/gi,d1t=/[+-]?\d+(\.\d{1,3})?/,nk=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,JR=/^[1-9]\d?/,Xle=/^([1-9]\d|\d)/,DF;DF={};function ar(e,n,r){DF[e]=Zm(n)?n:function(i,o){return i&&r?r:n}}function f1t(e,n){return _o(DF,e)?DF[e](n._strict,n._locale):new RegExp(p1t(e))}function p1t(e){return ly(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,r,i,o,a){return r||i||o||a}))}function ly(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ap(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Gi(e){var n=+e,r=0;return n!==0&&isFinite(n)&&(r=ap(n)),r}var xne={};function Xo(e,n){var r,i=n,o;for(typeof e=="string"&&(e=[e]),wy(n)&&(i=function(a,s){s[n]=Gi(a)}),o=e.length,r=0;r<o;r++)xne[e[r]]=i}function rk(e,n){Xo(e,function(r,i,o,a){o._w=o._w||{},n(r,o._w,o,a)})}function h1t(e,n,r){n!=null&&_o(xne,e)&&xne[e](n,r._a,r,e)}function W7(e){return e%4===0&&e%100!==0||e%400===0}var Uc=0,Xv=1,rm=2,El=3,Mh=4,Qv=5,ZE=6,g1t=7,m1t=8;Rr("Y",0,0,function(){var e=this.year();return e<=9999?Rm(e,4):"+"+e});Rr(0,["YY",2],0,function(){return this.year()%100});Rr(0,["YYYY",4],0,"year");Rr(0,["YYYYY",5],0,"year");Rr(0,["YYYYYY",6,!0],0,"year");ar("Y",V7);ar("YY",Ra,Nf);ar("YYYY",Kle,qle);ar("YYYYY",z7,U7);ar("YYYYYY",z7,U7);Xo(["YYYYY","YYYYYY"],Uc);Xo("YYYY",function(e,n){n[Uc]=e.length===2?zn.parseTwoDigitYear(e):Gi(e)});Xo("YY",function(e,n){n[Uc]=zn.parseTwoDigitYear(e)});Xo("Y",function(e,n){n[Uc]=parseInt(e,10)});function $2(e){return W7(e)?366:365}zn.parseTwoDigitYear=function(e){return Gi(e)+(Gi(e)>68?1900:2e3)};var bFe=eI("FullYear",!0);function v1t(){return W7(this.year())}function eI(e,n){return function(r){return r!=null?(SFe(this,e,r),zn.updateOffset(this,n),this):BP(this,e)}}function BP(e,n){if(!e.isValid())return NaN;var r=e._d,i=e._isUTC;switch(n){case"Milliseconds":return i?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return i?r.getUTCSeconds():r.getSeconds();case"Minutes":return i?r.getUTCMinutes():r.getMinutes();case"Hours":return i?r.getUTCHours():r.getHours();case"Date":return i?r.getUTCDate():r.getDate();case"Day":return i?r.getUTCDay():r.getDay();case"Month":return i?r.getUTCMonth():r.getMonth();case"FullYear":return i?r.getUTCFullYear():r.getFullYear();default:return NaN}}function SFe(e,n,r){var i,o,a,s,l;if(!(!e.isValid()||isNaN(r))){switch(i=e._d,o=e._isUTC,n){case"Milliseconds":return void(o?i.setUTCMilliseconds(r):i.setMilliseconds(r));case"Seconds":return void(o?i.setUTCSeconds(r):i.setSeconds(r));case"Minutes":return void(o?i.setUTCMinutes(r):i.setMinutes(r));case"Hours":return void(o?i.setUTCHours(r):i.setHours(r));case"Date":return void(o?i.setUTCDate(r):i.setDate(r));case"FullYear":break;default:return}a=r,s=e.month(),l=e.date(),l=l===29&&s===1&&!W7(a)?28:l,o?i.setUTCFullYear(a,s,l):i.setFullYear(a,s,l)}}function y1t(e){return e=Fp(e),Zm(this[e])?this[e]():this}function _1t(e,n){if(typeof e=="object"){e=Yle(e);var r=c1t(e),i,o=r.length;for(i=0;i<o;i++)this[r[i].unit](e[r[i].unit])}else if(e=Fp(e),Zm(this[e]))return this[e](n);return this}function b1t(e,n){return(e%n+n)%n}var ks;Array.prototype.indexOf?ks=Array.prototype.indexOf:ks=function(e){var n;for(n=0;n<this.length;++n)if(this[n]===e)return n;return-1};function Qle(e,n){if(isNaN(e)||isNaN(n))return NaN;var r=b1t(n,12);return e+=(n-r)/12,r===1?W7(e)?29:28:31-r%7%2}Rr("M",["MM",2],"Mo",function(){return this.month()+1});Rr("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Rr("MMMM",0,0,function(e){return this.localeData().months(this,e)});ar("M",Ra,JR);ar("MM",Ra,Nf);ar("MMM",function(e,n){return n.monthsShortRegex(e)});ar("MMMM",function(e,n){return n.monthsRegex(e)});Xo(["M","MM"],function(e,n){n[Xv]=Gi(e)-1});Xo(["MMM","MMMM"],function(e,n,r,i){var o=r._locale.monthsParse(e,i,r._strict);o!=null?n[Xv]=o:gi(r).invalidMonth=e});var S1t="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),EFe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),CFe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,E1t=nk,C1t=nk;function w1t(e,n){return e?Qh(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||CFe).test(n)?"format":"standalone"][e.month()]:Qh(this._months)?this._months:this._months.standalone}function x1t(e,n){return e?Qh(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[CFe.test(n)?"format":"standalone"][e.month()]:Qh(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function T1t(e,n,r){var i,o,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=Qm([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return r?n==="MMM"?(o=ks.call(this._shortMonthsParse,s),o!==-1?o:null):(o=ks.call(this._longMonthsParse,s),o!==-1?o:null):n==="MMM"?(o=ks.call(this._shortMonthsParse,s),o!==-1?o:(o=ks.call(this._longMonthsParse,s),o!==-1?o:null)):(o=ks.call(this._longMonthsParse,s),o!==-1?o:(o=ks.call(this._shortMonthsParse,s),o!==-1?o:null))}function O1t(e,n,r){var i,o,a;if(this._monthsParseExact)return T1t.call(this,e,n,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=Qm([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!r&&!this._monthsParse[i]&&(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),r&&n==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(r&&n==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}}function wFe(e,n){if(!e.isValid())return e;if(typeof n=="string"){if(/^\d+$/.test(n))n=Gi(n);else if(n=e.localeData().monthsParse(n),!wy(n))return e}var r=n,i=e.date();return i=i<29?i:Math.min(i,Qle(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,i):e._d.setMonth(r,i),e}function xFe(e){return e!=null?(wFe(this,e),zn.updateOffset(this,!0),this):BP(this,"Month")}function R1t(){return Qle(this.year(),this.month())}function I1t(e){return this._monthsParseExact?(_o(this,"_monthsRegex")||TFe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(_o(this,"_monthsShortRegex")||(this._monthsShortRegex=E1t),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function N1t(e){return this._monthsParseExact?(_o(this,"_monthsRegex")||TFe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(_o(this,"_monthsRegex")||(this._monthsRegex=C1t),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function TFe(){function e(c,u){return u.length-c.length}var n=[],r=[],i=[],o,a,s,l;for(o=0;o<12;o++)a=Qm([2e3,o]),s=ly(this.monthsShort(a,"")),l=ly(this.months(a,"")),n.push(s),r.push(l),i.push(l),i.push(s);n.sort(e),r.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function M1t(e,n,r,i,o,a,s){var l;return e<100&&e>=0?(l=new Date(e+400,n,r,i,o,a,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,n,r,i,o,a,s),l}function jP(e){var n,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,n=new Date(Date.UTC.apply(null,r)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e)):n=new Date(Date.UTC.apply(null,arguments)),n}function kF(e,n,r){var i=7+n-r,o=(7+jP(e,0,i).getUTCDay()-n)%7;return-o+i-1}function OFe(e,n,r,i,o){var a=(7+r-i)%7,s=kF(e,i,o),l=1+7*(n-1)+a+s,c,u;return l<=0?(c=e-1,u=$2(c)+l):l>$2(e)?(c=e+1,u=l-$2(e)):(c=e,u=l),{year:c,dayOfYear:u}}function UP(e,n,r){var i=kF(e.year(),n,r),o=Math.floor((e.dayOfYear()-i-1)/7)+1,a,s;return o<1?(s=e.year()-1,a=o+cy(s,n,r)):o>cy(e.year(),n,r)?(a=o-cy(e.year(),n,r),s=e.year()+1):(s=e.year(),a=o),{week:a,year:s}}function cy(e,n,r){var i=kF(e,n,r),o=kF(e+1,n,r);return($2(e)-i+o)/7}Rr("w",["ww",2],"wo","week");Rr("W",["WW",2],"Wo","isoWeek");ar("w",Ra,JR);ar("ww",Ra,Nf);ar("W",Ra,JR);ar("WW",Ra,Nf);rk(["w","ww","W","WW"],function(e,n,r,i){n[i.substr(0,1)]=Gi(e)});function P1t(e){return UP(e,this._week.dow,this._week.doy).week}var A1t={dow:0,doy:6};function D1t(){return this._week.dow}function k1t(){return this._week.doy}function L1t(e){var n=this.localeData().week(this);return e==null?n:this.add((e-n)*7,"d")}function $1t(e){var n=UP(this,1,4).week;return e==null?n:this.add((e-n)*7,"d")}Rr("d",0,"do","day");Rr("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Rr("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Rr("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Rr("e",0,0,"weekday");Rr("E",0,0,"isoWeekday");ar("d",Ra);ar("e",Ra);ar("E",Ra);ar("dd",function(e,n){return n.weekdaysMinRegex(e)});ar("ddd",function(e,n){return n.weekdaysShortRegex(e)});ar("dddd",function(e,n){return n.weekdaysRegex(e)});rk(["dd","ddd","dddd"],function(e,n,r,i){var o=r._locale.weekdaysParse(e,i,r._strict);o!=null?n.d=o:gi(r).invalidWeekday=e});rk(["d","e","E"],function(e,n,r,i){n[i]=Gi(e)});function F1t(e,n){return typeof e!="string"?e:isNaN(e)?(e=n.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function B1t(e,n){return typeof e=="string"?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Zle(e,n){return e.slice(n,7).concat(e.slice(0,n))}var j1t="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),RFe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),U1t="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),H1t=nk,z1t=nk,V1t=nk;function G1t(e,n){var r=Qh(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return e===!0?Zle(r,this._week.dow):e?r[e.day()]:r}function W1t(e){return e===!0?Zle(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Y1t(e){return e===!0?Zle(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function q1t(e,n,r){var i,o,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=Qm([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return r?n==="dddd"?(o=ks.call(this._weekdaysParse,s),o!==-1?o:null):n==="ddd"?(o=ks.call(this._shortWeekdaysParse,s),o!==-1?o:null):(o=ks.call(this._minWeekdaysParse,s),o!==-1?o:null):n==="dddd"?(o=ks.call(this._weekdaysParse,s),o!==-1||(o=ks.call(this._shortWeekdaysParse,s),o!==-1)?o:(o=ks.call(this._minWeekdaysParse,s),o!==-1?o:null)):n==="ddd"?(o=ks.call(this._shortWeekdaysParse,s),o!==-1||(o=ks.call(this._weekdaysParse,s),o!==-1)?o:(o=ks.call(this._minWeekdaysParse,s),o!==-1?o:null)):(o=ks.call(this._minWeekdaysParse,s),o!==-1||(o=ks.call(this._weekdaysParse,s),o!==-1)?o:(o=ks.call(this._shortWeekdaysParse,s),o!==-1?o:null))}function K1t(e,n,r){var i,o,a;if(this._weekdaysParseExact)return q1t.call(this,e,n,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=Qm([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),r&&n==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(r&&n==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(r&&n==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}}function X1t(e){if(!this.isValid())return e!=null?this:NaN;var n=BP(this,"Day");return e!=null?(e=F1t(e,this.localeData()),this.add(e-n,"d")):n}function Q1t(e){if(!this.isValid())return e!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return e==null?n:this.add(e-n,"d")}function Z1t(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var n=B1t(e,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function J1t(e){return this._weekdaysParseExact?(_o(this,"_weekdaysRegex")||Jle.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(_o(this,"_weekdaysRegex")||(this._weekdaysRegex=H1t),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function eCt(e){return this._weekdaysParseExact?(_o(this,"_weekdaysRegex")||Jle.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=z1t),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function tCt(e){return this._weekdaysParseExact?(_o(this,"_weekdaysRegex")||Jle.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=V1t),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jle(){function e(d,f){return f.length-d.length}var n=[],r=[],i=[],o=[],a,s,l,c,u;for(a=0;a<7;a++)s=Qm([2e3,1]).day(a),l=ly(this.weekdaysMin(s,"")),c=ly(this.weekdaysShort(s,"")),u=ly(this.weekdays(s,"")),n.push(l),r.push(c),i.push(u),o.push(l),o.push(c),o.push(u);n.sort(e),r.sort(e),i.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function ece(){return this.hours()%12||12}function nCt(){return this.hours()||24}Rr("H",["HH",2],0,"hour");Rr("h",["hh",2],0,ece);Rr("k",["kk",2],0,nCt);Rr("hmm",0,0,function(){return""+ece.apply(this)+Rm(this.minutes(),2)});Rr("hmmss",0,0,function(){return""+ece.apply(this)+Rm(this.minutes(),2)+Rm(this.seconds(),2)});Rr("Hmm",0,0,function(){return""+this.hours()+Rm(this.minutes(),2)});Rr("Hmmss",0,0,function(){return""+this.hours()+Rm(this.minutes(),2)+Rm(this.seconds(),2)});function IFe(e,n){Rr(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}IFe("a",!0);IFe("A",!1);function NFe(e,n){return n._meridiemParse}ar("a",NFe);ar("A",NFe);ar("H",Ra,Xle);ar("h",Ra,JR);ar("k",Ra,JR);ar("HH",Ra,Nf);ar("hh",Ra,Nf);ar("kk",Ra,Nf);ar("hmm",yFe);ar("hmmss",_Fe);ar("Hmm",yFe);ar("Hmmss",_Fe);Xo(["H","HH"],El);Xo(["k","kk"],function(e,n,r){var i=Gi(e);n[El]=i===24?0:i});Xo(["a","A"],function(e,n,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Xo(["h","hh"],function(e,n,r){n[El]=Gi(e),gi(r).bigHour=!0});Xo("hmm",function(e,n,r){var i=e.length-2;n[El]=Gi(e.substr(0,i)),n[Mh]=Gi(e.substr(i)),gi(r).bigHour=!0});Xo("hmmss",function(e,n,r){var i=e.length-4,o=e.length-2;n[El]=Gi(e.substr(0,i)),n[Mh]=Gi(e.substr(i,2)),n[Qv]=Gi(e.substr(o)),gi(r).bigHour=!0});Xo("Hmm",function(e,n,r){var i=e.length-2;n[El]=Gi(e.substr(0,i)),n[Mh]=Gi(e.substr(i))});Xo("Hmmss",function(e,n,r){var i=e.length-4,o=e.length-2;n[El]=Gi(e.substr(0,i)),n[Mh]=Gi(e.substr(i,2)),n[Qv]=Gi(e.substr(o))});function rCt(e){return(e+"").toLowerCase().charAt(0)==="p"}var iCt=/[ap]\.?m?\.?/i,oCt=eI("Hours",!0);function aCt(e,n,r){return e>11?r?"pm":"PM":r?"am":"AM"}var MFe={calendar:qEt,longDateFormat:ZEt,invalidDate:e1t,ordinal:n1t,dayOfMonthOrdinalParse:r1t,relativeTime:o1t,months:S1t,monthsShort:EFe,week:A1t,weekdays:j1t,weekdaysMin:U1t,weekdaysShort:RFe,meridiemParse:iCt},$a={},YN={},HP;function sCt(e,n){var r,i=Math.min(e.length,n.length);for(r=0;r<i;r+=1)if(e[r]!==n[r])return r;return i}function U0e(e){return e&&e.toLowerCase().replace("_","-")}function lCt(e){for(var n=0,r,i,o,a;n<e.length;){for(a=U0e(e[n]).split("-"),r=a.length,i=U0e(e[n+1]),i=i?i.split("-"):null;r>0;){if(o=Y7(a.slice(0,r).join("-")),o)return o;if(i&&i.length>=r&&sCt(a,i)>=r-1)break;r--}n++}return HP}function cCt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Y7(e){var n=null,r;if($a[e]===void 0&&typeof module<"u"&&module&&module.exports&&cCt(e))try{n=HP._abbr,r=require,r("./locale/"+e),e0(n)}catch{$a[e]=null}return $a[e]}function e0(e,n){var r;return e&&(Ku(n)?r=Gy(e):r=tce(e,n),r?HP=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),HP._abbr}function tce(e,n){if(n!==null){var r,i=MFe;if(n.abbr=e,$a[e]!=null)hFe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=$a[e]._config;else if(n.parentLocale!=null)if($a[n.parentLocale]!=null)i=$a[n.parentLocale]._config;else if(r=Y7(n.parentLocale),r!=null)i=r._config;else return YN[n.parentLocale]||(YN[n.parentLocale]=[]),YN[n.parentLocale].push({name:e,config:n}),null;return $a[e]=new Gle(Cne(i,n)),YN[e]&&YN[e].forEach(function(o){tce(o.name,o.config)}),e0(e),$a[e]}else return delete $a[e],null}function uCt(e,n){if(n!=null){var r,i,o=MFe;$a[e]!=null&&$a[e].parentLocale!=null?$a[e].set(Cne($a[e]._config,n)):(i=Y7(e),i!=null&&(o=i._config),n=Cne(o,n),i==null&&(n.abbr=e),r=new Gle(n),r.parentLocale=$a[e],$a[e]=r),e0(e)}else $a[e]!=null&&($a[e].parentLocale!=null?($a[e]=$a[e].parentLocale,e===e0()&&e0(e)):$a[e]!=null&&delete $a[e]);return $a[e]}function Gy(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return HP;if(!Qh(e)){if(n=Y7(e),n)return n;e=[e]}return lCt(e)}function dCt(){return wne($a)}function nce(e){var n,r=e._a;return r&&gi(e).overflow===-2&&(n=r[Xv]<0||r[Xv]>11?Xv:r[rm]<1||r[rm]>Qle(r[Uc],r[Xv])?rm:r[El]<0||r[El]>24||r[El]===24&&(r[Mh]!==0||r[Qv]!==0||r[ZE]!==0)?El:r[Mh]<0||r[Mh]>59?Mh:r[Qv]<0||r[Qv]>59?Qv:r[ZE]<0||r[ZE]>999?ZE:-1,gi(e)._overflowDayOfYear&&(n<Uc||n>rm)&&(n=rm),gi(e)._overflowWeeks&&n===-1&&(n=g1t),gi(e)._overflowWeekday&&n===-1&&(n=m1t),gi(e).overflow=n),e}var fCt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pCt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,hCt=/Z|[+-]\d\d(?::?\d\d)?/,y3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],QW=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gCt=/^\/?Date\((-?\d+)/i,mCt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vCt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function PFe(e){var n,r,i=e._i,o=fCt.exec(i)||pCt.exec(i),a,s,l,c,u=y3.length,d=QW.length;if(o){for(gi(e).iso=!0,n=0,r=u;n<r;n++)if(y3[n][1].exec(o[1])){s=y3[n][0],a=y3[n][2]!==!1;break}if(s==null){e._isValid=!1;return}if(o[3]){for(n=0,r=d;n<r;n++)if(QW[n][1].exec(o[3])){l=(o[2]||" ")+QW[n][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(o[4])if(hCt.exec(o[4]))c="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(c||""),ice(e)}else e._isValid=!1}function yCt(e,n,r,i,o,a){var s=[_Ct(e),EFe.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(o,10)];return a&&s.push(parseInt(a,10)),s}function _Ct(e){var n=parseInt(e,10);return n<=49?2e3+n:n<=999?1900+n:n}function bCt(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function SCt(e,n,r){if(e){var i=RFe.indexOf(e),o=new Date(n[0],n[1],n[2]).getDay();if(i!==o)return gi(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function ECt(e,n,r){if(e)return vCt[e];if(n)return 0;var i=parseInt(r,10),o=i%100,a=(i-o)/100;return a*60+o}function AFe(e){var n=mCt.exec(bCt(e._i)),r;if(n){if(r=yCt(n[4],n[3],n[2],n[5],n[6],n[7]),!SCt(n[1],r,e))return;e._a=r,e._tzm=ECt(n[8],n[9],n[10]),e._d=jP.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),gi(e).rfc2822=!0}else e._isValid=!1}function CCt(e){var n=gCt.exec(e._i);if(n!==null){e._d=new Date(+n[1]);return}if(PFe(e),e._isValid===!1)delete e._isValid;else return;if(AFe(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:zn.createFromInputFallback(e)}zn.createFromInputFallback=$p("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Xx(e,n,r){return e??n??r}function wCt(e){var n=new Date(zn.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function rce(e){var n,r,i=[],o,a,s;if(!e._d){for(o=wCt(e),e._w&&e._a[rm]==null&&e._a[Xv]==null&&xCt(e),e._dayOfYear!=null&&(s=Xx(e._a[Uc],o[Uc]),(e._dayOfYear>$2(s)||e._dayOfYear===0)&&(gi(e)._overflowDayOfYear=!0),r=jP(s,0,e._dayOfYear),e._a[Xv]=r.getUTCMonth(),e._a[rm]=r.getUTCDate()),n=0;n<3&&e._a[n]==null;++n)e._a[n]=i[n]=o[n];for(;n<7;n++)e._a[n]=i[n]=e._a[n]==null?n===2?1:0:e._a[n];e._a[El]===24&&e._a[Mh]===0&&e._a[Qv]===0&&e._a[ZE]===0&&(e._nextDay=!0,e._a[El]=0),e._d=(e._useUTC?jP:M1t).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[El]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(gi(e).weekdayMismatch=!0)}}function xCt(e){var n,r,i,o,a,s,l,c,u;n=e._w,n.GG!=null||n.W!=null||n.E!=null?(a=1,s=4,r=Xx(n.GG,e._a[Uc],UP(Ta(),1,4).year),i=Xx(n.W,1),o=Xx(n.E,1),(o<1||o>7)&&(c=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=UP(Ta(),a,s),r=Xx(n.gg,e._a[Uc],u.year),i=Xx(n.w,u.week),n.d!=null?(o=n.d,(o<0||o>6)&&(c=!0)):n.e!=null?(o=n.e+a,(n.e<0||n.e>6)&&(c=!0)):o=a),i<1||i>cy(r,a,s)?gi(e)._overflowWeeks=!0:c!=null?gi(e)._overflowWeekday=!0:(l=OFe(r,i,o,a,s),e._a[Uc]=l.year,e._dayOfYear=l.dayOfYear)}zn.ISO_8601=function(){};zn.RFC_2822=function(){};function ice(e){if(e._f===zn.ISO_8601){PFe(e);return}if(e._f===zn.RFC_2822){AFe(e);return}e._a=[],gi(e).empty=!0;var n=""+e._i,r,i,o,a,s,l=n.length,c=0,u,d;for(o=gFe(e._f,e._locale).match(Wle)||[],d=o.length,r=0;r<d;r++)a=o[r],i=(n.match(f1t(a,e))||[])[0],i&&(s=n.substr(0,n.indexOf(i)),s.length>0&&gi(e).unusedInput.push(s),n=n.slice(n.indexOf(i)+i.length),c+=i.length),AT[a]?(i?gi(e).empty=!1:gi(e).unusedTokens.push(a),h1t(a,i,e)):e._strict&&!i&&gi(e).unusedTokens.push(a);gi(e).charsLeftOver=l-c,n.length>0&&gi(e).unusedInput.push(n),e._a[El]<=12&&gi(e).bigHour===!0&&e._a[El]>0&&(gi(e).bigHour=void 0),gi(e).parsedDateParts=e._a.slice(0),gi(e).meridiem=e._meridiem,e._a[El]=TCt(e._locale,e._a[El],e._meridiem),u=gi(e).era,u!==null&&(e._a[Uc]=e._locale.erasConvertYear(u,e._a[Uc])),rce(e),nce(e)}function TCt(e,n,r){var i;return r==null?n:e.meridiemHour!=null?e.meridiemHour(n,r):(e.isPM!=null&&(i=e.isPM(r),i&&n<12&&(n+=12),!i&&n===12&&(n=0)),n)}function OCt(e){var n,r,i,o,a,s,l=!1,c=e._f.length;if(c===0){gi(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<c;o++)a=0,s=!1,n=Vle({},e),e._useUTC!=null&&(n._useUTC=e._useUTC),n._f=e._f[o],ice(n),zle(n)&&(s=!0),a+=gi(n).charsLeftOver,a+=gi(n).unusedTokens.length*10,gi(n).score=a,l?a<i&&(i=a,r=n):(i==null||a<i||s)&&(i=a,r=n,s&&(l=!0));Db(e,r||n)}function RCt(e){if(!e._d){var n=Yle(e._i),r=n.day===void 0?n.date:n.day;e._a=fFe([n.year,n.month,r,n.hour,n.minute,n.second,n.millisecond],function(i){return i&&parseInt(i,10)}),rce(e)}}function ICt(e){var n=new tk(nce(DFe(e)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function DFe(e){var n=e._i,r=e._f;return e._locale=e._locale||Gy(e._l),n===null||r===void 0&&n===""?j7({nullInput:!0}):(typeof n=="string"&&(e._i=n=e._locale.preparse(n)),Zh(n)?new tk(nce(n)):(ek(n)?e._d=n:Qh(r)?OCt(e):r?ice(e):NCt(e),zle(e)||(e._d=null),e))}function NCt(e){var n=e._i;Ku(n)?e._d=new Date(zn.now()):ek(n)?e._d=new Date(n.valueOf()):typeof n=="string"?CCt(e):Qh(n)?(e._a=fFe(n.slice(0),function(r){return parseInt(r,10)}),rce(e)):w1(n)?RCt(e):wy(n)?e._d=new Date(n):zn.createFromInputFallback(e)}function kFe(e,n,r,i,o){var a={};return(n===!0||n===!1)&&(i=n,n=void 0),(r===!0||r===!1)&&(i=r,r=void 0),(w1(e)&&Hle(e)||Qh(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=r,a._i=e,a._f=n,a._strict=i,ICt(a)}function Ta(e,n,r,i){return kFe(e,n,r,i,!1)}var MCt=$p("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ta.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:j7()}),PCt=$p("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ta.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:j7()});function LFe(e,n){var r,i;if(n.length===1&&Qh(n[0])&&(n=n[0]),!n.length)return Ta();for(r=n[0],i=1;i<n.length;++i)(!n[i].isValid()||n[i][e](r))&&(r=n[i]);return r}function ACt(){var e=[].slice.call(arguments,0);return LFe("isBefore",e)}function DCt(){var e=[].slice.call(arguments,0);return LFe("isAfter",e)}var kCt=function(){return Date.now?Date.now():+new Date},qN=["year","quarter","month","week","day","hour","minute","second","millisecond"];function LCt(e){var n,r=!1,i,o=qN.length;for(n in e)if(_o(e,n)&&!(ks.call(qN,n)!==-1&&(e[n]==null||!isNaN(e[n]))))return!1;for(i=0;i<o;++i)if(e[qN[i]]){if(r)return!1;parseFloat(e[qN[i]])!==Gi(e[qN[i]])&&(r=!0)}return!0}function $Ct(){return this._isValid}function FCt(){return mg(NaN)}function q7(e){var n=Yle(e),r=n.year||0,i=n.quarter||0,o=n.month||0,a=n.week||n.isoWeek||0,s=n.day||0,l=n.hour||0,c=n.minute||0,u=n.second||0,d=n.millisecond||0;this._isValid=LCt(n),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+s+a*7,this._months=+o+i*3+r*12,this._data={},this._locale=Gy(),this._bubble()}function z5(e){return e instanceof q7}function Tne(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function BCt(e,n,r){var i=Math.min(e.length,n.length),o=Math.abs(e.length-n.length),a=0,s;for(s=0;s<i;s++)Gi(e[s])!==Gi(n[s])&&a++;return a+o}function $Fe(e,n){Rr(e,0,0,function(){var r=this.utcOffset(),i="+";return r<0&&(r=-r,i="-"),i+Rm(~~(r/60),2)+n+Rm(~~r%60,2)})}$Fe("Z",":");$Fe("ZZ","");ar("Z",G7);ar("ZZ",G7);Xo(["Z","ZZ"],function(e,n,r){r._useUTC=!0,r._tzm=oce(G7,e)});var jCt=/([\+\-]|\d\d)/gi;function oce(e,n){var r=(n||"").match(e),i,o,a;return r===null?null:(i=r[r.length-1]||[],o=(i+"").match(jCt)||["-",0,0],a=+(o[1]*60)+Gi(o[2]),a===0?0:o[0]==="+"?a:-a)}function ace(e,n){var r,i;return n._isUTC?(r=n.clone(),i=(Zh(e)||ek(e)?e.valueOf():Ta(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),zn.updateOffset(r,!1),r):Ta(e).local()}function One(e){return-Math.round(e._d.getTimezoneOffset())}zn.updateOffset=function(){};function UCt(e,n,r){var i=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=oce(G7,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&n&&(o=One(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),i!==e&&(!n||this._changeInProgress?jFe(this,mg(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,zn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:One(this)}function HCt(e,n){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,n),this):-this.utcOffset()}function zCt(e){return this.utcOffset(0,e)}function VCt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(One(this),"m")),this}function GCt(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=oce(u1t,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function WCt(e){return this.isValid()?(e=e?Ta(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function YCt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qCt(){if(!Ku(this._isDSTShifted))return this._isDSTShifted;var e={},n;return Vle(e,this),e=DFe(e),e._a?(n=e._isUTC?Qm(e._a):Ta(e._a),this._isDSTShifted=this.isValid()&&BCt(e._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function KCt(){return this.isValid()?!this._isUTC:!1}function XCt(){return this.isValid()?this._isUTC:!1}function FFe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var QCt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ZCt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mg(e,n){var r=e,i=null,o,a,s;return z5(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:wy(e)||!isNaN(+e)?(r={},n?r[n]=+e:r.milliseconds=+e):(i=QCt.exec(e))?(o=i[1]==="-"?-1:1,r={y:0,d:Gi(i[rm])*o,h:Gi(i[El])*o,m:Gi(i[Mh])*o,s:Gi(i[Qv])*o,ms:Gi(Tne(i[ZE]*1e3))*o}):(i=ZCt.exec(e))?(o=i[1]==="-"?-1:1,r={y:hE(i[2],o),M:hE(i[3],o),w:hE(i[4],o),d:hE(i[5],o),h:hE(i[6],o),m:hE(i[7],o),s:hE(i[8],o)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(s=JCt(Ta(r.from),Ta(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),a=new q7(r),z5(e)&&_o(e,"_locale")&&(a._locale=e._locale),z5(e)&&_o(e,"_isValid")&&(a._isValid=e._isValid),a}mg.fn=q7.prototype;mg.invalid=FCt;function hE(e,n){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*n}function H0e(e,n){var r={};return r.months=n.month()-e.month()+(n.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(n)&&--r.months,r.milliseconds=+n-+e.clone().add(r.months,"M"),r}function JCt(e,n){var r;return e.isValid()&&n.isValid()?(n=ace(n,e),e.isBefore(n)?r=H0e(e,n):(r=H0e(n,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function BFe(e,n){return function(r,i){var o,a;return i!==null&&!isNaN(+i)&&(hFe(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=i,i=a),o=mg(r,i),jFe(this,o,e),this}}function jFe(e,n,r,i){var o=n._milliseconds,a=Tne(n._days),s=Tne(n._months);e.isValid()&&(i=i??!0,s&&wFe(e,BP(e,"Month")+s*r),a&&SFe(e,"Date",BP(e,"Date")+a*r),o&&e._d.setTime(e._d.valueOf()+o*r),i&&zn.updateOffset(e,a||s))}var ewt=BFe(1,"add"),twt=BFe(-1,"subtract");function UFe(e){return typeof e=="string"||e instanceof String}function nwt(e){return Zh(e)||ek(e)||UFe(e)||wy(e)||iwt(e)||rwt(e)||e===null||e===void 0}function rwt(e){var n=w1(e)&&!Hle(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,a,s=i.length;for(o=0;o<s;o+=1)a=i[o],r=r||_o(e,a);return n&&r}function iwt(e){var n=Qh(e),r=!1;return n&&(r=e.filter(function(i){return!wy(i)&&UFe(e)}).length===0),n&&r}function owt(e){var n=w1(e)&&!Hle(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,a;for(o=0;o<i.length;o+=1)a=i[o],r=r||_o(e,a);return n&&r}function awt(e,n){var r=e.diff(n,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function swt(e,n){arguments.length===1&&(arguments[0]?nwt(arguments[0])?(e=arguments[0],n=void 0):owt(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var r=e||Ta(),i=ace(r,this).startOf("day"),o=zn.calendarFormat(this,i)||"sameElse",a=n&&(Zm(n[o])?n[o].call(this,r):n[o]);return this.format(a||this.localeData().calendar(o,this,Ta(r)))}function lwt(){return new tk(this)}function cwt(e,n){var r=Zh(e)?e:Ta(e);return this.isValid()&&r.isValid()?(n=Fp(n)||"millisecond",n==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(n).valueOf()):!1}function uwt(e,n){var r=Zh(e)?e:Ta(e);return this.isValid()&&r.isValid()?(n=Fp(n)||"millisecond",n==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(n).valueOf()<r.valueOf()):!1}function dwt(e,n,r,i){var o=Zh(e)?e:Ta(e),a=Zh(n)?n:Ta(n);return this.isValid()&&o.isValid()&&a.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(o,r):!this.isBefore(o,r))&&(i[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function fwt(e,n){var r=Zh(e)?e:Ta(e),i;return this.isValid()&&r.isValid()?(n=Fp(n)||"millisecond",n==="millisecond"?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(n).valueOf()<=i&&i<=this.clone().endOf(n).valueOf())):!1}function pwt(e,n){return this.isSame(e,n)||this.isAfter(e,n)}function hwt(e,n){return this.isSame(e,n)||this.isBefore(e,n)}function gwt(e,n,r){var i,o,a;if(!this.isValid())return NaN;if(i=ace(e,this),!i.isValid())return NaN;switch(o=(i.utcOffset()-this.utcOffset())*6e4,n=Fp(n),n){case"year":a=V5(this,i)/12;break;case"month":a=V5(this,i);break;case"quarter":a=V5(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-o)/864e5;break;case"week":a=(this-i-o)/6048e5;break;default:a=this-i}return r?a:ap(a)}function V5(e,n){if(e.date()<n.date())return-V5(n,e);var r=(n.year()-e.year())*12+(n.month()-e.month()),i=e.clone().add(r,"months"),o,a;return n-i<0?(o=e.clone().add(r-1,"months"),a=(n-i)/(i-o)):(o=e.clone().add(r+1,"months"),a=(n-i)/(o-i)),-(r+a)||0}zn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";zn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function mwt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function vwt(e){if(!this.isValid())return null;var n=e!==!0,r=n?this.clone().utc():this;return r.year()<0||r.year()>9999?H5(r,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Zm(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",H5(r,"Z")):H5(r,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ywt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",n="",r,i,o,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),r="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",a=n+'[")]',this.format(r+i+o+a)}function _wt(e){e||(e=this.isUtc()?zn.defaultFormatUtc:zn.defaultFormat);var n=H5(this,e);return this.localeData().postformat(n)}function bwt(e,n){return this.isValid()&&(Zh(e)&&e.isValid()||Ta(e).isValid())?mg({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Swt(e){return this.from(Ta(),e)}function Ewt(e,n){return this.isValid()&&(Zh(e)&&e.isValid()||Ta(e).isValid())?mg({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Cwt(e){return this.to(Ta(),e)}function HFe(e){var n;return e===void 0?this._locale._abbr:(n=Gy(e),n!=null&&(this._locale=n),this)}var zFe=$p("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function VFe(){return this._locale}var LF=1e3,DT=60*LF,$F=60*DT,GFe=(365*400+97)*24*$F;function kT(e,n){return(e%n+n)%n}function WFe(e,n,r){return e<100&&e>=0?new Date(e+400,n,r)-GFe:new Date(e,n,r).valueOf()}function YFe(e,n,r){return e<100&&e>=0?Date.UTC(e+400,n,r)-GFe:Date.UTC(e,n,r)}function wwt(e){var n,r;if(e=Fp(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?YFe:WFe,e){case"year":n=r(this.year(),0,1);break;case"quarter":n=r(this.year(),this.month()-this.month()%3,1);break;case"month":n=r(this.year(),this.month(),1);break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=r(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=kT(n+(this._isUTC?0:this.utcOffset()*DT),$F);break;case"minute":n=this._d.valueOf(),n-=kT(n,DT);break;case"second":n=this._d.valueOf(),n-=kT(n,LF);break}return this._d.setTime(n),zn.updateOffset(this,!0),this}function xwt(e){var n,r;if(e=Fp(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?YFe:WFe,e){case"year":n=r(this.year()+1,0,1)-1;break;case"quarter":n=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=r(this.year(),this.month()+1,1)-1;break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=$F-kT(n+(this._isUTC?0:this.utcOffset()*DT),$F)-1;break;case"minute":n=this._d.valueOf(),n+=DT-kT(n,DT)-1;break;case"second":n=this._d.valueOf(),n+=LF-kT(n,LF)-1;break}return this._d.setTime(n),zn.updateOffset(this,!0),this}function Twt(){return this._d.valueOf()-(this._offset||0)*6e4}function Owt(){return Math.floor(this.valueOf()/1e3)}function Rwt(){return new Date(this.valueOf())}function Iwt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Nwt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Mwt(){return this.isValid()?this.toISOString():null}function Pwt(){return zle(this)}function Awt(){return Db({},gi(this))}function Dwt(){return gi(this).overflow}function kwt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Rr("N",0,0,"eraAbbr");Rr("NN",0,0,"eraAbbr");Rr("NNN",0,0,"eraAbbr");Rr("NNNN",0,0,"eraName");Rr("NNNNN",0,0,"eraNarrow");Rr("y",["y",1],"yo","eraYear");Rr("y",["yy",2],0,"eraYear");Rr("y",["yyy",3],0,"eraYear");Rr("y",["yyyy",4],0,"eraYear");ar("N",sce);ar("NN",sce);ar("NNN",sce);ar("NNNN",Wwt);ar("NNNNN",Ywt);Xo(["N","NN","NNN","NNNN","NNNNN"],function(e,n,r,i){var o=r._locale.erasParse(e,i,r._strict);o?gi(r).era=o:gi(r).invalidEra=e});ar("y",ZR);ar("yy",ZR);ar("yyy",ZR);ar("yyyy",ZR);ar("yo",qwt);Xo(["y","yy","yyy","yyyy"],Uc);Xo(["yo"],function(e,n,r,i){var o;r._locale._eraYearOrdinalRegex&&(o=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?n[Uc]=r._locale.eraYearOrdinalParse(e,o):n[Uc]=parseInt(e,10)});function Lwt(e,n){var r,i,o,a=this._eras||Gy("en")._eras;for(r=0,i=a.length;r<i;++r){switch(typeof a[r].since){case"string":o=zn(a[r].since).startOf("day"),a[r].since=o.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":o=zn(a[r].until).startOf("day").valueOf(),a[r].until=o.valueOf();break}}return a}function $wt(e,n,r){var i,o,a=this.eras(),s,l,c;for(e=e.toUpperCase(),i=0,o=a.length;i<o;++i)if(s=a[i].name.toUpperCase(),l=a[i].abbr.toUpperCase(),c=a[i].narrow.toUpperCase(),r)switch(n){case"N":case"NN":case"NNN":if(l===e)return a[i];break;case"NNNN":if(s===e)return a[i];break;case"NNNNN":if(c===e)return a[i];break}else if([s,l,c].indexOf(e)>=0)return a[i]}function Fwt(e,n){var r=e.since<=e.until?1:-1;return n===void 0?zn(e.since).year():zn(e.since).year()+(n-e.offset)*r}function Bwt(){var e,n,r,i=this.localeData().eras();for(e=0,n=i.length;e<n;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].name;return""}function jwt(){var e,n,r,i=this.localeData().eras();for(e=0,n=i.length;e<n;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].narrow;return""}function Uwt(){var e,n,r,i=this.localeData().eras();for(e=0,n=i.length;e<n;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].abbr;return""}function Hwt(){var e,n,r,i,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(r=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-zn(o[e].since).year())*r+o[e].offset;return this.year()}function zwt(e){return _o(this,"_erasNameRegex")||lce.call(this),e?this._erasNameRegex:this._erasRegex}function Vwt(e){return _o(this,"_erasAbbrRegex")||lce.call(this),e?this._erasAbbrRegex:this._erasRegex}function Gwt(e){return _o(this,"_erasNarrowRegex")||lce.call(this),e?this._erasNarrowRegex:this._erasRegex}function sce(e,n){return n.erasAbbrRegex(e)}function Wwt(e,n){return n.erasNameRegex(e)}function Ywt(e,n){return n.erasNarrowRegex(e)}function qwt(e,n){return n._eraYearOrdinalRegex||ZR}function lce(){var e=[],n=[],r=[],i=[],o,a,s,l,c,u=this.eras();for(o=0,a=u.length;o<a;++o)s=ly(u[o].name),l=ly(u[o].abbr),c=ly(u[o].narrow),n.push(s),e.push(l),r.push(c),i.push(s),i.push(l),i.push(c);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Rr(0,["gg",2],0,function(){return this.weekYear()%100});Rr(0,["GG",2],0,function(){return this.isoWeekYear()%100});function K7(e,n){Rr(0,[e,e.length],0,n)}K7("gggg","weekYear");K7("ggggg","weekYear");K7("GGGG","isoWeekYear");K7("GGGGG","isoWeekYear");ar("G",V7);ar("g",V7);ar("GG",Ra,Nf);ar("gg",Ra,Nf);ar("GGGG",Kle,qle);ar("gggg",Kle,qle);ar("GGGGG",z7,U7);ar("ggggg",z7,U7);rk(["gggg","ggggg","GGGG","GGGGG"],function(e,n,r,i){n[i.substr(0,2)]=Gi(e)});rk(["gg","GG"],function(e,n,r,i){n[i]=zn.parseTwoDigitYear(e)});function Kwt(e){return qFe.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Xwt(e){return qFe.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Qwt(){return cy(this.year(),1,4)}function Zwt(){return cy(this.isoWeekYear(),1,4)}function Jwt(){var e=this.localeData()._week;return cy(this.year(),e.dow,e.doy)}function ext(){var e=this.localeData()._week;return cy(this.weekYear(),e.dow,e.doy)}function qFe(e,n,r,i,o){var a;return e==null?UP(this,i,o).year:(a=cy(e,i,o),n>a&&(n=a),txt.call(this,e,n,r,i,o))}function txt(e,n,r,i,o){var a=OFe(e,n,r,i,o),s=jP(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Rr("Q",0,"Qo","quarter");ar("Q",mFe);Xo("Q",function(e,n){n[Xv]=(Gi(e)-1)*3});function nxt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Rr("D",["DD",2],"Do","date");ar("D",Ra,JR);ar("DD",Ra,Nf);ar("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});Xo(["D","DD"],rm);Xo("Do",function(e,n){n[rm]=Gi(e.match(Ra)[0])});var KFe=eI("Date",!0);Rr("DDD",["DDDD",3],"DDDo","dayOfYear");ar("DDD",H7);ar("DDDD",vFe);Xo(["DDD","DDDD"],function(e,n,r){r._dayOfYear=Gi(e)});function rxt(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?n:this.add(e-n,"d")}Rr("m",["mm",2],0,"minute");ar("m",Ra,Xle);ar("mm",Ra,Nf);Xo(["m","mm"],Mh);var ixt=eI("Minutes",!1);Rr("s",["ss",2],0,"second");ar("s",Ra,Xle);ar("ss",Ra,Nf);Xo(["s","ss"],Qv);var oxt=eI("Seconds",!1);Rr("S",0,0,function(){return~~(this.millisecond()/100)});Rr(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Rr(0,["SSS",3],0,"millisecond");Rr(0,["SSSS",4],0,function(){return this.millisecond()*10});Rr(0,["SSSSS",5],0,function(){return this.millisecond()*100});Rr(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Rr(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Rr(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Rr(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ar("S",H7,mFe);ar("SS",H7,Nf);ar("SSS",H7,vFe);var kb,XFe;for(kb="SSSS";kb.length<=9;kb+="S")ar(kb,ZR);function axt(e,n){n[ZE]=Gi(("0."+e)*1e3)}for(kb="S";kb.length<=9;kb+="S")Xo(kb,axt);XFe=eI("Milliseconds",!1);Rr("z",0,0,"zoneAbbr");Rr("zz",0,0,"zoneName");function sxt(){return this._isUTC?"UTC":""}function lxt(){return this._isUTC?"Coordinated Universal Time":""}var kn=tk.prototype;kn.add=ewt;kn.calendar=swt;kn.clone=lwt;kn.diff=gwt;kn.endOf=xwt;kn.format=_wt;kn.from=bwt;kn.fromNow=Swt;kn.to=Ewt;kn.toNow=Cwt;kn.get=y1t;kn.invalidAt=Dwt;kn.isAfter=cwt;kn.isBefore=uwt;kn.isBetween=dwt;kn.isSame=fwt;kn.isSameOrAfter=pwt;kn.isSameOrBefore=hwt;kn.isValid=Pwt;kn.lang=zFe;kn.locale=HFe;kn.localeData=VFe;kn.max=PCt;kn.min=MCt;kn.parsingFlags=Awt;kn.set=_1t;kn.startOf=wwt;kn.subtract=twt;kn.toArray=Iwt;kn.toObject=Nwt;kn.toDate=Rwt;kn.toISOString=vwt;kn.inspect=ywt;typeof Symbol<"u"&&Symbol.for!=null&&(kn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});kn.toJSON=Mwt;kn.toString=mwt;kn.unix=Owt;kn.valueOf=Twt;kn.creationData=kwt;kn.eraName=Bwt;kn.eraNarrow=jwt;kn.eraAbbr=Uwt;kn.eraYear=Hwt;kn.year=bFe;kn.isLeapYear=v1t;kn.weekYear=Kwt;kn.isoWeekYear=Xwt;kn.quarter=kn.quarters=nxt;kn.month=xFe;kn.daysInMonth=R1t;kn.week=kn.weeks=L1t;kn.isoWeek=kn.isoWeeks=$1t;kn.weeksInYear=Jwt;kn.weeksInWeekYear=ext;kn.isoWeeksInYear=Qwt;kn.isoWeeksInISOWeekYear=Zwt;kn.date=KFe;kn.day=kn.days=X1t;kn.weekday=Q1t;kn.isoWeekday=Z1t;kn.dayOfYear=rxt;kn.hour=kn.hours=oCt;kn.minute=kn.minutes=ixt;kn.second=kn.seconds=oxt;kn.millisecond=kn.milliseconds=XFe;kn.utcOffset=UCt;kn.utc=zCt;kn.local=VCt;kn.parseZone=GCt;kn.hasAlignedHourOffset=WCt;kn.isDST=YCt;kn.isLocal=KCt;kn.isUtcOffset=XCt;kn.isUtc=FFe;kn.isUTC=FFe;kn.zoneAbbr=sxt;kn.zoneName=lxt;kn.dates=$p("dates accessor is deprecated. Use date instead.",KFe);kn.months=$p("months accessor is deprecated. Use month instead",xFe);kn.years=$p("years accessor is deprecated. Use year instead",bFe);kn.zone=$p("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",HCt);kn.isDSTShifted=$p("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qCt);function cxt(e){return Ta(e*1e3)}function uxt(){return Ta.apply(null,arguments).parseZone()}function QFe(e){return e}var So=Gle.prototype;So.calendar=KEt;So.longDateFormat=JEt;So.invalidDate=t1t;So.ordinal=i1t;So.preparse=QFe;So.postformat=QFe;So.relativeTime=a1t;So.pastFuture=s1t;So.set=YEt;So.eras=Lwt;So.erasParse=$wt;So.erasConvertYear=Fwt;So.erasAbbrRegex=Vwt;So.erasNameRegex=zwt;So.erasNarrowRegex=Gwt;So.months=w1t;So.monthsShort=x1t;So.monthsParse=O1t;So.monthsRegex=N1t;So.monthsShortRegex=I1t;So.week=P1t;So.firstDayOfYear=k1t;So.firstDayOfWeek=D1t;So.weekdays=G1t;So.weekdaysMin=Y1t;So.weekdaysShort=W1t;So.weekdaysParse=K1t;So.weekdaysRegex=J1t;So.weekdaysShortRegex=eCt;So.weekdaysMinRegex=tCt;So.isPM=rCt;So.meridiem=aCt;function FF(e,n,r,i){var o=Gy(),a=Qm().set(i,n);return o[r](a,e)}function ZFe(e,n,r){if(wy(e)&&(n=e,e=void 0),e=e||"",n!=null)return FF(e,n,r,"month");var i,o=[];for(i=0;i<12;i++)o[i]=FF(e,i,r,"month");return o}function cce(e,n,r,i){typeof e=="boolean"?(wy(n)&&(r=n,n=void 0),n=n||""):(n=e,r=n,e=!1,wy(n)&&(r=n,n=void 0),n=n||"");var o=Gy(),a=e?o._week.dow:0,s,l=[];if(r!=null)return FF(n,(r+a)%7,i,"day");for(s=0;s<7;s++)l[s]=FF(n,(s+a)%7,i,"day");return l}function dxt(e,n){return ZFe(e,n,"months")}function fxt(e,n){return ZFe(e,n,"monthsShort")}function pxt(e,n,r){return cce(e,n,r,"weekdays")}function hxt(e,n,r){return cce(e,n,r,"weekdaysShort")}function gxt(e,n,r){return cce(e,n,r,"weekdaysMin")}e0("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var n=e%10,r=Gi(e%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return e+r}});zn.lang=$p("moment.lang is deprecated. Use moment.locale instead.",e0);zn.langData=$p("moment.langData is deprecated. Use moment.localeData instead.",Gy);var Cv=Math.abs;function mxt(){var e=this._data;return this._milliseconds=Cv(this._milliseconds),this._days=Cv(this._days),this._months=Cv(this._months),e.milliseconds=Cv(e.milliseconds),e.seconds=Cv(e.seconds),e.minutes=Cv(e.minutes),e.hours=Cv(e.hours),e.months=Cv(e.months),e.years=Cv(e.years),this}function JFe(e,n,r,i){var o=mg(n,r);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function vxt(e,n){return JFe(this,e,n,1)}function yxt(e,n){return JFe(this,e,n,-1)}function z0e(e){return e<0?Math.floor(e):Math.ceil(e)}function _xt(){var e=this._milliseconds,n=this._days,r=this._months,i=this._data,o,a,s,l,c;return e>=0&&n>=0&&r>=0||e<=0&&n<=0&&r<=0||(e+=z0e(Rne(r)+n)*864e5,n=0,r=0),i.milliseconds=e%1e3,o=ap(e/1e3),i.seconds=o%60,a=ap(o/60),i.minutes=a%60,s=ap(a/60),i.hours=s%24,n+=ap(s/24),c=ap(e8e(n)),r+=c,n-=z0e(Rne(c)),l=ap(r/12),r%=12,i.days=n,i.months=r,i.years=l,this}function e8e(e){return e*4800/146097}function Rne(e){return e*146097/4800}function bxt(e){if(!this.isValid())return NaN;var n,r,i=this._milliseconds;if(e=Fp(e),e==="month"||e==="quarter"||e==="year")switch(n=this._days+i/864e5,r=this._months+e8e(n),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(n=this._days+Math.round(Rne(this._months)),e){case"week":return n/7+i/6048e5;case"day":return n+i/864e5;case"hour":return n*24+i/36e5;case"minute":return n*1440+i/6e4;case"second":return n*86400+i/1e3;case"millisecond":return Math.floor(n*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Wy(e){return function(){return this.as(e)}}var t8e=Wy("ms"),Sxt=Wy("s"),Ext=Wy("m"),Cxt=Wy("h"),wxt=Wy("d"),xxt=Wy("w"),Txt=Wy("M"),Oxt=Wy("Q"),Rxt=Wy("y"),Ixt=t8e;function Nxt(){return mg(this)}function Mxt(e){return e=Fp(e),this.isValid()?this[e+"s"]():NaN}function KC(e){return function(){return this.isValid()?this._data[e]:NaN}}var Pxt=KC("milliseconds"),Axt=KC("seconds"),Dxt=KC("minutes"),kxt=KC("hours"),Lxt=KC("days"),$xt=KC("months"),Fxt=KC("years");function Bxt(){return ap(this.days()/7)}var Fv=Math.round,rT={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function jxt(e,n,r,i,o){return o.relativeTime(n||1,!!r,e,i)}function Uxt(e,n,r,i){var o=mg(e).abs(),a=Fv(o.as("s")),s=Fv(o.as("m")),l=Fv(o.as("h")),c=Fv(o.as("d")),u=Fv(o.as("M")),d=Fv(o.as("w")),f=Fv(o.as("y")),p=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||s<=1&&["m"]||s<r.m&&["mm",s]||l<=1&&["h"]||l<r.h&&["hh",l]||c<=1&&["d"]||c<r.d&&["dd",c];return r.w!=null&&(p=p||d<=1&&["w"]||d<r.w&&["ww",d]),p=p||u<=1&&["M"]||u<r.M&&["MM",u]||f<=1&&["y"]||["yy",f],p[2]=n,p[3]=+e>0,p[4]=i,jxt.apply(null,p)}function Hxt(e){return e===void 0?Fv:typeof e=="function"?(Fv=e,!0):!1}function zxt(e,n){return rT[e]===void 0?!1:n===void 0?rT[e]:(rT[e]=n,e==="s"&&(rT.ss=n-1),!0)}function Vxt(e,n){if(!this.isValid())return this.localeData().invalidDate();var r=!1,i=rT,o,a;return typeof e=="object"&&(n=e,e=!1),typeof e=="boolean"&&(r=e),typeof n=="object"&&(i=Object.assign({},rT,n),n.s!=null&&n.ss==null&&(i.ss=n.s-1)),o=this.localeData(),a=Uxt(this,!r,i,o),r&&(a=o.pastFuture(+this,a)),o.postformat(a)}var ZW=Math.abs;function dx(e){return(e>0)-(e<0)||+e}function X7(){if(!this.isValid())return this.localeData().invalidDate();var e=ZW(this._milliseconds)/1e3,n=ZW(this._days),r=ZW(this._months),i,o,a,s,l=this.asSeconds(),c,u,d,f;return l?(i=ap(e/60),o=ap(i/60),e%=60,i%=60,a=ap(r/12),r%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=dx(this._months)!==dx(l)?"-":"",d=dx(this._days)!==dx(l)?"-":"",f=dx(this._milliseconds)!==dx(l)?"-":"",c+"P"+(a?u+a+"Y":"")+(r?u+r+"M":"")+(n?d+n+"D":"")+(o||i||e?"T":"")+(o?f+o+"H":"")+(i?f+i+"M":"")+(e?f+s+"S":"")):"P0D"}var lo=q7.prototype;lo.isValid=$Ct;lo.abs=mxt;lo.add=vxt;lo.subtract=yxt;lo.as=bxt;lo.asMilliseconds=t8e;lo.asSeconds=Sxt;lo.asMinutes=Ext;lo.asHours=Cxt;lo.asDays=wxt;lo.asWeeks=xxt;lo.asMonths=Txt;lo.asQuarters=Oxt;lo.asYears=Rxt;lo.valueOf=Ixt;lo._bubble=_xt;lo.clone=Nxt;lo.get=Mxt;lo.milliseconds=Pxt;lo.seconds=Axt;lo.minutes=Dxt;lo.hours=kxt;lo.days=Lxt;lo.weeks=Bxt;lo.months=$xt;lo.years=Fxt;lo.humanize=Vxt;lo.toISOString=X7;lo.toString=X7;lo.toJSON=X7;lo.locale=HFe;lo.localeData=VFe;lo.toIsoString=$p("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",X7);lo.lang=zFe;Rr("X",0,0,"unix");Rr("x",0,0,"valueOf");ar("x",V7);ar("X",d1t);Xo("X",function(e,n,r){r._d=new Date(parseFloat(e)*1e3)});Xo("x",function(e,n,r){r._d=new Date(Gi(e))});//! moment.js
|
||
zn.version="2.30.1";GEt(Ta);zn.fn=kn;zn.min=ACt;zn.max=DCt;zn.now=kCt;zn.utc=Qm;zn.unix=cxt;zn.months=dxt;zn.isDate=ek;zn.locale=e0;zn.invalid=j7;zn.duration=mg;zn.isMoment=Zh;zn.weekdays=pxt;zn.parseZone=uxt;zn.localeData=Gy;zn.isDuration=z5;zn.monthsShort=fxt;zn.weekdaysMin=gxt;zn.defineLocale=tce;zn.updateLocale=uCt;zn.locales=dCt;zn.weekdaysShort=hxt;zn.normalizeUnits=Fp;zn.relativeTimeRounding=Hxt;zn.relativeTimeThreshold=zxt;zn.calendarFormat=awt;zn.prototype=kn;zn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let _3;const Gxt=new Uint8Array(16);function Wxt(){if(!_3&&(_3=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_3))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _3(Gxt)}const ac=[];for(let e=0;e<256;++e)ac.push((e+256).toString(16).slice(1));function Yxt(e,n=0){return ac[e[n+0]]+ac[e[n+1]]+ac[e[n+2]]+ac[e[n+3]]+"-"+ac[e[n+4]]+ac[e[n+5]]+"-"+ac[e[n+6]]+ac[e[n+7]]+"-"+ac[e[n+8]]+ac[e[n+9]]+"-"+ac[e[n+10]]+ac[e[n+11]]+ac[e[n+12]]+ac[e[n+13]]+ac[e[n+14]]+ac[e[n+15]]}const qxt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),V0e={randomUUID:qxt};function n8e(e,n,r){if(V0e.randomUUID&&!n&&!e)return V0e.randomUUID();e=e||{};const i=e.random||(e.rng||Wxt)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Yxt(i)}const Kxt="1.3.1";function Xxt(){return Kxt}function Qxt(){const e=localStorage.getItem(R5);(e===null||e==="true")&&new Audio(Wyt).play()}function Zxt(){return zn().format("YYYY-MM-DD HH:mm:ss")}function Q7(){return n8e().replaceAll(/-/g,"")}function fx(e){return e.endsWith("/")?e.slice(0,-1):e}function G0e(e,n){return e.length>n?e.slice(0,n-3)+"...":e}function Jxt(e){if(Zyt===e||Jyt===e||e_t===e||t_t===e||n_t===e)return!0}function eTt(e){return e===LP||e===$P}function tTt(e){return e===LP||e===$P}function nTt(e){return e.startsWith(c_t)}function r8e(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const Jm=Ou()(kp(Sd(Lp(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(n){e({currentOrg:n})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:xyt}))),Ph=Ou()(kp(Sd(Lp((e,n)=>({threads:[],queuingThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(r){var o,a;if(r.status===Sbe)return n().addQueuingThread(r),0;if(n().threads.some(s=>s.topic===r.topic))if(((o=n().currentThread)==null?void 0:o.topic)===""||((a=n().currentThread)==null?void 0:a.topic)!==r.topic){for(let s=0;s<n().threads.length;s++){const l=n().threads[s];l.topic===r.topic&&(r.unreadCount=l.unreadCount+1,r.top=l.top,r.mute=l.mute,r.unread=l.unread,r.agent=l.agent)}return e({threads:[r,...n().threads.filter(s=>s.topic!==r.topic)]}),r.unreadCount}else{const s=n().threads.map(l=>l.topic===r.topic?(r.top=l.top,r.mute=l.mute,r.unread=l.unread,r.agent=l.agent,r):l);return e({threads:s}),0}else return r.unreadCount=1,e({threads:[r,...n().threads]}),r.unreadCount},addThreadWithMessage(r,i){var l,c;if(i.type===Qyt)return n().addQueuingThread(r),0;const o=n().threads.some(u=>u.topic===r.topic),a=!eTt(i.type);if(tTt(i.type)&&(r.status=Ebe),o)if(((l=n().currentThread)==null?void 0:l.topic)===""||((c=n().currentThread)==null?void 0:c.topic)!==r.topic){for(let u=0;u<n().threads.length;u++){const d=n().threads[u];d.topic===r.topic&&(a&&(r.unreadCount=d.unreadCount+1),r.top=d.top,r.mute=d.mute,r.unread=d.unread,r.agent=d.agent)}return e({threads:[r,...n().threads.filter(u=>u.topic!==r.topic)]}),r.unreadCount}else{const u=n().threads.map(d=>d.topic===r.topic?(r.top=d.top,r.mute=d.mute,r.unread=d.unread,r.agent=d.agent,r):d);return e({threads:u}),0}else return a&&(r.unreadCount=1),e({threads:[r,...n().threads]}),r.unreadCount},addQueuingThread(r){n().queuingThreads.some(o=>o.topic===r.topic)||e({queuingThreads:[r,...n().queuingThreads]})},updateThreadContent(r,i){let o=null;const a=n().threads.map(s=>s.topic===r?(o={...s,unreadCount:s.unreadCount+1,content:i},o):s);return e({threads:a}),o},updateThreadStatus(r,i){let o=null;const a=n().threads.map(s=>s.topic===r?(o={...s,status:i},o):s);return e({threads:a}),o},removeThread(r){e({threads:[...n().threads.filter(i=>(i==null?void 0:i.uid)!==(r==null?void 0:r.uid))]})},closeThread(r){const i=n().threads.map(o=>o.topic===r?{...o,state:Ebe}:o);e({threads:i})},addThreads(r){for(let i=0;i<r.length;i++){const o=r[i];if(o.status===Sbe){n().addQueuingThread(o);continue}if(!n().threads.some(s=>s.topic===o.topic))e({threads:[...n().threads,o]});else{const s=n().threads.map(l=>l.topic===o.topic?{...o,unreadCount:l.unreadCount}:l);e({threads:s})}}},setThreads(r){e(i=>{i.threads=r})},setQueuingThreads(r){e(i=>{i.queuingThreads=r})},setCurrentThread(r){e(a=>{a.showQueueList=!1});const i={...r,unreadCount:0},o=n().threads.map(a=>a.topic===i.topic?i:a);e(a=>{a.currentThread=i,a.threads=o})},setCurrentQueuingThread(r){e(i=>{i.currentQueuingThread=r})},setThreadResult(r){e(i=>{i.threadResult=r})},getUnreadCount(){return n().threads.reduce((r,i)=>{var o;return i.unreadCount>0&&i.topic!==((o=n().currentThread)==null?void 0:o.topic)?r+i.unreadCount:r},0)},setShowQueueButton(r){e(i=>{i.showQueueButton=r})},setShowQueueList(r){e(i=>{i.showQueueList=r,i.showRightPanel=!1})},setShowRightPanel(r){e(i=>{i.showRightPanel=r})},resetThreads(){e(r=>{r.threads=[],r.queuingThreads=[],r.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},r.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},r.threadResult={data:{content:[],last:!0}},r.showQueueButton=!1,r.showQueueList=!1,r.showRightPanel=!1})},setLoading:r=>e({loading:r}),setError:r=>e({error:r}),setSearchText:r=>e({searchText:r}),setFilter:(r,i)=>e(o=>{o.filters[r]=i}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:r}=Jm.getState();if(r!=null&&r.uid){const{threadService:i}=await VEt(async()=>{const{threadService:o}=await import("./threadService-CWEBUmaf.js");return{threadService:o}},[]);await i.loadThreads(r.uid)}},setPagination:r=>e({pagination:r})})),{name:Myt}))),Yy=Ou()(kp(Sd(Lp((e,n)=>({messageList:[],addMessage(r){if(n().messageList.some(o=>o.uid===r.uid)){if(r.type===kP){const a=n().messageList.findIndex(s=>s.type===kP&&s.uid===r.uid);if(a!==-1){const s=[...n().messageList];s[a].content+=r.content,e({messageList:s});return}}const o=n().messageList.findIndex(a=>a.uid===r.uid);if(o!==-1){const a=[...n().messageList];a[o]=r,e({messageList:a})}}else{const o=n().messageList[n().messageList.length-1];if(o&&r.type===Bee&&o.type===Bee){const a=n().messageList.findIndex(l=>l.uid===o.uid),s=[...n().messageList];s[a]=r,e({messageList:s})}else e({messageList:[...n().messageList,r]})}n().sortMessageList()},addMessageList(r){const i=[];for(let a=0;a<r.length;a++){const s=r[a];n().messageList.some(c=>c.uid===s.uid)||i.unshift(s)}const o=[...i,...n().messageList].sort((a,s)=>{const l=zn(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),c=zn(s.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return l-c});console.log("sortedMessageList",o),e({messageList:o})},updateMessageStatus(r,i){const o=n().messageList.findIndex(a=>a.uid===r);if(o!==-1){const a=[...n().messageList];a[o].status=i,e({messageList:a})}},updateMessage(r){const i=n().messageList.findIndex(o=>o.uid===r.uid);if(i!==-1){const o=[...n().messageList];o[i].content=r.content,e({messageList:o})}else console.log("找不到该消息")},deleteMessage(r){const i=n().messageList.findIndex(o=>o.uid===r);if(i!==-1){const o=[...n().messageList];o.splice(i,1),e({messageList:o})}},recallMessage(r){const i=n().messageList.findIndex(o=>o.uid===r);if(i!==-1){const o=[...n().messageList];o[i].type=k4e,o[i].content="该消息已被撤回",e({messageList:o})}},sortMessageList(){const r=n().messageList.sort((i,o)=>{const a=zn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),s=zn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return a-s});e({messageList:r})},resetMessageList(){e({messageList:[]})}})),{name:Oyt}))),ws=Ou()(kp(Sd(Lp((e,n)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:r=>{e({userInfo:r})},setDeviceUid(r){e({deviceUid:r})},resetUserInfo(){e({userInfo:{uid:n().userInfo.uid,nickname:"",avatar:""}})}})),{name:Iyt}))),XC=Ou()(kp(Sd(Lp((e,n)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(r){e(i=>{i.agentResult.data.content.unshift(r)})},updateAgent(r){e(i=>{const o=i.agentResult.data.content,a=o.findIndex(s=>s.uid===r.uid);a!==-1?o[a]=r:console.warn(`Agent with uid ${r.uid} not found.`)})},deleteAgent(r){e(i=>{const o=i.agentResult.data.content,a=o.findIndex(s=>s.uid===r.uid);a!==-1?o.splice(a,1):console.warn(`Agent with uid ${r.uid} not found.`)})},setAgentResult:r=>{e({agentResult:r})},setAgentInfo(r){e({agentInfo:r})},deleteAgentInfo(r){const i=n().agentResult.data.content,o=i.findIndex(a=>a.uid===r);o!==-1?e({agentResult:{...n().agentResult,data:{content:[...i.slice(0,o),...i.slice(o+1)]}}}):console.warn("Agent not found in cache:",r),n().agentInfo.uid===r&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:Ayt})));var i8e={exports:{}};/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/(function(e){(function(){var n={}.hasOwnProperty;function r(){for(var a="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(a=o(a,i(l)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var l in a)n.call(a,l)&&a[l]&&(s=o(s,l));return s}function o(a,s){return s?a?a+" "+s:a+s:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(i8e);var Z7=i8e.exports;const Ce=Or(Z7);function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ft.apply(null,arguments)}function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cn(e)}var rTt=Symbol.for("react.element"),iTt=Symbol.for("react.transitional.element"),oTt=Symbol.for("react.fragment");function o8e(e){return e&&cn(e)==="object"&&(e.$$typeof===rTt||e.$$typeof===iTt)&&e.type===oTt}function Tl(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return V.Children.forEach(e,function(i){i==null&&!n.keepEmpty||(Array.isArray(i)?r=r.concat(Tl(i)):o8e(i)&&i.props?r=r.concat(Tl(i.props.children,n)):r.push(i))}),r}var Ine={},aTt=function(n){};function sTt(e,n){}function lTt(e,n){}function cTt(){Ine={}}function a8e(e,n,r){!n&&!Ine[r]&&(e(!1,r),Ine[r]=!0)}function qi(e,n){a8e(sTt,e,n)}function BF(e,n){a8e(lTt,e,n)}qi.preMessage=aTt;qi.resetWarned=cTt;qi.noteOnce=BF;function uTt(e,n){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(cn(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function s8e(e){var n=uTt(e,"string");return cn(n)=="symbol"?n:n+""}function fe(e,n,r){return(n=s8e(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function W0e(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function ee(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?W0e(Object(r),!0).forEach(function(i){fe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W0e(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}var l8e={exports:{}},Mf={},c8e={exports:{}},u8e={};/**
|
||
* @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 n(B,Y){var q=B.length;B.push(Y);e:for(;0<q;){var K=q-1>>>1,H=B[K];if(0<o(H,Y))B[K]=Y,B[q]=H,q=K;else break e}}function r(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var Y=B[0],q=B.pop();if(q!==Y){B[0]=q;e:for(var K=0,H=B.length,G=H>>>1;K<G;){var Q=2*(K+1)-1,le=B[Q],Z=Q+1,j=B[Z];if(0>o(le,q))Z<H&&0>o(j,le)?(B[K]=j,B[Z]=q,K=Z):(B[K]=le,B[Q]=q,K=Q);else if(Z<H&&0>o(j,q))B[K]=j,B[Z]=q,K=Z;else break e}}return Y}function o(B,Y){var q=B.sortIndex-Y.sortIndex;return q!==0?q:B.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,g=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(B){for(var Y=r(u);Y!==null;){if(Y.callback===null)i(u);else if(Y.startTime<=B)i(u),Y.sortIndex=Y.expirationTime,n(c,Y);else break;Y=r(u)}}function E(B){if(v=!1,b(B),!g)if(r(c)!==null)g=!0,z(w);else{var Y=r(u);Y!==null&&D(E,Y.startTime-B)}}function w(B,Y){g=!1,v&&(v=!1,_(T),T=-1),h=!0;var q=p;try{for(b(Y),f=r(c);f!==null&&(!(f.expirationTime>Y)||B&&!M());){var K=f.callback;if(typeof K=="function"){f.callback=null,p=f.priorityLevel;var H=K(f.expirationTime<=Y);Y=e.unstable_now(),typeof H=="function"?f.callback=H:f===r(c)&&i(c),b(Y)}else i(c);f=r(c)}if(f!==null)var G=!0;else{var Q=r(u);Q!==null&&D(E,Q.startTime-Y),G=!1}return G}finally{f=null,p=q,h=!1}}var C=!1,x=null,T=-1,R=5,O=-1;function M(){return!(e.unstable_now()-O<R)}function P(){if(x!==null){var B=e.unstable_now();O=B;var Y=!0;try{Y=x(!0,B)}finally{Y?k():(C=!1,x=null)}}else C=!1}var k;if(typeof S=="function")k=function(){S(P)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,U=$.port2;$.port1.onmessage=P,k=function(){U.postMessage(null)}}else k=function(){y(P,0)};function z(B){x=B,C||(C=!0,k())}function D(B,Y){T=y(function(){B(e.unstable_now())},Y)}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(B){B.callback=null},e.unstable_continueExecution=function(){g||h||(g=!0,z(w))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(B){switch(p){case 1:case 2:case 3:var Y=3;break;default:Y=p}var q=p;p=Y;try{return B()}finally{p=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,Y){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var q=p;p=B;try{return Y()}finally{p=q}},e.unstable_scheduleCallback=function(B,Y,q){var K=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?K+q:K):q=K,B){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=q+H,B={id:d++,callback:Y,priorityLevel:B,startTime:q,expirationTime:H,sortIndex:-1},q>K?(B.sortIndex=q,n(u,B),r(c)===null&&B===r(u)&&(v?(_(T),T=-1):v=!0,D(E,q-K))):(B.sortIndex=H,n(c,B),g||h||(g=!0,z(w))),B},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(B){var Y=p;return function(){var q=p;p=Y;try{return B.apply(this,arguments)}finally{p=q}}}})(u8e);c8e.exports=u8e;var dTt=c8e.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 fTt=m,yf=dTt;function Dn(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d8e=new Set,zP={};function QC(e,n){bO(e,n),bO(e+"Capture",n)}function bO(e,n){for(zP[e]=n,e=0;e<n.length;e++)d8e.add(n[e])}var xy=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nne=Object.prototype.hasOwnProperty,pTt=/^[: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]*$/,Y0e={},q0e={};function hTt(e){return Nne.call(q0e,e)?!0:Nne.call(Y0e,e)?!1:pTt.test(e)?q0e[e]=!0:(Y0e[e]=!0,!1)}function gTt(e,n,r,i){if(r!==null&&r.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return i?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function mTt(e,n,r,i){if(n===null||typeof n>"u"||gTt(e,n,r,i))return!0;if(i)return!1;if(r!==null)switch(r.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function Ru(e,n,r,i,o,a,s){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=s}var yc={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yc[e]=new Ru(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];yc[n]=new Ru(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yc[e]=new Ru(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yc[e]=new Ru(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){yc[e]=new Ru(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yc[e]=new Ru(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yc[e]=new Ru(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yc[e]=new Ru(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yc[e]=new Ru(e,5,!1,e.toLowerCase(),null,!1,!1)});var uce=/[\-:]([a-z])/g;function dce(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 n=e.replace(uce,dce);yc[n]=new Ru(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(uce,dce);yc[n]=new Ru(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(uce,dce);yc[n]=new Ru(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yc[e]=new Ru(e,1,!1,e.toLowerCase(),null,!1,!1)});yc.xlinkHref=new Ru("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yc[e]=new Ru(e,1,!1,e.toLowerCase(),null,!0,!0)});function fce(e,n,r,i){var o=yc.hasOwnProperty(n)?yc[n]:null;(o!==null?o.type!==0:i||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(mTt(n,r,o,i)&&(r=null),i||o===null?hTt(n)&&(r===null?e.removeAttribute(n):e.setAttribute(n,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(n=o.attributeName,i=o.attributeNamespace,r===null?e.removeAttribute(n):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,i?e.setAttributeNS(i,n,r):e.setAttribute(n,r))))}var qy=fTt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b3=Symbol.for("react.element"),iT=Symbol.for("react.portal"),oT=Symbol.for("react.fragment"),pce=Symbol.for("react.strict_mode"),Mne=Symbol.for("react.profiler"),f8e=Symbol.for("react.provider"),p8e=Symbol.for("react.context"),hce=Symbol.for("react.forward_ref"),Pne=Symbol.for("react.suspense"),Ane=Symbol.for("react.suspense_list"),gce=Symbol.for("react.memo"),hb=Symbol.for("react.lazy"),h8e=Symbol.for("react.offscreen"),K0e=Symbol.iterator;function KN(e){return e===null||typeof e!="object"?null:(e=K0e&&e[K0e]||e["@@iterator"],typeof e=="function"?e:null)}var as=Object.assign,JW;function t2(e){if(JW===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);JW=n&&n[1]||""}return`
|
||
`+JW+e}var eY=!1;function tY(e,n){if(!e||eY)return"";eY=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(u){var i=u}Reflect.construct(e,[],n)}else{try{n.call()}catch(u){i=u}e.call(n.prototype)}else{try{throw Error()}catch(u){i=u}e()}}catch(u){if(u&&i&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
||
`),a=i.stack.split(`
|
||
`),s=o.length-1,l=a.length-1;1<=s&&0<=l&&o[s]!==a[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==a[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==a[l]){var c=`
|
||
`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{eY=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?t2(e):""}function vTt(e){switch(e.tag){case 5:return t2(e.type);case 16:return t2("Lazy");case 13:return t2("Suspense");case 19:return t2("SuspenseList");case 0:case 2:case 15:return e=tY(e.type,!1),e;case 11:return e=tY(e.type.render,!1),e;case 1:return e=tY(e.type,!0),e;default:return""}}function Dne(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 oT:return"Fragment";case iT:return"Portal";case Mne:return"Profiler";case pce:return"StrictMode";case Pne:return"Suspense";case Ane:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p8e:return(e.displayName||"Context")+".Consumer";case f8e:return(e._context.displayName||"Context")+".Provider";case hce:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gce:return n=e.displayName||null,n!==null?n:Dne(e.type)||"Memo";case hb:n=e._payload,e=e._init;try{return Dne(e(n))}catch{}}return null}function yTt(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Dne(n);case 8:return n===pce?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function S0(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function g8e(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function _Tt(e){var n=g8e(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),i=""+e[n];if(!e.hasOwnProperty(n)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return o.call(this)},set:function(s){i=""+s,a.call(this,s)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function S3(e){e._valueTracker||(e._valueTracker=_Tt(e))}function m8e(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),i="";return e&&(i=g8e(e)?e.checked?"true":"false":e.value),e=i,e!==r?(n.setValue(e),!0):!1}function jF(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 kne(e,n){var r=n.checked;return as({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function X0e(e,n){var r=n.defaultValue==null?"":n.defaultValue,i=n.checked!=null?n.checked:n.defaultChecked;r=S0(n.value!=null?n.value:r),e._wrapperState={initialChecked:i,initialValue:r,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function v8e(e,n){n=n.checked,n!=null&&fce(e,"checked",n,!1)}function Lne(e,n){v8e(e,n);var r=S0(n.value),i=n.type;if(r!=null)i==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?$ne(e,n.type,r):n.hasOwnProperty("defaultValue")&&$ne(e,n.type,S0(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Q0e(e,n,r){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var i=n.type;if(!(i!=="submit"&&i!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,r||n===e.value||(e.value=n),e.defaultValue=n}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function $ne(e,n,r){(n!=="number"||jF(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var n2=Array.isArray;function LT(e,n,r,i){if(e=e.options,n){n={};for(var o=0;o<r.length;o++)n["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=n.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&i&&(e[r].defaultSelected=!0)}else{for(r=""+S0(r),n=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}n!==null||e[o].disabled||(n=e[o])}n!==null&&(n.selected=!0)}}function Fne(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(Dn(91));return as({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Z0e(e,n){var r=n.value;if(r==null){if(r=n.children,n=n.defaultValue,r!=null){if(n!=null)throw Error(Dn(92));if(n2(r)){if(1<r.length)throw Error(Dn(93));r=r[0]}n=r}n==null&&(n=""),r=n}e._wrapperState={initialValue:S0(r)}}function y8e(e,n){var r=S0(n.value),i=S0(n.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),n.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),i!=null&&(e.defaultValue=""+i)}function J0e(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function _8e(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 Bne(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?_8e(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var E3,b8e=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,r,i,o){MSApp.execUnsafeLocalFunction(function(){return e(n,r,i,o)})}:e}(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(E3=E3||document.createElement("div"),E3.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=E3.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function VP(e,n){if(n){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}var F2={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},bTt=["Webkit","ms","Moz","O"];Object.keys(F2).forEach(function(e){bTt.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),F2[n]=F2[e]})});function S8e(e,n,r){return n==null||typeof n=="boolean"||n===""?"":r||typeof n!="number"||n===0||F2.hasOwnProperty(e)&&F2[e]?(""+n).trim():n+"px"}function E8e(e,n){e=e.style;for(var r in n)if(n.hasOwnProperty(r)){var i=r.indexOf("--")===0,o=S8e(r,n[r],i);r==="float"&&(r="cssFloat"),i?e.setProperty(r,o):e[r]=o}}var STt=as({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 jne(e,n){if(n){if(STt[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(Dn(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(Dn(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(Dn(61))}if(n.style!=null&&typeof n.style!="object")throw Error(Dn(62))}}function Une(e,n){if(e.indexOf("-")===-1)return typeof n.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 Hne=null;function mce(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zne=null,$T=null,FT=null;function eSe(e){if(e=ak(e)){if(typeof zne!="function")throw Error(Dn(280));var n=e.stateNode;n&&(n=r9(n),zne(e.stateNode,e.type,n))}}function C8e(e){$T?FT?FT.push(e):FT=[e]:$T=e}function w8e(){if($T){var e=$T,n=FT;if(FT=$T=null,eSe(e),n)for(e=0;e<n.length;e++)eSe(n[e])}}function x8e(e,n){return e(n)}function T8e(){}var nY=!1;function O8e(e,n,r){if(nY)return e(n,r);nY=!0;try{return x8e(e,n,r)}finally{nY=!1,($T!==null||FT!==null)&&(T8e(),w8e())}}function GP(e,n){var r=e.stateNode;if(r===null)return null;var i=r9(r);if(i===null)return null;r=i[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Dn(231,n,typeof r));return r}var Vne=!1;if(xy)try{var XN={};Object.defineProperty(XN,"passive",{get:function(){Vne=!0}}),window.addEventListener("test",XN,XN),window.removeEventListener("test",XN,XN)}catch{Vne=!1}function ETt(e,n,r,i,o,a,s,l,c){var u=Array.prototype.slice.call(arguments,3);try{n.apply(r,u)}catch(d){this.onError(d)}}var B2=!1,UF=null,HF=!1,Gne=null,CTt={onError:function(e){B2=!0,UF=e}};function wTt(e,n,r,i,o,a,s,l,c){B2=!1,UF=null,ETt.apply(CTt,arguments)}function xTt(e,n,r,i,o,a,s,l,c){if(wTt.apply(this,arguments),B2){if(B2){var u=UF;B2=!1,UF=null}else throw Error(Dn(198));HF||(HF=!0,Gne=u)}}function ZC(e){var n=e,r=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,n.flags&4098&&(r=n.return),e=n.return;while(e)}return n.tag===3?r:null}function R8e(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function tSe(e){if(ZC(e)!==e)throw Error(Dn(188))}function TTt(e){var n=e.alternate;if(!n){if(n=ZC(e),n===null)throw Error(Dn(188));return n!==e?null:e}for(var r=e,i=n;;){var o=r.return;if(o===null)break;var a=o.alternate;if(a===null){if(i=o.return,i!==null){r=i;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return tSe(o),e;if(a===i)return tSe(o),n;a=a.sibling}throw Error(Dn(188))}if(r.return!==i.return)r=o,i=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,i=a;break}if(l===i){s=!0,i=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,i=o;break}if(l===i){s=!0,i=a,r=o;break}l=l.sibling}if(!s)throw Error(Dn(189))}}if(r.alternate!==i)throw Error(Dn(190))}if(r.tag!==3)throw Error(Dn(188));return r.stateNode.current===r?e:n}function I8e(e){return e=TTt(e),e!==null?N8e(e):null}function N8e(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=N8e(e);if(n!==null)return n;e=e.sibling}return null}var M8e=yf.unstable_scheduleCallback,nSe=yf.unstable_cancelCallback,OTt=yf.unstable_shouldYield,RTt=yf.unstable_requestPaint,Bs=yf.unstable_now,ITt=yf.unstable_getCurrentPriorityLevel,vce=yf.unstable_ImmediatePriority,P8e=yf.unstable_UserBlockingPriority,zF=yf.unstable_NormalPriority,NTt=yf.unstable_LowPriority,A8e=yf.unstable_IdlePriority,J7=null,hm=null;function MTt(e){if(hm&&typeof hm.onCommitFiberRoot=="function")try{hm.onCommitFiberRoot(J7,e,void 0,(e.current.flags&128)===128)}catch{}}var Bh=Math.clz32?Math.clz32:DTt,PTt=Math.log,ATt=Math.LN2;function DTt(e){return e>>>=0,e===0?32:31-(PTt(e)/ATt|0)|0}var C3=64,w3=4194304;function r2(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 VF(e,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~o;l!==0?i=r2(l):(a&=s,a!==0&&(i=r2(a)))}else s=r&~o,s!==0?i=r2(s):a!==0&&(i=r2(a));if(i===0)return 0;if(n!==0&&n!==i&&!(n&o)&&(o=i&-i,a=n&-n,o>=a||o===16&&(a&4194240)!==0))return n;if(i&4&&(i|=r&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=i;0<n;)r=31-Bh(n),o=1<<r,i|=e[r],n&=~o;return i}function kTt(e,n){switch(e){case 1:case 2:case 4:return n+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 n+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 LTt(e,n){for(var r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-Bh(a),l=1<<s,c=o[s];c===-1?(!(l&r)||l&i)&&(o[s]=kTt(l,n)):c<=n&&(e.expiredLanes|=l),a&=~l}}function Wne(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function D8e(){var e=C3;return C3<<=1,!(C3&4194240)&&(C3=64),e}function rY(e){for(var n=[],r=0;31>r;r++)n.push(e);return n}function ik(e,n,r){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Bh(n),e[n]=r}function $Tt(e,n){var r=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Bh(r),a=1<<o;n[o]=0,i[o]=-1,e[o]=-1,r&=~a}}function yce(e,n){var r=e.entangledLanes|=n;for(e=e.entanglements;r;){var i=31-Bh(r),o=1<<i;o&n|e[i]&n&&(e[i]|=n),r&=~o}}var Bo=0;function k8e(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var L8e,_ce,$8e,F8e,B8e,Yne=!1,x3=[],t0=null,n0=null,r0=null,WP=new Map,YP=new Map,Cb=[],FTt="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 rSe(e,n){switch(e){case"focusin":case"focusout":t0=null;break;case"dragenter":case"dragleave":n0=null;break;case"mouseover":case"mouseout":r0=null;break;case"pointerover":case"pointerout":WP.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":YP.delete(n.pointerId)}}function QN(e,n,r,i,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:n,domEventName:r,eventSystemFlags:i,nativeEvent:a,targetContainers:[o]},n!==null&&(n=ak(n),n!==null&&_ce(n)),e):(e.eventSystemFlags|=i,n=e.targetContainers,o!==null&&n.indexOf(o)===-1&&n.push(o),e)}function BTt(e,n,r,i,o){switch(n){case"focusin":return t0=QN(t0,e,n,r,i,o),!0;case"dragenter":return n0=QN(n0,e,n,r,i,o),!0;case"mouseover":return r0=QN(r0,e,n,r,i,o),!0;case"pointerover":var a=o.pointerId;return WP.set(a,QN(WP.get(a)||null,e,n,r,i,o)),!0;case"gotpointercapture":return a=o.pointerId,YP.set(a,QN(YP.get(a)||null,e,n,r,i,o)),!0}return!1}function j8e(e){var n=JE(e.target);if(n!==null){var r=ZC(n);if(r!==null){if(n=r.tag,n===13){if(n=R8e(r),n!==null){e.blockedOn=n,B8e(e.priority,function(){$8e(r)});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function G5(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var r=qne(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);Hne=i,r.target.dispatchEvent(i),Hne=null}else return n=ak(r),n!==null&&_ce(n),e.blockedOn=r,!1;n.shift()}return!0}function iSe(e,n,r){G5(e)&&r.delete(n)}function jTt(){Yne=!1,t0!==null&&G5(t0)&&(t0=null),n0!==null&&G5(n0)&&(n0=null),r0!==null&&G5(r0)&&(r0=null),WP.forEach(iSe),YP.forEach(iSe)}function ZN(e,n){e.blockedOn===n&&(e.blockedOn=null,Yne||(Yne=!0,yf.unstable_scheduleCallback(yf.unstable_NormalPriority,jTt)))}function qP(e){function n(o){return ZN(o,e)}if(0<x3.length){ZN(x3[0],e);for(var r=1;r<x3.length;r++){var i=x3[r];i.blockedOn===e&&(i.blockedOn=null)}}for(t0!==null&&ZN(t0,e),n0!==null&&ZN(n0,e),r0!==null&&ZN(r0,e),WP.forEach(n),YP.forEach(n),r=0;r<Cb.length;r++)i=Cb[r],i.blockedOn===e&&(i.blockedOn=null);for(;0<Cb.length&&(r=Cb[0],r.blockedOn===null);)j8e(r),r.blockedOn===null&&Cb.shift()}var BT=qy.ReactCurrentBatchConfig,GF=!0;function UTt(e,n,r,i){var o=Bo,a=BT.transition;BT.transition=null;try{Bo=1,bce(e,n,r,i)}finally{Bo=o,BT.transition=a}}function HTt(e,n,r,i){var o=Bo,a=BT.transition;BT.transition=null;try{Bo=4,bce(e,n,r,i)}finally{Bo=o,BT.transition=a}}function bce(e,n,r,i){if(GF){var o=qne(e,n,r,i);if(o===null)pY(e,n,i,WF,r),rSe(e,i);else if(BTt(o,e,n,r,i))i.stopPropagation();else if(rSe(e,i),n&4&&-1<FTt.indexOf(e)){for(;o!==null;){var a=ak(o);if(a!==null&&L8e(a),a=qne(e,n,r,i),a===null&&pY(e,n,i,WF,r),a===o)break;o=a}o!==null&&i.stopPropagation()}else pY(e,n,i,null,r)}}var WF=null;function qne(e,n,r,i){if(WF=null,e=mce(i),e=JE(e),e!==null)if(n=ZC(e),n===null)e=null;else if(r=n.tag,r===13){if(e=R8e(n),e!==null)return e;e=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return WF=e,null}function U8e(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(ITt()){case vce:return 1;case P8e:return 4;case zF:case NTt:return 16;case A8e:return 536870912;default:return 16}default:return 16}}var Lb=null,Sce=null,W5=null;function H8e(){if(W5)return W5;var e,n=Sce,r=n.length,i,o="value"in Lb?Lb.value:Lb.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(i=1;i<=s&&n[r-i]===o[a-i];i++);return W5=o.slice(e,1<i?1-i:void 0)}function Y5(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function T3(){return!0}function oSe(){return!1}function Pf(e){function n(r,i,o,a,s){this._reactName=r,this._targetInst=o,this.type=i,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?T3:oSe,this.isPropagationStopped=oSe,this}return as(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=T3)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=T3)},persist:function(){},isPersistent:T3}),n}var tI={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ece=Pf(tI),ok=as({},tI,{view:0,detail:0}),zTt=Pf(ok),iY,oY,JN,e9=as({},ok,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cce,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!==JN&&(JN&&e.type==="mousemove"?(iY=e.screenX-JN.screenX,oY=e.screenY-JN.screenY):oY=iY=0,JN=e),iY)},movementY:function(e){return"movementY"in e?e.movementY:oY}}),aSe=Pf(e9),VTt=as({},e9,{dataTransfer:0}),GTt=Pf(VTt),WTt=as({},ok,{relatedTarget:0}),aY=Pf(WTt),YTt=as({},tI,{animationName:0,elapsedTime:0,pseudoElement:0}),qTt=Pf(YTt),KTt=as({},tI,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),XTt=Pf(KTt),QTt=as({},tI,{data:0}),sSe=Pf(QTt),ZTt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JTt={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"},eOt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tOt(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=eOt[e])?!!n[e]:!1}function Cce(){return tOt}var nOt=as({},ok,{key:function(e){if(e.key){var n=ZTt[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Y5(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?JTt[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cce,charCode:function(e){return e.type==="keypress"?Y5(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Y5(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rOt=Pf(nOt),iOt=as({},e9,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lSe=Pf(iOt),oOt=as({},ok,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cce}),aOt=Pf(oOt),sOt=as({},tI,{propertyName:0,elapsedTime:0,pseudoElement:0}),lOt=Pf(sOt),cOt=as({},e9,{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}),uOt=Pf(cOt),dOt=[9,13,27,32],wce=xy&&"CompositionEvent"in window,j2=null;xy&&"documentMode"in document&&(j2=document.documentMode);var fOt=xy&&"TextEvent"in window&&!j2,z8e=xy&&(!wce||j2&&8<j2&&11>=j2),cSe=" ",uSe=!1;function V8e(e,n){switch(e){case"keyup":return dOt.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function G8e(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aT=!1;function pOt(e,n){switch(e){case"compositionend":return G8e(n);case"keypress":return n.which!==32?null:(uSe=!0,cSe);case"textInput":return e=n.data,e===cSe&&uSe?null:e;default:return null}}function hOt(e,n){if(aT)return e==="compositionend"||!wce&&V8e(e,n)?(e=H8e(),W5=Sce=Lb=null,aT=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return z8e&&n.locale!=="ko"?null:n.data;default:return null}}var gOt={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 dSe(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!gOt[e.type]:n==="textarea"}function W8e(e,n,r,i){C8e(i),n=YF(n,"onChange"),0<n.length&&(r=new Ece("onChange","change",null,r,i),e.push({event:r,listeners:n}))}var U2=null,KP=null;function mOt(e){rBe(e,0)}function t9(e){var n=cT(e);if(m8e(n))return e}function vOt(e,n){if(e==="change")return n}var Y8e=!1;if(xy){var sY;if(xy){var lY="oninput"in document;if(!lY){var fSe=document.createElement("div");fSe.setAttribute("oninput","return;"),lY=typeof fSe.oninput=="function"}sY=lY}else sY=!1;Y8e=sY&&(!document.documentMode||9<document.documentMode)}function pSe(){U2&&(U2.detachEvent("onpropertychange",q8e),KP=U2=null)}function q8e(e){if(e.propertyName==="value"&&t9(KP)){var n=[];W8e(n,KP,e,mce(e)),O8e(mOt,n)}}function yOt(e,n,r){e==="focusin"?(pSe(),U2=n,KP=r,U2.attachEvent("onpropertychange",q8e)):e==="focusout"&&pSe()}function _Ot(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return t9(KP)}function bOt(e,n){if(e==="click")return t9(n)}function SOt(e,n){if(e==="input"||e==="change")return t9(n)}function EOt(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Jh=typeof Object.is=="function"?Object.is:EOt;function XP(e,n){if(Jh(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var r=Object.keys(e),i=Object.keys(n);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var o=r[i];if(!Nne.call(n,o)||!Jh(e[o],n[o]))return!1}return!0}function hSe(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gSe(e,n){var r=hSe(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=n&&i>=n)return{node:r,offset:n-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hSe(r)}}function K8e(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?K8e(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function X8e(){for(var e=window,n=jF();n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)e=n.contentWindow;else break;n=jF(e.document)}return n}function xce(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function COt(e){var n=X8e(),r=e.focusedElem,i=e.selectionRange;if(n!==r&&r&&r.ownerDocument&&K8e(r.ownerDocument.documentElement,r)){if(i!==null&&xce(r)){if(n=i.start,e=i.end,e===void 0&&(e=n),"selectionStart"in r)r.selectionStart=n,r.selectionEnd=Math.min(e,r.value.length);else if(e=(n=r.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(i.start,o);i=i.end===void 0?a:Math.min(i.end,o),!e.extend&&a>i&&(o=i,i=a,a=o),o=gSe(r,a);var s=gSe(r,i);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(n=n.createRange(),n.setStart(o.node,o.offset),e.removeAllRanges(),a>i?(e.addRange(n),e.extend(s.node,s.offset)):(n.setEnd(s.node,s.offset),e.addRange(n)))}}for(n=[],e=r;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<n.length;r++)e=n[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var wOt=xy&&"documentMode"in document&&11>=document.documentMode,sT=null,Kne=null,H2=null,Xne=!1;function mSe(e,n,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Xne||sT==null||sT!==jF(i)||(i=sT,"selectionStart"in i&&xce(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),H2&&XP(H2,i)||(H2=i,i=YF(Kne,"onSelect"),0<i.length&&(n=new Ece("onSelect","select",null,n,r),e.push({event:n,listeners:i}),n.target=sT)))}function O3(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit"+e]="webkit"+n,r["Moz"+e]="moz"+n,r}var lT={animationend:O3("Animation","AnimationEnd"),animationiteration:O3("Animation","AnimationIteration"),animationstart:O3("Animation","AnimationStart"),transitionend:O3("Transition","TransitionEnd")},cY={},Q8e={};xy&&(Q8e=document.createElement("div").style,"AnimationEvent"in window||(delete lT.animationend.animation,delete lT.animationiteration.animation,delete lT.animationstart.animation),"TransitionEvent"in window||delete lT.transitionend.transition);function n9(e){if(cY[e])return cY[e];if(!lT[e])return e;var n=lT[e],r;for(r in n)if(n.hasOwnProperty(r)&&r in Q8e)return cY[e]=n[r];return e}var Z8e=n9("animationend"),J8e=n9("animationiteration"),eBe=n9("animationstart"),tBe=n9("transitionend"),nBe=new Map,vSe="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 X0(e,n){nBe.set(e,n),QC(n,[e])}for(var uY=0;uY<vSe.length;uY++){var dY=vSe[uY],xOt=dY.toLowerCase(),TOt=dY[0].toUpperCase()+dY.slice(1);X0(xOt,"on"+TOt)}X0(Z8e,"onAnimationEnd");X0(J8e,"onAnimationIteration");X0(eBe,"onAnimationStart");X0("dblclick","onDoubleClick");X0("focusin","onFocus");X0("focusout","onBlur");X0(tBe,"onTransitionEnd");bO("onMouseEnter",["mouseout","mouseover"]);bO("onMouseLeave",["mouseout","mouseover"]);bO("onPointerEnter",["pointerout","pointerover"]);bO("onPointerLeave",["pointerout","pointerover"]);QC("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));QC("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));QC("onBeforeInput",["compositionend","keypress","textInput","paste"]);QC("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));QC("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));QC("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var i2="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(" "),OOt=new Set("cancel close invalid load scroll toggle".split(" ").concat(i2));function ySe(e,n,r){var i=e.type||"unknown-event";e.currentTarget=r,xTt(i,n,void 0,e),e.currentTarget=null}function rBe(e,n){n=(n&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],o=i.event;i=i.listeners;e:{var a=void 0;if(n)for(var s=i.length-1;0<=s;s--){var l=i[s],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==a&&o.isPropagationStopped())break e;ySe(o,l,u),a=c}else for(s=0;s<i.length;s++){if(l=i[s],c=l.instance,u=l.currentTarget,l=l.listener,c!==a&&o.isPropagationStopped())break e;ySe(o,l,u),a=c}}}if(HF)throw e=Gne,HF=!1,Gne=null,e}function ma(e,n){var r=n[tre];r===void 0&&(r=n[tre]=new Set);var i=e+"__bubble";r.has(i)||(iBe(n,e,2,!1),r.add(i))}function fY(e,n,r){var i=0;n&&(i|=4),iBe(r,e,i,n)}var R3="_reactListening"+Math.random().toString(36).slice(2);function QP(e){if(!e[R3]){e[R3]=!0,d8e.forEach(function(r){r!=="selectionchange"&&(OOt.has(r)||fY(r,!1,e),fY(r,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[R3]||(n[R3]=!0,fY("selectionchange",!1,n))}}function iBe(e,n,r,i){switch(U8e(n)){case 1:var o=UTt;break;case 4:o=HTt;break;default:o=bce}r=o.bind(null,n,r,e),o=void 0,!Vne||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(n,r,{capture:!0,passive:o}):e.addEventListener(n,r,!0):o!==void 0?e.addEventListener(n,r,{passive:o}):e.addEventListener(n,r,!1)}function pY(e,n,r,i,o){var a=i;if(!(n&1)&&!(n&2)&&i!==null)e:for(;;){if(i===null)return;var s=i.tag;if(s===3||s===4){var l=i.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=i.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;s=s.return}for(;l!==null;){if(s=JE(l),s===null)return;if(c=s.tag,c===5||c===6){i=a=s;continue e}l=l.parentNode}}i=i.return}O8e(function(){var u=a,d=mce(r),f=[];e:{var p=nBe.get(e);if(p!==void 0){var h=Ece,g=e;switch(e){case"keypress":if(Y5(r)===0)break e;case"keydown":case"keyup":h=rOt;break;case"focusin":g="focus",h=aY;break;case"focusout":g="blur",h=aY;break;case"beforeblur":case"afterblur":h=aY;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=aSe;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=GTt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=aOt;break;case Z8e:case J8e:case eBe:h=qTt;break;case tBe:h=lOt;break;case"scroll":h=zTt;break;case"wheel":h=uOt;break;case"copy":case"cut":case"paste":h=XTt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=lSe}var v=(n&4)!==0,y=!v&&e==="scroll",_=v?p!==null?p+"Capture":null:p;v=[];for(var S=u,b;S!==null;){b=S;var E=b.stateNode;if(b.tag===5&&E!==null&&(b=E,_!==null&&(E=GP(S,_),E!=null&&v.push(ZP(S,E,b)))),y)break;S=S.return}0<v.length&&(p=new h(p,g,null,r,d),f.push({event:p,listeners:v}))}}if(!(n&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&r!==Hne&&(g=r.relatedTarget||r.fromElement)&&(JE(g)||g[Ty]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(g=r.relatedTarget||r.toElement,h=u,g=g?JE(g):null,g!==null&&(y=ZC(g),g!==y||g.tag!==5&&g.tag!==6)&&(g=null)):(h=null,g=u),h!==g)){if(v=aSe,E="onMouseLeave",_="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(v=lSe,E="onPointerLeave",_="onPointerEnter",S="pointer"),y=h==null?p:cT(h),b=g==null?p:cT(g),p=new v(E,S+"leave",h,r,d),p.target=y,p.relatedTarget=b,E=null,JE(d)===u&&(v=new v(_,S+"enter",g,r,d),v.target=b,v.relatedTarget=y,E=v),y=E,h&&g)t:{for(v=h,_=g,S=0,b=v;b;b=px(b))S++;for(b=0,E=_;E;E=px(E))b++;for(;0<S-b;)v=px(v),S--;for(;0<b-S;)_=px(_),b--;for(;S--;){if(v===_||_!==null&&v===_.alternate)break t;v=px(v),_=px(_)}v=null}else v=null;h!==null&&_Se(f,p,h,v,!1),g!==null&&y!==null&&_Se(f,y,g,v,!0)}}e:{if(p=u?cT(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var w=vOt;else if(dSe(p))if(Y8e)w=SOt;else{w=_Ot;var C=yOt}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(w=bOt);if(w&&(w=w(e,u))){W8e(f,w,r,d);break e}C&&C(e,p,u),e==="focusout"&&(C=p._wrapperState)&&C.controlled&&p.type==="number"&&$ne(p,"number",p.value)}switch(C=u?cT(u):window,e){case"focusin":(dSe(C)||C.contentEditable==="true")&&(sT=C,Kne=u,H2=null);break;case"focusout":H2=Kne=sT=null;break;case"mousedown":Xne=!0;break;case"contextmenu":case"mouseup":case"dragend":Xne=!1,mSe(f,r,d);break;case"selectionchange":if(wOt)break;case"keydown":case"keyup":mSe(f,r,d)}var x;if(wce)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 aT?V8e(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(z8e&&r.locale!=="ko"&&(aT||T!=="onCompositionStart"?T==="onCompositionEnd"&&aT&&(x=H8e()):(Lb=d,Sce="value"in Lb?Lb.value:Lb.textContent,aT=!0)),C=YF(u,T),0<C.length&&(T=new sSe(T,e,null,r,d),f.push({event:T,listeners:C}),x?T.data=x:(x=G8e(r),x!==null&&(T.data=x)))),(x=fOt?pOt(e,r):hOt(e,r))&&(u=YF(u,"onBeforeInput"),0<u.length&&(d=new sSe("onBeforeInput","beforeinput",null,r,d),f.push({event:d,listeners:u}),d.data=x))}rBe(f,n)})}function ZP(e,n,r){return{instance:e,listener:n,currentTarget:r}}function YF(e,n){for(var r=n+"Capture",i=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=GP(e,r),a!=null&&i.unshift(ZP(e,a,o)),a=GP(e,n),a!=null&&i.push(ZP(e,a,o))),e=e.return}return i}function px(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _Se(e,n,r,i,o){for(var a=n._reactName,s=[];r!==null&&r!==i;){var l=r,c=l.alternate,u=l.stateNode;if(c!==null&&c===i)break;l.tag===5&&u!==null&&(l=u,o?(c=GP(r,a),c!=null&&s.unshift(ZP(r,c,l))):o||(c=GP(r,a),c!=null&&s.push(ZP(r,c,l)))),r=r.return}s.length!==0&&e.push({event:n,listeners:s})}var ROt=/\r\n?/g,IOt=/\u0000|\uFFFD/g;function bSe(e){return(typeof e=="string"?e:""+e).replace(ROt,`
|
||
`).replace(IOt,"")}function I3(e,n,r){if(n=bSe(n),bSe(e)!==n&&r)throw Error(Dn(425))}function qF(){}var Qne=null,Zne=null;function Jne(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ere=typeof setTimeout=="function"?setTimeout:void 0,NOt=typeof clearTimeout=="function"?clearTimeout:void 0,SSe=typeof Promise=="function"?Promise:void 0,MOt=typeof queueMicrotask=="function"?queueMicrotask:typeof SSe<"u"?function(e){return SSe.resolve(null).then(e).catch(POt)}:ere;function POt(e){setTimeout(function(){throw e})}function hY(e,n){var r=n,i=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(i===0){e.removeChild(o),qP(n);return}i--}else r!=="$"&&r!=="$?"&&r!=="$!"||i++;r=o}while(r);qP(n)}function i0(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function ESe(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(n===0)return e;n--}else r==="/$"&&n++}e=e.previousSibling}return null}var nI=Math.random().toString(36).slice(2),im="__reactFiber$"+nI,JP="__reactProps$"+nI,Ty="__reactContainer$"+nI,tre="__reactEvents$"+nI,AOt="__reactListeners$"+nI,DOt="__reactHandles$"+nI;function JE(e){var n=e[im];if(n)return n;for(var r=e.parentNode;r;){if(n=r[Ty]||r[im]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(e=ESe(e);e!==null;){if(r=e[im])return r;e=ESe(e)}return n}e=r,r=e.parentNode}return null}function ak(e){return e=e[im]||e[Ty],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function cT(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Dn(33))}function r9(e){return e[JP]||null}var nre=[],uT=-1;function Q0(e){return{current:e}}function Ca(e){0>uT||(e.current=nre[uT],nre[uT]=null,uT--)}function ca(e,n){uT++,nre[uT]=e.current,e.current=n}var E0={},Vc=Q0(E0),dd=Q0(!1),Y1=E0;function SO(e,n){var r=e.type.contextTypes;if(!r)return E0;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===n)return i.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=n[a];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),o}function fd(e){return e=e.childContextTypes,e!=null}function KF(){Ca(dd),Ca(Vc)}function CSe(e,n,r){if(Vc.current!==E0)throw Error(Dn(168));ca(Vc,n),ca(dd,r)}function oBe(e,n,r){var i=e.stateNode;if(n=n.childContextTypes,typeof i.getChildContext!="function")return r;i=i.getChildContext();for(var o in i)if(!(o in n))throw Error(Dn(108,yTt(e)||"Unknown",o));return as({},r,i)}function XF(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||E0,Y1=Vc.current,ca(Vc,e),ca(dd,dd.current),!0}function wSe(e,n,r){var i=e.stateNode;if(!i)throw Error(Dn(169));r?(e=oBe(e,n,Y1),i.__reactInternalMemoizedMergedChildContext=e,Ca(dd),Ca(Vc),ca(Vc,e)):Ca(dd),ca(dd,r)}var Hv=null,i9=!1,gY=!1;function aBe(e){Hv===null?Hv=[e]:Hv.push(e)}function kOt(e){i9=!0,aBe(e)}function Z0(){if(!gY&&Hv!==null){gY=!0;var e=0,n=Bo;try{var r=Hv;for(Bo=1;e<r.length;e++){var i=r[e];do i=i(!0);while(i!==null)}Hv=null,i9=!1}catch(o){throw Hv!==null&&(Hv=Hv.slice(e+1)),M8e(vce,Z0),o}finally{Bo=n,gY=!1}}return null}var dT=[],fT=0,QF=null,ZF=0,sp=[],lp=0,q1=null,Zv=1,Jv="";function NE(e,n){dT[fT++]=ZF,dT[fT++]=QF,QF=e,ZF=n}function sBe(e,n,r){sp[lp++]=Zv,sp[lp++]=Jv,sp[lp++]=q1,q1=e;var i=Zv;e=Jv;var o=32-Bh(i)-1;i&=~(1<<o),r+=1;var a=32-Bh(n)+o;if(30<a){var s=o-o%5;a=(i&(1<<s)-1).toString(32),i>>=s,o-=s,Zv=1<<32-Bh(n)+o|r<<o|i,Jv=a+e}else Zv=1<<a|r<<o|i,Jv=e}function Tce(e){e.return!==null&&(NE(e,1),sBe(e,1,0))}function Oce(e){for(;e===QF;)QF=dT[--fT],dT[fT]=null,ZF=dT[--fT],dT[fT]=null;for(;e===q1;)q1=sp[--lp],sp[lp]=null,Jv=sp[--lp],sp[lp]=null,Zv=sp[--lp],sp[lp]=null}var pf=null,af=null,Ha=!1,Th=null;function lBe(e,n){var r=hp(5,null,null,0);r.elementType="DELETED",r.stateNode=n,r.return=e,n=e.deletions,n===null?(e.deletions=[r],e.flags|=16):n.push(r)}function xSe(e,n){switch(e.tag){case 5:var r=e.type;return n=n.nodeType!==1||r.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,pf=e,af=i0(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,pf=e,af=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(r=q1!==null?{id:Zv,overflow:Jv}:null,e.memoizedState={dehydrated:n,treeContext:r,retryLane:1073741824},r=hp(18,null,null,0),r.stateNode=n,r.return=e,e.child=r,pf=e,af=null,!0):!1;default:return!1}}function rre(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ire(e){if(Ha){var n=af;if(n){var r=n;if(!xSe(e,n)){if(rre(e))throw Error(Dn(418));n=i0(r.nextSibling);var i=pf;n&&xSe(e,n)?lBe(i,r):(e.flags=e.flags&-4097|2,Ha=!1,pf=e)}}else{if(rre(e))throw Error(Dn(418));e.flags=e.flags&-4097|2,Ha=!1,pf=e}}}function TSe(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;pf=e}function N3(e){if(e!==pf)return!1;if(!Ha)return TSe(e),Ha=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Jne(e.type,e.memoizedProps)),n&&(n=af)){if(rre(e))throw cBe(),Error(Dn(418));for(;n;)lBe(e,n),n=i0(n.nextSibling)}if(TSe(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Dn(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(n===0){af=i0(e.nextSibling);break e}n--}else r!=="$"&&r!=="$!"&&r!=="$?"||n++}e=e.nextSibling}af=null}}else af=pf?i0(e.stateNode.nextSibling):null;return!0}function cBe(){for(var e=af;e;)e=i0(e.nextSibling)}function EO(){af=pf=null,Ha=!1}function Rce(e){Th===null?Th=[e]:Th.push(e)}var LOt=qy.ReactCurrentBatchConfig;function eM(e,n,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Dn(309));var i=r.stateNode}if(!i)throw Error(Dn(147,e));var o=i,a=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===a?n.ref:(n=function(s){var l=o.refs;s===null?delete l[a]:l[a]=s},n._stringRef=a,n)}if(typeof e!="string")throw Error(Dn(284));if(!r._owner)throw Error(Dn(290,e))}return e}function M3(e,n){throw e=Object.prototype.toString.call(n),Error(Dn(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function OSe(e){var n=e._init;return n(e._payload)}function uBe(e){function n(_,S){if(e){var b=_.deletions;b===null?(_.deletions=[S],_.flags|=16):b.push(S)}}function r(_,S){if(!e)return null;for(;S!==null;)n(_,S),S=S.sibling;return null}function i(_,S){for(_=new Map;S!==null;)S.key!==null?_.set(S.key,S):_.set(S.index,S),S=S.sibling;return _}function o(_,S){return _=l0(_,S),_.index=0,_.sibling=null,_}function a(_,S,b){return _.index=b,e?(b=_.alternate,b!==null?(b=b.index,b<S?(_.flags|=2,S):b):(_.flags|=2,S)):(_.flags|=1048576,S)}function s(_){return e&&_.alternate===null&&(_.flags|=2),_}function l(_,S,b,E){return S===null||S.tag!==6?(S=EY(b,_.mode,E),S.return=_,S):(S=o(S,b),S.return=_,S)}function c(_,S,b,E){var w=b.type;return w===oT?d(_,S,b.props.children,E,b.key):S!==null&&(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===hb&&OSe(w)===S.type)?(E=o(S,b.props),E.ref=eM(_,S,b),E.return=_,E):(E=e6(b.type,b.key,b.props,null,_.mode,E),E.ref=eM(_,S,b),E.return=_,E)}function u(_,S,b,E){return S===null||S.tag!==4||S.stateNode.containerInfo!==b.containerInfo||S.stateNode.implementation!==b.implementation?(S=CY(b,_.mode,E),S.return=_,S):(S=o(S,b.children||[]),S.return=_,S)}function d(_,S,b,E,w){return S===null||S.tag!==7?(S=T1(b,_.mode,E,w),S.return=_,S):(S=o(S,b),S.return=_,S)}function f(_,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return S=EY(""+S,_.mode,b),S.return=_,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case b3:return b=e6(S.type,S.key,S.props,null,_.mode,b),b.ref=eM(_,null,S),b.return=_,b;case iT:return S=CY(S,_.mode,b),S.return=_,S;case hb:var E=S._init;return f(_,E(S._payload),b)}if(n2(S)||KN(S))return S=T1(S,_.mode,b,null),S.return=_,S;M3(_,S)}return null}function p(_,S,b,E){var w=S!==null?S.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return w!==null?null:l(_,S,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case b3:return b.key===w?c(_,S,b,E):null;case iT:return b.key===w?u(_,S,b,E):null;case hb:return w=b._init,p(_,S,w(b._payload),E)}if(n2(b)||KN(b))return w!==null?null:d(_,S,b,E,null);M3(_,b)}return null}function h(_,S,b,E,w){if(typeof E=="string"&&E!==""||typeof E=="number")return _=_.get(b)||null,l(S,_,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case b3:return _=_.get(E.key===null?b:E.key)||null,c(S,_,E,w);case iT:return _=_.get(E.key===null?b:E.key)||null,u(S,_,E,w);case hb:var C=E._init;return h(_,S,b,C(E._payload),w)}if(n2(E)||KN(E))return _=_.get(b)||null,d(S,_,E,w,null);M3(S,E)}return null}function g(_,S,b,E){for(var w=null,C=null,x=S,T=S=0,R=null;x!==null&&T<b.length;T++){x.index>T?(R=x,x=null):R=x.sibling;var O=p(_,x,b[T],E);if(O===null){x===null&&(x=R);break}e&&x&&O.alternate===null&&n(_,x),S=a(O,S,T),C===null?w=O:C.sibling=O,C=O,x=R}if(T===b.length)return r(_,x),Ha&&NE(_,T),w;if(x===null){for(;T<b.length;T++)x=f(_,b[T],E),x!==null&&(S=a(x,S,T),C===null?w=x:C.sibling=x,C=x);return Ha&&NE(_,T),w}for(x=i(_,x);T<b.length;T++)R=h(x,_,T,b[T],E),R!==null&&(e&&R.alternate!==null&&x.delete(R.key===null?T:R.key),S=a(R,S,T),C===null?w=R:C.sibling=R,C=R);return e&&x.forEach(function(M){return n(_,M)}),Ha&&NE(_,T),w}function v(_,S,b,E){var w=KN(b);if(typeof w!="function")throw Error(Dn(150));if(b=w.call(b),b==null)throw Error(Dn(151));for(var C=w=null,x=S,T=S=0,R=null,O=b.next();x!==null&&!O.done;T++,O=b.next()){x.index>T?(R=x,x=null):R=x.sibling;var M=p(_,x,O.value,E);if(M===null){x===null&&(x=R);break}e&&x&&M.alternate===null&&n(_,x),S=a(M,S,T),C===null?w=M:C.sibling=M,C=M,x=R}if(O.done)return r(_,x),Ha&&NE(_,T),w;if(x===null){for(;!O.done;T++,O=b.next())O=f(_,O.value,E),O!==null&&(S=a(O,S,T),C===null?w=O:C.sibling=O,C=O);return Ha&&NE(_,T),w}for(x=i(_,x);!O.done;T++,O=b.next())O=h(x,_,T,O.value,E),O!==null&&(e&&O.alternate!==null&&x.delete(O.key===null?T:O.key),S=a(O,S,T),C===null?w=O:C.sibling=O,C=O);return e&&x.forEach(function(P){return n(_,P)}),Ha&&NE(_,T),w}function y(_,S,b,E){if(typeof b=="object"&&b!==null&&b.type===oT&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case b3:e:{for(var w=b.key,C=S;C!==null;){if(C.key===w){if(w=b.type,w===oT){if(C.tag===7){r(_,C.sibling),S=o(C,b.props.children),S.return=_,_=S;break e}}else if(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===hb&&OSe(w)===C.type){r(_,C.sibling),S=o(C,b.props),S.ref=eM(_,C,b),S.return=_,_=S;break e}r(_,C);break}else n(_,C);C=C.sibling}b.type===oT?(S=T1(b.props.children,_.mode,E,b.key),S.return=_,_=S):(E=e6(b.type,b.key,b.props,null,_.mode,E),E.ref=eM(_,S,b),E.return=_,_=E)}return s(_);case iT:e:{for(C=b.key;S!==null;){if(S.key===C)if(S.tag===4&&S.stateNode.containerInfo===b.containerInfo&&S.stateNode.implementation===b.implementation){r(_,S.sibling),S=o(S,b.children||[]),S.return=_,_=S;break e}else{r(_,S);break}else n(_,S);S=S.sibling}S=CY(b,_.mode,E),S.return=_,_=S}return s(_);case hb:return C=b._init,y(_,S,C(b._payload),E)}if(n2(b))return g(_,S,b,E);if(KN(b))return v(_,S,b,E);M3(_,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,S!==null&&S.tag===6?(r(_,S.sibling),S=o(S,b),S.return=_,_=S):(r(_,S),S=EY(b,_.mode,E),S.return=_,_=S),s(_)):r(_,S)}return y}var CO=uBe(!0),dBe=uBe(!1),JF=Q0(null),e8=null,pT=null,Ice=null;function Nce(){Ice=pT=e8=null}function Mce(e){var n=JF.current;Ca(JF),e._currentValue=n}function ore(e,n,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,i!==null&&(i.childLanes|=n)):i!==null&&(i.childLanes&n)!==n&&(i.childLanes|=n),e===r)break;e=e.return}}function jT(e,n){e8=e,Ice=pT=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(od=!0),e.firstContext=null)}function Cp(e){var n=e._currentValue;if(Ice!==e)if(e={context:e,memoizedValue:n,next:null},pT===null){if(e8===null)throw Error(Dn(308));pT=e,e8.dependencies={lanes:0,firstContext:e}}else pT=pT.next=e;return n}var e1=null;function Pce(e){e1===null?e1=[e]:e1.push(e)}function fBe(e,n,r,i){var o=n.interleaved;return o===null?(r.next=r,Pce(n)):(r.next=o.next,o.next=r),n.interleaved=r,Oy(e,i)}function Oy(e,n){e.lanes|=n;var r=e.alternate;for(r!==null&&(r.lanes|=n),r=e,e=e.return;e!==null;)e.childLanes|=n,r=e.alternate,r!==null&&(r.childLanes|=n),r=e,e=e.return;return r.tag===3?r.stateNode:null}var gb=!1;function Ace(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pBe(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uy(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function o0(e,n,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,uo&2){var o=i.pending;return o===null?n.next=n:(n.next=o.next,o.next=n),i.pending=n,Oy(e,r)}return o=i.interleaved,o===null?(n.next=n,Pce(i)):(n.next=o.next,o.next=n),i.interleaved=n,Oy(e,r)}function q5(e,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194240)!==0)){var i=n.lanes;i&=e.pendingLanes,r|=i,n.lanes=r,yce(e,r)}}function RSe(e,n){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var o=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?o=a=s:a=a.next=s,r=r.next}while(r!==null);a===null?o=a=n:a=a.next=n}else o=a=n;r={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:i.shared,effects:i.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=n:e.next=n,r.lastBaseUpdate=n}function t8(e,n,r,i){var o=e.updateQueue;gb=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,s===null?a=u:s.next=u,s=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(a!==null){var f=o.baseState;s=0,d=u=c=null,l=a;do{var p=l.lane,h=l.eventTime;if((i&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,v=l;switch(p=n,h=r,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(h,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,p=typeof g=="function"?g.call(h,f,p):g,p==null)break e;f=as({},f,p);break e;case 2:gb=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[l]:p.push(l))}else h={eventTime:h,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=h,c=f):d=d.next=h,s|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;p=l,l=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,n=o.shared.interleaved,n!==null){o=n;do s|=o.lane,o=o.next;while(o!==n)}else a===null&&(o.shared.lanes=0);X1|=s,e.lanes=s,e.memoizedState=f}}function ISe(e,n,r){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var i=e[n],o=i.callback;if(o!==null){if(i.callback=null,i=r,typeof o!="function")throw Error(Dn(191,o));o.call(i)}}}var sk={},gm=Q0(sk),eA=Q0(sk),tA=Q0(sk);function t1(e){if(e===sk)throw Error(Dn(174));return e}function Dce(e,n){switch(ca(tA,n),ca(eA,e),ca(gm,sk),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Bne(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Bne(n,e)}Ca(gm),ca(gm,n)}function wO(){Ca(gm),Ca(eA),Ca(tA)}function hBe(e){t1(tA.current);var n=t1(gm.current),r=Bne(n,e.type);n!==r&&(ca(eA,e),ca(gm,r))}function kce(e){eA.current===e&&(Ca(gm),Ca(eA))}var ns=Q0(0);function n8(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var mY=[];function Lce(){for(var e=0;e<mY.length;e++)mY[e]._workInProgressVersionPrimary=null;mY.length=0}var K5=qy.ReactCurrentDispatcher,vY=qy.ReactCurrentBatchConfig,K1=0,os=null,vl=null,Ul=null,r8=!1,z2=!1,nA=0,$Ot=0;function Nc(){throw Error(Dn(321))}function $ce(e,n){if(n===null)return!1;for(var r=0;r<n.length&&r<e.length;r++)if(!Jh(e[r],n[r]))return!1;return!0}function Fce(e,n,r,i,o,a){if(K1=a,os=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,K5.current=e===null||e.memoizedState===null?UOt:HOt,e=r(i,o),z2){a=0;do{if(z2=!1,nA=0,25<=a)throw Error(Dn(301));a+=1,Ul=vl=null,n.updateQueue=null,K5.current=zOt,e=r(i,o)}while(z2)}if(K5.current=i8,n=vl!==null&&vl.next!==null,K1=0,Ul=vl=os=null,r8=!1,n)throw Error(Dn(300));return e}function Bce(){var e=nA!==0;return nA=0,e}function Vg(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ul===null?os.memoizedState=Ul=e:Ul=Ul.next=e,Ul}function wp(){if(vl===null){var e=os.alternate;e=e!==null?e.memoizedState:null}else e=vl.next;var n=Ul===null?os.memoizedState:Ul.next;if(n!==null)Ul=n,vl=e;else{if(e===null)throw Error(Dn(310));vl=e,e={memoizedState:vl.memoizedState,baseState:vl.baseState,baseQueue:vl.baseQueue,queue:vl.queue,next:null},Ul===null?os.memoizedState=Ul=e:Ul=Ul.next=e}return Ul}function rA(e,n){return typeof n=="function"?n(e):n}function yY(e){var n=wp(),r=n.queue;if(r===null)throw Error(Dn(311));r.lastRenderedReducer=e;var i=vl,o=i.baseQueue,a=r.pending;if(a!==null){if(o!==null){var s=o.next;o.next=a.next,a.next=s}i.baseQueue=o=a,r.pending=null}if(o!==null){a=o.next,i=i.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((K1&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=f,s=i):c=c.next=f,os.lanes|=d,X1|=d}u=u.next}while(u!==null&&u!==a);c===null?s=i:c.next=l,Jh(i,n.memoizedState)||(od=!0),n.memoizedState=i,n.baseState=s,n.baseQueue=c,r.lastRenderedState=i}if(e=r.interleaved,e!==null){o=e;do a=o.lane,os.lanes|=a,X1|=a,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[n.memoizedState,r.dispatch]}function _Y(e){var n=wp(),r=n.queue;if(r===null)throw Error(Dn(311));r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,a=n.memoizedState;if(o!==null){r.pending=null;var s=o=o.next;do a=e(a,s.action),s=s.next;while(s!==o);Jh(a,n.memoizedState)||(od=!0),n.memoizedState=a,n.baseQueue===null&&(n.baseState=a),r.lastRenderedState=a}return[a,i]}function gBe(){}function mBe(e,n){var r=os,i=wp(),o=n(),a=!Jh(i.memoizedState,o);if(a&&(i.memoizedState=o,od=!0),i=i.queue,jce(_Be.bind(null,r,i,e),[e]),i.getSnapshot!==n||a||Ul!==null&&Ul.memoizedState.tag&1){if(r.flags|=2048,iA(9,yBe.bind(null,r,i,o,n),void 0,null),ql===null)throw Error(Dn(349));K1&30||vBe(r,n,o)}return o}function vBe(e,n,r){e.flags|=16384,e={getSnapshot:n,value:r},n=os.updateQueue,n===null?(n={lastEffect:null,stores:null},os.updateQueue=n,n.stores=[e]):(r=n.stores,r===null?n.stores=[e]:r.push(e))}function yBe(e,n,r,i){n.value=r,n.getSnapshot=i,bBe(n)&&SBe(e)}function _Be(e,n,r){return r(function(){bBe(n)&&SBe(e)})}function bBe(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!Jh(e,r)}catch{return!0}}function SBe(e){var n=Oy(e,1);n!==null&&jh(n,e,1,-1)}function NSe(e){var n=Vg();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:rA,lastRenderedState:e},n.queue=e,e=e.dispatch=jOt.bind(null,os,e),[n.memoizedState,e]}function iA(e,n,r,i){return e={tag:e,create:n,destroy:r,deps:i,next:null},n=os.updateQueue,n===null?(n={lastEffect:null,stores:null},os.updateQueue=n,n.lastEffect=e.next=e):(r=n.lastEffect,r===null?n.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,n.lastEffect=e)),e}function EBe(){return wp().memoizedState}function X5(e,n,r,i){var o=Vg();os.flags|=e,o.memoizedState=iA(1|n,r,void 0,i===void 0?null:i)}function o9(e,n,r,i){var o=wp();i=i===void 0?null:i;var a=void 0;if(vl!==null){var s=vl.memoizedState;if(a=s.destroy,i!==null&&$ce(i,s.deps)){o.memoizedState=iA(n,r,a,i);return}}os.flags|=e,o.memoizedState=iA(1|n,r,a,i)}function MSe(e,n){return X5(8390656,8,e,n)}function jce(e,n){return o9(2048,8,e,n)}function CBe(e,n){return o9(4,2,e,n)}function wBe(e,n){return o9(4,4,e,n)}function xBe(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function TBe(e,n,r){return r=r!=null?r.concat([e]):null,o9(4,4,xBe.bind(null,n,e),r)}function Uce(){}function OBe(e,n){var r=wp();n=n===void 0?null:n;var i=r.memoizedState;return i!==null&&n!==null&&$ce(n,i[1])?i[0]:(r.memoizedState=[e,n],e)}function RBe(e,n){var r=wp();n=n===void 0?null:n;var i=r.memoizedState;return i!==null&&n!==null&&$ce(n,i[1])?i[0]:(e=e(),r.memoizedState=[e,n],e)}function IBe(e,n,r){return K1&21?(Jh(r,n)||(r=D8e(),os.lanes|=r,X1|=r,e.baseState=!0),n):(e.baseState&&(e.baseState=!1,od=!0),e.memoizedState=r)}function FOt(e,n){var r=Bo;Bo=r!==0&&4>r?r:4,e(!0);var i=vY.transition;vY.transition={};try{e(!1),n()}finally{Bo=r,vY.transition=i}}function NBe(){return wp().memoizedState}function BOt(e,n,r){var i=s0(e);if(r={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null},MBe(e))PBe(n,r);else if(r=fBe(e,n,r,i),r!==null){var o=vu();jh(r,e,i,o),ABe(r,n,i)}}function jOt(e,n,r){var i=s0(e),o={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null};if(MBe(e))PBe(n,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=n.lastRenderedReducer,a!==null))try{var s=n.lastRenderedState,l=a(s,r);if(o.hasEagerState=!0,o.eagerState=l,Jh(l,s)){var c=n.interleaved;c===null?(o.next=o,Pce(n)):(o.next=c.next,c.next=o),n.interleaved=o;return}}catch{}finally{}r=fBe(e,n,o,i),r!==null&&(o=vu(),jh(r,e,i,o),ABe(r,n,i))}}function MBe(e){var n=e.alternate;return e===os||n!==null&&n===os}function PBe(e,n){z2=r8=!0;var r=e.pending;r===null?n.next=n:(n.next=r.next,r.next=n),e.pending=n}function ABe(e,n,r){if(r&4194240){var i=n.lanes;i&=e.pendingLanes,r|=i,n.lanes=r,yce(e,r)}}var i8={readContext:Cp,useCallback:Nc,useContext:Nc,useEffect:Nc,useImperativeHandle:Nc,useInsertionEffect:Nc,useLayoutEffect:Nc,useMemo:Nc,useReducer:Nc,useRef:Nc,useState:Nc,useDebugValue:Nc,useDeferredValue:Nc,useTransition:Nc,useMutableSource:Nc,useSyncExternalStore:Nc,useId:Nc,unstable_isNewReconciler:!1},UOt={readContext:Cp,useCallback:function(e,n){return Vg().memoizedState=[e,n===void 0?null:n],e},useContext:Cp,useEffect:MSe,useImperativeHandle:function(e,n,r){return r=r!=null?r.concat([e]):null,X5(4194308,4,xBe.bind(null,n,e),r)},useLayoutEffect:function(e,n){return X5(4194308,4,e,n)},useInsertionEffect:function(e,n){return X5(4,2,e,n)},useMemo:function(e,n){var r=Vg();return n=n===void 0?null:n,e=e(),r.memoizedState=[e,n],e},useReducer:function(e,n,r){var i=Vg();return n=r!==void 0?r(n):n,i.memoizedState=i.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},i.queue=e,e=e.dispatch=BOt.bind(null,os,e),[i.memoizedState,e]},useRef:function(e){var n=Vg();return e={current:e},n.memoizedState=e},useState:NSe,useDebugValue:Uce,useDeferredValue:function(e){return Vg().memoizedState=e},useTransition:function(){var e=NSe(!1),n=e[0];return e=FOt.bind(null,e[1]),Vg().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,r){var i=os,o=Vg();if(Ha){if(r===void 0)throw Error(Dn(407));r=r()}else{if(r=n(),ql===null)throw Error(Dn(349));K1&30||vBe(i,n,r)}o.memoizedState=r;var a={value:r,getSnapshot:n};return o.queue=a,MSe(_Be.bind(null,i,a,e),[e]),i.flags|=2048,iA(9,yBe.bind(null,i,a,r,n),void 0,null),r},useId:function(){var e=Vg(),n=ql.identifierPrefix;if(Ha){var r=Jv,i=Zv;r=(i&~(1<<32-Bh(i)-1)).toString(32)+r,n=":"+n+"R"+r,r=nA++,0<r&&(n+="H"+r.toString(32)),n+=":"}else r=$Ot++,n=":"+n+"r"+r.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},HOt={readContext:Cp,useCallback:OBe,useContext:Cp,useEffect:jce,useImperativeHandle:TBe,useInsertionEffect:CBe,useLayoutEffect:wBe,useMemo:RBe,useReducer:yY,useRef:EBe,useState:function(){return yY(rA)},useDebugValue:Uce,useDeferredValue:function(e){var n=wp();return IBe(n,vl.memoizedState,e)},useTransition:function(){var e=yY(rA)[0],n=wp().memoizedState;return[e,n]},useMutableSource:gBe,useSyncExternalStore:mBe,useId:NBe,unstable_isNewReconciler:!1},zOt={readContext:Cp,useCallback:OBe,useContext:Cp,useEffect:jce,useImperativeHandle:TBe,useInsertionEffect:CBe,useLayoutEffect:wBe,useMemo:RBe,useReducer:_Y,useRef:EBe,useState:function(){return _Y(rA)},useDebugValue:Uce,useDeferredValue:function(e){var n=wp();return vl===null?n.memoizedState=e:IBe(n,vl.memoizedState,e)},useTransition:function(){var e=_Y(rA)[0],n=wp().memoizedState;return[e,n]},useMutableSource:gBe,useSyncExternalStore:mBe,useId:NBe,unstable_isNewReconciler:!1};function yh(e,n){if(e&&e.defaultProps){n=as({},n),e=e.defaultProps;for(var r in e)n[r]===void 0&&(n[r]=e[r]);return n}return n}function are(e,n,r,i){n=e.memoizedState,r=r(i,n),r=r==null?n:as({},n,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var a9={isMounted:function(e){return(e=e._reactInternals)?ZC(e)===e:!1},enqueueSetState:function(e,n,r){e=e._reactInternals;var i=vu(),o=s0(e),a=uy(i,o);a.payload=n,r!=null&&(a.callback=r),n=o0(e,a,o),n!==null&&(jh(n,e,o,i),q5(n,e,o))},enqueueReplaceState:function(e,n,r){e=e._reactInternals;var i=vu(),o=s0(e),a=uy(i,o);a.tag=1,a.payload=n,r!=null&&(a.callback=r),n=o0(e,a,o),n!==null&&(jh(n,e,o,i),q5(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var r=vu(),i=s0(e),o=uy(r,i);o.tag=2,n!=null&&(o.callback=n),n=o0(e,o,i),n!==null&&(jh(n,e,i,r),q5(n,e,i))}};function PSe(e,n,r,i,o,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,a,s):n.prototype&&n.prototype.isPureReactComponent?!XP(r,i)||!XP(o,a):!0}function DBe(e,n,r){var i=!1,o=E0,a=n.contextType;return typeof a=="object"&&a!==null?a=Cp(a):(o=fd(n)?Y1:Vc.current,i=n.contextTypes,a=(i=i!=null)?SO(e,o):E0),n=new n(r,a),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=a9,e.stateNode=n,n._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),n}function ASe(e,n,r,i){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,i),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,i),n.state!==e&&a9.enqueueReplaceState(n,n.state,null)}function sre(e,n,r,i){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Ace(e);var a=n.contextType;typeof a=="object"&&a!==null?o.context=Cp(a):(a=fd(n)?Y1:Vc.current,o.context=SO(e,a)),o.state=e.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(are(e,n,a,r),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(n=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),n!==o.state&&a9.enqueueReplaceState(o,o.state,null),t8(e,r,o,i),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function xO(e,n){try{var r="",i=n;do r+=vTt(i),i=i.return;while(i);var o=r}catch(a){o=`
|
||
Error generating stack: `+a.message+`
|
||
`+a.stack}return{value:e,source:n,stack:o,digest:null}}function bY(e,n,r){return{value:e,source:null,stack:r??null,digest:n??null}}function lre(e,n){try{console.error(n.value)}catch(r){setTimeout(function(){throw r})}}var VOt=typeof WeakMap=="function"?WeakMap:Map;function kBe(e,n,r){r=uy(-1,r),r.tag=3,r.payload={element:null};var i=n.value;return r.callback=function(){a8||(a8=!0,yre=i),lre(e,n)},r}function LBe(e,n,r){r=uy(-1,r),r.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var o=n.value;r.payload=function(){return i(o)},r.callback=function(){lre(e,n)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){lre(e,n),typeof i!="function"&&(a0===null?a0=new Set([this]):a0.add(this));var s=n.stack;this.componentDidCatch(n.value,{componentStack:s!==null?s:""})}),r}function DSe(e,n,r){var i=e.pingCache;if(i===null){i=e.pingCache=new VOt;var o=new Set;i.set(n,o)}else o=i.get(n),o===void 0&&(o=new Set,i.set(n,o));o.has(r)||(o.add(r),e=iRt.bind(null,e,n,r),n.then(e,e))}function kSe(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function LSe(e,n,r,i,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===n?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(n=uy(-1,1),n.tag=2,o0(r,n,1))),r.lanes|=1),e)}var GOt=qy.ReactCurrentOwner,od=!1;function su(e,n,r,i){n.child=e===null?dBe(n,null,r,i):CO(n,e.child,r,i)}function $Se(e,n,r,i,o){r=r.render;var a=n.ref;return jT(n,o),i=Fce(e,n,r,i,a,o),r=Bce(),e!==null&&!od?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~o,Ry(e,n,o)):(Ha&&r&&Tce(n),n.flags|=1,su(e,n,i,o),n.child)}function FSe(e,n,r,i,o){if(e===null){var a=r.type;return typeof a=="function"&&!Kce(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(n.tag=15,n.type=a,$Be(e,n,a,i,o)):(e=e6(r.type,null,i,n,n.mode,o),e.ref=n.ref,e.return=n,n.child=e)}if(a=e.child,!(e.lanes&o)){var s=a.memoizedProps;if(r=r.compare,r=r!==null?r:XP,r(s,i)&&e.ref===n.ref)return Ry(e,n,o)}return n.flags|=1,e=l0(a,i),e.ref=n.ref,e.return=n,n.child=e}function $Be(e,n,r,i,o){if(e!==null){var a=e.memoizedProps;if(XP(a,i)&&e.ref===n.ref)if(od=!1,n.pendingProps=i=a,(e.lanes&o)!==0)e.flags&131072&&(od=!0);else return n.lanes=e.lanes,Ry(e,n,o)}return cre(e,n,r,i,o)}function FBe(e,n,r){var i=n.pendingProps,o=i.children,a=e!==null?e.memoizedState:null;if(i.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},ca(gT,qd),qd|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,ca(gT,qd),qd|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=a!==null?a.baseLanes:r,ca(gT,qd),qd|=i}else a!==null?(i=a.baseLanes|r,n.memoizedState=null):i=r,ca(gT,qd),qd|=i;return su(e,n,o,r),n.child}function BBe(e,n){var r=n.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(n.flags|=512,n.flags|=2097152)}function cre(e,n,r,i,o){var a=fd(r)?Y1:Vc.current;return a=SO(n,a),jT(n,o),r=Fce(e,n,r,i,a,o),i=Bce(),e!==null&&!od?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~o,Ry(e,n,o)):(Ha&&i&&Tce(n),n.flags|=1,su(e,n,r,o),n.child)}function BSe(e,n,r,i,o){if(fd(r)){var a=!0;XF(n)}else a=!1;if(jT(n,o),n.stateNode===null)Q5(e,n),DBe(n,r,i),sre(n,r,i,o),i=!0;else if(e===null){var s=n.stateNode,l=n.memoizedProps;s.props=l;var c=s.context,u=r.contextType;typeof u=="object"&&u!==null?u=Cp(u):(u=fd(r)?Y1:Vc.current,u=SO(n,u));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==i||c!==u)&&ASe(n,s,i,u),gb=!1;var p=n.memoizedState;s.state=p,t8(n,i,s,o),c=n.memoizedState,l!==i||p!==c||dd.current||gb?(typeof d=="function"&&(are(n,r,d,i),c=n.memoizedState),(l=gb||PSe(n,r,l,i,p,c,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(n.flags|=4194308)):(typeof s.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=i,n.memoizedState=c),s.props=i,s.state=c,s.context=u,i=l):(typeof s.componentDidMount=="function"&&(n.flags|=4194308),i=!1)}else{s=n.stateNode,pBe(e,n),l=n.memoizedProps,u=n.type===n.elementType?l:yh(n.type,l),s.props=u,f=n.pendingProps,p=s.context,c=r.contextType,typeof c=="object"&&c!==null?c=Cp(c):(c=fd(r)?Y1:Vc.current,c=SO(n,c));var h=r.getDerivedStateFromProps;(d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||p!==c)&&ASe(n,s,i,c),gb=!1,p=n.memoizedState,s.state=p,t8(n,i,s,o);var g=n.memoizedState;l!==f||p!==g||dd.current||gb?(typeof h=="function"&&(are(n,r,h,i),g=n.memoizedState),(u=gb||PSe(n,r,u,i,p,g,c)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,g,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,g,c)),typeof s.componentDidUpdate=="function"&&(n.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=g),s.props=i,s.state=g,s.context=c,i=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),i=!1)}return ure(e,n,r,i,a,o)}function ure(e,n,r,i,o,a){BBe(e,n);var s=(n.flags&128)!==0;if(!i&&!s)return o&&wSe(n,r,!1),Ry(e,n,a);i=n.stateNode,GOt.current=n;var l=s&&typeof r.getDerivedStateFromError!="function"?null:i.render();return n.flags|=1,e!==null&&s?(n.child=CO(n,e.child,null,a),n.child=CO(n,null,l,a)):su(e,n,l,a),n.memoizedState=i.state,o&&wSe(n,r,!0),n.child}function jBe(e){var n=e.stateNode;n.pendingContext?CSe(e,n.pendingContext,n.pendingContext!==n.context):n.context&&CSe(e,n.context,!1),Dce(e,n.containerInfo)}function jSe(e,n,r,i,o){return EO(),Rce(o),n.flags|=256,su(e,n,r,i),n.child}var dre={dehydrated:null,treeContext:null,retryLane:0};function fre(e){return{baseLanes:e,cachePool:null,transitions:null}}function UBe(e,n,r){var i=n.pendingProps,o=ns.current,a=!1,s=(n.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(a=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ca(ns,o&1),e===null)return ire(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(s=i.children,e=i.fallback,a?(i=n.mode,a=n.child,s={mode:"hidden",children:s},!(i&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=c9(s,i,0,null),e=T1(e,i,r,null),a.return=n,e.return=n,a.sibling=e,n.child=a,n.child.memoizedState=fre(r),n.memoizedState=dre,e):Hce(n,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return WOt(e,n,s,i,l,o,r);if(a){a=i.fallback,s=n.mode,o=e.child,l=o.sibling;var c={mode:"hidden",children:i.children};return!(s&1)&&n.child!==o?(i=n.child,i.childLanes=0,i.pendingProps=c,n.deletions=null):(i=l0(o,c),i.subtreeFlags=o.subtreeFlags&14680064),l!==null?a=l0(l,a):(a=T1(a,s,r,null),a.flags|=2),a.return=n,i.return=n,i.sibling=a,n.child=i,i=a,a=n.child,s=e.child.memoizedState,s=s===null?fre(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~r,n.memoizedState=dre,i}return a=e.child,e=a.sibling,i=l0(a,{mode:"visible",children:i.children}),!(n.mode&1)&&(i.lanes=r),i.return=n,i.sibling=null,e!==null&&(r=n.deletions,r===null?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=i,n.memoizedState=null,i}function Hce(e,n){return n=c9({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function P3(e,n,r,i){return i!==null&&Rce(i),CO(n,e.child,null,r),e=Hce(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function WOt(e,n,r,i,o,a,s){if(r)return n.flags&256?(n.flags&=-257,i=bY(Error(Dn(422))),P3(e,n,s,i)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(a=i.fallback,o=n.mode,i=c9({mode:"visible",children:i.children},o,0,null),a=T1(a,o,s,null),a.flags|=2,i.return=n,a.return=n,i.sibling=a,n.child=i,n.mode&1&&CO(n,e.child,null,s),n.child.memoizedState=fre(s),n.memoizedState=dre,a);if(!(n.mode&1))return P3(e,n,s,null);if(o.data==="$!"){if(i=o.nextSibling&&o.nextSibling.dataset,i)var l=i.dgst;return i=l,a=Error(Dn(419)),i=bY(a,i,void 0),P3(e,n,s,i)}if(l=(s&e.childLanes)!==0,od||l){if(i=ql,i!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(i.suspendedLanes|s)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,Oy(e,o),jh(i,e,o,-1))}return qce(),i=bY(Error(Dn(421))),P3(e,n,s,i)}return o.data==="$?"?(n.flags|=128,n.child=e.child,n=oRt.bind(null,e),o._reactRetry=n,null):(e=a.treeContext,af=i0(o.nextSibling),pf=n,Ha=!0,Th=null,e!==null&&(sp[lp++]=Zv,sp[lp++]=Jv,sp[lp++]=q1,Zv=e.id,Jv=e.overflow,q1=n),n=Hce(n,i.children),n.flags|=4096,n)}function USe(e,n,r){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n),ore(e.return,n,r)}function SY(e,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:o}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=r,a.tailMode=o)}function HBe(e,n,r){var i=n.pendingProps,o=i.revealOrder,a=i.tail;if(su(e,n,i.children,r),i=ns.current,i&2)i=i&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&USe(e,r,n);else if(e.tag===19)USe(e,r,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(ca(ns,i),!(n.mode&1))n.memoizedState=null;else switch(o){case"forwards":for(r=n.child,o=null;r!==null;)e=r.alternate,e!==null&&n8(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=n.child,n.child=null):(o=r.sibling,r.sibling=null),SY(n,!1,o,r,a);break;case"backwards":for(r=null,o=n.child,n.child=null;o!==null;){if(e=o.alternate,e!==null&&n8(e)===null){n.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}SY(n,!0,r,null,a);break;case"together":SY(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Q5(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Ry(e,n,r){if(e!==null&&(n.dependencies=e.dependencies),X1|=n.lanes,!(r&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(Dn(153));if(n.child!==null){for(e=n.child,r=l0(e,e.pendingProps),n.child=r,r.return=n;e.sibling!==null;)e=e.sibling,r=r.sibling=l0(e,e.pendingProps),r.return=n;r.sibling=null}return n.child}function YOt(e,n,r){switch(n.tag){case 3:jBe(n),EO();break;case 5:hBe(n);break;case 1:fd(n.type)&&XF(n);break;case 4:Dce(n,n.stateNode.containerInfo);break;case 10:var i=n.type._context,o=n.memoizedProps.value;ca(JF,i._currentValue),i._currentValue=o;break;case 13:if(i=n.memoizedState,i!==null)return i.dehydrated!==null?(ca(ns,ns.current&1),n.flags|=128,null):r&n.child.childLanes?UBe(e,n,r):(ca(ns,ns.current&1),e=Ry(e,n,r),e!==null?e.sibling:null);ca(ns,ns.current&1);break;case 19:if(i=(r&n.childLanes)!==0,e.flags&128){if(i)return HBe(e,n,r);n.flags|=128}if(o=n.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ca(ns,ns.current),i)break;return null;case 22:case 23:return n.lanes=0,FBe(e,n,r)}return Ry(e,n,r)}var zBe,pre,VBe,GBe;zBe=function(e,n){for(var r=n.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};pre=function(){};VBe=function(e,n,r,i){var o=e.memoizedProps;if(o!==i){e=n.stateNode,t1(gm.current);var a=null;switch(r){case"input":o=kne(e,o),i=kne(e,i),a=[];break;case"select":o=as({},o,{value:void 0}),i=as({},i,{value:void 0}),a=[];break;case"textarea":o=Fne(e,o),i=Fne(e,i),a=[];break;default:typeof o.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=qF)}jne(r,i);var s;r=null;for(u in o)if(!i.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(s in l)l.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(zP.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in i){var c=i[u];if(l=o!=null?o[u]:void 0,i.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(r||(r={}),r[s]=c[s])}else r||(a||(a=[]),a.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(zP.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&ma("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}r&&(a=a||[]).push("style",r);var u=a;(n.updateQueue=u)&&(n.flags|=4)}};GBe=function(e,n,r,i){r!==i&&(n.flags|=4)};function tM(e,n){if(!Ha)switch(e.tailMode){case"hidden":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Mc(e){var n=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(n)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,i|=o.subtreeFlags&14680064,i|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=r,n}function qOt(e,n,r){var i=n.pendingProps;switch(Oce(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mc(n),null;case 1:return fd(n.type)&&KF(),Mc(n),null;case 3:return i=n.stateNode,wO(),Ca(dd),Ca(Vc),Lce(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(N3(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Th!==null&&(Sre(Th),Th=null))),pre(e,n),Mc(n),null;case 5:kce(n);var o=t1(tA.current);if(r=n.type,e!==null&&n.stateNode!=null)VBe(e,n,r,i,o),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!i){if(n.stateNode===null)throw Error(Dn(166));return Mc(n),null}if(e=t1(gm.current),N3(n)){i=n.stateNode,r=n.type;var a=n.memoizedProps;switch(i[im]=n,i[JP]=a,e=(n.mode&1)!==0,r){case"dialog":ma("cancel",i),ma("close",i);break;case"iframe":case"object":case"embed":ma("load",i);break;case"video":case"audio":for(o=0;o<i2.length;o++)ma(i2[o],i);break;case"source":ma("error",i);break;case"img":case"image":case"link":ma("error",i),ma("load",i);break;case"details":ma("toggle",i);break;case"input":X0e(i,a),ma("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},ma("invalid",i);break;case"textarea":Z0e(i,a),ma("invalid",i)}jne(r,a),o=null;for(var s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="children"?typeof l=="string"?i.textContent!==l&&(a.suppressHydrationWarning!==!0&&I3(i.textContent,l,e),o=["children",l]):typeof l=="number"&&i.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&I3(i.textContent,l,e),o=["children",""+l]):zP.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&ma("scroll",i)}switch(r){case"input":S3(i),Q0e(i,a,!0);break;case"textarea":S3(i),J0e(i);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(i.onclick=qF)}i=o,n.updateQueue=i,i!==null&&(n.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_8e(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=s.createElement(r,{is:i.is}):(e=s.createElement(r),r==="select"&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,r),e[im]=n,e[JP]=i,zBe(e,n,!1,!1),n.stateNode=e;e:{switch(s=Une(r,i),r){case"dialog":ma("cancel",e),ma("close",e),o=i;break;case"iframe":case"object":case"embed":ma("load",e),o=i;break;case"video":case"audio":for(o=0;o<i2.length;o++)ma(i2[o],e);o=i;break;case"source":ma("error",e),o=i;break;case"img":case"image":case"link":ma("error",e),ma("load",e),o=i;break;case"details":ma("toggle",e),o=i;break;case"input":X0e(e,i),o=kne(e,i),ma("invalid",e);break;case"option":o=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},o=as({},i,{value:void 0}),ma("invalid",e);break;case"textarea":Z0e(e,i),o=Fne(e,i),ma("invalid",e);break;default:o=i}jne(r,o),l=o;for(a in l)if(l.hasOwnProperty(a)){var c=l[a];a==="style"?E8e(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&b8e(e,c)):a==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&VP(e,c):typeof c=="number"&&VP(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(zP.hasOwnProperty(a)?c!=null&&a==="onScroll"&&ma("scroll",e):c!=null&&fce(e,a,c,s))}switch(r){case"input":S3(e),Q0e(e,i,!1);break;case"textarea":S3(e),J0e(e);break;case"option":i.value!=null&&e.setAttribute("value",""+S0(i.value));break;case"select":e.multiple=!!i.multiple,a=i.value,a!=null?LT(e,!!i.multiple,a,!1):i.defaultValue!=null&<(e,!!i.multiple,i.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=qF)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Mc(n),null;case 6:if(e&&n.stateNode!=null)GBe(e,n,e.memoizedProps,i);else{if(typeof i!="string"&&n.stateNode===null)throw Error(Dn(166));if(r=t1(tA.current),t1(gm.current),N3(n)){if(i=n.stateNode,r=n.memoizedProps,i[im]=n,(a=i.nodeValue!==r)&&(e=pf,e!==null))switch(e.tag){case 3:I3(i.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&I3(i.nodeValue,r,(e.mode&1)!==0)}a&&(n.flags|=4)}else i=(r.nodeType===9?r:r.ownerDocument).createTextNode(i),i[im]=n,n.stateNode=i}return Mc(n),null;case 13:if(Ca(ns),i=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ha&&af!==null&&n.mode&1&&!(n.flags&128))cBe(),EO(),n.flags|=98560,a=!1;else if(a=N3(n),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(Dn(318));if(a=n.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(Dn(317));a[im]=n}else EO(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;Mc(n),a=!1}else Th!==null&&(Sre(Th),Th=null),a=!0;if(!a)return n.flags&65536?n:null}return n.flags&128?(n.lanes=r,n):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(n.child.flags|=8192,n.mode&1&&(e===null||ns.current&1?Cl===0&&(Cl=3):qce())),n.updateQueue!==null&&(n.flags|=4),Mc(n),null);case 4:return wO(),pre(e,n),e===null&&QP(n.stateNode.containerInfo),Mc(n),null;case 10:return Mce(n.type._context),Mc(n),null;case 17:return fd(n.type)&&KF(),Mc(n),null;case 19:if(Ca(ns),a=n.memoizedState,a===null)return Mc(n),null;if(i=(n.flags&128)!==0,s=a.rendering,s===null)if(i)tM(a,!1);else{if(Cl!==0||e!==null&&e.flags&128)for(e=n.child;e!==null;){if(s=n8(e),s!==null){for(n.flags|=128,tM(a,!1),i=s.updateQueue,i!==null&&(n.updateQueue=i,n.flags|=4),n.subtreeFlags=0,i=r,r=n.child;r!==null;)a=r,e=i,a.flags&=14680066,s=a.alternate,s===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=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ca(ns,ns.current&1|2),n.child}e=e.sibling}a.tail!==null&&Bs()>TO&&(n.flags|=128,i=!0,tM(a,!1),n.lanes=4194304)}else{if(!i)if(e=n8(s),e!==null){if(n.flags|=128,i=!0,r=e.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),tM(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ha)return Mc(n),null}else 2*Bs()-a.renderingStartTime>TO&&r!==1073741824&&(n.flags|=128,i=!0,tM(a,!1),n.lanes=4194304);a.isBackwards?(s.sibling=n.child,n.child=s):(r=a.last,r!==null?r.sibling=s:n.child=s,a.last=s)}return a.tail!==null?(n=a.tail,a.rendering=n,a.tail=n.sibling,a.renderingStartTime=Bs(),n.sibling=null,r=ns.current,ca(ns,i?r&1|2:r&1),n):(Mc(n),null);case 22:case 23:return Yce(),i=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(n.flags|=8192),i&&n.mode&1?qd&1073741824&&(Mc(n),n.subtreeFlags&6&&(n.flags|=8192)):Mc(n),null;case 24:return null;case 25:return null}throw Error(Dn(156,n.tag))}function KOt(e,n){switch(Oce(n),n.tag){case 1:return fd(n.type)&&KF(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return wO(),Ca(dd),Ca(Vc),Lce(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return kce(n),null;case 13:if(Ca(ns),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(Dn(340));EO()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ca(ns),null;case 4:return wO(),null;case 10:return Mce(n.type._context),null;case 22:case 23:return Yce(),null;case 24:return null;default:return null}}var A3=!1,$c=!1,XOt=typeof WeakSet=="function"?WeakSet:Set,cr=null;function hT(e,n){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(i){vs(e,n,i)}else r.current=null}function hre(e,n,r){try{r()}catch(i){vs(e,n,i)}}var HSe=!1;function QOt(e,n){if(Qne=GF,e=X8e(),xce(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||o!==0&&f.nodeType!==3||(l=s+o),f!==a||i!==0&&f.nodeType!==3||(c=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++u===o&&(l=s),p===a&&++d===i&&(c=s),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zne={focusedElem:e,selectionRange:r},GF=!1,cr=n;cr!==null;)if(n=cr,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,cr=e;else for(;cr!==null;){n=cr;try{var g=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,y=g.memoizedState,_=n.stateNode,S=_.getSnapshotBeforeUpdate(n.elementType===n.type?v:yh(n.type,v),y);_.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var b=n.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Dn(163))}}catch(E){vs(n,n.return,E)}if(e=n.sibling,e!==null){e.return=n.return,cr=e;break}cr=n.return}return g=HSe,HSe=!1,g}function V2(e,n,r){var i=n.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&hre(n,r,a)}o=o.next}while(o!==i)}}function s9(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do{if((r.tag&e)===e){var i=r.create;r.destroy=i()}r=r.next}while(r!==n)}}function gre(e){var n=e.ref;if(n!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof n=="function"?n(e):n.current=e}}function WBe(e){var n=e.alternate;n!==null&&(e.alternate=null,WBe(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[im],delete n[JP],delete n[tre],delete n[AOt],delete n[DOt])),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 YBe(e){return e.tag===5||e.tag===3||e.tag===4}function zSe(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||YBe(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 mre(e,n,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?r.nodeType===8?r.parentNode.insertBefore(e,n):r.insertBefore(e,n):(r.nodeType===8?(n=r.parentNode,n.insertBefore(e,r)):(n=r,n.appendChild(e)),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=qF));else if(i!==4&&(e=e.child,e!==null))for(mre(e,n,r),e=e.sibling;e!==null;)mre(e,n,r),e=e.sibling}function vre(e,n,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?r.insertBefore(e,n):r.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(vre(e,n,r),e=e.sibling;e!==null;)vre(e,n,r),e=e.sibling}var cc=null,Eh=!1;function B_(e,n,r){for(r=r.child;r!==null;)qBe(e,n,r),r=r.sibling}function qBe(e,n,r){if(hm&&typeof hm.onCommitFiberUnmount=="function")try{hm.onCommitFiberUnmount(J7,r)}catch{}switch(r.tag){case 5:$c||hT(r,n);case 6:var i=cc,o=Eh;cc=null,B_(e,n,r),cc=i,Eh=o,cc!==null&&(Eh?(e=cc,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):cc.removeChild(r.stateNode));break;case 18:cc!==null&&(Eh?(e=cc,r=r.stateNode,e.nodeType===8?hY(e.parentNode,r):e.nodeType===1&&hY(e,r),qP(e)):hY(cc,r.stateNode));break;case 4:i=cc,o=Eh,cc=r.stateNode.containerInfo,Eh=!0,B_(e,n,r),cc=i,Eh=o;break;case 0:case 11:case 14:case 15:if(!$c&&(i=r.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){o=i=i.next;do{var a=o,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&hre(r,n,s),o=o.next}while(o!==i)}B_(e,n,r);break;case 1:if(!$c&&(hT(r,n),i=r.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=r.memoizedProps,i.state=r.memoizedState,i.componentWillUnmount()}catch(l){vs(r,n,l)}B_(e,n,r);break;case 21:B_(e,n,r);break;case 22:r.mode&1?($c=(i=$c)||r.memoizedState!==null,B_(e,n,r),$c=i):B_(e,n,r);break;default:B_(e,n,r)}}function VSe(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new XOt),n.forEach(function(i){var o=aRt.bind(null,e,i);r.has(i)||(r.add(i),i.then(o,o))})}}function ch(e,n){var r=n.deletions;if(r!==null)for(var i=0;i<r.length;i++){var o=r[i];try{var a=e,s=n,l=s;e:for(;l!==null;){switch(l.tag){case 5:cc=l.stateNode,Eh=!1;break e;case 3:cc=l.stateNode.containerInfo,Eh=!0;break e;case 4:cc=l.stateNode.containerInfo,Eh=!0;break e}l=l.return}if(cc===null)throw Error(Dn(160));qBe(a,s,o),cc=null,Eh=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){vs(o,n,u)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)KBe(n,e),n=n.sibling}function KBe(e,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ch(n,e),Bg(e),i&4){try{V2(3,e,e.return),s9(3,e)}catch(v){vs(e,e.return,v)}try{V2(5,e,e.return)}catch(v){vs(e,e.return,v)}}break;case 1:ch(n,e),Bg(e),i&512&&r!==null&&hT(r,r.return);break;case 5:if(ch(n,e),Bg(e),i&512&&r!==null&&hT(r,r.return),e.flags&32){var o=e.stateNode;try{VP(o,"")}catch(v){vs(e,e.return,v)}}if(i&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,s=r!==null?r.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&v8e(o,a),Une(l,s);var u=Une(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];d==="style"?E8e(o,f):d==="dangerouslySetInnerHTML"?b8e(o,f):d==="children"?VP(o,f):fce(o,d,f,u)}switch(l){case"input":Lne(o,a);break;case"textarea":y8e(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?LT(o,!!a.multiple,h,!1):p!==!!a.multiple&&(a.defaultValue!=null?LT(o,!!a.multiple,a.defaultValue,!0):LT(o,!!a.multiple,a.multiple?[]:"",!1))}o[JP]=a}catch(v){vs(e,e.return,v)}}break;case 6:if(ch(n,e),Bg(e),i&4){if(e.stateNode===null)throw Error(Dn(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(v){vs(e,e.return,v)}}break;case 3:if(ch(n,e),Bg(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{qP(n.containerInfo)}catch(v){vs(e,e.return,v)}break;case 4:ch(n,e),Bg(e);break;case 13:ch(n,e),Bg(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(Gce=Bs())),i&4&&VSe(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?($c=(u=$c)||d,ch(n,e),$c=u):ch(n,e),Bg(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(cr=e,d=e.child;d!==null;){for(f=cr=d;cr!==null;){switch(p=cr,h=p.child,p.tag){case 0:case 11:case 14:case 15:V2(4,p,p.return);break;case 1:hT(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){i=p,r=p.return;try{n=i,g.props=n.memoizedProps,g.state=n.memoizedState,g.componentWillUnmount()}catch(v){vs(i,r,v)}}break;case 5:hT(p,p.return);break;case 22:if(p.memoizedState!==null){WSe(f);continue}}h!==null?(h.return=p,cr=h):WSe(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=f.stateNode,c=f.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=S8e("display",s))}catch(v){vs(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){vs(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ch(n,e),Bg(e),i&4&&VSe(e);break;case 21:break;default:ch(n,e),Bg(e)}}function Bg(e){var n=e.flags;if(n&2){try{e:{for(var r=e.return;r!==null;){if(YBe(r)){var i=r;break e}r=r.return}throw Error(Dn(160))}switch(i.tag){case 5:var o=i.stateNode;i.flags&32&&(VP(o,""),i.flags&=-33);var a=zSe(e);vre(e,a,o);break;case 3:case 4:var s=i.stateNode.containerInfo,l=zSe(e);mre(e,l,s);break;default:throw Error(Dn(161))}}catch(c){vs(e,e.return,c)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function ZOt(e,n,r){cr=e,XBe(e)}function XBe(e,n,r){for(var i=(e.mode&1)!==0;cr!==null;){var o=cr,a=o.child;if(o.tag===22&&i){var s=o.memoizedState!==null||A3;if(!s){var l=o.alternate,c=l!==null&&l.memoizedState!==null||$c;l=A3;var u=$c;if(A3=s,($c=c)&&!u)for(cr=o;cr!==null;)s=cr,c=s.child,s.tag===22&&s.memoizedState!==null?YSe(o):c!==null?(c.return=s,cr=c):YSe(o);for(;a!==null;)cr=a,XBe(a),a=a.sibling;cr=o,A3=l,$c=u}GSe(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,cr=a):GSe(e)}}function GSe(e){for(;cr!==null;){var n=cr;if(n.flags&8772){var r=n.alternate;try{if(n.flags&8772)switch(n.tag){case 0:case 11:case 15:$c||s9(5,n);break;case 1:var i=n.stateNode;if(n.flags&4&&!$c)if(r===null)i.componentDidMount();else{var o=n.elementType===n.type?r.memoizedProps:yh(n.type,r.memoizedProps);i.componentDidUpdate(o,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=n.updateQueue;a!==null&&ISe(n,a,i);break;case 3:var s=n.updateQueue;if(s!==null){if(r=null,n.child!==null)switch(n.child.tag){case 5:r=n.child.stateNode;break;case 1:r=n.child.stateNode}ISe(n,s,r)}break;case 5:var l=n.stateNode;if(r===null&&n.flags&4){r=l;var c=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var u=n.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&qP(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Dn(163))}$c||n.flags&512&&gre(n)}catch(p){vs(n,n.return,p)}}if(n===e){cr=null;break}if(r=n.sibling,r!==null){r.return=n.return,cr=r;break}cr=n.return}}function WSe(e){for(;cr!==null;){var n=cr;if(n===e){cr=null;break}var r=n.sibling;if(r!==null){r.return=n.return,cr=r;break}cr=n.return}}function YSe(e){for(;cr!==null;){var n=cr;try{switch(n.tag){case 0:case 11:case 15:var r=n.return;try{s9(4,n)}catch(c){vs(n,r,c)}break;case 1:var i=n.stateNode;if(typeof i.componentDidMount=="function"){var o=n.return;try{i.componentDidMount()}catch(c){vs(n,o,c)}}var a=n.return;try{gre(n)}catch(c){vs(n,a,c)}break;case 5:var s=n.return;try{gre(n)}catch(c){vs(n,s,c)}}}catch(c){vs(n,n.return,c)}if(n===e){cr=null;break}var l=n.sibling;if(l!==null){l.return=n.return,cr=l;break}cr=n.return}}var JOt=Math.ceil,o8=qy.ReactCurrentDispatcher,zce=qy.ReactCurrentOwner,_p=qy.ReactCurrentBatchConfig,uo=0,ql=null,il=null,gc=0,qd=0,gT=Q0(0),Cl=0,oA=null,X1=0,l9=0,Vce=0,G2=null,td=null,Gce=0,TO=1/0,Bv=null,a8=!1,yre=null,a0=null,D3=!1,$b=null,s8=0,W2=0,_re=null,Z5=-1,J5=0;function vu(){return uo&6?Bs():Z5!==-1?Z5:Z5=Bs()}function s0(e){return e.mode&1?uo&2&&gc!==0?gc&-gc:LOt.transition!==null?(J5===0&&(J5=D8e()),J5):(e=Bo,e!==0||(e=window.event,e=e===void 0?16:U8e(e.type)),e):1}function jh(e,n,r,i){if(50<W2)throw W2=0,_re=null,Error(Dn(185));ik(e,r,i),(!(uo&2)||e!==ql)&&(e===ql&&(!(uo&2)&&(l9|=r),Cl===4&&wb(e,gc)),pd(e,i),r===1&&uo===0&&!(n.mode&1)&&(TO=Bs()+500,i9&&Z0()))}function pd(e,n){var r=e.callbackNode;LTt(e,n);var i=VF(e,e===ql?gc:0);if(i===0)r!==null&&nSe(r),e.callbackNode=null,e.callbackPriority=0;else if(n=i&-i,e.callbackPriority!==n){if(r!=null&&nSe(r),n===1)e.tag===0?kOt(qSe.bind(null,e)):aBe(qSe.bind(null,e)),MOt(function(){!(uo&6)&&Z0()}),r=null;else{switch(k8e(i)){case 1:r=vce;break;case 4:r=P8e;break;case 16:r=zF;break;case 536870912:r=A8e;break;default:r=zF}r=ije(r,QBe.bind(null,e))}e.callbackPriority=n,e.callbackNode=r}}function QBe(e,n){if(Z5=-1,J5=0,uo&6)throw Error(Dn(327));var r=e.callbackNode;if(UT()&&e.callbackNode!==r)return null;var i=VF(e,e===ql?gc:0);if(i===0)return null;if(i&30||i&e.expiredLanes||n)n=l8(e,i);else{n=i;var o=uo;uo|=2;var a=JBe();(ql!==e||gc!==n)&&(Bv=null,TO=Bs()+500,x1(e,n));do try{nRt();break}catch(l){ZBe(e,l)}while(!0);Nce(),o8.current=a,uo=o,il!==null?n=0:(ql=null,gc=0,n=Cl)}if(n!==0){if(n===2&&(o=Wne(e),o!==0&&(i=o,n=bre(e,o))),n===1)throw r=oA,x1(e,0),wb(e,i),pd(e,Bs()),r;if(n===6)wb(e,i);else{if(o=e.current.alternate,!(i&30)&&!eRt(o)&&(n=l8(e,i),n===2&&(a=Wne(e),a!==0&&(i=a,n=bre(e,a))),n===1))throw r=oA,x1(e,0),wb(e,i),pd(e,Bs()),r;switch(e.finishedWork=o,e.finishedLanes=i,n){case 0:case 1:throw Error(Dn(345));case 2:ME(e,td,Bv);break;case 3:if(wb(e,i),(i&130023424)===i&&(n=Gce+500-Bs(),10<n)){if(VF(e,0)!==0)break;if(o=e.suspendedLanes,(o&i)!==i){vu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ere(ME.bind(null,e,td,Bv),n);break}ME(e,td,Bv);break;case 4:if(wb(e,i),(i&4194240)===i)break;for(n=e.eventTimes,o=-1;0<i;){var s=31-Bh(i);a=1<<s,s=n[s],s>o&&(o=s),i&=~a}if(i=o,i=Bs()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*JOt(i/1960))-i,10<i){e.timeoutHandle=ere(ME.bind(null,e,td,Bv),i);break}ME(e,td,Bv);break;case 5:ME(e,td,Bv);break;default:throw Error(Dn(329))}}}return pd(e,Bs()),e.callbackNode===r?QBe.bind(null,e):null}function bre(e,n){var r=G2;return e.current.memoizedState.isDehydrated&&(x1(e,n).flags|=256),e=l8(e,n),e!==2&&(n=td,td=r,n!==null&&Sre(n)),e}function Sre(e){td===null?td=e:td.push.apply(td,e)}function eRt(e){for(var n=e;;){if(n.flags&16384){var r=n.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var i=0;i<r.length;i++){var o=r[i],a=o.getSnapshot;o=o.value;try{if(!Jh(a(),o))return!1}catch{return!1}}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function wb(e,n){for(n&=~Vce,n&=~l9,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var r=31-Bh(n),i=1<<r;e[r]=-1,n&=~i}}function qSe(e){if(uo&6)throw Error(Dn(327));UT();var n=VF(e,0);if(!(n&1))return pd(e,Bs()),null;var r=l8(e,n);if(e.tag!==0&&r===2){var i=Wne(e);i!==0&&(n=i,r=bre(e,i))}if(r===1)throw r=oA,x1(e,0),wb(e,n),pd(e,Bs()),r;if(r===6)throw Error(Dn(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,ME(e,td,Bv),pd(e,Bs()),null}function Wce(e,n){var r=uo;uo|=1;try{return e(n)}finally{uo=r,uo===0&&(TO=Bs()+500,i9&&Z0())}}function Q1(e){$b!==null&&$b.tag===0&&!(uo&6)&&UT();var n=uo;uo|=1;var r=_p.transition,i=Bo;try{if(_p.transition=null,Bo=1,e)return e()}finally{Bo=i,_p.transition=r,uo=n,!(uo&6)&&Z0()}}function Yce(){qd=gT.current,Ca(gT)}function x1(e,n){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,NOt(r)),il!==null)for(r=il.return;r!==null;){var i=r;switch(Oce(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&KF();break;case 3:wO(),Ca(dd),Ca(Vc),Lce();break;case 5:kce(i);break;case 4:wO();break;case 13:Ca(ns);break;case 19:Ca(ns);break;case 10:Mce(i.type._context);break;case 22:case 23:Yce()}r=r.return}if(ql=e,il=e=l0(e.current,null),gc=qd=n,Cl=0,oA=null,Vce=l9=X1=0,td=G2=null,e1!==null){for(n=0;n<e1.length;n++)if(r=e1[n],i=r.interleaved,i!==null){r.interleaved=null;var o=i.next,a=r.pending;if(a!==null){var s=a.next;a.next=o,i.next=s}r.pending=i}e1=null}return e}function ZBe(e,n){do{var r=il;try{if(Nce(),K5.current=i8,r8){for(var i=os.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}r8=!1}if(K1=0,Ul=vl=os=null,z2=!1,nA=0,zce.current=null,r===null||r.return===null){Cl=1,oA=n,il=null;break}e:{var a=e,s=r.return,l=r,c=n;if(n=gc,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=kSe(s);if(h!==null){h.flags&=-257,LSe(h,s,l,a,n),h.mode&1&&DSe(a,u,n),n=h,c=u;var g=n.updateQueue;if(g===null){var v=new Set;v.add(c),n.updateQueue=v}else g.add(c);break e}else{if(!(n&1)){DSe(a,u,n),qce();break e}c=Error(Dn(426))}}else if(Ha&&l.mode&1){var y=kSe(s);if(y!==null){!(y.flags&65536)&&(y.flags|=256),LSe(y,s,l,a,n),Rce(xO(c,l));break e}}a=c=xO(c,l),Cl!==4&&(Cl=2),G2===null?G2=[a]:G2.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,n&=-n,a.lanes|=n;var _=kBe(a,c,n);RSe(a,_);break e;case 1:l=c;var S=a.type,b=a.stateNode;if(!(a.flags&128)&&(typeof S.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(a0===null||!a0.has(b)))){a.flags|=65536,n&=-n,a.lanes|=n;var E=LBe(a,l,n);RSe(a,E);break e}}a=a.return}while(a!==null)}tje(r)}catch(w){n=w,il===r&&r!==null&&(il=r=r.return);continue}break}while(!0)}function JBe(){var e=o8.current;return o8.current=i8,e===null?i8:e}function qce(){(Cl===0||Cl===3||Cl===2)&&(Cl=4),ql===null||!(X1&268435455)&&!(l9&268435455)||wb(ql,gc)}function l8(e,n){var r=uo;uo|=2;var i=JBe();(ql!==e||gc!==n)&&(Bv=null,x1(e,n));do try{tRt();break}catch(o){ZBe(e,o)}while(!0);if(Nce(),uo=r,o8.current=i,il!==null)throw Error(Dn(261));return ql=null,gc=0,Cl}function tRt(){for(;il!==null;)eje(il)}function nRt(){for(;il!==null&&!OTt();)eje(il)}function eje(e){var n=rje(e.alternate,e,qd);e.memoizedProps=e.pendingProps,n===null?tje(e):il=n,zce.current=null}function tje(e){var n=e;do{var r=n.alternate;if(e=n.return,n.flags&32768){if(r=KOt(r,n),r!==null){r.flags&=32767,il=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Cl=6,il=null;return}}else if(r=qOt(r,n,qd),r!==null){il=r;return}if(n=n.sibling,n!==null){il=n;return}il=n=e}while(n!==null);Cl===0&&(Cl=5)}function ME(e,n,r){var i=Bo,o=_p.transition;try{_p.transition=null,Bo=1,rRt(e,n,r,i)}finally{_p.transition=o,Bo=i}return null}function rRt(e,n,r,i){do UT();while($b!==null);if(uo&6)throw Error(Dn(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Dn(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if($Tt(e,a),e===ql&&(il=ql=null,gc=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||D3||(D3=!0,ije(zF,function(){return UT(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=_p.transition,_p.transition=null;var s=Bo;Bo=1;var l=uo;uo|=4,zce.current=null,QOt(e,r),KBe(r,e),COt(Zne),GF=!!Qne,Zne=Qne=null,e.current=r,ZOt(r),RTt(),uo=l,Bo=s,_p.transition=a}else e.current=r;if(D3&&(D3=!1,$b=e,s8=o),a=e.pendingLanes,a===0&&(a0=null),MTt(r.stateNode),pd(e,Bs()),n!==null)for(i=e.onRecoverableError,r=0;r<n.length;r++)o=n[r],i(o.value,{componentStack:o.stack,digest:o.digest});if(a8)throw a8=!1,e=yre,yre=null,e;return s8&1&&e.tag!==0&&UT(),a=e.pendingLanes,a&1?e===_re?W2++:(W2=0,_re=e):W2=0,Z0(),null}function UT(){if($b!==null){var e=k8e(s8),n=_p.transition,r=Bo;try{if(_p.transition=null,Bo=16>e?16:e,$b===null)var i=!1;else{if(e=$b,$b=null,s8=0,uo&6)throw Error(Dn(331));var o=uo;for(uo|=4,cr=e.current;cr!==null;){var a=cr,s=a.child;if(cr.flags&16){var l=a.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(cr=u;cr!==null;){var d=cr;switch(d.tag){case 0:case 11:case 15:V2(8,d,a)}var f=d.child;if(f!==null)f.return=d,cr=f;else for(;cr!==null;){d=cr;var p=d.sibling,h=d.return;if(WBe(d),d===u){cr=null;break}if(p!==null){p.return=h,cr=p;break}cr=h}}}var g=a.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==null)}}cr=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,cr=s;else e:for(;cr!==null;){if(a=cr,a.flags&2048)switch(a.tag){case 0:case 11:case 15:V2(9,a,a.return)}var _=a.sibling;if(_!==null){_.return=a.return,cr=_;break e}cr=a.return}}var S=e.current;for(cr=S;cr!==null;){s=cr;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,cr=b;else e:for(s=S;cr!==null;){if(l=cr,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:s9(9,l)}}catch(w){vs(l,l.return,w)}if(l===s){cr=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,cr=E;break e}cr=l.return}}if(uo=o,Z0(),hm&&typeof hm.onPostCommitFiberRoot=="function")try{hm.onPostCommitFiberRoot(J7,e)}catch{}i=!0}return i}finally{Bo=r,_p.transition=n}}return!1}function KSe(e,n,r){n=xO(r,n),n=kBe(e,n,1),e=o0(e,n,1),n=vu(),e!==null&&(ik(e,1,n),pd(e,n))}function vs(e,n,r){if(e.tag===3)KSe(e,e,r);else for(;n!==null;){if(n.tag===3){KSe(n,e,r);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(a0===null||!a0.has(i))){e=xO(r,e),e=LBe(n,e,1),n=o0(n,e,1),e=vu(),n!==null&&(ik(n,1,e),pd(n,e));break}}n=n.return}}function iRt(e,n,r){var i=e.pingCache;i!==null&&i.delete(n),n=vu(),e.pingedLanes|=e.suspendedLanes&r,ql===e&&(gc&r)===r&&(Cl===4||Cl===3&&(gc&130023424)===gc&&500>Bs()-Gce?x1(e,0):Vce|=r),pd(e,n)}function nje(e,n){n===0&&(e.mode&1?(n=w3,w3<<=1,!(w3&130023424)&&(w3=4194304)):n=1);var r=vu();e=Oy(e,n),e!==null&&(ik(e,n,r),pd(e,r))}function oRt(e){var n=e.memoizedState,r=0;n!==null&&(r=n.retryLane),nje(e,r)}function aRt(e,n){var r=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(Dn(314))}i!==null&&i.delete(n),nje(e,r)}var rje;rje=function(e,n,r){if(e!==null)if(e.memoizedProps!==n.pendingProps||dd.current)od=!0;else{if(!(e.lanes&r)&&!(n.flags&128))return od=!1,YOt(e,n,r);od=!!(e.flags&131072)}else od=!1,Ha&&n.flags&1048576&&sBe(n,ZF,n.index);switch(n.lanes=0,n.tag){case 2:var i=n.type;Q5(e,n),e=n.pendingProps;var o=SO(n,Vc.current);jT(n,r),o=Fce(null,n,i,e,o,r);var a=Bce();return n.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,fd(i)?(a=!0,XF(n)):a=!1,n.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ace(n),o.updater=a9,n.stateNode=o,o._reactInternals=n,sre(n,i,e,r),n=ure(null,n,i,!0,a,r)):(n.tag=0,Ha&&a&&Tce(n),su(null,n,o,r),n=n.child),n;case 16:i=n.elementType;e:{switch(Q5(e,n),e=n.pendingProps,o=i._init,i=o(i._payload),n.type=i,o=n.tag=lRt(i),e=yh(i,e),o){case 0:n=cre(null,n,i,e,r);break e;case 1:n=BSe(null,n,i,e,r);break e;case 11:n=$Se(null,n,i,e,r);break e;case 14:n=FSe(null,n,i,yh(i.type,e),r);break e}throw Error(Dn(306,i,""))}return n;case 0:return i=n.type,o=n.pendingProps,o=n.elementType===i?o:yh(i,o),cre(e,n,i,o,r);case 1:return i=n.type,o=n.pendingProps,o=n.elementType===i?o:yh(i,o),BSe(e,n,i,o,r);case 3:e:{if(jBe(n),e===null)throw Error(Dn(387));i=n.pendingProps,a=n.memoizedState,o=a.element,pBe(e,n),t8(n,i,null,r);var s=n.memoizedState;if(i=s.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},n.updateQueue.baseState=a,n.memoizedState=a,n.flags&256){o=xO(Error(Dn(423)),n),n=jSe(e,n,i,r,o);break e}else if(i!==o){o=xO(Error(Dn(424)),n),n=jSe(e,n,i,r,o);break e}else for(af=i0(n.stateNode.containerInfo.firstChild),pf=n,Ha=!0,Th=null,r=dBe(n,null,i,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(EO(),i===o){n=Ry(e,n,r);break e}su(e,n,i,r)}n=n.child}return n;case 5:return hBe(n),e===null&&ire(n),i=n.type,o=n.pendingProps,a=e!==null?e.memoizedProps:null,s=o.children,Jne(i,o)?s=null:a!==null&&Jne(i,a)&&(n.flags|=32),BBe(e,n),su(e,n,s,r),n.child;case 6:return e===null&&ire(n),null;case 13:return UBe(e,n,r);case 4:return Dce(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=CO(n,null,i,r):su(e,n,i,r),n.child;case 11:return i=n.type,o=n.pendingProps,o=n.elementType===i?o:yh(i,o),$Se(e,n,i,o,r);case 7:return su(e,n,n.pendingProps,r),n.child;case 8:return su(e,n,n.pendingProps.children,r),n.child;case 12:return su(e,n,n.pendingProps.children,r),n.child;case 10:e:{if(i=n.type._context,o=n.pendingProps,a=n.memoizedProps,s=o.value,ca(JF,i._currentValue),i._currentValue=s,a!==null)if(Jh(a.value,s)){if(a.children===o.children&&!dd.current){n=Ry(e,n,r);break e}}else for(a=n.child,a!==null&&(a.return=n);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===i){if(a.tag===1){c=uy(-1,r&-r),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,c=a.alternate,c!==null&&(c.lanes|=r),ore(a.return,r,n),l.lanes|=r;break}c=c.next}}else if(a.tag===10)s=a.type===n.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(Dn(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),ore(s,r,n),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===n){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}su(e,n,o.children,r),n=n.child}return n;case 9:return o=n.type,i=n.pendingProps.children,jT(n,r),o=Cp(o),i=i(o),n.flags|=1,su(e,n,i,r),n.child;case 14:return i=n.type,o=yh(i,n.pendingProps),o=yh(i.type,o),FSe(e,n,i,o,r);case 15:return $Be(e,n,n.type,n.pendingProps,r);case 17:return i=n.type,o=n.pendingProps,o=n.elementType===i?o:yh(i,o),Q5(e,n),n.tag=1,fd(i)?(e=!0,XF(n)):e=!1,jT(n,r),DBe(n,i,o),sre(n,i,o,r),ure(null,n,i,!0,e,r);case 19:return HBe(e,n,r);case 22:return FBe(e,n,r)}throw Error(Dn(156,n.tag))};function ije(e,n){return M8e(e,n)}function sRt(e,n,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hp(e,n,r,i){return new sRt(e,n,r,i)}function Kce(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lRt(e){if(typeof e=="function")return Kce(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hce)return 11;if(e===gce)return 14}return 2}function l0(e,n){var r=e.alternate;return r===null?(r=hp(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function e6(e,n,r,i,o,a){var s=2;if(i=e,typeof e=="function")Kce(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case oT:return T1(r.children,o,a,n);case pce:s=8,o|=8;break;case Mne:return e=hp(12,r,n,o|2),e.elementType=Mne,e.lanes=a,e;case Pne:return e=hp(13,r,n,o),e.elementType=Pne,e.lanes=a,e;case Ane:return e=hp(19,r,n,o),e.elementType=Ane,e.lanes=a,e;case h8e:return c9(r,o,a,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case f8e:s=10;break e;case p8e:s=9;break e;case hce:s=11;break e;case gce:s=14;break e;case hb:s=16,i=null;break e}throw Error(Dn(130,e==null?e:typeof e,""))}return n=hp(s,r,n,o),n.elementType=e,n.type=i,n.lanes=a,n}function T1(e,n,r,i){return e=hp(7,e,i,n),e.lanes=r,e}function c9(e,n,r,i){return e=hp(22,e,i,n),e.elementType=h8e,e.lanes=r,e.stateNode={isHidden:!1},e}function EY(e,n,r){return e=hp(6,e,null,n),e.lanes=r,e}function CY(e,n,r){return n=hp(4,e.children!==null?e.children:[],e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function cRt(e,n,r,i,o){this.tag=n,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=rY(0),this.expirationTimes=rY(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rY(0),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Xce(e,n,r,i,o,a,s,l,c){return e=new cRt(e,n,r,l,c),n===1?(n=1,a===!0&&(n|=8)):n=0,a=hp(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ace(a),e}function uRt(e,n,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:iT,key:i==null?null:""+i,children:e,containerInfo:n,implementation:r}}function oje(e){if(!e)return E0;e=e._reactInternals;e:{if(ZC(e)!==e||e.tag!==1)throw Error(Dn(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(fd(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(Dn(171))}if(e.tag===1){var r=e.type;if(fd(r))return oBe(e,r,n)}return n}function aje(e,n,r,i,o,a,s,l,c){return e=Xce(r,i,!0,e,o,a,s,l,c),e.context=oje(null),r=e.current,i=vu(),o=s0(r),a=uy(i,o),a.callback=n??null,o0(r,a,o),e.current.lanes=o,ik(e,o,i),pd(e,i),e}function u9(e,n,r,i){var o=n.current,a=vu(),s=s0(o);return r=oje(r),n.context===null?n.context=r:n.pendingContext=r,n=uy(a,s),n.payload={element:e},i=i===void 0?null:i,i!==null&&(n.callback=i),e=o0(o,n,s),e!==null&&(jh(e,o,s,a),q5(e,o,s)),s}function c8(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 XSe(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<n?r:n}}function Qce(e,n){XSe(e,n),(e=e.alternate)&&XSe(e,n)}function dRt(){return null}var sje=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zce(e){this._internalRoot=e}d9.prototype.render=Zce.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(Dn(409));u9(e,n,null,null)};d9.prototype.unmount=Zce.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Q1(function(){u9(null,e,null,null)}),n[Ty]=null}};function d9(e){this._internalRoot=e}d9.prototype.unstable_scheduleHydration=function(e){if(e){var n=F8e();e={blockedOn:null,target:e,priority:n};for(var r=0;r<Cb.length&&n!==0&&n<Cb[r].priority;r++);Cb.splice(r,0,e),r===0&&j8e(e)}};function Jce(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f9(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function QSe(){}function fRt(e,n,r,i,o){if(o){if(typeof i=="function"){var a=i;i=function(){var u=c8(s);a.call(u)}}var s=aje(n,i,e,0,null,!1,!1,"",QSe);return e._reactRootContainer=s,e[Ty]=s.current,QP(e.nodeType===8?e.parentNode:e),Q1(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof i=="function"){var l=i;i=function(){var u=c8(c);l.call(u)}}var c=Xce(e,0,!1,null,null,!1,!1,"",QSe);return e._reactRootContainer=c,e[Ty]=c.current,QP(e.nodeType===8?e.parentNode:e),Q1(function(){u9(n,c,r,i)}),c}function p9(e,n,r,i,o){var a=r._reactRootContainer;if(a){var s=a;if(typeof o=="function"){var l=o;o=function(){var c=c8(s);l.call(c)}}u9(n,s,e,o)}else s=fRt(r,n,e,o,i);return c8(s)}L8e=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var r=r2(n.pendingLanes);r!==0&&(yce(n,r|1),pd(n,Bs()),!(uo&6)&&(TO=Bs()+500,Z0()))}break;case 13:Q1(function(){var i=Oy(e,1);if(i!==null){var o=vu();jh(i,e,1,o)}}),Qce(e,1)}};_ce=function(e){if(e.tag===13){var n=Oy(e,134217728);if(n!==null){var r=vu();jh(n,e,134217728,r)}Qce(e,134217728)}};$8e=function(e){if(e.tag===13){var n=s0(e),r=Oy(e,n);if(r!==null){var i=vu();jh(r,e,n,i)}Qce(e,n)}};F8e=function(){return Bo};B8e=function(e,n){var r=Bo;try{return Bo=e,n()}finally{Bo=r}};zne=function(e,n,r){switch(n){case"input":if(Lne(e,r),n=r.name,r.type==="radio"&&n!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<r.length;n++){var i=r[n];if(i!==e&&i.form===e.form){var o=r9(i);if(!o)throw Error(Dn(90));m8e(i),Lne(i,o)}}}break;case"textarea":y8e(e,r);break;case"select":n=r.value,n!=null&<(e,!!r.multiple,n,!1)}};x8e=Wce;T8e=Q1;var pRt={usingClientEntryPoint:!1,Events:[ak,cT,r9,C8e,w8e,Wce]},nM={findFiberByHostInstance:JE,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hRt={bundleType:nM.bundleType,version:nM.version,rendererPackageName:nM.rendererPackageName,rendererConfig:nM.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qy.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=I8e(e),e===null?null:e.stateNode},findFiberByHostInstance:nM.findFiberByHostInstance||dRt,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 k3=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!k3.isDisabled&&k3.supportsFiber)try{J7=k3.inject(hRt),hm=k3}catch{}}Mf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pRt;Mf.createPortal=function(e,n){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jce(n))throw Error(Dn(200));return uRt(e,n,null,r)};Mf.createRoot=function(e,n){if(!Jce(e))throw Error(Dn(299));var r=!1,i="",o=sje;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),n=Xce(e,1,!1,null,null,r,!1,i,o),e[Ty]=n.current,QP(e.nodeType===8?e.parentNode:e),new Zce(n)};Mf.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(Dn(188)):(e=Object.keys(e).join(","),Error(Dn(268,e)));return e=I8e(n),e=e===null?null:e.stateNode,e};Mf.flushSync=function(e){return Q1(e)};Mf.hydrate=function(e,n,r){if(!f9(n))throw Error(Dn(200));return p9(null,e,n,!0,r)};Mf.hydrateRoot=function(e,n,r){if(!Jce(e))throw Error(Dn(405));var i=r!=null&&r.hydratedSources||null,o=!1,a="",s=sje;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),n=aje(n,null,e,1,r??null,o,!1,a,s),e[Ty]=n.current,QP(e),i)for(e=0;e<i.length;e++)r=i[e],o=r._getVersion,o=o(r._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[r,o]:n.mutableSourceEagerHydrationData.push(r,o);return new d9(n)};Mf.render=function(e,n,r){if(!f9(n))throw Error(Dn(200));return p9(null,e,n,!1,r)};Mf.unmountComponentAtNode=function(e){if(!f9(e))throw Error(Dn(40));return e._reactRootContainer?(Q1(function(){p9(null,null,e,!1,function(){e._reactRootContainer=null,e[Ty]=null})}),!0):!1};Mf.unstable_batchedUpdates=Wce;Mf.unstable_renderSubtreeIntoContainer=function(e,n,r,i){if(!f9(r))throw Error(Dn(200));if(e==null||e._reactInternals===void 0)throw Error(Dn(38));return p9(e,n,r,!1,i)};Mf.version="18.3.1-next-f1338f8080-20240426";function lje(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lje)}catch(e){console.error(e)}}lje(),l8e.exports=Mf;var Us=l8e.exports;const Gl=Or(Us),cje=a7({__proto__:null,default:Gl},[Us]);function aA(e){return e instanceof HTMLElement||e instanceof SVGElement}function uje(e){return e&&cn(e)==="object"&&aA(e.nativeElement)?e.nativeElement:aA(e)?e:null}function Y2(e){var n=uje(e);if(n)return n;if(e instanceof V.Component){var r;return(r=Gl.findDOMNode)===null||r===void 0?void 0:r.call(Gl,e)}return null}var dje={exports:{}},Uo={};/**
|
||
* @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 eue=Symbol.for("react.element"),tue=Symbol.for("react.portal"),h9=Symbol.for("react.fragment"),g9=Symbol.for("react.strict_mode"),m9=Symbol.for("react.profiler"),v9=Symbol.for("react.provider"),y9=Symbol.for("react.context"),gRt=Symbol.for("react.server_context"),_9=Symbol.for("react.forward_ref"),b9=Symbol.for("react.suspense"),S9=Symbol.for("react.suspense_list"),E9=Symbol.for("react.memo"),C9=Symbol.for("react.lazy"),mRt=Symbol.for("react.offscreen"),fje;fje=Symbol.for("react.module.reference");function Bp(e){if(typeof e=="object"&&e!==null){var n=e.$$typeof;switch(n){case eue:switch(e=e.type,e){case h9:case m9:case g9:case b9:case S9:return e;default:switch(e=e&&e.$$typeof,e){case gRt:case y9:case _9:case C9:case E9:case v9:return e;default:return n}}case tue:return n}}}Uo.ContextConsumer=y9;Uo.ContextProvider=v9;Uo.Element=eue;Uo.ForwardRef=_9;Uo.Fragment=h9;Uo.Lazy=C9;Uo.Memo=E9;Uo.Portal=tue;Uo.Profiler=m9;Uo.StrictMode=g9;Uo.Suspense=b9;Uo.SuspenseList=S9;Uo.isAsyncMode=function(){return!1};Uo.isConcurrentMode=function(){return!1};Uo.isContextConsumer=function(e){return Bp(e)===y9};Uo.isContextProvider=function(e){return Bp(e)===v9};Uo.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===eue};Uo.isForwardRef=function(e){return Bp(e)===_9};Uo.isFragment=function(e){return Bp(e)===h9};Uo.isLazy=function(e){return Bp(e)===C9};Uo.isMemo=function(e){return Bp(e)===E9};Uo.isPortal=function(e){return Bp(e)===tue};Uo.isProfiler=function(e){return Bp(e)===m9};Uo.isStrictMode=function(e){return Bp(e)===g9};Uo.isSuspense=function(e){return Bp(e)===b9};Uo.isSuspenseList=function(e){return Bp(e)===S9};Uo.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===h9||e===m9||e===g9||e===b9||e===S9||e===mRt||typeof e=="object"&&e!==null&&(e.$$typeof===C9||e.$$typeof===E9||e.$$typeof===v9||e.$$typeof===y9||e.$$typeof===_9||e.$$typeof===fje||e.getModuleId!==void 0)};Uo.typeOf=Bp;dje.exports=Uo;var wY=dje.exports;function Z1(e,n,r){var i=m.useRef({});return(!("value"in i.current)||r(i.current.condition,n))&&(i.current.value=e(),i.current.condition=n),i.current.value}var nue=function(n,r){typeof n=="function"?n(r):cn(n)==="object"&&n&&"current"in n&&(n.current=r)},Il=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.filter(Boolean);return o.length<=1?o[0]:function(a){r.forEach(function(s){nue(s,a)})}},vg=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Z1(function(){return Il.apply(void 0,r)},r,function(o,a){return o.length!==a.length||o.every(function(s,l){return s!==a[l]})})},Ky=function(n){var r,i;if(!n)return!1;if(rue(n)&&n.props.propertyIsEnumerable("ref"))return!0;var o=wY.isMemo(n)?n.type.type:n.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==wY.ForwardRef||typeof n=="function"&&!((i=n.prototype)!==null&&i!==void 0&&i.render)&&n.$$typeof!==wY.ForwardRef)};function rue(e){return m.isValidElement(e)&&!o8e(e)}var vRt=function(n){return rue(n)&&Ky(n)},J0=function(n){if(n&&rue(n)){var r=n;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},Ere=m.createContext(null);function yRt(e){var n=e.children,r=e.onBatchResize,i=m.useRef(0),o=m.useRef([]),a=m.useContext(Ere),s=m.useCallback(function(l,c,u){i.current+=1;var d=i.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){d===i.current&&(r==null||r(o.current),o.current=[])}),a==null||a(l,c,u)},[r,a]);return m.createElement(Ere.Provider,{value:s},n)}var pje=function(){if(typeof Map<"u")return Map;function e(n,r){var i=-1;return n.some(function(o,a){return o[0]===r?(i=a,!0):!1}),i}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(r){var i=e(this.__entries__,r),o=this.__entries__[i];return o&&o[1]},n.prototype.set=function(r,i){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=i:this.__entries__.push([r,i])},n.prototype.delete=function(r){var i=this.__entries__,o=e(i,r);~o&&i.splice(o,1)},n.prototype.has=function(r){return!!~e(this.__entries__,r)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(r,i){i===void 0&&(i=null);for(var o=0,a=this.__entries__;o<a.length;o++){var s=a[o];r.call(i,s[1],s[0])}},n}()}(),Cre=typeof window<"u"&&typeof document<"u"&&window.document===document,u8=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(u8):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),bRt=2;function SRt(e,n){var r=!1,i=!1,o=0;function a(){r&&(r=!1,e()),i&&l()}function s(){_Rt(a)}function l(){var c=Date.now();if(r){if(c-o<bRt)return;i=!0}else r=!0,i=!1,setTimeout(s,n);o=c}return l}var ERt=20,CRt=["top","right","bottom","left","width","height","size","weight"],wRt=typeof MutationObserver<"u",xRt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=SRt(this.refresh.bind(this),ERt)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var r=this.observers_,i=r.indexOf(n);~i&&r.splice(i,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return n.forEach(function(r){return r.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!Cre||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),wRt?(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(){!Cre||!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(n){var r=n.propertyName,i=r===void 0?"":r,o=CRt.some(function(a){return!!~i.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),hje=function(e,n){for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r];Object.defineProperty(e,o,{value:n[o],enumerable:!1,writable:!1,configurable:!0})}return e},OO=function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||u8},gje=w9(0,0,0,0);function d8(e){return parseFloat(e)||0}function ZSe(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return n.reduce(function(i,o){var a=e["border-"+o+"-width"];return i+d8(a)},0)}function TRt(e){for(var n=["top","right","bottom","left"],r={},i=0,o=n;i<o.length;i++){var a=o[i],s=e["padding-"+a];r[a]=d8(s)}return r}function ORt(e){var n=e.getBBox();return w9(0,0,n.width,n.height)}function RRt(e){var n=e.clientWidth,r=e.clientHeight;if(!n&&!r)return gje;var i=OO(e).getComputedStyle(e),o=TRt(i),a=o.left+o.right,s=o.top+o.bottom,l=d8(i.width),c=d8(i.height);if(i.boxSizing==="border-box"&&(Math.round(l+a)!==n&&(l-=ZSe(i,"left","right")+a),Math.round(c+s)!==r&&(c-=ZSe(i,"top","bottom")+s)),!NRt(e)){var u=Math.round(l+a)-n,d=Math.round(c+s)-r;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(c-=d)}return w9(o.left,o.top,l,c)}var IRt=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof OO(e).SVGGraphicsElement}:function(e){return e instanceof OO(e).SVGElement&&typeof e.getBBox=="function"}}();function NRt(e){return e===OO(e).document.documentElement}function MRt(e){return Cre?IRt(e)?ORt(e):RRt(e):gje}function PRt(e){var n=e.x,r=e.y,i=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(a.prototype);return hje(s,{x:n,y:r,width:i,height:o,top:r,right:n+i,bottom:o+r,left:n}),s}function w9(e,n,r,i){return{x:e,y:n,width:r,height:i}}var ARt=function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=w9(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=MRt(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},e}(),DRt=function(){function e(n,r){var i=PRt(r);hje(this,{target:n,contentRect:i})}return e}(),kRt=function(){function e(n,r,i){if(this.activeObservations_=[],this.observations_=new pje,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=r,this.callbackCtx_=i}return e.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof OO(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(n)||(r.set(n,new ARt(n)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof OO(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(n)&&(r.delete(n),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&n.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new DRt(i.target,i.broadcastRect())});this.callback_.call(n,r,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),mje=typeof WeakMap<"u"?new WeakMap:new pje,vje=function(){function e(n){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 r=xRt.getInstance(),i=new kRt(n,r,this);mje.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){vje.prototype[e]=function(){var n;return(n=mje.get(this))[e].apply(n,arguments)}});var LRt=function(){return typeof u8.ResizeObserver<"u"?u8.ResizeObserver:vje}(),Fb=new Map;function $Rt(e){e.forEach(function(n){var r,i=n.target;(r=Fb.get(i))===null||r===void 0||r.forEach(function(o){return o(i)})})}var yje=new LRt($Rt);function FRt(e,n){Fb.has(e)||(Fb.set(e,new Set),yje.observe(e)),Fb.get(e).add(n)}function BRt(e,n){Fb.has(e)&&(Fb.get(e).delete(n),Fb.get(e).size||(yje.unobserve(e),Fb.delete(e)))}function Ki(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function JSe(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,s8e(i.key),i)}}function Xi(e,n,r){return n&&JSe(e.prototype,n),r&&JSe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RO(e,n){return RO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},RO(e,n)}function Kc(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&RO(e,n)}function J1(e){return J1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},J1(e)}function x9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x9=function(){return!!e})()}function Tn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _je(e,n){if(n&&(cn(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tn(e)}function Iu(e){var n=x9();return function(){var r,i=J1(e);if(n){var o=J1(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return _je(this,r)}}var jRt=function(e){Kc(r,e);var n=Iu(r);function r(){return Ki(this,r),n.apply(this,arguments)}return Xi(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function URt(e,n){var r=e.children,i=e.disabled,o=m.useRef(null),a=m.useRef(null),s=m.useContext(Ere),l=typeof r=="function",c=l?r(o):r,u=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&m.isValidElement(c)&&Ky(c),f=d?J0(c):null,p=vg(f,o),h=function(){var _;return Y2(o.current)||(o.current&&cn(o.current)==="object"?Y2((_=o.current)===null||_===void 0?void 0:_.nativeElement):null)||Y2(a.current)};m.useImperativeHandle(n,function(){return h()});var g=m.useRef(e);g.current=e;var v=m.useCallback(function(y){var _=g.current,S=_.onResize,b=_.data,E=y.getBoundingClientRect(),w=E.width,C=E.height,x=y.offsetWidth,T=y.offsetHeight,R=Math.floor(w),O=Math.floor(C);if(u.current.width!==R||u.current.height!==O||u.current.offsetWidth!==x||u.current.offsetHeight!==T){var M={width:R,height:O,offsetWidth:x,offsetHeight:T};u.current=M;var P=x===Math.round(w)?w:x,k=T===Math.round(C)?C:T,$=ee(ee({},M),{},{offsetWidth:P,offsetHeight:k});s==null||s($,y,b),S&&Promise.resolve().then(function(){S($,y)})}},[]);return m.useEffect(function(){var y=h();return y&&!i&&FRt(y,v),function(){return BRt(y,v)}},[o.current,i]),m.createElement(jRt,{ref:a},d?m.cloneElement(c,{ref:p}):c)}var HRt=m.forwardRef(URt),zRt="rc-observer-key";function VRt(e,n){var r=e.children,i=typeof r=="function"?[r]:Tl(r);return i.map(function(o,a){var s=(o==null?void 0:o.key)||"".concat(zRt,"-").concat(a);return m.createElement(HRt,ft({},e,{key:s,ref:a===0?n:void 0}),o)})}var Hc=m.forwardRef(VRt);Hc.Collection=yRt;function Wr(e,n){var r=Object.assign({},e);return Array.isArray(n)&&n.forEach(function(i){delete r[i]}),r}function wre(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function GRt(e){if(Array.isArray(e))return wre(e)}function bje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function T9(e,n){if(e){if(typeof e=="string")return wre(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wre(e,n):void 0}}function WRt(){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 GRt(e)||bje(e)||T9(e)||WRt()}var Sje=function(n){return+setTimeout(n,16)},Eje=function(n){return clearTimeout(n)};typeof window<"u"&&"requestAnimationFrame"in window&&(Sje=function(n){return window.requestAnimationFrame(n)},Eje=function(n){return window.cancelAnimationFrame(n)});var eEe=0,iue=new Map;function Cje(e){iue.delete(e)}var Dr=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;eEe+=1;var i=eEe;function o(a){if(a===0)Cje(i),n();else{var s=Sje(function(){o(a-1)});iue.set(i,s)}}return o(r),i};Dr.cancel=function(e){var n=iue.get(e);return Cje(e),Eje(n)};function wje(e){if(Array.isArray(e))return e}function YRt(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(i=a.call(r)).done)&&(l.push(i.value),l.length!==n);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function xje(){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 ke(e,n){return wje(e)||YRt(e,n)||T9(e,n)||xje()}function sA(e){for(var n=0,r,i=0,o=e.length;o>=4;++i,o-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,n=(r&65535)*1540483477+((r>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(e.charCodeAt(i+2)&255)<<16;case 2:n^=(e.charCodeAt(i+1)&255)<<8;case 1:n^=e.charCodeAt(i)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}function rI(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qRt(e,n){if(!e)return!1;if(e.contains)return e.contains(n);for(var r=n;r;){if(r===e)return!0;r=r.parentNode}return!1}var tEe="data-rc-order",nEe="data-rc-priority",KRt="rc-util-key",xre=new Map;function Tje(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.mark;return n?n.startsWith("data-")?n:"data-".concat(n):KRt}function O9(e){if(e.attachTo)return e.attachTo;var n=document.querySelector("head");return n||document.body}function XRt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function oue(e){return Array.from((xre.get(e)||e).children).filter(function(n){return n.tagName==="STYLE"})}function Oje(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!rI())return null;var r=n.csp,i=n.prepend,o=n.priority,a=o===void 0?0:o,s=XRt(i),l=s==="prependQueue",c=document.createElement("style");c.setAttribute(tEe,s),l&&a&&c.setAttribute(nEe,"".concat(a)),r!=null&&r.nonce&&(c.nonce=r==null?void 0:r.nonce),c.innerHTML=e;var u=O9(n),d=u.firstChild;if(i){if(l){var f=(n.styles||oue(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(tEe)))return!1;var h=Number(p.getAttribute(nEe)||0);return a>=h});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function Rje(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=O9(n);return(n.styles||oue(r)).find(function(i){return i.getAttribute(Tje(n))===e})}function aue(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Rje(e,n);if(r){var i=O9(n);i.removeChild(r)}}function QRt(e,n){var r=xre.get(e);if(!r||!qRt(document,r)){var i=Oje("",n),o=i.parentNode;xre.set(e,o),e.removeChild(i)}}function HT(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=O9(r),o=oue(i),a=ee(ee({},r),{},{styles:o});QRt(i,a);var s=Rje(n,a);if(s){var l,c;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&s.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;s.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var d=Oje(e,a);return d.setAttribute(Tje(a),n),d}function ZRt(e,n){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(n.includes(i))continue;r[i]=e[i]}return r}function Xt(e,n){if(e==null)return{};var r,i,o=ZRt(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function JRt(e,n,r){var i=m.useRef({});return(!("value"in i.current)||r(i.current.condition,n))&&(i.current.value=e(),i.current.condition=n),i.current.value}var Tre={},eIt=function(n){};function tIt(e,n){}function nIt(e,n){}function rIt(){Tre={}}function Ije(e,n,r){!n&&!Tre[r]&&(e(!1,r),Tre[r]=!0)}function lk(e,n){Ije(tIt,e,n)}function iIt(e,n){Ije(nIt,e,n)}lk.preMessage=eIt;lk.resetWarned=rIt;lk.noteOnce=iIt;function rEe(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function o(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=i.has(a);if(lk(!c,"Warning: There may be circular references"),c)return!1;if(a===s)return!0;if(r&&l>1)return!1;i.add(a);var u=l+1;if(Array.isArray(a)){if(!Array.isArray(s)||a.length!==s.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],s[d],u))return!1;return!0}if(a&&s&&cn(a)==="object"&&cn(s)==="object"){var f=Object.keys(a);return f.length!==Object.keys(s).length?!1:f.every(function(p){return o(a[p],s[p],u)})}return!1}return o(e,n)}var oIt="%";function Ore(e){return e.join(oIt)}var aIt=function(){function e(n){Ki(this,e),fe(this,"instanceId",void 0),fe(this,"cache",new Map),this.instanceId=n}return Xi(e,[{key:"get",value:function(r){return this.opGet(Ore(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,i){return this.opUpdate(Ore(r),i)}},{key:"opUpdate",value:function(r,i){var o=this.cache.get(r),a=i(o);a===null?this.cache.delete(r):this.cache.set(r,a)}}]),e}(),sIt=["children"],IO="data-token-hash",Uh="data-css-hash",Bb="__cssinjs_instance__";function sue(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var n=document.body.querySelectorAll("style[".concat(Uh,"]"))||[],r=document.head.firstChild;Array.from(n).forEach(function(o){o[Bb]=o[Bb]||e,o[Bb]===e&&document.head.insertBefore(o,r)});var i={};Array.from(document.querySelectorAll("style[".concat(Uh,"]"))).forEach(function(o){var a=o.getAttribute(Uh);if(i[a]){if(o[Bb]===e){var s;(s=o.parentNode)===null||s===void 0||s.removeChild(o)}}else i[a]=!0})}return new aIt(e)}var NO=m.createContext({hashPriority:"low",cache:sue(),defaultCache:!0}),lIt=function(n){var r=n.children,i=Xt(n,sIt),o=m.useContext(NO),a=JRt(function(){var s=ee({},o);Object.keys(i).forEach(function(c){var u=i[c];i[c]!==void 0&&(s[c]=u)});var l=i.cache;return s.cache=s.cache||sue(),s.defaultCache=!l&&o.defaultCache,s},[o,i],function(s,l){return!rEe(s[0],l[0],!0)||!rEe(s[1],l[1],!0)});return m.createElement(NO.Provider,{value:a},r)},Nje=Xi(function e(){Ki(this,e)}),Mje="CALC_UNIT",cIt=new RegExp(Mje,"g");function xY(e){return typeof e=="number"?"".concat(e).concat(Mje):e}var uIt=function(e){Kc(r,e);var n=Iu(r);function r(i,o){var a;Ki(this,r),a=n.call(this),fe(Tn(a),"result",""),fe(Tn(a),"unitlessCssVar",void 0),fe(Tn(a),"lowPriority",void 0);var s=cn(i);return a.unitlessCssVar=o,i instanceof r?a.result="(".concat(i.result,")"):s==="number"?a.result=xY(i):s==="string"&&(a.result=i),a}return Xi(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(xY(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(xY(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,s=o||{},l=s.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return a.result.includes(u)})&&(c=!1),this.result=this.result.replace(cIt,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Nje),dIt=function(e){Kc(r,e);var n=Iu(r);function r(i){var o;return Ki(this,r),o=n.call(this),fe(Tn(o),"result",0),i instanceof r?o.result=i.result:typeof i=="number"&&(o.result=i),o}return Xi(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r}(Nje),fIt=function(n,r){var i=n==="css"?uIt:dIt;return function(o){return new i(o,r)}};function pIt(e,n){if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}var lue=function(){function e(){Ki(this,e),fe(this,"cache",void 0),fe(this,"keys",void 0),fe(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Xi(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var i,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return r.forEach(function(l){if(!s)s=void 0;else{var c;s=(c=s)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(i=s)!==null&&i!==void 0&&i.value&&a&&(s.value[1]=this.cacheCallTimes++),(o=s)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var i;return(i=this.internalGet(r,!0))===null||i===void 0?void 0:i[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,i){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var f=ke(u,2),p=f[1];return o.internalGet(d)[1]<p?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),s=ke(a,1),l=s[0];this.delete(l)}this.keys.push(r)}var c=this.cache;r.forEach(function(u,d){if(d===r.length-1)c.set(u,{value:[i,o.cacheCallTimes++]});else{var f=c.get(u);f?f.map||(f.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(r,i){var o=r.get(i[0]);if(i.length===1){var a;return o.map?r.set(i[0],{map:o.map}):r.delete(i[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var s=this.deleteByPath(o.map,i.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(i[0]),s}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(i){return!pIt(i,r)}),this.deleteByPath(this.cache,r)}}]),e}();fe(lue,"MAX_CACHE_SIZE",20);fe(lue,"MAX_CACHE_OFFSET",5);var iEe=0,cue=function(){function e(n){Ki(this,e),fe(this,"derivatives",void 0),fe(this,"id",void 0),this.derivatives=Array.isArray(n)?n:[n],this.id=iEe,n.length===0&&(n.length>0,void 0),iEe+=1}return Xi(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(i,o){return o(r,i)},void 0)}}]),e}(),TY=new lue;function eC(e){var n=Array.isArray(e)?e:[e];return TY.has(n)||TY.set(n,new cue(n)),TY.get(n)}var hIt=new WeakMap,OY={};function gIt(e,n){for(var r=hIt,i=0;i<n.length;i+=1){var o=n[i];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(OY)||r.set(OY,e()),r.get(OY)}var oEe=new WeakMap;function q2(e){var n=oEe.get(e)||"";return n||(Object.keys(e).forEach(function(r){var i=e[r];n+=r,i instanceof cue?n+=i.id:i&&cn(i)==="object"?n+=q2(i):n+=i}),n=sA(n),oEe.set(e,n)),n}function aEe(e,n){return sA("".concat(n,"_").concat(q2(e)))}var MO="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Pje="_bAmBoO_";function Aje(e,n,r){if(rI()){var i,o;HT(e,MO);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",n==null||n(a),document.body.appendChild(a);var s=r?r(a):(i=getComputedStyle(a).content)===null||i===void 0?void 0:i.includes(Pje);return(o=a.parentNode)===null||o===void 0||o.removeChild(a),aue(MO),s}return!1}var RY=void 0;function mIt(){return RY===void 0&&(RY=Aje(":where(.".concat(MO,') { content: "').concat(Pje,'"!important; }'),function(e){e.className=MO})),RY}var IY=void 0;function vIt(){return IY===void 0&&(IY=Aje(".".concat(MO," { inset-block: 93px !important; }"),function(e){e.className=MO},function(e){return getComputedStyle(e).bottom==="93px"})),IY}var Rre=rI();function Ye(e){return typeof e=="number"?"".concat(e,"px"):e}function lA(e,n,r){var i,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var s=ee(ee({},o),{},(i={},fe(i,IO,n),fe(i,Uh,r),i)),l=Object.keys(s).map(function(c){var u=s[c];return u?"".concat(c,'="').concat(u,'"'):null}).filter(function(c){return c}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var K2=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(n).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()},yIt=function(n,r,i){return Object.keys(n).length?".".concat(r).concat(i!=null&&i.scope?".".concat(i.scope):"","{").concat(Object.entries(n).map(function(o){var a=ke(o,2),s=a[0],l=a[1];return"".concat(s,":").concat(l,";")}).join(""),"}"):""},Dje=function(n,r,i){var o={},a={};return Object.entries(n).forEach(function(s){var l,c,u=ke(s,2),d=u[0],f=u[1];if(i!=null&&(l=i.preserve)!==null&&l!==void 0&&l[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(i!=null&&(c=i.ignore)!==null&&c!==void 0&&c[d])){var p,h=K2(d,i==null?void 0:i.prefix);o[h]=typeof f=="number"&&!(i!=null&&(p=i.unitless)!==null&&p!==void 0&&p[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(h,")")}}),[a,yIt(o,r,{scope:i==null?void 0:i.scope})]},sEe=rI()?m.useLayoutEffect:m.useEffect,_It=function(n,r){var i=m.useRef(!0);sEe(function(){return n(i.current)},r),sEe(function(){return i.current=!1,function(){i.current=!0}},[])},bIt=ee({},VD),lEe=bIt.useInsertionEffect,SIt=function(n,r,i){m.useMemo(n,i),_It(function(){return r(!0)},i)},EIt=lEe?function(e,n,r){return lEe(function(){return e(),n()},r)}:SIt,CIt=ee({},VD),wIt=CIt.useInsertionEffect,xIt=function(n){var r=[],i=!1;function o(a){i||r.push(a)}return m.useEffect(function(){return i=!1,function(){i=!0,r.length&&r.forEach(function(a){return a()})}},n),o},TIt=function(){return function(n){n()}},OIt=typeof wIt<"u"?xIt:TIt;function uue(e,n,r,i,o){var a=m.useContext(NO),s=a.cache,l=[e].concat(Tt(n)),c=Ore(l),u=OIt([c]),d=function(g){s.opUpdate(c,function(v){var y=v||[void 0,void 0],_=ke(y,2),S=_[0],b=S===void 0?0:S,E=_[1],w=E,C=w||r(),x=[b,C];return g?g(x):x})};m.useMemo(function(){d()},[c]);var f=s.opGet(c),p=f[1];return EIt(function(){o==null||o(p)},function(h){return d(function(g){var v=ke(g,2),y=v[0],_=v[1];return h&&y===0&&(o==null||o(p)),[y+1,_]}),function(){s.opUpdate(c,function(g){var v=g||[],y=ke(v,2),_=y[0],S=_===void 0?0:_,b=y[1],E=S-1;return E===0?(u(function(){(h||!s.opGet(c))&&(i==null||i(b,!1))}),null):[S-1,b]})}},[c]),p}var RIt={},IIt="css",jE=new Map;function NIt(e){jE.set(e,(jE.get(e)||0)+1)}function MIt(e,n){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(IO,'="').concat(e,'"]'));r.forEach(function(i){if(i[Bb]===n){var o;(o=i.parentNode)===null||o===void 0||o.removeChild(i)}})}}var PIt=0;function AIt(e,n){jE.set(e,(jE.get(e)||0)-1);var r=Array.from(jE.keys()),i=r.filter(function(o){var a=jE.get(o)||0;return a<=0});r.length-i.length>PIt&&i.forEach(function(o){MIt(o,n),jE.delete(o)})}var due=function(n,r,i,o){var a=i.getDerivativeToken(n),s=ee(ee({},a),r);return o&&(s=o(s)),s},kje="token";function fue(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=m.useContext(NO),o=i.cache.instanceId,a=i.container,s=r.salt,l=s===void 0?"":s,c=r.override,u=c===void 0?RIt:c,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,h=gIt(function(){return Object.assign.apply(Object,[{}].concat(Tt(n)))},n),g=q2(h),v=q2(u),y=p?q2(p):"",_=uue(kje,[l,e.id,g,v,y],function(){var S,b=f?f(h,u,e):due(h,u,e,d),E=ee({},b),w="";if(p){var C=Dje(b,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),x=ke(C,2);b=x[0],w=x[1]}var T=aEe(b,l);b._tokenKey=T,E._tokenKey=aEe(E,l);var R=(S=p==null?void 0:p.key)!==null&&S!==void 0?S:T;b._themeKey=R,NIt(R);var O="".concat(IIt,"-").concat(sA(T));return b._hashId=O,[b,O,E,w,(p==null?void 0:p.key)||""]},function(S){AIt(S[0]._themeKey,o)},function(S){var b=ke(S,4),E=b[0],w=b[3];if(p&&w){var C=HT(w,sA("css-variables-".concat(E._themeKey)),{mark:Uh,prepend:"queue",attachTo:a,priority:-999});C[Bb]=o,C.setAttribute(IO,E._themeKey)}});return _}var DIt=function(n,r,i){var o=ke(n,5),a=o[2],s=o[3],l=o[4],c=i||{},u=c.plain;if(!s)return null;var d=a._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=lA(s,l,d,p,u);return[f,d,h]},Lje={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},$je="comm",Fje="rule",Bje="decl",kIt="@import",LIt="@keyframes",$It="@layer",jje=Math.abs,pue=String.fromCharCode;function Uje(e){return e.trim()}function t6(e,n,r){return e.replace(n,r)}function FIt(e,n,r){return e.indexOf(n,r)}function cA(e,n){return e.charCodeAt(n)|0}function PO(e,n,r){return e.slice(n,r)}function Yg(e){return e.length}function BIt(e){return e.length}function L3(e,n){return n.push(e),e}var R9=1,AO=1,Hje=0,xp=0,nl=0,iI="";function hue(e,n,r,i,o,a,s,l){return{value:e,root:n,parent:r,type:i,props:o,children:a,line:R9,column:AO,length:s,return:"",siblings:l}}function jIt(){return nl}function UIt(){return nl=xp>0?cA(iI,--xp):0,AO--,nl===10&&(AO=1,R9--),nl}function Hh(){return nl=xp<Hje?cA(iI,xp++):0,AO++,nl===10&&(AO=1,R9++),nl}function jb(){return cA(iI,xp)}function n6(){return xp}function I9(e,n){return PO(iI,e,n)}function uA(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 HIt(e){return R9=AO=1,Hje=Yg(iI=e),xp=0,[]}function zIt(e){return iI="",e}function NY(e){return Uje(I9(xp-1,Ire(e===91?e+2:e===40?e+1:e)))}function VIt(e){for(;(nl=jb())&&nl<33;)Hh();return uA(e)>2||uA(nl)>3?"":" "}function GIt(e,n){for(;--n&&Hh()&&!(nl<48||nl>102||nl>57&&nl<65||nl>70&&nl<97););return I9(e,n6()+(n<6&&jb()==32&&Hh()==32))}function Ire(e){for(;Hh();)switch(nl){case e:return xp;case 34:case 39:e!==34&&e!==39&&Ire(nl);break;case 40:e===41&&Ire(e);break;case 92:Hh();break}return xp}function WIt(e,n){for(;Hh()&&e+nl!==57;)if(e+nl===84&&jb()===47)break;return"/*"+I9(n,xp-1)+"*"+pue(e===47?e:Hh())}function YIt(e){for(;!uA(jb());)Hh();return I9(e,xp)}function qIt(e){return zIt(r6("",null,null,null,[""],e=HIt(e),0,[0],e))}function r6(e,n,r,i,o,a,s,l,c){for(var u=0,d=0,f=s,p=0,h=0,g=0,v=1,y=1,_=1,S=0,b="",E=o,w=a,C=i,x=b;y;)switch(g=S,S=Hh()){case 40:if(g!=108&&cA(x,f-1)==58){FIt(x+=t6(NY(S),"&","&\f"),"&\f",jje(u?l[u-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:x+=NY(S);break;case 9:case 10:case 13:case 32:x+=VIt(g);break;case 92:x+=GIt(n6()-1,7);continue;case 47:switch(jb()){case 42:case 47:L3(KIt(WIt(Hh(),n6()),n,r,c),c),(uA(g||1)==5||uA(jb()||1)==5)&&Yg(x)&&PO(x,-1,void 0)!==" "&&(x+=" ");break;default:x+="/"}break;case 123*v:l[u++]=Yg(x)*_;case 125*v:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+d:_==-1&&(x=t6(x,/\f/g,"")),h>0&&(Yg(x)-f||v===0&&g===47)&&L3(h>32?uEe(x+";",i,r,f-1,c):uEe(t6(x," ","")+";",i,r,f-2,c),c);break;case 59:x+=";";default:if(L3(C=cEe(x,n,r,u,d,o,l,b,E=[],w=[],f,a),a),S===123)if(d===0)r6(x,n,C,C,E,a,f,l,w);else switch(p===99&&cA(x,3)===110?100:p){case 100:case 108:case 109:case 115:r6(e,C,C,i&&L3(cEe(e,C,C,0,0,o,l,b,o,E=[],f,w),w),o,w,f,l,i?E:w);break;default:r6(x,C,C,C,[""],w,0,l,w)}}u=d=h=0,v=_=1,b=x="",f=s;break;case 58:f=1+Yg(x),h=g;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&UIt()==125)continue}switch(x+=pue(S),S*v){case 38:_=d>0?1:(x+="\f",-1);break;case 44:l[u++]=(Yg(x)-1)*_,_=1;break;case 64:jb()===45&&(x+=NY(Hh())),p=jb(),d=f=Yg(b=x+=YIt(n6())),S++;break;case 45:g===45&&Yg(x)==2&&(v=0)}}return a}function cEe(e,n,r,i,o,a,s,l,c,u,d,f){for(var p=o-1,h=o===0?a:[""],g=BIt(h),v=0,y=0,_=0;v<i;++v)for(var S=0,b=PO(e,p+1,p=jje(y=s[v])),E=e;S<g;++S)(E=Uje(y>0?h[S]+" "+b:t6(b,/&\f/g,h[S])))&&(c[_++]=E);return hue(e,n,r,o===0?Fje:l,c,u,d,f)}function KIt(e,n,r,i){return hue(e,n,r,$je,pue(jIt()),PO(e,2,-2),0,i)}function uEe(e,n,r,i,o){return hue(e,n,r,Bje,PO(e,0,i),PO(e,i+1,-1),i,o)}function Nre(e,n){for(var r="",i=0;i<e.length;i++)r+=n(e[i],i,e,n)||"";return r}function XIt(e,n,r,i){switch(e.type){case $It:if(e.children.length)break;case kIt:case Bje:return e.return=e.return||e.value;case $je:return"";case LIt:return e.return=e.value+"{"+Nre(e.children,i)+"}";case Fje:if(!Yg(e.value=e.props.join(",")))return""}return Yg(r=Nre(e.children,i))?e.return=e.value+"{"+r+"}":""}function n1(e,n){var r=n.path,i=n.parentSelectors;lk(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(i.length?" Selector: ".concat(i.join(" | ")):""))}function QIt(e){var n,r=((n=e.match(/:not\(([^)]*)\)/))===null||n===void 0?void 0:n[1])||"",i=r.split(/(\[[^[]*])|(?=[.#])/).filter(function(o){return o});return i.length>1}function ZIt(e){return e.parentSelectors.reduce(function(n,r){return n?r.includes("&")?r.replace(/&/g,n):"".concat(n," ").concat(r):r},"")}var JIt=function(n,r,i){var o=ZIt(i),a=o.match(/:not\([^)]*\)/g)||[];a.length>0&&a.some(QIt)&&n1("Concat ':not' selector not support in legacy browsers.",i)},eNt=function(n,r,i){switch(n){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":n1("You seem to be using non-logical property '".concat(n,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),i);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof r=="string"){var o=r.split(" ").map(function(l){return l.trim()});o.length===4&&o[1]!==o[3]&&n1("You seem to be using '".concat(n,"' property with different left ").concat(n," and right ").concat(n,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),i)}return;case"clear":case"textAlign":(r==="left"||r==="right")&&n1("You seem to be using non-logical value '".concat(r,"' of ").concat(n,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),i);return;case"borderRadius":if(typeof r=="string"){var a=r.split("/").map(function(l){return l.trim()}),s=a.reduce(function(l,c){if(l)return l;var u=c.split(" ").map(function(d){return d.trim()});return u.length>=2&&u[0]!==u[1]||u.length===3&&u[1]!==u[2]||u.length===4&&u[2]!==u[3]?!0:l},!1);s&&n1("You seem to be using non-logical value '".concat(r,"' of ").concat(n,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),i)}return}},tNt=function(n,r,i){(typeof r=="string"&&/NaN/g.test(r)||Number.isNaN(r))&&n1("Unexpected 'NaN' in property '".concat(n,": ").concat(r,"'."),i)},nNt=function(n,r,i){i.parentSelectors.some(function(o){var a=o.split(",");return a.some(function(s){return s.split("&").length>2})})&&n1("Should not use more than one `&` in a selector.",i)},X2="data-ant-cssinjs-cache-path",zje="_FILE_STYLE__";function rNt(e){return Object.keys(e).map(function(n){var r=e[n];return"".concat(n,":").concat(r)}).join(";")}var O1,Vje=!0;function iNt(){if(!O1&&(O1={},rI())){var e=document.createElement("div");e.className=X2,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var n=getComputedStyle(e).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(function(o){var a=o.split(":"),s=ke(a,2),l=s[0],c=s[1];O1[l]=c});var r=document.querySelector("style[".concat(X2,"]"));if(r){var i;Vje=!1,(i=r.parentNode)===null||i===void 0||i.removeChild(r)}document.body.removeChild(e)}}function oNt(e){return iNt(),!!O1[e]}function aNt(e){var n=O1[e],r=null;if(n&&rI())if(Vje)r=zje;else{var i=document.querySelector("style[".concat(Uh,'="').concat(O1[e],'"]'));i?r=i.innerHTML:delete O1[e]}return[r,n]}var sNt="_skip_check_",Gje="_multi_value_";function i6(e){var n=Nre(qIt(e),XIt);return n.replace(/\{%%%\:[^;];}/g,";")}function lNt(e){return cn(e)==="object"&&e&&(sNt in e||Gje in e)}function dEe(e,n,r){if(!n)return e;var i=".".concat(n),o=r==="low"?":where(".concat(i,")"):i,a=e.split(",").map(function(s){var l,c=s.trim().split(/\s+/),u=c[0]||"",d=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(Tt(c.slice(1))).join(" ")});return a.join(",")}var cNt=function e(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=i.root,a=i.injectHash,s=i.parentSelectors,l=r.hashId,c=r.layer;r.path;var u=r.hashPriority,d=r.transformers,f=d===void 0?[]:d;r.linters;var p="",h={};function g(_){var S=_.getName(l);if(!h[S]){var b=e(_.style,r,{root:!1,parentSelectors:s}),E=ke(b,1),w=E[0];h[S]="@keyframes ".concat(_.getName(l)).concat(w)}}function v(_){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return _.forEach(function(b){Array.isArray(b)?v(b,S):b&&S.push(b)}),S}var y=v(Array.isArray(n)?n:[n]);return y.forEach(function(_){var S=typeof _=="string"&&!o?{}:_;if(typeof S=="string")p+="".concat(S,`
|
||
`);else if(S._keyframe)g(S);else{var b=f.reduce(function(E,w){var C;return(w==null||(C=w.visit)===null||C===void 0?void 0:C.call(w,E))||E},S);Object.keys(b).forEach(function(E){var w=b[E];if(cn(w)==="object"&&w&&(E!=="animationName"||!w._keyframe)&&!lNt(w)){var C=!1,x=E.trim(),T=!1;(o||a)&&l?x.startsWith("@")?C=!0:x==="&"?x=dEe("",l,u):x=dEe(E,l,u):o&&!l&&(x==="&"||x==="")&&(x="",T=!0);var R=e(w,r,{root:T,injectHash:C,parentSelectors:[].concat(Tt(s),[x])}),O=ke(R,2),M=O[0],P=O[1];h=ee(ee({},h),P),p+="".concat(x).concat(M)}else{let U=function(z,D){var B=z.replace(/[A-Z]/g,function(q){return"-".concat(q.toLowerCase())}),Y=D;!Lje[z]&&typeof Y=="number"&&Y!==0&&(Y="".concat(Y,"px")),z==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(g(D),Y=D.getName(l)),p+="".concat(B,":").concat(Y,";")};var k,$=(k=w==null?void 0:w.value)!==null&&k!==void 0?k:w;cn(w)==="object"&&w!==null&&w!==void 0&&w[Gje]&&Array.isArray($)?$.forEach(function(z){U(E,z)}):U(E,$)}})}}),o?c&&(p="@layer ".concat(c.name," {").concat(p,"}"),c.dependencies&&(h["@layer ".concat(c.name)]=c.dependencies.map(function(_){return"@layer ".concat(_,", ").concat(c.name,";")}).join(`
|
||
`))):p="{".concat(p,"}"),[p,h]};function Wje(e,n){return sA("".concat(e.join("%")).concat(n))}function uNt(){return null}var Yje="style";function dA(e,n){var r=e.token,i=e.path,o=e.hashId,a=e.layer,s=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=m.useContext(NO),f=d.autoClear;d.mock;var p=d.defaultCache,h=d.hashPriority,g=d.container,v=d.ssrInline,y=d.transformers,_=d.linters,S=d.cache,b=d.layer,E=r._tokenKey,w=[E];b&&w.push("layer"),w.push.apply(w,Tt(i));var C=Rre,x=uue(Yje,w,function(){var P=w.join("|");if(oNt(P)){var k=aNt(P),$=ke(k,2),U=$[0],z=$[1];if(U)return[U,E,z,{},l,u]}var D=n(),B=cNt(D,{hashId:o,hashPriority:h,layer:b?a:void 0,path:i.join("-"),transformers:y,linters:_}),Y=ke(B,2),q=Y[0],K=Y[1],H=i6(q),G=Wje(w,H);return[H,E,G,K,l,u]},function(P,k){var $=ke(P,3),U=$[2];(k||f)&&Rre&&aue(U,{mark:Uh})},function(P){var k=ke(P,4),$=k[0];k[1];var U=k[2],z=k[3];if(C&&$!==zje){var D={mark:Uh,prepend:b?!1:"queue",attachTo:g,priority:u},B=typeof s=="function"?s():s;B&&(D.csp={nonce:B});var Y=[],q=[];Object.keys(z).forEach(function(H){H.startsWith("@layer")?Y.push(H):q.push(H)}),Y.forEach(function(H){HT(i6(z[H]),"_layer-".concat(H),ee(ee({},D),{},{prepend:!0}))});var K=HT($,U,D);K[Bb]=S.instanceId,K.setAttribute(IO,E),q.forEach(function(H){HT(i6(z[H]),"_effect-".concat(H),D)})}}),T=ke(x,3),R=T[0],O=T[1],M=T[2];return function(P){var k;if(!v||C||!p)k=m.createElement(uNt,null);else{var $;k=m.createElement("style",ft({},($={},fe($,IO,O),fe($,Uh,M),$),{dangerouslySetInnerHTML:{__html:R}}))}return m.createElement(m.Fragment,null,k,P)}}var dNt=function(n,r,i){var o=ke(n,6),a=o[0],s=o[1],l=o[2],c=o[3],u=o[4],d=o[5],f=i||{},p=f.plain;if(u)return null;var h=a,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return h=lA(a,s,l,g,p),c&&Object.keys(c).forEach(function(v){if(!r[v]){r[v]=!0;var y=i6(c[v]),_=lA(y,s,"_effect-".concat(v),g,p);v.startsWith("@layer")?h=_+h:h+=_}}),[d,l,h]},qje="cssVar",Kje=function(n,r){var i=n.key,o=n.prefix,a=n.unitless,s=n.ignore,l=n.token,c=n.scope,u=c===void 0?"":c,d=m.useContext(NO),f=d.cache.instanceId,p=d.container,h=l._tokenKey,g=[].concat(Tt(n.path),[i,u,h]),v=uue(qje,g,function(){var y=r(),_=Dje(y,i,{prefix:o,unitless:a,ignore:s,scope:u}),S=ke(_,2),b=S[0],E=S[1],w=Wje(g,E);return[b,E,w,i]},function(y){var _=ke(y,3),S=_[2];Rre&&aue(S,{mark:Uh})},function(y){var _=ke(y,3),S=_[1],b=_[2];if(S){var E=HT(S,b,{mark:Uh,prepend:"queue",attachTo:p,priority:-999});E[Bb]=f,E.setAttribute(IO,i)}});return v},fNt=function(n,r,i){var o=ke(n,4),a=o[1],s=o[2],l=o[3],c=i||{},u=c.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=lA(a,l,s,f,u);return[d,s,p]},rM,pNt=(rM={},fe(rM,Yje,dNt),fe(rM,kje,DIt),fe(rM,qje,fNt),rM);function hNt(e){return e!==null}function gNt(e,n){var r=typeof n=="boolean"?{plain:n}:n||{},i=r.plain,o=i===void 0?!1:i,a=r.types,s=a===void 0?["style","token","cssVar"]:a,l=new RegExp("^(".concat((typeof s=="string"?[s]:s).join("|"),")%")),c=Array.from(e.cache.keys()).filter(function(p){return l.test(p)}),u={},d={},f="";return c.map(function(p){var h=p.replace(l,"").replace(/%/g,"|"),g=p.split("%"),v=ke(g,1),y=v[0],_=pNt[y],S=_(e.cache.get(p)[1],u,{plain:o});if(!S)return null;var b=ke(S,3),E=b[0],w=b[1],C=b[2];return p.startsWith("style")&&(d[h]=w),[E,C]}).filter(hNt).sort(function(p,h){var g=ke(p,1),v=g[0],y=ke(h,1),_=y[0];return v-_}).forEach(function(p){var h=ke(p,2),g=h[1];f+=g}),f+=lA(".".concat(X2,'{content:"').concat(rNt(d),'";}'),void 0,void 0,fe({},X2,X2),o),f}var kr=function(){function e(n,r){Ki(this,e),fe(this,"name",void 0),fe(this,"style",void 0),fe(this,"_keyframe",!0),this.name=n,this.style=r}return Xi(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function mNt(e){if(typeof e=="number")return[[e],!1];var n=String(e).trim(),r=n.match(/(.*)(!important)/),i=(r?r[1]:n).trim().split(/\s+/),o=[],a=0;return[i.reduce(function(s,l){if(l.includes("(")||l.includes(")")){var c=l.split("(").length-1,u=l.split(")").length-1;a+=c-u}return a>=0&&o.push(l),a===0&&(s.push(o.join(" ")),o=[]),s},[]),!!r]}function hx(e){return e.notSplit=!0,e}var vNt={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:hx(["borderTop","borderBottom"]),borderBlockStart:hx(["borderTop"]),borderBlockEnd:hx(["borderBottom"]),borderInline:hx(["borderLeft","borderRight"]),borderInlineStart:hx(["borderLeft"]),borderInlineEnd:hx(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function $3(e,n){var r=e;return n&&(r="".concat(r," !important")),{_skip_check_:!0,value:r}}var yNt={visit:function(n){var r={};return Object.keys(n).forEach(function(i){var o=n[i],a=vNt[i];if(a&&(typeof o=="number"||typeof o=="string")){var s=mNt(o),l=ke(s,2),c=l[0],u=l[1];a.length&&a.notSplit?a.forEach(function(d){r[d]=$3(o,u)}):a.length===1?r[a[0]]=$3(c[0],u):a.length===2?a.forEach(function(d,f){var p;r[d]=$3((p=c[f])!==null&&p!==void 0?p:c[0],u)}):a.length===4?a.forEach(function(d,f){var p,h;r[d]=$3((p=(h=c[f])!==null&&h!==void 0?h:c[f-2])!==null&&p!==void 0?p:c[0],u)}):r[i]=o}else r[i]=o}),r}},MY=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function _Nt(e,n){var r=Math.pow(10,n+1),i=Math.floor(e*r);return Math.round(i/10)*10/r}var bNt=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.rootValue,i=r===void 0?16:r,o=n.precision,a=o===void 0?5:o,s=n.mediaQuery,l=s===void 0?!1:s,c=function(f,p){if(!p)return f;var h=parseFloat(p);if(h<=1)return f;var g=_Nt(h/i,a);return"".concat(g,"rem")},u=function(f){var p=ee({},f);return Object.entries(f).forEach(function(h){var g=ke(h,2),v=g[0],y=g[1];if(typeof y=="string"&&y.includes("px")){var _=y.replace(MY,c);p[v]=_}!Lje[v]&&typeof y=="number"&&y!==0&&(p[v]="".concat(y,"px").replace(MY,c));var S=v.trim();if(S.startsWith("@")&&S.includes("px")&&l){var b=v.replace(MY,c);p[b]=p[v],delete p[v]}}),p};return{visit:u}},SNt={supportModernCSS:function(){return mIt()&&vIt()}};const ENt=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:kr,NaNLinter:tNt,StyleProvider:lIt,Theme:cue,_experimental:SNt,createCache:sue,createTheme:eC,extractStyle:gNt,genCalc:fIt,getComputedToken:due,legacyLogicalPropertiesTransformer:yNt,legacyNotSelectorLinter:JIt,logicalPropertiesLinter:eNt,parentSelectorLinter:nNt,px2remTransformer:bNt,token2CSSVar:K2,unit:Ye,useCSSVarRegister:Kje,useCacheToken:fue,useStyleRegister:dA},Symbol.toStringTag,{value:"Module"}));var N9=m.createContext({});function Xje(e){return wje(e)||bje(e)||T9(e)||xje()}function al(e,n){for(var r=e,i=0;i<n.length;i+=1){if(r==null)return;r=r[n[i]]}return r}function Qje(e,n,r,i){if(!n.length)return r;var o=Xje(n),a=o[0],s=o.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=Tt(e):l=ee({},e),i&&r===void 0&&s.length===1?delete l[a][s[0]]:l[a]=Qje(l[a],s,r,i),l}function Fs(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return n.length&&i&&r===void 0&&!al(e,n.slice(0,-1))?e:Qje(e,n,r,i)}function CNt(e){return cn(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function fEe(e){return Array.isArray(e)?[]:{}}var wNt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function mT(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=fEe(n[0]);return n.forEach(function(o){function a(s,l){var c=new Set(l),u=al(o,s),d=Array.isArray(u);if(d||CNt(u)){if(!c.has(u)){c.add(u);var f=al(i,s);d?i=Fs(i,s,[]):(!f||cn(f)!=="object")&&(i=Fs(i,s,fEe(u))),wNt(u).forEach(function(p){a([].concat(Tt(s),[p]),c)})}}else i=Fs(i,s,u)}a([])}),i}function xNt(){}const TNt=m.createContext({}),JC=()=>{const e=()=>{};return e.deprecated=xNt,e},Zje=m.createContext(void 0);var ONt={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"},Jje={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},RNt=ee(ee({},Jje),{},{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 e7e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},f8={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"]},RNt),timePickerLocale:Object.assign({},e7e)},Ld="${label} is not a valid ${type}",Tp={locale:"en",Pagination:ONt,DatePicker:f8,TimePicker:e7e,Calendar:f8,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:Ld,method:Ld,array:Ld,object:Ld,number:Ld,date:Ld,boolean:Ld,integer:Ld,float:Ld,regexp:Ld,email:Ld,url:Ld,hex:Ld},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 o6=Object.assign({},Tp.Modal),a6=[];const pEe=()=>a6.reduce((e,n)=>Object.assign(Object.assign({},e),n),Tp.Modal);function INt(e){if(e){const n=Object.assign({},e);return a6.push(n),o6=pEe(),()=>{a6=a6.filter(r=>r!==n),o6=pEe()}}o6=Object.assign({},Tp.Modal)}function t7e(){return o6}const gue=m.createContext(void 0),Nu=(e,n)=>{const r=m.useContext(gue),i=m.useMemo(()=>{var a;const s=n||Tp[e],l=(a=r==null?void 0:r[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),l||{})},[e,n,r]),o=m.useMemo(()=>{const a=r==null?void 0:r.locale;return r!=null&&r.exist&&!a?Tp.locale:a},[r]);return[i,o]},NNt="internalMark",MNt=e=>{const{locale:n={},children:r,_ANT_MARK__:i}=e;m.useEffect(()=>INt(n==null?void 0:n.Modal),[n]);const o=m.useMemo(()=>Object.assign(Object.assign({},n),{exist:!0}),[n]);return m.createElement(gue.Provider,{value:o},r)},Bl=Math.round;function PY(e,n){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)i[o]=n(i[o]||0,r[o]||"",o);return r[3]?i[3]=r[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const hEe=(e,n,r)=>r===0?e:e/100;function iM(e,n){const r=n||255;return e>r?r:e<0?0:e}class Gr{constructor(n){fe(this,"isValid",!0),fe(this,"r",0),fe(this,"g",0),fe(this,"b",0),fe(this,"a",1),fe(this,"_h",void 0),fe(this,"_s",void 0),fe(this,"_l",void 0),fe(this,"_v",void 0),fe(this,"_max",void 0),fe(this,"_min",void 0),fe(this,"_brightness",void 0);function r(i){return i[0]in n&&i[1]in n&&i[2]in n}if(n)if(typeof n=="string"){let o=function(a){return i.startsWith(a)};const i=n.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(n instanceof Gr)this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this._h=n._h,this._s=n._s,this._l=n._l,this._v=n._v;else if(r("rgb"))this.r=iM(n.r),this.g=iM(n.g),this.b=iM(n.b),this.a=typeof n.a=="number"?iM(n.a,1):1;else if(r("hsl"))this.fromHsl(n);else if(r("hsv"))this.fromHsv(n);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(n))}setR(n){return this._sc("r",n)}setG(n){return this._sc("g",n)}setB(n){return this._sc("b",n)}setA(n){return this._sc("a",n,1)}setHue(n){const r=this.toHsv();return r.h=n,this._c(r)}getLuminance(){function n(a){const s=a/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=n(this.r),i=n(this.g),o=n(this.b);return .2126*r+.7152*i+.0722*o}getHue(){if(typeof this._h>"u"){const n=this.getMax()-this.getMin();n===0?this._h=0:this._h=Bl(60*(this.r===this.getMax()?(this.g-this.b)/n+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/n+2:(this.r-this.g)/n+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const n=this.getMax()-this.getMin();n===0?this._s=0:this._s=n/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(n=10){const r=this.getHue(),i=this.getSaturation();let o=this.getLightness()-n/100;return o<0&&(o=0),this._c({h:r,s:i,l:o,a:this.a})}lighten(n=10){const r=this.getHue(),i=this.getSaturation();let o=this.getLightness()+n/100;return o>1&&(o=1),this._c({h:r,s:i,l:o,a:this.a})}mix(n,r=50){const i=this._c(n),o=r/100,a=l=>(i[l]-this[l])*o+this[l],s={r:Bl(a("r")),g:Bl(a("g")),b:Bl(a("b")),a:Bl(a("a")*100)/100};return this._c(s)}tint(n=10){return this.mix({r:255,g:255,b:255,a:1},n)}shade(n=10){return this.mix({r:0,g:0,b:0,a:1},n)}onBackground(n){const r=this._c(n),i=this.a+r.a*(1-this.a),o=a=>Bl((this[a]*this.a+r[a]*r.a*(1-this.a))/i);return this._c({r:o("r"),g:o("g"),b:o("b"),a:i})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(n){return this.r===n.r&&this.g===n.g&&this.b===n.b&&this.a===n.a}clone(){return this._c(this)}toHexString(){let n="#";const r=(this.r||0).toString(16);n+=r.length===2?r:"0"+r;const i=(this.g||0).toString(16);n+=i.length===2?i:"0"+i;const o=(this.b||0).toString(16);if(n+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Bl(this.a*255).toString(16);n+=a.length===2?a:"0"+a}return n}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const n=this.getHue(),r=Bl(this.getSaturation()*100),i=Bl(this.getLightness()*100);return this.a!==1?`hsla(${n},${r}%,${i}%,${this.a})`:`hsl(${n},${r}%,${i}%)`}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(n,r,i){const o=this.clone();return o[n]=iM(r,i),o}_c(n){return new this.constructor(n)}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(n){const r=n.replace("#","");function i(o,a){return parseInt(r[o]+r[a||o],16)}r.length<6?(this.r=i(0),this.g=i(1),this.b=i(2),this.a=r[3]?i(3)/255:1):(this.r=i(0,1),this.g=i(2,3),this.b=i(4,5),this.a=r[6]?i(6,7)/255:1)}fromHsl({h:n,s:r,l:i,a:o}){if(this._h=n%360,this._s=r,this._l=i,this.a=typeof o=="number"?o:1,r<=0){const p=Bl(i*255);this.r=p,this.g=p,this.b=p}let a=0,s=0,l=0;const c=n/60,u=(1-Math.abs(2*i-1))*r,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(a=u,s=d):c>=1&&c<2?(a=d,s=u):c>=2&&c<3?(s=u,l=d):c>=3&&c<4?(s=d,l=u):c>=4&&c<5?(a=d,l=u):c>=5&&c<6&&(a=u,l=d);const f=i-u/2;this.r=Bl((a+f)*255),this.g=Bl((s+f)*255),this.b=Bl((l+f)*255)}fromHsv({h:n,s:r,v:i,a:o}){this._h=n%360,this._s=r,this._v=i,this.a=typeof o=="number"?o:1;const a=Bl(i*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const s=n/60,l=Math.floor(s),c=s-l,u=Bl(i*(1-r)*255),d=Bl(i*(1-r*c)*255),f=Bl(i*(1-r*(1-c))*255);switch(l){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(n){const r=PY(n,hEe);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(n){const r=PY(n,hEe);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(n){const r=PY(n,(i,o)=>o.includes("%")?Bl(i/100*255):i);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}const PNt=Object.freeze(Object.defineProperty({__proto__:null,FastColor:Gr},Symbol.toStringTag,{value:"Module"}));var F3=2,gEe=.16,ANt=.05,DNt=.05,kNt=.15,n7e=5,r7e=4,LNt=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function mEe(e,n,r){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=r?Math.round(e.h)-F3*n:Math.round(e.h)+F3*n:i=r?Math.round(e.h)+F3*n:Math.round(e.h)-F3*n,i<0?i+=360:i>=360&&(i-=360),i}function vEe(e,n,r){if(e.h===0&&e.s===0)return e.s;var i;return r?i=e.s-gEe*n:n===r7e?i=e.s+gEe:i=e.s+ANt*n,i>1&&(i=1),r&&n===n7e&&i>.1&&(i=.1),i<.06&&(i=.06),Math.round(i*100)/100}function yEe(e,n,r){var i;return r?i=e.v+DNt*n:i=e.v-kNt*n,i=Math.max(0,Math.min(1,i)),Math.round(i*100)/100}function C0(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],i=new Gr(e),o=i.toHsv(),a=n7e;a>0;a-=1){var s=new Gr({h:mEe(o,a,!0),s:vEe(o,a,!0),v:yEe(o,a,!0)});r.push(s)}r.push(i);for(var l=1;l<=r7e;l+=1){var c=new Gr({h:mEe(o,l),s:vEe(o,l),v:yEe(o,l)});r.push(c)}return n.theme==="dark"?LNt.map(function(u){var d=u.index,f=u.amount;return new Gr(n.backgroundColor||"#141414").mix(r[d],f).toHexString()}):r.map(function(u){return u.toHexString()})}var R1={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"},p8=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];p8.primary=p8[5];var h8=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];h8.primary=h8[5];var g8=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];g8.primary=g8[5];var m8=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];m8.primary=m8[5];var v8=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];v8.primary=v8[5];var y8=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];y8.primary=y8[5];var _8=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];_8.primary=_8[5];var b8=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];b8.primary=b8[5];var tC=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];tC.primary=tC[5];var S8=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];S8.primary=S8[5];var E8=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];E8.primary=E8[5];var C8=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];C8.primary=C8[5];var fA=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];fA.primary=fA[5];var $Nt=fA,s6={red:p8,volcano:h8,orange:g8,gold:m8,yellow:v8,lime:y8,green:_8,cyan:b8,blue:tC,geekblue:S8,purple:E8,magenta:C8,grey:fA},w8=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];w8.primary=w8[5];var x8=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];x8.primary=x8[5];var T8=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];T8.primary=T8[5];var O8=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];O8.primary=O8[5];var R8=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];R8.primary=R8[5];var I8=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];I8.primary=I8[5];var N8=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];N8.primary=N8[5];var M8=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];M8.primary=M8[5];var P8=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];P8.primary=P8[5];var A8=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];A8.primary=A8[5];var D8=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];D8.primary=D8[5];var k8=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];k8.primary=k8[5];var L8=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];L8.primary=L8[5];var FNt={red:w8,volcano:x8,orange:T8,gold:O8,yellow:R8,lime:I8,green:N8,cyan:M8,blue:P8,geekblue:A8,purple:D8,magenta:k8,grey:L8};const BNt=Object.freeze(Object.defineProperty({__proto__:null,blue:tC,blueDark:P8,cyan:b8,cyanDark:M8,geekblue:S8,geekblueDark:A8,generate:C0,gold:m8,goldDark:O8,gray:$Nt,green:_8,greenDark:N8,grey:fA,greyDark:L8,lime:y8,limeDark:I8,magenta:C8,magentaDark:k8,orange:g8,orangeDark:T8,presetDarkPalettes:FNt,presetPalettes:s6,presetPrimaryColors:R1,purple:E8,purpleDark:D8,red:p8,redDark:w8,volcano:h8,volcanoDark:x8,yellow:v8,yellowDark:R8},Symbol.toStringTag,{value:"Module"})),mue={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"},DO=Object.assign(Object.assign({},mue),{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 i7e(e,n){let{generateColorPalettes:r,generateNeutralColorPalettes:i}=n;const{colorSuccess:o,colorWarning:a,colorError:s,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=r(c),p=r(o),h=r(a),g=r(s),v=r(l),y=i(u,d),_=e.colorLink||e.colorInfo,S=r(_),b=new Gr(g[1]).mix(new Gr(g[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:b,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new Gr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const jNt=e=>{let n=e,r=e,i=e,o=e;return e<6&&e>=5?n=e+1:e<16&&e>=6?n=e+2:e>=16&&(n=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?i=1:e>=6&&(i=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:i,borderRadiusSM:r,borderRadiusLG:n,borderRadiusOuter:o}};function UNt(e){const{motionUnit:n,motionBase:r,borderRadius:i,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+n).toFixed(1)}s`,motionDurationMid:`${(r+n*2).toFixed(1)}s`,motionDurationSlow:`${(r+n*3).toFixed(1)}s`,lineWidthBold:o+1},jNt(i))}const o7e=e=>{const{controlHeight:n}=e;return{controlHeightSM:n*.75,controlHeightXS:n*.5,controlHeightLG:n*1.25}};function l6(e){return(e+8)/e}function HNt(e){const n=new Array(10).fill(null).map((r,i)=>{const o=i-1,a=e*Math.pow(Math.E,o/5),s=i>1?Math.floor(a):Math.ceil(a);return Math.floor(s/2)*2});return n[1]=e,n.map(r=>({size:r,lineHeight:l6(r)}))}const a7e=e=>{const n=HNt(e),r=n.map(d=>d.size),i=n.map(d=>d.lineHeight),o=r[1],a=r[0],s=r[2],l=i[1],c=i[0],u=i[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:s,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*s),fontHeightSM:Math.round(c*a),lineHeightHeading1:i[6],lineHeightHeading2:i[5],lineHeightHeading3:i[4],lineHeightHeading4:i[3],lineHeightHeading5:i[2]}};function zNt(e){const{sizeUnit:n,sizeStep:r}=e;return{sizeXXL:n*(r+8),sizeXL:n*(r+4),sizeLG:n*(r+2),sizeMD:n*(r+1),sizeMS:n*r,size:n*r,sizeSM:n*(r-1),sizeXS:n*(r-2),sizeXXS:n*(r-3)}}const zf=(e,n)=>new Gr(e).setA(n).toRgbString(),oM=(e,n)=>new Gr(e).darken(n).toHexString(),VNt=e=>{const n=C0(e);return{1:n[0],2:n[1],3:n[2],4:n[3],5:n[4],6:n[5],7:n[6],8:n[4],9:n[5],10:n[6]}},GNt=(e,n)=>{const r=e||"#fff",i=n||"#000";return{colorBgBase:r,colorTextBase:i,colorText:zf(i,.88),colorTextSecondary:zf(i,.65),colorTextTertiary:zf(i,.45),colorTextQuaternary:zf(i,.25),colorFill:zf(i,.15),colorFillSecondary:zf(i,.06),colorFillTertiary:zf(i,.04),colorFillQuaternary:zf(i,.02),colorBgSolid:zf(i,1),colorBgSolidHover:zf(i,.75),colorBgSolidActive:zf(i,.95),colorBgLayout:oM(r,4),colorBgContainer:oM(r,0),colorBgElevated:oM(r,0),colorBgSpotlight:zf(i,.85),colorBgBlur:"transparent",colorBorder:oM(r,15),colorBorderSecondary:oM(r,6)}};function ck(e){R1.pink=R1.magenta,s6.pink=s6.magenta;const n=Object.keys(mue).map(r=>{const i=e[r]===R1[r]?s6[r]:C0(e[r]);return new Array(10).fill(1).reduce((o,a,s)=>(o[`${r}-${s+1}`]=i[s],o[`${r}${s+1}`]=i[s],o),{})}).reduce((r,i)=>(r=Object.assign(Object.assign({},r),i),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),n),i7e(e,{generateColorPalettes:VNt,generateNeutralColorPalettes:GNt})),a7e(e.fontSize)),zNt(e)),o7e(e)),UNt(e))}const s7e=eC(ck),pA={token:DO,override:{override:DO},hashed:!0},vue=V.createContext(pA),hA="ant",M9="anticon",WNt=["outlined","borderless","filled"],YNt=(e,n)=>n||(e?`${hA}-${e}`:hA),Cn=m.createContext({getPrefixCls:YNt,iconPrefixCls:M9});function _f(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Mre(e,n){if(!e)return!1;if(e.contains)return e.contains(n);for(var r=n;r;){if(r===e)return!0;r=r.parentNode}return!1}var _Ee="data-rc-order",bEe="data-rc-priority",qNt="rc-util-key",Pre=new Map;function l7e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.mark;return n?n.startsWith("data-")?n:"data-".concat(n):qNt}function P9(e){if(e.attachTo)return e.attachTo;var n=document.querySelector("head");return n||document.body}function KNt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function yue(e){return Array.from((Pre.get(e)||e).children).filter(function(n){return n.tagName==="STYLE"})}function c7e(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!_f())return null;var r=n.csp,i=n.prepend,o=n.priority,a=o===void 0?0:o,s=KNt(i),l=s==="prependQueue",c=document.createElement("style");c.setAttribute(_Ee,s),l&&a&&c.setAttribute(bEe,"".concat(a)),r!=null&&r.nonce&&(c.nonce=r==null?void 0:r.nonce),c.innerHTML=e;var u=P9(n),d=u.firstChild;if(i){if(l){var f=(n.styles||yue(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(_Ee)))return!1;var h=Number(p.getAttribute(bEe)||0);return a>=h});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function u7e(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=P9(n);return(n.styles||yue(r)).find(function(i){return i.getAttribute(l7e(n))===e})}function Are(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=u7e(e,n);if(r){var i=P9(n);i.removeChild(r)}}function XNt(e,n){var r=Pre.get(e);if(!r||!Mre(document,r)){var i=c7e("",n),o=i.parentNode;Pre.set(e,o),e.removeChild(i)}}function A9(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=P9(r),o=yue(i),a=ee(ee({},r),{},{styles:o});XNt(i,a);var s=u7e(n,a);if(s){var l,c;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&s.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;s.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var d=c7e(e,a);return d.setAttribute(l7e(a),n),d}const QNt=`-ant-${Date.now()}-${Math.random()}`;function ZNt(e,n){const r={},i=(s,l)=>{let c=s.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(s,l)=>{const c=new Gr(s),u=C0(c.toRgbString());r[`${l}-color`]=i(c),r[`${l}-color-disabled`]=u[1],r[`${l}-color-hover`]=u[4],r[`${l}-color-active`]=u[6],r[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),r[`${l}-color-deprecated-bg`]=u[0],r[`${l}-color-deprecated-border`]=u[2]};if(n.primaryColor){o(n.primaryColor,"primary");const s=new Gr(n.primaryColor),l=C0(s.toRgbString());l.forEach((u,d)=>{r[`primary-${d+1}`]=u}),r["primary-color-deprecated-l-35"]=i(s,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=i(s,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=i(s,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=i(s,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=i(s,u=>u.setA(u.a*.12));const c=new Gr(l[0]);r["primary-color-active-deprecated-f-30"]=i(c,u=>u.setA(u.a*.3)),r["primary-color-active-deprecated-d-02"]=i(c,u=>u.darken(2))}return n.successColor&&o(n.successColor,"success"),n.warningColor&&o(n.warningColor,"warning"),n.errorColor&&o(n.errorColor,"error"),n.infoColor&&o(n.infoColor,"info"),`
|
||
:root {
|
||
${Object.keys(r).map(s=>`--${e}-${s}: ${r[s]};`).join(`
|
||
`)}
|
||
}
|
||
`.trim()}function JNt(e,n){const r=ZNt(e,n);_f()&&A9(r,`${QNt}-dynamic-theme`)}const xs=m.createContext(!1),_ue=e=>{let{children:n,disabled:r}=e;const i=m.useContext(xs);return m.createElement(xs.Provider,{value:r??i},n)},nC=m.createContext(void 0),eMt=e=>{let{children:n,size:r}=e;const i=m.useContext(nC);return m.createElement(nC.Provider,{value:r||i},n)};function tMt(){const e=m.useContext(xs),n=m.useContext(nC);return{componentDisabled:e,componentSize:n}}function rC(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function o(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=i.has(a);if(qi(!c,"Warning: There may be circular references"),c)return!1;if(a===s)return!0;if(r&&l>1)return!1;i.add(a);var u=l+1;if(Array.isArray(a)){if(!Array.isArray(s)||a.length!==s.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],s[d],u))return!1;return!0}if(a&&s&&cn(a)==="object"&&cn(s)==="object"){var f=Object.keys(a);return f.length!==Object.keys(s).length?!1:f.every(function(p){return o(a[p],s[p],u)})}return!1}return o(e,n)}var d7e=Xi(function e(){Ki(this,e)}),f7e="CALC_UNIT",nMt=new RegExp(f7e,"g");function AY(e){return typeof e=="number"?"".concat(e).concat(f7e):e}var rMt=function(e){Kc(r,e);var n=Iu(r);function r(i,o){var a;Ki(this,r),a=n.call(this),fe(Tn(a),"result",""),fe(Tn(a),"unitlessCssVar",void 0),fe(Tn(a),"lowPriority",void 0);var s=cn(i);return a.unitlessCssVar=o,i instanceof r?a.result="(".concat(i.result,")"):s==="number"?a.result=AY(i):s==="string"&&(a.result=i),a}return Xi(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(AY(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(AY(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,s=o||{},l=s.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return a.result.includes(u)})&&(c=!1),this.result=this.result.replace(nMt,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(d7e),iMt=function(e){Kc(r,e);var n=Iu(r);function r(i){var o;return Ki(this,r),o=n.call(this),fe(Tn(o),"result",0),i instanceof r?o.result=i.result:typeof i=="number"&&(o.result=i),o}return Xi(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r}(d7e),p7e=function(n,r){var i=n==="css"?rMt:iMt;return function(o){return new i(o,r)}},SEe=function(n,r){return"".concat([r,n.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Sr(e){var n=m.useRef();n.current=e;var r=m.useCallback(function(){for(var i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=n.current)===null||i===void 0?void 0:i.call.apply(i,[n].concat(a))},[]);return r}var EEe=_f()?m.useLayoutEffect:m.useEffect,ti=function(n,r){var i=m.useRef(!0);EEe(function(){return n(i.current)},r),EEe(function(){return i.current=!1,function(){i.current=!0}},[])},I1=function(n,r){ti(function(i){if(!i)return n()},r)};function iC(e){var n=m.useRef(!1),r=m.useState(e),i=ke(r,2),o=i[0],a=i[1];m.useEffect(function(){return n.current=!1,function(){n.current=!0}},[]);function s(l,c){c&&n.current||a(l)}return[o,s]}function DY(e){return e!==void 0}function dr(e,n){var r=n||{},i=r.defaultValue,o=r.value,a=r.onChange,s=r.postState,l=iC(function(){return DY(o)?o:DY(i)?typeof i=="function"?i():i:typeof e=="function"?e():e}),c=ke(l,2),u=c[0],d=c[1],f=o!==void 0?o:u,p=s?s(f):f,h=Sr(a),g=iC([f]),v=ke(g,2),y=v[0],_=v[1];I1(function(){var b=y[0];u!==b&&h(u,b)},[y]),I1(function(){DY(o)||d(o)},[o]);var S=Sr(function(b,E){d(b,E),_([f],E)});return[p,S]}function CEe(e,n,r,i){var o=ee({},n[e]);if(i!=null&&i.deprecatedTokens){var a=i.deprecatedTokens;a.forEach(function(l){var c=ke(l,2),u=c[0],d=c[1];if(o!=null&&o[u]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[u])}})}var s=ee(ee({},r),o);return Object.keys(s).forEach(function(l){s[l]===n[l]&&delete s[l]}),s}var h7e=typeof CSSINJS_STATISTIC<"u",Dre=!0;function wr(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!h7e)return Object.assign.apply(Object,[{}].concat(n));Dre=!1;var i={};return n.forEach(function(o){if(cn(o)==="object"){var a=Object.keys(o);a.forEach(function(s){Object.defineProperty(i,s,{configurable:!0,enumerable:!0,get:function(){return o[s]}})})}}),Dre=!0,i}var kre={};function oMt(){}var g7e=function(n){var r,i=n,o=oMt;return h7e&&typeof Proxy<"u"&&(r=new Set,i=new Proxy(n,{get:function(s,l){if(Dre){var c;(c=r)===null||c===void 0||c.add(l)}return s[l]}}),o=function(s,l){var c;kre[s]={global:Array.from(r),component:ee(ee({},(c=kre[s])===null||c===void 0?void 0:c.component),l)}}),{token:i,keys:r,flush:o}};function wEe(e,n,r){if(typeof r=="function"){var i;return r(wr(n,(i=n[e])!==null&&i!==void 0?i:{}))}return r??{}}function aMt(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return"max(".concat(i.map(function(a){return Ye(a)}).join(","),")")},min:function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return"min(".concat(i.map(function(a){return Ye(a)}).join(","),")")}}}var sMt=1e3*60*10,lMt=function(){function e(){Ki(this,e),fe(this,"map",new Map),fe(this,"objectIDMap",new WeakMap),fe(this,"nextID",0),fe(this,"lastAccessBeat",new Map),fe(this,"accessBeat",0)}return Xi(e,[{key:"set",value:function(r,i){this.clear();var o=this.getCompositeKey(r);this.map.set(o,i),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var i=this.getCompositeKey(r),o=this.map.get(i);return this.lastAccessBeat.set(i,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var i=this,o=r.map(function(a){return a&&cn(a)==="object"?"obj_".concat(i.getObjectID(a)):"".concat(cn(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var i=this.nextID;return this.objectIDMap.set(r,i),this.nextID+=1,i}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var i=Date.now();this.lastAccessBeat.forEach(function(o,a){i-o>sMt&&(r.map.delete(a),r.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),xEe=new lMt;function cMt(e,n){return V.useMemo(function(){var r=xEe.get(n);if(r)return r;var i=e();return xEe.set(n,i),i},n)}var uMt=function(){return{}};function m7e(e){var n=e.useCSP,r=n===void 0?uMt:n,i=e.useToken,o=e.usePrefix,a=e.getResetStyles,s=e.getCommonStyle,l=e.getCompUnitless;function c(p,h,g,v){var y=Array.isArray(p)?p[0]:p;function _(T){return"".concat(String(y)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var S=(v==null?void 0:v.unitless)||{},b=typeof l=="function"?l(p):{},E=ee(ee({},b),{},fe({},_("zIndexPopup"),!0));Object.keys(S).forEach(function(T){E[_(T)]=S[T]});var w=ee(ee({},v),{},{unitless:E,prefixToken:_}),C=d(p,h,g,w),x=u(y,g,w);return function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,O=C(T,R),M=ke(O,2),P=M[1],k=x(R),$=ke(k,2),U=$[0],z=$[1];return[U,P,z]}}function u(p,h,g){var v=g.unitless,y=g.injectStyle,_=y===void 0?!0:y,S=g.prefixToken,b=g.ignore,E=function(x){var T=x.rootCls,R=x.cssVar,O=R===void 0?{}:R,M=i(),P=M.realToken;return Kje({path:[p],prefix:O.prefix,key:O.key,unitless:v,ignore:b,token:P,scope:T},function(){var k=wEe(p,P,h),$=CEe(p,P,k,{deprecatedTokens:g==null?void 0:g.deprecatedTokens});return Object.keys(k).forEach(function(U){$[S(U)]=$[U],delete $[U]}),$}),null},w=function(x){var T=i(),R=T.cssVar;return[function(O){return _&&R?V.createElement(V.Fragment,null,V.createElement(E,{rootCls:x,cssVar:R,component:p}),O):O},R==null?void 0:R.key]};return w}function d(p,h,g){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(p)?p:[p,p],_=ke(y,1),S=_[0],b=y.join("-"),E=e.layer||{name:"antd"};return function(w){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,x=i(),T=x.theme,R=x.realToken,O=x.hashId,M=x.token,P=x.cssVar,k=o(),$=k.rootPrefixCls,U=k.iconPrefixCls,z=r(),D=P?"css":"js",B=cMt(function(){var Q=new Set;return P&&Object.keys(v.unitless||{}).forEach(function(le){Q.add(K2(le,P.prefix)),Q.add(K2(le,SEe(S,P.prefix)))}),p7e(D,Q)},[D,S,P==null?void 0:P.prefix]),Y=aMt(D),q=Y.max,K=Y.min,H={theme:T,token:M,hashId:O,nonce:function(){return z.nonce},clientOnly:v.clientOnly,layer:E,order:v.order||-999};typeof a=="function"&&dA(ee(ee({},H),{},{clientOnly:!1,path:["Shared",$]}),function(){return a(M,{prefix:{rootPrefixCls:$,iconPrefixCls:U},csp:z})});var G=dA(ee(ee({},H),{},{path:[b,w,U]}),function(){if(v.injectStyle===!1)return[];var Q=g7e(M),le=Q.token,Z=Q.flush,j=wEe(S,R,g),F=".".concat(w),te=CEe(S,R,j,{deprecatedTokens:v.deprecatedTokens});P&&j&&cn(j)==="object"&&Object.keys(j).forEach(function(me){j[me]="var(".concat(K2(me,SEe(S,P.prefix)),")")});var oe=wr(le,{componentCls:F,prefixCls:w,iconCls:".".concat(U),antCls:".".concat($),calc:B,max:q,min:K},P?j:te),de=h(oe,{hashId:O,prefixCls:w,rootPrefixCls:$,iconPrefixCls:U});Z(S,te);var pe=typeof s=="function"?s(oe,w,C,v.resetFont):null;return[v.resetStyle===!1?null:pe,de]});return[G,O]}}function f(p,h,g){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=d(p,h,g,ee({resetStyle:!1,order:-998},v)),_=function(b){var E=b.prefixCls,w=b.rootCls,C=w===void 0?E:w;return y(E,C),null};return _}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const dMt=Object.freeze(Object.defineProperty({__proto__:null,genCalc:p7e,genStyleUtils:m7e,mergeToken:wr,statistic:kre,statisticToken:g7e},Symbol.toStringTag,{value:"Module"})),oC=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Iy="5.23.2";function kY(e){return e>=0&&e<=255}function B3(e,n){const{r,g:i,b:o,a}=new Gr(e).toRgb();if(a<1)return e;const{r:s,g:l,b:c}=new Gr(n).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((r-s*(1-u))/u),f=Math.round((i-l*(1-u))/u),p=Math.round((o-c*(1-u))/u);if(kY(d)&&kY(f)&&kY(p))return new Gr({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new Gr({r,g:i,b:o,a:1}).toRgbString()}var fMt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function bue(e){const{override:n}=e,r=fMt(e,["override"]),i=Object.assign({},n);Object.keys(DO).forEach(p=>{delete i[p]});const o=Object.assign(Object.assign({},r),i),a=480,s=576,l=768,c=992,u=1200,d=1600;if(o.motion===!1){const p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:B3(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:B3(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:B3(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:B3(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.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:s-1,screenSM:s,screenSMMin:s,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
||
0 1px 2px -2px ${new Gr("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||
0 3px 6px 0 ${new Gr("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||
0 5px 12px 4px ${new Gr("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)"}),i)}var TEe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const v7e={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},pMt={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},hMt={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},y7e=(e,n,r)=>{const i=r.getDerivativeToken(e),{override:o}=n,a=TEe(n,["override"]);let s=Object.assign(Object.assign({},i),{override:o});return s=bue(s),a&&Object.entries(a).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=TEe(u,["theme"]);let p=f;d&&(p=y7e(Object.assign(Object.assign({},s),f),{override:f},d)),s[c]=p}),s};function Nl(){const{token:e,hashed:n,theme:r,override:i,cssVar:o}=V.useContext(vue),a=`${Iy}-${n||""}`,s=r||s7e,[l,c,u]=fue(s,[DO,e],{salt:a,override:i,getComputedToken:y7e,formatToken:bue,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:v7e,ignore:pMt,preserve:hMt}});return[s,u,n?c:"",l,o]}const bf={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},li=function(e){let n=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:n?"inherit":e.fontFamily}},ew=()=>({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"}}),Im=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),gMt=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"}}}),mMt=(e,n,r,i)=>{const o=`[class^="${n}"], [class*=" ${n}"]`,a=r?`.${r}`:o,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return i!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},l),s),{[o]:s})}},Xy=(e,n)=>({outline:`${Ye(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:n??1,transition:"outline-offset 0s, outline 0s"}),Op=(e,n)=>({"&:focus-visible":Object.assign({},Xy(e,n))}),_7e=e=>({[`.${e}`]:Object.assign(Object.assign({},ew()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Yr,genComponentStyleHook:b7e,genSubStyleComponent:Sue}=m7e({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=m.useContext(Cn);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,n,r,i,o]=Nl();return{theme:e,realToken:n,hashId:r,token:i,cssVar:o}},useCSP:()=>{const{csp:e}=m.useContext(Cn);return e??{}},getResetStyles:(e,n)=>{var r;return[{"&":gMt(e)},_7e((r=n==null?void 0:n.prefix.iconPrefixCls)!==null&&r!==void 0?r:M9)]},getCommonStyle:mMt,getCompUnitless:()=>v7e});function Eue(e,n){return oC.reduce((r,i)=>{const o=e[`${i}1`],a=e[`${i}3`],s=e[`${i}6`],l=e[`${i}7`];return Object.assign(Object.assign({},r),n(i,{lightColor:o,lightBorderColor:a,darkColor:s,textColor:l}))},{})}const vMt=(e,n)=>{const[r,i]=Nl();return dA({theme:r,token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>n==null?void 0:n.nonce,layer:{name:"antd"}},()=>[_7e(e)])},yMt=Object.assign({},VD),{useId:OEe}=yMt,_Mt=()=>"",bMt=typeof OEe>"u"?_Mt:OEe;function SMt(e,n,r){var i;JC();const o=e||{},a=o.inherit===!1||!n?Object.assign(Object.assign({},pA),{hashed:(i=n==null?void 0:n.hashed)!==null&&i!==void 0?i:pA.hashed,cssVar:n==null?void 0:n.cssVar}):n,s=bMt();return Z1(()=>{var l,c;if(!e)return n;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{u[p]=Object.assign(Object.assign({},u[p]),e.components[p])});const d=`css-var-${s.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(l,c)=>l.some((u,d)=>{const f=c[d];return!rC(u,f,!0)}))}var EMt=["children"],S7e=m.createContext({});function E7e(e){var n=e.children,r=Xt(e,EMt);return m.createElement(S7e.Provider,{value:r},n)}var CMt=function(e){Kc(r,e);var n=Iu(r);function r(){return Ki(this,r),n.apply(this,arguments)}return Xi(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function wMt(e){var n=m.useReducer(function(l){return l+1},0),r=ke(n,2),i=r[1],o=m.useRef(e),a=Sr(function(){return o.current}),s=Sr(function(l){o.current=typeof l=="function"?l(o.current):l,i()});return[a,s]}var sb="none",j3="appear",U3="enter",H3="leave",REe="none",Ch="prepare",vT="start",yT="active",Cue="end",C7e="prepared";function IEe(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(n),r["Moz".concat(e)]="moz".concat(n),r["ms".concat(e)]="MS".concat(n),r["O".concat(e)]="o".concat(n.toLowerCase()),r}function xMt(e,n){var r={animationend:IEe("Animation","AnimationEnd"),transitionend:IEe("Transition","TransitionEnd")};return e&&("AnimationEvent"in n||delete r.animationend.animation,"TransitionEvent"in n||delete r.transitionend.transition),r}var TMt=xMt(_f(),typeof window<"u"?window:{}),w7e={};if(_f()){var OMt=document.createElement("div");w7e=OMt.style}var z3={};function x7e(e){if(z3[e])return z3[e];var n=TMt[e];if(n)for(var r=Object.keys(n),i=r.length,o=0;o<i;o+=1){var a=r[o];if(Object.prototype.hasOwnProperty.call(n,a)&&a in w7e)return z3[e]=n[a],z3[e]}return""}var T7e=x7e("animationend"),O7e=x7e("transitionend"),R7e=!!(T7e&&O7e),NEe=T7e||"animationend",MEe=O7e||"transitionend";function PEe(e,n){if(!e)return null;if(cn(e)==="object"){var r=n.replace(/-\w/g,function(i){return i[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(n)}const RMt=function(e){var n=m.useRef();function r(o){o&&(o.removeEventListener(MEe,e),o.removeEventListener(NEe,e))}function i(o){n.current&&n.current!==o&&r(n.current),o&&o!==n.current&&(o.addEventListener(MEe,e),o.addEventListener(NEe,e),n.current=o)}return m.useEffect(function(){return function(){r(n.current)}},[]),[i,r]};var I7e=_f()?m.useLayoutEffect:m.useEffect;const IMt=function(){var e=m.useRef(null);function n(){Dr.cancel(e.current)}function r(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;n();var a=Dr(function(){o<=1?i({isCanceled:function(){return a!==e.current}}):r(i,o-1)});e.current=a}return m.useEffect(function(){return function(){n()}},[]),[r,n]};var NMt=[Ch,vT,yT,Cue],MMt=[Ch,C7e],N7e=!1,PMt=!0;function M7e(e){return e===yT||e===Cue}const AMt=function(e,n,r){var i=iC(REe),o=ke(i,2),a=o[0],s=o[1],l=IMt(),c=ke(l,2),u=c[0],d=c[1];function f(){s(Ch,!0)}var p=n?MMt:NMt;return I7e(function(){if(a!==REe&&a!==Cue){var h=p.indexOf(a),g=p[h+1],v=r(a);v===N7e?s(g,!0):g&&u(function(y){function _(){y.isCanceled()||s(g,!0)}v===!0?_():Promise.resolve(v).then(_)})}},[e,a]),m.useEffect(function(){return function(){d()}},[]),[f,a]};function DMt(e,n,r,i){var o=i.motionEnter,a=o===void 0?!0:o,s=i.motionAppear,l=s===void 0?!0:s,c=i.motionLeave,u=c===void 0?!0:c,d=i.motionDeadline,f=i.motionLeaveImmediately,p=i.onAppearPrepare,h=i.onEnterPrepare,g=i.onLeavePrepare,v=i.onAppearStart,y=i.onEnterStart,_=i.onLeaveStart,S=i.onAppearActive,b=i.onEnterActive,E=i.onLeaveActive,w=i.onAppearEnd,C=i.onEnterEnd,x=i.onLeaveEnd,T=i.onVisibleChanged,R=iC(),O=ke(R,2),M=O[0],P=O[1],k=wMt(sb),$=ke(k,2),U=$[0],z=$[1],D=iC(null),B=ke(D,2),Y=B[0],q=B[1],K=U(),H=m.useRef(!1),G=m.useRef(null);function Q(){return r()}var le=m.useRef(!1);function Z(){z(sb),q(null,!0)}var j=Sr(function(Re){var Te=U();if(Te!==sb){var Oe=Q();if(!(Re&&!Re.deadline&&Re.target!==Oe)){var Ne=le.current,je;Te===j3&&Ne?je=w==null?void 0:w(Oe,Re):Te===U3&&Ne?je=C==null?void 0:C(Oe,Re):Te===H3&&Ne&&(je=x==null?void 0:x(Oe,Re)),Ne&&je!==!1&&Z()}}}),F=RMt(j),te=ke(F,1),oe=te[0],de=function(Te){switch(Te){case j3:return fe(fe(fe({},Ch,p),vT,v),yT,S);case U3:return fe(fe(fe({},Ch,h),vT,y),yT,b);case H3:return fe(fe(fe({},Ch,g),vT,_),yT,E);default:return{}}},pe=m.useMemo(function(){return de(K)},[K]),me=AMt(K,!e,function(Re){if(Re===Ch){var Te=pe[Ch];return Te?Te(Q()):N7e}if(be in pe){var Oe;q(((Oe=pe[be])===null||Oe===void 0?void 0:Oe.call(pe,Q(),null))||null)}return be===yT&&K!==sb&&(oe(Q()),d>0&&(clearTimeout(G.current),G.current=setTimeout(function(){j({deadline:!0})},d))),be===C7e&&Z(),PMt}),ve=ke(me,2),he=ve[0],be=ve[1],we=M7e(be);le.current=we;var De=m.useRef(null);I7e(function(){if(!(H.current&&De.current===n)){P(n);var Re=H.current;H.current=!0;var Te;!Re&&n&&l&&(Te=j3),Re&&n&&a&&(Te=U3),(Re&&!n&&u||!Re&&f&&!n&&u)&&(Te=H3);var Oe=de(Te);Te&&(e||Oe[Ch])?(z(Te),he()):z(sb),De.current=n}},[n]),m.useEffect(function(){(K===j3&&!l||K===U3&&!a||K===H3&&!u)&&z(sb)},[l,a,u]),m.useEffect(function(){return function(){H.current=!1,clearTimeout(G.current)}},[]);var Ae=m.useRef(!1);m.useEffect(function(){M&&(Ae.current=!0),M!==void 0&&K===sb&&((Ae.current||M)&&(T==null||T(M)),Ae.current=!0)},[M,K]);var Ee=Y;return pe[Ch]&&be===vT&&(Ee=ee({transition:"none"},Ee)),[K,be,Ee,M??n]}function kMt(e){var n=e;cn(e)==="object"&&(n=e.transitionSupport);function r(o,a){return!!(o.motionName&&n&&a!==!1)}var i=m.forwardRef(function(o,a){var s=o.visible,l=s===void 0?!0:s,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,p=o.motionName,h=o.leavedClassName,g=o.eventProps,v=m.useContext(S7e),y=v.motion,_=r(o,y),S=m.useRef(),b=m.useRef();function E(){try{return S.current instanceof HTMLElement?S.current:Y2(b.current)}catch{return null}}var w=DMt(_,l,E,o),C=ke(w,4),x=C[0],T=C[1],R=C[2],O=C[3],M=m.useRef(O);O&&(M.current=!0);var P=m.useCallback(function(B){S.current=B,nue(a,B)},[a]),k,$=ee(ee({},g),{},{visible:l});if(!f)k=null;else if(x===sb)O?k=f(ee({},$),P):!u&&M.current&&h?k=f(ee(ee({},$),{},{className:h}),P):d||!u&&!h?k=f(ee(ee({},$),{},{style:{display:"none"}}),P):k=null;else{var U;T===Ch?U="prepare":M7e(T)?U="active":T===vT&&(U="start");var z=PEe(p,"".concat(x,"-").concat(U));k=f(ee(ee({},$),{},{className:Ce(PEe(p,x),fe(fe({},z,z&&U),p,typeof p=="string")),style:R}),P)}if(m.isValidElement(k)&&Ky(k)){var D=J0(k);D||(k=m.cloneElement(k,{ref:P}))}return m.createElement(CMt,{ref:b},k)});return i.displayName="CSSMotion",i}const Ws=kMt(R7e);var Lre="add",$re="keep",Fre="remove",LY="removed";function LMt(e){var n;return e&&cn(e)==="object"&&"key"in e?n=e:n={key:e},ee(ee({},n),{},{key:String(n.key)})}function Bre(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(LMt)}function $Mt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],i=0,o=n.length,a=Bre(e),s=Bre(n);a.forEach(function(u){for(var d=!1,f=i;f<o;f+=1){var p=s[f];if(p.key===u.key){i<f&&(r=r.concat(s.slice(i,f).map(function(h){return ee(ee({},h),{},{status:Lre})})),i=f),r.push(ee(ee({},p),{},{status:$re})),i+=1,d=!0;break}}d||r.push(ee(ee({},u),{},{status:Fre}))}),i<o&&(r=r.concat(s.slice(i).map(function(u){return ee(ee({},u),{},{status:Lre})})));var l={};r.forEach(function(u){var d=u.key;l[d]=(l[d]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){r=r.filter(function(d){var f=d.key,p=d.status;return f!==u||p!==Fre}),r.forEach(function(d){d.key===u&&(d.status=$re)})}),r}var FMt=["component","children","onVisibleChanged","onAllRemoved"],BMt=["status"],jMt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function UMt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ws,r=function(i){Kc(a,i);var o=Iu(a);function a(){var s;Ki(this,a);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return s=o.call.apply(o,[this].concat(c)),fe(Tn(s),"state",{keyEntities:[]}),fe(Tn(s),"removeKey",function(d){s.setState(function(f){var p=f.keyEntities.map(function(h){return h.key!==d?h:ee(ee({},h),{},{status:LY})});return{keyEntities:p}},function(){var f=s.state.keyEntities,p=f.filter(function(h){var g=h.status;return g!==LY}).length;p===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Xi(a,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,p=u.onVisibleChanged;u.onAllRemoved;var h=Xt(u,FMt),g=d||m.Fragment,v={};return jMt.forEach(function(y){v[y]=h[y],delete h[y]}),delete h.keys,m.createElement(g,h,c.map(function(y,_){var S=y.status,b=Xt(y,BMt),E=S===Lre||S===$re;return m.createElement(n,ft({},v,{key:b.key,visible:E,eventProps:b,onVisibleChanged:function(C){p==null||p(C,{key:b.key}),C||l.removeKey(b.key)}}),function(w,C){return f(ee(ee({},w),{},{index:_}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,d=c.keyEntities,f=Bre(u),p=$Mt(d,f);return{keyEntities:p.filter(function(h){var g=d.find(function(v){var y=v.key;return h.key===y});return!(g&&g.status===LY&&h.status===Fre)})}}}]),a}(m.Component);return fe(r,"defaultProps",{component:"div"}),r}const D9=UMt(R7e),HMt=Object.freeze(Object.defineProperty({__proto__:null,CSSMotionList:D9,Provider:E7e,default:Ws},Symbol.toStringTag,{value:"Module"}));function zMt(e){const{children:n}=e,[,r]=Nl(),{motion:i}=r,o=m.useRef(!1);return o.current=o.current||i===!1,o.current?m.createElement(E7e,{motion:i},n):n}const VMt=()=>null;var GMt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const WMt=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let $8,P7e,A7e,D7e;function c6(){return $8||hA}function YMt(){return P7e||M9}function qMt(e){return Object.keys(e).some(n=>n.endsWith("Color"))}const KMt=e=>{const{prefixCls:n,iconPrefixCls:r,theme:i,holderRender:o}=e;n!==void 0&&($8=n),r!==void 0&&(P7e=r),"holderRender"in e&&(D7e=o),i&&(qMt(i)?JNt(c6(),i):A7e=i)},k7e=()=>({getPrefixCls:(e,n)=>n||(e?`${c6()}-${e}`:c6()),getIconPrefixCls:YMt,getRootPrefixCls:()=>$8||c6(),getTheme:()=>A7e,holderRender:D7e}),XMt=e=>{const{children:n,csp:r,autoInsertSpaceInButton:i,alert:o,anchor:a,form:s,locale:l,componentSize:c,direction:u,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:y,parentContext:_,iconPrefixCls:S,theme:b,componentDisabled:E,segmented:w,statistic:C,spin:x,calendar:T,carousel:R,cascader:O,collapse:M,typography:P,checkbox:k,descriptions:$,divider:U,drawer:z,skeleton:D,steps:B,image:Y,layout:q,list:K,mentions:H,modal:G,progress:Q,result:le,slider:Z,breadcrumb:j,menu:F,pagination:te,input:oe,textArea:de,empty:pe,badge:me,radio:ve,rate:he,switch:be,transfer:we,avatar:De,message:Ae,tag:Ee,table:Re,card:Te,tabs:Oe,timeline:Ne,timePicker:je,upload:ne,notification:J,tree:ae,colorPicker:Se,datePicker:xe,rangePicker:ue,flex:Me,wave:$e,dropdown:ge,warning:Ve,tour:st,tooltip:Je,popover:ot,popconfirm:Xe,floatButtonGroup:Ze,variant:bt,inputNumber:at,treeSelect:pt}=e,Ct=m.useCallback((Dt,Kt)=>{const{prefixCls:Ht}=e;if(Kt)return Kt;const tn=Ht||_.getPrefixCls("");return Dt?`${tn}-${Dt}`:tn},[_.getPrefixCls,e.prefixCls]),It=S||_.iconPrefixCls||M9,Wt=r||_.csp;vMt(It,Wt);const Bt=SMt(b,_.theme,{prefixCls:Ct("")}),Vt={csp:Wt,autoInsertSpaceInButton:i,alert:o,anchor:a,locale:l||y,direction:u,space:d,splitter:f,virtual:p,popupMatchSelectWidth:g??h,popupOverflow:v,getPrefixCls:Ct,iconPrefixCls:It,theme:Bt,segmented:w,statistic:C,spin:x,calendar:T,carousel:R,cascader:O,collapse:M,typography:P,checkbox:k,descriptions:$,divider:U,drawer:z,skeleton:D,steps:B,image:Y,input:oe,textArea:de,layout:q,list:K,mentions:H,modal:G,progress:Q,result:le,slider:Z,breadcrumb:j,menu:F,pagination:te,empty:pe,badge:me,radio:ve,rate:he,switch:be,transfer:we,avatar:De,message:Ae,tag:Ee,table:Re,card:Te,tabs:Oe,timeline:Ne,timePicker:je,upload:ne,notification:J,tree:ae,colorPicker:Se,datePicker:xe,rangePicker:ue,flex:Me,wave:$e,dropdown:ge,warning:Ve,tour:st,tooltip:Je,popover:ot,popconfirm:Xe,floatButtonGroup:Ze,variant:bt,inputNumber:at,treeSelect:pt},rn=Object.assign({},_);Object.keys(Vt).forEach(Dt=>{Vt[Dt]!==void 0&&(rn[Dt]=Vt[Dt])}),WMt.forEach(Dt=>{const Kt=e[Dt];Kt&&(rn[Dt]=Kt)}),typeof i<"u"&&(rn.button=Object.assign({autoInsertSpace:i},rn.button));const tt=Z1(()=>rn,rn,(Dt,Kt)=>{const Ht=Object.keys(Dt),tn=Object.keys(Kt);return Ht.length!==tn.length||Ht.some(on=>Dt[on]!==Kt[on])}),it=m.useMemo(()=>({prefixCls:It,csp:Wt}),[It,Wt]);let nt=m.createElement(m.Fragment,null,m.createElement(VMt,{dropdownMatchSelectWidth:h}),n);const vt=m.useMemo(()=>{var Dt,Kt,Ht,tn;return mT(((Dt=Tp.Form)===null||Dt===void 0?void 0:Dt.defaultValidateMessages)||{},((Ht=(Kt=tt.locale)===null||Kt===void 0?void 0:Kt.Form)===null||Ht===void 0?void 0:Ht.defaultValidateMessages)||{},((tn=tt.form)===null||tn===void 0?void 0:tn.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[tt,s==null?void 0:s.validateMessages]);Object.keys(vt).length>0&&(nt=m.createElement(Zje.Provider,{value:vt},nt)),l&&(nt=m.createElement(MNt,{locale:l,_ANT_MARK__:NNt},nt)),(It||Wt)&&(nt=m.createElement(N9.Provider,{value:it},nt)),c&&(nt=m.createElement(eMt,{size:c},nt)),nt=m.createElement(zMt,null,nt);const kt=m.useMemo(()=>{const Dt=Bt||{},{algorithm:Kt,token:Ht,components:tn,cssVar:on}=Dt,sn=GMt(Dt,["algorithm","token","components","cssVar"]),Jt=Kt&&(!Array.isArray(Kt)||Kt.length>0)?eC(Kt):s7e,En={};Object.entries(tn||{}).forEach(Qt=>{let[ln,jt]=Qt;const Lt=Object.assign({},jt);"algorithm"in Lt&&(Lt.algorithm===!0?Lt.theme=Jt:(Array.isArray(Lt.algorithm)||typeof Lt.algorithm=="function")&&(Lt.theme=eC(Lt.algorithm)),delete Lt.algorithm),En[ln]=Lt});const Pt=Object.assign(Object.assign({},DO),Ht);return Object.assign(Object.assign({},sn),{theme:Jt,token:Pt,components:En,override:Object.assign({override:Pt},En),cssVar:on})},[Bt]);return b&&(nt=m.createElement(vue.Provider,{value:kt},nt)),tt.warning&&(nt=m.createElement(TNt.Provider,{value:tt.warning},nt)),E!==void 0&&(nt=m.createElement(_ue,{disabled:E},nt)),m.createElement(Cn.Provider,{value:tt},nt)},or=e=>{const n=m.useContext(Cn),r=m.useContext(gue);return m.createElement(XMt,Object.assign({parentContext:n,legacyLocale:r},e))};or.ConfigContext=Cn;or.SizeContext=nC;or.config=KMt;or.useConfig=tMt;Object.defineProperty(or,"SizeContext",{get:()=>nC});var QMt={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"};function L7e(e){var n;return e==null||(n=e.getRootNode)===null||n===void 0?void 0:n.call(e)}function ZMt(e){return L7e(e)instanceof ShadowRoot}function F8(e){return ZMt(e)?L7e(e):null}function JMt(e){return e.replace(/-(.)/g,function(n,r){return r.toUpperCase()})}function jre(e,n){qi(e,"[@ant-design/icons] ".concat(n))}function AEe(e){return cn(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(cn(e.icon)==="object"||typeof e.icon=="function")}function DEe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(n,r){var i=e[r];switch(r){case"class":n.className=i,delete n.class;break;default:delete n[r],n[JMt(r)]=i}return n},{})}function Ure(e,n,r){return r?V.createElement(e.tag,ee(ee({key:n},DEe(e.attrs)),r),(e.children||[]).map(function(i,o){return Ure(i,"".concat(n,"-").concat(e.tag,"-").concat(o))})):V.createElement(e.tag,ee({key:n},DEe(e.attrs)),(e.children||[]).map(function(i,o){return Ure(i,"".concat(n,"-").concat(e.tag,"-").concat(o))}))}function $7e(e){return C0(e)[0]}function F7e(e){return e?Array.isArray(e)?e:[e]:[]}var e2t={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},t2t=`
|
||
.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);
|
||
}
|
||
}
|
||
`,B7e=function(n){var r=m.useContext(N9),i=r.csp,o=r.prefixCls,a=r.layer,s=t2t;o&&(s=s.replace(/anticon/g,o)),a&&(s="@layer ".concat(a,` {
|
||
`).concat(s,`
|
||
}`)),m.useEffect(function(){var l=n.current,c=F8(l);A9(s,"@ant-design-icons",{prepend:!a,csp:i,attachTo:c})},[])},n2t=["icon","className","onClick","style","primaryColor","secondaryColor"],Q2={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function r2t(e){var n=e.primaryColor,r=e.secondaryColor;Q2.primaryColor=n,Q2.secondaryColor=r||$7e(n),Q2.calculated=!!r}function i2t(){return ee({},Q2)}var oI=function(n){var r=n.icon,i=n.className,o=n.onClick,a=n.style,s=n.primaryColor,l=n.secondaryColor,c=Xt(n,n2t),u=m.useRef(),d=Q2;if(s&&(d={primaryColor:s,secondaryColor:l||$7e(s)}),B7e(u),jre(AEe(r),"icon should be icon definiton, but got ".concat(r)),!AEe(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=ee(ee({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),Ure(f.icon,"svg-".concat(f.name),ee(ee({className:i,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};oI.displayName="IconReact";oI.getTwoToneColors=i2t;oI.setTwoToneColors=r2t;function j7e(e){var n=F7e(e),r=ke(n,2),i=r[0],o=r[1];return oI.setTwoToneColors({primaryColor:i,secondaryColor:o})}function o2t(){var e=oI.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var a2t=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];j7e(tC.primary);var er=m.forwardRef(function(e,n){var r=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Xt(e,a2t),d=m.useContext(N9),f=d.prefixCls,p=f===void 0?"anticon":f,h=d.rootClassName,g=Ce(h,p,fe(fe({},"".concat(p,"-").concat(i.name),!!i.name),"".concat(p,"-spin"),!!o||i.name==="loading"),r),v=s;v===void 0&&l&&(v=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,_=F7e(c),S=ke(_,2),b=S[0],E=S[1];return m.createElement("span",ft({role:"img","aria-label":i.name},u,{ref:n,tabIndex:v,onClick:l,className:g}),m.createElement(oI,{icon:i,primaryColor:b,secondaryColor:E,style:y}))});er.displayName="AntdIcon";er.getTwoToneColor=o2t;er.setTwoToneColor=j7e;var s2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:QMt}))},tw=m.forwardRef(s2t),l2t={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"},c2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:l2t}))},ev=m.forwardRef(c2t),u2t={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"},d2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:u2t}))},jp=m.forwardRef(d2t),f2t={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"},p2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:f2t}))},eS=m.forwardRef(p2t),h2t={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"},g2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:h2t}))},k9=m.forwardRef(g2t),m2t=`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`,v2t=`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`,y2t="".concat(m2t," ").concat(v2t).split(/[\s\n]+/),_2t="aria-",b2t="data-";function kEe(e,n){return e.indexOf(n)===0}function Va(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;n===!1?r={aria:!0,data:!0,attr:!0}:n===!0?r={aria:!0}:r=ee({},n);var i={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||kEe(o,_2t))||r.data&&kEe(o,b2t)||r.attr&&y2t.includes(o))&&(i[o]=e[o])}),i}function U7e(e){return e&&V.isValidElement(e)&&e.type===V.Fragment}const H7e=(e,n,r)=>V.isValidElement(e)?V.cloneElement(e,typeof r=="function"?r(e.props||{}):r):n;function Ys(e,n){return H7e(e,e,n)}const V3=(e,n,r,i,o)=>({background:e,border:`${Ye(i.lineWidth)} ${i.lineType} ${n}`,[`${o}-icon`]:{color:r}}),S2t=e=>{const{componentCls:n,motionDurationSlow:r,marginXS:i,marginSM:o,fontSize:a,fontSizeLG:s,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:p,withDescriptionPadding:h,defaultPadding:g}=e;return{[n]:Object.assign(Object.assign({},li(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:c,[`&${n}-rtl`]:{direction:"rtl"},[`${n}-content`]:{flex:1,minWidth:0},[`${n}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:l},"&-message":{color:p},[`&${n}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${u}, opacity ${r} ${u},
|
||
padding-top ${r} ${u}, padding-bottom ${r} ${u},
|
||
margin-bottom ${r} ${u}`},[`&${n}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${n}-with-description`]:{alignItems:"flex-start",padding:h,[`${n}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${n}-message`]:{display:"block",marginBottom:i,color:p,fontSize:s},[`${n}-description`]:{display:"block",color:f}},[`${n}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},E2t=e=>{const{componentCls:n,colorSuccess:r,colorSuccessBorder:i,colorSuccessBg:o,colorWarning:a,colorWarningBorder:s,colorWarningBg:l,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:p,colorInfoBg:h}=e;return{[n]:{"&-success":V3(o,i,r,e,n),"&-info":V3(h,p,f,e,n),"&-warning":V3(l,s,a,e,n),"&-error":Object.assign(Object.assign({},V3(d,u,c,e,n)),{[`${n}-description > pre`]:{margin:0,padding:0}})}}},C2t=e=>{const{componentCls:n,iconCls:r,motionDurationMid:i,marginXS:o,fontSizeIcon:a,colorIcon:s,colorIconHover:l}=e;return{[n]:{"&-action":{marginInlineStart:o},[`${n}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:Ye(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:s,transition:`color ${i}`,"&:hover":{color:l}}},"&-close-text":{color:s,transition:`color ${i}`,"&:hover":{color:l}}}}},w2t=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),x2t=Yr("Alert",e=>[S2t(e),E2t(e),C2t(e)],w2t);var LEe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const T2t={success:tw,info:k9,error:ev,warning:eS},O2t=e=>{const{icon:n,prefixCls:r,type:i}=e,o=T2t[i]||null;return n?H7e(n,m.createElement("span",{className:`${r}-icon`},n),()=>({className:Ce(`${r}-icon`,n.props.className)})):m.createElement(o,{className:`${r}-icon`})},R2t=e=>{const{isClosable:n,prefixCls:r,closeIcon:i,handleClose:o,ariaProps:a}=e,s=i===!0||i===void 0?m.createElement(jp,null):i;return n?m.createElement("button",Object.assign({type:"button",onClick:o,className:`${r}-close-icon`,tabIndex:0},a),s):null},z7e=m.forwardRef((e,n)=>{const{description:r,prefixCls:i,message:o,banner:a,className:s,rootClassName:l,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:h,closable:g,closeText:v,closeIcon:y,action:_,id:S}=e,b=LEe(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[E,w]=m.useState(!1),C=m.useRef(null);m.useImperativeHandle(n,()=>({nativeElement:C.current}));const{getPrefixCls:x,direction:T,alert:R}=m.useContext(Cn),O=x("alert",i),[M,P,k]=x2t(O),$=H=>{var G;w(!0),(G=e.onClose)===null||G===void 0||G.call(e,H)},U=m.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),z=m.useMemo(()=>typeof g=="object"&&g.closeIcon||v?!0:typeof g=="boolean"?g:y!==!1&&y!==null&&y!==void 0?!0:!!(R!=null&&R.closable),[v,y,g,R==null?void 0:R.closable]),D=a&&h===void 0?!0:h,B=Ce(O,`${O}-${U}`,{[`${O}-with-description`]:!!r,[`${O}-no-icon`]:!D,[`${O}-banner`]:!!a,[`${O}-rtl`]:T==="rtl"},R==null?void 0:R.className,s,l,k,P),Y=Va(b,{aria:!0,data:!0}),q=m.useMemo(()=>{var H,G;return typeof g=="object"&&g.closeIcon?g.closeIcon:v||(y!==void 0?y:typeof(R==null?void 0:R.closable)=="object"&&(!((H=R==null?void 0:R.closable)===null||H===void 0)&&H.closeIcon)?(G=R==null?void 0:R.closable)===null||G===void 0?void 0:G.closeIcon:R==null?void 0:R.closeIcon)},[y,g,v,R==null?void 0:R.closeIcon]),K=m.useMemo(()=>{const H=g??(R==null?void 0:R.closable);return typeof H=="object"?LEe(H,["closeIcon"]):{}},[g,R==null?void 0:R.closable]);return M(m.createElement(Ws,{visible:!E,motionName:`${O}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:H=>({maxHeight:H.offsetHeight}),onLeaveEnd:p},(H,G)=>{let{className:Q,style:le}=H;return m.createElement("div",Object.assign({id:S,ref:Il(C,G),"data-show":!E,className:Ce(B,Q),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),c),le),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},Y),D?m.createElement(O2t,{description:r,icon:e.icon,prefixCls:O,type:U}):null,m.createElement("div",{className:`${O}-content`},o?m.createElement("div",{className:`${O}-message`},o):null,r?m.createElement("div",{className:`${O}-description`},r):null),_?m.createElement("div",{className:`${O}-action`},_):null,m.createElement(R2t,{isClosable:z,prefixCls:O,closeIcon:q,handleClose:$,ariaProps:K}))}))});function I2t(e,n,r){return n=J1(n),_je(e,x9()?Reflect.construct(n,r||[],J1(e).constructor):n.apply(e,r))}let N2t=function(e){function n(){var r;return Ki(this,n),r=I2t(this,n,arguments),r.state={error:void 0,info:{componentStack:""}},r}return Kc(n,e),Xi(n,[{key:"componentDidCatch",value:function(i,o){this.setState({error:i,info:o})}},{key:"render",value:function(){const{message:i,description:o,id:a,children:s}=this.props,{error:l,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof i>"u"?(l||"").toString():i,f=typeof o>"u"?u:o;return l?m.createElement(z7e,{id:a,type:"error",message:d,description:m.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):s}}])}(m.Component);const V7e=z7e;V7e.ErrorBoundary=N2t;const $Ee=e=>typeof e=="object"&&e!=null&&e.nodeType===1,FEe=(e,n)=>(!n||e!=="hidden")&&e!=="visible"&&e!=="clip",$Y=(e,n)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return FEe(r.overflowY,n)||FEe(r.overflowX,n)||(i=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!o&&(o.clientHeight<i.scrollHeight||o.clientWidth<i.scrollWidth)})(e)}return!1},G3=(e,n,r,i,o,a,s,l)=>a<e&&s>n||a>e&&s<n?0:a<=e&&l<=r||s>=n&&l>=r?a-e-i:s>n&&l<r||a<e&&l>r?s-n+o:0,M2t=e=>{const n=e.parentElement;return n??(e.getRootNode().host||null)},BEe=(e,n)=>{var r,i,o,a;if(typeof document>"u")return[];const{scrollMode:s,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=n,f=typeof u=="function"?u:z=>z!==u;if(!$Ee(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let g=e;for(;$Ee(g)&&f(g);){if(g=M2t(g),g===p){h.push(g);break}g!=null&&g===document.body&&$Y(g)&&!$Y(document.documentElement)||g!=null&&$Y(g,d)&&h.push(g)}const v=(i=(r=window.visualViewport)==null?void 0:r.width)!=null?i:innerWidth,y=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:_,scrollY:S}=window,{height:b,width:E,top:w,right:C,bottom:x,left:T}=e.getBoundingClientRect(),{top:R,right:O,bottom:M,left:P}=(z=>{const D=window.getComputedStyle(z);return{top:parseFloat(D.scrollMarginTop)||0,right:parseFloat(D.scrollMarginRight)||0,bottom:parseFloat(D.scrollMarginBottom)||0,left:parseFloat(D.scrollMarginLeft)||0}})(e);let k=l==="start"||l==="nearest"?w-R:l==="end"?x+M:w+b/2-R+M,$=c==="center"?T+E/2-P+O:c==="end"?C+O:T-P;const U=[];for(let z=0;z<h.length;z++){const D=h[z],{height:B,width:Y,top:q,right:K,bottom:H,left:G}=D.getBoundingClientRect();if(s==="if-needed"&&w>=0&&T>=0&&x<=y&&C<=v&&w>=q&&x<=H&&T>=G&&C<=K)return U;const Q=getComputedStyle(D),le=parseInt(Q.borderLeftWidth,10),Z=parseInt(Q.borderTopWidth,10),j=parseInt(Q.borderRightWidth,10),F=parseInt(Q.borderBottomWidth,10);let te=0,oe=0;const de="offsetWidth"in D?D.offsetWidth-D.clientWidth-le-j:0,pe="offsetHeight"in D?D.offsetHeight-D.clientHeight-Z-F:0,me="offsetWidth"in D?D.offsetWidth===0?0:Y/D.offsetWidth:0,ve="offsetHeight"in D?D.offsetHeight===0?0:B/D.offsetHeight:0;if(p===D)te=l==="start"?k:l==="end"?k-y:l==="nearest"?G3(S,S+y,y,Z,F,S+k,S+k+b,b):k-y/2,oe=c==="start"?$:c==="center"?$-v/2:c==="end"?$-v:G3(_,_+v,v,le,j,_+$,_+$+E,E),te=Math.max(0,te+S),oe=Math.max(0,oe+_);else{te=l==="start"?k-q-Z:l==="end"?k-H+F+pe:l==="nearest"?G3(q,H,B,Z,F+pe,k,k+b,b):k-(q+B/2)+pe/2,oe=c==="start"?$-G-le:c==="center"?$-(G+Y/2)+de/2:c==="end"?$-K+j+de:G3(G,K,Y,le,j+de,$,$+E,E);const{scrollLeft:he,scrollTop:be}=D;te=ve===0?0:Math.max(0,Math.min(be+te/ve,D.scrollHeight-B/ve+pe)),oe=me===0?0:Math.max(0,Math.min(he+oe/me,D.scrollWidth-Y/me+de)),k+=be-te,$+=he-oe}U.push({el:D,top:te,left:oe})}return U},P2t=e=>e===!1?{block:"end",inline:"nearest"}:(n=>n===Object(n)&&Object.keys(n).length!==0)(e)?e:{block:"start",inline:"nearest"};function A2t(e,n){if(!e.isConnected||!(o=>{let a=o;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 r=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(n))return n.behavior(BEe(e,n));const i=typeof n=="boolean"||n==null?void 0:n.behavior;for(const{el:o,top:a,left:s}of BEe(e,P2t(n))){const l=a-r.top+r.bottom,c=s-r.left+r.right;o.scroll({top:l,left:c,behavior:i})}}const po=e=>{const[,,,,n]=Nl();return n?`${e}-css-var`:""};var At={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(n){var r=n.keyCode;if(n.altKey&&!n.ctrlKey||n.metaKey||r>=At.F1&&r<=At.F12)return!1;switch(r){case At.ALT:case At.CAPS_LOCK:case At.CONTEXT_MENU:case At.CTRL:case At.DOWN:case At.END:case At.ESC:case At.HOME:case At.INSERT:case At.LEFT:case At.MAC_FF_META:case At.META:case At.NUMLOCK:case At.NUM_CENTER:case At.PAGE_DOWN:case At.PAGE_UP:case At.PAUSE:case At.PRINT_SCREEN:case At.RIGHT:case At.SHIFT:case At.UP:case At.WIN_KEY:case At.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(n){if(n>=At.ZERO&&n<=At.NINE||n>=At.NUM_ZERO&&n<=At.NUM_MULTIPLY||n>=At.A&&n<=At.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&n===0)return!0;switch(n){case At.SPACE:case At.QUESTION_MARK:case At.NUM_PLUS:case At.NUM_MINUS:case At.NUM_PERIOD:case At.NUM_DIVISION:case At.SEMICOLON:case At.DASH:case At.EQUALS:case At.COMMA:case At.PERIOD:case At.SLASH:case At.APOSTROPHE:case At.SINGLE_QUOTE:case At.OPEN_SQUARE_BRACKET:case At.BACKSLASH:case At.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},G7e=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.style,o=e.className,a=e.duration,s=a===void 0?4.5:a,l=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,p=e.closable,h=e.closeIcon,g=h===void 0?"x":h,v=e.props,y=e.onClick,_=e.onNoticeClose,S=e.times,b=e.hovering,E=m.useState(!1),w=ke(E,2),C=w[0],x=w[1],T=m.useState(0),R=ke(T,2),O=R[0],M=R[1],P=m.useState(0),k=ke(P,2),$=k[0],U=k[1],z=b||C,D=s>0&&l,B=function(){_(d)},Y=function(le){(le.key==="Enter"||le.code==="Enter"||le.keyCode===At.ENTER)&&B()};m.useEffect(function(){if(!z&&s>0){var Q=Date.now()-$,le=setTimeout(function(){B()},s*1e3-$);return function(){u&&clearTimeout(le),U(Date.now()-Q)}}},[s,z,S]),m.useEffect(function(){if(!z&&D&&(u||$===0)){var Q=performance.now(),le,Z=function j(){cancelAnimationFrame(le),le=requestAnimationFrame(function(F){var te=F+$-Q,oe=Math.min(te/(s*1e3),1);M(oe*100),oe<1&&j()})};return Z(),function(){u&&cancelAnimationFrame(le)}}},[s,$,z,D,S]);var q=m.useMemo(function(){return cn(p)==="object"&&p!==null?p:p?{closeIcon:g}:{}},[p,g]),K=Va(q,!0),H=100-(!O||O<0?0:O>100?100:O),G="".concat(r,"-notice");return m.createElement("div",ft({},v,{ref:n,className:Ce(G,o,fe({},"".concat(G,"-closable"),p)),style:i,onMouseEnter:function(le){var Z;x(!0),v==null||(Z=v.onMouseEnter)===null||Z===void 0||Z.call(v,le)},onMouseLeave:function(le){var Z;x(!1),v==null||(Z=v.onMouseLeave)===null||Z===void 0||Z.call(v,le)},onClick:y}),m.createElement("div",{className:"".concat(G,"-content")},f),p&&m.createElement("a",ft({tabIndex:0,className:"".concat(G,"-close"),onKeyDown:Y,"aria-label":"Close"},K,{onClick:function(le){le.preventDefault(),le.stopPropagation(),B()}}),q.closeIcon),D&&m.createElement("progress",{className:"".concat(G,"-progress"),max:"100",value:H},H+"%"))}),W7e=V.createContext({}),Y7e=function(n){var r=n.children,i=n.classNames;return V.createElement(W7e.Provider,{value:{classNames:i}},r)},jEe=8,UEe=3,HEe=16,D2t=function(n){var r={offset:jEe,threshold:UEe,gap:HEe};if(n&&cn(n)==="object"){var i,o,a;r.offset=(i=n.offset)!==null&&i!==void 0?i:jEe,r.threshold=(o=n.threshold)!==null&&o!==void 0?o:UEe,r.gap=(a=n.gap)!==null&&a!==void 0?a:HEe}return[!!n,r]},k2t=["className","style","classNames","styles"],L2t=function(n){var r=n.configList,i=n.placement,o=n.prefixCls,a=n.className,s=n.style,l=n.motion,c=n.onAllNoticeRemoved,u=n.onNoticeClose,d=n.stack,f=m.useContext(W7e),p=f.classNames,h=m.useRef({}),g=m.useState(null),v=ke(g,2),y=v[0],_=v[1],S=m.useState([]),b=ke(S,2),E=b[0],w=b[1],C=r.map(function(z){return{config:z,key:String(z.key)}}),x=D2t(d),T=ke(x,2),R=T[0],O=T[1],M=O.offset,P=O.threshold,k=O.gap,$=R&&(E.length>0||C.length<=P),U=typeof l=="function"?l(i):l;return m.useEffect(function(){R&&E.length>1&&w(function(z){return z.filter(function(D){return C.some(function(B){var Y=B.key;return D===Y})})})},[E,C,R]),m.useEffect(function(){var z;if(R&&h.current[(z=C[C.length-1])===null||z===void 0?void 0:z.key]){var D;_(h.current[(D=C[C.length-1])===null||D===void 0?void 0:D.key])}},[C,R]),V.createElement(D9,ft({key:i,className:Ce(o,"".concat(o,"-").concat(i),p==null?void 0:p.list,a,fe(fe({},"".concat(o,"-stack"),!!R),"".concat(o,"-stack-expanded"),$)),style:s,keys:C,motionAppear:!0},U,{onAllRemoved:function(){c(i)}}),function(z,D){var B=z.config,Y=z.className,q=z.style,K=z.index,H=B,G=H.key,Q=H.times,le=String(G),Z=B,j=Z.className,F=Z.style,te=Z.classNames,oe=Z.styles,de=Xt(Z,k2t),pe=C.findIndex(function(Ne){return Ne.key===le}),me={};if(R){var ve=C.length-1-(pe>-1?pe:K-1),he=i==="top"||i==="bottom"?"-50%":"0";if(ve>0){var be,we,De;me.height=$?(be=h.current[le])===null||be===void 0?void 0:be.offsetHeight:y==null?void 0:y.offsetHeight;for(var Ae=0,Ee=0;Ee<ve;Ee++){var Re;Ae+=((Re=h.current[C[C.length-1-Ee].key])===null||Re===void 0?void 0:Re.offsetHeight)+k}var Te=($?Ae:ve*M)*(i.startsWith("top")?1:-1),Oe=!$&&y!==null&&y!==void 0&&y.offsetWidth&&(we=h.current[le])!==null&&we!==void 0&&we.offsetWidth?((y==null?void 0:y.offsetWidth)-M*2*(ve<3?ve:3))/((De=h.current[le])===null||De===void 0?void 0:De.offsetWidth):1;me.transform="translate3d(".concat(he,", ").concat(Te,"px, 0) scaleX(").concat(Oe,")")}else me.transform="translate3d(".concat(he,", 0, 0)")}return V.createElement("div",{ref:D,className:Ce("".concat(o,"-notice-wrapper"),Y,te==null?void 0:te.wrapper),style:ee(ee(ee({},q),me),oe==null?void 0:oe.wrapper),onMouseEnter:function(){return w(function(je){return je.includes(le)?je:[].concat(Tt(je),[le])})},onMouseLeave:function(){return w(function(je){return je.filter(function(ne){return ne!==le})})}},V.createElement(G7e,ft({},de,{ref:function(je){pe>-1?h.current[le]=je:delete h.current[le]},prefixCls:o,classNames:te,styles:oe,className:Ce(j,p==null?void 0:p.notice),style:F,times:Q,key:G,eventKey:G,onNoticeClose:u,hovering:R&&E.length>0})))})},$2t=m.forwardRef(function(e,n){var r=e.prefixCls,i=r===void 0?"rc-notification":r,o=e.container,a=e.motion,s=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=m.useState([]),h=ke(p,2),g=h[0],v=h[1],y=function(R){var O,M=g.find(function(P){return P.key===R});M==null||(O=M.onClose)===null||O===void 0||O.call(M),v(function(P){return P.filter(function(k){return k.key!==R})})};m.useImperativeHandle(n,function(){return{open:function(R){v(function(O){var M=Tt(O),P=M.findIndex(function(U){return U.key===R.key}),k=ee({},R);if(P>=0){var $;k.times=((($=O[P])===null||$===void 0?void 0:$.times)||0)+1,M[P]=k}else k.times=0,M.push(k);return s>0&&M.length>s&&(M=M.slice(-s)),M})},close:function(R){y(R)},destroy:function(){v([])}}});var _=m.useState({}),S=ke(_,2),b=S[0],E=S[1];m.useEffect(function(){var T={};g.forEach(function(R){var O=R.placement,M=O===void 0?"topRight":O;M&&(T[M]=T[M]||[],T[M].push(R))}),Object.keys(b).forEach(function(R){T[R]=T[R]||[]}),E(T)},[g]);var w=function(R){E(function(O){var M=ee({},O),P=M[R]||[];return P.length||delete M[R],M})},C=m.useRef(!1);if(m.useEffect(function(){Object.keys(b).length>0?C.current=!0:C.current&&(u==null||u(),C.current=!1)},[b]),!o)return null;var x=Object.keys(b);return Us.createPortal(m.createElement(m.Fragment,null,x.map(function(T){var R=b[T],O=m.createElement(L2t,{key:T,configList:R,placement:T,prefixCls:i,className:l==null?void 0:l(T),style:c==null?void 0:c(T),motion:a,onNoticeClose:y,onAllNoticeRemoved:w,stack:d});return f?f(O,{prefixCls:i,key:T}):O})),o)}),F2t=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],B2t=function(){return document.body},zEe=0;function j2t(){for(var e={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.forEach(function(o){o&&Object.keys(o).forEach(function(a){var s=o[a];s!==void 0&&(e[a]=s)})}),e}function q7e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getContainer,r=n===void 0?B2t:n,i=e.motion,o=e.prefixCls,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Xt(e,F2t),p=m.useState(),h=ke(p,2),g=h[0],v=h[1],y=m.useRef(),_=m.createElement($2t,{container:g,ref:y,prefixCls:o,motion:i,maxCount:a,className:s,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),S=m.useState([]),b=ke(S,2),E=b[0],w=b[1],C=m.useMemo(function(){return{open:function(T){var R=j2t(f,T);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(zEe),zEe+=1),w(function(O){return[].concat(Tt(O),[{type:"open",config:R}])})},close:function(T){w(function(R){return[].concat(Tt(R),[{type:"close",key:T}])})},destroy:function(){w(function(T){return[].concat(Tt(T),[{type:"destroy"}])})}}},[]);return m.useEffect(function(){v(r())}),m.useEffect(function(){y.current&&E.length&&(E.forEach(function(x){switch(x.type){case"open":y.current.open(x.config);break;case"close":y.current.close(x.key);break;case"destroy":y.current.destroy();break}}),w(function(x){return x.filter(function(T){return!E.includes(T)})}))},[E]),[C,_]}var U2t={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"},H2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:U2t}))},Nm=m.forwardRef(H2t);const uk=V.createContext(void 0),lb=100,z2t=10,wue=lb*z2t,K7e={Modal:lb,Drawer:lb,Popover:lb,Popconfirm:lb,Tooltip:lb,Tour:lb,FloatButton:lb},V2t={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function G2t(e){return e in K7e}const Up=(e,n)=>{const[,r]=Nl(),i=V.useContext(uk),o=G2t(e);let a;if(n!==void 0)a=[n,n];else{let s=i??0;o?s+=(i?0:r.zIndexPopupBase)+K7e[e]:s+=V2t[e],a=[i===void 0?n:s,s]}return a},W2t=e=>{const{componentCls:n,iconCls:r,boxShadow:i,colorText:o,colorSuccess:a,colorError:s,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:p,paddingXS:h,borderRadiusLG:g,zIndexPopup:v,contentPadding:y,contentBg:_}=e,S=`${n}-notice`,b=new kr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),E=new kr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:h,textAlign:"center",[`${n}-custom-content`]:{display:"flex",alignItems:"center"},[`${n}-custom-content > ${r}`]:{marginInlineEnd:p,fontSize:u},[`${S}-content`]:{display:"inline-block",padding:y,background:_,borderRadius:g,boxShadow:i,pointerEvents:"all"},[`${n}-success > ${r}`]:{color:a},[`${n}-error > ${r}`]:{color:s},[`${n}-warning > ${r}`]:{color:l},[`${n}-info > ${r},
|
||
${n}-loading > ${r}`]:{color:c}};return[{[n]:Object.assign(Object.assign({},li(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:v,[`${n}-move-up`]:{animationFillMode:"forwards"},[`
|
||
${n}-move-up-appear,
|
||
${n}-move-up-enter
|
||
`]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
|
||
${n}-move-up-appear${n}-move-up-appear-active,
|
||
${n}-move-up-enter${n}-move-up-enter-active
|
||
`]:{animationPlayState:"running"},[`${n}-move-up-leave`]:{animationName:E,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${n}-move-up-leave${n}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[n]:{[`${S}-wrapper`]:Object.assign({},w)}},{[`${n}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},Y2t=e=>({zIndexPopup:e.zIndexPopupBase+wue+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),X7e=Yr("Message",e=>{const n=wr(e,{height:150});return[W2t(n)]},Y2t);var q2t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const K2t={info:m.createElement(k9,null),success:m.createElement(tw,null),error:m.createElement(ev,null),warning:m.createElement(eS,null),loading:m.createElement(Nm,null)},Q7e=e=>{let{prefixCls:n,type:r,icon:i,children:o}=e;return m.createElement("div",{className:Ce(`${n}-custom-content`,`${n}-${r}`)},i||K2t[r],m.createElement("span",null,o))},X2t=e=>{const{prefixCls:n,className:r,type:i,icon:o,content:a}=e,s=q2t(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=m.useContext(Cn),c=n||l("message"),u=po(c),[d,f,p]=X7e(c,u);return d(m.createElement(G7e,Object.assign({},s,{prefixCls:c,className:Ce(r,f,`${c}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:m.createElement(Q7e,{prefixCls:c,type:i,icon:o},a)})))};function Q2t(e,n){return{motionName:n??`${e}-move-up`}}function xue(e){let n;const r=new Promise(o=>{n=e(()=>{o(!0)})}),i=()=>{n==null||n()};return i.then=(o,a)=>r.then(o,a),i.promise=r,i}var Z2t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const J2t=8,ePt=3,tPt=e=>{let{children:n,prefixCls:r}=e;const i=po(r),[o,a,s]=X7e(r,i);return o(m.createElement(Y7e,{classNames:{list:Ce(a,s,i)}},n))},nPt=(e,n)=>{let{prefixCls:r,key:i}=n;return m.createElement(tPt,{prefixCls:r,key:i},e)},rPt=m.forwardRef((e,n)=>{const{top:r,prefixCls:i,getContainer:o,maxCount:a,duration:s=ePt,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:h}=m.useContext(Cn),g=i||d("message"),v=()=>({left:"50%",transform:"translateX(-50%)",top:r??J2t}),y=()=>Ce({[`${g}-rtl`]:l??h==="rtl"}),_=()=>Q2t(g,c),S=m.createElement("span",{className:`${g}-close-x`},m.createElement(jp,{className:`${g}-close-icon`})),[b,E]=q7e({prefixCls:g,style:v,className:y,motion:_,closable:!1,closeIcon:S,duration:s,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:nPt});return m.useImperativeHandle(n,()=>Object.assign(Object.assign({},b),{prefixCls:g,message:p})),E});let VEe=0;function Z7e(e){const n=m.useRef(null);return JC(),[m.useMemo(()=>{const i=c=>{var u;(u=n.current)===null||u===void 0||u.close(c)},o=c=>{if(!n.current){const C=()=>{};return C.then=()=>{},C}const{open:u,prefixCls:d,message:f}=n.current,p=`${d}-notice`,{content:h,icon:g,type:v,key:y,className:_,style:S,onClose:b}=c,E=Z2t(c,["content","icon","type","key","className","style","onClose"]);let w=y;return w==null&&(VEe+=1,w=`antd-message-${VEe}`),xue(C=>(u(Object.assign(Object.assign({},E),{key:w,content:m.createElement(Q7e,{prefixCls:d,type:v,icon:g},h),placement:"top",className:Ce(v&&`${p}-${v}`,_,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),S),onClose:()=>{b==null||b(),C()}})),()=>{i(w)}))},s={open:o,destroy:c=>{var u;c!==void 0?i(c):(u=n.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,p)=>{let h;d&&typeof d=="object"&&"content"in d?h=d:h={content:d};let g,v;typeof f=="function"?v=f:(g=f,v=p);const y=Object.assign(Object.assign({onClose:v,duration:g},h),{type:c});return o(y)};s[c]=u}),s},[]),m.createElement(rPt,Object.assign({key:"message-holder"},e,{ref:n}))]}function J7e(e){return Z7e(e)}function iPt(){const[e,n]=m.useState([]),r=m.useCallback(i=>(n(o=>[].concat(Tt(o),[i])),()=>{n(o=>o.filter(a=>a!==i))}),[]);return[e,r]}function ri(){ri=function(){return n};var e,n={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(z,D,B){z[D]=B.value},a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(z,D,B){return Object.defineProperty(z,D,{value:B,enumerable:!0,configurable:!0,writable:!0}),z[D]}try{u({},"")}catch{u=function(B,Y,q){return B[Y]=q}}function d(z,D,B,Y){var q=D&&D.prototype instanceof _?D:_,K=Object.create(q.prototype),H=new $(Y||[]);return o(K,"_invoke",{value:O(z,B,H)}),K}function f(z,D,B){try{return{type:"normal",arg:z.call(D,B)}}catch(Y){return{type:"throw",arg:Y}}}n.wrap=d;var p="suspendedStart",h="suspendedYield",g="executing",v="completed",y={};function _(){}function S(){}function b(){}var E={};u(E,s,function(){return this});var w=Object.getPrototypeOf,C=w&&w(w(U([])));C&&C!==r&&i.call(C,s)&&(E=C);var x=b.prototype=_.prototype=Object.create(E);function T(z){["next","throw","return"].forEach(function(D){u(z,D,function(B){return this._invoke(D,B)})})}function R(z,D){function B(q,K,H,G){var Q=f(z[q],z,K);if(Q.type!=="throw"){var le=Q.arg,Z=le.value;return Z&&cn(Z)=="object"&&i.call(Z,"__await")?D.resolve(Z.__await).then(function(j){B("next",j,H,G)},function(j){B("throw",j,H,G)}):D.resolve(Z).then(function(j){le.value=j,H(le)},function(j){return B("throw",j,H,G)})}G(Q.arg)}var Y;o(this,"_invoke",{value:function(K,H){function G(){return new D(function(Q,le){B(K,H,Q,le)})}return Y=Y?Y.then(G,G):G()}})}function O(z,D,B){var Y=p;return function(q,K){if(Y===g)throw Error("Generator is already running");if(Y===v){if(q==="throw")throw K;return{value:e,done:!0}}for(B.method=q,B.arg=K;;){var H=B.delegate;if(H){var G=M(H,B);if(G){if(G===y)continue;return G}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(Y===p)throw Y=v,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);Y=g;var Q=f(z,D,B);if(Q.type==="normal"){if(Y=B.done?v:h,Q.arg===y)continue;return{value:Q.arg,done:B.done}}Q.type==="throw"&&(Y=v,B.method="throw",B.arg=Q.arg)}}}function M(z,D){var B=D.method,Y=z.iterator[B];if(Y===e)return D.delegate=null,B==="throw"&&z.iterator.return&&(D.method="return",D.arg=e,M(z,D),D.method==="throw")||B!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+B+"' method")),y;var q=f(Y,z.iterator,D.arg);if(q.type==="throw")return D.method="throw",D.arg=q.arg,D.delegate=null,y;var K=q.arg;return K?K.done?(D[z.resultName]=K.value,D.next=z.nextLoc,D.method!=="return"&&(D.method="next",D.arg=e),D.delegate=null,y):K:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,y)}function P(z){var D={tryLoc:z[0]};1 in z&&(D.catchLoc=z[1]),2 in z&&(D.finallyLoc=z[2],D.afterLoc=z[3]),this.tryEntries.push(D)}function k(z){var D=z.completion||{};D.type="normal",delete D.arg,z.completion=D}function $(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(P,this),this.reset(!0)}function U(z){if(z||z===""){var D=z[s];if(D)return D.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var B=-1,Y=function q(){for(;++B<z.length;)if(i.call(z,B))return q.value=z[B],q.done=!1,q;return q.value=e,q.done=!0,q};return Y.next=Y}}throw new TypeError(cn(z)+" is not iterable")}return S.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:S,configurable:!0}),S.displayName=u(b,c,"GeneratorFunction"),n.isGeneratorFunction=function(z){var D=typeof z=="function"&&z.constructor;return!!D&&(D===S||(D.displayName||D.name)==="GeneratorFunction")},n.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,b):(z.__proto__=b,u(z,c,"GeneratorFunction")),z.prototype=Object.create(x),z},n.awrap=function(z){return{__await:z}},T(R.prototype),u(R.prototype,l,function(){return this}),n.AsyncIterator=R,n.async=function(z,D,B,Y,q){q===void 0&&(q=Promise);var K=new R(d(z,D,B,Y),q);return n.isGeneratorFunction(D)?K:K.next().then(function(H){return H.done?H.value:K.next()})},T(x),u(x,c,"Generator"),u(x,s,function(){return this}),u(x,"toString",function(){return"[object Generator]"}),n.keys=function(z){var D=Object(z),B=[];for(var Y in D)B.push(Y);return B.reverse(),function q(){for(;B.length;){var K=B.pop();if(K in D)return q.value=K,q.done=!1,q}return q.done=!0,q}},n.values=U,$.prototype={constructor:$,reset:function(D){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(k),!D)for(var B in this)B.charAt(0)==="t"&&i.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=e)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var B=this;function Y(le,Z){return H.type="throw",H.arg=D,B.next=le,Z&&(B.method="next",B.arg=e),!!Z}for(var q=this.tryEntries.length-1;q>=0;--q){var K=this.tryEntries[q],H=K.completion;if(K.tryLoc==="root")return Y("end");if(K.tryLoc<=this.prev){var G=i.call(K,"catchLoc"),Q=i.call(K,"finallyLoc");if(G&&Q){if(this.prev<K.catchLoc)return Y(K.catchLoc,!0);if(this.prev<K.finallyLoc)return Y(K.finallyLoc)}else if(G){if(this.prev<K.catchLoc)return Y(K.catchLoc,!0)}else{if(!Q)throw Error("try statement without catch or finally");if(this.prev<K.finallyLoc)return Y(K.finallyLoc)}}}},abrupt:function(D,B){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var q=this.tryEntries[Y];if(q.tryLoc<=this.prev&&i.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var K=q;break}}K&&(D==="break"||D==="continue")&&K.tryLoc<=B&&B<=K.finallyLoc&&(K=null);var H=K?K.completion:{};return H.type=D,H.arg=B,K?(this.method="next",this.next=K.finallyLoc,y):this.complete(H)},complete:function(D,B){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&B&&(this.next=B),y},finish:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var Y=this.tryEntries[B];if(Y.finallyLoc===D)return this.complete(Y.completion,Y.afterLoc),k(Y),y}},catch:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var Y=this.tryEntries[B];if(Y.tryLoc===D){var q=Y.completion;if(q.type==="throw"){var K=q.arg;k(Y)}return K}}throw Error("illegal catch attempt")},delegateYield:function(D,B,Y){return this.delegate={iterator:U(D),resultName:B,nextLoc:Y},this.method==="next"&&(this.arg=e),y}},n}function GEe(e,n,r,i,o,a,s){try{var l=e[a](s),c=l.value}catch(u){return void r(u)}l.done?n(c):Promise.resolve(c).then(i,o)}function Ss(e){return function(){var n=this,r=arguments;return new Promise(function(i,o){var a=e.apply(n,r);function s(c){GEe(a,i,o,s,l,"next",c)}function l(c){GEe(a,i,o,s,l,"throw",c)}s(void 0)})}}var dk=ee({},cje),oPt=dk.version,FY=dk.render,aPt=dk.unmountComponentAtNode,L9;try{var sPt=Number((oPt||"").split(".")[0]);sPt>=18&&(L9=dk.createRoot)}catch{}function WEe(e){var n=dk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;n&&cn(n)==="object"&&(n.usingClientEntryPoint=e)}var B8="__rc_react_root__";function lPt(e,n){WEe(!0);var r=n[B8]||L9(n);WEe(!1),r.render(e),n[B8]=r}function cPt(e,n){FY==null||FY(e,n)}function uPt(e,n){if(L9){lPt(e,n);return}cPt(e,n)}function dPt(e){return Hre.apply(this,arguments)}function Hre(){return Hre=Ss(ri().mark(function e(n){return ri().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.resolve().then(function(){var o;(o=n[B8])===null||o===void 0||o.unmount(),delete n[B8]}));case 1:case"end":return i.stop()}},e)})),Hre.apply(this,arguments)}function fPt(e){aPt(e)}function pPt(e){return zre.apply(this,arguments)}function zre(){return zre=Ss(ri().mark(function e(n){return ri().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(L9===void 0){i.next=2;break}return i.abrupt("return",dPt(n));case 2:fPt(n);case 3:case"end":return i.stop()}},e)})),zre.apply(this,arguments)}const hPt=(e,n)=>(uPt(e,n),()=>pPt(n));let gPt=hPt;function Tue(){return gPt}const BY=()=>({height:0,opacity:0}),YEe=e=>{const{scrollHeight:n}=e;return{height:n,opacity:1}},mPt=e=>({height:e?e.offsetHeight:0}),jY=(e,n)=>(n==null?void 0:n.deadline)===!0||n.propertyName==="height",gA=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:hA}-motion-collapse`,onAppearStart:BY,onEnterStart:BY,onAppearActive:YEe,onEnterActive:YEe,onLeaveStart:mPt,onLeaveActive:BY,onAppearEnd:jY,onEnterEnd:jY,onLeaveEnd:jY,motionDeadline:500}},Kl=(e,n,r)=>r!==void 0?r:`${e}-${n}`,fk=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var n=e.getBBox(),r=n.width,i=n.height;if(r||i)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,s=o.height;if(a||s)return!0}}return!1},vPt=e=>{const{componentCls:n,colorPrimary:r}=e;return{[n]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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(",")}}}}},yPt=b7e("Wave",e=>[vPt(e)]),$9=`${hA}-wave-target`;function UY(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function _Pt(e){const{borderTopColor:n,borderColor:r,backgroundColor:i}=getComputedStyle(e);return UY(n)?n:UY(r)?r:UY(i)?i:null}function HY(e){return Number.isNaN(e)?0:e}const bPt=e=>{const{className:n,target:r,component:i,registerUnmount:o}=e,a=m.useRef(null),s=m.useRef(null);m.useEffect(()=>{s.current=o()},[]);const[l,c]=m.useState(null),[u,d]=m.useState([]),[f,p]=m.useState(0),[h,g]=m.useState(0),[v,y]=m.useState(0),[_,S]=m.useState(0),[b,E]=m.useState(!1),w={left:f,top:h,width:v,height:_,borderRadius:u.map(T=>`${T}px`).join(" ")};l&&(w["--wave-color"]=l);function C(){const T=getComputedStyle(r);c(_Pt(r));const R=T.position==="static",{borderLeftWidth:O,borderTopWidth:M}=T;p(R?r.offsetLeft:HY(-parseFloat(O))),g(R?r.offsetTop:HY(-parseFloat(M))),y(r.offsetWidth),S(r.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:k,borderBottomLeftRadius:$,borderBottomRightRadius:U}=T;d([P,k,U,$].map(z=>HY(parseFloat(z))))}if(m.useEffect(()=>{if(r){const T=Dr(()=>{C(),E(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(C),R.observe(r)),()=>{Dr.cancel(T),R==null||R.disconnect()}}},[]),!b)return null;const x=(i==="Checkbox"||i==="Radio")&&(r==null?void 0:r.classList.contains($9));return m.createElement(Ws,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(T,R)=>{var O,M;if(R.deadline||R.propertyName==="opacity"){const P=(O=a.current)===null||O===void 0?void 0:O.parentElement;(M=s.current)===null||M===void 0||M.call(s).then(()=>{P==null||P.remove()})}return!1}},(T,R)=>{let{className:O}=T;return m.createElement("div",{ref:Il(a,R),className:Ce(n,O,{"wave-quick":x}),style:w})})},SPt=(e,n)=>{var r;const{component:i}=n;if(i==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=Tue();let s=null;function l(){return s}s=a(m.createElement(bPt,Object.assign({},n,{target:e,registerUnmount:l})),o)},EPt=(e,n,r)=>{const{wave:i}=m.useContext(Cn),[,o,a]=Nl(),s=Sr(u=>{const d=e.current;if(i!=null&&i.disabled||!d)return;const f=d.querySelector(`.${$9}`)||d,{showEffect:p}=i||{};(p||SPt)(f,{className:n,token:o,component:r,event:u,hashId:a})}),l=m.useRef(null);return u=>{Dr.cancel(l.current),l.current=Dr(()=>{s(u)})}},F9=e=>{const{children:n,disabled:r,component:i}=e,{getPrefixCls:o}=m.useContext(Cn),a=m.useRef(null),s=o("wave"),[,l]=yPt(s),c=EPt(a,Ce(s,l),i);if(V.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||r)return;const f=p=>{!fk(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!V.isValidElement(n))return n??null;const u=Ky(n)?Il(J0(n),a):a;return Ys(n,{ref:u})},Xs=e=>{const n=V.useContext(nC);return V.useMemo(()=>e?typeof e=="string"?e??n:e instanceof Function?e(n):n:n,[e,n])},CPt=e=>{const{componentCls:n}=e;return{[n]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},wPt=e=>{const{componentCls:n,antCls:r}=e;return{[n]:{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"}},[`${n}-item:empty`]:{display:"none"},[`${n}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},xPt=e=>{const{componentCls:n}=e;return{[n]:{"&-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}}}},e9e=Yr("Space",e=>{const n=wr(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[wPt(n),xPt(n),CPt(n)]},()=>({}),{resetStyle:!1});var t9e=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const B9=m.createContext(null),yg=(e,n)=>{const r=m.useContext(B9),i=m.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:a,isLastItem:s}=r,l=o==="vertical"?"-vertical-":"-";return Ce(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:s,[`${e}-compact${l}item-rtl`]:n==="rtl"})},[e,n,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:i}},TPt=e=>{let{children:n}=e;return m.createElement(B9.Provider,{value:null},n)},OPt=e=>{var{children:n}=e,r=t9e(e,["children"]);return m.createElement(B9.Provider,{value:r},n)},RPt=e=>{const{getPrefixCls:n,direction:r}=m.useContext(Cn),{size:i,direction:o,block:a,prefixCls:s,className:l,rootClassName:c,children:u}=e,d=t9e(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Xs(b=>i??b),p=n("space-compact",s),[h,g]=e9e(p),v=Ce(p,g,{[`${p}-rtl`]:r==="rtl",[`${p}-block`]:a,[`${p}-vertical`]:o==="vertical"},l,c),y=m.useContext(B9),_=Tl(u),S=m.useMemo(()=>_.map((b,E)=>{const w=(b==null?void 0:b.key)||`${p}-item-${E}`;return m.createElement(OPt,{key:w,compactSize:f,compactDirection:o,isFirstItem:E===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:E===_.length-1&&(!y||(y==null?void 0:y.isLastItem))},b)}),[i,_,y]);return _.length===0?null:h(m.createElement("div",Object.assign({className:v},d),S))};var IPt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const n9e=m.createContext(void 0),NPt=e=>{const{getPrefixCls:n,direction:r}=m.useContext(Cn),{prefixCls:i,size:o,className:a}=e,s=IPt(e,["prefixCls","size","className"]),l=n("btn-group",i),[,,c]=Nl();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const d=Ce(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:r==="rtl"},a,c);return m.createElement(n9e.Provider,{value:o},m.createElement("div",Object.assign({},s,{className:d})))},qEe=/^[\u4E00-\u9FA5]{2}$/,Vre=qEe.test.bind(qEe);function Oue(e){return e==="danger"?{danger:!0}:{type:e}}function KEe(e){return typeof e=="string"}function zY(e){return e==="text"||e==="link"}function MPt(e,n){if(e==null)return;const r=n?" ":"";return typeof e!="string"&&typeof e!="number"&&KEe(e.type)&&Vre(e.props.children)?Ys(e,{children:e.props.children.split("").join(r)}):KEe(e)?Vre(e)?V.createElement("span",null,e.split("").join(r)):V.createElement("span",null,e):U7e(e)?V.createElement("span",null,e):e}function PPt(e,n){let r=!1;const i=[];return V.Children.forEach(e,o=>{const a=typeof o,s=a==="string"||a==="number";if(r&&s){const l=i.length-1,c=i[l];i[l]=`${c}${o}`}else i.push(o);r=s}),V.Children.map(i,o=>MPt(o,n))}["default","primary","danger"].concat(Tt(oC));const Gre=m.forwardRef((e,n)=>{const{className:r,style:i,children:o,prefixCls:a}=e,s=Ce(`${a}-icon`,r);return V.createElement("span",{ref:n,className:s,style:i},o)}),XEe=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,style:o,iconClassName:a}=e,s=Ce(`${r}-loading-icon`,i);return V.createElement(Gre,{prefixCls:r,className:s,style:o,ref:n},V.createElement(Nm,{className:a}))}),VY=()=>({width:0,opacity:0,transform:"scale(0)"}),GY=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),APt=e=>{const{prefixCls:n,loading:r,existIcon:i,className:o,style:a,mount:s}=e,l=!!r;return i?V.createElement(XEe,{prefixCls:n,className:o,style:a}):V.createElement(Ws,{visible:l,motionName:`${n}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:VY,onAppearActive:GY,onEnterStart:VY,onEnterActive:GY,onLeaveStart:GY,onLeaveActive:VY},(c,u)=>{let{className:d,style:f}=c;const p=Object.assign(Object.assign({},a),f);return V.createElement(XEe,{prefixCls:n,className:Ce(o,d),style:p,ref:u})})},QEe=(e,n)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:n}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:n}}}}}),DPt=e=>{const{componentCls:n,fontSize:r,lineWidth:i,groupBorderColor:o,colorErrorHover:a}=e;return{[`${n}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${n}`]:{"&:not(:last-child)":{[`&, & > ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(i).mul(-1).equal(),[`&, & > ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[n]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${n}-icon-only`]:{fontSize:r}},QEe(`${n}-primary`,o),QEe(`${n}-danger`,a)]}};var kPt=["b"],LPt=["v"],WY=function(n){return Math.round(Number(n||0))},$Pt=function(n){if(n instanceof Gr)return n;if(n&&cn(n)==="object"&&"h"in n&&"b"in n){var r=n,i=r.b,o=Xt(r,kPt);return ee(ee({},o),{},{v:i})}return typeof n=="string"&&/hsb/.test(n)?n.replace(/hsb/,"hsv"):n},eg=function(e){Kc(r,e);var n=Iu(r);function r(i){return Ki(this,r),n.call(this,$Pt(i))}return Xi(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=WY(o.s*100),s=WY(o.b*100),l=WY(o.h),c=o.a,u="hsb(".concat(l,", ").concat(a,"%, ").concat(s,"%)"),d="hsba(".concat(l,", ").concat(a,"%, ").concat(s,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,s=Xt(o,LPt);return ee(ee({},s),{},{b:a,a:this.a})}}]),r}(Gr),FPt="rc-color-picker",zT=function(n){return n instanceof eg?n:new eg(n)},BPt=zT("#1677ff"),r9e=function(n){var r=n.offset,i=n.targetRef,o=n.containerRef,a=n.color,s=n.type,l=o.current.getBoundingClientRect(),c=l.width,u=l.height,d=i.current.getBoundingClientRect(),f=d.width,p=d.height,h=f/2,g=p/2,v=(r.x+h)/c,y=1-(r.y+g)/u,_=a.toHsb(),S=v,b=(r.x+h)/c*360;if(s)switch(s){case"hue":return zT(ee(ee({},_),{},{h:b<=0?0:b}));case"alpha":return zT(ee(ee({},_),{},{a:S<=0?0:S}))}return zT({h:_.h,s:v<=0?0:v,b:y>=1?1:y,a:_.a})},i9e=function(n,r){var i=n.toHsb();switch(r){case"hue":return{x:i.h/360*100,y:50};case"alpha":return{x:n.a*100,y:50};default:return{x:i.s*100,y:(1-i.b)*100}}},Rue=function(n){var r=n.color,i=n.prefixCls,o=n.className,a=n.style,s=n.onClick,l="".concat(i,"-color-block");return V.createElement("div",{className:Ce(l,o),style:a,onClick:s},V.createElement("div",{className:"".concat(l,"-inner"),style:{background:r}}))};function jPt(e){var n="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,i=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:n.pageX-r,pageY:n.pageY-i}}function o9e(e){var n=e.targetRef,r=e.containerRef,i=e.direction,o=e.onDragChange,a=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,u=m.useState({x:0,y:0}),d=ke(u,2),f=d[0],p=d[1],h=m.useRef(null),g=m.useRef(null);m.useEffect(function(){p(s())},[l]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",g.current),h.current=null,g.current=null}},[]);var v=function(E){var w=jPt(E),C=w.pageX,x=w.pageY,T=r.current.getBoundingClientRect(),R=T.x,O=T.y,M=T.width,P=T.height,k=n.current.getBoundingClientRect(),$=k.width,U=k.height,z=$/2,D=U/2,B=Math.max(0,Math.min(C-R,M))-z,Y=Math.max(0,Math.min(x-O,P))-D,q={x:B,y:i==="x"?f.y:Y};if($===0&&U===0||$!==U)return!1;o==null||o(q)},y=function(E){E.preventDefault(),v(E)},_=function(E){E.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",g.current),h.current=null,g.current=null,a==null||a()},S=function(E){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",g.current),!c&&(v(E),document.addEventListener("mousemove",y),document.addEventListener("mouseup",_),document.addEventListener("touchmove",y),document.addEventListener("touchend",_),h.current=y,g.current=_)};return[f,S]}var a9e=function(n){var r=n.size,i=r===void 0?"default":r,o=n.color,a=n.prefixCls;return V.createElement("div",{className:Ce("".concat(a,"-handler"),fe({},"".concat(a,"-handler-sm"),i==="small")),style:{backgroundColor:o}})},s9e=function(n){var r=n.children,i=n.style,o=n.prefixCls;return V.createElement("div",{className:"".concat(o,"-palette"),style:ee({position:"relative"},i)},r)},l9e=m.forwardRef(function(e,n){var r=e.children,i=e.x,o=e.y;return V.createElement("div",{ref:n,style:{position:"absolute",left:"".concat(i,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)}),UPt=function(n){var r=n.color,i=n.onChange,o=n.prefixCls,a=n.onChangeComplete,s=n.disabled,l=m.useRef(),c=m.useRef(),u=m.useRef(r),d=Sr(function(v){var y=r9e({offset:v,targetRef:c,containerRef:l,color:r});u.current=y,i(y)}),f=o9e({color:r,containerRef:l,targetRef:c,calculate:function(){return i9e(r)},onDragChange:d,onDragChangeComplete:function(){return a==null?void 0:a(u.current)},disabledDrag:s}),p=ke(f,2),h=p[0],g=p[1];return V.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:g,onTouchStart:g},V.createElement(s9e,{prefixCls:o},V.createElement(l9e,{x:h.x,y:h.y,ref:c},V.createElement(a9e,{color:r.toRgbString(),prefixCls:o})),V.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(r.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},HPt=function(n,r){var i=dr(n,{value:r}),o=ke(i,2),a=o[0],s=o[1],l=m.useMemo(function(){return zT(a)},[a]);return[l,s]},zPt=function(n){var r=n.colors,i=n.children,o=n.direction,a=o===void 0?"to right":o,s=n.type,l=n.prefixCls,c=m.useMemo(function(){return r.map(function(u,d){var f=zT(u);return s==="alpha"&&d===r.length-1&&(f=new eg(f.setA(1))),f.toRgbString()}).join(",")},[r,s]);return V.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(c,")")}},i)},VPt=function(n){var r=n.prefixCls,i=n.colors,o=n.disabled,a=n.onChange,s=n.onChangeComplete,l=n.color,c=n.type,u=m.useRef(),d=m.useRef(),f=m.useRef(l),p=function(w){return c==="hue"?w.getHue():w.a*100},h=Sr(function(E){var w=r9e({offset:E,targetRef:d,containerRef:u,color:l,type:c});f.current=w,a(p(w))}),g=o9e({color:l,targetRef:d,containerRef:u,calculate:function(){return i9e(l,c)},onDragChange:h,onDragChangeComplete:function(){s(p(f.current))},direction:"x",disabledDrag:o}),v=ke(g,2),y=v[0],_=v[1],S=V.useMemo(function(){if(c==="hue"){var E=l.toHsb();E.s=1,E.b=1,E.a=1;var w=new eg(E);return w}return l},[l,c]),b=V.useMemo(function(){return i.map(function(E){return"".concat(E.color," ").concat(E.percent,"%")})},[i]);return V.createElement("div",{ref:u,className:Ce("".concat(r,"-slider"),"".concat(r,"-slider-").concat(c)),onMouseDown:_,onTouchStart:_},V.createElement(s9e,{prefixCls:r},V.createElement(l9e,{x:y.x,y:y.y,ref:d},V.createElement(a9e,{size:"small",color:S.toHexString(),prefixCls:r})),V.createElement(zPt,{colors:b,type:c,prefixCls:r})))};function GPt(e){return m.useMemo(function(){var n=e||{},r=n.slider;return[r||VPt]},[e])}var WPt=[{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}],YPt=m.forwardRef(function(e,n){var r=e.value,i=e.defaultValue,o=e.prefixCls,a=o===void 0?FPt:o,s=e.onChange,l=e.onChangeComplete,c=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,p=f===void 0?!1:f,h=e.disabled,g=h===void 0?!1:h,v=e.components,y=GPt(v),_=ke(y,1),S=_[0],b=HPt(i||BPt,r),E=ke(b,2),w=E[0],C=E[1],x=m.useMemo(function(){return w.setA(1).toRgbString()},[w]),T=function(Y,q){r||C(Y),s==null||s(Y,q)},R=function(Y){return new eg(w.setHue(Y))},O=function(Y){return new eg(w.setA(Y/100))},M=function(Y){T(R(Y),{type:"hue",value:Y})},P=function(Y){T(O(Y),{type:"alpha",value:Y})},k=function(Y){l&&l(R(Y))},$=function(Y){l&&l(O(Y))},U=Ce("".concat(a,"-panel"),c,fe({},"".concat(a,"-panel-disabled"),g)),z={prefixCls:a,disabled:g,color:w},D=V.createElement(V.Fragment,null,V.createElement(UPt,ft({onChange:T},z,{onChangeComplete:l})),V.createElement("div",{className:"".concat(a,"-slider-container")},V.createElement("div",{className:Ce("".concat(a,"-slider-group"),fe({},"".concat(a,"-slider-group-disabled-alpha"),p))},V.createElement(S,ft({},z,{type:"hue",colors:WPt,min:0,max:359,value:w.getHue(),onChange:M,onChangeComplete:k})),!p&&V.createElement(S,ft({},z,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:x}],min:0,max:100,value:w.a*100,onChange:P,onChangeComplete:$}))),V.createElement(Rue,{color:w.toRgbString(),prefixCls:a})));return V.createElement("div",{className:U,style:u,ref:n},typeof d=="function"?d(D):D)});const o2=(e,n)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,n?8:6))||"",qPt=(e,n)=>e?o2(e,n):"";let sf=function(){function e(n){Ki(this,e);var r;if(this.cleared=!1,n instanceof e){this.metaColor=n.metaColor.clone(),this.colors=(r=n.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=n.cleared;return}const i=Array.isArray(n);i&&n.length?(this.colors=n.map(o=>{let{color:a,percent:s}=o;return{color:new e(a),percent:s}}),this.metaColor=new eg(this.colors[0].color.metaColor)):this.metaColor=new eg(i?"":n),(!n||i&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Xi(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return qPt(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:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((i,o)=>{const a=r.colors[o];return i.percent===a.percent&&i.color.equals(a.color)}):this.toHexString()===r.toHexString()}}])}();var KPt={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"},XPt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:KPt}))},w0=m.forwardRef(XPt),c9e=V.forwardRef(function(e,n){var r=e.prefixCls,i=e.forceRender,o=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=e.classNames,d=e.styles,f=V.useState(l||i),p=ke(f,2),h=p[0],g=p[1];return V.useEffect(function(){(i||l)&&g(!0)},[i,l]),h?V.createElement("div",{ref:n,className:Ce("".concat(r,"-content"),fe(fe({},"".concat(r,"-content-active"),l),"".concat(r,"-content-inactive"),!l),o),style:a,role:c},V.createElement("div",{className:Ce("".concat(r,"-content-box"),u==null?void 0:u.body),style:d==null?void 0:d.body},s)):null});c9e.displayName="PanelContent";var QPt=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],u9e=V.forwardRef(function(e,n){var r=e.showArrow,i=r===void 0?!0:r,o=e.headerClass,a=e.isActive,s=e.onItemClick,l=e.forceRender,c=e.className,u=e.classNames,d=u===void 0?{}:u,f=e.styles,p=f===void 0?{}:f,h=e.prefixCls,g=e.collapsible,v=e.accordion,y=e.panelKey,_=e.extra,S=e.header,b=e.expandIcon,E=e.openMotion,w=e.destroyInactivePanel,C=e.children,x=Xt(e,QPt),T=g==="disabled",R=_!=null&&typeof _!="boolean",O=fe(fe(fe({onClick:function(){s==null||s(y)},onKeyDown:function(D){(D.key==="Enter"||D.keyCode===At.ENTER||D.which===At.ENTER)&&(s==null||s(y))},role:v?"tab":"button"},"aria-expanded",a),"aria-disabled",T),"tabIndex",T?-1:0),M=typeof b=="function"?b(e):V.createElement("i",{className:"arrow"}),P=M&&V.createElement("div",ft({className:"".concat(h,"-expand-icon")},["header","icon"].includes(g)?O:{}),M),k=Ce("".concat(h,"-item"),fe(fe({},"".concat(h,"-item-active"),a),"".concat(h,"-item-disabled"),T),c),$=Ce(o,"".concat(h,"-header"),fe({},"".concat(h,"-collapsible-").concat(g),!!g),d.header),U=ee({className:$,style:p.header},["header","icon"].includes(g)?{}:O);return V.createElement("div",ft({},x,{ref:n,className:k}),V.createElement("div",U,i&&P,V.createElement("span",ft({className:"".concat(h,"-header-text")},g==="header"?O:{}),S),R&&V.createElement("div",{className:"".concat(h,"-extra")},_)),V.createElement(Ws,ft({visible:a,leavedClassName:"".concat(h,"-content-hidden")},E,{forceRender:l,removeOnLeave:w}),function(z,D){var B=z.className,Y=z.style;return V.createElement(c9e,{ref:D,prefixCls:h,className:B,classNames:d,style:Y,styles:p,isActive:a,forceRender:l,role:v?"tabpanel":void 0},C)}))}),ZPt=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],JPt=function(n,r){var i=r.prefixCls,o=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon;return n.map(function(f,p){var h=f.children,g=f.label,v=f.key,y=f.collapsible,_=f.onItemClick,S=f.destroyInactivePanel,b=Xt(f,ZPt),E=String(v??p),w=y??a,C=S??s,x=function(O){w!=="disabled"&&(l(O),_==null||_(O))},T=!1;return o?T=c[0]===E:T=c.indexOf(E)>-1,V.createElement(u9e,ft({},b,{prefixCls:i,key:E,panelKey:E,isActive:T,accordion:o,openMotion:u,expandIcon:d,header:g,collapsible:w,onItemClick:x,destroyInactivePanel:C}),h)})},eAt=function(n,r,i){if(!n)return null;var o=i.prefixCls,a=i.accordion,s=i.collapsible,l=i.destroyInactivePanel,c=i.onItemClick,u=i.activeKey,d=i.openMotion,f=i.expandIcon,p=n.key||String(r),h=n.props,g=h.header,v=h.headerClass,y=h.destroyInactivePanel,_=h.collapsible,S=h.onItemClick,b=!1;a?b=u[0]===p:b=u.indexOf(p)>-1;var E=_??s,w=function(T){E!=="disabled"&&(c(T),S==null||S(T))},C={key:p,panelKey:p,header:g,headerClass:v,isActive:b,prefixCls:o,destroyInactivePanel:y??l,openMotion:d,accordion:a,children:n.props.children,onItemClick:w,expandIcon:f,collapsible:E};return typeof n.type=="string"?n:(Object.keys(C).forEach(function(x){typeof C[x]>"u"&&delete C[x]}),V.cloneElement(n,C))};function tAt(e,n,r){return Array.isArray(e)?JPt(e,r):Tl(n).map(function(i,o){return eAt(i,o,r)})}function nAt(e){var n=e;if(!Array.isArray(n)){var r=cn(n);n=r==="number"||r==="string"?[n]:[]}return n.map(function(i){return String(i)})}var rAt=V.forwardRef(function(e,n){var r=e.prefixCls,i=r===void 0?"rc-collapse":r,o=e.destroyInactivePanel,a=o===void 0?!1:o,s=e.style,l=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,v=e.onChange,y=e.items,_=Ce(i,c),S=dr([],{value:h,onChange:function(R){return v==null?void 0:v(R)},defaultValue:g,postState:nAt}),b=ke(S,2),E=b[0],w=b[1],C=function(R){return w(function(){if(l)return E[0]===R?[]:[R];var O=E.indexOf(R),M=O>-1;return M?E.filter(function(P){return P!==R}):[].concat(Tt(E),[R])})};qi(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var x=tAt(y,u,{prefixCls:i,accordion:l,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:a,onItemClick:C,activeKey:E});return V.createElement("div",ft({ref:n,className:_,style:s,role:l?"tablist":void 0},Va(e,{aria:!0,data:!0})),x)});const Iue=Object.assign(rAt,{Panel:u9e});Iue.Panel;const iAt=m.forwardRef((e,n)=>{const{getPrefixCls:r}=m.useContext(Cn),{prefixCls:i,className:o,showArrow:a=!0}=e,s=r("collapse",i),l=Ce({[`${s}-no-arrow`]:!a},o);return m.createElement(Iue.Panel,Object.assign({ref:n},e,{prefixCls:s,className:l}))}),pk=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`}}}),oAt=e=>({animationDuration:e,animationFillMode:"both"}),aAt=e=>({animationDuration:e,animationFillMode:"both"}),j9=function(e,n,r,i){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
||
${a}${e}-enter,
|
||
${a}${e}-appear
|
||
`]:Object.assign(Object.assign({},oAt(i)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},aAt(i)),{animationPlayState:"paused"}),[`
|
||
${a}${e}-enter${e}-enter-active,
|
||
${a}${e}-appear${e}-appear-active
|
||
`]:{animationName:n,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},sAt=new kr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),lAt=new kr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Nue=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:r}=e,i=`${r}-fade`,o=n?"&":"";return[j9(i,sAt,lAt,e.motionDurationMid,n),{[`
|
||
${o}${i}-enter,
|
||
${o}${i}-appear
|
||
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${i}-leave`]:{animationTimingFunction:"linear"}}]},cAt=new kr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uAt=new kr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),dAt=new kr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fAt=new kr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pAt=new kr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hAt=new kr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gAt=new kr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mAt=new kr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),vAt={"move-up":{inKeyframes:gAt,outKeyframes:mAt},"move-down":{inKeyframes:cAt,outKeyframes:uAt},"move-left":{inKeyframes:dAt,outKeyframes:fAt},"move-right":{inKeyframes:pAt,outKeyframes:hAt}},kO=(e,n)=>{const{antCls:r}=e,i=`${r}-${n}`,{inKeyframes:o,outKeyframes:a}=vAt[n];return[j9(i,o,a,e.motionDurationMid),{[`
|
||
${i}-enter,
|
||
${i}-appear
|
||
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},U9=new kr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),H9=new kr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),z9=new kr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),V9=new kr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),yAt=new kr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),_At=new kr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),bAt=new kr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),SAt=new kr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),EAt={"slide-up":{inKeyframes:U9,outKeyframes:H9},"slide-down":{inKeyframes:z9,outKeyframes:V9},"slide-left":{inKeyframes:yAt,outKeyframes:_At},"slide-right":{inKeyframes:bAt,outKeyframes:SAt}},Mm=(e,n)=>{const{antCls:r}=e,i=`${r}-${n}`,{inKeyframes:o,outKeyframes:a}=EAt[n];return[j9(i,o,a,e.motionDurationMid),{[`
|
||
${i}-enter,
|
||
${i}-appear
|
||
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Mue=new kr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),CAt=new kr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ZEe=new kr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),JEe=new kr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),wAt=new kr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),xAt=new kr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),TAt=new kr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),OAt=new kr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),RAt=new kr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),IAt=new kr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),NAt=new kr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),MAt=new kr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),PAt={zoom:{inKeyframes:Mue,outKeyframes:CAt},"zoom-big":{inKeyframes:ZEe,outKeyframes:JEe},"zoom-big-fast":{inKeyframes:ZEe,outKeyframes:JEe},"zoom-left":{inKeyframes:TAt,outKeyframes:OAt},"zoom-right":{inKeyframes:RAt,outKeyframes:IAt},"zoom-up":{inKeyframes:wAt,outKeyframes:xAt},"zoom-down":{inKeyframes:NAt,outKeyframes:MAt}},aI=(e,n)=>{const{antCls:r}=e,i=`${r}-${n}`,{inKeyframes:o,outKeyframes:a}=PAt[n];return[j9(i,o,a,n==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
||
${i}-enter,
|
||
${i}-appear
|
||
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},AAt=e=>{const{componentCls:n,contentBg:r,padding:i,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:p,colorTextHeading:h,colorTextDisabled:g,fontSizeLG:v,lineHeight:y,lineHeightLG:_,marginSM:S,paddingSM:b,paddingLG:E,paddingXS:w,motionDurationSlow:C,fontSizeIcon:x,contentPadding:T,fontHeight:R,fontHeightLG:O}=e,M=`${Ye(u)} ${d} ${f}`;return{[n]:Object.assign(Object.assign({},li(e)),{backgroundColor:o,border:M,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${n}-item`]:{borderBottom:M,"&:first-child":{[`
|
||
&,
|
||
& > ${n}-header`]:{borderRadius:`${Ye(c)} ${Ye(c)} 0 0`}},"&:last-child":{[`
|
||
&,
|
||
& > ${n}-header`]:{borderRadius:`0 0 ${Ye(c)} ${Ye(c)}`}},[`> ${n}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:y,cursor:"pointer",transition:`all ${C}, visibility 0s`},Op(e)),{[`> ${n}-header-text`]:{flex:"auto"},[`${n}-expand-icon`]:{height:R,display:"flex",alignItems:"center",paddingInlineEnd:S},[`${n}-arrow`]:Object.assign(Object.assign({},ew()),{fontSize:x,transition:`transform ${C}`,svg:{transition:`transform ${C}`}}),[`${n}-header-text`]:{marginInlineEnd:"auto"}}),[`${n}-collapsible-header`]:{cursor:"default",[`${n}-header-text`]:{flex:"none",cursor:"pointer"}},[`${n}-collapsible-icon`]:{cursor:"unset",[`${n}-expand-icon`]:{cursor:"pointer"}}},[`${n}-content`]:{color:p,backgroundColor:r,borderTop:M,[`& > ${n}-content-box`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${n}-item`]:{[`> ${n}-header`]:{padding:s,paddingInlineStart:w,[`> ${n}-expand-icon`]:{marginInlineStart:e.calc(b).sub(w).equal()}},[`> ${n}-content > ${n}-content-box`]:{padding:b}}},"&-large":{[`> ${n}-item`]:{fontSize:v,lineHeight:_,[`> ${n}-header`]:{padding:l,paddingInlineStart:i,[`> ${n}-expand-icon`]:{height:O,marginInlineStart:e.calc(E).sub(i).equal()}},[`> ${n}-content > ${n}-content-box`]:{padding:E}}},[`${n}-item:last-child`]:{borderBottom:0,[`> ${n}-content`]:{borderRadius:`0 0 ${Ye(c)} ${Ye(c)}`}},[`& ${n}-item-disabled > ${n}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${n}-icon-position-end`]:{[`& > ${n}-item`]:{[`> ${n}-header`]:{[`${n}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:S}}}}})}},DAt=e=>{const{componentCls:n}=e,r=`> ${n}-item > ${n}-header ${n}-arrow`;return{[`${n}-rtl`]:{[r]:{transform:"rotate(180deg)"}}}},kAt=e=>{const{componentCls:n,headerBg:r,paddingXXS:i,colorBorder:o}=e;return{[`${n}-borderless`]:{backgroundColor:r,border:0,[`> ${n}-item`]:{borderBottom:`1px solid ${o}`},[`
|
||
> ${n}-item:last-child,
|
||
> ${n}-item:last-child ${n}-header
|
||
`]:{borderRadius:0},[`> ${n}-item:last-child`]:{borderBottom:0},[`> ${n}-item > ${n}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${n}-item > ${n}-content > ${n}-content-box`]:{paddingTop:i}}}},LAt=e=>{const{componentCls:n,paddingSM:r}=e;return{[`${n}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${n}-item`]:{borderBottom:0,[`> ${n}-content`]:{backgroundColor:"transparent",border:0,[`> ${n}-content-box`]:{paddingBlock:r}}}}}},$At=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),FAt=Yr("Collapse",e=>{const n=wr(e,{collapseHeaderPaddingSM:`${Ye(e.paddingXS)} ${Ye(e.paddingSM)}`,collapseHeaderPaddingLG:`${Ye(e.padding)} ${Ye(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[AAt(n),kAt(n),LAt(n),DAt(n),pk(n)]},$At),BAt=m.forwardRef((e,n)=>{const{getPrefixCls:r,direction:i,collapse:o}=m.useContext(Cn),{prefixCls:a,className:s,rootClassName:l,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:h,expandIcon:g}=e,v=Xs(M=>{var P;return(P=f??M)!==null&&P!==void 0?P:"middle"}),y=r("collapse",a),_=r(),[S,b,E]=FAt(y),w=m.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),C=g??(o==null?void 0:o.expandIcon),x=m.useCallback(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const P=typeof C=="function"?C(M):m.createElement(w0,{rotate:M.isActive?i==="rtl"?-90:90:void 0,"aria-label":M.isActive?"expanded":"collapsed"});return Ys(P,()=>{var k;return{className:Ce((k=P==null?void 0:P.props)===null||k===void 0?void 0:k.className,`${y}-arrow`)}})},[C,y]),T=Ce(`${y}-icon-position-${w}`,{[`${y}-borderless`]:!u,[`${y}-rtl`]:i==="rtl",[`${y}-ghost`]:!!d,[`${y}-${v}`]:v!=="middle"},o==null?void 0:o.className,s,l,b,E),R=Object.assign(Object.assign({},gA(_)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),O=m.useMemo(()=>h?Tl(h).map((M,P)=>{var k,$;const U=M.props;if(U!=null&&U.disabled){const z=(k=M.key)!==null&&k!==void 0?k:String(P),D=Object.assign(Object.assign({},Wr(M.props,["disabled"])),{key:z,collapsible:($=U.collapsible)!==null&&$!==void 0?$:"disabled"});return Ys(M,D)}return M}):null,[h]);return S(m.createElement(Iue,Object.assign({ref:n,openMotion:R},Wr(e,["rootClassName"]),{expandIcon:x,prefixCls:y,className:T,style:Object.assign(Object.assign({},o==null?void 0:o.style),c)}),O))}),d9e=Object.assign(BAt,{Panel:iAt}),Gc=e=>e instanceof sf?e:new sf(e),u6=e=>Math.round(Number(e||0)),Pue=e=>u6(e.toHsb().a*100),d6=(e,n)=>{const r=e.toRgb();if(!r.r&&!r.g&&!r.b){const i=e.toHsb();return i.a=1,Gc(i)}return r.a=1,Gc(r)},f9e=(e,n)=>{const r=[{percent:0,color:e[0].color}].concat(Tt(e),[{percent:100,color:e[e.length-1].color}]);for(let i=0;i<r.length-1;i+=1){const o=r[i].percent,a=r[i+1].percent,s=r[i].color,l=r[i+1].color;if(o<=n&&n<=a){const c=a-o;if(c===0)return s;const u=(n-o)/c*100,d=new eg(s),f=new eg(l);return d.mix(f,u).toRgbString()}}return""},YY=e=>e.map(n=>(n.colors=n.colors.map(Gc),n)),p9e=(e,n)=>{const{r,g:i,b:o,a}=e.toRgb(),s=new eg(e.toRgbString()).onBackground(n).toHsv();return a<=.5?s.v>.5:r*.299+i*.587+o*.114>192},e1e=(e,n)=>{var r;return`panel-${(r=e.key)!==null&&r!==void 0?r:n}`},jAt=e=>{let{prefixCls:n,presets:r,value:i,onChange:o}=e;const[a]=Nu("ColorPicker"),[,s]=Nl(),[l]=dr(YY(r),{value:YY(r),postState:YY}),c=`${n}-presets`,u=m.useMemo(()=>l.reduce((p,h,g)=>{const{defaultOpen:v=!0}=h;return v&&p.push(e1e(h,g)),p},[]),[l]),d=p=>{o==null||o(p)},f=l.map((p,h)=>{var g;return{key:e1e(p,h),label:V.createElement("div",{className:`${c}-label`},p==null?void 0:p.label),children:V.createElement("div",{className:`${c}-items`},Array.isArray(p==null?void 0:p.colors)&&((g=p.colors)===null||g===void 0?void 0:g.length)>0?p.colors.map((v,y)=>V.createElement(Rue,{key:`preset-${y}-${v.toHexString()}`,color:Gc(v).toRgbString(),prefixCls:n,className:Ce(`${c}-color`,{[`${c}-color-checked`]:v.toHexString()===(i==null?void 0:i.toHexString()),[`${c}-color-bright`]:p9e(v,s.colorBgElevated)}),onClick:()=>d(v)})):V.createElement("span",{className:`${c}-empty`},a.presetEmpty))}});return V.createElement("div",{className:c},V.createElement(d9e,{defaultActiveKey:u,ghost:!0,items:f}))},h9e=e=>{const{paddingInline:n,onlyIconSize:r}=e;return wr(e,{buttonPaddingHorizontal:n,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},g9e=e=>{var n,r,i,o,a,s;const l=(n=e.contentFontSize)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,u=(i=e.contentFontSizeLG)!==null&&i!==void 0?i:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:l6(l),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:l6(c),p=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:l6(u),h=p9e(new sf(e.colorBgSolid),"#fff")?"#000":"#fff";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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,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,solidTextColor:h,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*p)/2-e.lineWidth,0)}},UAt=e=>{const{componentCls:n,iconCls:r,fontWeight:i,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:s,marginXS:l,calc:c}=e;return{[n]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:i,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ye(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${n}-icon > svg`]:ew(),"> a":{color:"currentColor"},"&:not(:disabled)":Op(e),[`&${n}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${n}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${n}-icon-only`]:{paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"}},[`&${n}-loading`]:{opacity:o,cursor:"default"},[`${n}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${a} ${s}`).join(",")},[`&:not(${n}-icon-end)`]:{[`${n}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${n}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},m9e=(e,n,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":n,"&:active":r}}),HAt=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),zAt=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),VAt=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Aue=(e,n,r,i,o,a,s,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:n,borderColor:i||void 0,boxShadow:"none"},m9e(e,Object.assign({background:n},s),Object.assign({background:n},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),GAt=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},VAt(e))}),WAt=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),G9=(e,n,r,i)=>{const a=i&&["link","text"].includes(i)?WAt:GAt;return Object.assign(Object.assign({},a(e)),m9e(e.componentCls,n,r))},W9=(e,n,r,i,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:n,background:r},G9(e,i,o))}),Y9=(e,n,r,i,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:n,background:r},G9(e,i,o))}),q9=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),K9=(e,n,r,i)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:n},G9(e,r,i))}),x0=(e,n,r,i,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:n,boxShadow:"none"},G9(e,i,o,r))}),YAt=e=>{const{componentCls:n}=e;return oC.reduce((r,i)=>{const o=e[`${i}6`],a=e[`${i}1`],s=e[`${i}5`],l=e[`${i}2`],c=e[`${i}3`],u=e[`${i}7`],d=`0 ${Ye(e.controlOutlineWidth)} 0 ${e[`${i}1`]}`;return Object.assign(Object.assign({},r),{[`&${n}-color-${i}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:d},W9(e,e.colorTextLightSolid,o,{background:s},{background:u})),Y9(e,o,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),q9(e)),K9(e,a,{background:l},{background:c})),x0(e,o,"link",{color:s},{color:u})),x0(e,o,"text",{color:s,background:a},{color:u,background:c}))})},{})},qAt=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},W9(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),q9(e)),K9(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),x0(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Aue(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),KAt=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Y9(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),q9(e)),K9(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),x0(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Aue(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),XAt=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},W9(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Y9(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),q9(e)),K9(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),x0(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),x0(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Aue(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),QAt=e=>{const{componentCls:n}=e;return Object.assign({[`${n}-color-default`]:qAt(e),[`${n}-color-primary`]:KAt(e),[`${n}-color-dangerous`]:XAt(e)},YAt(e))},ZAt=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Y9(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),x0(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),W9(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),x0(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Due=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:i,fontSize:o,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[n]:{fontSize:o,height:i,padding:`${Ye(c)} ${Ye(s)}`,borderRadius:a,[`&${r}-icon-only`]:{width:i,[l]:{fontSize:u}}}},{[`${r}${r}-circle${n}`]:HAt(e)},{[`${r}${r}-round${n}`]:zAt(e)}]},JAt=e=>{const n=wr(e,{fontSize:e.contentFontSize});return Due(n,e.componentCls)},eDt=e=>{const n=wr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Due(n,`${e.componentCls}-sm`)},tDt=e=>{const n=wr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Due(n,`${e.componentCls}-lg`)},nDt=e=>{const{componentCls:n}=e;return{[n]:{[`&${n}-block`]:{width:"100%"}}}},rDt=Yr("Button",e=>{const n=h9e(e);return[UAt(n),JAt(n),eDt(n),tDt(n),nDt(n),QAt(n),ZAt(n),DPt(n)]},g9e,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function iDt(e,n,r){const{focusElCls:i,focus:o,borderElCls:a}=r,s=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${n}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},i?{[`&${i}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function oDt(e,n,r){const{borderElCls:i}=r,o=i?`> ${i}`:"";return{[`&-item:not(${n}-first-item):not(${n}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${n}-last-item)${n}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${n}-first-item)${n}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function nw(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,i=`${r}-compact`;return{[i]:Object.assign(Object.assign({},iDt(e,i,n)),oDt(r,i,n))}}function aDt(e,n){return{[`&-item:not(${n}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function sDt(e,n){return{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function lDt(e){const n=`${e.componentCls}-compact-vertical`;return{[n]:Object.assign(Object.assign({},aDt(e,n)),sDt(e.componentCls,n))}}const cDt=e=>{const{componentCls:n,colorPrimaryHover:r,lineWidth:i,calc:o}=e,a=o(i).mul(-1).equal(),s=l=>{const c=`${n}-compact${l?"-vertical":""}-item${n}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:l?a:0,insetInlineStart:l?0:a,backgroundColor:r,content:'""',width:l?"100%":i,height:l?i:"100%"}}};return Object.assign(Object.assign({},s()),s(!0))},uDt=Sue(["Button","compact"],e=>{const n=h9e(e);return[nw(n),lDt(n),cDt(n)]},g9e);var dDt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function fDt(e){if(typeof e=="object"&&e){let n=e==null?void 0:e.delay;return n=!Number.isNaN(n)&&typeof n=="number"?n:0,{loading:n<=0,delay:n}}return{loading:!!e,delay:0}}const pDt={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},hDt=V.forwardRef((e,n)=>{var r,i,o,a;const{loading:s=!1,prefixCls:l,color:c,variant:u,type:d,danger:f=!1,shape:p="default",size:h,styles:g,disabled:v,className:y,rootClassName:_,children:S,icon:b,iconPosition:E="start",ghost:w=!1,block:C=!1,htmlType:x="button",classNames:T,style:R={},autoInsertSpace:O,autoFocus:M}=e,P=dDt(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),k=d||"default",[$,U]=m.useMemo(()=>{if(c&&u)return[c,u];const $e=pDt[k]||[];return f?["danger",$e[1]]:$e},[d,c,u,f]),D=$==="danger"?"dangerous":$,{getPrefixCls:B,direction:Y,button:q}=m.useContext(Cn),K=(r=O??(q==null?void 0:q.autoInsertSpace))!==null&&r!==void 0?r:!0,H=B("btn",l),[G,Q,le]=rDt(H),Z=m.useContext(xs),j=v??Z,F=m.useContext(n9e),te=m.useMemo(()=>fDt(s),[s]),[oe,de]=m.useState(te.loading),[pe,me]=m.useState(!1),ve=m.useRef(null),he=vg(n,ve),be=m.Children.count(S)===1&&!b&&!zY(U),we=m.useRef(!0);V.useEffect(()=>(we.current=!1,()=>{we.current=!0}),[]),m.useEffect(()=>{let $e=null;te.delay>0?$e=setTimeout(()=>{$e=null,de(!0)},te.delay):de(te.loading);function ge(){$e&&(clearTimeout($e),$e=null)}return ge},[te]),m.useEffect(()=>{if(!ve.current||!K)return;const $e=ve.current.textContent||"";be&&Vre($e)?pe||me(!0):pe&&me(!1)}),m.useEffect(()=>{M&&ve.current&&ve.current.focus()},[]);const De=V.useCallback($e=>{var ge;if(oe||j){$e.preventDefault();return}(ge=e.onClick)===null||ge===void 0||ge.call(e,$e)},[e.onClick,oe,j]),{compactSize:Ae,compactItemClassnames:Ee}=yg(H,Y),Re={large:"lg",small:"sm",middle:void 0},Te=Xs($e=>{var ge,Ve;return(Ve=(ge=h??Ae)!==null&&ge!==void 0?ge:F)!==null&&Ve!==void 0?Ve:$e}),Oe=Te&&(i=Re[Te])!==null&&i!==void 0?i:"",Ne=oe?"loading":b,je=Wr(P,["navigate"]),ne=Ce(H,Q,le,{[`${H}-${p}`]:p!=="default"&&p,[`${H}-${k}`]:k,[`${H}-dangerous`]:f,[`${H}-color-${D}`]:D,[`${H}-variant-${U}`]:U,[`${H}-${Oe}`]:Oe,[`${H}-icon-only`]:!S&&S!==0&&!!Ne,[`${H}-background-ghost`]:w&&!zY(U),[`${H}-loading`]:oe,[`${H}-two-chinese-chars`]:pe&&K&&!oe,[`${H}-block`]:C,[`${H}-rtl`]:Y==="rtl",[`${H}-icon-end`]:E==="end"},Ee,y,_,q==null?void 0:q.className),J=Object.assign(Object.assign({},q==null?void 0:q.style),R),ae=Ce(T==null?void 0:T.icon,(o=q==null?void 0:q.classNames)===null||o===void 0?void 0:o.icon),Se=Object.assign(Object.assign({},(g==null?void 0:g.icon)||{}),((a=q==null?void 0:q.styles)===null||a===void 0?void 0:a.icon)||{}),xe=b&&!oe?V.createElement(Gre,{prefixCls:H,className:ae,style:Se},b):typeof s=="object"&&s.icon?V.createElement(Gre,{prefixCls:H,className:ae,style:Se},s.icon):V.createElement(APt,{existIcon:!!b,prefixCls:H,loading:oe,mount:we.current}),ue=S||S===0?PPt(S,be&&K):null;if(je.href!==void 0)return G(V.createElement("a",Object.assign({},je,{className:Ce(ne,{[`${H}-disabled`]:j}),href:j?void 0:je.href,style:J,onClick:De,ref:he,tabIndex:j?-1:0}),xe,ue));let Me=V.createElement("button",Object.assign({},P,{type:x,className:ne,style:J,onClick:De,disabled:j,ref:he}),xe,ue,Ee&&V.createElement(uDt,{prefixCls:H}));return zY(U)||(Me=V.createElement(F9,{component:"Button",disabled:oe},Me)),G(Me)}),qn=hDt;qn.Group=NPt;qn.__ANT_BUTTON=!0;function qY(e){return!!(e!=null&&e.then)}const kue=e=>{const{type:n,children:r,prefixCls:i,buttonProps:o,close:a,autoFocus:s,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=m.useRef(!1),p=m.useRef(null),[h,g]=iC(!1),v=function(){a==null||a.apply(void 0,arguments)};m.useEffect(()=>{let S=null;return s&&(S=setTimeout(()=>{var b;(b=p.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{S&&clearTimeout(S)}},[]);const y=S=>{qY(S)&&(g(!0),S.then(function(){g(!1,!0),v.apply(void 0,arguments),f.current=!1},b=>{if(g(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(b)}))},_=S=>{if(f.current)return;if(f.current=!0,!d){v();return}let b;if(l){if(b=d(S),u&&!qY(b)){f.current=!1,v(S);return}}else if(d.length)b=d(a),f.current=!1;else if(b=d(),!qY(b)){v();return}y(b)};return m.createElement(qn,Object.assign({},Oue(n),{onClick:_,loading:h,prefixCls:i},o,{ref:p}),r)},hk=V.createContext({}),{Provider:v9e}=hk,t1e=()=>{const{autoFocusButton:e,cancelButtonProps:n,cancelTextLocale:r,isSilent:i,mergedOkCancel:o,rootPrefixCls:a,close:s,onCancel:l,onConfirm:c}=m.useContext(hk);return o?V.createElement(kue,{isSilent:i,actionFn:l,close:function(){s==null||s.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:n,prefixCls:`${a}-btn`},r):null},n1e=()=>{const{autoFocusButton:e,close:n,isSilent:r,okButtonProps:i,rootPrefixCls:o,okTextLocale:a,okType:s,onConfirm:l,onOk:c}=m.useContext(hk);return V.createElement(kue,{isSilent:r,type:s||"primary",actionFn:c,close:function(){n==null||n.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:i,prefixCls:`${o}-btn`},a)};var y9e=m.createContext(null),r1e=[];function gDt(e,n){var r=m.useState(function(){if(!_f())return null;var g=document.createElement("div");return g}),i=ke(r,1),o=i[0],a=m.useRef(!1),s=m.useContext(y9e),l=m.useState(r1e),c=ke(l,2),u=c[0],d=c[1],f=s||(a.current?void 0:function(g){d(function(v){var y=[g].concat(Tt(v));return y})});function p(){o.parentElement||document.body.appendChild(o),a.current=!0}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1}return ti(function(){return e?s?s(p):p():h(),h},[e]),ti(function(){u.length&&(u.forEach(function(g){return g()}),d(r1e))},[u]),[o,f]}function mDt(e){var n="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=n;var i=r.style;i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll";var o,a;if(e){var s=getComputedStyle(e);i.scrollbarColor=s.scrollbarColor,i.scrollbarWidth=s.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";A9(`
|
||
#`.concat(n,`::-webkit-scrollbar {
|
||
`).concat(d,`
|
||
`).concat(f,`
|
||
}`),n)}catch(g){console.error(g),o=c,a=u}}document.body.appendChild(r);var p=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,h=e&&a&&!isNaN(a)?a:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Are(n),{width:p,height:h}}function vDt(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:mDt(e)}function yDt(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var _Dt="rc-util-locker-".concat(Date.now()),i1e=0;function bDt(e){var n=!!e,r=m.useState(function(){return i1e+=1,"".concat(_Dt,"_").concat(i1e)}),i=ke(r,1),o=i[0];ti(function(){if(n){var a=vDt(document.body).width,s=yDt();A9(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
`.concat(s?"width: calc(100% - ".concat(a,"px);"):"",`
|
||
}`),o)}else Are(o);return function(){Are(o)}},[n,o])}var SDt=!1;function EDt(e){return SDt}var o1e=function(n){return n===!1?!1:!_f()||!n?null:typeof n=="string"?document.querySelector(n):typeof n=="function"?n():n},gk=m.forwardRef(function(e,n){var r=e.open,i=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=m.useState(r),u=ke(c,2),d=u[0],f=u[1],p=d||r;m.useEffect(function(){(s||r)&&f(r)},[r,s]);var h=m.useState(function(){return o1e(o)}),g=ke(h,2),v=g[0],y=g[1];m.useEffect(function(){var M=o1e(o);y(M??null)});var _=gDt(p&&!v),S=ke(_,2),b=S[0],E=S[1],w=v??b;bDt(i&&r&&_f()&&(w===b||w===document.body));var C=null;if(l&&Ky(l)&&n){var x=l;C=x.ref}var T=vg(C,n);if(!p||!_f()||v===void 0)return null;var R=w===!1||EDt(),O=l;return n&&(O=m.cloneElement(l,{ref:T})),m.createElement(y9e.Provider,{value:E},R?O:Us.createPortal(O,w))}),_9e=m.createContext({});function CDt(){var e=ee({},VD);return e.useId}var a1e=0,s1e=CDt();const X9=s1e?function(n){var r=s1e();return n||r}:function(n){var r=m.useState("ssr-id"),i=ke(r,2),o=i[0],a=i[1];return m.useEffect(function(){var s=a1e;a1e+=1,a("rc_unique_".concat(s))},[]),n||o};function l1e(e,n,r){var i=n;return!i&&r&&(i="".concat(e,"-").concat(r)),i}function c1e(e,n){var r=e["page".concat(n?"Y":"X","Offset")],i="scroll".concat(n?"Top":"Left");if(typeof r!="number"){var o=e.document;r=o.documentElement[i],typeof r!="number"&&(r=o.body[i])}return r}function wDt(e){var n=e.getBoundingClientRect(),r={left:n.left,top:n.top},i=e.ownerDocument,o=i.defaultView||i.parentWindow;return r.left+=c1e(o),r.top+=c1e(o,!0),r}const xDt=m.memo(function(e){var n=e.children;return n},function(e,n){var r=n.shouldUpdate;return!r});var TDt={width:0,height:0,overflow:"hidden",outline:"none"},ODt={outline:"none"},b9e=V.forwardRef(function(e,n){var r=e.prefixCls,i=e.className,o=e.style,a=e.title,s=e.ariaId,l=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,h=e.bodyProps,g=e.modalRender,v=e.onMouseDown,y=e.onMouseUp,_=e.holderRef,S=e.visible,b=e.forceRender,E=e.width,w=e.height,C=e.classNames,x=e.styles,T=V.useContext(_9e),R=T.panel,O=vg(_,R),M=m.useRef(),P=m.useRef();V.useImperativeHandle(n,function(){return{focus:function(){var H;(H=M.current)===null||H===void 0||H.focus({preventScroll:!0})},changeActive:function(H){var G=document,Q=G.activeElement;H&&Q===P.current?M.current.focus({preventScroll:!0}):!H&&Q===M.current&&P.current.focus({preventScroll:!0})}}});var k={};E!==void 0&&(k.width=E),w!==void 0&&(k.height=w);var $=l?V.createElement("div",{className:Ce("".concat(r,"-footer"),C==null?void 0:C.footer),style:ee({},x==null?void 0:x.footer)},l):null,U=a?V.createElement("div",{className:Ce("".concat(r,"-header"),C==null?void 0:C.header),style:ee({},x==null?void 0:x.header)},V.createElement("div",{className:"".concat(r,"-title"),id:s},a)):null,z=m.useMemo(function(){return cn(c)==="object"&&c!==null?c:c?{closeIcon:u??V.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[c,u,r]),D=Va(z,!0),B=cn(c)==="object"&&c.disabled,Y=c?V.createElement("button",ft({type:"button",onClick:d,"aria-label":"Close"},D,{className:"".concat(r,"-close"),disabled:B}),z.closeIcon):null,q=V.createElement("div",{className:Ce("".concat(r,"-content"),C==null?void 0:C.content),style:x==null?void 0:x.content},Y,U,V.createElement("div",ft({className:Ce("".concat(r,"-body"),C==null?void 0:C.body),style:ee(ee({},p),x==null?void 0:x.body)},h),f),$);return V.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?s:null,"aria-modal":"true",ref:O,style:ee(ee({},o),k),className:Ce(r,i),onMouseDown:v,onMouseUp:y},V.createElement("div",{ref:M,tabIndex:0,style:ODt},V.createElement(xDt,{shouldUpdate:S||b},g?g(q):q)),V.createElement("div",{tabIndex:0,ref:P,style:TDt}))}),S9e=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.title,o=e.style,a=e.className,s=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,h=m.useRef(),g=m.useState(),v=ke(g,2),y=v[0],_=v[1],S={};y&&(S.transformOrigin=y);function b(){var E=wDt(h.current);_(p&&(p.x||p.y)?"".concat(p.x-E.left,"px ").concat(p.y-E.top,"px"):"")}return m.createElement(Ws,{visible:s,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:l,motionName:u,removeOnLeave:c,ref:h},function(E,w){var C=E.className,x=E.style;return m.createElement(b9e,ft({},e,{ref:n,title:i,ariaId:d,prefixCls:r,holderRef:w,style:ee(ee(ee({},x),o),S),className:Ce(a,C)}))})});S9e.displayName="Content";var RDt=function(n){var r=n.prefixCls,i=n.style,o=n.visible,a=n.maskProps,s=n.motionName,l=n.className;return m.createElement(Ws,{key:"mask",visible:o,motionName:s,leavedClassName:"".concat(r,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return m.createElement("div",ft({ref:u,style:ee(ee({},f),i),className:Ce("".concat(r,"-mask"),d,l)},a))})},IDt=function(n){var r=n.prefixCls,i=r===void 0?"rc-dialog":r,o=n.zIndex,a=n.visible,s=a===void 0?!1:a,l=n.keyboard,c=l===void 0?!0:l,u=n.focusTriggerAfterClose,d=u===void 0?!0:u,f=n.wrapStyle,p=n.wrapClassName,h=n.wrapProps,g=n.onClose,v=n.afterOpenChange,y=n.afterClose,_=n.transitionName,S=n.animation,b=n.closable,E=b===void 0?!0:b,w=n.mask,C=w===void 0?!0:w,x=n.maskTransitionName,T=n.maskAnimation,R=n.maskClosable,O=R===void 0?!0:R,M=n.maskStyle,P=n.maskProps,k=n.rootClassName,$=n.classNames,U=n.styles,z=m.useRef(),D=m.useRef(),B=m.useRef(),Y=m.useState(s),q=ke(Y,2),K=q[0],H=q[1],G=X9();function Q(){Mre(D.current,document.activeElement)||(z.current=document.activeElement)}function le(){if(!Mre(D.current,document.activeElement)){var he;(he=B.current)===null||he===void 0||he.focus()}}function Z(he){if(he)le();else{if(H(!1),C&&z.current&&d){try{z.current.focus({preventScroll:!0})}catch{}z.current=null}K&&(y==null||y())}v==null||v(he)}function j(he){g==null||g(he)}var F=m.useRef(!1),te=m.useRef(),oe=function(){clearTimeout(te.current),F.current=!0},de=function(){te.current=setTimeout(function(){F.current=!1})},pe=null;O&&(pe=function(be){F.current?F.current=!1:D.current===be.target&&j(be)});function me(he){if(c&&he.keyCode===At.ESC){he.stopPropagation(),j(he);return}s&&he.keyCode===At.TAB&&B.current.changeActive(!he.shiftKey)}m.useEffect(function(){s&&(H(!0),Q())},[s]),m.useEffect(function(){return function(){clearTimeout(te.current)}},[]);var ve=ee(ee(ee({zIndex:o},f),U==null?void 0:U.wrapper),{},{display:K?null:"none"});return m.createElement("div",ft({className:Ce("".concat(i,"-root"),k)},Va(n,{data:!0})),m.createElement(RDt,{prefixCls:i,visible:C&&s,motionName:l1e(i,x,T),style:ee(ee({zIndex:o},M),U==null?void 0:U.mask),maskProps:P,className:$==null?void 0:$.mask}),m.createElement("div",ft({tabIndex:-1,onKeyDown:me,className:Ce("".concat(i,"-wrap"),p,$==null?void 0:$.wrapper),ref:D,onClick:pe,style:ve},h),m.createElement(S9e,ft({},n,{onMouseDown:oe,onMouseUp:de,ref:B,closable:E,ariaId:G,prefixCls:i,visible:s&&K,onClose:j,onVisibleChanged:Z,motionName:l1e(i,_,S)}))))},Lue=function(n){var r=n.visible,i=n.getContainer,o=n.forceRender,a=n.destroyOnClose,s=a===void 0?!1:a,l=n.afterClose,c=n.panelRef,u=m.useState(r),d=ke(u,2),f=d[0],p=d[1],h=m.useMemo(function(){return{panel:c}},[c]);return m.useEffect(function(){r&&p(!0)},[r]),!o&&s&&!f?null:m.createElement(_9e.Provider,{value:h},m.createElement(gk,{open:r||o||f,autoDestroy:!1,getContainer:i,autoLock:r||f},m.createElement(IDt,ft({},n,{destroyOnClose:s,afterClose:function(){l==null||l(),p(!1)}}))))};Lue.displayName="Dialog";var r1="RC_FORM_INTERNAL_HOOKS",Vo=function(){qi(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},T0=m.createContext({getFieldValue:Vo,getFieldsValue:Vo,getFieldError:Vo,getFieldWarning:Vo,getFieldsError:Vo,isFieldsTouched:Vo,isFieldTouched:Vo,isFieldValidating:Vo,isFieldsValidating:Vo,resetFields:Vo,setFields:Vo,setFieldValue:Vo,setFieldsValue:Vo,validateFields:Vo,submit:Vo,getInternalHooks:function(){return Vo(),{dispatch:Vo,initEntityValue:Vo,registerField:Vo,useSubscribe:Vo,setInitialValues:Vo,destroyForm:Vo,setCallbacks:Vo,registerWatch:Vo,getFields:Vo,setValidateMessages:Vo,setPreserve:Vo,getInitialValue:Vo}}}),mA=m.createContext(null);function Wre(e){return e==null?[]:Array.isArray(e)?e:[e]}function NDt(e){return e&&!!e._init}function Yre(){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 n=JSON.parse(JSON.stringify(this));return n.clone=this.clone,n}}}var qre=Yre();function MDt(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function PDt(e,n,r){if(x9())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,n);var o=new(e.bind.apply(e,i));return r&&RO(o,r.prototype),o}function Kre(e){var n=typeof Map=="function"?new Map:void 0;return Kre=function(i){if(i===null||!MDt(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(n!==void 0){if(n.has(i))return n.get(i);n.set(i,o)}function o(){return PDt(i,arguments,J1(this).constructor)}return o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),RO(o,i)},Kre(e)}var ADt=/%[sdj%]/g,DDt=function(){};function Xre(e){if(!e||!e.length)return null;var n={};return e.forEach(function(r){var i=r.field;n[i]=n[i]||[],n[i].push(r)}),n}function lf(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var s=e.replace(ADt,function(l){if(l==="%%")return"%";if(o>=a)return l;switch(l){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return l}});return s}return e}function kDt(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ol(e,n){return!!(e==null||n==="array"&&Array.isArray(e)&&!e.length||kDt(n)&&typeof e=="string"&&!e)}function LDt(e,n,r){var i=[],o=0,a=e.length;function s(l){i.push.apply(i,Tt(l||[])),o++,o===a&&r(i)}e.forEach(function(l){n(l,s)})}function u1e(e,n,r){var i=0,o=e.length;function a(s){if(s&&s.length){r(s);return}var l=i;i=i+1,l<o?n(e[l],a):r([])}a([])}function $Dt(e){var n=[];return Object.keys(e).forEach(function(r){n.push.apply(n,Tt(e[r]||[]))}),n}var d1e=function(e){Kc(r,e);var n=Iu(r);function r(i,o){var a;return Ki(this,r),a=n.call(this,"Async Validation Error"),fe(Tn(a),"errors",void 0),fe(Tn(a),"fields",void 0),a.errors=i,a.fields=o,a}return Xi(r)}(Kre(Error));function FDt(e,n,r,i,o){if(n.first){var a=new Promise(function(p,h){var g=function(_){return i(_),_.length?h(new d1e(_,Xre(_))):p(o)},v=$Dt(e);u1e(v,r,g)});return a.catch(function(p){return p}),a}var s=n.firstFields===!0?Object.keys(e):n.firstFields||[],l=Object.keys(e),c=l.length,u=0,d=[],f=new Promise(function(p,h){var g=function(y){if(d.push.apply(d,y),u++,u===c)return i(d),d.length?h(new d1e(d,Xre(d))):p(o)};l.length||(i(d),p(o)),l.forEach(function(v){var y=e[v];s.indexOf(v)!==-1?u1e(y,r,g):LDt(y,r,g)})});return f.catch(function(p){return p}),f}function BDt(e){return!!(e&&e.message!==void 0)}function jDt(e,n){for(var r=e,i=0;i<n.length;i++){if(r==null)return r;r=r[n[i]]}return r}function f1e(e,n){return function(r){var i;return e.fullFields?i=jDt(n,e.fullFields):i=n[r.field||e.fullField],BDt(r)?(r.field=r.field||e.fullField,r.fieldValue=i,r):{message:typeof r=="function"?r():r,fieldValue:i,field:r.field||e.fullField}}}function p1e(e,n){if(n){for(var r in n)if(n.hasOwnProperty(r)){var i=n[r];cn(i)==="object"&&cn(e[r])==="object"?e[r]=ee(ee({},e[r]),i):e[r]=i}}return e}var gx="enum",UDt=function(n,r,i,o,a){n[gx]=Array.isArray(n[gx])?n[gx]:[],n[gx].indexOf(r)===-1&&o.push(lf(a.messages[gx],n.fullField,n[gx].join(", ")))},HDt=function(n,r,i,o,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(r)||o.push(lf(a.messages.pattern.mismatch,n.fullField,r,n.pattern));else if(typeof n.pattern=="string"){var s=new RegExp(n.pattern);s.test(r)||o.push(lf(a.messages.pattern.mismatch,n.fullField,r,n.pattern))}}},zDt=function(n,r,i,o,a){var s=typeof n.len=="number",l=typeof n.min=="number",c=typeof n.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,p=typeof r=="number",h=typeof r=="string",g=Array.isArray(r);if(p?f="number":h?f="string":g&&(f="array"),!f)return!1;g&&(d=r.length),h&&(d=r.replace(u,"_").length),s?d!==n.len&&o.push(lf(a.messages[f].len,n.fullField,n.len)):l&&!c&&d<n.min?o.push(lf(a.messages[f].min,n.fullField,n.min)):c&&!l&&d>n.max?o.push(lf(a.messages[f].max,n.fullField,n.max)):l&&c&&(d<n.min||d>n.max)&&o.push(lf(a.messages[f].range,n.fullField,n.min,n.max))},E9e=function(n,r,i,o,a,s){n.required&&(!i.hasOwnProperty(n.field)||Ol(r,s||n.type))&&o.push(lf(a.messages.required,n.fullField))},W3;const VDt=function(){if(W3)return W3;var e="[a-fA-F\\d:]",n=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",i="[a-fA-F\\d]{1,4}",o=["(?:".concat(i,":){7}(?:").concat(i,"|:)"),"(?:".concat(i,":){6}(?:").concat(r,"|:").concat(i,"|:)"),"(?:".concat(i,":){5}(?::").concat(r,"|(?::").concat(i,"){1,2}|:)"),"(?:".concat(i,":){4}(?:(?::").concat(i,"){0,1}:").concat(r,"|(?::").concat(i,"){1,3}|:)"),"(?:".concat(i,":){3}(?:(?::").concat(i,"){0,2}:").concat(r,"|(?::").concat(i,"){1,4}|:)"),"(?:".concat(i,":){2}(?:(?::").concat(i,"){0,3}:").concat(r,"|(?::").concat(i,"){1,5}|:)"),"(?:".concat(i,":){1}(?:(?::").concat(i,"){0,4}:").concat(r,"|(?::").concat(i,"){1,6}|:)"),"(?::(?:(?::".concat(i,"){0,5}:").concat(r,"|(?::").concat(i,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(o.join("|"),")").concat(a),l=new RegExp("(?:^".concat(r,"$)|(?:^").concat(s,"$)")),c=new RegExp("^".concat(r,"$")),u=new RegExp("^".concat(s,"$")),d=function(C){return C&&C.exact?l:new RegExp("(?:".concat(n(C)).concat(r).concat(n(C),")|(?:").concat(n(C)).concat(s).concat(n(C),")"),"g")};d.v4=function(w){return w&&w.exact?c:new RegExp("".concat(n(w)).concat(r).concat(n(w)),"g")},d.v6=function(w){return w&&w.exact?u:new RegExp("".concat(n(w)).concat(s).concat(n(w)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",h=d.v4().source,g=d.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",_="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',E="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(h,"|").concat(g,"|").concat(v).concat(y).concat(_,")").concat(S).concat(b);return W3=new RegExp("(?:^".concat(E,"$)"),"i"),W3};var h1e={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},a2={integer:function(n){return a2.number(n)&&parseInt(n,10)===n},float:function(n){return a2.number(n)&&!a2.integer(n)},array:function(n){return Array.isArray(n)},regexp:function(n){if(n instanceof RegExp)return!0;try{return!!new RegExp(n)}catch{return!1}},date:function(n){return typeof n.getTime=="function"&&typeof n.getMonth=="function"&&typeof n.getYear=="function"&&!isNaN(n.getTime())},number:function(n){return isNaN(n)?!1:typeof n=="number"},object:function(n){return cn(n)==="object"&&!a2.array(n)},method:function(n){return typeof n=="function"},email:function(n){return typeof n=="string"&&n.length<=320&&!!n.match(h1e.email)},url:function(n){return typeof n=="string"&&n.length<=2048&&!!n.match(VDt())},hex:function(n){return typeof n=="string"&&!!n.match(h1e.hex)}},GDt=function(n,r,i,o,a){if(n.required&&r===void 0){E9e(n,r,i,o,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=n.type;s.indexOf(l)>-1?a2[l](r)||o.push(lf(a.messages.types[l],n.fullField,n.type)):l&&cn(r)!==n.type&&o.push(lf(a.messages.types[l],n.fullField,n.type))},WDt=function(n,r,i,o,a){(/^\s+$/.test(r)||r==="")&&o.push(lf(a.messages.whitespace,n.fullField))};const Wi={required:E9e,whitespace:WDt,type:GDt,range:zDt,enum:UDt,pattern:HDt};var YDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a)}i(s)},qDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(r==null&&!n.required)return i();Wi.required(n,r,o,s,a,"array"),r!=null&&(Wi.type(n,r,o,s,a),Wi.range(n,r,o,s,a))}i(s)},KDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&Wi.type(n,r,o,s,a)}i(s)},XDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r,"date")&&!n.required)return i();if(Wi.required(n,r,o,s,a),!Ol(r,"date")){var c;r instanceof Date?c=r:c=new Date(r),Wi.type(n,c,o,s,a),c&&Wi.range(n,c.getTime(),o,s,a)}}i(s)},QDt="enum",ZDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&Wi[QDt](n,r,o,s,a)}i(s)},JDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&(Wi.type(n,r,o,s,a),Wi.range(n,r,o,s,a))}i(s)},ekt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&(Wi.type(n,r,o,s,a),Wi.range(n,r,o,s,a))}i(s)},tkt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&Wi.type(n,r,o,s,a)}i(s)},nkt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(r===""&&(r=void 0),Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&(Wi.type(n,r,o,s,a),Wi.range(n,r,o,s,a))}i(s)},rkt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&Wi.type(n,r,o,s,a)}i(s)},ikt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r,"string")&&!n.required)return i();Wi.required(n,r,o,s,a),Ol(r,"string")||Wi.pattern(n,r,o,s,a)}i(s)},okt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),Ol(r)||Wi.type(n,r,o,s,a)}i(s)},akt=function(n,r,i,o,a){var s=[],l=Array.isArray(r)?"array":cn(r);Wi.required(n,r,o,s,a,l),i(s)},skt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r,"string")&&!n.required)return i();Wi.required(n,r,o,s,a,"string"),Ol(r,"string")||(Wi.type(n,r,o,s,a),Wi.range(n,r,o,s,a),Wi.pattern(n,r,o,s,a),n.whitespace===!0&&Wi.whitespace(n,r,o,s,a))}i(s)},KY=function(n,r,i,o,a){var s=n.type,l=[],c=n.required||!n.required&&o.hasOwnProperty(n.field);if(c){if(Ol(r,s)&&!n.required)return i();Wi.required(n,r,o,l,a,s),Ol(r,s)||Wi.type(n,r,o,l,a)}i(l)};const Z2={string:skt,method:tkt,number:nkt,boolean:KDt,regexp:okt,integer:ekt,float:JDt,array:qDt,object:rkt,enum:ZDt,pattern:ikt,date:XDt,url:KY,hex:KY,email:KY,required:akt,any:YDt};var mk=function(){function e(n){Ki(this,e),fe(this,"rules",null),fe(this,"_messages",qre),this.define(n)}return Xi(e,[{key:"define",value:function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(cn(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(r){return r&&(this._messages=p1e(Yre(),r)),this._messages}},{key:"validate",value:function(r){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=r,l=o,c=a;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(g){var v=[],y={};function _(b){if(Array.isArray(b)){var E;v=(E=v).concat.apply(E,Tt(b))}else v.push(b)}for(var S=0;S<g.length;S++)_(g[S]);v.length?(y=Xre(v),c(v,y)):c(null,s)}if(l.messages){var d=this.messages();d===qre&&(d=Yre()),p1e(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},p=l.keys||Object.keys(this.rules);p.forEach(function(g){var v=i.rules[g],y=s[g];v.forEach(function(_){var S=_;typeof S.transform=="function"&&(s===r&&(s=ee({},s)),y=s[g]=S.transform(y),y!=null&&(S.type=S.type||(Array.isArray(y)?"array":cn(y)))),typeof S=="function"?S={validator:S}:S=ee({},S),S.validator=i.getValidationMethod(S),S.validator&&(S.field=g,S.fullField=S.fullField||g,S.type=i.getType(S),f[g]=f[g]||[],f[g].push({rule:S,value:y,source:s,field:g}))})});var h={};return FDt(f,l,function(g,v){var y=g.rule,_=(y.type==="object"||y.type==="array")&&(cn(y.fields)==="object"||cn(y.defaultField)==="object");_=_&&(y.required||!y.required&&g.value),y.field=g.field;function S(x,T){return ee(ee({},T),{},{fullField:"".concat(y.fullField,".").concat(x),fullFields:y.fullFields?[].concat(Tt(y.fullFields),[x]):[x]})}function b(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=Array.isArray(x)?x:[x];!l.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&y.message!==void 0&&(T=[].concat(y.message));var R=T.map(f1e(y,s));if(l.first&&R.length)return h[y.field]=1,v(R);if(!_)v(R);else{if(y.required&&!g.value)return y.message!==void 0?R=[].concat(y.message).map(f1e(y,s)):l.error&&(R=[l.error(y,lf(l.messages.required,y.field))]),v(R);var O={};y.defaultField&&Object.keys(g.value).map(function(k){O[k]=y.defaultField}),O=ee(ee({},O),g.rule.fields);var M={};Object.keys(O).forEach(function(k){var $=O[k],U=Array.isArray($)?$:[$];M[k]=U.map(S.bind(null,k))});var P=new e(M);P.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),P.validate(g.value,g.rule.options||l,function(k){var $=[];R&&R.length&&$.push.apply($,Tt(R)),k&&k.length&&$.push.apply($,Tt(k)),v($.length?$:null)})}}var E;if(y.asyncValidator)E=y.asyncValidator(y,g.value,b,g.source,l);else if(y.validator){try{E=y.validator(y,g.value,b,g.source,l)}catch(x){var w,C;(w=(C=console).error)===null||w===void 0||w.call(C,x),l.suppressValidatorError||setTimeout(function(){throw x},0),b(x.message)}E===!0?b():E===!1?b(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):E instanceof Array?b(E):E instanceof Error&&b(E.message)}E&&E.then&&E.then(function(){return b()},function(x){return b(x)})},function(g){u(g)},s)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Z2.hasOwnProperty(r.type))throw new Error(lf("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),o=i.indexOf("message");return o!==-1&&i.splice(o,1),i.length===1&&i[0]==="required"?Z2.required:Z2[this.getType(r)]||void 0}}]),e}();fe(mk,"register",function(n,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Z2[n]=r});fe(mk,"warning",DDt);fe(mk,"messages",qre);fe(mk,"validators",Z2);var $d="'${name}' is not a valid ${type}",C9e={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:$d,method:$d,array:$d,object:$d,number:$d,date:$d,boolean:$d,integer:$d,float:$d,regexp:$d,email:$d,url:$d,hex:$d},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}"}},g1e=mk;function lkt(e,n){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var i=r.slice(2,-1);return n[i]})}var m1e="CODE_LOGIC_ERROR";function Qre(e,n,r,i,o){return Zre.apply(this,arguments)}function Zre(){return Zre=Ss(ri().mark(function e(n,r,i,o,a){var s,l,c,u,d,f,p,h,g;return ri().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return s=ee({},i),delete s.ruleIndex,g1e.warning=function(){},s.validator&&(l=s.validator,s.validator=function(){try{return l.apply(void 0,arguments)}catch(_){return console.error(_),Promise.reject(m1e)}}),c=null,s&&s.type==="array"&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new g1e(fe({},n,[s])),d=mT(C9e,o.validateMessages),u.messages(d),f=[],y.prev=10,y.next=13,Promise.resolve(u.validate(fe({},n,r),ee({},o)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(f=y.t0.errors.map(function(_,S){var b=_.message,E=b===m1e?d.default:b;return m.isValidElement(E)?m.cloneElement(E,{key:"error_".concat(S)}):E}));case 18:if(!(!f.length&&c)){y.next=23;break}return y.next=21,Promise.all(r.map(function(_,S){return Qre("".concat(n,".").concat(S),_,c,o,a)}));case 21:return p=y.sent,y.abrupt("return",p.reduce(function(_,S){return[].concat(Tt(_),Tt(S))},[]));case 23:return h=ee(ee({},i),{},{name:n,enum:(i.enum||[]).join(", ")},a),g=f.map(function(_){return typeof _=="string"?lkt(_,h):_}),y.abrupt("return",g);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),Zre.apply(this,arguments)}function ckt(e,n,r,i,o,a){var s=e.join("."),l=r.map(function(d,f){var p=d.validator,h=ee(ee({},d),{},{ruleIndex:f});return p&&(h.validator=function(g,v,y){var _=!1,S=function(){for(var w=arguments.length,C=new Array(w),x=0;x<w;x++)C[x]=arguments[x];Promise.resolve().then(function(){qi(!_,"Your validator function has already return a promise. `callback` will be ignored."),_||y.apply(void 0,C)})},b=p(g,v,S);_=b&&typeof b.then=="function"&&typeof b.catch=="function",qi(_,"`callback` is deprecated. Please return a promise instead."),_&&b.then(function(){y()}).catch(function(E){y(E||" ")})}),h}).sort(function(d,f){var p=d.warningOnly,h=d.ruleIndex,g=f.warningOnly,v=f.ruleIndex;return!!p==!!g?h-v:p?1:-1}),c;if(o===!0)c=new Promise(function(){var d=Ss(ri().mark(function f(p,h){var g,v,y;return ri().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:g=0;case 1:if(!(g<l.length)){S.next=12;break}return v=l[g],S.next=5,Qre(s,n,v,i,a);case 5:if(y=S.sent,!y.length){S.next=9;break}return h([{errors:y,rule:v}]),S.abrupt("return");case 9:g+=1,S.next=1;break;case 12:p([]);case 13:case"end":return S.stop()}},f)}));return function(f,p){return d.apply(this,arguments)}}());else{var u=l.map(function(d){return Qre(s,n,d,i,a).then(function(f){return{errors:f,rule:d}})});c=(o?dkt(u):ukt(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function ukt(e){return Jre.apply(this,arguments)}function Jre(){return Jre=Ss(ri().mark(function e(n){return ri().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(n).then(function(o){var a,s=(a=[]).concat.apply(a,Tt(o));return s}));case 1:case"end":return i.stop()}},e)})),Jre.apply(this,arguments)}function dkt(e){return eie.apply(this,arguments)}function eie(){return eie=Ss(ri().mark(function e(n){var r;return ri().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(a){n.forEach(function(s){s.then(function(l){l.errors.length&&a([l]),r+=1,r===n.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),eie.apply(this,arguments)}function Ds(e){return Wre(e)}function v1e(e,n){var r={};return n.forEach(function(i){var o=al(e,i);r=Fs(r,i,o)}),r}function VT(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return w9e(n,i,r)})}function w9e(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!n||!r&&e.length!==n.length?!1:n.every(function(i,o){return e[o]===i})}function fkt(e,n){if(e===n)return!0;if(!e&&n||e&&!n||!e||!n||cn(e)!=="object"||cn(n)!=="object")return!1;var r=Object.keys(e),i=Object.keys(n),o=new Set([].concat(r,i));return Tt(o).every(function(a){var s=e[a],l=n[a];return typeof s=="function"&&typeof l=="function"?!0:s===l})}function pkt(e){var n=arguments.length<=1?void 0:arguments[1];return n&&n.target&&cn(n.target)==="object"&&e in n.target?n.target[e]:n}function y1e(e,n,r){var i=e.length;if(n<0||n>=i||r<0||r>=i)return e;var o=e[n],a=n-r;return a>0?[].concat(Tt(e.slice(0,r)),[o],Tt(e.slice(r,n)),Tt(e.slice(n+1,i))):a<0?[].concat(Tt(e.slice(0,n)),Tt(e.slice(n+1,r+1)),[o],Tt(e.slice(r+1,i))):e}var hkt=["name"],Vf=[];function XY(e,n,r,i,o,a){return typeof e=="function"?e(n,r,"source"in a?{source:a.source}:{}):i!==o}var $ue=function(e){Kc(r,e);var n=Iu(r);function r(i){var o;if(Ki(this,r),o=n.call(this,i),fe(Tn(o),"state",{resetCount:0}),fe(Tn(o),"cancelRegisterFunc",null),fe(Tn(o),"mounted",!1),fe(Tn(o),"touched",!1),fe(Tn(o),"dirty",!1),fe(Tn(o),"validatePromise",void 0),fe(Tn(o),"prevValidating",void 0),fe(Tn(o),"errors",Vf),fe(Tn(o),"warnings",Vf),fe(Tn(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Ds(f)),o.cancelRegisterFunc=null}),fe(Tn(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return u!==void 0?[].concat(Tt(p),Tt(u)):[]}),fe(Tn(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),fe(Tn(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),fe(Tn(o),"metaCache",null),fe(Tn(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=ee(ee({},o.getMeta()),{},{destroy:c});rC(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),fe(Tn(o),"onStoreChange",function(c,u,d){var f=o.props,p=f.shouldUpdate,h=f.dependencies,g=h===void 0?[]:h,v=f.onReset,y=d.store,_=o.getNamePath(),S=o.getValue(c),b=o.getValue(y),E=u&&VT(u,_);switch(d.type==="valueUpdate"&&d.source==="external"&&!rC(S,b)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Vf,o.warnings=Vf,o.triggerMetaEvent()),d.type){case"reset":if(!u||E){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Vf,o.warnings=Vf,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(p&&XY(p,c,y,S,b,d)){o.reRender();return}break}case"setField":{var w=d.data;if(E){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||Vf),"warnings"in w&&(o.warnings=w.warnings||Vf),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&VT(u,_,!0)){o.reRender();return}if(p&&!_.length&&XY(p,c,y,S,b,d)){o.reRender();return}break}case"dependenciesUpdate":{var C=g.map(Ds);if(C.some(function(x){return VT(d.relatedFields,x)})){o.reRender();return}break}default:if(E||(!g.length||_.length||p)&&XY(p,c,y,S,b,d)){o.reRender();return}break}p===!0&&o.reRender()}),fe(Tn(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},p=f.triggerName,h=f.validateOnly,g=h===void 0?!1:h,v=Promise.resolve().then(Ss(ri().mark(function y(){var _,S,b,E,w,C,x;return ri().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(o.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(_=o.props,S=_.validateFirst,b=S===void 0?!1:S,E=_.messageVariables,w=_.validateDebounce,C=o.getRules(),p&&(C=C.filter(function(O){return O}).filter(function(O){var M=O.validateTrigger;if(!M)return!0;var P=Wre(M);return P.includes(p)})),!(w&&p)){R.next=10;break}return R.next=8,new Promise(function(O){setTimeout(O,w)});case 8:if(o.validatePromise===v){R.next=10;break}return R.abrupt("return",[]);case 10:return x=ckt(u,d,C,c,b,E),x.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vf;if(o.validatePromise===v){var M;o.validatePromise=null;var P=[],k=[];(M=O.forEach)===null||M===void 0||M.call(O,function($){var U=$.rule.warningOnly,z=$.errors,D=z===void 0?Vf:z;U?k.push.apply(k,Tt(D)):P.push.apply(P,Tt(D))}),o.errors=P,o.warnings=k,o.triggerMetaEvent(),o.reRender()}}),R.abrupt("return",x);case 13:case"end":return R.stop()}},y)})));return g||(o.validatePromise=v,o.dirty=!0,o.errors=Vf,o.warnings=Vf,o.triggerMetaEvent(),o.reRender()),v}),fe(Tn(o),"isFieldValidating",function(){return!!o.validatePromise}),fe(Tn(o),"isFieldTouched",function(){return o.touched}),fe(Tn(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(r1),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),fe(Tn(o),"getErrors",function(){return o.errors}),fe(Tn(o),"getWarnings",function(){return o.warnings}),fe(Tn(o),"isListField",function(){return o.props.isListField}),fe(Tn(o),"isList",function(){return o.props.isList}),fe(Tn(o),"isPreserve",function(){return o.props.preserve}),fe(Tn(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),fe(Tn(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return ee(ee({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=Tl(c);return d.length!==1||!m.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),fe(Tn(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return al(c||u(!0),d)}),fe(Tn(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,p=u.validateTrigger,h=u.getValueFromEvent,g=u.normalize,v=u.valuePropName,y=u.getValueProps,_=u.fieldContext,S=p!==void 0?p:_.validateTrigger,b=o.getNamePath(),E=_.getInternalHooks,w=_.getFieldsValue,C=E(r1),x=C.dispatch,T=o.getValue(),R=y||function($){return fe({},v,$)},O=c[f],M=d!==void 0?R(T):{},P=ee(ee({},c),M);P[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var $,U=arguments.length,z=new Array(U),D=0;D<U;D++)z[D]=arguments[D];h?$=h.apply(void 0,z):$=pkt.apply(void 0,[v].concat(z)),g&&($=g($,T,w(!0))),$!==T&&x({type:"updateValue",namePath:b,value:$}),O&&O.apply(void 0,z)};var k=Wre(S||[]);return k.forEach(function($){var U=P[$];P[$]=function(){U&&U.apply(void 0,arguments);var z=o.props.rules;z&&z.length&&x({type:"validateField",namePath:b,triggerName:$})}}),P}),i.fieldContext){var a=i.fieldContext.getInternalHooks,s=a(r1),l=s.initEntityValue;l(Tn(o))}return o}return Xi(r,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,s=o.fieldContext;if(this.mounted=!0,s){var l=s.getInternalHooks,c=l(r1),u=c.registerField;this.cancelRegisterFunc=u(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 o=this.state.resetCount,a=this.props.children,s=this.getOnlyChild(a),l=s.child,c=s.isFunction,u;return c?u=l:m.isValidElement(l)?u=m.cloneElement(l,this.getControlled(l.props)):(qi(!l,"`children` of Field is not validate ReactElement."),u=l),m.createElement(m.Fragment,{key:o},u)}}]),r}(m.Component);fe($ue,"contextType",T0);fe($ue,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Fue(e){var n,r=e.name,i=Xt(e,hkt),o=m.useContext(T0),a=m.useContext(mA),s=r!==void 0?Ds(r):void 0,l=(n=i.isListField)!==null&&n!==void 0?n:!!a,c="keep";return l||(c="_".concat((s||[]).join("_"))),m.createElement($ue,ft({key:c,name:s,isListField:l},i,{fieldContext:o}))}function x9e(e){var n=e.name,r=e.initialValue,i=e.children,o=e.rules,a=e.validateTrigger,s=e.isListField,l=m.useContext(T0),c=m.useContext(mA),u=m.useRef({keys:[],id:0}),d=u.current,f=m.useMemo(function(){var v=Ds(l.prefixName)||[];return[].concat(Tt(v),Tt(Ds(n)))},[l.prefixName,n]),p=m.useMemo(function(){return ee(ee({},l),{},{prefixName:f})},[l,f]),h=m.useMemo(function(){return{getKey:function(y){var _=f.length,S=y[_];return[d.keys[S],y.slice(_+1)]}}},[f]);if(typeof i!="function")return qi(!1,"Form.List only accepts function as children."),null;var g=function(y,_,S){var b=S.source;return b==="internal"?!1:y!==_};return m.createElement(mA.Provider,{value:h},m.createElement(T0.Provider,{value:p},m.createElement(Fue,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:r,isList:!0,isListField:s??!!c},function(v,y){var _=v.value,S=_===void 0?[]:_,b=v.onChange,E=l.getFieldValue,w=function(){var R=E(f||[]);return R||[]},C={add:function(R,O){var M=w();O>=0&&O<=M.length?(d.keys=[].concat(Tt(d.keys.slice(0,O)),[d.id],Tt(d.keys.slice(O))),b([].concat(Tt(M.slice(0,O)),[R],Tt(M.slice(O))))):(d.keys=[].concat(Tt(d.keys),[d.id]),b([].concat(Tt(M),[R]))),d.id+=1},remove:function(R){var O=w(),M=new Set(Array.isArray(R)?R:[R]);M.size<=0||(d.keys=d.keys.filter(function(P,k){return!M.has(k)}),b(O.filter(function(P,k){return!M.has(k)})))},move:function(R,O){if(R!==O){var M=w();R<0||R>=M.length||O<0||O>=M.length||(d.keys=y1e(d.keys,R,O),b(y1e(M,R,O)))}}},x=S||[];return Array.isArray(x)||(x=[]),i(x.map(function(T,R){var O=d.keys[R];return O===void 0&&(d.keys[R]=d.id,O=d.keys[R],d.id+=1),{name:R,key:O,isListField:!0}}),C,y)})))}function gkt(e){var n=!1,r=e.length,i=[];return e.length?new Promise(function(o,a){e.forEach(function(s,l){s.catch(function(c){return n=!0,c}).then(function(c){r-=1,i[l]=c,!(r>0)&&(n&&a(i),o(i))})})}):Promise.resolve([])}var T9e="__@field_split__";function QY(e){return e.map(function(n){return"".concat(cn(n),":").concat(n)}).join(T9e)}var mx=function(){function e(){Ki(this,e),fe(this,"kvs",new Map)}return Xi(e,[{key:"set",value:function(r,i){this.kvs.set(QY(r),i)}},{key:"get",value:function(r){return this.kvs.get(QY(r))}},{key:"update",value:function(r,i){var o=this.get(r),a=i(o);a?this.set(r,a):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(QY(r))}},{key:"map",value:function(r){return Tt(this.kvs.entries()).map(function(i){var o=ke(i,2),a=o[0],s=o[1],l=a.split(T9e);return r({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=ke(u,3),f=d[1],p=d[2];return f==="number"?Number(p):p}),value:s})})}},{key:"toJSON",value:function(){var r={};return this.map(function(i){var o=i.key,a=i.value;return r[o.join(".")]=a,null}),r}}]),e}(),mkt=["name"],vkt=Xi(function e(n){var r=this;Ki(this,e),fe(this,"formHooked",!1),fe(this,"forceRootUpdate",void 0),fe(this,"subscribable",!0),fe(this,"store",{}),fe(this,"fieldEntities",[]),fe(this,"initialValues",{}),fe(this,"callbacks",{}),fe(this,"validateMessages",null),fe(this,"preserve",null),fe(this,"lastValidatePromise",null),fe(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),fe(this,"getInternalHooks",function(i){return i===r1?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(qi(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),fe(this,"useSubscribe",function(i){r.subscribable=i}),fe(this,"prevWithoutPreserves",null),fe(this,"setInitialValues",function(i,o){if(r.initialValues=i||{},o){var a,s=mT(i,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var c=l.key;s=Fs(s,c,al(i,c))}),r.prevWithoutPreserves=null,r.updateStore(s)}}),fe(this,"destroyForm",function(i){if(i)r.updateStore({});else{var o=new mx;r.getFieldEntities(!0).forEach(function(a){r.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),fe(this,"getInitialValue",function(i){var o=al(r.initialValues,i);return i.length?mT(o):o}),fe(this,"setCallbacks",function(i){r.callbacks=i}),fe(this,"setValidateMessages",function(i){r.validateMessages=i}),fe(this,"setPreserve",function(i){r.preserve=i}),fe(this,"watchList",[]),fe(this,"registerWatch",function(i){return r.watchList.push(i),function(){r.watchList=r.watchList.filter(function(o){return o!==i})}}),fe(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),a=r.getFieldsValue(!0);r.watchList.forEach(function(s){s(o,a,i)})}}),fe(this,"timeoutId",null),fe(this,"warningUnhooked",function(){}),fe(this,"updateStore",function(i){r.store=i}),fe(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),fe(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new mx;return r.getFieldEntities(i).forEach(function(a){var s=a.getNamePath();o.set(s,a)}),o}),fe(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return i.map(function(a){var s=Ds(a);return o.get(s)||{INVALIDATE_NAME_PATH:Ds(a)}})}),fe(this,"getFieldsValue",function(i,o){r.warningUnhooked();var a,s,l;if(i===!0||Array.isArray(i)?(a=i,s=o):i&&cn(i)==="object"&&(l=i.strict,s=i.filter),a===!0&&!s)return r.store;var c=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var f,p,h="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var g,v;if((g=(v=d).isList)!==null&&g!==void 0&&g.call(v))return}else if(!a&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!s)u.push(h);else{var y="getMeta"in d?d.getMeta():null;s(y)&&u.push(h)}}),v1e(r.store,u.map(Ds))}),fe(this,"getFieldValue",function(i){r.warningUnhooked();var o=Ds(i);return al(r.store,o)}),fe(this,"getFieldsError",function(i){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(i);return o.map(function(a,s){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Ds(i[s]),errors:[],warnings:[]}})}),fe(this,"getFieldError",function(i){r.warningUnhooked();var o=Ds(i),a=r.getFieldsError([o])[0];return a.errors}),fe(this,"getFieldWarning",function(i){r.warningUnhooked();var o=Ds(i),a=r.getFieldsError([o])[0];return a.warnings}),fe(this,"isFieldsTouched",function(){r.warningUnhooked();for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=o[0],l=o[1],c,u=!1;o.length===0?c=null:o.length===1?Array.isArray(s)?(c=s.map(Ds),u=!1):(c=null,u=s):(c=s.map(Ds),u=l);var d=r.getFieldEntities(!0),f=function(y){return y.isFieldTouched()};if(!c)return u?d.every(function(v){return f(v)||v.isList()}):d.some(f);var p=new mx;c.forEach(function(v){p.set(v,[])}),d.forEach(function(v){var y=v.getNamePath();c.forEach(function(_){_.every(function(S,b){return y[b]===S})&&p.update(_,function(S){return[].concat(Tt(S),[v])})})});var h=function(y){return y.some(f)},g=p.map(function(v){var y=v.value;return y});return u?g.every(h):g.some(h)}),fe(this,"isFieldTouched",function(i){return r.warningUnhooked(),r.isFieldsTouched([i])}),fe(this,"isFieldsValidating",function(i){r.warningUnhooked();var o=r.getFieldEntities();if(!i)return o.some(function(s){return s.isFieldValidating()});var a=i.map(Ds);return o.some(function(s){var l=s.getNamePath();return VT(a,l)&&s.isFieldValidating()})}),fe(this,"isFieldValidating",function(i){return r.warningUnhooked(),r.isFieldsValidating([i])}),fe(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new mx,a=r.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var s=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var p=d.getNamePath(),h=r.getInitialValue(p);if(h!==void 0)qi(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var g=o.get(p);if(g&&g.size>1)qi(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var v=r.getFieldValue(p),y=d.isListField();!y&&(!i.skipExist||v===void 0)&&r.updateStore(Fs(r.store,p,Tt(g)[0].value))}}}})},l;i.entities?l=i.entities:i.namePathList?(l=[],i.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=l).push.apply(d,Tt(Tt(u).map(function(f){return f.entity})))}})):l=a,s(l)}),fe(this,"resetFields",function(i){r.warningUnhooked();var o=r.store;if(!i){r.updateStore(mT(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var a=i.map(Ds);a.forEach(function(s){var l=r.getInitialValue(s);r.updateStore(Fs(r.store,s,l))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(o,a,{type:"reset"}),r.notifyWatch(a)}),fe(this,"setFields",function(i){r.warningUnhooked();var o=r.store,a=[];i.forEach(function(s){var l=s.name,c=Xt(s,mkt),u=Ds(l);a.push(u),"value"in c&&r.updateStore(Fs(r.store,u,c.value)),r.notifyObservers(o,[u],{type:"setField",data:s})}),r.notifyWatch(a)}),fe(this,"getFields",function(){var i=r.getFieldEntities(!0),o=i.map(function(a){var s=a.getNamePath(),l=a.getMeta(),c=ee(ee({},l),{},{name:s,value:r.getFieldValue(s)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),fe(this,"initEntityValue",function(i){var o=i.props.initialValue;if(o!==void 0){var a=i.getNamePath(),s=al(r.store,a);s===void 0&&r.updateStore(Fs(r.store,a,o))}}),fe(this,"isMergedPreserve",function(i){var o=i!==void 0?i:r.preserve;return o??!0}),fe(this,"registerField",function(i){r.fieldEntities.push(i);var o=i.getNamePath();if(r.notifyWatch([o]),i.props.initialValue!==void 0){var a=r.store;r.resetWithFieldInitialValue({entities:[i],skipExist:!0}),r.notifyObservers(a,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==i}),!r.isMergedPreserve(l)&&(!s||c.length>1)){var u=s?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==u&&r.fieldEntities.every(function(f){return!w9e(f.getNamePath(),o)})){var d=r.store;r.updateStore(Fs(d,o,u,!0)),r.notifyObservers(d,[o],{type:"remove"}),r.triggerDependenciesUpdate(d,o)}}r.notifyWatch([o])}}),fe(this,"dispatch",function(i){switch(i.type){case"updateValue":{var o=i.namePath,a=i.value;r.updateValue(o,a);break}case"validateField":{var s=i.namePath,l=i.triggerName;r.validateFields([s],{triggerName:l});break}}}),fe(this,"notifyObservers",function(i,o,a){if(r.subscribable){var s=ee(ee({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(i,o,s)})}else r.forceRootUpdate()}),fe(this,"triggerDependenciesUpdate",function(i,o){var a=r.getDependencyChildrenFields(o);return a.length&&r.validateFields(a),r.notifyObservers(i,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Tt(a))}),a}),fe(this,"updateValue",function(i,o){var a=Ds(i),s=r.store;r.updateStore(Fs(r.store,a,o)),r.notifyObservers(s,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var l=r.triggerDependenciesUpdate(s,a),c=r.callbacks.onValuesChange;if(c){var u=v1e(r.store,[a]);c(u,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(Tt(l)))}),fe(this,"setFieldsValue",function(i){r.warningUnhooked();var o=r.store;if(i){var a=mT(r.store,i);r.updateStore(a)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),fe(this,"setFieldValue",function(i,o){r.setFields([{name:i,value:o,errors:[],warnings:[]}])}),fe(this,"getDependencyChildrenFields",function(i){var o=new Set,a=[],s=new mx;r.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Ds(d);s.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(c),p})})});var l=function c(u){var d=s.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),c(p))}})};return l(i),a}),fe(this,"triggerOnFieldsChange",function(i,o){var a=r.callbacks.onFieldsChange;if(a){var s=r.getFields();if(o){var l=new mx;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),s.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=s.filter(function(u){var d=u.name;return VT(i,d)});c.length&&a(c,s)}}),fe(this,"validateFields",function(i,o){r.warningUnhooked();var a,s;Array.isArray(i)||typeof i=="string"||typeof o=="string"?(a=i,s=o):s=i;var l=!!a,c=l?a.map(Ds):[],u=[],d=String(Date.now()),f=new Set,p=s||{},h=p.recursive,g=p.dirty;r.getFieldEntities(!0).forEach(function(S){if(l||c.push(S.getNamePath()),!(!S.props.rules||!S.props.rules.length)&&!(g&&!S.isFieldDirty())){var b=S.getNamePath();if(f.add(b.join(d)),!l||VT(c,b,h)){var E=S.validateRules(ee({validateMessages:ee(ee({},C9e),r.validateMessages)},s));u.push(E.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(w){var C,x=[],T=[];return(C=w.forEach)===null||C===void 0||C.call(w,function(R){var O=R.rule.warningOnly,M=R.errors;O?T.push.apply(T,Tt(M)):x.push.apply(x,Tt(M))}),x.length?Promise.reject({name:b,errors:x,warnings:T}):{name:b,errors:x,warnings:T}}))}}});var v=gkt(u);r.lastValidatePromise=v,v.catch(function(S){return S}).then(function(S){var b=S.map(function(E){var w=E.name;return w});r.notifyObservers(r.store,b,{type:"validateFinish"}),r.triggerOnFieldsChange(b,S)});var y=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(c)):Promise.reject([])}).catch(function(S){var b=S.filter(function(E){return E&&E.errors.length});return Promise.reject({values:r.getFieldsValue(c),errorFields:b,outOfDate:r.lastValidatePromise!==v})});y.catch(function(S){return S});var _=c.filter(function(S){return f.has(S.join(d))});return r.triggerOnFieldsChange(_),y}),fe(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(i){var o=r.callbacks.onFinish;if(o)try{o(i)}catch(a){console.error(a)}}).catch(function(i){var o=r.callbacks.onFinishFailed;o&&o(i)})}),this.forceRootUpdate=n});function Bue(e){var n=m.useRef(),r=m.useState({}),i=ke(r,2),o=i[1];if(!n.current)if(e)n.current=e;else{var a=function(){o({})},s=new vkt(a);n.current=s.getForm()}return[n.current]}var tie=m.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),O9e=function(n){var r=n.validateMessages,i=n.onFormChange,o=n.onFormFinish,a=n.children,s=m.useContext(tie),l=m.useRef({});return m.createElement(tie.Provider,{value:ee(ee({},s),{},{validateMessages:ee(ee({},s.validateMessages),r),triggerFormChange:function(u,d){i&&i(u,{changedFields:d,forms:l.current}),s.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),s.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=ee(ee({},l.current),{},fe({},u,d))),s.registerForm(u,d)},unregisterForm:function(u){var d=ee({},l.current);delete d[u],l.current=d,s.unregisterForm(u)}})},a)},ykt=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],_kt=function(n,r){var i=n.name,o=n.initialValues,a=n.fields,s=n.form,l=n.preserve,c=n.children,u=n.component,d=u===void 0?"form":u,f=n.validateMessages,p=n.validateTrigger,h=p===void 0?"onChange":p,g=n.onValuesChange,v=n.onFieldsChange,y=n.onFinish,_=n.onFinishFailed,S=n.clearOnDestroy,b=Xt(n,ykt),E=m.useRef(null),w=m.useContext(tie),C=Bue(s),x=ke(C,1),T=x[0],R=T.getInternalHooks(r1),O=R.useSubscribe,M=R.setInitialValues,P=R.setCallbacks,k=R.setValidateMessages,$=R.setPreserve,U=R.destroyForm;m.useImperativeHandle(r,function(){return ee(ee({},T),{},{nativeElement:E.current})}),m.useEffect(function(){return w.registerForm(i,T),function(){w.unregisterForm(i)}},[w,T,i]),k(ee(ee({},w.validateMessages),f)),P({onValuesChange:g,onFieldsChange:function(Q){if(w.triggerFormChange(i,Q),v){for(var le=arguments.length,Z=new Array(le>1?le-1:0),j=1;j<le;j++)Z[j-1]=arguments[j];v.apply(void 0,[Q].concat(Z))}},onFinish:function(Q){w.triggerFormFinish(i,Q),y&&y(Q)},onFinishFailed:_}),$(l);var z=m.useRef(null);M(o,!z.current),z.current||(z.current=!0),m.useEffect(function(){return function(){return U(S)}},[]);var D,B=typeof c=="function";if(B){var Y=T.getFieldsValue(!0);D=c(Y,T)}else D=c;O(!B);var q=m.useRef();m.useEffect(function(){fkt(q.current||[],a||[])||T.setFields(a||[]),q.current=a},[a,T]);var K=m.useMemo(function(){return ee(ee({},T),{},{validateTrigger:h})},[T,h]),H=m.createElement(mA.Provider,{value:null},m.createElement(T0.Provider,{value:K},D));return d===!1?H:m.createElement(d,ft({},b,{ref:E,onSubmit:function(Q){Q.preventDefault(),Q.stopPropagation(),T.submit()},onReset:function(Q){var le;Q.preventDefault(),T.resetFields(),(le=b.onReset)===null||le===void 0||le.call(b,Q)}}),H)};function _1e(e){try{return JSON.stringify(e)}catch{return Math.random()}}function R9e(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=NDt(a)?{form:a}:a,l=s.form,c=m.useState(),u=ke(c,2),d=u[0],f=u[1],p=m.useMemo(function(){return _1e(d)},[d]),h=m.useRef(p);h.current=p;var g=m.useContext(T0),v=l||g,y=v&&v._init,_=Ds(i),S=m.useRef(_);return S.current=_,m.useEffect(function(){if(y){var b=v.getFieldsValue,E=v.getInternalHooks,w=E(r1),C=w.registerWatch,x=function(M,P){var k=s.preserve?P:M;return typeof i=="function"?i(k):al(k,S.current)},T=C(function(O,M){var P=x(O,M),k=_1e(P);h.current!==k&&(h.current=k,f(P))}),R=x(b(),b(!0));return d!==R&&f(R),T}},[y]),d}var bkt=m.forwardRef(_kt),sI=bkt;sI.FormProvider=O9e;sI.Field=Fue;sI.List=x9e;sI.useForm=Bue;sI.useWatch=R9e;const Ny=m.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),I9e=m.createContext(null),N9e=e=>{const n=Wr(e,["prefixCls"]);return m.createElement(O9e,Object.assign({},n))},jue=m.createContext({prefixCls:""}),qs=m.createContext({}),Skt=e=>{let{children:n,status:r,override:i}=e;const o=m.useContext(qs),a=m.useMemo(()=>{const s=Object.assign({},o);return i&&delete s.isFormItemInput,r&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[r,i,o]);return m.createElement(qs.Provider,{value:a},n)},M9e=m.createContext(void 0),tg=e=>{const{space:n,form:r,children:i}=e;if(i==null)return null;let o=i;return r&&(o=V.createElement(Skt,{override:!0,status:!0},o)),n&&(o=V.createElement(TPt,null,o)),o};function j8(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function b1e(e){const{closable:n,closeIcon:r}=e||{};return V.useMemo(()=>{if(!n&&(n===!1||r===!1||r===null))return!1;if(n===void 0&&r===void 0)return null;let i={closeIcon:typeof r!="boolean"&&r!==null?r:void 0};return n&&typeof n=="object"&&(i=Object.assign(Object.assign({},i),n)),i},[n,r])}function S1e(){const e={};for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.forEach(o=>{o&&Object.keys(o).forEach(a=>{o[a]!==void 0&&(e[a]=o[a])})}),e}const Ekt={};function P9e(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ekt;const i=b1e(e),o=b1e(n),a=typeof i!="boolean"?!!(i!=null&&i.disabled):!1,s=V.useMemo(()=>Object.assign({closeIcon:V.createElement(jp,null)},r),[r]),l=V.useMemo(()=>i===!1?!1:i?S1e(s,o,i):o===!1?!1:o?S1e(s,o):s.closable?s:!1,[i,o,s]);return V.useMemo(()=>{if(l===!1)return[!1,null,a];const{closeIconRender:c}=s,{closeIcon:u}=l;let d=u;if(d!=null){c&&(d=c(u));const f=Va(l,!0);Object.keys(f).length&&(d=V.isValidElement(d)?V.cloneElement(d,f):V.createElement("span",Object.assign({},f),d))}return[!0,d,a]},[l,s])}const Ckt=()=>_f()&&window.document.documentElement,Q9=e=>{const{prefixCls:n,className:r,style:i,size:o,shape:a}=e,s=Ce({[`${n}-lg`]:o==="large",[`${n}-sm`]:o==="small"}),l=Ce({[`${n}-circle`]:a==="circle",[`${n}-square`]:a==="square",[`${n}-round`]:a==="round"}),c=m.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return m.createElement("span",{className:Ce(n,s,l,r),style:Object.assign(Object.assign({},c),i)})},wkt=new kr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Z9=e=>({height:e,lineHeight:Ye(e)}),GT=e=>Object.assign({width:e},Z9(e)),xkt=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:wkt,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ZY=(e,n)=>Object.assign({width:n(e).mul(5).equal(),minWidth:n(e).mul(5).equal()},Z9(e)),Tkt=e=>{const{skeletonAvatarCls:n,gradientFromColor:r,controlHeight:i,controlHeightLG:o,controlHeightSM:a}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},GT(i)),[`${n}${n}-circle`]:{borderRadius:"50%"},[`${n}${n}-lg`]:Object.assign({},GT(o)),[`${n}${n}-sm`]:Object.assign({},GT(a))}},Okt=e=>{const{controlHeight:n,borderRadiusSM:r,skeletonInputCls:i,controlHeightLG:o,controlHeightSM:a,gradientFromColor:s,calc:l}=e;return{[i]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:r},ZY(n,l)),[`${i}-lg`]:Object.assign({},ZY(o,l)),[`${i}-sm`]:Object.assign({},ZY(a,l))}},E1e=e=>Object.assign({width:e},Z9(e)),Rkt=e=>{const{skeletonImageCls:n,imageSizeBase:r,gradientFromColor:i,borderRadiusSM:o,calc:a}=e;return{[n]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:i,borderRadius:o},E1e(a(r).mul(2).equal())),{[`${n}-path`]:{fill:"#bfbfbf"},[`${n}-svg`]:Object.assign(Object.assign({},E1e(r)),{maxWidth:a(r).mul(4).equal(),maxHeight:a(r).mul(4).equal()}),[`${n}-svg${n}-svg-circle`]:{borderRadius:"50%"}}),[`${n}${n}-circle`]:{borderRadius:"50%"}}},JY=(e,n,r)=>{const{skeletonButtonCls:i}=e;return{[`${r}${i}-circle`]:{width:n,minWidth:n,borderRadius:"50%"},[`${r}${i}-round`]:{borderRadius:n}}},eq=(e,n)=>Object.assign({width:n(e).mul(2).equal(),minWidth:n(e).mul(2).equal()},Z9(e)),Ikt=e=>{const{borderRadiusSM:n,skeletonButtonCls:r,controlHeight:i,controlHeightLG:o,controlHeightSM:a,gradientFromColor:s,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n,width:l(i).mul(2).equal(),minWidth:l(i).mul(2).equal()},eq(i,l))},JY(e,i,r)),{[`${r}-lg`]:Object.assign({},eq(o,l))}),JY(e,o,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},eq(a,l))}),JY(e,a,`${r}-sm`))},Nkt=e=>{const{componentCls:n,skeletonAvatarCls:r,skeletonTitleCls:i,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:s,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:h,borderRadius:g,titleHeight:v,blockRadius:y,paragraphLiHeight:_,controlHeightXS:S,paragraphMarginTop:b}=e;return{[n]:{display:"table",width:"100%",[`${n}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},GT(c)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},GT(u)),[`${r}-sm`]:Object.assign({},GT(d))},[`${n}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[i]:{width:"100%",height:v,background:f,borderRadius:y,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:_,listStyle:"none",background:f,borderRadius:y,"+ li":{marginBlockStart:S}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${n}-content`]:{[`${i}, ${o} > li`]:{borderRadius:g}}},[`${n}-with-avatar ${n}-content`]:{[i]:{marginBlockStart:h,[`+ ${o}`]:{marginBlockStart:b}}},[`${n}${n}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ikt(e)),Tkt(e)),Okt(e)),Rkt(e)),[`${n}${n}-block`]:{width:"100%",[a]:{width:"100%"},[s]:{width:"100%"}},[`${n}${n}-active`]:{[`
|
||
${i},
|
||
${o} > li,
|
||
${r},
|
||
${a},
|
||
${s},
|
||
${l}
|
||
`]:Object.assign({},xkt(e))}}},Mkt=e=>{const{colorFillContent:n,colorFill:r}=e,i=n,o=r;return{color:i,colorGradientEnd:o,gradientFromColor:i,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},lI=Yr("Skeleton",e=>{const{componentCls:n,calc:r}=e,i=wr(e,{skeletonAvatarCls:`${n}-avatar`,skeletonTitleCls:`${n}-title`,skeletonParagraphCls:`${n}-paragraph`,skeletonButtonCls:`${n}-button`,skeletonInputCls:`${n}-input`,skeletonImageCls:`${n}-image`,imageSizeBase:r(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[Nkt(i)]},Mkt,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Pkt=e=>{const{prefixCls:n,className:r,rootClassName:i,active:o,shape:a="circle",size:s="default"}=e,{getPrefixCls:l}=m.useContext(Cn),c=l("skeleton",n),[u,d,f]=lI(c),p=Wr(e,["prefixCls","className"]),h=Ce(c,`${c}-element`,{[`${c}-active`]:o},r,i,d,f);return u(m.createElement("div",{className:h},m.createElement(Q9,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:s},p))))},Akt=e=>{const{prefixCls:n,className:r,rootClassName:i,active:o,block:a=!1,size:s="default"}=e,{getPrefixCls:l}=m.useContext(Cn),c=l("skeleton",n),[u,d,f]=lI(c),p=Wr(e,["prefixCls"]),h=Ce(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},r,i,d,f);return u(m.createElement("div",{className:h},m.createElement(Q9,Object.assign({prefixCls:`${c}-button`,size:s},p))))},Dkt="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",kkt=e=>{const{prefixCls:n,className:r,rootClassName:i,style:o,active:a}=e,{getPrefixCls:s}=m.useContext(Cn),l=s("skeleton",n),[c,u,d]=lI(l),f=Ce(l,`${l}-element`,{[`${l}-active`]:a},r,i,u,d);return c(m.createElement("div",{className:f},m.createElement("div",{className:Ce(`${l}-image`,r),style:o},m.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},m.createElement("title",null,"Image placeholder"),m.createElement("path",{d:Dkt,className:`${l}-image-path`})))))},Lkt=e=>{const{prefixCls:n,className:r,rootClassName:i,active:o,block:a,size:s="default"}=e,{getPrefixCls:l}=m.useContext(Cn),c=l("skeleton",n),[u,d,f]=lI(c),p=Wr(e,["prefixCls"]),h=Ce(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},r,i,d,f);return u(m.createElement("div",{className:h},m.createElement(Q9,Object.assign({prefixCls:`${c}-input`,size:s},p))))},$kt=e=>{const{prefixCls:n,className:r,rootClassName:i,style:o,active:a,children:s}=e,{getPrefixCls:l}=m.useContext(Cn),c=l("skeleton",n),[u,d,f]=lI(c),p=Ce(c,`${c}-element`,{[`${c}-active`]:a},d,r,i,f);return u(m.createElement("div",{className:p},m.createElement("div",{className:Ce(`${c}-image`,r),style:o},s)))},Fkt=(e,n)=>{const{width:r,rows:i=2}=n;if(Array.isArray(r))return r[e];if(i-1===e)return r},Bkt=e=>{const{prefixCls:n,className:r,style:i,rows:o}=e,a=Tt(new Array(o)).map((s,l)=>m.createElement("li",{key:l,style:{width:Fkt(l,e)}}));return m.createElement("ul",{className:Ce(n,r),style:i},a)},jkt=e=>{let{prefixCls:n,className:r,width:i,style:o}=e;return m.createElement("h3",{className:Ce(n,r),style:Object.assign({width:i},o)})};function tq(e){return e&&typeof e=="object"?e:{}}function Ukt(e,n){return e&&!n?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Hkt(e,n){return!e&&n?{width:"38%"}:e&&n?{width:"50%"}:{}}function zkt(e,n){const r={};return(!e||!n)&&(r.width="61%"),!e&&n?r.rows=3:r.rows=2,r}const Qy=e=>{const{prefixCls:n,loading:r,className:i,rootClassName:o,style:a,children:s,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:h,skeleton:g}=m.useContext(Cn),v=p("skeleton",n),[y,_,S]=lI(v);if(r||!("loading"in e)){const b=!!l,E=!!c,w=!!u;let C;if(b){const R=Object.assign(Object.assign({prefixCls:`${v}-avatar`},Ukt(E,w)),tq(l));C=m.createElement("div",{className:`${v}-header`},m.createElement(Q9,Object.assign({},R)))}let x;if(E||w){let R;if(E){const M=Object.assign(Object.assign({prefixCls:`${v}-title`},Hkt(b,w)),tq(c));R=m.createElement(jkt,Object.assign({},M))}let O;if(w){const M=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},zkt(b,E)),tq(u));O=m.createElement(Bkt,Object.assign({},M))}x=m.createElement("div",{className:`${v}-content`},R,O)}const T=Ce(v,{[`${v}-with-avatar`]:b,[`${v}-active`]:d,[`${v}-rtl`]:h==="rtl",[`${v}-round`]:f},g==null?void 0:g.className,i,o,_,S);return y(m.createElement("div",{className:T,style:Object.assign(Object.assign({},g==null?void 0:g.style),a)},C,x))}return s??null};Qy.Button=Akt;Qy.Avatar=Pkt;Qy.Input=Lkt;Qy.Image=kkt;Qy.Node=$kt;function C1e(){}const Vkt=m.createContext({add:C1e,remove:C1e});function A9e(e){const n=m.useContext(Vkt),r=m.useRef(null);return Sr(o=>{if(o){const a=e?o.querySelector(e):o;n.add(a),r.current=a}else n.remove(r.current)})}const w1e=()=>{const{cancelButtonProps:e,cancelTextLocale:n,onCancel:r}=m.useContext(hk);return V.createElement(qn,Object.assign({onClick:r},e),n)},x1e=()=>{const{confirmLoading:e,okButtonProps:n,okType:r,okTextLocale:i,onOk:o}=m.useContext(hk);return V.createElement(qn,Object.assign({},Oue(r),{loading:e,onClick:o},n),i)};function D9e(e,n){return V.createElement("span",{className:`${e}-close-x`},n||V.createElement(jp,{className:`${e}-close-icon`}))}const k9e=e=>{const{okText:n,okType:r="primary",cancelText:i,confirmLoading:o,onOk:a,onCancel:s,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=Nu("Modal",t7e()),f=n||(d==null?void 0:d.okText),p=i||(d==null?void 0:d.cancelText),h={confirmLoading:o,okButtonProps:l,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:p,okType:r,onOk:a,onCancel:s},g=V.useMemo(()=>h,Tt(Object.values(h)));let v;return typeof u=="function"||typeof u>"u"?(v=V.createElement(V.Fragment,null,V.createElement(w1e,null),V.createElement(x1e,null)),typeof u=="function"&&(v=u(v,{OkBtn:x1e,CancelBtn:w1e})),v=V.createElement(v9e,{value:g},v)):v=u,V.createElement(_ue,{disabled:!1},v)},Gkt=e=>{const{componentCls:n}=e;return{[n]:{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"}}}},Wkt=e=>{const{componentCls:n}=e;return{[n]:{position:"relative",maxWidth:"100%",minHeight:1}}},Ykt=(e,n)=>{const{prefixCls:r,componentCls:i,gridColumns:o}=e,a={};for(let s=o;s>=0;s--)s===0?(a[`${i}${n}-${s}`]={display:"none"},a[`${i}-push-${s}`]={insetInlineStart:"auto"},a[`${i}-pull-${s}`]={insetInlineEnd:"auto"},a[`${i}${n}-push-${s}`]={insetInlineStart:"auto"},a[`${i}${n}-pull-${s}`]={insetInlineEnd:"auto"},a[`${i}${n}-offset-${s}`]={marginInlineStart:0},a[`${i}${n}-order-${s}`]={order:0}):(a[`${i}${n}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/o*100}%`,maxWidth:`${s/o*100}%`}],a[`${i}${n}-push-${s}`]={insetInlineStart:`${s/o*100}%`},a[`${i}${n}-pull-${s}`]={insetInlineEnd:`${s/o*100}%`},a[`${i}${n}-offset-${s}`]={marginInlineStart:`${s/o*100}%`},a[`${i}${n}-order-${s}`]={order:s});return a[`${i}${n}-flex`]={flex:`var(--${r}${n}-flex)`},a},nie=(e,n)=>Ykt(e,n),qkt=(e,n,r)=>({[`@media (min-width: ${Ye(n)})`]:Object.assign({},nie(e,r))}),Kkt=()=>({}),Xkt=()=>({}),Qkt=Yr("Grid",Gkt,Kkt),L9e=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),Zkt=Yr("Grid",e=>{const n=wr(e,{gridColumns:24}),r=L9e(n);return delete r.xs,[Wkt(n),nie(n,""),nie(n,"-xs"),Object.keys(r).map(i=>qkt(n,r[i],`-${i}`)).reduce((i,o)=>Object.assign(Object.assign({},i),o),{})]},Xkt);function T1e(e){return{position:e,inset:0}}const $9e=e=>{const{componentCls:n,antCls:r}=e;return[{[`${n}-root`]:{[`${n}${r}-zoom-enter, ${n}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${n}${r}-zoom-leave ${n}-content`]:{pointerEvents:"none"},[`${n}-mask`]:Object.assign(Object.assign({},T1e("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${n}-hidden`]:{display:"none"}}),[`${n}-wrap`]:Object.assign(Object.assign({},T1e("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${n}-root`]:Nue(e)}]},Jkt=e=>{const{componentCls:n}=e;return[{[`${n}-root`]:{[`${n}-wrap-rtl`]:{direction:"rtl"},[`${n}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[n]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[n]:{maxWidth:"calc(100vw - 16px)",margin:`${Ye(e.marginXS)} auto`},[`${n}-centered`]:{[n]:{flex:1}}}}},{[n]:Object.assign(Object.assign({},li(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ye(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${n}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${n}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${n}-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:Ye(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Op(e)),[`${n}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${n}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Ye(e.margin)} auto`}},[`${n}-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}},[`${n}-open`]:{overflow:"hidden"}})},{[`${n}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${n}-content,
|
||
${n}-body,
|
||
${n}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${n}-confirm-body`]:{marginBottom:"auto"}}}]},eLt=e=>{const{componentCls:n}=e;return{[`${n}-root`]:{[`${n}-wrap-rtl`]:{direction:"rtl",[`${n}-confirm-body`]:{direction:"rtl"}}}}},tLt=e=>{const{componentCls:n}=e,r=L9e(e);delete r.xs;const i=Object.keys(r).map(o=>({[`@media (min-width: ${Ye(r[o])})`]:{width:`var(--${n.replace(".","")}-${o}-width)`}}));return{[`${n}-root`]:{[n]:[{width:`var(--${n.replace(".","")}-xs-width)`}].concat(Tt(i))}}},F9e=e=>{const n=e.padding,r=e.fontSizeHeading5,i=e.lineHeightHeading5;return wr(e,{modalHeaderHeight:e.calc(e.calc(i).mul(r).equal()).add(e.calc(n).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()})},B9e=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ye(e.paddingMD)} ${Ye(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ye(e.padding)} ${Ye(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ye(e.paddingXS)} ${Ye(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ye(e.padding*2)} ${Ye(e.padding*2)} ${Ye(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),j9e=Yr("Modal",e=>{const n=F9e(e);return[Jkt(n),eLt(n),$9e(n),aI(n,"zoom"),tLt(n)]},B9e,{unitless:{titleLineHeight:!0}});var nLt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};let rie;const rLt=e=>{rie={x:e.pageX,y:e.pageY},setTimeout(()=>{rie=null},100)};Ckt()&&document.documentElement.addEventListener("click",rLt,!0);const U9e=e=>{var n;const{getPopupContainer:r,getPrefixCls:i,direction:o,modal:a}=m.useContext(Cn),s=Z=>{const{onCancel:j}=e;j==null||j(Z)},l=Z=>{const{onOk:j}=e;j==null||j(Z)},{prefixCls:c,className:u,rootClassName:d,open:f,wrapClassName:p,centered:h,getContainer:g,focusTriggerAfterClose:v=!0,style:y,visible:_,width:S=520,footer:b,classNames:E,styles:w,children:C,loading:x}=e,T=nLt(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),R=i("modal",c),O=i(),M=po(R),[P,k,$]=j9e(R,M),U=Ce(p,{[`${R}-centered`]:!!h,[`${R}-wrap-rtl`]:o==="rtl"}),z=b!==null&&!x?m.createElement(k9e,Object.assign({},e,{onOk:l,onCancel:s})):null,[D,B,Y]=P9e(j8(e),j8(a),{closable:!0,closeIcon:m.createElement(jp,{className:`${R}-close-icon`}),closeIconRender:Z=>D9e(R,Z)}),q=A9e(`.${R}-content`),[K,H]=Up("Modal",T.zIndex),[G,Q]=m.useMemo(()=>S&&typeof S=="object"?[void 0,S]:[S,void 0],[S]),le=m.useMemo(()=>{const Z={};return Q&&Object.keys(Q).forEach(j=>{const F=Q[j];F!==void 0&&(Z[`--${R}-${j}-width`]=typeof F=="number"?`${F}px`:F)}),Z},[Q]);return P(m.createElement(tg,{form:!0,space:!0},m.createElement(uk.Provider,{value:H},m.createElement(Lue,Object.assign({width:G},T,{zIndex:K,getContainer:g===void 0?r:g,prefixCls:R,rootClassName:Ce(k,d,$,M),footer:z,visible:f??_,mousePosition:(n=T.mousePosition)!==null&&n!==void 0?n:rie,onClose:s,closable:D&&{disabled:Y,closeIcon:B},closeIcon:B,focusTriggerAfterClose:v,transitionName:Kl(O,"zoom",e.transitionName),maskTransitionName:Kl(O,"fade",e.maskTransitionName),className:Ce(k,u,a==null?void 0:a.className),style:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.style),y),le),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),E),{wrapper:Ce(U,E==null?void 0:E.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),w),panelRef:q}),x?m.createElement(Qy,{active:!0,title:!1,paragraph:{rows:4},className:`${R}-body-skeleton`}):C))))},iLt=e=>{const{componentCls:n,titleFontSize:r,titleLineHeight:i,modalConfirmIconSize:o,fontSize:a,lineHeight:s,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,d=`${n}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Im()),[`&${n} ${n}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Ye(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${Ye(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:i},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:s},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
|
||
${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},oLt=Sue(["Modal","confirm"],e=>{const n=F9e(e);return[iLt(n)]},B9e,{order:-1e3});var aLt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function H9e(e){const{prefixCls:n,icon:r,okText:i,cancelText:o,confirmPrefixCls:a,type:s,okCancel:l,footer:c,locale:u}=e,d=aLt(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=r;if(!r&&r!==null)switch(s){case"info":f=m.createElement(k9,null);break;case"success":f=m.createElement(tw,null);break;case"error":f=m.createElement(ev,null);break;default:f=m.createElement(eS,null)}const p=l??s==="confirm",h=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[g]=Nu("Modal"),v=u||g,y=i||(p?v==null?void 0:v.okText:v==null?void 0:v.justOkText),_=o||(v==null?void 0:v.cancelText),S=Object.assign({autoFocusButton:h,cancelTextLocale:_,okTextLocale:y,mergedOkCancel:p},d),b=m.useMemo(()=>S,Tt(Object.values(S))),E=m.createElement(m.Fragment,null,m.createElement(t1e,null),m.createElement(n1e,null)),w=e.title!==void 0&&e.title!==null,C=`${a}-body`;return m.createElement("div",{className:`${a}-body-wrapper`},m.createElement("div",{className:Ce(C,{[`${C}-has-title`]:w})},f,m.createElement("div",{className:`${a}-paragraph`},w&&m.createElement("span",{className:`${a}-title`},e.title),m.createElement("div",{className:`${a}-content`},e.content))),c===void 0||typeof c=="function"?m.createElement(v9e,{value:b},m.createElement("div",{className:`${a}-btns`},typeof c=="function"?c(E,{OkBtn:n1e,CancelBtn:t1e}):E)):c,m.createElement(oLt,{prefixCls:n}))}const sLt=e=>{const{close:n,zIndex:r,maskStyle:i,direction:o,prefixCls:a,wrapClassName:s,rootPrefixCls:l,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f}=e,p=`${a}-confirm`,h=e.width||416,g=e.style||{},v=e.mask===void 0?!0:e.mask,y=e.maskClosable===void 0?!1:e.maskClosable,_=Ce(p,`${p}-${e.type}`,{[`${p}-rtl`]:o==="rtl"},e.className),[,S]=Nl(),b=m.useMemo(()=>r!==void 0?r:S.zIndexPopupBase+wue,[r,S]);return m.createElement(U9e,Object.assign({},e,{className:_,wrapClassName:Ce({[`${p}-centered`]:!!e.centered},s),onCancel:()=>{n==null||n({triggerCancel:!0}),d==null||d(!1)},title:"",footer:null,transitionName:Kl(l||"","zoom",e.transitionName),maskTransitionName:Kl(l||"","fade",e.maskTransitionName),mask:v,maskClosable:y,style:g,styles:Object.assign({body:c,mask:i},f),width:h,zIndex:b,closable:u}),m.createElement(H9e,Object.assign({},e,{confirmPrefixCls:p})))},z9e=e=>{const{rootPrefixCls:n,iconPrefixCls:r,direction:i,theme:o}=e;return m.createElement(or,{prefixCls:n,iconPrefixCls:r,direction:i,theme:o},m.createElement(sLt,Object.assign({},e)))},i1=[];let V9e="";function G9e(){return V9e}const lLt=e=>{var n,r;const{prefixCls:i,getContainer:o,direction:a}=e,s=t7e(),l=m.useContext(Cn),c=G9e()||l.getPrefixCls(),u=i||`${c}-modal`;let d=o;return d===!1&&(d=void 0),V.createElement(z9e,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:a??l.direction,locale:(r=(n=l.locale)===null||n===void 0?void 0:n.Modal)!==null&&r!==void 0?r:s,getContainer:d}))};function vk(e){const n=k7e(),r=document.createDocumentFragment();let i=Object.assign(Object.assign({},e),{close:c,open:!0}),o,a;function s(){for(var d,f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];if(p.some(y=>y==null?void 0:y.triggerCancel)){var v;(d=e.onCancel)===null||d===void 0||(v=d).call.apply(v,[e,()=>{}].concat(Tt(p.slice(1))))}for(let y=0;y<i1.length;y++)if(i1[y]===c){i1.splice(y,1);break}a()}function l(d){clearTimeout(o),o=setTimeout(()=>{const f=n.getPrefixCls(void 0,G9e()),p=n.getIconPrefixCls(),h=n.getTheme(),g=V.createElement(lLt,Object.assign({},d));a=Tue()(V.createElement(or,{prefixCls:f,iconPrefixCls:p,theme:h},n.holderRender?n.holderRender(g):g),r)})}function c(){for(var d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,f)}}),i.visible&&delete i.visible,l(i)}function u(d){typeof d=="function"?i=d(i):i=Object.assign(Object.assign({},i),d),l(i)}return l(i),i1.push(c),{destroy:c,update:u}}function W9e(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Y9e(e){return Object.assign(Object.assign({},e),{type:"info"})}function q9e(e){return Object.assign(Object.assign({},e),{type:"success"})}function K9e(e){return Object.assign(Object.assign({},e),{type:"error"})}function X9e(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function cLt(e){let{rootPrefixCls:n}=e;V9e=n}var uLt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const dLt=(e,n)=>{var r,{afterClose:i,config:o}=e,a=uLt(e,["afterClose","config"]);const[s,l]=m.useState(!0),[c,u]=m.useState(o),{direction:d,getPrefixCls:f}=m.useContext(Cn),p=f("modal"),h=f(),g=()=>{var S;i(),(S=c.afterClose)===null||S===void 0||S.call(c)},v=function(){var S;l(!1);for(var b=arguments.length,E=new Array(b),w=0;w<b;w++)E[w]=arguments[w];if(E.some(T=>T==null?void 0:T.triggerCancel)){var x;(S=c.onCancel)===null||S===void 0||(x=S).call.apply(x,[c,()=>{}].concat(Tt(E.slice(1))))}};m.useImperativeHandle(n,()=>({destroy:v,update:S=>{u(b=>Object.assign(Object.assign({},b),S))}}));const y=(r=c.okCancel)!==null&&r!==void 0?r:c.type==="confirm",[_]=Nu("Modal",Tp.Modal);return m.createElement(z9e,Object.assign({prefixCls:p,rootPrefixCls:h},c,{close:v,open:s,afterClose:g,okText:c.okText||(y?_==null?void 0:_.okText:_==null?void 0:_.justOkText),direction:c.direction||d,cancelText:c.cancelText||(_==null?void 0:_.cancelText)},a))},fLt=m.forwardRef(dLt);let O1e=0;const pLt=m.memo(m.forwardRef((e,n)=>{const[r,i]=iPt();return m.useImperativeHandle(n,()=>({patchElement:i}),[]),m.createElement(m.Fragment,null,r)}));function Q9e(){const e=m.useRef(null),[n,r]=m.useState([]);m.useEffect(()=>{n.length&&(Tt(n).forEach(s=>{s()}),r([]))},[n]);const i=m.useCallback(a=>function(l){var c;O1e+=1;const u=m.createRef();let d;const f=new Promise(y=>{d=y});let p=!1,h;const g=m.createElement(fLt,{key:`modal-${O1e}`,config:a(l),ref:u,afterClose:()=>{h==null||h()},isSilent:()=>p,onConfirm:y=>{d(y)}});return h=(c=e.current)===null||c===void 0?void 0:c.patchElement(g),h&&i1.push(h),{destroy:()=>{function y(){var _;(_=u.current)===null||_===void 0||_.destroy()}u.current?y():r(_=>[].concat(Tt(_),[y]))},update:y=>{function _(){var S;(S=u.current)===null||S===void 0||S.update(y)}u.current?_():r(S=>[].concat(Tt(S),[_]))},then:y=>(p=!0,f.then(y))}},[]);return[m.useMemo(()=>({info:i(Y9e),success:i(q9e),error:i(K9e),warning:i(W9e),confirm:i(X9e)}),[]),m.createElement(pLt,{key:"modal-holder",ref:e})]}const hLt=e=>{const{componentCls:n,notificationMarginEdge:r,animationMaxHeight:i}=e,o=`${n}-notice`,a=new kr("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),s=new kr("antNotificationTopFadeIn",{"0%":{top:-i,opacity:0},"100%":{top:0,opacity:1}}),l=new kr("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(i).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new kr("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[n]:{[`&${n}-top, &${n}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${n}-top`]:{[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:s}},[`&${n}-bottom`]:{[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:l}},[`&${n}-topRight, &${n}-bottomRight`]:{[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:a}},[`&${n}-topLeft, &${n}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:r,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:c}}}}},gLt=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],mLt={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},vLt=(e,n)=>{const{componentCls:r}=e;return{[`${r}-${n}`]:{[`&${r}-stack > ${r}-notice-wrapper`]:{[n.startsWith("top")?"top":"bottom"]:0,[mLt[n]]:{value:0,_skip_check_:!0}}}}},yLt=e=>{const n={};for(let r=1;r<e.notificationStackLayer;r++)n[`&:nth-last-child(${r+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"}},n)},_Lt=e=>{const n={};for(let r=1;r<e.notificationStackLayer;r++)n[`&:nth-last-child(${r+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},n)},bLt=e=>{const{componentCls:n}=e;return Object.assign({[`${n}-stack`]:{[`& > ${n}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},yLt(e))},[`${n}-stack:not(${n}-stack-expanded)`]:{[`& > ${n}-notice-wrapper`]:Object.assign({},_Lt(e))},[`${n}-stack${n}-stack-expanded`]:{[`& > ${n}-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"}}}},gLt.map(r=>vLt(e,r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{}))},SLt=e=>{const{iconCls:n,componentCls:r,boxShadow:i,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:s,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:p,notificationPadding:h,notificationMarginEdge:g,notificationProgressBg:v,notificationProgressHeight:y,fontSize:_,lineHeight:S,width:b,notificationIconSize:E,colorText:w}=e,C=`${r}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:p,borderRadius:s,boxShadow:i,[C]:{padding:h,width:b,maxWidth:`calc(100vw - ${Ye(e.calc(g).mul(2).equal())})`,overflow:"hidden",lineHeight:S,wordWrap:"break-word"},[`${C}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:_,color:w},[`${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:o},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:_},[`${C}-icon`]:{position:"absolute",fontSize:E,lineHeight:1,[`&-success${n}`]:{color:l},[`&-info${n}`]:{color:c},[`&-warning${n}`]:{color:u},[`&-error${n}`]:{color:d}},[`${C}-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}},Op(e)),[`${C}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Ye(s)} * 2)`,left:{_skip_check_:!0,value:s},right:{_skip_check_:!0,value:s},bottom:0,blockSize:y,border:0,"&, &::-webkit-progress-bar":{borderRadius:s,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:v},"&::-webkit-progress-value":{borderRadius:s,background:v}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},ELt=e=>{const{componentCls:n,notificationMarginBottom:r,notificationMarginEdge:i,motionDurationMid:o,motionEaseInOut:a}=e,s=`${n}-notice`,l=new kr("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:r},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:Object.assign(Object.assign({},li(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:i,_skip_check_:!0},[`${n}-hook-holder`]:{position:"relative"},[`${n}-fade-appear-prepare`]:{opacity:"0 !important"},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${s}-btn`]:{float:"left"}}})},{[n]:{[`${s}-wrapper`]:Object.assign({},SLt(e))}}]},CLt=e=>({zIndexPopup:e.zIndexPopupBase+wue+50,width:384}),wLt=e=>{const n=e.paddingMD,r=e.paddingLG;return wr(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:n,notificationPaddingHorizontal:r,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Ye(e.paddingMD)} ${Ye(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},xLt=Yr("Notification",e=>{const n=wLt(e);return[ELt(n),hLt(n),bLt(n)]},CLt);function Z9e(e,n){return n===null||n===!1?null:n||m.createElement(jp,{className:`${e}-close-icon`})}const TLt={success:tw,info:k9,error:ev,warning:eS},OLt=e=>{const{prefixCls:n,icon:r,type:i,message:o,description:a,btn:s,role:l="alert"}=e;let c=null;return r?c=m.createElement("span",{className:`${n}-icon`},r):i&&(c=m.createElement(TLt[i]||null,{className:Ce(`${n}-icon`,`${n}-icon-${i}`)})),m.createElement("div",{className:Ce({[`${n}-with-icon`]:c}),role:l},c,m.createElement("div",{className:`${n}-message`},o),m.createElement("div",{className:`${n}-description`},a),s&&m.createElement("div",{className:`${n}-btn`},s))};function RLt(e,n,r){let i;switch(e){case"top":i={left:"50%",transform:"translateX(-50%)",right:"auto",top:n,bottom:"auto"};break;case"topLeft":i={left:0,top:n,bottom:"auto"};break;case"topRight":i={right:0,top:n,bottom:"auto"};break;case"bottom":i={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:r};break;case"bottomLeft":i={left:0,top:"auto",bottom:r};break;default:i={right:0,top:"auto",bottom:r};break}return i}function ILt(e){return{motionName:`${e}-fade`}}var NLt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const R1e=24,MLt=4.5,PLt="topRight",ALt=e=>{let{children:n,prefixCls:r}=e;const i=po(r),[o,a,s]=xLt(r,i);return o(V.createElement(Y7e,{classNames:{list:Ce(a,s,i)}},n))},DLt=(e,n)=>{let{prefixCls:r,key:i}=n;return V.createElement(ALt,{prefixCls:r,key:i},e)},kLt=V.forwardRef((e,n)=>{const{top:r,bottom:i,prefixCls:o,getContainer:a,maxCount:s,rtl:l,onAllRemoved:c,stack:u,duration:d,pauseOnHover:f=!0,showProgress:p}=e,{getPrefixCls:h,getPopupContainer:g,notification:v,direction:y}=m.useContext(Cn),[,_]=Nl(),S=o||h("notification"),b=T=>RLt(T,r??R1e,i??R1e),E=()=>Ce({[`${S}-rtl`]:l??y==="rtl"}),w=()=>ILt(S),[C,x]=q7e({prefixCls:S,style:b,className:E,motion:w,closable:!0,closeIcon:Z9e(S),duration:d??MLt,getContainer:()=>(a==null?void 0:a())||(g==null?void 0:g())||document.body,maxCount:s,pauseOnHover:f,showProgress:p,onAllRemoved:c,renderNotifications:DLt,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:_.margin}});return V.useImperativeHandle(n,()=>Object.assign(Object.assign({},C),{prefixCls:S,notification:v})),x});function LLt(e){const n=V.useRef(null);return JC(),[V.useMemo(()=>{const i=l=>{var c;if(!n.current)return;const{open:u,prefixCls:d,notification:f}=n.current,p=`${d}-notice`,{message:h,description:g,icon:v,type:y,btn:_,className:S,style:b,role:E="alert",closeIcon:w,closable:C}=l,x=NLt(l,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),T=Z9e(p,typeof w<"u"?w:f==null?void 0:f.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:PLt},x),{content:V.createElement(OLt,{prefixCls:p,icon:v,type:y,message:h,description:g,btn:_,role:E}),className:Ce(y&&`${p}-${y}`,S,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),closeIcon:T,closable:C??!!T}))},a={open:i,destroy:l=>{var c,u;l!==void 0?(c=n.current)===null||c===void 0||c.close(l):(u=n.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=c=>i(Object.assign(Object.assign({},c),{type:l}))}),a},[]),V.createElement(kLt,Object.assign({key:"notification-holder"},e,{ref:n}))]}function $Lt(e){return LLt(e)}const iie=V.createContext({}),J9e=V.createContext({message:{},notification:{},modal:{}}),FLt=e=>{const{componentCls:n,colorText:r,fontSize:i,lineHeight:o,fontFamily:a}=e;return{[n]:{color:r,fontSize:i,lineHeight:o,fontFamily:a,[`&${n}-rtl`]:{direction:"rtl"}}}},BLt=()=>({}),jLt=Yr("App",FLt,BLt),ULt=()=>V.useContext(J9e),J9=e=>{const{prefixCls:n,children:r,className:i,rootClassName:o,message:a,notification:s,style:l,component:c="div"}=e,{direction:u,getPrefixCls:d}=m.useContext(Cn),f=d("app",n),[p,h,g]=jLt(f),v=Ce(h,f,i,o,g,{[`${f}-rtl`]:u==="rtl"}),y=m.useContext(iie),_=V.useMemo(()=>({message:Object.assign(Object.assign({},y.message),a),notification:Object.assign(Object.assign({},y.notification),s)}),[a,s,y.message,y.notification]),[S,b]=J7e(_.message),[E,w]=$Lt(_.notification),[C,x]=Q9e(),T=V.useMemo(()=>({message:S,notification:E,modal:C}),[S,E,C]);JC()(!(g&&c===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const R=c===!1?V.Fragment:c,O={className:v,style:l};return p(V.createElement(J9e.Provider,{value:T},V.createElement(iie.Provider,{value:_},V.createElement(R,Object.assign({},c===!1?void 0:O),x,b,w,r))))};J9.useApp=ULt;function eUe(e){return n=>m.createElement(or,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m.createElement(e,Object.assign({},n)))}const tS=(e,n,r,i,o)=>eUe(s=>{const{prefixCls:l,style:c}=s,u=m.useRef(null),[d,f]=m.useState(0),[p,h]=m.useState(0),[g,v]=dr(!1,{value:s.open}),{getPrefixCls:y}=m.useContext(Cn),_=y(i||"select",l);m.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const E=new ResizeObserver(C=>{const x=C[0].target;f(x.offsetHeight+8),h(x.offsetWidth)}),w=setInterval(()=>{var C;const x=o?`.${o(_)}`:`.${_}-dropdown`,T=(C=u.current)===null||C===void 0?void 0:C.querySelector(x);T&&(clearInterval(w),E.observe(T))},10);return()=>{clearInterval(w),E.disconnect()}}},[]);let S=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});r&&(S=r(S)),n&&Object.assign(S,{[n]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:d,position:"relative",minWidth:p};return m.createElement("div",{ref:u,style:b},m.createElement(e,Object.assign({},S)))}),eU=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==null?void 0:e.substr(0,4))};var tU=function(n){var r=n.className,i=n.customizeIcon,o=n.customizeIconProps,a=n.children,s=n.onMouseDown,l=n.onClick,c=typeof i=="function"?i(o):i;return m.createElement("span",{className:r,onMouseDown:function(d){d.preventDefault(),s==null||s(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:m.createElement("span",{className:Ce(r.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},HLt=function(n,r,i,o,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=V.useMemo(function(){if(cn(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=V.useMemo(function(){return!!(!s&&o&&(i.length||l)&&!(c==="combobox"&&l===""))},[o,s,i.length,l,c]);return{allowClear:d,clearIcon:V.createElement(tU,{className:"".concat(n,"-clear"),onMouseDown:r,customizeIcon:u},"×")}},tUe=m.createContext(null);function Uue(){return m.useContext(tUe)}function zLt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,n=m.useState(!1),r=ke(n,2),i=r[0],o=r[1],a=m.useRef(null),s=function(){window.clearTimeout(a.current)};m.useEffect(function(){return s},[]);var l=function(u,d){s(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[i,l,s]}function nUe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,n=m.useRef(null),r=m.useRef(null);m.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function i(o){(o||n.current===null)&&(n.current=o),window.clearTimeout(r.current),r.current=window.setTimeout(function(){n.current=null},e)}return[function(){return n.current},i]}function VLt(e,n,r,i){var o=m.useRef(null);o.current={open:n,triggerOpen:r,customizedTrigger:i},m.useEffect(function(){function a(s){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=s.target;c.shadowRoot&&s.composed&&(c=s.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function GLt(e){return e&&![At.ESC,At.SHIFT,At.BACKSPACE,At.TAB,At.WIN_KEY,At.ALT,At.META,At.WIN_KEY_RIGHT,At.CTRL,At.SEMICOLON,At.EQUALS,At.CAPS_LOCK,At.CONTEXT_MENU,At.F1,At.F2,At.F3,At.F4,At.F5,At.F6,At.F7,At.F8,At.F9,At.F10,At.F11,At.F12].includes(e)}var WLt=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],vx=void 0;function YLt(e,n){var r=e.prefixCls,i=e.invalidate,o=e.item,a=e.renderItem,s=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,h=e.display,g=e.order,v=e.component,y=v===void 0?"div":v,_=Xt(e,WLt),S=s&&!h;function b(T){c(u,T)}m.useEffect(function(){return function(){b(null)}},[]);var E=a&&o!==vx?a(o):p,w;i||(w={opacity:S?0:1,height:S?0:vx,overflowY:S?"hidden":vx,order:s?g:vx,pointerEvents:S?"none":vx,position:S?"absolute":vx});var C={};S&&(C["aria-hidden"]=!0);var x=m.createElement(y,ft({className:Ce(!i&&r,d),style:ee(ee({},w),f)},C,_,{ref:n}),E);return s&&(x=m.createElement(Hc,{onResize:function(R){var O=R.offsetWidth;b(O)},disabled:l},x)),x}var J2=m.forwardRef(YLt);J2.displayName="Item";function qLt(e){if(typeof MessageChannel>"u")Dr(e);else{var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(void 0)}}function KLt(){var e=m.useRef(null),n=function(i){e.current||(e.current=[],qLt(function(){Us.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(i)};return n}function aM(e,n){var r=m.useState(n),i=ke(r,2),o=i[0],a=i[1],s=Sr(function(l){e(function(){a(l)})});return[o,s]}var U8=V.createContext(null),XLt=["component"],QLt=["className"],ZLt=["className"],JLt=function(n,r){var i=m.useContext(U8);if(!i){var o=n.component,a=o===void 0?"div":o,s=Xt(n,XLt);return m.createElement(a,ft({},s,{ref:r}))}var l=i.className,c=Xt(i,QLt),u=n.className,d=Xt(n,ZLt);return m.createElement(U8.Provider,{value:null},m.createElement(J2,ft({ref:r,className:Ce(l,u)},c,d)))},rUe=m.forwardRef(JLt);rUe.displayName="RawItem";var e$t=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],iUe="responsive",oUe="invalidate";function t$t(e){return"+ ".concat(e.length," ...")}function n$t(e,n){var r=e.prefixCls,i=r===void 0?"rc-overflow":r,o=e.data,a=o===void 0?[]:o,s=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,p=e.style,h=e.className,g=e.maxCount,v=e.renderRest,y=e.renderRawRest,_=e.suffix,S=e.component,b=S===void 0?"div":S,E=e.itemComponent,w=e.onVisibleChange,C=Xt(e,e$t),x=f==="full",T=KLt(),R=aM(T,null),O=ke(R,2),M=O[0],P=O[1],k=M||0,$=aM(T,new Map),U=ke($,2),z=U[0],D=U[1],B=aM(T,0),Y=ke(B,2),q=Y[0],K=Y[1],H=aM(T,0),G=ke(H,2),Q=G[0],le=G[1],Z=aM(T,0),j=ke(Z,2),F=j[0],te=j[1],oe=m.useState(null),de=ke(oe,2),pe=de[0],me=de[1],ve=m.useState(null),he=ke(ve,2),be=he[0],we=he[1],De=m.useMemo(function(){return be===null&&x?Number.MAX_SAFE_INTEGER:be||0},[be,M]),Ae=m.useState(!1),Ee=ke(Ae,2),Re=Ee[0],Te=Ee[1],Oe="".concat(i,"-item"),Ne=Math.max(q,Q),je=g===iUe,ne=a.length&&je,J=g===oUe,ae=ne||typeof g=="number"&&a.length>g,Se=m.useMemo(function(){var Bt=a;return ne?M===null&&x?Bt=a:Bt=a.slice(0,Math.min(a.length,k/d)):typeof g=="number"&&(Bt=a.slice(0,g)),Bt},[a,d,M,g,ne]),xe=m.useMemo(function(){return ne?a.slice(De+1):a.slice(Se.length)},[a,Se,ne,De]),ue=m.useCallback(function(Bt,Vt){var rn;return typeof c=="function"?c(Bt):(rn=c&&(Bt==null?void 0:Bt[c]))!==null&&rn!==void 0?rn:Vt},[c]),Me=m.useCallback(s||function(Bt){return Bt},[s]);function $e(Bt,Vt,rn){be===Bt&&(Vt===void 0||Vt===pe)||(we(Bt),rn||(Te(Bt<a.length-1),w==null||w(Bt)),Vt!==void 0&&me(Vt))}function ge(Bt,Vt){P(Vt.clientWidth)}function Ve(Bt,Vt){D(function(rn){var tt=new Map(rn);return Vt===null?tt.delete(Bt):tt.set(Bt,Vt),tt})}function st(Bt,Vt){le(Vt),K(Q)}function Je(Bt,Vt){te(Vt)}function ot(Bt){return z.get(ue(Se[Bt],Bt))}ti(function(){if(k&&typeof Ne=="number"&&Se){var Bt=F,Vt=Se.length,rn=Vt-1;if(!Vt){$e(0,null);return}for(var tt=0;tt<Vt;tt+=1){var it=ot(tt);if(x&&(it=it||0),it===void 0){$e(tt-1,void 0,!0);break}if(Bt+=it,rn===0&&Bt<=k||tt===rn-1&&Bt+ot(rn)<=k){$e(rn,null);break}else if(Bt+Ne>k){$e(tt-1,Bt-it-F+Q);break}}_&&ot(0)+F>k&&me(null)}},[k,z,Q,F,ue,Se]);var Xe=Re&&!!xe.length,Ze={};pe!==null&&ne&&(Ze={position:"absolute",left:pe,top:0});var bt={prefixCls:Oe,responsive:ne,component:E,invalidate:J},at=l?function(Bt,Vt){var rn=ue(Bt,Vt);return m.createElement(U8.Provider,{key:rn,value:ee(ee({},bt),{},{order:Vt,item:Bt,itemKey:rn,registerSize:Ve,display:Vt<=De})},l(Bt,Vt))}:function(Bt,Vt){var rn=ue(Bt,Vt);return m.createElement(J2,ft({},bt,{order:Vt,key:rn,item:Bt,renderItem:Me,itemKey:rn,registerSize:Ve,display:Vt<=De}))},pt,Ct={order:Xe?De:Number.MAX_SAFE_INTEGER,className:"".concat(Oe,"-rest"),registerSize:st,display:Xe};if(y)y&&(pt=m.createElement(U8.Provider,{value:ee(ee({},bt),Ct)},y(xe)));else{var It=v||t$t;pt=m.createElement(J2,ft({},bt,Ct),typeof It=="function"?It(xe):It)}var Wt=m.createElement(b,ft({className:Ce(!J&&i,h),style:p,ref:n},C),Se.map(at),ae?pt:null,_&&m.createElement(J2,ft({},bt,{responsive:je,responsiveDisabled:!ne,order:De,className:"".concat(Oe,"-suffix"),registerSize:Je,display:!0,style:Ze}),_));return je&&(Wt=m.createElement(Hc,{onResize:ge,disabled:!ne},Wt)),Wt}var zh=m.forwardRef(n$t);zh.displayName="Overflow";zh.Item=rUe;zh.RESPONSIVE=iUe;zh.INVALIDATE=oUe;var r$t=function(n,r){var i,o=n.prefixCls,a=n.id,s=n.inputElement,l=n.disabled,c=n.tabIndex,u=n.autoFocus,d=n.autoComplete,f=n.editable,p=n.activeDescendantId,h=n.value,g=n.maxLength,v=n.onKeyDown,y=n.onMouseDown,_=n.onChange,S=n.onPaste,b=n.onCompositionStart,E=n.onCompositionEnd,w=n.onBlur,C=n.open,x=n.attrs,T=s||m.createElement("input",null),R=T,O=R.ref,M=R.props,P=M.onKeyDown,k=M.onChange,$=M.onMouseDown,U=M.onCompositionStart,z=M.onCompositionEnd,D=M.onBlur,B=M.style;return"maxLength"in T.props,T=m.cloneElement(T,ee(ee(ee({type:"search"},M),{},{id:a,ref:Il(r,O),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:Ce("".concat(o,"-selection-search-input"),(i=T)===null||i===void 0||(i=i.props)===null||i===void 0?void 0:i.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?p:void 0},x),{},{value:f?h:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:ee(ee({},B),{},{opacity:f?null:0}),onKeyDown:function(q){v(q),P&&P(q)},onMouseDown:function(q){y(q),$&&$(q)},onChange:function(q){_(q),k&&k(q)},onCompositionStart:function(q){b(q),U&&U(q)},onCompositionEnd:function(q){E(q),z&&z(q)},onPaste:S,onBlur:function(q){w(q),D&&D(q)}})),T},aUe=m.forwardRef(r$t);function sUe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var i$t=typeof window<"u"&&window.document&&window.document.documentElement,o$t=i$t;function a$t(e){return e!=null}function s$t(e){return!e&&e!==0}function I1e(e){return["string","number"].includes(cn(e))}function lUe(e){var n=void 0;return e&&(I1e(e.title)?n=e.title.toString():I1e(e.label)&&(n=e.label.toString())),n}function l$t(e,n){o$t?m.useLayoutEffect(e,n):m.useEffect(e,n)}function c$t(e){var n;return(n=e.key)!==null&&n!==void 0?n:e.value}var N1e=function(n){n.preventDefault(),n.stopPropagation()},u$t=function(n){var r=n.id,i=n.prefixCls,o=n.values,a=n.open,s=n.searchValue,l=n.autoClearSearchValue,c=n.inputRef,u=n.placeholder,d=n.disabled,f=n.mode,p=n.showSearch,h=n.autoFocus,g=n.autoComplete,v=n.activeDescendantId,y=n.tabIndex,_=n.removeIcon,S=n.maxTagCount,b=n.maxTagTextLength,E=n.maxTagPlaceholder,w=E===void 0?function(ve){return"+ ".concat(ve.length," ...")}:E,C=n.tagRender,x=n.onToggleOpen,T=n.onRemove,R=n.onInputChange,O=n.onInputPaste,M=n.onInputKeyDown,P=n.onInputMouseDown,k=n.onInputCompositionStart,$=n.onInputCompositionEnd,U=n.onInputBlur,z=m.useRef(null),D=m.useState(0),B=ke(D,2),Y=B[0],q=B[1],K=m.useState(!1),H=ke(K,2),G=H[0],Q=H[1],le="".concat(i,"-selection"),Z=a||f==="multiple"&&l===!1||f==="tags"?s:"",j=f==="tags"||f==="multiple"&&l===!1||p&&(a||G);l$t(function(){q(z.current.scrollWidth)},[Z]);var F=function(he,be,we,De,Ae){return m.createElement("span",{title:lUe(he),className:Ce("".concat(le,"-item"),fe({},"".concat(le,"-item-disabled"),we))},m.createElement("span",{className:"".concat(le,"-item-content")},be),De&&m.createElement(tU,{className:"".concat(le,"-item-remove"),onMouseDown:N1e,onClick:Ae,customizeIcon:_},"×"))},te=function(he,be,we,De,Ae,Ee){var Re=function(Oe){N1e(Oe),x(!a)};return m.createElement("span",{onMouseDown:Re},C({label:be,value:he,disabled:we,closable:De,onClose:Ae,isMaxTag:!!Ee}))},oe=function(he){var be=he.disabled,we=he.label,De=he.value,Ae=!d&&!be,Ee=we;if(typeof b=="number"&&(typeof we=="string"||typeof we=="number")){var Re=String(Ee);Re.length>b&&(Ee="".concat(Re.slice(0,b),"..."))}var Te=function(Ne){Ne&&Ne.stopPropagation(),T(he)};return typeof C=="function"?te(De,Ee,be,Ae,Te):F(he,Ee,be,Ae,Te)},de=function(he){if(!o.length)return null;var be=typeof w=="function"?w(he):w;return typeof C=="function"?te(void 0,be,!1,!1,void 0,!0):F({title:be},be,!1)},pe=m.createElement("div",{className:"".concat(le,"-search"),style:{width:Y},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},m.createElement(aUe,{ref:c,open:a,prefixCls:i,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:j,activeDescendantId:v,value:Z,onKeyDown:M,onMouseDown:P,onChange:R,onPaste:O,onCompositionStart:k,onCompositionEnd:$,onBlur:U,tabIndex:y,attrs:Va(n,!0)}),m.createElement("span",{ref:z,className:"".concat(le,"-search-mirror"),"aria-hidden":!0},Z," ")),me=m.createElement(zh,{prefixCls:"".concat(le,"-overflow"),data:o,renderItem:oe,renderRest:de,suffix:pe,itemKey:c$t,maxCount:S});return m.createElement("span",{className:"".concat(le,"-wrap")},me,!o.length&&!Z&&m.createElement("span",{className:"".concat(le,"-placeholder")},u))},d$t=function(n){var r=n.inputElement,i=n.prefixCls,o=n.id,a=n.inputRef,s=n.disabled,l=n.autoFocus,c=n.autoComplete,u=n.activeDescendantId,d=n.mode,f=n.open,p=n.values,h=n.placeholder,g=n.tabIndex,v=n.showSearch,y=n.searchValue,_=n.activeValue,S=n.maxLength,b=n.onInputKeyDown,E=n.onInputMouseDown,w=n.onInputChange,C=n.onInputPaste,x=n.onInputCompositionStart,T=n.onInputCompositionEnd,R=n.onInputBlur,O=n.title,M=m.useState(!1),P=ke(M,2),k=P[0],$=P[1],U=d==="combobox",z=U||v,D=p[0],B=y||"";U&&_&&!k&&(B=_),m.useEffect(function(){U&&$(!1)},[U,_]);var Y=d!=="combobox"&&!f&&!v?!1:!!B,q=O===void 0?lUe(D):O,K=m.useMemo(function(){return D?null:m.createElement("span",{className:"".concat(i,"-selection-placeholder"),style:Y?{visibility:"hidden"}:void 0},h)},[D,Y,h,i]);return m.createElement("span",{className:"".concat(i,"-selection-wrap")},m.createElement("span",{className:"".concat(i,"-selection-search")},m.createElement(aUe,{ref:a,prefixCls:i,id:o,open:f,inputElement:r,disabled:s,autoFocus:l,autoComplete:c,editable:z,activeDescendantId:u,value:B,onKeyDown:b,onMouseDown:E,onChange:function(G){$(!0),w(G)},onPaste:C,onCompositionStart:x,onCompositionEnd:T,onBlur:R,tabIndex:g,attrs:Va(n,!0),maxLength:U?S:void 0})),!U&&D?m.createElement("span",{className:"".concat(i,"-selection-item"),title:q,style:Y?{visibility:"hidden"}:void 0},D.label):null,K)},f$t=function(n,r){var i=m.useRef(null),o=m.useRef(!1),a=n.prefixCls,s=n.open,l=n.mode,c=n.showSearch,u=n.tokenWithEnter,d=n.disabled,f=n.prefix,p=n.autoClearSearchValue,h=n.onSearch,g=n.onSearchSubmit,v=n.onToggleOpen,y=n.onInputKeyDown,_=n.onInputBlur,S=n.domRef;m.useImperativeHandle(r,function(){return{focus:function(q){i.current.focus(q)},blur:function(){i.current.blur()}}});var b=nUe(0),E=ke(b,2),w=E[0],C=E[1],x=function(q){var K=q.which,H=i.current instanceof HTMLTextAreaElement;!H&&s&&(K===At.UP||K===At.DOWN)&&q.preventDefault(),y&&y(q),K===At.ENTER&&l==="tags"&&!o.current&&!s&&(g==null||g(q.target.value)),!(H&&!s&&~[At.UP,At.DOWN,At.LEFT,At.RIGHT].indexOf(K))&&GLt(K)&&v(!0)},T=function(){C(!0)},R=m.useRef(null),O=function(q){h(q,!0,o.current)!==!1&&v(!0)},M=function(){o.current=!0},P=function(q){o.current=!1,l!=="combobox"&&O(q.target.value)},k=function(q){var K=q.target.value;if(u&&R.current&&/[\r\n]/.test(R.current)){var H=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");K=K.replace(H,R.current)}R.current=null,O(K)},$=function(q){var K=q.clipboardData,H=K==null?void 0:K.getData("text");R.current=H||""},U=function(q){var K=q.target;if(K!==i.current){var H=document.body.style.msTouchAction!==void 0;H?setTimeout(function(){i.current.focus()}):i.current.focus()}},z=function(q){var K=w();q.target!==i.current&&!K&&!(l==="combobox"&&d)&&q.preventDefault(),(l!=="combobox"&&(!c||!K)||!s)&&(s&&p!==!1&&h("",!0,!1),v())},D={inputRef:i,onInputKeyDown:x,onInputMouseDown:T,onInputChange:k,onInputPaste:$,onInputCompositionStart:M,onInputCompositionEnd:P,onInputBlur:_},B=l==="multiple"||l==="tags"?m.createElement(u$t,ft({},n,D)):m.createElement(d$t,ft({},n,D));return m.createElement("div",{ref:S,className:"".concat(a,"-selector"),onClick:U,onMouseDown:z},f&&m.createElement("div",{className:"".concat(a,"-prefix")},f),B)},p$t=m.forwardRef(f$t);function h$t(e){var n=e.prefixCls,r=e.align,i=e.arrow,o=e.arrowPos,a=i||{},s=a.className,l=a.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,p=m.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(r.autoArrow!==!1){var g=r.points[0],v=r.points[1],y=g[0],_=g[1],S=v[0],b=v[1];y===S||!["t","b"].includes(y)?h.top=f:y==="t"?h.top=0:h.bottom=0,_===b||!["l","r"].includes(_)?h.left=u:_==="l"?h.left=0:h.right=0}return m.createElement("div",{ref:p,className:Ce("".concat(n,"-arrow"),s),style:h},l)}function g$t(e){var n=e.prefixCls,r=e.open,i=e.zIndex,o=e.mask,a=e.motion;return o?m.createElement(Ws,ft({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(s){var l=s.className;return m.createElement("div",{style:{zIndex:i},className:Ce("".concat(n,"-mask"),l)})}):null}var m$t=m.memo(function(e){var n=e.children;return n},function(e,n){return n.cache}),v$t=m.forwardRef(function(e,n){var r=e.popup,i=e.className,o=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,h=e.arrow,g=e.arrowPos,v=e.align,y=e.motion,_=e.maskMotion,S=e.forceRender,b=e.getPopupContainer,E=e.autoDestroy,w=e.portal,C=e.zIndex,x=e.onMouseEnter,T=e.onMouseLeave,R=e.onPointerEnter,O=e.onPointerDownCapture,M=e.ready,P=e.offsetX,k=e.offsetY,$=e.offsetR,U=e.offsetB,z=e.onAlign,D=e.onPrepare,B=e.stretch,Y=e.targetWidth,q=e.targetHeight,K=typeof r=="function"?r():r,H=c||u,G=(b==null?void 0:b.length)>0,Q=m.useState(!b||!G),le=ke(Q,2),Z=le[0],j=le[1];if(ti(function(){!Z&&G&&s&&j(!0)},[Z,G,s]),!Z)return null;var F="auto",te={left:"-1000vw",top:"-1000vh",right:F,bottom:F};if(M||!c){var oe,de=v.points,pe=v.dynamicInset||((oe=v._experimental)===null||oe===void 0?void 0:oe.dynamicInset),me=pe&&de[0][1]==="r",ve=pe&&de[0][0]==="b";me?(te.right=$,te.left=F):(te.left=P,te.right=F),ve?(te.bottom=U,te.top=F):(te.top=k,te.bottom=F)}var he={};return B&&(B.includes("height")&&q?he.height=q:B.includes("minHeight")&&q&&(he.minHeight=q),B.includes("width")&&Y?he.width=Y:B.includes("minWidth")&&Y&&(he.minWidth=Y)),c||(he.pointerEvents="none"),m.createElement(w,{open:S||H,getContainer:b&&function(){return b(s)},autoDestroy:E},m.createElement(g$t,{prefixCls:o,open:c,zIndex:C,mask:p,motion:_}),m.createElement(Hc,{onResize:z,disabled:!c},function(be){return m.createElement(Ws,ft({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:D,onEnterPrepare:D,visible:c,onVisibleChanged:function(De){var Ae;y==null||(Ae=y.onVisibleChanged)===null||Ae===void 0||Ae.call(y,De),l(De)}}),function(we,De){var Ae=we.className,Ee=we.style,Re=Ce(o,Ae,i);return m.createElement("div",{ref:Il(be,n,De),className:Re,style:ee(ee(ee(ee({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},te),he),Ee),{},{boxSizing:"border-box",zIndex:C},a),onMouseEnter:x,onMouseLeave:T,onPointerEnter:R,onClick:f,onPointerDownCapture:O},h&&m.createElement(h$t,{prefixCls:o,arrow:h,arrowPos:g,align:v}),m.createElement(m$t,{cache:!c&&!d},K))})}))}),y$t=m.forwardRef(function(e,n){var r=e.children,i=e.getTriggerDOMNode,o=Ky(r),a=m.useCallback(function(l){nue(n,i?i(l):l)},[i]),s=vg(a,J0(r));return o?m.cloneElement(r,{ref:s}):r}),M1e=m.createContext(null);function P1e(e){return e?Array.isArray(e)?e:[e]:[]}function _$t(e,n,r,i){return m.useMemo(function(){var o=P1e(r??n),a=P1e(i??n),s=new Set(o),l=new Set(a);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[s,l]},[e,n,r,i])}function b$t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===n[0]:e[0]===n[0]&&e[1]===n[1]}function S$t(e,n,r,i){for(var o=r.points,a=Object.keys(e),s=0;s<a.length;s+=1){var l,c=a[s];if(b$t((l=e[c])===null||l===void 0?void 0:l.points,o,i))return"".concat(n,"-placement-").concat(c)}return""}function A1e(e,n,r,i){return n||(r?{motionName:"".concat(e,"-").concat(r)}:i?{motionName:i}:null)}function yk(e){return e.ownerDocument.defaultView}function oie(e){for(var n=[],r=e==null?void 0:e.parentElement,i=["hidden","scroll","clip","auto"];r;){var o=yk(r).getComputedStyle(r),a=o.overflowX,s=o.overflowY,l=o.overflow;[a,s,l].some(function(c){return i.includes(c)})&&n.push(r),r=r.parentElement}return n}function vA(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?n:e}function sM(e){return vA(parseFloat(e),0)}function D1e(e,n){var r=ee({},e);return(n||[]).forEach(function(i){if(!(i instanceof HTMLBodyElement||i instanceof HTMLHtmlElement)){var o=yk(i).getComputedStyle(i),a=o.overflow,s=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=i.getBoundingClientRect(),p=i.offsetHeight,h=i.clientHeight,g=i.offsetWidth,v=i.clientWidth,y=sM(l),_=sM(c),S=sM(u),b=sM(d),E=vA(Math.round(f.width/g*1e3)/1e3),w=vA(Math.round(f.height/p*1e3)/1e3),C=(g-v-S-b)*E,x=(p-h-y-_)*w,T=y*w,R=_*w,O=S*E,M=b*E,P=0,k=0;if(a==="clip"){var $=sM(s);P=$*E,k=$*w}var U=f.x+O-P,z=f.y+T-k,D=U+f.width+2*P-O-M-C,B=z+f.height+2*k-T-R-x;r.left=Math.max(r.left,U),r.top=Math.max(r.top,z),r.right=Math.min(r.right,D),r.bottom=Math.min(r.bottom,B)}}),r}function k1e(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(n),i=r.match(/^(.*)\%$/);return i?e*(parseFloat(i[1])/100):parseFloat(r)}function L1e(e,n){var r=n||[],i=ke(r,2),o=i[0],a=i[1];return[k1e(e.width,o),k1e(e.height,a)]}function $1e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function yx(e,n){var r=n[0],i=n[1],o,a;return r==="t"?a=e.y:r==="b"?a=e.y+e.height:a=e.y+e.height/2,i==="l"?o=e.x:i==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function j_(e,n){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(i,o){return o===n?r[i]||"c":i}).join("")}function E$t(e,n,r,i,o,a,s){var l=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[i]||{}}),c=ke(l,2),u=c[0],d=c[1],f=m.useRef(0),p=m.useMemo(function(){return n?oie(n):[]},[n]),h=m.useRef({}),g=function(){h.current={}};e||g();var v=Sr(function(){if(n&&r&&e){let lr=function(Pi,Dl){var kl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ne,Ro=Q.x+Pi,Is=Q.y+Dl,Du=Ro+me,ku=Is+pe,Ng=Math.max(Ro,kl.left),Wn=Math.max(Is,kl.top),Ir=Math.min(Du,kl.right),Li=Math.min(ku,kl.bottom);return Math.max(0,(Ir-Ng)*(Li-Wn))},Kr=function(){En=Q.y+rn,Pt=En+pe,Qt=Q.x+Vt,ln=Qt+me};var S,b,E,w,C=n,x=C.ownerDocument,T=yk(C),R=T.getComputedStyle(C),O=R.width,M=R.height,P=R.position,k=C.style.left,$=C.style.top,U=C.style.right,z=C.style.bottom,D=C.style.overflow,B=ee(ee({},o[i]),a),Y=x.createElement("div");(S=C.parentElement)===null||S===void 0||S.appendChild(Y),Y.style.left="".concat(C.offsetLeft,"px"),Y.style.top="".concat(C.offsetTop,"px"),Y.style.position=P,Y.style.height="".concat(C.offsetHeight,"px"),Y.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var q;if(Array.isArray(r))q={x:r[0],y:r[1],width:0,height:0};else{var K,H,G=r.getBoundingClientRect();G.x=(K=G.x)!==null&&K!==void 0?K:G.left,G.y=(H=G.y)!==null&&H!==void 0?H:G.top,q={x:G.x,y:G.y,width:G.width,height:G.height}}var Q=C.getBoundingClientRect();Q.x=(b=Q.x)!==null&&b!==void 0?b:Q.left,Q.y=(E=Q.y)!==null&&E!==void 0?E:Q.top;var le=x.documentElement,Z=le.clientWidth,j=le.clientHeight,F=le.scrollWidth,te=le.scrollHeight,oe=le.scrollTop,de=le.scrollLeft,pe=Q.height,me=Q.width,ve=q.height,he=q.width,be={left:0,top:0,right:Z,bottom:j},we={left:-de,top:-oe,right:F-de,bottom:te-oe},De=B.htmlRegion,Ae="visible",Ee="visibleFirst";De!=="scroll"&&De!==Ee&&(De=Ae);var Re=De===Ee,Te=D1e(we,p),Oe=D1e(be,p),Ne=De===Ae?Oe:Te,je=Re?Oe:Ne;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var ne=C.getBoundingClientRect();C.style.left=k,C.style.top=$,C.style.right=U,C.style.bottom=z,C.style.overflow=D,(w=C.parentElement)===null||w===void 0||w.removeChild(Y);var J=vA(Math.round(me/parseFloat(O)*1e3)/1e3),ae=vA(Math.round(pe/parseFloat(M)*1e3)/1e3);if(J===0||ae===0||aA(r)&&!fk(r))return;var Se=B.offset,xe=B.targetOffset,ue=L1e(Q,Se),Me=ke(ue,2),$e=Me[0],ge=Me[1],Ve=L1e(q,xe),st=ke(Ve,2),Je=st[0],ot=st[1];q.x-=Je,q.y-=ot;var Xe=B.points||[],Ze=ke(Xe,2),bt=Ze[0],at=Ze[1],pt=$1e(at),Ct=$1e(bt),It=yx(q,pt),Wt=yx(Q,Ct),Bt=ee({},B),Vt=It.x-Wt.x+$e,rn=It.y-Wt.y+ge,tt=lr(Vt,rn),it=lr(Vt,rn,Oe),nt=yx(q,["t","l"]),vt=yx(Q,["t","l"]),kt=yx(q,["b","r"]),Dt=yx(Q,["b","r"]),Kt=B.overflow||{},Ht=Kt.adjustX,tn=Kt.adjustY,on=Kt.shiftX,sn=Kt.shiftY,Jt=function(Dl){return typeof Dl=="boolean"?Dl:Dl>=0},En,Pt,Qt,ln;Kr();var jt=Jt(tn),Lt=Ct[0]===pt[0];if(jt&&Ct[0]==="t"&&(Pt>je.bottom||h.current.bt)){var en=rn;Lt?en-=pe-ve:en=nt.y-Dt.y-ge;var Ue=lr(Vt,en),Zt=lr(Vt,en,Oe);Ue>tt||Ue===tt&&(!Re||Zt>=it)?(h.current.bt=!0,rn=en,ge=-ge,Bt.points=[j_(Ct,0),j_(pt,0)]):h.current.bt=!1}if(jt&&Ct[0]==="b"&&(En<je.top||h.current.tb)){var Et=rn;Lt?Et+=pe-ve:Et=kt.y-vt.y-ge;var Gt=lr(Vt,Et),zt=lr(Vt,Et,Oe);Gt>tt||Gt===tt&&(!Re||zt>=it)?(h.current.tb=!0,rn=Et,ge=-ge,Bt.points=[j_(Ct,0),j_(pt,0)]):h.current.tb=!1}var Vn=Jt(Ht),sr=Ct[1]===pt[1];if(Vn&&Ct[1]==="l"&&(ln>je.right||h.current.rl)){var A=Vt;sr?A-=me-he:A=nt.x-Dt.x-$e;var W=lr(A,rn),ce=lr(A,rn,Oe);W>tt||W===tt&&(!Re||ce>=it)?(h.current.rl=!0,Vt=A,$e=-$e,Bt.points=[j_(Ct,1),j_(pt,1)]):h.current.rl=!1}if(Vn&&Ct[1]==="r"&&(Qt<je.left||h.current.lr)){var Pe=Vt;sr?Pe+=me-he:Pe=kt.x-vt.x-$e;var qe=lr(Pe,rn),gt=lr(Pe,rn,Oe);qe>tt||qe===tt&&(!Re||gt>=it)?(h.current.lr=!0,Vt=Pe,$e=-$e,Bt.points=[j_(Ct,1),j_(pt,1)]):h.current.lr=!1}Kr();var Yt=on===!0?0:on;typeof Yt=="number"&&(Qt<Oe.left&&(Vt-=Qt-Oe.left-$e,q.x+he<Oe.left+Yt&&(Vt+=q.x-Oe.left+he-Yt)),ln>Oe.right&&(Vt-=ln-Oe.right-$e,q.x>Oe.right-Yt&&(Vt+=q.x-Oe.right+Yt)));var Nn=sn===!0?0:sn;typeof Nn=="number"&&(En<Oe.top&&(rn-=En-Oe.top-ge,q.y+ve<Oe.top+Nn&&(rn+=q.y-Oe.top+ve-Nn)),Pt>Oe.bottom&&(rn-=Pt-Oe.bottom-ge,q.y>Oe.bottom-Nn&&(rn+=q.y-Oe.bottom+Nn)));var Jn=Q.x+Vt,Ci=Jn+me,wi=Q.y+rn,to=wi+pe,Vr=q.x,wn=Vr+he,Bn=q.y,ni=Bn+ve,yn=Math.max(Jn,Vr),Sn=Math.min(Ci,wn),ur=(yn+Sn)/2,qr=ur-Jn,zi=Math.max(wi,Bn),Qo=Math.min(to,ni),gr=(zi+Qo)/2,Oo=gr-wi;s==null||s(n,Bt);var Pa=ne.right-Q.x-(Vt+Q.width),Er=ne.bottom-Q.y-(rn+Q.height);J===1&&(Vt=Math.round(Vt),Pa=Math.round(Pa)),ae===1&&(rn=Math.round(rn),Er=Math.round(Er));var nr={ready:!0,offsetX:Vt/J,offsetY:rn/ae,offsetR:Pa/J,offsetB:Er/ae,arrowX:qr/J,arrowY:Oo/ae,scaleX:J,scaleY:ae,align:Bt};d(nr)}}),y=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&v()})},_=function(){d(function(b){return ee(ee({},b),{},{ready:!1})})};return ti(_,[i]),ti(function(){e||_()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,y]}function C$t(e,n,r,i,o){ti(function(){if(e&&n&&r){let f=function(){i(),o()};var a=n,s=r,l=oie(a),c=oie(s),u=yk(s),d=new Set([u].concat(Tt(l),Tt(c)));return d.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),i(),function(){d.forEach(function(p){p.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,n,r])}function w$t(e,n,r,i,o,a,s,l){var c=m.useRef(e);c.current=e;var u=m.useRef(!1);m.useEffect(function(){if(n&&i&&(!o||a)){var f=function(){u.current=!1},p=function(y){var _;c.current&&!s(((_=y.composedPath)===null||_===void 0||(_=_.call(y))===null||_===void 0?void 0:_[0])||y.target)&&!u.current&&l(!1)},h=yk(i);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0);var g=F8(r);return g&&(g.addEventListener("mousedown",p,!0),g.addEventListener("contextmenu",p,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0),g&&(g.removeEventListener("mousedown",p,!0),g.removeEventListener("contextmenu",p,!0))}}},[n,r,i,o,a]);function d(){u.current=!0}return d}var x$t=["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 T$t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gk,n=m.forwardRef(function(r,i){var o=r.prefixCls,a=o===void 0?"rc-trigger-popup":o,s=r.children,l=r.action,c=l===void 0?"hover":l,u=r.showAction,d=r.hideAction,f=r.popupVisible,p=r.defaultPopupVisible,h=r.onPopupVisibleChange,g=r.afterPopupVisibleChange,v=r.mouseEnterDelay,y=r.mouseLeaveDelay,_=y===void 0?.1:y,S=r.focusDelay,b=r.blurDelay,E=r.mask,w=r.maskClosable,C=w===void 0?!0:w,x=r.getPopupContainer,T=r.forceRender,R=r.autoDestroy,O=r.destroyPopupOnHide,M=r.popup,P=r.popupClassName,k=r.popupStyle,$=r.popupPlacement,U=r.builtinPlacements,z=U===void 0?{}:U,D=r.popupAlign,B=r.zIndex,Y=r.stretch,q=r.getPopupClassNameFromAlign,K=r.fresh,H=r.alignPoint,G=r.onPopupClick,Q=r.onPopupAlign,le=r.arrow,Z=r.popupMotion,j=r.maskMotion,F=r.popupTransitionName,te=r.popupAnimation,oe=r.maskTransitionName,de=r.maskAnimation,pe=r.className,me=r.getTriggerDOMNode,ve=Xt(r,x$t),he=R||O||!1,be=m.useState(!1),we=ke(be,2),De=we[0],Ae=we[1];ti(function(){Ae(eU())},[]);var Ee=m.useRef({}),Re=m.useContext(M1e),Te=m.useMemo(function(){return{registerSubPopup:function(Ir,Li){Ee.current[Ir]=Li,Re==null||Re.registerSubPopup(Ir,Li)}}},[Re]),Oe=X9(),Ne=m.useState(null),je=ke(Ne,2),ne=je[0],J=je[1],ae=m.useRef(null),Se=Sr(function(Wn){ae.current=Wn,aA(Wn)&&ne!==Wn&&J(Wn),Re==null||Re.registerSubPopup(Oe,Wn)}),xe=m.useState(null),ue=ke(xe,2),Me=ue[0],$e=ue[1],ge=m.useRef(null),Ve=Sr(function(Wn){aA(Wn)&&Me!==Wn&&($e(Wn),ge.current=Wn)}),st=m.Children.only(s),Je=(st==null?void 0:st.props)||{},ot={},Xe=Sr(function(Wn){var Ir,Li,ha=Me;return(ha==null?void 0:ha.contains(Wn))||((Ir=F8(ha))===null||Ir===void 0?void 0:Ir.host)===Wn||Wn===ha||(ne==null?void 0:ne.contains(Wn))||((Li=F8(ne))===null||Li===void 0?void 0:Li.host)===Wn||Wn===ne||Object.values(Ee.current).some(function(Zo){return(Zo==null?void 0:Zo.contains(Wn))||Wn===Zo})}),Ze=A1e(a,Z,te,F),bt=A1e(a,j,de,oe),at=m.useState(p||!1),pt=ke(at,2),Ct=pt[0],It=pt[1],Wt=f??Ct,Bt=Sr(function(Wn){f===void 0&&It(Wn)});ti(function(){It(f||!1)},[f]);var Vt=m.useRef(Wt);Vt.current=Wt;var rn=m.useRef([]);rn.current=[];var tt=Sr(function(Wn){var Ir;Bt(Wn),((Ir=rn.current[rn.current.length-1])!==null&&Ir!==void 0?Ir:Wt)!==Wn&&(rn.current.push(Wn),h==null||h(Wn))}),it=m.useRef(),nt=function(){clearTimeout(it.current)},vt=function(Ir){var Li=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;nt(),Li===0?tt(Ir):it.current=setTimeout(function(){tt(Ir)},Li*1e3)};m.useEffect(function(){return nt},[]);var kt=m.useState(!1),Dt=ke(kt,2),Kt=Dt[0],Ht=Dt[1];ti(function(Wn){(!Wn||Wt)&&Ht(!0)},[Wt]);var tn=m.useState(null),on=ke(tn,2),sn=on[0],Jt=on[1],En=m.useState(null),Pt=ke(En,2),Qt=Pt[0],ln=Pt[1],jt=function(Ir){ln([Ir.clientX,Ir.clientY])},Lt=E$t(Wt,ne,H&&Qt!==null?Qt:Me,$,z,D,Q),en=ke(Lt,11),Ue=en[0],Zt=en[1],Et=en[2],Gt=en[3],zt=en[4],Vn=en[5],sr=en[6],A=en[7],W=en[8],ce=en[9],Pe=en[10],qe=_$t(De,c,u,d),gt=ke(qe,2),Yt=gt[0],Nn=gt[1],Jn=Yt.has("click"),Ci=Nn.has("click")||Nn.has("contextMenu"),wi=Sr(function(){Kt||Pe()}),to=function(){Vt.current&&H&&Ci&&vt(!1)};C$t(Wt,Me,ne,wi,to),ti(function(){wi()},[Qt,$]),ti(function(){Wt&&!(z!=null&&z[$])&&wi()},[JSON.stringify(D)]);var Vr=m.useMemo(function(){var Wn=S$t(z,a,ce,H);return Ce(Wn,q==null?void 0:q(ce))},[ce,q,z,a,H]);m.useImperativeHandle(i,function(){return{nativeElement:ge.current,popupElement:ae.current,forceAlign:wi}});var wn=m.useState(0),Bn=ke(wn,2),ni=Bn[0],yn=Bn[1],Sn=m.useState(0),ur=ke(Sn,2),qr=ur[0],zi=ur[1],Qo=function(){if(Y&&Me){var Ir=Me.getBoundingClientRect();yn(Ir.width),zi(Ir.height)}},gr=function(){Qo(),wi()},Oo=function(Ir){Ht(!1),Pe(),g==null||g(Ir)},Pa=function(){return new Promise(function(Ir){Qo(),Jt(function(){return Ir})})};ti(function(){sn&&(Pe(),sn(),Jt(null))},[sn]);function Er(Wn,Ir,Li,ha){ot[Wn]=function(Zo){var Mg;ha==null||ha(Zo),vt(Ir,Li);for(var Jp=arguments.length,go=new Array(Jp>1?Jp-1:0),no=1;no<Jp;no++)go[no-1]=arguments[no];(Mg=Je[Wn])===null||Mg===void 0||Mg.call.apply(Mg,[Je,Zo].concat(go))}}(Jn||Ci)&&(ot.onClick=function(Wn){var Ir;Vt.current&&Ci?vt(!1):!Vt.current&&Jn&&(jt(Wn),vt(!0));for(var Li=arguments.length,ha=new Array(Li>1?Li-1:0),Zo=1;Zo<Li;Zo++)ha[Zo-1]=arguments[Zo];(Ir=Je.onClick)===null||Ir===void 0||Ir.call.apply(Ir,[Je,Wn].concat(ha))});var nr=w$t(Wt,Ci,Me,ne,E,C,Xe,vt),lr=Yt.has("hover"),Kr=Nn.has("hover"),Pi,Dl;lr&&(Er("onMouseEnter",!0,v,function(Wn){jt(Wn)}),Er("onPointerEnter",!0,v,function(Wn){jt(Wn)}),Pi=function(Ir){(Wt||Kt)&&ne!==null&&ne!==void 0&&ne.contains(Ir.target)&&vt(!0,v)},H&&(ot.onMouseMove=function(Wn){var Ir;(Ir=Je.onMouseMove)===null||Ir===void 0||Ir.call(Je,Wn)})),Kr&&(Er("onMouseLeave",!1,_),Er("onPointerLeave",!1,_),Dl=function(){vt(!1,_)}),Yt.has("focus")&&Er("onFocus",!0,S),Nn.has("focus")&&Er("onBlur",!1,b),Yt.has("contextMenu")&&(ot.onContextMenu=function(Wn){var Ir;Vt.current&&Nn.has("contextMenu")?vt(!1):(jt(Wn),vt(!0)),Wn.preventDefault();for(var Li=arguments.length,ha=new Array(Li>1?Li-1:0),Zo=1;Zo<Li;Zo++)ha[Zo-1]=arguments[Zo];(Ir=Je.onContextMenu)===null||Ir===void 0||Ir.call.apply(Ir,[Je,Wn].concat(ha))}),pe&&(ot.className=Ce(Je.className,pe));var kl=ee(ee({},Je),ot),Ro={},Is=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Is.forEach(function(Wn){ve[Wn]&&(Ro[Wn]=function(){for(var Ir,Li=arguments.length,ha=new Array(Li),Zo=0;Zo<Li;Zo++)ha[Zo]=arguments[Zo];(Ir=kl[Wn])===null||Ir===void 0||Ir.call.apply(Ir,[kl].concat(ha)),ve[Wn].apply(ve,ha)})});var Du=m.cloneElement(st,ee(ee({},kl),Ro)),ku={x:Vn,y:sr},Ng=le?ee({},le!==!0?le:{}):null;return m.createElement(m.Fragment,null,m.createElement(Hc,{disabled:!Wt,ref:Ve,onResize:gr},m.createElement(y$t,{getTriggerDOMNode:me},Du)),m.createElement(M1e.Provider,{value:Te},m.createElement(v$t,{portal:e,ref:Se,prefixCls:a,popup:M,className:Ce(P,Vr),style:k,target:Me,onMouseEnter:Pi,onMouseLeave:Dl,onPointerEnter:Pi,zIndex:B,open:Wt,keepDom:Kt,fresh:K,onClick:G,onPointerDownCapture:nr,mask:E,motion:Ze,maskMotion:bt,onVisibleChanged:Oo,onPrepare:Pa,forceRender:T,autoDestroy:he,getPopupContainer:x,align:ce,arrow:Ng,arrowPos:ku,ready:Ue,offsetX:Zt,offsetY:Et,offsetR:Gt,offsetB:zt,onAlign:wi,stretch:Y,targetWidth:ni/A,targetHeight:qr/W})))});return n}const _k=T$t(gk);var O$t=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],R$t=function(n){var r=n===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"}}},I$t=function(n,r){var i=n.prefixCls;n.disabled;var o=n.visible,a=n.children,s=n.popupElement,l=n.animation,c=n.transitionName,u=n.dropdownStyle,d=n.dropdownClassName,f=n.direction,p=f===void 0?"ltr":f,h=n.placement,g=n.builtinPlacements,v=n.dropdownMatchSelectWidth,y=n.dropdownRender,_=n.dropdownAlign,S=n.getPopupContainer,b=n.empty,E=n.getTriggerDOMNode,w=n.onPopupVisibleChange,C=n.onPopupMouseEnter,x=Xt(n,O$t),T="".concat(i,"-dropdown"),R=s;y&&(R=y(s));var O=m.useMemo(function(){return g||R$t(v)},[g,v]),M=l?"".concat(T,"-").concat(l):c,P=typeof v=="number",k=m.useMemo(function(){return P?null:v===!1?"minWidth":"width"},[v,P]),$=u;P&&($=ee(ee({},$),{},{width:v}));var U=m.useRef(null);return m.useImperativeHandle(r,function(){return{getPopupElement:function(){var D;return(D=U.current)===null||D===void 0?void 0:D.popupElement}}}),m.createElement(_k,ft({},x,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:h||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:T,popupTransitionName:M,popup:m.createElement("div",{onMouseEnter:C},R),ref:U,stretch:k,popupAlign:_,popupVisible:o,getPopupContainer:S,popupClassName:Ce(d,fe({},"".concat(T,"-empty"),b)),popupStyle:$,getTriggerDOMNode:E,onPopupVisibleChange:w}),a)},N$t=m.forwardRef(I$t);function F1e(e,n){var r=e.key,i;return"value"in e&&(i=e.value),r??(i!==void 0?i:"rc-index-key-".concat(n))}function aie(e){return typeof e<"u"&&!Number.isNaN(e)}function cUe(e,n){var r=e||{},i=r.label,o=r.value,a=r.options,s=r.groupLabel,l=i||(n?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:s||l}}function M$t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.fieldNames,i=n.childrenAsData,o=[],a=cUe(r,!1),s=a.label,l=a.value,c=a.options,u=a.groupLabel;function d(f,p){Array.isArray(f)&&f.forEach(function(h){if(p||!(c in h)){var g=h[l];o.push({key:F1e(h,o.length),groupOption:p,data:h,label:h[s],value:g})}else{var v=h[u];v===void 0&&i&&(v=h.label),o.push({key:F1e(h,o.length),group:!0,data:h,label:v}),d(h[c],!0)}})}return d(e,!1),o}function sie(e){var n=ee({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return qi(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),n}}),n}var P$t=function(n,r,i){if(!r||!r.length)return null;var o=!1,a=function l(c,u){var d=Xje(u),f=d[0],p=d.slice(1);if(!f)return[c];var h=c.split(f);return o=o||h.length>1,h.reduce(function(g,v){return[].concat(Tt(g),Tt(l(v,p)))},[]).filter(Boolean)},s=a(n,r);return o?typeof i<"u"?s.slice(0,i):s:null},Hue=m.createContext(null);function A$t(e){var n=e.visible,r=e.values;if(!n)return null;var i=50;return m.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,i).map(function(o){var a=o.label,s=o.value;return["number","string"].includes(cn(a))?a:s}).join(", ")),r.length>i?", ...":null)}var D$t=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],k$t=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],lie=function(n){return n==="tags"||n==="multiple"},zue=m.forwardRef(function(e,n){var r,i=e.id,o=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,g=h===void 0?"Not Found":h,v=e.onClear,y=e.mode,_=e.disabled,S=e.loading,b=e.getInputElement,E=e.getRawInputElement,w=e.open,C=e.defaultOpen,x=e.onDropdownVisibleChange,T=e.activeValue,R=e.onActiveValueChange,O=e.activeDescendantId,M=e.searchValue,P=e.autoClearSearchValue,k=e.onSearch,$=e.onSearchSplit,U=e.tokenSeparators,z=e.allowClear,D=e.prefix,B=e.suffixIcon,Y=e.clearIcon,q=e.OptionList,K=e.animation,H=e.transitionName,G=e.dropdownStyle,Q=e.dropdownClassName,le=e.dropdownMatchSelectWidth,Z=e.dropdownRender,j=e.dropdownAlign,F=e.placement,te=e.builtinPlacements,oe=e.getPopupContainer,de=e.showAction,pe=de===void 0?[]:de,me=e.onFocus,ve=e.onBlur,he=e.onKeyUp,be=e.onKeyDown,we=e.onMouseDown,De=Xt(e,D$t),Ae=lie(y),Ee=(s!==void 0?s:Ae)||y==="combobox",Re=ee({},De);k$t.forEach(function(wn){delete Re[wn]}),u==null||u.forEach(function(wn){delete Re[wn]});var Te=m.useState(!1),Oe=ke(Te,2),Ne=Oe[0],je=Oe[1];m.useEffect(function(){je(eU())},[]);var ne=m.useRef(null),J=m.useRef(null),ae=m.useRef(null),Se=m.useRef(null),xe=m.useRef(null),ue=m.useRef(!1),Me=zLt(),$e=ke(Me,3),ge=$e[0],Ve=$e[1],st=$e[2];m.useImperativeHandle(n,function(){var wn,Bn;return{focus:(wn=Se.current)===null||wn===void 0?void 0:wn.focus,blur:(Bn=Se.current)===null||Bn===void 0?void 0:Bn.blur,scrollTo:function(yn){var Sn;return(Sn=xe.current)===null||Sn===void 0?void 0:Sn.scrollTo(yn)},nativeElement:ne.current||J.current}});var Je=m.useMemo(function(){var wn;if(y!=="combobox")return M;var Bn=(wn=d[0])===null||wn===void 0?void 0:wn.value;return typeof Bn=="string"||typeof Bn=="number"?String(Bn):""},[M,y,d]),ot=y==="combobox"&&typeof b=="function"&&b()||null,Xe=typeof E=="function"&&E(),Ze=vg(J,Xe==null||(r=Xe.props)===null||r===void 0?void 0:r.ref),bt=m.useState(!1),at=ke(bt,2),pt=at[0],Ct=at[1];ti(function(){Ct(!0)},[]);var It=dr(!1,{defaultValue:C,value:w}),Wt=ke(It,2),Bt=Wt[0],Vt=Wt[1],rn=pt?Bt:!1,tt=!g&&p;(_||tt&&rn&&y==="combobox")&&(rn=!1);var it=tt?!1:rn,nt=m.useCallback(function(wn){var Bn=wn!==void 0?wn:!rn;_||(Vt(Bn),rn!==Bn&&(x==null||x(Bn)))},[_,rn,Vt,x]),vt=m.useMemo(function(){return(U||[]).some(function(wn){return[`
|
||
`,`\r
|
||
`].includes(wn)})},[U]),kt=m.useContext(Hue)||{},Dt=kt.maxCount,Kt=kt.rawValues,Ht=function(Bn,ni,yn){if(!(Ae&&aie(Dt)&&(Kt==null?void 0:Kt.size)>=Dt)){var Sn=!0,ur=Bn;R==null||R(null);var qr=P$t(Bn,U,aie(Dt)?Dt-Kt.size:void 0),zi=yn?null:qr;return y!=="combobox"&&zi&&(ur="",$==null||$(zi),nt(!1),Sn=!1),k&&Je!==ur&&k(ur,{source:ni?"typing":"effect"}),Sn}},tn=function(Bn){!Bn||!Bn.trim()||k(Bn,{source:"submit"})};m.useEffect(function(){!rn&&!Ae&&y!=="combobox"&&Ht("",!1,!1)},[rn]),m.useEffect(function(){Bt&&_&&Vt(!1),_&&!ue.current&&Ve(!1)},[_]);var on=nUe(),sn=ke(on,2),Jt=sn[0],En=sn[1],Pt=m.useRef(!1),Qt=function(Bn){var ni=Jt(),yn=Bn.key,Sn=yn==="Enter";if(Sn&&(y!=="combobox"&&Bn.preventDefault(),rn||nt(!0)),En(!!Je),yn==="Backspace"&&!ni&&Ae&&!Je&&d.length){for(var ur=Tt(d),qr=null,zi=ur.length-1;zi>=0;zi-=1){var Qo=ur[zi];if(!Qo.disabled){ur.splice(zi,1),qr=Qo;break}}qr&&f(ur,{type:"remove",values:[qr]})}for(var gr=arguments.length,Oo=new Array(gr>1?gr-1:0),Pa=1;Pa<gr;Pa++)Oo[Pa-1]=arguments[Pa];if(rn&&(!Sn||!Pt.current)){var Er;Sn&&(Pt.current=!0),(Er=xe.current)===null||Er===void 0||Er.onKeyDown.apply(Er,[Bn].concat(Oo))}be==null||be.apply(void 0,[Bn].concat(Oo))},ln=function(Bn){for(var ni=arguments.length,yn=new Array(ni>1?ni-1:0),Sn=1;Sn<ni;Sn++)yn[Sn-1]=arguments[Sn];if(rn){var ur;(ur=xe.current)===null||ur===void 0||ur.onKeyUp.apply(ur,[Bn].concat(yn))}Bn.key==="Enter"&&(Pt.current=!1),he==null||he.apply(void 0,[Bn].concat(yn))},jt=function(Bn){var ni=d.filter(function(yn){return yn!==Bn});f(ni,{type:"remove",values:[Bn]})},Lt=function(){Pt.current=!1},en=m.useRef(!1),Ue=function(){Ve(!0),_||(me&&!en.current&&me.apply(void 0,arguments),pe.includes("focus")&&nt(!0)),en.current=!0},Zt=function(){ue.current=!0,Ve(!1,function(){en.current=!1,ue.current=!1,nt(!1)}),!_&&(Je&&(y==="tags"?k(Je,{source:"submit"}):y==="multiple"&&k("",{source:"blur"})),ve&&ve.apply(void 0,arguments))},Et=[];m.useEffect(function(){return function(){Et.forEach(function(wn){return clearTimeout(wn)}),Et.splice(0,Et.length)}},[]);var Gt=function(Bn){var ni,yn=Bn.target,Sn=(ni=ae.current)===null||ni===void 0?void 0:ni.getPopupElement();if(Sn&&Sn.contains(yn)){var ur=setTimeout(function(){var gr=Et.indexOf(ur);if(gr!==-1&&Et.splice(gr,1),st(),!Ne&&!Sn.contains(document.activeElement)){var Oo;(Oo=Se.current)===null||Oo===void 0||Oo.focus()}});Et.push(ur)}for(var qr=arguments.length,zi=new Array(qr>1?qr-1:0),Qo=1;Qo<qr;Qo++)zi[Qo-1]=arguments[Qo];we==null||we.apply(void 0,[Bn].concat(zi))},zt=m.useState({}),Vn=ke(zt,2),sr=Vn[1];function A(){sr({})}var W;Xe&&(W=function(Bn){nt(Bn)}),VLt(function(){var wn;return[ne.current,(wn=ae.current)===null||wn===void 0?void 0:wn.getPopupElement()]},it,nt,!!Xe);var ce=m.useMemo(function(){return ee(ee({},e),{},{notFoundContent:g,open:rn,triggerOpen:it,id:i,showSearch:Ee,multiple:Ae,toggleOpen:nt})},[e,g,it,rn,i,Ee,Ae,nt]),Pe=!!B||S,qe;Pe&&(qe=m.createElement(tU,{className:Ce("".concat(o,"-arrow"),fe({},"".concat(o,"-arrow-loading"),S)),customizeIcon:B,customizeIconProps:{loading:S,searchValue:Je,open:rn,focused:ge,showSearch:Ee}}));var gt=function(){var Bn;v==null||v(),(Bn=Se.current)===null||Bn===void 0||Bn.focus(),f([],{type:"clear",values:d}),Ht("",!1,!1)},Yt=HLt(o,gt,d,z,Y,_,Je,y),Nn=Yt.allowClear,Jn=Yt.clearIcon,Ci=m.createElement(q,{ref:xe}),wi=Ce(o,a,fe(fe(fe(fe(fe(fe(fe(fe(fe(fe({},"".concat(o,"-focused"),ge),"".concat(o,"-multiple"),Ae),"".concat(o,"-single"),!Ae),"".concat(o,"-allow-clear"),z),"".concat(o,"-show-arrow"),Pe),"".concat(o,"-disabled"),_),"".concat(o,"-loading"),S),"".concat(o,"-open"),rn),"".concat(o,"-customize-input"),ot),"".concat(o,"-show-search"),Ee)),to=m.createElement(N$t,{ref:ae,disabled:_,prefixCls:o,visible:it,popupElement:Ci,animation:K,transitionName:H,dropdownStyle:G,dropdownClassName:Q,direction:c,dropdownMatchSelectWidth:le,dropdownRender:Z,dropdownAlign:j,placement:F,builtinPlacements:te,getPopupContainer:oe,empty:p,getTriggerDOMNode:function(Bn){return J.current||Bn},onPopupVisibleChange:W,onPopupMouseEnter:A},Xe?m.cloneElement(Xe,{ref:Ze}):m.createElement(p$t,ft({},e,{domRef:J,prefixCls:o,inputElement:ot,ref:Se,id:i,prefix:D,showSearch:Ee,autoClearSearchValue:P,mode:y,activeDescendantId:O,tagRender:l,values:d,open:rn,onToggleOpen:nt,activeValue:T,searchValue:Je,onSearch:Ht,onSearchSubmit:tn,onRemove:jt,tokenWithEnter:vt,onInputBlur:Lt}))),Vr;return Xe?Vr=to:Vr=m.createElement("div",ft({className:wi},Re,{ref:ne,onMouseDown:Gt,onKeyDown:Qt,onKeyUp:ln,onFocus:Ue,onBlur:Zt}),m.createElement(A$t,{visible:ge&&!rn,values:d}),to,qe,Nn&&Jn),m.createElement(tUe.Provider,{value:ce},Vr)}),Vue=function(){return null};Vue.isSelectOptGroup=!0;var Gue=function(){return null};Gue.isSelectOption=!0;var uUe=m.forwardRef(function(e,n){var r=e.height,i=e.offsetY,o=e.offsetX,a=e.children,s=e.prefixCls,l=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};return i!==void 0&&(f={height:r,position:"relative",overflow:"hidden"},p=ee(ee({},p),{},fe(fe(fe(fe(fe({transform:"translateY(".concat(i,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:f},m.createElement(Hc,{onResize:function(g){var v=g.offsetHeight;v&&l&&l()}},m.createElement("div",ft({style:p,className:Ce(fe({},"".concat(s,"-holder-inner"),s)),ref:n},c),a,d)))});uUe.displayName="Filler";function L$t(e){var n=e.children,r=e.setRef,i=m.useCallback(function(o){r(o)},[]);return m.cloneElement(n,{ref:i})}function $$t(e,n,r,i,o,a,s,l){var c=l.getKey;return e.slice(n,r+1).map(function(u,d){var f=n+d,p=s(u,f,{style:{width:i},offsetX:o}),h=c(u);return m.createElement(L$t,{key:h,setRef:function(v){return a(u,v)}},p)})}function F$t(e,n,r){var i=e.length,o=n.length,a,s;if(i===0&&o===0)return null;i<o?(a=e,s=n):(a=n,s=e);var l={__EMPTY_ITEM__:!0};function c(g){return g!==void 0?r(g):l}for(var u=null,d=Math.abs(i-o)!==1,f=0;f<s.length;f+=1){var p=c(a[f]),h=c(s[f]);if(p!==h){u=f,d=d||p!==c(s[f+1]);break}}return u===null?null:{index:u,multiple:d}}function B$t(e,n,r){var i=m.useState(e),o=ke(i,2),a=o[0],s=o[1],l=m.useState(null),c=ke(l,2),u=c[0],d=c[1];return m.useEffect(function(){var f=F$t(a||[],e||[],n);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),s(e)},[e]),[u]}var B1e=(typeof navigator>"u"?"undefined":cn(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const dUe=function(e,n,r,i){var o=m.useRef(!1),a=m.useRef(null);function s(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var l=m.useRef({top:e,bottom:n,left:r,right:i});return l.current.top=e,l.current.bottom=n,l.current.left=r,l.current.right=i,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&s(),!o.current&&f}};function j$t(e,n,r,i,o,a,s){var l=m.useRef(0),c=m.useRef(null),u=m.useRef(null),d=m.useRef(!1),f=dUe(n,r,i,o);function p(S,b){if(Dr.cancel(c.current),!f(!1,b)){var E=S;if(!E._virtualHandled)E._virtualHandled=!0;else return;l.current+=b,u.current=b,B1e||E.preventDefault(),c.current=Dr(function(){var w=d.current?10:1;s(l.current*w,!1),l.current=0})}}function h(S,b){s(b,!0),B1e||S.preventDefault()}var g=m.useRef(null),v=m.useRef(null);function y(S){if(e){Dr.cancel(v.current),v.current=Dr(function(){g.current=null},2);var b=S.deltaX,E=S.deltaY,w=S.shiftKey,C=b,x=E;(g.current==="sx"||!g.current&&w&&E&&!b)&&(C=E,x=0,g.current="sx");var T=Math.abs(C),R=Math.abs(x);g.current===null&&(g.current=a&&T>R?"x":"y"),g.current==="y"?p(S,x):h(S,C)}}function _(S){e&&(d.current=S.detail===u.current)}return[y,_]}function U$t(e,n,r,i){var o=m.useMemo(function(){return[new Map,[]]},[e,r.id,i]),a=ke(o,2),s=a[0],l=a[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,p=s.get(d),h=s.get(f);if(p===void 0||h===void 0)for(var g=e.length,v=l.length;v<g;v+=1){var y,_=e[v],S=n(_);s.set(S,v);var b=(y=r.get(S))!==null&&y!==void 0?y:i;if(l[v]=(l[v-1]||0)+b,S===d&&(p=v),S===f&&(h=v),p!==void 0&&h!==void 0)break}return{top:l[p-1]||0,bottom:l[h]}};return c}var H$t=function(){function e(){Ki(this,e),fe(this,"maps",void 0),fe(this,"id",0),this.maps=Object.create(null)}return Xi(e,[{key:"set",value:function(r,i){this.maps[r]=i,this.id+=1}},{key:"get",value:function(r){return this.maps[r]}}]),e}();function j1e(e){var n=parseFloat(e);return isNaN(n)?0:n}function z$t(e,n,r){var i=m.useState(0),o=ke(i,2),a=o[0],s=o[1],l=m.useRef(new Map),c=m.useRef(new H$t),u=m.useRef();function d(){Dr.cancel(u.current)}function f(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var g=function(){l.current.forEach(function(y,_){if(y&&y.offsetParent){var S=Y2(y),b=S.offsetHeight,E=getComputedStyle(S),w=E.marginTop,C=E.marginBottom,x=j1e(w),T=j1e(C),R=b+x+T;c.current.get(_)!==R&&c.current.set(_,R)}}),s(function(y){return y+1})};h?g():u.current=Dr(g)}function p(h,g){var v=e(h);l.current.get(v),g?(l.current.set(v,g),f()):l.current.delete(v)}return m.useEffect(function(){return d},[]),[p,f,c.current,a]}var U1e=14/15;function V$t(e,n,r){var i=m.useRef(!1),o=m.useRef(0),a=m.useRef(0),s=m.useRef(null),l=m.useRef(null),c,u=function(h){if(i.current){var g=Math.ceil(h.touches[0].pageX),v=Math.ceil(h.touches[0].pageY),y=o.current-g,_=a.current-v,S=Math.abs(y)>Math.abs(_);S?o.current=g:a.current=v;var b=r(S,S?y:_,!1,h);b&&h.preventDefault(),clearInterval(l.current),b&&(l.current=setInterval(function(){S?y*=U1e:_*=U1e;var E=Math.floor(S?y:_);(!r(S,E,!0)||Math.abs(E)<=.1)&&clearInterval(l.current)},16))}},d=function(){i.current=!1,c()},f=function(h){c(),h.touches.length===1&&!i.current&&(i.current=!0,o.current=Math.ceil(h.touches[0].pageX),a.current=Math.ceil(h.touches[0].pageY),s.current=h.target,s.current.addEventListener("touchmove",u,{passive:!1}),s.current.addEventListener("touchend",d,{passive:!0}))};c=function(){s.current&&(s.current.removeEventListener("touchmove",u),s.current.removeEventListener("touchend",d))},ti(function(){return e&&n.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=n.current)===null||p===void 0||p.removeEventListener("touchstart",f),c(),clearInterval(l.current)}},[e])}var G$t=10;function W$t(e,n,r,i,o,a,s,l){var c=m.useRef(),u=m.useState(null),d=ke(u,2),f=d[0],p=d[1];return ti(function(){if(f&&f.times<G$t){if(!e.current){p(function(Y){return ee({},Y)});return}a();var h=f.targetAlign,g=f.originAlign,v=f.index,y=f.offset,_=e.current.clientHeight,S=!1,b=h,E=null;if(_){for(var w=h||g,C=0,x=0,T=0,R=Math.min(n.length-1,v),O=0;O<=R;O+=1){var M=o(n[O]);x=C;var P=r.get(M);T=x+(P===void 0?i:P),C=T}for(var k=w==="top"?y:_-y,$=R;$>=0;$-=1){var U=o(n[$]),z=r.get(U);if(z===void 0){S=!0;break}if(k-=z,k<=0)break}switch(w){case"top":E=x-y;break;case"bottom":E=T-_+y;break;default:{var D=e.current.scrollTop,B=D+_;x<D?b="top":T>B&&(b="bottom")}}E!==null&&s(E),E!==f.lastTop&&(S=!0)}S&&p(ee(ee({},f),{},{times:f.times+1,targetAlign:b,lastTop:E}))}},[f,e.current]),function(h){if(h==null){l();return}if(Dr.cancel(c.current),typeof h=="number")s(h);else if(h&&cn(h)==="object"){var g,v=h.align;"index"in h?g=h.index:g=n.findIndex(function(S){return o(S)===h.key});var y=h.offset,_=y===void 0?0:y;p({times:0,index:g,offset:_,originAlign:v})}}}function H1e(e,n){var r="touches"in e?e.touches[0]:e;return r[n?"pageX":"pageY"]}var z1e=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.rtl,o=e.scrollOffset,a=e.scrollRange,s=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,g=m.useState(!1),v=ke(g,2),y=v[0],_=v[1],S=m.useState(null),b=ke(S,2),E=b[0],w=b[1],C=m.useState(null),x=ke(C,2),T=x[0],R=x[1],O=!i,M=m.useRef(),P=m.useRef(),k=m.useState(!1),$=ke(k,2),U=$[0],z=$[1],D=m.useRef(),B=function(){clearTimeout(D.current),z(!0),D.current=setTimeout(function(){z(!1)},3e3)},Y=a-f||0,q=f-d||0,K=m.useMemo(function(){if(o===0||Y===0)return 0;var oe=o/Y;return oe*q},[o,Y,q]),H=function(de){de.stopPropagation(),de.preventDefault()},G=m.useRef({top:K,dragging:y,pageY:E,startTop:T});G.current={top:K,dragging:y,pageY:E,startTop:T};var Q=function(de){_(!0),w(H1e(de,u)),R(G.current.top),s(),de.stopPropagation(),de.preventDefault()};m.useEffect(function(){var oe=function(ve){ve.preventDefault()},de=M.current,pe=P.current;return de.addEventListener("touchstart",oe,{passive:!1}),pe.addEventListener("touchstart",Q,{passive:!1}),function(){de.removeEventListener("touchstart",oe),pe.removeEventListener("touchstart",Q)}},[]);var le=m.useRef();le.current=Y;var Z=m.useRef();Z.current=q,m.useEffect(function(){if(y){var oe,de=function(ve){var he=G.current,be=he.dragging,we=he.pageY,De=he.startTop;Dr.cancel(oe);var Ae=M.current.getBoundingClientRect(),Ee=f/(u?Ae.width:Ae.height);if(be){var Re=(H1e(ve,u)-we)*Ee,Te=De;!O&&u?Te-=Re:Te+=Re;var Oe=le.current,Ne=Z.current,je=Ne?Te/Ne:0,ne=Math.ceil(je*Oe);ne=Math.max(ne,0),ne=Math.min(ne,Oe),oe=Dr(function(){c(ne,u)})}},pe=function(){_(!1),l()};return window.addEventListener("mousemove",de,{passive:!0}),window.addEventListener("touchmove",de,{passive:!0}),window.addEventListener("mouseup",pe,{passive:!0}),window.addEventListener("touchend",pe,{passive:!0}),function(){window.removeEventListener("mousemove",de),window.removeEventListener("touchmove",de),window.removeEventListener("mouseup",pe),window.removeEventListener("touchend",pe),Dr.cancel(oe)}}},[y]),m.useEffect(function(){return B(),function(){clearTimeout(D.current)}},[o]),m.useImperativeHandle(n,function(){return{delayHidden:B}});var j="".concat(r,"-scrollbar"),F={position:"absolute",visibility:U?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(F.height=8,F.left=0,F.right=0,F.bottom=0,te.height="100%",te.width=d,O?te.left=K:te.right=K):(F.width=8,F.top=0,F.bottom=0,O?F.right=0:F.left=0,te.width="100%",te.height=d,te.top=K),m.createElement("div",{ref:M,className:Ce(j,fe(fe(fe({},"".concat(j,"-horizontal"),u),"".concat(j,"-vertical"),!u),"".concat(j,"-visible"),U)),style:ee(ee({},F),p),onMouseDown:H,onMouseMove:B},m.createElement("div",{ref:P,className:Ce("".concat(j,"-thumb"),fe({},"".concat(j,"-thumb-moving"),y)),style:ee(ee({},te),h),onMouseDown:Q}))}),Y$t=20;function V1e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/n*e;return isNaN(r)&&(r=0),r=Math.max(r,Y$t),Math.floor(r)}var q$t=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],K$t=[],X$t={overflowY:"auto",overflowAnchor:"none"};function Q$t(e,n){var r=e.prefixCls,i=r===void 0?"rc-virtual-list":r,o=e.className,a=e.height,s=e.itemHeight,l=e.fullHeight,c=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,p=e.itemKey,h=e.virtual,g=e.direction,v=e.scrollWidth,y=e.component,_=y===void 0?"div":y,S=e.onScroll,b=e.onVirtualScroll,E=e.onVisibleChange,w=e.innerProps,C=e.extraRender,x=e.styles,T=Xt(e,q$t),R=m.useCallback(function(jt){return typeof p=="function"?p(jt):jt==null?void 0:jt[p]},[p]),O=z$t(R),M=ke(O,4),P=M[0],k=M[1],$=M[2],U=M[3],z=!!(h!==!1&&a&&s),D=m.useMemo(function(){return Object.values($.maps).reduce(function(jt,Lt){return jt+Lt},0)},[$.id,$.maps]),B=z&&d&&(Math.max(s*d.length,D)>a||!!v),Y=g==="rtl",q=Ce(i,fe({},"".concat(i,"-rtl"),Y),o),K=d||K$t,H=m.useRef(),G=m.useRef(),Q=m.useRef(),le=m.useState(0),Z=ke(le,2),j=Z[0],F=Z[1],te=m.useState(0),oe=ke(te,2),de=oe[0],pe=oe[1],me=m.useState(!1),ve=ke(me,2),he=ve[0],be=ve[1],we=function(){be(!0)},De=function(){be(!1)},Ae={getKey:R};function Ee(jt){F(function(Lt){var en;typeof jt=="function"?en=jt(Lt):en=jt;var Ue=at(en);return H.current.scrollTop=Ue,Ue})}var Re=m.useRef({start:0,end:K.length}),Te=m.useRef(),Oe=B$t(K,R),Ne=ke(Oe,1),je=Ne[0];Te.current=je;var ne=m.useMemo(function(){if(!z)return{scrollHeight:void 0,start:0,end:K.length-1,offset:void 0};if(!B){var jt;return{scrollHeight:((jt=G.current)===null||jt===void 0?void 0:jt.offsetHeight)||0,start:0,end:K.length-1,offset:void 0}}for(var Lt=0,en,Ue,Zt,Et=K.length,Gt=0;Gt<Et;Gt+=1){var zt=K[Gt],Vn=R(zt),sr=$.get(Vn),A=Lt+(sr===void 0?s:sr);A>=j&&en===void 0&&(en=Gt,Ue=Lt),A>j+a&&Zt===void 0&&(Zt=Gt),Lt=A}return en===void 0&&(en=0,Ue=0,Zt=Math.ceil(a/s)),Zt===void 0&&(Zt=K.length-1),Zt=Math.min(Zt+1,K.length-1),{scrollHeight:Lt,start:en,end:Zt,offset:Ue}},[B,z,j,K,U,a]),J=ne.scrollHeight,ae=ne.start,Se=ne.end,xe=ne.offset;Re.current.start=ae,Re.current.end=Se;var ue=m.useState({width:0,height:a}),Me=ke(ue,2),$e=Me[0],ge=Me[1],Ve=function(Lt){ge({width:Lt.offsetWidth,height:Lt.offsetHeight})},st=m.useRef(),Je=m.useRef(),ot=m.useMemo(function(){return V1e($e.width,v)},[$e.width,v]),Xe=m.useMemo(function(){return V1e($e.height,J)},[$e.height,J]),Ze=J-a,bt=m.useRef(Ze);bt.current=Ze;function at(jt){var Lt=jt;return Number.isNaN(bt.current)||(Lt=Math.min(Lt,bt.current)),Lt=Math.max(Lt,0),Lt}var pt=j<=0,Ct=j>=Ze,It=de<=0,Wt=de>=v,Bt=dUe(pt,Ct,It,Wt),Vt=function(){return{x:Y?-de:de,y:j}},rn=m.useRef(Vt()),tt=Sr(function(jt){if(b){var Lt=ee(ee({},Vt()),jt);(rn.current.x!==Lt.x||rn.current.y!==Lt.y)&&(b(Lt),rn.current=Lt)}});function it(jt,Lt){var en=jt;Lt?(Us.flushSync(function(){pe(en)}),tt()):Ee(en)}function nt(jt){var Lt=jt.currentTarget.scrollTop;Lt!==j&&Ee(Lt),S==null||S(jt),tt()}var vt=function(Lt){var en=Lt,Ue=v?v-$e.width:0;return en=Math.max(en,0),en=Math.min(en,Ue),en},kt=Sr(function(jt,Lt){Lt?(Us.flushSync(function(){pe(function(en){var Ue=en+(Y?-jt:jt);return vt(Ue)})}),tt()):Ee(function(en){var Ue=en+jt;return Ue})}),Dt=j$t(z,pt,Ct,It,Wt,!!v,kt),Kt=ke(Dt,2),Ht=Kt[0],tn=Kt[1];V$t(z,H,function(jt,Lt,en,Ue){var Zt=Ue;return Bt(jt,Lt,en)?!1:!Zt||!Zt._virtualHandled?(Zt&&(Zt._virtualHandled=!0),Ht({preventDefault:function(){},deltaX:jt?Lt:0,deltaY:jt?0:Lt}),!0):!1}),ti(function(){function jt(en){var Ue=pt&&en.detail<0,Zt=Ct&&en.detail>0;z&&!Ue&&!Zt&&en.preventDefault()}var Lt=H.current;return Lt.addEventListener("wheel",Ht,{passive:!1}),Lt.addEventListener("DOMMouseScroll",tn,{passive:!0}),Lt.addEventListener("MozMousePixelScroll",jt,{passive:!1}),function(){Lt.removeEventListener("wheel",Ht),Lt.removeEventListener("DOMMouseScroll",tn),Lt.removeEventListener("MozMousePixelScroll",jt)}},[z,pt,Ct]),ti(function(){if(v){var jt=vt(de);pe(jt),tt({x:jt})}},[$e.width,v]);var on=function(){var Lt,en;(Lt=st.current)===null||Lt===void 0||Lt.delayHidden(),(en=Je.current)===null||en===void 0||en.delayHidden()},sn=W$t(H,K,$,s,R,function(){return k(!0)},Ee,on);m.useImperativeHandle(n,function(){return{nativeElement:Q.current,getScrollInfo:Vt,scrollTo:function(Lt){function en(Ue){return Ue&&cn(Ue)==="object"&&("left"in Ue||"top"in Ue)}en(Lt)?(Lt.left!==void 0&&pe(vt(Lt.left)),sn(Lt.top)):sn(Lt)}}}),ti(function(){if(E){var jt=K.slice(ae,Se+1);E(jt,K)}},[ae,Se,K]);var Jt=U$t(K,R,$,s),En=C==null?void 0:C({start:ae,end:Se,virtual:B,offsetX:de,offsetY:xe,rtl:Y,getSize:Jt}),Pt=$$t(K,ae,Se,v,de,P,f,Ae),Qt=null;a&&(Qt=ee(fe({},c?"height":"maxHeight",a),X$t),z&&(Qt.overflowY="hidden",v&&(Qt.overflowX="hidden"),he&&(Qt.pointerEvents="none")));var ln={};return Y&&(ln.dir="rtl"),m.createElement("div",ft({ref:Q,style:ee(ee({},u),{},{position:"relative"}),className:q},ln,T),m.createElement(Hc,{onResize:Ve},m.createElement(_,{className:"".concat(i,"-holder"),style:Qt,ref:H,onScroll:nt,onMouseEnter:on},m.createElement(uUe,{prefixCls:i,height:J,offsetX:de,offsetY:xe,scrollWidth:v,onInnerResize:k,ref:G,innerProps:w,rtl:Y,extra:En},Pt))),B&&J>a&&m.createElement(z1e,{ref:st,prefixCls:i,scrollOffset:j,scrollRange:J,rtl:Y,onScroll:it,onStartMove:we,onStopMove:De,spinSize:Xe,containerSize:$e.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb}),B&&v>$e.width&&m.createElement(z1e,{ref:Je,prefixCls:i,scrollOffset:de,scrollRange:v,rtl:Y,onScroll:it,onStartMove:we,onStopMove:De,spinSize:ot,containerSize:$e.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb}))}var Wue=m.forwardRef(Q$t);Wue.displayName="List";function Z$t(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var J$t=["disabled","title","children","style","className"];function G1e(e){return typeof e=="string"||typeof e=="number"}var e3t=function(n,r){var i=Uue(),o=i.prefixCls,a=i.id,s=i.open,l=i.multiple,c=i.mode,u=i.searchValue,d=i.toggleOpen,f=i.notFoundContent,p=i.onPopupScroll,h=m.useContext(Hue),g=h.maxCount,v=h.flattenOptions,y=h.onActiveValue,_=h.defaultActiveFirstOption,S=h.onSelect,b=h.menuItemSelectedIcon,E=h.rawValues,w=h.fieldNames,C=h.virtual,x=h.direction,T=h.listHeight,R=h.listItemHeight,O=h.optionRender,M="".concat(o,"-item"),P=Z1(function(){return v},[s,v],function(de,pe){return pe[0]&&de[1]!==pe[1]}),k=m.useRef(null),$=m.useMemo(function(){return l&&aie(g)&&(E==null?void 0:E.size)>=g},[l,g,E==null?void 0:E.size]),U=function(pe){pe.preventDefault()},z=function(pe){var me;(me=k.current)===null||me===void 0||me.scrollTo(typeof pe=="number"?{index:pe}:pe)},D=m.useCallback(function(de){return c==="combobox"?!1:E.has(de)},[c,Tt(E).toString(),E.size]),B=function(pe){for(var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ve=P.length,he=0;he<ve;he+=1){var be=(pe+he*me+ve)%ve,we=P[be]||{},De=we.group,Ae=we.data;if(!De&&!(Ae!=null&&Ae.disabled)&&(D(Ae.value)||!$))return be}return-1},Y=m.useState(function(){return B(0)}),q=ke(Y,2),K=q[0],H=q[1],G=function(pe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;H(pe);var ve={source:me?"keyboard":"mouse"},he=P[pe];if(!he){y(null,-1,ve);return}y(he.value,pe,ve)};m.useEffect(function(){G(_!==!1?B(0):-1)},[P.length,u]);var Q=m.useCallback(function(de){return c==="combobox"?String(de).toLowerCase()===u.toLowerCase():E.has(de)},[c,u,Tt(E).toString(),E.size]);m.useEffect(function(){var de=setTimeout(function(){if(!l&&s&&E.size===1){var me=Array.from(E)[0],ve=P.findIndex(function(he){var be=he.data;return be.value===me});ve!==-1&&(G(ve),z(ve))}});if(s){var pe;(pe=k.current)===null||pe===void 0||pe.scrollTo(void 0)}return function(){return clearTimeout(de)}},[s,u]);var le=function(pe){pe!==void 0&&S(pe,{selected:!E.has(pe)}),l||d(!1)};if(m.useImperativeHandle(r,function(){return{onKeyDown:function(pe){var me=pe.which,ve=pe.ctrlKey;switch(me){case At.N:case At.P:case At.UP:case At.DOWN:{var he=0;if(me===At.UP?he=-1:me===At.DOWN?he=1:Z$t()&&ve&&(me===At.N?he=1:me===At.P&&(he=-1)),he!==0){var be=B(K+he,he);z(be),G(be,!0)}break}case At.TAB:case At.ENTER:{var we,De=P[K];De&&!(De!=null&&(we=De.data)!==null&&we!==void 0&&we.disabled)&&!$?le(De.value):le(void 0),s&&pe.preventDefault();break}case At.ESC:d(!1),s&&pe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pe){z(pe)}}}),P.length===0)return m.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(M,"-empty"),onMouseDown:U},f);var Z=Object.keys(w).map(function(de){return w[de]}),j=function(pe){return pe.label};function F(de,pe){var me=de.group;return{role:me?"presentation":"option",id:"".concat(a,"_list_").concat(pe)}}var te=function(pe){var me=P[pe];if(!me)return null;var ve=me.data||{},he=ve.value,be=me.group,we=Va(ve,!0),De=j(me);return me?m.createElement("div",ft({"aria-label":typeof De=="string"&&!be?De:null},we,{key:pe},F(me,pe),{"aria-selected":Q(he)}),he):null},oe={role:"listbox",id:"".concat(a,"_list")};return m.createElement(m.Fragment,null,C&&m.createElement("div",ft({},oe,{style:{height:0,width:0,overflow:"hidden"}}),te(K-1),te(K),te(K+1)),m.createElement(Wue,{itemKey:"key",ref:k,data:P,height:T,itemHeight:R,fullHeight:!1,onMouseDown:U,onScroll:p,virtual:C,direction:x,innerProps:C?null:oe},function(de,pe){var me=de.group,ve=de.groupOption,he=de.data,be=de.label,we=de.value,De=he.key;if(me){var Ae,Ee=(Ae=he.title)!==null&&Ae!==void 0?Ae:G1e(be)?be.toString():void 0;return m.createElement("div",{className:Ce(M,"".concat(M,"-group"),he.className),title:Ee},be!==void 0?be:De)}var Re=he.disabled,Te=he.title;he.children;var Oe=he.style,Ne=he.className,je=Xt(he,J$t),ne=Wr(je,Z),J=D(we),ae=Re||!J&&$,Se="".concat(M,"-option"),xe=Ce(M,Se,Ne,fe(fe(fe(fe({},"".concat(Se,"-grouped"),ve),"".concat(Se,"-active"),K===pe&&!ae),"".concat(Se,"-disabled"),ae),"".concat(Se,"-selected"),J)),ue=j(de),Me=!b||typeof b=="function"||J,$e=typeof ue=="number"?ue:ue||we,ge=G1e($e)?$e.toString():void 0;return Te!==void 0&&(ge=Te),m.createElement("div",ft({},Va(ne),C?{}:F(de,pe),{"aria-selected":Q(we),className:xe,title:ge,onMouseMove:function(){K===pe||ae||G(pe)},onClick:function(){ae||le(we)},style:Oe}),m.createElement("div",{className:"".concat(Se,"-content")},typeof O=="function"?O(de,{index:pe}):$e),m.isValidElement(b)||J,Me&&m.createElement(tU,{className:"".concat(M,"-option-state"),customizeIcon:b,customizeIconProps:{value:we,disabled:ae,isSelected:J}},J?"✓":null))}))},t3t=m.forwardRef(e3t);const n3t=function(e,n){var r=m.useRef({values:new Map,options:new Map}),i=m.useMemo(function(){var a=r.current,s=a.values,l=a.options,c=e.map(function(f){if(f.label===void 0){var p;return ee(ee({},f),{},{label:(p=s.get(f.value))===null||p===void 0?void 0:p.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,n.get(f.value)||l.get(f.value))}),r.current.values=u,r.current.options=d,c},[e,n]),o=m.useCallback(function(a){return n.get(a)||r.current.options.get(a)},[n]);return[i,o]};function nq(e,n){return sUe(e).join("").toUpperCase().includes(n)}const r3t=function(e,n,r,i,o){return m.useMemo(function(){if(!r||i===!1)return e;var a=n.options,s=n.label,l=n.value,c=[],u=typeof i=="function",d=r.toUpperCase(),f=u?i:function(h,g){return o?nq(g[o],d):g[a]?nq(g[s!=="children"?s:"label"],d):nq(g[l],d)},p=u?function(h){return sie(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var g=f(r,p(h));if(g)c.push(h);else{var v=h[a].filter(function(y){return f(r,p(y))});v.length&&c.push(ee(ee({},h),{},fe({},a,v)))}return}f(r,p(h))&&c.push(h)}),c},[e,i,o,r,n])};var W1e=0,i3t=_f();function o3t(){var e;return i3t?(e=W1e,W1e+=1):e="TEST_OR_SSR",e}function Yue(e){var n=m.useState(),r=ke(n,2),i=r[0],o=r[1];return m.useEffect(function(){o("rc_select_".concat(o3t()))},[]),e||i}var a3t=["children","value"],s3t=["children"];function l3t(e){var n=e,r=n.key,i=n.props,o=i.children,a=i.value,s=Xt(i,a3t);return ee({key:r,value:a!==void 0?a:r,children:o},s)}function fUe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Tl(e).map(function(r,i){if(!m.isValidElement(r)||!r.type)return null;var o=r,a=o.type.isSelectOptGroup,s=o.key,l=o.props,c=l.children,u=Xt(l,s3t);return n||!a?l3t(r):ee(ee({key:"__RC_SELECT_GRP__".concat(s===null?i:s,"__"),label:s},u),{},{options:fUe(c)})}).filter(function(r){return r})}var c3t=function(n,r,i,o,a){return m.useMemo(function(){var s=n,l=!n;l&&(s=fUe(r));var c=new Map,u=new Map,d=function(h,g,v){v&&typeof v=="string"&&h.set(g[v],g)},f=function p(h){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<h.length;v+=1){var y=h[v];!y[i.options]||g?(c.set(y[i.value],y),d(u,y,i.label),d(u,y,o),d(u,y,a)):p(y[i.options],!0)}};return f(s),{options:s,valueOptions:c,labelOptions:u}},[n,r,i,o,a])};function Y1e(e){var n=m.useRef();n.current=e;var r=m.useCallback(function(){return n.current.apply(n,arguments)},[]);return r}var u3t=["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"],d3t=["inputValue"];function f3t(e){return!e||cn(e)!=="object"}var p3t=m.forwardRef(function(e,n){var r=e.id,i=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,s=e.backfill,l=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=f===void 0?!0:f,h=e.onSelect,g=e.onDeselect,v=e.dropdownMatchSelectWidth,y=v===void 0?!0:v,_=e.filterOption,S=e.filterSort,b=e.optionFilterProp,E=e.optionLabelProp,w=e.options,C=e.optionRender,x=e.children,T=e.defaultActiveFirstOption,R=e.menuItemSelectedIcon,O=e.virtual,M=e.direction,P=e.listHeight,k=P===void 0?200:P,$=e.listItemHeight,U=$===void 0?20:$,z=e.labelRender,D=e.value,B=e.defaultValue,Y=e.labelInValue,q=e.onChange,K=e.maxCount,H=Xt(e,u3t),G=Yue(r),Q=lie(i),le=!!(!w&&x),Z=m.useMemo(function(){return _===void 0&&i==="combobox"?!1:_},[_,i]),j=m.useMemo(function(){return cUe(l,le)},[JSON.stringify(l),le]),F=dr("",{value:u!==void 0?u:c,postState:function(vt){return vt||""}}),te=ke(F,2),oe=te[0],de=te[1],pe=c3t(w,x,j,b,E),me=pe.valueOptions,ve=pe.labelOptions,he=pe.options,be=m.useCallback(function(nt){var vt=sUe(nt);return vt.map(function(kt){var Dt,Kt,Ht,tn,on;if(f3t(kt))Dt=kt;else{var sn;Ht=kt.key,Kt=kt.label,Dt=(sn=kt.value)!==null&&sn!==void 0?sn:Ht}var Jt=me.get(Dt);if(Jt){var En;Kt===void 0&&(Kt=Jt==null?void 0:Jt[E||j.label]),Ht===void 0&&(Ht=(En=Jt==null?void 0:Jt.key)!==null&&En!==void 0?En:Dt),tn=Jt==null?void 0:Jt.disabled,on=Jt==null?void 0:Jt.title}return{label:Kt,value:Dt,key:Ht,disabled:tn,title:on}})},[j,E,me]),we=dr(B,{value:D}),De=ke(we,2),Ae=De[0],Ee=De[1],Re=m.useMemo(function(){var nt,vt=Q&&Ae===null?[]:Ae,kt=be(vt);return i==="combobox"&&s$t((nt=kt[0])===null||nt===void 0?void 0:nt.value)?[]:kt},[Ae,be,i,Q]),Te=n3t(Re,me),Oe=ke(Te,2),Ne=Oe[0],je=Oe[1],ne=m.useMemo(function(){if(!i&&Ne.length===1){var nt=Ne[0];if(nt.value===null&&(nt.label===null||nt.label===void 0))return[]}return Ne.map(function(vt){var kt;return ee(ee({},vt),{},{label:(kt=typeof z=="function"?z(vt):vt.label)!==null&&kt!==void 0?kt:vt.value})})},[i,Ne,z]),J=m.useMemo(function(){return new Set(Ne.map(function(nt){return nt.value}))},[Ne]);m.useEffect(function(){if(i==="combobox"){var nt,vt=(nt=Ne[0])===null||nt===void 0?void 0:nt.value;de(a$t(vt)?String(vt):"")}},[Ne]);var ae=Y1e(function(nt,vt){var kt=vt??nt;return fe(fe({},j.value,nt),j.label,kt)}),Se=m.useMemo(function(){if(i!=="tags")return he;var nt=Tt(he),vt=function(Dt){return me.has(Dt)};return Tt(Ne).sort(function(kt,Dt){return kt.value<Dt.value?-1:1}).forEach(function(kt){var Dt=kt.value;vt(Dt)||nt.push(ae(Dt,kt.label))}),nt},[ae,he,me,Ne,i]),xe=r3t(Se,j,oe,Z,b),ue=m.useMemo(function(){return i!=="tags"||!oe||xe.some(function(nt){return nt[b||"value"]===oe})||xe.some(function(nt){return nt[j.value]===oe})?xe:[ae(oe)].concat(Tt(xe))},[ae,b,i,xe,oe,j]),Me=function nt(vt){var kt=Tt(vt).sort(function(Dt,Kt){return S(Dt,Kt,{searchValue:oe})});return kt.map(function(Dt){return Array.isArray(Dt.options)?ee(ee({},Dt),{},{options:Dt.options.length>0?nt(Dt.options):Dt.options}):Dt})},$e=m.useMemo(function(){return S?Me(ue):ue},[ue,S,oe]),ge=m.useMemo(function(){return M$t($e,{fieldNames:j,childrenAsData:le})},[$e,j,le]),Ve=function(vt){var kt=be(vt);if(Ee(kt),q&&(kt.length!==Ne.length||kt.some(function(Ht,tn){var on;return((on=Ne[tn])===null||on===void 0?void 0:on.value)!==(Ht==null?void 0:Ht.value)}))){var Dt=Y?kt:kt.map(function(Ht){return Ht.value}),Kt=kt.map(function(Ht){return sie(je(Ht.value))});q(Q?Dt:Dt[0],Q?Kt:Kt[0])}},st=m.useState(null),Je=ke(st,2),ot=Je[0],Xe=Je[1],Ze=m.useState(0),bt=ke(Ze,2),at=bt[0],pt=bt[1],Ct=T!==void 0?T:i!=="combobox",It=m.useCallback(function(nt,vt){var kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Dt=kt.source,Kt=Dt===void 0?"keyboard":Dt;pt(vt),s&&i==="combobox"&&nt!==null&&Kt==="keyboard"&&Xe(String(nt))},[s,i]),Wt=function(vt,kt,Dt){var Kt=function(){var jt,Lt=je(vt);return[Y?{label:Lt==null?void 0:Lt[j.label],value:vt,key:(jt=Lt==null?void 0:Lt.key)!==null&&jt!==void 0?jt:vt}:vt,sie(Lt)]};if(kt&&h){var Ht=Kt(),tn=ke(Ht,2),on=tn[0],sn=tn[1];h(on,sn)}else if(!kt&&g&&Dt!=="clear"){var Jt=Kt(),En=ke(Jt,2),Pt=En[0],Qt=En[1];g(Pt,Qt)}},Bt=Y1e(function(nt,vt){var kt,Dt=Q?vt.selected:!0;Dt?kt=Q?[].concat(Tt(Ne),[nt]):[nt]:kt=Ne.filter(function(Kt){return Kt.value!==nt}),Ve(kt),Wt(nt,Dt),i==="combobox"?Xe(""):(!lie||p)&&(de(""),Xe(""))}),Vt=function(vt,kt){Ve(vt);var Dt=kt.type,Kt=kt.values;(Dt==="remove"||Dt==="clear")&&Kt.forEach(function(Ht){Wt(Ht.value,!1,Dt)})},rn=function(vt,kt){if(de(vt),Xe(null),kt.source==="submit"){var Dt=(vt||"").trim();if(Dt){var Kt=Array.from(new Set([].concat(Tt(J),[Dt])));Ve(Kt),Wt(Dt,!0),de("")}return}kt.source!=="blur"&&(i==="combobox"&&Ve(vt),d==null||d(vt))},tt=function(vt){var kt=vt;i!=="tags"&&(kt=vt.map(function(Kt){var Ht=ve.get(Kt);return Ht==null?void 0:Ht.value}).filter(function(Kt){return Kt!==void 0}));var Dt=Array.from(new Set([].concat(Tt(J),Tt(kt))));Ve(Dt),Dt.forEach(function(Kt){Wt(Kt,!0)})},it=m.useMemo(function(){var nt=O!==!1&&y!==!1;return ee(ee({},pe),{},{flattenOptions:ge,onActiveValue:It,defaultActiveFirstOption:Ct,onSelect:Bt,menuItemSelectedIcon:R,rawValues:J,fieldNames:j,virtual:nt,direction:M,listHeight:k,listItemHeight:U,childrenAsData:le,maxCount:K,optionRender:C})},[K,pe,ge,It,Ct,Bt,R,J,j,O,y,M,k,U,le,C]);return m.createElement(Hue.Provider,{value:it},m.createElement(zue,ft({},H,{id:G,prefixCls:a,ref:n,omitDomProps:d3t,mode:i,displayValues:ne,onDisplayValuesChange:Vt,direction:M,searchValue:oe,onSearch:rn,autoClearSearchValue:p,onSearchSplit:tt,dropdownMatchSelectWidth:y,OptionList:t3t,emptyOptions:!ge.length,activeValue:ot,activeDescendantId:"".concat(G,"_list_").concat(at)})))}),que=p3t;que.Option=Gue;que.OptGroup=Vue;function ng(e,n,r){return Ce({[`${e}-status-success`]:n==="success",[`${e}-status-warning`]:n==="warning",[`${e}-status-error`]:n==="error",[`${e}-status-validating`]:n==="validating",[`${e}-has-feedback`]:r})}const Zy=(e,n)=>n||e,h3t=()=>{const[,e]=Nl(),[n]=Nu("Empty"),i=new Gr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m.createElement("svg",{style:i,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m.createElement("title",null,(n==null?void 0:n.description)||"Empty"),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(24 31.67)"},m.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m.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"}),m.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)"}),m.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"}),m.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"})),m.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"}),m.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},g3t=()=>{const[,e]=Nl(),[n]=Nu("Empty"),{colorFill:r,colorFillTertiary:i,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:s,shadowColor:l,contentColor:c}=m.useMemo(()=>({borderColor:new Gr(r).onBackground(a).toHexString(),shadowColor:new Gr(i).onBackground(a).toHexString(),contentColor:new Gr(o).onBackground(a).toHexString()}),[r,i,o,a]);return m.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m.createElement("title",null,(n==null?void 0:n.description)||"Empty"),m.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),m.createElement("g",{fillRule:"nonzero",stroke:s},m.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"}),m.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:c}))))},m3t=e=>{const{componentCls:n,margin:r,marginXS:i,marginXL:o,fontSize:a,lineHeight:s}=e;return{[n]:{marginInline:i,fontSize:a,lineHeight:s,textAlign:"center",[`${n}-image`]:{height:e.emptyImgHeight,marginBottom:i,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${n}-description`]:{color:e.colorTextDescription},[`${n}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${n}-description`]:{color:e.colorTextDescription},[`${n}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:i,color:e.colorTextDescription,[`${n}-image`]:{height:e.emptyImgHeightSM}}}}},v3t=Yr("Empty",e=>{const{componentCls:n,controlHeightLG:r,calc:i}=e,o=wr(e,{emptyImgCls:`${n}-img`,emptyImgHeight:i(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:i(r).mul(.875).equal()});return[m3t(o)]});var y3t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const pUe=m.createElement(h3t,null),hUe=m.createElement(g3t,null),xb=e=>{var n,r,i,o,a,s,l,c;const{className:u,rootClassName:d,prefixCls:f,image:p=pUe,description:h,children:g,imageStyle:v,style:y,classNames:_,styles:S}=e,b=y3t(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:E,direction:w,empty:C}=m.useContext(Cn),x=E("empty",f),[T,R,O]=v3t(x),[M]=Nu("Empty"),P=typeof h<"u"?h:M==null?void 0:M.description,k=typeof P=="string"?P:"empty";let $=null;return typeof p=="string"?$=m.createElement("img",{alt:k,src:p}):$=p,T(m.createElement("div",Object.assign({className:Ce(R,O,x,C==null?void 0:C.className,{[`${x}-normal`]:p===hUe,[`${x}-rtl`]:w==="rtl"},u,d,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.root,_==null?void 0:_.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(r=C==null?void 0:C.styles)===null||r===void 0?void 0:r.root),C==null?void 0:C.style),S==null?void 0:S.root),y)},b),m.createElement("div",{className:Ce(`${x}-image`,(i=C==null?void 0:C.classNames)===null||i===void 0?void 0:i.image,_==null?void 0:_.image),style:Object.assign(Object.assign(Object.assign({},v),(o=C==null?void 0:C.styles)===null||o===void 0?void 0:o.image),S==null?void 0:S.image)},$),P&&m.createElement("div",{className:Ce(`${x}-description`,(a=C==null?void 0:C.classNames)===null||a===void 0?void 0:a.description,_==null?void 0:_.description),style:Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.description),S==null?void 0:S.description)},P),g&&m.createElement("div",{className:Ce(`${x}-footer`,(l=C==null?void 0:C.classNames)===null||l===void 0?void 0:l.footer,_==null?void 0:_.footer),style:Object.assign(Object.assign({},(c=C==null?void 0:C.styles)===null||c===void 0?void 0:c.footer),S==null?void 0:S.footer)},g)))};xb.PRESENTED_IMAGE_DEFAULT=pUe;xb.PRESENTED_IMAGE_SIMPLE=hUe;const nU=e=>{const{componentName:n}=e,{getPrefixCls:r}=m.useContext(Cn),i=r("empty");switch(n){case"Table":case"List":return V.createElement(xb,{image:xb.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return V.createElement(xb,{image:xb.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return V.createElement(xb,null)}},Jy=function(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var i,o;const{variant:a,[e]:s}=m.useContext(Cn),l=m.useContext(M9e),c=s==null?void 0:s.variant;let u;typeof n<"u"?u=n:r===!1?u="borderless":u=(o=(i=l??c)!==null&&i!==void 0?i:a)!==null&&o!==void 0?o:"outlined";const d=WNt.includes(u);return[u,d]},_3t=e=>{const r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function Kue(e,n){return e||_3t(n)}const q1e=e=>{const{optionHeight:n,optionFontSize:r,optionLineHeight:i,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:n,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:i,boxSizing:"border-box"}},b3t=e=>{const{antCls:n,componentCls:r}=e,i=`${r}-item`,o=`&${n}-slide-up-enter${n}-slide-up-enter-active`,a=`&${n}-slide-up-appear${n}-slide-up-appear-active`,s=`&${n}-slide-up-leave${n}-slide-up-leave-active`,l=`${r}-dropdown-placement-`,c=`${i}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},li(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,[`
|
||
${o}${l}bottomLeft,
|
||
${a}${l}bottomLeft
|
||
`]:{animationName:U9},[`
|
||
${o}${l}topLeft,
|
||
${a}${l}topLeft,
|
||
${o}${l}topRight,
|
||
${a}${l}topRight
|
||
`]:{animationName:z9},[`${s}${l}bottomLeft`]:{animationName:H9},[`
|
||
${s}${l}topLeft,
|
||
${s}${l}topRight
|
||
`]:{animationName:V9},"&-hidden":{display:"none"},[i]:Object.assign(Object.assign({},q1e(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"},bf),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${i}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${i}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${i}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${i}-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({},q1e(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Mm(e,"slide-up"),Mm(e,"slide-down"),kO(e,"move-up"),kO(e,"move-down")]},gUe=e=>{const{multipleSelectItemHeight:n,paddingXXS:r,lineWidth:i,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(r).sub(i).equal(),0),s=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:s,itemHeight:Ye(n),itemLineHeight:Ye(e.calc(n).sub(e.calc(e.lineWidth).mul(2)).equal())}},S3t=e=>{const{multipleSelectItemHeight:n,selectHeight:r,lineWidth:i}=e;return e.calc(r).sub(n).div(2).sub(i).equal()},mUe=e=>{const{componentCls:n,iconCls:r,borderRadiusSM:i,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${n}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:i,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${n}-disabled&`]:{color:s,borderColor:l,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({},ew()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},E3t=(e,n)=>{const{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=`${r}-selection-overflow`,a=e.multipleSelectItemHeight,s=S3t(e),l=n?`${r}-${n}`:"",c=gUe(e);return{[`${r}-multiple${l}`]:Object.assign(Object.assign({},mUe(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ye(i)} 0`,lineHeight:Ye(a),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:c.itemHeight,lineHeight:Ye(c.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Ye(a),marginBlock:i}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${o}-item + ${o}-item,
|
||
${r}-prefix + ${r}-selection-wrap
|
||
`]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:i},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:Ye(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"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function rq(e,n){const{componentCls:r}=e,i=n?`${r}-${n}`:"",o={[`${r}-multiple${i}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[`
|
||
&${r}-show-arrow ${r}-selector,
|
||
&${r}-allow-clear ${r}-selector
|
||
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[E3t(e,n),o]}const C3t=e=>{const{componentCls:n}=e,r=wr(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),i=wr(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[rq(e),rq(r,"sm"),{[`${n}-multiple${n}-sm`]:{[`${n}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${n}-selection-search`]:{marginInlineStart:2}}},rq(i,"lg")]};function iq(e,n){const{componentCls:r,inputPaddingHorizontalBase:i,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=n?`${r}-${n}`:"";return{[`${r}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},li(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
||
${r}-selection-item,
|
||
${r}-selection-placeholder
|
||
`]:{display:"block",padding:0,lineHeight:Ye(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
||
&${r}-show-arrow ${r}-selection-item,
|
||
&${r}-show-arrow ${r}-selection-search,
|
||
&${r}-show-arrow ${r}-selection-placeholder
|
||
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Ye(i)}`,[`${r}-selection-search-input`]:{height:a},"&:after":{lineHeight:Ye(a)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ye(i)}`,"&:after":{display:"none"}}}}}}}function w3t(e){const{componentCls:n}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[iq(e),iq(wr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${n}-single${n}-sm`]:{[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{padding:`0 ${Ye(r)}`},[`&${n}-show-arrow ${n}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
||
&${n}-show-arrow ${n}-selection-item,
|
||
&${n}-show-arrow ${n}-selection-placeholder
|
||
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},iq(wr(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const x3t=e=>{const{fontSize:n,lineHeight:r,lineWidth:i,controlHeight:o,controlHeightSM:a,controlHeightLG:s,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:h,colorBgContainer:g,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:_,colorPrimaryHover:S,colorPrimary:b,controlOutline:E}=e,w=l*2,C=i*2,x=Math.min(o-w,o-C),T=Math.min(a-w,a-C),R=Math.min(s-w,s-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:h,optionPadding:`${(o-n*r)/2}px ${c}px`,optionFontSize:n,optionLineHeight:r,optionHeight:o,selectorBg:g,clearBg:g,singleItemHeightLG:s,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:T,multipleItemHeightLG:R,multipleSelectorBgDisabled:y,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:S,activeBorderColor:b,activeOutlineColor:E,selectAffixPadding:l}},vUe=(e,n)=>{const{componentCls:r,antCls:i,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${Ye(e.lineWidth)} ${e.lineType} ${n.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:n.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:n.activeBorderColor,boxShadow:`0 0 0 ${Ye(o)} ${n.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:n.color}}}},K1e=(e,n)=>({[`&${e.componentCls}-status-${n.status}`]:Object.assign({},vUe(e,n))}),T3t=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},vUe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),K1e(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),K1e(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${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:`${Ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),yUe=(e,n)=>{const{componentCls:r,antCls:i}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:n.bg,border:`${Ye(e.lineWidth)} ${e.lineType} transparent`,color:n.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:n.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:n.activeBorderColor,outline:0}}}},X1e=(e,n)=>({[`&${e.componentCls}-status-${n.status}`]:Object.assign({},yUe(e,n))}),O3t=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},yUe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),X1e(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),X1e(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:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),R3t=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Ye(e.lineWidth)} ${e.lineType} 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:`${Ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),I3t=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},T3t(e)),O3t(e)),R3t(e))}),N3t=e=>{const{componentCls:n}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${n}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${n}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},M3t=e=>{const{componentCls:n}=e;return{[`${n}-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"}}}},P3t=e=>{const{antCls:n,componentCls:r,inputPaddingHorizontalBase:i,iconCls:o}=e;return{[r]:Object.assign(Object.assign({},li(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},N3t(e)),M3t(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},bf),{[`> ${n}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},bf),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},ew()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,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`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,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 ${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},A3t=e=>{const{componentCls:n}=e;return[{[n]:{[`&${n}-in-form-item`]:{width:"100%"}}},P3t(e),w3t(e),C3t(e),b3t(e),{[`${n}-rtl`]:{direction:"rtl"}},nw(e,{borderElCls:`${n}-selector`,focusElCls:`${n}-focused`})]},Xue=Yr("Select",(e,n)=>{let{rootPrefixCls:r}=n;const i=wr(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[A3t(i),I3t(i)]},x3t,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var D3t={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"},k3t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:D3t}))},c0=m.forwardRef(k3t),L3t={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"},$3t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:L3t}))},cI=m.forwardRef($3t),F3t={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"},B3t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:F3t}))},Que=m.forwardRef(B3t);function rU(e){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:i,removeIcon:o,loading:a,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const h=r??m.createElement(ev,null),g=S=>n===null&&!l&&!f?null:m.createElement(m.Fragment,null,u!==!1&&S,l&&d);let v=null;if(n!==void 0)v=g(n);else if(a)v=g(m.createElement(Nm,{spin:!0}));else{const S=`${c}-suffix`;v=b=>{let{open:E,showSearch:w}=b;return g(E&&w?m.createElement(Que,{className:S}):m.createElement(cI,{className:S}))}}let y=null;i!==void 0?y=i:s?y=m.createElement(c0,null):y=null;let _=null;return o!==void 0?_=o:_=m.createElement(jp,null),{clearIcon:h,suffixIcon:v,itemIcon:y,removeIcon:_}}function Zue(e,n){return n!==void 0?n:e!==null}var j3t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const _Ue="SECRET_COMBOBOX_MODE_DO_NOT_USE",U3t=(e,n)=>{var r;const{prefixCls:i,bordered:o,className:a,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:h,disabled:g,notFoundContent:v,status:y,builtinPlacements:_,dropdownMatchSelectWidth:S,popupMatchSelectWidth:b,direction:E,style:w,allowClear:C,variant:x,dropdownStyle:T,transitionName:R,tagRender:O,maxCount:M,prefix:P}=e,k=j3t(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","prefix"]),{getPopupContainer:$,getPrefixCls:U,renderEmpty:z,direction:D,virtual:B,popupMatchSelectWidth:Y,popupOverflow:q,select:K}=m.useContext(Cn),[,H]=Nl(),G=p??(H==null?void 0:H.controlHeight),Q=U("select",i),le=U(),Z=E??D,{compactSize:j,compactItemClassnames:F}=yg(Q,Z),[te,oe]=Jy("select",x,o),de=po(Q),[pe,me,ve]=Xue(Q,de),he=m.useMemo(()=>{const{mode:ot}=e;if(ot!=="combobox")return ot===_Ue?"combobox":ot},[e.mode]),be=he==="multiple"||he==="tags",we=Zue(e.suffixIcon,e.showArrow),De=(r=b??S)!==null&&r!==void 0?r:Y,{status:Ae,hasFeedback:Ee,isFormItemInput:Re,feedbackIcon:Te}=m.useContext(qs),Oe=Zy(Ae,y);let Ne;v!==void 0?Ne=v:he==="combobox"?Ne=null:Ne=(z==null?void 0:z("Select"))||m.createElement(nU,{componentName:"Select"});const{suffixIcon:je,itemIcon:ne,removeIcon:J,clearIcon:ae}=rU(Object.assign(Object.assign({},k),{multiple:be,hasFeedback:Ee,feedbackIcon:Te,showSuffixIcon:we,prefixCls:Q,componentName:"Select"})),Se=C===!0?{clearIcon:ae}:C,xe=Wr(k,["suffixIcon","itemIcon"]),ue=Ce(c||u,{[`${Q}-dropdown-${Z}`]:Z==="rtl"},s,ve,de,me),Me=Xs(ot=>{var Xe;return(Xe=h??j)!==null&&Xe!==void 0?Xe:ot}),$e=m.useContext(xs),ge=g??$e,Ve=Ce({[`${Q}-lg`]:Me==="large",[`${Q}-sm`]:Me==="small",[`${Q}-rtl`]:Z==="rtl",[`${Q}-${te}`]:oe,[`${Q}-in-form-item`]:Re},ng(Q,Oe,Ee),F,K==null?void 0:K.className,a,s,ve,de,me),st=m.useMemo(()=>f!==void 0?f:Z==="rtl"?"bottomRight":"bottomLeft",[f,Z]),[Je]=Up("SelectLike",T==null?void 0:T.zIndex);return pe(m.createElement(que,Object.assign({ref:n,virtual:B,showSearch:K==null?void 0:K.showSearch},xe,{style:Object.assign(Object.assign({},K==null?void 0:K.style),w),dropdownMatchSelectWidth:De,transitionName:Kl(le,"slide-up",R),builtinPlacements:Kue(_,q),listHeight:d,listItemHeight:G,mode:he,prefixCls:Q,placement:st,direction:Z,prefix:P,suffixIcon:je,menuItemSelectedIcon:ne,removeIcon:J,allowClear:Se,notFoundContent:Ne,className:Ve,getPopupContainer:l||$,dropdownClassName:ue,disabled:ge,dropdownStyle:Object.assign(Object.assign({},T),{zIndex:Je}),maxCount:be?M:void 0,tagRender:be?O:void 0})))},_g=m.forwardRef(U3t),H3t=tS(_g,"dropdownAlign");_g.SECRET_COMBOBOX_MODE_DO_NOT_USE=_Ue;_g.Option=Gue;_g.OptGroup=Vue;_g._InternalPanelDoNotUseOrYouWillBeFired=H3t;const LO=["xxl","xl","lg","md","sm","xs"],z3t=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)`}),V3t=e=>{const n=e,r=[].concat(LO).reverse();return r.forEach((i,o)=>{const a=i.toUpperCase(),s=`screen${a}Min`,l=`screen${a}`;if(!(n[s]<=n[l]))throw new Error(`${s}<=${l} fails : !(${n[s]}<=${n[l]})`);if(o<r.length-1){const c=`screen${a}Max`;if(!(n[l]<=n[c]))throw new Error(`${l}<=${c} fails : !(${n[l]}<=${n[c]})`);const d=`screen${r[o+1].toUpperCase()}Min`;if(!(n[c]<=n[d]))throw new Error(`${c}<=${d} fails : !(${n[c]}<=${n[d]})`)}}),e};function bUe(){const[,e]=Nl(),n=z3t(V3t(e));return V.useMemo(()=>{const r=new Map;let i=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,r.forEach(s=>s(o)),r.size>=1},subscribe(a){return r.size||this.register(),i+=1,r.set(i,a),a(o),i},unsubscribe(a){r.delete(a),r.size||this.unregister()},unregister(){Object.keys(n).forEach(a=>{const s=n[a],l=this.matchHandlers[s];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),r.clear()},register(){Object.keys(n).forEach(a=>{const s=n[a],l=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[a]:d}))},c=window.matchMedia(s);c.addListener(l),this.matchHandlers[s]={mql:c,listener:l},l(c)})},responsiveMap:n}},[e])}function SUe(){const[,e]=m.useReducer(n=>n+1,0);return e}function G3t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const n=m.useRef({}),r=SUe(),i=bUe();return ti(()=>{const o=i.subscribe(a=>{n.current=a,e&&r()});return()=>i.unsubscribe(o)},[]),n.current}const cie=m.createContext({}),W3t=e=>{const{antCls:n,componentCls:r,iconCls:i,avatarBg:o,avatarColor:a,containerSize:s,containerSizeLG:l,containerSizeSM:c,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,borderRadius:p,borderRadiusLG:h,borderRadiusSM:g,lineWidth:v,lineType:y}=e,_=(S,b,E)=>({width:S,height:S,borderRadius:"50%",[`&${r}-square`]:{borderRadius:E},[`&${r}-icon`]:{fontSize:b,[`> ${i}`]:{margin:0}}});return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${Ye(v)} ${y} transparent`,"&-image":{background:"transparent"},[`${n}-image-img`]:{display:"block"}}),_(s,u,p)),{"&-lg":Object.assign({},_(l,d,h)),"&-sm":Object.assign({},_(c,f,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Y3t=e=>{const{componentCls:n,groupBorderColor:r,groupOverlapping:i,groupSpace:o}=e;return{[`${n}-group`]:{display:"inline-flex",[n]:{borderColor:r},"> *:not(:first-child)":{marginInlineStart:i}},[`${n}-group-popover`]:{[`${n} + ${n}`]:{marginInlineStart:o}}}},q3t=e=>{const{controlHeight:n,controlHeightLG:r,controlHeightSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:s,fontSizeHeading3:l,marginXS:c,marginXXS:u,colorBorderBg:d}=e;return{containerSize:n,containerSizeLG:r,containerSizeSM:i,textFontSize:Math.round((a+s)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:u,groupOverlapping:-c,groupBorderColor:d}},EUe=Yr("Avatar",e=>{const{colorTextLightSolid:n,colorTextPlaceholder:r}=e,i=wr(e,{avatarBg:r,avatarColor:n});return[W3t(i),Y3t(i)]},q3t);var K3t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const X3t=(e,n)=>{const[r,i]=m.useState(1),[o,a]=m.useState(!1),[s,l]=m.useState(!0),c=m.useRef(null),u=m.useRef(null),d=Il(n,c),{getPrefixCls:f,avatar:p}=m.useContext(Cn),h=m.useContext(cie),g=()=>{if(!u.current||!c.current)return;const F=u.current.offsetWidth,te=c.current.offsetWidth;if(F!==0&&te!==0){const{gap:oe=4}=e;oe*2<te&&i(te-oe*2<F?(te-oe*2)/F:1)}};m.useEffect(()=>{a(!0)},[]),m.useEffect(()=>{l(!0),i(1)},[e.src]),m.useEffect(g,[e.gap]);const v=()=>{const{onError:F}=e;(F==null?void 0:F())!==!1&&l(!1)},{prefixCls:y,shape:_,size:S,src:b,srcSet:E,icon:w,className:C,rootClassName:x,alt:T,draggable:R,children:O,crossOrigin:M}=e,P=K3t(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),k=Xs(F=>{var te,oe;return(oe=(te=S??(h==null?void 0:h.size))!==null&&te!==void 0?te:F)!==null&&oe!==void 0?oe:"default"}),$=Object.keys(typeof k=="object"?k||{}:{}).some(F=>["xs","sm","md","lg","xl","xxl"].includes(F)),U=G3t($),z=m.useMemo(()=>{if(typeof k!="object")return{};const F=LO.find(oe=>U[oe]),te=k[F];return te?{width:te,height:te,fontSize:te&&(w||O)?te/2:18}:{}},[U,k]),D=f("avatar",y),B=po(D),[Y,q,K]=EUe(D,B),H=Ce({[`${D}-lg`]:k==="large",[`${D}-sm`]:k==="small"}),G=m.isValidElement(b),Q=_||(h==null?void 0:h.shape)||"circle",le=Ce(D,H,p==null?void 0:p.className,`${D}-${Q}`,{[`${D}-image`]:G||b&&s,[`${D}-icon`]:!!w},K,B,C,x,q),Z=typeof k=="number"?{width:k,height:k,fontSize:w?k/2:18}:{};let j;if(typeof b=="string"&&s)j=m.createElement("img",{src:b,draggable:R,srcSet:E,onError:v,alt:T,crossOrigin:M});else if(G)j=b;else if(w)j=w;else if(o||r!==1){const F=`scale(${r})`,te={msTransform:F,WebkitTransform:F,transform:F};j=m.createElement(Hc,{onResize:g},m.createElement("span",{className:`${D}-string`,ref:u,style:Object.assign({},te)},O))}else j=m.createElement("span",{className:`${D}-string`,style:{opacity:0},ref:u},O);return delete P.onError,delete P.gap,Y(m.createElement("span",Object.assign({},P,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Z),z),p==null?void 0:p.style),P.style),className:le,ref:d}),j))},CUe=m.forwardRef(X3t),$O=e=>e?typeof e=="function"?e():e:null;function Jue(e){var n=e.children,r=e.prefixCls,i=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,s=e.className,l=e.style;return m.createElement("div",{className:Ce("".concat(r,"-content"),s),style:l},m.createElement("div",{className:Ce("".concat(r,"-inner"),a),id:i,role:"tooltip",style:o},typeof n=="function"?n():n))}var _x={shiftX:64,adjustY:1},bx={adjustX:1,shiftY:!0},Gf=[0,0],Q3t={left:{points:["cr","cl"],overflow:bx,offset:[-4,0],targetOffset:Gf},right:{points:["cl","cr"],overflow:bx,offset:[4,0],targetOffset:Gf},top:{points:["bc","tc"],overflow:_x,offset:[0,-4],targetOffset:Gf},bottom:{points:["tc","bc"],overflow:_x,offset:[0,4],targetOffset:Gf},topLeft:{points:["bl","tl"],overflow:_x,offset:[0,-4],targetOffset:Gf},leftTop:{points:["tr","tl"],overflow:bx,offset:[-4,0],targetOffset:Gf},topRight:{points:["br","tr"],overflow:_x,offset:[0,-4],targetOffset:Gf},rightTop:{points:["tl","tr"],overflow:bx,offset:[4,0],targetOffset:Gf},bottomRight:{points:["tr","br"],overflow:_x,offset:[0,4],targetOffset:Gf},rightBottom:{points:["bl","br"],overflow:bx,offset:[4,0],targetOffset:Gf},bottomLeft:{points:["tl","bl"],overflow:_x,offset:[0,4],targetOffset:Gf},leftBottom:{points:["br","bl"],overflow:bx,offset:[-4,0],targetOffset:Gf}},Z3t=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],J3t=function(n,r){var i=n.overlayClassName,o=n.trigger,a=o===void 0?["hover"]:o,s=n.mouseEnterDelay,l=s===void 0?0:s,c=n.mouseLeaveDelay,u=c===void 0?.1:c,d=n.overlayStyle,f=n.prefixCls,p=f===void 0?"rc-tooltip":f,h=n.children,g=n.onVisibleChange,v=n.afterVisibleChange,y=n.transitionName,_=n.animation,S=n.motion,b=n.placement,E=b===void 0?"right":b,w=n.align,C=w===void 0?{}:w,x=n.destroyTooltipOnHide,T=x===void 0?!1:x,R=n.defaultVisible,O=n.getTooltipContainer,M=n.overlayInnerStyle;n.arrowContent;var P=n.overlay,k=n.id,$=n.showArrow,U=$===void 0?!0:$,z=n.classNames,D=n.styles,B=Xt(n,Z3t),Y=m.useRef(null);m.useImperativeHandle(r,function(){return Y.current});var q=ee({},B);"visible"in n&&(q.popupVisible=n.visible);var K=function(){return m.createElement(Jue,{key:"content",prefixCls:p,id:k,bodyClassName:z==null?void 0:z.body,overlayInnerStyle:ee(ee({},M),D==null?void 0:D.body)},P)};return m.createElement(_k,ft({popupClassName:Ce(i,z==null?void 0:z.root),prefixCls:p,popup:K,action:a,builtinPlacements:Q3t,popupPlacement:E,ref:Y,popupAlign:C,getPopupContainer:O,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:_,popupMotion:S,defaultPopupVisible:R,autoDestroy:T,mouseLeaveDelay:u,popupStyle:ee(ee({},d),D==null?void 0:D.root),mouseEnterDelay:l,arrow:U},q),h)};const e4t=m.forwardRef(J3t);function iU(e){const{sizePopupArrow:n,borderRadiusXS:r,borderRadiusOuter:i}=e,o=n/2,a=0,s=o,l=i*1/Math.sqrt(2),c=o-i*(1-1/Math.sqrt(2)),u=o-r*(1/Math.sqrt(2)),d=i*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-u,p=d,h=2*o-l,g=c,v=2*o-a,y=s,_=o*Math.sqrt(2)+i*(Math.sqrt(2)-2),S=i*(Math.sqrt(2)-1),b=`polygon(${S}px 100%, 50% ${S}px, ${2*o-S}px 100%, ${S}px 100%)`,E=`path('M ${a} ${s} A ${i} ${i} 0 0 0 ${l} ${c} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${p} L ${h} ${g} A ${i} ${i} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:_,arrowPath:E,arrowPolygon:b}}const wUe=(e,n,r)=>{const{sizePopupArrow:i,arrowPolygon:o,arrowPath:a,arrowShadowWidth:s,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:i,height:i,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:i,height:c(i).div(2).equal(),background:n,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ye(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},xUe=8;function oU(e){const{contentRadius:n,limitVerticalRadius:r}=e,i=n>12?n+2:12;return{arrowOffsetHorizontal:i,arrowOffsetVertical:r?xUe:i}}function Y3(e,n){return e?n:{}}function ede(e,n,r){const{componentCls:i,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:s}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({[`${i}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},wUe(e,n,o)),{"&:before":{background:n}})]},Y3(!!c.top,{[[`&-placement-top > ${i}-arrow`,`&-placement-topLeft > ${i}-arrow`,`&-placement-topRight > ${i}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ye(s)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Y3(!!c.bottom,{[[`&-placement-bottom > ${i}-arrow`,`&-placement-bottomLeft > ${i}-arrow`,`&-placement-bottomRight > ${i}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ye(s)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Y3(!!c.left,{[[`&-placement-left > ${i}-arrow`,`&-placement-leftTop > ${i}-arrow`,`&-placement-leftBottom > ${i}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:a},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:a}})),Y3(!!c.right,{[[`&-placement-right > ${i}-arrow`,`&-placement-rightTop > ${i}-arrow`,`&-placement-rightBottom > ${i}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:a},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:a}}))}}function t4t(e,n,r,i){if(i===!1)return{adjustX:!1,adjustY:!1};const o=i&&typeof i=="object"?i:{},a={};switch(e){case"top":case"bottom":a.shiftX=n.arrowOffsetHorizontal*2+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=n.arrowOffsetVertical*2+r,a.shiftX=!0,a.adjustX=!0;break}const s=Object.assign(Object.assign({},a),o);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const Q1e={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"]}},n4t={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"]}},r4t=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function TUe(e){const{arrowWidth:n,autoAdjustOverflow:r,arrowPointAtCenter:i,offset:o,borderRadius:a,visibleFirst:s}=e,l=n/2,c={};return Object.keys(Q1e).forEach(u=>{const d=i&&n4t[u]||Q1e[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,r4t.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const p=oU({contentRadius:a,limitVerticalRadius:!0});if(i)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal*2-l;break}f.overflow=t4t(u,p,n,r),s&&(f.htmlRegion="visibleFirst")}),c}const i4t=e=>{const{calc:n,componentCls:r,tooltipMaxWidth:i,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:s,zIndexPopup:l,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:h}=e,g=n(s).add(h).add(p).equal(),v=n(s).mul(2).add(h).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:i,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":a,[`${r}-inner`]:{minWidth:v,minHeight:c,padding:`${Ye(e.calc(d).div(2).equal())} ${Ye(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:s,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(s,xUe)}},[`${r}-content`]:{position:"relative"}}),Eue(e,(y,_)=>{let{darkColor:S}=_;return{[`&${r}-${y}`]:{[`${r}-inner`]:{backgroundColor:S},[`${r}-arrow`]:{"--antd-arrow-background-color":S}}}})),{"&-rtl":{direction:"rtl"}})},ede(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},o4t=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},oU({contentRadius:e.borderRadius,limitVerticalRadius:!0})),iU(wr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),OUe=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Yr("Tooltip",i=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:s}=i,l=wr(i,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:s});return[i4t(l),aI(i,"zoom-big-fast")]},o4t,{resetStyle:!1,injectStyle:n})(e)},a4t=oC.map(e=>`${e}-inverse`);function tde(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Tt(a4t),Tt(oC)).includes(e):oC.includes(e)}function RUe(e,n){const r=tde(n),i=Ce({[`${e}-${n}`]:n&&r}),o={},a={};return n&&!r&&(o.background=n,a["--antd-arrow-background-color"]=n),{className:i,overlayStyle:o,arrowStyle:a}}const s4t=e=>{const{prefixCls:n,className:r,placement:i="top",title:o,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=m.useContext(Cn),c=l("tooltip",n),[u,d,f]=OUe(c),p=RUe(c,a),h=p.arrowStyle,g=Object.assign(Object.assign({},s),p.overlayStyle),v=Ce(d,f,c,`${c}-pure`,`${c}-placement-${i}`,r,p.className);return u(m.createElement("div",{className:v,style:h},m.createElement("div",{className:`${c}-arrow`}),m.createElement(Jue,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:g}),o)))};var l4t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const c4t=m.forwardRef((e,n)=>{var r,i,o,a,s,l;const{prefixCls:c,openClassName:u,getTooltipContainer:d,color:f,overlayInnerStyle:p,children:h,afterOpenChange:g,afterVisibleChange:v,destroyTooltipOnHide:y,arrow:_=!0,title:S,overlay:b,builtinPlacements:E,arrowPointAtCenter:w=!1,autoAdjustOverflow:C=!0}=e,x=!!_,[,T]=Nl(),{getPopupContainer:R,getPrefixCls:O,direction:M,tooltip:P}=m.useContext(Cn),k=JC(),$=m.useRef(null),U=()=>{var xe;(xe=$.current)===null||xe===void 0||xe.forceAlign()};m.useImperativeHandle(n,()=>{var xe;return{forceAlign:U,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),U()},nativeElement:(xe=$.current)===null||xe===void 0?void 0:xe.nativeElement}});const[z,D]=dr(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(i=e.defaultOpen)!==null&&i!==void 0?i:e.defaultVisible}),B=!S&&!b&&S!==0,Y=xe=>{var ue,Me;D(B?!1:xe),B||((ue=e.onOpenChange)===null||ue===void 0||ue.call(e,xe),(Me=e.onVisibleChange)===null||Me===void 0||Me.call(e,xe))},q=m.useMemo(()=>{var xe,ue;let Me=w;return typeof _=="object"&&(Me=(ue=(xe=_.pointAtCenter)!==null&&xe!==void 0?xe:_.arrowPointAtCenter)!==null&&ue!==void 0?ue:w),E||TUe({arrowPointAtCenter:Me,autoAdjustOverflow:C,arrowWidth:x?T.sizePopupArrow:0,borderRadius:T.borderRadius,offset:T.marginXXS,visibleFirst:!0})},[w,_,E,T]),K=m.useMemo(()=>S===0?S:b||S||"",[b,S]),H=m.createElement(tg,{space:!0},typeof K=="function"?K():K),{getPopupContainer:G,placement:Q="top",mouseEnterDelay:le=.1,mouseLeaveDelay:Z=.1,overlayStyle:j,rootClassName:F,overlayClassName:te,styles:oe,classNames:de}=e,pe=l4t(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),me=O("tooltip",c),ve=O(),he=e["data-popover-inject"];let be=z;!("open"in e)&&!("visible"in e)&&B&&(be=!1);const we=m.isValidElement(h)&&!U7e(h)?h:m.createElement("span",null,h),De=we.props,Ae=!De.className||typeof De.className=="string"?Ce(De.className,u||`${me}-open`):De.className,[Ee,Re,Te]=OUe(me,!he),Oe=RUe(me,f),Ne=Oe.arrowStyle,je=Ce(te,{[`${me}-rtl`]:M==="rtl"},Oe.className,F,Re,Te,P==null?void 0:P.className,(o=P==null?void 0:P.classNames)===null||o===void 0?void 0:o.root,de==null?void 0:de.root),ne=Ce((a=P==null?void 0:P.classNames)===null||a===void 0?void 0:a.body,de==null?void 0:de.body),[J,ae]=Up("Tooltip",pe.zIndex),Se=m.createElement(e4t,Object.assign({},pe,{zIndex:J,showArrow:x,placement:Q,mouseEnterDelay:le,mouseLeaveDelay:Z,prefixCls:me,classNames:{root:je,body:ne},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ne),(s=P==null?void 0:P.styles)===null||s===void 0?void 0:s.root),P==null?void 0:P.style),j),oe==null?void 0:oe.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(l=P==null?void 0:P.styles)===null||l===void 0?void 0:l.body),p),oe==null?void 0:oe.body),Oe.overlayStyle)},getTooltipContainer:G||d||R,ref:$,builtinPlacements:q,overlay:H,visible:be,onVisibleChange:Y,afterVisibleChange:g??v,arrowContent:m.createElement("span",{className:`${me}-arrow-content`}),motion:{motionName:Kl(ve,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),be?Ys(we,{className:Ae}):we);return Ee(m.createElement(uk.Provider,{value:ae},Se))}),Sf=c4t;Sf._InternalPanelDoNotUseOrYouWillBeFired=s4t;const u4t=e=>{const{componentCls:n,popoverColor:r,titleMinWidth:i,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:s,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:p,titleBorderBottom:h,innerContentPadding:g,titlePadding:v}=e;return[{[n]:Object.assign(Object.assign({},li(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,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":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:c,boxShadow:s,padding:a},[`${n}-title`]:{minWidth:i,marginBottom:d,color:l,fontWeight:o,borderBottom:h,padding:v},[`${n}-inner-content`]:{color:r,padding:g}})},ede(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},d4t=e=>{const{componentCls:n}=e;return{[n]:oC.map(r=>{const i=e[`${r}6`];return{[`&${n}-${r}`]:{"--antd-arrow-background-color":i,[`${n}-inner`]:{backgroundColor:i},[`${n}-arrow`]:{background:"transparent"}}}})}},f4t=e=>{const{lineWidth:n,controlHeight:r,fontHeight:i,padding:o,wireframe:a,zIndexPopupBase:s,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,p=r-i,h=p/2,g=p/2-n,v=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:s+30},iU(e)),oU({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${h}px ${v}px ${g}px`:0,titleBorderBottom:a?`${n}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${v}px`:0})},IUe=Yr("Popover",e=>{const{colorBgElevated:n,colorText:r}=e,i=wr(e,{popoverBg:n,popoverColor:r});return[u4t(i),d4t(i),aI(i,"zoom-big")]},f4t,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var p4t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const NUe=e=>{let{title:n,content:r,prefixCls:i}=e;return!n&&!r?null:m.createElement(m.Fragment,null,n&&m.createElement("div",{className:`${i}-title`},n),r&&m.createElement("div",{className:`${i}-inner-content`},r))},h4t=e=>{const{hashId:n,prefixCls:r,className:i,style:o,placement:a="top",title:s,content:l,children:c}=e,u=$O(s),d=$O(l),f=Ce(n,r,`${r}-pure`,`${r}-placement-${a}`,i);return m.createElement("div",{className:f,style:o},m.createElement("div",{className:`${r}-arrow`}),m.createElement(Jue,Object.assign({},e,{className:n,prefixCls:r}),c||m.createElement(NUe,{prefixCls:r,title:u,content:d})))},MUe=e=>{const{prefixCls:n,className:r}=e,i=p4t(e,["prefixCls","className"]),{getPrefixCls:o}=m.useContext(Cn),a=o("popover",n),[s,l,c]=IUe(a);return s(m.createElement(h4t,Object.assign({},i,{prefixCls:a,hashId:l,className:Ce(r,c)})))};var g4t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const m4t=m.forwardRef((e,n)=>{var r,i,o,a,s,l;const{prefixCls:c,title:u,content:d,overlayClassName:f,placement:p="top",trigger:h="hover",children:g,mouseEnterDelay:v=.1,mouseLeaveDelay:y=.1,onOpenChange:_,overlayStyle:S={},styles:b,classNames:E}=e,w=g4t(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:C,getPrefixCls:x}=m.useContext(Cn),T=x("popover",c),[R,O,M]=IUe(T),P=x(),k=Ce(f,O,M,(r=C==null?void 0:C.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root),$=Ce((i=C==null?void 0:C.classNames)===null||i===void 0?void 0:i.body,E==null?void 0:E.body),[U,z]=dr(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),D=(H,G)=>{z(H,!0),_==null||_(H,G)},B=H=>{H.keyCode===At.ESC&&D(!1,H)},Y=H=>{D(H)},q=$O(u),K=$O(d);return R(m.createElement(Sf,Object.assign({placement:p,trigger:h,mouseEnterDelay:v,mouseLeaveDelay:y},w,{prefixCls:T,classNames:{root:k,body:$},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.root),C==null?void 0:C.style),S),b==null?void 0:b.root),body:Object.assign(Object.assign({},(l=C==null?void 0:C.styles)===null||l===void 0?void 0:l.body),b==null?void 0:b.body)},ref:n,open:U,onOpenChange:Y,overlay:q||K?m.createElement(NUe,{prefixCls:T,title:q,content:K}):null,transitionName:Kl(P,"zoom-big",w.transitionName),"data-popover-inject":!0}),Ys(g,{onKeyDown:H=>{var G,Q;m.isValidElement(g)&&((Q=g==null?void 0:(G=g.props).onKeyDown)===null||Q===void 0||Q.call(G,H)),B(H)}})))}),Rp=m4t;Rp._InternalPanelDoNotUseOrYouWillBeFired=MUe;const Z1e=e=>{const{size:n,shape:r}=m.useContext(cie),i=m.useMemo(()=>({size:e.size||n,shape:e.shape||r}),[e.size,e.shape,n,r]);return m.createElement(cie.Provider,{value:i},e.children)},v4t=e=>{var n,r,i,o;const{getPrefixCls:a,direction:s}=m.useContext(Cn),{prefixCls:l,className:c,rootClassName:u,style:d,maxCount:f,maxStyle:p,size:h,shape:g,maxPopoverPlacement:v,maxPopoverTrigger:y,children:_,max:S}=e,b=a("avatar",l),E=`${b}-group`,w=po(b),[C,x,T]=EUe(b,w),R=Ce(E,{[`${E}-rtl`]:s==="rtl"},T,w,c,u,x),O=Tl(_).map((k,$)=>Ys(k,{key:`avatar-key-${$}`})),M=(S==null?void 0:S.count)||f,P=O.length;if(M&&M<P){const k=O.slice(0,M),$=O.slice(M,P),U=(S==null?void 0:S.style)||p,z=((n=S==null?void 0:S.popover)===null||n===void 0?void 0:n.trigger)||y||"hover",D=((r=S==null?void 0:S.popover)===null||r===void 0?void 0:r.placement)||v||"top",B=Object.assign(Object.assign({content:$},S==null?void 0:S.popover),{classNames:{root:Ce(`${E}-popover`,(o=(i=S==null?void 0:S.popover)===null||i===void 0?void 0:i.classNames)===null||o===void 0?void 0:o.root)},placement:D,trigger:z});return k.push(m.createElement(Rp,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},B),m.createElement(CUe,{style:U},`+${P-M}`))),C(m.createElement(Z1e,{shape:g,size:h},m.createElement("div",{className:R,style:d},k)))}return C(m.createElement(Z1e,{shape:g,size:h},m.createElement("div",{className:R,style:d},O)))},nS=CUe;nS.Group=v4t;const y4t=new kr("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),_4t=new kr("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),b4t=new kr("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),S4t=new kr("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),E4t=new kr("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),C4t=new kr("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),w4t=e=>{const{componentCls:n,iconCls:r,antCls:i,badgeShadowSize:o,textFontSize:a,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:p,calc:h}=e,g=`${i}-scroll-number`,v=Eue(e,(y,_)=>{let{darkColor:S}=_;return{[`&${n} ${n}-color-${y}`]:{background:S,[`&:not(${n}-count)`]:{color:S},"a:hover &":{background:S}}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${n}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:Ye(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(d).div(2).equal(),boxShadow:`0 0 0 ${Ye(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${n}-count-sm`]:{minWidth:f,height:f,fontSize:s,lineHeight:Ye(f),borderRadius:h(f).div(2).equal()},[`${n}-multiple-words`]:{padding:`0 ${Ye(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${n}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Ye(o)} ${e.badgeShadowColor}`},[`${n}-count, ${n}-dot, ${g}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${r}-spin`]:{animationName:C4t,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${n}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${n}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${n}-status-success`]:{backgroundColor:e.colorSuccess},[`${n}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:y4t,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${n}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${n}-status-error`]:{backgroundColor:e.colorError},[`${n}-status-warning`]:{backgroundColor:e.colorWarning},[`${n}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${n}-zoom-appear, ${n}-zoom-enter`]:{animationName:_4t,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${n}-zoom-leave`]:{animationName:b4t,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${n}-not-a-wrapper`]:{[`${n}-zoom-appear, ${n}-zoom-enter`]:{animationName:S4t,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${n}-zoom-leave`]:{animationName:E4t,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${n}-status)`]:{verticalAlign:"middle"},[`${g}-custom-component, ${n}-count`]:{transform:"none"},[`${g}-custom-component, ${g}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[g]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${g}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${g}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${g}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${n}-count, ${n}-dot, ${g}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},PUe=e=>{const{fontHeight:n,lineWidth:r,marginXS:i,colorBorderBg:o}=e,a=n,s=r,l=e.colorTextLightSolid,c=e.colorError,u=e.colorErrorHover;return wr(e,{badgeFontHeight:a,badgeShadowSize:s,badgeTextColor:l,badgeColor:c,badgeColorHover:u,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},AUe=e=>{const{fontSize:n,lineHeight:r,fontSizeSM:i,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(n*r)-2*o,indicatorHeightSM:n,dotSize:i/2,textFontSize:i,textFontSizeSM:i,textFontWeight:"normal",statusSize:i/2}},x4t=Yr("Badge",e=>{const n=PUe(e);return w4t(n)},AUe),T4t=e=>{const{antCls:n,badgeFontHeight:r,marginXS:i,badgeRibbonOffset:o,calc:a}=e,s=`${n}-ribbon`,l=`${n}-ribbon-wrapper`,c=Eue(e,(u,d)=>{let{darkColor:f}=d;return{[`&${s}-color-${u}`]:{background:f,color:f}}});return{[l]:{position:"relative"},[s]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{position:"absolute",top:i,padding:`0 ${Ye(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Ye(r),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${s}-text`]:{color:e.badgeTextColor},[`${s}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${Ye(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${s}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${s}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${s}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${s}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},O4t=Yr(["Badge","Ribbon"],e=>{const n=PUe(e);return T4t(n)},AUe),R4t=e=>{const{className:n,prefixCls:r,style:i,color:o,children:a,text:s,placement:l="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=m.useContext(Cn),f=u("ribbon",r),p=`${f}-wrapper`,[h,g,v]=O4t(f,p),y=tde(o,!1),_=Ce(f,`${f}-placement-${l}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${o}`]:y},n),S={},b={};return o&&!y&&(S.background=o,b.color=o),h(m.createElement("div",{className:Ce(p,c,g,v)},a,m.createElement("div",{className:Ce(_,g),style:Object.assign(Object.assign({},S),i)},m.createElement("span",{className:`${f}-text`},s),m.createElement("div",{className:`${f}-corner`,style:b}))))},J1e=e=>{const{prefixCls:n,value:r,current:i,offset:o=0}=e;let a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),m.createElement("span",{style:a,className:Ce(`${n}-only-unit`,{current:i})},r)};function I4t(e,n,r){let i=e,o=0;for(;(i+10)%10!==n;)i+=r,o+=r;return o}const N4t=e=>{const{prefixCls:n,count:r,value:i}=e,o=Number(i),a=Math.abs(r),[s,l]=m.useState(o),[c,u]=m.useState(a),d=()=>{l(o),u(a)};m.useEffect(()=>{const h=setTimeout(d,1e3);return()=>clearTimeout(h)},[o]);let f,p;if(s===o||Number.isNaN(o)||Number.isNaN(s))f=[m.createElement(J1e,Object.assign({},e,{key:o,current:!0}))],p={transition:"none"};else{f=[];const h=o+10,g=[];for(let S=o;S<=h;S+=1)g.push(S);const v=c<a?1:-1,y=g.findIndex(S=>S%10===s);f=(v<0?g.slice(0,y+1):g.slice(y)).map((S,b)=>{const E=S%10;return m.createElement(J1e,Object.assign({},e,{key:S,value:E,offset:v<0?b-y:b,current:b===y}))}),p={transform:`translateY(${-I4t(s,o,v)}00%)`}}return m.createElement("span",{className:`${n}-only`,style:p,onTransitionEnd:d},f)};var M4t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const P4t=m.forwardRef((e,n)=>{const{prefixCls:r,count:i,className:o,motionClassName:a,style:s,title:l,show:c,component:u="sup",children:d}=e,f=M4t(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=m.useContext(Cn),h=p("scroll-number",r),g=Object.assign(Object.assign({},f),{"data-show":c,style:s,className:Ce(h,o,a),title:l});let v=i;if(i&&Number(i)%1===0){const y=String(i).split("");v=m.createElement("bdi",null,y.map((_,S)=>m.createElement(N4t,{prefixCls:h,count:Number(i),value:_,key:y.length-S})))}return s!=null&&s.borderColor&&(g.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?Ys(d,y=>({className:Ce(`${h}-custom-component`,y==null?void 0:y.className,a)})):m.createElement(u,Object.assign({},g,{ref:n}),v)});var A4t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const D4t=m.forwardRef((e,n)=>{var r,i,o,a,s;const{prefixCls:l,scrollNumberPrefixCls:c,children:u,status:d,text:f,color:p,count:h=null,overflowCount:g=99,dot:v=!1,size:y="default",title:_,offset:S,style:b,className:E,rootClassName:w,classNames:C,styles:x,showZero:T=!1}=e,R=A4t(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:M,badge:P}=m.useContext(Cn),k=O("badge",l),[$,U,z]=x4t(k),D=h>g?`${g}+`:h,B=D==="0"||D===0,Y=h===null||B&&!T,q=(d!=null||p!=null)&&Y,K=v&&!B,H=K?"":D,G=m.useMemo(()=>(H==null||H===""||B&&!T)&&!K,[H,B,T,K]),Q=m.useRef(h);G||(Q.current=h);const le=Q.current,Z=m.useRef(H);G||(Z.current=H);const j=Z.current,F=m.useRef(K);G||(F.current=K);const te=m.useMemo(()=>{if(!S)return Object.assign(Object.assign({},P==null?void 0:P.style),b);const we={marginTop:S[1]};return M==="rtl"?we.left=parseInt(S[0],10):we.right=-parseInt(S[0],10),Object.assign(Object.assign(Object.assign({},we),P==null?void 0:P.style),b)},[M,S,b,P==null?void 0:P.style]),oe=_??(typeof le=="string"||typeof le=="number"?le:void 0),de=G||!f?null:m.createElement("span",{className:`${k}-status-text`},f),pe=!le||typeof le!="object"?void 0:Ys(le,we=>({style:Object.assign(Object.assign({},te),we.style)})),me=tde(p,!1),ve=Ce(C==null?void 0:C.indicator,(r=P==null?void 0:P.classNames)===null||r===void 0?void 0:r.indicator,{[`${k}-status-dot`]:q,[`${k}-status-${d}`]:!!d,[`${k}-color-${p}`]:me}),he={};p&&!me&&(he.color=p,he.background=p);const be=Ce(k,{[`${k}-status`]:q,[`${k}-not-a-wrapper`]:!u,[`${k}-rtl`]:M==="rtl"},E,w,P==null?void 0:P.className,(i=P==null?void 0:P.classNames)===null||i===void 0?void 0:i.root,C==null?void 0:C.root,U,z);if(!u&&q){const we=te.color;return $(m.createElement("span",Object.assign({},R,{className:be,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.root),(o=P==null?void 0:P.styles)===null||o===void 0?void 0:o.root),te)}),m.createElement("span",{className:ve,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(a=P==null?void 0:P.styles)===null||a===void 0?void 0:a.indicator),he)}),f&&m.createElement("span",{style:{color:we},className:`${k}-status-text`},f)))}return $(m.createElement("span",Object.assign({ref:n},R,{className:be,style:Object.assign(Object.assign({},(s=P==null?void 0:P.styles)===null||s===void 0?void 0:s.root),x==null?void 0:x.root)}),u,m.createElement(Ws,{visible:!G,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},we=>{let{className:De}=we;var Ae,Ee;const Re=O("scroll-number",c),Te=F.current,Oe=Ce(C==null?void 0:C.indicator,(Ae=P==null?void 0:P.classNames)===null||Ae===void 0?void 0:Ae.indicator,{[`${k}-dot`]:Te,[`${k}-count`]:!Te,[`${k}-count-sm`]:y==="small",[`${k}-multiple-words`]:!Te&&j&&j.toString().length>1,[`${k}-status-${d}`]:!!d,[`${k}-color-${p}`]:me});let Ne=Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(Ee=P==null?void 0:P.styles)===null||Ee===void 0?void 0:Ee.indicator),te);return p&&!me&&(Ne=Ne||{},Ne.background=p),m.createElement(P4t,{prefixCls:Re,show:!G,motionClassName:De,className:Oe,count:j,title:oe,style:Ne,key:"scrollNumber"},pe)}),de))}),Qu=D4t;Qu.Ribbon=R4t;var k4t=At.ESC,L4t=At.TAB;function $4t(e){var n=e.visible,r=e.triggerRef,i=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,s=m.useRef(!1),l=function(){if(n){var f,p;(f=r.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),i==null||i(!1)}},c=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),s.current=!0,!0):!1},u=function(f){switch(f.keyCode){case k4t:l();break;case L4t:{var p=!1;s.current||(p=c()),p?f.preventDefault():l();break}}};m.useEffect(function(){return n?(window.addEventListener("keydown",u),o&&Dr(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}},[n])}var F4t=m.forwardRef(function(e,n){var r=e.overlay,i=e.arrow,o=e.prefixCls,a=m.useMemo(function(){var l;return typeof r=="function"?l=r():l=r,l},[r]),s=Il(n,J0(a));return V.createElement(V.Fragment,null,i&&V.createElement("div",{className:"".concat(o,"-arrow")}),V.cloneElement(a,{ref:Ky(a)?s:void 0}))}),Sx={adjustX:1,adjustY:1},Ex=[0,0],B4t={topLeft:{points:["bl","tl"],overflow:Sx,offset:[0,-4],targetOffset:Ex},top:{points:["bc","tc"],overflow:Sx,offset:[0,-4],targetOffset:Ex},topRight:{points:["br","tr"],overflow:Sx,offset:[0,-4],targetOffset:Ex},bottomLeft:{points:["tl","bl"],overflow:Sx,offset:[0,4],targetOffset:Ex},bottom:{points:["tc","bc"],overflow:Sx,offset:[0,4],targetOffset:Ex},bottomRight:{points:["tr","br"],overflow:Sx,offset:[0,4],targetOffset:Ex}},j4t=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function U4t(e,n){var r,i=e.arrow,o=i===void 0?!1:i,a=e.prefixCls,s=a===void 0?"rc-dropdown":a,l=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,p=e.placements,h=p===void 0?B4t:p,g=e.getPopupContainer,v=e.showAction,y=e.hideAction,_=e.overlayClassName,S=e.overlayStyle,b=e.visible,E=e.trigger,w=E===void 0?["hover"]:E,C=e.autoFocus,x=e.overlay,T=e.children,R=e.onVisibleChange,O=Xt(e,j4t),M=V.useState(),P=ke(M,2),k=P[0],$=P[1],U="visible"in e?b:k,z=V.useRef(null),D=V.useRef(null),B=V.useRef(null);V.useImperativeHandle(n,function(){return z.current});var Y=function(F){$(F),R==null||R(F)};$4t({visible:U,triggerRef:B,onVisibleChange:Y,autoFocus:C,overlayRef:D});var q=function(F){var te=e.onOverlayClick;$(!1),te&&te(F)},K=function(){return V.createElement(F4t,{ref:D,overlay:x,prefixCls:s,arrow:o})},H=function(){return typeof x=="function"?K:K()},G=function(){var F=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?F:!te},Q=function(){var F=e.openClassName;return F!==void 0?F:"".concat(s,"-open")},le=V.cloneElement(T,{className:Ce((r=T.props)===null||r===void 0?void 0:r.className,U&&Q()),ref:Ky(T)?Il(B,J0(T)):void 0}),Z=y;return!Z&&w.indexOf("contextMenu")!==-1&&(Z=["click"]),V.createElement(_k,ft({builtinPlacements:h},O,{prefixCls:s,ref:z,popupClassName:Ce(_,fe({},"".concat(s,"-show-arrow"),o)),popupStyle:S,action:w,showAction:v,hideAction:Z,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:U,stretch:G()?"minWidth":"",popup:H(),onPopupVisibleChange:Y,onPopupClick:q,getPopupContainer:g}),le)}const DUe=V.forwardRef(U4t),H4t=e=>typeof e!="object"&&typeof e!="function"||e===null;var kUe=m.createContext(null);function LUe(e,n){return e===void 0?null:"".concat(e,"-").concat(n)}function $Ue(e){var n=m.useContext(kUe);return LUe(n,e)}var z4t=["children","locked"],rg=m.createContext(null);function V4t(e,n){var r=ee({},e);return Object.keys(n).forEach(function(i){var o=n[i];o!==void 0&&(r[i]=o)}),r}function yA(e){var n=e.children,r=e.locked,i=Xt(e,z4t),o=m.useContext(rg),a=Z1(function(){return V4t(o,i)},[o,i],function(s,l){return!r&&(s[0]!==l[0]||!rC(s[1],l[1],!0))});return m.createElement(rg.Provider,{value:a},n)}var G4t=[],FUe=m.createContext(null);function aU(){return m.useContext(FUe)}var BUe=m.createContext(G4t);function uI(e){var n=m.useContext(BUe);return m.useMemo(function(){return e!==void 0?[].concat(Tt(n),[e]):n},[n,e])}var jUe=m.createContext(null),nde=m.createContext({});function eCe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(fk(e)){var r=e.nodeName.toLowerCase(),i=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),s=null;return o&&!Number.isNaN(a)?s=a:i&&s===null&&(s=0),i&&e.disabled&&(s=null),s!==null&&(s>=0||n&&s<0)}return!1}function W4t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Tt(e.querySelectorAll("*")).filter(function(i){return eCe(i,n)});return eCe(e,n)&&r.unshift(e),r}var uie=At.LEFT,die=At.RIGHT,fie=At.UP,f6=At.DOWN,p6=At.ENTER,UUe=At.ESC,lM=At.HOME,cM=At.END,tCe=[fie,f6,uie,die];function Y4t(e,n,r,i){var o,a="prev",s="next",l="children",c="parent";if(e==="inline"&&i===p6)return{inlineTrigger:!0};var u=fe(fe({},fie,a),f6,s),d=fe(fe(fe(fe({},uie,r?s:a),die,r?a:s),f6,l),p6,l),f=fe(fe(fe(fe(fe(fe({},fie,a),f6,s),p6,l),UUe,c),uie,r?l:c),die,r?c:l),p={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},h=(o=p["".concat(e).concat(n?"":"Sub")])===null||o===void 0?void 0:o[i];switch(h){case a:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function q4t(e){for(var n=e;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function K4t(e,n){for(var r=e||document.activeElement;r;){if(n.has(r))return r;r=r.parentElement}return null}function rde(e,n){var r=W4t(e,!0);return r.filter(function(i){return n.has(i)})}function nCe(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=rde(e,n),a=o.length,s=o.findIndex(function(l){return r===l});return i<0?s===-1?s=a-1:s-=1:i>0&&(s+=1),s=(s+a)%a,o[s]}var pie=function(n,r){var i=new Set,o=new Map,a=new Map;return n.forEach(function(s){var l=document.querySelector("[data-menu-id='".concat(LUe(r,s),"']"));l&&(i.add(l),a.set(l,s),o.set(s,l))}),{elements:i,key2element:o,element2key:a}};function X4t(e,n,r,i,o,a,s,l,c,u){var d=m.useRef(),f=m.useRef();f.current=n;var p=function(){Dr.cancel(d.current)};return m.useEffect(function(){return function(){p()}},[]),function(h){var g=h.which;if([].concat(tCe,[p6,UUe,lM,cM]).includes(g)){var v=a(),y=pie(v,i),_=y,S=_.elements,b=_.key2element,E=_.element2key,w=b.get(n),C=K4t(w,S),x=E.get(C),T=Y4t(e,s(x,!0).length===1,r,g);if(!T&&g!==lM&&g!==cM)return;(tCe.includes(g)||[lM,cM].includes(g))&&h.preventDefault();var R=function(D){if(D){var B=D,Y=D.querySelector("a");Y!=null&&Y.getAttribute("href")&&(B=Y);var q=E.get(D);l(q),p(),d.current=Dr(function(){f.current===q&&B.focus()})}};if([lM,cM].includes(g)||T.sibling||!C){var O;!C||e==="inline"?O=o.current:O=q4t(C);var M,P=rde(O,S);g===lM?M=P[0]:g===cM?M=P[P.length-1]:M=nCe(O,S,C,T.offset),R(M)}else if(T.inlineTrigger)c(x);else if(T.offset>0)c(x,!0),p(),d.current=Dr(function(){y=pie(v,i);var z=C.getAttribute("aria-controls"),D=document.getElementById(z),B=nCe(D,y.elements);R(B)},5);else if(T.offset<0){var k=s(x,!0),$=k[k.length-2],U=b.get($);c($,!1),R(U)}}u==null||u(h)}}function Q4t(e){Promise.resolve().then(e)}var ide="__RC_UTIL_PATH_SPLIT__",rCe=function(n){return n.join(ide)},Z4t=function(n){return n.split(ide)},hie="rc-menu-more";function J4t(){var e=m.useState({}),n=ke(e,2),r=n[1],i=m.useRef(new Map),o=m.useRef(new Map),a=m.useState([]),s=ke(a,2),l=s[0],c=s[1],u=m.useRef(0),d=m.useRef(!1),f=function(){d.current||r({})},p=m.useCallback(function(b,E){var w=rCe(E);o.current.set(w,b),i.current.set(b,w),u.current+=1;var C=u.current;Q4t(function(){C===u.current&&f()})},[]),h=m.useCallback(function(b,E){var w=rCe(E);o.current.delete(w),i.current.delete(b)},[]),g=m.useCallback(function(b){c(b)},[]),v=m.useCallback(function(b,E){var w=i.current.get(b)||"",C=Z4t(w);return E&&l.includes(C[0])&&C.unshift(hie),C},[l]),y=m.useCallback(function(b,E){return b.filter(function(w){return w!==void 0}).some(function(w){var C=v(w,!0);return C.includes(E)})},[v]),_=function(){var E=Tt(i.current.keys());return l.length&&E.push(hie),E},S=m.useCallback(function(b){var E="".concat(i.current.get(b)).concat(ide),w=new Set;return Tt(o.current.keys()).forEach(function(C){C.startsWith(E)&&w.add(o.current.get(C))}),w},[]);return m.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:p,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:v,getKeys:_,getSubPathKeys:S}}function s2(e){var n=m.useRef(e);n.current=e;var r=m.useCallback(function(){for(var i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=n.current)===null||i===void 0?void 0:i.call.apply(i,[n].concat(a))},[]);return e?r:void 0}var e5t=Math.random().toFixed(5).toString().slice(2),iCe=0;function t5t(e){var n=dr(e,{value:e}),r=ke(n,2),i=r[0],o=r[1];return m.useEffect(function(){iCe+=1;var a="".concat(e5t,"-").concat(iCe);o("rc-menu-uuid-".concat(a))},[]),i}function HUe(e,n,r,i){var o=m.useContext(rg),a=o.activeKey,s=o.onActive,l=o.onInactive,c={active:a===e};return n||(c.onMouseEnter=function(u){r==null||r({key:e,domEvent:u}),s(e)},c.onMouseLeave=function(u){i==null||i({key:e,domEvent:u}),l(e)}),c}function zUe(e){var n=m.useContext(rg),r=n.mode,i=n.rtl,o=n.inlineIndent;if(r!=="inline")return null;var a=e;return i?{paddingRight:a*o}:{paddingLeft:a*o}}function VUe(e){var n=e.icon,r=e.props,i=e.children,o;return n===null||n===!1?null:(typeof n=="function"?o=m.createElement(n,ee({},r)):typeof n!="boolean"&&(o=n),o||i||null)}var n5t=["item"];function H8(e){var n=e.item,r=Xt(e,n5t);return Object.defineProperty(r,"item",{get:function(){return qi(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),n}}),r}var r5t=["title","attribute","elementRef"],i5t=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],o5t=["active"],a5t=function(e){Kc(r,e);var n=Iu(r);function r(){return Ki(this,r),n.apply(this,arguments)}return Xi(r,[{key:"render",value:function(){var o=this.props,a=o.title,s=o.attribute,l=o.elementRef,c=Xt(o,r5t),u=Wr(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return qi(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m.createElement(zh.Item,ft({},s,{title:typeof a=="string"?a:void 0},u,{ref:l}))}}]),r}(m.Component),s5t=m.forwardRef(function(e,n){var r=e.style,i=e.className,o=e.eventKey;e.warnKey;var a=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,g=Xt(e,i5t),v=$Ue(o),y=m.useContext(rg),_=y.prefixCls,S=y.onItemClick,b=y.disabled,E=y.overflowDisabled,w=y.itemIcon,C=y.selectedKeys,x=y.onActive,T=m.useContext(nde),R=T._internalRenderMenuItem,O="".concat(_,"-item"),M=m.useRef(),P=m.useRef(),k=b||a,$=vg(n,P),U=uI(o),z=function(te){return{key:o,keyPath:Tt(U).reverse(),item:M.current,domEvent:te}},D=s||w,B=HUe(o,k,u,d),Y=B.active,q=Xt(B,o5t),K=C.includes(o),H=zUe(U.length),G=function(te){if(!k){var oe=z(te);f==null||f(H8(oe)),S(oe)}},Q=function(te){if(p==null||p(te),te.which===At.ENTER){var oe=z(te);f==null||f(H8(oe)),S(oe)}},le=function(te){x(o),h==null||h(te)},Z={};e.role==="option"&&(Z["aria-selected"]=K);var j=m.createElement(a5t,ft({ref:M,elementRef:$,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":E&&v?null:v},Wr(g,["extra"]),q,Z,{component:"li","aria-disabled":a,style:ee(ee({},H),r),className:Ce(O,fe(fe(fe({},"".concat(O,"-active"),Y),"".concat(O,"-selected"),K),"".concat(O,"-disabled"),k),i),onClick:G,onKeyDown:Q,onFocus:le}),l,m.createElement(VUe,{props:ee(ee({},e),{},{isSelected:K}),icon:D}));return R&&(j=R(j,e,{selected:K})),j});function l5t(e,n){var r=e.eventKey,i=aU(),o=uI(r);return m.useEffect(function(){if(i)return i.registerPath(r,o),function(){i.unregisterPath(r,o)}},[o]),i?null:m.createElement(s5t,ft({},e,{ref:n}))}const bk=m.forwardRef(l5t);var c5t=["className","children"],u5t=function(n,r){var i=n.className,o=n.children,a=Xt(n,c5t),s=m.useContext(rg),l=s.prefixCls,c=s.mode,u=s.rtl;return m.createElement("ul",ft({className:Ce(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(c==="inline"?"inline":"vertical"),i),role:"menu"},a,{"data-menu-list":!0,ref:r}),o)},ode=m.forwardRef(u5t);ode.displayName="SubMenuList";function ade(e,n){return Tl(e).map(function(r,i){if(m.isValidElement(r)){var o,a,s=r.key,l=(o=(a=r.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:s,c=l==null;c&&(l="tmp_key-".concat([].concat(Tt(n),[i]).join("-")));var u={key:l,eventKey:l};return m.cloneElement(r,u)}return r})}var Lc={adjustX:1,adjustY:1},d5t={topLeft:{points:["bl","tl"],overflow:Lc},topRight:{points:["br","tr"],overflow:Lc},bottomLeft:{points:["tl","bl"],overflow:Lc},bottomRight:{points:["tr","br"],overflow:Lc},leftTop:{points:["tr","tl"],overflow:Lc},leftBottom:{points:["br","bl"],overflow:Lc},rightTop:{points:["tl","tr"],overflow:Lc},rightBottom:{points:["bl","br"],overflow:Lc}},f5t={topLeft:{points:["bl","tl"],overflow:Lc},topRight:{points:["br","tr"],overflow:Lc},bottomLeft:{points:["tl","bl"],overflow:Lc},bottomRight:{points:["tr","br"],overflow:Lc},rightTop:{points:["tr","tl"],overflow:Lc},rightBottom:{points:["br","bl"],overflow:Lc},leftTop:{points:["tl","tr"],overflow:Lc},leftBottom:{points:["bl","br"],overflow:Lc}};function GUe(e,n,r){if(n)return n;if(r)return r[e]||r.other}var p5t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function h5t(e){var n=e.prefixCls,r=e.visible,i=e.children,o=e.popup,a=e.popupStyle,s=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=m.useContext(rg),p=f.getPopupContainer,h=f.rtl,g=f.subMenuOpenDelay,v=f.subMenuCloseDelay,y=f.builtinPlacements,_=f.triggerSubMenuAction,S=f.forceSubMenuRender,b=f.rootClassName,E=f.motion,w=f.defaultMotions,C=m.useState(!1),x=ke(C,2),T=x[0],R=x[1],O=ee(h?ee({},f5t):ee({},d5t),y),M=p5t[u],P=GUe(u,E,w),k=m.useRef(P);u!=="inline"&&(k.current=P);var $=ee(ee({},k.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),U=m.useRef();return m.useEffect(function(){return U.current=Dr(function(){R(r)}),function(){Dr.cancel(U.current)}},[r]),m.createElement(_k,{prefixCls:n,popupClassName:Ce("".concat(n,"-popup"),fe({},"".concat(n,"-rtl"),h),s,b),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:p,builtinPlacements:O,popupPlacement:M,popupVisible:T,popup:o,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[_],mouseEnterDelay:g,mouseLeaveDelay:v,onPopupVisibleChange:d,forceRender:S,popupMotion:$,fresh:!0},i)}function g5t(e){var n=e.id,r=e.open,i=e.keyPath,o=e.children,a="inline",s=m.useContext(rg),l=s.prefixCls,c=s.forceSubMenuRender,u=s.motion,d=s.defaultMotions,f=s.mode,p=m.useRef(!1);p.current=f===a;var h=m.useState(!p.current),g=ke(h,2),v=g[0],y=g[1],_=p.current?r:!1;m.useEffect(function(){p.current&&y(!1)},[f]);var S=ee({},GUe(a,u,d));i.length>1&&(S.motionAppear=!1);var b=S.onVisibleChanged;return S.onVisibleChanged=function(E){return!p.current&&!E&&y(!0),b==null?void 0:b(E)},v?null:m.createElement(yA,{mode:a,locked:!p.current},m.createElement(Ws,ft({visible:_},S,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(E){var w=E.className,C=E.style;return m.createElement(ode,{id:n,className:w,style:C},o)}))}var m5t=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],v5t=["active"],y5t=m.forwardRef(function(e,n){var r=e.style,i=e.className,o=e.title,a=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,g=e.onClick,v=e.onMouseEnter,y=e.onMouseLeave,_=e.onTitleClick,S=e.onTitleMouseEnter,b=e.onTitleMouseLeave,E=Xt(e,m5t),w=$Ue(a),C=m.useContext(rg),x=C.prefixCls,T=C.mode,R=C.openKeys,O=C.disabled,M=C.overflowDisabled,P=C.activeKey,k=C.selectedKeys,$=C.itemIcon,U=C.expandIcon,z=C.onItemClick,D=C.onOpenChange,B=C.onActive,Y=m.useContext(nde),q=Y._internalRenderSubMenuItem,K=m.useContext(jUe),H=K.isSubPathKey,G=uI(),Q="".concat(x,"-submenu"),le=O||s,Z=m.useRef(),j=m.useRef(),F=u??$,te=d??U,oe=R.includes(a),de=!M&&oe,pe=H(k,a),me=HUe(a,le,S,b),ve=me.active,he=Xt(me,v5t),be=m.useState(!1),we=ke(be,2),De=we[0],Ae=we[1],Ee=function(Ve){le||Ae(Ve)},Re=function(Ve){Ee(!0),v==null||v({key:a,domEvent:Ve})},Te=function(Ve){Ee(!1),y==null||y({key:a,domEvent:Ve})},Oe=m.useMemo(function(){return ve||(T!=="inline"?De||H([P],a):!1)},[T,ve,P,De,a,H]),Ne=zUe(G.length),je=function(Ve){le||(_==null||_({key:a,domEvent:Ve}),T==="inline"&&D(a,!oe))},ne=s2(function(ge){g==null||g(H8(ge)),z(ge)}),J=function(Ve){T!=="inline"&&D(a,Ve)},ae=function(){B(a)},Se=w&&"".concat(w,"-popup"),xe=m.createElement("div",ft({role:"menuitem",style:Ne,className:"".concat(Q,"-title"),tabIndex:le?null:-1,ref:Z,title:typeof o=="string"?o:null,"data-menu-id":M&&w?null:w,"aria-expanded":de,"aria-haspopup":!0,"aria-controls":Se,"aria-disabled":le,onClick:je,onFocus:ae},he),o,m.createElement(VUe,{icon:T!=="horizontal"?te:void 0,props:ee(ee({},e),{},{isOpen:de,isSubMenu:!0})},m.createElement("i",{className:"".concat(Q,"-arrow")}))),ue=m.useRef(T);if(T!=="inline"&&G.length>1?ue.current="vertical":ue.current=T,!M){var Me=ue.current;xe=m.createElement(h5t,{mode:Me,prefixCls:Q,visible:!l&&de&&T!=="inline",popupClassName:f,popupOffset:p,popupStyle:h,popup:m.createElement(yA,{mode:Me==="horizontal"?"vertical":Me},m.createElement(ode,{id:Se,ref:j},c)),disabled:le,onVisibleChange:J},xe)}var $e=m.createElement(zh.Item,ft({ref:n,role:"none"},E,{component:"li",style:r,className:Ce(Q,"".concat(Q,"-").concat(T),i,fe(fe(fe(fe({},"".concat(Q,"-open"),de),"".concat(Q,"-active"),Oe),"".concat(Q,"-selected"),pe),"".concat(Q,"-disabled"),le)),onMouseEnter:Re,onMouseLeave:Te}),xe,!M&&m.createElement(g5t,{id:Se,open:de,keyPath:G},c));return q&&($e=q($e,e,{selected:pe,active:Oe,open:de,disabled:le})),m.createElement(yA,{onItemClick:ne,mode:T==="horizontal"?"vertical":T,itemIcon:F,expandIcon:te},$e)}),sU=m.forwardRef(function(e,n){var r=e.eventKey,i=e.children,o=uI(r),a=ade(i,o),s=aU();m.useEffect(function(){if(s)return s.registerPath(r,o),function(){s.unregisterPath(r,o)}},[o]);var l;return s?l=a:l=m.createElement(y5t,ft({ref:n},e),a),m.createElement(BUe.Provider,{value:o},l)});function sde(e){var n=e.className,r=e.style,i=m.useContext(rg),o=i.prefixCls,a=aU();return a?null:m.createElement("li",{role:"separator",className:Ce("".concat(o,"-item-divider"),n),style:r})}var _5t=["className","title","eventKey","children"],b5t=m.forwardRef(function(e,n){var r=e.className,i=e.title;e.eventKey;var o=e.children,a=Xt(e,_5t),s=m.useContext(rg),l=s.prefixCls,c="".concat(l,"-item-group");return m.createElement("li",ft({ref:n,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:Ce(c,r)}),m.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof i=="string"?i:void 0},i),m.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),lde=m.forwardRef(function(e,n){var r=e.eventKey,i=e.children,o=uI(r),a=ade(i,o),s=aU();return s?a:m.createElement(b5t,ft({ref:n},Wr(e,["warnKey"])),a)}),S5t=["label","children","key","type","extra"];function gie(e,n,r){var i=n.item,o=n.group,a=n.submenu,s=n.divider;return(e||[]).map(function(l,c){if(l&&cn(l)==="object"){var u=l,d=u.label,f=u.children,p=u.key,h=u.type,g=u.extra,v=Xt(u,S5t),y=p??"tmp-".concat(c);return f||h==="group"?h==="group"?m.createElement(o,ft({key:y},v,{title:d}),gie(f,n,r)):m.createElement(a,ft({key:y},v,{title:d}),gie(f,n,r)):h==="divider"?m.createElement(s,ft({key:y},v)):m.createElement(i,ft({key:y},v,{extra:g}),d,(!!g||g===0)&&m.createElement("span",{className:"".concat(r,"-item-extra")},g))}return null}).filter(function(l){return l})}function oCe(e,n,r,i,o){var a=e,s=ee({divider:sde,item:bk,group:lde,submenu:sU},i);return n&&(a=gie(n,s,o)),ade(a,r)}var E5t=["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"],gE=[],C5t=m.forwardRef(function(e,n){var r,i=e,o=i.prefixCls,a=o===void 0?"rc-menu":o,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,g=i.id,v=i.mode,y=v===void 0?"vertical":v,_=i.inlineCollapsed,S=i.disabled,b=i.disabledOverflow,E=i.subMenuOpenDelay,w=E===void 0?.1:E,C=i.subMenuCloseDelay,x=C===void 0?.1:C,T=i.forceSubMenuRender,R=i.defaultOpenKeys,O=i.openKeys,M=i.activeKey,P=i.defaultActiveFirst,k=i.selectable,$=k===void 0?!0:k,U=i.multiple,z=U===void 0?!1:U,D=i.defaultSelectedKeys,B=i.selectedKeys,Y=i.onSelect,q=i.onDeselect,K=i.inlineIndent,H=K===void 0?24:K,G=i.motion,Q=i.defaultMotions,le=i.triggerSubMenuAction,Z=le===void 0?"hover":le,j=i.builtinPlacements,F=i.itemIcon,te=i.expandIcon,oe=i.overflowedIndicator,de=oe===void 0?"...":oe,pe=i.overflowedIndicatorPopupClassName,me=i.getPopupContainer,ve=i.onClick,he=i.onOpenChange,be=i.onKeyDown;i.openAnimation,i.openTransitionName;var we=i._internalRenderMenuItem,De=i._internalRenderSubMenuItem,Ae=i._internalComponents,Ee=Xt(i,E5t),Re=m.useMemo(function(){return[oCe(p,f,gE,Ae,a),oCe(p,f,gE,{},a)]},[p,f,Ae]),Te=ke(Re,2),Oe=Te[0],Ne=Te[1],je=m.useState(!1),ne=ke(je,2),J=ne[0],ae=ne[1],Se=m.useRef(),xe=t5t(g),ue=h==="rtl",Me=dr(R,{value:O,postState:function(wn){return wn||gE}}),$e=ke(Me,2),ge=$e[0],Ve=$e[1],st=function(wn){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ni(){Ve(wn),he==null||he(wn)}Bn?Us.flushSync(ni):ni()},Je=m.useState(ge),ot=ke(Je,2),Xe=ot[0],Ze=ot[1],bt=m.useRef(!1),at=m.useMemo(function(){return(y==="inline"||y==="vertical")&&_?["vertical",_]:[y,!1]},[y,_]),pt=ke(at,2),Ct=pt[0],It=pt[1],Wt=Ct==="inline",Bt=m.useState(Ct),Vt=ke(Bt,2),rn=Vt[0],tt=Vt[1],it=m.useState(It),nt=ke(it,2),vt=nt[0],kt=nt[1];m.useEffect(function(){tt(Ct),kt(It),bt.current&&(Wt?Ve(Xe):st(gE))},[Ct,It]);var Dt=m.useState(0),Kt=ke(Dt,2),Ht=Kt[0],tn=Kt[1],on=Ht>=Oe.length-1||rn!=="horizontal"||b;m.useEffect(function(){Wt&&Ze(ge)},[ge]),m.useEffect(function(){return bt.current=!0,function(){bt.current=!1}},[]);var sn=J4t(),Jt=sn.registerPath,En=sn.unregisterPath,Pt=sn.refreshOverflowKeys,Qt=sn.isSubPathKey,ln=sn.getKeyPath,jt=sn.getKeys,Lt=sn.getSubPathKeys,en=m.useMemo(function(){return{registerPath:Jt,unregisterPath:En}},[Jt,En]),Ue=m.useMemo(function(){return{isSubPathKey:Qt}},[Qt]);m.useEffect(function(){Pt(on?gE:Oe.slice(Ht+1).map(function(Vr){return Vr.key}))},[Ht,on]);var Zt=dr(M||P&&((r=Oe[0])===null||r===void 0?void 0:r.key),{value:M}),Et=ke(Zt,2),Gt=Et[0],zt=Et[1],Vn=s2(function(Vr){zt(Vr)}),sr=s2(function(){zt(void 0)});m.useImperativeHandle(n,function(){return{list:Se.current,focus:function(wn){var Bn,ni=jt(),yn=pie(ni,xe),Sn=yn.elements,ur=yn.key2element,qr=yn.element2key,zi=rde(Se.current,Sn),Qo=Gt??(zi[0]?qr.get(zi[0]):(Bn=Oe.find(function(Pa){return!Pa.props.disabled}))===null||Bn===void 0?void 0:Bn.key),gr=ur.get(Qo);if(Qo&&gr){var Oo;gr==null||(Oo=gr.focus)===null||Oo===void 0||Oo.call(gr,wn)}}}});var A=dr(D||[],{value:B,postState:function(wn){return Array.isArray(wn)?wn:wn==null?gE:[wn]}}),W=ke(A,2),ce=W[0],Pe=W[1],qe=function(wn){if($){var Bn=wn.key,ni=ce.includes(Bn),yn;z?ni?yn=ce.filter(function(ur){return ur!==Bn}):yn=[].concat(Tt(ce),[Bn]):yn=[Bn],Pe(yn);var Sn=ee(ee({},wn),{},{selectedKeys:yn});ni?q==null||q(Sn):Y==null||Y(Sn)}!z&&ge.length&&rn!=="inline"&&st(gE)},gt=s2(function(Vr){ve==null||ve(H8(Vr)),qe(Vr)}),Yt=s2(function(Vr,wn){var Bn=ge.filter(function(yn){return yn!==Vr});if(wn)Bn.push(Vr);else if(rn!=="inline"){var ni=Lt(Vr);Bn=Bn.filter(function(yn){return!ni.has(yn)})}rC(ge,Bn,!0)||st(Bn,!0)}),Nn=function(wn,Bn){var ni=Bn??!ge.includes(wn);Yt(wn,ni)},Jn=X4t(rn,Gt,ue,xe,Se,jt,ln,zt,Nn,be);m.useEffect(function(){ae(!0)},[]);var Ci=m.useMemo(function(){return{_internalRenderMenuItem:we,_internalRenderSubMenuItem:De}},[we,De]),wi=rn!=="horizontal"||b?Oe:Oe.map(function(Vr,wn){return m.createElement(yA,{key:Vr.key,overflowDisabled:wn>Ht},Vr)}),to=m.createElement(zh,ft({id:g,ref:Se,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:bk,className:Ce(a,"".concat(a,"-root"),"".concat(a,"-").concat(rn),c,fe(fe({},"".concat(a,"-inline-collapsed"),vt),"".concat(a,"-rtl"),ue),s),dir:h,style:l,role:"menu",tabIndex:d,data:wi,renderRawItem:function(wn){return wn},renderRawRest:function(wn){var Bn=wn.length,ni=Bn?Oe.slice(-Bn):null;return m.createElement(sU,{eventKey:hie,title:de,disabled:on,internalPopupClose:Bn===0,popupClassName:pe},ni)},maxCount:rn!=="horizontal"||b?zh.INVALIDATE:zh.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(wn){tn(wn)},onKeyDown:Jn},Ee));return m.createElement(nde.Provider,{value:Ci},m.createElement(kUe.Provider,{value:xe},m.createElement(yA,{prefixCls:a,rootClassName:s,mode:rn,openKeys:ge,rtl:ue,disabled:S,motion:J?G:null,defaultMotions:J?Q:null,activeKey:Gt,onActive:Vn,onInactive:sr,selectedKeys:ce,inlineIndent:H,subMenuOpenDelay:w,subMenuCloseDelay:x,forceSubMenuRender:T,builtinPlacements:j,triggerSubMenuAction:Z,getPopupContainer:me,itemIcon:F,expandIcon:te,onItemClick:gt,onOpenChange:Yt},m.createElement(jUe.Provider,{value:Ue},to),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(FUe.Provider,{value:en},Ne)))))}),dI=C5t;dI.Item=bk;dI.SubMenu=sU;dI.ItemGroup=lde;dI.Divider=sde;var w5t={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"},x5t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:w5t}))},T5t=m.forwardRef(x5t),O5t={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"},R5t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:O5t}))},_A=m.forwardRef(R5t);const WUe=m.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),I5t=e=>{const{antCls:n,componentCls:r,colorText:i,footerBg:o,headerHeight:a,headerPadding:s,headerColor:l,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[r]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${r}-header`]:{height:a,padding:s,color:l,lineHeight:Ye(a),background:f,[`${n}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:c,color:i,fontSize:u,background:o},[`${r}-content`]:{flex:"auto",color:i,minHeight:0}}},YUe=e=>{const{colorBgLayout:n,controlHeight:r,controlHeightLG:i,colorText:o,controlHeightSM:a,marginXXS:s,colorTextLightSolid:l,colorBgContainer:c}=e,u=i*1.25;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140",bodyBg:n,headerBg:"#001529",headerHeight:r*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:n,siderBg:"#001529",triggerHeight:i+s*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:i,zeroTriggerHeight:i,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},qUe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],KUe=Yr("Layout",e=>[I5t(e)],YUe,{deprecatedTokens:qUe}),N5t=e=>{const{componentCls:n,siderBg:r,motionDurationMid:i,motionDurationSlow:o,antCls:a,triggerHeight:s,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:g,lightTriggerBg:v,bodyBg:y}=e;return{[n]:{position:"relative",minWidth:0,background:r,transition:`all ${i}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${n}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${n}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:l,lineHeight:Ye(s),textAlign:"center",background:c,cursor:"pointer",transition:`all ${i}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:r,borderRadius:`0 ${Ye(p)} ${Ye(p)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${Ye(p)} 0 0 ${Ye(p)}`}}},"&-light":{background:h,[`${n}-trigger`]:{color:g,background:v},[`${n}-zero-width-trigger`]:{color:g,background:v,border:`1px solid ${y}`,borderInlineStart:0}}}}},M5t=Yr(["Layout","Sider"],e=>[N5t(e)],YUe,{deprecatedTokens:qUe});var P5t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const aCe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},A5t=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),lU=m.createContext({}),D5t=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),XUe=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,trigger:o,children:a,defaultCollapsed:s=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:g,onCollapse:v,onBreakpoint:y}=e,_=P5t(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=m.useContext(WUe),[b,E]=m.useState("collapsed"in e?e.collapsed:s),[w,C]=m.useState(!1);m.useEffect(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const x=(F,te)=>{"collapsed"in e||E(F),v==null||v(F,te)},{getPrefixCls:T,direction:R}=m.useContext(Cn),O=T("layout-sider",r),[M,P,k]=M5t(O),$=m.useRef(null);$.current=F=>{C(F.matches),y==null||y(F.matches),b!==F.matches&&x(F.matches,"responsive")},m.useEffect(()=>{function F(oe){return $.current(oe)}let te;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&g&&g in aCe){te=oe(`screen and (max-width: ${aCe[g]})`);try{te.addEventListener("change",F)}catch{te.addListener(F)}F(te)}}return()=>{try{te==null||te.removeEventListener("change",F)}catch{te==null||te.removeListener(F)}}},[g]),m.useEffect(()=>{const F=D5t("ant-sider-");return S.addSider(F),()=>S.removeSider(F)},[]);const U=()=>{x(!b,"clickTrigger")},z=Wr(_,["collapsed"]),D=b?p:f,B=A5t(D)?`${D}px`:String(D),Y=parseFloat(String(p||0))===0?m.createElement("span",{onClick:U,className:Ce(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${d?"right":"left"}`),style:h},o||m.createElement(T5t,null)):null,q=R==="rtl"==!d,G={expanded:q?m.createElement(w0,null):m.createElement(_A,null),collapsed:q?m.createElement(_A,null):m.createElement(w0,null)}[b?"collapsed":"expanded"],Q=o!==null?Y||m.createElement("div",{className:`${O}-trigger`,onClick:U,style:{width:B}},o||G):null,le=Object.assign(Object.assign({},c),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),Z=Ce(O,`${O}-${l}`,{[`${O}-collapsed`]:!!b,[`${O}-has-trigger`]:u&&o!==null&&!Y,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(B)===0},i,P,k),j=m.useMemo(()=>({siderCollapsed:b}),[b]);return M(m.createElement(lU.Provider,{value:j},m.createElement("aside",Object.assign({className:Z},z,{style:le,ref:n}),m.createElement("div",{className:`${O}-children`},a),u||w&&Y?Q:null)))});var k5t={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"},L5t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:k5t}))},cde=m.forwardRef(L5t);const z8=m.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var $5t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const QUe=e=>{const{prefixCls:n,className:r,dashed:i}=e,o=$5t(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=m.useContext(Cn),s=a("menu",n),l=Ce({[`${s}-item-divider-dashed`]:!!i},r);return m.createElement(sde,Object.assign({className:l},o))},ZUe=e=>{var n;const{className:r,children:i,icon:o,title:a,danger:s,extra:l}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=m.useContext(z8),h=b=>{const E=i==null?void 0:i[0],w=m.createElement("span",{className:Ce(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},i);return(!o||m.isValidElement(i)&&i.type==="span")&&i&&b&&u&&typeof E=="string"?m.createElement("div",{className:`${c}-inline-collapsed-noicon`},E.charAt(0)):w},{siderCollapsed:g}=m.useContext(lU);let v=a;typeof a>"u"?v=u?i:"":a===!1&&(v="");const y={title:v};!g&&!p&&(y.title=null,y.open=!1);const _=Tl(i).length;let S=m.createElement(bk,Object.assign({},Wr(e,["title","icon","danger"]),{className:Ce({[`${c}-item-danger`]:s,[`${c}-item-only-child`]:(o?_+1:_)===1},r),title:typeof a=="string"?a:void 0}),Ys(o,{className:Ce(m.isValidElement(o)?(n=o.props)===null||n===void 0?void 0:n.className:"",`${c}-item-icon`)}),h(p));return f||(S=m.createElement(Sf,Object.assign({},y,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),S)),S};var F5t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const V8=m.createContext(null),B5t=m.forwardRef((e,n)=>{const{children:r}=e,i=F5t(e,["children"]),o=m.useContext(V8),a=m.useMemo(()=>Object.assign(Object.assign({},o),i),[o,i.prefixCls,i.mode,i.selectable,i.rootClassName]),s=vRt(r),l=vg(n,s?J0(r):null);return m.createElement(V8.Provider,{value:a},m.createElement(tg,{space:!0},s?m.cloneElement(r,{ref:l}):r))}),j5t=e=>{const{componentCls:n,motionDurationSlow:r,horizontalLineHeight:i,colorSplit:o,lineWidth:a,lineType:s,itemPaddingInline:l}=e;return{[`${n}-horizontal`]:{lineHeight:i,border:0,borderBottom:`${Ye(a)} ${s} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${n}-item:hover,
|
||
> ${n}-item-active,
|
||
> ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${r}`,`background ${r}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},U5t=e=>{let{componentCls:n,menuArrowOffset:r,calc:i}=e;return{[`${n}-rtl`]:{direction:"rtl"},[`${n}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${n}-rtl${n}-vertical,
|
||
${n}-submenu-rtl ${n}-vertical`]:{[`${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Ye(i(r).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ye(r)})`}}}}},sCe=e=>Object.assign({},Xy(e)),lCe=(e,n)=>{const{componentCls:r,itemColor:i,itemSelectedColor:o,subMenuItemSelectedColor:a,groupTitleColor:s,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:p,motionDurationSlow:h,motionEaseInOut:g,motionEaseOut:v,itemPaddingInline:y,motionDurationMid:_,itemHoverColor:S,lineType:b,colorSplit:E,itemDisabledColor:w,dangerItemColor:C,dangerItemHoverColor:x,dangerItemSelectedColor:T,dangerItemActiveBg:R,dangerItemSelectedBg:O,popupBg:M,itemHoverBg:P,itemActiveBg:k,menuSubMenuBg:$,horizontalItemSelectedColor:U,horizontalItemSelectedBg:z,horizontalItemBorderRadius:D,horizontalItemHoverBg:B}=e;return{[`${r}-${n}, ${r}-${n} > ${r}`]:{color:i,background:l,[`&${r}-root:focus-visible`]:Object.assign({},sCe(e)),[`${r}-item`]:{"&-group-title, &-extra":{color:s}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:a},[`${r}-item, ${r}-submenu-title`]:{color:i,[`&:not(${r}-item-disabled):focus-visible`]:Object.assign({},sCe(e))},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${w} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:S}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:k}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:k}}},[`${r}-item-danger`]:{color:C,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:x}},[`&${r}-item:active`]:{background:R}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:o,[`&${r}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:u,[`&${r}-item-danger`]:{backgroundColor:O}},[`&${r}-submenu > ${r}`]:{backgroundColor:$},[`&${r}-popup > ${r}`]:{backgroundColor:M},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:M},[`&${r}-horizontal`]:Object.assign(Object.assign({},n==="dark"?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${Ye(d)} solid transparent`,transition:`border-color ${h} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:B,"&::after":{borderBottomWidth:d,borderBottomColor:U}},"&-selected":{color:U,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:d,borderBottomColor:U}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${Ye(p)} ${b} ${E}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:c},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ye(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${_} ${v}`,`opacity ${_} ${v}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${_} ${g}`,`opacity ${_} ${g}`].join(",")}}}}}},cCe=e=>{const{componentCls:n,itemHeight:r,itemMarginInline:i,padding:o,menuArrowSize:a,marginXS:s,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(a).add(o).add(s).equal();return{[`${n}-item`]:{position:"relative",overflow:"hidden"},[`${n}-item, ${n}-submenu-title`]:{height:r,lineHeight:Ye(r),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:i,marginBlock:l,width:c},[`> ${n}-item,
|
||
> ${n}-submenu > ${n}-submenu-title`]:{height:r,lineHeight:Ye(r)},[`${n}-item-group-list ${n}-submenu-title,
|
||
${n}-submenu-title`]:{paddingInlineEnd:d}}},H5t=e=>{const{componentCls:n,iconCls:r,itemHeight:i,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:g,collapsedWidth:v,collapsedIconSize:y}=e,_={height:i,lineHeight:Ye(i),listStylePosition:"inside",listStyleType:"disc"};return[{[n]:{"&-inline, &-vertical":Object.assign({[`&${n}-root`]:{boxShadow:"none"}},cCe(e))},[`${n}-submenu-popup`]:{[`${n}-vertical`]:Object.assign(Object.assign({},cCe(e)),{boxShadow:g})}},{[`${n}-submenu-popup ${n}-vertical${n}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Ye(e.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${n}-inline`]:{width:"100%",[`&${n}-root`]:{[`${n}-item, ${n}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${f} ${l}`].join(","),[`> ${n}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${n}-sub${n}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${n}-submenu > ${n}-submenu-title`]:_,[`& ${n}-item-group-title`]:{paddingInlineStart:c}},[`${n}-item`]:_}},{[`${n}-inline-collapsed`]:{width:v,[`&${n}-root`]:{[`${n}-item, ${n}-submenu ${n}-submenu-title`]:{[`> ${n}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${n}-item,
|
||
> ${n}-item-group > ${n}-item-group-list > ${n}-item,
|
||
> ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
|
||
> ${n}-submenu > ${n}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ye(e.calc(y).div(2).equal())} - ${Ye(u)})`,textOverflow:"clip",[`
|
||
${n}-submenu-arrow,
|
||
${n}-submenu-expand-icon
|
||
`]:{opacity:0},[`${n}-item-icon, ${r}`]:{margin:0,fontSize:y,lineHeight:Ye(i),"+ span":{display:"inline-block",opacity:0}}},[`${n}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${n}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:o}},[`${n}-item-group-title`]:Object.assign(Object.assign({},bf),{paddingInline:h})}}]},uCe=e=>{const{componentCls:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:o,motionEaseOut:a,iconCls:s,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${n}-item, ${n}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding calc(${r} + 0.1s) ${o}`].join(","),[`${n}-item-icon, ${s}`]:{minWidth:l,fontSize:l,transition:[`font-size ${i} ${a}`,`margin ${r} ${o}`,`color ${r}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${r} ${o}`,`margin ${r}`,`color ${r}`].join(",")}},[`${n}-item-icon`]:Object.assign({},ew()),[`&${n}-item-only-child`]:{[`> ${s}, > ${n}-item-icon`]:{marginInlineEnd:0}}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${n}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},dCe=e=>{const{componentCls:n,motionDurationSlow:r,motionEaseInOut:i,borderRadius:o,menuArrowSize:a,menuArrowOffset:s}=e;return{[`${n}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${i}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${r} ${i}`,`transform ${r} ${i}`,`top ${r} ${i}`,`color ${r} ${i}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Ye(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ye(s)})`}}}}},z5t=e=>{const{antCls:n,componentCls:r,fontSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:y,groupTitleLineHeight:_,groupTitleFontSize:S}=e;return[{"":{[r]:Object.assign(Object.assign({},Im()),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),Im()),{marginBottom:0,paddingInlineStart:0,fontSize:i,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${Ye(l)} ${Ye(c)}`,fontSize:S,lineHeight:_,transition:`all ${o}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`,`padding ${a} ${s}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background ${o} ${s}`,`padding ${o} ${s}`].join(",")},[`${r}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${n}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),uCe(e)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${Ye(e.calc(i).mul(2).equal())} ${Ye(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},uCe(e)),dCe(e)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:h},[`${r}-submenu-title::after`]:{transition:`transform ${o} ${s}`}})},"\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}}}),dCe(e)),{[`&-inline-collapsed ${r}-submenu-arrow,
|
||
&-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ye(v)})`},"&::after":{transform:`rotate(45deg) translateX(${Ye(e.calc(v).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${Ye(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ye(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ye(v)})`}}})},{[`${n}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},V5t=e=>{var n,r,i;const{colorPrimary:o,colorError:a,colorTextDisabled:s,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:p,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:y,controlHeightLG:_,lineHeight:S,colorBgElevated:b,marginXXS:E,padding:w,fontSize:C,controlHeightSM:x,fontSizeLG:T,colorTextLightSolid:R,colorErrorHover:O}=e,M=(n=e.activeBarWidth)!==null&&n!==void 0?n:0,P=(r=e.activeBarBorderWidth)!==null&&r!==void 0?r:h,k=(i=e.itemMarginInline)!==null&&i!==void 0?i:e.marginXXS,$=new Gr(R).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:p,itemActiveBg:v,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:h,activeBarBorderWidth:P,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:_,groupTitleLineHeight:S,collapsedWidth:_*2,popupBg:b,itemMarginBlock:E,itemPaddingInline:w,horizontalLineHeight:`${_*1.15}px`,iconSize:C,iconMarginInlineEnd:x-C,collapsedIconSize:T,groupTitleFontSize:C,darkItemDisabledColor:new Gr(R).setA(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:R,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:R,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:a,itemWidth:M?`calc(100% + ${P}px)`:`calc(100% - ${k*2}px)`}},G5t=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Yr("Menu",o=>{const{colorBgElevated:a,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:p,darkItemSelectedBg:h,darkDangerItemSelectedBg:g,darkItemHoverBg:v,darkGroupTitleColor:y,darkItemHoverColor:_,darkItemDisabledColor:S,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:w,popupBg:C,darkPopupBg:x}=o,T=o.calc(l).div(7).mul(5).equal(),R=wr(o,{menuArrowSize:T,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(T).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:C}),O=wr(R,{itemColor:c,itemHoverColor:_,groupTitleColor:y,itemSelectedColor:p,itemBg:d,popupBg:x,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:S,dangerItemColor:u,dangerItemHoverColor:b,dangerItemSelectedColor:E,dangerItemActiveBg:w,dangerItemSelectedBg:g,menuSubMenuBg:f,horizontalItemSelectedColor:p,horizontalItemSelectedBg:h});return[z5t(R),j5t(R),H5t(R),lCe(R,"light"),lCe(O,"dark"),U5t(R),pk(R),Mm(R,"slide-up"),Mm(R,"slide-down"),aI(R,"zoom-big")]},V5t,{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:r,unitless:{groupTitleLineHeight:!0}})(e,n)},JUe=e=>{var n;const{popupClassName:r,icon:i,title:o,theme:a}=e,s=m.useContext(z8),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=uI();let f;if(!i)f=c&&!d.length&&o&&typeof o=="string"?m.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):m.createElement("span",{className:`${l}-title-content`},o);else{const g=m.isValidElement(o)&&o.type==="span";f=m.createElement(m.Fragment,null,Ys(i,{className:Ce(m.isValidElement(i)?(n=i.props)===null||n===void 0?void 0:n.className:"",`${l}-item-icon`)}),g?o:m.createElement("span",{className:`${l}-title-content`},o))}const p=m.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[h]=Up("Menu");return m.createElement(z8.Provider,{value:p},m.createElement(sU,Object.assign({},Wr(e,["icon"]),{title:f,popupClassName:Ce(l,r,`${l}-${a||u}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var W5t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function oq(e){return e===null||e===!1}const Y5t={item:ZUe,submenu:JUe,divider:QUe},q5t=m.forwardRef((e,n)=>{var r;const i=m.useContext(V8),o=i||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=m.useContext(Cn),u=a(),{prefixCls:d,className:f,style:p,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:y,siderCollapsed:_,rootClassName:S,mode:b,selectable:E,onClick:w,overflowedIndicatorPopupClassName:C}=e,x=W5t(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),T=Wr(x,["collapsedWidth"]);(r=o.validator)===null||r===void 0||r.call(o,{mode:b});const R=Sr(function(){var H;w==null||w.apply(void 0,arguments),(H=o.onClick)===null||H===void 0||H.call(o)}),O=o.mode||b,M=E??o.selectable,P=y??_,k={horizontal:{motionName:`${u}-slide-up`},inline:gA(u),other:{motionName:`${u}-zoom-big`}},$=a("menu",d||o.prefixCls),U=po($),[z,D,B]=G5t($,U,!i),Y=Ce(`${$}-${h}`,c==null?void 0:c.className,f),q=m.useMemo(()=>{var H,G;if(typeof g=="function"||oq(g))return g||null;if(typeof o.expandIcon=="function"||oq(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||oq(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const Q=(H=g??(o==null?void 0:o.expandIcon))!==null&&H!==void 0?H:c==null?void 0:c.expandIcon;return Ys(Q,{className:Ce(`${$}-submenu-expand-icon`,m.isValidElement(Q)?(G=Q.props)===null||G===void 0?void 0:G.className:void 0)})},[g,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,$]),K=m.useMemo(()=>({prefixCls:$,inlineCollapsed:P||!1,direction:l,firstLevel:!0,theme:h,mode:O,disableMenuItemTitleTooltip:v}),[$,P,l,v,h]);return z(m.createElement(V8.Provider,{value:null},m.createElement(z8.Provider,{value:K},m.createElement(dI,Object.assign({getPopupContainer:s,overflowedIndicator:m.createElement(cde,null),overflowedIndicatorPopupClassName:Ce($,`${$}-${h}`,C),mode:O,selectable:M,onClick:R},T,{inlineCollapsed:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),p),className:Y,prefixCls:$,direction:l,defaultMotions:k,expandIcon:q,ref:n,rootClassName:Ce(S,D,o.rootClassName,B,U),_internalComponents:Y5t})))))}),tv=m.forwardRef((e,n)=>{const r=m.useRef(null),i=m.useContext(lU);return m.useImperativeHandle(n,()=>({menu:r.current,focus:o=>{var a;(a=r.current)===null||a===void 0||a.focus(o)}})),m.createElement(q5t,Object.assign({ref:r},e,i))});tv.Item=ZUe;tv.SubMenu=JUe;tv.Divider=QUe;tv.ItemGroup=lde;const K5t=e=>{const{componentCls:n,menuCls:r,colorError:i,colorTextLightSolid:o}=e,a=`${r}-item`;return{[`${n}, ${n}-menu-submenu`]:{[`${r} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:i,"&:hover":{color:o,backgroundColor:i}}}}}},X5t=e=>{const{componentCls:n,menuCls:r,zIndexPopup:i,dropdownArrowDistance:o,sizePopupArrow:a,antCls:s,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:h,controlPaddingHorizontal:g,colorBgElevated:v}=e;return[{[n]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:i,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${l}-down, & > ${s}-btn-icon > ${l}-down`]:{fontSize:h}},[`${n}-wrap`]:{position:"relative",[`${s}-btn > ${l}-down`]:{fontSize:h},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${n}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${n}-placement-bottomLeft,
|
||
&${s}-slide-down-appear${s}-slide-down-appear-active${n}-placement-bottomLeft,
|
||
&${s}-slide-down-enter${s}-slide-down-enter-active${n}-placement-bottom,
|
||
&${s}-slide-down-appear${s}-slide-down-appear-active${n}-placement-bottom,
|
||
&${s}-slide-down-enter${s}-slide-down-enter-active${n}-placement-bottomRight,
|
||
&${s}-slide-down-appear${s}-slide-down-appear-active${n}-placement-bottomRight`]:{animationName:U9},[`&${s}-slide-up-enter${s}-slide-up-enter-active${n}-placement-topLeft,
|
||
&${s}-slide-up-appear${s}-slide-up-appear-active${n}-placement-topLeft,
|
||
&${s}-slide-up-enter${s}-slide-up-enter-active${n}-placement-top,
|
||
&${s}-slide-up-appear${s}-slide-up-appear-active${n}-placement-top,
|
||
&${s}-slide-up-enter${s}-slide-up-enter-active${n}-placement-topRight,
|
||
&${s}-slide-up-appear${s}-slide-up-appear-active${n}-placement-topRight`]:{animationName:z9},[`&${s}-slide-down-leave${s}-slide-down-leave-active${n}-placement-bottomLeft,
|
||
&${s}-slide-down-leave${s}-slide-down-leave-active${n}-placement-bottom,
|
||
&${s}-slide-down-leave${s}-slide-down-leave-active${n}-placement-bottomRight`]:{animationName:H9},[`&${s}-slide-up-leave${s}-slide-up-leave-active${n}-placement-topLeft,
|
||
&${s}-slide-up-leave${s}-slide-up-leave-active${n}-placement-top,
|
||
&${s}-slide-up-leave${s}-slide-up-leave-active${n}-placement-topRight`]:{animationName:V9}}},ede(e,v,{arrowPlacement:{top:!0,bottom:!0}}),{[`${n} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:i,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${n}, ${n}-menu-submenu`]:Object.assign(Object.assign({},li(e)),{[r]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Op(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${Ye(u)} ${Ye(g)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${r}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${r}-item, ${r}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Ye(u)} ${Ye(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Op(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ye(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${n}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${n}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${Ye(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${n}-menu-submenu-title`]:{[`&, ${n}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:v,cursor:"not-allowed"}},[`${r}-submenu-selected ${n}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Mm(e,"slide-up"),Mm(e,"slide-down"),kO(e,"move-up"),kO(e,"move-down"),aI(e,"zoom-big")]]},Q5t=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},oU({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),iU(e)),Z5t=Yr("Dropdown",e=>{const{marginXXS:n,sizePopupArrow:r,paddingXXS:i,componentCls:o}=e,a=wr(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(n).equal(),dropdownEdgeChildPadding:i});return[X5t(a),K5t(a)]},Q5t,{resetStyle:!1}),cU=e=>{var n;const{menu:r,arrow:i,prefixCls:o,children:a,trigger:s,disabled:l,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:h,onOpenChange:g,visible:v,onVisibleChange:y,mouseEnterDelay:_=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:b=!0,placement:E="",overlay:w,transitionName:C}=e,{getPopupContainer:x,getPrefixCls:T,direction:R,dropdown:O}=m.useContext(Cn);JC();const M=m.useMemo(()=>{const me=T();return C!==void 0?C:E.includes("top")?`${me}-slide-down`:`${me}-slide-up`},[T,E,C]),P=m.useMemo(()=>E?E.includes("Center")?E.slice(0,E.indexOf("Center")):E:R==="rtl"?"bottomRight":"bottomLeft",[E,R]),k=T("dropdown",o),$=po(k),[U,z,D]=Z5t(k,$),[,B]=Nl(),Y=m.Children.only(H4t(a)?m.createElement("span",null,a):a),q=Ys(Y,{className:Ce(`${k}-trigger`,{[`${k}-rtl`]:R==="rtl"},Y.props.className),disabled:(n=Y.props.disabled)!==null&&n!==void 0?n:l}),K=l?[]:s,H=!!(K!=null&&K.includes("contextMenu")),[G,Q]=dr(!1,{value:h??v}),le=Sr(me=>{g==null||g(me,{source:"trigger"}),y==null||y(me),Q(me)}),Z=Ce(d,f,z,D,$,O==null?void 0:O.className,{[`${k}-rtl`]:R==="rtl"}),j=TUe({arrowPointAtCenter:typeof i=="object"&&i.pointAtCenter,autoAdjustOverflow:b,offset:B.marginXXS,arrowWidth:i?B.sizePopupArrow:0,borderRadius:B.borderRadius}),F=m.useCallback(()=>{r!=null&&r.selectable&&(r!=null&&r.multiple)||(g==null||g(!1,{source:"menu"}),Q(!1))},[r==null?void 0:r.selectable,r==null?void 0:r.multiple]),te=()=>{let me;return r!=null&&r.items?me=m.createElement(tv,Object.assign({},r)):typeof w=="function"?me=w():me=w,c&&(me=c(me)),me=m.Children.only(typeof me=="string"?m.createElement("span",null,me):me),m.createElement(B5t,{prefixCls:`${k}-menu`,rootClassName:Ce(D,$),expandIcon:m.createElement("span",{className:`${k}-menu-submenu-arrow`},m.createElement(w0,{className:`${k}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:F,validator:ve=>{}},me)},[oe,de]=Up("Dropdown",p==null?void 0:p.zIndex);let pe=m.createElement(DUe,Object.assign({alignPoint:H},Wr(e,["rootClassName"]),{mouseEnterDelay:_,mouseLeaveDelay:S,visible:G,builtinPlacements:j,arrow:!!i,overlayClassName:Z,prefixCls:k,getPopupContainer:u||x,transitionName:M,trigger:K,overlay:te,placement:P,onVisibleChange:le,overlayStyle:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),p),{zIndex:oe})}),q);return oe&&(pe=m.createElement(uk.Provider,{value:de},pe)),U(pe)},J5t=tS(cU,"align",void 0,"dropdown",e=>e),e6t=e=>m.createElement(J5t,Object.assign({},e),m.createElement("span",null));cU._InternalPanelDoNotUseOrYouWillBeFired=e6t;var eHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r=1e3,i=6e4,o=36e5,a="millisecond",s="second",l="minute",c="hour",u="day",d="week",f="month",p="quarter",h="year",g="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,S={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($){var U=["th","st","nd","rd"],z=$%100;return"["+$+(U[(z-20)%10]||U[z]||U[0])+"]"}},b=function($,U,z){var D=String($);return!D||D.length>=U?$:""+Array(U+1-D.length).join(z)+$},E={s:b,z:function($){var U=-$.utcOffset(),z=Math.abs(U),D=Math.floor(z/60),B=z%60;return(U<=0?"+":"-")+b(D,2,"0")+":"+b(B,2,"0")},m:function $(U,z){if(U.date()<z.date())return-$(z,U);var D=12*(z.year()-U.year())+(z.month()-U.month()),B=U.clone().add(D,f),Y=z-B<0,q=U.clone().add(D+(Y?-1:1),f);return+(-(D+(z-B)/(Y?B-q:q-B))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:f,y:h,w:d,d:u,D:g,h:c,m:l,s,ms:a,Q:p}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},w="en",C={};C[w]=S;var x="$isDayjsObject",T=function($){return $ instanceof P||!(!$||!$[x])},R=function $(U,z,D){var B;if(!U)return w;if(typeof U=="string"){var Y=U.toLowerCase();C[Y]&&(B=Y),z&&(C[Y]=z,B=Y);var q=U.split("-");if(!B&&q.length>1)return $(q[0])}else{var K=U.name;C[K]=U,B=K}return!D&&B&&(w=B),B||!D&&w},O=function($,U){if(T($))return $.clone();var z=typeof U=="object"?U:{};return z.date=$,z.args=arguments,new P(z)},M=E;M.l=R,M.i=T,M.w=function($,U){return O($,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var P=function(){function $(z){this.$L=R(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[x]=!0}var U=$.prototype;return U.parse=function(z){this.$d=function(D){var B=D.date,Y=D.utc;if(B===null)return new Date(NaN);if(M.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var q=B.match(y);if(q){var K=q[2]-1||0,H=(q[7]||"0").substring(0,3);return Y?new Date(Date.UTC(q[1],K,q[3]||1,q[4]||0,q[5]||0,q[6]||0,H)):new Date(q[1],K,q[3]||1,q[4]||0,q[5]||0,q[6]||0,H)}}return new Date(B)}(z),this.init()},U.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},U.$utils=function(){return M},U.isValid=function(){return this.$d.toString()!==v},U.isSame=function(z,D){var B=O(z);return this.startOf(D)<=B&&B<=this.endOf(D)},U.isAfter=function(z,D){return O(z)<this.startOf(D)},U.isBefore=function(z,D){return this.endOf(D)<O(z)},U.$g=function(z,D,B){return M.u(z)?this[D]:this.set(B,z)},U.unix=function(){return Math.floor(this.valueOf()/1e3)},U.valueOf=function(){return this.$d.getTime()},U.startOf=function(z,D){var B=this,Y=!!M.u(D)||D,q=M.p(z),K=function(te,oe){var de=M.w(B.$u?Date.UTC(B.$y,oe,te):new Date(B.$y,oe,te),B);return Y?de:de.endOf(u)},H=function(te,oe){return M.w(B.toDate()[te].apply(B.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(oe)),B)},G=this.$W,Q=this.$M,le=this.$D,Z="set"+(this.$u?"UTC":"");switch(q){case h:return Y?K(1,0):K(31,11);case f:return Y?K(1,Q):K(0,Q+1);case d:var j=this.$locale().weekStart||0,F=(G<j?G+7:G)-j;return K(Y?le-F:le+(6-F),Q);case u:case g:return H(Z+"Hours",0);case c:return H(Z+"Minutes",1);case l:return H(Z+"Seconds",2);case s:return H(Z+"Milliseconds",3);default:return this.clone()}},U.endOf=function(z){return this.startOf(z,!1)},U.$set=function(z,D){var B,Y=M.p(z),q="set"+(this.$u?"UTC":""),K=(B={},B[u]=q+"Date",B[g]=q+"Date",B[f]=q+"Month",B[h]=q+"FullYear",B[c]=q+"Hours",B[l]=q+"Minutes",B[s]=q+"Seconds",B[a]=q+"Milliseconds",B)[Y],H=Y===u?this.$D+(D-this.$W):D;if(Y===f||Y===h){var G=this.clone().set(g,1);G.$d[K](H),G.init(),this.$d=G.set(g,Math.min(this.$D,G.daysInMonth())).$d}else K&&this.$d[K](H);return this.init(),this},U.set=function(z,D){return this.clone().$set(z,D)},U.get=function(z){return this[M.p(z)]()},U.add=function(z,D){var B,Y=this;z=Number(z);var q=M.p(D),K=function(Q){var le=O(Y);return M.w(le.date(le.date()+Math.round(Q*z)),Y)};if(q===f)return this.set(f,this.$M+z);if(q===h)return this.set(h,this.$y+z);if(q===u)return K(1);if(q===d)return K(7);var H=(B={},B[l]=i,B[c]=o,B[s]=r,B)[q]||1,G=this.$d.getTime()+z*H;return M.w(G,this)},U.subtract=function(z,D){return this.add(-1*z,D)},U.format=function(z){var D=this,B=this.$locale();if(!this.isValid())return B.invalidDate||v;var Y=z||"YYYY-MM-DDTHH:mm:ssZ",q=M.z(this),K=this.$H,H=this.$m,G=this.$M,Q=B.weekdays,le=B.months,Z=B.meridiem,j=function(oe,de,pe,me){return oe&&(oe[de]||oe(D,Y))||pe[de].slice(0,me)},F=function(oe){return M.s(K%12||12,oe,"0")},te=Z||function(oe,de,pe){var me=oe<12?"AM":"PM";return pe?me.toLowerCase():me};return Y.replace(_,function(oe,de){return de||function(pe){switch(pe){case"YY":return String(D.$y).slice(-2);case"YYYY":return M.s(D.$y,4,"0");case"M":return G+1;case"MM":return M.s(G+1,2,"0");case"MMM":return j(B.monthsShort,G,le,3);case"MMMM":return j(le,G);case"D":return D.$D;case"DD":return M.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return j(B.weekdaysMin,D.$W,Q,2);case"ddd":return j(B.weekdaysShort,D.$W,Q,3);case"dddd":return Q[D.$W];case"H":return String(K);case"HH":return M.s(K,2,"0");case"h":return F(1);case"hh":return F(2);case"a":return te(K,H,!0);case"A":return te(K,H,!1);case"m":return String(H);case"mm":return M.s(H,2,"0");case"s":return String(D.$s);case"ss":return M.s(D.$s,2,"0");case"SSS":return M.s(D.$ms,3,"0");case"Z":return q}return null}(oe)||q.replace(":","")})},U.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},U.diff=function(z,D,B){var Y,q=this,K=M.p(D),H=O(z),G=(H.utcOffset()-this.utcOffset())*i,Q=this-H,le=function(){return M.m(q,H)};switch(K){case h:Y=le()/12;break;case f:Y=le();break;case p:Y=le()/3;break;case d:Y=(Q-G)/6048e5;break;case u:Y=(Q-G)/864e5;break;case c:Y=Q/o;break;case l:Y=Q/i;break;case s:Y=Q/r;break;default:Y=Q}return B?Y:M.a(Y)},U.daysInMonth=function(){return this.endOf(f).$D},U.$locale=function(){return C[this.$L]},U.locale=function(z,D){if(!z)return this.$L;var B=this.clone(),Y=R(z,D,!0);return Y&&(B.$L=Y),B},U.clone=function(){return M.w(this.$d,this)},U.toDate=function(){return new Date(this.valueOf())},U.toJSON=function(){return this.isValid()?this.toISOString():null},U.toISOString=function(){return this.$d.toISOString()},U.toString=function(){return this.$d.toUTCString()},$}(),k=P.prototype;return O.prototype=k,[["$ms",a],["$s",s],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",g]].forEach(function($){k[$[1]]=function(U){return this.$g(U,$[0],$[1])}}),O.extend=function($,U){return $.$i||($(U,P,O),$.$i=!0),O},O.locale=R,O.isDayjs=T,O.unix=function($){return O(1e3*$)},O.en=C[w],O.Ls=C,O.p={},O})})(eHe);var tHe=eHe.exports;const Zr=Or(tHe);var nHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){return function(r,i){i.prototype.weekday=function(o){var a=this.$locale().weekStart||0,s=this.$W,l=(s<a?s+7:s)-a;return this.$utils().u(o)?l:this.subtract(l,"day").add(o,"day")}}})})(nHe);var t6t=nHe.exports;const rHe=Or(t6t);var iHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){return function(r,i,o){var a=i.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,p,h,g,v){var y=f.name?f:f.$locale(),_=s(y[p]),S=s(y[h]),b=_||S.map(function(w){return w.slice(0,g)});if(!v)return b;var E=y.weekStart;return b.map(function(w,C){return b[(C+(E||0))%7]})},c=function(){return o.Ls[o.locale()]},u=function(f,p){return f.formats[p]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,v,y){return v||y.slice(1)})}(f.formats[p.toUpperCase()])},d=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):l(f,"months")},monthsShort:function(p){return p?p.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):l(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return u(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return u(f,p)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return l(c(),"months")},o.monthsShort=function(){return l(c(),"monthsShort","months",3)},o.weekdays=function(f){return l(c(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return l(c(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return l(c(),"weekdaysMin","weekdays",2,f)}}})})(iHe);var n6t=iHe.exports;const oHe=Or(n6t);var aHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r="week",i="year";return function(o,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(i).add(1,i).date(u),f=s(this).endOf(r);if(d.isBefore(f))return 1}var p=s(this).startOf(i).date(u).startOf(r).subtract(1,"millisecond"),h=this.diff(p,r,!0);return h<0?s(this).startOf("week").week():Math.ceil(h)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(aHe);var r6t=aHe.exports;const ude=Or(r6t);var sHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){return function(r,i){i.prototype.weekYear=function(){var o=this.month(),a=this.week(),s=this.year();return a===1&&o===11?s+1:o===0&&a>=52?s-1:s}}})})(sHe);var i6t=sHe.exports;const o6t=Or(i6t);var lHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){return function(r,i){var o=i.prototype,a=o.format;o.format=function(s){var l=this,c=this.$locale();if(!this.isValid())return a.bind(this)(s);var u=this.$utils(),d=(s||"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(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return a.bind(this)(d)}}})})(lHe);var a6t=lHe.exports;const cHe=Or(a6t);var uHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r={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"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(_){this[y]=+_}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var S=_.match(/([+-]|\d\d)/g),b=60*S[1]+(+S[2]||0);return b===0?0:S[0]==="+"?-b:b}(y)}],p=function(y){var _=c[y];return _&&(_.indexOf?_:_.s.concat(_.f))},h=function(y,_){var S,b=c.meridiem;if(b){for(var E=1;E<=24;E+=1)if(y.indexOf(b(E,0,_))>-1){S=E>12;break}}else S=y===(_?"pm":"PM");return S},g={A:[l,function(y){this.afternoon=h(y,!1)}],a:[l,function(y){this.afternoon=h(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[a,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[a,d("day")],Do:[l,function(y){var _=c.ordinal,S=y.match(/\d+/);if(this.day=S[0],_)for(var b=1;b<=31;b+=1)_(b).replace(/\[|\]/g,"")===y&&(this.day=b)}],w:[s,d("week")],ww:[a,d("week")],M:[s,d("month")],MM:[a,d("month")],MMM:[l,function(y){var _=p("months"),S=(p("monthsShort")||_.map(function(b){return b.slice(0,3)})).indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(y){var _=p("months").indexOf(y)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(y){var _,S;_=y,S=c&&c.formats;for(var b=(y=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,M,P){var k=P&&P.toUpperCase();return M||S[P]||r[P]||S[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,U,z){return U||z.slice(1)})})).match(i),E=b.length,w=0;w<E;w+=1){var C=b[w],x=g[C],T=x&&x[0],R=x&&x[1];b[w]=R?{regex:T,parser:R}:C.replace(/^\[|\]$/g,"")}return function(O){for(var M={},P=0,k=0;P<E;P+=1){var $=b[P];if(typeof $=="string")k+=$.length;else{var U=$.regex,z=$.parser,D=O.slice(k),B=U.exec(D)[0];z.call(M,B),O=O.replace(B,"")}}return function(Y){var q=Y.afternoon;if(q!==void 0){var K=Y.hours;q?K<12&&(Y.hours+=12):K===12&&(Y.hours=0),delete Y.afternoon}}(M),M}}return function(y,_,S){S.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var b=_.prototype,E=b.parse;b.parse=function(w){var C=w.date,x=w.utc,T=w.args;this.$u=x;var R=T[1];if(typeof R=="string"){var O=T[2]===!0,M=T[3]===!0,P=O||M,k=T[2];M&&(k=T[2]),c=this.$locale(),!O&&k&&(c=S.Ls[k]),this.$d=function(D,B,Y,q){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*D);var K=v(B)(D),H=K.year,G=K.month,Q=K.day,le=K.hours,Z=K.minutes,j=K.seconds,F=K.milliseconds,te=K.zone,oe=K.week,de=new Date,pe=Q||(H||G?1:de.getDate()),me=H||de.getFullYear(),ve=0;H&&!G||(ve=G>0?G-1:de.getMonth());var he,be=le||0,we=Z||0,De=j||0,Ae=F||0;return te?new Date(Date.UTC(me,ve,pe,be,we,De,Ae+60*te.offset*1e3)):Y?new Date(Date.UTC(me,ve,pe,be,we,De,Ae)):(he=new Date(me,ve,pe,be,we,De,Ae),oe&&(he=q(he).week(oe).toDate()),he)}catch{return new Date("")}}(C,R,x,S),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),P&&C!=this.format(R)&&(this.$d=new Date("")),c={}}else if(R instanceof Array)for(var $=R.length,U=1;U<=$;U+=1){T[1]=R[U-1];var z=S.apply(this,T);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}U===$&&(this.$d=new Date(""))}else E.call(this,w)}}})})(uHe);var s6t=uHe.exports;const dHe=Or(s6t);Zr.extend(dHe);Zr.extend(cHe);Zr.extend(rHe);Zr.extend(oHe);Zr.extend(ude);Zr.extend(o6t);Zr.extend(function(e,n){var r=n.prototype,i=r.format;r.format=function(a){var s=(a||"").replace("Wo","wo");return i.bind(this)(s)}});var l6t={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"},mE=function(n){var r=l6t[n];return r||n.split("_")[0]},c6t={getNow:function(){var n=Zr();return typeof n.tz=="function"?n.tz():n},getFixedDate:function(n){return Zr(n,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(n){return n.endOf("month")},getWeekDay:function(n){var r=n.locale("en");return r.weekday()+r.localeData().firstDayOfWeek()},getYear:function(n){return n.year()},getMonth:function(n){return n.month()},getDate:function(n){return n.date()},getHour:function(n){return n.hour()},getMinute:function(n){return n.minute()},getSecond:function(n){return n.second()},getMillisecond:function(n){return n.millisecond()},addYear:function(n,r){return n.add(r,"year")},addMonth:function(n,r){return n.add(r,"month")},addDate:function(n,r){return n.add(r,"day")},setYear:function(n,r){return n.year(r)},setMonth:function(n,r){return n.month(r)},setDate:function(n,r){return n.date(r)},setHour:function(n,r){return n.hour(r)},setMinute:function(n,r){return n.minute(r)},setSecond:function(n,r){return n.second(r)},setMillisecond:function(n,r){return n.millisecond(r)},isAfter:function(n,r){return n.isAfter(r)},isValidate:function(n){return n.isValid()},locale:{getWeekFirstDay:function(n){return Zr().locale(mE(n)).localeData().firstDayOfWeek()},getWeekFirstDate:function(n,r){return r.locale(mE(n)).weekday(0)},getWeek:function(n,r){return r.locale(mE(n)).week()},getShortWeekDays:function(n){return Zr().locale(mE(n)).localeData().weekdaysMin()},getShortMonths:function(n){return Zr().locale(mE(n)).localeData().monthsShort()},format:function(n,r,i){return r.locale(mE(n)).format(i)},parse:function(n,r,i){for(var o=mE(n),a=0;a<i.length;a+=1){var s=i[a],l=r;if(s.includes("wo")||s.includes("Wo")){for(var c=l.split("-")[0],u=l.split("-")[1],d=Zr(c,"YYYY").startOf("year").locale(o),f=0;f<=52;f+=1){var p=d.add(f,"week");if(p.format("Wo")===u)return p}return null}var h=Zr(l,s,!0).locale(o);if(h.isValid())return h}return null}}};function uU(e,n){return e!==void 0?e:n?"bottomRight":"bottomLeft"}function fHe(e,n){var r=uU(e,n),i=r==null?void 0:r.toLowerCase().endsWith("right"),o=i?"insetInlineEnd":"insetInlineStart";return n&&(o=["insetInlineStart","insetInlineEnd"].find(function(a){return a!==o})),o}var bg=m.createContext(null),u6t={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 pHe(e){var n=e.popupElement,r=e.popupStyle,i=e.popupClassName,o=e.popupAlign,a=e.transitionName,s=e.getPopupContainer,l=e.children,c=e.range,u=e.placement,d=e.builtinPlacements,f=d===void 0?u6t:d,p=e.direction,h=e.visible,g=e.onClose,v=m.useContext(bg),y=v.prefixCls,_="".concat(y,"-dropdown"),S=uU(u,p==="rtl");return m.createElement(_k,{showAction:[],hideAction:["click"],popupPlacement:S,builtinPlacements:f,prefixCls:_,popupTransitionName:a,popup:n,popupAlign:o,popupVisible:h,popupClassName:Ce(i,fe(fe({},"".concat(_,"-range"),c),"".concat(_,"-rtl"),p==="rtl")),popupStyle:r,stretch:"minWidth",getPopupContainer:s,onPopupVisibleChange:function(E){E||g()}},l)}function dde(e,n){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",i=String(e);i.length<n;)i="".concat(r).concat(i);return i}function rw(e){return e==null?[]:Array.isArray(e)?e:[e]}function eP(e,n,r){var i=Tt(e);return i[n]=r,i}function dU(e,n){var r={},i=n||Object.keys(e);return i.forEach(function(o){e[o]!==void 0&&(r[o]=e[o])}),r}function hHe(e,n,r){if(r)return r;switch(e){case"time":return n.fieldTimeFormat;case"datetime":return n.fieldDateTimeFormat;case"month":return n.fieldMonthFormat;case"year":return n.fieldYearFormat;case"quarter":return n.fieldQuarterFormat;case"week":return n.fieldWeekFormat;default:return n.fieldDateFormat}}function gHe(e,n,r){var i=r!==void 0?r:n[n.length-1],o=n.find(function(a){return e[a]});return i!==o?e[o]:void 0}function mHe(e){return dU(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function fde(e,n,r,i){var o=m.useMemo(function(){return e||function(s,l){var c=s;return n&&l.type==="date"?n(c,l.today):r&&l.type==="month"?r(c,l.locale):l.originNode}},[e,r,n]),a=m.useCallback(function(s,l){return o(s,ee(ee({},l),{},{range:i}))},[o,i]);return a}function vHe(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=m.useState([!1,!1]),o=ke(i,2),a=o[0],s=o[1],l=function(d,f){s(function(p){return eP(p,f,d)})},c=m.useMemo(function(){return a.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!r[d]&&!f||f&&n(f,{activeIndex:d})):!1})},[e,a,n,r]);return[c,l]}function yHe(e,n,r,i,o){var a="",s=[];return e&&s.push(o?"hh":"HH"),n&&s.push("mm"),r&&s.push("ss"),a=s.join(":"),i&&(a+=".SSS"),o&&(a+=" A"),a}function d6t(e,n,r,i,o,a){var s=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,h=e.yearFormat,g=e.cellYearFormat,v=e.cellQuarterFormat,y=e.dayFormat,_=e.cellDateFormat,S=yHe(n,r,i,o,a);return ee(ee({},e),{},{fieldDateTimeFormat:s||"YYYY-MM-DD ".concat(S),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||S,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:g||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:_||y||"D"})}function _He(e,n){var r=n.showHour,i=n.showMinute,o=n.showSecond,a=n.showMillisecond,s=n.use12Hours;return V.useMemo(function(){return d6t(e,r,i,o,a,s)},[e,r,i,o,a,s])}function uM(e,n,r){return r??n.some(function(i){return e.includes(i)})}var f6t=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function p6t(e){var n=dU(e,f6t),r=e.format,i=e.picker,o=null;return r&&(o=r,Array.isArray(o)&&(o=o[0]),o=cn(o)==="object"?o.format:o),i==="time"&&(n.format=o),[n,o]}function h6t(e){return e&&typeof e=="string"}function bHe(e,n,r,i){return[e,n,r,i].some(function(o){return o!==void 0})}function SHe(e,n,r,i,o){var a=n,s=r,l=i;if(!e&&!a&&!s&&!l&&!o)a=!0,s=!0,l=!0;else if(e){var c,u,d,f=[a,s,l].some(function(g){return g===!1}),p=[a,s,l].some(function(g){return g===!0}),h=f?!0:!p;a=(c=a)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h,l=(d=l)!==null&&d!==void 0?d:h}return[a,s,l,o]}function EHe(e){var n=e.showTime,r=p6t(e),i=ke(r,2),o=i[0],a=i[1],s=n&&cn(n)==="object"?n:{},l=ee(ee({defaultOpenValue:s.defaultOpenValue||s.defaultValue},o),s),c=l.showMillisecond,u=l.showHour,d=l.showMinute,f=l.showSecond,p=bHe(u,d,f,c),h=SHe(p,u,d,f,c),g=ke(h,3);return u=g[0],d=g[1],f=g[2],[l,ee(ee({},l),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),l.format,a]}function CHe(e,n,r,i,o){var a=e==="time";if(e==="datetime"||a){for(var s=i,l=hHe(e,o,null),c=l,u=[n,r],d=0;d<u.length;d+=1){var f=rw(u[d])[0];if(h6t(f)){c=f;break}}var p=s.showHour,h=s.showMinute,g=s.showSecond,v=s.showMillisecond,y=s.use12Hours,_=uM(c,["a","A","LT","LLL","LTS"],y),S=bHe(p,h,g,v);S||(p=uM(c,["H","h","k","LT","LLL"]),h=uM(c,["m","LT","LLL"]),g=uM(c,["s","LTS"]),v=uM(c,["SSS"]));var b=SHe(S,p,h,g,v),E=ke(b,3);p=E[0],h=E[1],g=E[2];var w=n||yHe(p,h,g,v,_);return ee(ee({},s),{},{format:w,showHour:p,showMinute:h,showSecond:g,showMillisecond:v,use12Hours:_})}return null}function g6t(e,n,r){if(n===!1)return null;var i=n&&cn(n)==="object"?n:{};return i.clearIcon||r||m.createElement("span",{className:"".concat(e,"-clear-btn")})}var aq=7;function rS(e,n,r){return!e&&!n||e===n?!0:!e||!n?!1:r()}function mie(e,n,r){return rS(n,r,function(){var i=Math.floor(e.getYear(n)/10),o=Math.floor(e.getYear(r)/10);return i===o})}function aC(e,n,r){return rS(n,r,function(){return e.getYear(n)===e.getYear(r)})}function fCe(e,n){var r=Math.floor(e.getMonth(n)/3);return r+1}function m6t(e,n,r){return rS(n,r,function(){return aC(e,n,r)&&fCe(e,n)===fCe(e,r)})}function pde(e,n,r){return rS(n,r,function(){return aC(e,n,r)&&e.getMonth(n)===e.getMonth(r)})}function hde(e,n,r){return rS(n,r,function(){return aC(e,n,r)&&pde(e,n,r)&&e.getDate(n)===e.getDate(r)})}function wHe(e,n,r){return rS(n,r,function(){return e.getHour(n)===e.getHour(r)&&e.getMinute(n)===e.getMinute(r)&&e.getSecond(n)===e.getSecond(r)})}function xHe(e,n,r){return rS(n,r,function(){return hde(e,n,r)&&wHe(e,n,r)&&e.getMillisecond(n)===e.getMillisecond(r)})}function l2(e,n,r,i){return rS(r,i,function(){var o=e.locale.getWeekFirstDate(n,r),a=e.locale.getWeekFirstDate(n,i);return aC(e,o,a)&&e.locale.getWeek(n,r)===e.locale.getWeek(n,i)})}function Bc(e,n,r,i,o){switch(o){case"date":return hde(e,r,i);case"week":return l2(e,n.locale,r,i);case"month":return pde(e,r,i);case"quarter":return m6t(e,r,i);case"year":return aC(e,r,i);case"decade":return mie(e,r,i);case"time":return wHe(e,r,i);default:return xHe(e,r,i)}}function fU(e,n,r,i){return!n||!r||!i?!1:e.isAfter(i,n)&&e.isAfter(r,i)}function q3(e,n,r,i,o){return Bc(e,n,r,i,o)?!0:e.isAfter(r,i)}function v6t(e,n,r){var i=n.locale.getWeekFirstDay(e),o=n.setDate(r,1),a=n.getWeekDay(o),s=n.addDate(o,i-a);return n.getMonth(s)===n.getMonth(r)&&n.getDate(s)>1&&(s=n.addDate(s,-7)),s}function wl(e,n){var r=n.generateConfig,i=n.locale,o=n.format;return e?typeof o=="function"?o(e):r.locale.format(i.locale,e,o):""}function G8(e,n,r){var i=n,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(s,l){r?i=e[s](i,e[o[l]](r)):i=e[s](i,0)}),i}function y6t(e,n,r,i,o){var a=Sr(function(s,l){return!!(r&&r(s,l)||i&&e.isAfter(i,s)&&!Bc(e,n,i,s,l.type)||o&&e.isAfter(s,o)&&!Bc(e,n,o,s,l.type))});return a}function _6t(e,n,r){return m.useMemo(function(){var i=hHe(e,n,r),o=rw(i),a=o[0],s=cn(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),s]},[e,n,r])}function b6t(e,n,r){return typeof e[0]=="function"||r?!0:n}function S6t(e,n,r,i){var o=Sr(function(a,s){var l=ee({type:n},s);if(delete l.activeIndex,!e.isValidate(a)||r&&r(a,l))return!0;if((n==="date"||n==="time")&&i){var c,u=s&&s.activeIndex===1?"end":"start",d=((c=i.disabledTime)===null||c===void 0?void 0:c.call(i,a,u,{from:l.from}))||{},f=d.disabledHours,p=d.disabledMinutes,h=d.disabledSeconds,g=d.disabledMilliseconds,v=i.disabledHours,y=i.disabledMinutes,_=i.disabledSeconds,S=f||v,b=p||y,E=h||_,w=e.getHour(a),C=e.getMinute(a),x=e.getSecond(a),T=e.getMillisecond(a);if(S&&S().includes(w)||b&&b(w).includes(C)||E&&E(w,C).includes(x)||g&&g(w,C,x).includes(T))return!0}return!1});return o}function K3(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=m.useMemo(function(){var i=e&&rw(e);return n&&i&&(i[1]=i[1]||i[0]),i},[e,n]);return r}function THe(e,n){var r=e.generateConfig,i=e.locale,o=e.picker,a=o===void 0?"date":o,s=e.prefixCls,l=s===void 0?"rc-picker":s,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,p=e.order,h=p===void 0?!0:p,g=e.components,v=g===void 0?{}:g,y=e.inputRender,_=e.allowClear,S=e.clearIcon,b=e.needConfirm,E=e.multiple,w=e.format,C=e.inputReadOnly,x=e.disabledDate,T=e.minDate,R=e.maxDate,O=e.showTime,M=e.value,P=e.defaultValue,k=e.pickerValue,$=e.defaultPickerValue,U=K3(M),z=K3(P),D=K3(k),B=K3($),Y=a==="date"&&O?"datetime":a,q=Y==="time"||Y==="datetime",K=q||E,H=b??q,G=EHe(e),Q=ke(G,4),le=Q[0],Z=Q[1],j=Q[2],F=Q[3],te=_He(i,Z),oe=m.useMemo(function(){return CHe(Y,j,F,le,te)},[Y,j,F,le,te]),de=m.useMemo(function(){return ee(ee({},e),{},{prefixCls:l,locale:te,picker:a,styles:u,classNames:f,order:h,components:ee({input:y},v),clearIcon:g6t(l,_,S),showTime:oe,value:U,defaultValue:z,pickerValue:D,defaultPickerValue:B},n==null?void 0:n())},[e]),pe=_6t(Y,te,w),me=ke(pe,2),ve=me[0],he=me[1],be=b6t(ve,C,E),we=y6t(r,i,x,T,R),De=S6t(r,a,we,oe),Ae=m.useMemo(function(){return ee(ee({},de),{},{needConfirm:H,inputReadOnly:be,disabledDate:we})},[de,H,be,we]);return[Ae,Y,K,ve,he,De]}function E6t(e,n,r){var i=dr(n,{value:e}),o=ke(i,2),a=o[0],s=o[1],l=V.useRef(e),c=V.useRef(),u=function(){Dr.cancel(c.current)},d=Sr(function(){s(l.current),r&&a!==l.current&&r(l.current)}),f=Sr(function(p,h){u(),l.current=p,p||h?d():c.current=Dr(d)});return V.useEffect(function(){return u},[]),[a,f]}function OHe(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,o=r.every(function(d){return d})?!1:e,a=E6t(o,n||!1,i),s=ke(a,2),l=s[0],c=s[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||l)&&c(d,f.force)}return[l,u]}function RHe(e){var n=m.useRef();return m.useImperativeHandle(e,function(){var r;return{nativeElement:(r=n.current)===null||r===void 0?void 0:r.nativeElement,focus:function(o){var a;(a=n.current)===null||a===void 0||a.focus(o)},blur:function(){var o;(o=n.current)===null||o===void 0||o.blur()}}}),n}function IHe(e,n){return m.useMemo(function(){return e||(n?(qi(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map(function(r){var i=ke(r,2),o=i[0],a=i[1];return{label:o,value:a}})):[])},[e,n])}function gde(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=m.useRef(n);i.current=n,I1(function(){if(e)i.current(e);else{var o=Dr(function(){i.current(e)},r);return function(){Dr.cancel(o)}}},[e])}function NHe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=m.useState(0),o=ke(i,2),a=o[0],s=o[1],l=m.useState(!1),c=ke(l,2),u=c[0],d=c[1],f=m.useRef([]),p=m.useRef(null),h=m.useRef(null),g=function(E){p.current=E},v=function(E){return p.current===E},y=function(E){d(E)},_=function(E){return E&&(h.current=E),h.current},S=function(E){var w=f.current,C=new Set(w.filter(function(T){return E[T]||n[T]})),x=w[w.length-1]===0?1:0;return C.size>=2||e[x]?null:x};return gde(u||r,function(){u||(f.current=[],g(null))}),m.useEffect(function(){u&&f.current.push(a)},[u,a]),[u,y,_,a,s,S,f.current,g,v]}function C6t(e,n,r,i,o,a){var s=r[r.length-1],l=function(u,d){var f=ke(e,2),p=f[0],h=f[1],g=ee(ee({},d),{},{from:gHe(e,r)});return s===1&&n[0]&&p&&!Bc(i,o,p,u,g.type)&&i.isAfter(p,u)||s===0&&n[1]&&h&&!Bc(i,o,h,u,g.type)&&i.isAfter(u,h)?!0:a==null?void 0:a(u,g)};return l}function c2(e,n,r,i){switch(n){case"date":case"week":return e.addMonth(r,i);case"month":case"quarter":return e.addYear(r,i);case"year":return e.addYear(r,i*10);case"decade":return e.addYear(r,i*100);default:return r}}var sq=[];function MHe(e,n,r,i,o,a,s,l){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:sq,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:sq,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:sq,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,g=s==="time",v=a||0,y=function(D){var B=e.getNow();return g&&(B=G8(e,B)),c[D]||r[D]||B},_=ke(u,2),S=_[0],b=_[1],E=dr(function(){return y(0)},{value:S}),w=ke(E,2),C=w[0],x=w[1],T=dr(function(){return y(1)},{value:b}),R=ke(T,2),O=R[0],M=R[1],P=m.useMemo(function(){var z=[C,O][v];return g?z:G8(e,z,d[v])},[g,C,O,v,e,d]),k=function(D){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Y=[x,M][v];Y(D);var q=[C,O];q[v]=D,f&&(!Bc(e,n,C,q[0],s)||!Bc(e,n,O,q[1],s))&&f(q,{source:B,range:v===1?"end":"start",mode:i})},$=function(D,B){if(l){var Y={date:"month",week:"month",month:"year",quarter:"year"},q=Y[s];if(q&&!Bc(e,n,D,B,q))return c2(e,s,B,-1);if(s==="year"&&D){var K=Math.floor(e.getYear(D)/10),H=Math.floor(e.getYear(B)/10);if(K!==H)return c2(e,s,B,-1)}}return B},U=m.useRef(null);return ti(function(){if(o&&!c[v]){var z=g?null:e.getNow();if(U.current!==null&&U.current!==v?z=[C,O][v^1]:r[v]?z=v===0?r[0]:$(r[0],r[1]):r[v^1]&&(z=r[v^1]),z){p&&e.isAfter(p,z)&&(z=p);var D=l?c2(e,s,z,1):z;h&&e.isAfter(D,h)&&(z=l?c2(e,s,h,-1):h),k(z,"reset")}}},[o,v,r[v]]),m.useEffect(function(){o?U.current=v:U.current=null},[o,v]),ti(function(){o&&c&&c[v]&&k(c[v],"reset")},[o,v]),[P,k]}function PHe(e,n){var r=m.useRef(e),i=m.useState({}),o=ke(i,2),a=o[1],s=function(u){return u&&n!==void 0?n:r.current},l=function(u){r.current=u,a({})};return[s,l,s(!0)]}var w6t=[];function AHe(e,n,r){var i=function(s){return s.map(function(l){return wl(l,{generateConfig:e,locale:n,format:r[0]})})},o=function(s,l){for(var c=Math.max(s.length,l.length),u=-1,d=0;d<c;d+=1){var f=s[d]||null,p=l[d]||null;if(f!==p&&!xHe(e,f,p)){u=d;break}}return[u<0,u!==0]};return[i,o]}function DHe(e,n){return Tt(e).sort(function(r,i){return n.isAfter(r,i)?1:-1})}function x6t(e){var n=PHe(e),r=ke(n,2),i=r[0],o=r[1],a=Sr(function(){o(e)});return m.useEffect(function(){a()},[e]),[i,o]}function kHe(e,n,r,i,o,a,s,l,c){var u=dr(a,{value:s}),d=ke(u,2),f=d[0],p=d[1],h=f||w6t,g=x6t(h),v=ke(g,2),y=v[0],_=v[1],S=AHe(e,n,r),b=ke(S,2),E=b[0],w=b[1],C=Sr(function(T){var R=Tt(T);if(i)for(var O=0;O<2;O+=1)R[O]=R[O]||null;else o&&(R=DHe(R.filter(function(z){return z}),e));var M=w(y(),R),P=ke(M,2),k=P[0],$=P[1];if(!k&&(_(R),l)){var U=E(R);l(R,U,{range:$?"end":"start"})}}),x=function(){c&&c(y())};return[h,p,y,C,x]}function LHe(e,n,r,i,o,a,s,l,c,u){var d=e.generateConfig,f=e.locale,p=e.picker,h=e.onChange,g=e.allowEmpty,v=e.order,y=a.some(function(k){return k})?!1:v,_=AHe(d,f,s),S=ke(_,2),b=S[0],E=S[1],w=PHe(n),C=ke(w,2),x=C[0],T=C[1],R=Sr(function(){T(n)});m.useEffect(function(){R()},[n]);var O=Sr(function(k){var $=k===null,U=Tt(k||x());if($)for(var z=Math.max(a.length,U.length),D=0;D<z;D+=1)a[D]||(U[D]=null);y&&U[0]&&U[1]&&(U=DHe(U,d)),o(U);var B=U,Y=ke(B,2),q=Y[0],K=Y[1],H=!q,G=!K,Q=g?(!H||g[0])&&(!G||g[1]):!0,le=!v||H||G||Bc(d,f,q,K,p)||d.isAfter(K,q),Z=(a[0]||!q||!u(q,{activeIndex:0}))&&(a[1]||!K||!u(K,{from:q,activeIndex:1})),j=$||Q&&le&&Z;if(j){r(U);var F=E(U,n),te=ke(F,1),oe=te[0];h&&!oe&&h($&&U.every(function(de){return!de})?null:U,b(U))}return j}),M=Sr(function(k,$){var U=eP(x(),k,i()[k]);T(U),$&&O()}),P=!l&&!c;return gde(!P,function(){P&&(O(),o(n),R())},2),[M,O]}function $He(e,n,r,i,o){return n!=="date"&&n!=="time"?!1:r!==void 0?r:i!==void 0?i:!o&&(e==="date"||e==="time")}function T6t(e,n,r,i,o,a){var s=e;function l(f,p,h){var g=a[f](s),v=h.find(function(b){return b.value===g});if(!v||v.disabled){var y=h.filter(function(b){return!b.disabled}),_=Tt(y).reverse(),S=_.find(function(b){return b.value<=g})||y[0];S&&(g=S.value,s=a[p](s,g))}return g}var c=l("getHour","setHour",n()),u=l("getMinute","setMinute",r(c)),d=l("getSecond","setSecond",i(c,u));return l("getMillisecond","setMillisecond",o(c,u,d)),s}function X3(){return[]}function Q3(e,n){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,s=[],l=r>=1?r|0:1,c=e;c<=n;c+=l){var u=o.includes(c);(!u||!i)&&s.push({label:dde(c,a),value:c,disabled:u})}return s}function mde(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=n||{},o=i.use12Hours,a=i.hourStep,s=a===void 0?1:a,l=i.minuteStep,c=l===void 0?1:l,u=i.secondStep,d=u===void 0?1:u,f=i.millisecondStep,p=f===void 0?100:f,h=i.hideDisabledOptions,g=i.disabledTime,v=i.disabledHours,y=i.disabledMinutes,_=i.disabledSeconds,S=m.useMemo(function(){return r||e.getNow()},[r,e]),b=m.useCallback(function(B){var Y=(g==null?void 0:g(B))||{};return[Y.disabledHours||v||X3,Y.disabledMinutes||y||X3,Y.disabledSeconds||_||X3,Y.disabledMilliseconds||X3]},[g,v,y,_]),E=m.useMemo(function(){return b(S)},[S,b]),w=ke(E,4),C=w[0],x=w[1],T=w[2],R=w[3],O=m.useCallback(function(B,Y,q,K){var H=Q3(0,23,s,h,B()),G=o?H.map(function(j){return ee(ee({},j),{},{label:dde(j.value%12||12,2)})}):H,Q=function(F){return Q3(0,59,c,h,Y(F))},le=function(F,te){return Q3(0,59,d,h,q(F,te))},Z=function(F,te,oe){return Q3(0,999,p,h,K(F,te,oe),3)};return[G,Q,le,Z]},[h,s,o,p,c,d]),M=m.useMemo(function(){return O(C,x,T,R)},[O,C,x,T,R]),P=ke(M,4),k=P[0],$=P[1],U=P[2],z=P[3],D=function(Y,q){var K=function(){return k},H=$,G=U,Q=z;if(q){var le=b(q),Z=ke(le,4),j=Z[0],F=Z[1],te=Z[2],oe=Z[3],de=O(j,F,te,oe),pe=ke(de,4),me=pe[0],ve=pe[1],he=pe[2],be=pe[3];K=function(){return me},H=ve,G=he,Q=be}var we=T6t(Y,K,H,G,Q,e);return we};return[D,k,$,U,z]}function O6t(e){var n=e.mode,r=e.internalMode,i=e.renderExtraFooter,o=e.showNow,a=e.showTime,s=e.onSubmit,l=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=m.useContext(bg),h=p.prefixCls,g=p.locale,v=p.button,y=v===void 0?"button":v,_=d.getNow(),S=mde(d,a,_),b=ke(S,1),E=b[0],w=i==null?void 0:i(n),C=f(_,{type:n}),x=function(){if(!C){var $=E(_);l($)}},T="".concat(h,"-now"),R="".concat(T,"-btn"),O=o&&m.createElement("li",{className:T},m.createElement("a",{className:Ce(R,C&&"".concat(R,"-disabled")),"aria-disabled":C,onClick:x},r==="date"?g.today:g.now)),M=u&&m.createElement("li",{className:"".concat(h,"-ok")},m.createElement(y,{disabled:c,onClick:s},g.ok)),P=(O||M)&&m.createElement("ul",{className:"".concat(h,"-ranges")},O,M);return!w&&!P?null:m.createElement("div",{className:"".concat(h,"-footer")},w&&m.createElement("div",{className:"".concat(h,"-footer-extra")},w),P)}function FHe(e,n,r){function i(o,a){var s=o.findIndex(function(c){return Bc(e,n,c,a,r)});if(s===-1)return[].concat(Tt(o),[a]);var l=Tt(o);return l.splice(s,1),l}return i}var iw=m.createContext(null);function pU(){return m.useContext(iw)}function fI(e,n){var r=e.prefixCls,i=e.generateConfig,o=e.locale,a=e.disabledDate,s=e.minDate,l=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,p=e.values,h=e.pickerValue,g=e.onSelect,v=e.prevIcon,y=e.nextIcon,_=e.superPrevIcon,S=e.superNextIcon,b=i.getNow(),E={now:b,values:p,pickerValue:h,prefixCls:r,disabledDate:a,minDate:s,maxDate:l,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:o,generateConfig:i,onSelect:g,panelType:n,prevIcon:v,nextIcon:y,superPrevIcon:_,superNextIcon:S};return[E,b]}var u0=m.createContext({});function Sk(e){for(var n=e.rowNum,r=e.colNum,i=e.baseDate,o=e.getCellDate,a=e.prefixColumn,s=e.rowClassName,l=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,h=e.disabledDate,g=pU(),v=g.prefixCls,y=g.panelType,_=g.now,S=g.disabledDate,b=g.cellRender,E=g.onHover,w=g.hoverValue,C=g.hoverRangeValue,x=g.generateConfig,T=g.values,R=g.locale,O=g.onSelect,M=h||S,P="".concat(v,"-cell"),k=m.useContext(u0),$=k.onCellDblClick,U=function(G){return T.some(function(Q){return Q&&Bc(x,R,G,Q,y)})},z=[],D=0;D<n;D+=1){for(var B=[],Y=void 0,q=function(){var G=D*r+K,Q=o(i,G),le=M==null?void 0:M(Q,{type:y});K===0&&(Y=Q,a&&B.push(a(Y)));var Z=!1,j=!1,F=!1;if(p&&C){var te=ke(C,2),oe=te[0],de=te[1];Z=fU(x,oe,de,Q),j=Bc(x,R,Q,oe,y),F=Bc(x,R,Q,de,y)}var pe=l?wl(Q,{locale:R,format:l,generateConfig:x}):void 0,me=m.createElement("div",{className:"".concat(P,"-inner")},c(Q));B.push(m.createElement("td",{key:K,title:pe,className:Ce(P,ee(fe(fe(fe(fe(fe(fe({},"".concat(P,"-disabled"),le),"".concat(P,"-hover"),(w||[]).some(function(ve){return Bc(x,R,Q,ve,y)})),"".concat(P,"-in-range"),Z&&!j&&!F),"".concat(P,"-range-start"),j),"".concat(P,"-range-end"),F),"".concat(v,"-cell-selected"),!C&&y!=="week"&&U(Q)),u(Q))),onClick:function(){le||O(Q)},onDoubleClick:function(){!le&&$&&$()},onMouseEnter:function(){le||E==null||E(Q)},onMouseLeave:function(){le||E==null||E(null)}},b?b(Q,{prefixCls:v,originNode:me,today:_,type:y,locale:R}):me))},K=0;K<r;K+=1)q();z.push(m.createElement("tr",{key:D,className:s==null?void 0:s(Y)},B))}return m.createElement("div",{className:"".concat(v,"-body")},m.createElement("table",{className:"".concat(v,"-content")},d&&m.createElement("thead",null,m.createElement("tr",null,d)),m.createElement("tbody",null,z)))}var Z3={visibility:"hidden"};function pI(e){var n=e.offset,r=e.superOffset,i=e.onChange,o=e.getStart,a=e.getEnd,s=e.children,l=pU(),c=l.prefixCls,u=l.prevIcon,d=u===void 0?"‹":u,f=l.nextIcon,p=f===void 0?"›":f,h=l.superPrevIcon,g=h===void 0?"«":h,v=l.superNextIcon,y=v===void 0?"»":v,_=l.minDate,S=l.maxDate,b=l.generateConfig,E=l.locale,w=l.pickerValue,C=l.panelType,x="".concat(c,"-header"),T=m.useContext(u0),R=T.hidePrev,O=T.hideNext,M=T.hideHeader,P=m.useMemo(function(){if(!_||!n||!a)return!1;var H=a(n(-1,w));return!q3(b,E,H,_,C)},[_,n,w,a,b,E,C]),k=m.useMemo(function(){if(!_||!r||!a)return!1;var H=a(r(-1,w));return!q3(b,E,H,_,C)},[_,r,w,a,b,E,C]),$=m.useMemo(function(){if(!S||!n||!o)return!1;var H=o(n(1,w));return!q3(b,E,S,H,C)},[S,n,w,o,b,E,C]),U=m.useMemo(function(){if(!S||!r||!o)return!1;var H=o(r(1,w));return!q3(b,E,S,H,C)},[S,r,w,o,b,E,C]),z=function(G){n&&i(n(G,w))},D=function(G){r&&i(r(G,w))};if(M)return null;var B="".concat(x,"-prev-btn"),Y="".concat(x,"-next-btn"),q="".concat(x,"-super-prev-btn"),K="".concat(x,"-super-next-btn");return m.createElement("div",{className:x},r&&m.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return D(-1)},tabIndex:-1,className:Ce(q,k&&"".concat(q,"-disabled")),disabled:k,style:R?Z3:{}},g),n&&m.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return z(-1)},tabIndex:-1,className:Ce(B,P&&"".concat(B,"-disabled")),disabled:P,style:R?Z3:{}},d),m.createElement("div",{className:"".concat(x,"-view")},s),n&&m.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return z(1)},tabIndex:-1,className:Ce(Y,$&&"".concat(Y,"-disabled")),disabled:$,style:O?Z3:{}},p),r&&m.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return D(1)},tabIndex:-1,className:Ce(K,U&&"".concat(K,"-disabled")),disabled:U,style:O?Z3:{}},y))}function hU(e){var n=e.prefixCls,r=e.panelName,i=r===void 0?"date":r,o=e.locale,a=e.generateConfig,s=e.pickerValue,l=e.onPickerValueChange,c=e.onModeChange,u=e.mode,d=u===void 0?"date":u,f=e.disabledDate,p=e.onSelect,h=e.onHover,g=e.showWeek,v="".concat(n,"-").concat(i,"-panel"),y="".concat(n,"-cell"),_=d==="week",S=fI(e,d),b=ke(S,2),E=b[0],w=b[1],C=a.locale.getWeekFirstDay(o.locale),x=a.setDate(s,1),T=v6t(o.locale,a,x),R=a.getMonth(s),O=g===void 0?_:g,M=O?function(H){var G=f==null?void 0:f(H,{type:"week"});return m.createElement("td",{key:"week",className:Ce(y,"".concat(y,"-week"),fe({},"".concat(y,"-disabled"),G)),onClick:function(){G||p(H)},onMouseEnter:function(){G||h==null||h(H)},onMouseLeave:function(){G||h==null||h(null)}},m.createElement("div",{className:"".concat(y,"-inner")},a.locale.getWeek(o.locale,H)))}:null,P=[],k=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);M&&P.push(m.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var $=0;$<aq;$+=1)P.push(m.createElement("th",{key:$},k[($+C)%aq]));var U=function(G,Q){return a.addDate(G,Q)},z=function(G){return wl(G,{locale:o,format:o.cellDateFormat,generateConfig:a})},D=function(G){var Q=fe(fe({},"".concat(n,"-cell-in-view"),pde(a,G,s)),"".concat(n,"-cell-today"),hde(a,G,w));return Q},B=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),Y=m.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){c("year",s)},tabIndex:-1,className:"".concat(n,"-year-btn")},wl(s,{locale:o,format:o.yearFormat,generateConfig:a})),q=m.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){c("month",s)},tabIndex:-1,className:"".concat(n,"-month-btn")},o.monthFormat?wl(s,{locale:o,format:o.monthFormat,generateConfig:a}):B[R]),K=o.monthBeforeYear?[q,Y]:[Y,q];return m.createElement(iw.Provider,{value:E},m.createElement("div",{className:Ce(v,g&&"".concat(v,"-show-week"))},m.createElement(pI,{offset:function(G){return a.addMonth(s,G)},superOffset:function(G){return a.addYear(s,G)},onChange:l,getStart:function(G){return a.setDate(G,1)},getEnd:function(G){var Q=a.setDate(G,1);return Q=a.addMonth(Q,1),a.addDate(Q,-1)}},K),m.createElement(Sk,ft({titleFormat:o.fieldDateFormat},e,{colNum:aq,rowNum:6,baseDate:T,headerCells:P,getCellDate:U,getCellText:z,getCellClassName:D,prefixColumn:M,cellSelection:!_}))))}var R6t=1/3;function I6t(e,n){var r=m.useRef(!1),i=m.useRef(null),o=m.useRef(null),a=function(){return r.current},s=function(){Dr.cancel(i.current),r.current=!1},l=m.useRef(),c=function(){var f=e.current;if(o.current=null,l.current=0,f){var p=f.querySelector('[data-value="'.concat(n,'"]')),h=f.querySelector("li"),g=function v(){s(),r.current=!0,l.current+=1;var y=f.scrollTop,_=h.offsetTop,S=p.offsetTop,b=S-_;if(S===0&&p!==h||!fk(f)){l.current<=5&&(i.current=Dr(v));return}var E=y+(b-y)*R6t,w=Math.abs(b-E);if(o.current!==null&&o.current<w){s();return}if(o.current=w,w<=1){f.scrollTop=b,s();return}f.scrollTop=E,i.current=Dr(v)};p&&h&&g()}},u=Sr(c);return[u,s,a]}var N6t=300;function M6t(e){return e.map(function(n){var r=n.value,i=n.label,o=n.disabled;return[r,i,o].join(",")}).join(";")}function dM(e){var n=e.units,r=e.value,i=e.optionalValue,o=e.type,a=e.onChange,s=e.onHover,l=e.onDblClick,c=e.changeOnScroll,u=pU(),d=u.prefixCls,f=u.cellRender,p=u.now,h=u.locale,g="".concat(d,"-time-panel"),v="".concat(d,"-time-panel-cell"),y=m.useRef(null),_=m.useRef(),S=function(){clearTimeout(_.current)},b=I6t(y,r??i),E=ke(b,3),w=E[0],C=E[1],x=E[2];ti(function(){return w(),S(),function(){C(),S()}},[r,i,M6t(n)]);var T=function(M){S();var P=M.target;!x()&&c&&(_.current=setTimeout(function(){var k=y.current,$=k.querySelector("li").offsetTop,U=Array.from(k.querySelectorAll("li")),z=U.map(function(K){return K.offsetTop-$}),D=z.map(function(K,H){return n[H].disabled?Number.MAX_SAFE_INTEGER:Math.abs(K-P.scrollTop)}),B=Math.min.apply(Math,Tt(D)),Y=D.findIndex(function(K){return K===B}),q=n[Y];q&&!q.disabled&&a(q.value)},N6t))},R="".concat(g,"-column");return m.createElement("ul",{className:R,ref:y,"data-type":o,onScroll:T},n.map(function(O){var M=O.label,P=O.value,k=O.disabled,$=m.createElement("div",{className:"".concat(v,"-inner")},M);return m.createElement("li",{key:P,className:Ce(v,fe(fe({},"".concat(v,"-selected"),r===P),"".concat(v,"-disabled"),k)),onClick:function(){k||a(P)},onDoubleClick:function(){!k&&l&&l()},onMouseEnter:function(){s(P)},onMouseLeave:function(){s(null)},"data-value":P},f?f(P,{prefixCls:d,originNode:$,today:p,type:"time",subType:o,locale:h}):$)}))}function U_(e){return e<12}function P6t(e){var n=e.showHour,r=e.showMinute,i=e.showSecond,o=e.showMillisecond,a=e.use12Hours,s=e.changeOnScroll,l=pU(),c=l.prefixCls,u=l.values,d=l.generateConfig,f=l.locale,p=l.onSelect,h=l.onHover,g=h===void 0?function(){}:h,v=l.pickerValue,y=(u==null?void 0:u[0])||null,_=m.useContext(u0),S=_.onCellDblClick,b=mde(d,e,y),E=ke(b,5),w=E[0],C=E[1],x=E[2],T=E[3],R=E[4],O=function(ot){var Xe=y&&d[ot](y),Ze=v&&d[ot](v);return[Xe,Ze]},M=O("getHour"),P=ke(M,2),k=P[0],$=P[1],U=O("getMinute"),z=ke(U,2),D=z[0],B=z[1],Y=O("getSecond"),q=ke(Y,2),K=q[0],H=q[1],G=O("getMillisecond"),Q=ke(G,2),le=Q[0],Z=Q[1],j=k===null?null:U_(k)?"am":"pm",F=m.useMemo(function(){return a?U_(k)?C.filter(function(Je){return U_(Je.value)}):C.filter(function(Je){return!U_(Je.value)}):C},[k,C,a]),te=function(ot,Xe){var Ze,bt=ot.filter(function(at){return!at.disabled});return Xe??(bt==null||(Ze=bt[0])===null||Ze===void 0?void 0:Ze.value)},oe=te(C,k),de=m.useMemo(function(){return x(oe)},[x,oe]),pe=te(de,D),me=m.useMemo(function(){return T(oe,pe)},[T,oe,pe]),ve=te(me,K),he=m.useMemo(function(){return R(oe,pe,ve)},[R,oe,pe,ve]),be=te(he,le),we=m.useMemo(function(){if(!a)return[];var Je=d.getNow(),ot=d.setHour(Je,6),Xe=d.setHour(Je,18),Ze=function(at,pt){var Ct=f.cellMeridiemFormat;return Ct?wl(at,{generateConfig:d,locale:f,format:Ct}):pt};return[{label:Ze(ot,"AM"),value:"am",disabled:C.every(function(bt){return bt.disabled||!U_(bt.value)})},{label:Ze(Xe,"PM"),value:"pm",disabled:C.every(function(bt){return bt.disabled||U_(bt.value)})}]},[C,a,d,f]),De=function(ot){var Xe=w(ot);p(Xe)},Ae=m.useMemo(function(){var Je=y||v||d.getNow(),ot=function(Ze){return Ze!=null};return ot(k)?(Je=d.setHour(Je,k),Je=d.setMinute(Je,D),Je=d.setSecond(Je,K),Je=d.setMillisecond(Je,le)):ot($)?(Je=d.setHour(Je,$),Je=d.setMinute(Je,B),Je=d.setSecond(Je,H),Je=d.setMillisecond(Je,Z)):ot(oe)&&(Je=d.setHour(Je,oe),Je=d.setMinute(Je,pe),Je=d.setSecond(Je,ve),Je=d.setMillisecond(Je,be)),Je},[y,v,k,D,K,le,oe,pe,ve,be,$,B,H,Z,d]),Ee=function(ot,Xe){return ot===null?null:d[Xe](Ae,ot)},Re=function(ot){return Ee(ot,"setHour")},Te=function(ot){return Ee(ot,"setMinute")},Oe=function(ot){return Ee(ot,"setSecond")},Ne=function(ot){return Ee(ot,"setMillisecond")},je=function(ot){return ot===null?null:ot==="am"&&!U_(k)?d.setHour(Ae,k-12):ot==="pm"&&U_(k)?d.setHour(Ae,k+12):Ae},ne=function(ot){De(Re(ot))},J=function(ot){De(Te(ot))},ae=function(ot){De(Oe(ot))},Se=function(ot){De(Ne(ot))},xe=function(ot){De(je(ot))},ue=function(ot){g(Re(ot))},Me=function(ot){g(Te(ot))},$e=function(ot){g(Oe(ot))},ge=function(ot){g(Ne(ot))},Ve=function(ot){g(je(ot))},st={onDblClick:S,changeOnScroll:s};return m.createElement("div",{className:"".concat(c,"-content")},n&&m.createElement(dM,ft({units:F,value:k,optionalValue:$,type:"hour",onChange:ne,onHover:ue},st)),r&&m.createElement(dM,ft({units:de,value:D,optionalValue:B,type:"minute",onChange:J,onHover:Me},st)),i&&m.createElement(dM,ft({units:me,value:K,optionalValue:H,type:"second",onChange:ae,onHover:$e},st)),o&&m.createElement(dM,ft({units:he,value:le,optionalValue:Z,type:"millisecond",onChange:Se,onHover:ge},st)),a&&m.createElement(dM,ft({units:we,value:j,type:"meridiem",onChange:xe,onHover:Ve},st)))}function BHe(e){var n=e.prefixCls,r=e.value,i=e.locale,o=e.generateConfig,a=e.showTime,s=a||{},l=s.format,c="".concat(n,"-time-panel"),u=fI(e,"time"),d=ke(u,1),f=d[0];return m.createElement(iw.Provider,{value:f},m.createElement("div",{className:Ce(c)},m.createElement(pI,null,r?wl(r,{locale:i,format:l,generateConfig:o}):" "),m.createElement(P6t,a)))}function A6t(e){var n=e.prefixCls,r=e.generateConfig,i=e.showTime,o=e.onSelect,a=e.value,s=e.pickerValue,l=e.onHover,c="".concat(n,"-datetime-panel"),u=mde(r,i),d=ke(u,1),f=d[0],p=function(y){return a?G8(r,y,a):G8(r,y,s)},h=function(y){l==null||l(y&&p(y))},g=function(y){var _=p(y);o(f(_,_))};return m.createElement("div",{className:c},m.createElement(hU,ft({},e,{onSelect:g,onHover:h})),m.createElement(BHe,e))}function D6t(e){var n=e.prefixCls,r=e.locale,i=e.generateConfig,o=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l="".concat(n,"-decade-panel"),c=fI(e,"decade"),u=ke(c,1),d=u[0],f=function(C){var x=Math.floor(i.getYear(C)/100)*100;return i.setYear(C,x)},p=function(C){var x=f(C);return i.addYear(x,99)},h=f(o),g=p(o),v=i.addYear(h,-10),y=function(C,x){return i.addYear(C,x*10)},_=function(C){var x=r.cellYearFormat,T=wl(C,{locale:r,format:x,generateConfig:i}),R=wl(i.addYear(C,9),{locale:r,format:x,generateConfig:i});return"".concat(T,"-").concat(R)},S=function(C){return fe({},"".concat(n,"-cell-in-view"),mie(i,C,h)||mie(i,C,g)||fU(i,h,g,C))},b=a?function(w,C){var x=i.setDate(w,1),T=i.setMonth(x,0),R=i.setYear(T,Math.floor(i.getYear(T)/10)*10),O=i.addYear(R,10),M=i.addDate(O,-1);return a(R,C)&&a(M,C)}:null,E="".concat(wl(h,{locale:r,format:r.yearFormat,generateConfig:i}),"-").concat(wl(g,{locale:r,format:r.yearFormat,generateConfig:i}));return m.createElement(iw.Provider,{value:d},m.createElement("div",{className:l},m.createElement(pI,{superOffset:function(C){return i.addYear(o,C*100)},onChange:s,getStart:f,getEnd:p},E),m.createElement(Sk,ft({},e,{disabledDate:b,colNum:3,rowNum:4,baseDate:v,getCellDate:y,getCellText:_,getCellClassName:S}))))}function k6t(e){var n=e.prefixCls,r=e.locale,i=e.generateConfig,o=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l=e.onModeChange,c="".concat(n,"-month-panel"),u=fI(e,"month"),d=ke(u,1),f=d[0],p=i.setMonth(o,0),h=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),g=function(E,w){return i.addMonth(E,w)},v=function(E){var w=i.getMonth(E);return r.monthFormat?wl(E,{locale:r,format:r.monthFormat,generateConfig:i}):h[w]},y=function(){return fe({},"".concat(n,"-cell-in-view"),!0)},_=a?function(b,E){var w=i.setDate(b,1),C=i.setMonth(w,i.getMonth(w)+1),x=i.addDate(C,-1);return a(w,E)&&a(x,E)}:null,S=m.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){l("year")},tabIndex:-1,className:"".concat(n,"-year-btn")},wl(o,{locale:r,format:r.yearFormat,generateConfig:i}));return m.createElement(iw.Provider,{value:f},m.createElement("div",{className:c},m.createElement(pI,{superOffset:function(E){return i.addYear(o,E)},onChange:s,getStart:function(E){return i.setMonth(E,0)},getEnd:function(E){return i.setMonth(E,11)}},S),m.createElement(Sk,ft({},e,{disabledDate:_,titleFormat:r.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:g,getCellText:v,getCellClassName:y}))))}function L6t(e){var n=e.prefixCls,r=e.locale,i=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(n,"-quarter-panel"),c=fI(e,"quarter"),u=ke(c,1),d=u[0],f=i.setMonth(o,0),p=function(_,S){return i.addMonth(_,S*3)},h=function(_){return wl(_,{locale:r,format:r.cellQuarterFormat,generateConfig:i})},g=function(){return fe({},"".concat(n,"-cell-in-view"),!0)},v=m.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){s("year")},tabIndex:-1,className:"".concat(n,"-year-btn")},wl(o,{locale:r,format:r.yearFormat,generateConfig:i}));return m.createElement(iw.Provider,{value:d},m.createElement("div",{className:l},m.createElement(pI,{superOffset:function(_){return i.addYear(o,_)},onChange:a,getStart:function(_){return i.setMonth(_,0)},getEnd:function(_){return i.setMonth(_,11)}},v),m.createElement(Sk,ft({},e,{titleFormat:r.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:p,getCellText:h,getCellClassName:g}))))}function $6t(e){var n=e.prefixCls,r=e.generateConfig,i=e.locale,o=e.value,a=e.hoverValue,s=e.hoverRangeValue,l=i.locale,c="".concat(n,"-week-panel-row"),u=function(f){var p={};if(s){var h=ke(s,2),g=h[0],v=h[1],y=l2(r,l,g,f),_=l2(r,l,v,f);p["".concat(c,"-range-start")]=y,p["".concat(c,"-range-end")]=_,p["".concat(c,"-range-hover")]=!y&&!_&&fU(r,g,v,f)}return a&&(p["".concat(c,"-hover")]=a.some(function(S){return l2(r,l,f,S)})),Ce(c,fe({},"".concat(c,"-selected"),!s&&l2(r,l,o,f)),p)};return m.createElement(hU,ft({},e,{mode:"week",panelName:"week",rowClassName:u}))}function F6t(e){var n=e.prefixCls,r=e.locale,i=e.generateConfig,o=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l=e.onModeChange,c="".concat(n,"-year-panel"),u=fI(e,"year"),d=ke(u,1),f=d[0],p=function(x){var T=Math.floor(i.getYear(x)/10)*10;return i.setYear(x,T)},h=function(x){var T=p(x);return i.addYear(T,9)},g=p(o),v=h(o),y=i.addYear(g,-1),_=function(x,T){return i.addYear(x,T)},S=function(x){return wl(x,{locale:r,format:r.cellYearFormat,generateConfig:i})},b=function(x){return fe({},"".concat(n,"-cell-in-view"),aC(i,x,g)||aC(i,x,v)||fU(i,g,v,x))},E=a?function(C,x){var T=i.setMonth(C,0),R=i.setDate(T,1),O=i.addYear(R,1),M=i.addDate(O,-1);return a(R,x)&&a(M,x)}:null,w=m.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:function(){l("decade")},tabIndex:-1,className:"".concat(n,"-decade-btn")},wl(g,{locale:r,format:r.yearFormat,generateConfig:i}),"-",wl(v,{locale:r,format:r.yearFormat,generateConfig:i}));return m.createElement(iw.Provider,{value:f},m.createElement("div",{className:c},m.createElement(pI,{superOffset:function(x){return i.addYear(o,x*10)},onChange:s,getStart:p,getEnd:h},w),m.createElement(Sk,ft({},e,{disabledDate:E,titleFormat:r.fieldYearFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:_,getCellText:S,getCellClassName:b}))))}var B6t={date:hU,datetime:A6t,week:$6t,month:k6t,quarter:L6t,year:F6t,decade:D6t,time:BHe};function j6t(e,n){var r,i=e.locale,o=e.generateConfig,a=e.direction,s=e.prefixCls,l=e.tabIndex,c=l===void 0?0:l,u=e.multiple,d=e.defaultValue,f=e.value,p=e.onChange,h=e.onSelect,g=e.defaultPickerValue,v=e.pickerValue,y=e.onPickerValueChange,_=e.mode,S=e.onPanelChange,b=e.picker,E=b===void 0?"date":b,w=e.showTime,C=e.hoverValue,x=e.hoverRangeValue,T=e.cellRender,R=e.dateRender,O=e.monthCellRender,M=e.components,P=M===void 0?{}:M,k=e.hideHeader,$=((r=m.useContext(bg))===null||r===void 0?void 0:r.prefixCls)||s||"rc-picker",U=m.useRef();m.useImperativeHandle(n,function(){return{nativeElement:U.current}});var z=EHe(e),D=ke(z,4),B=D[0],Y=D[1],q=D[2],K=D[3],H=_He(i,Y),G=E==="date"&&w?"datetime":E,Q=m.useMemo(function(){return CHe(G,q,K,B,H)},[G,q,K,B,H]),le=o.getNow(),Z=dr(E,{value:_,postState:function(Ve){return Ve||"date"}}),j=ke(Z,2),F=j[0],te=j[1],oe=F==="date"&&Q?"datetime":F,de=FHe(o,i,G),pe=dr(d,{value:f}),me=ke(pe,2),ve=me[0],he=me[1],be=m.useMemo(function(){var ge=rw(ve).filter(function(Ve){return Ve});return u?ge:ge.slice(0,1)},[ve,u]),we=Sr(function(ge){he(ge),p&&(ge===null||be.length!==ge.length||be.some(function(Ve,st){return!Bc(o,i,Ve,ge[st],G)}))&&(p==null||p(u?ge:ge[0]))}),De=Sr(function(ge){if(h==null||h(ge),F===E){var Ve=u?de(be,ge):[ge];we(Ve)}}),Ae=dr(g||be[0]||le,{value:v}),Ee=ke(Ae,2),Re=Ee[0],Te=Ee[1];m.useEffect(function(){be[0]&&!v&&Te(be[0])},[be[0]]);var Oe=function(Ve,st){S==null||S(Ve||v,st||F)},Ne=function(Ve){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Te(Ve),y==null||y(Ve),st&&Oe(Ve)},je=function(Ve,st){te(Ve),st&&Ne(st),Oe(st,Ve)},ne=function(Ve){if(De(Ve),Ne(Ve),F!==E){var st=["decade","year"],Je=[].concat(st,["month"]),ot={quarter:[].concat(st,["quarter"]),week:[].concat(Tt(Je),["week"]),date:[].concat(Tt(Je),["date"])},Xe=ot[E]||Je,Ze=Xe.indexOf(F),bt=Xe[Ze+1];bt&&je(bt,Ve)}},J=m.useMemo(function(){var ge,Ve;if(Array.isArray(x)){var st=ke(x,2);ge=st[0],Ve=st[1]}else ge=x;return!ge&&!Ve?null:(ge=ge||Ve,Ve=Ve||ge,o.isAfter(ge,Ve)?[Ve,ge]:[ge,Ve])},[x,o]),ae=fde(T,R,O),Se=P[oe]||B6t[oe]||hU,xe=m.useContext(u0),ue=m.useMemo(function(){return ee(ee({},xe),{},{hideHeader:k})},[xe,k]),Me="".concat($,"-panel"),$e=dU(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return m.createElement(u0.Provider,{value:ue},m.createElement("div",{ref:U,tabIndex:c,className:Ce(Me,fe({},"".concat(Me,"-rtl"),a==="rtl"))},m.createElement(Se,ft({},$e,{showTime:Q,prefixCls:$,locale:H,generateConfig:o,onModeChange:je,pickerValue:Re,onPickerValueChange:function(Ve){Ne(Ve,!0)},value:be[0],onSelect:ne,values:be,cellRender:ae,hoverRangeValue:J,hoverValue:C}))))}var lq=m.memo(m.forwardRef(j6t));function U6t(e){var n=e.picker,r=e.multiplePanel,i=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,s=e.onSubmit,l=e.range,c=e.hoverValue,u=m.useContext(bg),d=u.prefixCls,f=u.generateConfig,p=m.useCallback(function(S,b){return c2(f,n,S,b)},[f,n]),h=m.useMemo(function(){return p(i,1)},[i,p]),g=function(b){o(p(b,-1))},v={onCellDblClick:function(){a&&s()}},y=n==="time",_=ee(ee({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:y});return l?_.hoverRangeValue=c:_.hoverValue=c,r?m.createElement("div",{className:"".concat(d,"-panels")},m.createElement(u0.Provider,{value:ee(ee({},v),{},{hideNext:!0})},m.createElement(lq,_)),m.createElement(u0.Provider,{value:ee(ee({},v),{},{hidePrev:!0})},m.createElement(lq,ft({},_,{pickerValue:h,onPickerValueChange:g})))):m.createElement(u0.Provider,{value:ee({},v)},m.createElement(lq,_))}function pCe(e){return typeof e=="function"?e():e}function H6t(e){var n=e.prefixCls,r=e.presets,i=e.onClick,o=e.onHover;return r.length?m.createElement("div",{className:"".concat(n,"-presets")},m.createElement("ul",null,r.map(function(a,s){var l=a.label,c=a.value;return m.createElement("li",{key:s,onClick:function(){i(pCe(c))},onMouseEnter:function(){o(pCe(c))},onMouseLeave:function(){o(null)}},l)}))):null}function jHe(e){var n=e.panelRender,r=e.internalMode,i=e.picker,o=e.showNow,a=e.range,s=e.multiple,l=e.activeOffset,c=l===void 0?0:l,u=e.placement,d=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,h=e.onFocus,g=e.onBlur,v=e.onPanelMouseDown,y=e.direction,_=e.value,S=e.onSelect,b=e.isInvalid,E=e.defaultOpenValue,w=e.onOk,C=e.onSubmit,x=m.useContext(bg),T=x.prefixCls,R="".concat(T,"-panel"),O=y==="rtl",M=m.useRef(null),P=m.useRef(null),k=m.useState(0),$=ke(k,2),U=$[0],z=$[1],D=m.useState(0),B=ke(D,2),Y=B[0],q=B[1],K=function(we){we.offsetWidth&&z(we.offsetWidth)};m.useEffect(function(){if(a){var be,we=((be=M.current)===null||be===void 0?void 0:be.offsetWidth)||0,De=U-we;c<=De?q(0):q(c+we-U)}},[U,c,a]);function H(be){return be.filter(function(we){return we})}var G=m.useMemo(function(){return H(rw(_))},[_]),Q=i==="time"&&!G.length,le=m.useMemo(function(){return Q?H([E]):G},[Q,G,E]),Z=Q?E:G,j=m.useMemo(function(){return le.length?le.some(function(be){return b(be)}):!0},[le,b]),F=function(){Q&&S(E),w(),C()},te=m.createElement("div",{className:"".concat(T,"-panel-layout")},m.createElement(H6t,{prefixCls:T,presets:d,onClick:p,onHover:f}),m.createElement("div",null,m.createElement(U6t,ft({},e,{value:Z})),m.createElement(O6t,ft({},e,{showNow:s?!1:o,invalid:j,onSubmit:F}))));n&&(te=n(te));var oe="".concat(R,"-container"),de="marginLeft",pe="marginRight",me=m.createElement("div",{onMouseDown:v,tabIndex:-1,className:Ce(oe,"".concat(T,"-").concat(r,"-panel-container")),style:fe(fe({},O?pe:de,Y),O?de:pe,"auto"),onFocus:h,onBlur:g},te);if(a){var ve=uU(u,O),he=fHe(ve,O);me=m.createElement("div",{onMouseDown:v,ref:P,className:Ce("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(i,"-range-wrapper"))},m.createElement("div",{ref:M,className:"".concat(T,"-range-arrow"),style:fe({},he,c)}),m.createElement(Hc,{onResize:K},me))}return me}function UHe(e,n){var r=e.format,i=e.maskFormat,o=e.generateConfig,a=e.locale,s=e.preserveInvalidOnBlur,l=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,h=e.onInputChange,g=e.onInvalid,v=e.open,y=e.onOpenChange,_=e.onKeyDown,S=e.onChange,b=e.activeHelp,E=e.name,w=e.autoComplete,C=e.id,x=e.value,T=e.invalid,R=e.placeholder,O=e.disabled,M=e.activeIndex,P=e.allHelp,k=e.picker,$=function(H,G){var Q=o.locale.parse(a.locale,H,[G]);return Q&&o.isValidate(Q)?Q:null},U=r[0],z=m.useCallback(function(K){return wl(K,{locale:a,format:U,generateConfig:o})},[a,o,U]),D=m.useMemo(function(){return x.map(z)},[x,z]),B=m.useMemo(function(){var K=k==="time"?8:10,H=typeof U=="function"?U(o.getNow()).length:U.length;return Math.max(K,H)+2},[U,k,o]),Y=function(H){for(var G=0;G<r.length;G+=1){var Q=r[G];if(typeof Q=="string"){var le=$(H,Q);if(le)return le}}return!1},q=function(H){function G(Z){return H!==void 0?Z[H]:Z}var Q=Va(e,{aria:!0,data:!0}),le=ee(ee({},Q),{},{format:i,validateFormat:function(j){return!!Y(j)},preserveInvalidOnBlur:s,readOnly:l,required:c,"aria-required":u,name:E,autoComplete:w,size:B,id:G(C),value:G(D)||"",invalid:G(T),placeholder:G(R),active:M===H,helped:P||b&&M===H,disabled:G(O),onFocus:function(j){f(j,H)},onBlur:function(j){p(j,H)},onSubmit:d,onChange:function(j){h();var F=Y(j);if(F){g(!1,H),S(F,H);return}g(!!j,H)},onHelp:function(){y(!0,{index:H})},onKeyDown:function(j){var F=!1;if(_==null||_(j,function(){F=!0}),!j.defaultPrevented&&!F)switch(j.key){case"Escape":y(!1,{index:H});break;case"Enter":v||y(!0);break}}},n==null?void 0:n({valueTexts:D}));return Object.keys(le).forEach(function(Z){le[Z]===void 0&&delete le[Z]}),le};return[q,z]}var z6t=["onMouseEnter","onMouseLeave"];function HHe(e){return m.useMemo(function(){return dU(e,z6t)},[e])}var V6t=["icon","type"],G6t=["onClear"];function gU(e){var n=e.icon,r=e.type,i=Xt(e,V6t),o=m.useContext(bg),a=o.prefixCls;return n?m.createElement("span",ft({className:"".concat(a,"-").concat(r)},i),n):null}function vie(e){var n=e.onClear,r=Xt(e,G6t);return m.createElement(gU,ft({},r,{type:"clear",role:"button",onMouseDown:function(o){o.preventDefault()},onClick:function(o){o.stopPropagation(),n()}}))}var cq=["YYYY","MM","DD","HH","mm","ss","SSS"],hCe="顧",W6t=function(){function e(n){Ki(this,e),fe(this,"format",void 0),fe(this,"maskFormat",void 0),fe(this,"cells",void 0),fe(this,"maskCells",void 0),this.format=n;var r=cq.map(function(l){return"(".concat(l,")")}).join("|"),i=new RegExp(r,"g");this.maskFormat=n.replace(i,function(l){return hCe.repeat(l.length)});var o=new RegExp("(".concat(cq.join("|"),")")),a=(n.split(o)||[]).filter(function(l){return l}),s=0;this.cells=a.map(function(l){var c=cq.includes(l),u=s,d=s+l.length;return s=d,{text:l,mask:c,start:u,end:d}}),this.maskCells=this.cells.filter(function(l){return l.mask})}return Xi(e,[{key:"getSelection",value:function(r){var i=this.maskCells[r]||{},o=i.start,a=i.end;return[o||0,a||0]}},{key:"match",value:function(r){for(var i=0;i<this.maskFormat.length;i+=1){var o=this.maskFormat[i],a=r[i];if(!a||o!==hCe&&o!==a)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(r){for(var i=Number.MAX_SAFE_INTEGER,o=0,a=0;a<this.maskCells.length;a+=1){var s=this.maskCells[a],l=s.start,c=s.end;if(r>=l&&r<=c)return a;var u=Math.min(Math.abs(r-l),Math.abs(r-c));u<i&&(i=u,o=a)}return o}}]),e}();function Y6t(e){var n={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 n[e]}var q6t=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],yie=m.forwardRef(function(e,n){var r=e.active,i=e.showActiveCls,o=i===void 0?!0:i,a=e.suffixIcon,s=e.format,l=e.validateFormat,c=e.onChange;e.onInput;var u=e.helped,d=e.onHelp,f=e.onSubmit,p=e.onKeyDown,h=e.preserveInvalidOnBlur,g=h===void 0?!1:h,v=e.invalid,y=e.clearIcon,_=Xt(e,q6t),S=e.value,b=e.onFocus,E=e.onBlur,w=e.onMouseUp,C=m.useContext(bg),x=C.prefixCls,T=C.input,R=T===void 0?"input":T,O="".concat(x,"-input"),M=m.useState(!1),P=ke(M,2),k=P[0],$=P[1],U=m.useState(S),z=ke(U,2),D=z[0],B=z[1],Y=m.useState(""),q=ke(Y,2),K=q[0],H=q[1],G=m.useState(null),Q=ke(G,2),le=Q[0],Z=Q[1],j=m.useState(null),F=ke(j,2),te=F[0],oe=F[1],de=D||"";m.useEffect(function(){B(S)},[S]);var pe=m.useRef(),me=m.useRef();m.useImperativeHandle(n,function(){return{nativeElement:pe.current,inputElement:me.current,focus:function(ge){me.current.focus(ge)},blur:function(){me.current.blur()}}});var ve=m.useMemo(function(){return new W6t(s||"")},[s]),he=m.useMemo(function(){return u?[0,0]:ve.getSelection(le)},[ve,le,u]),be=ke(he,2),we=be[0],De=be[1],Ae=function(ge){ge&&ge!==s&&ge!==S&&d()},Ee=Sr(function($e){l($e)&&c($e),B($e),Ae($e)}),Re=function(ge){if(!s){var Ve=ge.target.value;Ae(Ve),B(Ve),c(Ve)}},Te=function(ge){var Ve=ge.clipboardData.getData("text");l(Ve)&&Ee(Ve)},Oe=m.useRef(!1),Ne=function(){Oe.current=!0},je=function(ge){var Ve=ge.target,st=Ve.selectionStart,Je=ve.getMaskCellIndex(st);Z(Je),oe({}),w==null||w(ge),Oe.current=!1},ne=function(ge){$(!0),Z(0),H(""),b(ge)},J=function(ge){E(ge)},ae=function(ge){$(!1),J(ge)};gde(r,function(){!r&&!g&&B(S)});var Se=function(ge){ge.key==="Enter"&&l(de)&&f(),p==null||p(ge)},xe=function(ge){Se(ge);var Ve=ge.key,st=null,Je=null,ot=De-we,Xe=s.slice(we,De),Ze=function(Ct){Z(function(It){var Wt=It+Ct;return Wt=Math.max(Wt,0),Wt=Math.min(Wt,ve.size()-1),Wt})},bt=function(Ct){var It=Y6t(Xe),Wt=ke(It,3),Bt=Wt[0],Vt=Wt[1],rn=Wt[2],tt=de.slice(we,De),it=Number(tt);if(isNaN(it))return String(rn||(Ct>0?Bt:Vt));var nt=it+Ct,vt=Vt-Bt+1;return String(Bt+(vt+nt-Bt)%vt)};switch(Ve){case"Backspace":case"Delete":st="",Je=Xe;break;case"ArrowLeft":st="",Ze(-1);break;case"ArrowRight":st="",Ze(1);break;case"ArrowUp":st="",Je=bt(1);break;case"ArrowDown":st="",Je=bt(-1);break;default:isNaN(Number(Ve))||(st=K+Ve,Je=st);break}if(st!==null&&(H(st),st.length>=ot&&(Ze(1),H(""))),Je!==null){var at=de.slice(0,we)+dde(Je,ot)+de.slice(De);Ee(at.slice(0,s.length))}oe({})},ue=m.useRef();ti(function(){if(!(!k||!s||Oe.current)){if(!ve.match(de)){Ee(s);return}return me.current.setSelectionRange(we,De),ue.current=Dr(function(){me.current.setSelectionRange(we,De)}),function(){Dr.cancel(ue.current)}}},[ve,s,k,de,le,we,De,te,Ee]);var Me=s?{onFocus:ne,onBlur:ae,onKeyDown:xe,onMouseDown:Ne,onMouseUp:je,onPaste:Te}:{};return m.createElement("div",{ref:pe,className:Ce(O,fe(fe({},"".concat(O,"-active"),r&&o),"".concat(O,"-placeholder"),u))},m.createElement(R,ft({ref:me,"aria-invalid":v,autoComplete:"off"},_,{onKeyDown:Se,onBlur:J},Me,{value:de,onChange:Re})),m.createElement(gU,{type:"suffix",icon:a}),y)}),K6t=["id","prefix","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","tabIndex"],X6t=["index"],Q6t=["insetInlineStart","insetInlineEnd"];function Z6t(e,n){var r=e.id,i=e.prefix,o=e.clearIcon,a=e.suffixIcon,s=e.separator,l=s===void 0?"~":s,c=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,f=e.className,p=e.style,h=e.onClick,g=e.onClear,v=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var y=e.disabled,_=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var b=e.onActiveOffset,E=e.placement,w=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,x=e.tabIndex,T=Xt(e,K6t),R=S==="rtl",O=m.useContext(bg),M=O.prefixCls,P=m.useMemo(function(){if(typeof r=="string")return[r];var me=r||{};return[me.start,me.end]},[r]),k=m.useRef(),$=m.useRef(),U=m.useRef(),z=function(ve){var he;return(he=[$,U][ve])===null||he===void 0?void 0:he.current};m.useImperativeHandle(n,function(){return{nativeElement:k.current,focus:function(ve){if(cn(ve)==="object"){var he,be=ve||{},we=be.index,De=we===void 0?0:we,Ae=Xt(be,X6t);(he=z(De))===null||he===void 0||he.focus(Ae)}else{var Ee;(Ee=z(ve??0))===null||Ee===void 0||Ee.focus()}},blur:function(){var ve,he;(ve=z(0))===null||ve===void 0||ve.blur(),(he=z(1))===null||he===void 0||he.blur()}}});var D=HHe(T),B=m.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),Y=UHe(ee(ee({},e),{},{id:P,placeholder:B})),q=ke(Y,1),K=q[0],H=uU(E,R),G=fHe(H,R),Q=H==null?void 0:H.toLowerCase().endsWith("right"),le=m.useState({position:"absolute",width:0}),Z=ke(le,2),j=Z[0],F=Z[1],te=Sr(function(){var me=z(c);if(me){var ve=me.nativeElement,he=ve.offsetWidth,be=ve.offsetLeft,we=ve.offsetParent,De=(we==null?void 0:we.offsetWidth)||0,Ae=Q?De-he-be:be;F(function(Ee){Ee.insetInlineStart,Ee.insetInlineEnd;var Re=Xt(Ee,Q6t);return ee(ee({},Re),{},fe({width:he},G,Ae))}),b(Ae)}});m.useEffect(function(){te()},[c]);var oe=o&&(v[0]&&!y[0]||v[1]&&!y[1]),de=C&&!y[0],pe=C&&!de&&!y[1];return m.createElement(Hc,{onResize:te},m.createElement("div",ft({},D,{className:Ce(M,"".concat(M,"-range"),fe(fe(fe(fe({},"".concat(M,"-focused"),u),"".concat(M,"-disabled"),y.every(function(me){return me})),"".concat(M,"-invalid"),_.some(function(me){return me})),"".concat(M,"-rtl"),R),f),style:p,ref:k,onClick:h,onMouseDown:function(ve){var he=ve.target;he!==$.current.inputElement&&he!==U.current.inputElement&&ve.preventDefault(),w==null||w(ve)}}),i&&m.createElement("div",{className:"".concat(M,"-prefix")},i),m.createElement(yie,ft({ref:$},K(0),{autoFocus:de,tabIndex:x,"date-range":"start"})),m.createElement("div",{className:"".concat(M,"-range-separator")},l),m.createElement(yie,ft({ref:U},K(1),{autoFocus:pe,tabIndex:x,"date-range":"end"})),m.createElement("div",{className:"".concat(M,"-active-bar"),style:j}),m.createElement(gU,{type:"suffix",icon:a}),oe&&m.createElement(vie,{icon:o,onClear:g})))}var J6t=m.forwardRef(Z6t);function gCe(e,n){var r=e??n;return Array.isArray(r)?r:[r,r]}function J3(e){return e===1?"end":"start"}function eFt(e,n){var r=THe(e,function(){var Er=e.disabled,nr=e.allowEmpty,lr=gCe(Er,!1),Kr=gCe(nr,!1);return{disabled:lr,allowEmpty:Kr}}),i=ke(r,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=o.prefixCls,f=o.styles,p=o.classNames,h=o.placement,g=o.defaultValue,v=o.value,y=o.needConfirm,_=o.onKeyDown,S=o.disabled,b=o.allowEmpty,E=o.disabledDate,w=o.minDate,C=o.maxDate,x=o.defaultOpen,T=o.open,R=o.onOpenChange,O=o.locale,M=o.generateConfig,P=o.picker,k=o.showNow,$=o.showToday,U=o.showTime,z=o.mode,D=o.onPanelChange,B=o.onCalendarChange,Y=o.onOk,q=o.defaultPickerValue,K=o.pickerValue,H=o.onPickerValueChange,G=o.inputReadOnly,Q=o.suffixIcon,le=o.onFocus,Z=o.onBlur,j=o.presets,F=o.ranges,te=o.components,oe=o.cellRender,de=o.dateRender,pe=o.monthCellRender,me=o.onClick,ve=RHe(n),he=OHe(T,x,S,R),be=ke(he,2),we=be[0],De=be[1],Ae=function(nr,lr){(S.some(function(Kr){return!Kr})||!nr)&&De(nr,lr)},Ee=kHe(M,O,l,!0,!1,g,v,B,Y),Re=ke(Ee,5),Te=Re[0],Oe=Re[1],Ne=Re[2],je=Re[3],ne=Re[4],J=Ne(),ae=NHe(S,b,we),Se=ke(ae,9),xe=Se[0],ue=Se[1],Me=Se[2],$e=Se[3],ge=Se[4],Ve=Se[5],st=Se[6],Je=Se[7],ot=Se[8],Xe=function(nr,lr){ue(!0),le==null||le(nr,{range:J3(lr??$e)})},Ze=function(nr,lr){ue(!1),Z==null||Z(nr,{range:J3(lr??$e)})},bt=m.useMemo(function(){if(!U)return null;var Er=U.disabledTime,nr=Er?function(lr){var Kr=J3($e),Pi=gHe(J,st,$e);return Er(lr,Kr,{from:Pi})}:void 0;return ee(ee({},U),{},{disabledTime:nr})},[U,$e,J,st]),at=dr([P,P],{value:z}),pt=ke(at,2),Ct=pt[0],It=pt[1],Wt=Ct[$e]||P,Bt=Wt==="date"&&bt?"datetime":Wt,Vt=Bt===P&&Bt!=="time",rn=$He(P,Wt,k,$,!0),tt=LHe(o,Te,Oe,Ne,je,S,l,xe,we,u),it=ke(tt,2),nt=it[0],vt=it[1],kt=C6t(J,S,st,M,O,E),Dt=vHe(J,u,b),Kt=ke(Dt,2),Ht=Kt[0],tn=Kt[1],on=MHe(M,O,J,Ct,we,$e,a,Vt,q,K,bt==null?void 0:bt.defaultOpenValue,H,w,C),sn=ke(on,2),Jt=sn[0],En=sn[1],Pt=Sr(function(Er,nr,lr){var Kr=eP(Ct,$e,nr);if((Kr[0]!==Ct[0]||Kr[1]!==Ct[1])&&It(Kr),D&&lr!==!1){var Pi=Tt(J);Er&&(Pi[$e]=Er),D(Pi,Kr)}}),Qt=function(nr,lr){return eP(J,lr,nr)},ln=function(nr,lr){var Kr=J;nr&&(Kr=Qt(nr,$e)),Je($e);var Pi=Ve(Kr);je(Kr),nt($e,Pi===null),Pi===null?Ae(!1,{force:!0}):lr||ve.current.focus({index:Pi})},jt=function(nr){var lr,Kr=nr.target.getRootNode();if(!ve.current.nativeElement.contains((lr=Kr.activeElement)!==null&&lr!==void 0?lr:document.activeElement)){var Pi=S.findIndex(function(Dl){return!Dl});Pi>=0&&ve.current.focus({index:Pi})}Ae(!0),me==null||me(nr)},Lt=function(){vt(null),Ae(!1,{force:!0})},en=m.useState(null),Ue=ke(en,2),Zt=Ue[0],Et=Ue[1],Gt=m.useState(null),zt=ke(Gt,2),Vn=zt[0],sr=zt[1],A=m.useMemo(function(){return Vn||J},[J,Vn]);m.useEffect(function(){we||sr(null)},[we]);var W=m.useState(0),ce=ke(W,2),Pe=ce[0],qe=ce[1],gt=IHe(j,F),Yt=function(nr){sr(nr),Et("preset")},Nn=function(nr){var lr=vt(nr);lr&&Ae(!1,{force:!0})},Jn=function(nr){ln(nr)},Ci=function(nr){sr(nr?Qt(nr,$e):null),Et("cell")},wi=function(nr){Ae(!0),Xe(nr)},to=function(){Me("panel")},Vr=function(nr){var lr=eP(J,$e,nr);je(lr),!y&&!s&&a===Bt&&ln(nr)},wn=function(){Ae(!1)},Bn=fde(oe,de,pe,J3($e)),ni=J[$e]||null,yn=Sr(function(Er){return u(Er,{activeIndex:$e})}),Sn=m.useMemo(function(){var Er=Va(o,!1),nr=Wr(o,[].concat(Tt(Object.keys(Er)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return nr},[o]),ur=m.createElement(jHe,ft({},Sn,{showNow:rn,showTime:bt,range:!0,multiplePanel:Vt,activeOffset:Pe,placement:h,disabledDate:kt,onFocus:wi,onBlur:Ze,onPanelMouseDown:to,picker:P,mode:Wt,internalMode:Bt,onPanelChange:Pt,format:c,value:ni,isInvalid:yn,onChange:null,onSelect:Vr,pickerValue:Jt,defaultOpenValue:rw(U==null?void 0:U.defaultOpenValue)[$e],onPickerValueChange:En,hoverValue:A,onHover:Ci,needConfirm:y,onSubmit:ln,onOk:ne,presets:gt,onPresetHover:Yt,onPresetSubmit:Nn,onNow:Jn,cellRender:Bn})),qr=function(nr,lr){var Kr=Qt(nr,lr);je(Kr)},zi=function(){Me("input")},Qo=function(nr,lr){var Kr=st.length,Pi=st[Kr-1];if(Kr&&Pi!==lr&&y&&!b[Pi]&&!ot(Pi)&&J[Pi]){ve.current.focus({index:Pi});return}Me("input"),Ae(!0,{inherit:!0}),$e!==lr&&we&&!y&&s&&ln(null,!0),ge(lr),Xe(nr,lr)},gr=function(nr,lr){if(Ae(!1),!y&&Me()==="input"){var Kr=Ve(J);nt($e,Kr===null)}Ze(nr,lr)},Oo=function(nr,lr){nr.key==="Tab"&&ln(null,!0),_==null||_(nr,lr)},Pa=m.useMemo(function(){return{prefixCls:d,locale:O,generateConfig:M,button:te.button,input:te.input}},[d,O,M,te.button,te.input]);return ti(function(){we&&$e!==void 0&&Pt(null,P,!1)},[we,$e,P]),ti(function(){var Er=Me();!we&&Er==="input"&&(Ae(!1),ln(null,!0)),!we&&s&&!y&&Er==="panel"&&(Ae(!0),ln())},[we]),m.createElement(bg.Provider,{value:Pa},m.createElement(pHe,ft({},mHe(o),{popupElement:ur,popupStyle:f.popup,popupClassName:p.popup,visible:we,onClose:wn,range:!0}),m.createElement(J6t,ft({},o,{ref:ve,suffixIcon:Q,activeIndex:xe||we?$e:null,activeHelp:!!Vn,allHelp:!!Vn&&Zt==="preset",focused:xe,onFocus:Qo,onBlur:gr,onKeyDown:Oo,onSubmit:ln,value:A,maskFormat:c,onChange:qr,onInputChange:zi,format:l,inputReadOnly:G,disabled:S,open:we,onOpenChange:Ae,onClick:jt,onClear:Lt,invalid:Ht,onInvalid:tn,onActiveOffset:qe}))))}var tFt=m.forwardRef(eFt);function nFt(e){var n=e.prefixCls,r=e.value,i=e.onRemove,o=e.removeIcon,a=o===void 0?"×":o,s=e.formatDate,l=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(n,"-selector"),f="".concat(n,"-selection"),p="".concat(f,"-overflow");function h(y,_){return m.createElement("span",{className:Ce("".concat(f,"-item")),title:typeof y=="string"?y:null},m.createElement("span",{className:"".concat(f,"-item-content")},y),!l&&_&&m.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:_,className:"".concat(f,"-item-remove")},a))}function g(y){var _=s(y),S=function(E){E&&E.stopPropagation(),i(y)};return h(_,S)}function v(y){var _="+ ".concat(y.length," ...");return h(_)}return m.createElement("div",{className:d},m.createElement(zh,{prefixCls:p,data:r,renderItem:g,renderRest:v,itemKey:function(_){return s(_)},maxCount:c}),!r.length&&m.createElement("span",{className:"".concat(n,"-selection-placeholder")},u))}var rFt=["id","open","prefix","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","tabIndex","removeIcon"];function iFt(e,n){e.id;var r=e.open,i=e.prefix,o=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var l=e.locale,c=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,p=e.onClick,h=e.onClear,g=e.internalPicker,v=e.value,y=e.onChange,_=e.onSubmit;e.onInputChange;var S=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var E=e.disabled,w=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var x=e.onMouseDown;e.required,e["aria-required"];var T=e.autoFocus,R=e.tabIndex,O=e.removeIcon,M=Xt(e,rFt),P=C==="rtl",k=m.useContext(bg),$=k.prefixCls,U=m.useRef(),z=m.useRef();m.useImperativeHandle(n,function(){return{nativeElement:U.current,focus:function(j){var F;(F=z.current)===null||F===void 0||F.focus(j)},blur:function(){var j;(j=z.current)===null||j===void 0||j.blur()}}});var D=HHe(M),B=function(j){y([j])},Y=function(j){var F=v.filter(function(te){return te&&!Bc(c,l,te,j,g)});y(F),r||_()},q=UHe(ee(ee({},e),{},{onChange:B}),function(Z){var j=Z.valueTexts;return{value:j[0]||"",active:s}}),K=ke(q,2),H=K[0],G=K[1],Q=!!(o&&v.length&&!E),le=S?m.createElement(m.Fragment,null,m.createElement(nFt,{prefixCls:$,value:v,onRemove:Y,formatDate:G,maxTagCount:b,disabled:E,removeIcon:O,placeholder:u}),m.createElement("input",{className:"".concat($,"-multiple-input"),value:v.map(G).join(","),ref:z,readOnly:!0,autoFocus:T,tabIndex:R}),m.createElement(gU,{type:"suffix",icon:a}),Q&&m.createElement(vie,{icon:o,onClear:h})):m.createElement(yie,ft({ref:z},H(),{autoFocus:T,tabIndex:R,suffixIcon:a,clearIcon:Q&&m.createElement(vie,{icon:o,onClear:h}),showActiveCls:!1}));return m.createElement("div",ft({},D,{className:Ce($,fe(fe(fe(fe(fe({},"".concat($,"-multiple"),S),"".concat($,"-focused"),s),"".concat($,"-disabled"),E),"".concat($,"-invalid"),w),"".concat($,"-rtl"),P),d),style:f,ref:U,onClick:p,onMouseDown:function(j){var F,te=j.target;te!==((F=z.current)===null||F===void 0?void 0:F.inputElement)&&j.preventDefault(),x==null||x(j)}}),i&&m.createElement("div",{className:"".concat($,"-prefix")},i),le)}var oFt=m.forwardRef(iFt);function aFt(e,n){var r=THe(e),i=ke(r,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=o,f=d.prefixCls,p=d.styles,h=d.classNames,g=d.order,v=d.defaultValue,y=d.value,_=d.needConfirm,S=d.onChange,b=d.onKeyDown,E=d.disabled,w=d.disabledDate,C=d.minDate,x=d.maxDate,T=d.defaultOpen,R=d.open,O=d.onOpenChange,M=d.locale,P=d.generateConfig,k=d.picker,$=d.showNow,U=d.showToday,z=d.showTime,D=d.mode,B=d.onPanelChange,Y=d.onCalendarChange,q=d.onOk,K=d.multiple,H=d.defaultPickerValue,G=d.pickerValue,Q=d.onPickerValueChange,le=d.inputReadOnly,Z=d.suffixIcon,j=d.removeIcon,F=d.onFocus,te=d.onBlur,oe=d.presets,de=d.components,pe=d.cellRender,me=d.dateRender,ve=d.monthCellRender,he=d.onClick,be=RHe(n);function we(yn){return yn===null?null:K?yn:yn[0]}var De=FHe(P,M,a),Ae=OHe(R,T,[E],O),Ee=ke(Ae,2),Re=Ee[0],Te=Ee[1],Oe=function(Sn,ur,qr){if(Y){var zi=ee({},qr);delete zi.range,Y(we(Sn),we(ur),zi)}},Ne=function(Sn){q==null||q(we(Sn))},je=kHe(P,M,l,!1,g,v,y,Oe,Ne),ne=ke(je,5),J=ne[0],ae=ne[1],Se=ne[2],xe=ne[3],ue=ne[4],Me=Se(),$e=NHe([E]),ge=ke($e,4),Ve=ge[0],st=ge[1],Je=ge[2],ot=ge[3],Xe=function(Sn){st(!0),F==null||F(Sn,{})},Ze=function(Sn){st(!1),te==null||te(Sn,{})},bt=dr(k,{value:D}),at=ke(bt,2),pt=at[0],Ct=at[1],It=pt==="date"&&z?"datetime":pt,Wt=$He(k,pt,$,U),Bt=S&&function(yn,Sn){S(we(yn),we(Sn))},Vt=LHe(ee(ee({},o),{},{onChange:Bt}),J,ae,Se,xe,[],l,Ve,Re,u),rn=ke(Vt,2),tt=rn[1],it=vHe(Me,u),nt=ke(it,2),vt=nt[0],kt=nt[1],Dt=m.useMemo(function(){return vt.some(function(yn){return yn})},[vt]),Kt=function(Sn,ur){if(Q){var qr=ee(ee({},ur),{},{mode:ur.mode[0]});delete qr.range,Q(Sn[0],qr)}},Ht=MHe(P,M,Me,[pt],Re,ot,a,!1,H,G,rw(z==null?void 0:z.defaultOpenValue),Kt,C,x),tn=ke(Ht,2),on=tn[0],sn=tn[1],Jt=Sr(function(yn,Sn,ur){if(Ct(Sn),B&&ur!==!1){var qr=yn||Me[Me.length-1];B(qr,Sn)}}),En=function(){tt(Se()),Te(!1,{force:!0})},Pt=function(Sn){!E&&!be.current.nativeElement.contains(document.activeElement)&&be.current.focus(),Te(!0),he==null||he(Sn)},Qt=function(){tt(null),Te(!1,{force:!0})},ln=m.useState(null),jt=ke(ln,2),Lt=jt[0],en=jt[1],Ue=m.useState(null),Zt=ke(Ue,2),Et=Zt[0],Gt=Zt[1],zt=m.useMemo(function(){var yn=[Et].concat(Tt(Me)).filter(function(Sn){return Sn});return K?yn:yn.slice(0,1)},[Me,Et,K]),Vn=m.useMemo(function(){return!K&&Et?[Et]:Me.filter(function(yn){return yn})},[Me,Et,K]);m.useEffect(function(){Re||Gt(null)},[Re]);var sr=IHe(oe),A=function(Sn){Gt(Sn),en("preset")},W=function(Sn){var ur=K?De(Se(),Sn):[Sn],qr=tt(ur);qr&&!K&&Te(!1,{force:!0})},ce=function(Sn){W(Sn)},Pe=function(Sn){Gt(Sn),en("cell")},qe=function(Sn){Te(!0),Xe(Sn)},gt=function(Sn){if(Je("panel"),!(K&&It!==k)){var ur=K?De(Se(),Sn):[Sn];xe(ur),!_&&!s&&a===It&&En()}},Yt=function(){Te(!1)},Nn=fde(pe,me,ve),Jn=m.useMemo(function(){var yn=Va(o,!1),Sn=Wr(o,[].concat(Tt(Object.keys(yn)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ee(ee({},Sn),{},{multiple:o.multiple})},[o]),Ci=m.createElement(jHe,ft({},Jn,{showNow:Wt,showTime:z,disabledDate:w,onFocus:qe,onBlur:Ze,picker:k,mode:pt,internalMode:It,onPanelChange:Jt,format:c,value:Me,isInvalid:u,onChange:null,onSelect:gt,pickerValue:on,defaultOpenValue:z==null?void 0:z.defaultOpenValue,onPickerValueChange:sn,hoverValue:zt,onHover:Pe,needConfirm:_,onSubmit:En,onOk:ue,presets:sr,onPresetHover:A,onPresetSubmit:W,onNow:ce,cellRender:Nn})),wi=function(Sn){xe(Sn)},to=function(){Je("input")},Vr=function(Sn){Je("input"),Te(!0,{inherit:!0}),Xe(Sn)},wn=function(Sn){Te(!1),Ze(Sn)},Bn=function(Sn,ur){Sn.key==="Tab"&&En(),b==null||b(Sn,ur)},ni=m.useMemo(function(){return{prefixCls:f,locale:M,generateConfig:P,button:de.button,input:de.input}},[f,M,P,de.button,de.input]);return ti(function(){Re&&ot!==void 0&&Jt(null,k,!1)},[Re,ot,k]),ti(function(){var yn=Je();!Re&&yn==="input"&&(Te(!1),En()),!Re&&s&&!_&&yn==="panel"&&(Te(!0),En())},[Re]),m.createElement(bg.Provider,{value:ni},m.createElement(pHe,ft({},mHe(o),{popupElement:Ci,popupStyle:p.popup,popupClassName:h.popup,visible:Re,onClose:Yt}),m.createElement(oFt,ft({},o,{ref:be,suffixIcon:Z,removeIcon:j,activeHelp:!!Et,allHelp:!!Et&&Lt==="preset",focused:Ve,onFocus:Vr,onBlur:wn,onKeyDown:Bn,onSubmit:En,value:Vn,maskFormat:c,onChange:wi,onInputChange:to,internalPicker:a,format:l,inputReadOnly:le,disabled:E,open:Re,onOpenChange:Te,onClick:Pt,onClear:Qt,invalid:Dt,onInvalid:function(Sn){kt(Sn,0)}}))))}var sFt=m.forwardRef(aFt);const zHe=m.createContext(null),lFt=zHe.Provider,VHe=m.createContext(null),cFt=VHe.Provider;var uFt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],GHe=m.forwardRef(function(e,n){var r=e.prefixCls,i=r===void 0?"rc-checkbox":r,o=e.className,a=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,p=e.title,h=e.onChange,g=Xt(e,uFt),v=m.useRef(null),y=m.useRef(null),_=dr(u,{value:s}),S=ke(_,2),b=S[0],E=S[1];m.useImperativeHandle(n,function(){return{focus:function(T){var R;(R=v.current)===null||R===void 0||R.focus(T)},blur:function(){var T;(T=v.current)===null||T===void 0||T.blur()},input:v.current,nativeElement:y.current}});var w=Ce(i,o,fe(fe({},"".concat(i,"-checked"),b),"".concat(i,"-disabled"),l)),C=function(T){l||("checked"in e||E(T.target.checked),h==null||h({target:ee(ee({},e),{},{type:f,checked:T.target.checked}),stopPropagation:function(){T.stopPropagation()},preventDefault:function(){T.preventDefault()},nativeEvent:T.nativeEvent}))};return m.createElement("span",{className:w,title:p,style:a,ref:y},m.createElement("input",ft({},g,{className:"".concat(i,"-input"),ref:v,onChange:C,disabled:l,checked:!!b,type:f})),m.createElement("span",{className:"".concat(i,"-inner")}))});function WHe(e){const n=V.useRef(null),r=()=>{Dr.cancel(n.current),n.current=null};return[()=>{r(),n.current=Dr(()=>{n.current=null})},a=>{n.current&&(a.stopPropagation(),r()),e==null||e(a)}]}const dFt=e=>{const{componentCls:n,antCls:r}=e,i=`${n}-group`;return{[i]:Object.assign(Object.assign({},li(e)),{display:"inline-block",fontSize:0,[`&${i}-rtl`]:{direction:"rtl"},[`&${i}-block`]:{display:"flex"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},fFt=e=>{const{componentCls:n,wrapperMarginInlineEnd:r,colorPrimary:i,radioSize:o,motionDurationSlow:a,motionDurationMid:s,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:h,dotColorDisabled:g,lineType:v,radioColor:y,radioBgColor:_,calc:S}=e,b=`${n}-inner`,w=S(o).sub(S(4).mul(2)),C=S(1).mul(o).equal({unit:!0});return{[`${n}-wrapper`]:Object.assign(Object.assign({},li(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${n}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${n}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Ye(d)} ${v} ${i}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[n]:Object.assign(Object.assign({},li(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${n}-wrapper:hover &,
|
||
&:hover ${b}`]:{borderColor:i},[`${n}-input:focus-visible + ${b}`]:Object.assign({},Xy(e)),[`${n}:hover::after, ${n}-wrapper:hover &::after`]:{visibility:"visible"},[`${n}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:S(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:S(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:y,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${s}`},[`${n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${n}-checked`]:{[b]:{borderColor:i,backgroundColor:_,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${n}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${n}-input`]:{cursor:"not-allowed"},[`${n}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${n}-checked`]:{[b]:{"&::after":{transform:`scale(${S(w).div(o).equal()})`}}}},[`span${n} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},pFt=e=>{const{buttonColor:n,controlHeight:r,componentCls:i,lineWidth:o,lineType:a,colorBorder:s,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:p,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:y,borderRadiusSM:_,borderRadiusLG:S,buttonCheckedBg:b,buttonSolidCheckedColor:E,colorTextDisabled:w,colorBgContainerDisabled:C,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:T,colorPrimary:R,colorPrimaryHover:O,colorPrimaryActive:M,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:$,calc:U}=e;return{[`${i}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:u,paddingBlock:0,color:n,fontSize:d,lineHeight:Ye(U(r).sub(U(o).mul(2)).equal()),background:f,border:`${Ye(o)} ${a} ${s}`,borderBlockStartWidth:U(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:n},[`> ${i}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:U(o).mul(-1).equal(),insetInlineStart:U(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:s,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${Ye(o)} ${a} ${s}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${i}-group-large &`]:{height:h,fontSize:p,lineHeight:Ye(U(h).sub(U(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${i}-group-small &`]:{height:g,paddingInline:U(v).sub(o).equal(),paddingBlock:0,lineHeight:Ye(U(g).sub(U(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},"&:hover":{position:"relative",color:R},"&:has(:focus-visible)":Object.assign({},Xy(e)),[`${i}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${i}-button-wrapper-disabled)`]:{zIndex:1,color:R,background:b,borderColor:R,"&::before":{backgroundColor:R},"&:first-child":{borderColor:R},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${i}-group-solid &-checked:not(${i}-button-wrapper-disabled)`]:{color:E,background:P,borderColor:P,"&:hover":{color:E,background:k,borderColor:k},"&:active":{color:E,background:$,borderColor:$}},"&-disabled":{color:w,backgroundColor:C,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:C,borderColor:s}},[`&-disabled${i}-button-wrapper-checked`]:{color:T,backgroundColor:x,borderColor:s,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},hFt=e=>{const{wireframe:n,padding:r,marginXS:i,lineWidth:o,fontSizeLG:a,colorText:s,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:h,colorWhite:g}=e,v=4,y=a,_=n?y-v*2:y-(v+o)*2;return{radioSize:y,dotSize:_,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:h,buttonBg:l,buttonCheckedBg:l,buttonColor:s,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:r-o,wrapperMarginInlineEnd:i,radioColor:n?f:g,radioBgColor:n?l:f}},YHe=Yr("Radio",e=>{const{controlOutline:n,controlOutlineWidth:r}=e,i=`0 0 0 ${Ye(r)} ${n}`,a=wr(e,{radioFocusShadow:i,radioButtonFocusShadow:i});return[dFt(a),fFt(a),pFt(a)]},hFt,{unitless:{radioSize:!0,dotSize:!0}});var gFt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const mFt=(e,n)=>{var r,i;const o=m.useContext(zHe),a=m.useContext(VHe),{getPrefixCls:s,direction:l,radio:c}=m.useContext(Cn),u=m.useRef(null),d=Il(n,u),{isFormItemInput:f}=m.useContext(qs),p=z=>{var D,B;(D=e.onChange)===null||D===void 0||D.call(e,z),(B=o==null?void 0:o.onChange)===null||B===void 0||B.call(o,z)},{prefixCls:h,className:g,rootClassName:v,children:y,style:_,title:S}=e,b=gFt(e,["prefixCls","className","rootClassName","children","style","title"]),E=s("radio",h),w=((o==null?void 0:o.optionType)||a)==="button",C=w?`${E}-button`:E,x=po(E),[T,R,O]=YHe(E,x),M=Object.assign({},b),P=m.useContext(xs);o&&(M.name=o.name,M.onChange=p,M.checked=e.value===o.value,M.disabled=(r=M.disabled)!==null&&r!==void 0?r:o.disabled),M.disabled=(i=M.disabled)!==null&&i!==void 0?i:P;const k=Ce(`${C}-wrapper`,{[`${C}-wrapper-checked`]:M.checked,[`${C}-wrapper-disabled`]:M.disabled,[`${C}-wrapper-rtl`]:l==="rtl",[`${C}-wrapper-in-form-item`]:f,[`${C}-wrapper-block`]:!!(o!=null&&o.block)},c==null?void 0:c.className,g,v,R,O,x),[$,U]=WHe(M.onClick);return T(m.createElement(F9,{component:"Radio",disabled:M.disabled},m.createElement("label",{className:k,style:Object.assign(Object.assign({},c==null?void 0:c.style),_),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:S,onClick:$},m.createElement(GHe,Object.assign({},M,{className:Ce(M.className,{[$9]:!w}),type:"radio",prefixCls:C,ref:d,onClick:U})),y!==void 0?m.createElement("span",null,y):null)))},W8=m.forwardRef(mFt),vFt=m.forwardRef((e,n)=>{const{getPrefixCls:r,direction:i}=m.useContext(Cn),o=X9(),{prefixCls:a,className:s,rootClassName:l,options:c,buttonStyle:u="outline",disabled:d,children:f,size:p,style:h,id:g,optionType:v,name:y=o,defaultValue:_,value:S,block:b=!1,onChange:E,onMouseEnter:w,onMouseLeave:C,onFocus:x,onBlur:T}=e,[R,O]=dr(_,{value:S}),M=m.useCallback(H=>{const G=R,Q=H.target.value;"value"in e||O(Q),Q!==G&&(E==null||E(H))},[R,O,E]),P=r("radio",a),k=`${P}-group`,$=po(P),[U,z,D]=YHe(P,$);let B=f;c&&c.length>0&&(B=c.map(H=>typeof H=="string"||typeof H=="number"?m.createElement(W8,{key:H.toString(),prefixCls:P,disabled:d,value:H,checked:R===H},H):m.createElement(W8,{key:`radio-group-value-options-${H.value}`,prefixCls:P,disabled:H.disabled||d,value:H.value,checked:R===H.value,title:H.title,style:H.style,id:H.id,required:H.required},H.label)));const Y=Xs(p),q=Ce(k,`${k}-${u}`,{[`${k}-${Y}`]:Y,[`${k}-rtl`]:i==="rtl",[`${k}-block`]:b},s,l,z,D,$),K=m.useMemo(()=>({onChange:M,value:R,disabled:d,name:y,optionType:v,block:b}),[M,R,d,y,v,b]);return U(m.createElement("div",Object.assign({},Va(e,{aria:!0,data:!0}),{className:q,style:h,onMouseEnter:w,onMouseLeave:C,onFocus:x,onBlur:T,id:g,ref:n}),m.createElement(lFt,{value:K},B)))}),yFt=m.memo(vFt);var _Ft=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const bFt=(e,n)=>{const{getPrefixCls:r}=m.useContext(Cn),{prefixCls:i}=e,o=_Ft(e,["prefixCls"]),a=r("radio",i);return m.createElement(cFt,{value:"button"},m.createElement(W8,Object.assign({prefixCls:a},o,{type:"radio",ref:n})))},SFt=m.forwardRef(bFt),ya=W8;ya.Button=SFt;ya.Group=yFt;ya.__ANT_RADIO=!0;function mU(e){return wr(e,{inputAffixPadding:e.paddingXXS})}const vU=e=>{const{controlHeight:n,fontSize:r,lineHeight:i,lineWidth:o,controlHeightSM:a,controlHeightLG:s,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:h,colorPrimary:g,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:_,colorWarningOutline:S,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((n-r*i)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-r*i)/2*10)/10-o,0),paddingBlockLG:Math.ceil((s-l*c)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:g,hoverBorderColor:h,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${_}`,warningActiveShadow:`0 0 0 ${v}px ${S}`,hoverBg:b,activeBg:b,inputFontSize:r,inputFontSizeLG:l,inputFontSizeSM:r}},EFt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),vde=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({},EFt(wr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),qHe=(e,n)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:n.borderColor,"&:hover":{borderColor:n.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:n.activeBorderColor,boxShadow:n.activeShadow,outline:0,backgroundColor:e.activeBg}}),mCe=(e,n)=>({[`&${e.componentCls}-status-${n.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qHe(e,n)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:n.affixColor}}),[`&${e.componentCls}-status-${n.status}${e.componentCls}-disabled`]:{borderColor:n.borderColor}}),yde=(e,n)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qHe(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},vde(e))}),mCe(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),mCe(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),n)}),vCe=(e,n)=>({[`&${e.componentCls}-group-wrapper-status-${n.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:n.addonBorderColor,color:n.addonColor}}}),KHe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},vCe(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),vCe(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},vde(e))}})}),_de=(e,n)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},n)}},XHe=(e,n)=>({background:n.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:n==null?void 0:n.inputColor},"&:hover":{background:n.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:n.activeBorderColor,backgroundColor:e.activeBg}}),yCe=(e,n)=>({[`&${e.componentCls}-status-${n.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},XHe(e,n)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:n.affixColor}})}),bde=(e,n)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},XHe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},vde(e))}),yCe(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),yCe(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),n)}),_Ce=(e,n)=>({[`&${e.componentCls}-group-wrapper-status-${n.status}`]:{[`${e.componentCls}-group-addon`]:{background:n.addonBg,color:n.addonColor}}}),QHe=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:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},_Ce(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),_Ce(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:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Sde=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ZHe=e=>{const{paddingBlockLG:n,lineHeightLG:r,borderRadiusLG:i,paddingInlineLG:o}=e;return{padding:`${Ye(n)} ${Ye(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:i}},JHe=e=>({padding:`${Ye(e.paddingBlockSM)} ${Ye(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),yU=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ye(e.paddingBlock)} ${Ye(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Sde(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({},ZHe(e)),"&-sm":Object.assign({},JHe(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),eze=e=>{const{componentCls:n,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${n}, &-lg > ${n}-group-addon`]:Object.assign({},ZHe(e)),[`&-sm ${n}, &-sm > ${n}-group-addon`]:Object.assign({},JHe(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${n}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${n}-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 ${Ye(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Ye(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ye(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Ye(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${Ye(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[n]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${n}-search-with-button &`]:{zIndex:0}}},[`> ${n}:first-child, ${n}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${n}-affix-wrapper`]:{[`&:not(:first-child) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${n}:last-child, ${n}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${n}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${n}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${n}-group-compact`]:Object.assign(Object.assign({display:"block"},Im()),{[`${n}-group-addon, ${n}-group-wrap, > ${n}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
||
& > ${n}-affix-wrapper,
|
||
& > ${n}-number-affix-wrapper,
|
||
& > ${r}-picker-range
|
||
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[n]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
|
||
& > ${r}-select-auto-complete ${n},
|
||
& > ${r}-cascader-picker ${n},
|
||
& > ${n}-group-wrapper ${n}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
||
& > ${r}-select:first-child > ${r}-select-selector,
|
||
& > ${r}-select-auto-complete:first-child ${n},
|
||
& > ${r}-cascader-picker:first-child ${n}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
||
& > ${r}-select:last-child > ${r}-select-selector,
|
||
& > ${r}-cascader-picker:last-child ${n},
|
||
& > ${r}-cascader-picker-focused:last-child ${n}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${n}`]:{verticalAlign:"top"},[`${n}-group-wrapper + ${n}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${n}-affix-wrapper`]:{borderRadius:0}},[`${n}-group-wrapper:not(:last-child)`]:{[`&${n}-search > ${n}-group`]:{[`& > ${n}-group-addon > ${n}-search-button`]:{borderRadius:0},[`& > ${n}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},CFt=e=>{const{componentCls:n,controlHeightSM:r,lineWidth:i,calc:o}=e,s=o(r).sub(o(i).mul(2)).sub(16).div(2).equal();return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),yU(e)),yde(e)),bde(e)),_de(e)),{'&[type="color"]':{height:e.controlHeight,[`&${n}-lg`]:{height:e.controlHeightLG},[`&${n}-sm`]:{height:r,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},wFt=e=>{const{componentCls:n}=e;return{[`${n}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ye(e.inputAffixPadding)}`}}}},xFt=e=>{const{componentCls:n,inputAffixPadding:r,colorTextDescription:i,motionDurationSlow:o,colorIcon:a,colorIconHover:s,iconCls:l}=e,c=`${n}-affix-wrapper`,u=`${n}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},yU(e)),{display:"inline-flex",[`&:not(${n}-disabled):hover`]:{zIndex:1,[`${n}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${n}`]:{padding:0},[`> input${n}, > textarea${n}`]:{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"'},[n]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:i},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),wFt(e)),{[`${l}${n}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}}),[u]:{[`${l}${n}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},TFt=e=>{const{componentCls:n,borderRadiusLG:r,borderRadiusSM:i}=e;return{[`${n}-group`]:Object.assign(Object.assign(Object.assign({},li(e)),eze(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${n}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${n}-group-addon`]:{borderRadius:i}}},KHe(e)),QHe(e)),{[`&:not(${n}-compact-first-item):not(${n}-compact-last-item)${n}-compact-item`]:{[`${n}, ${n}-group-addon`]:{borderRadius:0}},[`&:not(${n}-compact-last-item)${n}-compact-first-item`]:{[`${n}, ${n}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${n}-compact-first-item)${n}-compact-last-item`]:{[`${n}, ${n}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${n}-compact-last-item)${n}-compact-item`]:{[`${n}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${n}-compact-first-item)${n}-compact-item`]:{[`${n}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},OFt=e=>{const{componentCls:n,antCls:r}=e,i=`${n}-search`;return{[i]:{[n]:{"&:hover, &:focus":{[`+ ${n}-group-addon ${i}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${n}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${n}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${n}-group`]:{[`> ${n}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${i}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${i}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${i}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${n}-affix-wrapper, ${i}-button`]:{height:e.controlHeightLG}},"&-small":{[`${n}-affix-wrapper, ${i}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${n}-compact-item`]:{[`&:not(${n}-compact-last-item)`]:{[`${n}-group-addon`]:{[`${n}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${n}-compact-first-item)`]:{[`${n},${n}-affix-wrapper`]:{borderRadius:0}},[`> ${n}-group-addon ${n}-search-button,
|
||
> ${n},
|
||
${n}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${n}-affix-wrapper-focused`]:{zIndex:2}}}}},RFt=e=>{const{componentCls:n,paddingLG:r}=e,i=`${n}-textarea`;return{[i]:{position:"relative","&-show-count":{[`> ${n}`]:{height:"100%"},[`${n}-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 > ${n},
|
||
&-affix-wrapper${i}-has-feedback ${n}
|
||
`]:{paddingInlineEnd:r},[`&-affix-wrapper${n}-affix-wrapper`]:{padding:0,[`> textarea${n}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${n}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${n}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${n}-affix-wrapper-sm`]:{[`${n}-suffix`]:{[`${n}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},IFt=e=>{const{componentCls:n}=e;return{[`${n}-out-of-range`]:{[`&, & input, & textarea, ${n}-show-count-suffix, ${n}-data-count`]:{color:e.colorError}}}},Ede=Yr("Input",e=>{const n=wr(e,mU(e));return[CFt(n),RFt(n),xFt(n),TFt(n),OFt(n),IFt(n),nw(n)]},vU,{resetFont:!1}),uq=(e,n)=>{const{componentCls:r,controlHeight:i}=e,o=n?`${r}-${n}`:"",a=gUe(e);return[{[`${r}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:i,[`${r}-selection-item`]:{height:a.itemHeight,lineHeight:Ye(a.itemLineHeight)}}}]},NFt=e=>{const{componentCls:n,calc:r,lineWidth:i}=e,o=wr(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=wr(e,{fontHeight:r(e.multipleItemHeightLG).sub(r(i).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[uq(o,"small"),uq(e),uq(a,"large"),{[`${n}${n}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${n}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${n}-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"}}},mUe(e)),{[`${n}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},MFt=e=>{const{pickerCellCls:n,pickerCellInnerCls:r,cellHeight:i,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:s,lineWidth:l,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:h,colorFillSecondary:g}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:i,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:i,height:i,lineHeight:Ye(i),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${n}-in-view):not(${n}-disabled),
|
||
&:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-disabled)`]:{[r]:{background:s}},[`&-in-view${n}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Ye(l)} ${c} ${u}`,borderRadius:o,content:'""'}},[`&-in-view${n}-in-range,
|
||
&-in-view${n}-range-start,
|
||
&-in-view${n}-range-end`]:{position:"relative",[`&:not(${n}-disabled):before`]:{background:d}},[`&-in-view${n}-selected,
|
||
&-in-view${n}-range-start,
|
||
&-in-view${n}-range-end`]:{[`&:not(${n}-disabled) ${r}`]:{color:f,background:u},[`&${n}-disabled ${r}`]:{background:g}},[`&-in-view${n}-range-start:not(${n}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end:not(${n}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-start:not(${n}-range-end) ${r}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:p,cursor:"not-allowed",[r]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${n}-today ${r}::before`]:{borderColor:p}}},PFt=e=>{const{componentCls:n,pickerCellCls:r,pickerCellInnerCls:i,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:s,paddingSM:l,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:p,borderRadiusLG:h,colorPrimary:g,colorTextHeading:v,colorSplit:y,pickerControlIconBorderWidth:_,colorIcon:S,textHeight:b,motionDurationMid:E,colorIconHover:w,fontWeightStrong:C,cellHeight:x,pickerCellPaddingVertical:T,colorTextDisabled:R,colorText:O,fontSize:M,motionDurationSlow:P,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:$,borderRadiusSM:U,colorTextLightSolid:z,cellHoverBg:D,timeColumnHeight:B,timeColumnWidth:Y,timeCellHeight:q,controlItemBgActive:K,marginXXS:H,pickerDatePanelPaddingHorizontal:G,pickerControlIconMargin:Q}=e,le=e.calc(s).mul(7).add(e.calc(G).mul(2)).equal();return{[n]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:h,outline:"none","&-focused":{borderColor:g},"&-rtl":{[`${n}-prev-icon,
|
||
${n}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${n}-next-icon,
|
||
${n}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${n}-time-panel`]:{[`${n}-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:le},"&-header":{display:"flex",padding:`0 ${Ye(c)}`,color:v,borderBottom:`${Ye(f)} ${p} ${y}`,"> *":{flex:"none"},button:{padding:0,color:S,lineHeight:Ye(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${E}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:C,lineHeight:Ye(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:g}}}},"&-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:`${Ye(_)} 0`,borderInlineWidth:`${Ye(_)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Q,insetInlineStart:Q,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Ye(_)} 0`,borderInlineWidth:`${Ye(_)} 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:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Ye(T)} 0`,color:R,cursor:"pointer","&-in-view":{color:O}},MFt(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${n}-content`]:{height:e.calc(k).mul(4).equal()},[i]:{padding:`0 ${Ye(c)}`}},"&-quarter-panel":{[`${n}-content`]:{height:$}},"&-decade-panel":{[i]:{padding:`0 ${Ye(e.calc(c).div(2).equal())}`},[`${n}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${n}-body`]:{padding:`0 ${Ye(c)}`},[i]:{width:o}},"&-date-panel":{[`${n}-body`]:{padding:`${Ye(c)} ${Ye(G)}`},[`${n}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${n}-cell`]:{[`&:hover ${i},
|
||
&-selected ${i},
|
||
${i}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${E}`},"&:first-child:before":{borderStartStartRadius:U,borderEndStartRadius:U},"&:last-child:before":{borderStartEndRadius:U,borderEndEndRadius:U}},"&:hover td:before":{background:D},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${r}`]:{"&:before":{background:g},[`&${n}-cell-week`]:{color:new Gr(z).setA(.5).toHexString()},[i]:{color:z}}},"&-range-hover td:before":{background:K}}},"&-week-panel, &-date-panel-show-week":{[`${n}-body`]:{padding:`${Ye(c)} ${Ye(l)}`},[`${n}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${n}-time-panel`]:{borderInlineStart:`${Ye(f)} ${p} ${y}`},[`${n}-date-panel,
|
||
${n}-time-panel`]:{transition:`opacity ${P}`},"&-active":{[`${n}-date-panel,
|
||
${n}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${n}-content`]:{display:"flex",flex:"auto",height:B},"&-column":{flex:"1 0 auto",width:Y,margin:`${Ye(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${E}`,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:`calc(100% - ${Ye(q)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Ye(f)} ${p} ${y}`},"&-active":{background:new Gr(K).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${n}-time-panel-cell`]:{marginInline:H,[`${n}-time-panel-cell-inner`]:{display:"block",width:e.calc(Y).sub(e.calc(H).mul(2)).equal(),height:q,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(Y).sub(q).div(2).equal(),color:O,lineHeight:Ye(q),borderRadius:U,cursor:"pointer",transition:`background ${E}`,"&:hover":{background:D}},"&-selected":{[`${n}-time-panel-cell-inner`]:{background:K}},"&-disabled":{[`${n}-time-panel-cell-inner`]:{color:R,background:"transparent",cursor:"not-allowed"}}}}}}}}},AFt=e=>{const{componentCls:n,textHeight:r,lineWidth:i,paddingSM:o,antCls:a,colorPrimary:s,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${n}-dropdown`]:{[`${n}-footer`]:{borderTop:`${Ye(i)} ${u} ${d}`,"&-extra":{padding:`0 ${Ye(o)}`,lineHeight:Ye(e.calc(r).sub(e.calc(i).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Ye(i)} ${u} ${d}`}}},[`${n}-panels + ${n}-footer ${n}-ranges`]:{justifyContent:"space-between"},[`${n}-ranges`]:{marginBlock:0,paddingInline:Ye(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Ye(e.calc(r).sub(e.calc(i).mul(2)).equal()),display:"inline-block"},[`${n}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${n}-preset > ${a}-tag-blue`]:{color:s,background:l,borderColor:c,cursor:"pointer"},[`${n}-ok`]:{paddingBlock:e.calc(i).mul(2).equal(),marginInlineStart:"auto"}}}}},DFt=e=>{const{componentCls:n,controlHeightLG:r,paddingXXS:i,padding:o}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerYearMonthCellWidth:e.calc(r).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(r).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(i).add(e.calc(i).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(i).div(2)).equal()}},kFt=e=>{const{colorBgContainerDisabled:n,controlHeight:r,controlHeightSM:i,controlHeightLG:o,paddingXXS:a,lineWidth:s}=e,l=a*2,c=s*2,u=Math.min(r-l,r-c),d=Math.min(i-l,i-c),f=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Gr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Gr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:n,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:i*1.5,cellHeight:i,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:n,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},LFt=e=>Object.assign(Object.assign(Object.assign(Object.assign({},vU(e)),kFt(e)),iU(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),$Ft=e=>{const{componentCls:n}=e;return{[n]:[Object.assign(Object.assign(Object.assign({},yde(e)),bde(e)),_de(e)),{"&-outlined":{[`&${n}-multiple ${n}-selection-item`]:{background:e.multipleItemBg,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${n}-multiple ${n}-selection-item`]:{background:e.colorBgContainer,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${n}-multiple ${n}-selection-item`]:{background:e.multipleItemBg,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},dq=(e,n,r,i)=>{const o=e.calc(r).add(2).equal(),a=e.max(e.calc(n).sub(o).div(2).equal(),0),s=e.max(e.calc(n).sub(o).sub(a).equal(),0);return{padding:`${Ye(a)} ${Ye(i)} ${Ye(s)}`}},FFt=e=>{const{componentCls:n,colorError:r,colorWarning:i}=e;return{[`${n}:not(${n}-disabled):not([disabled])`]:{[`&${n}-status-error`]:{[`${n}-active-bar`]:{background:r}},[`&${n}-status-warning`]:{[`${n}-active-bar`]:{background:i}}}}},BFt=e=>{const{componentCls:n,antCls:r,controlHeight:i,paddingInline:o,lineWidth:a,lineType:s,colorBorder:l,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:p,fontSizeLG:h,controlHeightSM:g,paddingInlineSM:v,paddingXS:y,marginXS:_,colorTextDescription:S,lineWidthBold:b,colorPrimary:E,motionDurationSlow:w,zIndexPopup:C,paddingXXS:x,sizePopupArrow:T,colorBgElevated:R,borderRadiusLG:O,boxShadowSecondary:M,borderRadiusSM:P,colorSplit:k,cellHoverBg:$,presetsWidth:U,presetsMaxWidth:z,boxShadowPopoverArrow:D,fontHeight:B,fontHeightLG:Y,lineHeightLG:q}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},li(e)),dq(e,i,B,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${n}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${n}-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 ${u}`},Sde(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},dq(e,p,Y,o)),{[`${n}-input > input`]:{fontSize:h,lineHeight:q}}),"&-small":Object.assign({},dq(e,g,B,v)),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:_}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:S}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:d,fontSize:h,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:S},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:b,background:E,opacity:0,transition:`all ${w} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${Ye(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},li(e)),PFt(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:C,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
|
||
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
|
||
&${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
||
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
||
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
||
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:z9},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
|
||
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
|
||
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
|
||
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:U9},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
||
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:V9},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
|
||
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:H9},[`${n}-panel > ${n}-time-panel`]:{paddingTop:x},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${w} ease-out`},wUe(e,R,D)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:R,borderRadius:O,boxShadow:M,transition:`margin ${w}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:U,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${Ye(a)} ${s} ${k}`,li:Object.assign(Object.assign({},bf),{borderRadius:P,paddingInline:y,paddingBlock:e.calc(g).sub(B).div(2).equal(),cursor:"pointer",transition:`all ${w}`,"+ li":{marginTop:_},"&:hover":{background:$}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${Ye(e.calc(T).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"rotate(180deg)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Mm(e,"slide-up"),Mm(e,"slide-down"),kO(e,"move-up"),kO(e,"move-down")]},tze=Yr("DatePicker",e=>{const n=wr(mU(e),DFt(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[AFt(n),BFt(n),$Ft(n),FFt(n),NFt(n),nw(e,{focusElCls:`${e.componentCls}-focused`})]},LFt);var jFt={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"},UFt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:jFt}))},bA=m.forwardRef(UFt);const _U=m.createContext(null);var HFt=function(n){var r=n.activeTabOffset,i=n.horizontal,o=n.rtl,a=n.indicator,s=a===void 0?{}:a,l=s.size,c=s.align,u=c===void 0?"center":c,d=m.useState(),f=ke(d,2),p=f[0],h=f[1],g=m.useRef(),v=V.useCallback(function(_){return typeof l=="function"?l(_):typeof l=="number"?l:_},[l]);function y(){Dr.cancel(g.current)}return m.useEffect(function(){var _={};if(r)if(i){_.width=v(r.width);var S=o?"right":"left";u==="start"&&(_[S]=r[S]),u==="center"&&(_[S]=r[S]+r.width/2,_.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(_[S]=r[S]+r.width,_.transform="translateX(-100%)")}else _.height=v(r.height),u==="start"&&(_.top=r.top),u==="center"&&(_.top=r.top+r.height/2,_.transform="translateY(-50%)"),u==="end"&&(_.top=r.top+r.height,_.transform="translateY(-100%)");return y(),g.current=Dr(function(){h(_)}),y},[r,i,o,u,v]),{style:p}},bCe={width:0,height:0,left:0,top:0};function zFt(e,n,r){return m.useMemo(function(){for(var i,o=new Map,a=n.get((i=e[0])===null||i===void 0?void 0:i.key)||bCe,s=a.left+a.width,l=0;l<e.length;l+=1){var c=e[l].key,u=n.get(c);if(!u){var d;u=n.get((d=e[l-1])===null||d===void 0?void 0:d.key)||bCe}var f=o.get(c)||ee({},u);f.right=s-f.left-f.width,o.set(c,f)}return o},[e.map(function(i){return i.key}).join("_"),n,r])}function SCe(e,n){var r=m.useRef(e),i=m.useState({}),o=ke(i,2),a=o[1];function s(l){var c=typeof l=="function"?l(r.current):l;c!==r.current&&n(c,r.current),r.current=c,a({})}return[r.current,s]}var VFt=.1,ECe=.01,h6=20,CCe=Math.pow(.995,h6);function GFt(e,n){var r=m.useState(),i=ke(r,2),o=i[0],a=i[1],s=m.useState(0),l=ke(s,2),c=l[0],u=l[1],d=m.useState(0),f=ke(d,2),p=f[0],h=f[1],g=m.useState(),v=ke(g,2),y=v[0],_=v[1],S=m.useRef();function b(R){var O=R.touches[0],M=O.screenX,P=O.screenY;a({x:M,y:P}),window.clearInterval(S.current)}function E(R){if(o){var O=R.touches[0],M=O.screenX,P=O.screenY;a({x:M,y:P});var k=M-o.x,$=P-o.y;n(k,$);var U=Date.now();u(U),h(U-c),_({x:k,y:$})}}function w(){if(o&&(a(null),_(null),y)){var R=y.x/p,O=y.y/p,M=Math.abs(R),P=Math.abs(O);if(Math.max(M,P)<VFt)return;var k=R,$=O;S.current=window.setInterval(function(){if(Math.abs(k)<ECe&&Math.abs($)<ECe){window.clearInterval(S.current);return}k*=CCe,$*=CCe,n(k*h6,$*h6)},h6)}}var C=m.useRef();function x(R){var O=R.deltaX,M=R.deltaY,P=0,k=Math.abs(O),$=Math.abs(M);k===$?P=C.current==="x"?O:M:k>$?(P=O,C.current="x"):(P=M,C.current="y"),n(-P,-P)&&R.preventDefault()}var T=m.useRef(null);T.current={onTouchStart:b,onTouchMove:E,onTouchEnd:w,onWheel:x},m.useEffect(function(){function R(k){T.current.onTouchStart(k)}function O(k){T.current.onTouchMove(k)}function M(k){T.current.onTouchEnd(k)}function P(k){T.current.onWheel(k)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",R,{passive:!0}),e.current.addEventListener("wheel",P,{passive:!1}),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",M)}},[])}function nze(e){var n=m.useState(0),r=ke(n,2),i=r[0],o=r[1],a=m.useRef(0),s=m.useRef();return s.current=e,I1(function(){var l;(l=s.current)===null||l===void 0||l.call(s)},[i]),function(){a.current===i&&(a.current+=1,o(a.current))}}function WFt(e){var n=m.useRef([]),r=m.useState({}),i=ke(r,2),o=i[1],a=m.useRef(typeof e=="function"?e():e),s=nze(function(){var c=a.current;n.current.forEach(function(u){c=u(c)}),n.current=[],a.current=c,o({})});function l(c){n.current.push(c),s()}return[a.current,l]}var wCe={width:0,height:0,left:0,top:0,right:0};function YFt(e,n,r,i,o,a,s){var l=s.tabs,c=s.tabPosition,u=s.rtl,d,f,p;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",p=Math.abs(r)):(d="height",f="top",p=-r),m.useMemo(function(){if(!l.length)return[0,0];for(var h=l.length,g=h,v=0;v<h;v+=1){var y=e.get(l[v].key)||wCe;if(Math.floor(y[f]+y[d])>Math.floor(p+n)){g=v-1;break}}for(var _=0,S=h-1;S>=0;S-=1){var b=e.get(l[S].key)||wCe;if(b[f]<p){_=S+1;break}}return _>=g?[0,0]:[_,g]},[e,n,i,o,a,p,c,l.map(function(h){return h.key}).join("_"),u])}function xCe(e){var n;return e instanceof Map?(n={},e.forEach(function(r,i){n[i]=r})):n=e,JSON.stringify(n)}var qFt="TABS_DQ";function rze(e){return String(e).replace(/"/g,qFt)}function Cde(e,n,r,i){return!(!r||i||e===!1||e===void 0&&(n===!1||n===null))}var ize=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.editable,o=e.locale,a=e.style;return!i||i.showAdd===!1?null:m.createElement("button",{ref:n,type:"button",className:"".concat(r,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){i.onEdit("add",{event:l})}},i.addIcon||"+")}),TCe=m.forwardRef(function(e,n){var r=e.position,i=e.prefixCls,o=e.extra;if(!o)return null;var a,s={};return cn(o)==="object"&&!m.isValidElement(o)?s=o:s.right=o,r==="right"&&(a=s.right),r==="left"&&(a=s.left),a?m.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},a):null}),KFt=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.id,o=e.tabs,a=e.locale,s=e.mobile,l=e.more,c=l===void 0?{}:l,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,v=e.onTabClick,y=e.getPopupContainer,_=e.popupClassName,S=m.useState(!1),b=ke(S,2),E=b[0],w=b[1],C=m.useState(null),x=ke(C,2),T=x[0],R=x[1],O=c.icon,M=O===void 0?"More":O,P="".concat(i,"-more-popup"),k="".concat(r,"-dropdown"),$=T!==null?"".concat(P,"-").concat(T):null,U=a==null?void 0:a.dropdownAriaLabel;function z(G,Q){G.preventDefault(),G.stopPropagation(),f.onEdit("remove",{key:Q,event:G})}var D=m.createElement(dI,{onClick:function(Q){var le=Q.key,Z=Q.domEvent;v(le,Z),w(!1)},prefixCls:"".concat(k,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":$,selectedKeys:[T],"aria-label":U!==void 0?U:"expanded dropdown"},o.map(function(G){var Q=G.closable,le=G.disabled,Z=G.closeIcon,j=G.key,F=G.label,te=Cde(Q,Z,f,le);return m.createElement(bk,{key:j,id:"".concat(P,"-").concat(j),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(j),disabled:le},m.createElement("span",null,F),te&&m.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(k,"-menu-item-remove"),onClick:function(de){de.stopPropagation(),z(de,j)}},Z||f.removeIcon||"×"))}));function B(G){for(var Q=o.filter(function(te){return!te.disabled}),le=Q.findIndex(function(te){return te.key===T})||0,Z=Q.length,j=0;j<Z;j+=1){le=(le+G+Z)%Z;var F=Q[le];if(!F.disabled){R(F.key);return}}}function Y(G){var Q=G.which;if(!E){[At.DOWN,At.SPACE,At.ENTER].includes(Q)&&(w(!0),G.preventDefault());return}switch(Q){case At.UP:B(-1),G.preventDefault();break;case At.DOWN:B(1),G.preventDefault();break;case At.ESC:w(!1);break;case At.SPACE:case At.ENTER:T!==null&&v(T,G);break}}m.useEffect(function(){var G=document.getElementById($);G&&G.scrollIntoView&&G.scrollIntoView(!1)},[T]),m.useEffect(function(){E||R(null)},[E]);var q=fe({},h?"marginRight":"marginLeft",p);o.length||(q.visibility="hidden",q.order=1);var K=Ce(fe({},"".concat(k,"-rtl"),h)),H=s?null:m.createElement(DUe,ft({prefixCls:k,overlay:D,visible:o.length?E:!1,onVisibleChange:w,overlayClassName:Ce(K,_),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},c),m.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:q,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":P,id:"".concat(i,"-more"),"aria-expanded":E,onKeyDown:Y},M));return m.createElement("div",{className:Ce("".concat(r,"-nav-operations"),d),style:u,ref:n},H,m.createElement(ize,{prefixCls:r,locale:a,editable:f}))});const XFt=m.memo(KFt,function(e,n){return n.tabMoving});var QFt=function(n){var r=n.prefixCls,i=n.id,o=n.active,a=n.focus,s=n.tab,l=s.key,c=s.label,u=s.disabled,d=s.closeIcon,f=s.icon,p=n.closable,h=n.renderWrapper,g=n.removeAriaLabel,v=n.editable,y=n.onClick,_=n.onFocus,S=n.onBlur,b=n.onKeyDown,E=n.onMouseDown,w=n.onMouseUp,C=n.style,x=n.tabCount,T=n.currentPosition,R="".concat(r,"-tab"),O=Cde(p,d,v,u);function M(z){u||y(z)}function P(z){z.preventDefault(),z.stopPropagation(),v.onEdit("remove",{key:l,event:z})}var k=m.useMemo(function(){return f&&typeof c=="string"?m.createElement("span",null,c):c},[c,f]),$=m.useRef(null);m.useEffect(function(){a&&$.current&&$.current.focus()},[a]);var U=m.createElement("div",{key:l,"data-node-key":rze(l),className:Ce(R,fe(fe(fe(fe({},"".concat(R,"-with-remove"),O),"".concat(R,"-active"),o),"".concat(R,"-disabled"),u),"".concat(R,"-focus"),a)),style:C,onClick:M},m.createElement("div",{ref:$,role:"tab","aria-selected":o,id:i&&"".concat(i,"-tab-").concat(l),className:"".concat(R,"-btn"),"aria-controls":i&&"".concat(i,"-panel-").concat(l),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(D){D.stopPropagation(),M(D)},onKeyDown:b,onMouseDown:E,onMouseUp:w,onFocus:_,onBlur:S},a&&m.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(T," of ").concat(x)),f&&m.createElement("span",{className:"".concat(R,"-icon")},f),c&&k),O&&m.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:o?0:-1,className:"".concat(R,"-remove"),onClick:function(D){D.stopPropagation(),P(D)}},d||v.removeIcon||"×"));return h?h(U):U},ZFt=function(n,r){var i=n.offsetWidth,o=n.offsetHeight,a=n.offsetTop,s=n.offsetLeft,l=n.getBoundingClientRect(),c=l.width,u=l.height,d=l.left,f=l.top;return Math.abs(c-i)<1?[c,u,d-r.left,f-r.top]:[i,o,s,a]},Cx=function(n){var r=n.current||{},i=r.offsetWidth,o=i===void 0?0:i,a=r.offsetHeight,s=a===void 0?0:a;if(n.current){var l=n.current.getBoundingClientRect(),c=l.width,u=l.height;if(Math.abs(c-o)<1)return[c,u]}return[o,s]},e4=function(n,r){return n[r?0:1]},OCe=m.forwardRef(function(e,n){var r=e.className,i=e.style,o=e.id,a=e.animated,s=e.activeKey,l=e.rtl,c=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,p=e.tabBarGutter,h=e.children,g=e.onTabClick,v=e.onTabScroll,y=e.indicator,_=m.useContext(_U),S=_.prefixCls,b=_.tabs,E=m.useRef(null),w=m.useRef(null),C=m.useRef(null),x=m.useRef(null),T=m.useRef(null),R=m.useRef(null),O=m.useRef(null),M=f==="top"||f==="bottom",P=SCe(0,function(Zt,Et){M&&v&&v({direction:Zt>Et?"left":"right"})}),k=ke(P,2),$=k[0],U=k[1],z=SCe(0,function(Zt,Et){!M&&v&&v({direction:Zt>Et?"top":"bottom"})}),D=ke(z,2),B=D[0],Y=D[1],q=m.useState([0,0]),K=ke(q,2),H=K[0],G=K[1],Q=m.useState([0,0]),le=ke(Q,2),Z=le[0],j=le[1],F=m.useState([0,0]),te=ke(F,2),oe=te[0],de=te[1],pe=m.useState([0,0]),me=ke(pe,2),ve=me[0],he=me[1],be=WFt(new Map),we=ke(be,2),De=we[0],Ae=we[1],Ee=zFt(b,De,Z[0]),Re=e4(H,M),Te=e4(Z,M),Oe=e4(oe,M),Ne=e4(ve,M),je=Math.floor(Re)<Math.floor(Te+Oe),ne=je?Re-Ne:Re-Oe,J="".concat(S,"-nav-operations-hidden"),ae=0,Se=0;M&&l?(ae=0,Se=Math.max(0,Te-ne)):(ae=Math.min(0,ne-Te),Se=0);function xe(Zt){return Zt<ae?ae:Zt>Se?Se:Zt}var ue=m.useRef(null),Me=m.useState(),$e=ke(Me,2),ge=$e[0],Ve=$e[1];function st(){Ve(Date.now())}function Je(){ue.current&&clearTimeout(ue.current)}GFt(x,function(Zt,Et){function Gt(zt,Vn){zt(function(sr){var A=xe(sr+Vn);return A})}return je?(M?Gt(U,Zt):Gt(Y,Et),Je(),st(),!0):!1}),m.useEffect(function(){return Je(),ge&&(ue.current=setTimeout(function(){Ve(0)},100)),Je},[ge]);var ot=YFt(Ee,ne,M?$:B,Te,Oe,Ne,ee(ee({},e),{},{tabs:b})),Xe=ke(ot,2),Ze=Xe[0],bt=Xe[1],at=Sr(function(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,Et=Ee.get(Zt)||{width:0,height:0,left:0,right:0,top:0};if(M){var Gt=$;l?Et.right<$?Gt=Et.right:Et.right+Et.width>$+ne&&(Gt=Et.right+Et.width-ne):Et.left<-$?Gt=-Et.left:Et.left+Et.width>-$+ne&&(Gt=-(Et.left+Et.width-ne)),Y(0),U(xe(Gt))}else{var zt=B;Et.top<-B?zt=-Et.top:Et.top+Et.height>-B+ne&&(zt=-(Et.top+Et.height-ne)),U(0),Y(xe(zt))}}),pt=m.useState(),Ct=ke(pt,2),It=Ct[0],Wt=Ct[1],Bt=m.useState(!1),Vt=ke(Bt,2),rn=Vt[0],tt=Vt[1],it=b.filter(function(Zt){return!Zt.disabled}).map(function(Zt){return Zt.key}),nt=function(Et){var Gt=it.indexOf(It||s),zt=it.length,Vn=(Gt+Et+zt)%zt,sr=it[Vn];Wt(sr)},vt=function(Et){var Gt=Et.code,zt=l&&M,Vn=it[0],sr=it[it.length-1];switch(Gt){case"ArrowLeft":{M&&nt(zt?1:-1);break}case"ArrowRight":{M&&nt(zt?-1:1);break}case"ArrowUp":{Et.preventDefault(),M||nt(-1);break}case"ArrowDown":{Et.preventDefault(),M||nt(1);break}case"Home":{Et.preventDefault(),Wt(Vn);break}case"End":{Et.preventDefault(),Wt(sr);break}case"Enter":case"Space":{Et.preventDefault(),g(It,Et);break}case"Backspace":case"Delete":{var A=it.indexOf(It),W=b.find(function(Pe){return Pe.key===It}),ce=Cde(W==null?void 0:W.closable,W==null?void 0:W.closeIcon,u,W==null?void 0:W.disabled);ce&&(Et.preventDefault(),Et.stopPropagation(),u.onEdit("remove",{key:It,event:Et}),A===it.length-1?nt(-1):nt(1));break}}},kt={};M?kt[l?"marginRight":"marginLeft"]=p:kt.marginTop=p;var Dt=b.map(function(Zt,Et){var Gt=Zt.key;return m.createElement(QFt,{id:o,prefixCls:S,key:Gt,tab:Zt,style:Et===0?void 0:kt,closable:Zt.closable,editable:u,active:Gt===s,focus:Gt===It,renderWrapper:h,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:it.length,currentPosition:Et+1,onClick:function(Vn){g(Gt,Vn)},onKeyDown:vt,onFocus:function(){rn||Wt(Gt),at(Gt),st(),x.current&&(l||(x.current.scrollLeft=0),x.current.scrollTop=0)},onBlur:function(){Wt(void 0)},onMouseDown:function(){tt(!0)},onMouseUp:function(){tt(!1)}})}),Kt=function(){return Ae(function(){var Et,Gt=new Map,zt=(Et=T.current)===null||Et===void 0?void 0:Et.getBoundingClientRect();return b.forEach(function(Vn){var sr,A=Vn.key,W=(sr=T.current)===null||sr===void 0?void 0:sr.querySelector('[data-node-key="'.concat(rze(A),'"]'));if(W){var ce=ZFt(W,zt),Pe=ke(ce,4),qe=Pe[0],gt=Pe[1],Yt=Pe[2],Nn=Pe[3];Gt.set(A,{width:qe,height:gt,left:Yt,top:Nn})}}),Gt})};m.useEffect(function(){Kt()},[b.map(function(Zt){return Zt.key}).join("_")]);var Ht=nze(function(){var Zt=Cx(E),Et=Cx(w),Gt=Cx(C);G([Zt[0]-Et[0]-Gt[0],Zt[1]-Et[1]-Gt[1]]);var zt=Cx(O);de(zt);var Vn=Cx(R);he(Vn);var sr=Cx(T);j([sr[0]-zt[0],sr[1]-zt[1]]),Kt()}),tn=b.slice(0,Ze),on=b.slice(bt+1),sn=[].concat(Tt(tn),Tt(on)),Jt=Ee.get(s),En=HFt({activeTabOffset:Jt,horizontal:M,indicator:y,rtl:l}),Pt=En.style;m.useEffect(function(){at()},[s,ae,Se,xCe(Jt),xCe(Ee),M]),m.useEffect(function(){Ht()},[l]);var Qt=!!sn.length,ln="".concat(S,"-nav-wrap"),jt,Lt,en,Ue;return M?l?(Lt=$>0,jt=$!==Se):(jt=$<0,Lt=$!==ae):(en=B<0,Ue=B!==ae),m.createElement(Hc,{onResize:Ht},m.createElement("div",{ref:vg(n,E),role:"tablist","aria-orientation":M?"horizontal":"vertical",className:Ce("".concat(S,"-nav"),r),style:i,onKeyDown:function(){st()}},m.createElement(TCe,{ref:w,position:"left",extra:c,prefixCls:S}),m.createElement(Hc,{onResize:Ht},m.createElement("div",{className:Ce(ln,fe(fe(fe(fe({},"".concat(ln,"-ping-left"),jt),"".concat(ln,"-ping-right"),Lt),"".concat(ln,"-ping-top"),en),"".concat(ln,"-ping-bottom"),Ue)),ref:x},m.createElement(Hc,{onResize:Ht},m.createElement("div",{ref:T,className:"".concat(S,"-nav-list"),style:{transform:"translate(".concat($,"px, ").concat(B,"px)"),transition:ge?"none":void 0}},Dt,m.createElement(ize,{ref:O,prefixCls:S,locale:d,editable:u,style:ee(ee({},Dt.length===0?void 0:kt),{},{visibility:Qt?"hidden":null})}),m.createElement("div",{className:Ce("".concat(S,"-ink-bar"),fe({},"".concat(S,"-ink-bar-animated"),a.inkBar)),style:Pt}))))),m.createElement(XFt,ft({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:R,prefixCls:S,tabs:sn,className:!Qt&&J,tabMoving:!!ge})),m.createElement(TCe,{ref:C,position:"right",extra:c,prefixCls:S})))}),oze=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.className,o=e.style,a=e.id,s=e.active,l=e.tabKey,c=e.children;return m.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!s,style:o,className:Ce(r,s&&"".concat(r,"-active"),i),ref:n},c)}),JFt=["renderTabBar"],e8t=["label","key"],t8t=function(n){var r=n.renderTabBar,i=Xt(n,JFt),o=m.useContext(_U),a=o.tabs;if(r){var s=ee(ee({},i),{},{panes:a.map(function(l){var c=l.label,u=l.key,d=Xt(l,e8t);return m.createElement(oze,ft({tab:c,key:u,tabKey:u},d))})});return r(s,OCe)}return m.createElement(OCe,i)},n8t=["key","forceRender","style","className","destroyInactiveTabPane"],r8t=function(n){var r=n.id,i=n.activeKey,o=n.animated,a=n.tabPosition,s=n.destroyInactiveTabPane,l=m.useContext(_U),c=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return m.createElement("div",{className:Ce("".concat(c,"-content-holder"))},m.createElement("div",{className:Ce("".concat(c,"-content"),"".concat(c,"-content-").concat(a),fe({},"".concat(c,"-content-animated"),d))},u.map(function(p){var h=p.key,g=p.forceRender,v=p.style,y=p.className,_=p.destroyInactiveTabPane,S=Xt(p,n8t),b=h===i;return m.createElement(Ws,ft({key:h,visible:b,forceRender:g,removeOnLeave:!!(s||_),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(E,w){var C=E.style,x=E.className;return m.createElement(oze,ft({},S,{prefixCls:f,id:r,tabKey:h,animated:d,active:b,style:ee(ee({},v),C),className:Ce(y,x),ref:w}))})})))};function i8t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},n;return e===!1?n={inkBar:!1,tabPane:!1}:e===!0?n={inkBar:!0,tabPane:!1}:n=ee({inkBar:!0},cn(e)==="object"?e:{}),n.tabPaneMotion&&n.tabPane===void 0&&(n.tabPane=!0),!n.tabPaneMotion&&n.tabPane&&(n.tabPane=!1),n}var o8t=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],RCe=0,a8t=m.forwardRef(function(e,n){var r=e.id,i=e.prefixCls,o=i===void 0?"rc-tabs":i,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,h=p===void 0?"top":p,g=e.tabBarGutter,v=e.tabBarStyle,y=e.tabBarExtraContent,_=e.locale,S=e.more,b=e.destroyInactiveTabPane,E=e.renderTabBar,w=e.onChange,C=e.onTabClick,x=e.onTabScroll,T=e.getPopupContainer,R=e.popupClassName,O=e.indicator,M=Xt(e,o8t),P=m.useMemo(function(){return(s||[]).filter(function(ve){return ve&&cn(ve)==="object"&&"key"in ve})},[s]),k=l==="rtl",$=i8t(f),U=m.useState(!1),z=ke(U,2),D=z[0],B=z[1];m.useEffect(function(){B(eU())},[]);var Y=dr(function(){var ve;return(ve=P[0])===null||ve===void 0?void 0:ve.key},{value:c,defaultValue:u}),q=ke(Y,2),K=q[0],H=q[1],G=m.useState(function(){return P.findIndex(function(ve){return ve.key===K})}),Q=ke(G,2),le=Q[0],Z=Q[1];m.useEffect(function(){var ve=P.findIndex(function(be){return be.key===K});if(ve===-1){var he;ve=Math.max(0,Math.min(le,P.length-1)),H((he=P[ve])===null||he===void 0?void 0:he.key)}Z(ve)},[P.map(function(ve){return ve.key}).join("_"),K,le]);var j=dr(null,{value:r}),F=ke(j,2),te=F[0],oe=F[1];m.useEffect(function(){r||(oe("rc-tabs-".concat(RCe)),RCe+=1)},[]);function de(ve,he){C==null||C(ve,he);var be=ve!==K;H(ve),be&&(w==null||w(ve))}var pe={id:te,activeKey:K,animated:$,tabPosition:h,rtl:k,mobile:D},me=ee(ee({},pe),{},{editable:d,locale:_,more:S,tabBarGutter:g,onTabClick:de,onTabScroll:x,extra:y,style:v,panes:null,getPopupContainer:T,popupClassName:R,indicator:O});return m.createElement(_U.Provider,{value:{tabs:P,prefixCls:o}},m.createElement("div",ft({ref:n,id:r,className:Ce(o,"".concat(o,"-").concat(h),fe(fe(fe({},"".concat(o,"-mobile"),D),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),k),a)},M),m.createElement(t8t,ft({},me,{renderTabBar:E})),m.createElement(r8t,ft({destroyInactiveTabPane:b},pe,{animated:$}))))});const s8t={motionAppear:!1,motionEnter:!0,motionLeave:!0};function l8t(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return n===!1?r={inkBar:!1,tabPane:!1}:n===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof n=="object"?n:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},s8t),{motionName:Kl(e,"switch")})),r}var c8t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function u8t(e){return e.filter(n=>n)}function d8t(e,n){if(e)return e;const r=Tl(n).map(i=>{if(m.isValidElement(i)){const{key:o,props:a}=i,s=a||{},{tab:l}=s,c=c8t(s,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:l})}return null});return u8t(r)}const f8t=e=>{const{componentCls:n,motionDurationSlow:r}=e;return[{[n]:{[`${n}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[Mm(e,"slide-up"),Mm(e,"slide-down")]]},p8t=e=>{const{componentCls:n,tabsCardPadding:r,cardBg:i,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:s}=e;return{[`${n}-card`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab`]:{margin:0,padding:r,background:i,border:`${Ye(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${n}-tab-active`]:{color:s,background:e.colorBgContainer},[`${n}-tab-focus`]:Object.assign({},Xy(e,-3)),[`${n}-ink-bar`]:{visibility:"hidden"},[`& ${n}-tab${n}-tab-focus ${n}-tab-btn`]:{outline:"none"}},[`&${n}-top, &${n}-bottom`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab + ${n}-tab`]:{marginLeft:{_skip_check_:!0,value:Ye(o)}}}},[`&${n}-top`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab`]:{borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0 0`},[`${n}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${n}-bottom`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab`]:{borderRadius:`0 0 ${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)}`},[`${n}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${n}-left, &${n}-right`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab + ${n}-tab`]:{marginTop:Ye(o)}}},[`&${n}-left`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ye(e.borderRadiusLG)} 0 0 ${Ye(e.borderRadiusLG)}`}},[`${n}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${n}-right`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0`}},[`${n}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},h8t=e=>{const{componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${n}-dropdown`]:Object.assign(Object.assign({},li(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Ye(i)} 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({},bf),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ye(e.paddingXXS)} ${Ye(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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},g8t=e=>{const{componentCls:n,margin:r,colorBorderSecondary:i,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:s,calc:l}=e;return{[`${n}-top, ${n}-bottom`]:{flexDirection:"column",[`> ${n}-nav, > div > ${n}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${i}`,content:"''"},[`${n}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
||
right ${e.motionDurationSlow}`}},[`${n}-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},[`&${n}-nav-wrap-ping-left::before`]:{opacity:1},[`&${n}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${n}-top`]:{[`> ${n}-nav,
|
||
> div > ${n}-nav`]:{"&::before":{bottom:0},[`${n}-ink-bar`]:{bottom:0}}},[`${n}-bottom`]:{[`> ${n}-nav, > div > ${n}-nav`]:{order:1,marginTop:r,marginBottom:0,"&::before":{top:0},[`${n}-ink-bar`]:{top:0}},[`> ${n}-content-holder, > div > ${n}-content-holder`]:{order:0}},[`${n}-left, ${n}-right`]:{[`> ${n}-nav, > div > ${n}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${n}-tab`]:{padding:a,textAlign:"center"},[`${n}-tab + ${n}-tab`]:{margin:s},[`${n}-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},[`&${n}-nav-wrap-ping-top::before`]:{opacity:1},[`&${n}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${n}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${n}-nav-list, ${n}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${n}-left`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${n}-content-holder, > div > ${n}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Ye(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${n}-content > ${n}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${n}-right`]:{[`> ${n}-nav, > div > ${n}-nav`]:{order:1,[`${n}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${n}-content-holder, > div > ${n}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${n}-content > ${n}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},m8t=e=>{const{componentCls:n,cardPaddingSM:r,cardPaddingLG:i,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[n]:{"&-small":{[`> ${n}-nav`]:{[`${n}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${n}-nav`]:{[`${n}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${n}-card`]:{[`&${n}-small`]:{[`> ${n}-nav`]:{[`${n}-tab`]:{padding:r}},[`&${n}-bottom`]:{[`> ${n}-nav ${n}-tab`]:{borderRadius:`0 0 ${Ye(e.borderRadius)} ${Ye(e.borderRadius)}`}},[`&${n}-top`]:{[`> ${n}-nav ${n}-tab`]:{borderRadius:`${Ye(e.borderRadius)} ${Ye(e.borderRadius)} 0 0`}},[`&${n}-right`]:{[`> ${n}-nav ${n}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ye(e.borderRadius)} ${Ye(e.borderRadius)} 0`}}},[`&${n}-left`]:{[`> ${n}-nav ${n}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ye(e.borderRadius)} 0 0 ${Ye(e.borderRadius)}`}}}},[`&${n}-large`]:{[`> ${n}-nav`]:{[`${n}-tab`]:{padding:i}}}}}},v8t=e=>{const{componentCls:n,itemActiveColor:r,itemHoverColor:i,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:s,itemSelectedColor:l,itemColor:c}=e,u=`${n}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:r}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({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}},Op(e)),"&:hover":{color:i},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn`]:Object.assign({},Xy(e)),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${n}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},y8t=e=>{const{componentCls:n,tabsHorizontalItemMarginRTL:r,iconCls:i,cardGutter:o,calc:a}=e;return{[`${n}-rtl`]:{direction:"rtl",[`${n}-nav`]:{[`${n}-tab`]:{margin:{_skip_check_:!0,value:r},[`${n}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[i]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Ye(e.marginSM)}},[`${n}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ye(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ye(a(e.marginXXS).mul(-1).equal())},[i]:{margin:0}}}},[`&${n}-left`]:{[`> ${n}-nav`]:{order:1},[`> ${n}-content-holder`]:{order:0}},[`&${n}-right`]:{[`> ${n}-nav`]:{order:0},[`> ${n}-content-holder`]:{order:1}},[`&${n}-card${n}-top, &${n}-card${n}-bottom`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab + ${n}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${n}-dropdown-rtl`]:{direction:"rtl"},[`${n}-menu-item`]:{[`${n}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},_8t=e=>{const{componentCls:n,tabsCardPadding:r,cardHeight:i,cardGutter:o,itemHoverColor:a,itemActiveColor:s,colorBorderSecondary:l}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{display:"flex",[`> ${n}-nav, > div > ${n}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${n}-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"}},[`${n}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${n}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${n}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${n}-nav-more`]:{position:"relative",padding:r,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:"''"}},[`${n}-nav-add`]:Object.assign({minWidth:i,marginLeft:{_skip_check_:!0,value:o},padding:Ye(e.paddingXS),background:"transparent",border:`${Ye(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(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:s}},Op(e,-3))},[`${n}-extra-content`]:{flex:"none"},[`${n}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),v8t(e)),{[`${n}-content`]:{position:"relative",width:"100%"},[`${n}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${n}-tabpane`]:Object.assign(Object.assign({},Op(e)),{"&-hidden":{display:"none"}})}),[`${n}-centered`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-nav-wrap`]:{[`&:not([class*='${n}-nav-wrap-ping']) > ${n}-nav-list`]:{margin:"auto"}}}}}},b8t=e=>{const n=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:n,cardPadding:`${(n-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}},S8t=Yr("Tabs",e=>{const n=wr(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ye(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ye(e.horizontalItemGutter)}`});return[m8t(n),y8t(n),g8t(n),h8t(n),p8t(n),_8t(n),f8t(n)]},b8t),E8t=()=>null;var C8t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Ek=e=>{var n,r,i,o,a,s,l,c,u,d,f;const{type:p,className:h,rootClassName:g,size:v,onEdit:y,hideAdd:_,centered:S,addIcon:b,removeIcon:E,moreIcon:w,more:C,popupClassName:x,children:T,items:R,animated:O,style:M,indicatorSize:P,indicator:k}=e,$=C8t(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:U}=$,{direction:z,tabs:D,getPrefixCls:B,getPopupContainer:Y}=m.useContext(Cn),q=B("tabs",U),K=po(q),[H,G,Q]=S8t(q,K);let le;p==="editable-card"&&(le={onEdit:(pe,me)=>{let{key:ve,event:he}=me;y==null||y(pe==="add"?he:ve,pe)},removeIcon:(n=E??(D==null?void 0:D.removeIcon))!==null&&n!==void 0?n:m.createElement(jp,null),addIcon:(b??(D==null?void 0:D.addIcon))||m.createElement(bA,null),showAdd:_!==!0});const Z=B(),j=Xs(v),F=d8t(R,T),te=l8t(q,O),oe=Object.assign(Object.assign({},D==null?void 0:D.style),M),de={align:(r=k==null?void 0:k.align)!==null&&r!==void 0?r:(i=D==null?void 0:D.indicator)===null||i===void 0?void 0:i.align,size:(l=(a=(o=k==null?void 0:k.size)!==null&&o!==void 0?o:P)!==null&&a!==void 0?a:(s=D==null?void 0:D.indicator)===null||s===void 0?void 0:s.size)!==null&&l!==void 0?l:D==null?void 0:D.indicatorSize};return H(m.createElement(a8t,Object.assign({direction:z,getPopupContainer:Y},$,{items:F,className:Ce({[`${q}-${j}`]:j,[`${q}-card`]:["card","editable-card"].includes(p),[`${q}-editable-card`]:p==="editable-card",[`${q}-centered`]:S},D==null?void 0:D.className,h,g,G,Q,K),popupClassName:Ce(x,G,Q,K),style:oe,editable:le,more:Object.assign({icon:(f=(d=(u=(c=D==null?void 0:D.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:D==null?void 0:D.moreIcon)!==null&&d!==void 0?d:w)!==null&&f!==void 0?f:m.createElement(cde,null),transitionName:`${Z}-slide-up`},C),prefixCls:q,animated:te,indicator:de})))};Ek.TabPane=E8t;var w8t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const aze=e=>{var{prefixCls:n,className:r,hoverable:i=!0}=e,o=w8t(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=m.useContext(Cn),s=a("card",n),l=Ce(`${s}-grid`,r,{[`${s}-grid-hoverable`]:i});return m.createElement("div",Object.assign({},o,{className:l}))},x8t=e=>{const{antCls:n,componentCls:r,headerHeight:i,headerPadding:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:i,marginBottom:-1,padding:`0 ${Ye(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0 0`},Im()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},bf),{[`
|
||
> ${r}-typography,
|
||
> ${r}-typography-edit-content
|
||
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${n}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},T8t=e=>{const{cardPaddingBase:n,colorBorderSecondary:r,cardShadow:i,lineWidth:o}=e;return{width:"33.33%",padding:n,border:0,borderRadius:0,boxShadow:`
|
||
${Ye(o)} 0 0 0 ${r},
|
||
0 ${Ye(o)} 0 0 ${r},
|
||
${Ye(o)} ${Ye(o)} 0 0 ${r},
|
||
${Ye(o)} 0 0 0 ${r} inset,
|
||
0 ${Ye(o)} 0 0 ${r} inset;
|
||
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:i}}},O8t=e=>{const{componentCls:n,iconCls:r,actionsLiMargin:i,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:s}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:s,borderTop:`${Ye(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)}`},Im()),{"& > li":{margin:i,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${n}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Ye(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:o,lineHeight:Ye(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Ye(e.lineWidth)} ${e.lineType} ${a}`}}})},R8t=e=>Object.assign(Object.assign({margin:`${Ye(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Im()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},bf),"&-description":{color:e.colorTextDescription}}),I8t=e=>{const{componentCls:n,colorFillAlter:r,headerPadding:i,bodyPadding:o}=e;return{[`${n}-head`]:{padding:`0 ${Ye(i)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${n}-body`]:{padding:`${Ye(e.padding)} ${Ye(o)}`}}},N8t=e=>{const{componentCls:n}=e;return{overflow:"hidden",[`${n}-body`]:{userSelect:"none"}}},M8t=e=>{const{componentCls:n,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:o,boxShadowTertiary:a,bodyPadding:s,extraColor:l}=e;return{[n]:Object.assign(Object.assign({},li(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:x8t(e),[`${n}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:s,borderRadius:`0 0 ${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)}`},Im()),[`${n}-grid`]:T8t(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:O8t(e),[`${n}-meta`]:R8t(e)}),[`${n}-bordered`]:{border:`${Ye(e.lineWidth)} ${e.lineType} ${o}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> div${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:i}}},[`${n}-type-inner`]:I8t(e),[`${n}-loading`]:N8t(e),[`${n}-rtl`]:{direction:"rtl"}}},P8t=e=>{const{componentCls:n,bodyPaddingSM:r,headerPaddingSM:i,headerHeightSM:o,headerFontSizeSM:a}=e;return{[`${n}-small`]:{[`> ${n}-head`]:{minHeight:o,padding:`0 ${Ye(i)}`,fontSize:a,[`> ${n}-head-wrapper`]:{[`> ${n}-extra`]:{fontSize:e.fontSize}}},[`> ${n}-body`]:{padding:r}},[`${n}-small${n}-contain-tabs`]:{[`> ${n}-head`]:{[`${n}-head-title, ${n}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},A8t=e=>{var n,r;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(n=e.bodyPadding)!==null&&n!==void 0?n:e.paddingLG,headerPadding:(r=e.headerPadding)!==null&&r!==void 0?r:e.paddingLG}},D8t=Yr("Card",e=>{const n=wr(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[M8t(n),P8t(n)]},A8t);var ICe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const k8t=e=>{const{actionClasses:n,actions:r=[],actionStyle:i}=e;return m.createElement("ul",{className:n,style:i},r.map((o,a)=>{const s=`action-${a}`;return m.createElement("li",{style:{width:`${100/r.length}%`},key:s},m.createElement("span",null,o))}))},L8t=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,rootClassName:o,style:a,extra:s,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:f=!0,size:p,type:h,cover:g,actions:v,tabList:y,children:_,activeTabKey:S,defaultActiveTabKey:b,tabBarExtraContent:E,hoverable:w,tabProps:C={},classNames:x,styles:T}=e,R=ICe(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:O,direction:M,card:P}=m.useContext(Cn),k=De=>{var Ae;(Ae=e.onTabChange)===null||Ae===void 0||Ae.call(e,De)},$=De=>{var Ae;return Ce((Ae=P==null?void 0:P.classNames)===null||Ae===void 0?void 0:Ae[De],x==null?void 0:x[De])},U=De=>{var Ae;return Object.assign(Object.assign({},(Ae=P==null?void 0:P.styles)===null||Ae===void 0?void 0:Ae[De]),T==null?void 0:T[De])},z=m.useMemo(()=>{let De=!1;return m.Children.forEach(_,Ae=>{(Ae==null?void 0:Ae.type)===aze&&(De=!0)}),De},[_]),D=O("card",r),[B,Y,q]=D8t(D),K=m.createElement(Qy,{loading:!0,active:!0,paragraph:{rows:4},title:!1},_),H=S!==void 0,G=Object.assign(Object.assign({},C),{[H?"activeKey":"defaultActiveKey"]:H?S:b,tabBarExtraContent:E});let Q;const le=Xs(p),Z=!le||le==="default"?"large":le,j=y?m.createElement(Ek,Object.assign({size:Z},G,{className:`${D}-head-tabs`,onChange:k,items:y.map(De=>{var{tab:Ae}=De,Ee=ICe(De,["tab"]);return Object.assign({label:Ae},Ee)})})):null;if(u||s||j){const De=Ce(`${D}-head`,$("header")),Ae=Ce(`${D}-head-title`,$("title")),Ee=Ce(`${D}-extra`,$("extra")),Re=Object.assign(Object.assign({},l),U("header"));Q=m.createElement("div",{className:De,style:Re},m.createElement("div",{className:`${D}-head-wrapper`},u&&m.createElement("div",{className:Ae,style:U("title")},u),s&&m.createElement("div",{className:Ee,style:U("extra")},s)),j)}const F=Ce(`${D}-cover`,$("cover")),te=g?m.createElement("div",{className:F,style:U("cover")},g):null,oe=Ce(`${D}-body`,$("body")),de=Object.assign(Object.assign({},c),U("body")),pe=m.createElement("div",{className:oe,style:de},d?K:_),me=Ce(`${D}-actions`,$("actions")),ve=v!=null&&v.length?m.createElement(k8t,{actionClasses:me,actionStyle:U("actions"),actions:v}):null,he=Wr(R,["onTabChange"]),be=Ce(D,P==null?void 0:P.className,{[`${D}-loading`]:d,[`${D}-bordered`]:f,[`${D}-hoverable`]:w,[`${D}-contain-grid`]:z,[`${D}-contain-tabs`]:y==null?void 0:y.length,[`${D}-${le}`]:le,[`${D}-type-${h}`]:!!h,[`${D}-rtl`]:M==="rtl"},i,o,Y,q),we=Object.assign(Object.assign({},P==null?void 0:P.style),a);return B(m.createElement("div",Object.assign({ref:n},he,{className:be,style:we}),Q,te,pe,ve))});var $8t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const F8t=e=>{const{prefixCls:n,className:r,avatar:i,title:o,description:a}=e,s=$8t(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=m.useContext(Cn),c=l("card",n),u=Ce(`${c}-meta`,r),d=i?m.createElement("div",{className:`${c}-meta-avatar`},i):null,f=o?m.createElement("div",{className:`${c}-meta-title`},o):null,p=a?m.createElement("div",{className:`${c}-meta-description`},a):null,h=f||p?m.createElement("div",{className:`${c}-meta-detail`},f,p):null;return m.createElement("div",Object.assign({},s,{className:u}),d,h)},_u=L8t;_u.Grid=aze;_u.Meta=F8t;function B8t(e,n,r){var i=r||{},o=i.noTrailing,a=o===void 0?!1:o,s=i.noLeading,l=s===void 0?!1:s,c=i.debounceMode,u=c===void 0?void 0:c,d,f=!1,p=0;function h(){d&&clearTimeout(d)}function g(y){var _=y||{},S=_.upcomingOnly,b=S===void 0?!1:S;h(),f=!b}function v(){for(var y=arguments.length,_=new Array(y),S=0;S<y;S++)_[S]=arguments[S];var b=this,E=Date.now()-p;if(f)return;function w(){p=Date.now(),n.apply(b,_)}function C(){d=void 0}!l&&u&&!d&&w(),h(),u===void 0&&E>e?l?(p=Date.now(),a||(d=setTimeout(u?C:w,e))):w():a!==!0&&(d=setTimeout(u?C:w,u===void 0?e-E:e))}return v.cancel=g,v}function j8t(e,n,r){var i={},o=i.atBegin,a=o===void 0?!1:o;return B8t(e,n,{debounceMode:a!==!1})}var hI=m.createContext({}),WT="__rc_cascader_search_mark__",U8t=function(n,r,i){var o=i.label,a=o===void 0?"":o;return r.some(function(s){return String(s[a]).toLowerCase().includes(n.toLowerCase())})},H8t=function(n,r,i,o){return r.map(function(a){return a[o.label]}).join(" / ")},z8t=function(n,r,i,o,a,s){var l=a.filter,c=l===void 0?U8t:l,u=a.render,d=u===void 0?H8t:u,f=a.limit,p=f===void 0?50:f,h=a.sort;return m.useMemo(function(){var g=[];if(!n)return[];function v(y,_){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;y.forEach(function(b){if(!(!h&&p!==!1&&p>0&&g.length>=p)){var E=[].concat(Tt(_),[b]),w=b[i.children],C=S||b.disabled;if((!w||w.length===0||s)&&c(n,E,{label:i.label})){var x;g.push(ee(ee({},b),{},(x={disabled:C},fe(x,i.label,d(n,E,o,i)),fe(x,WT,E),fe(x,i.children,void 0),x)))}w&&v(b[i.children],E,C)}})}return v(r,[]),h&&g.sort(function(y,_){return h(y[WT],_[WT],n,i)}),p!==!1&&p>0?g.slice(0,p):g},[n,r,i,o,d,s,c,h,p])},wde="__RC_CASCADER_SPLIT__",sze="SHOW_PARENT",lze="SHOW_CHILD";function Vh(e){return e.join(wde)}function FO(e){return e.map(Vh)}function V8t(e){return e.split(wde)}function cze(e){var n=e||{},r=n.label,i=n.value,o=n.children,a=i||"value";return{label:r||"label",value:a,key:a,children:o||"children"}}function u2(e,n){var r,i;return(r=e.isLeaf)!==null&&r!==void 0?r:!((i=e[n.children])!==null&&i!==void 0&&i.length)}function G8t(e){var n=e.parentElement;if(n){var r=e.offsetTop-n.offsetTop;r-n.scrollTop<0?n.scrollTo({top:r}):r+e.offsetHeight-n.scrollTop>n.offsetHeight&&n.scrollTo({top:r+e.offsetHeight-n.offsetHeight})}}function uze(e,n){return e.map(function(r){var i;return(i=r[WT])===null||i===void 0?void 0:i.map(function(o){return o[n.value]})})}function W8t(e){return Array.isArray(e)&&Array.isArray(e[0])}function Y8(e){return e?W8t(e)?e:(e.length===0?[]:[e]).map(function(n){return Array.isArray(n)?n:[n]}):[]}function dze(e,n,r){var i=new Set(e),o=n();return e.filter(function(a){var s=o[a],l=s?s.parent:null,c=s?s.children:null;return s&&s.node.disabled?!0:r===lze?!(c&&c.some(function(u){return u.key&&i.has(u.key)})):!(l&&!l.node.disabled&&i.has(l.key))})}function BO(e,n,r){for(var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=n,a=[],s=function(){var u,d,f,p=e[l],h=(u=o)===null||u===void 0?void 0:u.findIndex(function(v){var y=v[r.value];return i?String(y)===String(p):y===p}),g=h!==-1?(d=o)===null||d===void 0?void 0:d[h]:null;a.push({value:(f=g==null?void 0:g[r.value])!==null&&f!==void 0?f:p,index:h,option:g}),o=g==null?void 0:g[r.children]},l=0;l<e.length;l+=1)s();return a}const Y8t=function(e,n,r,i,o){return m.useMemo(function(){var a=o||function(s){var l=i?s.slice(-1):s,c=" / ";return l.every(function(u){return["string","number"].includes(cn(u))})?l.join(c):l.reduce(function(u,d,f){var p=m.isValidElement(d)?m.cloneElement(d,{key:f}):d;return f===0?[p]:[].concat(Tt(u),[c,p])},[])};return e.map(function(s){var l,c=BO(s,n,r),u=a(c.map(function(f){var p,h=f.option,g=f.value;return(p=h==null?void 0:h[r.label])!==null&&p!==void 0?p:g}),c.map(function(f){var p=f.option;return p})),d=Vh(s);return{label:u,value:d,key:d,valueCells:s,disabled:(l=c[c.length-1])===null||l===void 0||(l=l.option)===null||l===void 0?void 0:l.disabled}})},[e,n,r,o,i])};function fze(e,n){return m.useCallback(function(r){var i=[],o=[];return r.forEach(function(a){var s=BO(a,e,n);s.every(function(l){return l.option})?o.push(a):i.push(a)}),[o,i]},[e,n])}function nd(e,n){return e[n]}var q8t=["children"];function pze(e,n){return"".concat(e,"-").concat(n)}function K8t(e){return e&&e.type&&e.type.isTreeNode}function Ck(e,n){return e??n}function q8(e){var n=e||{},r=n.title,i=n._title,o=n.key,a=n.children,s=r||"title";return{title:s,_title:i||[s],key:o||"key",children:a||"children"}}function X8t(e){function n(r){var i=Tl(r);return i.map(function(o){if(!K8t(o))return qi(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,s=o.props,l=s.children,c=Xt(s,q8t),u=ee({key:a},c),d=n(l);return d.length&&(u.children=d),u}).filter(function(o){return o})}return n(e)}function fq(e,n,r){var i=q8(r),o=i._title,a=i.key,s=i.children,l=new Set(n===!0?[]:n),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(p,h){for(var g=pze(f?f.pos:"0",h),v=Ck(p[a],g),y,_=0;_<o.length;_+=1){var S=o[_];if(p[S]!==void 0){y=p[S];break}}var b=Object.assign(Wr(p,[].concat(Tt(o),[a,s])),{title:y,key:v,parent:f,pos:g,children:null,data:p,isStart:[].concat(Tt(f?f.isStart:[]),[h===0]),isEnd:[].concat(Tt(f?f.isEnd:[]),[h===d.length-1])});return c.push(b),n===!0||l.has(v)?b.children=u(p[s]||[],b):b.children=[],b})}return u(e),c}function Q8t(e,n,r){var i={};cn(r)==="object"?i=r:i={externalGetKey:r},i=i||{};var o=i,a=o.childrenPropName,s=o.externalGetKey,l=o.fieldNames,c=q8(l),u=c.key,d=c.children,f=a||d,p;s?typeof s=="string"?p=function(v){return v[s]}:typeof s=="function"&&(p=function(v){return s(v)}):p=function(v,y){return Ck(v[u],y)};function h(g,v,y,_){var S=g?g[f]:e,b=g?pze(y.pos,v):"0",E=g?[].concat(Tt(_),[g]):[];if(g){var w=p(g,b),C={node:g,index:v,pos:b,key:w,parentPos:y.node?y.pos:null,level:y.level+1,nodes:E};n(C)}S&&S.forEach(function(x,T){h(x,T,{node:g,pos:b,level:y?y.level+1:-1},E)})}h(null)}function xde(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.initWrapper,i=n.processEntity,o=n.onProcessFinished,a=n.externalGetKey,s=n.childrenPropName,l=n.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,d={},f={},p={posEntities:d,keyEntities:f};return r&&(p=r(p)||p),Q8t(e,function(h){var g=h.node,v=h.index,y=h.pos,_=h.key,S=h.parentPos,b=h.level,E=h.nodes,w={node:g,nodes:E,index:v,key:_,pos:y,level:b},C=Ck(_,y);d[y]=w,f[C]=w,w.parent=d[S],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),i&&i(w,p)},{externalGetKey:u,childrenPropName:s,fieldNames:l}),o&&o(p),p}function tP(e,n){var r=n.expandedKeys,i=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,s=n.checkedKeys,l=n.halfCheckedKeys,c=n.dragOverNodeKey,u=n.dropPosition,d=n.keyEntities,f=nd(d,e),p={eventKey:e,expanded:r.indexOf(e)!==-1,selected:i.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:s.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return p}function tl(e){var n=e.data,r=e.expanded,i=e.selected,o=e.checked,a=e.loaded,s=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,h=e.eventKey,g=ee(ee({},n),{},{expanded:r,selected:i,checked:o,loaded:a,loading:s,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:h});return"props"in g||Object.defineProperty(g,"props",{get:function(){return qi(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}const Z8t=function(e,n){var r=m.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),i=m.useCallback(function(){return r.current.options!==e&&(r.current.options=e,r.current.info=xde(e,{fieldNames:n,initWrapper:function(a){return ee(ee({},a),{},{pathKeyEntities:{}})},processEntity:function(a,s){var l=a.nodes.map(function(c){return c[n.value]}).join(wde);s.pathKeyEntities[l]=a,a.key=l}})),r.current.info.pathKeyEntities},[n,e]);return i};function hze(e,n){var r=m.useMemo(function(){return n||[]},[n]),i=Z8t(r,e),o=m.useCallback(function(a){var s=i();return a.map(function(l){var c=s[l].nodes;return c.map(function(u){return u[e.value]})})},[i,e]);return[r,i,o]}function J8t(e){return m.useMemo(function(){if(!e)return[!1,{}];var n={matchInputWidth:!0,limit:50};return e&&cn(e)==="object"&&(n=ee(ee({},n),e)),n.limit<=0&&(n.limit=!1),[!0,n]},[e])}function gze(e,n){var r=new Set;return e.forEach(function(i){n.has(i)||r.add(i)}),r}function eBt(e){var n=e||{},r=n.disabled,i=n.disableCheckbox,o=n.checkable;return!!(r||i)||o===!1}function tBt(e,n,r,i){for(var o=new Set(e),a=new Set,s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(f){var p=f.key,h=f.node,g=f.children,v=g===void 0?[]:g;o.has(p)&&!i(h)&&v.filter(function(y){return!i(y.node)}).forEach(function(y){o.add(y.key)})})}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 g=!0,v=!1;(p.children||[]).filter(function(y){return!i(y.node)}).forEach(function(y){var _=y.key,S=o.has(_);g&&!S&&(g=!1),!v&&(S||a.has(_))&&(v=!0)}),g&&o.add(p.key),v&&a.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(gze(a,o))}}function nBt(e,n,r,i,o){for(var a=new Set(e),s=new Set(n),l=0;l<=i;l+=1){var c=r.get(l)||new Set;c.forEach(function(p){var h=p.key,g=p.node,v=p.children,y=v===void 0?[]:v;!a.has(h)&&!s.has(h)&&!o(g)&&y.filter(function(_){return!o(_.node)}).forEach(function(_){a.delete(_.key)})})}s=new Set;for(var u=new Set,d=i;d>=0;d-=1){var f=r.get(d)||new Set;f.forEach(function(p){var h=p.parent,g=p.node;if(!(o(g)||!p.parent||u.has(p.parent.key))){if(o(p.parent.node)){u.add(h.key);return}var v=!0,y=!1;(h.children||[]).filter(function(_){return!o(_.node)}).forEach(function(_){var S=_.key,b=a.has(S);v&&!b&&(v=!1),!y&&(b||s.has(S))&&(y=!0)}),v||a.delete(h.key),y&&s.add(h.key),u.add(h.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(gze(s,a))}}function dy(e,n,r,i){var o=[],a;a=eBt;var s=new Set(e.filter(function(d){var f=!!nd(r,d);return f||o.push(d),f})),l=new Map,c=0;Object.keys(r).forEach(function(d){var f=r[d],p=f.level,h=l.get(p);h||(h=new Set,l.set(p,h)),h.add(f),c=Math.max(c,p)}),qi(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return n===!0?u=tBt(s,l,c,a):u=nBt(s,n.halfCheckedKeys,l,c,a),u}function mze(e,n,r,i,o,a,s,l){return function(c){if(!e)n(c);else{var u=Vh(c),d=FO(r),f=FO(i),p=d.includes(u),h=o.some(function(C){return Vh(C)===u}),g=r,v=o;if(h&&!p)v=o.filter(function(C){return Vh(C)!==u});else{var y=p?d.filter(function(C){return C!==u}):[].concat(Tt(d),[u]),_=a(),S;if(p){var b=dy(y,{checked:!1,halfCheckedKeys:f},_);S=b.checkedKeys}else{var E=dy(y,!0,_);S=E.checkedKeys}var w=dze(S,a,l);g=s(w)}n([].concat(Tt(v),Tt(g)))}}}function vze(e,n,r,i,o){return m.useMemo(function(){var a=o(n),s=ke(a,2),l=s[0],c=s[1];if(!e||!n.length)return[l,[],c];var u=FO(l),d=r(),f=dy(u,!0,d),p=f.checkedKeys,h=f.halfCheckedKeys;return[i(p),i(h),c]},[e,n,r,i,o])}var rBt=m.memo(function(e){var n=e.children;return n},function(e,n){return!n.open});function iBt(e){var n,r=e.prefixCls,i=e.checked,o=e.halfChecked,a=e.disabled,s=e.onClick,l=e.disableCheckbox,c=m.useContext(hI),u=c.checkable,d=typeof u!="boolean"?u:null;return m.createElement("span",{className:Ce("".concat(r),(n={},fe(n,"".concat(r,"-checked"),i),fe(n,"".concat(r,"-indeterminate"),!i&&o),fe(n,"".concat(r,"-disabled"),a||l),n)),onClick:s},d)}var yze="__cascader_fix_label__";function oBt(e){var n=e.prefixCls,r=e.multiple,i=e.options,o=e.activeValue,a=e.prevValuePath,s=e.onToggleOpen,l=e.onSelect,c=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,f=e.loadingKeys,p=e.isSelectable,h=e.disabled,g="".concat(n,"-menu"),v="".concat(n,"-menu-item"),y=m.useContext(hI),_=y.fieldNames,S=y.changeOnSelect,b=y.expandTrigger,E=y.expandIcon,w=y.loadingIcon,C=y.dropdownMenuColumnStyle,x=y.optionRender,T=b==="hover",R=function(P){return h||P},O=m.useMemo(function(){return i.map(function(M){var P,k=M.disabled,$=M.disableCheckbox,U=M[WT],z=(P=M[yze])!==null&&P!==void 0?P:M[_.label],D=M[_.value],B=u2(M,_),Y=U?U.map(function(Q){return Q[_.value]}):[].concat(Tt(a),[D]),q=Vh(Y),K=f.includes(q),H=u.has(q),G=d.has(q);return{disabled:k,label:z,value:D,isLeaf:B,isLoading:K,checked:H,halfChecked:G,option:M,disableCheckbox:$,fullPath:Y,fullPathKey:q}})},[i,u,_,d,f,a]);return m.createElement("ul",{className:g,role:"menu"},O.map(function(M){var P,k=M.disabled,$=M.label,U=M.value,z=M.isLeaf,D=M.isLoading,B=M.checked,Y=M.halfChecked,q=M.option,K=M.fullPath,H=M.fullPathKey,G=M.disableCheckbox,Q=function(){if(!R(k)){var F=Tt(K);T&&z&&F.pop(),c(F)}},le=function(){p(q)&&!R(k)&&l(K,z)},Z;return typeof q.title=="string"?Z=q.title:typeof $=="string"&&(Z=$),m.createElement("li",{key:H,className:Ce(v,(P={},fe(P,"".concat(v,"-expand"),!z),fe(P,"".concat(v,"-active"),o===U||o===H),fe(P,"".concat(v,"-disabled"),R(k)),fe(P,"".concat(v,"-loading"),D),P)),style:C,role:"menuitemcheckbox",title:Z,"aria-checked":B,"data-path-key":H,onClick:function(){Q(),!G&&(!r||z)&&le()},onDoubleClick:function(){S&&s(!1)},onMouseEnter:function(){T&&Q()},onMouseDown:function(F){F.preventDefault()}},r&&m.createElement(iBt,{prefixCls:"".concat(n,"-checkbox"),checked:B,halfChecked:Y,disabled:R(k)||G,disableCheckbox:G,onClick:function(F){G||(F.stopPropagation(),le())}}),m.createElement("div",{className:"".concat(v,"-content")},x?x(q):$),!D&&E&&!z&&m.createElement("div",{className:"".concat(v,"-expand-icon")},E),D&&w&&m.createElement("div",{className:"".concat(v,"-loading-icon")},w))}))}var aBt=function(n,r){var i=m.useContext(hI),o=i.values,a=o[0],s=m.useState([]),l=ke(s,2),c=l[0],u=l[1];return m.useEffect(function(){n||u(a||[])},[r,a]),[c,u]};const sBt=function(e,n,r,i,o,a,s){var l=s.direction,c=s.searchValue,u=s.toggleOpen,d=s.open,f=l==="rtl",p=m.useMemo(function(){for(var C=-1,x=n,T=[],R=[],O=i.length,M=uze(n,r),P=function(D){var B=x.findIndex(function(Y,q){return(M[q]?Vh(M[q]):Y[r.value])===i[D]});if(B===-1)return 1;C=B,T.push(C),R.push(i[D]),x=x[C][r.children]},k=0;k<O&&x&&!P(k);k+=1);for(var $=n,U=0;U<T.length-1;U+=1)$=$[T[U]][r.children];return[R,C,$,M]},[i,r,n]),h=ke(p,4),g=h[0],v=h[1],y=h[2],_=h[3],S=function(x){o(x)},b=function(x){var T=y.length,R=v;R===-1&&x<0&&(R=T);for(var O=0;O<T;O+=1){R=(R+x+T)%T;var M=y[R];if(M&&!M.disabled){var P=g.slice(0,-1).concat(_[R]?Vh(_[R]):M[r.value]);S(P);return}}},E=function(){if(g.length>1){var x=g.slice(0,-1);S(x)}else u(!1)},w=function(){var x,T=((x=y[v])===null||x===void 0?void 0:x[r.children])||[],R=T.find(function(M){return!M.disabled});if(R){var O=[].concat(Tt(g),[R[r.value]]);S(O)}};m.useImperativeHandle(e,function(){return{onKeyDown:function(x){var T=x.which;switch(T){case At.UP:case At.DOWN:{var R=0;T===At.UP?R=-1:T===At.DOWN&&(R=1),R!==0&&b(R);break}case At.LEFT:{if(c)break;f?w():E();break}case At.RIGHT:{if(c)break;f?E():w();break}case At.BACKSPACE:{c||E();break}case At.ENTER:{if(g.length){var O=y[v],M=(O==null?void 0:O[WT])||[];M.length?a(M.map(function(P){return P[r.value]}),M[M.length-1]):a(g,y[v])}break}case At.ESC:u(!1),d&&x.stopPropagation()}},onKeyUp:function(){}}})};var _ze=m.forwardRef(function(e,n){var r,i,o,a=e.prefixCls,s=e.multiple,l=e.searchValue,c=e.toggleOpen,u=e.notFoundContent,d=e.direction,f=e.open,p=e.disabled,h=m.useRef(null),g=d==="rtl",v=m.useContext(hI),y=v.options,_=v.values,S=v.halfValues,b=v.fieldNames,E=v.changeOnSelect,w=v.onSelect,C=v.searchOptions,x=v.dropdownPrefixCls,T=v.loadData,R=v.expandTrigger,O=x||a,M=m.useState([]),P=ke(M,2),k=P[0],$=P[1],U=function(ve){if(!(!T||l)){var he=BO(ve,y,b),be=he.map(function(Ae){var Ee=Ae.option;return Ee}),we=be[be.length-1];if(we&&!u2(we,b)){var De=Vh(ve);$(function(Ae){return[].concat(Tt(Ae),[De])}),T(be)}}};m.useEffect(function(){k.length&&k.forEach(function(me){var ve=V8t(me),he=BO(ve,y,b,!0).map(function(we){var De=we.option;return De}),be=he[he.length-1];(!be||be[b.children]||u2(be,b))&&$(function(we){return we.filter(function(De){return De!==me})})})},[y,k,b]);var z=m.useMemo(function(){return new Set(FO(_))},[_]),D=m.useMemo(function(){return new Set(FO(S))},[S]),B=aBt(s,f),Y=ke(B,2),q=Y[0],K=Y[1],H=function(ve){K(ve),U(ve)},G=function(ve){if(p)return!1;var he=ve.disabled,be=u2(ve,b);return!he&&(be||E||s)},Q=function(ve,he){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;w(ve),!s&&(he||E&&(R==="hover"||be))&&c(!1)},le=m.useMemo(function(){return l?C:y},[l,C,y]),Z=m.useMemo(function(){for(var me=[{options:le}],ve=le,he=uze(ve,b),be=function(){var Ae=q[we],Ee=ve.find(function(Te,Oe){return(he[Oe]?Vh(he[Oe]):Te[b.value])===Ae}),Re=Ee==null?void 0:Ee[b.children];if(!(Re!=null&&Re.length))return 1;ve=Re,me.push({options:Re})},we=0;we<q.length&&!be();we+=1);return me},[le,q,b]),j=function(ve,he){G(he)&&Q(ve,u2(he,b),!0)};sBt(n,le,b,q,H,j,{direction:d,searchValue:l,toggleOpen:c,open:f}),m.useEffect(function(){if(!l)for(var me=0;me<q.length;me+=1){var ve,he=q.slice(0,me+1),be=Vh(he),we=(ve=h.current)===null||ve===void 0?void 0:ve.querySelector('li[data-path-key="'.concat(be.replace(/\\{0,2}"/g,'\\"'),'"]'));we&&G8t(we)}},[q,l]);var F=!((r=Z[0])!==null&&r!==void 0&&(r=r.options)!==null&&r!==void 0&&r.length),te=[(i={},fe(i,b.value,"__EMPTY__"),fe(i,yze,u),fe(i,"disabled",!0),i)],oe=ee(ee({},e),{},{multiple:!F&&s,onSelect:Q,onActive:H,onToggleOpen:c,checkedSet:z,halfCheckedSet:D,loadingKeys:k,isSelectable:G}),de=F?[{options:te}]:Z,pe=de.map(function(me,ve){var he=q.slice(0,ve),be=q[ve];return m.createElement(oBt,ft({key:ve},oe,{prefixCls:O,options:me.options,prevValuePath:he,activeValue:be}))});return m.createElement(rBt,{open:f},m.createElement("div",{className:Ce("".concat(O,"-menus"),(o={},fe(o,"".concat(O,"-menu-empty"),F),fe(o,"".concat(O,"-rtl"),g),o)),ref:h},pe))}),lBt=m.forwardRef(function(e,n){var r=Uue();return m.createElement(_ze,ft({},e,r,{ref:n}))});function cBt(){}function bze(e){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-cascader":i,a=r.style,s=r.className,l=r.options,c=r.checkable,u=r.defaultValue,d=r.value,f=r.fieldNames,p=r.changeOnSelect,h=r.onChange,g=r.showCheckedStrategy,v=r.loadData,y=r.expandTrigger,_=r.expandIcon,S=_===void 0?">":_,b=r.loadingIcon,E=r.direction,w=r.notFoundContent,C=w===void 0?"Not Found":w,x=r.disabled,T=!!c,R=dr(u,{value:d,postState:Y8}),O=ke(R,2),M=O[0],P=O[1],k=m.useMemo(function(){return cze(f)},[JSON.stringify(f)]),$=hze(k,l),U=ke($,3),z=U[0],D=U[1],B=U[2],Y=fze(z,k),q=vze(T,M,D,B,Y),K=ke(q,3),H=K[0],G=K[1],Q=K[2],le=Sr(function(de){if(P(de),h){var pe=Y8(de),me=pe.map(function(be){return BO(be,z,k).map(function(we){return we.option})}),ve=T?pe:pe[0],he=T?me:me[0];h(ve,he)}}),Z=mze(T,le,H,G,Q,D,B,g),j=Sr(function(de){Z(de)}),F=m.useMemo(function(){return{options:z,fieldNames:k,values:H,halfValues:G,changeOnSelect:p,onSelect:j,checkable:c,searchOptions:[],dropdownPrefixCls:void 0,loadData:v,expandTrigger:y,expandIcon:S,loadingIcon:b,dropdownMenuColumnStyle:void 0}},[z,k,H,G,p,j,c,v,y,S,b]),te="".concat(o,"-panel"),oe=!z.length;return m.createElement(hI.Provider,{value:F},m.createElement("div",{className:Ce(te,(n={},fe(n,"".concat(te,"-rtl"),E==="rtl"),fe(n,"".concat(te,"-empty"),oe),n),s),style:a},oe?C:m.createElement(_ze,{prefixCls:o,searchValue:"",multiple:T,toggleOpen:cBt,open:!0,direction:E,disabled:x})))}var uBt=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],wk=m.forwardRef(function(e,n){var r=e.id,i=e.prefixCls,o=i===void 0?"rc-cascader":i,a=e.fieldNames,s=e.defaultValue,l=e.value,c=e.changeOnSelect,u=e.onChange,d=e.displayRender,f=e.checkable,p=e.autoClearSearchValue,h=p===void 0?!0:p,g=e.searchValue,v=e.onSearch,y=e.showSearch,_=e.expandTrigger,S=e.options,b=e.dropdownPrefixCls,E=e.loadData,w=e.popupVisible,C=e.open,x=e.popupClassName,T=e.dropdownClassName,R=e.dropdownMenuColumnStyle,O=e.dropdownStyle,M=e.popupPlacement,P=e.placement,k=e.onDropdownVisibleChange,$=e.onPopupVisibleChange,U=e.expandIcon,z=U===void 0?">":U,D=e.loadingIcon,B=e.children,Y=e.dropdownMatchSelectWidth,q=Y===void 0?!1:Y,K=e.showCheckedStrategy,H=K===void 0?sze:K,G=e.optionRender,Q=Xt(e,uBt),le=Yue(r),Z=!!f,j=dr(s,{value:l,postState:Y8}),F=ke(j,2),te=F[0],oe=F[1],de=m.useMemo(function(){return cze(a)},[JSON.stringify(a)]),pe=hze(de,S),me=ke(pe,3),ve=me[0],he=me[1],be=me[2],we=dr("",{value:g,postState:function(Bt){return Bt||""}}),De=ke(we,2),Ae=De[0],Ee=De[1],Re=function(Bt,Vt){Ee(Bt),Vt.source!=="blur"&&v&&v(Bt)},Te=J8t(y),Oe=ke(Te,2),Ne=Oe[0],je=Oe[1],ne=z8t(Ae,ve,de,b||o,je,c||Z),J=fze(ve,de),ae=vze(Z,te,he,be,J),Se=ke(ae,3),xe=Se[0],ue=Se[1],Me=Se[2],$e=m.useMemo(function(){var Wt=FO(xe),Bt=dze(Wt,he,H);return[].concat(Tt(Me),Tt(be(Bt)))},[xe,he,be,Me,H]),ge=Y8t($e,ve,de,Z,d),Ve=Sr(function(Wt){if(oe(Wt),u){var Bt=Y8(Wt),Vt=Bt.map(function(it){return BO(it,ve,de).map(function(nt){return nt.option})}),rn=Z?Bt:Bt[0],tt=Z?Vt:Vt[0];u(rn,tt)}}),st=mze(Z,Ve,xe,ue,Me,he,be,H),Je=Sr(function(Wt){(!Z||h)&&Ee(""),st(Wt)}),ot=function(Bt,Vt){if(Vt.type==="clear"){Ve([]);return}var rn=Vt.values[0],tt=rn.valueCells;Je(tt)},Xe=C!==void 0?C:w,Ze=T||x,bt=P||M,at=function(Bt){k==null||k(Bt),$==null||$(Bt)},pt=m.useMemo(function(){return{options:ve,fieldNames:de,values:xe,halfValues:ue,changeOnSelect:c,onSelect:Je,checkable:f,searchOptions:ne,dropdownPrefixCls:b,loadData:E,expandTrigger:_,expandIcon:z,loadingIcon:D,dropdownMenuColumnStyle:R,optionRender:G}},[ve,de,xe,ue,c,Je,f,ne,b,E,_,z,D,R,G]),Ct=!(Ae?ne:ve).length,It=Ae&&je.matchInputWidth||Ct?{}:{minWidth:"auto"};return m.createElement(hI.Provider,{value:pt},m.createElement(zue,ft({},Q,{ref:n,id:le,prefixCls:o,autoClearSearchValue:h,dropdownMatchSelectWidth:q,dropdownStyle:ee(ee({},It),O),displayValues:ge,onDisplayValuesChange:ot,mode:Z?"multiple":void 0,searchValue:Ae,onSearch:Re,showSearch:Ne,OptionList:lBt,emptyOptions:Ct,open:Xe,dropdownClassName:Ze,placement:bt,onDropdownVisibleChange:at,getRawInputElement:function(){return B}})))});wk.SHOW_PARENT=sze;wk.SHOW_CHILD=lze;wk.Panel=bze;function Sze(e,n){const{getPrefixCls:r,direction:i,renderEmpty:o}=m.useContext(Cn),a=n||i,s=r("select",e),l=r("cascader",e);return[s,l,a,o]}function Eze(e,n){return m.useMemo(()=>n?m.createElement("span",{className:`${e}-checkbox-inner`}):!1,[n])}const Cze=(e,n,r)=>{let i=r;r||(i=n?m.createElement(_A,null):m.createElement(w0,null));const o=m.createElement("span",{className:`${e}-menu-item-loading-icon`},m.createElement(Nm,{spin:!0}));return m.useMemo(()=>[i,o],[i])},dBt=e=>{const{checkboxCls:n}=e,r=`${n}-wrapper`;return[{[`${n}-group`]:Object.assign(Object.assign({},li(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},li(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[n]:Object.assign(Object.assign({},li(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${n}-inner`]:Object.assign({},Xy(e))},[`${n}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ye(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:`${Ye(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}})},{[`
|
||
${r}:not(${r}-disabled),
|
||
${n}:not(${n}-disabled)
|
||
`]:{[`&:hover ${n}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${n}-checked:not(${n}-disabled) ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${n}-checked:not(${n}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-checked`]:{[`${n}-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}`}}},[`
|
||
${r}-checked:not(${r}-disabled),
|
||
${n}-checked:not(${n}-disabled)
|
||
`]:{[`&:hover ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[n]:{"&-indeterminate":{[`${n}-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 ${n}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${n}-disabled`]:{[`&, ${n}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${n}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${n}-indeterminate ${n}-inner::after`]:{background:e.colorTextDisabled}}}]};function bU(e,n){const r=wr(n,{checkboxCls:`.${e}`,checkboxSize:n.controlInteractiveSize});return[dBt(r)]}const wze=Yr("Checkbox",(e,n)=>{let{prefixCls:r}=n;return[bU(r,e)]}),xze=e=>{const{prefixCls:n,componentCls:r}=e,i=`${r}-menu-item`,o=`
|
||
&${i}-expand ${i}-expand-icon,
|
||
${i}-loading-icon
|
||
`;return[bU(`${n}-checkbox`,e),{[r]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${r}-menu-empty`]:{[`${r}-menu`]:{width:"100%",height:"auto",[i]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},bf),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${i}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},fBt=e=>{const{componentCls:n,antCls:r}=e;return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[{[`&${r}-select-dropdown`]:{padding:0}},xze(e)]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},nw(e)]},Tze=e=>{const n=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${n}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},Oze=Yr("Cascader",e=>[fBt(e)],Tze),pBt=e=>{const{componentCls:n}=e;return{[`${n}-panel`]:[xze(e),{display:"inline-flex",border:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${n}-menus`]:{alignItems:"stretch"},[`${n}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},hBt=b7e(["Cascader","Panel"],e=>pBt(e),Tze);function gBt(e){const{prefixCls:n,className:r,multiple:i,rootClassName:o,notFoundContent:a,direction:s,expandIcon:l,disabled:c}=e,u=m.useContext(xs),d=c??u,[f,p,h,g]=Sze(n,s),v=po(p),[y,_,S]=Oze(p,v);hBt(p);const b=h==="rtl",[E,w]=Cze(f,b,l),C=a||(g==null?void 0:g("Cascader"))||m.createElement(nU,{componentName:"Cascader"}),x=Eze(p,i);return y(m.createElement(bze,Object.assign({},e,{checkable:x,prefixCls:p,className:Ce(r,_,o,S,v),notFoundContent:C,direction:h,expandIcon:E,loadingIcon:w,disabled:d})))}var mBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const{SHOW_CHILD:vBt,SHOW_PARENT:yBt}=wk;function _Bt(e,n,r){const i=e.toLowerCase().split(n).reduce((s,l,c)=>c===0?[l]:[].concat(Tt(s),[n,l]),[]),o=[];let a=0;return i.forEach((s,l)=>{const c=a+s.length;let u=e.slice(a,c);a=c,l%2===1&&(u=m.createElement("span",{className:`${r}-menu-item-keyword`,key:`separator-${l}`},u)),o.push(u)}),o}const bBt=(e,n,r,i)=>{const o=[],a=e.toLowerCase();return n.forEach((s,l)=>{l!==0&&o.push(" / ");let c=s[i.label];const u=typeof c;(u==="string"||u==="number")&&(c=_Bt(String(c),a,r)),o.push(c)}),o},gI=m.forwardRef((e,n)=>{var r;const{prefixCls:i,size:o,disabled:a,className:s,rootClassName:l,multiple:c,bordered:u=!0,transitionName:d,choiceTransitionName:f="",popupClassName:p,dropdownClassName:h,expandIcon:g,placement:v,showSearch:y,allowClear:_=!0,notFoundContent:S,direction:b,getPopupContainer:E,status:w,showArrow:C,builtinPlacements:x,style:T,variant:R}=e,O=mBt(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),M=Wr(O,["suffixIcon"]),{getPopupContainer:P,getPrefixCls:k,popupOverflow:$,cascader:U}=m.useContext(Cn),{status:z,hasFeedback:D,isFormItemInput:B,feedbackIcon:Y}=m.useContext(qs),q=Zy(z,w),[K,H,G,Q]=Sze(i,b),le=G==="rtl",Z=k(),j=po(K),[F,te,oe]=Xue(K,j),de=po(H),[pe]=Oze(H,de),{compactSize:me,compactItemClassnames:ve}=yg(K,b),[he,be]=Jy("cascader",R,u),we=S||(Q==null?void 0:Q("Cascader"))||m.createElement(nU,{componentName:"Cascader"}),De=Ce(p||h,`${H}-dropdown`,{[`${H}-dropdown-rtl`]:G==="rtl"},l,j,de,te,oe),Ae=m.useMemo(()=>{if(!y)return y;let ge={render:bBt};return typeof y=="object"&&(ge=Object.assign(Object.assign({},ge),y)),ge},[y]),Ee=Xs(ge=>{var Ve;return(Ve=o??me)!==null&&Ve!==void 0?Ve:ge}),Re=m.useContext(xs),Te=a??Re,[Oe,Ne]=Cze(K,le,g),je=Eze(H,c),ne=Zue(e.suffixIcon,C),{suffixIcon:J,removeIcon:ae,clearIcon:Se}=rU(Object.assign(Object.assign({},e),{hasFeedback:D,feedbackIcon:Y,showSuffixIcon:ne,multiple:c,prefixCls:K,componentName:"Cascader"})),xe=m.useMemo(()=>v!==void 0?v:le?"bottomRight":"bottomLeft",[v,le]),ue=_===!0?{clearIcon:Se}:_,[Me]=Up("SelectLike",(r=M.dropdownStyle)===null||r===void 0?void 0:r.zIndex),$e=m.createElement(wk,Object.assign({prefixCls:K,className:Ce(!i&&H,{[`${K}-lg`]:Ee==="large",[`${K}-sm`]:Ee==="small",[`${K}-rtl`]:le,[`${K}-${he}`]:be,[`${K}-in-form-item`]:B},ng(K,q,D),ve,U==null?void 0:U.className,s,l,j,de,te,oe),disabled:Te,style:Object.assign(Object.assign({},U==null?void 0:U.style),T)},M,{builtinPlacements:Kue(x,$),direction:G,placement:xe,notFoundContent:we,allowClear:ue,showSearch:Ae,expandIcon:Oe,suffixIcon:J,removeIcon:ae,loadingIcon:Ne,checkable:je,dropdownClassName:De,dropdownPrefixCls:i||H,dropdownStyle:Object.assign(Object.assign({},M.dropdownStyle),{zIndex:Me}),choiceTransitionName:Kl(Z,"",f),transitionName:Kl(Z,"slide-up",d),getPopupContainer:E||P,ref:n}));return pe(F($e))}),SBt=tS(gI,"dropdownAlign",e=>Wr(e,["visible"]));gI.SHOW_PARENT=yBt;gI.SHOW_CHILD=vBt;gI.Panel=gBt;gI._InternalPanelDoNotUseOrYouWillBeFired=SBt;const Rze=V.createContext(null);var EBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const CBt=(e,n)=>{var r;const{prefixCls:i,className:o,rootClassName:a,children:s,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,h=EBt(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:y}=m.useContext(Cn),_=m.useContext(Rze),{isFormItemInput:S}=m.useContext(qs),b=m.useContext(xs),E=(r=(_==null?void 0:_.disabled)||p)!==null&&r!==void 0?r:b,w=m.useRef(h.value),C=m.useRef(null),x=Il(n,C);m.useEffect(()=>{_==null||_.registerValue(h.value)},[]),m.useEffect(()=>{if(!f)return h.value!==w.current&&(_==null||_.cancelValue(w.current),_==null||_.registerValue(h.value),w.current=h.value),()=>_==null?void 0:_.cancelValue(h.value)},[h.value]),m.useEffect(()=>{var B;!((B=C.current)===null||B===void 0)&&B.input&&(C.current.input.indeterminate=l)},[l]);const T=g("checkbox",i),R=po(T),[O,M,P]=wze(T,R),k=Object.assign({},h);_&&!f&&(k.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),_.toggleOption&&_.toggleOption({label:s,value:h.value})},k.name=_.name,k.checked=_.value.includes(h.value));const $=Ce(`${T}-wrapper`,{[`${T}-rtl`]:v==="rtl",[`${T}-wrapper-checked`]:k.checked,[`${T}-wrapper-disabled`]:E,[`${T}-wrapper-in-form-item`]:S},y==null?void 0:y.className,o,a,P,R,M),U=Ce({[`${T}-indeterminate`]:l},$9,M),[z,D]=WHe(k.onClick);return O(m.createElement(F9,{component:"Checkbox",disabled:E},m.createElement("label",{className:$,style:Object.assign(Object.assign({},y==null?void 0:y.style),c),onMouseEnter:u,onMouseLeave:d,onClick:z},m.createElement(GHe,Object.assign({},k,{onClick:D,prefixCls:T,className:U,disabled:E,ref:x})),s!==void 0&&m.createElement("span",null,s))))},Ize=m.forwardRef(CBt);var wBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const xBt=m.forwardRef((e,n)=>{const{defaultValue:r,children:i,options:o=[],prefixCls:a,className:s,rootClassName:l,style:c,onChange:u}=e,d=wBt(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=m.useContext(Cn),[h,g]=m.useState(d.value||r||[]),[v,y]=m.useState([]);m.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const _=m.useMemo(()=>o.map(U=>typeof U=="string"||typeof U=="number"?{label:U,value:U}:U),[o]),S=U=>{y(z=>z.filter(D=>D!==U))},b=U=>{y(z=>[].concat(Tt(z),[U]))},E=U=>{const z=h.indexOf(U.value),D=Tt(h);z===-1?D.push(U.value):D.splice(z,1),"value"in d||g(D),u==null||u(D.filter(B=>v.includes(B)).sort((B,Y)=>{const q=_.findIndex(H=>H.value===B),K=_.findIndex(H=>H.value===Y);return q-K}))},w=f("checkbox",a),C=`${w}-group`,x=po(w),[T,R,O]=wze(w,x),M=Wr(d,["value","disabled"]),P=o.length?_.map(U=>m.createElement(Ize,{prefixCls:w,key:U.value.toString(),disabled:"disabled"in U?U.disabled:d.disabled,value:U.value,checked:h.includes(U.value),onChange:U.onChange,className:`${C}-item`,style:U.style,title:U.title,id:U.id,required:U.required},U.label)):i,k={toggleOption:E,value:h,disabled:d.disabled,name:d.name,registerValue:b,cancelValue:S},$=Ce(C,{[`${C}-rtl`]:p==="rtl"},s,l,O,x,R);return T(m.createElement("div",Object.assign({className:$,style:c},M,{ref:n}),m.createElement(Rze.Provider,{value:k},P)))}),ow=Ize;ow.Group=xBt;ow.__ANT_CHECKBOX=!0;const Nze=m.createContext({});var TBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function NCe(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const OBt=["xs","sm","md","lg","xl","xxl"],SA=m.forwardRef((e,n)=>{const{getPrefixCls:r,direction:i}=m.useContext(Cn),{gutter:o,wrap:a}=m.useContext(Nze),{prefixCls:s,span:l,order:c,offset:u,push:d,pull:f,className:p,children:h,flex:g,style:v}=e,y=TBt(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),_=r("col",s),[S,b,E]=Zkt(_),w={};let C={};OBt.forEach(R=>{let O={};const M=e[R];typeof M=="number"?O.span=M:typeof M=="object"&&(O=M||{}),delete y[R],C=Object.assign(Object.assign({},C),{[`${_}-${R}-${O.span}`]:O.span!==void 0,[`${_}-${R}-order-${O.order}`]:O.order||O.order===0,[`${_}-${R}-offset-${O.offset}`]:O.offset||O.offset===0,[`${_}-${R}-push-${O.push}`]:O.push||O.push===0,[`${_}-${R}-pull-${O.pull}`]:O.pull||O.pull===0,[`${_}-rtl`]:i==="rtl"}),O.flex&&(C[`${_}-${R}-flex`]=!0,w[`--${_}-${R}-flex`]=NCe(O.flex))});const x=Ce(_,{[`${_}-${l}`]:l!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${u}`]:u,[`${_}-push-${d}`]:d,[`${_}-pull-${f}`]:f},p,C,b,E),T={};if(o&&o[0]>0){const R=o[0]/2;T.paddingLeft=R,T.paddingRight=R}return g&&(T.flex=NCe(g),a===!1&&!T.minWidth&&(T.minWidth=0)),S(m.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},T),v),w),className:x,ref:n}),h))});var RBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function MCe(e,n){const[r,i]=m.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&i(e),typeof e=="object")for(let a=0;a<LO.length;a++){const s=LO[a];if(!n[s])continue;const l=e[s];if(l!==void 0){i(l);return}}};return m.useEffect(()=>{o()},[JSON.stringify(e),n]),r}const Tde=m.forwardRef((e,n)=>{const{prefixCls:r,justify:i,align:o,className:a,style:s,children:l,gutter:c=0,wrap:u}=e,d=RBt(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=m.useContext(Cn),[h,g]=m.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,y]=m.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),_=MCe(o,v),S=MCe(i,v),b=m.useRef(c),E=bUe();m.useEffect(()=>{const D=E.subscribe(B=>{y(B);const Y=b.current||0;(!Array.isArray(Y)&&typeof Y=="object"||Array.isArray(Y)&&(typeof Y[0]=="object"||typeof Y[1]=="object"))&&g(B)});return()=>E.unsubscribe(D)},[]);const w=()=>{const D=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((Y,q)=>{if(typeof Y=="object")for(let K=0;K<LO.length;K++){const H=LO[K];if(h[H]&&Y[H]!==void 0){D[q]=Y[H];break}}else D[q]=Y}),D},C=f("row",r),[x,T,R]=Qkt(C),O=w(),M=Ce(C,{[`${C}-no-wrap`]:u===!1,[`${C}-${S}`]:S,[`${C}-${_}`]:_,[`${C}-rtl`]:p==="rtl"},a,T,R),P={},k=O[0]!=null&&O[0]>0?O[0]/-2:void 0;k&&(P.marginLeft=k,P.marginRight=k);const[$,U]=O;P.rowGap=U;const z=m.useMemo(()=>({gutter:[$,U],wrap:u}),[$,U,u]);return x(m.createElement(Nze.Provider,{value:z},m.createElement("div",Object.assign({},d,{className:M,style:Object.assign(Object.assign({},P),s),ref:n}),l)))}),IBt=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:r,colorSplit:i,lineWidth:o,textPaddingInline:a,orientationMargin:s,verticalMarginInline:l}=e;return{[n]:Object.assign(Object.assign({},li(e)),{borderBlockStart:`${Ye(o)} solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Ye(o)} solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ye(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${n}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ye(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Ye(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${n}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${Ye(o)} 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:i,borderStyle:"dotted",borderWidth:`${Ye(o)} 0 0`},[`&-horizontal${n}-with-text${n}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${n}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${n}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:r}}})}},NBt=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),MBt=Yr("Divider",e=>{const n=wr(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[IBt(n)]},NBt,{unitless:{orientationMargin:!0}});var PBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const ABt=e=>{const{getPrefixCls:n,direction:r,divider:i}=m.useContext(Cn),{prefixCls:o,type:a="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:d,dashed:f,variant:p="solid",plain:h,style:g}=e,v=PBt(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),y=n("divider",o),[_,S,b]=MBt(y),E=!!d,w=s==="left"&&l!=null,C=s==="right"&&l!=null,x=Ce(y,i==null?void 0:i.className,S,b,`${y}-${a}`,{[`${y}-with-text`]:E,[`${y}-with-text-${s}`]:E,[`${y}-dashed`]:!!f,[`${y}-${p}`]:p!=="solid",[`${y}-plain`]:!!h,[`${y}-rtl`]:r==="rtl",[`${y}-no-default-orientation-margin-left`]:w,[`${y}-no-default-orientation-margin-right`]:C},c,u),T=m.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),R=Object.assign(Object.assign({},w&&{marginLeft:T}),C&&{marginRight:T});return _(m.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},i==null?void 0:i.style),g)},v,{role:"separator"}),d&&a!=="vertical"&&m.createElement("span",{className:`${y}-inner-text`,style:R},d)))};var PCe=function(n,r){if(!n)return null;var i={left:n.offsetLeft,right:n.parentElement.clientWidth-n.clientWidth-n.offsetLeft,width:n.clientWidth,top:n.offsetTop,bottom:n.parentElement.clientHeight-n.clientHeight-n.offsetTop,height:n.clientHeight};return r?{left:0,right:0,width:0,top:i.top,bottom:i.bottom,height:i.height}:{left:i.left,right:i.right,width:i.width,top:0,bottom:0,height:0}},jg=function(n){return n!==void 0?"".concat(n,"px"):void 0};function DBt(e){var n=e.prefixCls,r=e.containerRef,i=e.value,o=e.getValueIndex,a=e.motionName,s=e.onMotionStart,l=e.onMotionEnd,c=e.direction,u=e.vertical,d=u===void 0?!1:u,f=m.useRef(null),p=m.useState(i),h=ke(p,2),g=h[0],v=h[1],y=function(U){var z,D=o(U),B=(z=r.current)===null||z===void 0?void 0:z.querySelectorAll(".".concat(n,"-item"))[D];return(B==null?void 0:B.offsetParent)&&B},_=m.useState(null),S=ke(_,2),b=S[0],E=S[1],w=m.useState(null),C=ke(w,2),x=C[0],T=C[1];ti(function(){if(g!==i){var $=y(g),U=y(i),z=PCe($,d),D=PCe(U,d);v(i),E(z),T(D),$&&U?s():l()}},[i]);var R=m.useMemo(function(){if(d){var $;return jg(($=b==null?void 0:b.top)!==null&&$!==void 0?$:0)}return jg(c==="rtl"?-(b==null?void 0:b.right):b==null?void 0:b.left)},[d,c,b]),O=m.useMemo(function(){if(d){var $;return jg(($=x==null?void 0:x.top)!==null&&$!==void 0?$:0)}return jg(c==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left)},[d,c,x]),M=function(){return d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},P=function(){return d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},k=function(){E(null),T(null),l()};return!b||!x?null:m.createElement(Ws,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:M,onAppearActive:P,onVisibleChanged:k},function($,U){var z=$.className,D=$.style,B=ee(ee({},D),{},{"--thumb-start-left":R,"--thumb-start-width":jg(b==null?void 0:b.width),"--thumb-active-left":O,"--thumb-active-width":jg(x==null?void 0:x.width),"--thumb-start-top":R,"--thumb-start-height":jg(b==null?void 0:b.height),"--thumb-active-top":O,"--thumb-active-height":jg(x==null?void 0:x.height)}),Y={ref:Il(f,U),style:B,className:Ce("".concat(n,"-thumb"),z)};return m.createElement("div",Y)})}var kBt=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function LBt(e){if(typeof e.title<"u")return e.title;if(cn(e.label)!=="object"){var n;return(n=e.label)===null||n===void 0?void 0:n.toString()}}function $Bt(e){return e.map(function(n){if(cn(n)==="object"&&n!==null){var r=LBt(n);return ee(ee({},n),{},{title:r})}return{label:n==null?void 0:n.toString(),title:n==null?void 0:n.toString(),value:n}})}var FBt=function(n){var r=n.prefixCls,i=n.className,o=n.disabled,a=n.checked,s=n.label,l=n.title,c=n.value,u=n.name,d=n.onChange,f=n.onFocus,p=n.onBlur,h=n.onKeyDown,g=n.onKeyUp,v=n.onMouseDown,y=function(S){o||d(S,c)};return m.createElement("label",{className:Ce(i,fe({},"".concat(r,"-item-disabled"),o)),onMouseDown:v},m.createElement("input",{name:u,className:"".concat(r,"-item-input"),type:"radio",disabled:o,checked:a,onChange:y,onFocus:f,onBlur:p,onKeyDown:h,onKeyUp:g}),m.createElement("div",{className:"".concat(r,"-item-label"),title:l,"aria-selected":a},s))},BBt=m.forwardRef(function(e,n){var r,i,o=e.prefixCls,a=o===void 0?"rc-segmented":o,s=e.direction,l=e.vertical,c=e.options,u=c===void 0?[]:c,d=e.disabled,f=e.defaultValue,p=e.value,h=e.name,g=e.onChange,v=e.className,y=v===void 0?"":v,_=e.motionName,S=_===void 0?"thumb-motion":_,b=Xt(e,kBt),E=m.useRef(null),w=m.useMemo(function(){return Il(E,n)},[E,n]),C=m.useMemo(function(){return $Bt(u)},[u]),x=dr((r=C[0])===null||r===void 0?void 0:r.value,{value:p,defaultValue:f}),T=ke(x,2),R=T[0],O=T[1],M=m.useState(!1),P=ke(M,2),k=P[0],$=P[1],U=function(pe,me){O(me),g==null||g(me)},z=Wr(b,["children"]),D=m.useState(!1),B=ke(D,2),Y=B[0],q=B[1],K=m.useState(!1),H=ke(K,2),G=H[0],Q=H[1],le=function(){Q(!0)},Z=function(){Q(!1)},j=function(){q(!1)},F=function(pe){pe.key==="Tab"&&q(!0)},te=function(pe){var me=C.findIndex(function(we){return we.value===R}),ve=C.length,he=(me+pe+ve)%ve,be=C[he];be&&(O(be.value),g==null||g(be.value))},oe=function(pe){switch(pe.key){case"ArrowLeft":case"ArrowUp":te(-1);break;case"ArrowRight":case"ArrowDown":te(1);break}};return m.createElement("div",ft({role:"radiogroup","aria-label":"segmented control",tabIndex:d?void 0:0},z,{className:Ce(a,(i={},fe(i,"".concat(a,"-rtl"),s==="rtl"),fe(i,"".concat(a,"-disabled"),d),fe(i,"".concat(a,"-vertical"),l),i),y),ref:w}),m.createElement("div",{className:"".concat(a,"-group")},m.createElement(DBt,{vertical:l,prefixCls:a,value:R,containerRef:E,motionName:"".concat(a,"-").concat(S),direction:s,getValueIndex:function(pe){return C.findIndex(function(me){return me.value===pe})},onMotionStart:function(){$(!0)},onMotionEnd:function(){$(!1)}}),C.map(function(de){var pe;return m.createElement(FBt,ft({},de,{name:h,key:de.value,prefixCls:a,className:Ce(de.className,"".concat(a,"-item"),(pe={},fe(pe,"".concat(a,"-item-selected"),de.value===R&&!k),fe(pe,"".concat(a,"-item-focused"),G&&Y&&de.value===R),pe)),checked:de.value===R,onChange:U,onFocus:le,onBlur:Z,onKeyDown:oe,onKeyUp:F,onMouseDown:j,disabled:!!d||!!de.disabled}))})))}),jBt=BBt;function ACe(e,n){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:n.colorTextDisabled,cursor:"not-allowed"}}}function DCe(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const UBt=Object.assign({overflow:"hidden"},bf),HBt=e=>{const{componentCls:n}=e,r=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Op(e)),{[`${n}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${n}-rtl`]:{direction:"rtl"},[`&${n}-vertical`]:{[`${n}-group`]:{flexDirection:"column"},[`${n}-thumb`]:{width:"100%",height:0,padding:`0 ${Ye(e.paddingXXS)}`}},[`&${n}-block`]:{display:"flex"},[`&${n}-block ${n}-item`]:{flex:1,minWidth:0},[`${n}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},DCe(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},Xy(e)),"&::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(${n}-item-selected):not(${n}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${n}-item-selected):not(${n}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:r,lineHeight:Ye(r),padding:`0 ${Ye(e.segmentedPaddingHorizontal)}`},UBt),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${n}-thumb`]:Object.assign(Object.assign({},DCe(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Ye(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${n}-item:not(${n}-item-selected):not(${n}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${n}-lg`]:{borderRadius:e.borderRadiusLG,[`${n}-item-label`]:{minHeight:i,lineHeight:Ye(i),padding:`0 ${Ye(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${n}-item, ${n}-thumb`]:{borderRadius:e.borderRadius}},[`&${n}-sm`]:{borderRadius:e.borderRadiusSM,[`${n}-item-label`]:{minHeight:o,lineHeight:Ye(o),padding:`0 ${Ye(e.segmentedPaddingHorizontalSM)}`},[`${n}-item, ${n}-thumb`]:{borderRadius:e.borderRadiusXS}}}),ACe(`&-disabled ${n}-item`,e)),ACe(`${n}-item-disabled`,e)),{[`${n}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},zBt=e=>{const{colorTextLabel:n,colorText:r,colorFillSecondary:i,colorBgElevated:o,colorFill:a,lineWidthBold:s,colorBgLayout:l}=e;return{trackPadding:s,trackBg:l,itemColor:n,itemHoverColor:r,itemHoverBg:i,itemSelectedBg:o,itemActiveBg:a,itemSelectedColor:r}},VBt=Yr("Segmented",e=>{const{lineWidth:n,calc:r}=e,i=wr(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(n).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(n).equal()});return[HBt(i)]},zBt);var kCe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function GBt(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const WBt=m.forwardRef((e,n)=>{const r=X9(),{prefixCls:i,className:o,rootClassName:a,block:s,options:l=[],size:c="middle",style:u,vertical:d,name:f=r}=e,p=kCe(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:h,direction:g,segmented:v}=m.useContext(Cn),y=h("segmented",i),[_,S,b]=VBt(y),E=Xs(c),w=m.useMemo(()=>l.map(T=>{if(GBt(T)){const{icon:R,label:O}=T,M=kCe(T,["icon","label"]);return Object.assign(Object.assign({},M),{label:m.createElement(m.Fragment,null,m.createElement("span",{className:`${y}-item-icon`},R),O&&m.createElement("span",null,O))})}return T}),[l,y]),C=Ce(o,a,v==null?void 0:v.className,{[`${y}-block`]:s,[`${y}-sm`]:E==="small",[`${y}-lg`]:E==="large",[`${y}-vertical`]:d},S,b),x=Object.assign(Object.assign({},v==null?void 0:v.style),u);return _(m.createElement(jBt,Object.assign({},p,{name:f,className:C,style:x,options:w,ref:n,prefixCls:y,direction:g,vertical:d})))}),Mze=WBt,Pze=V.createContext({}),Aze=V.createContext({}),Dze=e=>{let{prefixCls:n,value:r,onChange:i}=e;const o=()=>{if(i&&r&&!r.cleared){const a=r.toHsb();a.a=0;const s=Gc(a);s.cleared=!0,i(s)}};return V.createElement("div",{className:`${n}-clear`,onClick:o})};var d0;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(d0||(d0={}));var YBt={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"},qBt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:YBt}))},kze=m.forwardRef(qBt);function _ie(){return typeof BigInt=="function"}function Lze(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function N1(e){var n=e.trim(),r=n.startsWith("-");r&&(n=n.slice(1)),n=n.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),n.startsWith(".")&&(n="0".concat(n));var i=n||"0",o=i.split("."),a=o[0]||"0",s=o[1]||"0";a==="0"&&s==="0"&&(r=!1);var l=r?"-":"";return{negative:r,negativeStr:l,trimStr:i,integerStr:a,decimalStr:s,fullStr:"".concat(l).concat(i)}}function Ode(e){var n=String(e);return!Number.isNaN(Number(n))&&n.includes("e")}function o1(e){var n=String(e);if(Ode(e)){var r=Number(n.slice(n.indexOf("e-")+2)),i=n.match(/\.(\d+)/);return i!=null&&i[1]&&(r+=i[1].length),r}return n.includes(".")&&Rde(n)?n.length-n.indexOf(".")-1:0}function SU(e){var n=String(e);if(Ode(e)){if(e>Number.MAX_SAFE_INTEGER)return String(_ie()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(_ie()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);n=e.toFixed(o1(n))}return N1(n).fullStr}function Rde(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 KBt=function(){function e(n){if(Ki(this,e),fe(this,"origin",""),fe(this,"negative",void 0),fe(this,"integer",void 0),fe(this,"decimal",void 0),fe(this,"decimalLen",void 0),fe(this,"empty",void 0),fe(this,"nan",void 0),Lze(n)){this.empty=!0;return}if(this.origin=String(n),n==="-"||Number.isNaN(n)){this.nan=!0;return}var r=n;if(Ode(r)&&(r=Number(r)),r=typeof r=="string"?r:SU(r),Rde(r)){var i=N1(r);this.negative=i.negative;var o=i.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return Xi(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(r){var i="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(i)}},{key:"negate",value:function(){var r=new e(this.toString());return r.negative=!r.negative,r}},{key:"cal",value:function(r,i,o){var a=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),s=this.alignDecimal(a),l=r.alignDecimal(a),c=i(s,l).toString(),u=o(a),d=N1(c),f=d.negativeStr,p=d.trimStr,h="".concat(f).concat(p.padStart(u+1,"0"));return new e("".concat(h.slice(0,-u),".").concat(h.slice(-u)))}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var i=new e(r);return i.isInvalidate()?this:this.cal(i,function(o,a){return o+a},function(o){return o})}},{key:"multi",value:function(r){var i=new e(r);return this.isInvalidate()||i.isInvalidate()?new e(NaN):this.cal(i,function(o,a){return o*a},function(o){return o*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(r){return this.toString()===(r==null?void 0:r.toString())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":N1("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),XBt=function(){function e(n){if(Ki(this,e),fe(this,"origin",""),fe(this,"number",void 0),fe(this,"empty",void 0),Lze(n)){this.empty=!0;return}this.origin=String(n),this.number=Number(n)}return Xi(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var i=Number(r);if(Number.isNaN(i))return this;var o=this.number+i;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(o1(this.number),o1(i));return new e(o.toFixed(a))}},{key:"multi",value:function(r){var i=Number(r);if(this.isInvalidate()||Number.isNaN(i))return new e(NaN);var o=this.number*i;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(o1(this.number),o1(i));return new e(o.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(r){return this.toNumber()===(r==null?void 0:r.toNumber())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":SU(this.number):this.origin}}]),e}();function vh(e){return _ie()?new KBt(e):new XBt(e)}function g6(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=N1(e),a=o.negativeStr,s=o.integerStr,l=o.decimalStr,c="".concat(n).concat(l),u="".concat(a).concat(s);if(r>=0){var d=Number(l[r]);if(d>=5&&!i){var f=vh(e).add("".concat(a,"0.").concat("0".repeat(r)).concat(10-d));return g6(f.toString(),n,r,i)}return r===0?u:"".concat(u).concat(n).concat(l.padEnd(r,"0").slice(0,r))}return c===".0"?u:"".concat(u).concat(c)}function QBt(e){return!!(e.addonBefore||e.addonAfter)}function ZBt(e){return!!(e.prefix||e.suffix||e.allowClear)}function LCe(e,n,r){var i=n.cloneNode(!0),o=Object.create(e,{target:{value:i},currentTarget:{value:i}});return i.value=r,typeof n.selectionStart=="number"&&typeof n.selectionEnd=="number"&&(i.selectionStart=n.selectionStart,i.selectionEnd=n.selectionEnd),i.setSelectionRange=function(){n.setSelectionRange.apply(n,arguments)},o}function K8(e,n,r,i){if(r){var o=n;if(n.type==="click"){o=LCe(n,e,""),r(o);return}if(e.type!=="file"&&i!==void 0){o=LCe(n,e,i),r(o);return}r(o)}}function Ide(e,n){if(e){e.focus(n);var r=n||{},i=r.cursor;if(i){var o=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Nde=V.forwardRef(function(e,n){var r,i,o,a=e.inputElement,s=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,h=e.style,g=e.disabled,v=e.readOnly,y=e.focused,_=e.triggerFocus,S=e.allowClear,b=e.value,E=e.handleReset,w=e.hidden,C=e.classes,x=e.classNames,T=e.dataAttrs,R=e.styles,O=e.components,M=e.onClear,P=s??a,k=(O==null?void 0:O.affixWrapper)||"span",$=(O==null?void 0:O.groupWrapper)||"span",U=(O==null?void 0:O.wrapper)||"span",z=(O==null?void 0:O.groupAddon)||"span",D=m.useRef(null),B=function(he){var be;(be=D.current)!==null&&be!==void 0&&be.contains(he.target)&&(_==null||_())},Y=ZBt(e),q=m.cloneElement(P,{value:b,className:Ce((r=P.props)===null||r===void 0?void 0:r.className,!Y&&(x==null?void 0:x.variant))||null}),K=m.useRef(null);if(V.useImperativeHandle(n,function(){return{nativeElement:K.current||D.current}}),Y){var H=null;if(S){var G=!g&&!v&&b,Q="".concat(l,"-clear-icon"),le=cn(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";H=V.createElement("button",{type:"button",onClick:function(he){E==null||E(he),M==null||M()},onMouseDown:function(he){return he.preventDefault()},className:Ce(Q,fe(fe({},"".concat(Q,"-hidden"),!G),"".concat(Q,"-has-suffix"),!!u))},le)}var Z="".concat(l,"-affix-wrapper"),j=Ce(Z,fe(fe(fe(fe(fe({},"".concat(l,"-disabled"),g),"".concat(Z,"-disabled"),g),"".concat(Z,"-focused"),y),"".concat(Z,"-readonly"),v),"".concat(Z,"-input-with-clear-btn"),u&&S&&b),C==null?void 0:C.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),F=(u||S)&&V.createElement("span",{className:Ce("".concat(l,"-suffix"),x==null?void 0:x.suffix),style:R==null?void 0:R.suffix},H,u);q=V.createElement(k,ft({className:j,style:R==null?void 0:R.affixWrapper,onClick:B},T==null?void 0:T.affixWrapper,{ref:D}),c&&V.createElement("span",{className:Ce("".concat(l,"-prefix"),x==null?void 0:x.prefix),style:R==null?void 0:R.prefix},c),q,F)}if(QBt(e)){var te="".concat(l,"-group"),oe="".concat(te,"-addon"),de="".concat(te,"-wrapper"),pe=Ce("".concat(l,"-wrapper"),te,C==null?void 0:C.wrapper,x==null?void 0:x.wrapper),me=Ce(de,fe({},"".concat(de,"-disabled"),g),C==null?void 0:C.group,x==null?void 0:x.groupWrapper);q=V.createElement($,{className:me,ref:K},V.createElement(U,{className:pe},d&&V.createElement(z,{className:oe},d),q,f&&V.createElement(z,{className:oe},f)))}return V.cloneElement(q,{className:Ce((i=q.props)===null||i===void 0?void 0:i.className,p)||null,style:ee(ee({},(o=q.props)===null||o===void 0?void 0:o.style),h),hidden:w})}),JBt=["show"];function $ze(e,n){return m.useMemo(function(){var r={};n&&(r.show=cn(n)==="object"&&n.formatter?n.formatter:!!n),r=ee(ee({},r),e);var i=r,o=i.show,a=Xt(i,JBt);return ee(ee({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(s){return s.length}})},[e,n])}var ejt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],tjt=m.forwardRef(function(e,n){var r=e.autoComplete,i=e.onChange,o=e.onFocus,a=e.onBlur,s=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,p=e.htmlSize,h=e.className,g=e.maxLength,v=e.suffix,y=e.showCount,_=e.count,S=e.type,b=S===void 0?"text":S,E=e.classes,w=e.classNames,C=e.styles,x=e.onCompositionStart,T=e.onCompositionEnd,R=Xt(e,ejt),O=m.useState(!1),M=ke(O,2),P=M[0],k=M[1],$=m.useRef(!1),U=m.useRef(!1),z=m.useRef(null),D=m.useRef(null),B=function(Ne){z.current&&Ide(z.current,Ne)},Y=dr(e.defaultValue,{value:e.value}),q=ke(Y,2),K=q[0],H=q[1],G=K==null?"":String(K),Q=m.useState(null),le=ke(Q,2),Z=le[0],j=le[1],F=$ze(_,y),te=F.max||g,oe=F.strategy(G),de=!!te&&oe>te;m.useImperativeHandle(n,function(){var Oe;return{focus:B,blur:function(){var je;(je=z.current)===null||je===void 0||je.blur()},setSelectionRange:function(je,ne,J){var ae;(ae=z.current)===null||ae===void 0||ae.setSelectionRange(je,ne,J)},select:function(){var je;(je=z.current)===null||je===void 0||je.select()},input:z.current,nativeElement:((Oe=D.current)===null||Oe===void 0?void 0:Oe.nativeElement)||z.current}}),m.useEffect(function(){U.current&&(U.current=!1),k(function(Oe){return Oe&&f?!1:Oe})},[f]);var pe=function(Ne,je,ne){var J=je;if(!$.current&&F.exceedFormatter&&F.max&&F.strategy(je)>F.max){if(J=F.exceedFormatter(je,{max:F.max}),je!==J){var ae,Se;j([((ae=z.current)===null||ae===void 0?void 0:ae.selectionStart)||0,((Se=z.current)===null||Se===void 0?void 0:Se.selectionEnd)||0])}}else if(ne.source==="compositionEnd")return;H(J),z.current&&K8(z.current,Ne,i,J)};m.useEffect(function(){if(Z){var Oe;(Oe=z.current)===null||Oe===void 0||Oe.setSelectionRange.apply(Oe,Tt(Z))}},[Z]);var me=function(Ne){pe(Ne,Ne.target.value,{source:"change"})},ve=function(Ne){$.current=!1,pe(Ne,Ne.currentTarget.value,{source:"compositionEnd"}),T==null||T(Ne)},he=function(Ne){s&&Ne.key==="Enter"&&!U.current&&(U.current=!0,s(Ne)),l==null||l(Ne)},be=function(Ne){Ne.key==="Enter"&&(U.current=!1),c==null||c(Ne)},we=function(Ne){k(!0),o==null||o(Ne)},De=function(Ne){U.current&&(U.current=!1),k(!1),a==null||a(Ne)},Ae=function(Ne){H(""),B(),z.current&&K8(z.current,Ne,i)},Ee=de&&"".concat(d,"-out-of-range"),Re=function(){var Ne=Wr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return V.createElement("input",ft({autoComplete:r},Ne,{onChange:me,onFocus:we,onBlur:De,onKeyDown:he,onKeyUp:be,className:Ce(d,fe({},"".concat(d,"-disabled"),f),w==null?void 0:w.input),style:C==null?void 0:C.input,ref:z,size:p,type:b,onCompositionStart:function(ne){$.current=!0,x==null||x(ne)},onCompositionEnd:ve}))},Te=function(){var Ne=Number(te)>0;if(v||F.show){var je=F.showFormatter?F.showFormatter({value:G,count:oe,maxLength:te}):"".concat(oe).concat(Ne?" / ".concat(te):"");return V.createElement(V.Fragment,null,F.show&&V.createElement("span",{className:Ce("".concat(d,"-show-count-suffix"),fe({},"".concat(d,"-show-count-has-suffix"),!!v),w==null?void 0:w.count),style:ee({},C==null?void 0:C.count)},je),v)}return null};return V.createElement(Nde,ft({},R,{prefixCls:d,className:Ce(h,Ee),handleReset:Ae,value:G,focused:P,triggerFocus:B,suffix:Te(),disabled:f,classes:E,classNames:w,styles:C}),Re())});function njt(e,n){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(i,o){if(n[o])return n[o];var a=i[o];return typeof a=="function"?a.bind(i):a}}):e}function rjt(e,n){var r=m.useRef(null);function i(){try{var a=e.selectionStart,s=e.selectionEnd,l=e.value,c=l.substring(0,a),u=l.substring(s);r.current={start:a,end:s,value:l,beforeTxt:c,afterTxt:u}}catch{}}function o(){if(e&&r.current&&n)try{var a=e.value,s=r.current,l=s.beforeTxt,c=s.afterTxt,u=s.start,d=a.length;if(a.startsWith(l))d=l.length;else if(a.endsWith(c))d=a.length-r.current.afterTxt.length;else{var f=l[u-1],p=a.indexOf(f,u-1);p!==-1&&(d=p+1)}e.setSelectionRange(d,d)}catch(h){qi(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[i,o]}var ijt=function(){var n=m.useState(!1),r=ke(n,2),i=r[0],o=r[1];return ti(function(){o(eU())},[]),i},ojt=200,ajt=600;function sjt(e){var n=e.prefixCls,r=e.upNode,i=e.downNode,o=e.upDisabled,a=e.downDisabled,s=e.onStep,l=m.useRef(),c=m.useRef([]),u=m.useRef();u.current=s;var d=function(){clearTimeout(l.current)},f=function(b,E){b.preventDefault(),d(),u.current(E);function w(){u.current(E),l.current=setTimeout(w,ojt)}l.current=setTimeout(w,ajt)};m.useEffect(function(){return function(){d(),c.current.forEach(function(S){return Dr.cancel(S)})}},[]);var p=ijt();if(p)return null;var h="".concat(n,"-handler"),g=Ce(h,"".concat(h,"-up"),fe({},"".concat(h,"-up-disabled"),o)),v=Ce(h,"".concat(h,"-down"),fe({},"".concat(h,"-down-disabled"),a)),y=function(){return c.current.push(Dr(d))},_={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return m.createElement("div",{className:"".concat(h,"-wrap")},m.createElement("span",ft({},_,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":o,className:g}),r||m.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner")})),m.createElement("span",ft({},_,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:v}),i||m.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner")})))}function $Ce(e){var n=typeof e=="number"?SU(e):N1(e).fullStr,r=n.includes(".");return r?N1(n.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const ljt=function(){var e=m.useRef(0),n=function(){Dr.cancel(e.current)};return m.useEffect(function(){return n},[]),function(r){n(),e.current=Dr(function(){r()})}};var cjt=["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"],ujt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],FCe=function(n,r){return n||r.isEmpty()?r.toString():r.toNumber()},BCe=function(n){var r=vh(n);return r.isInvalidate()?null:r},djt=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.className,o=e.style,a=e.min,s=e.max,l=e.step,c=l===void 0?1:l,u=e.defaultValue,d=e.value,f=e.disabled,p=e.readOnly,h=e.upHandler,g=e.downHandler,v=e.keyboard,y=e.changeOnWheel,_=y===void 0?!1:y,S=e.controls,b=S===void 0?!0:S;e.classNames;var E=e.stringMode,w=e.parser,C=e.formatter,x=e.precision,T=e.decimalSeparator,R=e.onChange,O=e.onInput,M=e.onPressEnter,P=e.onStep,k=e.changeOnBlur,$=k===void 0?!0:k,U=e.domRef,z=Xt(e,cjt),D="".concat(r,"-input"),B=m.useRef(null),Y=m.useState(!1),q=ke(Y,2),K=q[0],H=q[1],G=m.useRef(!1),Q=m.useRef(!1),le=m.useRef(!1),Z=m.useState(function(){return vh(d??u)}),j=ke(Z,2),F=j[0],te=j[1];function oe(at){d===void 0&&te(at)}var de=m.useCallback(function(at,pt){if(!pt)return x>=0?x:Math.max(o1(at),o1(c))},[x,c]),pe=m.useCallback(function(at){var pt=String(at);if(w)return w(pt);var Ct=pt;return T&&(Ct=Ct.replace(T,".")),Ct.replace(/[^\w.-]+/g,"")},[w,T]),me=m.useRef(""),ve=m.useCallback(function(at,pt){if(C)return C(at,{userTyping:pt,input:String(me.current)});var Ct=typeof at=="number"?SU(at):at;if(!pt){var It=de(Ct,pt);if(Rde(Ct)&&(T||It>=0)){var Wt=T||".";Ct=g6(Ct,Wt,It)}}return Ct},[C,de,T]),he=m.useState(function(){var at=u??d;return F.isInvalidate()&&["string","number"].includes(cn(at))?Number.isNaN(at)?"":at:ve(F.toString(),!1)}),be=ke(he,2),we=be[0],De=be[1];me.current=we;function Ae(at,pt){De(ve(at.isInvalidate()?at.toString(!1):at.toString(!pt),pt))}var Ee=m.useMemo(function(){return BCe(s)},[s,x]),Re=m.useMemo(function(){return BCe(a)},[a,x]),Te=m.useMemo(function(){return!Ee||!F||F.isInvalidate()?!1:Ee.lessEquals(F)},[Ee,F]),Oe=m.useMemo(function(){return!Re||!F||F.isInvalidate()?!1:F.lessEquals(Re)},[Re,F]),Ne=rjt(B.current,K),je=ke(Ne,2),ne=je[0],J=je[1],ae=function(pt){return Ee&&!pt.lessEquals(Ee)?Ee:Re&&!Re.lessEquals(pt)?Re:null},Se=function(pt){return!ae(pt)},xe=function(pt,Ct){var It=pt,Wt=Se(It)||It.isEmpty();if(!It.isEmpty()&&!Ct&&(It=ae(It)||It,Wt=!0),!p&&!f&&Wt){var Bt=It.toString(),Vt=de(Bt,Ct);return Vt>=0&&(It=vh(g6(Bt,".",Vt)),Se(It)||(It=vh(g6(Bt,".",Vt,!0)))),It.equals(F)||(oe(It),R==null||R(It.isEmpty()?null:FCe(E,It)),d===void 0&&Ae(It,Ct)),It}return F},ue=ljt(),Me=function at(pt){if(ne(),me.current=pt,De(pt),!Q.current){var Ct=pe(pt),It=vh(Ct);It.isNaN()||xe(It,!0)}O==null||O(pt),ue(function(){var Wt=pt;w||(Wt=pt.replace(/。/g,".")),Wt!==pt&&at(Wt)})},$e=function(){Q.current=!0},ge=function(){Q.current=!1,Me(B.current.value)},Ve=function(pt){Me(pt.target.value)},st=function(pt){var Ct;if(!(pt&&Te||!pt&&Oe)){G.current=!1;var It=vh(le.current?$Ce(c):c);pt||(It=It.negate());var Wt=(F||vh(0)).add(It.toString()),Bt=xe(Wt,!1);P==null||P(FCe(E,Bt),{offset:le.current?$Ce(c):c,type:pt?"up":"down"}),(Ct=B.current)===null||Ct===void 0||Ct.focus()}},Je=function(pt){var Ct=vh(pe(we)),It;Ct.isNaN()?It=xe(F,pt):It=xe(Ct,pt),d!==void 0?Ae(F,!1):It.isNaN()||Ae(It,!1)},ot=function(){G.current=!0},Xe=function(pt){var Ct=pt.key,It=pt.shiftKey;G.current=!0,le.current=It,Ct==="Enter"&&(Q.current||(G.current=!1),Je(!1),M==null||M(pt)),v!==!1&&!Q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ct)&&(st(Ct==="Up"||Ct==="ArrowUp"),pt.preventDefault())},Ze=function(){G.current=!1,le.current=!1};m.useEffect(function(){if(_&&K){var at=function(It){st(It.deltaY<0),It.preventDefault()},pt=B.current;if(pt)return pt.addEventListener("wheel",at,{passive:!1}),function(){return pt.removeEventListener("wheel",at)}}});var bt=function(){$&&Je(!1),H(!1),G.current=!1};return I1(function(){F.isInvalidate()||Ae(F,!1)},[x,C]),I1(function(){var at=vh(d);te(at);var pt=vh(pe(we));(!at.equals(pt)||!G.current||C)&&Ae(at,G.current)},[d]),I1(function(){C&&J()},[we]),m.createElement("div",{ref:U,className:Ce(r,i,fe(fe(fe(fe(fe({},"".concat(r,"-focused"),K),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),p),"".concat(r,"-not-a-number"),F.isNaN()),"".concat(r,"-out-of-range"),!F.isInvalidate()&&!Se(F))),style:o,onFocus:function(){H(!0)},onBlur:bt,onKeyDown:Xe,onKeyUp:Ze,onCompositionStart:$e,onCompositionEnd:ge,onBeforeInput:ot},b&&m.createElement(sjt,{prefixCls:r,upNode:h,downNode:g,upDisabled:Te,downDisabled:Oe,onStep:st}),m.createElement("div",{className:"".concat(D,"-wrap")},m.createElement("input",ft({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":F.isInvalidate()?null:F.toString(),step:c},z,{ref:Il(B,n),className:D,value:we,onChange:Ve,disabled:f,readOnly:p}))))}),fjt=m.forwardRef(function(e,n){var r=e.disabled,i=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,s=e.value,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,h=Xt(e,ujt),g=m.useRef(null),v=m.useRef(null),y=m.useRef(null),_=function(b){y.current&&Ide(y.current,b)};return m.useImperativeHandle(n,function(){return njt(y.current,{focus:_,nativeElement:g.current.nativeElement||v.current})}),m.createElement(Nde,{className:f,triggerFocus:_,prefixCls:a,value:s,disabled:r,style:i,prefix:l,suffix:c,addonAfter:d,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:g},m.createElement(djt,ft({prefixCls:a,disabled:r,ref:y,domRef:v,className:p==null?void 0:p.input},h)))});const pjt=e=>{var n;const r=(n=e.handleVisible)!==null&&n!==void 0?n:"auto",i=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},vU(e)),{controlWidth:90,handleWidth:i,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Gr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?i:0})},jCe=(e,n)=>{let{componentCls:r,borderRadiusSM:i,borderRadiusLG:o}=e;const a=n==="lg"?o:i;return{[`&-${n}`]:{[`${r}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${r}-handler-up`]:{borderStartEndRadius:a},[`${r}-handler-down`]:{borderEndEndRadius:a}}}},hjt=e=>{const{componentCls:n,lineWidth:r,lineType:i,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:s,controlHeightLG:l,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:h,colorTextDescription:g,motionDurationMid:v,handleHoverColor:y,handleOpacity:_,paddingInline:S,paddingBlock:b,handleBg:E,handleActiveBg:w,colorTextDisabled:C,borderRadiusSM:x,borderRadiusLG:T,controlWidth:R,handleBorderColor:O,filledHandleBg:M,lineHeightLG:P,calc:k}=e;return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),yU(e)),{display:"inline-block",width:R,margin:0,padding:0,borderRadius:o}),yde(e,{[`${n}-handler-wrap`]:{background:E,[`${n}-handler-down`]:{borderBlockStart:`${Ye(r)} ${i} ${O}`}}})),bde(e,{[`${n}-handler-wrap`]:{background:M,[`${n}-handler-down`]:{borderBlockStart:`${Ye(r)} ${i} ${O}`}},"&:focus-within":{[`${n}-handler-wrap`]:{background:E}}})),_de(e)),{"&-rtl":{direction:"rtl",[`${n}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:s,lineHeight:P,borderRadius:T,[`input${n}-input`]:{height:k(l).sub(k(r).mul(2)).equal(),padding:`${Ye(p)} ${Ye(h)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:x,[`input${n}-input`]:{height:k(c).sub(k(r).mul(2)).equal(),padding:`${Ye(f)} ${Ye(d)}`}},"&-out-of-range":{[`${n}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},li(e)),eze(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${n}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${n}-group-addon`]:{borderRadius:T,fontSize:e.fontSizeLG}},"&-sm":{[`${n}-group-addon`]:{borderRadius:x}}},KHe(e)),QHe(e)),{[`&:not(${n}-compact-first-item):not(${n}-compact-last-item)${n}-compact-item`]:{[`${n}, ${n}-group-addon`]:{borderRadius:0}},[`&:not(${n}-compact-last-item)${n}-compact-first-item`]:{[`${n}, ${n}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${n}-compact-first-item)${n}-compact-last-item`]:{[`${n}, ${n}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${n}-input`]:{cursor:"not-allowed"},[n]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{width:"100%",padding:`${Ye(b)} ${Ye(S)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),Sde(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${n}-handler-wrap, &-focused ${n}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[n]:Object.assign(Object.assign(Object.assign({[`${n}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:_,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${n}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
||
${n}-handler-up-inner,
|
||
${n}-handler-down-inner
|
||
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${n}-handler`]:{height:"50%",overflow:"hidden",color:g,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Ye(r)} ${i} ${O}`,transition:`all ${v} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`
|
||
${n}-handler-up-inner,
|
||
${n}-handler-down-inner
|
||
`]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ew()),{color:g,transition:`all ${v} linear`,userSelect:"none"})},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}},jCe(e,"lg")),jCe(e,"sm")),{"&-disabled, &-readonly":{[`${n}-handler-wrap`]:{display:"none"},[`${n}-input`]:{color:"inherit"}},[`
|
||
${n}-handler-up-disabled,
|
||
${n}-handler-down-disabled
|
||
`]:{cursor:"not-allowed"},[`
|
||
${n}-handler-up-disabled:hover &-handler-up-inner,
|
||
${n}-handler-down-disabled:hover &-handler-down-inner
|
||
`]:{color:C}})}]},gjt=e=>{const{componentCls:n,paddingBlock:r,paddingInline:i,inputAffixPadding:o,controlWidth:a,borderRadiusLG:s,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${n}-affix-wrapper`]:Object.assign(Object.assign({[`input${n}-input`]:{padding:`${Ye(r)} 0`}},yU(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:i,"&-lg":{borderRadius:s,paddingInlineStart:c,[`input${n}-input`]:{padding:`${Ye(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${n}-input`]:{padding:`${Ye(f)} 0`}},[`&:not(${n}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${n}-disabled`]:{background:"transparent"},[`> div${n}`]:{width:"100%",border:"none",outline:"none",[`&${n}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${n}-handler-wrap`]:{zIndex:2},[n]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:i,marginInlineStart:o,transition:`margin ${p}`}},[`&:hover ${n}-handler-wrap, &-focused ${n}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${n}-affix-wrapper-without-controls):hover ${n}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(i).equal()}})}},mjt=Yr("InputNumber",e=>{const n=wr(e,mU(e));return[hjt(n),gjt(n),nw(n)]},pjt,{unitless:{handleOpacity:!0}});var vjt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Fze=m.forwardRef((e,n)=>{const{getPrefixCls:r,direction:i}=m.useContext(Cn),o=m.useRef(null);m.useImperativeHandle(n,()=>o.current);const{className:a,rootClassName:s,size:l,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:p,suffix:h,bordered:g,readOnly:v,status:y,controls:_,variant:S}=e,b=vjt(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),E=r("input-number",u),w=po(E),[C,x,T]=mjt(E,w),{compactSize:R,compactItemClassnames:O}=yg(E,i);let M=m.createElement(kze,{className:`${E}-handler-up-inner`}),P=m.createElement(cI,{className:`${E}-handler-down-inner`});const k=typeof _=="boolean"?_:void 0;typeof _=="object"&&(M=typeof _.upIcon>"u"?M:m.createElement("span",{className:`${E}-handler-up-inner`},_.upIcon),P=typeof _.downIcon>"u"?P:m.createElement("span",{className:`${E}-handler-down-inner`},_.downIcon));const{hasFeedback:$,status:U,isFormItemInput:z,feedbackIcon:D}=m.useContext(qs),B=Zy(U,y),Y=Xs(F=>{var te;return(te=l??R)!==null&&te!==void 0?te:F}),q=m.useContext(xs),K=c??q,[H,G]=Jy("inputNumber",S,g),Q=$&&m.createElement(m.Fragment,null,D),le=Ce({[`${E}-lg`]:Y==="large",[`${E}-sm`]:Y==="small",[`${E}-rtl`]:i==="rtl",[`${E}-in-form-item`]:z},x),Z=`${E}-group`,j=m.createElement(fjt,Object.assign({ref:o,disabled:K,className:Ce(T,w,a,s,O),upHandler:M,downHandler:P,prefixCls:E,readOnly:v,controls:k,prefix:p,suffix:Q||h,addonBefore:d&&m.createElement(tg,{form:!0,space:!0},d),addonAfter:f&&m.createElement(tg,{form:!0,space:!0},f),classNames:{input:le,variant:Ce({[`${E}-${H}`]:G},ng(E,B,$)),affixWrapper:Ce({[`${E}-affix-wrapper-sm`]:Y==="small",[`${E}-affix-wrapper-lg`]:Y==="large",[`${E}-affix-wrapper-rtl`]:i==="rtl",[`${E}-affix-wrapper-without-controls`]:_===!1},x),wrapper:Ce({[`${Z}-rtl`]:i==="rtl"},x),groupWrapper:Ce({[`${E}-group-wrapper-sm`]:Y==="small",[`${E}-group-wrapper-lg`]:Y==="large",[`${E}-group-wrapper-rtl`]:i==="rtl",[`${E}-group-wrapper-${H}`]:G},ng(`${E}-group-wrapper`,B,$),x)}},b));return C(j)}),My=Fze,yjt=e=>m.createElement(or,{theme:{components:{InputNumber:{handleVisible:!0}}}},m.createElement(Fze,Object.assign({},e)));My._InternalPanelDoNotUseOrYouWillBeFired=yjt;const M1=e=>{let{prefixCls:n,min:r=0,max:i=100,value:o,onChange:a,className:s,formatter:l}=e;const c=`${n}-steppers`,[u,d]=m.useState(o);return m.useEffect(()=>{Number.isNaN(o)||d(o)},[o]),V.createElement(My,{className:Ce(c,s),min:r,max:i,value:u,formatter:l,size:"small",onChange:f=>{o||d(f||0),a==null||a(f)}})},_jt=e=>{let{prefixCls:n,value:r,onChange:i}=e;const o=`${n}-alpha-input`,[a,s]=m.useState(Gc(r||"#000"));m.useEffect(()=>{r&&s(r)},[r]);const l=c=>{const u=a.toHsb();u.a=(c||0)/100;const d=Gc(u);r||s(d),i==null||i(d)};return V.createElement(M1,{value:Pue(a),prefixCls:n,formatter:c=>`${c}%`,className:o,onChange:l})},bjt=e=>{const{getPrefixCls:n,direction:r}=m.useContext(Cn),{prefixCls:i,className:o}=e,a=n("input-group",i),s=n("input"),[l,c]=Ede(s),u=Ce(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:r==="rtl"},c,o),d=m.useContext(qs),f=m.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(m.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m.createElement(qs.Provider,{value:f},e.children)))},Bze=e=>{let n;return typeof e=="object"&&(e!=null&&e.clearIcon)?n=e:e&&(n={clearIcon:V.createElement(ev,null)}),n};function jze(e,n){const r=m.useRef([]),i=()=>{r.current.push(setTimeout(()=>{var o,a,s,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((s=e.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return m.useEffect(()=>(n&&i(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),i}function Sjt(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Ejt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const EU=m.forwardRef((e,n)=>{var r;const{prefixCls:i,bordered:o=!0,status:a,size:s,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:h,className:g,style:v,styles:y,rootClassName:_,onChange:S,classNames:b,variant:E}=e,w=Ejt(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:x,input:T}=V.useContext(Cn),R=C("input",i),O=m.useRef(null),M=po(R),[P,k,$]=Ede(R,M),{compactSize:U,compactItemClassnames:z}=yg(R,x),D=Xs(me=>{var ve;return(ve=s??U)!==null&&ve!==void 0?ve:me}),B=V.useContext(xs),Y=l??B,{status:q,hasFeedback:K,feedbackIcon:H}=m.useContext(qs),G=Zy(q,a),Q=Sjt(e)||!!K;m.useRef(Q);const le=jze(O,!0),Z=me=>{le(),c==null||c(me)},j=me=>{le(),u==null||u(me)},F=me=>{le(),S==null||S(me)},te=(K||d)&&V.createElement(V.Fragment,null,d,K&&H),oe=Bze(f??(T==null?void 0:T.allowClear)),[de,pe]=Jy("input",E,o);return P(V.createElement(tjt,Object.assign({ref:Il(n,O),prefixCls:R,autoComplete:T==null?void 0:T.autoComplete},w,{disabled:Y,onBlur:Z,onFocus:j,style:Object.assign(Object.assign({},T==null?void 0:T.style),v),styles:Object.assign(Object.assign({},T==null?void 0:T.styles),y),suffix:te,allowClear:oe,className:Ce(g,_,$,M,z,T==null?void 0:T.className),onChange:F,addonBefore:h&&V.createElement(tg,{form:!0,space:!0},h),addonAfter:p&&V.createElement(tg,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},b),T==null?void 0:T.classNames),{input:Ce({[`${R}-sm`]:D==="small",[`${R}-lg`]:D==="large",[`${R}-rtl`]:x==="rtl"},b==null?void 0:b.input,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.input,k),variant:Ce({[`${R}-${de}`]:pe},ng(R,G)),affixWrapper:Ce({[`${R}-affix-wrapper-sm`]:D==="small",[`${R}-affix-wrapper-lg`]:D==="large",[`${R}-affix-wrapper-rtl`]:x==="rtl"},k),wrapper:Ce({[`${R}-group-rtl`]:x==="rtl"},k),groupWrapper:Ce({[`${R}-group-wrapper-sm`]:D==="small",[`${R}-group-wrapper-lg`]:D==="large",[`${R}-group-wrapper-rtl`]:x==="rtl",[`${R}-group-wrapper-${de}`]:pe},ng(`${R}-group-wrapper`,G,K),k)})})))}),Cjt=e=>{const{componentCls:n,paddingXS:r}=e;return{[n]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,"&-rtl":{direction:"rtl"},[`${n}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${n}-sm ${n}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${n}-lg ${n}-input`]:{paddingInline:e.paddingXS}}}},wjt=Yr(["Input","OTP"],e=>{const n=wr(e,mU(e));return[Cjt(n)]},vU);var xjt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Tjt=m.forwardRef((e,n)=>{const{value:r,onChange:i,onActiveChange:o,index:a,mask:s}=e,l=xjt(e,["value","onChange","onActiveChange","index","mask"]),c=r&&typeof s=="string"?s:r,u=g=>{i(a,g.target.value)},d=m.useRef(null);m.useImperativeHandle(n,()=>d.current);const f=()=>{Dr(()=>{var g;const v=(g=d.current)===null||g===void 0?void 0:g.input;document.activeElement===v&&v&&v.select()})},p=g=>{const{key:v,ctrlKey:y,metaKey:_}=g;v==="ArrowLeft"?o(a-1):v==="ArrowRight"?o(a+1):v==="z"&&(y||_)&&g.preventDefault(),f()},h=g=>{g.key==="Backspace"&&!r&&o(a-1),f()};return m.createElement(EU,Object.assign({type:s===!0?"password":"text"},l,{ref:d,value:c,onInput:u,onFocus:f,onKeyDown:p,onKeyUp:h,onMouseDown:f,onMouseUp:f}))});var Ojt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function t4(e){return(e||"").split("")}const Rjt=m.forwardRef((e,n)=>{const{prefixCls:r,length:i=6,size:o,defaultValue:a,value:s,onChange:l,formatter:c,variant:u,disabled:d,status:f,autoFocus:p,mask:h,type:g,onInput:v,inputMode:y}=e,_=Ojt(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:S,direction:b}=m.useContext(Cn),E=S("otp",r),w=Va(_,{aria:!0,data:!0,attr:!0}),C=po(E),[x,T,R]=wjt(E,C),O=Xs(Q=>o??Q),M=m.useContext(qs),P=Zy(M.status,f),k=m.useMemo(()=>Object.assign(Object.assign({},M),{status:P,hasFeedback:!1,feedbackIcon:null}),[M,P]),$=m.useRef(null),U=m.useRef({});m.useImperativeHandle(n,()=>({focus:()=>{var Q;(Q=U.current[0])===null||Q===void 0||Q.focus()},blur:()=>{var Q;for(let le=0;le<i;le+=1)(Q=U.current[le])===null||Q===void 0||Q.blur()},nativeElement:$.current}));const z=Q=>c?c(Q):Q,[D,B]=m.useState(t4(z(a||"")));m.useEffect(()=>{s!==void 0&&B(t4(s))},[s]);const Y=Sr(Q=>{B(Q),v&&v(Q),l&&Q.length===i&&Q.every(le=>le)&&Q.some((le,Z)=>D[Z]!==le)&&l(Q.join(""))}),q=Sr((Q,le)=>{let Z=Tt(D);for(let F=0;F<Q;F+=1)Z[F]||(Z[F]="");le.length<=1?Z[Q]=le:Z=Z.slice(0,Q).concat(t4(le)),Z=Z.slice(0,i);for(let F=Z.length-1;F>=0&&!Z[F];F-=1)Z.pop();const j=z(Z.map(F=>F||" ").join(""));return Z=t4(j).map((F,te)=>F===" "&&!Z[te]?Z[te]:F),Z}),K=(Q,le)=>{var Z;const j=q(Q,le),F=Math.min(Q+le.length,i-1);F!==Q&&j[Q]!==void 0&&((Z=U.current[F])===null||Z===void 0||Z.focus()),Y(j)},H=Q=>{var le;(le=U.current[Q])===null||le===void 0||le.focus()},G={variant:u,disabled:d,status:P,mask:h,type:g,inputMode:y};return x(m.createElement("div",Object.assign({},w,{ref:$,className:Ce(E,{[`${E}-sm`]:O==="small",[`${E}-lg`]:O==="large",[`${E}-rtl`]:b==="rtl"},R,T)}),m.createElement(qs.Provider,{value:k},Array.from({length:i}).map((Q,le)=>{const Z=`otp-${le}`,j=D[le]||"";return m.createElement(Tjt,Object.assign({ref:F=>{U.current[le]=F},key:Z,index:le,size:O,htmlSize:1,className:`${E}-input`,onChange:K,value:j,onActiveChange:H,autoFocus:le===0&&p},G))}))))});var Ijt={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"},Njt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Ijt}))},Uze=m.forwardRef(Njt),Mjt={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"},Pjt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Mjt}))},xk=m.forwardRef(Pjt),Ajt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Djt=e=>e?m.createElement(xk,null):m.createElement(Uze,null),kjt={click:"onClick",hover:"onMouseOver"},Ljt=m.forwardRef((e,n)=>{const{disabled:r,action:i="click",visibilityToggle:o=!0,iconRender:a=Djt}=e,s=m.useContext(xs),l=r??s,c=typeof o=="object"&&o.visible!==void 0,[u,d]=m.useState(()=>c?o.visible:!1),f=m.useRef(null);m.useEffect(()=>{c&&d(o.visible)},[c,o]);const p=jze(f),h=()=>{var O;if(l)return;u&&p();const M=!u;d(M),typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,M))},g=O=>{const M=kjt[i]||"",P=a(u),k={[M]:h,className:`${O}-icon`,key:"passwordIcon",onMouseDown:$=>{$.preventDefault()},onMouseUp:$=>{$.preventDefault()}};return m.cloneElement(m.isValidElement(P)?P:m.createElement("span",null,P),k)},{className:v,prefixCls:y,inputPrefixCls:_,size:S}=e,b=Ajt(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:E}=m.useContext(Cn),w=E("input",_),C=E("input-password",y),x=o&&g(C),T=Ce(C,v,{[`${C}-${S}`]:!!S}),R=Object.assign(Object.assign({},Wr(b,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:T,prefixCls:w,suffix:x});return S&&(R.size=S),m.createElement(EU,Object.assign({ref:Il(n,f)},R))});var $jt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Fjt=m.forwardRef((e,n)=>{const{prefixCls:r,inputPrefixCls:i,className:o,size:a,suffix:s,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:h,onCompositionEnd:g}=e,v=$jt(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:_}=m.useContext(Cn),S=m.useRef(!1),b=y("input-search",r),E=y("input",i),{compactSize:w}=yg(b,_),C=Xs(K=>{var H;return(H=a??w)!==null&&H!==void 0?H:K}),x=m.useRef(null),T=K=>{K!=null&&K.target&&K.type==="click"&&f&&f(K.target.value,K,{source:"clear"}),p==null||p(K)},R=K=>{var H;document.activeElement===((H=x.current)===null||H===void 0?void 0:H.input)&&K.preventDefault()},O=K=>{var H,G;f&&f((G=(H=x.current)===null||H===void 0?void 0:H.input)===null||G===void 0?void 0:G.value,K,{source:"input"})},M=K=>{S.current||u||O(K)},P=typeof l=="boolean"?m.createElement(Que,null):null,k=`${b}-button`;let $;const U=l||{},z=U.type&&U.type.__ANT_BUTTON===!0;z||U.type==="button"?$=Ys(U,Object.assign({onMouseDown:R,onClick:K=>{var H,G;(G=(H=U==null?void 0:U.props)===null||H===void 0?void 0:H.onClick)===null||G===void 0||G.call(H,K),O(K)},key:"enterButton"},z?{className:k,size:C}:{})):$=m.createElement(qn,{className:k,type:l?"primary":void 0,size:C,disabled:d,key:"enterButton",onMouseDown:R,onClick:O,loading:u,icon:P},l),c&&($=[$,Ys(c,{key:"addonAfter"})]);const D=Ce(b,{[`${b}-rtl`]:_==="rtl",[`${b}-${C}`]:!!C,[`${b}-with-button`]:!!l},o),B=Object.assign(Object.assign({},v),{className:D,prefixCls:E,type:"search"}),Y=K=>{S.current=!0,h==null||h(K)},q=K=>{S.current=!1,g==null||g(K)};return m.createElement(EU,Object.assign({ref:Il(x,n),onPressEnter:M},B,{size:C,onCompositionStart:Y,onCompositionEnd:q,addonAfter:$,suffix:s,onChange:T,disabled:d}))});var Bjt=`
|
||
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;
|
||
`,jjt=["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"],pq={},Fd;function Ujt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(n&&pq[r])return pq[r];var i=window.getComputedStyle(e),o=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),a=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),s=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),l=jjt.map(function(u){return"".concat(u,":").concat(i.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:a,borderSize:s,boxSizing:o};return n&&r&&(pq[r]=c),c}function Hjt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Fd||(Fd=document.createElement("textarea"),Fd.setAttribute("tab-index","-1"),Fd.setAttribute("aria-hidden","true"),Fd.setAttribute("name","hiddenTextarea"),document.body.appendChild(Fd)),e.getAttribute("wrap")?Fd.setAttribute("wrap",e.getAttribute("wrap")):Fd.removeAttribute("wrap");var o=Ujt(e,n),a=o.paddingSize,s=o.borderSize,l=o.boxSizing,c=o.sizingStyle;Fd.setAttribute("style","".concat(c,";").concat(Bjt)),Fd.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,p=Fd.scrollHeight;if(l==="border-box"?p+=s:l==="content-box"&&(p-=a),r!==null||i!==null){Fd.value=" ";var h=Fd.scrollHeight-a;r!==null&&(u=h*r,l==="border-box"&&(u=u+a+s),p=Math.max(u,p)),i!==null&&(d=h*i,l==="border-box"&&(d=d+a+s),f=p>d?"":"hidden",p=Math.min(d,p))}var g={height:p,overflowY:f,resize:"none"};return u&&(g.minHeight=u),d&&(g.maxHeight=d),g}var zjt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],hq=0,gq=1,mq=2,Vjt=m.forwardRef(function(e,n){var r=e,i=r.prefixCls,o=r.defaultValue,a=r.value,s=r.autoSize,l=r.onResize,c=r.className,u=r.style,d=r.disabled,f=r.onChange;r.onInternalAutoSize;var p=Xt(r,zjt),h=dr(o,{value:a,postState:function(Q){return Q??""}}),g=ke(h,2),v=g[0],y=g[1],_=function(Q){y(Q.target.value),f==null||f(Q)},S=m.useRef();m.useImperativeHandle(n,function(){return{textArea:S.current}});var b=m.useMemo(function(){return s&&cn(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),E=ke(b,2),w=E[0],C=E[1],x=!!s,T=function(){try{if(document.activeElement===S.current){var Q=S.current,le=Q.selectionStart,Z=Q.selectionEnd,j=Q.scrollTop;S.current.setSelectionRange(le,Z),S.current.scrollTop=j}}catch{}},R=m.useState(mq),O=ke(R,2),M=O[0],P=O[1],k=m.useState(),$=ke(k,2),U=$[0],z=$[1],D=function(){P(hq)};ti(function(){x&&D()},[a,w,C,x]),ti(function(){if(M===hq)P(gq);else if(M===gq){var G=Hjt(S.current,!1,w,C);P(mq),z(G)}else T()},[M]);var B=m.useRef(),Y=function(){Dr.cancel(B.current)},q=function(Q){M===mq&&(l==null||l(Q),s&&(Y(),B.current=Dr(function(){D()})))};m.useEffect(function(){return Y},[]);var K=x?U:null,H=ee(ee({},u),K);return(M===hq||M===gq)&&(H.overflowY="hidden",H.overflowX="hidden"),m.createElement(Hc,{onResize:q,disabled:!(s||l)},m.createElement("textarea",ft({},p,{ref:S,style:H,className:Ce(i,c,fe({},"".concat(i,"-disabled"),d)),disabled:d,value:v,onChange:_})))}),Gjt=["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"],Wjt=V.forwardRef(function(e,n){var r,i=e.defaultValue,o=e.value,a=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,g=h===void 0?"rc-textarea":h,v=e.showCount,y=e.count,_=e.className,S=e.style,b=e.disabled,E=e.hidden,w=e.classNames,C=e.styles,x=e.onResize,T=e.onClear,R=e.onPressEnter,O=e.readOnly,M=e.autoSize,P=e.onKeyDown,k=Xt(e,Gjt),$=dr(i,{value:o,defaultValue:i}),U=ke($,2),z=U[0],D=U[1],B=z==null?"":String(z),Y=V.useState(!1),q=ke(Y,2),K=q[0],H=q[1],G=V.useRef(!1),Q=V.useState(null),le=ke(Q,2),Z=le[0],j=le[1],F=m.useRef(null),te=m.useRef(null),oe=function(){var ge;return(ge=te.current)===null||ge===void 0?void 0:ge.textArea},de=function(){oe().focus()};m.useImperativeHandle(n,function(){var $e;return{resizableTextArea:te.current,focus:de,blur:function(){oe().blur()},nativeElement:(($e=F.current)===null||$e===void 0?void 0:$e.nativeElement)||oe()}}),m.useEffect(function(){H(function($e){return!b&&$e})},[b]);var pe=V.useState(null),me=ke(pe,2),ve=me[0],he=me[1];V.useEffect(function(){if(ve){var $e;($e=oe()).setSelectionRange.apply($e,Tt(ve))}},[ve]);var be=$ze(y,v),we=(r=be.max)!==null&&r!==void 0?r:u,De=Number(we)>0,Ae=be.strategy(B),Ee=!!we&&Ae>we,Re=function(ge,Ve){var st=Ve;!G.current&&be.exceedFormatter&&be.max&&be.strategy(Ve)>be.max&&(st=be.exceedFormatter(Ve,{max:be.max}),Ve!==st&&he([oe().selectionStart||0,oe().selectionEnd||0])),D(st),K8(ge.currentTarget,ge,l,st)},Te=function(ge){G.current=!0,d==null||d(ge)},Oe=function(ge){G.current=!1,Re(ge,ge.currentTarget.value),f==null||f(ge)},Ne=function(ge){Re(ge,ge.target.value)},je=function(ge){ge.key==="Enter"&&R&&R(ge),P==null||P(ge)},ne=function(ge){H(!0),a==null||a(ge)},J=function(ge){H(!1),s==null||s(ge)},ae=function(ge){D(""),de(),K8(oe(),ge,l)},Se=p,xe;be.show&&(be.showFormatter?xe=be.showFormatter({value:B,count:Ae,maxLength:we}):xe="".concat(Ae).concat(De?" / ".concat(we):""),Se=V.createElement(V.Fragment,null,Se,V.createElement("span",{className:Ce("".concat(g,"-data-count"),w==null?void 0:w.count),style:C==null?void 0:C.count},xe)));var ue=function(ge){var Ve;x==null||x(ge),(Ve=oe())!==null&&Ve!==void 0&&Ve.style.height&&j(!0)},Me=!M&&!v&&!c;return V.createElement(Nde,{ref:F,value:B,allowClear:c,handleReset:ae,suffix:Se,prefixCls:g,classNames:ee(ee({},w),{},{affixWrapper:Ce(w==null?void 0:w.affixWrapper,fe(fe({},"".concat(g,"-show-count"),v),"".concat(g,"-textarea-allow-clear"),c))}),disabled:b,focused:K,className:Ce(_,Ee&&"".concat(g,"-out-of-range")),style:ee(ee({},S),Z&&!Me?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xe=="string"?xe:void 0}},hidden:E,readOnly:O,onClear:T},V.createElement(Vjt,ft({},k,{autoSize:M,maxLength:u,onKeyDown:je,onChange:Ne,onFocus:ne,onBlur:J,onCompositionStart:Te,onCompositionEnd:Oe,className:Ce(w==null?void 0:w.textarea),style:ee(ee({},C==null?void 0:C.textarea),{},{resize:S==null?void 0:S.resize}),disabled:b,prefixCls:g,onResize:ue,ref:te,readOnly:O})))}),Yjt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const qjt=m.forwardRef((e,n)=>{var r,i;const{prefixCls:o,bordered:a=!0,size:s,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:f,className:p,style:h,styles:g,variant:v}=e,y=Yjt(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:_,direction:S,textArea:b}=m.useContext(Cn),E=Xs(s),w=m.useContext(xs),C=l??w,{status:x,hasFeedback:T,feedbackIcon:R}=m.useContext(qs),O=Zy(x,c),M=m.useRef(null);m.useImperativeHandle(n,()=>{var q;return{resizableTextArea:(q=M.current)===null||q===void 0?void 0:q.resizableTextArea,focus:K=>{var H,G;Ide((G=(H=M.current)===null||H===void 0?void 0:H.resizableTextArea)===null||G===void 0?void 0:G.textArea,K)},blur:()=>{var K;return(K=M.current)===null||K===void 0?void 0:K.blur()}}});const P=_("input",o),k=po(P),[$,U,z]=Ede(P,k),[D,B]=Jy("textArea",v,a),Y=Bze(u??(b==null?void 0:b.allowClear));return $(m.createElement(Wjt,Object.assign({autoComplete:b==null?void 0:b.autoComplete},y,{style:Object.assign(Object.assign({},b==null?void 0:b.style),h),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),g),disabled:C,allowClear:Y,className:Ce(z,k,p,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},d),b==null?void 0:b.classNames),{textarea:Ce({[`${P}-sm`]:E==="small",[`${P}-lg`]:E==="large"},U,d==null?void 0:d.textarea,(r=b==null?void 0:b.classNames)===null||r===void 0?void 0:r.textarea),variant:Ce({[`${P}-${D}`]:B},ng(P,O)),affixWrapper:Ce(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:S==="rtl",[`${P}-affix-wrapper-sm`]:E==="small",[`${P}-affix-wrapper-lg`]:E==="large",[`${P}-textarea-show-count`]:e.showCount||((i=e.count)===null||i===void 0?void 0:i.show)},U)}),prefixCls:P,suffix:T&&m.createElement("span",{className:`${P}-textarea-suffix`},R),ref:M})))}),Oi=EU;Oi.Group=bjt;Oi.Search=Fjt;Oi.TextArea=qjt;Oi.Password=Ljt;Oi.OTP=Rjt;const Kjt=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Xjt=e=>Kjt.test(`#${e}`),Qjt=e=>{let{prefixCls:n,value:r,onChange:i}=e;const o=`${n}-hex-input`,[a,s]=m.useState(()=>r?o2(r.toHexString()):void 0);m.useEffect(()=>{r&&s(o2(r.toHexString()))},[r]);const l=c=>{const u=c.target.value;s(o2(u)),Xjt(o2(u,!0))&&(i==null||i(Gc(u)))};return V.createElement(Oi,{className:o,value:a,prefix:"#",onChange:l,size:"small"})},Zjt=e=>{let{prefixCls:n,value:r,onChange:i}=e;const o=`${n}-hsb-input`,[a,s]=m.useState(Gc(r||"#000"));m.useEffect(()=>{r&&s(r)},[r]);const l=(c,u)=>{const d=a.toHsb();d[u]=u==="h"?c:(c||0)/100;const f=Gc(d);r||s(f),i==null||i(f)};return V.createElement("div",{className:o},V.createElement(M1,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:n,className:o,formatter:c=>u6(c||0).toString(),onChange:c=>l(Number(c),"h")}),V.createElement(M1,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:n,className:o,formatter:c=>`${u6(c||0)}%`,onChange:c=>l(Number(c),"s")}),V.createElement(M1,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:n,className:o,formatter:c=>`${u6(c||0)}%`,onChange:c=>l(Number(c),"b")}))},Jjt=e=>{let{prefixCls:n,value:r,onChange:i}=e;const o=`${n}-rgb-input`,[a,s]=m.useState(Gc(r||"#000"));m.useEffect(()=>{r&&s(r)},[r]);const l=(c,u)=>{const d=a.toRgb();d[u]=c||0;const f=Gc(d);r||s(f),i==null||i(f)};return V.createElement("div",{className:o},V.createElement(M1,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:n,className:o,onChange:c=>l(Number(c),"r")}),V.createElement(M1,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:n,className:o,onChange:c=>l(Number(c),"g")}),V.createElement(M1,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:n,className:o,onChange:c=>l(Number(c),"b")}))},e7t=[d0.hex,d0.hsb,d0.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),t7t=e=>{const{prefixCls:n,format:r,value:i,disabledAlpha:o,onFormatChange:a,onChange:s,disabledFormat:l}=e,[c,u]=dr(d0.hex,{value:r,onChange:a}),d=`${n}-input`,f=h=>{u(h)},p=m.useMemo(()=>{const h={value:i,prefixCls:n,onChange:s};switch(c){case d0.hsb:return V.createElement(Zjt,Object.assign({},h));case d0.rgb:return V.createElement(Jjt,Object.assign({},h));default:return V.createElement(Qjt,Object.assign({},h))}},[c,n,i,s]);return V.createElement("div",{className:`${d}-container`},!l&&V.createElement(_g,{value:c,variant:"borderless",getPopupContainer:h=>h,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${n}-format-select`,size:"small",options:e7t}),V.createElement("div",{className:d},p),!o&&V.createElement(_jt,{prefixCls:n,value:i,onChange:s}))};function bie(e,n,r){return(e-n)/(r-n)}function Mde(e,n,r,i){var o=bie(n,r,i),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function UE(e,n){return Array.isArray(e)?e[n]:e}var aw=m.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Hze=m.createContext({}),n7t=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],UCe=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.value,o=e.valueIndex,a=e.onStartMove,s=e.onDelete,l=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,h=e.onFocus,g=e.onMouseEnter,v=Xt(e,n7t),y=m.useContext(aw),_=y.min,S=y.max,b=y.direction,E=y.disabled,w=y.keyboard,C=y.range,x=y.tabIndex,T=y.ariaLabelForHandle,R=y.ariaLabelledByForHandle,O=y.ariaRequired,M=y.ariaValueTextFormatterForHandle,P=y.styles,k=y.classNames,$="".concat(r,"-handle"),U=function(le){E||a(le,o)},z=function(le){h==null||h(le,o)},D=function(le){g(le,o)},B=function(le){if(!E&&w){var Z=null;switch(le.which||le.keyCode){case At.LEFT:Z=b==="ltr"||b==="btt"?-1:1;break;case At.RIGHT:Z=b==="ltr"||b==="btt"?1:-1;break;case At.UP:Z=b!=="ttb"?1:-1;break;case At.DOWN:Z=b!=="ttb"?-1:1;break;case At.HOME:Z="min";break;case At.END:Z="max";break;case At.PAGE_UP:Z=2;break;case At.PAGE_DOWN:Z=-2;break;case At.BACKSPACE:case At.DELETE:s(o);break}Z!==null&&(le.preventDefault(),f(Z,o))}},Y=function(le){switch(le.which||le.keyCode){case At.LEFT:case At.RIGHT:case At.UP:case At.DOWN:case At.HOME:case At.END:case At.PAGE_UP:case At.PAGE_DOWN:p==null||p();break}},q=Mde(b,i,_,S),K={};if(o!==null){var H;K={tabIndex:E?null:UE(x,o),role:"slider","aria-valuemin":_,"aria-valuemax":S,"aria-valuenow":i,"aria-disabled":E,"aria-label":UE(T,o),"aria-labelledby":UE(R,o),"aria-required":UE(O,o),"aria-valuetext":(H=UE(M,o))===null||H===void 0?void 0:H(i),"aria-orientation":b==="ltr"||b==="rtl"?"horizontal":"vertical",onMouseDown:U,onTouchStart:U,onFocus:z,onMouseEnter:D,onKeyDown:B,onKeyUp:Y}}var G=m.createElement("div",ft({ref:n,className:Ce($,fe(fe(fe({},"".concat($,"-").concat(o+1),o!==null&&C),"".concat($,"-dragging"),u),"".concat($,"-dragging-delete"),d),k.handle),style:ee(ee(ee({},q),l),P.handle)},K,v));return c&&(G=c(G,{index:o,prefixCls:r,value:i,dragging:u,draggingDelete:d})),G}),r7t=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],i7t=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.style,o=e.onStartMove,a=e.onOffsetChange,s=e.values,l=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,p=Xt(e,r7t),h=m.useRef({}),g=m.useState(!1),v=ke(g,2),y=v[0],_=v[1],S=m.useState(-1),b=ke(S,2),E=b[0],w=b[1],C=function(M){w(M),_(!0)},x=function(M,P){C(P),f==null||f(M)},T=function(M,P){C(P)};m.useImperativeHandle(n,function(){return{focus:function(M){var P;(P=h.current[M])===null||P===void 0||P.focus()},hideHelp:function(){Us.flushSync(function(){_(!1)})}}});var R=ee({prefixCls:r,onStartMove:o,onOffsetChange:a,render:l,onFocus:x,onMouseEnter:T},p);return m.createElement(m.Fragment,null,s.map(function(O,M){var P=u===M;return m.createElement(UCe,ft({ref:function($){$?h.current[M]=$:delete h.current[M]},dragging:P,draggingDelete:P&&d,style:UE(i,M),key:M,value:O,valueIndex:M},R))}),c&&y&&m.createElement(UCe,ft({key:"a11y"},R,{value:s[E],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),o7t=function(n){var r=n.prefixCls,i=n.style,o=n.children,a=n.value,s=n.onClick,l=m.useContext(aw),c=l.min,u=l.max,d=l.direction,f=l.includedStart,p=l.includedEnd,h=l.included,g="".concat(r,"-text"),v=Mde(d,a,c,u);return m.createElement("span",{className:Ce(g,fe({},"".concat(g,"-active"),h&&f<=a&&a<=p)),style:ee(ee({},v),i),onMouseDown:function(_){_.stopPropagation()},onClick:function(){s(a)}},o)},a7t=function(n){var r=n.prefixCls,i=n.marks,o=n.onClick,a="".concat(r,"-mark");return i.length?m.createElement("div",{className:a},i.map(function(s){var l=s.value,c=s.style,u=s.label;return m.createElement(o7t,{key:l,prefixCls:a,style:c,value:l,onClick:o},u)})):null},s7t=function(n){var r=n.prefixCls,i=n.value,o=n.style,a=n.activeStyle,s=m.useContext(aw),l=s.min,c=s.max,u=s.direction,d=s.included,f=s.includedStart,p=s.includedEnd,h="".concat(r,"-dot"),g=d&&f<=i&&i<=p,v=ee(ee({},Mde(u,i,l,c)),typeof o=="function"?o(i):o);return g&&(v=ee(ee({},v),typeof a=="function"?a(i):a)),m.createElement("span",{className:Ce(h,fe({},"".concat(h,"-active"),g)),style:v})},l7t=function(n){var r=n.prefixCls,i=n.marks,o=n.dots,a=n.style,s=n.activeStyle,l=m.useContext(aw),c=l.min,u=l.max,d=l.step,f=m.useMemo(function(){var p=new Set;if(i.forEach(function(g){p.add(g.value)}),o&&d!==null)for(var h=c;h<=u;)p.add(h),h+=d;return Array.from(p)},[c,u,d,o,i]);return m.createElement("div",{className:"".concat(r,"-step")},f.map(function(p){return m.createElement(s7t,{prefixCls:r,key:p,value:p,style:a,activeStyle:s})}))},HCe=function(n){var r=n.prefixCls,i=n.style,o=n.start,a=n.end,s=n.index,l=n.onStartMove,c=n.replaceCls,u=m.useContext(aw),d=u.direction,f=u.min,p=u.max,h=u.disabled,g=u.range,v=u.classNames,y="".concat(r,"-track"),_=bie(o,f,p),S=bie(a,f,p),b=function(x){!h&&l&&l(x,-1)},E={};switch(d){case"rtl":E.right="".concat(_*100,"%"),E.width="".concat(S*100-_*100,"%");break;case"btt":E.bottom="".concat(_*100,"%"),E.height="".concat(S*100-_*100,"%");break;case"ttb":E.top="".concat(_*100,"%"),E.height="".concat(S*100-_*100,"%");break;default:E.left="".concat(_*100,"%"),E.width="".concat(S*100-_*100,"%")}var w=c||Ce(y,fe(fe({},"".concat(y,"-").concat(s+1),s!==null&&g),"".concat(r,"-track-draggable"),l),v.track);return m.createElement("div",{className:w,style:ee(ee({},E),i),onMouseDown:b,onTouchStart:b})},c7t=function(n){var r=n.prefixCls,i=n.style,o=n.values,a=n.startPoint,s=n.onStartMove,l=m.useContext(aw),c=l.included,u=l.range,d=l.min,f=l.styles,p=l.classNames,h=m.useMemo(function(){if(!u){if(o.length===0)return[];var v=a??d,y=o[0];return[{start:Math.min(v,y),end:Math.max(v,y)}]}for(var _=[],S=0;S<o.length-1;S+=1)_.push({start:o[S],end:o[S+1]});return _},[o,u,a,d]);if(!c)return null;var g=h!=null&&h.length&&(p.tracks||f.tracks)?m.createElement(HCe,{index:null,prefixCls:r,start:h[0].start,end:h[h.length-1].end,replaceCls:Ce(p.tracks,"".concat(r,"-tracks")),style:f.tracks}):null;return m.createElement(m.Fragment,null,g,h.map(function(v,y){var _=v.start,S=v.end;return m.createElement(HCe,{index:y,prefixCls:r,style:ee(ee({},UE(i,y)),f.track),start:_,end:S,key:y,onStartMove:s})}))},u7t=130;function zCe(e){var n="targetTouches"in e?e.targetTouches[0]:e;return{pageX:n.pageX,pageY:n.pageY}}function d7t(e,n,r,i,o,a,s,l,c,u,d){var f=m.useState(null),p=ke(f,2),h=p[0],g=p[1],v=m.useState(-1),y=ke(v,2),_=y[0],S=y[1],b=m.useState(!1),E=ke(b,2),w=E[0],C=E[1],x=m.useState(r),T=ke(x,2),R=T[0],O=T[1],M=m.useState(r),P=ke(M,2),k=P[0],$=P[1],U=m.useRef(null),z=m.useRef(null),D=m.useRef(null),B=m.useContext(Hze),Y=B.onDragStart,q=B.onDragChange;ti(function(){_===-1&&O(r)},[r,_]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",U.current),document.removeEventListener("mouseup",z.current),D.current&&(D.current.removeEventListener("touchmove",U.current),D.current.removeEventListener("touchend",z.current))}},[]);var K=function(Z,j,F){j!==void 0&&g(j),O(Z);var te=Z;F&&(te=Z.filter(function(oe,de){return de!==_})),s(te),q&&q({rawValues:Z,deleteIndex:F?_:-1,draggingIndex:_,draggingValue:j})},H=Sr(function(le,Z,j){if(le===-1){var F=k[0],te=k[k.length-1],oe=i-F,de=o-te,pe=Z*(o-i);pe=Math.max(pe,oe),pe=Math.min(pe,de);var me=a(F+pe);pe=me-F;var ve=k.map(function(De){return De+pe});K(ve)}else{var he=(o-i)*Z,be=Tt(R);be[le]=k[le];var we=c(be,he,le,"dist");K(we.values,we.value,j)}}),G=function(Z,j,F){Z.stopPropagation();var te=F||r,oe=te[j];S(j),g(oe),$(te),O(te),C(!1);var de=zCe(Z),pe=de.pageX,me=de.pageY,ve=!1;Y&&Y({rawValues:te,draggingIndex:j,draggingValue:oe});var he=function(De){De.preventDefault();var Ae=zCe(De),Ee=Ae.pageX,Re=Ae.pageY,Te=Ee-pe,Oe=Re-me,Ne=e.current.getBoundingClientRect(),je=Ne.width,ne=Ne.height,J,ae;switch(n){case"btt":J=-Oe/ne,ae=Te;break;case"ttb":J=Oe/ne,ae=Te;break;case"rtl":J=-Te/je,ae=Oe;break;default:J=Te/je,ae=Oe}ve=u?Math.abs(ae)>u7t&&d<R.length:!1,C(ve),H(j,J,ve)},be=function we(De){De.preventDefault(),document.removeEventListener("mouseup",we),document.removeEventListener("mousemove",he),D.current&&(D.current.removeEventListener("touchmove",U.current),D.current.removeEventListener("touchend",z.current)),U.current=null,z.current=null,D.current=null,l(ve),S(-1),C(!1)};document.addEventListener("mouseup",be),document.addEventListener("mousemove",he),Z.currentTarget.addEventListener("touchend",be),Z.currentTarget.addEventListener("touchmove",he),U.current=he,z.current=be,D.current=Z.currentTarget},Q=m.useMemo(function(){var le=Tt(r).sort(function(oe,de){return oe-de}),Z=Tt(R).sort(function(oe,de){return oe-de}),j={};Z.forEach(function(oe){j[oe]=(j[oe]||0)+1}),le.forEach(function(oe){j[oe]=(j[oe]||0)-1});var F=u?1:0,te=Object.values(j).reduce(function(oe,de){return oe+Math.abs(de)},0);return te<=F?R:r},[r,R,u]);return[_,h,w,Q,G]}function f7t(e,n,r,i,o,a){var s=m.useCallback(function(h){return Math.max(e,Math.min(n,h))},[e,n]),l=m.useCallback(function(h){if(r!==null){var g=e+Math.round((s(h)-e)/r)*r,v=function(b){return(String(b).split(".")[1]||"").length},y=Math.max(v(r),v(n),v(e)),_=Number(g.toFixed(y));return e<=_&&_<=n?_:null}return null},[r,e,n,s]),c=m.useCallback(function(h){var g=s(h),v=i.map(function(S){return S.value});r!==null&&v.push(l(h)),v.push(e,n);var y=v[0],_=n-e;return v.forEach(function(S){var b=Math.abs(g-S);b<=_&&(y=S,_=b)}),y},[e,n,i,r,s,l]),u=function h(g,v,y){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var S,b=g[y],E=b+v,w=[];i.forEach(function(O){w.push(O.value)}),w.push(e,n),w.push(l(b));var C=v>0?1:-1;_==="unit"?w.push(l(b+C*r)):w.push(l(E)),w=w.filter(function(O){return O!==null}).filter(function(O){return v<0?O<=b:O>=b}),_==="unit"&&(w=w.filter(function(O){return O!==b}));var x=_==="unit"?b:E;S=w[0];var T=Math.abs(S-x);if(w.forEach(function(O){var M=Math.abs(O-x);M<T&&(S=O,T=M)}),S===void 0)return v<0?e:n;if(_==="dist")return S;if(Math.abs(v)>1){var R=Tt(g);return R[y]=S,h(R,v-C,y,_)}return S}else{if(v==="min")return e;if(v==="max")return n}},d=function(g,v,y){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",S=g[y],b=u(g,v,y,_);return{value:b,changed:b!==S}},f=function(g){return a===null&&g===0||typeof a=="number"&&g<a},p=function(g,v,y){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",S=g.map(c),b=S[y],E=u(S,v,y,_);if(S[y]=E,o===!1){var w=a||0;y>0&&S[y-1]!==b&&(S[y]=Math.max(S[y],S[y-1]+w)),y<S.length-1&&S[y+1]!==b&&(S[y]=Math.min(S[y],S[y+1]-w))}else if(typeof a=="number"||a===null){for(var C=y+1;C<S.length;C+=1)for(var x=!0;f(S[C]-S[C-1])&&x;){var T=d(S,1,C);S[C]=T.value,x=T.changed}for(var R=y;R>0;R-=1)for(var O=!0;f(S[R]-S[R-1])&&O;){var M=d(S,-1,R-1);S[R-1]=M.value,O=M.changed}for(var P=S.length-1;P>0;P-=1)for(var k=!0;f(S[P]-S[P-1])&&k;){var $=d(S,-1,P-1);S[P-1]=$.value,k=$.changed}for(var U=0;U<S.length-1;U+=1)for(var z=!0;f(S[U+1]-S[U])&&z;){var D=d(S,1,U+1);S[U+1]=D.value,z=D.changed}}return{value:S[y],values:S}};return[c,p]}function p7t(e){return m.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var n=e.editable,r=e.draggableTrack,i=e.minCount,o=e.maxCount;return[!0,n,!n&&r,i||0,o]},[e])}var h7t=m.forwardRef(function(e,n){var r=e.prefixCls,i=r===void 0?"rc-slider":r,o=e.className,a=e.style,s=e.classNames,l=e.styles,c=e.id,u=e.disabled,d=u===void 0?!1:u,f=e.keyboard,p=f===void 0?!0:f,h=e.autoFocus,g=e.onFocus,v=e.onBlur,y=e.min,_=y===void 0?0:y,S=e.max,b=S===void 0?100:S,E=e.step,w=E===void 0?1:E,C=e.value,x=e.defaultValue,T=e.range,R=e.count,O=e.onChange,M=e.onBeforeChange,P=e.onAfterChange,k=e.onChangeComplete,$=e.allowCross,U=$===void 0?!0:$,z=e.pushable,D=z===void 0?!1:z,B=e.reverse,Y=e.vertical,q=e.included,K=q===void 0?!0:q,H=e.startPoint,G=e.trackStyle,Q=e.handleStyle,le=e.railStyle,Z=e.dotStyle,j=e.activeDotStyle,F=e.marks,te=e.dots,oe=e.handleRender,de=e.activeHandleRender,pe=e.track,me=e.tabIndex,ve=me===void 0?0:me,he=e.ariaLabelForHandle,be=e.ariaLabelledByForHandle,we=e.ariaRequired,De=e.ariaValueTextFormatterForHandle,Ae=m.useRef(null),Ee=m.useRef(null),Re=m.useMemo(function(){return Y?B?"ttb":"btt":B?"rtl":"ltr"},[B,Y]),Te=p7t(T),Oe=ke(Te,5),Ne=Oe[0],je=Oe[1],ne=Oe[2],J=Oe[3],ae=Oe[4],Se=m.useMemo(function(){return isFinite(_)?_:0},[_]),xe=m.useMemo(function(){return isFinite(b)?b:100},[b]),ue=m.useMemo(function(){return w!==null&&w<=0?1:w},[w]),Me=m.useMemo(function(){return typeof D=="boolean"?D?ue:!1:D>=0?D:!1},[D,ue]),$e=m.useMemo(function(){return Object.keys(F||{}).map(function(Zt){var Et=F[Zt],Gt={value:Number(Zt)};return Et&&cn(Et)==="object"&&!m.isValidElement(Et)&&("label"in Et||"style"in Et)?(Gt.style=Et.style,Gt.label=Et.label):Gt.label=Et,Gt}).filter(function(Zt){var Et=Zt.label;return Et||typeof Et=="number"}).sort(function(Zt,Et){return Zt.value-Et.value})},[F]),ge=f7t(Se,xe,ue,$e,U,Me),Ve=ke(ge,2),st=Ve[0],Je=Ve[1],ot=dr(x,{value:C}),Xe=ke(ot,2),Ze=Xe[0],bt=Xe[1],at=m.useMemo(function(){var Zt=Ze==null?[]:Array.isArray(Ze)?Ze:[Ze],Et=ke(Zt,1),Gt=Et[0],zt=Gt===void 0?Se:Gt,Vn=Ze===null?[]:[zt];if(Ne){if(Vn=Tt(Zt),R||Ze===void 0){var sr=R>=0?R+1:2;for(Vn=Vn.slice(0,sr);Vn.length<sr;){var A;Vn.push((A=Vn[Vn.length-1])!==null&&A!==void 0?A:Se)}}Vn.sort(function(W,ce){return W-ce})}return Vn.forEach(function(W,ce){Vn[ce]=st(W)}),Vn},[Ze,Ne,Se,R,st]),pt=function(Et){return Ne?Et:Et[0]},Ct=Sr(function(Zt){var Et=Tt(Zt).sort(function(Gt,zt){return Gt-zt});O&&!rC(Et,at,!0)&&O(pt(Et)),bt(Et)}),It=Sr(function(Zt){Zt&&Ae.current.hideHelp();var Et=pt(at);P==null||P(Et),qi(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k==null||k(Et)}),Wt=function(Et){if(!(d||!je||at.length<=J)){var Gt=Tt(at);Gt.splice(Et,1),M==null||M(pt(Gt)),Ct(Gt);var zt=Math.max(0,Et-1);Ae.current.hideHelp(),Ae.current.focus(zt)}},Bt=d7t(Ee,Re,at,Se,xe,st,Ct,It,Je,je,J),Vt=ke(Bt,5),rn=Vt[0],tt=Vt[1],it=Vt[2],nt=Vt[3],vt=Vt[4],kt=function(Et,Gt){if(!d){var zt=Tt(at),Vn=0,sr=0,A=xe-Se;at.forEach(function(gt,Yt){var Nn=Math.abs(Et-gt);Nn<=A&&(A=Nn,Vn=Yt),gt<Et&&(sr=Yt)});var W=Vn;je&&A!==0&&(!ae||at.length<ae)?(zt.splice(sr+1,0,Et),W=sr+1):zt[Vn]=Et,Ne&&!at.length&&R===void 0&&zt.push(Et);var ce=pt(zt);if(M==null||M(ce),Ct(zt),Gt){var Pe,qe;(Pe=document.activeElement)===null||Pe===void 0||(qe=Pe.blur)===null||qe===void 0||qe.call(Pe),Ae.current.focus(W),vt(Gt,W,zt)}else P==null||P(ce),qi(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k==null||k(ce)}},Dt=function(Et){Et.preventDefault();var Gt=Ee.current.getBoundingClientRect(),zt=Gt.width,Vn=Gt.height,sr=Gt.left,A=Gt.top,W=Gt.bottom,ce=Gt.right,Pe=Et.clientX,qe=Et.clientY,gt;switch(Re){case"btt":gt=(W-qe)/Vn;break;case"ttb":gt=(qe-A)/Vn;break;case"rtl":gt=(ce-Pe)/zt;break;default:gt=(Pe-sr)/zt}var Yt=Se+gt*(xe-Se);kt(st(Yt),Et)},Kt=m.useState(null),Ht=ke(Kt,2),tn=Ht[0],on=Ht[1],sn=function(Et,Gt){if(!d){var zt=Je(at,Et,Gt);M==null||M(pt(at)),Ct(zt.values),on(zt.value)}};m.useEffect(function(){if(tn!==null){var Zt=at.indexOf(tn);Zt>=0&&Ae.current.focus(Zt)}on(null)},[tn]);var Jt=m.useMemo(function(){return ne&&ue===null?!1:ne},[ne,ue]),En=Sr(function(Zt,Et){vt(Zt,Et),M==null||M(pt(at))}),Pt=rn!==-1;m.useEffect(function(){if(!Pt){var Zt=at.lastIndexOf(tt);Ae.current.focus(Zt)}},[Pt]);var Qt=m.useMemo(function(){return Tt(nt).sort(function(Zt,Et){return Zt-Et})},[nt]),ln=m.useMemo(function(){return Ne?[Qt[0],Qt[Qt.length-1]]:[Se,Qt[0]]},[Qt,Ne,Se]),jt=ke(ln,2),Lt=jt[0],en=jt[1];m.useImperativeHandle(n,function(){return{focus:function(){Ae.current.focus(0)},blur:function(){var Et,Gt=document,zt=Gt.activeElement;(Et=Ee.current)!==null&&Et!==void 0&&Et.contains(zt)&&(zt==null||zt.blur())}}}),m.useEffect(function(){h&&Ae.current.focus(0)},[]);var Ue=m.useMemo(function(){return{min:Se,max:xe,direction:Re,disabled:d,keyboard:p,step:ue,included:K,includedStart:Lt,includedEnd:en,range:Ne,tabIndex:ve,ariaLabelForHandle:he,ariaLabelledByForHandle:be,ariaRequired:we,ariaValueTextFormatterForHandle:De,styles:l||{},classNames:s||{}}},[Se,xe,Re,d,p,ue,K,Lt,en,Ne,ve,he,be,we,De,l,s]);return m.createElement(aw.Provider,{value:Ue},m.createElement("div",{ref:Ee,className:Ce(i,o,fe(fe(fe(fe({},"".concat(i,"-disabled"),d),"".concat(i,"-vertical"),Y),"".concat(i,"-horizontal"),!Y),"".concat(i,"-with-marks"),$e.length)),style:a,onMouseDown:Dt,id:c},m.createElement("div",{className:Ce("".concat(i,"-rail"),s==null?void 0:s.rail),style:ee(ee({},le),l==null?void 0:l.rail)}),pe!==!1&&m.createElement(c7t,{prefixCls:i,style:G,values:at,startPoint:H,onStartMove:Jt?En:void 0}),m.createElement(l7t,{prefixCls:i,marks:$e,dots:te,style:Z,activeStyle:j}),m.createElement(i7t,{ref:Ae,prefixCls:i,style:Q,values:nt,draggingIndex:rn,draggingDelete:it,onStartMove:En,onOffsetChange:sn,onFocus:g,onBlur:v,handleRender:oe,activeHandleRender:de,onChangeComplete:It,onDelete:je?Wt:void 0}),m.createElement(a7t,{prefixCls:i,marks:$e,onClick:kt})))});const zze=m.createContext({}),VCe=m.forwardRef((e,n)=>{const{open:r,draggingDelete:i}=e,o=m.useRef(null),a=r&&!i,s=m.useRef(null);function l(){Dr.cancel(s.current),s.current=null}function c(){s.current=Dr(()=>{var u;(u=o.current)===null||u===void 0||u.forceAlign(),s.current=null})}return m.useEffect(()=>(a?c():l(),l),[a,e.title]),m.createElement(Sf,Object.assign({ref:Il(o,n)},e,{open:a}))}),g7t=e=>{const{componentCls:n,antCls:r,controlSize:i,dotSize:o,marginFull:a,marginPart:s,colorFillContentHover:l,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:h,handleLineWidth:g,handleLineWidthHover:v,motionDurationMid:y}=e;return{[n]:Object.assign(Object.assign({},li(e)),{position:"relative",height:i,margin:`${Ye(s)} ${Ye(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Ye(a)} ${Ye(s)}`},[`${n}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${n}-track,${n}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${n}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${n}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${n}-rail`]:{backgroundColor:e.railHoverBg},[`${n}-track`]:{backgroundColor:e.trackHoverBg},[`${n}-dot`]:{borderColor:l},[`${n}-handle::after`]:{boxShadow:`0 0 0 ${Ye(g)} ${e.colorPrimaryBorderHover}`},[`${n}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${n}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(g).mul(-1).equal(),insetBlockStart:u(g).mul(-1).equal(),width:u(d).add(u(g).mul(2)).equal(),height:u(d).add(u(g).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Ye(g)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
||
inset-inline-start ${y},
|
||
inset-block-start ${y},
|
||
width ${y},
|
||
height ${y},
|
||
box-shadow ${y},
|
||
outline ${y}
|
||
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:u(f).sub(d).div(2).add(v).mul(-1).equal(),insetBlockStart:u(f).sub(d).div(2).add(v).mul(-1).equal(),width:u(f).add(u(v).mul(2)).equal(),height:u(f).add(u(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Ye(v)} ${p}`,outline:`6px solid ${h}`,width:f,height:f,insetInlineStart:e.calc(d).sub(f).div(2).equal(),insetBlockStart:e.calc(d).sub(f).div(2).equal()}}},[`&-lock ${n}-handle`]:{"&::before, &::after":{transition:"none"}},[`${n}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${n}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${n}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${n}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${Ye(g)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${n}-disabled`]:{cursor:"not-allowed",[`${n}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${n}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
||
${n}-dot
|
||
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${n}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${Ye(g)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`
|
||
${n}-mark-text,
|
||
${n}-dot
|
||
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},Vze=(e,n)=>{const{componentCls:r,railSize:i,handleSize:o,dotSize:a,marginFull:s,calc:l}=e,c=n?"paddingBlock":"paddingInline",u=n?"width":"height",d=n?"height":"width",f=n?"insetBlockStart":"insetInlineStart",p=n?"top":"insetInlineStart",h=l(i).mul(3).sub(o).div(2).equal(),g=l(o).sub(i).div(2).equal(),v=n?{borderWidth:`${Ye(g)} 0`,transform:`translateY(${Ye(l(g).mul(-1).equal())})`}:{borderWidth:`0 ${Ye(g)}`,transform:`translateX(${Ye(e.calc(g).mul(-1).equal())})`};return{[c]:i,[d]:l(i).mul(3).equal(),[`${r}-rail`]:{[u]:"100%",[d]:i},[`${r}-track,${r}-tracks`]:{[d]:i},[`${r}-track-draggable`]:Object.assign({},v),[`${r}-handle`]:{[f]:h},[`${r}-mark`]:{insetInlineStart:0,top:0,[p]:l(i).mul(3).add(n?0:s).equal(),[u]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[p]:i,[u]:"100%",[d]:i},[`${r}-dot`]:{position:"absolute",[f]:l(i).sub(a).div(2).equal()}}},m7t=e=>{const{componentCls:n,marginPartWithMark:r}=e;return{[`${n}-horizontal`]:Object.assign(Object.assign({},Vze(e,!0)),{[`&${n}-with-marks`]:{marginBottom:r}})}},v7t=e=>{const{componentCls:n}=e;return{[`${n}-vertical`]:Object.assign(Object.assign({},Vze(e,!1)),{height:"100%"})}},y7t=e=>{const r=e.controlHeightLG/4,i=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*1.5,s=e.colorPrimary,l=new Gr(s).setA(.2).toRgbString();return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:i,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:s,handleActiveOutlineColor:l,handleColorDisabled:new Gr(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},_7t=Yr("Slider",e=>{const n=wr(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[g7t(n),m7t(n),v7t(n)]},y7t);function vq(){const[e,n]=m.useState(!1),r=m.useRef(null),i=()=>{Dr.cancel(r.current)},o=a=>{i(),a?n(a):r.current=Dr(()=>{n(a)})};return m.useEffect(()=>i,[]),[e,o]}var b7t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function S7t(e,n){return e||e===null?e:n||n===null?n:r=>typeof r=="number"?r.toString():""}const Gze=V.forwardRef((e,n)=>{var r,i,o,a,s,l,c,u,d,f;const{prefixCls:p,range:h,className:g,rootClassName:v,style:y,disabled:_,tooltipPrefixCls:S,tipFormatter:b,tooltipVisible:E,getTooltipPopupContainer:w,tooltipPlacement:C,tooltip:x={},onChangeComplete:T,classNames:R,styles:O}=e,M=b7t(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:P}=e,{direction:k,slider:$,getPrefixCls:U,getPopupContainer:z}=V.useContext(Cn),D=V.useContext(xs),B=_??D,{handleRender:Y,direction:q}=V.useContext(zze),H=(q||k)==="rtl",[G,Q]=vq(),[le,Z]=vq(),j=Object.assign({},x),{open:F,placement:te,getPopupContainer:oe,prefixCls:de,formatter:pe}=j,me=F??E,ve=(G||le)&&me!==!1,he=S7t(pe,b),[be,we]=vq(),De=ue=>{T==null||T(ue),we(!1)},Ae=(ue,Me)=>ue||(Me?H?"left":"right":"top"),Ee=U("slider",p),[Re,Te,Oe]=_7t(Ee),Ne=Ce(g,$==null?void 0:$.className,(r=$==null?void 0:$.classNames)===null||r===void 0?void 0:r.root,R==null?void 0:R.root,v,{[`${Ee}-rtl`]:H,[`${Ee}-lock`]:be},Te,Oe);H&&!M.vertical&&(M.reverse=!M.reverse),V.useEffect(()=>{const ue=()=>{Dr(()=>{Z(!1)},1)};return document.addEventListener("mouseup",ue),()=>{document.removeEventListener("mouseup",ue)}},[]);const je=h&&!me,ne=Y||((ue,Me)=>{const{index:$e}=Me,ge=ue.props;function Ve(Xe,Ze,bt){var at,pt,Ct,It;bt&&((pt=(at=M)[Xe])===null||pt===void 0||pt.call(at,Ze)),(It=(Ct=ge)[Xe])===null||It===void 0||It.call(Ct,Ze)}const st=Object.assign(Object.assign({},ge),{onMouseEnter:Xe=>{Q(!0),Ve("onMouseEnter",Xe)},onMouseLeave:Xe=>{Q(!1),Ve("onMouseLeave",Xe)},onMouseDown:Xe=>{Z(!0),we(!0),Ve("onMouseDown",Xe)},onFocus:Xe=>{var Ze;Z(!0),(Ze=M.onFocus)===null||Ze===void 0||Ze.call(M,Xe),Ve("onFocus",Xe,!0)},onBlur:Xe=>{var Ze;Z(!1),(Ze=M.onBlur)===null||Ze===void 0||Ze.call(M,Xe),Ve("onBlur",Xe,!0)}}),Je=V.cloneElement(ue,st),ot=(!!me||ve)&&he!==null;return je?Je:V.createElement(VCe,Object.assign({},j,{prefixCls:U("tooltip",de??S),title:he?he(Me.value):"",open:ot,placement:Ae(te??C,P),key:$e,classNames:{root:`${Ee}-tooltip`},getPopupContainer:oe||w||z}),Je)}),J=je?(ue,Me)=>{const $e=V.cloneElement(ue,{style:Object.assign(Object.assign({},ue.props.style),{visibility:"hidden"})});return V.createElement(VCe,Object.assign({},j,{prefixCls:U("tooltip",de??S),title:he?he(Me.value):"",open:he!==null&&ve,placement:Ae(te??C,P),key:"tooltip",classNames:{root:`${Ee}-tooltip`},getPopupContainer:oe||w||z,draggingDelete:Me.draggingDelete}),$e)}:void 0,ae=Object.assign(Object.assign(Object.assign(Object.assign({},(i=$==null?void 0:$.styles)===null||i===void 0?void 0:i.root),$==null?void 0:$.style),O==null?void 0:O.root),y),Se=Object.assign(Object.assign({},(o=$==null?void 0:$.styles)===null||o===void 0?void 0:o.tracks),O==null?void 0:O.tracks),xe=Ce((a=$==null?void 0:$.classNames)===null||a===void 0?void 0:a.tracks,R==null?void 0:R.tracks);return Re(V.createElement(h7t,Object.assign({},M,{classNames:Object.assign({handle:Ce((s=$==null?void 0:$.classNames)===null||s===void 0?void 0:s.handle,R==null?void 0:R.handle),rail:Ce((l=$==null?void 0:$.classNames)===null||l===void 0?void 0:l.rail,R==null?void 0:R.rail),track:Ce((c=$==null?void 0:$.classNames)===null||c===void 0?void 0:c.track,R==null?void 0:R.track)},xe?{tracks:xe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(u=$==null?void 0:$.styles)===null||u===void 0?void 0:u.handle),O==null?void 0:O.handle),rail:Object.assign(Object.assign({},(d=$==null?void 0:$.styles)===null||d===void 0?void 0:d.rail),O==null?void 0:O.rail),track:Object.assign(Object.assign({},(f=$==null?void 0:$.styles)===null||f===void 0?void 0:f.track),O==null?void 0:O.track)},Object.keys(Se).length?{tracks:Se}:{}),step:M.step,range:h,className:Ne,style:ae,disabled:B,ref:n,prefixCls:Ee,handleRender:ne,activeHandleRender:J,onChangeComplete:De})))});var E7t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Wze=e=>{const{prefixCls:n,colors:r,type:i,color:o,range:a=!1,className:s,activeIndex:l,onActive:c,onDragStart:u,onDragChange:d,onKeyDelete:f}=e,p=E7t(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),h=Object.assign(Object.assign({},p),{track:!1}),g=m.useMemo(()=>`linear-gradient(90deg, ${r.map(C=>`${C.color} ${C.percent}%`).join(", ")})`,[r]),v=m.useMemo(()=>!o||!i?null:i==="alpha"?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`,[o,i]),y=Sr(u),_=Sr(d),S=m.useMemo(()=>({onDragStart:y,onDragChange:_}),[]),b=Sr((w,C)=>{const{onFocus:x,style:T,className:R,onKeyDown:O}=w.props,M=Object.assign({},T);return i==="gradient"&&(M.background=f9e(r,C.value)),m.cloneElement(w,{onFocus:P=>{c==null||c(C.index),x==null||x(P)},style:M,className:Ce(R,{[`${n}-slider-handle-active`]:l===C.index}),onKeyDown:P=>{(P.key==="Delete"||P.key==="Backspace")&&f&&f(C.index),O==null||O(P)}})}),E=m.useMemo(()=>({direction:"ltr",handleRender:b}),[]);return m.createElement(zze.Provider,{value:E},m.createElement(Hze.Provider,{value:S},m.createElement(Gze,Object.assign({},h,{className:Ce(s,`${n}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:g},handle:v?{background:v}:{}},classNames:{rail:`${n}-slider-rail`,handle:`${n}-slider-handle`}}))))},C7t=e=>{const{value:n,onChange:r,onChangeComplete:i}=e,o=s=>r(s[0]),a=s=>i(s[0]);return m.createElement(Wze,Object.assign({},e,{value:[n],onChange:o,onChangeComplete:a}))};function GCe(e){return Tt(e).sort((n,r)=>n.percent-r.percent)}const w7t=e=>{const{prefixCls:n,mode:r,onChange:i,onChangeComplete:o,onActive:a,activeIndex:s,onGradientDragging:l,colors:c}=e,u=r==="gradient",d=m.useMemo(()=>c.map(_=>({percent:_.percent,color:_.color.toRgbString()})),[c]),f=m.useMemo(()=>d.map(_=>_.percent),[d]),p=m.useRef(d),h=_=>{let{rawValues:S,draggingIndex:b,draggingValue:E}=_;if(S.length>d.length){const w=f9e(d,E),C=Tt(d);C.splice(b,0,{percent:E,color:w}),p.current=C}else p.current=d;l(!0),i(new sf(GCe(p.current)),!0)},g=_=>{let{deleteIndex:S,draggingIndex:b,draggingValue:E}=_,w=Tt(p.current);S!==-1?w.splice(S,1):(w[b]=Object.assign(Object.assign({},w[b]),{percent:E}),w=GCe(w)),i(new sf(w),!0)},v=_=>{const S=Tt(d);S.splice(_,1);const b=new sf(S);i(b),o(b)},y=_=>{o(new sf(d)),s>=_.length&&a(_.length-1),l(!1)};return u?m.createElement(Wze,{min:0,max:100,prefixCls:n,className:`${n}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:y,disabled:!1,type:"gradient",activeIndex:s,onActive:a,onDragStart:h,onDragChange:g,onKeyDelete:v}):null},x7t=m.memo(w7t);var T7t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const O7t={slider:C7t},WCe=()=>{const e=m.useContext(Pze),{mode:n,onModeChange:r,modeOptions:i,prefixCls:o,allowClear:a,value:s,disabledAlpha:l,onChange:c,onClear:u,onChangeComplete:d,activeIndex:f,gradientDragging:p}=e,h=T7t(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),g=V.useMemo(()=>s.cleared?[{percent:0,color:new sf("")},{percent:100,color:new sf("")}]:s.getColors(),[s]),v=!s.isGradient(),[y,_]=V.useState(s);ti(()=>{var $;v||_(($=g[f])===null||$===void 0?void 0:$.color)},[p,f]);const S=V.useMemo(()=>{var $;return v?s:p?y:($=g[f])===null||$===void 0?void 0:$.color},[s,f,v,y,p]),[b,E]=V.useState(S),[w,C]=V.useState(0),x=b!=null&&b.equals(S)?S:b;ti(()=>{E(S)},[w,S==null?void 0:S.toHexString()]);const T=($,U)=>{let z=Gc($);if(s.cleared){const B=z.toRgb();if(!B.r&&!B.g&&!B.b&&U){const{type:Y,value:q=0}=U;z=new sf({h:Y==="hue"?q:0,s:1,b:1,a:Y==="alpha"?q/100:1})}else z=d6(z)}if(n==="single")return z;const D=Tt(g);return D[f]=Object.assign(Object.assign({},D[f]),{color:z}),new sf(D)},R=($,U,z)=>{const D=T($,z);E(D.isGradient()?D.getColors()[f].color:D),c(D,U)},O=($,U)=>{d(T($,U)),C(z=>z+1)},M=$=>{c(T($))};let P=null;const k=i.length>1;return(a||k)&&(P=V.createElement("div",{className:`${o}-operation`},k&&V.createElement(Mze,{size:"small",options:i,value:n,onChange:r}),V.createElement(Dze,Object.assign({prefixCls:o,value:s,onChange:$=>{c($),u==null||u()}},h)))),V.createElement(V.Fragment,null,P,V.createElement(x7t,Object.assign({},e,{colors:g})),V.createElement(YPt,{prefixCls:o,value:x==null?void 0:x.toHsb(),disabledAlpha:l,onChange:($,U)=>{R($,!0,U)},onChangeComplete:($,U)=>{O($,U)},components:O7t}),V.createElement(t7t,Object.assign({value:S,onChange:M,prefixCls:o,disabledAlpha:l},h)))},YCe=()=>{const{prefixCls:e,value:n,presets:r,onChange:i}=m.useContext(Aze);return Array.isArray(r)?V.createElement(jAt,{value:n,presets:r,prefixCls:e,onChange:i}):null},R7t=e=>{const{prefixCls:n,presets:r,panelRender:i,value:o,onChange:a,onClear:s,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:g,format:v,onFormatChange:y,gradientDragging:_,onGradientDragging:S,disabledFormat:b}=e,E=`${n}-inner`,w=V.useMemo(()=>({prefixCls:n,value:o,onChange:a,onClear:s,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:g,format:v,onFormatChange:y,gradientDragging:_,onGradientDragging:S,disabledFormat:b}),[n,o,a,s,l,c,u,d,f,p,h,g,v,y,_,S,b]),C=V.useMemo(()=>({prefixCls:n,value:o,presets:r,onChange:a}),[n,o,r,a]),x=V.createElement("div",{className:`${E}-content`},V.createElement(WCe,null),Array.isArray(r)&&V.createElement(ABt,null),V.createElement(YCe,null));return V.createElement(Pze.Provider,{value:w},V.createElement(Aze.Provider,{value:C},V.createElement("div",{className:E},typeof i=="function"?i(x,{components:{Picker:WCe,Presets:YCe}}):x)))};var I7t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const N7t=m.forwardRef((e,n)=>{const{color:r,prefixCls:i,open:o,disabled:a,format:s,className:l,showText:c,activeIndex:u}=e,d=I7t(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${i}-trigger`,p=`${f}-text`,h=`${p}-cell`,[g]=Nu("ColorPicker"),v=V.useMemo(()=>{if(!c)return"";if(typeof c=="function")return c(r);if(r.cleared)return g.transparent;if(r.isGradient())return r.getColors().map((b,E)=>{const w=u!==-1&&u!==E;return V.createElement("span",{key:E,className:Ce(h,w&&`${h}-inactive`)},b.color.toRgbString()," ",b.percent,"%")});const _=r.toHexString().toUpperCase(),S=Pue(r);switch(s){case"rgb":return r.toRgbString();case"hsb":return r.toHsbString();default:return S<100?`${_.slice(0,7)},${S}%`:_}},[r,s,c,u]),y=m.useMemo(()=>r.cleared?V.createElement(Dze,{prefixCls:i}):V.createElement(Rue,{prefixCls:i,color:r.toCssString()}),[r,i]);return V.createElement("div",Object.assign({ref:n,className:Ce(f,l,{[`${f}-active`]:o,[`${f}-disabled`]:a})},Va(d)),y,c&&V.createElement("div",{className:p},v))});function M7t(e,n,r){const[i]=Nu("ColorPicker"),[o,a]=dr(e,{value:n}),[s,l]=m.useState("single"),[c,u]=m.useMemo(()=>{const v=(Array.isArray(r)?r:[r]).filter(b=>b);v.length||v.push("single");const y=new Set(v),_=[],S=(b,E)=>{y.has(b)&&_.push({label:E,value:b})};return S("single",i.singleColor),S("gradient",i.gradientColor),[_,y]},[r]),[d,f]=m.useState(null),p=Sr(v=>{f(v),a(v)}),h=m.useMemo(()=>{const v=Gc(o||"");return v.equals(d)?d:v},[o,d]),g=m.useMemo(()=>{var v;return u.has(s)?s:(v=c[0])===null||v===void 0?void 0:v.value},[u,s,c]);return m.useEffect(()=>{l(h.isGradient()?"gradient":"single")},[h]),[h,p,g,l,c]}const Yze=(e,n)=>({backgroundImage:`conic-gradient(${n} 0 25%, transparent 0 50%, ${n} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),qCe=(e,n)=>{const{componentCls:r,borderRadiusSM:i,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:s}=e;return{[`${r}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:i,width:n,height:n,boxShadow:o,flex:"none"},Yze("50%",e.colorFillSecondary)),{[`${r}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Ye(a)} ${s}`,borderRadius:"inherit"}})}},P7t=e=>{const{componentCls:n,antCls:r,fontSizeSM:i,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:s,paddingXXS:l,controlHeightSM:c,marginXS:u,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:h,lineWidth:g}=e;return{[`${n}-input-container`]:{display:"flex",[`${n}-steppers${r}-input-number`]:{fontSize:i,lineHeight:o,[`${r}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${r}-input-number-handler-wrap`]:{width:h}},[`${n}-steppers${n}-alpha-input`]:{flex:`0 0 ${Ye(a)}`,marginInlineStart:s},[`${n}-format-select${r}-select`]:{marginInlineEnd:u,width:"auto","&-single":{[`${r}-select-selector`]:{padding:0,border:0},[`${r}-select-arrow`]:{insetInlineEnd:0},[`${r}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(s).equal(),fontSize:i,lineHeight:Ye(c)},[`${r}-select-item-option-content`]:{fontSize:i,lineHeight:o},[`${r}-select-dropdown`]:{[`${r}-select-item`]:{minHeight:"auto"}}}},[`${n}-input`]:{gap:s,alignItems:"center",flex:1,width:0,[`${n}-hsb-input,${n}-rgb-input`]:{display:"flex",gap:s,alignItems:"center"},[`${n}-steppers`]:{flex:1},[`${n}-hex-input${r}-input-affix-wrapper`]:{flex:1,padding:`0 ${Ye(f)}`,[`${r}-input`]:{fontSize:i,textTransform:"uppercase",lineHeight:Ye(e.calc(c).sub(e.calc(g).mul(2)).equal())},[`${r}-input-prefix`]:{color:p}}}}}},A7t=e=>{const{componentCls:n,controlHeightLG:r,borderRadiusSM:i,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:s,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:u}=e;return{userSelect:"none",[`${n}-select`]:{[`${n}-palette`]:{minHeight:e.calc(r).mul(4).equal(),overflow:"hidden",borderRadius:i},[`${n}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:a},[`${n}-handler`]:{width:u,height:u,border:`${Ye(c)} solid ${s}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}},D7t=e=>{const{componentCls:n,antCls:r,colorTextQuaternary:i,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:s,colorText:l,lineHeightSM:c,lineWidth:u,borderRadius:d,colorFill:f,colorWhite:p,marginXXS:h,paddingXS:g,fontHeightSM:v}=e;return{[`${n}-presets`]:{[`${r}-collapse-item > ${r}-collapse-header`]:{padding:0,[`${r}-collapse-expand-icon`]:{height:v,color:i,paddingInlineEnd:o}},[`${r}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${r}-collapse-item > ${r}-collapse-content > ${r}-collapse-content-box`]:{padding:`${Ye(g)} 0`},"&-label":{fontSize:s,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(h).mul(1.5).equal(),[`${n}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(u).mul(4)).equal(),height:e.calc(a).add(e.calc(u).mul(4)).equal(),position:"absolute",top:e.calc(u).mul(-2).equal(),insetInlineStart:e.calc(u).mul(-2).equal(),borderRadius:d,border:`${Ye(u)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::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:`${Ye(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}`},[`&${n}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${n}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:s,color:i}}}},k7t=e=>{const{componentCls:n,colorPickerInsetShadow:r,colorBgElevated:i,colorFillSecondary:o,lineWidthBold:a,colorPickerHandlerSizeSM:s,colorPickerSliderHeight:l,marginSM:c,marginXS:u}=e,d=e.calc(s).sub(e.calc(a).mul(2).equal()).equal(),f=e.calc(s).add(e.calc(a).mul(2).equal()).equal(),p={"&:after":{transform:"scale(1)",boxShadow:`${r}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${n}-slider`]:[Yze(Ye(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:r},[`& ${n}-slider-handle`]:{width:d,height:d,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:s,height:s,border:`${Ye(a)} solid ${i}`,boxShadow:`${r}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":p}}],[`${n}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${n}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${n}-gradient-slider`]:{marginBottom:u,[`& ${n}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":p}}}},Sie=(e,n,r)=>({borderInlineEndWidth:e.lineWidth,borderColor:n,boxShadow:`0 0 0 ${Ye(e.controlOutlineWidth)} ${r}`,outline:0}),L7t=e=>{const{componentCls:n}=e;return{"&-rtl":{[`${n}-presets-color`]:{"&::after":{direction:"ltr"}},[`${n}-clear`]:{"&::after":{direction:"ltr"}}}}},KCe=(e,n,r)=>{const{componentCls:i,borderRadiusSM:o,lineWidth:a,colorSplit:s,colorBorder:l,red6:c}=e;return{[`${i}-clear`]:Object.assign(Object.assign({width:n,height:n,borderRadius:o,border:`${Ye(a)} solid ${s}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},r),{"&::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:c},"&:hover":{borderColor:l}})}},$7t=e=>{const{componentCls:n,colorError:r,colorWarning:i,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:s,colorWarningOutline:l}=e;return{[`&${n}-status-error`]:{borderColor:r,"&:hover":{borderColor:o},[`&${n}-trigger-active`]:Object.assign({},Sie(e,r,s))},[`&${n}-status-warning`]:{borderColor:i,"&:hover":{borderColor:a},[`&${n}-trigger-active`]:Object.assign({},Sie(e,i,l))}}},F7t=e=>{const{componentCls:n,controlHeightLG:r,controlHeightSM:i,controlHeight:o,controlHeightXS:a,borderRadius:s,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:u,fontSizeLG:d}=e;return{[`&${n}-lg`]:{minWidth:r,minHeight:r,borderRadius:u,[`${n}-color-block, ${n}-clear`]:{width:o,height:o,borderRadius:s},[`${n}-trigger-text`]:{fontSize:d}},[`&${n}-sm`]:{minWidth:i,minHeight:i,borderRadius:l,[`${n}-color-block, ${n}-clear`]:{width:a,height:a,borderRadius:c},[`${n}-trigger-text`]:{lineHeight:Ye(a)}}}},B7t=e=>{const{antCls:n,componentCls:r,colorPickerWidth:i,colorPrimary:o,motionDurationMid:a,colorBgElevated:s,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:u,borderRadius:d,marginXS:f,marginSM:p,controlHeight:h,controlHeightSM:g,colorBgTextActive:v,colorPickerPresetColorSize:y,colorPickerPreviewSize:_,lineWidth:S,colorBorder:b,paddingXXS:E,fontSize:w,colorPrimaryHover:C,controlOutline:x}=e;return[{[r]:Object.assign({[`${r}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:i,[`& > ${n}-divider`]:{margin:`${Ye(p)} 0 ${Ye(f)}`}},[`${r}-panel`]:Object.assign({},A7t(e))},k7t(e)),qCe(e,_)),P7t(e)),D7t(e)),KCe(e,y,{marginInlineStart:"auto"})),{[`${r}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,minHeight:h,borderRadius:d,border:`${Ye(S)} solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${a}`,background:s,padding:e.calc(E).sub(S).equal(),[`${r}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(E).sub(S)).equal(),fontSize:w,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:C},[`&${r}-trigger-active`]:Object.assign({},Sie(e,o,x)),"&-disabled":{color:l,background:u,cursor:"not-allowed","&:hover":{borderColor:v},[`${r}-trigger-text`]:{color:l}}},KCe(e,g)),qCe(e,g)),$7t(e)),F7t(e))},L7t(e))},nw(e,{focusElCls:`${r}-trigger-active`})]},j7t=Yr("ColorPicker",e=>{const{colorTextQuaternary:n,marginSM:r}=e,i=8,o=wr(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${n}`,colorPickerSliderHeight:i,colorPickerPreviewSize:e.calc(i).mul(2).add(r).equal()});return[B7t(o)]});var U7t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Pde=e=>{const{mode:n,value:r,defaultValue:i,format:o,defaultFormat:a,allowClear:s=!1,presets:l,children:c,trigger:u="click",open:d,disabled:f,placement:p="bottomLeft",arrow:h=!0,panelRender:g,showText:v,style:y,className:_,size:S,rootClassName:b,prefixCls:E,styles:w,disabledAlpha:C=!1,onFormatChange:x,onChange:T,onClear:R,onOpenChange:O,onChangeComplete:M,getPopupContainer:P,autoAdjustOverflow:k=!0,destroyTooltipOnHide:$,disabledFormat:U}=e,z=U7t(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","disabledFormat"]),{getPrefixCls:D,direction:B,colorPicker:Y}=m.useContext(Cn),q=m.useContext(xs),K=f??q,[H,G]=dr(!1,{value:d,postState:st=>!K&&st,onChange:O}),[Q,le]=dr(o,{value:o,defaultValue:a,onChange:x}),Z=D("color-picker",E),[j,F,te,oe,de]=M7t(i,r,n),pe=m.useMemo(()=>Pue(j)<100,[j]),[me,ve]=V.useState(null),he=st=>{if(M){let Je=Gc(st);C&&pe&&(Je=d6(st)),M(Je)}},be=(st,Je)=>{let ot=Gc(st);C&&pe&&(ot=d6(ot)),F(ot),ve(null),T&&T(ot,ot.toCssString()),Je||he(ot)},[we,De]=V.useState(0),[Ae,Ee]=V.useState(!1),Re=st=>{if(oe(st),st==="single"&&j.isGradient())De(0),be(new sf(j.getColors()[0].color)),ve(j);else if(st==="gradient"&&!j.isGradient()){const Je=pe?d6(j):j;be(new sf(me||[{percent:0,color:Je},{percent:100,color:Je}]))}},{status:Te}=V.useContext(qs),{compactSize:Oe,compactItemClassnames:Ne}=yg(Z,B),je=Xs(st=>{var Je;return(Je=S??Oe)!==null&&Je!==void 0?Je:st}),ne=po(Z),[J,ae,Se]=j7t(Z,ne),xe={[`${Z}-rtl`]:B},ue=Ce(b,Se,ne,xe),Me=Ce(ng(Z,Te),{[`${Z}-sm`]:je==="small",[`${Z}-lg`]:je==="large"},Ne,Y==null?void 0:Y.className,ue,_,ae),$e=Ce(Z,ue),ge={open:H,trigger:u,placement:p,arrow:h,rootClassName:b,getPopupContainer:P,autoAdjustOverflow:k,destroyTooltipOnHide:$},Ve=Object.assign(Object.assign({},Y==null?void 0:Y.style),y);return J(V.createElement(Rp,Object.assign({style:w==null?void 0:w.popup,styles:{body:w==null?void 0:w.popupOverlayInner},onOpenChange:st=>{(!st||!K)&&G(st)},content:V.createElement(tg,{form:!0},V.createElement(R7t,{mode:te,onModeChange:Re,modeOptions:de,prefixCls:Z,value:j,allowClear:s,disabled:K,disabledAlpha:C,presets:l,panelRender:g,format:Q,onFormatChange:le,onChange:be,onChangeComplete:he,onClear:R,activeIndex:we,onActive:De,gradientDragging:Ae,onGradientDragging:Ee,disabledFormat:U})),classNames:{root:$e}},ge),c||V.createElement(N7t,Object.assign({activeIndex:H?we:-1,open:H,className:Me,style:Ve,prefixCls:Z,disabled:K,showText:v,format:Q},z,{color:j}))))},H7t=tS(Pde,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);Pde._InternalPanelDoNotUseOrYouWillBeFired=H7t;var z7t={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"},V7t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:z7t}))},CU=m.forwardRef(V7t),G7t={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"},W7t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:G7t}))},Ade=m.forwardRef(W7t),Y7t={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"},q7t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Y7t}))},K7t=m.forwardRef(q7t);function X7t(e,n,r){return r!==void 0?r:n==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:n==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:n==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:n==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:n==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Q7t(e,n,r){return r!==void 0?r:n==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:n==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:n==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:n==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:n==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function qze(e,n){const{allowClear:r=!0}=e,{clearIcon:i,removeIcon:o}=rU(Object.assign(Object.assign({},e),{prefixCls:n,componentName:"DatePicker"}));return[m.useMemo(()=>r===!1?!1:Object.assign({clearIcon:i},r===!0?{}:r),[r,i]),o]}const[Z7t,J7t]=["week","WeekPicker"],[e9t,t9t]=["month","MonthPicker"],[n9t,r9t]=["year","YearPicker"],[i9t,o9t]=["quarter","QuarterPicker"],[Kze,XCe]=["time","TimePicker"],a9t=e=>m.createElement(qn,Object.assign({size:"small",type:"primary"},e));function Xze(e){return m.useMemo(()=>Object.assign({button:a9t},e),[e])}var s9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const l9t=e=>m.forwardRef((r,i)=>{var o;const{prefixCls:a,getPopupContainer:s,components:l,className:c,style:u,placement:d,size:f,disabled:p,bordered:h=!0,placeholder:g,popupClassName:v,dropdownClassName:y,status:_,rootClassName:S,variant:b,picker:E}=r,w=s9t(r,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),C=m.useRef(null),{getPrefixCls:x,direction:T,getPopupContainer:R,rangePicker:O}=m.useContext(Cn),M=x("picker",a),{compactSize:P,compactItemClassnames:k}=yg(M,T),$=x(),[U,z]=Jy("rangePicker",b,h),D=po(M),[B,Y,q]=tze(M,D),[K]=qze(r,M),H=Xze(l),G=Xs(ve=>{var he;return(he=f??P)!==null&&he!==void 0?he:ve}),Q=m.useContext(xs),le=p??Q,Z=m.useContext(qs),{hasFeedback:j,status:F,feedbackIcon:te}=Z,oe=m.createElement(m.Fragment,null,E===Kze?m.createElement(Ade,null):m.createElement(CU,null),j&&te);m.useImperativeHandle(i,()=>C.current);const[de]=Nu("Calendar",f8),pe=Object.assign(Object.assign({},de),r.locale),[me]=Up("DatePicker",(o=r.popupStyle)===null||o===void 0?void 0:o.zIndex);return B(m.createElement(tg,{space:!0},m.createElement(tFt,Object.assign({separator:m.createElement("span",{"aria-label":"to",className:`${M}-separator`},m.createElement(K7t,null)),disabled:le,ref:C,placement:d,placeholder:Q7t(pe,E,g),suffixIcon:oe,prevIcon:m.createElement("span",{className:`${M}-prev-icon`}),nextIcon:m.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:m.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:m.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${$}-slide-up`,picker:E},w,{className:Ce({[`${M}-${G}`]:G,[`${M}-${U}`]:z},ng(M,Zy(F,_),j),Y,k,c,O==null?void 0:O.className,q,D,S),style:Object.assign(Object.assign({},O==null?void 0:O.style),u),locale:pe.lang,prefixCls:M,getPopupContainer:s||R,generateConfig:e,components:H,direction:T,classNames:{popup:Ce(Y,v||y,q,D,S)},styles:{popup:Object.assign(Object.assign({},r.popupStyle),{zIndex:me})},allowClear:K}))))});var c9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const u9t=e=>{const n=(c,u)=>{const d=u===XCe?"timePicker":"datePicker";return m.forwardRef((p,h)=>{var g;const{prefixCls:v,getPopupContainer:y,components:_,style:S,className:b,rootClassName:E,size:w,bordered:C,placement:x,placeholder:T,popupClassName:R,dropdownClassName:O,disabled:M,status:P,variant:k,onCalendarChange:$}=p,U=c9t(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:z,direction:D,getPopupContainer:B,[d]:Y}=m.useContext(Cn),q=z("picker",v),{compactSize:K,compactItemClassnames:H}=yg(q,D),G=m.useRef(null),[Q,le]=Jy("datePicker",k,C),Z=po(q),[j,F,te]=tze(q,Z);m.useImperativeHandle(h,()=>G.current);const oe={showToday:!0},de=c||p.picker,pe=z(),{onSelect:me,multiple:ve}=U,he=me&&c==="time"&&!ve,be=(ue,Me,$e)=>{$==null||$(ue,Me,$e),he&&me(ue)},[we,De]=qze(p,q),Ae=Xze(_),Ee=Xs(ue=>{var Me;return(Me=w??K)!==null&&Me!==void 0?Me:ue}),Re=m.useContext(xs),Te=M??Re,Oe=m.useContext(qs),{hasFeedback:Ne,status:je,feedbackIcon:ne}=Oe,J=m.createElement(m.Fragment,null,de==="time"?m.createElement(Ade,null):m.createElement(CU,null),Ne&&ne),[ae]=Nu("DatePicker",f8),Se=Object.assign(Object.assign({},ae),p.locale),[xe]=Up("DatePicker",(g=p.popupStyle)===null||g===void 0?void 0:g.zIndex);return j(m.createElement(tg,{space:!0},m.createElement(sFt,Object.assign({ref:G,placeholder:X7t(Se,de,T),suffixIcon:J,placement:x,prevIcon:m.createElement("span",{className:`${q}-prev-icon`}),nextIcon:m.createElement("span",{className:`${q}-next-icon`}),superPrevIcon:m.createElement("span",{className:`${q}-super-prev-icon`}),superNextIcon:m.createElement("span",{className:`${q}-super-next-icon`}),transitionName:`${pe}-slide-up`,picker:c,onCalendarChange:be},oe,U,{locale:Se.lang,className:Ce({[`${q}-${Ee}`]:Ee,[`${q}-${Q}`]:le},ng(q,Zy(je,P),Ne),F,H,Y==null?void 0:Y.className,b,te,Z,E),style:Object.assign(Object.assign({},Y==null?void 0:Y.style),S),prefixCls:q,getPopupContainer:y||B,generateConfig:e,components:Ae,direction:D,disabled:Te,classNames:{popup:Ce(F,te,Z,E,R||O)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:xe})},allowClear:we,removeIcon:De}))))})},r=n(),i=n(Z7t,J7t),o=n(e9t,t9t),a=n(n9t,r9t),s=n(i9t,o9t),l=n(Kze,XCe);return{DatePicker:r,WeekPicker:i,MonthPicker:o,YearPicker:a,TimePicker:l,QuarterPicker:s}},Qze=e=>{const{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:o,TimePicker:a,QuarterPicker:s}=u9t(e),l=l9t(e),c=n;return c.WeekPicker=r,c.MonthPicker=i,c.YearPicker=o,c.RangePicker=l,c.TimePicker=a,c.QuarterPicker=s,c},gd=Qze(c6t),d9t=tS(gd,"popupAlign",void 0,"picker");gd._InternalPanelDoNotUseOrYouWillBeFired=d9t;const f9t=tS(gd.RangePicker,"popupAlign",void 0,"picker");gd._InternalRangePanelDoNotUseOrYouWillBeFired=f9t;gd.generatePicker=Qze;var QCe=m.createContext(null),Zze=m.createContext({}),p9t=["prefixCls","className","containerRef"],h9t=function(n){var r=n.prefixCls,i=n.className,o=n.containerRef,a=Xt(n,p9t),s=m.useContext(Zze),l=s.panel,c=vg(l,o);return m.createElement("div",ft({className:Ce("".concat(r,"-content"),i),role:"dialog",ref:c},Va(n,{aria:!0}),{"aria-modal":"true"},a))};function ZCe(e){return typeof e=="string"&&String(Number(e))===e?(qi(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var JCe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function g9t(e,n){var r,i,o,a=e.prefixCls,s=e.open,l=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,p=e.keyboard,h=e.classNames,g=e.rootClassName,v=e.rootStyle,y=e.zIndex,_=e.className,S=e.id,b=e.style,E=e.motion,w=e.width,C=e.height,x=e.children,T=e.mask,R=e.maskClosable,O=e.maskMotion,M=e.maskClassName,P=e.maskStyle,k=e.afterOpenChange,$=e.onClose,U=e.onMouseEnter,z=e.onMouseOver,D=e.onMouseLeave,B=e.onClick,Y=e.onKeyDown,q=e.onKeyUp,K=e.styles,H=e.drawerRender,G=m.useRef(),Q=m.useRef(),le=m.useRef();m.useImperativeHandle(n,function(){return G.current});var Z=function(Te){var Oe=Te.keyCode,Ne=Te.shiftKey;switch(Oe){case At.TAB:{if(Oe===At.TAB){if(!Ne&&document.activeElement===le.current){var je;(je=Q.current)===null||je===void 0||je.focus({preventScroll:!0})}else if(Ne&&document.activeElement===Q.current){var ne;(ne=le.current)===null||ne===void 0||ne.focus({preventScroll:!0})}}break}case At.ESC:{$&&p&&(Te.stopPropagation(),$(Te));break}}};m.useEffect(function(){if(s&&f){var Re;(Re=G.current)===null||Re===void 0||Re.focus({preventScroll:!0})}},[s]);var j=m.useState(!1),F=ke(j,2),te=F[0],oe=F[1],de=m.useContext(QCe),pe;typeof u=="boolean"?pe=u?{}:{distance:0}:pe=u||{};var me=(r=(i=(o=pe)===null||o===void 0?void 0:o.distance)!==null&&i!==void 0?i:de==null?void 0:de.pushDistance)!==null&&r!==void 0?r:180,ve=m.useMemo(function(){return{pushDistance:me,push:function(){oe(!0)},pull:function(){oe(!1)}}},[me]);m.useEffect(function(){if(s){var Re;de==null||(Re=de.push)===null||Re===void 0||Re.call(de)}else{var Te;de==null||(Te=de.pull)===null||Te===void 0||Te.call(de)}},[s]),m.useEffect(function(){return function(){var Re;de==null||(Re=de.pull)===null||Re===void 0||Re.call(de)}},[]);var he=T&&m.createElement(Ws,ft({key:"mask"},O,{visible:s}),function(Re,Te){var Oe=Re.className,Ne=Re.style;return m.createElement("div",{className:Ce("".concat(a,"-mask"),Oe,h==null?void 0:h.mask,M),style:ee(ee(ee({},Ne),P),K==null?void 0:K.mask),onClick:R&&s?$:void 0,ref:Te})}),be=typeof E=="function"?E(l):E,we={};if(te&&me)switch(l){case"top":we.transform="translateY(".concat(me,"px)");break;case"bottom":we.transform="translateY(".concat(-me,"px)");break;case"left":we.transform="translateX(".concat(me,"px)");break;default:we.transform="translateX(".concat(-me,"px)");break}l==="left"||l==="right"?we.width=ZCe(w):we.height=ZCe(C);var De={onMouseEnter:U,onMouseOver:z,onMouseLeave:D,onClick:B,onKeyDown:Y,onKeyUp:q},Ae=m.createElement(Ws,ft({key:"panel"},be,{visible:s,forceRender:d,onVisibleChanged:function(Te){k==null||k(Te)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),function(Re,Te){var Oe=Re.className,Ne=Re.style,je=m.createElement(h9t,ft({id:S,containerRef:Te,prefixCls:a,className:Ce(_,h==null?void 0:h.content),style:ee(ee({},b),K==null?void 0:K.content)},Va(e,{aria:!0}),De),x);return m.createElement("div",ft({className:Ce("".concat(a,"-content-wrapper"),h==null?void 0:h.wrapper,Oe),style:ee(ee(ee({},we),Ne),K==null?void 0:K.wrapper)},Va(e,{data:!0})),H?H(je):je)}),Ee=ee({},v);return y&&(Ee.zIndex=y),m.createElement(QCe.Provider,{value:ve},m.createElement("div",{className:Ce(a,"".concat(a,"-").concat(l),g,fe(fe({},"".concat(a,"-open"),s),"".concat(a,"-inline"),c)),style:Ee,tabIndex:-1,ref:G,onKeyDown:Z},he,m.createElement("div",{tabIndex:0,ref:Q,style:JCe,"aria-hidden":"true","data-sentinel":"start"}),Ae,m.createElement("div",{tabIndex:0,ref:le,style:JCe,"aria-hidden":"true","data-sentinel":"end"})))}var m9t=m.forwardRef(g9t),v9t=function(n){var r=n.open,i=r===void 0?!1:r,o=n.prefixCls,a=o===void 0?"rc-drawer":o,s=n.placement,l=s===void 0?"right":s,c=n.autoFocus,u=c===void 0?!0:c,d=n.keyboard,f=d===void 0?!0:d,p=n.width,h=p===void 0?378:p,g=n.mask,v=g===void 0?!0:g,y=n.maskClosable,_=y===void 0?!0:y,S=n.getContainer,b=n.forceRender,E=n.afterOpenChange,w=n.destroyOnClose,C=n.onMouseEnter,x=n.onMouseOver,T=n.onMouseLeave,R=n.onClick,O=n.onKeyDown,M=n.onKeyUp,P=n.panelRef,k=m.useState(!1),$=ke(k,2),U=$[0],z=$[1],D=m.useState(!1),B=ke(D,2),Y=B[0],q=B[1];ti(function(){q(!0)},[]);var K=Y?i:!1,H=m.useRef(),G=m.useRef();ti(function(){K&&(G.current=document.activeElement)},[K]);var Q=function(te){var oe;if(z(te),E==null||E(te),!te&&G.current&&!((oe=H.current)!==null&&oe!==void 0&&oe.contains(G.current))){var de;(de=G.current)===null||de===void 0||de.focus({preventScroll:!0})}},le=m.useMemo(function(){return{panel:P}},[P]);if(!b&&!U&&!K&&w)return null;var Z={onMouseEnter:C,onMouseOver:x,onMouseLeave:T,onClick:R,onKeyDown:O,onKeyUp:M},j=ee(ee({},n),{},{open:K,prefixCls:a,placement:l,autoFocus:u,keyboard:f,width:h,mask:v,maskClosable:_,inline:S===!1,afterOpenChange:Q,ref:H},Z);return m.createElement(Zze.Provider,{value:le},m.createElement(gk,{open:K||b||U,autoDestroy:!1,getContainer:S,autoLock:v&&(K||U)},m.createElement(m9t,j)))};const Jze=e=>{var n,r;const{prefixCls:i,title:o,footer:a,extra:s,loading:l,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:f,children:p,classNames:h,styles:g}=e,{drawer:v}=m.useContext(Cn),y=m.useCallback(w=>m.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${i}-close`},w),[c]),[_,S]=P9e(j8(e),j8(v),{closable:!0,closeIconRender:y}),b=m.useMemo(()=>{var w,C;return!o&&!_?null:m.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(w=v==null?void 0:v.styles)===null||w===void 0?void 0:w.header),u),g==null?void 0:g.header),className:Ce(`${i}-header`,{[`${i}-header-close-only`]:_&&!o&&!s},(C=v==null?void 0:v.classNames)===null||C===void 0?void 0:C.header,h==null?void 0:h.header)},m.createElement("div",{className:`${i}-header-title`},S,o&&m.createElement("div",{className:`${i}-title`},o)),s&&m.createElement("div",{className:`${i}-extra`},s))},[_,S,s,u,i,o]),E=m.useMemo(()=>{var w,C;if(!a)return null;const x=`${i}-footer`;return m.createElement("div",{className:Ce(x,(w=v==null?void 0:v.classNames)===null||w===void 0?void 0:w.footer,h==null?void 0:h.footer),style:Object.assign(Object.assign(Object.assign({},(C=v==null?void 0:v.styles)===null||C===void 0?void 0:C.footer),f),g==null?void 0:g.footer)},a)},[a,f,i]);return m.createElement(m.Fragment,null,b,m.createElement("div",{className:Ce(`${i}-body`,h==null?void 0:h.body,(n=v==null?void 0:v.classNames)===null||n===void 0?void 0:n.body),style:Object.assign(Object.assign(Object.assign({},(r=v==null?void 0:v.styles)===null||r===void 0?void 0:r.body),d),g==null?void 0:g.body)},l?m.createElement(Qy,{active:!0,title:!1,paragraph:{rows:5},className:`${i}-body-skeleton`}):p),E)},y9t=e=>{const n="100%";return{left:`translateX(-${n})`,right:`translateX(${n})`,top:`translateY(-${n})`,bottom:`translateY(${n})`}[e]},eVe=(e,n)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":n}),"&-leave":Object.assign(Object.assign({},n),{"&-active":e})}),tVe=(e,n)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}},eVe({opacity:e},{opacity:1})),_9t=(e,n)=>[tVe(.7,n),eVe({transform:y9t(e)},{transform:"none"})],b9t=e=>{const{componentCls:n,motionDurationSlow:r}=e;return{[n]:{[`${n}-mask-motion`]:tVe(0,r),[`${n}-panel-motion`]:["left","right","top","bottom"].reduce((i,o)=>Object.assign(Object.assign({},i),{[`&-${o}`]:_9t(o,r)}),{})}}},S9t=e=>{const{borderRadiusSM:n,componentCls:r,zIndexPopup:i,colorBgMask:o,colorBgElevated:a,motionDurationSlow:s,motionDurationMid:l,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:p,lineWidth:h,lineType:g,colorSplit:v,marginXS:y,colorIcon:_,colorIconHover:S,colorBgTextHover:b,colorBgTextActive:E,colorText:w,fontWeightStrong:C,footerPaddingBlock:x,footerPaddingInline:T,calc:R}=e,O=`${r}-content-wrapper`;return{[r]:{position:"fixed",inset:0,zIndex:i,pointerEvents:"none",color:w,"&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${r}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${r}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${r}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${r}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${r}-mask`]:{position:"absolute",inset:0,zIndex:i,background:o,pointerEvents:"auto"},[O]:{position:"absolute",zIndex:i,maxWidth:"100vw",transition:`all ${s}`,"&-hidden":{display:"none"}},[`&-left > ${O}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${O}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${O}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${O}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${r}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${r}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Ye(u)} ${Ye(d)}`,fontSize:f,lineHeight:p,borderBottom:`${Ye(h)} ${g} ${v}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${r}-extra`]:{flex:"none"},[`${r}-close`]:Object.assign({display:"inline-flex",width:R(f).add(c).equal(),height:R(f).add(c).equal(),borderRadius:n,justifyContent:"center",alignItems:"center",marginInlineEnd:y,color:_,fontWeight:C,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:S,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:E}},Op(e)),[`${r}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:p},[`${r}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${r}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${r}-footer`]:{flexShrink:0,padding:`${Ye(x)} ${Ye(T)}`,borderTop:`${Ye(h)} ${g} ${v}`},"&-rtl":{direction:"rtl"}}}},E9t=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),nVe=Yr("Drawer",e=>{const n=wr(e,{});return[S9t(n),b9t(n)]},E9t);var rVe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const C9t={distance:180},Dde=e=>{const{rootClassName:n,width:r,height:i,size:o="default",mask:a=!0,push:s=C9t,open:l,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:f,style:p,className:h,visible:g,afterVisibleChange:v,maskStyle:y,drawerStyle:_,contentWrapperStyle:S}=e,b=rVe(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:E,getPrefixCls:w,direction:C,drawer:x}=m.useContext(Cn),T=w("drawer",d),[R,O,M]=nVe(T),P=f===void 0&&E?()=>E(document.body):f,k=Ce({"no-mask":!a,[`${T}-rtl`]:C==="rtl"},n,O,M),$=m.useMemo(()=>r??(o==="large"?736:378),[r,o]),U=m.useMemo(()=>i??(o==="large"?736:378),[i,o]),z={motionName:Kl(T,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},D=le=>({motionName:Kl(T,`panel-motion-${le}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),B=A9e(),[Y,q]=Up("Drawer",b.zIndex),{classNames:K={},styles:H={}}=b,{classNames:G={},styles:Q={}}=x||{};return R(m.createElement(tg,{form:!0,space:!0},m.createElement(uk.Provider,{value:q},m.createElement(v9t,Object.assign({prefixCls:T,onClose:u,maskMotion:z,motion:D},b,{classNames:{mask:Ce(K.mask,G.mask),content:Ce(K.content,G.content),wrapper:Ce(K.wrapper,G.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},H.mask),y),Q.mask),content:Object.assign(Object.assign(Object.assign({},H.content),_),Q.content),wrapper:Object.assign(Object.assign(Object.assign({},H.wrapper),S),Q.wrapper)},open:l??g,mask:a,push:s,width:$,height:U,style:Object.assign(Object.assign({},x==null?void 0:x.style),p),className:Ce(x==null?void 0:x.className,h),rootClassName:k,getContainer:P,afterOpenChange:c??v,panelRef:B,zIndex:Y}),m.createElement(Jze,Object.assign({prefixCls:T},b,{onClose:u}))))))},w9t=e=>{const{prefixCls:n,style:r,className:i,placement:o="right"}=e,a=rVe(e,["prefixCls","style","className","placement"]),{getPrefixCls:s}=m.useContext(Cn),l=s("drawer",n),[c,u,d]=nVe(l),f=Ce(l,`${l}-pure`,`${l}-${o}`,u,d,i);return c(m.createElement("div",{className:f,style:r},m.createElement(Jze,Object.assign({prefixCls:l},a))))};Dde._InternalPanelDoNotUseOrYouWillBeFired=w9t;function ewe(e){return["small","middle","large"].includes(e)}function twe(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const iVe=V.createContext({latestIndex:0}),x9t=iVe.Provider,T9t=e=>{let{className:n,index:r,children:i,split:o,style:a}=e;const{latestIndex:s}=m.useContext(iVe);return i==null?null:m.createElement(m.Fragment,null,m.createElement("div",{className:n,style:a},i),r<s&&o&&m.createElement("span",{className:`${n}-split`},o))};var O9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const R9t=m.forwardRef((e,n)=>{var r,i,o;const{getPrefixCls:a,space:s,direction:l}=m.useContext(Cn),{size:c=(r=s==null?void 0:s.size)!==null&&r!==void 0?r:"small",align:u,className:d,rootClassName:f,children:p,direction:h="horizontal",prefixCls:g,split:v,style:y,wrap:_=!1,classNames:S,styles:b}=e,E=O9t(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,C]=Array.isArray(c)?c:[c,c],x=ewe(C),T=ewe(w),R=twe(C),O=twe(w),M=Tl(p,{keepEmpty:!0}),P=u===void 0&&h==="horizontal"?"center":u,k=a("space",g),[$,U,z]=e9e(k),D=Ce(k,s==null?void 0:s.className,U,`${k}-${h}`,{[`${k}-rtl`]:l==="rtl",[`${k}-align-${P}`]:P,[`${k}-gap-row-${C}`]:x,[`${k}-gap-col-${w}`]:T},d,f,z),B=Ce(`${k}-item`,(i=S==null?void 0:S.item)!==null&&i!==void 0?i:(o=s==null?void 0:s.classNames)===null||o===void 0?void 0:o.item);let Y=0;const q=M.map((G,Q)=>{var le,Z;G!=null&&(Y=Q);const j=(G==null?void 0:G.key)||`${B}-${Q}`;return m.createElement(T9t,{className:B,key:j,index:Q,split:v,style:(le=b==null?void 0:b.item)!==null&&le!==void 0?le:(Z=s==null?void 0:s.styles)===null||Z===void 0?void 0:Z.item},G)}),K=m.useMemo(()=>({latestIndex:Y}),[Y]);if(M.length===0)return null;const H={};return _&&(H.flexWrap="wrap"),!T&&O&&(H.columnGap=w),!x&&R&&(H.rowGap=C),$(m.createElement("div",Object.assign({ref:n,className:D,style:Object.assign(Object.assign(Object.assign({},H),s==null?void 0:s.style),y)},E),m.createElement(x9t,{value:K},q)))}),Ef=R9t;Ef.Compact=RPt;var I9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const oVe=e=>{const{getPopupContainer:n,getPrefixCls:r,direction:i}=m.useContext(Cn),{prefixCls:o,type:a="default",danger:s,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:p,menu:h,arrow:g,autoFocus:v,overlay:y,trigger:_,align:S,open:b,onOpenChange:E,placement:w,getPopupContainer:C,href:x,icon:T=m.createElement(cde,null),title:R,buttonsRender:O=F=>F,mouseEnterDelay:M,mouseLeaveDelay:P,overlayClassName:k,overlayStyle:$,destroyPopupOnHide:U,dropdownRender:z}=e,D=I9t(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"]),B=r("dropdown",o),Y=`${B}-button`,q={menu:h,arrow:g,autoFocus:v,align:S,disabled:l,trigger:l?[]:_,onOpenChange:E,getPopupContainer:C||n,mouseEnterDelay:M,mouseLeaveDelay:P,overlayClassName:k,overlayStyle:$,destroyPopupOnHide:U,dropdownRender:z},{compactSize:K,compactItemClassnames:H}=yg(B,i),G=Ce(Y,H,p);"overlay"in e&&(q.overlay=y),"open"in e&&(q.open=b),"placement"in e?q.placement=w:q.placement=i==="rtl"?"bottomLeft":"bottomRight";const Q=m.createElement(qn,{type:a,danger:s,disabled:l,loading:c,onClick:u,htmlType:d,href:x,title:R},f),le=m.createElement(qn,{type:a,danger:s,icon:T}),[Z,j]=O([Q,le]);return m.createElement(Ef.Compact,Object.assign({className:G,size:K,block:!0},D),Z,m.createElement(cU,Object.assign({},q),j))};oVe.__ANT_BUTTON=!0;const kde=cU;kde.Button=oVe;var N9t={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"},M9t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:N9t}))},P9t=m.forwardRef(M9t);function X8(e){const[n,r]=m.useState(e);return m.useEffect(()=>{const i=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(i)}},[e]),n}const A9t=e=>{const{componentCls:n}=e,r=`${n}-show-help`,i=`${n}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[i]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
||
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
||
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${i}-appear, &${i}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${i}-leave-active`]:{transform:"translateY(-5px)"}}}}},D9t=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ye(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 ${Ye(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),nwe=(e,n)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:n},[`${r}-control-input`]:{minHeight:n}}}},k9t=e=>{const{componentCls:n}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},li(e)),D9t(e)),{[`${n}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},nwe(e,e.controlHeightSM)),"&-large":Object.assign({},nwe(e,e.controlHeightLG))})}},L9t=e=>{const{formItemCls:n,iconCls:r,componentCls:i,rootPrefixCls:o,antCls:a,labelRequiredMarkColor:s,labelColor:l,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:p}=e;return{[n]:Object.assign(Object.assign({},li(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
||
&-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${n}-split`]:{color:e.colorError}},"&-has-error":{[`${n}-split`]:{color:e.colorWarning}},[`${n}-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:u,color:l,fontSize:c,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${n}-required:not(${n}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:s,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${i}-hide-required-mark &`]:{display:"none"}},[`${n}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${i}-hide-required-mark &`]:{display:"none"}},[`${n}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:f},[`&${n}-no-colon::after`]:{content:'"\\a0"'}}},[`${n}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[n]:{"&-additional":{display:"flex",flexDirection:"column"},"&-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 ${n}-explain`]:{height:"auto",opacity:1},[`${n}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Mue,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},rwe=(e,n)=>{const{formItemCls:r}=e;return{[`${n}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}}}}},$9t=e=>{const{componentCls:n,formItemCls:r,inlineItemMarginBottom:i}=e;return{[`${n}-inline`]:{display:"flex",flexWrap:"wrap",[r]:{flex:"none",marginInlineEnd:e.margin,marginBottom:i,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,
|
||
> ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${n}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},Ih=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),aVe=e=>{const{componentCls:n,formItemCls:r,rootPrefixCls:i}=e;return{[`${r} ${r}-label`]:Ih(e),[`${n}:not(${n}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${i}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},F9t=e=>{const{componentCls:n,formItemCls:r,antCls:i}=e;return{[`${n}-vertical`]:{[`${r}:not(${r}-horizontal)`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label,
|
||
${i}-col-24${r}-label,
|
||
${i}-col-xl-24${r}-label`]:Ih(e)}},[`@media (max-width: ${Ye(e.screenXSMax)})`]:[aVe(e),{[n]:{[`${r}:not(${r}-horizontal)`]:{[`${i}-col-xs-24${r}-label`]:Ih(e)}}}],[`@media (max-width: ${Ye(e.screenSMMax)})`]:{[n]:{[`${r}:not(${r}-horizontal)`]:{[`${i}-col-sm-24${r}-label`]:Ih(e)}}},[`@media (max-width: ${Ye(e.screenMDMax)})`]:{[n]:{[`${r}:not(${r}-horizontal)`]:{[`${i}-col-md-24${r}-label`]:Ih(e)}}},[`@media (max-width: ${Ye(e.screenLGMax)})`]:{[n]:{[`${r}:not(${r}-horizontal)`]:{[`${i}-col-lg-24${r}-label`]:Ih(e)}}}}},B9t=e=>{const{formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"}},[`${n}-vertical ${n}-label,
|
||
${r}-col-24${n}-label,
|
||
${r}-col-xl-24${n}-label`]:Ih(e),[`@media (max-width: ${Ye(e.screenXSMax)})`]:[aVe(e),{[n]:{[`${r}-col-xs-24${n}-label`]:Ih(e)}}],[`@media (max-width: ${Ye(e.screenSMMax)})`]:{[n]:{[`${r}-col-sm-24${n}-label`]:Ih(e)}},[`@media (max-width: ${Ye(e.screenMDMax)})`]:{[n]:{[`${r}-col-md-24${n}-label`]:Ih(e)}},[`@media (max-width: ${Ye(e.screenLGMax)})`]:{[n]:{[`${r}-col-lg-24${n}-label`]:Ih(e)}}}},j9t=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}),sVe=(e,n)=>wr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n}),Lde=Yr("Form",(e,n)=>{let{rootPrefixCls:r}=n;const i=sVe(e,r);return[k9t(i),L9t(i),A9t(i),rwe(i,i.componentCls),rwe(i,i.formItemCls),$9t(i),F9t(i),B9t(i),pk(i),Mue]},j9t,{order:-1e3}),iwe=[];function yq(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${n}-${i}`,error:e,errorStatus:r}}const lVe=e=>{let{help:n,helpStatus:r,errors:i=iwe,warnings:o=iwe,className:a,fieldId:s,onVisibleChanged:l}=e;const{prefixCls:c}=m.useContext(jue),u=`${c}-item-explain`,d=po(c),[f,p,h]=Lde(c,d),g=m.useMemo(()=>gA(c),[c]),v=X8(i),y=X8(o),_=m.useMemo(()=>n!=null?[yq(n,"help",r)]:[].concat(Tt(v.map((E,w)=>yq(E,"error","error",w))),Tt(y.map((E,w)=>yq(E,"warning","warning",w)))),[n,r,v,y]),S=m.useMemo(()=>{const E={};return _.forEach(w=>{let{key:C}=w;E[C]=(E[C]||0)+1}),_.map((w,C)=>Object.assign(Object.assign({},w),{key:E[w.key]>1?`${w.key}-fallback-${C}`:w.key}))},[_]),b={};return s&&(b.id=`${s}_help`),f(m.createElement(Ws,{motionDeadline:g.motionDeadline,motionName:`${c}-show-help`,visible:!!S.length,onVisibleChanged:l},E=>{const{className:w,style:C}=E;return m.createElement("div",Object.assign({},b,{className:Ce(u,w,h,d,a,p),style:C,role:"alert"}),m.createElement(D9,Object.assign({keys:S},gA(c),{motionName:`${c}-show-help-item`,component:!1}),x=>{const{key:T,error:R,errorStatus:O,className:M,style:P}=x;return m.createElement("div",{key:T,className:Ce(M,{[`${u}-${O}`]:O}),style:P},R)}))}))},U9t=["parentNode"],H9t="form_item";function nP(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function cVe(e,n){if(!e.length)return;const r=e.join("_");return n?`${n}_${r}`:U9t.includes(r)?`${H9t}_${r}`:r}function uVe(e,n,r,i,o,a){let s=i;return a!==void 0?s=a:r.validating?s="validating":e.length?s="error":n.length?s="warning":(r.touched||o&&r.validated)&&(s="success"),s}function owe(e){return nP(e).join("_")}function awe(e,n){const r=n.getFieldInstance(e),i=uje(r);if(i)return i;const o=cVe(nP(e),n.__INTERNAL__.name);if(o)return document.getElementById(o)}function dVe(e){const[n]=Bue(),r=m.useRef({}),i=m.useMemo(()=>e??Object.assign(Object.assign({},n),{__INTERNAL__:{itemRef:o=>a=>{const s=owe(o);a?r.current[s]=a:delete r.current[s]}},scrollToField:function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=awe(o,i);s&&A2t(s,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},focusField:o=>{var a;const s=awe(o,i);s&&((a=s.focus)===null||a===void 0||a.call(s))},getFieldInstance:o=>{const a=owe(o);return r.current[a]}}),[e,n]);return[i]}var z9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const V9t=(e,n)=>{const r=m.useContext(xs),{getPrefixCls:i,direction:o,form:a}=m.useContext(Cn),{prefixCls:s,className:l,rootClassName:c,size:u,disabled:d=r,form:f,colon:p,labelAlign:h,labelWrap:g,labelCol:v,wrapperCol:y,hideRequiredMark:_,layout:S="horizontal",scrollToFirstError:b,requiredMark:E,onFinishFailed:w,name:C,style:x,feedbackIcons:T,variant:R}=e,O=z9t(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=Xs(u),P=m.useContext(Zje),k=m.useMemo(()=>E!==void 0?E:_?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[_,E,a]),$=p??(a==null?void 0:a.colon),U=i("form",s),z=po(U),[D,B,Y]=Lde(U,z),q=Ce(U,`${U}-${S}`,{[`${U}-hide-required-mark`]:k===!1,[`${U}-rtl`]:o==="rtl",[`${U}-${M}`]:M},Y,z,B,a==null?void 0:a.className,l,c),[K]=dVe(f),{__INTERNAL__:H}=K;H.name=C;const G=m.useMemo(()=>({name:C,labelAlign:h,labelCol:v,labelWrap:g,wrapperCol:y,vertical:S==="vertical",colon:$,requiredMark:k,itemRef:H.itemRef,form:K,feedbackIcons:T}),[C,h,v,y,S,$,k,K,T]),Q=m.useRef(null);m.useImperativeHandle(n,()=>{var j;return Object.assign(Object.assign({},K),{nativeElement:(j=Q.current)===null||j===void 0?void 0:j.nativeElement})});const le=(j,F)=>{if(j){let te={block:"nearest"};typeof j=="object"&&(te=Object.assign(Object.assign({},te),j)),K.scrollToField(F,te),te.focus&&K.focusField(F)}},Z=j=>{if(w==null||w(j),j.errorFields.length){const F=j.errorFields[0].name;if(b!==void 0){le(b,F);return}a&&a.scrollToFirstError!==void 0&&le(a.scrollToFirstError,F)}};return D(m.createElement(M9e.Provider,{value:R},m.createElement(_ue,{disabled:d},m.createElement(nC.Provider,{value:M},m.createElement(N9e,{validateMessages:P},m.createElement(Ny.Provider,{value:G},m.createElement(sI,Object.assign({id:C},O,{name:C,onFinishFailed:Z,form:K,ref:Q,style:Object.assign(Object.assign({},a==null?void 0:a.style),x),className:q}))))))))},G9t=m.forwardRef(V9t);function W9t(e){if(typeof e=="function")return e;const n=Tl(e);return n.length<=1?n[0]:n}const fVe=()=>{const{status:e,errors:n=[],warnings:r=[]}=m.useContext(qs);return{status:e,errors:n,warnings:r}};fVe.Context=qs;function Y9t(e){const[n,r]=m.useState(e),i=m.useRef(null),o=m.useRef([]),a=m.useRef(!1);m.useEffect(()=>(a.current=!1,()=>{a.current=!0,Dr.cancel(i.current),i.current=null}),[]);function s(l){a.current||(i.current===null&&(o.current=[],i.current=Dr(()=>{i.current=null,r(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[n,s]}function q9t(){const{itemRef:e}=m.useContext(Ny),n=m.useRef({});function r(i,o){const a=o&&typeof o=="object"&&J0(o),s=i.join("_");return(n.current.name!==s||n.current.originRef!==a)&&(n.current.name=s,n.current.originRef=a,n.current.ref=Il(e(i),a)),n.current.ref}return r}const K9t=e=>{const{formItemCls:n}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${n}-control`]:{display:"flex"}}}},X9t=Sue(["Form","item-item"],(e,n)=>{let{rootPrefixCls:r}=n;const i=sVe(e,r);return[K9t(i)]});var Q9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Z9t=24,J9t=e=>{const{prefixCls:n,status:r,labelCol:i,wrapperCol:o,children:a,errors:s,warnings:l,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:p,onErrorVisibleChanged:h,label:g}=e,v=`${n}-item`,y=m.useContext(Ny),_=m.useMemo(()=>{let $=Object.assign({},o||y.wrapperCol||{});return g===null&&!i&&!o&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(z=>{const D=z?[z]:[],B=al(y.labelCol,D),Y=typeof B=="object"?B:{},q=al($,D),K=typeof q=="object"?q:{};"span"in Y&&!("offset"in K)&&Y.span<Z9t&&($=Fs($,[].concat(D,["offset"]),Y.span))}),$},[o,y]),S=Ce(`${v}-control`,_.className),b=m.useMemo(()=>Q9t(y,["labelCol","wrapperCol"]),[y]),E=m.useRef(null),[w,C]=m.useState(0);ti(()=>{u&&E.current?C(E.current.clientHeight):C(0)},[u]);const x=m.createElement("div",{className:`${v}-control-input`},m.createElement("div",{className:`${v}-control-input-content`},a)),T=m.useMemo(()=>({prefixCls:n,status:r}),[n,r]),R=p!==null||s.length||l.length?m.createElement(jue.Provider,{value:T},m.createElement(lVe,{fieldId:f,errors:s,warnings:l,help:d,helpStatus:r,className:`${v}-explain-connected`,onVisibleChanged:h})):null,O={};f&&(O.id=`${f}_extra`);const M=u?m.createElement("div",Object.assign({},O,{className:`${v}-extra`,ref:E}),u):null,P=R||M?m.createElement("div",{className:`${v}-additional`,style:p?{minHeight:p+w}:{}},R,M):null,k=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:x,errorList:R,extra:M}):m.createElement(m.Fragment,null,x,P);return m.createElement(Ny.Provider,{value:b},m.createElement(SA,Object.assign({},_,{className:S}),k),m.createElement(X9t,{prefixCls:n}))};var eUt={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"},tUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:eUt}))},nUt=m.forwardRef(tUt),rUt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function iUt(e){return e?typeof e=="object"&&!m.isValidElement(e)?e:{title:e}:null}const oUt=e=>{let{prefixCls:n,label:r,htmlFor:i,labelCol:o,labelAlign:a,colon:s,required:l,requiredMark:c,tooltip:u,vertical:d}=e;var f;const[p]=Nu("Form"),{labelAlign:h,labelCol:g,labelWrap:v,colon:y}=m.useContext(Ny);if(!r)return null;const _=o||g||{},S=a||h,b=`${n}-item-label`,E=Ce(b,S==="left"&&`${b}-left`,_.className,{[`${b}-wrap`]:!!v});let w=r;const C=s===!0||y!==!1&&s!==!1;C&&!d&&typeof r=="string"&&r.trim()&&(w=r.replace(/[:|:]\s*$/,""));const T=iUt(u);if(T){const{icon:P=m.createElement(nUt,null)}=T,k=rUt(T,["icon"]),$=m.createElement(Sf,Object.assign({},k),m.cloneElement(P,{className:`${n}-item-tooltip`,title:"",onClick:U=>{U.preventDefault()},tabIndex:null}));w=m.createElement(m.Fragment,null,w,$)}const R=c==="optional",O=typeof c=="function";O?w=c(w,{required:!!l}):R&&!l&&(w=m.createElement(m.Fragment,null,w,m.createElement("span",{className:`${n}-item-optional`,title:""},(p==null?void 0:p.optional)||((f=Tp.Form)===null||f===void 0?void 0:f.optional))));const M=Ce({[`${n}-item-required`]:l,[`${n}-item-required-mark-optional`]:R||O,[`${n}-item-no-colon`]:!C});return m.createElement(SA,Object.assign({},_,{className:E}),m.createElement("label",{htmlFor:i,className:M,title:typeof r=="string"?r:""},w))},aUt={success:tw,warning:eS,error:ev,validating:Nm};function pVe(e){let{children:n,errors:r,warnings:i,hasFeedback:o,validateStatus:a,prefixCls:s,meta:l,noStyle:c}=e;const u=`${s}-item`,{feedbackIcons:d}=m.useContext(Ny),f=uVe(r,i,l,null,!!o,a),{isFormItemInput:p,status:h,hasFeedback:g,feedbackIcon:v}=m.useContext(qs),y=m.useMemo(()=>{var _;let S;if(o){const E=o!==!0&&o.icons||d,w=f&&((_=E==null?void 0:E({status:f,errors:r,warnings:i}))===null||_===void 0?void 0:_[f]),C=f&&aUt[f];S=w!==!1&&C?m.createElement("span",{className:Ce(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},w||m.createElement(C,null)):null}const b={status:f||"",errors:r,warnings:i,hasFeedback:!!o,feedbackIcon:S,isFormItemInput:!0};return c&&(b.status=(f??h)||"",b.isFormItemInput=p,b.hasFeedback=!!(o??g),b.feedbackIcon=o!==void 0?b.feedbackIcon:v),b},[f,o,c,p,h]);return m.createElement(qs.Provider,{value:y},n)}var sUt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function lUt(e){const{prefixCls:n,className:r,rootClassName:i,style:o,help:a,errors:s,warnings:l,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:p,fieldId:h,required:g,isRequired:v,onSubItemMetaChange:y,layout:_}=e,S=sUt(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),b=`${n}-item`,{requiredMark:E,vertical:w}=m.useContext(Ny),C=w||_==="vertical",x=m.useRef(null),T=X8(s),R=X8(l),O=a!=null,M=!!(O||s.length||l.length),P=!!x.current&&fk(x.current),[k,$]=m.useState(null);ti(()=>{if(M&&x.current){const Y=getComputedStyle(x.current);$(parseInt(Y.marginBottom,10))}},[M,P]);const U=Y=>{Y||$(null)},D=function(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const q=Y?T:u.errors,K=Y?R:u.warnings;return uVe(q,K,u,"",!!d,c)}(),B=Ce(b,r,i,{[`${b}-with-help`]:O||T.length||R.length,[`${b}-has-feedback`]:D&&d,[`${b}-has-success`]:D==="success",[`${b}-has-warning`]:D==="warning",[`${b}-has-error`]:D==="error",[`${b}-is-validating`]:D==="validating",[`${b}-hidden`]:f,[`${b}-${_}`]:_});return m.createElement("div",{className:B,style:o,ref:x},m.createElement(Tde,Object.assign({className:`${b}-row`},Wr(S,["_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"])),m.createElement(oUt,Object.assign({htmlFor:h},e,{requiredMark:E,required:g??v,prefixCls:n,vertical:C})),m.createElement(J9t,Object.assign({},e,u,{errors:T,warnings:R,prefixCls:n,status:D,help:a,marginBottom:k,onErrorVisibleChanged:U}),m.createElement(I9e.Provider,{value:y},m.createElement(pVe,{prefixCls:n,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:D},p)))),!!k&&m.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-k}}))}const cUt="__SPLIT__";function uUt(e,n){const r=Object.keys(e),i=Object.keys(n);return r.length===i.length&&r.every(o=>{const a=e[o],s=n[o];return a===s||typeof a=="function"||typeof s=="function"})}const dUt=m.memo(e=>{let{children:n}=e;return n},(e,n)=>uUt(e.control,n.control)&&e.update===n.update&&e.childProps.length===n.childProps.length&&e.childProps.every((r,i)=>r===n.childProps[i]));function swe(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function fUt(e){const{name:n,noStyle:r,className:i,dependencies:o,prefixCls:a,shouldUpdate:s,rules:l,children:c,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:h,hidden:g,help:v,layout:y}=e,{getPrefixCls:_}=m.useContext(Cn),{name:S}=m.useContext(Ny),b=W9t(c),E=typeof b=="function",w=m.useContext(I9e),{validateTrigger:C}=m.useContext(T0),x=h!==void 0?h:C,T=n!=null,R=_("form",a),O=po(R),[M,P,k]=Lde(R,O);JC();const $=m.useContext(mA),U=m.useRef(null),[z,D]=Y9t({}),[B,Y]=iC(()=>swe()),q=j=>{const F=$==null?void 0:$.getKey(j.name);if(Y(j.destroy?swe():j,!0),r&&v!==!1&&w){let te=j.name;if(j.destroy)te=U.current||te;else if(F!==void 0){const[oe,de]=F;te=[oe].concat(Tt(de)),U.current=te}w(j,te)}},K=(j,F)=>{D(te=>{const oe=Object.assign({},te),pe=[].concat(Tt(j.name.slice(0,-1)),Tt(F)).join(cUt);return j.destroy?delete oe[pe]:oe[pe]=j,oe})},[H,G]=m.useMemo(()=>{const j=Tt(B.errors),F=Tt(B.warnings);return Object.values(z).forEach(te=>{j.push.apply(j,Tt(te.errors||[])),F.push.apply(F,Tt(te.warnings||[]))}),[j,F]},[z,B.errors,B.warnings]),Q=q9t();function le(j,F,te){return r&&!g?m.createElement(pVe,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:B,errors:H,warnings:G,noStyle:!0},j):m.createElement(lUt,Object.assign({key:"row"},e,{className:Ce(i,k,O,P),prefixCls:R,fieldId:F,isRequired:te,errors:H,warnings:G,meta:B,onSubItemMetaChange:K,layout:y}),j)}if(!T&&!E&&!o)return M(le(b));let Z={};return typeof d=="string"?Z.label=d:n&&(Z.label=String(n)),f&&(Z=Object.assign(Object.assign({},Z),f)),M(m.createElement(Fue,Object.assign({},e,{messageVariables:Z,trigger:p,validateTrigger:x,onMetaChange:q}),(j,F,te)=>{const oe=nP(n).length&&F?F.name:[],de=cVe(oe,S),pe=u!==void 0?u:!!(l!=null&&l.some(he=>{if(he&&typeof he=="object"&&he.required&&!he.warningOnly)return!0;if(typeof he=="function"){const be=he(te);return(be==null?void 0:be.required)&&!(be!=null&&be.warningOnly)}return!1})),me=Object.assign({},j);let ve=null;if(Array.isArray(b)&&T)ve=b;else if(!(E&&(!(s||o)||T))){if(!(o&&!E&&!T))if(m.isValidElement(b)){const he=Object.assign(Object.assign({},b.props),me);if(he.id||(he.id=de),v||H.length>0||G.length>0||e.extra){const De=[];(v||H.length>0)&&De.push(`${de}_help`),e.extra&&De.push(`${de}_extra`),he["aria-describedby"]=De.join(" ")}H.length>0&&(he["aria-invalid"]="true"),pe&&(he["aria-required"]="true"),Ky(b)&&(he.ref=Q(oe,b)),new Set([].concat(Tt(nP(p)),Tt(nP(x)))).forEach(De=>{he[De]=function(){for(var Ae,Ee,Re,Te,Oe,Ne=arguments.length,je=new Array(Ne),ne=0;ne<Ne;ne++)je[ne]=arguments[ne];(Re=me[De])===null||Re===void 0||(Ae=Re).call.apply(Ae,[me].concat(je)),(Oe=(Te=b.props)[De])===null||Oe===void 0||(Ee=Oe).call.apply(Ee,[Te].concat(je))}});const we=[he["aria-required"],he["aria-invalid"],he["aria-describedby"]];ve=m.createElement(dUt,{control:me,update:b,childProps:we},Ys(b,he))}else E&&(s||o)&&!T?ve=b(te):ve=b}return le(ve,de,pe)}))}const hVe=fUt;hVe.useStatus=fVe;var pUt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const hUt=e=>{var{prefixCls:n,children:r}=e,i=pUt(e,["prefixCls","children"]);const{getPrefixCls:o}=m.useContext(Cn),a=o("form",n),s=m.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return m.createElement(x9e,Object.assign({},i),(l,c,u)=>m.createElement(jue.Provider,{value:s},r(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function gUt(){const{form:e}=m.useContext(Ny);return e}const Hr=G9t;Hr.Item=hVe;Hr.List=hUt;Hr.ErrorList=lVe;Hr.useForm=dVe;Hr.useFormInstance=gUt;Hr.useWatch=R9e;Hr.Provider=N9e;Hr.create=()=>{};function gVe(){var e=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:n}}function mUt(e){var n=e.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}function _T(e,n,r,i){var o=Gl.unstable_batchedUpdates?function(s){Gl.unstable_batchedUpdates(r,s)}:r;return e!=null&&e.addEventListener&&e.addEventListener(n,o,i),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(n,o,i)}}}var Tk=m.createContext(null),vUt=function(n){var r=n.visible,i=n.maskTransitionName,o=n.getContainer,a=n.prefixCls,s=n.rootClassName,l=n.icons,c=n.countRender,u=n.showSwitch,d=n.showProgress,f=n.current,p=n.transform,h=n.count,g=n.scale,v=n.minScale,y=n.maxScale,_=n.closeIcon,S=n.onActive,b=n.onClose,E=n.onZoomIn,w=n.onZoomOut,C=n.onRotateRight,x=n.onRotateLeft,T=n.onFlipX,R=n.onFlipY,O=n.onReset,M=n.toolbarRender,P=n.zIndex,k=n.image,$=m.useContext(Tk),U=l.rotateLeft,z=l.rotateRight,D=l.zoomIn,B=l.zoomOut,Y=l.close,q=l.left,K=l.right,H=l.flipX,G=l.flipY,Q="".concat(a,"-operations-operation");m.useEffect(function(){var be=function(De){De.keyCode===At.ESC&&b()};return r&&window.addEventListener("keydown",be),function(){window.removeEventListener("keydown",be)}},[r]);var le=function(we,De){we.preventDefault(),we.stopPropagation(),S(De)},Z=m.useCallback(function(be){var we=be.type,De=be.disabled,Ae=be.onClick,Ee=be.icon;return m.createElement("div",{key:we,className:Ce(Q,"".concat(a,"-operations-operation-").concat(we),fe({},"".concat(a,"-operations-operation-disabled"),!!De)),onClick:Ae},Ee)},[Q,a]),j=u?Z({icon:q,onClick:function(we){return le(we,-1)},type:"prev",disabled:f===0}):void 0,F=u?Z({icon:K,onClick:function(we){return le(we,1)},type:"next",disabled:f===h-1}):void 0,te=Z({icon:G,onClick:R,type:"flipY"}),oe=Z({icon:H,onClick:T,type:"flipX"}),de=Z({icon:U,onClick:x,type:"rotateLeft"}),pe=Z({icon:z,onClick:C,type:"rotateRight"}),me=Z({icon:B,onClick:w,type:"zoomOut",disabled:g<=v}),ve=Z({icon:D,onClick:E,type:"zoomIn",disabled:g===y}),he=m.createElement("div",{className:"".concat(a,"-operations")},te,oe,de,pe,me,ve);return m.createElement(Ws,{visible:r,motionName:i},function(be){var we=be.className,De=be.style;return m.createElement(gk,{open:!0,getContainer:o??document.body},m.createElement("div",{className:Ce("".concat(a,"-operations-wrapper"),we,s),style:ee(ee({},De),{},{zIndex:P})},_===null?null:m.createElement("button",{className:"".concat(a,"-close"),onClick:b},_||Y),u&&m.createElement(m.Fragment,null,m.createElement("div",{className:Ce("".concat(a,"-switch-left"),fe({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:function(Ee){return le(Ee,-1)}},q),m.createElement("div",{className:Ce("".concat(a,"-switch-right"),fe({},"".concat(a,"-switch-right-disabled"),f===h-1)),onClick:function(Ee){return le(Ee,1)}},K)),m.createElement("div",{className:"".concat(a,"-footer")},d&&m.createElement("div",{className:"".concat(a,"-progress")},c?c(f+1,h):"".concat(f+1," / ").concat(h)),M?M(he,ee(ee({icons:{prevIcon:j,nextIcon:F,flipYIcon:te,flipXIcon:oe,rotateLeftIcon:de,rotateRightIcon:pe,zoomOutIcon:me,zoomInIcon:ve},actions:{onActive:S,onFlipY:R,onFlipX:T,onRotateLeft:x,onRotateRight:C,onZoomOut:w,onZoomIn:E,onReset:O,onClose:b},transform:p},$?{current:f,total:h}:{}),{},{image:k})):he)))})},n4={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function yUt(e,n,r,i){var o=m.useRef(null),a=m.useRef([]),s=m.useState(n4),l=ke(s,2),c=l[0],u=l[1],d=function(g){u(n4),rC(n4,c)||i==null||i({transform:n4,action:g})},f=function(g,v){o.current===null&&(a.current=[],o.current=Dr(function(){u(function(y){var _=y;return a.current.forEach(function(S){_=ee(ee({},_),S)}),o.current=null,i==null||i({transform:_,action:v}),_})})),a.current.push(ee(ee({},c),g))},p=function(g,v,y,_,S){var b=e.current,E=b.width,w=b.height,C=b.offsetWidth,x=b.offsetHeight,T=b.offsetLeft,R=b.offsetTop,O=g,M=c.scale*g;M>r?(M=r,O=r/c.scale):M<n&&(M=S?M:n,O=M/c.scale);var P=y??innerWidth/2,k=_??innerHeight/2,$=O-1,U=$*E*.5,z=$*w*.5,D=$*(P-c.x-T),B=$*(k-c.y-R),Y=c.x-(D-U),q=c.y-(B-z);if(g<1&&M===1){var K=C*M,H=x*M,G=gVe(),Q=G.width,le=G.height;K<=Q&&H<=le&&(Y=0,q=0)}f({x:Y,y:q,scale:M},v)};return{transform:c,resetTransform:d,updateTransform:f,dispatchZoomChange:p}}function lwe(e,n,r,i){var o=n+r,a=(r-i)/2;if(r>i){if(n>0)return fe({},e,a);if(n<0&&o<i)return fe({},e,-a)}else if(n<0||o>i)return fe({},e,n<0?a:-a);return{}}function mVe(e,n,r,i){var o=gVe(),a=o.width,s=o.height,l=null;return e<=a&&n<=s?l={x:0,y:0}:(e>a||n>s)&&(l=ee(ee({},lwe("x",r,e,a)),lwe("y",i,n,s))),l}var bT=1,_Ut=1;function bUt(e,n,r,i,o,a,s){var l=o.rotate,c=o.scale,u=o.x,d=o.y,f=m.useState(!1),p=ke(f,2),h=p[0],g=p[1],v=m.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),y=function(w){!n||w.button!==0||(w.preventDefault(),w.stopPropagation(),v.current={diffX:w.pageX-u,diffY:w.pageY-d,transformX:u,transformY:d},g(!0))},_=function(w){r&&h&&a({x:w.pageX-v.current.diffX,y:w.pageY-v.current.diffY},"move")},S=function(){if(r&&h){g(!1);var w=v.current,C=w.transformX,x=w.transformY,T=u!==C&&d!==x;if(!T)return;var R=e.current.offsetWidth*c,O=e.current.offsetHeight*c,M=e.current.getBoundingClientRect(),P=M.left,k=M.top,$=l%180!==0,U=mVe($?O:R,$?R:O,P,k);U&&a(ee({},U),"dragRebound")}},b=function(w){if(!(!r||w.deltaY==0)){var C=Math.abs(w.deltaY/100),x=Math.min(C,_Ut),T=bT+x*i;w.deltaY>0&&(T=bT/T),s(T,"wheel",w.clientX,w.clientY)}};return m.useEffect(function(){var E,w,C,x;if(n){C=_T(window,"mouseup",S,!1),x=_T(window,"mousemove",_,!1);try{window.top!==window.self&&(E=_T(window.top,"mouseup",S,!1),w=_T(window.top,"mousemove",_,!1))}catch{}}return function(){var T,R,O,M;(T=C)===null||T===void 0||T.remove(),(R=x)===null||R===void 0||R.remove(),(O=E)===null||O===void 0||O.remove(),(M=w)===null||M===void 0||M.remove()}},[r,h,u,d,l,n]),{isMoving:h,onMouseDown:y,onMouseMove:_,onMouseUp:S,onWheel:b}}function SUt(e){return new Promise(function(n){var r=document.createElement("img");r.onerror=function(){return n(!1)},r.onload=function(){return n(!0)},r.src=e})}function vVe(e){var n=e.src,r=e.isCustomPlaceholder,i=e.fallback,o=m.useState(r?"loading":"normal"),a=ke(o,2),s=a[0],l=a[1],c=m.useRef(!1),u=s==="error";m.useEffect(function(){var h=!0;return SUt(n).then(function(g){!g&&h&&l("error")}),function(){h=!1}},[n]),m.useEffect(function(){r&&!c.current?l("loading"):u&&l("normal")},[n]);var d=function(){l("normal")},f=function(g){c.current=!1,s==="loading"&&g!==null&&g!==void 0&&g.complete&&(g.naturalWidth||g.naturalHeight)&&(c.current=!0,d())},p=u&&i?{src:i}:{onLoad:d,src:n};return[f,p,s]}function Q8(e,n){var r=e.x-n.x,i=e.y-n.y;return Math.hypot(r,i)}function EUt(e,n,r,i){var o=Q8(e,r),a=Q8(n,i);if(o===0&&a===0)return[e.x,e.y];var s=o/(o+a),l=e.x+s*(n.x-e.x),c=e.y+s*(n.y-e.y);return[l,c]}function CUt(e,n,r,i,o,a,s){var l=o.rotate,c=o.scale,u=o.x,d=o.y,f=m.useState(!1),p=ke(f,2),h=p[0],g=p[1],v=m.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(w){v.current=ee(ee({},v.current),w)},_=function(w){if(n){w.stopPropagation(),g(!0);var C=w.touches,x=C===void 0?[]:C;x.length>1?y({point1:{x:x[0].clientX,y:x[0].clientY},point2:{x:x[1].clientX,y:x[1].clientY},eventType:"touchZoom"}):y({point1:{x:x[0].clientX-u,y:x[0].clientY-d},eventType:"move"})}},S=function(w){var C=w.touches,x=C===void 0?[]:C,T=v.current,R=T.point1,O=T.point2,M=T.eventType;if(x.length>1&&M==="touchZoom"){var P={x:x[0].clientX,y:x[0].clientY},k={x:x[1].clientX,y:x[1].clientY},$=EUt(R,O,P,k),U=ke($,2),z=U[0],D=U[1],B=Q8(P,k)/Q8(R,O);s(B,"touchZoom",z,D,!0),y({point1:P,point2:k,eventType:"touchZoom"})}else M==="move"&&(a({x:x[0].clientX-R.x,y:x[0].clientY-R.y},"move"),y({eventType:"move"}))},b=function(){if(r){if(h&&g(!1),y({eventType:"none"}),i>c)return a({x:0,y:0,scale:i},"touchZoom");var w=e.current.offsetWidth*c,C=e.current.offsetHeight*c,x=e.current.getBoundingClientRect(),T=x.left,R=x.top,O=l%180!==0,M=mVe(O?C:w,O?w:C,T,R);M&&a(ee({},M),"dragRebound")}};return m.useEffect(function(){var E;return r&&n&&(E=_T(window,"touchmove",function(w){return w.preventDefault()},{passive:!1})),function(){var w;(w=E)===null||w===void 0||w.remove()}},[r,n]),{isTouching:h,onTouchStart:_,onTouchMove:S,onTouchEnd:b}}var wUt=["fallback","src","imgRef"],xUt=["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"],TUt=function(n){var r=n.fallback,i=n.src,o=n.imgRef,a=Xt(n,wUt),s=vVe({src:i,fallback:r}),l=ke(s,2),c=l[0],u=l[1];return V.createElement("img",ft({ref:function(f){o.current=f,c(f)}},a,u))},yVe=function(n){var r=n.prefixCls,i=n.src,o=n.alt,a=n.imageInfo,s=n.fallback,l=n.movable,c=l===void 0?!0:l,u=n.onClose,d=n.visible,f=n.icons,p=f===void 0?{}:f,h=n.rootClassName,g=n.closeIcon,v=n.getContainer,y=n.current,_=y===void 0?0:y,S=n.count,b=S===void 0?1:S,E=n.countRender,w=n.scaleStep,C=w===void 0?.5:w,x=n.minScale,T=x===void 0?1:x,R=n.maxScale,O=R===void 0?50:R,M=n.transitionName,P=M===void 0?"zoom":M,k=n.maskTransitionName,$=k===void 0?"fade":k,U=n.imageRender,z=n.imgCommonProps,D=n.toolbarRender,B=n.onTransform,Y=n.onChange,q=Xt(n,xUt),K=m.useRef(),H=m.useContext(Tk),G=H&&b>1,Q=H&&b>=1,le=m.useState(!0),Z=ke(le,2),j=Z[0],F=Z[1],te=yUt(K,T,O,B),oe=te.transform,de=te.resetTransform,pe=te.updateTransform,me=te.dispatchZoomChange,ve=bUt(K,c,d,C,oe,pe,me),he=ve.isMoving,be=ve.onMouseDown,we=ve.onWheel,De=CUt(K,c,d,T,oe,pe,me),Ae=De.isTouching,Ee=De.onTouchStart,Re=De.onTouchMove,Te=De.onTouchEnd,Oe=oe.rotate,Ne=oe.scale,je=Ce(fe({},"".concat(r,"-moving"),he));m.useEffect(function(){j||F(!0)},[j]);var ne=function(){de("close")},J=function(){me(bT+C,"zoomIn")},ae=function(){me(bT/(bT+C),"zoomOut")},Se=function(){pe({rotate:Oe+90},"rotateRight")},xe=function(){pe({rotate:Oe-90},"rotateLeft")},ue=function(){pe({flipX:!oe.flipX},"flipX")},Me=function(){pe({flipY:!oe.flipY},"flipY")},$e=function(){de("reset")},ge=function(Ze){var bt=_+Ze;!Number.isInteger(bt)||bt<0||bt>b-1||(F(!1),de(Ze<0?"prev":"next"),Y==null||Y(bt,_))},Ve=function(Ze){!d||!G||(Ze.keyCode===At.LEFT?ge(-1):Ze.keyCode===At.RIGHT&&ge(1))},st=function(Ze){d&&(Ne!==1?pe({x:0,y:0,scale:1},"doubleClick"):me(bT+C,"doubleClick",Ze.clientX,Ze.clientY))};m.useEffect(function(){var Xe=_T(window,"keydown",Ve,!1);return function(){Xe.remove()}},[d,G,_]);var Je=V.createElement(TUt,ft({},z,{width:n.width,height:n.height,imgRef:K,className:"".concat(r,"-img"),alt:o,style:{transform:"translate3d(".concat(oe.x,"px, ").concat(oe.y,"px, 0) scale3d(").concat(oe.flipX?"-":"").concat(Ne,", ").concat(oe.flipY?"-":"").concat(Ne,", 1) rotate(").concat(Oe,"deg)"),transitionDuration:(!j||Ae)&&"0s"},fallback:s,src:i,onWheel:we,onMouseDown:be,onDoubleClick:st,onTouchStart:Ee,onTouchMove:Re,onTouchEnd:Te,onTouchCancel:Te})),ot=ee({url:i,alt:o},a);return V.createElement(V.Fragment,null,V.createElement(Lue,ft({transitionName:P,maskTransitionName:$,closable:!1,keyboard:!0,prefixCls:r,onClose:u,visible:d,classNames:{wrapper:je},rootClassName:h,getContainer:v},q,{afterClose:ne}),V.createElement("div",{className:"".concat(r,"-img-wrapper")},U?U(Je,ee({transform:oe,image:ot},H?{current:_}:{})):Je)),V.createElement(vUt,{visible:d,transform:oe,maskTransitionName:$,closeIcon:g,getContainer:v,prefixCls:r,rootClassName:h,icons:p,countRender:E,showSwitch:G,showProgress:Q,current:_,count:b,scale:Ne,minScale:T,maxScale:O,toolbarRender:D,onActive:ge,onZoomIn:J,onZoomOut:ae,onRotateRight:Se,onRotateLeft:xe,onFlipX:ue,onFlipY:Me,onClose:u,onReset:$e,zIndex:q.zIndex!==void 0?q.zIndex+1:void 0,image:ot}))},Eie=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function OUt(e){var n=m.useState({}),r=ke(n,2),i=r[0],o=r[1],a=m.useCallback(function(l,c){return o(function(u){return ee(ee({},u),{},fe({},l,c))}),function(){o(function(u){var d=ee({},u);return delete d[l],d})}},[]),s=m.useMemo(function(){return e?e.map(function(l){if(typeof l=="string")return{data:{src:l}};var c={};return Object.keys(l).forEach(function(u){["src"].concat(Tt(Eie)).includes(u)&&(c[u]=l[u])}),{data:c}}):Object.keys(i).reduce(function(l,c){var u=i[c],d=u.canPreview,f=u.data;return d&&l.push({data:f,id:c}),l},[])},[e,i]);return[s,a,!!e]}var RUt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],IUt=["src"],NUt=function(n){var r,i=n.previewPrefixCls,o=i===void 0?"rc-image-preview":i,a=n.children,s=n.icons,l=s===void 0?{}:s,c=n.items,u=n.preview,d=n.fallback,f=cn(u)==="object"?u:{},p=f.visible,h=f.onVisibleChange,g=f.getContainer,v=f.current,y=f.movable,_=f.minScale,S=f.maxScale,b=f.countRender,E=f.closeIcon,w=f.onChange,C=f.onTransform,x=f.toolbarRender,T=f.imageRender,R=Xt(f,RUt),O=OUt(c),M=ke(O,3),P=M[0],k=M[1],$=M[2],U=dr(0,{value:v}),z=ke(U,2),D=z[0],B=z[1],Y=m.useState(!1),q=ke(Y,2),K=q[0],H=q[1],G=((r=P[D])===null||r===void 0?void 0:r.data)||{},Q=G.src,le=Xt(G,IUt),Z=dr(!!p,{value:p,onChange:function(Ae,Ee){h==null||h(Ae,Ee,D)}}),j=ke(Z,2),F=j[0],te=j[1],oe=m.useState(null),de=ke(oe,2),pe=de[0],me=de[1],ve=m.useCallback(function(De,Ae,Ee,Re){var Te=$?P.findIndex(function(Oe){return Oe.data.src===Ae}):P.findIndex(function(Oe){return Oe.id===De});B(Te<0?0:Te),te(!0),me({x:Ee,y:Re}),H(!0)},[P,$]);m.useEffect(function(){F?K||B(0):H(!1)},[F]);var he=function(Ae,Ee){B(Ae),w==null||w(Ae,Ee)},be=function(){te(!1),me(null)},we=m.useMemo(function(){return{register:k,onPreview:ve}},[k,ve]);return m.createElement(Tk.Provider,{value:we},a,m.createElement(yVe,ft({"aria-hidden":!F,movable:y,visible:F,prefixCls:o,closeIcon:E,onClose:be,mousePosition:pe,imgCommonProps:le,src:Q,fallback:d,icons:l,minScale:_,maxScale:S,getContainer:g,current:D,count:P.length,countRender:b,onTransform:C,toolbarRender:x,imageRender:T,onChange:he},R)))},cwe=0;function MUt(e,n){var r=m.useState(function(){return cwe+=1,String(cwe)}),i=ke(r,1),o=i[0],a=m.useContext(Tk),s={data:n,canPreview:e};return m.useEffect(function(){if(a)return a.register(o,s)},[]),m.useEffect(function(){a&&a.register(o,s)},[e,n]),o}var PUt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],AUt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],$de=function(n){var r=n.src,i=n.alt,o=n.onPreviewClose,a=n.prefixCls,s=a===void 0?"rc-image":a,l=n.previewPrefixCls,c=l===void 0?"".concat(s,"-preview"):l,u=n.placeholder,d=n.fallback,f=n.width,p=n.height,h=n.style,g=n.preview,v=g===void 0?!0:g,y=n.className,_=n.onClick,S=n.onError,b=n.wrapperClassName,E=n.wrapperStyle,w=n.rootClassName,C=Xt(n,PUt),x=u&&u!==!0,T=cn(v)==="object"?v:{},R=T.src,O=T.visible,M=O===void 0?void 0:O,P=T.onVisibleChange,k=P===void 0?o:P,$=T.getContainer,U=$===void 0?void 0:$,z=T.mask,D=T.maskClassName,B=T.movable,Y=T.icons,q=T.scaleStep,K=T.minScale,H=T.maxScale,G=T.imageRender,Q=T.toolbarRender,le=Xt(T,AUt),Z=R??r,j=dr(!!M,{value:M,onChange:k}),F=ke(j,2),te=F[0],oe=F[1],de=vVe({src:r,isCustomPlaceholder:x,fallback:d}),pe=ke(de,3),me=pe[0],ve=pe[1],he=pe[2],be=m.useState(null),we=ke(be,2),De=we[0],Ae=we[1],Ee=m.useContext(Tk),Re=!!v,Te=function(){oe(!1),Ae(null)},Oe=Ce(s,b,w,fe({},"".concat(s,"-error"),he==="error")),Ne=m.useMemo(function(){var ae={};return Eie.forEach(function(Se){n[Se]!==void 0&&(ae[Se]=n[Se])}),ae},Eie.map(function(ae){return n[ae]})),je=m.useMemo(function(){return ee(ee({},Ne),{},{src:Z})},[Z,Ne]),ne=MUt(Re,je),J=function(Se){var xe=mUt(Se.target),ue=xe.left,Me=xe.top;Ee?Ee.onPreview(ne,Z,ue,Me):(Ae({x:ue,y:Me}),oe(!0)),_==null||_(Se)};return m.createElement(m.Fragment,null,m.createElement("div",ft({},C,{className:Oe,onClick:Re?J:_,style:ee({width:f,height:p},E)}),m.createElement("img",ft({},Ne,{className:Ce("".concat(s,"-img"),fe({},"".concat(s,"-img-placeholder"),u===!0),y),style:ee({height:p},h),ref:me},ve,{width:f,height:p,onError:S})),he==="loading"&&m.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},u),z&&Re&&m.createElement("div",{className:Ce("".concat(s,"-mask"),D),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},z)),!Ee&&Re&&m.createElement(yVe,ft({"aria-hidden":!te,visible:te,prefixCls:c,onClose:Te,mousePosition:De,src:Z,alt:i,imageInfo:{width:f,height:p},fallback:d,getContainer:U,icons:Y,movable:B,scaleStep:q,minScale:K,maxScale:H,rootClassName:w,imageRender:G,imgCommonProps:Ne,toolbarRender:Q},le)))};$de.PreviewGroup=NUt;var DUt={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"},kUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:DUt}))},LUt=m.forwardRef(kUt),$Ut={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"},FUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:$Ut}))},BUt=m.forwardRef(FUt),jUt={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"},UUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:jUt}))},uwe=m.forwardRef(UUt),HUt={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"},zUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:HUt}))},VUt=m.forwardRef(zUt),GUt={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"},WUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:GUt}))},YUt=m.forwardRef(WUt);const Cie=e=>({position:e||"absolute",inset:0}),qUt=e=>{const{iconCls:n,motionDurationSlow:r,paddingXXS:i,marginXXS:o,prefixCls:a,colorTextLightSolid:s}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:s,background:new Gr("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${r}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},bf),{padding:`0 ${Ye(i)}`,[n]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},KUt=e=>{const{previewCls:n,modalMaskBg:r,paddingSM:i,marginXL:o,margin:a,paddingLG:s,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,p=new Gr(r).setA(.1),h=p.clone().setA(.2);return{[`${n}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${n}-progress`]:{marginBottom:a},[`${n}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:i,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${n}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ye(s)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:i,padding:i,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${n}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},XUt=e=>{const{modalMaskBg:n,iconCls:r,previewOperationColorDisabled:i,previewCls:o,zIndexPopup:a,motionDurationSlow:s}=e,l=new Gr(n).setA(.1),c=l.clone().setA(.2);return{[`${o}-switch-left, ${o}-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:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${s}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:i,background:"transparent",cursor:"not-allowed",[`> ${r}`]:{cursor:"not-allowed"}}},[`> ${r}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},QUt=e=>{const{motionEaseOut:n,previewCls:r,motionDurationSlow:i,componentCls:o}=e;return[{[`${o}-preview-root`]:{[r]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${r}-body`]:Object.assign(Object.assign({},Cie()),{overflow:"hidden"}),[`${r}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${i} ${n} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Cie()),{transition:`transform ${i} ${n} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${r}-moving`]:{[`${r}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${r}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[KUt(e),XUt(e)]}]},ZUt=e=>{const{componentCls:n}=e;return{[n]:{position:"relative",display:"inline-block",[`${n}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${n}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${n}-mask`]:Object.assign({},qUt(e)),[`${n}-mask:hover`]:{opacity:1},[`${n}-placeholder`]:Object.assign({},Cie())}}},JUt=e=>{const{previewCls:n}=e;return{[`${n}-root`]:aI(e,"zoom"),"&":Nue(e,!0)}},eHt=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Gr(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Gr(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Gr(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),_Ve=Yr("Image",e=>{const n=`${e.componentCls}-preview`,r=wr(e,{previewCls:n,modalMaskBg:new Gr("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[ZUt(r),QUt(r),$9e(wr(r,{componentCls:n})),JUt(r)]},eHt);var tHt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const bVe={rotateLeft:m.createElement(LUt,null),rotateRight:m.createElement(BUt,null),zoomIn:m.createElement(VUt,null),zoomOut:m.createElement(YUt,null),close:m.createElement(jp,null),left:m.createElement(_A,null),right:m.createElement(w0,null),flipX:m.createElement(uwe,null),flipY:m.createElement(uwe,{rotate:90})},nHt=e=>{var{previewPrefixCls:n,preview:r}=e,i=tHt(e,["previewPrefixCls","preview"]);const{getPrefixCls:o}=m.useContext(Cn),a=o("image",n),s=`${a}-preview`,l=o(),c=po(a),[u,d,f]=_Ve(a,c),[p]=Up("ImagePreview",typeof r=="object"?r.zIndex:void 0),h=m.useMemo(()=>{var g;if(r===!1)return r;const v=typeof r=="object"?r:{},y=Ce(d,f,c,(g=v.rootClassName)!==null&&g!==void 0?g:"");return Object.assign(Object.assign({},v),{transitionName:Kl(l,"zoom",v.transitionName),maskTransitionName:Kl(l,"fade",v.maskTransitionName),rootClassName:y,zIndex:p})},[r]);return u(m.createElement($de.PreviewGroup,Object.assign({preview:h,previewPrefixCls:s,icons:bVe},i)))};var dwe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const SVe=e=>{var n;const{prefixCls:r,preview:i,className:o,rootClassName:a,style:s}=e,l=dwe(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=Tp,getPopupContainer:d,image:f}=m.useContext(Cn),p=c("image",r),h=c(),g=u.Image||Tp.Image,v=po(p),[y,_,S]=_Ve(p,v),b=Ce(a,_,S,v),E=Ce(o,_,f==null?void 0:f.className),[w]=Up("ImagePreview",typeof i=="object"?i.zIndex:void 0),C=m.useMemo(()=>{var T;if(i===!1)return i;const R=typeof i=="object"?i:{},{getContainer:O,closeIcon:M,rootClassName:P}=R,k=dwe(R,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:m.createElement("div",{className:`${p}-mask-info`},m.createElement(xk,null),g==null?void 0:g.preview),icons:bVe},k),{rootClassName:Ce(b,P),getContainer:O??d,transitionName:Kl(h,"zoom",R.transitionName),maskTransitionName:Kl(h,"fade",R.maskTransitionName),zIndex:w,closeIcon:M??((T=f==null?void 0:f.preview)===null||T===void 0?void 0:T.closeIcon)})},[i,g,(n=f==null?void 0:f.preview)===null||n===void 0?void 0:n.closeIcon]),x=Object.assign(Object.assign({},f==null?void 0:f.style),s);return y(m.createElement($de,Object.assign({prefixCls:p,preview:C,rootClassName:b,className:E,style:x},l)))};SVe.PreviewGroup=nHt;function rHt(e,n,r){return typeof r=="boolean"?r:e.length?!0:Tl(n).some(o=>o.type===XUe)}var EVe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function wU(e){let{suffixCls:n,tagName:r,displayName:i}=e;return o=>m.forwardRef((s,l)=>m.createElement(o,Object.assign({ref:l,suffixCls:n,tagName:r},s)))}const Fde=m.forwardRef((e,n)=>{const{prefixCls:r,suffixCls:i,className:o,tagName:a}=e,s=EVe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=m.useContext(Cn),c=l("layout",r),[u,d,f]=KUe(c),p=i?`${c}-${i}`:c;return u(m.createElement(a,Object.assign({className:Ce(r||p,o,d,f),ref:n},s)))}),iHt=m.forwardRef((e,n)=>{const{direction:r}=m.useContext(Cn),[i,o]=m.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,p=EVe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=Wr(p,["suffixCls"]),{getPrefixCls:g,layout:v}=m.useContext(Cn),y=g("layout",a),_=rHt(i,c,u),[S,b,E]=KUe(y),w=Ce(y,{[`${y}-has-sider`]:_,[`${y}-rtl`]:r==="rtl"},v==null?void 0:v.className,s,l,b,E),C=m.useMemo(()=>({siderHook:{addSider:x=>{o(T=>[].concat(Tt(T),[x]))},removeSider:x=>{o(T=>T.filter(R=>R!==x))}}}),[]);return S(m.createElement(WUe.Provider,{value:C},m.createElement(d,Object.assign({ref:n,className:w,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},h),c)))}),oHt=wU({tagName:"div",displayName:"Layout"})(iHt),Z8=wU({suffixCls:"header",tagName:"header",displayName:"Header"})(Fde),aHt=wU({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Fde),sHt=wU({suffixCls:"content",tagName:"main",displayName:"Content"})(Fde),bo=oHt;bo.Header=Z8;bo.Footer=aHt;bo.Content=sHt;bo.Sider=XUe;bo._InternalSiderContext=lU;var lHt={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:"页码"};const J8=100,CVe=J8/5,wVe=J8/2-CVe/2,_q=wVe*2*Math.PI,fwe=50,pwe=e=>{const{dotClassName:n,style:r,hasCircleCls:i}=e;return m.createElement("circle",{className:Ce(`${n}-circle`,{[`${n}-circle-bg`]:i}),r:wVe,cx:fwe,cy:fwe,strokeWidth:CVe,style:r})},cHt=e=>{let{percent:n,prefixCls:r}=e;const i=`${r}-dot`,o=`${i}-holder`,a=`${o}-hidden`,[s,l]=m.useState(!1);ti(()=>{n!==0&&l(!0)},[n!==0]);const c=Math.max(Math.min(n,100),0);if(!s)return null;const u={strokeDashoffset:`${_q/4}`,strokeDasharray:`${_q*c/100} ${_q*(100-c)/100}`};return m.createElement("span",{className:Ce(o,`${i}-progress`,c<=0&&a)},m.createElement("svg",{viewBox:`0 0 ${J8} ${J8}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},m.createElement(pwe,{dotClassName:i,hasCircleCls:!0}),m.createElement(pwe,{dotClassName:i,style:u})))};function uHt(e){const{prefixCls:n,percent:r=0}=e,i=`${n}-dot`,o=`${i}-holder`,a=`${o}-hidden`;return m.createElement(m.Fragment,null,m.createElement("span",{className:Ce(o,r>0&&a)},m.createElement("span",{className:Ce(i,`${n}-dot-spin`)},[1,2,3,4].map(s=>m.createElement("i",{className:`${n}-dot-item`,key:s})))),m.createElement(cHt,{prefixCls:n,percent:r}))}function dHt(e){const{prefixCls:n,indicator:r,percent:i}=e,o=`${n}-dot`;return r&&m.isValidElement(r)?Ys(r,{className:Ce(r.props.className,o),percent:i}):m.createElement(uHt,{prefixCls:n,percent:i})}const fHt=new kr("antSpinMove",{to:{opacity:1}}),pHt=new kr("antRotate",{to:{transform:"rotate(405deg)"}}),hHt=e=>{const{componentCls:n,calc:r}=e;return{[n]:Object.assign(Object.assign({},li(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},[`${n}-text`]:{fontSize:e.fontSize,paddingTop:r(r(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"},[n]:{[`${n}-dot-holder`]:{color:e.colorWhite},[`${n}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${n}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${n}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:r(e.dotSize).mul(-1).div(2).equal()},[`${n}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${n}-show-text ${n}-dot`]:{marginTop:r(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${n}-dot`]:{margin:r(e.dotSizeSM).mul(-1).div(2).equal()},[`${n}-text`]:{paddingTop:r(r(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${n}-show-text ${n}-dot`]:{marginTop:r(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${n}-dot`]:{margin:r(e.dotSizeLG).mul(-1).div(2).equal()},[`${n}-text`]:{paddingTop:r(r(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${n}-show-text ${n}-dot`]:{marginTop:r(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${n}-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"}},[`${n}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${n}-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}},[`${n}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${n}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),height:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:fHt,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:pHt,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(i=>`${i} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${n}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${n}-dot-holder`]:{i:{width:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal(),height:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${n}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${n}-dot-holder`]:{i:{width:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${n}-show-text ${n}-text`]:{display:"block"}})}},gHt=e=>{const{controlHeightLG:n,controlHeight:r}=e;return{contentHeight:400,dotSize:n/2,dotSizeSM:n*.35,dotSizeLG:r}},mHt=Yr("Spin",e=>{const n=wr(e,{spinDotDefault:e.colorTextDescription});return[hHt(n)]},gHt),vHt=200,hwe=[[30,.05],[70,.03],[96,.01]];function yHt(e,n){const[r,i]=m.useState(0),o=m.useRef(null),a=n==="auto";return m.useEffect(()=>(a&&e&&(i(0),o.current=setInterval(()=>{i(s=>{const l=100-s;for(let c=0;c<hwe.length;c+=1){const[u,d]=hwe[c];if(s<=u)return s+l*d}return s})},vHt)),()=>{clearInterval(o.current)}),[a,e]),a?r:n}var _Ht=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};let xVe;function bHt(e,n){return!!e&&!!n&&!Number.isNaN(Number(n))}const e_=e=>{var n;const{prefixCls:r,spinning:i=!0,delay:o=0,className:a,rootClassName:s,size:l="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:h,percent:g}=e,v=_Ht(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:y,direction:_,spin:S}=m.useContext(Cn),b=y("spin",r),[E,w,C]=mHt(b),[x,T]=m.useState(()=>i&&!bHt(i,o)),R=yHt(x,g);m.useEffect(()=>{if(i){const z=j8t(o,()=>{T(!0)});return z(),()=>{var D;(D=z==null?void 0:z.cancel)===null||D===void 0||D.call(z)}}T(!1)},[o,i]);const O=m.useMemo(()=>typeof f<"u"&&!p,[f,p]),M=Ce(b,S==null?void 0:S.className,{[`${b}-sm`]:l==="small",[`${b}-lg`]:l==="large",[`${b}-spinning`]:x,[`${b}-show-text`]:!!c,[`${b}-rtl`]:_==="rtl"},a,!p&&s,w,C),P=Ce(`${b}-container`,{[`${b}-blur`]:x}),k=(n=h??(S==null?void 0:S.indicator))!==null&&n!==void 0?n:xVe,$=Object.assign(Object.assign({},S==null?void 0:S.style),d),U=m.createElement("div",Object.assign({},v,{style:$,className:M,"aria-live":"polite","aria-busy":x}),m.createElement(dHt,{prefixCls:b,indicator:k,percent:R}),c&&(O||p)?m.createElement("div",{className:`${b}-text`},c):null);return E(O?m.createElement("div",Object.assign({},v,{className:Ce(`${b}-nested-loading`,u,w,C)}),x&&m.createElement("div",{key:"loading"},U),m.createElement("div",{className:P,key:"container"},f)):p?m.createElement("div",{className:Ce(`${b}-fullscreen`,{[`${b}-fullscreen-show`]:x},s,w,C)},U):U)};e_.setDefaultIndicator=e=>{xVe=e};let np=null,a1=e=>e(),EA=[],CA={};function gwe(){const{getContainer:e,duration:n,rtl:r,maxCount:i,top:o}=CA,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:n,rtl:r,maxCount:i,top:o}}const SHt=V.forwardRef((e,n)=>{const{messageConfig:r,sync:i}=e,{getPrefixCls:o}=m.useContext(Cn),a=CA.prefixCls||o("message"),s=m.useContext(iie),[l,c]=Z7e(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),s.message));return V.useImperativeHandle(n,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return i(),l[d].apply(l,arguments)}}),{instance:u,sync:i}}),c}),EHt=V.forwardRef((e,n)=>{const[r,i]=V.useState(gwe),o=()=>{i(gwe)};V.useEffect(o,[]);const a=k7e(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=V.createElement(SHt,{ref:n,sync:o,messageConfig:r});return V.createElement(or,{prefixCls:s,iconPrefixCls:l,theme:c},a.holderRender?a.holderRender(u):u)});function xU(){if(!np){const e=document.createDocumentFragment(),n={fragment:e};np=n,a1(()=>{Tue()(V.createElement(EHt,{ref:i=>{const{instance:o,sync:a}=i||{};Promise.resolve().then(()=>{!n.instance&&o&&(n.instance=o,n.sync=a,xU())})}}),e)});return}np.instance&&(EA.forEach(e=>{const{type:n,skipped:r}=e;if(!r)switch(n){case"open":{a1(()=>{const i=np.instance.open(Object.assign(Object.assign({},CA),e.config));i==null||i.then(e.resolve),e.setCloseFn(i)});break}case"destroy":a1(()=>{np==null||np.instance.destroy(e.key)});break;default:a1(()=>{var i;const o=(i=np.instance)[n].apply(i,Tt(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),EA=[])}function CHt(e){CA=Object.assign(Object.assign({},CA),e),a1(()=>{var n;(n=np==null?void 0:np.sync)===null||n===void 0||n.call(np)})}function wHt(e){const n=xue(r=>{let i;const o={type:"open",config:e,resolve:r,setCloseFn:a=>{i=a}};return EA.push(o),()=>{i?a1(()=>{i()}):o.skipped=!0}});return xU(),n}function xHt(e,n){const r=xue(i=>{let o;const a={type:e,args:n,resolve:i,setCloseFn:s=>{o=s}};return EA.push(a),()=>{o?a1(()=>{o()}):a.skipped=!0}});return xU(),r}const THt=e=>{EA.push({type:"destroy",key:e}),xU()},OHt=["success","info","warning","error","loading"],RHt={open:wHt,destroy:THt,config:CHt,useMessage:J7e,_InternalPanelDoNotUseOrYouWillBeFired:X2t},rP=RHt;OHt.forEach(e=>{rP[e]=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return xHt(e,r)}});var IHt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const NHt=e=>{const{prefixCls:n,className:r,closeIcon:i,closable:o,type:a,title:s,children:l,footer:c}=e,u=IHt(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=m.useContext(Cn),f=d(),p=n||d("modal"),h=po(f),[g,v,y]=j9e(p,h),_=`${p}-confirm`;let S={};return a?S={closable:o??!1,title:"",footer:"",children:m.createElement(H9e,Object.assign({},e,{prefixCls:p,confirmPrefixCls:_,rootPrefixCls:f,content:l}))}:S={closable:o??!0,title:s,footer:c!==null&&m.createElement(k9e,Object.assign({},e)),children:l},g(m.createElement(b9e,Object.assign({prefixCls:p,className:Ce(v,`${p}-pure-panel`,a&&_,a&&`${_}-${a}`,r,y,h)},u,{closeIcon:D9e(p,i),closable:o},S)))},MHt=eUe(NHt);function TVe(e){return vk(W9e(e))}const fa=U9e;fa.useModal=Q9e;fa.info=function(n){return vk(Y9e(n))};fa.success=function(n){return vk(q9e(n))};fa.error=function(n){return vk(K9e(n))};fa.warning=TVe;fa.warn=TVe;fa.confirm=function(n){return vk(X9e(n))};fa.destroyAll=function(){for(;i1.length;){const n=i1.pop();n&&n()}};fa.config=cLt;fa._InternalPanelDoNotUseOrYouWillBeFired=MHt;const PHt=e=>{const{componentCls:n,iconCls:r,antCls:i,zIndexPopup:o,colorText:a,colorWarning:s,marginXXS:l,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[n]:{zIndex:o,[`&${i}-popover`]:{fontSize:u},[`${n}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${n}-message-icon ${r}`]:{color:s,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${n}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${n}-description`]:{marginTop:l,color:a}},[`${n}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},AHt=e=>{const{zIndexPopupBase:n}=e;return{zIndexPopup:n+60}},OVe=Yr("Popconfirm",e=>PHt(e),AHt,{resetStyle:!1});var DHt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const RVe=e=>{const{prefixCls:n,okButtonProps:r,cancelButtonProps:i,title:o,description:a,cancelText:s,okText:l,okType:c="primary",icon:u=m.createElement(eS,null),showCancel:d=!0,close:f,onConfirm:p,onCancel:h,onPopupClick:g}=e,{getPrefixCls:v}=m.useContext(Cn),[y]=Nu("Popconfirm",Tp.Popconfirm),_=$O(o),S=$O(a);return m.createElement("div",{className:`${n}-inner-content`,onClick:g},m.createElement("div",{className:`${n}-message`},u&&m.createElement("span",{className:`${n}-message-icon`},u),m.createElement("div",{className:`${n}-message-text`},_&&m.createElement("div",{className:`${n}-title`},_),S&&m.createElement("div",{className:`${n}-description`},S))),m.createElement("div",{className:`${n}-buttons`},d&&m.createElement(qn,Object.assign({onClick:h,size:"small"},i),s||(y==null?void 0:y.cancelText)),m.createElement(kue,{buttonProps:Object.assign(Object.assign({size:"small"},Oue(c)),r),actionFn:p,close:f,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(y==null?void 0:y.okText))))},kHt=e=>{const{prefixCls:n,placement:r,className:i,style:o}=e,a=DHt(e,["prefixCls","placement","className","style"]),{getPrefixCls:s}=m.useContext(Cn),l=s("popconfirm",n),[c]=OVe(l);return c(m.createElement(MUe,{placement:r,className:Ce(l,i),style:o,content:m.createElement(RVe,Object.assign({prefixCls:l},a))}))};var LHt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const $Ht=m.forwardRef((e,n)=>{var r,i,o,a,s,l;const{prefixCls:c,placement:u="top",trigger:d="click",okType:f="primary",icon:p=m.createElement(eS,null),children:h,overlayClassName:g,onOpenChange:v,onVisibleChange:y,overlayStyle:_,styles:S,classNames:b}=e,E=LHt(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,popconfirm:C}=m.useContext(Cn),[x,T]=dr(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(i=e.defaultOpen)!==null&&i!==void 0?i:e.defaultVisible}),R=(B,Y)=>{T(B,!0),y==null||y(B),v==null||v(B,Y)},O=B=>{R(!1,B)},M=B=>{var Y;return(Y=e.onConfirm)===null||Y===void 0?void 0:Y.call(void 0,B)},P=B=>{var Y;R(!1,B),(Y=e.onCancel)===null||Y===void 0||Y.call(void 0,B)},k=(B,Y)=>{const{disabled:q=!1}=e;q||R(B,Y)},$=w("popconfirm",c),U=Ce($,g,(o=C==null?void 0:C.classNames)===null||o===void 0?void 0:o.root,b==null?void 0:b.root),z=Ce((a=C==null?void 0:C.classNames)===null||a===void 0?void 0:a.body,b==null?void 0:b.body),[D]=OVe($);return D(m.createElement(Rp,Object.assign({},Wr(E,["title"]),{trigger:d,placement:u,onOpenChange:k,open:x,ref:n,classNames:{root:U,body:z},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.root),C==null?void 0:C.style),_),S==null?void 0:S.root),body:Object.assign(Object.assign({},(l=C==null?void 0:C.styles)===null||l===void 0?void 0:l.body),S==null?void 0:S.body)},content:m.createElement(RVe,Object.assign({okType:f,icon:p},e,{prefixCls:$,close:O,onConfirm:M,onCancel:P})),"data-popover-inject":!0}),h))}),IVe=$Ht;IVe._InternalPanelDoNotUseOrYouWillBeFired=kHt;var FHt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},BHt=function(){var n=m.useRef([]),r=m.useRef(null);return m.useEffect(function(){var i=Date.now(),o=!1;n.current.forEach(function(a){if(a){o=!0;var s=a.style;s.transitionDuration=".3s, .3s, .3s, .06s",r.current&&i-r.current<100&&(s.transitionDuration="0s, 0s")}}),o&&(r.current=Date.now())}),n.current},mwe=0,jHt=_f();function UHt(){var e;return jHt?(e=mwe,mwe+=1):e="TEST_OR_SSR",e}const HHt=function(e){var n=m.useState(),r=ke(n,2),i=r[0],o=r[1];return m.useEffect(function(){o("rc_progress_".concat(UHt()))},[]),e||i};var vwe=function(n){var r=n.bg,i=n.children;return m.createElement("div",{style:{width:"100%",height:"100%",background:r}},i)};function ywe(e,n){return Object.keys(e).map(function(r){var i=parseFloat(r),o="".concat(Math.floor(i*n),"%");return"".concat(e[r]," ").concat(o)})}var zHt=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.color,o=e.gradientId,a=e.radius,s=e.style,l=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=i&&cn(i)==="object",h=p?"#FFF":void 0,g=d/2,v=m.createElement("circle",{className:"".concat(r,"-circle-path"),r:a,cx:g,cy:g,stroke:h,strokeLinecap:c,strokeWidth:u,opacity:l===0?0:1,style:s,ref:n});if(!p)return v;var y="".concat(o,"-conic"),_=f?"".concat(180+f/2,"deg"):"0deg",S=ywe(i,(360-f)/360),b=ywe(i,1),E="conic-gradient(from ".concat(_,", ").concat(S.join(", "),")"),w="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(b.join(", "),")");return m.createElement(m.Fragment,null,m.createElement("mask",{id:y},v),m.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(y,")")},m.createElement(vwe,{bg:w},m.createElement(vwe,{bg:E}))))}),d2=100,bq=function(n,r,i,o,a,s,l,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=i/100*360*((360-s)/360),h=s===0?0:{bottom:0,top:180,left:90,right:-90}[l],g=(100-o)/100*r;u==="round"&&o!==100&&(g+=d/2,g>=r&&(g=r-.01));var v=d2/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(r,"px ").concat(n),strokeDashoffset:g+f,transform:"rotate(".concat(a+p+h,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"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}},VHt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function _we(e){var n=e??[];return Array.isArray(n)?n:[n]}var GHt=function(n){var r=ee(ee({},FHt),n),i=r.id,o=r.prefixCls,a=r.steps,s=r.strokeWidth,l=r.trailWidth,c=r.gapDegree,u=c===void 0?0:c,d=r.gapPosition,f=r.trailColor,p=r.strokeLinecap,h=r.style,g=r.className,v=r.strokeColor,y=r.percent,_=Xt(r,VHt),S=d2/2,b=HHt(i),E="".concat(b,"-gradient"),w=S-s/2,C=Math.PI*2*w,x=u>0?90+u/2:-90,T=C*((360-u)/360),R=cn(a)==="object"?a:{count:a,gap:2},O=R.count,M=R.gap,P=_we(y),k=_we(v),$=k.find(function(K){return K&&cn(K)==="object"}),U=$&&cn($)==="object",z=U?"butt":p,D=bq(C,T,0,100,x,u,d,f,z,s),B=BHt(),Y=function(){var H=0;return P.map(function(G,Q){var le=k[Q]||k[k.length-1],Z=bq(C,T,H,G,x,u,d,le,z,s);return H+=G,m.createElement(zHt,{key:Q,color:le,ptg:G,radius:w,prefixCls:o,gradientId:E,style:Z,strokeLinecap:z,strokeWidth:s,gapDegree:u,ref:function(F){B[Q]=F},size:d2})}).reverse()},q=function(){var H=Math.round(O*(P[0]/100)),G=100/O,Q=0;return new Array(O).fill(null).map(function(le,Z){var j=Z<=H-1?k[0]:f,F=j&&cn(j)==="object"?"url(#".concat(E,")"):void 0,te=bq(C,T,Q,G,x,u,d,j,"butt",s,M);return Q+=(T-te.strokeDashoffset+M)*100/T,m.createElement("circle",{key:Z,className:"".concat(o,"-circle-path"),r:w,cx:S,cy:S,stroke:F,strokeWidth:s,opacity:1,style:te,ref:function(de){B[Z]=de}})})};return m.createElement("svg",ft({className:Ce("".concat(o,"-circle"),g),viewBox:"0 0 ".concat(d2," ").concat(d2),style:h,id:i,role:"presentation"},_),!O&&m.createElement("circle",{className:"".concat(o,"-circle-trail"),r:w,cx:S,cy:S,stroke:f,strokeLinecap:z,strokeWidth:l||s,style:D}),O?q():Y())};function f0(e){return!e||e<0?0:e>100?100:e}function eB(e){let{success:n,successPercent:r}=e,i=r;return n&&"progress"in n&&(i=n.progress),n&&"percent"in n&&(i=n.percent),i}const WHt=e=>{let{percent:n,success:r,successPercent:i}=e;const o=f0(eB({success:r,successPercent:i}));return[o,f0(f0(n)-o)]},YHt=e=>{let{success:n={},strokeColor:r}=e;const{strokeColor:i}=n;return[i||R1.green,r||null]},TU=(e,n,r)=>{var i,o,a,s;let l=-1,c=-1;if(n==="step"){const u=r.steps,d=r.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,c=d??8):typeof e=="number"?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=u}else if(n==="line"){const u=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(n==="circle"||n==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,c]=[e,e]:Array.isArray(e)&&(l=(o=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&o!==void 0?o:120,c=(s=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&s!==void 0?s:120));return[l,c]},qHt=3,KHt=e=>qHt/e*100,XHt=e=>{const{prefixCls:n,trailColor:r=null,strokeLinecap:i="round",gapPosition:o,gapDegree:a,width:s=120,type:l,children:c,success:u,size:d=s,steps:f}=e,[p,h]=TU(d,"circle");let{strokeWidth:g}=e;g===void 0&&(g=Math.max(KHt(p),6));const v={width:p,height:h,fontSize:p*.15+6},y=m.useMemo(()=>{if(a||a===0)return a;if(l==="dashboard")return 75},[a,l]),_=WHt(e),S=o||l==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",E=YHt({success:u,strokeColor:e.strokeColor}),w=Ce(`${n}-inner`,{[`${n}-circle-gradient`]:b}),C=m.createElement(GHt,{steps:f,percent:f?_[1]:_,strokeWidth:g,trailWidth:g,strokeColor:f?E[1]:E,strokeLinecap:i,trailColor:r,prefixCls:n,gapDegree:y,gapPosition:S}),x=p<=20,T=m.createElement("div",{className:w,style:v},C,!x&&c);return x?m.createElement(Sf,{title:c},T):T},tB="--progress-line-stroke-color",NVe="--progress-percent",bwe=e=>{const n=e?"100%":"-100%";return new kr(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${n}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${n}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},QHt=e=>{const{componentCls:n,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},li(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${n}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${n}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${n}-inner:not(${n}-circle-gradient)`]:{[`${n}-circle-path`]:{stroke:e.defaultColor}},[`${n}-success-bg, ${n}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${n}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${n}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${n}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${tB})`]},height:"100%",width:`calc(1 / var(${NVe}) * 100%)`,display:"block"},[`&${n}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${n}-text-inner`]:{color:e.colorWhite,[`&${n}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${n}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${n}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${n}-text-outer`]:{width:"max-content"},[`&${n}-text-outer${n}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${n}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Ye(e.paddingXXS)}`,[`&${n}-text-start`]:{justifyContent:"start"},[`&${n}-text-end`]:{justifyContent:"end"}},[`&${n}-status-active`]:{[`${n}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:bwe(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${n}-rtl${n}-status-active`]:{[`${n}-bg::before`]:{animationName:bwe(!0)}},[`&${n}-status-exception`]:{[`${n}-bg`]:{backgroundColor:e.colorError},[`${n}-text`]:{color:e.colorError}},[`&${n}-status-exception ${n}-inner:not(${n}-circle-gradient)`]:{[`${n}-circle-path`]:{stroke:e.colorError}},[`&${n}-status-success`]:{[`${n}-bg`]:{backgroundColor:e.colorSuccess},[`${n}-text`]:{color:e.colorSuccess}},[`&${n}-status-success ${n}-inner:not(${n}-circle-gradient)`]:{[`${n}-circle-path`]:{stroke:e.colorSuccess}}})}},ZHt=e=>{const{componentCls:n,iconCls:r}=e;return{[n]:{[`${n}-circle-trail`]:{stroke:e.remainingColor},[`&${n}-circle ${n}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${n}-circle ${n}-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%)",[r]:{fontSize:e.circleIconFontSize}},[`${n}-circle&-status-exception`]:{[`${n}-text`]:{color:e.colorError}},[`${n}-circle&-status-success`]:{[`${n}-text`]:{color:e.colorSuccess}}},[`${n}-inline-circle`]:{lineHeight:1,[`${n}-inner`]:{verticalAlign:"bottom"}}}},JHt=e=>{const{componentCls:n}=e;return{[n]:{[`${n}-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}}}}}},ezt=e=>{const{componentCls:n,iconCls:r}=e;return{[n]:{[`${n}-small&-line, ${n}-small&-line ${n}-text ${r}`]:{fontSize:e.fontSizeSM}}}},tzt=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),nzt=Yr("Progress",e=>{const n=e.calc(e.marginXXS).div(2).equal(),r=wr(e,{progressStepMarginInlineEnd:n,progressStepMinWidth:n,progressActiveMotionDuration:"2.4s"});return[QHt(r),ZHt(r),JHt(r),ezt(r)]},tzt);var rzt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const izt=e=>{let n=[];return Object.keys(e).forEach(r=>{const i=parseFloat(r.replace(/%/g,""));Number.isNaN(i)||n.push({key:i,value:e[r]})}),n=n.sort((r,i)=>r.key-i.key),n.map(r=>{let{key:i,value:o}=r;return`${o} ${i}%`}).join(", ")},ozt=(e,n)=>{const{from:r=R1.blue,to:i=R1.blue,direction:o=n==="rtl"?"to left":"to right"}=e,a=rzt(e,["from","to","direction"]);if(Object.keys(a).length!==0){const l=izt(a),c=`linear-gradient(${o}, ${l})`;return{background:c,[tB]:c}}const s=`linear-gradient(${o}, ${r}, ${i})`;return{background:s,[tB]:s}},azt=e=>{const{prefixCls:n,direction:r,percent:i,size:o,strokeWidth:a,strokeColor:s,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:p,type:h}=d,g=s&&typeof s!="string"?ozt(s,r):{[tB]:s,background:s},v=l==="square"||l==="butt"?0:void 0,y=o??[-1,a||(o==="small"?6:8)],[_,S]=TU(y,"line",{strokeWidth:a}),b={backgroundColor:u||void 0,borderRadius:v},E=Object.assign(Object.assign({width:`${f0(i)}%`,height:S,borderRadius:v},g),{[NVe]:f0(i)/100}),w=eB(e),C={width:`${f0(w)}%`,height:S,borderRadius:v,backgroundColor:f==null?void 0:f.strokeColor},x={width:_<0?"100%":_},T=m.createElement("div",{className:`${n}-inner`,style:b},m.createElement("div",{className:Ce(`${n}-bg`,`${n}-bg-${h}`),style:E},h==="inner"&&c),w!==void 0&&m.createElement("div",{className:`${n}-success-bg`,style:C})),R=h==="outer"&&p==="start",O=h==="outer"&&p==="end";return h==="outer"&&p==="center"?m.createElement("div",{className:`${n}-layout-bottom`},T,c):m.createElement("div",{className:`${n}-outer`,style:x},R&&c,T,O&&c)},szt=e=>{const{size:n,steps:r,percent:i=0,strokeWidth:o=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=Math.round(r*(i/100)),f=n??[n==="small"?2:14,o],[p,h]=TU(f,"step",{steps:r,strokeWidth:o}),g=p/r,v=new Array(r);for(let y=0;y<r;y++){const _=Array.isArray(a)?a[y]:a;v[y]=m.createElement("div",{key:y,className:Ce(`${l}-steps-item`,{[`${l}-steps-item-active`]:y<=u-1}),style:{backgroundColor:y<=u-1?_:s,width:g,height:h}})}return m.createElement("div",{className:`${l}-steps-outer`},v,c)};var lzt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const czt=["normal","exception","active","success"],MVe=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,rootClassName:o,steps:a,strokeColor:s,percent:l=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:p,style:h,percentPosition:g={}}=e,v=lzt(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:_="outer"}=g,S=Array.isArray(s)?s[0]:s,b=typeof s=="string"||Array.isArray(s)?s:void 0,E=m.useMemo(()=>{if(S){const Y=typeof S=="string"?S:Object.values(S)[0];return new Gr(Y).isLight()}return!1},[s]),w=m.useMemo(()=>{var Y,q;const K=eB(e);return parseInt(K!==void 0?(Y=K??0)===null||Y===void 0?void 0:Y.toString():(q=l??0)===null||q===void 0?void 0:q.toString(),10)},[l,e.success,e.successPercent]),C=m.useMemo(()=>!czt.includes(f)&&w>=100?"success":f||"normal",[f,w]),{getPrefixCls:x,direction:T,progress:R}=m.useContext(Cn),O=x("progress",r),[M,P,k]=nzt(O),$=d==="line",U=$&&!a,z=m.useMemo(()=>{if(!u)return null;const Y=eB(e);let q;const K=p||(G=>`${G}%`),H=$&&E&&_==="inner";return _==="inner"||p||C!=="exception"&&C!=="success"?q=K(f0(l),f0(Y)):C==="exception"?q=$?m.createElement(ev,null):m.createElement(jp,null):C==="success"&&(q=$?m.createElement(tw,null):m.createElement(c0,null)),m.createElement("span",{className:Ce(`${O}-text`,{[`${O}-text-bright`]:H,[`${O}-text-${y}`]:U,[`${O}-text-${_}`]:U}),title:typeof q=="string"?q:void 0},q)},[u,l,w,C,d,O,p]);let D;d==="line"?D=a?m.createElement(szt,Object.assign({},e,{strokeColor:b,prefixCls:O,steps:typeof a=="object"?a.count:a}),z):m.createElement(azt,Object.assign({},e,{strokeColor:S,prefixCls:O,direction:T,percentPosition:{align:y,type:_}}),z):(d==="circle"||d==="dashboard")&&(D=m.createElement(XHt,Object.assign({},e,{strokeColor:S,prefixCls:O,progressStatus:C}),z));const B=Ce(O,`${O}-status-${C}`,{[`${O}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${O}-inline-circle`]:d==="circle"&&TU(c,"circle")[0]<=20,[`${O}-line`]:U,[`${O}-line-align-${y}`]:U,[`${O}-line-position-${_}`]:U,[`${O}-steps`]:a,[`${O}-show-info`]:u,[`${O}-${c}`]:typeof c=="string",[`${O}-rtl`]:T==="rtl"},R==null?void 0:R.className,i,o,P,k);return M(m.createElement("div",Object.assign({ref:n,style:Object.assign(Object.assign({},R==null?void 0:R.style),h),className:B,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},Wr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))});function lm(e,n){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=T9(e))||n){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return s=u.done,u},e:function(u){l=!0,a=u},f:function(){try{s||r.return==null||r.return()}finally{if(l)throw a}}}}var mI,Ok;function ed(e,n,r){if(n<0||n>31||e>>>n)throw new RangeError("Value out of range");for(var i=n-1;i>=0;i--)r.push(e>>>i&1)}function wv(e,n){return(e>>>n&1)!=0}function Bd(e){if(!e)throw new Error("Assertion error")}var cm=function(){function e(n,r){Ki(this,e),fe(this,"modeBits",void 0),fe(this,"numBitsCharCount",void 0),this.modeBits=n,this.numBitsCharCount=r}return Xi(e,[{key:"numCharCountBits",value:function(r){return this.numBitsCharCount[Math.floor((r+7)/17)]}}]),e}();mI=cm;fe(cm,"NUMERIC",new mI(1,[10,12,14]));fe(cm,"ALPHANUMERIC",new mI(2,[9,11,13]));fe(cm,"BYTE",new mI(4,[8,16,16]));fe(cm,"KANJI",new mI(8,[8,10,12]));fe(cm,"ECI",new mI(7,[0,0,0]));var gp=Xi(function e(n,r){Ki(this,e),fe(this,"ordinal",void 0),fe(this,"formatBits",void 0),this.ordinal=n,this.formatBits=r});Ok=gp;fe(gp,"LOW",new Ok(0,1));fe(gp,"MEDIUM",new Ok(1,0));fe(gp,"QUARTILE",new Ok(2,3));fe(gp,"HIGH",new Ok(3,2));var P1=function(){function e(n,r,i){if(Ki(this,e),fe(this,"mode",void 0),fe(this,"numChars",void 0),fe(this,"bitData",void 0),this.mode=n,this.numChars=r,this.bitData=i,r<0)throw new RangeError("Invalid argument");this.bitData=i.slice()}return Xi(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(r){var i=[],o=lm(r),a;try{for(o.s();!(a=o.n()).done;){var s=a.value;ed(s,8,i)}}catch(l){o.e(l)}finally{o.f()}return new e(cm.BYTE,r.length,i)}},{key:"makeNumeric",value:function(r){if(!e.isNumeric(r))throw new RangeError("String contains non-numeric characters");for(var i=[],o=0;o<r.length;){var a=Math.min(r.length-o,3);ed(parseInt(r.substring(o,o+a),10),a*3+1,i),o+=a}return new e(cm.NUMERIC,r.length,i)}},{key:"makeAlphanumeric",value:function(r){if(!e.isAlphanumeric(r))throw new RangeError("String contains unencodable characters in alphanumeric mode");var i=[],o;for(o=0;o+2<=r.length;o+=2){var a=e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(o))*45;a+=e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(o+1)),ed(a,11,i)}return o<r.length&&ed(e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(o)),6,i),new e(cm.ALPHANUMERIC,r.length,i)}},{key:"makeSegments",value:function(r){return r==""?[]:e.isNumeric(r)?[e.makeNumeric(r)]:e.isAlphanumeric(r)?[e.makeAlphanumeric(r)]:[e.makeBytes(e.toUtf8ByteArray(r))]}},{key:"makeEci",value:function(r){var i=[];if(r<0)throw new RangeError("ECI assignment value out of range");if(r<128)ed(r,8,i);else if(r<16384)ed(2,2,i),ed(r,14,i);else if(r<1e6)ed(6,3,i),ed(r,21,i);else throw new RangeError("ECI assignment value out of range");return new e(cm.ECI,0,i)}},{key:"isNumeric",value:function(r){return e.NUMERIC_REGEX.test(r)}},{key:"isAlphanumeric",value:function(r){return e.ALPHANUMERIC_REGEX.test(r)}},{key:"getTotalBits",value:function(r,i){var o=0,a=lm(r),s;try{for(a.s();!(s=a.n()).done;){var l=s.value,c=l.mode.numCharCountBits(i);if(l.numChars>=1<<c)return 1/0;o+=4+c+l.bitData.length}}catch(u){a.e(u)}finally{a.f()}return o}},{key:"toUtf8ByteArray",value:function(r){for(var i=encodeURI(r),o=[],a=0;a<i.length;a++)i.charAt(a)!="%"?o.push(i.charCodeAt(a)):(o.push(parseInt(i.substring(a+1,a+3),16)),a+=2);return o}}]),e}();fe(P1,"NUMERIC_REGEX",/^[0-9]*$/);fe(P1,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);fe(P1,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var t_=function(){function e(n,r,i,o){Ki(this,e),fe(this,"size",void 0),fe(this,"mask",void 0),fe(this,"modules",[]),fe(this,"isFunction",[]),fe(this,"version",void 0),fe(this,"errorCorrectionLevel",void 0);var a=o;if(this.version=n,this.errorCorrectionLevel=r,n<e.MIN_VERSION||n>e.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=n*4+17;for(var s=[],l=0;l<this.size;l++)s.push(!1);for(var c=0;c<this.size;c++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();var u=this.addEccAndInterleave(i);if(this.drawCodewords(u),a==-1)for(var d=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var p=this.getPenaltyScore();p<d&&(a=f,d=p),this.applyMask(f)}Bd(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}return Xi(e,[{key:"getModule",value:function(r,i){return 0<=r&&r<this.size&&0<=i&&i<this.size&&this.modules[i][r]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var r=0;r<this.size;r++)this.setFunctionModule(6,r,r%2==0),this.setFunctionModule(r,6,r%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var i=this.getAlignmentPatternPositions(),o=i.length,a=0;a<o;a++)for(var s=0;s<o;s++)a==0&&s==0||a==0&&s==o-1||a==o-1&&s==0||this.drawAlignmentPattern(i[a],i[s]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(r){for(var i=this.errorCorrectionLevel.formatBits<<3|r,o=i,a=0;a<10;a++)o=o<<1^(o>>>9)*1335;var s=(i<<10|o)^21522;Bd(s>>>15==0);for(var l=0;l<=5;l++)this.setFunctionModule(8,l,wv(s,l));this.setFunctionModule(8,7,wv(s,6)),this.setFunctionModule(8,8,wv(s,7)),this.setFunctionModule(7,8,wv(s,8));for(var c=9;c<15;c++)this.setFunctionModule(14-c,8,wv(s,c));for(var u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,wv(s,u));for(var d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,wv(s,d));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var r=this.version,i=0;i<12;i++)r=r<<1^(r>>>11)*7973;var o=this.version<<12|r;Bd(o>>>18==0);for(var a=0;a<18;a++){var s=wv(o,a),l=this.size-11+a%3,c=Math.floor(a/3);this.setFunctionModule(l,c,s),this.setFunctionModule(c,l,s)}}}},{key:"drawFinderPattern",value:function(r,i){for(var o=-4;o<=4;o++)for(var a=-4;a<=4;a++){var s=Math.max(Math.abs(a),Math.abs(o)),l=r+a,c=i+o;0<=l&&l<this.size&&0<=c&&c<this.size&&this.setFunctionModule(l,c,s!=2&&s!=4)}}},{key:"drawAlignmentPattern",value:function(r,i){for(var o=-2;o<=2;o++)for(var a=-2;a<=2;a++)this.setFunctionModule(r+a,i+o,Math.max(Math.abs(a),Math.abs(o))!=1)}},{key:"setFunctionModule",value:function(r,i,o){this.modules[i][r]=o,this.isFunction[i][r]=!0}},{key:"addEccAndInterleave",value:function(r){var i=this.version,o=this.errorCorrectionLevel;if(r.length!=e.getNumDataCodewords(i,o))throw new RangeError("Invalid argument");for(var a=e.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][i],s=e.ECC_CODEWORDS_PER_BLOCK[o.ordinal][i],l=Math.floor(e.getNumRawDataModules(i)/8),c=a-l%a,u=Math.floor(l/a),d=[],f=e.reedSolomonComputeDivisor(s),p=0,h=0;p<a;p++){var g=r.slice(h,h+u-s+(p<c?0:1));h+=g.length;var v=e.reedSolomonComputeRemainder(g,f);p<c&&g.push(0),d.push(g.concat(v))}for(var y=[],_=function(E){d.forEach(function(w,C){(E!=u-s||C>=c)&&y.push(w[E])})},S=0;S<d[0].length;S++)_(S);return Bd(y.length==l),y}},{key:"drawCodewords",value:function(r){if(r.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var i=0,o=this.size-1;o>=1;o-=2){o==6&&(o=5);for(var a=0;a<this.size;a++)for(var s=0;s<2;s++){var l=o-s,c=(o+1&2)==0,u=c?this.size-1-a:a;!this.isFunction[u][l]&&i<r.length*8&&(this.modules[u][l]=wv(r[i>>>3],7-(i&7)),i++)}}Bd(i==r.length*8)}},{key:"applyMask",value:function(r){if(r<0||r>7)throw new RangeError("Mask value out of range");for(var i=0;i<this.size;i++)for(var o=0;o<this.size;o++){var a=void 0;switch(r){case 0:a=(o+i)%2==0;break;case 1:a=i%2==0;break;case 2:a=o%3==0;break;case 3:a=(o+i)%3==0;break;case 4:a=(Math.floor(o/3)+Math.floor(i/2))%2==0;break;case 5:a=o*i%2+o*i%3==0;break;case 6:a=(o*i%2+o*i%3)%2==0;break;case 7:a=((o+i)%2+o*i%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[i][o]&&a&&(this.modules[i][o]=!this.modules[i][o])}}},{key:"getPenaltyScore",value:function(){for(var r=0,i=0;i<this.size;i++){for(var o=!1,a=0,s=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[i][l]==o?(a++,a==5?r+=e.PENALTY_N1:a>5&&r++):(this.finderPenaltyAddHistory(a,s),o||(r+=this.finderPenaltyCountPatterns(s)*e.PENALTY_N3),o=this.modules[i][l],a=1);r+=this.finderPenaltyTerminateAndCount(o,a,s)*e.PENALTY_N3}for(var c=0;c<this.size;c++){for(var u=!1,d=0,f=[0,0,0,0,0,0,0],p=0;p<this.size;p++)this.modules[p][c]==u?(d++,d==5?r+=e.PENALTY_N1:d>5&&r++):(this.finderPenaltyAddHistory(d,f),u||(r+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),u=this.modules[p][c],d=1);r+=this.finderPenaltyTerminateAndCount(u,d,f)*e.PENALTY_N3}for(var h=0;h<this.size-1;h++)for(var g=0;g<this.size-1;g++){var v=this.modules[h][g];v==this.modules[h][g+1]&&v==this.modules[h+1][g]&&v==this.modules[h+1][g+1]&&(r+=e.PENALTY_N2)}var y=0,_=lm(this.modules),S;try{for(_.s();!(S=_.n()).done;){var b=S.value;y=b.reduce(function(C,x){return C+(x?1:0)},y)}}catch(C){_.e(C)}finally{_.f()}var E=this.size*this.size,w=Math.ceil(Math.abs(y*20-E*10)/E)-1;return Bd(0<=w&&w<=9),r+=w*e.PENALTY_N4,Bd(0<=r&&r<=2568888),r}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return[];for(var r=Math.floor(this.version/7)+2,i=this.version==32?26:Math.ceil((this.version*4+4)/(r*2-2))*2,o=[6],a=this.size-7;o.length<r;a-=i)o.splice(1,0,a);return o}},{key:"finderPenaltyCountPatterns",value:function(r){var i=r[1];Bd(i<=this.size*3);var o=i>0&&r[2]==i&&r[3]==i*3&&r[4]==i&&r[5]==i;return(o&&r[0]>=i*4&&r[6]>=i?1:0)+(o&&r[6]>=i*4&&r[0]>=i?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(r,i,o){var a=i;return r&&(this.finderPenaltyAddHistory(a,o),a=0),a+=this.size,this.finderPenaltyAddHistory(a,o),this.finderPenaltyCountPatterns(o)}},{key:"finderPenaltyAddHistory",value:function(r,i){var o=r;i[0]==0&&(o+=this.size),i.pop(),i.unshift(o)}}],[{key:"encodeText",value:function(r,i){var o=P1.makeSegments(r);return e.encodeSegments(o,i)}},{key:"encodeBinary",value:function(r,i){var o=P1.makeBytes(r);return e.encodeSegments([o],i)}},{key:"encodeSegments",value:function(r,i){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=o&&o<=a&&a<=e.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");var c,u;for(c=o;;c++){var d=e.getNumDataCodewords(c,i)*8,f=P1.getTotalBits(r,c);if(f<=d){u=f;break}if(c>=a)throw new RangeError("Data too long")}for(var p=i,h=0,g=[gp.MEDIUM,gp.QUARTILE,gp.HIGH];h<g.length;h++){var v=g[h];l&&u<=e.getNumDataCodewords(c,v)*8&&(p=v)}var y=[],_=lm(r),S;try{for(_.s();!(S=_.n()).done;){var b=S.value;ed(b.mode.modeBits,4,y),ed(b.numChars,b.mode.numCharCountBits(c),y);var E=lm(b.getData()),w;try{for(E.s();!(w=E.n()).done;){var C=w.value;y.push(C)}}catch(O){E.e(O)}finally{E.f()}}}catch(O){_.e(O)}finally{_.f()}Bd(y.length==u);var x=e.getNumDataCodewords(c,p)*8;Bd(y.length<=x),ed(0,Math.min(4,x-y.length),y),ed(0,(8-y.length%8)%8,y),Bd(y.length%8==0);for(var T=236;y.length<x;T^=253)ed(T,8,y);for(var R=[];R.length*8<y.length;)R.push(0);return y.forEach(function(O,M){return R[M>>>3]|=O<<7-(M&7)}),new e(c,p,R,s)}},{key:"getNumRawDataModules",value:function(r){if(r<e.MIN_VERSION||r>e.MAX_VERSION)throw new RangeError("Version number out of range");var i=(16*r+128)*r+64;if(r>=2){var o=Math.floor(r/7)+2;i-=(25*o-10)*o-55,r>=7&&(i-=36)}return Bd(208<=i&&i<=29648),i}},{key:"getNumDataCodewords",value:function(r,i){return Math.floor(e.getNumRawDataModules(r)/8)-e.ECC_CODEWORDS_PER_BLOCK[i.ordinal][r]*e.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][r]}},{key:"reedSolomonComputeDivisor",value:function(r){if(r<1||r>255)throw new RangeError("Degree out of range");for(var i=[],o=0;o<r-1;o++)i.push(0);i.push(1);for(var a=1,s=0;s<r;s++){for(var l=0;l<i.length;l++)i[l]=e.reedSolomonMultiply(i[l],a),l+1<i.length&&(i[l]^=i[l+1]);a=e.reedSolomonMultiply(a,2)}return i}},{key:"reedSolomonComputeRemainder",value:function(r,i){var o=i.map(function(){return 0}),a=lm(r),s;try{var l=function(){var u=s.value,d=u^o.shift();o.push(0),i.forEach(function(f,p){return o[p]^=e.reedSolomonMultiply(f,d)})};for(a.s();!(s=a.n()).done;)l()}catch(c){a.e(c)}finally{a.f()}return o}},{key:"reedSolomonMultiply",value:function(r,i){if(r>>>8||i>>>8)throw new RangeError("Byte out of range");for(var o=0,a=7;a>=0;a--)o=o<<1^(o>>>7)*285,o^=(i>>>a&1)*r;return Bd(o>>>8==0),o}}]),e}();fe(t_,"MIN_VERSION",1);fe(t_,"MAX_VERSION",40);fe(t_,"PENALTY_N1",3);fe(t_,"PENALTY_N2",3);fe(t_,"PENALTY_N3",40);fe(t_,"PENALTY_N4",10);fe(t_,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);fe(t_,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var uzt={L:gp.LOW,M:gp.MEDIUM,Q:gp.QUARTILE,H:gp.HIGH},PVe=128,AVe="L",DVe="#FFFFFF",kVe="#000000",LVe=!1,$Ve=1,dzt=4,fzt=0,pzt=.1;function FVe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[];return e.forEach(function(i,o){var a=null;i.forEach(function(s,l){if(!s&&a!==null){r.push("M".concat(a+n," ").concat(o+n,"h").concat(l-a,"v1H").concat(a+n,"z")),a=null;return}if(l===i.length-1){if(!s)return;a===null?r.push("M".concat(l+n,",").concat(o+n," h1v1H").concat(l+n,"z")):r.push("M".concat(a+n,",").concat(o+n," h").concat(l+1-a,"v1H").concat(a+n,"z"));return}s&&a===null&&(a=l)})}),r.join("")}function BVe(e,n){return e.slice().map(function(r,i){return i<n.y||i>=n.y+n.h?r:r.map(function(o,a){return a<n.x||a>=n.x+n.w?o:!1})})}function hzt(e,n,r,i){if(i==null)return null;var o=e.length+r*2,a=Math.floor(n*pzt),s=o/n,l=(i.width||a)*s,c=(i.height||a)*s,u=i.x==null?e.length/2-l/2:i.x*s,d=i.y==null?e.length/2-c/2:i.y*s,f=i.opacity==null?1:i.opacity,p=null;if(i.excavate){var h=Math.floor(u),g=Math.floor(d),v=Math.ceil(l+u-h),y=Math.ceil(c+d-g);p={x:h,y:g,w:v,h:y}}var _=i.crossOrigin;return{x:u,y:d,h:c,w:l,excavation:p,opacity:f,crossOrigin:_}}function gzt(e,n){return n!=null?Math.floor(n):e?dzt:fzt}var mzt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function jVe(e){var n=e.value,r=e.level,i=e.minVersion,o=e.includeMargin,a=e.marginSize,s=e.imageSettings,l=e.size,c=m.useMemo(function(){var g=P1.makeSegments(n);return t_.encodeSegments(g,uzt[r],i)},[n,r,i]),u=m.useMemo(function(){var g=c.getModules(),v=gzt(o,a),y=g.length+v*2,_=hzt(g,l,v,s);return{cells:g,margin:v,numCells:y,calculatedImageSettings:_}},[c,l,s,o,a]),d=u.cells,f=u.margin,p=u.numCells,h=u.calculatedImageSettings;return{qrcode:c,margin:f,cells:d,numCells:p,calculatedImageSettings:h}}var vzt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],UVe=V.forwardRef(function(n,r){var i=n.value,o=n.size,a=o===void 0?PVe:o,s=n.level,l=s===void 0?AVe:s,c=n.bgColor,u=c===void 0?DVe:c,d=n.fgColor,f=d===void 0?kVe:d,p=n.includeMargin,h=p===void 0?LVe:p,g=n.minVersion,v=g===void 0?$Ve:g,y=n.marginSize,_=n.style,S=n.imageSettings,b=Xt(n,vzt),E=S==null?void 0:S.src,w=m.useRef(null),C=m.useRef(null),x=m.useCallback(function(B){w.current=B,typeof r=="function"?r(B):r&&(r.current=B)},[r]),T=m.useState(!1),R=ke(T,2),O=R[1],M=jVe({value:i,level:l,minVersion:v,includeMargin:h,marginSize:y,imageSettings:S,size:a}),P=M.margin,k=M.cells,$=M.numCells,U=M.calculatedImageSettings;m.useEffect(function(){if(w.current!=null){var B=w.current,Y=B.getContext("2d");if(!Y)return;var q=k,K=C.current,H=U!=null&&K!==null&&K.complete&&K.naturalHeight!==0&&K.naturalWidth!==0;H&&U.excavation!=null&&(q=BVe(k,U.excavation));var G=window.devicePixelRatio||1;B.height=B.width=a*G;var Q=a/$*G;Y.scale(Q,Q),Y.fillStyle=u,Y.fillRect(0,0,$,$),Y.fillStyle=f,mzt?Y.fill(new Path2D(FVe(q,P))):k.forEach(function(le,Z){le.forEach(function(j,F){j&&Y.fillRect(F+P,Z+P,1,1)})}),U&&(Y.globalAlpha=U.opacity),H&&Y.drawImage(K,U.x+P,U.y+P,U.w,U.h)}}),m.useEffect(function(){O(!1)},[E]);var z=ee({height:a,width:a},_),D=null;return E!=null&&(D=V.createElement("img",{src:E,key:E,style:{display:"none"},onLoad:function(){O(!0)},ref:C,crossOrigin:U==null?void 0:U.crossOrigin})),V.createElement(V.Fragment,null,V.createElement("canvas",ft({style:z,height:a,width:a,ref:x,role:"img"},b)),D)});UVe.displayName="QRCodeCanvas";var yzt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],HVe=V.forwardRef(function(n,r){var i=n.value,o=n.size,a=o===void 0?PVe:o,s=n.level,l=s===void 0?AVe:s,c=n.bgColor,u=c===void 0?DVe:c,d=n.fgColor,f=d===void 0?kVe:d,p=n.includeMargin,h=p===void 0?LVe:p,g=n.minVersion,v=g===void 0?$Ve:g,y=n.title,_=n.marginSize,S=n.imageSettings,b=Xt(n,yzt),E=jVe({value:i,level:l,minVersion:v,includeMargin:h,marginSize:_,imageSettings:S,size:a}),w=E.margin,C=E.cells,x=E.numCells,T=E.calculatedImageSettings,R=C,O=null;S!=null&&T!=null&&(T.excavation!=null&&(R=BVe(C,T.excavation)),O=V.createElement("image",{href:S.src,height:T.h,width:T.w,x:T.x+w,y:T.y+w,preserveAspectRatio:"none",opacity:T.opacity,crossOrigin:T.crossOrigin}));var M=FVe(R,w);return V.createElement("svg",ft({height:a,width:a,viewBox:"0 0 ".concat(x," ").concat(x),ref:r,role:"img"},b),!!y&&V.createElement("title",null,y),V.createElement("path",{fill:u,d:"M0,0 h".concat(x,"v").concat(x,"H0z"),shapeRendering:"crispEdges"}),V.createElement("path",{fill:f,d:M,shapeRendering:"crispEdges"}),O)});HVe.displayName="QRCodeSVG";var _zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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 268H612V212h200v200zM464 544H160c-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 268H212V612h200v200zm452-268H560c-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 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},bzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:_zt}))},Szt=m.forwardRef(bzt),Ezt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Czt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Ezt}))},zVe=m.forwardRef(Czt),wzt={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"},xzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:wzt}))},Tzt=m.forwardRef(xzt),Ozt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},Rzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Ozt}))},VVe=m.forwardRef(Rzt),Izt={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"},Nzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Izt}))},Mzt=m.forwardRef(Nzt),Pzt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.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:"check-square",theme:"outlined"},Azt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Pzt}))},wie=m.forwardRef(Azt),Dzt={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"},kzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Dzt}))},Lzt=m.forwardRef(kzt),$zt={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"},Fzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:$zt}))},Bzt=m.forwardRef(Fzt),jzt={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 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},Uzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:jzt}))},Hzt=m.forwardRef(Uzt),zzt={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"},Vzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:zzt}))},sw=m.forwardRef(Vzt),Gzt={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"},Wzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Gzt}))},Rk=m.forwardRef(Wzt),Yzt={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"},qzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Yzt}))},Kzt=m.forwardRef(qzt),Xzt={icon:function(n,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{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:n}}]}},name:"file",theme:"twotone"},Qzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Xzt}))},Zzt=m.forwardRef(Qzt),Jzt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},eVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Jzt}))},GVe=m.forwardRef(eVt),tVt={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"},nVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:tVt}))},rVt=m.forwardRef(nVt),iVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M957.6 507.4L603.2 158.2a7.9 7.9 0 00-11.2 0L353.3 393.4a8.03 8.03 0 00-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 00-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0011.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0011.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.2H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.2l68.6-67.6 171.4 168.9-68.6 67.6zM713.1 658L450.3 399.1 597.6 254l262.8 259-147.3 145z"}}]},name:"highlight",theme:"outlined"},oVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:iVt}))},aVt=m.forwardRef(oVt),sVt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},lVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:sVt}))},cVt=m.forwardRef(lVt),uVt={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"},dVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:uVt}))},fVt=m.forwardRef(dVt),pVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},hVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:pVt}))},lw=m.forwardRef(hVt),gVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},mVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:gVt}))},WVe=m.forwardRef(mVt),vVt={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"},yVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:vVt}))},ST=m.forwardRef(yVt),_Vt={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"},bVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:_Vt}))},SVt=m.forwardRef(bVt),EVt={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"},CVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:EVt}))},wVt=m.forwardRef(CVt),xVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},TVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:xVt}))},Ik=m.forwardRef(TVt),OVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 394c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H400V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v236H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h228v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h164c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V394h164zM628 630H400V394h228v236z"}}]},name:"number",theme:"outlined"},RVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:OVt}))},IVt=m.forwardRef(RVt),NVt={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"},MVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:NVt}))},PVt=m.forwardRef(MVt),AVt={icon:function(n,r){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:n}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{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:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{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:n}}]}},name:"picture",theme:"twotone"},DVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:AVt}))},kVt=m.forwardRef(DVt),LVt={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"},$Vt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:LVt}))},Bde=m.forwardRef($Vt),FVt={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"},BVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:FVt}))},jVt=m.forwardRef(BVt),UVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},HVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:UVt}))},zVt=m.forwardRef(HVt),VVt={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 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},GVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:VVt}))},WVt=m.forwardRef(GVt),YVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 140h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-44 684h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm524-204h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 344h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm320 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm160 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm140-284c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V370c0-127-103-230-230-230H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h170c87.3 0 158 70.7 158 158v170zM236 96H92c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V104c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2zM920 780H776c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V788c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2z"}}]},name:"radius-setting",theme:"outlined"},qVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:YVt}))},KVt=m.forwardRef(qVt),XVt={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"},QVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:XVt}))},ZVt=m.forwardRef(QVt),JVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},eGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:JVt}))},tGt=m.forwardRef(eGt),nGt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},rGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:nGt}))},jde=m.forwardRef(rGt),iGt={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 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"},oGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:iGt}))},YVe=m.forwardRef(oGt),aGt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},sGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:aGt}))},Ude=m.forwardRef(sGt),lGt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},cGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:lGt}))},uGt=m.forwardRef(cGt),dGt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},fGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:dGt}))},pGt=m.forwardRef(fGt),hGt={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"},gGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:hGt}))},iS=m.forwardRef(gGt),mGt={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"},vGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:mGt}))},qVe=m.forwardRef(vGt),yGt={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"},_Gt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:yGt}))},bGt=m.forwardRef(_Gt),SGt=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],KVe=m.forwardRef(function(e,n){var r=e.className,i=e.component,o=e.viewBox,a=e.spin,s=e.rotate,l=e.tabIndex,c=e.onClick,u=e.children,d=Xt(e,SGt),f=m.useRef(),p=vg(f,n);jre(!!(i||u),"Should have `component` prop or `children`."),B7e(f);var h=m.useContext(N9),g=h.prefixCls,v=g===void 0?"anticon":g,y=h.rootClassName,_=Ce(y,v,fe({},"".concat(v,"-spin"),!!a&&!!i),r),S=Ce(fe({},"".concat(v,"-spin"),!!a)),b=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,E=ee(ee({},e2t),{},{className:S,style:b,viewBox:o});o||delete E.viewBox;var w=function(){return i?m.createElement(i,E,u):u?(jre(!!o||m.Children.count(u)===1&&m.isValidElement(u)&&m.Children.only(u).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",ft({},E,{viewBox:o}),u)):null},C=l;return C===void 0&&c&&(C=-1),m.createElement("span",ft({role:"img"},d,{ref:p,tabIndex:C,onClick:c,className:_}),w())});KVe.displayName="AntdIcon";var EGt=["type","children"],XVe=new Set;function CGt(e){return!!(typeof e=="string"&&e.length&&!XVe.has(e))}function nB(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e[n];if(CGt(r)){var i=document.createElement("script");i.setAttribute("src",r),i.setAttribute("data-namespace",r),e.length>n+1&&(i.onload=function(){nB(e,n+1)},i.onerror=function(){nB(e,n+1)}),XVe.add(r),document.body.appendChild(i)}}function QVe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.scriptUrl,r=e.extraCommonProps,i=r===void 0?{}:r;n&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(n)?nB(n.reverse()):nB([n]));var o=m.forwardRef(function(a,s){var l=a.type,c=a.children,u=Xt(a,EGt),d=null;return a.type&&(d=m.createElement("use",{xlinkHref:"#".concat(l)})),c&&(d=c),m.createElement(KVe,ft({},i,u,{ref:s}),d)});return o.displayName="Iconfont",o}const wGt=V.createElement(e_,null);function xGt(e){let{prefixCls:n,locale:r,onRefresh:i,statusRender:o,status:a}=e;const s=V.createElement(V.Fragment,null,V.createElement("p",{className:`${n}-expired`},r==null?void 0:r.expired),i&&V.createElement(qn,{type:"link",icon:V.createElement(ZVt,null),onClick:i},r==null?void 0:r.refresh)),l=V.createElement("p",{className:`${n}-scanned`},r==null?void 0:r.scanned),c={expired:s,loading:wGt,scanned:l};return(o??(f=>c[f.status]))({status:a,locale:r,onRefresh:i})}const TGt=e=>{const{componentCls:n,lineWidth:r,lineType:i,colorSplit:o}=e;return{[n]:Object.assign(Object.assign({},li(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${Ye(r)} ${i} ${o}`,position:"relative",overflow:"hidden",[`& > ${n}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${n}-expired, & > ${n}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${n}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},OGt=e=>({QRCodeMaskBackgroundColor:new Gr(e.colorBgContainer).setA(.96).toRgbString()}),RGt=Yr("QRCode",e=>{const n=wr(e,{QRCodeTextColor:e.colorText});return TGt(n)},OGt);var IGt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const ZVe=e=>{var n,r,i,o;const[,a]=Nl(),{value:s,type:l="canvas",icon:c="",size:u=160,iconSize:d,color:f=a.colorText,errorLevel:p="M",status:h="active",bordered:g=!0,onRefresh:v,style:y,className:_,rootClassName:S,prefixCls:b,bgColor:E="transparent",statusRender:w}=e,C=IGt(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:x}=m.useContext(Cn),T=x("qrcode",b),[R,O,M]=RGt(T),P={src:c,x:void 0,y:void 0,height:typeof d=="number"?d:(n=d==null?void 0:d.height)!==null&&n!==void 0?n:40,width:typeof d=="number"?d:(r=d==null?void 0:d.width)!==null&&r!==void 0?r:40,excavate:!0,crossOrigin:"anonymous"},k=Va(C,!0),$=Wr(C,Object.keys(k)),U=Object.assign({value:s,size:u,level:p,bgColor:E,fgColor:f,style:{width:y==null?void 0:y.width,height:y==null?void 0:y.height},imageSettings:c?P:void 0},k),[z]=Nu("QRCode");if(!s)return null;const D=Ce(T,_,S,O,M,{[`${T}-borderless`]:!g}),B=Object.assign(Object.assign({backgroundColor:E},y),{width:(i=y==null?void 0:y.width)!==null&&i!==void 0?i:u,height:(o=y==null?void 0:y.height)!==null&&o!==void 0?o:u});return R(V.createElement("div",Object.assign({},$,{className:D,style:B}),h!=="active"&&V.createElement("div",{className:`${T}-mask`},V.createElement(xGt,{prefixCls:T,locale:z,status:h,onRefresh:v,statusRender:w})),l==="canvas"?V.createElement(UVe,Object.assign({},U)):V.createElement(HVe,Object.assign({},U))))};function NGt(e,n){var r=e.disabled,i=e.prefixCls,o=e.character,a=e.characterRender,s=e.index,l=e.count,c=e.value,u=e.allowHalf,d=e.focused,f=e.onHover,p=e.onClick,h=function(w){f(w,s)},g=function(w){p(w,s)},v=function(w){w.keyCode===At.ENTER&&p(w,s)},y=s+1,_=new Set([i]);c===0&&s===0&&d?_.add("".concat(i,"-focused")):u&&c+.5>=y&&c<y?(_.add("".concat(i,"-half")),_.add("".concat(i,"-active")),d&&_.add("".concat(i,"-focused"))):(y<=c?_.add("".concat(i,"-full")):_.add("".concat(i,"-zero")),y===c&&d&&_.add("".concat(i,"-focused")));var S=typeof o=="function"?o(e):o,b=V.createElement("li",{className:Ce(Array.from(_)),ref:n},V.createElement("div",{onClick:r?null:g,onKeyDown:r?null:v,onMouseMove:r?null:h,role:"radio","aria-checked":c>s?"true":"false","aria-posinset":s+1,"aria-setsize":l,tabIndex:r?-1:0},V.createElement("div",{className:"".concat(i,"-first")},S),V.createElement("div",{className:"".concat(i,"-second")},S)));return a&&(b=a(b,e)),b}const MGt=V.forwardRef(NGt);function PGt(){var e=m.useRef({});function n(i){return e.current[i]}function r(i){return function(o){e.current[i]=o}}return[n,r]}function AGt(e){var n=e.pageXOffset,r="scrollLeft";if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function DGt(e){var n,r,i=e.ownerDocument,o=i.body,a=i&&i.documentElement,s=e.getBoundingClientRect();return n=s.left,r=s.top,n-=a.clientLeft||o.clientLeft||0,r-=a.clientTop||o.clientTop||0,{left:n,top:r}}function kGt(e){var n=DGt(e),r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=AGt(i),n.left}var LGt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function $Gt(e,n){var r=e.prefixCls,i=r===void 0?"rc-rate":r,o=e.className,a=e.defaultValue,s=e.value,l=e.count,c=l===void 0?5:l,u=e.allowHalf,d=u===void 0?!1:u,f=e.allowClear,p=f===void 0?!0:f,h=e.keyboard,g=h===void 0?!0:h,v=e.character,y=v===void 0?"★":v,_=e.characterRender,S=e.disabled,b=e.direction,E=b===void 0?"ltr":b,w=e.tabIndex,C=w===void 0?0:w,x=e.autoFocus,T=e.onHoverChange,R=e.onChange,O=e.onFocus,M=e.onBlur,P=e.onKeyDown,k=e.onMouseLeave,$=Xt(e,LGt),U=PGt(),z=ke(U,2),D=z[0],B=z[1],Y=V.useRef(null),q=function(){if(!S){var ae;(ae=Y.current)===null||ae===void 0||ae.focus()}};V.useImperativeHandle(n,function(){return{focus:q,blur:function(){if(!S){var ae;(ae=Y.current)===null||ae===void 0||ae.blur()}}}});var K=dr(a||0,{value:s}),H=ke(K,2),G=H[0],Q=H[1],le=dr(null),Z=ke(le,2),j=Z[0],F=Z[1],te=function(ae,Se){var xe=E==="rtl",ue=ae+1;if(d){var Me=D(ae),$e=kGt(Me),ge=Me.clientWidth;(xe&&Se-$e>ge/2||!xe&&Se-$e<ge/2)&&(ue-=.5)}return ue},oe=function(ae){Q(ae),R==null||R(ae)},de=V.useState(!1),pe=ke(de,2),me=pe[0],ve=pe[1],he=function(){ve(!0),O==null||O()},be=function(){ve(!1),M==null||M()},we=V.useState(null),De=ke(we,2),Ae=De[0],Ee=De[1],Re=function(ae,Se){var xe=te(Se,ae.pageX);xe!==j&&(Ee(xe),F(null)),T==null||T(xe)},Te=function(ae){S||(Ee(null),F(null),T==null||T(void 0)),ae&&(k==null||k(ae))},Oe=function(ae,Se){var xe=te(Se,ae.pageX),ue=!1;p&&(ue=xe===G),Te(),oe(ue?0:xe),F(ue?xe:null)},Ne=function(ae){var Se=ae.keyCode,xe=E==="rtl",ue=d?.5:1;g&&(Se===At.RIGHT&&G<c&&!xe?(oe(G+ue),ae.preventDefault()):Se===At.LEFT&&G>0&&!xe||Se===At.RIGHT&&G>0&&xe?(oe(G-ue),ae.preventDefault()):Se===At.LEFT&&G<c&&xe&&(oe(G+ue),ae.preventDefault())),P==null||P(ae)};V.useEffect(function(){x&&!S&&q()},[]);var je=new Array(c).fill(0).map(function(J,ae){return V.createElement(MGt,{ref:B(ae),index:ae,count:c,disabled:S,prefixCls:"".concat(i,"-star"),allowHalf:d,value:Ae===null?G:Ae,onClick:Oe,onHover:Re,key:J||ae,character:y,characterRender:_,focused:me})}),ne=Ce(i,o,fe(fe({},"".concat(i,"-disabled"),S),"".concat(i,"-rtl"),E==="rtl"));return V.createElement("ul",ft({className:ne,onMouseLeave:Te,tabIndex:S?-1:C,onFocus:S?null:he,onBlur:S?null:be,onKeyDown:S?null:Ne,ref:Y,role:"radiogroup"},Va($,{aria:!0,data:!0,attr:!0})),je)}const FGt=V.forwardRef($Gt),BGt=e=>{const{componentCls:n}=e;return{[`${n}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ye(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${n}-star-first, &-half ${n}-star-second`]:{opacity:1},[`&-half ${n}-star-first, &-full ${n}-star-second`]:{color:"inherit"}}}},jGt=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),UGt=e=>{const{componentCls:n}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${n} ${n}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),BGt(e)),jGt(e))}},HGt=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),zGt=Yr("Rate",e=>{const n=wr(e,{});return[UGt(n)]},HGt);var VGt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Swe=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,rootClassName:o,style:a,tooltips:s,character:l=m.createElement(uGt,null),disabled:c}=e,u=VGt(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),d=(w,C)=>{let{index:x}=C;return s?m.createElement(Sf,{title:s[x]},w):w},{getPrefixCls:f,direction:p,rate:h}=m.useContext(Cn),g=f("rate",r),[v,y,_]=zGt(g),S=Object.assign(Object.assign({},h==null?void 0:h.style),a),b=m.useContext(xs),E=c??b;return v(m.createElement(FGt,Object.assign({ref:n,character:l,characterRender:d,disabled:E},u,{className:Ce(i,o,y,_,h==null?void 0:h.className),style:S,prefixCls:g,direction:p})))}),GGt=()=>m.createElement("svg",{width:"252",height:"294"},m.createElement("title",null,"No Found"),m.createElement("defs",null,m.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(0 .012)"},m.createElement("mask",{fill:"#fff"}),m.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),m.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),m.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),m.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),m.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),m.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),m.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),m.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),m.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),m.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),m.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),m.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),m.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),m.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),m.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),m.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),m.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),m.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),m.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),m.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),m.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),m.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),m.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),m.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),m.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),m.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),m.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),m.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),m.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),m.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),m.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),m.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),m.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),m.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),m.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),m.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),m.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),m.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),m.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),WGt=()=>m.createElement("svg",{width:"254",height:"294"},m.createElement("title",null,"Server Error"),m.createElement("defs",null,m.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),m.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(0 .067)"},m.createElement("mask",{fill:"#fff"}),m.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),m.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),m.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),m.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),m.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),m.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),m.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),m.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),m.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),m.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),m.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),m.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),m.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),m.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),m.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),m.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),m.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),m.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),m.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),m.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),m.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),m.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),m.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),m.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),m.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),m.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),m.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),m.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),m.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),m.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),m.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),m.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),m.createElement("mask",{fill:"#fff"}),m.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),m.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),m.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),m.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),m.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),m.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),m.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),m.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),m.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),m.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),m.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),YGt=e=>{const{componentCls:n,lineHeightHeading3:r,iconCls:i,padding:o,paddingXL:a,paddingXS:s,paddingLG:l,marginXS:c,lineHeight:u}=e;return{[n]:{padding:`${Ye(e.calc(l).mul(2).equal())} ${Ye(a)}`,"&-rtl":{direction:"rtl"}},[`${n} ${n}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${n} ${n}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${i}`]:{fontSize:e.iconFontSize}},[`${n} ${n}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:r,marginBlock:c,textAlign:"center"},[`${n} ${n}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${n} ${n}-content`]:{marginTop:l,padding:`${Ye(l)} ${Ye(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${n} ${n}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:s,"&:last-child":{marginInlineEnd:0}}}}},qGt=e=>{const{componentCls:n,iconCls:r}=e;return{[`${n}-success ${n}-icon > ${r}`]:{color:e.resultSuccessIconColor},[`${n}-error ${n}-icon > ${r}`]:{color:e.resultErrorIconColor},[`${n}-info ${n}-icon > ${r}`]:{color:e.resultInfoIconColor},[`${n}-warning ${n}-icon > ${r}`]:{color:e.resultWarningIconColor}}},KGt=e=>[YGt(e),qGt(e)],XGt=e=>KGt(e),QGt=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),ZGt=Yr("Result",e=>{const n=e.colorInfo,r=e.colorError,i=e.colorSuccess,o=e.colorWarning,a=wr(e,{resultInfoIconColor:n,resultErrorIconColor:r,resultSuccessIconColor:i,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[XGt(a)]},QGt),JGt=()=>m.createElement("svg",{width:"251",height:"294"},m.createElement("title",null,"Unauthorized"),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),m.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),m.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),m.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),m.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),m.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),m.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),m.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),m.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),m.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),m.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),m.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),m.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),m.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),m.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),m.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),m.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),m.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),m.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),m.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),m.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),m.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),m.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),m.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),m.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),m.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),m.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),m.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),m.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),m.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),m.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),m.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),m.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),m.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),m.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),m.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),eWt={success:tw,error:ev,info:eS,warning:bGt},Nk={404:GGt,500:WGt,403:JGt},tWt=Object.keys(Nk),nWt=e=>{let{prefixCls:n,icon:r,status:i}=e;const o=Ce(`${n}-icon`);if(tWt.includes(`${i}`)){const s=Nk[i];return m.createElement("div",{className:`${o} ${n}-image`},m.createElement(s,null))}const a=m.createElement(eWt[i]);return r===null||r===!1?null:m.createElement("div",{className:o},r||a)},rWt=e=>{let{prefixCls:n,extra:r}=e;return r?m.createElement("div",{className:`${n}-extra`},r):null},Mk=e=>{let{prefixCls:n,className:r,rootClassName:i,subTitle:o,title:a,style:s,children:l,status:c="info",icon:u,extra:d}=e;const{getPrefixCls:f,direction:p,result:h}=m.useContext(Cn),g=f("result",n),[v,y,_]=ZGt(g),S=Ce(g,`${g}-${c}`,r,h==null?void 0:h.className,i,{[`${g}-rtl`]:p==="rtl"},y,_),b=Object.assign(Object.assign({},h==null?void 0:h.style),s);return v(m.createElement("div",{className:S,style:b},m.createElement(nWt,{prefixCls:g,status:c,icon:u}),m.createElement("div",{className:`${g}-title`},a),o&&m.createElement("div",{className:`${g}-subtitle`},o),m.createElement(rWt,{prefixCls:g,extra:d}),l&&m.createElement("div",{className:`${g}-content`},l)))};Mk.PRESENTED_IMAGE_403=Nk[403];Mk.PRESENTED_IMAGE_404=Nk[404];Mk.PRESENTED_IMAGE_500=Nk[500];var iWt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],JVe=m.forwardRef(function(e,n){var r,i=e.prefixCls,o=i===void 0?"rc-switch":i,a=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,h=e.onChange,g=e.onKeyDown,v=Xt(e,iWt),y=dr(!1,{value:s,defaultValue:l}),_=ke(y,2),S=_[0],b=_[1];function E(T,R){var O=S;return c||(O=T,b(O),h==null||h(O,R)),O}function w(T){T.which===At.LEFT?E(!1,T):T.which===At.RIGHT&&E(!0,T),g==null||g(T)}function C(T){var R=E(!S,T);p==null||p(R,T)}var x=Ce(o,a,(r={},fe(r,"".concat(o,"-checked"),S),fe(r,"".concat(o,"-disabled"),c),r));return m.createElement("button",ft({},v,{type:"button",role:"switch","aria-checked":S,disabled:c,className:x,ref:n,onKeyDown:w,onClick:C}),u,m.createElement("span",{className:"".concat(o,"-inner")},m.createElement("span",{className:"".concat(o,"-inner-checked")},d),m.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});JVe.displayName="Switch";const oWt=e=>{const{componentCls:n,trackHeightSM:r,trackPadding:i,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:s,handleSizeSM:l,calc:c}=e,u=`${n}-inner`,d=Ye(c(l).add(c(i).mul(2)).equal()),f=Ye(c(s).mul(2).equal());return{[n]:{[`&${n}-small`]:{minWidth:o,height:r,lineHeight:Ye(r),[`${n}-inner`]:{paddingInlineStart:s,paddingInlineEnd:a,[`${u}-checked, ${u}-unchecked`]:{minHeight:r},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:l,height:l},[`${n}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:a,paddingInlineEnd:s,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${Ye(c(l).add(i).equal())})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${n}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},aWt=e=>{const{componentCls:n,handleSize:r,calc:i}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:i(i(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},sWt=e=>{const{componentCls:n,trackPadding:r,handleBg:i,handleShadow:o,handleSize:a,calc:s}=e,l=`${n}-handle`;return{[n]:{[l]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:i,borderRadius:s(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${l}`]:{insetInlineStart:`calc(100% - ${Ye(s(a).add(r).equal())})`},[`&:not(${n}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},lWt=e=>{const{componentCls:n,trackHeight:r,trackPadding:i,innerMinMargin:o,innerMaxMargin:a,handleSize:s,calc:l}=e,c=`${n}-inner`,u=Ye(l(s).add(l(i).mul(2)).equal()),d=Ye(l(a).mul(2).equal());return{[n]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-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:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(i).mul(2).equal(),marginInlineEnd:l(i).mul(-1).mul(2).equal()}},[`&${n}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(i).mul(-1).mul(2).equal(),marginInlineEnd:l(i).mul(2).equal()}}}}}},cWt=e=>{const{componentCls:n,trackHeight:r,trackMinWidth:i}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:i,height:r,lineHeight:Ye(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${n}-disabled)`]:{background:e.colorTextTertiary}}),Op(e)),{[`&${n}-checked`]:{background:e.switchColor,[`&:hover:not(${n}-disabled)`]:{background:e.colorPrimaryHover}},[`&${n}-loading, &${n}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${n}-rtl`]:{direction:"rtl"}})}},uWt=e=>{const{fontSize:n,lineHeight:r,controlHeight:i,colorWhite:o}=e,a=n*r,s=i/2,l=2,c=a-l*2,u=s-l*2;return{trackHeight:a,trackHeightSM:s,trackMinWidth:c*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Gr("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},dWt=Yr("Switch",e=>{const n=wr(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[cWt(n),lWt(n),sWt(n),aWt(n),oWt(n)]},uWt);var fWt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const pWt=m.forwardRef((e,n)=>{const{prefixCls:r,size:i,disabled:o,loading:a,className:s,rootClassName:l,style:c,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:h}=e,g=fWt(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,y]=dr(!1,{value:u??d,defaultValue:f??p}),{getPrefixCls:_,direction:S,switch:b}=m.useContext(Cn),E=m.useContext(xs),w=(o??E)||a,C=_("switch",r),x=m.createElement("div",{className:`${C}-handle`},a&&m.createElement(Nm,{className:`${C}-loading-icon`})),[T,R,O]=dWt(C),M=Xs(i),P=Ce(b==null?void 0:b.className,{[`${C}-small`]:M==="small",[`${C}-loading`]:a,[`${C}-rtl`]:S==="rtl"},s,l,R,O),k=Object.assign(Object.assign({},b==null?void 0:b.style),c),$=function(){y(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return T(m.createElement(F9,{component:"Switch"},m.createElement(JVe,Object.assign({},g,{checked:v,onChange:$,prefixCls:C,className:P,style:k,disabled:w,ref:n,loadingIcon:x}))))}),sC=pWt;sC.__ANT_SWITCH=!0;var Hde=m.createContext(null),eGe=m.createContext({}),hWt=function(n){for(var r=n.prefixCls,i=n.level,o=n.isStart,a=n.isEnd,s="".concat(r,"-indent-unit"),l=[],c=0;c<i;c+=1)l.push(m.createElement("span",{key:c,className:Ce(s,fe(fe({},"".concat(s,"-start"),o[c]),"".concat(s,"-end"),a[c]))}));return m.createElement("span",{"aria-hidden":"true",className:"".concat(r,"-indent")},l)};const gWt=m.memo(hWt);var mWt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Ewe="open",Cwe="close",vWt="---",rB=function(n){var r,i,o=n.eventKey,a=n.className,s=n.style,l=n.dragOver,c=n.dragOverGapTop,u=n.dragOverGapBottom,d=n.isLeaf,f=n.isStart,p=n.isEnd,h=n.expanded,g=n.selected,v=n.checked,y=n.halfChecked,_=n.loading,S=n.domRef,b=n.active,E=n.data,w=n.onMouseMove,C=n.selectable,x=Xt(n,mWt),T=V.useContext(Hde),R=V.useContext(eGe),O=V.useRef(null),M=V.useState(!1),P=ke(M,2),k=P[0],$=P[1],U=V.useMemo(function(){var xe;return!!(T.disabled||n.disabled||(xe=R.nodeDisabled)!==null&&xe!==void 0&&xe.call(R,E))},[T.disabled,n.disabled,R.nodeDisabled,E]),z=V.useMemo(function(){return!T.checkable||n.checkable===!1?!1:T.checkable},[T.checkable,n.checkable]),D=function(ue){U||T.onNodeSelect(ue,tl(n))},B=function(ue){U||!z||n.disableCheckbox||T.onNodeCheck(ue,tl(n),!v)},Y=V.useMemo(function(){return typeof C=="boolean"?C:T.selectable},[C,T.selectable]),q=function(ue){T.onNodeClick(ue,tl(n)),Y?D(ue):B(ue)},K=function(ue){T.onNodeDoubleClick(ue,tl(n))},H=function(ue){T.onNodeMouseEnter(ue,tl(n))},G=function(ue){T.onNodeMouseLeave(ue,tl(n))},Q=function(ue){T.onNodeContextMenu(ue,tl(n))},le=V.useMemo(function(){return!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(E)))},[T.draggable,E]),Z=function(ue){ue.stopPropagation(),$(!0),T.onNodeDragStart(ue,n);try{ue.dataTransfer.setData("text/plain","")}catch{}},j=function(ue){ue.preventDefault(),ue.stopPropagation(),T.onNodeDragEnter(ue,n)},F=function(ue){ue.preventDefault(),ue.stopPropagation(),T.onNodeDragOver(ue,n)},te=function(ue){ue.stopPropagation(),T.onNodeDragLeave(ue,n)},oe=function(ue){ue.stopPropagation(),$(!1),T.onNodeDragEnd(ue,n)},de=function(ue){ue.preventDefault(),ue.stopPropagation(),$(!1),T.onNodeDrop(ue,n)},pe=function(ue){_||T.onNodeExpand(ue,tl(n))},me=V.useMemo(function(){var xe=nd(T.keyEntities,o)||{},ue=xe.children;return!!(ue||[]).length},[T.keyEntities,o]),ve=V.useMemo(function(){return d===!1?!1:d||!T.loadData&&!me||T.loadData&&n.loaded&&!me},[d,T.loadData,me,n.loaded]);V.useEffect(function(){_||typeof T.loadData=="function"&&h&&!ve&&!n.loaded&&T.onNodeLoad(tl(n))},[_,T.loadData,T.onNodeLoad,h,ve,n]);var he=V.useMemo(function(){var xe;return(xe=T.draggable)!==null&&xe!==void 0&&xe.icon?V.createElement("span",{className:"".concat(T.prefixCls,"-draggable-icon")},T.draggable.icon):null},[T.draggable]),be=function(ue){var Me=n.switcherIcon||T.switcherIcon;return typeof Me=="function"?Me(ee(ee({},n),{},{isLeaf:ue})):Me},we=function(){if(ve){var ue=be(!0);return ue!==!1?V.createElement("span",{className:Ce("".concat(T.prefixCls,"-switcher"),"".concat(T.prefixCls,"-switcher-noop"))},ue):null}var Me=be(!1);return Me!==!1?V.createElement("span",{onClick:pe,className:Ce("".concat(T.prefixCls,"-switcher"),"".concat(T.prefixCls,"-switcher_").concat(h?Ewe:Cwe))},Me):null},De=V.useMemo(function(){if(!z)return null;var xe=typeof z!="boolean"?z:null;return V.createElement("span",{className:Ce("".concat(T.prefixCls,"-checkbox"),fe(fe(fe({},"".concat(T.prefixCls,"-checkbox-checked"),v),"".concat(T.prefixCls,"-checkbox-indeterminate"),!v&&y),"".concat(T.prefixCls,"-checkbox-disabled"),U||n.disableCheckbox)),onClick:B,role:"checkbox","aria-checked":y?"mixed":v,"aria-disabled":U||n.disableCheckbox,"aria-label":"Select ".concat(typeof n.title=="string"?n.title:"tree node")},xe)},[z,v,y,U,n.disableCheckbox,n.title]),Ae=V.useMemo(function(){return ve?null:h?Ewe:Cwe},[ve,h]),Ee=V.useMemo(function(){return V.createElement("span",{className:Ce("".concat(T.prefixCls,"-iconEle"),"".concat(T.prefixCls,"-icon__").concat(Ae||"docu"),fe({},"".concat(T.prefixCls,"-icon_loading"),_))})},[T.prefixCls,Ae,_]),Re=V.useMemo(function(){var xe=!!T.draggable,ue=!n.disabled&&xe&&T.dragOverNodeKey===o;return ue?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),Te=V.useMemo(function(){var xe=n.title,ue=xe===void 0?vWt:xe,Me="".concat(T.prefixCls,"-node-content-wrapper"),$e;if(T.showIcon){var ge=n.icon||T.icon;$e=ge?V.createElement("span",{className:Ce("".concat(T.prefixCls,"-iconEle"),"".concat(T.prefixCls,"-icon__customize"))},typeof ge=="function"?ge(n):ge):Ee}else T.loadData&&_&&($e=Ee);var Ve;return typeof ue=="function"?Ve=ue(E):T.titleRender?Ve=T.titleRender(E):Ve=ue,V.createElement("span",{ref:O,title:typeof ue=="string"?ue:"",className:Ce(Me,"".concat(Me,"-").concat(Ae||"normal"),fe({},"".concat(T.prefixCls,"-node-selected"),!U&&(g||k))),onMouseEnter:H,onMouseLeave:G,onContextMenu:Q,onClick:q,onDoubleClick:K},$e,V.createElement("span",{className:"".concat(T.prefixCls,"-title")},Ve),Re)},[T.prefixCls,T.showIcon,n,T.icon,Ee,T.titleRender,E,Ae,H,G,Q,q,K]),Oe=Va(x,{aria:!0,data:!0}),Ne=nd(T.keyEntities,o)||{},je=Ne.level,ne=p[p.length-1],J=!U&&le,ae=T.draggingNodeKey===o,Se=C!==void 0?{"aria-selected":!!C}:void 0;return V.createElement("div",ft({ref:S,role:"treeitem","aria-expanded":d?void 0:h,className:Ce(a,"".concat(T.prefixCls,"-treenode"),(i={},fe(fe(fe(fe(fe(fe(fe(fe(fe(fe(i,"".concat(T.prefixCls,"-treenode-disabled"),U),"".concat(T.prefixCls,"-treenode-switcher-").concat(h?"open":"close"),!d),"".concat(T.prefixCls,"-treenode-checkbox-checked"),v),"".concat(T.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(T.prefixCls,"-treenode-selected"),g),"".concat(T.prefixCls,"-treenode-loading"),_),"".concat(T.prefixCls,"-treenode-active"),b),"".concat(T.prefixCls,"-treenode-leaf-last"),ne),"".concat(T.prefixCls,"-treenode-draggable"),le),"dragging",ae),fe(fe(fe(fe(fe(fe(fe(i,"drop-target",T.dropTargetKey===o),"drop-container",T.dropContainerKey===o),"drag-over",!U&&l),"drag-over-gap-top",!U&&c),"drag-over-gap-bottom",!U&&u),"filter-node",(r=T.filterTreeNode)===null||r===void 0?void 0:r.call(T,tl(n))),"".concat(T.prefixCls,"-treenode-leaf"),ve))),style:s,draggable:J,onDragStart:J?Z:void 0,onDragEnter:le?j:void 0,onDragOver:le?F:void 0,onDragLeave:le?te:void 0,onDrop:le?de:void 0,onDragEnd:le?oe:void 0,onMouseMove:w},Se,Oe),V.createElement(gWt,{prefixCls:T.prefixCls,level:je,isStart:f,isEnd:p}),he,we(),De,Te)};rB.isTreeNode=1;function xv(e,n){if(!e)return[];var r=e.slice(),i=r.indexOf(n);return i>=0&&r.splice(i,1),r}function H_(e,n){var r=(e||[]).slice();return r.indexOf(n)===-1&&r.push(n),r}function zde(e){return e.split("-")}function yWt(e,n){var r=[],i=nd(n,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(s){var l=s.key,c=s.children;r.push(l),o(c)})}return o(i.children),r}function _Wt(e){if(e.parent){var n=zde(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function bWt(e){var n=zde(e.pos);return Number(n[n.length-1])===0}function wwe(e,n,r,i,o,a,s,l,c,u){var d,f=e.clientX,p=e.clientY,h=e.target.getBoundingClientRect(),g=h.top,v=h.height,y=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),_=(y-12)/i,S=c.filter(function(z){var D;return(D=l[z])===null||D===void 0||(D=D.children)===null||D===void 0?void 0:D.length}),b=nd(l,r.eventKey);if(p<g+v/2){var E=s.findIndex(function(z){return z.key===b.key}),w=E<=0?0:E-1,C=s[w].key;b=nd(l,C)}var x=b.key,T=b,R=b.key,O=0,M=0;if(!S.includes(x))for(var P=0;P<_&&_Wt(b);P+=1)b=b.parent,M+=1;var k=n.data,$=b.node,U=!0;return bWt(b)&&b.level===0&&p<g+v/2&&a({dragNode:k,dropNode:$,dropPosition:-1})&&b.key===r.eventKey?O=-1:(T.children||[]).length&&S.includes(R)?a({dragNode:k,dropNode:$,dropPosition:0})?O=0:U=!1:M===0?_>-1.5?a({dragNode:k,dropNode:$,dropPosition:1})?O=1:U=!1:a({dragNode:k,dropNode:$,dropPosition:0})?O=0:a({dragNode:k,dropNode:$,dropPosition:1})?O=1:U=!1:a({dragNode:k,dropNode:$,dropPosition:1})?O=1:U=!1,{dropPosition:O,dropLevelOffset:M,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:R,dropContainerKey:O===0?null:((d=b.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:U}}function xwe(e,n){if(e){var r=n.multiple;return r?e.slice():e.length?[e[0]]:e}}function Sq(e){if(!e)return null;var n;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else if(cn(e)==="object")n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return qi(!1,"`checkedKeys` is not an array or an object"),null;return n}function Twe(e,n){var r=new Set;function i(o){if(!r.has(o)){var a=nd(n,o);if(a){r.add(o);var s=a.parent,l=a.node;l.disabled||s&&i(s.key)}}}return(e||[]).forEach(function(o){i(o)}),Tt(r)}var SWt=function(n){var r=n.dropPosition,i=n.dropLevelOffset,o=n.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(r){case-1:a.top=0,a.left=-i*o;break;case 1:a.bottom=0,a.left=-i*o;break;case 0:a.bottom=0,a.left=o;break}return V.createElement("div",{style:a})};function tGe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function EWt(e,n){var r=m.useState(!1),i=ke(r,2),o=i[0],a=i[1];ti(function(){if(o)return e(),function(){n()}},[o]),ti(function(){return a(!0),function(){a(!1)}},[])}var CWt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],wWt=m.forwardRef(function(e,n){var r=e.className,i=e.style,o=e.motion,a=e.motionNodes,s=e.motionType,l=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=Xt(e,CWt),p=m.useState(!0),h=ke(p,2),g=h[0],v=h[1],y=m.useContext(Hde),_=y.prefixCls,S=a&&s!=="hide";ti(function(){a&&S!==g&&v(S)},[a]);var b=function(){a&&l()},E=m.useRef(!1),w=function(){a&&!E.current&&(E.current=!0,c())};EWt(b,w);var C=function(T){S===T&&w()};return a?m.createElement(Ws,ft({ref:n,visible:g},o,{motionAppear:s==="show",onVisibleChanged:C}),function(x,T){var R=x.className,O=x.style;return m.createElement("div",{ref:T,className:Ce("".concat(_,"-treenode-motion"),R),style:O},a.map(function(M){var P=Object.assign({},(tGe(M.data),M.data)),k=M.title,$=M.key,U=M.isStart,z=M.isEnd;delete P.children;var D=tP($,d);return m.createElement(rB,ft({},P,D,{title:k,active:u,data:M.data,key:$,isStart:U,isEnd:z}))}))}):m.createElement(rB,ft({domRef:n,className:r,style:i},f,{active:u}))});function xWt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e.length,i=n.length;if(Math.abs(r-i)!==1)return{add:!1,key:null};function o(a,s){var l=new Map;a.forEach(function(u){l.set(u,!0)});var c=s.filter(function(u){return!l.has(u)});return c.length===1?c[0]:null}return r<i?{add:!0,key:o(e,n)}:{add:!1,key:o(n,e)}}function Owe(e,n,r){var i=e.findIndex(function(l){return l.key===r}),o=e[i+1],a=n.findIndex(function(l){return l.key===r});if(o){var s=n.findIndex(function(l){return l.key===o.key});return n.slice(a+1,s)}return n.slice(a+1)}var TWt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Rwe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},OWt=function(){},lC="RC_TREE_MOTION_".concat(Math.random()),xie={key:lC},nGe={key:lC,level:0,index:0,pos:"0",node:xie,nodes:[xie]},Iwe={parent:null,children:[],pos:nGe.pos,data:xie,title:null,key:lC,isStart:[],isEnd:[]};function Nwe(e,n,r,i){return n===!1||!r?e:e.slice(0,Math.ceil(r/i)+1)}function Mwe(e){var n=e.key,r=e.pos;return Ck(n,r)}function RWt(e){for(var n=String(e.data.key),r=e;r.parent;)r=r.parent,n="".concat(r.data.key," > ").concat(n);return n}var IWt=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,s=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,g=e.dropPosition,v=e.motion,y=e.height,_=e.itemHeight,S=e.virtual,b=e.scrollWidth,E=e.focusable,w=e.activeItem,C=e.focused,x=e.tabIndex,T=e.onKeyDown,R=e.onFocus,O=e.onBlur,M=e.onActiveChange,P=e.onListChangeStart,k=e.onListChangeEnd,$=Xt(e,TWt),U=m.useRef(null),z=m.useRef(null);m.useImperativeHandle(n,function(){return{scrollTo:function(Te){U.current.scrollTo(Te)},getIndentWidth:function(){return z.current.offsetWidth}}});var D=m.useState(o),B=ke(D,2),Y=B[0],q=B[1],K=m.useState(i),H=ke(K,2),G=H[0],Q=H[1],le=m.useState(i),Z=ke(le,2),j=Z[0],F=Z[1],te=m.useState([]),oe=ke(te,2),de=oe[0],pe=oe[1],me=m.useState(null),ve=ke(me,2),he=ve[0],be=ve[1],we=m.useRef(i);we.current=i;function De(){var Re=we.current;Q(Re),F(Re),pe([]),be(null),k()}ti(function(){q(o);var Re=xWt(Y,o);if(Re.key!==null)if(Re.add){var Te=G.findIndex(function(ae){var Se=ae.key;return Se===Re.key}),Oe=Nwe(Owe(G,i,Re.key),S,y,_),Ne=G.slice();Ne.splice(Te+1,0,Iwe),F(Ne),pe(Oe),be("show")}else{var je=i.findIndex(function(ae){var Se=ae.key;return Se===Re.key}),ne=Nwe(Owe(i,G,Re.key),S,y,_),J=i.slice();J.splice(je+1,0,Iwe),F(J),pe(ne),be("hide")}else G!==i&&(Q(i),F(i))},[o,i]),m.useEffect(function(){p||De()},[p]);var Ae=v?j:i,Ee={expandedKeys:o,selectedKeys:a,loadedKeys:l,loadingKeys:c,checkedKeys:s,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:g,keyEntities:d};return m.createElement(m.Fragment,null,C&&w&&m.createElement("span",{style:Rwe,"aria-live":"assertive"},RWt(w)),m.createElement("div",null,m.createElement("input",{style:Rwe,disabled:E===!1||f,tabIndex:E!==!1?x:null,onKeyDown:T,onFocus:R,onBlur:O,value:"",onChange:OWt,"aria-label":"for screen reader"})),m.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},m.createElement("div",{className:"".concat(r,"-indent")},m.createElement("div",{ref:z,className:"".concat(r,"-indent-unit")}))),m.createElement(Wue,ft({},$,{data:Ae,itemKey:Mwe,height:y,fullHeight:!1,virtual:S,itemHeight:_,scrollWidth:b,prefixCls:"".concat(r,"-list"),ref:U,role:"tree",onVisibleChange:function(Te){Te.every(function(Oe){return Mwe(Oe)!==lC})&&De()}}),function(Re){var Te=Re.pos,Oe=Object.assign({},(tGe(Re.data),Re.data)),Ne=Re.title,je=Re.key,ne=Re.isStart,J=Re.isEnd,ae=Ck(je,Te);delete Oe.key,delete Oe.children;var Se=tP(ae,Ee);return m.createElement(wWt,ft({},Oe,Se,{title:Ne,active:!!w&&je===w.key,pos:Te,data:Re.data,isStart:ne,isEnd:J,motion:v,motionNodes:je===lC?de:null,motionType:he,onMotionStart:P,onMotionEnd:De,treeNodeRequiredProps:Ee,onMouseMove:function(){M(null)}}))}))}),NWt=10,Vde=function(e){Kc(r,e);var n=Iu(r);function r(){var i;Ki(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),fe(Tn(i),"destroyed",!1),fe(Tn(i),"delayedDragEnterLogic",void 0),fe(Tn(i),"loadingRetryTimes",{}),fe(Tn(i),"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:q8()}),fe(Tn(i),"dragStartMousePosition",null),fe(Tn(i),"dragNodeProps",null),fe(Tn(i),"currentMouseOverDroppableNodeKey",null),fe(Tn(i),"listRef",m.createRef()),fe(Tn(i),"onNodeDragStart",function(l,c){var u=i.state,d=u.expandedKeys,f=u.keyEntities,p=i.props.onDragStart,h=c.eventKey;i.dragNodeProps=c,i.dragStartMousePosition={x:l.clientX,y:l.clientY};var g=xv(d,h);i.setState({draggingNodeKey:h,dragChildrenKeys:yWt(h,f),indent:i.listRef.current.getIndentWidth()}),i.setExpandedKeys(g),window.addEventListener("dragend",i.onWindowDragEnd),p==null||p({event:l,node:tl(c)})}),fe(Tn(i),"onNodeDragEnter",function(l,c){var u=i.state,d=u.expandedKeys,f=u.keyEntities,p=u.dragChildrenKeys,h=u.flattenNodes,g=u.indent,v=i.props,y=v.onDragEnter,_=v.onExpand,S=v.allowDrop,b=v.direction,E=c.pos,w=c.eventKey;if(i.currentMouseOverDroppableNodeKey!==w&&(i.currentMouseOverDroppableNodeKey=w),!i.dragNodeProps){i.resetDragState();return}var C=wwe(l,i.dragNodeProps,c,g,i.dragStartMousePosition,S,h,f,d,b),x=C.dropPosition,T=C.dropLevelOffset,R=C.dropTargetKey,O=C.dropContainerKey,M=C.dropTargetPos,P=C.dropAllowed,k=C.dragOverNodeKey;if(p.includes(R)||!P){i.resetDragState();return}if(i.delayedDragEnterLogic||(i.delayedDragEnterLogic={}),Object.keys(i.delayedDragEnterLogic).forEach(function($){clearTimeout(i.delayedDragEnterLogic[$])}),i.dragNodeProps.eventKey!==c.eventKey&&(l.persist(),i.delayedDragEnterLogic[E]=window.setTimeout(function(){if(i.state.draggingNodeKey!==null){var $=Tt(d),U=nd(f,c.eventKey);U&&(U.children||[]).length&&($=H_(d,c.eventKey)),i.props.hasOwnProperty("expandedKeys")||i.setExpandedKeys($),_==null||_($,{node:tl(c),expanded:!0,nativeEvent:l.nativeEvent})}},800)),i.dragNodeProps.eventKey===R&&T===0){i.resetDragState();return}i.setState({dragOverNodeKey:k,dropPosition:x,dropLevelOffset:T,dropTargetKey:R,dropContainerKey:O,dropTargetPos:M,dropAllowed:P}),y==null||y({event:l,node:tl(c),expandedKeys:d})}),fe(Tn(i),"onNodeDragOver",function(l,c){var u=i.state,d=u.dragChildrenKeys,f=u.flattenNodes,p=u.keyEntities,h=u.expandedKeys,g=u.indent,v=i.props,y=v.onDragOver,_=v.allowDrop,S=v.direction;if(i.dragNodeProps){var b=wwe(l,i.dragNodeProps,c,g,i.dragStartMousePosition,_,f,p,h,S),E=b.dropPosition,w=b.dropLevelOffset,C=b.dropTargetKey,x=b.dropContainerKey,T=b.dropTargetPos,R=b.dropAllowed,O=b.dragOverNodeKey;d.includes(C)||!R||(i.dragNodeProps.eventKey===C&&w===0?i.state.dropPosition===null&&i.state.dropLevelOffset===null&&i.state.dropTargetKey===null&&i.state.dropContainerKey===null&&i.state.dropTargetPos===null&&i.state.dropAllowed===!1&&i.state.dragOverNodeKey===null||i.resetDragState():E===i.state.dropPosition&&w===i.state.dropLevelOffset&&C===i.state.dropTargetKey&&x===i.state.dropContainerKey&&T===i.state.dropTargetPos&&R===i.state.dropAllowed&&O===i.state.dragOverNodeKey||i.setState({dropPosition:E,dropLevelOffset:w,dropTargetKey:C,dropContainerKey:x,dropTargetPos:T,dropAllowed:R,dragOverNodeKey:O}),y==null||y({event:l,node:tl(c)}))}}),fe(Tn(i),"onNodeDragLeave",function(l,c){i.currentMouseOverDroppableNodeKey===c.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(i.resetDragState(),i.currentMouseOverDroppableNodeKey=null);var u=i.props.onDragLeave;u==null||u({event:l,node:tl(c)})}),fe(Tn(i),"onWindowDragEnd",function(l){i.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",i.onWindowDragEnd)}),fe(Tn(i),"onNodeDragEnd",function(l,c){var u=i.props.onDragEnd;i.setState({dragOverNodeKey:null}),i.cleanDragState(),u==null||u({event:l,node:tl(c)}),i.dragNodeProps=null,window.removeEventListener("dragend",i.onWindowDragEnd)}),fe(Tn(i),"onNodeDrop",function(l,c){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=i.state,p=f.dragChildrenKeys,h=f.dropPosition,g=f.dropTargetKey,v=f.dropTargetPos,y=f.dropAllowed;if(y){var _=i.props.onDrop;if(i.setState({dragOverNodeKey:null}),i.cleanDragState(),g!==null){var S=ee(ee({},tP(g,i.getTreeNodeRequiredProps())),{},{active:((u=i.getActiveItem())===null||u===void 0?void 0:u.key)===g,data:nd(i.state.keyEntities,g).node}),b=p.includes(g);qi(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var E=zde(v),w={event:l,node:tl(S),dragNode:i.dragNodeProps?tl(i.dragNodeProps):null,dragNodesKeys:[i.dragNodeProps.eventKey].concat(p),dropToGap:h!==0,dropPosition:h+Number(E[E.length-1])};d||_==null||_(w),i.dragNodeProps=null}}}),fe(Tn(i),"cleanDragState",function(){var l=i.state.draggingNodeKey;l!==null&&i.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),i.dragStartMousePosition=null,i.currentMouseOverDroppableNodeKey=null}),fe(Tn(i),"triggerExpandActionExpand",function(l,c){var u=i.state,d=u.expandedKeys,f=u.flattenNodes,p=c.expanded,h=c.key,g=c.isLeaf;if(!(g||l.shiftKey||l.metaKey||l.ctrlKey)){var v=f.filter(function(_){return _.key===h})[0],y=tl(ee(ee({},tP(h,i.getTreeNodeRequiredProps())),{},{data:v.data}));i.setExpandedKeys(p?xv(d,h):H_(d,h)),i.onNodeExpand(l,y)}}),fe(Tn(i),"onNodeClick",function(l,c){var u=i.props,d=u.onClick,f=u.expandAction;f==="click"&&i.triggerExpandActionExpand(l,c),d==null||d(l,c)}),fe(Tn(i),"onNodeDoubleClick",function(l,c){var u=i.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&i.triggerExpandActionExpand(l,c),d==null||d(l,c)}),fe(Tn(i),"onNodeSelect",function(l,c){var u=i.state.selectedKeys,d=i.state,f=d.keyEntities,p=d.fieldNames,h=i.props,g=h.onSelect,v=h.multiple,y=c.selected,_=c[p.key],S=!y;S?v?u=H_(u,_):u=[_]:u=xv(u,_);var b=u.map(function(E){var w=nd(f,E);return w?w.node:null}).filter(Boolean);i.setUncontrolledState({selectedKeys:u}),g==null||g(u,{event:"select",selected:S,node:c,selectedNodes:b,nativeEvent:l.nativeEvent})}),fe(Tn(i),"onNodeCheck",function(l,c,u){var d=i.state,f=d.keyEntities,p=d.checkedKeys,h=d.halfCheckedKeys,g=i.props,v=g.checkStrictly,y=g.onCheck,_=c.key,S,b={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(v){var E=u?H_(p,_):xv(p,_),w=xv(h,_);S={checked:E,halfChecked:w},b.checkedNodes=E.map(function(M){return nd(f,M)}).filter(Boolean).map(function(M){return M.node}),i.setUncontrolledState({checkedKeys:E})}else{var C=dy([].concat(Tt(p),[_]),!0,f),x=C.checkedKeys,T=C.halfCheckedKeys;if(!u){var R=new Set(x);R.delete(_);var O=dy(Array.from(R),{checked:!1,halfCheckedKeys:T},f);x=O.checkedKeys,T=O.halfCheckedKeys}S=x,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=T,x.forEach(function(M){var P=nd(f,M);if(P){var k=P.node,$=P.pos;b.checkedNodes.push(k),b.checkedNodesPositions.push({node:k,pos:$})}}),i.setUncontrolledState({checkedKeys:x},!1,{halfCheckedKeys:T})}y==null||y(S,b)}),fe(Tn(i),"onNodeLoad",function(l){var c,u=l.key,d=i.state.keyEntities,f=nd(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var p=new Promise(function(h,g){i.setState(function(v){var y=v.loadedKeys,_=y===void 0?[]:y,S=v.loadingKeys,b=S===void 0?[]:S,E=i.props,w=E.loadData,C=E.onLoad;if(!w||_.includes(u)||b.includes(u))return null;var x=w(l);return x.then(function(){var T=i.state.loadedKeys,R=H_(T,u);C==null||C(R,{event:"load",node:l}),i.setUncontrolledState({loadedKeys:R}),i.setState(function(O){return{loadingKeys:xv(O.loadingKeys,u)}}),h()}).catch(function(T){if(i.setState(function(O){return{loadingKeys:xv(O.loadingKeys,u)}}),i.loadingRetryTimes[u]=(i.loadingRetryTimes[u]||0)+1,i.loadingRetryTimes[u]>=NWt){var R=i.state.loadedKeys;qi(!1,"Retry for `loadData` many times but still failed. No more retry."),i.setUncontrolledState({loadedKeys:H_(R,u)}),h()}g(T)}),{loadingKeys:H_(b,u)}})});return p.catch(function(){}),p}}),fe(Tn(i),"onNodeMouseEnter",function(l,c){var u=i.props.onMouseEnter;u==null||u({event:l,node:c})}),fe(Tn(i),"onNodeMouseLeave",function(l,c){var u=i.props.onMouseLeave;u==null||u({event:l,node:c})}),fe(Tn(i),"onNodeContextMenu",function(l,c){var u=i.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),fe(Tn(i),"onFocus",function(){var l=i.props.onFocus;i.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];l==null||l.apply(void 0,u)}),fe(Tn(i),"onBlur",function(){var l=i.props.onBlur;i.setState({focused:!1}),i.onActiveChange(null);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];l==null||l.apply(void 0,u)}),fe(Tn(i),"getTreeNodeRequiredProps",function(){var l=i.state,c=l.expandedKeys,u=l.selectedKeys,d=l.loadedKeys,f=l.loadingKeys,p=l.checkedKeys,h=l.halfCheckedKeys,g=l.dragOverNodeKey,v=l.dropPosition,y=l.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:p||[],halfCheckedKeys:h||[],dragOverNodeKey:g,dropPosition:v,keyEntities:y}}),fe(Tn(i),"setExpandedKeys",function(l){var c=i.state,u=c.treeData,d=c.fieldNames,f=fq(u,l,d);i.setUncontrolledState({expandedKeys:l,flattenNodes:f},!0)}),fe(Tn(i),"onNodeExpand",function(l,c){var u=i.state.expandedKeys,d=i.state,f=d.listChanging,p=d.fieldNames,h=i.props,g=h.onExpand,v=h.loadData,y=c.expanded,_=c[p.key];if(!f){var S=u.includes(_),b=!y;if(qi(y&&S||!y&&!S,"Expand state not sync with index check"),u=b?H_(u,_):xv(u,_),i.setExpandedKeys(u),g==null||g(u,{node:c,expanded:b,nativeEvent:l.nativeEvent}),b&&v){var E=i.onNodeLoad(c);E&&E.then(function(){var w=fq(i.state.treeData,u,p);i.setUncontrolledState({flattenNodes:w})}).catch(function(){var w=i.state.expandedKeys,C=xv(w,_);i.setExpandedKeys(C)})}}}),fe(Tn(i),"onListChangeStart",function(){i.setUncontrolledState({listChanging:!0})}),fe(Tn(i),"onListChangeEnd",function(){setTimeout(function(){i.setUncontrolledState({listChanging:!1})})}),fe(Tn(i),"onActiveChange",function(l){var c=i.state.activeKey,u=i.props,d=u.onActiveChange,f=u.itemScrollOffset,p=f===void 0?0:f;c!==l&&(i.setState({activeKey:l}),l!==null&&i.scrollTo({key:l,offset:p}),d==null||d(l))}),fe(Tn(i),"getActiveItem",function(){var l=i.state,c=l.activeKey,u=l.flattenNodes;return c===null?null:u.find(function(d){var f=d.key;return f===c})||null}),fe(Tn(i),"offsetActiveKey",function(l){var c=i.state,u=c.flattenNodes,d=c.activeKey,f=u.findIndex(function(g){var v=g.key;return v===d});f===-1&&l<0&&(f=u.length),f=(f+l+u.length)%u.length;var p=u[f];if(p){var h=p.key;i.onActiveChange(h)}else i.onActiveChange(null)}),fe(Tn(i),"onKeyDown",function(l){var c=i.state,u=c.activeKey,d=c.expandedKeys,f=c.checkedKeys,p=c.fieldNames,h=i.props,g=h.onKeyDown,v=h.checkable,y=h.selectable;switch(l.which){case At.UP:{i.offsetActiveKey(-1),l.preventDefault();break}case At.DOWN:{i.offsetActiveKey(1),l.preventDefault();break}}var _=i.getActiveItem();if(_&&_.data){var S=i.getTreeNodeRequiredProps(),b=_.data.isLeaf===!1||!!(_.data[p.children]||[]).length,E=tl(ee(ee({},tP(u,S)),{},{data:_.data,active:!0}));switch(l.which){case At.LEFT:{b&&d.includes(u)?i.onNodeExpand({},E):_.parent&&i.onActiveChange(_.parent.key),l.preventDefault();break}case At.RIGHT:{b&&!d.includes(u)?i.onNodeExpand({},E):_.children&&_.children.length&&i.onActiveChange(_.children[0].key),l.preventDefault();break}case At.ENTER:case At.SPACE:{v&&!E.disabled&&E.checkable!==!1&&!E.disableCheckbox?i.onNodeCheck({},E,!f.includes(u)):!v&&y&&!E.disabled&&E.selectable!==!1&&i.onNodeSelect({},E);break}}}g==null||g(l)}),fe(Tn(i),"setUncontrolledState",function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!i.destroyed){var d=!1,f=!0,p={};Object.keys(l).forEach(function(h){if(i.props.hasOwnProperty(h)){f=!1;return}d=!0,p[h]=l[h]}),d&&(!c||f)&&i.setState(ee(ee({},p),u))}}),fe(Tn(i),"scrollTo",function(l){i.listRef.current.scrollTo(l)}),i}return Xi(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,s=o.itemScrollOffset,l=s===void 0?0:s;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:l}))}},{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 o=this.state,a=o.focused,s=o.flattenNodes,l=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,p=o.dropTargetKey,h=o.dropPosition,g=o.dragOverNodeKey,v=o.indent,y=this.props,_=y.prefixCls,S=y.className,b=y.style,E=y.showLine,w=y.focusable,C=y.tabIndex,x=C===void 0?0:C,T=y.selectable,R=y.showIcon,O=y.icon,M=y.switcherIcon,P=y.draggable,k=y.checkable,$=y.checkStrictly,U=y.disabled,z=y.motion,D=y.loadData,B=y.filterTreeNode,Y=y.height,q=y.itemHeight,K=y.scrollWidth,H=y.virtual,G=y.titleRender,Q=y.dropIndicatorRender,le=y.onContextMenu,Z=y.onScroll,j=y.direction,F=y.rootClassName,te=y.rootStyle,oe=Va(this.props,{aria:!0,data:!0}),de;P&&(cn(P)==="object"?de=P:typeof P=="function"?de={nodeDraggable:P}:de={});var pe={prefixCls:_,selectable:T,showIcon:R,icon:O,switcherIcon:M,draggable:de,draggingNodeKey:c,checkable:k,checkStrictly:$,disabled:U,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:p,dropPosition:h,dragOverNodeKey:g,indent:v,direction:j,dropIndicatorRender:Q,loadData:D,filterTreeNode:B,titleRender:G,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};return m.createElement(Hde.Provider,{value:pe},m.createElement("div",{className:Ce(_,S,F,fe(fe(fe({},"".concat(_,"-show-line"),E),"".concat(_,"-focused"),a),"".concat(_,"-active-focused"),u!==null)),style:te},m.createElement(IWt,ft({ref:this.listRef,prefixCls:_,style:b,data:s,disabled:U,selectable:T,checkable:!!k,motion:z,dragging:c!==null,height:Y,itemHeight:q,virtual:H,focusable:w,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:le,onScroll:Z,scrollWidth:K},this.getTreeNodeRequiredProps(),oe))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var s=a.prevProps,l={prevProps:o};function c(x){return!s&&o.hasOwnProperty(x)||s&&s[x]!==o[x]}var u,d=a.fieldNames;if(c("fieldNames")&&(d=q8(o.fieldNames),l.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(qi(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=X8t(o.children)),u){l.treeData=u;var f=xde(u,{fieldNames:d});l.keyEntities=ee(fe({},lC,nGe),f.keyEntities)}var p=l.keyEntities||a.keyEntities;if(c("expandedKeys")||s&&c("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!s&&o.defaultExpandParent?Twe(o.expandedKeys,p):o.expandedKeys;else if(!s&&o.defaultExpandAll){var h=ee({},p);delete h[lC];var g=[];Object.keys(h).forEach(function(x){var T=h[x];T.children&&T.children.length&&g.push(T.key)}),l.expandedKeys=g}else!s&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Twe(o.defaultExpandedKeys,p):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var v=fq(u||a.treeData,l.expandedKeys||a.expandedKeys,d);l.flattenNodes=v}if(o.selectable&&(c("selectedKeys")?l.selectedKeys=xwe(o.selectedKeys,o):!s&&o.defaultSelectedKeys&&(l.selectedKeys=xwe(o.defaultSelectedKeys,o))),o.checkable){var y;if(c("checkedKeys")?y=Sq(o.checkedKeys)||{}:!s&&o.defaultCheckedKeys?y=Sq(o.defaultCheckedKeys)||{}:u&&(y=Sq(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),y){var _=y,S=_.checkedKeys,b=S===void 0?[]:S,E=_.halfCheckedKeys,w=E===void 0?[]:E;if(!o.checkStrictly){var C=dy(b,!0,p);b=C.checkedKeys,w=C.halfCheckedKeys}l.checkedKeys=b,l.halfCheckedKeys=w}}return c("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),r}(m.Component);fe(Vde,"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:SWt,allowDrop:function(){return!0},expandAction:!1});fe(Vde,"TreeNode",rB);const MWt=e=>{let{treeCls:n,treeNodeCls:r,directoryNodeSelectedBg:i,directoryNodeSelectedColor:o,motionDurationMid:a,borderRadius:s,controlItemBgHover:l}=e;return{[`${n}${n}-directory ${r}`]:{[`${n}-node-content-wrapper`]:{position:"static",[`> *:not(${n}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:s},"&:hover:before":{background:l}},[`${n}-switcher, ${n}-checkbox, ${n}-draggable-icon`]:{zIndex:1},"&-selected":{[`${n}-switcher, ${n}-draggable-icon`]:{color:o},[`${n}-node-content-wrapper`]:{color:o,background:"transparent","&:before, &:hover:before":{background:i}}}}}},PWt=new kr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),AWt=(e,n)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${n.motionDurationSlow}`}}}),DWt=(e,n)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:n.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Ye(n.lineWidthBold)} solid ${n.colorPrimary}`,borderRadius:"50%",content:'""'}}}),kWt=(e,n)=>{const{treeCls:r,treeNodeCls:i,treeNodePadding:o,titleHeight:a,indentSize:s,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=n;return{[r]:Object.assign(Object.assign({},li(n)),{background:n.colorBgContainer,borderRadius:n.borderRadius,transition:`background-color ${n.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${r}-rtl ${r}-switcher_close ${r}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${r}-active-focused)`]:Object.assign({},Xy(n)),[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${i}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${n.colorPrimary}`,opacity:0,animationName:PWt,animationDuration:n.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:n.borderRadius}}},[i]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:Ye(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${r}-node-content-wrapper`]:{color:n.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${r}-checkbox-disabled + ${r}-node-selected,&${i}-disabled${i}-selected ${r}-node-content-wrapper`]:{backgroundColor:d},[`&:not(${i}-disabled)`]:{[`${r}-node-content-wrapper`]:{"&:hover":{color:n.nodeHoverColor}}},[`&-active ${r}-node-content-wrapper`]:{background:n.controlItemBgHover},[`&:not(${i}-disabled).filter-node ${r}-title`]:{color:n.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${r}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:u},[`&${i}-disabled ${r}-draggable-icon`]:{visibility:"hidden"}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:s}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher, ${r}-checkbox`]:{marginInlineEnd:n.calc(n.calc(a).sub(n.controlInteractiveSize)).div(2).equal()},[`${r}-switcher`]:Object.assign(Object.assign({},AWt(e,n)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${n.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:n.borderRadius,transition:`all ${n.motionDurationSlow}`},[`&:not(${r}-switcher-noop):hover:before`]:{backgroundColor:n.colorBgTextHover},[`&_close ${r}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:n.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:n.calc(a).div(2).equal(),bottom:n.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${n.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:n.calc(n.calc(a).div(2).equal()).mul(.8).equal(),height:n.calc(a).div(2).equal(),borderBottom:`1px solid ${n.colorBorder}`,content:'""'}}}),[`${r}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:n.paddingXS,background:"transparent",borderRadius:n.borderRadius,cursor:"pointer",transition:`all ${n.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},DWt(e,n)),{"&:hover":{backgroundColor:c},[`&${r}-node-selected`]:{color:n.nodeSelectedColor,backgroundColor:l},[`${r}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${i}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${n.colorPrimary}`},"&-show-line":{[`${r}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:n.calc(a).div(2).equal(),bottom:n.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${n.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${i}-leaf-last ${r}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Ye(n.calc(a).div(2).equal())} !important`}})}},rGe=(e,n)=>{const r=`.${e}`,i=`${r}-treenode`,o=n.calc(n.paddingXS).div(2).equal(),a=wr(n,{treeCls:r,treeNodeCls:i,treeNodePadding:o});return[kWt(e,a),MWt(a)]},iGe=e=>{const{controlHeightSM:n,controlItemBgHover:r,controlItemBgActive:i}=e,o=n;return{titleHeight:o,indentSize:o,nodeHoverBg:r,nodeHoverColor:e.colorText,nodeSelectedBg:i,nodeSelectedColor:e.colorText}},LWt=e=>{const{colorTextLightSolid:n,colorPrimary:r}=e;return Object.assign(Object.assign({},iGe(e)),{directoryNodeSelectedColor:n,directoryNodeSelectedBg:r})};Yr("Tree",(e,n)=>{let{prefixCls:r}=n;return[{[e.componentCls]:bU(`${r}-checkbox`,e)},rGe(r,e),pk(e)]},LWt);const $Wt=e=>{const{prefixCls:n,switcherIcon:r,treeNodeProps:i,showLine:o,switcherLoadingIcon:a}=e,{isLeaf:s,expanded:l,loading:c}=i;if(c)return m.isValidElement(a)?a:m.createElement(Nm,{className:`${n}-switcher-loading-icon`});let u;if(o&&typeof o=="object"&&(u=o.showLeafIcon),s){if(!o)return null;if(typeof u!="boolean"&&u){const p=typeof u=="function"?u(i):u,h=`${n}-switcher-line-custom-icon`;return m.isValidElement(p)?Ys(p,{className:Ce(p.props.className||"",h)}):p}return u?m.createElement(Kzt,{className:`${n}-switcher-line-icon`}):m.createElement("span",{className:`${n}-switcher-leaf-line`})}const d=`${n}-switcher-icon`,f=typeof r=="function"?r(i):r;return m.isValidElement(f)?Ys(f,{className:Ce(f.props.className||"",d)}):f!==void 0?f:o?l?m.createElement(wVt,{className:`${n}-switcher-line-icon`}):m.createElement(jVt,{className:`${n}-switcher-line-icon`}):m.createElement(Mzt,{className:d})},FWt=e=>{const n=e!=null&&e.algorithm?eC(e.algorithm):eC(ck),r=Object.assign(Object.assign({},DO),e==null?void 0:e.token);return due(r,{override:e==null?void 0:e.token},n,bue)};function BWt(e){const{sizeUnit:n,sizeStep:r}=e,i=r-2;return{sizeXXL:n*(i+10),sizeXL:n*(i+6),sizeLG:n*(i+2),sizeMD:n*(i+2),sizeMS:n*(i+1),size:n*i,sizeSM:n*i,sizeXS:n*(i-1),sizeXXS:n*(i-1)}}const jWt=(e,n)=>{const r=n??ck(e),i=r.fontSizeSM,o=r.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),BWt(n??e)),a7e(i)),{controlHeight:o}),o7e(Object.assign(Object.assign({},r),{controlHeight:o})))},Wf=(e,n)=>new Gr(e).setA(n).toRgbString(),xx=(e,n)=>new Gr(e).lighten(n).toHexString(),UWt=e=>{const n=C0(e,{theme:"dark"});return{1:n[0],2:n[1],3:n[2],4:n[3],5:n[6],6:n[5],7:n[4],8:n[6],9:n[5],10:n[4]}},HWt=(e,n)=>{const r=e||"#000",i=n||"#fff";return{colorBgBase:r,colorTextBase:i,colorText:Wf(i,.85),colorTextSecondary:Wf(i,.65),colorTextTertiary:Wf(i,.45),colorTextQuaternary:Wf(i,.25),colorFill:Wf(i,.18),colorFillSecondary:Wf(i,.12),colorFillTertiary:Wf(i,.08),colorFillQuaternary:Wf(i,.04),colorBgSolid:Wf(i,.95),colorBgSolidHover:Wf(i,1),colorBgSolidActive:Wf(i,.9),colorBgElevated:xx(r,12),colorBgContainer:xx(r,8),colorBgLayout:xx(r,0),colorBgSpotlight:xx(r,26),colorBgBlur:Wf(i,.04),colorBorder:xx(r,26),colorBorderSecondary:xx(r,19)}},zWt=(e,n)=>{const r=Object.keys(mue).map(o=>{const a=C0(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((s,l,c)=>(s[`${o}-${c+1}`]=a[c],s[`${o}${c+1}`]=a[c],s),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),i=n??ck(e);return Object.assign(Object.assign(Object.assign({},i),r),i7e(e,{generateColorPalettes:UWt,generateNeutralColorPalettes:HWt}))};function VWt(){const[e,n,r]=Nl();return{theme:e,token:n,hashId:r}}const cu={defaultSeed:pA.token,useToken:VWt,defaultAlgorithm:ck,darkAlgorithm:zWt,compactAlgorithm:jWt,getDesignToken:FWt,defaultConfig:pA,_internalContext:vue};var GWt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const{TimePicker:WWt,RangePicker:YWt}=gd,qWt=m.forwardRef((e,n)=>m.createElement(YWt,Object.assign({},e,{picker:"time",mode:void 0,ref:n}))),Py=m.forwardRef((e,n)=>{var{addon:r,renderExtraFooter:i,variant:o,bordered:a}=e,s=GWt(e,["addon","renderExtraFooter","variant","bordered"]);const[l]=Jy("timePicker",o,a),c=m.useMemo(()=>{if(i)return i;if(r)return r},[r,i]);return m.createElement(WWt,Object.assign({},s,{mode:void 0,ref:n,renderExtraFooter:c,variant:l}))}),oGe=tS(Py,"popupAlign",void 0,"picker");Py._InternalPanelDoNotUseOrYouWillBeFired=oGe;Py.RangePicker=qWt;Py._InternalPanelDoNotUseOrYouWillBeFired=oGe;const KWt=function(e){var n=m.useRef({valueLabels:new Map});return m.useMemo(function(){var r=n.current.valueLabels,i=new Map,o=e.map(function(a){var s=a.value,l=a.label,c=l??r.get(s);return i.set(s,c),ee(ee({},a),{},{label:c})});return n.current.valueLabels=i,[o]},[e])};var XWt=function(n,r,i,o){return m.useMemo(function(){var a=function(h){return h.map(function(g){var v=g.value;return v})},s=a(n),l=a(r),c=s.filter(function(p){return!o[p]}),u=s,d=l;if(i){var f=dy(s,!0,o);u=f.checkedKeys,d=f.halfCheckedKeys}return[Array.from(new Set([].concat(Tt(c),Tt(u)))),d]},[n,r,i,o])},QWt=function(n){return Array.isArray(n)?n:n!==void 0?[n]:[]},ZWt=function(n){var r=n||{},i=r.label,o=r.value,a=r.children;return{_title:i?[i]:["title","label"],value:o||"value",key:o||"value",children:a||"children"}},Tie=function(n){return!n||n.disabled||n.disableCheckbox||n.checkable===!1},JWt=function(n,r){var i=[],o=function a(s){s.forEach(function(l){var c=l[r.children];c&&(i.push(l[r.value]),a(c))})};return o(n),i},Pwe=function(n){return n==null};const eYt=function(e,n){return m.useMemo(function(){var r=xde(e,{fieldNames:n,initWrapper:function(o){return ee(ee({},o),{},{valueEntities:new Map})},processEntity:function(o,a){var s=o.node[n.value];a.valueEntities.set(s,o)}});return r},[e,n])};var Gde=function(){return null},tYt=["children","value"];function aGe(e){return Tl(e).map(function(n){if(!m.isValidElement(n)||!n.type)return null;var r=n,i=r.key,o=r.props,a=o.children,s=o.value,l=Xt(o,tYt),c=ee({key:i,value:s},l),u=aGe(a);return u.length&&(c.children=u),c}).filter(function(n){return n})}function Oie(e){if(!e)return e;var n=ee({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return qi(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),n}}),n}function nYt(e,n,r,i,o,a){var s=null,l=null;function c(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(h,g){var v="".concat(f,"-").concat(g),y=h[a.value],_=r.includes(y),S=u(h[a.children]||[],v,_),b=m.createElement(Gde,h,S.map(function(w){return w.node}));if(n===y&&(s=b),_){var E={pos:v,node:b,children:S};return p||l.push(E),E}return null}).filter(function(h){return h})}l||(l=[],u(i),l.sort(function(d,f){var p=d.node.props.value,h=f.node.props.value,g=r.indexOf(p),v=r.indexOf(h);return g-v}))}Object.defineProperty(e,"triggerNode",{get:function(){return qi(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),s}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return qi(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),o?l:l.map(function(d){var f=d.node;return f})}})}var rYt=function(n,r,i){var o=i.fieldNames,a=i.treeNodeFilterProp,s=i.filterTreeNode,l=o.children;return m.useMemo(function(){if(!r||s===!1)return n;var c=typeof s=="function"?s:function(d,f){return String(f[a]).toUpperCase().includes(r.toUpperCase())},u=function d(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(h,g){var v=g[l],y=p||c(r,Oie(g)),_=d(v||[],y);return(y||_.length)&&h.push(ee(ee({},g),{},fe({isLeaf:void 0},l,_))),h},[])};return u(n)},[n,r,l,a,s])};function Awe(e){var n=m.useRef();n.current=e;var r=m.useCallback(function(){return n.current.apply(n,arguments)},[]);return r}function iYt(e,n){var r=n.id,i=n.pId,o=n.rootPId,a=new Map,s=[];return e.forEach(function(l){var c=l[r],u=ee(ee({},l),{},{key:l.key||c});a.set(c,u)}),a.forEach(function(l){var c=l[i],u=a.get(c);u?(u.children=u.children||[],u.children.push(l)):(c===o||o===null)&&s.push(l)}),s}function oYt(e,n,r){return m.useMemo(function(){if(e){if(r){var i=ee({id:"id",pId:"pId",rootPId:null},cn(r)==="object"?r:{});return iYt(e,i)}return e}return aGe(n)},[n,r,e])}var sGe=m.createContext(null),lGe=m.createContext(null),aYt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},sYt=function(n,r){var i=Uue(),o=i.prefixCls,a=i.multiple,s=i.searchValue,l=i.toggleOpen,c=i.open,u=i.notFoundContent,d=m.useContext(lGe),f=d.virtual,p=d.listHeight,h=d.listItemHeight,g=d.listItemScrollOffset,v=d.treeData,y=d.fieldNames,_=d.onSelect,S=d.dropdownMatchSelectWidth,b=d.treeExpandAction,E=d.treeTitleRender,w=d.onPopupScroll,C=d.leftMaxCount,x=d.leafCountOnly,T=d.valueEntities,R=m.useContext(sGe),O=R.checkable,M=R.checkedKeys,P=R.halfCheckedKeys,k=R.treeExpandedKeys,$=R.treeDefaultExpandAll,U=R.treeDefaultExpandedKeys,z=R.onTreeExpand,D=R.treeIcon,B=R.showTreeIcon,Y=R.switcherIcon,q=R.treeLine,K=R.treeNodeFilterProp,H=R.loadData,G=R.treeLoadedKeys,Q=R.treeMotion,le=R.onTreeLoad,Z=R.keyEntities,j=m.useRef(),F=Z1(function(){return v},[c,v],function(Xe,Ze){return Ze[0]&&Xe[1]!==Ze[1]}),te=m.useMemo(function(){return O?{checked:M,halfChecked:P}:null},[O,M,P]);m.useEffect(function(){if(c&&!a&&M.length){var Xe;(Xe=j.current)===null||Xe===void 0||Xe.scrollTo({key:M[0]})}},[c]);var oe=function(Ze){Ze.preventDefault()},de=function(Ze,bt){var at=bt.node;O&&Tie(at)||(_(at.key,{selected:!M.includes(at.key)}),a||l(!1))},pe=m.useState(U),me=ke(pe,2),ve=me[0],he=me[1],be=m.useState(null),we=ke(be,2),De=we[0],Ae=we[1],Ee=m.useMemo(function(){return k?Tt(k):s?De:ve},[ve,De,k,s]),Re=function(Ze){he(Ze),Ae(Ze),z&&z(Ze)},Te=String(s).toLowerCase(),Oe=function(Ze){return Te?String(Ze[K]).toLowerCase().includes(Te):!1};m.useEffect(function(){s&&Ae(JWt(v,y))},[s]);var Ne=m.useState(function(){return new Map}),je=ke(Ne,2),ne=je[0],J=je[1];m.useEffect(function(){C&&J(new Map)},[C]);function ae(Xe){var Ze=Xe[y.value];if(!ne.has(Ze)){var bt=T.get(Ze),at=(bt.children||[]).length===0;if(at)ne.set(Ze,!1);else{var pt=bt.children.filter(function(It){return!It.node.disabled&&!It.node.disableCheckbox&&!M.includes(It.node[y.value])}),Ct=pt.length;ne.set(Ze,Ct>C)}}return ne.get(Ze)}var Se=Sr(function(Xe){var Ze=Xe[y.value];return M.includes(Ze)||C===null?!1:C<=0?!0:x&&C?ae(Xe):!1}),xe=function Xe(Ze){var bt=lm(Ze),at;try{for(bt.s();!(at=bt.n()).done;){var pt=at.value;if(!(pt.disabled||pt.selectable===!1)){if(s){if(Oe(pt))return pt}else return pt;if(pt[y.children]){var Ct=Xe(pt[y.children]);if(Ct)return Ct}}}}catch(It){bt.e(It)}finally{bt.f()}return null},ue=m.useState(null),Me=ke(ue,2),$e=Me[0],ge=Me[1],Ve=Z[$e];m.useEffect(function(){if(c){var Xe=null,Ze=function(){var at=xe(F);return at?at[y.value]:null};!a&&M.length&&!s?Xe=M[0]:Xe=Ze(),ge(Xe)}},[c,s]),m.useImperativeHandle(r,function(){var Xe;return{scrollTo:(Xe=j.current)===null||Xe===void 0?void 0:Xe.scrollTo,onKeyDown:function(bt){var at,pt=bt.which;switch(pt){case At.UP:case At.DOWN:case At.LEFT:case At.RIGHT:(at=j.current)===null||at===void 0||at.onKeyDown(bt);break;case At.ENTER:{if(Ve){var Ct=Se(Ve.node),It=(Ve==null?void 0:Ve.node)||{},Wt=It.selectable,Bt=It.value,Vt=It.disabled;Wt!==!1&&!Vt&&!Ct&&de(null,{node:{key:$e},selected:!M.includes(Bt)})}break}case At.ESC:l(!1)}},onKeyUp:function(){}}});var st=Z1(function(){return!s},[s,k||ve],function(Xe,Ze){var bt=ke(Xe,1),at=bt[0],pt=ke(Ze,2),Ct=pt[0],It=pt[1];return at!==Ct&&!!(Ct||It)}),Je=st?H:null;if(F.length===0)return m.createElement("div",{role:"listbox",className:"".concat(o,"-empty"),onMouseDown:oe},u);var ot={fieldNames:y};return G&&(ot.loadedKeys=G),Ee&&(ot.expandedKeys=Ee),m.createElement("div",{onMouseDown:oe},Ve&&c&&m.createElement("span",{style:aYt,"aria-live":"assertive"},Ve.node.value),m.createElement(eGe.Provider,{value:{nodeDisabled:Se}},m.createElement(Vde,ft({ref:j,focusable:!1,prefixCls:"".concat(o,"-tree"),treeData:F,height:p,itemHeight:h,itemScrollOffset:g,virtual:f!==!1&&S!==!1,multiple:a,icon:D,showIcon:B,switcherIcon:Y,showLine:q,loadData:Je,motion:Q,activeKey:$e,checkable:O,checkStrictly:!0,checkedKeys:te,selectedKeys:O?[]:M,defaultExpandAll:$,titleRender:E},ot,{onActiveChange:ge,onSelect:de,onCheck:de,onExpand:Re,onLoad:le,filterTreeNode:Oe,expandAction:b,onScroll:w}))))},lYt=m.forwardRef(sYt),Wde="SHOW_ALL",Yde="SHOW_PARENT",OU="SHOW_CHILD";function Dwe(e,n,r,i){var o=new Set(e);return n===OU?e.filter(function(a){var s=r[a];return!s||!s.children||!s.children.some(function(l){var c=l.node;return o.has(c[i.value])})||!s.children.every(function(l){var c=l.node;return Tie(c)||o.has(c[i.value])})}):n===Yde?e.filter(function(a){var s=r[a],l=s?s.parent:null;return!l||Tie(l.node)||!o.has(l.key)}):e}var cYt=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function uYt(e){return!e||cn(e)!=="object"}var dYt=m.forwardRef(function(e,n){var r=e.id,i=e.prefixCls,o=i===void 0?"rc-tree-select":i,a=e.value,s=e.defaultValue,l=e.onChange,c=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,p=e.onSearch,h=e.autoClearSearchValue,g=h===void 0?!0:h,v=e.filterTreeNode,y=e.treeNodeFilterProp,_=y===void 0?"value":y,S=e.showCheckedStrategy,b=e.treeNodeLabelProp,E=e.multiple,w=e.treeCheckable,C=e.treeCheckStrictly,x=e.labelInValue,T=e.maxCount,R=e.fieldNames,O=e.treeDataSimpleMode,M=e.treeData,P=e.children,k=e.loadData,$=e.treeLoadedKeys,U=e.onTreeLoad,z=e.treeDefaultExpandAll,D=e.treeExpandedKeys,B=e.treeDefaultExpandedKeys,Y=e.onTreeExpand,q=e.treeExpandAction,K=e.virtual,H=e.listHeight,G=H===void 0?200:H,Q=e.listItemHeight,le=Q===void 0?20:Q,Z=e.listItemScrollOffset,j=Z===void 0?0:Z,F=e.onDropdownVisibleChange,te=e.dropdownMatchSelectWidth,oe=te===void 0?!0:te,de=e.treeLine,pe=e.treeIcon,me=e.showTreeIcon,ve=e.switcherIcon,he=e.treeMotion,be=e.treeTitleRender,we=e.onPopupScroll,De=Xt(e,cYt),Ae=Yue(r),Ee=w&&!C,Re=w||C,Te=C||x,Oe=Re||E,Ne=dr(s,{value:a}),je=ke(Ne,2),ne=je[0],J=je[1],ae=m.useMemo(function(){return w?S||OU:Wde},[S,w]),Se=m.useMemo(function(){return ZWt(R)},[JSON.stringify(R)]),xe=dr("",{value:d!==void 0?d:f,postState:function(jt){return jt||""}}),ue=ke(xe,2),Me=ue[0],$e=ue[1],ge=function(jt){$e(jt),p==null||p(jt)},Ve=oYt(M,P,O),st=eYt(Ve,Se),Je=st.keyEntities,ot=st.valueEntities,Xe=m.useCallback(function(ln){var jt=[],Lt=[];return ln.forEach(function(en){ot.has(en)?Lt.push(en):jt.push(en)}),{missingRawValues:jt,existRawValues:Lt}},[ot]),Ze=rYt(Ve,Me,{fieldNames:Se,treeNodeFilterProp:_,filterTreeNode:v}),bt=m.useCallback(function(ln){if(ln){if(b)return ln[b];for(var jt=Se._title,Lt=0;Lt<jt.length;Lt+=1){var en=ln[jt[Lt]];if(en!==void 0)return en}}},[Se,b]),at=m.useCallback(function(ln){var jt=QWt(ln);return jt.map(function(Lt){return uYt(Lt)?{value:Lt}:Lt})},[]),pt=m.useCallback(function(ln){var jt=at(ln);return jt.map(function(Lt){var en=Lt.label,Ue=Lt.value,Zt=Lt.halfChecked,Et,Gt=ot.get(Ue);if(Gt){var zt;en=be?be(Gt.node):(zt=en)!==null&&zt!==void 0?zt:bt(Gt.node),Et=Gt.node.disabled}else if(en===void 0){var Vn=at(ne).find(function(sr){return sr.value===Ue});en=Vn.label}return{label:en,value:Ue,halfChecked:Zt,disabled:Et}})},[ot,bt,at,ne]),Ct=m.useMemo(function(){return at(ne===null?[]:ne)},[at,ne]),It=m.useMemo(function(){var ln=[],jt=[];return Ct.forEach(function(Lt){Lt.halfChecked?jt.push(Lt):ln.push(Lt)}),[ln,jt]},[Ct]),Wt=ke(It,2),Bt=Wt[0],Vt=Wt[1],rn=m.useMemo(function(){return Bt.map(function(ln){return ln.value})},[Bt]),tt=XWt(Bt,Vt,Ee,Je),it=ke(tt,2),nt=it[0],vt=it[1],kt=m.useMemo(function(){var ln=Dwe(nt,ae,Je,Se),jt=ln.map(function(Zt){var Et,Gt;return(Et=(Gt=Je[Zt])===null||Gt===void 0||(Gt=Gt.node)===null||Gt===void 0?void 0:Gt[Se.value])!==null&&Et!==void 0?Et:Zt}),Lt=jt.map(function(Zt){var Et=Bt.find(function(zt){return zt.value===Zt}),Gt=x?Et==null?void 0:Et.label:be==null?void 0:be(Et);return{value:Zt,label:Gt}}),en=pt(Lt),Ue=en[0];return!Oe&&Ue&&Pwe(Ue.value)&&Pwe(Ue.label)?[]:en.map(function(Zt){var Et;return ee(ee({},Zt),{},{label:(Et=Zt.label)!==null&&Et!==void 0?Et:Zt.value})})},[Se,Oe,nt,Bt,pt,ae,Je]),Dt=KWt(kt),Kt=ke(Dt,1),Ht=Kt[0],tn=m.useMemo(function(){return Oe&&(ae==="SHOW_CHILD"||C||!w)?T:null},[T,Oe,C,ae,w]),on=Awe(function(ln,jt,Lt){var en=Dwe(ln,ae,Je,Se);if(!(tn&&en.length>tn)){var Ue=pt(ln);if(J(Ue),g&&$e(""),l){var Zt=ln;Ee&&(Zt=en.map(function(qe){var gt=ot.get(qe);return gt?gt.node[Se.value]:qe}));var Et=jt||{triggerValue:void 0,selected:void 0},Gt=Et.triggerValue,zt=Et.selected,Vn=Zt;if(C){var sr=Vt.filter(function(qe){return!Zt.includes(qe.value)});Vn=[].concat(Tt(Vn),Tt(sr))}var A=pt(Vn),W={preValue:Bt,triggerValue:Gt},ce=!0;(C||Lt==="selection"&&!zt)&&(ce=!1),nYt(W,Gt,ln,Ve,ce,Se),Re?W.checked=zt:W.selected=zt;var Pe=Te?A:A.map(function(qe){return qe.value});l(Oe?Pe:Pe[0],Te?null:A.map(function(qe){return qe.label}),W)}}}),sn=m.useCallback(function(ln,jt){var Lt,en=jt.selected,Ue=jt.source,Zt=Je[ln],Et=Zt==null?void 0:Zt.node,Gt=(Lt=Et==null?void 0:Et[Se.value])!==null&&Lt!==void 0?Lt:ln;if(!Oe)on([Gt],{selected:!0,triggerValue:Gt},"option");else{var zt=en?[].concat(Tt(rn),[Gt]):nt.filter(function(gt){return gt!==Gt});if(Ee){var Vn=Xe(zt),sr=Vn.missingRawValues,A=Vn.existRawValues,W=A.map(function(gt){return ot.get(gt).key}),ce;if(en){var Pe=dy(W,!0,Je);ce=Pe.checkedKeys}else{var qe=dy(W,{checked:!1,halfCheckedKeys:vt},Je);ce=qe.checkedKeys}zt=[].concat(Tt(sr),Tt(ce.map(function(gt){return Je[gt].node[Se.value]})))}on(zt,{selected:en,triggerValue:Gt},Ue||"option")}en||!Oe?c==null||c(Gt,Oie(Et)):u==null||u(Gt,Oie(Et))},[Xe,ot,Je,Se,Oe,rn,on,Ee,c,u,nt,vt,T]),Jt=m.useCallback(function(ln){if(F){var jt={};Object.defineProperty(jt,"documentClickClose",{get:function(){return qi(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),F(ln,jt)}},[F]),En=Awe(function(ln,jt){var Lt=ln.map(function(en){return en.value});if(jt.type==="clear"){on(Lt,{},"selection");return}jt.values.length&&sn(jt.values[0].value,{selected:!1,source:"selection"})}),Pt=m.useMemo(function(){return{virtual:K,dropdownMatchSelectWidth:oe,listHeight:G,listItemHeight:le,listItemScrollOffset:j,treeData:Ze,fieldNames:Se,onSelect:sn,treeExpandAction:q,treeTitleRender:be,onPopupScroll:we,leftMaxCount:T===void 0?null:T-Ht.length,leafCountOnly:ae==="SHOW_CHILD"&&!C&&!!w,valueEntities:ot}},[K,oe,G,le,j,Ze,Se,sn,q,be,we,T,Ht.length,ae,C,w,ot]),Qt=m.useMemo(function(){return{checkable:Re,loadData:k,treeLoadedKeys:$,onTreeLoad:U,checkedKeys:nt,halfCheckedKeys:vt,treeDefaultExpandAll:z,treeExpandedKeys:D,treeDefaultExpandedKeys:B,onTreeExpand:Y,treeIcon:pe,treeMotion:he,showTreeIcon:me,switcherIcon:ve,treeLine:de,treeNodeFilterProp:_,keyEntities:Je}},[Re,k,$,U,nt,vt,z,D,B,Y,pe,he,me,ve,de,_,Je]);return m.createElement(lGe.Provider,{value:Pt},m.createElement(sGe.Provider,{value:Qt},m.createElement(zue,ft({ref:n},De,{id:Ae,prefixCls:o,mode:Oe?"multiple":void 0,displayValues:Ht,onDisplayValuesChange:En,searchValue:Me,onSearch:ge,OptionList:lYt,emptyOptions:!Ve.length,onDropdownVisibleChange:Jt,dropdownMatchSelectWidth:oe}))))}),Pk=dYt;Pk.TreeNode=Gde;Pk.SHOW_ALL=Wde;Pk.SHOW_PARENT=Yde;Pk.SHOW_CHILD=OU;const fYt=e=>{const{componentCls:n,treePrefixCls:r,colorBgElevated:i}=e,o=`.${r}`;return[{[`${n}-dropdown`]:[{padding:`${Ye(e.paddingXS)} ${Ye(e.calc(e.paddingXS).div(2).equal())}`},rGe(r,wr(e,{colorBgContainer:i})),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},bU(`${r}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function pYt(e,n,r){return Yr("TreeSelect",i=>{const o=wr(i,{treePrefixCls:n});return[fYt(o)]},iGe)(e,r)}var hYt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const gYt=(e,n)=>{var r;const{prefixCls:i,size:o,disabled:a,bordered:s=!0,className:l,rootClassName:c,treeCheckable:u,multiple:d,listHeight:f=256,listItemHeight:p,placement:h,notFoundContent:g,switcherIcon:v,treeLine:y,getPopupContainer:_,popupClassName:S,dropdownClassName:b,treeIcon:E=!1,transitionName:w,choiceTransitionName:C="",status:x,treeExpandAction:T,builtinPlacements:R,dropdownMatchSelectWidth:O,popupMatchSelectWidth:M,allowClear:P,variant:k,dropdownStyle:$,tagRender:U,maxCount:z,showCheckedStrategy:D,treeCheckStrictly:B}=e,Y=hYt(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:q,getPrefixCls:K,renderEmpty:H,direction:G,virtual:Q,popupMatchSelectWidth:le,popupOverflow:Z}=m.useContext(Cn),[,j]=Nl(),F=p??(j==null?void 0:j.controlHeightSM)+(j==null?void 0:j.paddingXXS),te=K(),oe=K("select",i),de=K("select-tree",i),pe=K("tree-select",i),{compactSize:me,compactItemClassnames:ve}=yg(oe,G),he=po(oe),be=po(pe),[we,De,Ae]=Xue(oe,he),[Ee]=pYt(pe,de,be),[Re,Te]=Jy("treeSelect",k,s),Oe=Ce(S||b,`${pe}-dropdown`,{[`${pe}-dropdown-rtl`]:G==="rtl"},c,Ae,he,be,De),Ne=!!(u||d),je=m.useMemo(()=>{if(!(z&&(D==="SHOW_ALL"&&!B||D==="SHOW_PARENT")))return z},[z,D,B]),ne=Zue(e.suffixIcon,e.showArrow),J=(r=M??O)!==null&&r!==void 0?r:le,{status:ae,hasFeedback:Se,isFormItemInput:xe,feedbackIcon:ue}=m.useContext(qs),Me=Zy(ae,x),{suffixIcon:$e,removeIcon:ge,clearIcon:Ve}=rU(Object.assign(Object.assign({},Y),{multiple:Ne,showSuffixIcon:ne,hasFeedback:Se,feedbackIcon:ue,prefixCls:oe,componentName:"TreeSelect"})),st=P===!0?{clearIcon:Ve}:P;let Je;g!==void 0?Je=g:Je=(H==null?void 0:H("Select"))||m.createElement(nU,{componentName:"Select"});const ot=Wr(Y,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Xe=m.useMemo(()=>h!==void 0?h:G==="rtl"?"bottomRight":"bottomLeft",[h,G]),Ze=Xs(Bt=>{var Vt;return(Vt=o??me)!==null&&Vt!==void 0?Vt:Bt}),bt=m.useContext(xs),at=a??bt,pt=Ce(!i&&pe,{[`${oe}-lg`]:Ze==="large",[`${oe}-sm`]:Ze==="small",[`${oe}-rtl`]:G==="rtl",[`${oe}-${Re}`]:Te,[`${oe}-in-form-item`]:xe},ng(oe,Me,Se),ve,l,c,Ae,he,be,De),Ct=Bt=>m.createElement($Wt,{prefixCls:de,switcherIcon:v,treeNodeProps:Bt,showLine:y}),[It]=Up("SelectLike",$==null?void 0:$.zIndex),Wt=m.createElement(Pk,Object.assign({virtual:Q,disabled:at},ot,{dropdownMatchSelectWidth:J,builtinPlacements:Kue(R,Z),ref:n,prefixCls:oe,className:pt,listHeight:f,listItemHeight:F,treeCheckable:u&&m.createElement("span",{className:`${oe}-tree-checkbox-inner`}),treeLine:!!y,suffixIcon:$e,multiple:Ne,placement:Xe,removeIcon:ge,allowClear:st,switcherIcon:Ct,showTreeIcon:E,notFoundContent:Je,getPopupContainer:_||q,treeMotion:null,dropdownClassName:Oe,dropdownStyle:Object.assign(Object.assign({},$),{zIndex:It}),choiceTransitionName:Kl(te,"",C),transitionName:Kl(te,"slide-up",w),treeExpandAction:T,tagRender:Ne?U:void 0,maxCount:je,showCheckedStrategy:D,treeCheckStrictly:B}));return we(Ee(Wt))},mYt=m.forwardRef(gYt),cw=mYt,vYt=tS(cw,"dropdownAlign",e=>Wr(e,["visible"]));cw.TreeNode=Gde;cw.SHOW_ALL=Wde;cw.SHOW_PARENT=Yde;cw.SHOW_CHILD=OU;cw._InternalPanelDoNotUseOrYouWillBeFired=vYt;const Eq=function(e,n){if(e&&n){var r=Array.isArray(n)?n:n.split(","),i=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return r.some(function(s){var l=s.trim();if(/^\*(\/\*)?$/.test(s))return!0;if(l.charAt(0)==="."){var c=i.toLowerCase(),u=l.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return c.endsWith(f)})}return/\/\*$/.test(l)?a===l.replace(/\/.*$/,""):o===l?!0:/^\w+$/.test(l)?(qi(!1,"Upload takes an invalidate 'accept' type '".concat(l,"'.Skip for check.")),!0):!1})}return!0};function yYt(e,n){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(n.status,"'"),i=new Error(r);return i.status=n.status,i.method=e.method,i.url=e.action,i}function kwe(e){var n=e.responseText||e.response;if(!n)return n;try{return JSON.parse(n)}catch{return n}}function _Yt(e){var n=new XMLHttpRequest;e.onProgress&&n.upload&&(n.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var a=e.data[o];if(Array.isArray(a)){a.forEach(function(s){r.append("".concat(o,"[]"),s)});return}r.append(o,a)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),n.onerror=function(a){e.onError(a)},n.onload=function(){return n.status<200||n.status>=300?e.onError(yYt(e,n),kwe(n)):e.onSuccess(kwe(n),n)},n.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0);var i=e.headers||{};return i["X-Requested-With"]!==null&&n.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEach(function(o){i[o]!==null&&n.setRequestHeader(o,i[o])}),n.send(r),{abort:function(){n.abort()}}}var bYt=function(){var e=Ss(ri().mark(function n(r,i){var o,a,s,l,c,u,d,f;return ri().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:u=function(){return u=Ss(ri().mark(function v(y){return ri().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",new Promise(function(b){y.file(function(E){i(E)?(y.fullPath&&!E.webkitRelativePath&&(Object.defineProperties(E,{webkitRelativePath:{writable:!0}}),E.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(E,{webkitRelativePath:{writable:!1}})),b(E)):b(null)})}));case 1:case"end":return S.stop()}},v)})),u.apply(this,arguments)},c=function(v){return u.apply(this,arguments)},l=function(){return l=Ss(ri().mark(function v(y){var _,S,b,E,w;return ri().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:_=y.createReader(),S=[];case 2:return x.next=5,new Promise(function(T){_.readEntries(T,function(){return T([])})});case 5:if(b=x.sent,E=b.length,E){x.next=9;break}return x.abrupt("break",12);case 9:for(w=0;w<E;w++)S.push(b[w]);x.next=2;break;case 12:return x.abrupt("return",S);case 13:case"end":return x.stop()}},v)})),l.apply(this,arguments)},s=function(v){return l.apply(this,arguments)},o=[],a=[],r.forEach(function(g){return a.push(g.webkitGetAsEntry())}),d=function(){var g=Ss(ri().mark(function v(y,_){var S,b;return ri().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(y){w.next=2;break}return w.abrupt("return");case 2:if(y.path=_||"",!y.isFile){w.next=10;break}return w.next=6,c(y);case 6:S=w.sent,S&&o.push(S),w.next=15;break;case 10:if(!y.isDirectory){w.next=15;break}return w.next=13,s(y);case 13:b=w.sent,a.push.apply(a,Tt(b));case 15:case"end":return w.stop()}},v)}));return function(y,_){return g.apply(this,arguments)}}(),f=0;case 9:if(!(f<a.length)){h.next=15;break}return h.next=12,d(a[f]);case 12:f++,h.next=9;break;case 15:return h.abrupt("return",o);case 16:case"end":return h.stop()}},n)}));return function(r,i){return e.apply(this,arguments)}}(),SYt=+new Date,EYt=0;function Cq(){return"rc-upload-".concat(SYt,"-").concat(++EYt)}var CYt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],wYt=function(e){Kc(r,e);var n=Iu(r);function r(){var i;Ki(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),fe(Tn(i),"state",{uid:Cq()}),fe(Tn(i),"reqs",{}),fe(Tn(i),"fileInput",void 0),fe(Tn(i),"_isMounted",void 0),fe(Tn(i),"onChange",function(l){var c=i.props,u=c.accept,d=c.directory,f=l.target.files,p=Tt(f).filter(function(h){return!d||Eq(h,u)});i.uploadFiles(p),i.reset()}),fe(Tn(i),"onClick",function(l){var c=i.fileInput;if(c){var u=l.target,d=i.props.onClick;if(u&&u.tagName==="BUTTON"){var f=c.parentNode;f.focus(),u.blur()}c.click(),d&&d(l)}}),fe(Tn(i),"onKeyDown",function(l){l.key==="Enter"&&i.onClick(l)}),fe(Tn(i),"onFileDrop",function(){var l=Ss(ri().mark(function c(u){var d,f,p;return ri().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(d=i.props.multiple,u.preventDefault(),u.type!=="dragover"){g.next=4;break}return g.abrupt("return");case 4:if(!i.props.directory){g.next=11;break}return g.next=7,bYt(Array.prototype.slice.call(u.dataTransfer.items),function(v){return Eq(v,i.props.accept)});case 7:f=g.sent,i.uploadFiles(f),g.next=14;break;case 11:p=Tt(u.dataTransfer.files).filter(function(v){return Eq(v,i.props.accept)}),d===!1&&(p=p.slice(0,1)),i.uploadFiles(p);case 14:case"end":return g.stop()}},c)}));return function(c){return l.apply(this,arguments)}}()),fe(Tn(i),"uploadFiles",function(l){var c=Tt(l),u=c.map(function(d){return d.uid=Cq(),i.processFile(d,c)});Promise.all(u).then(function(d){var f=i.props.onBatchStart;f==null||f(d.map(function(p){var h=p.origin,g=p.parsedFile;return{file:h,parsedFile:g}})),d.filter(function(p){return p.parsedFile!==null}).forEach(function(p){i.post(p)})})}),fe(Tn(i),"processFile",function(){var l=Ss(ri().mark(function c(u,d){var f,p,h,g,v,y,_,S,b;return ri().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(f=i.props.beforeUpload,p=u,!f){w.next=14;break}return w.prev=3,w.next=6,f(u,d);case 6:p=w.sent,w.next=12;break;case 9:w.prev=9,w.t0=w.catch(3),p=!1;case 12:if(p!==!1){w.next=14;break}return w.abrupt("return",{origin:u,parsedFile:null,action:null,data:null});case 14:if(h=i.props.action,typeof h!="function"){w.next=21;break}return w.next=18,h(u);case 18:g=w.sent,w.next=22;break;case 21:g=h;case 22:if(v=i.props.data,typeof v!="function"){w.next=29;break}return w.next=26,v(u);case 26:y=w.sent,w.next=30;break;case 29:y=v;case 30:return _=(cn(p)==="object"||typeof p=="string")&&p?p:u,_ instanceof File?S=_:S=new File([_],u.name,{type:u.type}),b=S,b.uid=u.uid,w.abrupt("return",{origin:u,data:y,parsedFile:b,action:g});case 35:case"end":return w.stop()}},c,null,[[3,9]])}));return function(c,u){return l.apply(this,arguments)}}()),fe(Tn(i),"saveFileInput",function(l){i.fileInput=l}),i}return Xi(r,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(o){var a=this,s=o.data,l=o.origin,c=o.action,u=o.parsedFile;if(this._isMounted){var d=this.props,f=d.onStart,p=d.customRequest,h=d.name,g=d.headers,v=d.withCredentials,y=d.method,_=l.uid,S=p||_Yt,b={action:c,filename:h,data:s,file:u,headers:g,withCredentials:v,method:y||"post",onProgress:function(w){var C=a.props.onProgress;C==null||C(w,u)},onSuccess:function(w,C){var x=a.props.onSuccess;x==null||x(w,u,C),delete a.reqs[_]},onError:function(w,C){var x=a.props.onError;x==null||x(w,C,u),delete a.reqs[_]}};f(l),this.reqs[_]=S(b)}}},{key:"reset",value:function(){this.setState({uid:Cq()})}},{key:"abort",value:function(o){var a=this.reqs;if(o){var s=o.uid?o.uid:o;a[s]&&a[s].abort&&a[s].abort(),delete a[s]}else Object.keys(a).forEach(function(l){a[l]&&a[l].abort&&a[l].abort(),delete a[l]})}},{key:"render",value:function(){var o=this.props,a=o.component,s=o.prefixCls,l=o.className,c=o.classNames,u=c===void 0?{}:c,d=o.disabled,f=o.id,p=o.name,h=o.style,g=o.styles,v=g===void 0?{}:g,y=o.multiple,_=o.accept,S=o.capture,b=o.children,E=o.directory,w=o.openFileDialogOnClick,C=o.onMouseEnter,x=o.onMouseLeave,T=o.hasControlInside,R=Xt(o,CYt),O=Ce(fe(fe(fe({},s,!0),"".concat(s,"-disabled"),d),l,l)),M=E?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},P=d?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:C,onMouseLeave:x,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:T?void 0:"0"};return V.createElement(a,ft({},P,{className:O,role:T?void 0:"button",style:h}),V.createElement("input",ft({},Va(R,{aria:!0,data:!0}),{id:f,name:p,disabled:d,type:"file",ref:this.saveFileInput,onClick:function($){return $.stopPropagation()},key:this.state.uid,style:ee({display:"none"},v.input),className:u.input,accept:_},M,{multiple:y,onChange:this.onChange},S!=null?{capture:S}:{})),b)}}]),r}(m.Component);function wq(){}var Rie=function(e){Kc(r,e);var n=Iu(r);function r(){var i;Ki(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),fe(Tn(i),"uploader",void 0),fe(Tn(i),"saveUploader",function(l){i.uploader=l}),i}return Xi(r,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return V.createElement(wYt,ft({},this.props,{ref:this.saveUploader}))}}]),r}(m.Component);fe(Rie,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:wq,onError:wq,onSuccess:wq,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const xYt=e=>{const{componentCls:n,iconCls:r}=e;return{[`${n}-wrapper`]:{[`${n}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Ye(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[n]:{padding:e.padding},[`${n}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Ye(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${n}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
||
&:not(${n}-disabled):hover,
|
||
&-hover:not(${n}-disabled)
|
||
`]:{borderColor:e.colorPrimaryHover},[`p${n}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${n}-text`]:{margin:`0 0 ${Ye(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${n}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${n}-disabled`]:{[`p${n}-drag-icon ${r},
|
||
p${n}-text,
|
||
p${n}-hint
|
||
`]:{color:e.colorTextDisabled}}}}}},TYt=e=>{const{componentCls:n,iconCls:r,fontSize:i,lineHeight:o,calc:a}=e,s=`${n}-list-item`,l=`${s}-actions`,c=`${s}-action`;return{[`${n}-wrapper`]:{[`${n}-list`]:Object.assign(Object.assign({},Im()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:a(e.lineHeight).mul(i).equal(),marginTop:e.marginXS,fontSize:i,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:Object.assign(Object.assign({},bf),{padding:`0 ${Ye(e.paddingXS)}`,lineHeight:o,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}},[`${n}-icon ${r}`]:{color:e.colorTextDescription,fontSize:i},[`${s}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(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, ${n}-icon ${r}`]:{color:e.colorError},[l]:{[`${r}, ${r}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${n}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},OYt=e=>{const{componentCls:n}=e,r=new kr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=new kr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${n}-animate-inline`;return[{[`${n}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:r},[`${o}-leave`]:{animationName:i}}},{[`${n}-wrapper`]:Nue(e)},r,i]},RYt=e=>{const{componentCls:n,iconCls:r,uploadThumbnailSize:i,uploadProgressOffset:o,calc:a}=e,s=`${n}-list`,l=`${s}-item`;return{[`${n}-wrapper`]:{[`
|
||
${s}${s}-picture,
|
||
${s}${s}-picture-card,
|
||
${s}${s}-picture-circle
|
||
`]:{[l]:{position:"relative",height:a(i).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},bf),{width:i,height:i,lineHeight:Ye(a(i).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${Ye(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(i).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${r}`]:{[`svg path[fill='${tC[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${tC.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${s}${s}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},IYt=e=>{const{componentCls:n,iconCls:r,fontSizeLG:i,colorTextLightSolid:o,calc:a}=e,s=`${n}-list`,l=`${s}-item`,c=e.uploadPicCardSize;return{[`
|
||
${n}-wrapper${n}-picture-card-wrapper,
|
||
${n}-wrapper${n}-picture-circle-wrapper
|
||
`]:Object.assign(Object.assign({},Im()),{display:"block",[`${n}${n}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Ye(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${n}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${n}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${s}${s}-picture-card, ${s}${s}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${s}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Ye(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Ye(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
||
${r}-eye,
|
||
${r}-download,
|
||
${r}-delete
|
||
`]:{zIndex:10,width:i,margin:`0 ${Ye(e.marginXXS)}`,fontSize:i,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Ye(a(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Ye(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${n}-wrapper${n}-picture-circle-wrapper`]:{[`${n}${n}-select`]:{borderRadius:"50%"}}}},NYt=e=>{const{componentCls:n}=e;return{[`${n}-rtl`]:{direction:"rtl"}}},MYt=e=>{const{componentCls:n,colorTextDisabled:r}=e;return{[`${n}-wrapper`]:Object.assign(Object.assign({},li(e)),{[n]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${n}-select`]:{display:"inline-block"},[`${n}-hidden`]:{display:"none"},[`${n}-disabled`]:{color:r,cursor:"not-allowed"}})}},PYt=e=>({actionsColor:e.colorTextDescription}),AYt=Yr("Upload",e=>{const{fontSizeHeading3:n,fontHeight:r,lineWidth:i,controlHeightLG:o,calc:a}=e,s=wr(e,{uploadThumbnailSize:a(n).mul(2).equal(),uploadProgressOffset:a(a(r).div(2)).add(i).equal(),uploadPicCardSize:a(o).mul(2.55).equal()});return[MYt(s),xYt(s),RYt(s),IYt(s),TYt(s),OYt(s),NYt(s),pk(s)]},PYt);function r4(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 i4(e,n){const r=Tt(n),i=r.findIndex(o=>{let{uid:a}=o;return a===e.uid});return i===-1?r.push(e):r[i]=e,r}function xq(e,n){const r=e.uid!==void 0?"uid":"name";return n.filter(i=>i[r]===e[r])[0]}function DYt(e,n){const r=e.uid!==void 0?"uid":"name",i=n.filter(o=>o[r]!==e[r]);return i.length===n.length?null:i}const kYt=function(){const n=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),i=n[n.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(i)||[""])[0]},cGe=e=>e.indexOf("image/")===0,LYt=e=>{if(e.type&&!e.thumbUrl)return cGe(e.type);const n=e.thumbUrl||e.url||"",r=kYt(n);return/^data:image\//.test(n)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(n)||r)},z_=200;function $Yt(e){return new Promise(n=>{if(!e.type||!cGe(e.type)){n("");return}const r=document.createElement("canvas");r.width=z_,r.height=z_,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${z_}px; height: ${z_}px; z-index: 9999; display: none;`,document.body.appendChild(r);const i=r.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:a,height:s}=o;let l=z_,c=z_,u=0,d=0;a>s?(c=s*(z_/a),d=-(c-l)/2):(l=a*(z_/s),u=-(l-c)/2),i.drawImage(o,u,d,l,c);const f=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),n(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(o.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&n(a.result)},a.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const FYt=m.forwardRef((e,n)=>{let{prefixCls:r,className:i,style:o,locale:a,listType:s,file:l,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:p,isImgUrl:h,showPreviewIcon:g,showRemoveIcon:v,showDownloadIcon:y,previewIcon:_,removeIcon:S,downloadIcon:b,extra:E,onPreview:w,onDownload:C,onClose:x}=e;var T,R;const{status:O}=l,[M,P]=m.useState(O);m.useEffect(()=>{O!=="removed"&&P(O)},[O]);const[k,$]=m.useState(!1);m.useEffect(()=>{const me=setTimeout(()=>{$(!0)},300);return()=>{clearTimeout(me)}},[]);const U=d(l);let z=m.createElement("div",{className:`${r}-icon`},U);if(s==="picture"||s==="picture-card"||s==="picture-circle")if(M==="uploading"||!l.thumbUrl&&!l.url){const me=Ce(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:M!=="uploading"});z=m.createElement("div",{className:me},U)}else{const me=h!=null&&h(l)?m.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${r}-list-item-image`,crossOrigin:l.crossOrigin}):U,ve=Ce(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:h&&!h(l)});z=m.createElement("a",{className:ve,onClick:he=>w(l,he),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},me)}const D=Ce(`${r}-list-item`,`${r}-list-item-${M}`),B=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,Y=(typeof v=="function"?v(l):v)?f((typeof S=="function"?S(l):S)||m.createElement(sw,null),()=>x(l),r,a.removeFile,!0):null,q=(typeof y=="function"?y(l):y)&&M==="done"?f((typeof b=="function"?b(l):b)||m.createElement(Rk,null),()=>C(l),r,a.downloadFile):null,K=s!=="picture-card"&&s!=="picture-circle"&&m.createElement("span",{key:"download-delete",className:Ce(`${r}-list-item-actions`,{picture:s==="picture"})},q,Y),H=typeof E=="function"?E(l):E,G=H&&m.createElement("span",{className:`${r}-list-item-extra`},H),Q=Ce(`${r}-list-item-name`),le=l.url?m.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Q,title:l.name},B,{href:l.url,onClick:me=>w(l,me)}),l.name,G):m.createElement("span",{key:"view",className:Q,onClick:me=>w(l,me),title:l.name},l.name,G),Z=(typeof g=="function"?g(l):g)&&(l.url||l.thumbUrl)?m.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:me=>w(l,me),title:a.previewFile},typeof _=="function"?_(l):_||m.createElement(xk,null)):null,j=(s==="picture-card"||s==="picture-circle")&&M!=="uploading"&&m.createElement("span",{className:`${r}-list-item-actions`},Z,M==="done"&&q,Y),{getPrefixCls:F}=m.useContext(Cn),te=F(),oe=m.createElement("div",{className:D},z,le,K,j,k&&m.createElement(Ws,{motionName:`${te}-fade`,visible:M==="uploading",motionDeadline:2e3},me=>{let{className:ve}=me;const he="percent"in l?m.createElement(MVe,Object.assign({},u,{type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]})):null;return m.createElement("div",{className:Ce(`${r}-list-item-progress`,ve)},he)})),de=l.response&&typeof l.response=="string"?l.response:((T=l.error)===null||T===void 0?void 0:T.statusText)||((R=l.error)===null||R===void 0?void 0:R.message)||a.uploadError,pe=M==="error"?m.createElement(Sf,{title:de,getPopupContainer:me=>me.parentNode},oe):oe;return m.createElement("div",{className:Ce(`${r}-list-item-container`,i),style:o,ref:n},p?p(pe,l,c,{download:C.bind(null,l),preview:w.bind(null,l),remove:x.bind(null,l)}):pe)}),BYt=(e,n)=>{const{listType:r="text",previewFile:i=$Yt,onPreview:o,onDownload:a,onRemove:s,locale:l,iconRender:c,isImageUrl:u=LYt,prefixCls:d,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:h=!0,showDownloadIcon:g=!1,removeIcon:v,previewIcon:y,downloadIcon:_,extra:S,progress:b={size:[-1,2],showInfo:!1},appendAction:E,appendActionVisible:w=!0,itemRender:C,disabled:x}=e,T=SUe(),[R,O]=m.useState(!1),M=["picture-card","picture-circle"].includes(r);m.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(G=>{!(G.originFileObj instanceof File||G.originFileObj instanceof Blob)||G.thumbUrl!==void 0||(G.thumbUrl="",i==null||i(G.originFileObj).then(Q=>{G.thumbUrl=Q||"",T()}))})},[r,f,i]),m.useEffect(()=>{O(!0)},[]);const P=(G,Q)=>{if(o)return Q==null||Q.preventDefault(),o(G)},k=G=>{typeof a=="function"?a(G):G.url&&window.open(G.url)},$=G=>{s==null||s(G)},U=G=>{if(c)return c(G,r);const Q=G.status==="uploading";if(r.startsWith("picture")){const le=r==="picture"?m.createElement(Nm,null):l.uploading,Z=u!=null&&u(G)?m.createElement(kVt,null):m.createElement(Zzt,null);return Q?le:Z}return Q?m.createElement(Nm,null):m.createElement(PVt,null)},z=(G,Q,le,Z,j)=>{const F={type:"text",size:"small",title:Z,onClick:te=>{var oe,de;Q(),m.isValidElement(G)&&((de=(oe=G.props).onClick)===null||de===void 0||de.call(oe,te))},className:`${le}-list-item-action`};return j&&(F.disabled=x),m.isValidElement(G)?m.createElement(qn,Object.assign({},F,{icon:Ys(G,Object.assign(Object.assign({},G.props),{onClick:()=>{}}))})):m.createElement(qn,Object.assign({},F),m.createElement("span",null,G))};m.useImperativeHandle(n,()=>({handlePreview:P,handleDownload:k}));const{getPrefixCls:D}=m.useContext(Cn),B=D("upload",d),Y=D(),q=Ce(`${B}-list`,`${B}-list-${r}`),K=m.useMemo(()=>Wr(gA(Y),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Y]),H=Object.assign(Object.assign({},M?{}:K),{motionDeadline:2e3,motionName:`${B}-${M?"animate-inline":"animate"}`,keys:Tt(f.map(G=>({key:G.uid,file:G}))),motionAppear:R});return m.createElement("div",{className:q},m.createElement(D9,Object.assign({},H,{component:!1}),G=>{let{key:Q,file:le,className:Z,style:j}=G;return m.createElement(FYt,{key:Q,locale:l,prefixCls:B,className:Z,style:j,file:le,items:f,progress:b,listType:r,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:g,removeIcon:v,previewIcon:y,downloadIcon:_,extra:S,iconRender:U,actionIconRender:z,itemRender:C,onPreview:P,onDownload:k,onClose:$})}),E&&m.createElement(Ws,Object.assign({},H,{visible:w,forceRender:!0}),G=>{let{className:Q,style:le}=G;return Ys(E,Z=>({className:Ce(Z.className,Q),style:Object.assign(Object.assign(Object.assign({},le),{pointerEvents:Q?"none":void 0}),Z.style)}))}))},jYt=m.forwardRef(BYt);var UYt=function(e,n,r,i){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(d){try{u(i.next(d))}catch(f){s(f)}}function c(d){try{u(i.throw(d))}catch(f){s(f)}}function u(d){d.done?a(d.value):o(d.value).then(l,c)}u((i=i.apply(e,[])).next())})};const f2=`__LIST_IGNORE_${Date.now()}__`,HYt=(e,n)=>{const{fileList:r,defaultFileList:i,onRemove:o,showUploadList:a=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:h,iconRender:g,isImageUrl:v,progress:y,prefixCls:_,className:S,type:b="select",children:E,style:w,itemRender:C,maxCount:x,data:T={},multiple:R=!1,hasControlInside:O=!0,action:M="",accept:P="",supportServerRender:k=!0,rootClassName:$}=e,U=m.useContext(xs),z=p??U,[D,B]=dr(i||[],{value:r,postState:ge=>ge??[]}),[Y,q]=m.useState("drop"),K=m.useRef(null),H=m.useRef(null);m.useMemo(()=>{const ge=Date.now();(r||[]).forEach((Ve,st)=>{!Ve.uid&&!Object.isFrozen(Ve)&&(Ve.uid=`__AUTO__${ge}_${st}__`)})},[r]);const G=(ge,Ve,st)=>{let Je=Tt(Ve),ot=!1;x===1?Je=Je.slice(-1):x&&(ot=Je.length>x,Je=Je.slice(0,x)),Us.flushSync(()=>{B(Je)});const Xe={file:ge,fileList:Je};st&&(Xe.event=st),(!ot||ge.status==="removed"||Je.some(Ze=>Ze.uid===ge.uid))&&Us.flushSync(()=>{u==null||u(Xe)})},Q=(ge,Ve)=>UYt(void 0,void 0,void 0,function*(){const{beforeUpload:st,transformFile:Je}=e;let ot=ge;if(st){const Xe=yield st(ge,Ve);if(Xe===!1)return!1;if(delete ge[f2],Xe===f2)return Object.defineProperty(ge,f2,{value:!0,configurable:!0}),!1;typeof Xe=="object"&&Xe&&(ot=Xe)}return Je&&(ot=yield Je(ot)),ot}),le=ge=>{const Ve=ge.filter(ot=>!ot.file[f2]);if(!Ve.length)return;const st=Ve.map(ot=>r4(ot.file));let Je=Tt(D);st.forEach(ot=>{Je=i4(ot,Je)}),st.forEach((ot,Xe)=>{let Ze=ot;if(Ve[Xe].parsedFile)ot.status="uploading";else{const{originFileObj:bt}=ot;let at;try{at=new File([bt],bt.name,{type:bt.type})}catch{at=new Blob([bt],{type:bt.type}),at.name=bt.name,at.lastModifiedDate=new Date,at.lastModified=new Date().getTime()}at.uid=ot.uid,Ze=at}G(Ze,Je)})},Z=(ge,Ve,st)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!xq(Ve,D))return;const Je=r4(Ve);Je.status="done",Je.percent=100,Je.response=ge,Je.xhr=st;const ot=i4(Je,D);G(Je,ot)},j=(ge,Ve)=>{if(!xq(Ve,D))return;const st=r4(Ve);st.status="uploading",st.percent=ge.percent;const Je=i4(st,D);G(st,Je,ge)},F=(ge,Ve,st)=>{if(!xq(st,D))return;const Je=r4(st);Je.error=ge,Je.response=Ve,Je.status="error";const ot=i4(Je,D);G(Je,ot)},te=ge=>{let Ve;Promise.resolve(typeof o=="function"?o(ge):o).then(st=>{var Je;if(st===!1)return;const ot=DYt(ge,D);ot&&(Ve=Object.assign(Object.assign({},ge),{status:"removed"}),D==null||D.forEach(Xe=>{const Ze=Ve.uid!==void 0?"uid":"name";Xe[Ze]===Ve[Ze]&&!Object.isFrozen(Xe)&&(Xe.status="removed")}),(Je=K.current)===null||Je===void 0||Je.abort(Ve),G(Ve,ot))})},oe=ge=>{q(ge.type),ge.type==="drop"&&(d==null||d(ge))};m.useImperativeHandle(n,()=>({onBatchStart:le,onSuccess:Z,onProgress:j,onError:F,fileList:D,upload:K.current,nativeElement:H.current}));const{getPrefixCls:de,direction:pe,upload:me}=m.useContext(Cn),ve=de("upload",_),he=Object.assign(Object.assign({onBatchStart:le,onError:F,onProgress:j,onSuccess:Z},e),{data:T,multiple:R,action:M,accept:P,supportServerRender:k,prefixCls:ve,disabled:z,beforeUpload:Q,onChange:void 0,hasControlInside:O});delete he.className,delete he.style,(!E||z)&&delete he.id;const be=`${ve}-wrapper`,[we,De,Ae]=AYt(ve,be),[Ee]=Nu("Upload",Tp.Upload),{showRemoveIcon:Re,showPreviewIcon:Te,showDownloadIcon:Oe,removeIcon:Ne,previewIcon:je,downloadIcon:ne,extra:J}=typeof a=="boolean"?{}:a,ae=typeof Re>"u"?!z:Re,Se=(ge,Ve)=>a?m.createElement(jYt,{prefixCls:ve,listType:s,items:D,previewFile:f,onPreview:l,onDownload:c,onRemove:te,showRemoveIcon:ae,showPreviewIcon:Te,showDownloadIcon:Oe,removeIcon:Ne,previewIcon:je,downloadIcon:ne,iconRender:g,extra:J,locale:Object.assign(Object.assign({},Ee),h),isImageUrl:v,progress:y,appendAction:ge,appendActionVisible:Ve,itemRender:C,disabled:z}):ge,xe=Ce(be,S,$,De,Ae,me==null?void 0:me.className,{[`${ve}-rtl`]:pe==="rtl",[`${ve}-picture-card-wrapper`]:s==="picture-card",[`${ve}-picture-circle-wrapper`]:s==="picture-circle"}),ue=Object.assign(Object.assign({},me==null?void 0:me.style),w);if(b==="drag"){const ge=Ce(De,ve,`${ve}-drag`,{[`${ve}-drag-uploading`]:D.some(Ve=>Ve.status==="uploading"),[`${ve}-drag-hover`]:Y==="dragover",[`${ve}-disabled`]:z,[`${ve}-rtl`]:pe==="rtl"});return we(m.createElement("span",{className:xe,ref:H},m.createElement("div",{className:ge,style:ue,onDrop:oe,onDragOver:oe,onDragLeave:oe},m.createElement(Rie,Object.assign({},he,{ref:K,className:`${ve}-btn`}),m.createElement("div",{className:`${ve}-drag-container`},E))),Se()))}const Me=Ce(ve,`${ve}-select`,{[`${ve}-disabled`]:z,[`${ve}-hidden`]:!E}),$e=m.createElement("div",{className:Me},m.createElement(Rie,Object.assign({},he,{ref:K})));return we(s==="picture-card"||s==="picture-circle"?m.createElement("span",{className:xe,ref:H},Se($e,!!E)):m.createElement("span",{className:xe,ref:H},$e,Se()))},uGe=m.forwardRef(HYt);var zYt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const VYt=m.forwardRef((e,n)=>{var{style:r,height:i,hasControlInside:o=!1}=e,a=zYt(e,["style","height","hasControlInside"]);return m.createElement(uGe,Object.assign({ref:n,hasControlInside:o},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:i})}))}),ig=uGe;ig.Dragger=VYt;ig.LIST_IGNORE=f2;const GYt=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,children:o,size:a,style:s={}}=e,l=Ce(`${r}-panel`,{[`${r}-panel-hidden`]:a===0},i),c=a!==void 0;return V.createElement("div",{ref:n,className:l,style:Object.assign(Object.assign({},s),{flexBasis:c?a:"auto",flexGrow:c?0:1})},o)}),WYt=()=>null;var YYt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function qYt(e){if(e&&typeof e=="object")return e;const n=!!e;return{start:n,end:n}}function KYt(e){return m.useMemo(()=>Tl(e).filter(m.isValidElement).map(r=>{const{props:i}=r,{collapsible:o}=i,a=YYt(i,["collapsible"]);return Object.assign(Object.assign({},a),{collapsible:qYt(o)})}),[e])}function XYt(e,n){return m.useMemo(()=>{const r=[];for(let i=0;i<e.length-1;i+=1){const o=e[i],a=e[i+1],s=n[i],l=n[i+1],{resizable:c=!0,min:u,collapsible:d}=o,{resizable:f=!0,min:p,collapsible:h}=a,g=c&&f&&(s!==0||!u)&&(l!==0||!p),v=d.end&&s>0||h.start&&l===0&&s>0,y=h.start&&l>0||d.end&&s===0&&l>0;r[i]={resizable:g,startCollapsible:!!v,endCollapsible:!!y}}return r},[n,e])}function m6(e){return Number(e.slice(0,-1))/100}function Tq(e){return typeof e=="string"&&e.endsWith("%")}function QYt(e,n){const r=e.map(g=>g.size),i=e.length,o=n||0,a=g=>g*o,[s,l]=V.useState(()=>e.map(g=>g.defaultSize)),c=V.useMemo(()=>{var g;const v=[];for(let y=0;y<i;y+=1)v[y]=(g=r[y])!==null&&g!==void 0?g:s[y];return v},[i,s,r]),u=V.useMemo(()=>{let g=[],v=0;for(let _=0;_<i;_+=1){const S=c[_];if(Tq(S))g[_]=m6(S);else if(S||S===0){const b=Number(S);Number.isNaN(b)||(g[_]=b/o)}else v+=1,g[_]=void 0}const y=g.reduce((_,S)=>_+(S||0),0);if(y>1||!v){const _=1/y;g=g.map(S=>S===void 0?0:S*_)}else{const _=(1-y)/v;g=g.map(S=>S===void 0?_:S)}return g},[c,o]),d=V.useMemo(()=>u.map(a),[u,o]),f=V.useMemo(()=>e.map(g=>Tq(g.min)?m6(g.min):(g.min||0)/o),[e,o]),p=V.useMemo(()=>e.map(g=>Tq(g.max)?m6(g.max):(g.max||o)/o),[e,o]);return[V.useMemo(()=>n?d:c,[d,n]),d,u,f,p,l]}function ZYt(e,n,r,i,o){const a=e.map(b=>[b.min,b.max]),s=i||0,l=b=>b*s;function c(b,E){return typeof b=="string"?l(m6(b)):b??E}const[u,d]=m.useState([]),f=m.useRef([]),[p,h]=m.useState(null),g=()=>r.map(l);return[b=>{d(g()),h({index:b,confirmed:!1})},(b,E)=>{var w;let C=null;if((!p||!p.confirmed)&&E!==0){if(E>0)C=b,h({index:b,confirmed:!0});else for(let U=b;U>=0;U-=1)if(u[U]>0&&n[U].resizable){C=U,h({index:U,confirmed:!0});break}}const x=(w=C??(p==null?void 0:p.index))!==null&&w!==void 0?w:b,T=Tt(u),R=x+1,O=c(a[x][0],0),M=c(a[R][0],0),P=c(a[x][1],s),k=c(a[R][1],s);let $=E;return T[x]+$<O&&($=O-T[x]),T[R]-$<M&&($=T[R]-M),T[x]+$>P&&($=P-T[x]),T[R]-$>k&&($=T[R]-k),T[x]+=$,T[R]-=$,o(T),T},()=>{h(null)},(b,E)=>{const w=g(),C=E==="start"?b:b+1,x=E==="start"?b+1:b,T=w[C],R=w[x];if(T!==0&&R!==0)w[C]=0,w[x]+=T,f.current[b]=T;else{const O=T+R,M=c(a[C][0],0),P=c(a[C][1],s),k=c(a[x][0],0),$=c(a[x][1],s),U=Math.max(M,O-$),D=(Math.min(P,O-k)-U)/2,B=f.current[b],Y=O-B;B&&B<=$&&B>=k&&Y<=P&&Y>=M?(w[x]=B,w[C]=Y):(w[C]-=D,w[x]+=D)}return o(w),w},p==null?void 0:p.index]}function Oq(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}const JYt=e=>{const{prefixCls:n,vertical:r,index:i,active:o,ariaNow:a,ariaMin:s,ariaMax:l,resizable:c,startCollapsible:u,endCollapsible:d,onOffsetStart:f,onOffsetUpdate:p,onOffsetEnd:h,onCollapse:g,lazy:v,containerSize:y}=e,_=`${n}-bar`,[S,b]=m.useState(null),[E,w]=m.useState(0),C=r?0:E,x=r?E:0,T=z=>{c&&z.currentTarget&&(b([z.pageX,z.pageY]),f(i))},R=z=>{if(c&&z.touches.length===1){const D=z.touches[0];b([D.pageX,D.pageY]),f(i)}},O=z=>{const D=y*a/100,B=D+z,Y=Math.max(0,y*s/100),q=Math.min(y,y*l/100);return Math.max(Y,Math.min(q,B))-D},M=Sr((z,D)=>{const B=O(r?D:z);w(B)}),P=Sr(()=>{p(i,C,x),w(0)});V.useEffect(()=>{if(S){const z=q=>{const{pageX:K,pageY:H}=q,G=K-S[0],Q=H-S[1];v?M(G,Q):p(i,G,Q)},D=()=>{v&&P(),b(null),h()},B=q=>{if(q.touches.length===1){const K=q.touches[0],H=K.pageX-S[0],G=K.pageY-S[1];v?M(H,G):p(i,H,G)}},Y=()=>{v&&P(),b(null),h()};return window.addEventListener("touchmove",B),window.addEventListener("touchend",Y),window.addEventListener("mousemove",z),window.addEventListener("mouseup",D),()=>{window.removeEventListener("mousemove",z),window.removeEventListener("mouseup",D),window.removeEventListener("touchmove",B),window.removeEventListener("touchend",Y)}}},[S,v,r,i,y,a,s,l]);const k={[`--${_}-preview-offset`]:`${E}px`},$=r?kze:_A,U=r?cI:w0;return V.createElement("div",{className:_,role:"separator","aria-valuenow":Oq(a),"aria-valuemin":Oq(s),"aria-valuemax":Oq(l)},v&&V.createElement("div",{className:Ce(`${_}-preview`,{[`${_}-preview-active`]:!!E}),style:k}),V.createElement("div",{className:Ce(`${_}-dragger`,{[`${_}-dragger-disabled`]:!c,[`${_}-dragger-active`]:o}),onMouseDown:T,onTouchStart:R}),u&&V.createElement("div",{className:Ce(`${_}-collapse-bar`,`${_}-collapse-bar-start`),onClick:()=>g(i,"start")},V.createElement($,{className:Ce(`${_}-collapse-icon`,`${_}-collapse-start`)})),d&&V.createElement("div",{className:Ce(`${_}-collapse-bar`,`${_}-collapse-bar-end`),onClick:()=>g(i,"end")},V.createElement(U,{className:Ce(`${_}-collapse-icon`,`${_}-collapse-end`)})))},eqt=e=>{const{componentCls:n}=e;return{[`&-rtl${n}-horizontal`]:{[`> ${n}-bar`]:{[`${n}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${n}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${n}-vertical`]:{[`> ${n}-bar`]:{[`${n}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${n}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},o4={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},tqt=e=>{const{componentCls:n,colorFill:r,splitBarDraggableSize:i,splitBarSize:o,splitTriggerSize:a,controlItemBgHover:s,controlItemBgActive:l,controlItemBgActiveHover:c,prefixCls:u}=e,d=`${n}-bar`,f=`${n}-mask`,p=`${n}-panel`,h=e.calc(a).div(2).equal(),g=`${u}-bar-preview-offset`,v={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[n]:Object.assign(Object.assign(Object.assign({},li(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${d}`]:{flex:"none",position:"relative",userSelect:"none",[`${d}-dragger`]:Object.assign(Object.assign({},o4),{zIndex:1,"&::before":Object.assign({content:'""',background:s},o4),"&::after":Object.assign({content:'""',background:r},o4),[`&:hover:not(${d}-dragger-active)`]:{"&::before":{background:l}},"&-active":{zIndex:2,"&::before":{background:c}},[`&-disabled${d}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:s}},"&::after":{display:"none"}}}),[`${d}-collapse-bar`]:Object.assign(Object.assign({},o4),{zIndex:e.zIndexPopupBase,background:s,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:l},"&:active":{background:c}}),"&:hover, &:active":{[`${d}-collapse-bar`]:{opacity:1}}},[f]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${d}`]:{width:0,[`${d}-preview`]:Object.assign(Object.assign({height:"100%",width:o},v),{[`&${d}-preview-active`]:{display:"block",transform:`translateX(var(--${g}))`}}),[`${d}-dragger`]:{cursor:"col-resize",height:"100%",width:a,"&::before":{height:"100%",width:o},"&::after":{height:i,width:o}},[`${d}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:h},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:h},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${d}`]:{height:0,[`${d}-preview`]:Object.assign(Object.assign({height:o,width:"100%"},v),{[`&${d}-preview-active`]:{display:"block",transform:`translateY(var(--${g}))`}}),[`${d}-dragger`]:{cursor:"row-resize",width:"100%",height:a,"&::before":{width:"100%",height:o},"&::after":{width:i,height:o}},[`${d}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:h,transform:"translateX(-50%)"},"&-end":{top:h,bottom:"auto",transform:"translateX(-50%)"}}}},[p]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${n}:only-child)`]:{overflow:"hidden"}}}),eqt(e))}},nqt=e=>{var n;const r=e.splitBarSize||2,i=e.splitTriggerSize||6,o=e.resizeSpinnerSize||20,a=(n=e.splitBarDraggableSize)!==null&&n!==void 0?n:o;return{splitBarSize:r,splitTriggerSize:i,splitBarDraggableSize:a,resizeSpinnerSize:o}},rqt=Yr("Splitter",e=>[tqt(e)],nqt),iqt=e=>{const{prefixCls:n,className:r,style:i,layout:o="horizontal",children:a,rootClassName:s,onResizeStart:l,onResize:c,onResizeEnd:u,lazy:d}=e,{getPrefixCls:f,direction:p,splitter:h}=V.useContext(Cn),g=f("splitter",n),v=po(g),[y,_,S]=rqt(g,v),b=o==="vertical",E=p==="rtl",w=!b&&E,C=KYt(a),[x,T]=m.useState(),R=oe=>{const{offsetWidth:de,offsetHeight:pe}=oe,me=b?pe:de;me!==0&&T(me)},[O,M,P,k,$,U]=QYt(C,x),z=XYt(C,M),[D,B,Y,q,K]=ZYt(C,z,P,x,U),H=Sr(oe=>{D(oe),l==null||l(M)}),G=Sr((oe,de)=>{const pe=B(oe,de);c==null||c(pe)}),Q=Sr(()=>{Y(),u==null||u(M)}),le=Sr((oe,de)=>{const pe=q(oe,de);c==null||c(pe),u==null||u(pe)}),Z=Ce(g,r,`${g}-${o}`,{[`${g}-rtl`]:E},s,h==null?void 0:h.className,S,v,_),j=`${g}-mask`,F=V.useMemo(()=>{const oe=[];let de=0;for(let pe=0;pe<C.length;pe+=1)de+=P[pe],oe.push(de);return oe},[P]),te=Object.assign(Object.assign({},h==null?void 0:h.style),i);return y(V.createElement(Hc,{onResize:R},V.createElement("div",{style:te,className:Z},C.map((oe,de)=>{const pe=V.createElement(GYt,Object.assign({},oe,{prefixCls:g,size:O[de]}));let me=null;const ve=z[de];if(ve){const he=(F[de-1]||0)+k[de],be=(F[de+1]||100)-$[de+1],we=(F[de-1]||0)+$[de],De=(F[de+1]||100)-k[de+1];me=V.createElement(JYt,{lazy:d,index:de,active:K===de,prefixCls:g,vertical:b,resizable:ve.resizable,ariaNow:F[de]*100,ariaMin:Math.max(he,be)*100,ariaMax:Math.min(we,De)*100,startCollapsible:ve.startCollapsible,endCollapsible:ve.endCollapsible,onOffsetStart:H,onOffsetUpdate:(Ae,Ee,Re)=>{let Te=b?Re:Ee;w&&(Te=-Te),G(Ae,Te)},onOffsetEnd:Q,onCollapse:le,containerSize:x||0})}return V.createElement(V.Fragment,{key:`split-panel-${de}`},pe,me)}),typeof K=="number"&&V.createElement("div",{"aria-hidden":!0,className:Ce(j,`${j}-${o}`)}))))},v6=iqt;v6.Panel=WYt;let Nt;const oqt=()=>{const e=J9.useApp();return Nt=e.message,e.modal,e.notification,null};var dGe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r=function(X,se){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,Ie){ye.__proto__=Ie}||function(ye,Ie){for(var Le in Ie)Object.prototype.hasOwnProperty.call(Ie,Le)&&(ye[Le]=Ie[Le])})(X,se)},i=function(){return(i=Object.assign||function(X){for(var se,ye=1,Ie=arguments.length;ye<Ie;ye++)for(var Le in se=arguments[ye])Object.prototype.hasOwnProperty.call(se,Le)&&(X[Le]=se[Le]);return X}).apply(this,arguments)};function o(X,se,ye){for(var Ie,Le=0,We=se.length;Le<We;Le++)!Ie&&Le in se||((Ie=Ie||Array.prototype.slice.call(se,0,Le))[Le]=se[Le]);return X.concat(Ie||Array.prototype.slice.call(se))}var a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:oo,s=Object.keys,l=Array.isArray;function c(X,se){return typeof se!="object"||s(se).forEach(function(ye){X[ye]=se[ye]}),X}typeof Promise>"u"||a.Promise||(a.Promise=Promise);var u=Object.getPrototypeOf,d={}.hasOwnProperty;function f(X,se){return d.call(X,se)}function p(X,se){typeof se=="function"&&(se=se(u(X))),(typeof Reflect>"u"?s:Reflect.ownKeys)(se).forEach(function(ye){g(X,ye,se[ye])})}var h=Object.defineProperty;function g(X,se,ye,Ie){h(X,se,c(ye&&f(ye,"get")&&typeof ye.get=="function"?{get:ye.get,set:ye.set,configurable:!0}:{value:ye,configurable:!0,writable:!0},Ie))}function v(X){return{from:function(se){return X.prototype=Object.create(se.prototype),g(X.prototype,"constructor",X),{extend:p.bind(null,X.prototype)}}}}var y=Object.getOwnPropertyDescriptor,_=[].slice;function S(X,se,ye){return _.call(X,se,ye)}function b(X,se){return se(X)}function E(X){if(!X)throw new Error("Assertion Failed")}function w(X){a.setImmediate?setImmediate(X):setTimeout(X,0)}function C(X,se){if(typeof se=="string"&&f(X,se))return X[se];if(!se)return X;if(typeof se!="string"){for(var ye=[],Ie=0,Le=se.length;Ie<Le;++Ie){var We=C(X,se[Ie]);ye.push(We)}return ye}var rt=se.indexOf(".");if(rt!==-1){var ut=X[se.substr(0,rt)];return ut==null?void 0:C(ut,se.substr(rt+1))}}function x(X,se,ye){if(X&&se!==void 0&&!("isFrozen"in Object&&Object.isFrozen(X)))if(typeof se!="string"&&"length"in se){E(typeof ye!="string"&&"length"in ye);for(var Ie=0,Le=se.length;Ie<Le;++Ie)x(X,se[Ie],ye[Ie])}else{var We,rt,ut=se.indexOf(".");ut!==-1?(We=se.substr(0,ut),(rt=se.substr(ut+1))===""?ye===void 0?l(X)&&!isNaN(parseInt(We))?X.splice(We,1):delete X[We]:X[We]=ye:x(ut=!(ut=X[We])||!f(X,We)?X[We]={}:ut,rt,ye)):ye===void 0?l(X)&&!isNaN(parseInt(se))?X.splice(se,1):delete X[se]:X[se]=ye}}function T(X){var se,ye={};for(se in X)f(X,se)&&(ye[se]=X[se]);return ye}var R=[].concat;function O(X){return R.apply([],X)}var ur="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(O([8,16,32,64].map(function(X){return["Int","Uint","Float"].map(function(se){return se+X+"Array"})}))).filter(function(X){return a[X]}),M=new Set(ur.map(function(X){return a[X]})),P=null;function k(X){return P=new WeakMap,X=function se(ye){if(!ye||typeof ye!="object")return ye;var Ie=P.get(ye);if(Ie)return Ie;if(l(ye)){Ie=[],P.set(ye,Ie);for(var Le=0,We=ye.length;Le<We;++Le)Ie.push(se(ye[Le]))}else if(M.has(ye.constructor))Ie=ye;else{var rt,ut=u(ye);for(rt in Ie=ut===Object.prototype?{}:Object.create(ut),P.set(ye,Ie),ye)f(ye,rt)&&(Ie[rt]=se(ye[rt]))}return Ie}(X),P=null,X}var $={}.toString;function U(X){return $.call(X).slice(8,-1)}var z=typeof Symbol<"u"?Symbol.iterator:"@@iterator",D=typeof z=="symbol"?function(X){var se;return X!=null&&(se=X[z])&&se.apply(X)}:function(){return null};function B(X,se){return se=X.indexOf(se),0<=se&&X.splice(se,1),0<=se}var Y={};function q(X){var se,ye,Ie,Le;if(arguments.length===1){if(l(X))return X.slice();if(this===Y&&typeof X=="string")return[X];if(Le=D(X)){for(ye=[];!(Ie=Le.next()).done;)ye.push(Ie.value);return ye}if(X==null)return[X];if(typeof(se=X.length)!="number")return[X];for(ye=new Array(se);se--;)ye[se]=X[se];return ye}for(se=arguments.length,ye=new Array(se);se--;)ye[se]=arguments[se];return ye}var K=typeof Symbol<"u"?function(X){return X[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},je=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],$u=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(je),H={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function G(X,se){this.name=X,this.message=se}function Q(X,se){return X+". Errors: "+Object.keys(se).map(function(ye){return se[ye].toString()}).filter(function(ye,Ie,Le){return Le.indexOf(ye)===Ie}).join(`
|
||
`)}function le(X,se,ye,Ie){this.failures=se,this.failedKeys=Ie,this.successCount=ye,this.message=Q(X,se)}function Z(X,se){this.name="BulkError",this.failures=Object.keys(se).map(function(ye){return se[ye]}),this.failuresByPos=se,this.message=Q(X,this.failures)}v(G).from(Error).extend({toString:function(){return this.name+": "+this.message}}),v(le).from(G),v(Z).from(G);var j=$u.reduce(function(X,se){return X[se]=se+"Error",X},{}),F=G,te=$u.reduce(function(X,se){var ye=se+"Error";function Ie(Le,We){this.name=ye,Le?typeof Le=="string"?(this.message="".concat(Le).concat(We?`
|
||
`+We:""),this.inner=We||null):typeof Le=="object"&&(this.message="".concat(Le.name," ").concat(Le.message),this.inner=Le):(this.message=H[se]||ye,this.inner=null)}return v(Ie).from(F),X[se]=Ie,X},{});te.Syntax=SyntaxError,te.Type=TypeError,te.Range=RangeError;var oe=je.reduce(function(X,se){return X[se+"Error"]=te[se],X},{}),de=$u.reduce(function(X,se){return["Syntax","Type","Range"].indexOf(se)===-1&&(X[se+"Error"]=te[se]),X},{});function pe(){}function me(X){return X}function ve(X,se){return X==null||X===me?se:function(ye){return se(X(ye))}}function he(X,se){return function(){X.apply(this,arguments),se.apply(this,arguments)}}function be(X,se){return X===pe?se:function(){var ye=X.apply(this,arguments);ye!==void 0&&(arguments[0]=ye);var Ie=this.onsuccess,Le=this.onerror;this.onsuccess=null,this.onerror=null;var We=se.apply(this,arguments);return Ie&&(this.onsuccess=this.onsuccess?he(Ie,this.onsuccess):Ie),Le&&(this.onerror=this.onerror?he(Le,this.onerror):Le),We!==void 0?We:ye}}function we(X,se){return X===pe?se:function(){X.apply(this,arguments);var ye=this.onsuccess,Ie=this.onerror;this.onsuccess=this.onerror=null,se.apply(this,arguments),ye&&(this.onsuccess=this.onsuccess?he(ye,this.onsuccess):ye),Ie&&(this.onerror=this.onerror?he(Ie,this.onerror):Ie)}}function De(X,se){return X===pe?se:function(ye){var Ie=X.apply(this,arguments);c(ye,Ie);var Le=this.onsuccess,We=this.onerror;return this.onsuccess=null,this.onerror=null,ye=se.apply(this,arguments),Le&&(this.onsuccess=this.onsuccess?he(Le,this.onsuccess):Le),We&&(this.onerror=this.onerror?he(We,this.onerror):We),Ie===void 0?ye===void 0?void 0:ye:c(Ie,ye)}}function Ae(X,se){return X===pe?se:function(){return se.apply(this,arguments)!==!1&&X.apply(this,arguments)}}function Ee(X,se){return X===pe?se:function(){var ye=X.apply(this,arguments);if(ye&&typeof ye.then=="function"){for(var Ie=this,Le=arguments.length,We=new Array(Le);Le--;)We[Le]=arguments[Le];return ye.then(function(){return se.apply(Ie,We)})}return se.apply(this,arguments)}}de.ModifyError=le,de.DexieError=G,de.BulkError=Z;var Re=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Te(X){Re=X}var Oe={},Ne=100,ur=typeof Promise>"u"?[]:function(){var X=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[X,u(X),X];var se=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[se,u(se),X]}(),je=ur[0],$u=ur[1],ur=ur[2],$u=$u&&$u.then,ne=je&&je.constructor,J=!!ur,ae=function(X,se){st.push([X,se]),xe&&(queueMicrotask(Wt),xe=!1)},Se=!0,xe=!0,ue=[],Me=[],$e=me,ge={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:pe,pgp:!1,env:{},finalize:pe},Ve=ge,st=[],Je=0,ot=[];function Xe(X){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var se=this._PSD=Ve;if(typeof X!="function"){if(X!==Oe)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&at(this,this._value))}this._state=null,this._value=null,++se.ref,function ye(Ie,Le){try{Le(function(We){if(Ie._state===null){if(We===Ie)throw new TypeError("A promise cannot be resolved with itself.");var rt=Ie._lib&&Bt();We&&typeof We.then=="function"?ye(Ie,function(ut,St){We instanceof Xe?We._then(ut,St):We.then(ut,St)}):(Ie._state=!0,Ie._value=We,pt(Ie)),rt&&Vt()}},at.bind(null,Ie))}catch(We){at(Ie,We)}}(this,X)}var Ze={get:function(){var X=Ve,se=Kt;function ye(Ie,Le){var We=this,rt=!X.global&&(X!==Ve||se!==Kt),ut=rt&&!sn(),St=new Xe(function(ze,et){Ct(We,new bt(jt(Ie,X,rt,ut),jt(Le,X,rt,ut),ze,et,X))});return this._consoleTask&&(St._consoleTask=this._consoleTask),St}return ye.prototype=Oe,ye},set:function(X){g(this,"then",X&&X.prototype===Oe?Ze:{get:function(){return X},set:Ze.set})}};function bt(X,se,ye,Ie,Le){this.onFulfilled=typeof X=="function"?X:null,this.onRejected=typeof se=="function"?se:null,this.resolve=ye,this.reject=Ie,this.psd=Le}function at(X,se){var ye,Ie;Me.push(se),X._state===null&&(ye=X._lib&&Bt(),se=$e(se),X._state=!1,X._value=se,Ie=X,ue.some(function(Le){return Le._value===Ie._value})||ue.push(Ie),pt(X),ye&&Vt())}function pt(X){var se=X._listeners;X._listeners=[];for(var ye=0,Ie=se.length;ye<Ie;++ye)Ct(X,se[ye]);var Le=X._PSD;--Le.ref||Le.finalize(),Je===0&&(++Je,ae(function(){--Je==0&&rn()},[]))}function Ct(X,se){if(X._state!==null){var ye=X._state?se.onFulfilled:se.onRejected;if(ye===null)return(X._state?se.resolve:se.reject)(X._value);++se.psd.ref,++Je,ae(It,[ye,X,se])}else X._listeners.push(se)}function It(X,se,ye){try{var Ie,Le=se._value;!se._state&&Me.length&&(Me=[]),Ie=Re&&se._consoleTask?se._consoleTask.run(function(){return X(Le)}):X(Le),se._state||Me.indexOf(Le)!==-1||function(We){for(var rt=ue.length;rt;)if(ue[--rt]._value===We._value)return ue.splice(rt,1)}(se),ye.resolve(Ie)}catch(We){ye.reject(We)}finally{--Je==0&&rn(),--ye.psd.ref||ye.psd.finalize()}}function Wt(){ln(ge,function(){Bt()&&Vt()})}function Bt(){var X=Se;return xe=Se=!1,X}function Vt(){var X,se,ye;do for(;0<st.length;)for(X=st,st=[],ye=X.length,se=0;se<ye;++se){var Ie=X[se];Ie[0].apply(null,Ie[1])}while(0<st.length);xe=Se=!0}function rn(){var X=ue;ue=[],X.forEach(function(Ie){Ie._PSD.onunhandled.call(null,Ie._value,Ie)});for(var se=ot.slice(0),ye=se.length;ye;)se[--ye]()}function tt(X){return new Xe(Oe,!1,X)}function it(X,se){var ye=Ve;return function(){var Ie=Bt(),Le=Ve;try{return Pt(ye,!0),X.apply(this,arguments)}catch(We){se&&se(We)}finally{Pt(Le,!1),Ie&&Vt()}}}p(Xe.prototype,{then:Ze,_then:function(X,se){Ct(this,new bt(null,null,X,se,Ve))},catch:function(X){if(arguments.length===1)return this.then(null,X);var se=X,ye=arguments[1];return typeof se=="function"?this.then(null,function(Ie){return(Ie instanceof se?ye:tt)(Ie)}):this.then(null,function(Ie){return(Ie&&Ie.name===se?ye:tt)(Ie)})},finally:function(X){return this.then(function(se){return Xe.resolve(X()).then(function(){return se})},function(se){return Xe.resolve(X()).then(function(){return tt(se)})})},timeout:function(X,se){var ye=this;return X<1/0?new Xe(function(Ie,Le){var We=setTimeout(function(){return Le(new te.Timeout(se))},X);ye.then(Ie,Le).finally(clearTimeout.bind(null,We))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&g(Xe.prototype,Symbol.toStringTag,"Dexie.Promise"),ge.env=Qt(),p(Xe,{all:function(){var X=q.apply(null,arguments).map(Jt);return new Xe(function(se,ye){X.length===0&&se([]);var Ie=X.length;X.forEach(function(Le,We){return Xe.resolve(Le).then(function(rt){X[We]=rt,--Ie||se(X)},ye)})})},resolve:function(X){return X instanceof Xe?X:X&&typeof X.then=="function"?new Xe(function(se,ye){X.then(se,ye)}):new Xe(Oe,!0,X)},reject:tt,race:function(){var X=q.apply(null,arguments).map(Jt);return new Xe(function(se,ye){X.map(function(Ie){return Xe.resolve(Ie).then(se,ye)})})},PSD:{get:function(){return Ve},set:function(X){return Ve=X}},totalEchoes:{get:function(){return Kt}},newPSD:tn,usePSD:ln,scheduler:{get:function(){return ae},set:function(X){ae=X}},rejectionMapper:{get:function(){return $e},set:function(X){$e=X}},follow:function(X,se){return new Xe(function(ye,Ie){return tn(function(Le,We){var rt=Ve;rt.unhandleds=[],rt.onunhandled=We,rt.finalize=he(function(){var ut,St=this;ut=function(){St.unhandleds.length===0?Le():We(St.unhandleds[0])},ot.push(function ze(){ut(),ot.splice(ot.indexOf(ze),1)}),++Je,ae(function(){--Je==0&&rn()},[])},rt.finalize),X()},se,ye,Ie)})}}),ne&&(ne.allSettled&&g(Xe,"allSettled",function(){var X=q.apply(null,arguments).map(Jt);return new Xe(function(se){X.length===0&&se([]);var ye=X.length,Ie=new Array(ye);X.forEach(function(Le,We){return Xe.resolve(Le).then(function(rt){return Ie[We]={status:"fulfilled",value:rt}},function(rt){return Ie[We]={status:"rejected",reason:rt}}).then(function(){return--ye||se(Ie)})})})}),ne.any&&typeof AggregateError<"u"&&g(Xe,"any",function(){var X=q.apply(null,arguments).map(Jt);return new Xe(function(se,ye){X.length===0&&ye(new AggregateError([]));var Ie=X.length,Le=new Array(Ie);X.forEach(function(We,rt){return Xe.resolve(We).then(function(ut){return se(ut)},function(ut){Le[rt]=ut,--Ie||ye(new AggregateError(Le))})})})}),ne.withResolvers&&(Xe.withResolvers=ne.withResolvers));var nt={awaits:0,echoes:0,id:0},vt=0,kt=[],Dt=0,Kt=0,Ht=0;function tn(X,se,ye,Ie){var Le=Ve,We=Object.create(Le);return We.parent=Le,We.ref=0,We.global=!1,We.id=++Ht,ge.env,We.env=J?{Promise:Xe,PromiseProp:{value:Xe,configurable:!0,writable:!0},all:Xe.all,race:Xe.race,allSettled:Xe.allSettled,any:Xe.any,resolve:Xe.resolve,reject:Xe.reject}:{},se&&c(We,se),++Le.ref,We.finalize=function(){--this.parent.ref||this.parent.finalize()},Ie=ln(We,X,ye,Ie),We.ref===0&&We.finalize(),Ie}function on(){return nt.id||(nt.id=++vt),++nt.awaits,nt.echoes+=Ne,nt.id}function sn(){return!!nt.awaits&&(--nt.awaits==0&&(nt.id=0),nt.echoes=nt.awaits*Ne,!0)}function Jt(X){return nt.echoes&&X&&X.constructor===ne?(on(),X.then(function(se){return sn(),se},function(se){return sn(),en(se)})):X}function En(){var X=kt[kt.length-1];kt.pop(),Pt(X,!1)}function Pt(X,se){var ye,Ie=Ve;(se?!nt.echoes||Dt++&&X===Ve:!Dt||--Dt&&X===Ve)||queueMicrotask(se?(function(Le){++Kt,nt.echoes&&--nt.echoes!=0||(nt.echoes=nt.awaits=nt.id=0),kt.push(Ve),Pt(Le,!0)}).bind(null,X):En),X!==Ve&&(Ve=X,Ie===ge&&(ge.env=Qt()),J&&(ye=ge.env.Promise,se=X.env,(Ie.global||X.global)&&(Object.defineProperty(a,"Promise",se.PromiseProp),ye.all=se.all,ye.race=se.race,ye.resolve=se.resolve,ye.reject=se.reject,se.allSettled&&(ye.allSettled=se.allSettled),se.any&&(ye.any=se.any))))}function Qt(){var X=a.Promise;return J?{Promise:X,PromiseProp:Object.getOwnPropertyDescriptor(a,"Promise"),all:X.all,race:X.race,allSettled:X.allSettled,any:X.any,resolve:X.resolve,reject:X.reject}:{}}function ln(X,se,ye,Ie,Le){var We=Ve;try{return Pt(X,!0),se(ye,Ie,Le)}finally{Pt(We,!1)}}function jt(X,se,ye,Ie){return typeof X!="function"?X:function(){var Le=Ve;ye&&on(),Pt(se,!0);try{return X.apply(this,arguments)}finally{Pt(Le,!1),Ie&&queueMicrotask(sn)}}}function Lt(X){Promise===ne&&nt.echoes===0?Dt===0?X():enqueueNativeMicroTask(X):setTimeout(X,0)}(""+$u).indexOf("[native code]")===-1&&(on=sn=pe);var en=Xe.reject,Ue="",Zt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Et="String expected.",Gt=[],zt="__dbnames",Vn="readonly",sr="readwrite";function A(X,se){return X?se?function(){return X.apply(this,arguments)&&se.apply(this,arguments)}:X:se}var W={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function ce(X){return typeof X!="string"||/\./.test(X)?function(se){return se}:function(se){return se[X]===void 0&&X in se&&delete(se=k(se))[X],se}}function Pe(){throw te.Type()}function qe(X,se){try{var ye=gt(X),Ie=gt(se);if(ye!==Ie)return ye==="Array"?1:Ie==="Array"?-1:ye==="binary"?1:Ie==="binary"?-1:ye==="string"?1:Ie==="string"?-1:ye==="Date"?1:Ie!=="Date"?NaN:-1;switch(ye){case"number":case"Date":case"string":return se<X?1:X<se?-1:0;case"binary":return function(Le,We){for(var rt=Le.length,ut=We.length,St=rt<ut?rt:ut,ze=0;ze<St;++ze)if(Le[ze]!==We[ze])return Le[ze]<We[ze]?-1:1;return rt===ut?0:rt<ut?-1:1}(Yt(X),Yt(se));case"Array":return function(Le,We){for(var rt=Le.length,ut=We.length,St=rt<ut?rt:ut,ze=0;ze<St;++ze){var et=qe(Le[ze],We[ze]);if(et!==0)return et}return rt===ut?0:rt<ut?-1:1}(X,se)}}catch{}return NaN}function gt(X){var se=typeof X;return se!="object"?se:ArrayBuffer.isView(X)?"binary":(X=U(X),X==="ArrayBuffer"?"binary":X)}function Yt(X){return X instanceof Uint8Array?X:ArrayBuffer.isView(X)?new Uint8Array(X.buffer,X.byteOffset,X.byteLength):new Uint8Array(X)}var Nn=(Jn.prototype._trans=function(X,se,ye){var Ie=this._tx||Ve.trans,Le=this.name,We=Re&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(X==="readonly"?"read":"write"," ").concat(this.name));function rt(ze,et,Ge){if(!Ge.schema[Le])throw new te.NotFound("Table "+Le+" not part of transaction");return se(Ge.idbtrans,Ge)}var ut=Bt();try{var St=Ie&&Ie.db._novip===this.db._novip?Ie===Ve.trans?Ie._promise(X,rt,ye):tn(function(){return Ie._promise(X,rt,ye)},{trans:Ie,transless:Ve.transless||Ve}):function ze(et,Ge,dt,lt){if(et.idbdb&&(et._state.openComplete||Ve.letThrough||et._vip)){var yt=et._createTransaction(Ge,dt,et._dbSchema);try{yt.create(),et._state.PR1398_maxLoop=3}catch(xt){return xt.name===j.InvalidState&&et.isOpen()&&0<--et._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),et.close({disableAutoOpen:!1}),et.open().then(function(){return ze(et,Ge,dt,lt)})):en(xt)}return yt._promise(Ge,function(xt,mt){return tn(function(){return Ve.trans=yt,lt(xt,mt,yt)})}).then(function(xt){if(Ge==="readwrite")try{yt.idbtrans.commit()}catch{}return Ge==="readonly"?xt:yt._completion.then(function(){return xt})})}if(et._state.openComplete)return en(new te.DatabaseClosed(et._state.dbOpenError));if(!et._state.isBeingOpened){if(!et._state.autoOpen)return en(new te.DatabaseClosed);et.open().catch(pe)}return et._state.dbReadyPromise.then(function(){return ze(et,Ge,dt,lt)})}(this.db,X,[this.name],rt);return We&&(St._consoleTask=We,St=St.catch(function(ze){return console.trace(ze),en(ze)})),St}finally{ut&&Vt()}},Jn.prototype.get=function(X,se){var ye=this;return X&&X.constructor===Object?this.where(X).first(se):X==null?en(new te.Type("Invalid argument to Table.get()")):this._trans("readonly",function(Ie){return ye.core.get({trans:Ie,key:X}).then(function(Le){return ye.hook.reading.fire(Le)})}).then(se)},Jn.prototype.where=function(X){if(typeof X=="string")return new this.db.WhereClause(this,X);if(l(X))return new this.db.WhereClause(this,"[".concat(X.join("+"),"]"));var se=s(X);if(se.length===1)return this.where(se[0]).equals(X[se[0]]);var ye=this.schema.indexes.concat(this.schema.primKey).filter(function(ut){if(ut.compound&&se.every(function(ze){return 0<=ut.keyPath.indexOf(ze)})){for(var St=0;St<se.length;++St)if(se.indexOf(ut.keyPath[St])===-1)return!1;return!0}return!1}).sort(function(ut,St){return ut.keyPath.length-St.keyPath.length})[0];if(ye&&this.db._maxKey!==Ue){var We=ye.keyPath.slice(0,se.length);return this.where(We).equals(We.map(function(St){return X[St]}))}!ye&&Re&&console.warn("The query ".concat(JSON.stringify(X)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(se.join("+"),"]"));var Ie=this.schema.idxByName;function Le(ut,St){return qe(ut,St)===0}var rt=se.reduce(function(Ge,St){var ze=Ge[0],et=Ge[1],Ge=Ie[St],dt=X[St];return[ze||Ge,ze||!Ge?A(et,Ge&&Ge.multi?function(lt){return lt=C(lt,St),l(lt)&<.some(function(yt){return Le(dt,yt)})}:function(lt){return Le(dt,C(lt,St))}):et]},[null,null]),We=rt[0],rt=rt[1];return We?this.where(We.name).equals(X[We.keyPath]).filter(rt):ye?this.filter(rt):this.where(se).equals("")},Jn.prototype.filter=function(X){return this.toCollection().and(X)},Jn.prototype.count=function(X){return this.toCollection().count(X)},Jn.prototype.offset=function(X){return this.toCollection().offset(X)},Jn.prototype.limit=function(X){return this.toCollection().limit(X)},Jn.prototype.each=function(X){return this.toCollection().each(X)},Jn.prototype.toArray=function(X){return this.toCollection().toArray(X)},Jn.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},Jn.prototype.orderBy=function(X){return new this.db.Collection(new this.db.WhereClause(this,l(X)?"[".concat(X.join("+"),"]"):X))},Jn.prototype.reverse=function(){return this.toCollection().reverse()},Jn.prototype.mapToClass=function(X){var se,ye=this.db,Ie=this.name;function Le(){return se!==null&&se.apply(this,arguments)||this}(this.schema.mappedClass=X).prototype instanceof Pe&&(function(St,ze){if(typeof ze!="function"&&ze!==null)throw new TypeError("Class extends value "+String(ze)+" is not a constructor or null");function et(){this.constructor=St}r(St,ze),St.prototype=ze===null?Object.create(ze):(et.prototype=ze.prototype,new et)}(Le,se=X),Object.defineProperty(Le.prototype,"db",{get:function(){return ye},enumerable:!1,configurable:!0}),Le.prototype.table=function(){return Ie},X=Le);for(var We=new Set,rt=X.prototype;rt;rt=u(rt))Object.getOwnPropertyNames(rt).forEach(function(St){return We.add(St)});function ut(St){if(!St)return St;var ze,et=Object.create(X.prototype);for(ze in St)if(!We.has(ze))try{et[ze]=St[ze]}catch{}return et}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=ut,this.hook("reading",ut),X},Jn.prototype.defineClass=function(){return this.mapToClass(function(X){c(this,X)})},Jn.prototype.add=function(X,se){var ye=this,Ie=this.schema.primKey,Le=Ie.auto,We=Ie.keyPath,rt=X;return We&&Le&&(rt=ce(We)(X)),this._trans("readwrite",function(ut){return ye.core.mutate({trans:ut,type:"add",keys:se!=null?[se]:null,values:[rt]})}).then(function(ut){return ut.numFailures?Xe.reject(ut.failures[0]):ut.lastResult}).then(function(ut){if(We)try{x(X,We,ut)}catch{}return ut})},Jn.prototype.update=function(X,se){return typeof X!="object"||l(X)?this.where(":id").equals(X).modify(se):(X=C(X,this.schema.primKey.keyPath),X===void 0?en(new te.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(X).modify(se))},Jn.prototype.put=function(X,se){var ye=this,Ie=this.schema.primKey,Le=Ie.auto,We=Ie.keyPath,rt=X;return We&&Le&&(rt=ce(We)(X)),this._trans("readwrite",function(ut){return ye.core.mutate({trans:ut,type:"put",values:[rt],keys:se!=null?[se]:null})}).then(function(ut){return ut.numFailures?Xe.reject(ut.failures[0]):ut.lastResult}).then(function(ut){if(We)try{x(X,We,ut)}catch{}return ut})},Jn.prototype.delete=function(X){var se=this;return this._trans("readwrite",function(ye){return se.core.mutate({trans:ye,type:"delete",keys:[X]})}).then(function(ye){return ye.numFailures?Xe.reject(ye.failures[0]):void 0})},Jn.prototype.clear=function(){var X=this;return this._trans("readwrite",function(se){return X.core.mutate({trans:se,type:"deleteRange",range:W})}).then(function(se){return se.numFailures?Xe.reject(se.failures[0]):void 0})},Jn.prototype.bulkGet=function(X){var se=this;return this._trans("readonly",function(ye){return se.core.getMany({keys:X,trans:ye}).then(function(Ie){return Ie.map(function(Le){return se.hook.reading.fire(Le)})})})},Jn.prototype.bulkAdd=function(X,se,ye){var Ie=this,Le=Array.isArray(se)?se:void 0,We=(ye=ye||(Le?void 0:se))?ye.allKeys:void 0;return this._trans("readwrite",function(rt){var ze=Ie.schema.primKey,ut=ze.auto,ze=ze.keyPath;if(ze&&Le)throw new te.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(Le&&Le.length!==X.length)throw new te.InvalidArgument("Arguments objects and keys must have the same length");var St=X.length,ze=ze&&ut?X.map(ce(ze)):X;return Ie.core.mutate({trans:rt,type:"add",keys:Le,values:ze,wantResults:We}).then(function(yt){var Ge=yt.numFailures,dt=yt.results,lt=yt.lastResult,yt=yt.failures;if(Ge===0)return We?dt:lt;throw new Z("".concat(Ie.name,".bulkAdd(): ").concat(Ge," of ").concat(St," operations failed"),yt)})})},Jn.prototype.bulkPut=function(X,se,ye){var Ie=this,Le=Array.isArray(se)?se:void 0,We=(ye=ye||(Le?void 0:se))?ye.allKeys:void 0;return this._trans("readwrite",function(rt){var ze=Ie.schema.primKey,ut=ze.auto,ze=ze.keyPath;if(ze&&Le)throw new te.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(Le&&Le.length!==X.length)throw new te.InvalidArgument("Arguments objects and keys must have the same length");var St=X.length,ze=ze&&ut?X.map(ce(ze)):X;return Ie.core.mutate({trans:rt,type:"put",keys:Le,values:ze,wantResults:We}).then(function(yt){var Ge=yt.numFailures,dt=yt.results,lt=yt.lastResult,yt=yt.failures;if(Ge===0)return We?dt:lt;throw new Z("".concat(Ie.name,".bulkPut(): ").concat(Ge," of ").concat(St," operations failed"),yt)})})},Jn.prototype.bulkUpdate=function(X){var se=this,ye=this.core,Ie=X.map(function(rt){return rt.key}),Le=X.map(function(rt){return rt.changes}),We=[];return this._trans("readwrite",function(rt){return ye.getMany({trans:rt,keys:Ie,cache:"clone"}).then(function(ut){var St=[],ze=[];X.forEach(function(Ge,dt){var lt=Ge.key,yt=Ge.changes,xt=ut[dt];if(xt){for(var mt=0,Ft=Object.keys(yt);mt<Ft.length;mt++){var qt=Ft[mt],Ut=yt[qt];if(qt===se.schema.primKey.keyPath){if(qe(Ut,lt)!==0)throw new te.Constraint("Cannot update primary key in bulkUpdate()")}else x(xt,qt,Ut)}We.push(dt),St.push(lt),ze.push(xt)}});var et=St.length;return ye.mutate({trans:rt,type:"put",keys:St,values:ze,updates:{keys:Ie,changeSpecs:Le}}).then(function(Ge){var dt=Ge.numFailures,lt=Ge.failures;if(dt===0)return et;for(var yt=0,xt=Object.keys(lt);yt<xt.length;yt++){var mt,Ft=xt[yt],qt=We[Number(Ft)];qt!=null&&(mt=lt[Ft],delete lt[Ft],lt[qt]=mt)}throw new Z("".concat(se.name,".bulkUpdate(): ").concat(dt," of ").concat(et," operations failed"),lt)})})})},Jn.prototype.bulkDelete=function(X){var se=this,ye=X.length;return this._trans("readwrite",function(Ie){return se.core.mutate({trans:Ie,type:"delete",keys:X})}).then(function(rt){var Le=rt.numFailures,We=rt.lastResult,rt=rt.failures;if(Le===0)return We;throw new Z("".concat(se.name,".bulkDelete(): ").concat(Le," of ").concat(ye," operations failed"),rt)})},Jn);function Jn(){}function Ci(X){function se(rt,ut){if(ut){for(var St=arguments.length,ze=new Array(St-1);--St;)ze[St-1]=arguments[St];return ye[rt].subscribe.apply(null,ze),X}if(typeof rt=="string")return ye[rt]}var ye={};se.addEventType=We;for(var Ie=1,Le=arguments.length;Ie<Le;++Ie)We(arguments[Ie]);return se;function We(rt,ut,St){if(typeof rt!="object"){var ze;ut=ut||Ae;var et={subscribers:[],fire:St=St||pe,subscribe:function(Ge){et.subscribers.indexOf(Ge)===-1&&(et.subscribers.push(Ge),et.fire=ut(et.fire,Ge))},unsubscribe:function(Ge){et.subscribers=et.subscribers.filter(function(dt){return dt!==Ge}),et.fire=et.subscribers.reduce(ut,St)}};return ye[rt]=se[rt]=et}s(ze=rt).forEach(function(Ge){var dt=ze[Ge];if(l(dt))We(Ge,ze[Ge][0],ze[Ge][1]);else{if(dt!=="asap")throw new te.InvalidArgument("Invalid event config");var lt=We(Ge,me,function(){for(var yt=arguments.length,xt=new Array(yt);yt--;)xt[yt]=arguments[yt];lt.subscribers.forEach(function(mt){w(function(){mt.apply(null,xt)})})})}})}}function wi(X,se){return v(se).from({prototype:X}),se}function to(X,se){return!(X.filter||X.algorithm||X.or)&&(se?X.justLimit:!X.replayFilter)}function Vr(X,se){X.filter=A(X.filter,se)}function wn(X,se,ye){var Ie=X.replayFilter;X.replayFilter=Ie?function(){return A(Ie(),se())}:se,X.justLimit=ye&&!Ie}function Bn(X,se){if(X.isPrimKey)return se.primaryKey;var ye=se.getIndexByKeyPath(X.index);if(!ye)throw new te.Schema("KeyPath "+X.index+" on object store "+se.name+" is not indexed");return ye}function ni(X,se,ye){var Ie=Bn(X,se.schema);return se.openCursor({trans:ye,values:!X.keysOnly,reverse:X.dir==="prev",unique:!!X.unique,query:{index:Ie,range:X.range}})}function yn(X,se,ye,Ie){var Le=X.replayFilter?A(X.filter,X.replayFilter()):X.filter;if(X.or){var We={},rt=function(ut,St,ze){var et,Ge;Le&&!Le(St,ze,function(dt){return St.stop(dt)},function(dt){return St.fail(dt)})||((Ge=""+(et=St.primaryKey))=="[object ArrayBuffer]"&&(Ge=""+new Uint8Array(et)),f(We,Ge)||(We[Ge]=!0,se(ut,St,ze)))};return Promise.all([X.or._iterate(rt,ye),Sn(ni(X,Ie,ye),X.algorithm,rt,!X.keysOnly&&X.valueMapper)])}return Sn(ni(X,Ie,ye),A(X.algorithm,Le),se,!X.keysOnly&&X.valueMapper)}function Sn(X,se,ye,Ie){var Le=it(Ie?function(We,rt,ut){return ye(Ie(We),rt,ut)}:ye);return X.then(function(We){if(We)return We.start(function(){var rt=function(){return We.continue()};se&&!se(We,function(ut){return rt=ut},function(ut){We.stop(ut),rt=pe},function(ut){We.fail(ut),rt=pe})||Le(We.value,We,function(ut){return rt=ut}),rt()})})}var ur=Symbol(),qr=(zi.prototype.execute=function(X){if(this.add!==void 0){var se=this.add;if(l(se))return o(o([],l(X)?X:[],!0),se).sort();if(typeof se=="number")return(Number(X)||0)+se;if(typeof se=="bigint")try{return BigInt(X)+se}catch{return BigInt(0)+se}throw new TypeError("Invalid term ".concat(se))}if(this.remove!==void 0){var ye=this.remove;if(l(ye))return l(X)?X.filter(function(Ie){return!ye.includes(Ie)}).sort():[];if(typeof ye=="number")return Number(X)-ye;if(typeof ye=="bigint")try{return BigInt(X)-ye}catch{return BigInt(0)-ye}throw new TypeError("Invalid subtrahend ".concat(ye))}return se=(se=this.replacePrefix)===null||se===void 0?void 0:se[0],se&&typeof X=="string"&&X.startsWith(se)?this.replacePrefix[1]+X.substring(se.length):X},zi);function zi(X){Object.assign(this,X)}var Qo=(gr.prototype._read=function(X,se){var ye=this._ctx;return ye.error?ye.table._trans(null,en.bind(null,ye.error)):ye.table._trans("readonly",X).then(se)},gr.prototype._write=function(X){var se=this._ctx;return se.error?se.table._trans(null,en.bind(null,se.error)):se.table._trans("readwrite",X,"locked")},gr.prototype._addAlgorithm=function(X){var se=this._ctx;se.algorithm=A(se.algorithm,X)},gr.prototype._iterate=function(X,se){return yn(this._ctx,X,se,this._ctx.table.core)},gr.prototype.clone=function(X){var se=Object.create(this.constructor.prototype),ye=Object.create(this._ctx);return X&&c(ye,X),se._ctx=ye,se},gr.prototype.raw=function(){return this._ctx.valueMapper=null,this},gr.prototype.each=function(X){var se=this._ctx;return this._read(function(ye){return yn(se,X,ye,se.table.core)})},gr.prototype.count=function(X){var se=this;return this._read(function(ye){var Ie=se._ctx,Le=Ie.table.core;if(to(Ie,!0))return Le.count({trans:ye,query:{index:Bn(Ie,Le.schema),range:Ie.range}}).then(function(rt){return Math.min(rt,Ie.limit)});var We=0;return yn(Ie,function(){return++We,!1},ye,Le).then(function(){return We})}).then(X)},gr.prototype.sortBy=function(X,se){var ye=X.split(".").reverse(),Ie=ye[0],Le=ye.length-1;function We(St,ze){return ze?We(St[ye[ze]],ze-1):St[Ie]}var rt=this._ctx.dir==="next"?1:-1;function ut(St,ze){return qe(We(St,Le),We(ze,Le))*rt}return this.toArray(function(St){return St.sort(ut)}).then(se)},gr.prototype.toArray=function(X){var se=this;return this._read(function(ye){var Ie=se._ctx;if(Ie.dir==="next"&&to(Ie,!0)&&0<Ie.limit){var Le=Ie.valueMapper,We=Bn(Ie,Ie.table.core.schema);return Ie.table.core.query({trans:ye,limit:Ie.limit,values:!0,query:{index:We,range:Ie.range}}).then(function(ut){return ut=ut.result,Le?ut.map(Le):ut})}var rt=[];return yn(Ie,function(ut){return rt.push(ut)},ye,Ie.table.core).then(function(){return rt})},X)},gr.prototype.offset=function(X){var se=this._ctx;return X<=0||(se.offset+=X,to(se)?wn(se,function(){var ye=X;return function(Ie,Le){return ye===0||(ye===1?--ye:Le(function(){Ie.advance(ye),ye=0}),!1)}}):wn(se,function(){var ye=X;return function(){return--ye<0}})),this},gr.prototype.limit=function(X){return this._ctx.limit=Math.min(this._ctx.limit,X),wn(this._ctx,function(){var se=X;return function(ye,Ie,Le){return--se<=0&&Ie(Le),0<=se}},!0),this},gr.prototype.until=function(X,se){return Vr(this._ctx,function(ye,Ie,Le){return!X(ye.value)||(Ie(Le),se)}),this},gr.prototype.first=function(X){return this.limit(1).toArray(function(se){return se[0]}).then(X)},gr.prototype.last=function(X){return this.reverse().first(X)},gr.prototype.filter=function(X){var se;return Vr(this._ctx,function(ye){return X(ye.value)}),(se=this._ctx).isMatch=A(se.isMatch,X),this},gr.prototype.and=function(X){return this.filter(X)},gr.prototype.or=function(X){return new this.db.WhereClause(this._ctx.table,X,this)},gr.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},gr.prototype.desc=function(){return this.reverse()},gr.prototype.eachKey=function(X){var se=this._ctx;return se.keysOnly=!se.isMatch,this.each(function(ye,Ie){X(Ie.key,Ie)})},gr.prototype.eachUniqueKey=function(X){return this._ctx.unique="unique",this.eachKey(X)},gr.prototype.eachPrimaryKey=function(X){var se=this._ctx;return se.keysOnly=!se.isMatch,this.each(function(ye,Ie){X(Ie.primaryKey,Ie)})},gr.prototype.keys=function(X){var se=this._ctx;se.keysOnly=!se.isMatch;var ye=[];return this.each(function(Ie,Le){ye.push(Le.key)}).then(function(){return ye}).then(X)},gr.prototype.primaryKeys=function(X){var se=this._ctx;if(se.dir==="next"&&to(se,!0)&&0<se.limit)return this._read(function(Ie){var Le=Bn(se,se.table.core.schema);return se.table.core.query({trans:Ie,values:!1,limit:se.limit,query:{index:Le,range:se.range}})}).then(function(Ie){return Ie.result}).then(X);se.keysOnly=!se.isMatch;var ye=[];return this.each(function(Ie,Le){ye.push(Le.primaryKey)}).then(function(){return ye}).then(X)},gr.prototype.uniqueKeys=function(X){return this._ctx.unique="unique",this.keys(X)},gr.prototype.firstKey=function(X){return this.limit(1).keys(function(se){return se[0]}).then(X)},gr.prototype.lastKey=function(X){return this.reverse().firstKey(X)},gr.prototype.distinct=function(){var X=this._ctx,X=X.index&&X.table.schema.idxByName[X.index];if(!X||!X.multi)return this;var se={};return Vr(this._ctx,function(Le){var Ie=Le.primaryKey.toString(),Le=f(se,Ie);return se[Ie]=!0,!Le}),this},gr.prototype.modify=function(X){var se=this,ye=this._ctx;return this._write(function(Ie){var Le,We,rt;rt=typeof X=="function"?X:(Le=s(X),We=Le.length,function(mt){for(var Ft=!1,qt=0;qt<We;++qt){var Ut=Le[qt],an=X[Ut],An=C(mt,Ut);an instanceof qr?(x(mt,Ut,an.execute(An)),Ft=!0):An!==an&&(x(mt,Ut,an),Ft=!0)}return Ft});var ut=ye.table.core,Ge=ut.schema.primaryKey,St=Ge.outbound,ze=Ge.extractKey,et=200,Ge=se.db._options.modifyChunkSize;Ge&&(et=typeof Ge=="object"?Ge[ut.name]||Ge["*"]||200:Ge);function dt(mt,Ut){var qt=Ut.failures,Ut=Ut.numFailures;yt+=mt-Ut;for(var an=0,An=s(qt);an<An.length;an++){var Fn=An[an];lt.push(qt[Fn])}}var lt=[],yt=0,xt=[];return se.clone().primaryKeys().then(function(mt){function Ft(Ut){var an=Math.min(et,mt.length-Ut);return ut.getMany({trans:Ie,keys:mt.slice(Ut,Ut+an),cache:"immutable"}).then(function(An){for(var Fn=[],Rn=[],Ln=St?[]:null,mn=[],jn=0;jn<an;++jn){var rr=An[jn],Jr={value:k(rr),primKey:mt[Ut+jn]};rt.call(Jr,Jr.value,Jr)!==!1&&(Jr.value==null?mn.push(mt[Ut+jn]):St||qe(ze(rr),ze(Jr.value))===0?(Rn.push(Jr.value),St&&Ln.push(mt[Ut+jn])):(mn.push(mt[Ut+jn]),Fn.push(Jr.value)))}return Promise.resolve(0<Fn.length&&ut.mutate({trans:Ie,type:"add",values:Fn}).then(function(yi){for(var _i in yi.failures)mn.splice(parseInt(_i),1);dt(Fn.length,yi)})).then(function(){return(0<Rn.length||qt&&typeof X=="object")&&ut.mutate({trans:Ie,type:"put",keys:Ln,values:Rn,criteria:qt,changeSpec:typeof X!="function"&&X,isAdditionalChunk:0<Ut}).then(function(yi){return dt(Rn.length,yi)})}).then(function(){return(0<mn.length||qt&&X===Oo)&&ut.mutate({trans:Ie,type:"delete",keys:mn,criteria:qt,isAdditionalChunk:0<Ut}).then(function(yi){return dt(mn.length,yi)})}).then(function(){return mt.length>Ut+an&&Ft(Ut+et)})})}var qt=to(ye)&&ye.limit===1/0&&(typeof X!="function"||X===Oo)&&{index:ye.index,range:ye.range};return Ft(0).then(function(){if(0<lt.length)throw new le("Error modifying one or more objects",lt,yt,xt);return mt.length})})})},gr.prototype.delete=function(){var X=this._ctx,se=X.range;return to(X)&&(X.isPrimKey||se.type===3)?this._write(function(ye){var Ie=X.table.core.schema.primaryKey,Le=se;return X.table.core.count({trans:ye,query:{index:Ie,range:Le}}).then(function(We){return X.table.core.mutate({trans:ye,type:"deleteRange",range:Le}).then(function(rt){var ut=rt.failures;if(rt.lastResult,rt.results,rt=rt.numFailures,rt)throw new le("Could not delete some values",Object.keys(ut).map(function(St){return ut[St]}),We-rt);return We-rt})})}):this.modify(Oo)},gr);function gr(){}var Oo=function(X,se){return se.value=null};function Pa(X,se){return X<se?-1:X===se?0:1}function Er(X,se){return se<X?-1:X===se?0:1}function nr(X,se,ye){return X=X instanceof kl?new X.Collection(X):X,X._ctx.error=new(ye||TypeError)(se),X}function lr(X){return new X.Collection(X,function(){return Dl("")}).limit(0)}function Kr(X,se,ye,Ie){var Le,We,rt,ut,St,ze,et,Ge=ye.length;if(!ye.every(function(yt){return typeof yt=="string"}))return nr(X,Et);function dt(yt){Le=yt==="next"?function(mt){return mt.toUpperCase()}:function(mt){return mt.toLowerCase()},We=yt==="next"?function(mt){return mt.toLowerCase()}:function(mt){return mt.toUpperCase()},rt=yt==="next"?Pa:Er;var xt=ye.map(function(mt){return{lower:We(mt),upper:Le(mt)}}).sort(function(mt,Ft){return rt(mt.lower,Ft.lower)});ut=xt.map(function(mt){return mt.upper}),St=xt.map(function(mt){return mt.lower}),et=(ze=yt)==="next"?"":Ie}dt("next"),X=new X.Collection(X,function(){return Pi(ut[0],St[Ge-1]+Ie)}),X._ondirectionchange=function(yt){dt(yt)};var lt=0;return X._addAlgorithm(function(yt,xt,mt){var Ft=yt.key;if(typeof Ft!="string")return!1;var qt=We(Ft);if(se(qt,St,lt))return!0;for(var Ut=null,an=lt;an<Ge;++an){var An=function(Fn,Rn,Ln,mn,jn,rr){for(var Jr=Math.min(Fn.length,mn.length),yi=-1,_i=0;_i<Jr;++_i){var Jc=Rn[_i];if(Jc!==mn[_i])return jn(Fn[_i],Ln[_i])<0?Fn.substr(0,_i)+Ln[_i]+Ln.substr(_i+1):jn(Fn[_i],mn[_i])<0?Fn.substr(0,_i)+mn[_i]+Ln.substr(_i+1):0<=yi?Fn.substr(0,yi)+Rn[yi]+Ln.substr(yi+1):null;jn(Fn[_i],Jc)<0&&(yi=_i)}return Jr<mn.length&&rr==="next"?Fn+Ln.substr(Fn.length):Jr<Fn.length&&rr==="prev"?Fn.substr(0,Ln.length):yi<0?null:Fn.substr(0,yi)+mn[yi]+Ln.substr(yi+1)}(Ft,qt,ut[an],St[an],rt,ze);An===null&&Ut===null?lt=an+1:(Ut===null||0<rt(Ut,An))&&(Ut=An)}return xt(Ut!==null?function(){yt.continue(Ut+et)}:mt),!1}),X}function Pi(X,se,ye,Ie){return{type:2,lower:X,upper:se,lowerOpen:ye,upperOpen:Ie}}function Dl(X){return{type:1,lower:X,upper:X}}var kl=(Object.defineProperty(Ro.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Ro.prototype.between=function(X,se,ye,Ie){ye=ye!==!1,Ie=Ie===!0;try{return 0<this._cmp(X,se)||this._cmp(X,se)===0&&(ye||Ie)&&(!ye||!Ie)?lr(this):new this.Collection(this,function(){return Pi(X,se,!ye,!Ie)})}catch{return nr(this,Zt)}},Ro.prototype.equals=function(X){return X==null?nr(this,Zt):new this.Collection(this,function(){return Dl(X)})},Ro.prototype.above=function(X){return X==null?nr(this,Zt):new this.Collection(this,function(){return Pi(X,void 0,!0)})},Ro.prototype.aboveOrEqual=function(X){return X==null?nr(this,Zt):new this.Collection(this,function(){return Pi(X,void 0,!1)})},Ro.prototype.below=function(X){return X==null?nr(this,Zt):new this.Collection(this,function(){return Pi(void 0,X,!1,!0)})},Ro.prototype.belowOrEqual=function(X){return X==null?nr(this,Zt):new this.Collection(this,function(){return Pi(void 0,X)})},Ro.prototype.startsWith=function(X){return typeof X!="string"?nr(this,Et):this.between(X,X+Ue,!0,!0)},Ro.prototype.startsWithIgnoreCase=function(X){return X===""?this.startsWith(X):Kr(this,function(se,ye){return se.indexOf(ye[0])===0},[X],Ue)},Ro.prototype.equalsIgnoreCase=function(X){return Kr(this,function(se,ye){return se===ye[0]},[X],"")},Ro.prototype.anyOfIgnoreCase=function(){var X=q.apply(Y,arguments);return X.length===0?lr(this):Kr(this,function(se,ye){return ye.indexOf(se)!==-1},X,"")},Ro.prototype.startsWithAnyOfIgnoreCase=function(){var X=q.apply(Y,arguments);return X.length===0?lr(this):Kr(this,function(se,ye){return ye.some(function(Ie){return se.indexOf(Ie)===0})},X,Ue)},Ro.prototype.anyOf=function(){var X=this,se=q.apply(Y,arguments),ye=this._cmp;try{se.sort(ye)}catch{return nr(this,Zt)}if(se.length===0)return lr(this);var Ie=new this.Collection(this,function(){return Pi(se[0],se[se.length-1])});Ie._ondirectionchange=function(We){ye=We==="next"?X._ascending:X._descending,se.sort(ye)};var Le=0;return Ie._addAlgorithm(function(We,rt,ut){for(var St=We.key;0<ye(St,se[Le]);)if(++Le===se.length)return rt(ut),!1;return ye(St,se[Le])===0||(rt(function(){We.continue(se[Le])}),!1)}),Ie},Ro.prototype.notEqual=function(X){return this.inAnyRange([[-1/0,X],[X,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Ro.prototype.noneOf=function(){var X=q.apply(Y,arguments);if(X.length===0)return new this.Collection(this);try{X.sort(this._ascending)}catch{return nr(this,Zt)}var se=X.reduce(function(ye,Ie){return ye?ye.concat([[ye[ye.length-1][1],Ie]]):[[-1/0,Ie]]},null);return se.push([X[X.length-1],this.db._maxKey]),this.inAnyRange(se,{includeLowers:!1,includeUppers:!1})},Ro.prototype.inAnyRange=function(Ft,se){var ye=this,Ie=this._cmp,Le=this._ascending,We=this._descending,rt=this._min,ut=this._max;if(Ft.length===0)return lr(this);if(!Ft.every(function(qt){return qt[0]!==void 0&&qt[1]!==void 0&&Le(qt[0],qt[1])<=0}))return nr(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",te.InvalidArgument);var St=!se||se.includeLowers!==!1,ze=se&&se.includeUppers===!0,et,Ge=Le;function dt(qt,Ut){return Ge(qt[0],Ut[0])}try{(et=Ft.reduce(function(qt,Ut){for(var an=0,An=qt.length;an<An;++an){var Fn=qt[an];if(Ie(Ut[0],Fn[1])<0&&0<Ie(Ut[1],Fn[0])){Fn[0]=rt(Fn[0],Ut[0]),Fn[1]=ut(Fn[1],Ut[1]);break}}return an===An&&qt.push(Ut),qt},[])).sort(dt)}catch{return nr(this,Zt)}var lt=0,yt=ze?function(qt){return 0<Le(qt,et[lt][1])}:function(qt){return 0<=Le(qt,et[lt][1])},xt=St?function(qt){return 0<We(qt,et[lt][0])}:function(qt){return 0<=We(qt,et[lt][0])},mt=yt,Ft=new this.Collection(this,function(){return Pi(et[0][0],et[et.length-1][1],!St,!ze)});return Ft._ondirectionchange=function(qt){Ge=qt==="next"?(mt=yt,Le):(mt=xt,We),et.sort(dt)},Ft._addAlgorithm(function(qt,Ut,an){for(var An,Fn=qt.key;mt(Fn);)if(++lt===et.length)return Ut(an),!1;return!yt(An=Fn)&&!xt(An)||(ye._cmp(Fn,et[lt][1])===0||ye._cmp(Fn,et[lt][0])===0||Ut(function(){Ge===Le?qt.continue(et[lt][0]):qt.continue(et[lt][1])}),!1)}),Ft},Ro.prototype.startsWithAnyOf=function(){var X=q.apply(Y,arguments);return X.every(function(se){return typeof se=="string"})?X.length===0?lr(this):this.inAnyRange(X.map(function(se){return[se,se+Ue]})):nr(this,"startsWithAnyOf() only works with strings")},Ro);function Ro(){}function Is(X){return it(function(se){return Du(se),X(se.target.error),!1})}function Du(X){X.stopPropagation&&X.stopPropagation(),X.preventDefault&&X.preventDefault()}var ku="storagemutated",Ng="x-storagemutated-1",Wn=Ci(null,ku),Ir=(Li.prototype._lock=function(){return E(!Ve.global),++this._reculock,this._reculock!==1||Ve.global||(Ve.lockOwnerFor=this),this},Li.prototype._unlock=function(){if(E(!Ve.global),--this._reculock==0)for(Ve.global||(Ve.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var X=this._blockedFuncs.shift();try{ln(X[1],X[0])}catch{}}return this},Li.prototype._locked=function(){return this._reculock&&Ve.lockOwnerFor!==this},Li.prototype.create=function(X){var se=this;if(!this.mode)return this;var ye=this.db.idbdb,Ie=this.db._state.dbOpenError;if(E(!this.idbtrans),!X&&!ye)switch(Ie&&Ie.name){case"DatabaseClosedError":throw new te.DatabaseClosed(Ie);case"MissingAPIError":throw new te.MissingAPI(Ie.message,Ie);default:throw new te.OpenFailed(Ie)}if(!this.active)throw new te.TransactionInactive;return E(this._completion._state===null),(X=this.idbtrans=X||(this.db.core||ye).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=it(function(Le){Du(Le),se._reject(X.error)}),X.onabort=it(function(Le){Du(Le),se.active&&se._reject(new te.Abort(X.error)),se.active=!1,se.on("abort").fire(Le)}),X.oncomplete=it(function(){se.active=!1,se._resolve(),"mutatedParts"in X&&Wn.storagemutated.fire(X.mutatedParts)}),this},Li.prototype._promise=function(X,se,ye){var Ie=this;if(X==="readwrite"&&this.mode!=="readwrite")return en(new te.ReadOnly("Transaction is readonly"));if(!this.active)return en(new te.TransactionInactive);if(this._locked())return new Xe(function(We,rt){Ie._blockedFuncs.push([function(){Ie._promise(X,se,ye).then(We,rt)},Ve])});if(ye)return tn(function(){var We=new Xe(function(rt,ut){Ie._lock();var St=se(rt,ut,Ie);St&&St.then&&St.then(rt,ut)});return We.finally(function(){return Ie._unlock()}),We._lib=!0,We});var Le=new Xe(function(We,rt){var ut=se(We,rt,Ie);ut&&ut.then&&ut.then(We,rt)});return Le._lib=!0,Le},Li.prototype._root=function(){return this.parent?this.parent._root():this},Li.prototype.waitFor=function(X){var se,ye=this._root(),Ie=Xe.resolve(X);ye._waitingFor?ye._waitingFor=ye._waitingFor.then(function(){return Ie}):(ye._waitingFor=Ie,ye._waitingQueue=[],se=ye.idbtrans.objectStore(ye.storeNames[0]),function We(){for(++ye._spinCount;ye._waitingQueue.length;)ye._waitingQueue.shift()();ye._waitingFor&&(se.get(-1/0).onsuccess=We)}());var Le=ye._waitingFor;return new Xe(function(We,rt){Ie.then(function(ut){return ye._waitingQueue.push(it(We.bind(null,ut)))},function(ut){return ye._waitingQueue.push(it(rt.bind(null,ut)))}).finally(function(){ye._waitingFor===Le&&(ye._waitingFor=null)})})},Li.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new te.Abort))},Li.prototype.table=function(X){var se=this._memoizedTables||(this._memoizedTables={});if(f(se,X))return se[X];var ye=this.schema[X];if(!ye)throw new te.NotFound("Table "+X+" not part of transaction");return ye=new this.db.Table(X,ye,this),ye.core=this.db.core.table(X),se[X]=ye},Li);function Li(){}function ha(X,se,ye,Ie,Le,We,rt){return{name:X,keyPath:se,unique:ye,multi:Ie,auto:Le,compound:We,src:(ye&&!rt?"&":"")+(Ie?"*":"")+(Le?"++":"")+Zo(se)}}function Zo(X){return typeof X=="string"?X:X?"["+[].join.call(X,"+")+"]":""}function Mg(X,se,ye){return{name:X,primKey:se,indexes:ye,mappedClass:null,idxByName:(Ie=function(Le){return[Le.name,Le]},ye.reduce(function(Le,We,rt){return rt=Ie(We,rt),rt&&(Le[rt[0]]=rt[1]),Le},{}))};var Ie}var Jp=function(X){try{return X.only([[]]),Jp=function(){return[[]]},[[]]}catch{return Jp=function(){return Ue},Ue}};function go(X){return X==null?function(){}:typeof X=="string"?(se=X).split(".").length===1?function(ye){return ye[se]}:function(ye){return C(ye,se)}:function(ye){return C(ye,X)};var se}function no(X){return[].slice.call(X)}var bG=0;function US(X){return X==null?":id":typeof X=="string"?X:"[".concat(X.join("+"),"]")}function SG(X,se,St){function Ie(mt){if(mt.type===3)return null;if(mt.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var lt=mt.lower,yt=mt.upper,xt=mt.lowerOpen,mt=mt.upperOpen;return lt===void 0?yt===void 0?null:se.upperBound(yt,!!mt):yt===void 0?se.lowerBound(lt,!!xt):se.bound(lt,yt,!!xt,!!mt)}function Le(dt){var lt,yt=dt.name;return{name:yt,schema:dt,mutate:function(xt){var mt=xt.trans,Ft=xt.type,qt=xt.keys,Ut=xt.values,an=xt.range;return new Promise(function(An,Fn){An=it(An);var Rn=mt.objectStore(yt),Ln=Rn.keyPath==null,mn=Ft==="put"||Ft==="add";if(!mn&&Ft!=="delete"&&Ft!=="deleteRange")throw new Error("Invalid operation type: "+Ft);var jn,rr=(qt||Ut||{length:1}).length;if(qt&&Ut&&qt.length!==Ut.length)throw new Error("Given keys array must have same length as given values array.");if(rr===0)return An({numFailures:0,failures:{},results:[],lastResult:void 0});function Jr(Js){++Jc,Du(Js)}var yi=[],_i=[],Jc=0;if(Ft==="deleteRange"){if(an.type===4)return An({numFailures:Jc,failures:_i,results:[],lastResult:void 0});an.type===3?yi.push(jn=Rn.clear()):yi.push(jn=Rn.delete(Ie(an)))}else{var Ln=mn?Ln?[Ut,qt]:[Ut,null]:[qt,null],Xr=Ln[0],ga=Ln[1];if(mn)for(var Ns=0;Ns<rr;++Ns)yi.push(jn=ga&&ga[Ns]!==void 0?Rn[Ft](Xr[Ns],ga[Ns]):Rn[Ft](Xr[Ns])),jn.onerror=Jr;else for(Ns=0;Ns<rr;++Ns)yi.push(jn=Rn[Ft](Xr[Ns])),jn.onerror=Jr}function ZS(Js){Js=Js.target.result,yi.forEach(function(Ag,tx){return Ag.error!=null&&(_i[tx]=Ag.error)}),An({numFailures:Jc,failures:_i,results:Ft==="delete"?qt:yi.map(function(Ag){return Ag.result}),lastResult:Js})}jn.onerror=function(Js){Jr(Js),ZS(Js)},jn.onsuccess=ZS})},getMany:function(xt){var mt=xt.trans,Ft=xt.keys;return new Promise(function(qt,Ut){qt=it(qt);for(var an,An=mt.objectStore(yt),Fn=Ft.length,Rn=new Array(Fn),Ln=0,mn=0,jn=function(yi){yi=yi.target,Rn[yi._pos]=yi.result,++mn===Ln&&qt(Rn)},rr=Is(Ut),Jr=0;Jr<Fn;++Jr)Ft[Jr]!=null&&((an=An.get(Ft[Jr]))._pos=Jr,an.onsuccess=jn,an.onerror=rr,++Ln);Ln===0&&qt(Rn)})},get:function(xt){var mt=xt.trans,Ft=xt.key;return new Promise(function(qt,Ut){qt=it(qt);var an=mt.objectStore(yt).get(Ft);an.onsuccess=function(An){return qt(An.target.result)},an.onerror=Is(Ut)})},query:(lt=ze,function(xt){return new Promise(function(mt,Ft){mt=it(mt);var qt,Ut,an,Ln=xt.trans,An=xt.values,Fn=xt.limit,jn=xt.query,Rn=Fn===1/0?void 0:Fn,mn=jn.index,jn=jn.range,Ln=Ln.objectStore(yt),mn=mn.isPrimaryKey?Ln:Ln.index(mn.name),jn=Ie(jn);if(Fn===0)return mt({result:[]});lt?((Rn=An?mn.getAll(jn,Rn):mn.getAllKeys(jn,Rn)).onsuccess=function(rr){return mt({result:rr.target.result})},Rn.onerror=Is(Ft)):(qt=0,Ut=!An&&"openKeyCursor"in mn?mn.openKeyCursor(jn):mn.openCursor(jn),an=[],Ut.onsuccess=function(rr){var Jr=Ut.result;return Jr?(an.push(An?Jr.value:Jr.primaryKey),++qt===Fn?mt({result:an}):void Jr.continue()):mt({result:an})},Ut.onerror=Is(Ft))})}),openCursor:function(xt){var mt=xt.trans,Ft=xt.values,qt=xt.query,Ut=xt.reverse,an=xt.unique;return new Promise(function(An,Fn){An=it(An);var mn=qt.index,Rn=qt.range,Ln=mt.objectStore(yt),Ln=mn.isPrimaryKey?Ln:Ln.index(mn.name),mn=Ut?an?"prevunique":"prev":an?"nextunique":"next",jn=!Ft&&"openKeyCursor"in Ln?Ln.openKeyCursor(Ie(Rn),mn):Ln.openCursor(Ie(Rn),mn);jn.onerror=Is(Fn),jn.onsuccess=it(function(rr){var Jr,yi,_i,Jc,Xr=jn.result;Xr?(Xr.___id=++bG,Xr.done=!1,Jr=Xr.continue.bind(Xr),yi=(yi=Xr.continuePrimaryKey)&&yi.bind(Xr),_i=Xr.advance.bind(Xr),Jc=function(){throw new Error("Cursor not stopped")},Xr.trans=mt,Xr.stop=Xr.continue=Xr.continuePrimaryKey=Xr.advance=function(){throw new Error("Cursor not started")},Xr.fail=it(Fn),Xr.next=function(){var ga=this,Ns=1;return this.start(function(){return Ns--?ga.continue():ga.stop()}).then(function(){return ga})},Xr.start=function(ga){function Ns(){if(jn.result)try{ga()}catch(Js){Xr.fail(Js)}else Xr.done=!0,Xr.start=function(){throw new Error("Cursor behind last entry")},Xr.stop()}var ZS=new Promise(function(Js,Ag){Js=it(Js),jn.onerror=Is(Ag),Xr.fail=Ag,Xr.stop=function(tx){Xr.stop=Xr.continue=Xr.continuePrimaryKey=Xr.advance=Jc,Js(tx)}});return jn.onsuccess=it(function(Js){jn.onsuccess=Ns,Ns()}),Xr.continue=Jr,Xr.continuePrimaryKey=yi,Xr.advance=_i,Ns(),ZS},An(Xr)):An(null)},Fn)})},count:function(xt){var mt=xt.query,Ft=xt.trans,qt=mt.index,Ut=mt.range;return new Promise(function(an,An){var Fn=Ft.objectStore(yt),Rn=qt.isPrimaryKey?Fn:Fn.index(qt.name),Fn=Ie(Ut),Rn=Fn?Rn.count(Fn):Rn.count();Rn.onsuccess=it(function(Ln){return an(Ln.target.result)}),Rn.onerror=Is(An)})}}}var We,rt,ut,et=(rt=St,ut=no((We=X).objectStoreNames),{schema:{name:We.name,tables:ut.map(function(dt){return rt.objectStore(dt)}).map(function(dt){var lt=dt.keyPath,mt=dt.autoIncrement,yt=l(lt),xt={},mt={name:dt.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:lt==null,compound:yt,keyPath:lt,autoIncrement:mt,unique:!0,extractKey:go(lt)},indexes:no(dt.indexNames).map(function(Ft){return dt.index(Ft)}).map(function(an){var qt=an.name,Ut=an.unique,An=an.multiEntry,an=an.keyPath,An={name:qt,compound:l(an),keyPath:an,unique:Ut,multiEntry:An,extractKey:go(an)};return xt[US(an)]=An}),getIndexByKeyPath:function(Ft){return xt[US(Ft)]}};return xt[":id"]=mt.primaryKey,lt!=null&&(xt[US(lt)]=mt.primaryKey),mt})},hasGetAll:0<ut.length&&"getAll"in rt.objectStore(ut[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),St=et.schema,ze=et.hasGetAll,et=St.tables.map(Le),Ge={};return et.forEach(function(dt){return Ge[dt.name]=dt}),{stack:"dbcore",transaction:X.transaction.bind(X),table:function(dt){if(!Ge[dt])throw new Error("Table '".concat(dt,"' not found"));return Ge[dt]},MIN_KEY:-1/0,MAX_KEY:Jp(se),schema:St}}function EG(X,se,ye,Ie){var Le=ye.IDBKeyRange;return ye.indexedDB,{dbcore:(Ie=SG(se,Le,Ie),X.dbcore.reduce(function(We,rt){return rt=rt.create,i(i({},We),rt(We))},Ie))}}function Gw(X,Ie){var ye=Ie.db,Ie=EG(X._middlewares,ye,X._deps,Ie);X.core=Ie.dbcore,X.tables.forEach(function(Le){var We=Le.name;X.core.schema.tables.some(function(rt){return rt.name===We})&&(Le.core=X.core.table(We),X[We]instanceof X.Table&&(X[We].core=Le.core))})}function Ww(X,se,ye,Ie){ye.forEach(function(Le){var We=Ie[Le];se.forEach(function(rt){var ut=function St(ze,et){return y(ze,et)||(ze=u(ze))&&St(ze,et)}(rt,Le);(!ut||"value"in ut&&ut.value===void 0)&&(rt===X.Transaction.prototype||rt instanceof X.Transaction?g(rt,Le,{get:function(){return this.table(Le)},set:function(St){h(this,Le,{value:St,writable:!0,configurable:!0,enumerable:!0})}}):rt[Le]=new X.Table(Le,We))})})}function Yw(X,se){se.forEach(function(ye){for(var Ie in ye)ye[Ie]instanceof X.Table&&delete ye[Ie]})}function CG(X,se){return X._cfg.version-se._cfg.version}function pl(X,se,ye,Ie){var Le=X._dbSchema;ye.objectStoreNames.contains("$meta")&&!Le.$meta&&(Le.$meta=Mg("$meta",_N("")[0],[]),X._storeNames.push("$meta"));var We=X._createTransaction("readwrite",X._storeNames,Le);We.create(ye),We._completion.catch(Ie);var rt=We._reject.bind(We),ut=Ve.transless||Ve;tn(function(){return Ve.trans=We,Ve.transless=ut,se!==0?(Gw(X,ye),ze=se,((St=We).storeNames.includes("$meta")?St.table("$meta").get("version").then(function(et){return et??ze}):Xe.resolve(ze)).then(function(et){return dt=et,lt=We,yt=ye,xt=[],et=(Ge=X)._versions,mt=Ge._dbSchema=HS(0,Ge.idbdb,yt),(et=et.filter(function(Ft){return Ft._cfg.version>=dt})).length!==0?(et.forEach(function(Ft){xt.push(function(){var qt=mt,Ut=Ft._cfg.dbschema;zS(Ge,qt,yt),zS(Ge,Ut,yt),mt=Ge._dbSchema=Ut;var an=eh(qt,Ut);an.add.forEach(function(mn){qw(yt,mn[0],mn[1].primKey,mn[1].indexes)}),an.change.forEach(function(mn){if(mn.recreate)throw new te.Upgrade("Not yet support for changing primary key");var jn=yt.objectStore(mn.name);mn.add.forEach(function(rr){return nc(jn,rr)}),mn.change.forEach(function(rr){jn.deleteIndex(rr.name),nc(jn,rr)}),mn.del.forEach(function(rr){return jn.deleteIndex(rr)})});var An=Ft._cfg.contentUpgrade;if(An&&Ft._cfg.version>dt){Gw(Ge,yt),lt._memoizedTables={};var Fn=T(Ut);an.del.forEach(function(mn){Fn[mn]=qt[mn]}),Yw(Ge,[Ge.Transaction.prototype]),Ww(Ge,[Ge.Transaction.prototype],s(Fn),Fn),lt.schema=Fn;var Rn,Ln=K(An);return Ln&&on(),an=Xe.follow(function(){var mn;(Rn=An(lt))&&Ln&&(mn=sn.bind(null,null),Rn.then(mn,mn))}),Rn&&typeof Rn.then=="function"?Xe.resolve(Rn):an.then(function(){return Rn})}}),xt.push(function(qt){var Ut,an,An=Ft._cfg.dbschema;Ut=An,an=qt,[].slice.call(an.db.objectStoreNames).forEach(function(Fn){return Ut[Fn]==null&&an.db.deleteObjectStore(Fn)}),Yw(Ge,[Ge.Transaction.prototype]),Ww(Ge,[Ge.Transaction.prototype],Ge._storeNames,Ge._dbSchema),lt.schema=Ge._dbSchema}),xt.push(function(qt){Ge.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(Ge.idbdb.version/10)===Ft._cfg.version?(Ge.idbdb.deleteObjectStore("$meta"),delete Ge._dbSchema.$meta,Ge._storeNames=Ge._storeNames.filter(function(Ut){return Ut!=="$meta"})):qt.objectStore("$meta").put(Ft._cfg.version,"version"))})}),function Ft(){return xt.length?Xe.resolve(xt.shift()(lt.idbtrans)).then(Ft):Xe.resolve()}().then(function(){Kw(mt,yt)})):Xe.resolve();var Ge,dt,lt,yt,xt,mt}).catch(rt)):(s(Le).forEach(function(et){qw(ye,et,Le[et].primKey,Le[et].indexes)}),Gw(X,ye),void Xe.follow(function(){return X.on.populate.fire(We)}).catch(rt));var St,ze})}function yN(X,se){Kw(X._dbSchema,se),se.db.version%10!=0||se.objectStoreNames.contains("$meta")||se.db.createObjectStore("$meta").add(Math.ceil(se.db.version/10-1),"version");var ye=HS(0,X.idbdb,se);zS(X,X._dbSchema,se);for(var Ie=0,Le=eh(ye,X._dbSchema).change;Ie<Le.length;Ie++){var We=function(rt){if(rt.change.length||rt.recreate)return console.warn("Unable to patch indexes of table ".concat(rt.name," because it has changes on the type of index or primary key.")),{value:void 0};var ut=se.objectStore(rt.name);rt.add.forEach(function(St){Re&&console.debug("Dexie upgrade patch: Creating missing index ".concat(rt.name,".").concat(St.src)),nc(ut,St)})}(Le[Ie]);if(typeof We=="object")return We.value}}function eh(X,se){var ye,Ie={del:[],add:[],change:[]};for(ye in X)se[ye]||Ie.del.push(ye);for(ye in se){var Le=X[ye],We=se[ye];if(Le){var rt={name:ye,def:We,recreate:!1,del:[],add:[],change:[]};if(""+(Le.primKey.keyPath||"")!=""+(We.primKey.keyPath||"")||Le.primKey.auto!==We.primKey.auto)rt.recreate=!0,Ie.change.push(rt);else{var ut=Le.idxByName,St=We.idxByName,ze=void 0;for(ze in ut)St[ze]||rt.del.push(ze);for(ze in St){var et=ut[ze],Ge=St[ze];et?et.src!==Ge.src&&rt.change.push(Ge):rt.add.push(Ge)}(0<rt.del.length||0<rt.add.length||0<rt.change.length)&&Ie.change.push(rt)}}else Ie.add.push([ye,We])}return Ie}function qw(X,se,ye,Ie){var Le=X.db.createObjectStore(se,ye.keyPath?{keyPath:ye.keyPath,autoIncrement:ye.auto}:{autoIncrement:ye.auto});return Ie.forEach(function(We){return nc(Le,We)}),Le}function Kw(X,se){s(X).forEach(function(ye){se.db.objectStoreNames.contains(ye)||(Re&&console.debug("Dexie: Creating missing table",ye),qw(se,ye,X[ye].primKey,X[ye].indexes))})}function nc(X,se){X.createIndex(se.name,se.keyPath,{unique:se.unique,multiEntry:se.multi})}function HS(X,se,ye){var Ie={};return S(se.objectStoreNames,0).forEach(function(Le){for(var We=ye.objectStore(Le),rt=ha(Zo(ze=We.keyPath),ze||"",!0,!1,!!We.autoIncrement,ze&&typeof ze!="string",!0),ut=[],St=0;St<We.indexNames.length;++St){var et=We.index(We.indexNames[St]),ze=et.keyPath,et=ha(et.name,ze,!!et.unique,!!et.multiEntry,!1,ze&&typeof ze!="string",!1);ut.push(et)}Ie[Le]=Mg(Le,rt,ut)}),Ie}function zS(X,se,ye){for(var Ie=ye.db.objectStoreNames,Le=0;Le<Ie.length;++Le){var We=Ie[Le],rt=ye.objectStore(We);X._hasGetAll="getAll"in rt;for(var ut=0;ut<rt.indexNames.length;++ut){var St=rt.indexNames[ut],ze=rt.index(St).keyPath,et=typeof ze=="string"?ze:"["+S(ze).join("+")+"]";!se[We]||(ze=se[We].idxByName[et])&&(ze.name=St,delete se[We].idxByName[et],se[We].idxByName[St]=ze)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&a.WorkerGlobalScope&&a instanceof a.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(X._hasGetAll=!1)}function _N(X){return X.split(",").map(function(se,ye){var Ie=(se=se.trim()).replace(/([&*]|\+\+)/g,""),Le=/^\[/.test(Ie)?Ie.match(/^\[(.*)\]$/)[1].split("+"):Ie;return ha(Ie,Le||null,/\&/.test(se),/\*/.test(se),/\+\+/.test(se),l(Le),ye===0)})}var x$=(VS.prototype._parseStoresSpec=function(X,se){s(X).forEach(function(ye){if(X[ye]!==null){var Ie=_N(X[ye]),Le=Ie.shift();if(Le.unique=!0,Le.multi)throw new te.Schema("Primary key cannot be multi-valued");Ie.forEach(function(We){if(We.auto)throw new te.Schema("Only primary key can be marked as autoIncrement (++)");if(!We.keyPath)throw new te.Schema("Index must have a name and cannot be an empty string")}),se[ye]=Mg(ye,Le,Ie)}})},VS.prototype.stores=function(ye){var se=this.db;this._cfg.storesSource=this._cfg.storesSource?c(this._cfg.storesSource,ye):ye;var ye=se._versions,Ie={},Le={};return ye.forEach(function(We){c(Ie,We._cfg.storesSource),Le=We._cfg.dbschema={},We._parseStoresSpec(Ie,Le)}),se._dbSchema=Le,Yw(se,[se._allTables,se,se.Transaction.prototype]),Ww(se,[se._allTables,se,se.Transaction.prototype,this._cfg.tables],s(Le),Le),se._storeNames=s(Le),this},VS.prototype.upgrade=function(X){return this._cfg.contentUpgrade=Ee(this._cfg.contentUpgrade||pe,X),this},VS);function VS(){}function Xw(X,se){var ye=X._dbNamesDB;return ye||(ye=X._dbNamesDB=new rh(zt,{addons:[],indexedDB:X,IDBKeyRange:se})).version(1).stores({dbnames:"name"}),ye.table("dbnames")}function rc(X){return X&&typeof X.databases=="function"}function bN(X){return tn(function(){return Ve.letThrough=!0,X()})}function wc(X){return!("from"in X)}var Ll=function(X,se){if(!this){var ye=new Ll;return X&&"d"in X&&c(ye,X),ye}c(this,arguments.length?{d:1,from:X,to:1<arguments.length?se:X}:{d:0})};function O_(X,se,ye){var Ie=qe(se,ye);if(!isNaN(Ie)){if(0<Ie)throw RangeError();if(wc(X))return c(X,{from:se,to:ye,d:1});var Le=X.l,Ie=X.r;if(qe(ye,X.from)<0)return Le?O_(Le,se,ye):X.l={from:se,to:ye,d:1,l:null,r:null},Jo(X);if(0<qe(se,X.to))return Ie?O_(Ie,se,ye):X.r={from:se,to:ye,d:1,l:null,r:null},Jo(X);qe(se,X.from)<0&&(X.from=se,X.l=null,X.d=Ie?Ie.d+1:1),0<qe(ye,X.to)&&(X.to=ye,X.r=null,X.d=X.l?X.l.d+1:1),ye=!X.r,Le&&!X.l&&Lu(X,Le),Ie&&ye&&Lu(X,Ie)}}function Lu(X,se){wc(se)||function ye(Ie,St){var We=St.from,rt=St.to,ut=St.l,St=St.r;O_(Ie,We,rt),ut&&ye(Ie,ut),St&&ye(Ie,St)}(X,se)}function GS(X,se){var ye=R_(se),Ie=ye.next();if(Ie.done)return!1;for(var Le=Ie.value,We=R_(X),rt=We.next(Le.from),ut=rt.value;!Ie.done&&!rt.done;){if(qe(ut.from,Le.to)<=0&&0<=qe(ut.to,Le.from))return!0;qe(Le.from,ut.from)<0?Le=(Ie=ye.next(ut.from)).value:ut=(rt=We.next(Le.from)).value}return!1}function R_(X){var se=wc(X)?null:{s:0,n:X};return{next:function(ye){for(var Ie=0<arguments.length;se;)switch(se.s){case 0:if(se.s=1,Ie)for(;se.n.l&&qe(ye,se.n.from)<0;)se={up:se,n:se.n.l,s:1};else for(;se.n.l;)se={up:se,n:se.n.l,s:1};case 1:if(se.s=2,!Ie||qe(ye,se.n.to)<=0)return{value:se.n,done:!1};case 2:if(se.n.r){se.s=3,se={up:se,n:se.n.r,s:0};continue}case 3:se=se.up}return{done:!0}}}}function Jo(X){var se,ye,Ie=(((se=X.r)===null||se===void 0?void 0:se.d)||0)-(((ye=X.l)===null||ye===void 0?void 0:ye.d)||0),Le=1<Ie?"r":Ie<-1?"l":"";Le&&(se=Le=="r"?"l":"r",ye=i({},X),Ie=X[Le],X.from=Ie.from,X.to=Ie.to,X[Le]=Ie[Le],ye[Le]=Ie[se],(X[se]=ye).d=th(ye)),X.d=th(X)}function th(ye){var se=ye.r,ye=ye.l;return(se?ye?Math.max(se.d,ye.d):se.d:ye?ye.d:0)+1}function I_(X,se){return s(se).forEach(function(ye){X[ye]?Lu(X[ye],se[ye]):X[ye]=function Ie(Le){var We,rt,ut={};for(We in Le)f(Le,We)&&(rt=Le[We],ut[We]=!rt||typeof rt!="object"||M.has(rt.constructor)?rt:Ie(rt));return ut}(se[ye])}),X}function SN(X,se){return X.all||se.all||Object.keys(X).some(function(ye){return se[ye]&&GS(se[ye],X[ye])})}p(Ll.prototype,(($u={add:function(X){return Lu(this,X),this},addKey:function(X){return O_(this,X,X),this},addKeys:function(X){var se=this;return X.forEach(function(ye){return O_(se,ye,ye)}),this},hasKey:function(X){var se=R_(this).next(X).value;return se&&qe(se.from,X)<=0&&0<=qe(se.to,X)}})[z]=function(){return R_(this)},$u));var nh={},EN={},CN=!1;function Qw(X){I_(EN,X),CN||(CN=!0,setTimeout(function(){CN=!1,Zw(EN,!(EN={}))},0))}function Zw(X,se){se===void 0&&(se=!1);var ye=new Set;if(X.all)for(var Ie=0,Le=Object.values(nh);Ie<Le.length;Ie++)WS(rt=Le[Ie],X,ye,se);else for(var We in X){var rt,ut=/^idb\:\/\/(.*)\/(.*)\//.exec(We);ut&&(We=ut[1],ut=ut[2],(rt=nh["idb://".concat(We,"/").concat(ut)])&&WS(rt,X,ye,se))}ye.forEach(function(St){return St()})}function WS(X,se,ye,Ie){for(var Le=[],We=0,rt=Object.entries(X.queries.query);We<rt.length;We++){for(var ut=rt[We],St=ut[0],ze=[],et=0,Ge=ut[1];et<Ge.length;et++){var dt=Ge[et];SN(se,dt.obsSet)?dt.subscribers.forEach(function(mt){return ye.add(mt)}):Ie&&ze.push(dt)}Ie&&Le.push([St,ze])}if(Ie)for(var lt=0,yt=Le;lt<yt.length;lt++){var xt=yt[lt],St=xt[0],ze=xt[1];X.queries.query[St]=ze}}function N_(X){var se=X._state,ye=X._deps.indexedDB;if(se.isBeingOpened||X.idbdb)return se.dbReadyPromise.then(function(){return se.dbOpenError?en(se.dbOpenError):X});se.isBeingOpened=!0,se.dbOpenError=null,se.openComplete=!1;var Ie=se.openCanceller,Le=Math.round(10*X.verno),We=!1;function rt(){if(se.openCanceller!==Ie)throw new te.DatabaseClosed("db.open() was cancelled")}function ut(){return new Xe(function(dt,lt){if(rt(),!ye)throw new te.MissingAPI;var yt=X.name,xt=se.autoSchema||!Le?ye.open(yt):ye.open(yt,Le);if(!xt)throw new te.MissingAPI;xt.onerror=Is(lt),xt.onblocked=it(X._fireOnBlocked),xt.onupgradeneeded=it(function(mt){var Ft;et=xt.transaction,se.autoSchema&&!X._options.allowEmptyDB?(xt.onerror=Du,et.abort(),xt.result.close(),(Ft=ye.deleteDatabase(yt)).onsuccess=Ft.onerror=it(function(){lt(new te.NoSuchDatabase("Database ".concat(yt," doesnt exist")))})):(et.onerror=Is(lt),mt=mt.oldVersion>Math.pow(2,62)?0:mt.oldVersion,Ge=mt<1,X.idbdb=xt.result,We&&yN(X,et),pl(X,mt/10,et,lt))},lt),xt.onsuccess=it(function(){et=null;var mt,Ft,qt,Ut,an,An=X.idbdb=xt.result,Fn=S(An.objectStoreNames);if(0<Fn.length)try{var Rn=An.transaction((Ut=Fn).length===1?Ut[0]:Ut,"readonly");if(se.autoSchema)Ft=An,qt=Rn,(mt=X).verno=Ft.version/10,qt=mt._dbSchema=HS(0,Ft,qt),mt._storeNames=S(Ft.objectStoreNames,0),Ww(mt,[mt._allTables],s(qt),qt);else if(zS(X,X._dbSchema,Rn),((an=eh(HS(0,(an=X).idbdb,Rn),an._dbSchema)).add.length||an.change.some(function(Ln){return Ln.add.length||Ln.change.length}))&&!We)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),An.close(),Le=An.version+1,We=!0,dt(ut());Gw(X,Rn)}catch{}Gt.push(X),An.onversionchange=it(function(Ln){se.vcFired=!0,X.on("versionchange").fire(Ln)}),An.onclose=it(function(Ln){X.on("close").fire(Ln)}),Ge&&(an=X._deps,Rn=yt,An=an.indexedDB,an=an.IDBKeyRange,rc(An)||Rn===zt||Xw(An,an).put({name:Rn}).catch(pe)),dt()},lt)}).catch(function(dt){switch(dt==null?void 0:dt.name){case"UnknownError":if(0<se.PR1398_maxLoop)return se.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),ut();break;case"VersionError":if(0<Le)return Le=0,ut()}return Xe.reject(dt)})}var St,ze=se.dbReadyResolve,et=null,Ge=!1;return Xe.race([Ie,(typeof navigator>"u"?Xe.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(dt){function lt(){return indexedDB.databases().finally(dt)}St=setInterval(lt,100),lt()}).finally(function(){return clearInterval(St)}):Promise.resolve()).then(ut)]).then(function(){return rt(),se.onReadyBeingFired=[],Xe.resolve(bN(function(){return X.on.ready.fire(X.vip)})).then(function dt(){if(0<se.onReadyBeingFired.length){var lt=se.onReadyBeingFired.reduce(Ee,pe);return se.onReadyBeingFired=[],Xe.resolve(bN(function(){return lt(X.vip)})).then(dt)}})}).finally(function(){se.openCanceller===Ie&&(se.onReadyBeingFired=null,se.isBeingOpened=!1)}).catch(function(dt){se.dbOpenError=dt;try{et&&et.abort()}catch{}return Ie===se.openCanceller&&X._close(),en(dt)}).finally(function(){se.openComplete=!0,ze()}).then(function(){var dt;return Ge&&(dt={},X.tables.forEach(function(lt){lt.schema.indexes.forEach(function(yt){yt.name&&(dt["idb://".concat(X.name,"/").concat(lt.name,"/").concat(yt.name)]=new Ll(-1/0,[[[]]]))}),dt["idb://".concat(X.name,"/").concat(lt.name,"/")]=dt["idb://".concat(X.name,"/").concat(lt.name,"/:dels")]=new Ll(-1/0,[[[]]])}),Wn(ku).fire(dt),Zw(dt,!0)),X})}function wN(X){function se(We){return X.next(We)}var ye=Le(se),Ie=Le(function(We){return X.throw(We)});function Le(We){return function(St){var ut=We(St),St=ut.value;return ut.done?St:St&&typeof St.then=="function"?St.then(ye,Ie):l(St)?Promise.all(St).then(ye,Ie):ye(St)}}return Le(se)()}function YS(X,se,ye){for(var Ie=l(X)?X.slice():[X],Le=0;Le<ye;++Le)Ie.push(se);return Ie}var T$={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(X){return i(i({},X),{table:function(se){var ye=X.table(se),Ie=ye.schema,Le={},We=[];function rt(Ge,dt,lt){var yt=US(Ge),xt=Le[yt]=Le[yt]||[],mt=Ge==null?0:typeof Ge=="string"?1:Ge.length,Ft=0<dt,Ft=i(i({},lt),{name:Ft?"".concat(yt,"(virtual-from:").concat(lt.name,")"):lt.name,lowLevelIndex:lt,isVirtual:Ft,keyTail:dt,keyLength:mt,extractKey:go(Ge),unique:!Ft&<.unique});return xt.push(Ft),Ft.isPrimaryKey||We.push(Ft),1<mt&&rt(mt===2?Ge[0]:Ge.slice(0,mt-1),dt+1,lt),xt.sort(function(qt,Ut){return qt.keyTail-Ut.keyTail}),Ft}se=rt(Ie.primaryKey.keyPath,0,Ie.primaryKey),Le[":id"]=[se];for(var ut=0,St=Ie.indexes;ut<St.length;ut++){var ze=St[ut];rt(ze.keyPath,0,ze)}function et(Ge){var dt,lt=Ge.query.index;return lt.isVirtual?i(i({},Ge),{query:{index:lt.lowLevelIndex,range:(dt=Ge.query.range,lt=lt.keyTail,{type:dt.type===1?2:dt.type,lower:YS(dt.lower,dt.lowerOpen?X.MAX_KEY:X.MIN_KEY,lt),lowerOpen:!0,upper:YS(dt.upper,dt.upperOpen?X.MIN_KEY:X.MAX_KEY,lt),upperOpen:!0})}}):Ge}return i(i({},ye),{schema:i(i({},Ie),{primaryKey:se,indexes:We,getIndexByKeyPath:function(Ge){return(Ge=Le[US(Ge)])&&Ge[0]}}),count:function(Ge){return ye.count(et(Ge))},query:function(Ge){return ye.query(et(Ge))},openCursor:function(Ge){var dt=Ge.query.index,lt=dt.keyTail,yt=dt.isVirtual,xt=dt.keyLength;return yt?ye.openCursor(et(Ge)).then(function(Ft){return Ft&&mt(Ft)}):ye.openCursor(Ge);function mt(Ft){return Object.create(Ft,{continue:{value:function(qt){qt!=null?Ft.continue(YS(qt,Ge.reverse?X.MAX_KEY:X.MIN_KEY,lt)):Ge.unique?Ft.continue(Ft.key.slice(0,xt).concat(Ge.reverse?X.MIN_KEY:X.MAX_KEY,lt)):Ft.continue()}},continuePrimaryKey:{value:function(qt,Ut){Ft.continuePrimaryKey(YS(qt,X.MAX_KEY,lt),Ut)}},primaryKey:{get:function(){return Ft.primaryKey}},key:{get:function(){var qt=Ft.key;return xt===1?qt[0]:qt.slice(0,xt)}},value:{get:function(){return Ft.value}}})}}})}})}};function qS(X,se,ye,Ie){return ye=ye||{},Ie=Ie||"",s(X).forEach(function(Le){var We,rt,ut;f(se,Le)?(We=X[Le],rt=se[Le],typeof We=="object"&&typeof rt=="object"&&We&&rt?(ut=U(We))!==U(rt)?ye[Ie+Le]=se[Le]:ut==="Object"?qS(We,rt,ye,Ie+Le+"."):We!==rt&&(ye[Ie+Le]=se[Le]):We!==rt&&(ye[Ie+Le]=se[Le])):ye[Ie+Le]=void 0}),s(se).forEach(function(Le){f(X,Le)||(ye[Ie+Le]=se[Le])}),ye}function KS(X,se){return se.type==="delete"?se.keys:se.keys||se.values.map(X.extractKey)}var O$={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(X){return i(i({},X),{table:function(se){var ye=X.table(se),Ie=ye.schema.primaryKey;return i(i({},ye),{mutate:function(Le){var We=Ve.trans,rt=We.table(se).hook,ut=rt.deleting,St=rt.creating,ze=rt.updating;switch(Le.type){case"add":if(St.fire===pe)break;return We._promise("readwrite",function(){return et(Le)},!0);case"put":if(St.fire===pe&&ze.fire===pe)break;return We._promise("readwrite",function(){return et(Le)},!0);case"delete":if(ut.fire===pe)break;return We._promise("readwrite",function(){return et(Le)},!0);case"deleteRange":if(ut.fire===pe)break;return We._promise("readwrite",function(){return function Ge(dt,lt,yt){return ye.query({trans:dt,values:!1,query:{index:Ie,range:lt},limit:yt}).then(function(xt){var mt=xt.result;return et({type:"delete",keys:mt,trans:dt}).then(function(Ft){return 0<Ft.numFailures?Promise.reject(Ft.failures[0]):mt.length<yt?{failures:[],numFailures:0,lastResult:void 0}:Ge(dt,i(i({},lt),{lower:mt[mt.length-1],lowerOpen:!0}),yt)})})}(Le.trans,Le.range,1e4)},!0)}return ye.mutate(Le);function et(Ge){var dt,lt,yt,xt=Ve.trans,mt=Ge.keys||KS(Ie,Ge);if(!mt)throw new Error("Keys missing");return(Ge=Ge.type==="add"||Ge.type==="put"?i(i({},Ge),{keys:mt}):i({},Ge)).type!=="delete"&&(Ge.values=o([],Ge.values)),Ge.keys&&(Ge.keys=o([],Ge.keys)),dt=ye,yt=mt,((lt=Ge).type==="add"?Promise.resolve([]):dt.getMany({trans:lt.trans,keys:yt,cache:"immutable"})).then(function(Ft){var qt=mt.map(function(Ut,an){var An,Fn,Rn,Ln=Ft[an],mn={onerror:null,onsuccess:null};return Ge.type==="delete"?ut.fire.call(mn,Ut,Ln,xt):Ge.type==="add"||Ln===void 0?(An=St.fire.call(mn,Ut,Ge.values[an],xt),Ut==null&&An!=null&&(Ge.keys[an]=Ut=An,Ie.outbound||x(Ge.values[an],Ie.keyPath,Ut))):(An=qS(Ln,Ge.values[an]),(Fn=ze.fire.call(mn,An,Ut,Ln,xt))&&(Rn=Ge.values[an],Object.keys(Fn).forEach(function(jn){f(Rn,jn)?Rn[jn]=Fn[jn]:x(Rn,jn,Fn[jn])}))),mn});return ye.mutate(Ge).then(function(Ut){for(var an=Ut.failures,An=Ut.results,Fn=Ut.numFailures,Ut=Ut.lastResult,Rn=0;Rn<mt.length;++Rn){var Ln=(An||mt)[Rn],mn=qt[Rn];Ln==null?mn.onerror&&mn.onerror(an[Rn]):mn.onsuccess&&mn.onsuccess(Ge.type==="put"&&Ft[Rn]?Ge.values[Rn]:Ln)}return{failures:an,results:An,numFailures:Fn,lastResult:Ut}}).catch(function(Ut){return qt.forEach(function(an){return an.onerror&&an.onerror(Ut)}),Promise.reject(Ut)})})}}})}})}};function R$(X,se,ye){try{if(!se||se.keys.length<X.length)return null;for(var Ie=[],Le=0,We=0;Le<se.keys.length&&We<X.length;++Le)qe(se.keys[Le],X[We])===0&&(Ie.push(ye?k(se.values[Le]):se.values[Le]),++We);return Ie.length===X.length?Ie:null}catch{return null}}var xN={stack:"dbcore",level:-1,create:function(X){return{table:function(se){var ye=X.table(se);return i(i({},ye),{getMany:function(Ie){if(!Ie.cache)return ye.getMany(Ie);var Le=R$(Ie.keys,Ie.trans._cache,Ie.cache==="clone");return Le?Xe.resolve(Le):ye.getMany(Ie).then(function(We){return Ie.trans._cache={keys:Ie.keys,values:Ie.cache==="clone"?k(We):We},We})},mutate:function(Ie){return Ie.type!=="add"&&(Ie.trans._cache=null),ye.mutate(Ie)}})}}}};function Jw(X,se){return X.trans.mode==="readonly"&&!!X.subscr&&!X.trans.explicit&&X.trans.db._options.cache!=="disabled"&&!se.schema.primaryKey.outbound}function I$(X,se){switch(X){case"query":return se.values&&!se.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var N$={stack:"dbcore",level:0,name:"Observability",create:function(X){var se=X.schema.name,ye=new Ll(X.MIN_KEY,X.MAX_KEY);return i(i({},X),{transaction:function(Ie,Le,We){if(Ve.subscr&&Le!=="readonly")throw new te.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Ve.querier));return X.transaction(Ie,Le,We)},table:function(Ie){var Le=X.table(Ie),We=Le.schema,rt=We.primaryKey,Ge=We.indexes,ut=rt.extractKey,St=rt.outbound,ze=rt.autoIncrement&&Ge.filter(function(lt){return lt.compound&<.keyPath.includes(rt.keyPath)}),et=i(i({},Le),{mutate:function(lt){function yt(jn){return jn="idb://".concat(se,"/").concat(Ie,"/").concat(jn),Ut[jn]||(Ut[jn]=new Ll)}var xt,mt,Ft,qt=lt.trans,Ut=lt.mutatedParts||(lt.mutatedParts={}),an=yt(""),An=yt(":dels"),Fn=lt.type,mn=lt.type==="deleteRange"?[lt.range]:lt.type==="delete"?[lt.keys]:lt.values.length<50?[KS(rt,lt).filter(function(jn){return jn}),lt.values]:[],Rn=mn[0],Ln=mn[1],mn=lt.trans._cache;return l(Rn)?(an.addKeys(Rn),(mn=Fn==="delete"||Rn.length===Ln.length?R$(Rn,mn):null)||An.addKeys(Rn),(mn||Ln)&&(xt=yt,mt=mn,Ft=Ln,We.indexes.forEach(function(jn){var rr=xt(jn.name||"");function Jr(_i){return _i!=null?jn.extractKey(_i):null}function yi(_i){return jn.multiEntry&&l(_i)?_i.forEach(function(Jc){return rr.addKey(Jc)}):rr.addKey(_i)}(mt||Ft).forEach(function(_i,ga){var Xr=mt&&Jr(mt[ga]),ga=Ft&&Jr(Ft[ga]);qe(Xr,ga)!==0&&(Xr!=null&&yi(Xr),ga!=null&&yi(ga))})}))):Rn?(Ln={from:(Ln=Rn.lower)!==null&&Ln!==void 0?Ln:X.MIN_KEY,to:(Ln=Rn.upper)!==null&&Ln!==void 0?Ln:X.MAX_KEY},An.add(Ln),an.add(Ln)):(an.add(ye),An.add(ye),We.indexes.forEach(function(jn){return yt(jn.name).add(ye)})),Le.mutate(lt).then(function(jn){return!Rn||lt.type!=="add"&<.type!=="put"||(an.addKeys(jn.results),ze&&ze.forEach(function(rr){for(var Jr=lt.values.map(function(Xr){return rr.extractKey(Xr)}),yi=rr.keyPath.findIndex(function(Xr){return Xr===rt.keyPath}),_i=0,Jc=jn.results.length;_i<Jc;++_i)Jr[_i][yi]=jn.results[_i];yt(rr.name).addKeys(Jr)})),qt.mutatedParts=I_(qt.mutatedParts||{},Ut),jn})}}),Ge=function(yt){var xt=yt.query,yt=xt.index,xt=xt.range;return[yt,new Ll((yt=xt.lower)!==null&&yt!==void 0?yt:X.MIN_KEY,(xt=xt.upper)!==null&&xt!==void 0?xt:X.MAX_KEY)]},dt={get:function(lt){return[rt,new Ll(lt.key)]},getMany:function(lt){return[rt,new Ll().addKeys(lt.keys)]},count:Ge,query:Ge,openCursor:Ge};return s(dt).forEach(function(lt){et[lt]=function(yt){var xt=Ve.subscr,mt=!!xt,Ft=Jw(Ve,Le)&&I$(lt,yt)?yt.obsSet={}:xt;if(mt){var qt=function(Ln){return Ln="idb://".concat(se,"/").concat(Ie,"/").concat(Ln),Ft[Ln]||(Ft[Ln]=new Ll)},Ut=qt(""),an=qt(":dels"),xt=dt[lt](yt),mt=xt[0],xt=xt[1];if((lt==="query"&&mt.isPrimaryKey&&!yt.values?an:qt(mt.name||"")).add(xt),!mt.isPrimaryKey){if(lt!=="count"){var An=lt==="query"&&St&&yt.values&&Le.query(i(i({},yt),{values:!1}));return Le[lt].apply(this,arguments).then(function(Ln){if(lt==="query"){if(St&&yt.values)return An.then(function(Jr){return Jr=Jr.result,Ut.addKeys(Jr),Ln});var mn=yt.values?Ln.result.map(ut):Ln.result;(yt.values?Ut:an).addKeys(mn)}else if(lt==="openCursor"){var jn=Ln,rr=yt.values;return jn&&Object.create(jn,{key:{get:function(){return an.addKey(jn.primaryKey),jn.key}},primaryKey:{get:function(){var Jr=jn.primaryKey;return an.addKey(Jr),Jr}},value:{get:function(){return rr&&Ut.addKey(jn.primaryKey),jn.value}}})}return Ln})}an.add(ye)}}return Le[lt].apply(this,arguments)}}),et}})}};function xc(X,se,ye){if(ye.numFailures===0)return se;if(se.type==="deleteRange")return null;var Ie=se.keys?se.keys.length:"values"in se&&se.values?se.values.length:1;return ye.numFailures===Ie?null:(se=i({},se),l(se.keys)&&(se.keys=se.keys.filter(function(Le,We){return!(We in ye.failures)})),"values"in se&&l(se.values)&&(se.values=se.values.filter(function(Le,We){return!(We in ye.failures)})),se)}function XS(X,se){return ye=X,((Ie=se).lower===void 0||(Ie.lowerOpen?0<qe(ye,Ie.lower):0<=qe(ye,Ie.lower)))&&(X=X,(se=se).upper===void 0||(se.upperOpen?qe(X,se.upper)<0:qe(X,se.upper)<=0));var ye,Ie}function M_(X,se,dt,Ie,Le,We){if(!dt||dt.length===0)return X;var rt=se.query.index,ut=rt.multiEntry,St=se.query.range,ze=Ie.schema.primaryKey.extractKey,et=rt.extractKey,Ge=(rt.lowLevelIndex||rt).extractKey,dt=dt.reduce(function(lt,yt){var xt=lt,mt=[];if(yt.type==="add"||yt.type==="put")for(var Ft=new Ll,qt=yt.values.length-1;0<=qt;--qt){var Ut,an=yt.values[qt],An=ze(an);Ft.hasKey(An)||(Ut=et(an),(ut&&l(Ut)?Ut.some(function(jn){return XS(jn,St)}):XS(Ut,St))&&(Ft.addKey(An),mt.push(an)))}switch(yt.type){case"add":var Fn=new Ll().addKeys(se.values?lt.map(function(rr){return ze(rr)}):lt),xt=lt.concat(se.values?mt.filter(function(rr){return rr=ze(rr),!Fn.hasKey(rr)&&(Fn.addKey(rr),!0)}):mt.map(function(rr){return ze(rr)}).filter(function(rr){return!Fn.hasKey(rr)&&(Fn.addKey(rr),!0)}));break;case"put":var Rn=new Ll().addKeys(yt.values.map(function(rr){return ze(rr)}));xt=lt.filter(function(rr){return!Rn.hasKey(se.values?ze(rr):rr)}).concat(se.values?mt:mt.map(function(rr){return ze(rr)}));break;case"delete":var Ln=new Ll().addKeys(yt.keys);xt=lt.filter(function(rr){return!Ln.hasKey(se.values?ze(rr):rr)});break;case"deleteRange":var mn=yt.range;xt=lt.filter(function(rr){return!XS(ze(rr),mn)})}return xt},X);return dt===X?X:(dt.sort(function(lt,yt){return qe(Ge(lt),Ge(yt))||qe(ze(lt),ze(yt))}),se.limit&&se.limit<1/0&&(dt.length>se.limit?dt.length=se.limit:X.length===se.limit&&dt.length<se.limit&&(Le.dirty=!0)),We?Object.freeze(dt):dt)}function TN(X,se){return qe(X.lower,se.lower)===0&&qe(X.upper,se.upper)===0&&!!X.lowerOpen==!!se.lowerOpen&&!!X.upperOpen==!!se.upperOpen}function M$(X,se){return function(ye,Ie,Le,We){if(ye===void 0)return Ie!==void 0?-1:0;if(Ie===void 0)return 1;if((Ie=qe(ye,Ie))===0){if(Le&&We)return 0;if(Le)return 1;if(We)return-1}return Ie}(X.lower,se.lower,X.lowerOpen,se.lowerOpen)<=0&&0<=function(ye,Ie,Le,We){if(ye===void 0)return Ie!==void 0?1:0;if(Ie===void 0)return-1;if((Ie=qe(ye,Ie))===0){if(Le&&We)return 0;if(Le)return-1;if(We)return 1}return Ie}(X.upper,se.upper,X.upperOpen,se.upperOpen)}function wG(X,se,ye,Ie){X.subscribers.add(ye),Ie.addEventListener("abort",function(){var Le,We;X.subscribers.delete(ye),X.subscribers.size===0&&(Le=X,We=se,setTimeout(function(){Le.subscribers.size===0&&B(We,Le)},3e3))})}var xG={stack:"dbcore",level:0,name:"Cache",create:function(X){var se=X.schema.name;return i(i({},X),{transaction:function(ye,Ie,Le){var We,rt,ut=X.transaction(ye,Ie,Le);return Ie==="readwrite"&&(rt=(We=new AbortController).signal,Le=function(St){return function(){if(We.abort(),Ie==="readwrite"){for(var ze=new Set,et=0,Ge=ye;et<Ge.length;et++){var dt=Ge[et],lt=nh["idb://".concat(se,"/").concat(dt)];if(lt){var yt=X.table(dt),xt=lt.optimisticOps.filter(function(rr){return rr.trans===ut});if(ut._explicit&&St&&ut.mutatedParts)for(var mt=0,Ft=Object.values(lt.queries.query);mt<Ft.length;mt++)for(var qt=0,Ut=(Fn=Ft[mt]).slice();qt<Ut.length;qt++)SN((Rn=Ut[qt]).obsSet,ut.mutatedParts)&&(B(Fn,Rn),Rn.subscribers.forEach(function(rr){return ze.add(rr)}));else if(0<xt.length){lt.optimisticOps=lt.optimisticOps.filter(function(rr){return rr.trans!==ut});for(var an=0,An=Object.values(lt.queries.query);an<An.length;an++)for(var Fn,Rn,Ln,mn=0,jn=(Fn=An[an]).slice();mn<jn.length;mn++)(Rn=jn[mn]).res!=null&&ut.mutatedParts&&(St&&!Rn.dirty?(Ln=Object.isFrozen(Rn.res),Ln=M_(Rn.res,Rn.req,xt,yt,Rn,Ln),Rn.dirty?(B(Fn,Rn),Rn.subscribers.forEach(function(rr){return ze.add(rr)})):Ln!==Rn.res&&(Rn.res=Ln,Rn.promise=Xe.resolve({result:Ln}))):(Rn.dirty&&B(Fn,Rn),Rn.subscribers.forEach(function(rr){return ze.add(rr)})))}}}ze.forEach(function(rr){return rr()})}}},ut.addEventListener("abort",Le(!1),{signal:rt}),ut.addEventListener("error",Le(!1),{signal:rt}),ut.addEventListener("complete",Le(!0),{signal:rt})),ut},table:function(ye){var Ie=X.table(ye),Le=Ie.schema.primaryKey;return i(i({},Ie),{mutate:function(We){var rt=Ve.trans;if(Le.outbound||rt.db._options.cache==="disabled"||rt.explicit||rt.idbtrans.mode!=="readwrite")return Ie.mutate(We);var ut=nh["idb://".concat(se,"/").concat(ye)];return ut?(rt=Ie.mutate(We),We.type!=="add"&&We.type!=="put"||!(50<=We.values.length||KS(Le,We).some(function(St){return St==null}))?(ut.optimisticOps.push(We),We.mutatedParts&&Qw(We.mutatedParts),rt.then(function(St){0<St.numFailures&&(B(ut.optimisticOps,We),(St=xc(0,We,St))&&ut.optimisticOps.push(St),We.mutatedParts&&Qw(We.mutatedParts))}),rt.catch(function(){B(ut.optimisticOps,We),We.mutatedParts&&Qw(We.mutatedParts)})):rt.then(function(St){var ze=xc(0,i(i({},We),{values:We.values.map(function(et,Ge){var dt;return St.failures[Ge]?et:(et=(dt=Le.keyPath)!==null&&dt!==void 0&&dt.includes(".")?k(et):i({},et),x(et,Le.keyPath,St.results[Ge]),et)})}),St);ut.optimisticOps.push(ze),queueMicrotask(function(){return We.mutatedParts&&Qw(We.mutatedParts)})}),rt):Ie.mutate(We)},query:function(We){if(!Jw(Ve,Ie)||!I$("query",We))return Ie.query(We);var rt=((ze=Ve.trans)===null||ze===void 0?void 0:ze.db._options.cache)==="immutable",Ge=Ve,ut=Ge.requery,St=Ge.signal,ze=function(yt,xt,mt,Ft){var qt=nh["idb://".concat(yt,"/").concat(xt)];if(!qt)return[];if(!(xt=qt.queries[mt]))return[null,!1,qt,null];var Ut=xt[(Ft.query?Ft.query.index.name:null)||""];if(!Ut)return[null,!1,qt,null];switch(mt){case"query":var an=Ut.find(function(An){return An.req.limit===Ft.limit&&An.req.values===Ft.values&&TN(An.req.query.range,Ft.query.range)});return an?[an,!0,qt,Ut]:[Ut.find(function(An){return("limit"in An.req?An.req.limit:1/0)>=Ft.limit&&(!Ft.values||An.req.values)&&M$(An.req.query.range,Ft.query.range)}),!1,qt,Ut];case"count":return an=Ut.find(function(An){return TN(An.req.query.range,Ft.query.range)}),[an,!!an,qt,Ut]}}(se,ye,"query",We),et=ze[0],Ge=ze[1],dt=ze[2],lt=ze[3];return et&&Ge?et.obsSet=We.obsSet:(Ge=Ie.query(We).then(function(yt){var xt=yt.result;if(et&&(et.res=xt),rt){for(var mt=0,Ft=xt.length;mt<Ft;++mt)Object.freeze(xt[mt]);Object.freeze(xt)}else yt.result=k(xt);return yt}).catch(function(yt){return lt&&et&&B(lt,et),Promise.reject(yt)}),et={obsSet:We.obsSet,promise:Ge,subscribers:new Set,type:"query",req:We,dirty:!1},lt?lt.push(et):(lt=[et],(dt=dt||(nh["idb://".concat(se,"/").concat(ye)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[We.query.index.name||""]=lt)),wG(et,lt,ut,St),et.promise.then(function(yt){return{result:M_(yt.result,We,dt==null?void 0:dt.optimisticOps,Ie,et,rt)}})}})}})}};function ex(X,se){return new Proxy(X,{get:function(ye,Ie,Le){return Ie==="db"?se:Reflect.get(ye,Ie,Le)}})}var rh=(Za.prototype.version=function(X){if(isNaN(X)||X<.1)throw new te.Type("Given version is not a positive number");if(X=Math.round(10*X)/10,this.idbdb||this._state.isBeingOpened)throw new te.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,X);var se=this._versions,ye=se.filter(function(Ie){return Ie._cfg.version===X})[0];return ye||(ye=new this.Version(X),se.push(ye),se.sort(CG),ye.stores({}),this._state.autoSchema=!1,ye)},Za.prototype._whenReady=function(X){var se=this;return this.idbdb&&(this._state.openComplete||Ve.letThrough||this._vip)?X():new Xe(function(ye,Ie){if(se._state.openComplete)return Ie(new te.DatabaseClosed(se._state.dbOpenError));if(!se._state.isBeingOpened){if(!se._state.autoOpen)return void Ie(new te.DatabaseClosed);se.open().catch(pe)}se._state.dbReadyPromise.then(ye,Ie)}).then(X)},Za.prototype.use=function(X){var se=X.stack,ye=X.create,Ie=X.level,Le=X.name;return Le&&this.unuse({stack:se,name:Le}),X=this._middlewares[se]||(this._middlewares[se]=[]),X.push({stack:se,create:ye,level:Ie??10,name:Le}),X.sort(function(We,rt){return We.level-rt.level}),this},Za.prototype.unuse=function(X){var se=X.stack,ye=X.name,Ie=X.create;return se&&this._middlewares[se]&&(this._middlewares[se]=this._middlewares[se].filter(function(Le){return Ie?Le.create!==Ie:!!ye&&Le.name!==ye})),this},Za.prototype.open=function(){var X=this;return ln(ge,function(){return N_(X)})},Za.prototype._close=function(){var X=this._state,se=Gt.indexOf(this);if(0<=se&&Gt.splice(se,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}X.isBeingOpened||(X.dbReadyPromise=new Xe(function(ye){X.dbReadyResolve=ye}),X.openCanceller=new Xe(function(ye,Ie){X.cancelOpen=Ie}))},Za.prototype.close=function(ye){var se=(ye===void 0?{disableAutoOpen:!0}:ye).disableAutoOpen,ye=this._state;se?(ye.isBeingOpened&&ye.cancelOpen(new te.DatabaseClosed),this._close(),ye.autoOpen=!1,ye.dbOpenError=new te.DatabaseClosed):(this._close(),ye.autoOpen=this._options.autoOpen||ye.isBeingOpened,ye.openComplete=!1,ye.dbOpenError=null)},Za.prototype.delete=function(X){var se=this;X===void 0&&(X={disableAutoOpen:!0});var ye=0<arguments.length&&typeof arguments[0]!="object",Ie=this._state;return new Xe(function(Le,We){function rt(){se.close(X);var ut=se._deps.indexedDB.deleteDatabase(se.name);ut.onsuccess=it(function(){var St,ze,et;St=se._deps,ze=se.name,et=St.indexedDB,St=St.IDBKeyRange,rc(et)||ze===zt||Xw(et,St).delete(ze).catch(pe),Le()}),ut.onerror=Is(We),ut.onblocked=se._fireOnBlocked}if(ye)throw new te.InvalidArgument("Invalid closeOptions argument to db.delete()");Ie.isBeingOpened?Ie.dbReadyPromise.then(rt):rt()})},Za.prototype.backendDB=function(){return this.idbdb},Za.prototype.isOpen=function(){return this.idbdb!==null},Za.prototype.hasBeenClosed=function(){var X=this._state.dbOpenError;return X&&X.name==="DatabaseClosed"},Za.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Za.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Za.prototype,"tables",{get:function(){var X=this;return s(this._allTables).map(function(se){return X._allTables[se]})},enumerable:!1,configurable:!0}),Za.prototype.transaction=function(){var X=(function(se,ye,Ie){var Le=arguments.length;if(Le<2)throw new te.InvalidArgument("Too few arguments");for(var We=new Array(Le-1);--Le;)We[Le-1]=arguments[Le];return Ie=We.pop(),[se,O(We),Ie]}).apply(this,arguments);return this._transaction.apply(this,X)},Za.prototype._transaction=function(X,se,ye){var Ie=this,Le=Ve.trans;Le&&Le.db===this&&X.indexOf("!")===-1||(Le=null);var We,rt,ut=X.indexOf("?")!==-1;X=X.replace("!","").replace("?","");try{if(rt=se.map(function(ze){if(ze=ze instanceof Ie.Table?ze.name:ze,typeof ze!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return ze}),X=="r"||X===Vn)We=Vn;else{if(X!="rw"&&X!=sr)throw new te.InvalidArgument("Invalid transaction mode: "+X);We=sr}if(Le){if(Le.mode===Vn&&We===sr){if(!ut)throw new te.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");Le=null}Le&&rt.forEach(function(ze){if(Le&&Le.storeNames.indexOf(ze)===-1){if(!ut)throw new te.SubTransaction("Table "+ze+" not included in parent transaction.");Le=null}}),ut&&Le&&!Le.active&&(Le=null)}}catch(ze){return Le?Le._promise(null,function(et,Ge){Ge(ze)}):en(ze)}var St=(function ze(et,Ge,dt,lt,yt){return Xe.resolve().then(function(){var xt=Ve.transless||Ve,mt=et._createTransaction(Ge,dt,et._dbSchema,lt);if(mt.explicit=!0,xt={trans:mt,transless:xt},lt)mt.idbtrans=lt.idbtrans;else try{mt.create(),mt.idbtrans._explicit=!0,et._state.PR1398_maxLoop=3}catch(Ut){return Ut.name===j.InvalidState&&et.isOpen()&&0<--et._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),et.close({disableAutoOpen:!1}),et.open().then(function(){return ze(et,Ge,dt,null,yt)})):en(Ut)}var Ft,qt=K(yt);return qt&&on(),xt=Xe.follow(function(){var Ut;(Ft=yt.call(mt,mt))&&(qt?(Ut=sn.bind(null,null),Ft.then(Ut,Ut)):typeof Ft.next=="function"&&typeof Ft.throw=="function"&&(Ft=wN(Ft)))},xt),(Ft&&typeof Ft.then=="function"?Xe.resolve(Ft).then(function(Ut){return mt.active?Ut:en(new te.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):xt.then(function(){return Ft})).then(function(Ut){return lt&&mt._resolve(),mt._completion.then(function(){return Ut})}).catch(function(Ut){return mt._reject(Ut),en(Ut)})})}).bind(null,this,We,rt,Le,ye);return Le?Le._promise(We,St,"lock"):Ve.trans?ln(Ve.transless,function(){return Ie._whenReady(St)}):this._whenReady(St)},Za.prototype.table=function(X){if(!f(this._allTables,X))throw new te.InvalidTable("Table ".concat(X," does not exist"));return this._allTables[X]},Za);function Za(X,se){var ye=this;this._middlewares={},this.verno=0;var Ie=Za.dependencies;this._options=se=i({addons:Za.addons,autoOpen:!0,indexedDB:Ie.indexedDB,IDBKeyRange:Ie.IDBKeyRange,cache:"cloned"},se),this._deps={indexedDB:se.indexedDB,IDBKeyRange:se.IDBKeyRange},Ie=se.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var Le,We,rt,ut,St,ze={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:pe,dbReadyPromise:null,cancelOpen:pe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:se.autoOpen};ze.dbReadyPromise=new Xe(function(Ge){ze.dbReadyResolve=Ge}),ze.openCanceller=new Xe(function(Ge,dt){ze.cancelOpen=dt}),this._state=ze,this.name=X,this.on=Ci(this,"populate","blocked","versionchange","close",{ready:[Ee,pe]}),this.on.ready.subscribe=b(this.on.ready.subscribe,function(Ge){return function(dt,lt){Za.vip(function(){var yt,xt=ye._state;xt.openComplete?(xt.dbOpenError||Xe.resolve().then(dt),lt&&Ge(dt)):xt.onReadyBeingFired?(xt.onReadyBeingFired.push(dt),lt&&Ge(dt)):(Ge(dt),yt=ye,lt||Ge(function mt(){yt.on.ready.unsubscribe(dt),yt.on.ready.unsubscribe(mt)}))})}}),this.Collection=(Le=this,wi(Qo.prototype,function(Ft,mt){this.db=Le;var lt=W,yt=null;if(mt)try{lt=mt()}catch(qt){yt=qt}var xt=Ft._ctx,mt=xt.table,Ft=mt.hook.reading.fire;this._ctx={table:mt,index:xt.index,isPrimKey:!xt.index||mt.schema.primKey.keyPath&&xt.index===mt.schema.primKey.name,range:lt,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:yt,or:xt.or,valueMapper:Ft!==me?Ft:null}})),this.Table=(We=this,wi(Nn.prototype,function(Ge,dt,lt){this.db=We,this._tx=lt,this.name=Ge,this.schema=dt,this.hook=We._allTables[Ge]?We._allTables[Ge].hook:Ci(null,{creating:[be,pe],reading:[ve,me],updating:[De,pe],deleting:[we,pe]})})),this.Transaction=(rt=this,wi(Ir.prototype,function(Ge,dt,lt,yt,xt){var mt=this;this.db=rt,this.mode=Ge,this.storeNames=dt,this.schema=lt,this.chromeTransactionDurability=yt,this.idbtrans=null,this.on=Ci(this,"complete","error","abort"),this.parent=xt||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Xe(function(Ft,qt){mt._resolve=Ft,mt._reject=qt}),this._completion.then(function(){mt.active=!1,mt.on.complete.fire()},function(Ft){var qt=mt.active;return mt.active=!1,mt.on.error.fire(Ft),mt.parent?mt.parent._reject(Ft):qt&&mt.idbtrans&&mt.idbtrans.abort(),en(Ft)})})),this.Version=(ut=this,wi(x$.prototype,function(Ge){this.db=ut,this._cfg={version:Ge,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(St=this,wi(kl.prototype,function(Ge,dt,lt){if(this.db=St,this._ctx={table:Ge,index:dt===":id"?null:dt,or:lt},this._cmp=this._ascending=qe,this._descending=function(yt,xt){return qe(xt,yt)},this._max=function(yt,xt){return 0<qe(yt,xt)?yt:xt},this._min=function(yt,xt){return qe(yt,xt)<0?yt:xt},this._IDBKeyRange=St._deps.IDBKeyRange,!this._IDBKeyRange)throw new te.MissingAPI})),this.on("versionchange",function(Ge){0<Ge.newVersion?console.warn("Another connection wants to upgrade database '".concat(ye.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(ye.name,"'. Closing db now to resume the delete request.")),ye.close({disableAutoOpen:!1})}),this.on("blocked",function(Ge){!Ge.newVersion||Ge.newVersion<Ge.oldVersion?console.warn("Dexie.delete('".concat(ye.name,"') was blocked")):console.warn("Upgrade '".concat(ye.name,"' blocked by other connection holding version ").concat(Ge.oldVersion/10))}),this._maxKey=Jp(se.IDBKeyRange),this._createTransaction=function(Ge,dt,lt,yt){return new ye.Transaction(Ge,dt,lt,ye._options.chromeTransactionDurability,yt)},this._fireOnBlocked=function(Ge){ye.on("blocked").fire(Ge),Gt.filter(function(dt){return dt.name===ye.name&&dt!==ye&&!dt._state.vcFired}).map(function(dt){return dt.on("versionchange").fire(Ge)})},this.use(xN),this.use(xG),this.use(N$),this.use(T$),this.use(O$);var et=new Proxy(this,{get:function(Ge,dt,lt){if(dt==="_vip")return!0;if(dt==="table")return function(xt){return ex(ye.table(xt),et)};var yt=Reflect.get(Ge,dt,lt);return yt instanceof Nn?ex(yt,et):dt==="tables"?yt.map(function(xt){return ex(xt,et)}):dt==="_createTransaction"?function(){return ex(yt.apply(this,arguments),et)}:yt}});this.vip=et,Ie.forEach(function(Ge){return Ge(ye)})}var ih,$u=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",TG=(QS.prototype.subscribe=function(X,se,ye){return this._subscribe(X&&typeof X!="function"?X:{next:X,error:se,complete:ye})},QS.prototype[$u]=function(){return this},QS);function QS(X){this._subscribe=X}try{ih={indexedDB:a.indexedDB||a.mozIndexedDB||a.webkitIndexedDB||a.msIndexedDB,IDBKeyRange:a.IDBKeyRange||a.webkitIDBKeyRange}}catch{ih={indexedDB:null,IDBKeyRange:null}}function ON(X){var se,ye=!1,Ie=new TG(function(Le){var We=K(X),rt,ut=!1,St={},ze={},et={get closed(){return ut},unsubscribe:function(){ut||(ut=!0,rt&&rt.abort(),Ge&&Wn.storagemutated.unsubscribe(lt))}};Le.start&&Le.start(et);var Ge=!1,dt=function(){return Lt(yt)},lt=function(xt){I_(St,xt),SN(ze,St)&&dt()},yt=function(){var xt,mt,Ft;!ut&&ih.indexedDB&&(St={},xt={},rt&&rt.abort(),rt=new AbortController,Ft=function(qt){var Ut=Bt();try{We&&on();var an=tn(X,qt);return an=We?an.finally(sn):an}finally{Ut&&Vt()}}(mt={subscr:xt,signal:rt.signal,requery:dt,querier:X,trans:null}),Promise.resolve(Ft).then(function(qt){ye=!0,se=qt,ut||mt.signal.aborted||(St={},function(Ut){for(var an in Ut)if(f(Ut,an))return;return 1}(ze=xt)||Ge||(Wn(ku,lt),Ge=!0),Lt(function(){return!ut&&Le.next&&Le.next(qt)}))},function(qt){ye=!1,["DatabaseClosedError","AbortError"].includes(qt==null?void 0:qt.name)||ut||Lt(function(){ut||Le.error&&Le.error(qt)})}))};return setTimeout(dt,0),et});return Ie.hasValue=function(){return ye},Ie.getValue=function(){return se},Ie}var Tc=rh;function P_(X){var se=Pg;try{Pg=!0,Wn.storagemutated.fire(X),Zw(X,!0)}finally{Pg=se}}p(Tc,i(i({},de),{delete:function(X){return new Tc(X,{addons:[]}).delete()},exists:function(X){return new Tc(X,{addons:[]}).open().then(function(se){return se.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(X){try{return se=Tc.dependencies,ye=se.indexedDB,se=se.IDBKeyRange,(rc(ye)?Promise.resolve(ye.databases()).then(function(Ie){return Ie.map(function(Le){return Le.name}).filter(function(Le){return Le!==zt})}):Xw(ye,se).toCollection().primaryKeys()).then(X)}catch{return en(new te.MissingAPI)}var se,ye},defineClass:function(){return function(X){c(this,X)}},ignoreTransaction:function(X){return Ve.trans?ln(Ve.transless,X):X()},vip:bN,async:function(X){return function(){try{var se=wN(X.apply(this,arguments));return se&&typeof se.then=="function"?se:Xe.resolve(se)}catch(ye){return en(ye)}}},spawn:function(X,se,ye){try{var Ie=wN(X.apply(ye,se||[]));return Ie&&typeof Ie.then=="function"?Ie:Xe.resolve(Ie)}catch(Le){return en(Le)}},currentTransaction:{get:function(){return Ve.trans||null}},waitFor:function(X,se){return se=Xe.resolve(typeof X=="function"?Tc.ignoreTransaction(X):X).timeout(se||6e4),Ve.trans?Ve.trans.waitFor(se):se},Promise:Xe,debug:{get:function(){return Re},set:function(X){Te(X)}},derive:v,extend:c,props:p,override:b,Events:Ci,on:Wn,liveQuery:ON,extendObservabilitySet:I_,getByKeyPath:C,setByKeyPath:x,delByKeyPath:function(X,se){typeof se=="string"?x(X,se,void 0):"length"in se&&[].map.call(se,function(ye){x(X,ye,void 0)})},shallowClone:T,deepClone:k,getObjectDiff:qS,cmp:qe,asap:w,minKey:-1/0,addons:[],connections:Gt,errnames:j,dependencies:ih,cache:nh,semVer:"4.0.10",version:"4.0.10".split(".").map(function(X){return parseInt(X)}).reduce(function(X,se,ye){return X+se/Math.pow(10,2*ye)})})),Tc.maxKey=Jp(Tc.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Wn(ku,function(X){Pg||(X=new CustomEvent(Ng,{detail:X}),Pg=!0,dispatchEvent(X),Pg=!1)}),addEventListener(Ng,function(X){X=X.detail,Pg||P_(X)}));var A_,Pg=!1,P$=function(){};return typeof BroadcastChannel<"u"&&((P$=function(){(A_=new BroadcastChannel(Ng)).onmessage=function(X){return X.data&&P_(X.data)}})(),typeof A_.unref=="function"&&A_.unref(),Wn(ku,function(X){Pg||A_.postMessage(X)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(X){if(!rh.disableBfCache&&X.persisted){Re&&console.debug("Dexie: handling persisted pagehide"),A_!=null&&A_.close();for(var se=0,ye=Gt;se<ye.length;se++)ye[se].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(X){!rh.disableBfCache&&X.persisted&&(Re&&console.debug("Dexie: handling persisted pageshow"),P$(),P_({all:new Ll(-1/0,[[]])}))})),Xe.rejectionMapper=function(X,se){return!X||X instanceof G||X instanceof TypeError||X instanceof SyntaxError||!X.name||!oe[X.name]?X:(se=new oe[X.name](se||X.message,X),"stack"in X&&g(se,"stack",{get:function(){return this.inner.stack}}),se)},Te(Re),i(rh,Object.freeze({__proto__:null,Dexie:rh,liveQuery:ON,Entity:Pe,cmp:qe,PropModSymbol:ur,PropModification:qr,replacePrefix:function(X,se){return new qr({replacePrefix:[X,se]})},add:function(X){return new qr({add:X})},remove:function(X){return new qr({remove:X})},default:rh,RangeSet:Ll,mergeRanges:Lu,rangesOverlap:GS}),{default:rh}),rh})})(dGe);var aqt=dGe.exports;const Iie=Or(aqt),Lwe=Symbol.for("Dexie"),iB=globalThis[Lwe]||(globalThis[Lwe]=Iie);if(Iie.semVer!==iB.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${Iie.semVer} and ${iB.semVer}`);const{liveQuery:sqt,mergeRanges:_1r,rangesOverlap:b1r,RangeSet:S1r,cmp:E1r,Entity:C1r,PropModSymbol:w1r,PropModification:x1r,replacePrefix:T1r,add:O1r,remove:R1r}=iB;class fGe extends iB{constructor(){super("bytedesk");$t(this,"threads");$t(this,"messages");this.version(1).stores({threads:"++id, uid",messages:"++id, uid"})}async createMessage(r){return console.log("useIndexedDB createMessage",r.content),await Qf.messages.put({uid:r.uid,type:r.type,content:r.content,client:r.client,createdAt:r.createdAt,status:"unread",threadTopic:r.threadTopic})}async getAllMessages(){return(await Qf.messages.toArray()).map(i=>({uid:i.uid||"",type:i.type||"",content:i.content||"",client:i.client||"",createdAt:i.createdAt||"",status:i.status||"",threadTopic:i.threadTopic||"",user:{uid:i.userUid||"",nickname:i.userNickname||"",avatar:i.userAvatar||""}}))}async getMessage(r){return await Qf.messages.get(r)}async updateMessage(r,i){return await Qf.messages.update(r,{content:i})}async deleteMessage(r){return await Qf.messages.delete(r)}subscribeMessages(){sqt(()=>this.messages.toArray()).subscribe({next:i=>{const o=i.map(a=>a.uid);console.log("messagesObservable message uids",o)}})}async createThread(r){var i,o,a;return console.log("useIndexedDB createThread",r.topic),await Qf.threads.put({uid:r.uid,type:r.type,topic:r.topic,status:r.status,extra:r.extra,updatedAt:r.updatedAt,userUid:(i=r.user)==null?void 0:i.uid,userNickname:(o=r.user)==null?void 0:o.nickname,userAvatar:(a=r.user)==null?void 0:a.avatar})}async getAllThreads(){return(await Qf.threads.toArray()).map(i=>({uid:i.uid||"",type:i.type||"",topic:i.topic||"",status:i.status||"",extra:i.extra||"",createdAt:i.updatedAt||"",user:{uid:i.userUid||"",nickname:i.userNickname||"",avatar:i.userAvatar||""}}))}async getThread(r){return await Qf.threads.get(r)}async updateThread(r,i){return await Qf.threads.update(r,i)}async deleteThread(r){return await Qf.threads.delete(r)}}const Qf=new fGe;let hs,Wu,Yu,Tx=!1;const lqt=({uid:e,username:n,accessToken:r})=>{if(r===""||r==null){console.log("accessToken is empty, don't connect mqtt");return}if(Wu=ws.getState().userInfo,Yu=XC.getState().agentInfo,Tx){console.log("mqtt is connecting");return}if(hs&&hs.connected){console.log("mqtt already connected");return}if(hs&&hs.reconnecting){console.log("mqtt already reconnecting");return}Tx=!0;const i=ws.getState().deviceUid,a={keepalive:30,clientId:e+"/"+xo+"/"+i,username:n,password:r,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1};console.log("mqtt start connect:",a),hs=BEt.connect(V0t(),a),hs.on("connect",()=>{console.log("mqtt event connected"),Tx=!1,Qr.emit(Iee)}),hs.on("message",async function(s,l,c){console.log("mqtt receive message topic:",s,c);const u=uFe.Message.deserializeBinary(l),d=Ph.getState().currentThread,f={uid:u.getThread().getUid(),type:u.getThread().getType(),topic:u.getThread().getTopic(),content:u.getContent(),updatedAt:u.getCreatedat(),unreadCount:0,user:{uid:u.getThread().getUser().getUid(),nickname:u.getThread().getUser().getNickname(),avatar:u.getThread().getUser().getAvatar()}},p={uid:u.getUid(),createdAt:u.getCreatedat(),client:u.getClient(),type:u.getType(),status:u.getStatus(),user:{uid:u.getUser().getUid(),nickname:u.getUser().getNickname(),avatar:u.getUser().getAvatar()},content:u.getContent(),threadTopic:u.getThread().getTopic()};if(fqt(u,Wu,Yu))switch(u.getType()){case zee:case Hee:Iq(u);return;case jee:case Uee:return;case wbe:return;case Tbe:console.log("self transfer message"),jwe(p,f);break;case Obe:console.log("self transfer accept message"),Uwe(p,f);return;case Rbe:console.log("self transfer reject message"),Hwe(p,f);return;case xbe:console.log("self recall message"),zwe(p);return;case $P:console.log("thread closed message"),Ph.getState().closeThread(f.topic);break;default:u.setStatus(Fee)}else switch(u.getType()){case zee:case Hee:Iq(u);return;case jee:case Uee:Bwe(d,f,u.getType());return;case kP:Bwe(d,f,u.getType());break;case wbe:pqt(u,d,f);return;case r_t:case i_t:case o_t:case a_t:case s_t:case l_t:Iq(u);return;case Tbe:console.log("transfer message"),jwe(p,f);break;case Obe:console.log("transfer accept message"),Uwe(p,f);return;case Rbe:console.log("transfer reject message"),Hwe(p,f);return;case xbe:console.log("recall message"),zwe(p);return;case LP:case $P:console.log("thread closed message"),Ph.getState().closeThread(f.topic);break;default:console.log("send receive message type",u.getType()),hqt(u,d,f)}console.log("mqtt message received",s,p,f),Yy.getState().addMessage(p),Qr.emit(DP,p);const h=Ph.getState().addThreadWithMessage(f,p);console.log("unreadCount",h);try{await Qf.createMessage(p),console.log("Sent message stored in IndexedDB:",p)}catch(g){console.error("Error storing sent message in IndexedDB:",g)}}),hs.on("packetsend",s=>{console.log("mqtt event packetsend",s)}),hs.on("packetreceive",s=>{console.log("mqtt event packetreceive",s,s.cmd),s.cmd==="publish"||s.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),hs.on("reconnect",()=>{console.log("mqtt event reconnect")}),hs.on("close",()=>{console.log("mqtt event close"),Tx=!1,Qr.emit(Mee)}),hs.on("disconnect",()=>{console.error("mqtt event disconnected"),Tx=!1,Qr.emit(Pee)}),hs.on("offline",()=>{console.log("mqtt event offline"),Tx=!1,Qr.emit(Nee)}),hs.on("error",()=>{console.log("mqtt event error"),Qr.emit(Aee)}),hs.on("end",()=>{console.log("mqtt event end"),Qr.emit(Dee)})},$we=new Set,pGe=(e,n)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),$we.has(e)||($we.add(e),hGe(Q7(),Hee,e,n))},Fwe=new Set,cqt=(e,n)=>{console.log("mqtt mqttSendReceiptReadMessage",e),Fwe.has(e)||(Fwe.add(e),hGe(Q7(),zee,e,n))},hGe=async(e,n,r,i)=>{var a,s,l,c,u,d,f,p;console.log("mqtt mqttSendMessage",r);const o=Zxt();if(hs&&hs.connected){const h=new UEt.Thread;h.setUid(i.uid),h.setType(i.type),h.setTopic(i.topic);const g=new L0e.User;g.setUid((a=i.user)==null?void 0:a.uid),g.setNickname((s=i.user)==null?void 0:s.nickname),g.setAvatar((l=i.user)==null?void 0:l.avatar),h.setUser(g);const v=new L0e.User;(Yu==null?void 0:Yu.uid)!=""&&((i==null?void 0:i.type)===_be||(i==null?void 0:i.type)===bbe)?(v.setUid(Yu.uid),v.setNickname(Yu.nickname),v.setAvatar(Yu.avatar),v.setType(vbe)):(v.setUid(Wu.uid),v.setNickname(Wu.nickname),v.setAvatar(Wu.avatar),v.setType(ybe));const y={orgUid:(c=Wu==null?void 0:Wu.currentOrganization)==null?void 0:c.uid},_=new uFe.Message;_.setUid(e),_.setType(n),_.setStatus(Cbe),_.setCreatedat(o),_.setClient(xo),_.setContent(r),_.setUser(v),_.setThread(h),_.setExtra(JSON.stringify(y));const S=_.serializeBinary();hs.publish(i.topic,S);try{const b={uid:_.getUid(),type:_.getType(),content:_.getContent(),client:_.getClient(),createdAt:_.getCreatedat(),status:_.getStatus(),threadTopic:_.getThread().getTopic(),user:{uid:_.getUser().getUid(),nickname:_.getUser().getNickname(),avatar:_.getUser().getAvatar()}};await Qf.createMessage(b),console.log("Sent message stored in IndexedDB:",b)}catch(b){console.error("Error storing sent message in IndexedDB:",b)}}else{console.log("mqttClient is disconnect, use http rest api");const h={uid:i.uid,type:i.type,topic:i.topic,user:{uid:(u=i.user)==null?void 0:u.uid,nickname:(d=i.user)==null?void 0:d.nickname,avatar:(f=i.user)==null?void 0:f.avatar}};let g;(Yu==null?void 0:Yu.uid)!=""&&((i==null?void 0:i.type)===_be||(i==null?void 0:i.type)===bbe)?g={uid:Yu.uid,nickname:Yu.nickname,avatar:Yu.avatar,type:vbe}:g={uid:Wu.uid,nickname:Wu.nickname,avatar:Wu.avatar,type:ybe};const v={orgUid:(p=Wu==null?void 0:Wu.currentOrganization)==null?void 0:p.uid},y={uid:e,type:n,status:Cbe,createdAt:o,client:xo,content:r,extra:JSON.stringify(v),user:g,thread:h};dqt(y)}},Rq=()=>{hs?hs.end():console.log("mqttClient is null")},uqt=()=>hs&&hs.connected,dqt=async e=>{const n=JSON.stringify(e),r=await X0t(n);if(console.log("sendHttpMessage:",r.data),r.data.code===200){Yy.getState().updateMessageStatus(e==null?void 0:e.uid,Fee);const i={uid:e==null?void 0:e.uid,type:Fee};Qr.emit(A4e,JSON.stringify(i))}else Nt.error(r.data.message)},fqt=(e,n,r)=>e.getUser().getUid()===(n==null?void 0:n.uid)||e.getUser().getUid()===(r==null?void 0:r.uid);function Iq(e){console.log("update message status:",e.getContent(),e.getType()),Yy.getState().updateMessageStatus(e.getContent(),e.getType());const n={uid:e.getContent(),type:e.getType()};Qr.emit(A4e,JSON.stringify(n))}function Bwe(e,n,r){(e==null?void 0:e.topic)===(n==null?void 0:n.topic)&&(r===jee?Qr.emit(_yt):r===Uee?Qr.emit(byt):r===kP&&Qr.emit(Syt))}function pqt(e,n,r){(n==null?void 0:n.topic)===(r==null?void 0:r.topic)&&Qr.emit(Eyt,e.getContent())}function jwe(e,n){const r={message:e,thread:n};Qr.emit(kee,JSON.stringify(r))}function Uwe(e,n){const r=JSON.parse(e==null?void 0:e.content);Yy.getState().updateMessageStatus(r.uid,Kyt);const i={message:e,thread:n};Qr.emit(Lee,JSON.stringify(i))}function Hwe(e,n){const r=JSON.parse(e==null?void 0:e.content);Yy.getState().updateMessageStatus(r.uid,Xyt);const i={message:e,thread:n};Qr.emit($ee,JSON.stringify(i))}function zwe(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),Yy.getState().recallMessage(e==null?void 0:e.content)}function hqt(e,n,r){if(!nTt(r==null?void 0:r.topic)&&Jxt(e==null?void 0:e.getType())){const i=e==null?void 0:e.getUid();pGe(i,r),(n==null?void 0:n.topic)===(r==null?void 0:r.topic)&&cqt(i,r)}}const gqt=Ou()(kp(Sd(Lp(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(n){console.log("addDevice",n)},setCurrentDevice:n=>{e({currentDevice:n})},setMyDevice(n){e({myDevice:n})},resetDeviceInfo(){}})),{name:Pyt}))),mqt=()=>{wA("https://www.weiyuai.cn/docs/zh-CN/")},wA=e=>{Yl?window.electronAPI.openUrl(e):window.open(e,"_blank")},vqt=async()=>{if(Yl){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},gGe=async()=>Yl?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),yqt=async()=>{if(Yl){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},_qt=(e,n)=>{Yl&&window.electronAPI.showElectronNotification(e,n)},bqt=e=>{Yl?window.electronAPI.setThemeMode(e):console.log("not electron")},Nie=()=>{Yl&&window.electronAPI.loginSuccess()},Sqt=()=>{Yl&&window.electronAPI.logoutSuccess()};function qde(){const[e,n]=m.useState(""),{myDevice:r,setMyDevice:i}=gqt(T=>({myDevice:T.myDevice,setMyDevice:T.setMyDevice})),{userInfo:o,deviceUid:a,setUserInfo:s,setDeviceUid:l}=ws(T=>({userInfo:T.userInfo,deviceUid:T.deviceUid,setUserInfo:T.setUserInfo,setDeviceUid:T.setDeviceUid})),{agentInfo:c}=XC(T=>({agentInfo:T.agentInfo})),u=Yy(T=>T.addMessage),d=Ph(T=>T.updateThreadContent),f=m.useRef(!1),[p,h]=m.useState(!1);m.useEffect(()=>{h(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(T=>{T.roles.forEach(R=>{R.name===p_t&&h(!0)})})},[o.userOrganizationRoles]);const[g,v]=m.useState(!1);m.useEffect(()=>{v(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(T=>{T.roles.forEach(R=>{R.name===h_t&&v(!0)})})},[o.userOrganizationRoles]);const[y,_]=m.useState(!1);m.useEffect(()=>{_(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(T=>{T.roles.forEach(R=>{R.name===g_t&&_(!0)})})},[o.userOrganizationRoles]);const[S,b]=m.useState(!1);m.useEffect(()=>{b(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(T=>{T.roles.forEach(R=>{R.name===m_t&&b(!0)})})},[o.userOrganizationRoles]);const E="",w=async()=>{const T=await gGe();console.log("ipAddress",e,T),T.length>0&&(n(T[0]),r.ip=T[0],i(r))},C=async()=>{var R,O;if(f.current)return;f.current=!0;const T=await K0t(c==null?void 0:c.uid);console.log("getAgentMessageUnread response:",T==null?void 0:T.data),(O=(R=T==null?void 0:T.data)==null?void 0:R.data)==null||O.forEach(M=>{console.log("getAgentMessageUnread item:",M),u(M);const P=d(M.threadTopic,M.content);P&&pGe(M==null?void 0:M.uid,P)}),f.current=!1};return m.useEffect(()=>{S&&C()},[S]),m.useEffect(()=>{console.log("useUserInfo useEffect"),(a===void 0||a==="")&&l(Q7()),w()},[]),{userInfo:o,setUserInfo:s,agentInfo:c,handleUpdateAgentStatus:async T=>{const R={...c,status:T};Nt.loading("正在更新状态");const O=await q0t(R);console.log("updateAgentStatus:",T,O.data),O.data.code===200?(Nt.destroy(),Nt.success("状态更新成功")):(Nt.destroy(),Nt.error("状态更新失败"))},avatar:E,hasRoleAgent:S,hasRoleSuper:p,hasRoleAdmin:g,hasRoleMember:y}}const Xl=m.createContext({}),Eqt=({children:e})=>{const[n,r]=m.useState(!1),[i,o]=m.useState(!1),a=GD(R=>R.accessToken),s=v_t(R=>R.settings),{userInfo:l,setUserInfo:c,agentInfo:u,handleUpdateAgentStatus:d,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:g}=qde(),v=m.useMemo(()=>!!a&&a.trim().length>0,[a]),{themeMode:y,setThemeMode:_,isDarkMode:S}=q4e(),[b,E]=m.useState(tT),w=R=>{let O;R==="en"?O=Pbe:R==="zh-cn"?O=tT:R==="zh-tw"?O=fbt:O=tT,console.log("changeLocale localeValue:",O),E(O),localStorage.setItem(fbe,O.locale)},[C,x]=m.useState(PT),T=R=>{x(R),localStorage.setItem(pbe,R)};return m.useEffect(()=>{const R=localStorage.getItem(fbe);E(R==="en"?Pbe:tT);const O=localStorage.getItem(pbe);x(O===PT?PT:O===V1?V1:wF)},[]),N.jsx(Xl.Provider,{value:{isCustomServer:n,setIsCustomServer:r,isLoggedIn:v,settings:s,isDarkMode:S,themeMode:y,setThemeMode:_,locale:b,changeLocale:w,mode:C,changeMode:T,isPingLoading:i,setPingLoading:o,userInfo:l,setUserInfo:c,agentInfo:u,handleUpdateAgentStatus:d,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:g},children:e})},Mu=()=>{const e=m.useContext(Xl);if(!e)throw new Error("useAppContext must be used within an AppProvider");return e};var RU=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},IU=typeof window>"u"||"Deno"in globalThis;function _h(){}function Cqt(e,n){return typeof e=="function"?e(n):e}function wqt(e){return typeof e=="number"&&e>=0&&e!==1/0}function xqt(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Vwe(e,n){return typeof e=="function"?e(n):e}function Tqt(e,n){return typeof e=="function"?e(n):e}function Gwe(e,n){const{type:r="all",exact:i,fetchStatus:o,predicate:a,queryKey:s,stale:l}=e;if(s){if(i){if(n.queryHash!==Kde(s,n.options))return!1}else if(!TA(n.queryKey,s))return!1}if(r!=="all"){const c=n.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&n.isStale()!==l||o&&o!==n.state.fetchStatus||a&&!a(n))}function Wwe(e,n){const{exact:r,status:i,predicate:o,mutationKey:a}=e;if(a){if(!n.options.mutationKey)return!1;if(r){if(xA(n.options.mutationKey)!==xA(a))return!1}else if(!TA(n.options.mutationKey,a))return!1}return!(i&&n.state.status!==i||o&&!o(n))}function Kde(e,n){return((n==null?void 0:n.queryKeyHashFn)||xA)(e)}function xA(e){return JSON.stringify(e,(n,r)=>Mie(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function TA(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?!Object.keys(n).some(r=>!TA(e[r],n[r])):!1}function mGe(e,n){if(e===n)return e;const r=Ywe(e)&&Ywe(n);if(r||Mie(e)&&Mie(n)){const i=r?e:Object.keys(e),o=i.length,a=r?n:Object.keys(n),s=a.length,l=r?[]:{};let c=0;for(let u=0;u<s;u++){const d=r?u:a[u];(!r&&i.includes(d)||r)&&e[d]===void 0&&n[d]===void 0?(l[d]=void 0,c++):(l[d]=mGe(e[d],n[d]),l[d]===e[d]&&e[d]!==void 0&&c++)}return o===s&&c===o?e:l}return n}function Ywe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Mie(e){if(!qwe(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!qwe(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function qwe(e){return Object.prototype.toString.call(e)==="[object Object]"}function Oqt(e){return new Promise(n=>{setTimeout(n,e)})}function Rqt(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?mGe(e,n):n}function Iqt(e,n,r=0){const i=[...e,n];return r&&i.length>r?i.slice(1):i}function Nqt(e,n,r=0){const i=[n,...e];return r&&i.length>r?i.slice(0,-1):i}var Xde=Symbol();function vGe(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===Xde?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var h1,Ib,sO,G3e,Mqt=(G3e=class extends RU{constructor(){super();Xn(this,h1);Xn(this,Ib);Xn(this,sO);xn(this,sO,n=>{if(!IU&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){He(this,Ib)||this.setEventListener(He(this,sO))}onUnsubscribe(){var n;this.hasListeners()||((n=He(this,Ib))==null||n.call(this),xn(this,Ib,void 0))}setEventListener(n){var r;xn(this,sO,n),(r=He(this,Ib))==null||r.call(this),xn(this,Ib,n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(n){He(this,h1)!==n&&(xn(this,h1,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof He(this,h1)=="boolean"?He(this,h1):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},h1=new WeakMap,Ib=new WeakMap,sO=new WeakMap,G3e),yGe=new Mqt,lO,Nb,cO,W3e,Pqt=(W3e=class extends RU{constructor(){super();Xn(this,lO,!0);Xn(this,Nb);Xn(this,cO);xn(this,cO,n=>{if(!IU&&window.addEventListener){const r=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){He(this,Nb)||this.setEventListener(He(this,cO))}onUnsubscribe(){var n;this.hasListeners()||((n=He(this,Nb))==null||n.call(this),xn(this,Nb,void 0))}setEventListener(n){var r;xn(this,cO,n),(r=He(this,Nb))==null||r.call(this),xn(this,Nb,n(this.setOnline.bind(this)))}setOnline(n){He(this,lO)!==n&&(xn(this,lO,n),this.listeners.forEach(i=>{i(n)}))}isOnline(){return He(this,lO)}},lO=new WeakMap,Nb=new WeakMap,cO=new WeakMap,W3e),oB=new Pqt;function Aqt(){let e,n;const r=new Promise((o,a)=>{e=o,n=a});r.status="pending",r.catch(()=>{});function i(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{i({status:"fulfilled",value:o}),e(o)},r.reject=o=>{i({status:"rejected",reason:o}),n(o)},r}function Dqt(e){return Math.min(1e3*2**e,3e4)}function _Ge(e){return(e??"online")==="online"?oB.isOnline():!0}var bGe=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Nq(e){return e instanceof bGe}function SGe(e){let n=!1,r=0,i=!1,o;const a=Aqt(),s=v=>{var y;i||(p(new bGe(v)),(y=e.abort)==null||y.call(e))},l=()=>{n=!0},c=()=>{n=!1},u=()=>yGe.isFocused()&&(e.networkMode==="always"||oB.isOnline())&&e.canRun(),d=()=>_Ge(e.networkMode)&&e.canRun(),f=v=>{var y;i||(i=!0,(y=e.onSuccess)==null||y.call(e,v),o==null||o(),a.resolve(v))},p=v=>{var y;i||(i=!0,(y=e.onError)==null||y.call(e,v),o==null||o(),a.reject(v))},h=()=>new Promise(v=>{var y;o=_=>{(i||u())&&v(_)},(y=e.onPause)==null||y.call(e)}).then(()=>{var v;o=void 0,i||(v=e.onContinue)==null||v.call(e)}),g=()=>{if(i)return;let v;const y=r===0?e.initialPromise:void 0;try{v=y??e.fn()}catch(_){v=Promise.reject(_)}Promise.resolve(v).then(f).catch(_=>{var C;if(i)return;const S=e.retry??(IU?0:3),b=e.retryDelay??Dqt,E=typeof b=="function"?b(r,_):b,w=S===!0||typeof S=="number"&&r<S||typeof S=="function"&&S(r,_);if(n||!w){p(_);return}r++,(C=e.onFail)==null||C.call(e,r,_),Oqt(E).then(()=>u()?void 0:h()).then(()=>{n?p(_):g()})})};return{promise:a,cancel:s,continue:()=>(o==null||o(),a),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?g():h().then(g),a)}}function kqt(){let e=[],n=0,r=l=>{l()},i=l=>{l()},o=l=>setTimeout(l,0);const a=l=>{n?e.push(l):o(()=>{r(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{i(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;n++;try{c=l()}finally{n--,n||s()}return c},batchCalls:l=>(...c)=>{a(()=>{l(...c)})},schedule:a,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{i=l},setScheduler:l=>{o=l}}}var pu=kqt(),g1,Y3e,EGe=(Y3e=class{constructor(){Xn(this,g1)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wqt(this.gcTime)&&xn(this,g1,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(IU?1/0:5*60*1e3))}clearGcTimeout(){He(this,g1)&&(clearTimeout(He(this,g1)),xn(this,g1,void 0))}},g1=new WeakMap,Y3e),uO,dO,tp,Dc,kD,m1,bh,Pv,q3e,Lqt=(q3e=class extends EGe{constructor(n){super();Xn(this,bh);Xn(this,uO);Xn(this,dO);Xn(this,tp);Xn(this,Dc);Xn(this,kD);Xn(this,m1);xn(this,m1,!1),xn(this,kD,n.defaultOptions),this.setOptions(n.options),this.observers=[],xn(this,tp,n.cache),this.queryKey=n.queryKey,this.queryHash=n.queryHash,xn(this,uO,Fqt(this.options)),this.state=n.state??He(this,uO),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=He(this,Dc))==null?void 0:n.promise}setOptions(n){this.options={...He(this,kD),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&He(this,tp).remove(this)}setData(n,r){const i=Rqt(this.state.data,n,this.options);return ir(this,bh,Pv).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(n,r){ir(this,bh,Pv).call(this,{type:"setState",state:n,setStateOptions:r})}cancel(n){var i,o;const r=(i=He(this,Dc))==null?void 0:i.promise;return(o=He(this,Dc))==null||o.cancel(n),r?r.then(_h).catch(_h):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(He(this,uO))}isActive(){return this.observers.some(n=>Tqt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xde||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!xqt(this.state.dataUpdatedAt,n)}onFocus(){var r;const n=this.observers.find(i=>i.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(r=He(this,Dc))==null||r.continue()}onOnline(){var r;const n=this.observers.find(i=>i.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(r=He(this,Dc))==null||r.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),He(this,tp).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(He(this,Dc)&&(He(this,m1)?He(this,Dc).cancel({revert:!0}):He(this,Dc).cancelRetry()),this.scheduleGc()),He(this,tp).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ir(this,bh,Pv).call(this,{type:"invalidate"})}fetch(n,r){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(He(this,Dc))return He(this,Dc).continueRetry(),He(this,Dc).promise}if(n&&this.setOptions(n),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const i=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(xn(this,m1,!0),i.signal)})},a=()=>{const f=vGe(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return o(p),xn(this,m1,!1),this.options.persister?this.options.persister(f,p,this):f(p)},s={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(s),(c=this.options.behavior)==null||c.onFetch(s,this),xn(this,dO,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&ir(this,bh,Pv).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const l=f=>{var p,h,g,v;Nq(f)&&f.silent||ir(this,bh,Pv).call(this,{type:"error",error:f}),Nq(f)||((h=(p=He(this,tp).config).onError)==null||h.call(p,f,this),(v=(g=He(this,tp).config).onSettled)==null||v.call(g,this.state.data,f,this)),this.scheduleGc()};return xn(this,Dc,SGe({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,abort:i.abort.bind(i),onSuccess:f=>{var p,h,g,v;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(y){l(y);return}(h=(p=He(this,tp).config).onSuccess)==null||h.call(p,f,this),(v=(g=He(this,tp).config).onSettled)==null||v.call(g,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,p)=>{ir(this,bh,Pv).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{ir(this,bh,Pv).call(this,{type:"pause"})},onContinue:()=>{ir(this,bh,Pv).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),He(this,Dc).start()}},uO=new WeakMap,dO=new WeakMap,tp=new WeakMap,Dc=new WeakMap,kD=new WeakMap,m1=new WeakMap,bh=new WeakSet,Pv=function(n){const r=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...$qt(i.data,this.options),fetchMeta:n.meta??null};case"success":return{...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=n.error;return Nq(o)&&o.revert&&He(this,dO)?{...He(this,dO),fetchStatus:"idle"}:{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=r(this.state),pu.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),He(this,tp).notify({query:this,type:"updated",action:n})})},q3e);function $qt(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_Ge(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Fqt(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Xg,K3e,Bqt=(K3e=class extends RU{constructor(n={}){super();Xn(this,Xg);this.config=n,xn(this,Xg,new Map)}build(n,r,i){const o=r.queryKey,a=r.queryHash??Kde(o,r);let s=this.get(a);return s||(s=new Lqt({cache:this,queryKey:o,queryHash:a,options:n.defaultQueryOptions(r),state:i,defaultOptions:n.getQueryDefaults(o)}),this.add(s)),s}add(n){He(this,Xg).has(n.queryHash)||(He(this,Xg).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=He(this,Xg).get(n.queryHash);r&&(n.destroy(),r===n&&He(this,Xg).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){pu.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return He(this,Xg).get(n)}getAll(){return[...He(this,Xg).values()]}find(n){const r={exact:!0,...n};return this.getAll().find(i=>Gwe(r,i))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(i=>Gwe(n,i)):r}notify(n){pu.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){pu.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){pu.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Xg=new WeakMap,K3e),Qg,ou,v1,Zg,cb,X3e,jqt=(X3e=class extends EGe{constructor(n){super();Xn(this,Zg);Xn(this,Qg);Xn(this,ou);Xn(this,v1);this.mutationId=n.mutationId,xn(this,ou,n.mutationCache),xn(this,Qg,[]),this.state=n.state||Uqt(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){He(this,Qg).includes(n)||(He(this,Qg).push(n),this.clearGcTimeout(),He(this,ou).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){xn(this,Qg,He(this,Qg).filter(r=>r!==n)),this.scheduleGc(),He(this,ou).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){He(this,Qg).length||(this.state.status==="pending"?this.scheduleGc():He(this,ou).remove(this))}continue(){var n;return((n=He(this,v1))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var o,a,s,l,c,u,d,f,p,h,g,v,y,_,S,b,E,w,C,x;xn(this,v1,SGe({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(T,R)=>{ir(this,Zg,cb).call(this,{type:"failed",failureCount:T,error:R})},onPause:()=>{ir(this,Zg,cb).call(this,{type:"pause"})},onContinue:()=>{ir(this,Zg,cb).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>He(this,ou).canRun(this)}));const r=this.state.status==="pending",i=!He(this,v1).canStart();try{if(!r){ir(this,Zg,cb).call(this,{type:"pending",variables:n,isPaused:i}),await((a=(o=He(this,ou).config).onMutate)==null?void 0:a.call(o,n,this));const R=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,n));R!==this.state.context&&ir(this,Zg,cb).call(this,{type:"pending",context:R,variables:n,isPaused:i})}const T=await He(this,v1).start();return await((u=(c=He(this,ou).config).onSuccess)==null?void 0:u.call(c,T,n,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,T,n,this.state.context)),await((h=(p=He(this,ou).config).onSettled)==null?void 0:h.call(p,T,null,this.state.variables,this.state.context,this)),await((v=(g=this.options).onSettled)==null?void 0:v.call(g,T,null,n,this.state.context)),ir(this,Zg,cb).call(this,{type:"success",data:T}),T}catch(T){try{throw await((_=(y=He(this,ou).config).onError)==null?void 0:_.call(y,T,n,this.state.context,this)),await((b=(S=this.options).onError)==null?void 0:b.call(S,T,n,this.state.context)),await((w=(E=He(this,ou).config).onSettled)==null?void 0:w.call(E,void 0,T,this.state.variables,this.state.context,this)),await((x=(C=this.options).onSettled)==null?void 0:x.call(C,void 0,T,n,this.state.context)),T}finally{ir(this,Zg,cb).call(this,{type:"error",error:T})}}finally{He(this,ou).runNext(this)}}},Qg=new WeakMap,ou=new WeakMap,v1=new WeakMap,Zg=new WeakSet,cb=function(n){const r=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),pu.batch(()=>{He(this,Qg).forEach(i=>{i.onMutationUpdate(n)}),He(this,ou).notify({mutation:this,type:"updated",action:n})})},X3e);function Uqt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wd,LD,Q3e,Hqt=(Q3e=class extends RU{constructor(n={}){super();Xn(this,Wd);Xn(this,LD);this.config=n,xn(this,Wd,new Map),xn(this,LD,Date.now())}build(n,r,i){const o=new jqt({mutationCache:this,mutationId:++sE(this,LD)._,options:n.defaultMutationOptions(r),state:i});return this.add(o),o}add(n){const r=a4(n),i=He(this,Wd).get(r)??[];i.push(n),He(this,Wd).set(r,i),this.notify({type:"added",mutation:n})}remove(n){var i;const r=a4(n);if(He(this,Wd).has(r)){const o=(i=He(this,Wd).get(r))==null?void 0:i.filter(a=>a!==n);o&&(o.length===0?He(this,Wd).delete(r):He(this,Wd).set(r,o))}this.notify({type:"removed",mutation:n})}canRun(n){var i;const r=(i=He(this,Wd).get(a4(n)))==null?void 0:i.find(o=>o.state.status==="pending");return!r||r===n}runNext(n){var i;const r=(i=He(this,Wd).get(a4(n)))==null?void 0:i.find(o=>o!==n&&o.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){pu.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}getAll(){return[...He(this,Wd).values()].flat()}find(n){const r={exact:!0,...n};return this.getAll().find(i=>Wwe(r,i))}findAll(n={}){return this.getAll().filter(r=>Wwe(n,r))}notify(n){pu.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return pu.batch(()=>Promise.all(n.map(r=>r.continue().catch(_h))))}},Wd=new WeakMap,LD=new WeakMap,Q3e);function a4(e){var n;return((n=e.options.scope)==null?void 0:n.id)??String(e.mutationId)}function Kwe(e){return{onFetch:(n,r)=>{var d,f,p,h,g;const i=n.options,o=(p=(f=(d=n.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,a=((h=n.state.data)==null?void 0:h.pages)||[],s=((g=n.state.data)==null?void 0:g.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let v=!1;const y=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(n.signal.aborted?v=!0:n.signal.addEventListener("abort",()=>{v=!0}),n.signal)})},_=vGe(n.options,n.fetchOptions),S=async(b,E,w)=>{if(v)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const C={queryKey:n.queryKey,pageParam:E,direction:w?"backward":"forward",meta:n.options.meta};y(C);const x=await _(C),{maxPages:T}=n.options,R=w?Nqt:Iqt;return{pages:R(b.pages,x,T),pageParams:R(b.pageParams,E,T)}};if(o&&a.length){const b=o==="backward",E=b?zqt:Xwe,w={pages:a,pageParams:s},C=E(i,w);l=await S(w,C,b)}else{const b=e??a.length;do{const E=c===0?s[0]??i.initialPageParam:Xwe(i,l);if(c>0&&E==null)break;l=await S(l,E),c++}while(c<b)}return l};n.options.persister?n.fetchFn=()=>{var v,y;return(y=(v=n.options).persister)==null?void 0:y.call(v,u,{queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r)}:n.fetchFn=u}}}function Xwe(e,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,r[i],r):void 0}function zqt(e,{pages:n,pageParams:r}){var i;return n.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,n[0],n,r[0],r):void 0}var ps,Mb,Pb,fO,pO,Ab,hO,gO,Z3e,Vqt=(Z3e=class{constructor(e={}){Xn(this,ps);Xn(this,Mb);Xn(this,Pb);Xn(this,fO);Xn(this,pO);Xn(this,Ab);Xn(this,hO);Xn(this,gO);xn(this,ps,e.queryCache||new Bqt),xn(this,Mb,e.mutationCache||new Hqt),xn(this,Pb,e.defaultOptions||{}),xn(this,fO,new Map),xn(this,pO,new Map),xn(this,Ab,0)}mount(){sE(this,Ab)._++,He(this,Ab)===1&&(xn(this,hO,yGe.subscribe(async e=>{e&&(await this.resumePausedMutations(),He(this,ps).onFocus())})),xn(this,gO,oB.subscribe(async e=>{e&&(await this.resumePausedMutations(),He(this,ps).onOnline())})))}unmount(){var e,n;sE(this,Ab)._--,He(this,Ab)===0&&((e=He(this,hO))==null||e.call(this),xn(this,hO,void 0),(n=He(this,gO))==null||n.call(this),xn(this,gO,void 0))}isFetching(e){return He(this,ps).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return He(this,Mb).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=He(this,ps).get(n.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const n=this.getQueryData(e.queryKey);if(n===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),i=He(this,ps).build(this,r);return e.revalidateIfStale&&i.isStaleByTime(Vwe(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(n)}}getQueriesData(e){return He(this,ps).findAll(e).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(e,n,r){const i=this.defaultQueryOptions({queryKey:e}),o=He(this,ps).get(i.queryHash),a=o==null?void 0:o.state.data,s=Cqt(n,a);if(s!==void 0)return He(this,ps).build(this,i).setData(s,{...r,manual:!0})}setQueriesData(e,n,r){return pu.batch(()=>He(this,ps).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=He(this,ps).get(n.queryHash))==null?void 0:r.state}removeQueries(e){const n=He(this,ps);pu.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=He(this,ps),i={type:"active",...e};return pu.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(i,n)))}cancelQueries(e={},n={}){const r={revert:!0,...n},i=pu.batch(()=>He(this,ps).findAll(e).map(o=>o.cancel(r)));return Promise.all(i).then(_h).catch(_h)}invalidateQueries(e={},n={}){return pu.batch(()=>{if(He(this,ps).findAll(e).forEach(i=>{i.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,n)})}refetchQueries(e={},n){const r={...n,cancelRefetch:(n==null?void 0:n.cancelRefetch)??!0},i=pu.batch(()=>He(this,ps).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let a=o.fetch(void 0,r);return r.throwOnError||(a=a.catch(_h)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(_h)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=He(this,ps).build(this,n);return r.isStaleByTime(Vwe(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_h).catch(_h)}fetchInfiniteQuery(e){return e.behavior=Kwe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_h).catch(_h)}ensureInfiniteQueryData(e){return e.behavior=Kwe(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return oB.isOnline()?He(this,Mb).resumePausedMutations():Promise.resolve()}getQueryCache(){return He(this,ps)}getMutationCache(){return He(this,Mb)}getDefaultOptions(){return He(this,Pb)}setDefaultOptions(e){xn(this,Pb,e)}setQueryDefaults(e,n){He(this,fO).set(xA(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...He(this,fO).values()];let r={};return n.forEach(i=>{TA(e,i.queryKey)&&(r={...r,...i.defaultOptions})}),r}setMutationDefaults(e,n){He(this,pO).set(xA(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...He(this,pO).values()];let r={};return n.forEach(i=>{TA(e,i.mutationKey)&&(r={...r,...i.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...He(this,Pb).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=Kde(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.enabled!==!0&&n.queryFn===Xde&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...He(this,Pb).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){He(this,ps).clear(),He(this,Mb).clear()}},ps=new WeakMap,Mb=new WeakMap,Pb=new WeakMap,fO=new WeakMap,pO=new WeakMap,Ab=new WeakMap,hO=new WeakMap,gO=new WeakMap,Z3e),Gqt=m.createContext(void 0),Wqt=({client:e,children:n})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(Gqt.Provider,{value:e,children:n}));/**
|
||
* @remix-run/router v1.21.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 Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ba.apply(this,arguments)}var el;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(el||(el={}));const Qwe="popstate";function Yqt(e){e===void 0&&(e={});function n(i,o){let{pathname:a,search:s,hash:l}=i.location;return jO("",{pathname:a,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(i,o){return typeof o=="string"?o:O0(o)}return CGe(n,r,null,e)}function qqt(e){e===void 0&&(e={});function n(o,a){let{pathname:s="/",search:l="",hash:c=""}=n_(o.location.hash.substr(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),jO("",{pathname:s,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(o,a){let s=o.document.querySelector("base"),l="";if(s&&s.getAttribute("href")){let c=o.location.href,u=c.indexOf("#");l=u===-1?c:c.slice(0,u)}return l+"#"+(typeof a=="string"?a:O0(a))}function i(o,a){cC(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return CGe(n,r,i,e)}function ji(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function cC(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Kqt(){return Math.random().toString(36).substr(2,8)}function Zwe(e,n){return{usr:e.state,key:e.key,idx:n}}function jO(e,n,r,i){return r===void 0&&(r=null),Ba({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?n_(n):n,{state:r,key:n&&n.key||i||Kqt()})}function O0(e){let{pathname:n="/",search:r="",hash:i=""}=e;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function n_(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substr(r),e=e.substr(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substr(i),e=e.substr(0,i)),e&&(n.pathname=e)}return n}function CGe(e,n,r,i){i===void 0&&(i={});let{window:o=document.defaultView,v5Compat:a=!1}=i,s=o.history,l=el.Pop,c=null,u=d();u==null&&(u=0,s.replaceState(Ba({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){l=el.Pop;let y=d(),_=y==null?null:y-u;u=y,c&&c({action:l,location:v.location,delta:_})}function p(y,_){l=el.Push;let S=jO(v.location,y,_);r&&r(S,y),u=d()+1;let b=Zwe(S,u),E=v.createHref(S);try{s.pushState(b,"",E)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(E)}a&&c&&c({action:l,location:v.location,delta:1})}function h(y,_){l=el.Replace;let S=jO(v.location,y,_);r&&r(S,y),u=d();let b=Zwe(S,u),E=v.createHref(S);s.replaceState(b,"",E),a&&c&&c({action:l,location:v.location,delta:0})}function g(y){let _=o.location.origin!=="null"?o.location.origin:o.location.href,S=typeof y=="string"?y:O0(y);return S=S.replace(/ $/,"%20"),ji(_,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,_)}let v={get action(){return l},get location(){return e(o,s)},listen(y){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Qwe,f),c=y,()=>{o.removeEventListener(Qwe,f),c=null}},createHref(y){return n(o,y)},createURL:g,encodeLocation(y){let _=g(y);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:p,replace:h,go(y){return s.go(y)}};return v}var Yo;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Yo||(Yo={}));const Xqt=new Set(["lazy","caseSensitive","path","id","index","children"]);function Qqt(e){return e.index===!0}function aB(e,n,r,i){return r===void 0&&(r=[]),i===void 0&&(i={}),e.map((o,a)=>{let s=[...r,String(a)],l=typeof o.id=="string"?o.id:s.join("-");if(ji(o.index!==!0||!o.children,"Cannot specify children on an index route"),ji(!i[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Qqt(o)){let c=Ba({},o,n(o),{id:l});return i[l]=c,c}else{let c=Ba({},o,n(o),{id:l,children:void 0});return i[l]=c,o.children&&(c.children=aB(o.children,n,s,i)),c}})}function HE(e,n,r){return r===void 0&&(r="/"),y6(e,n,r,!1)}function y6(e,n,r,i){let o=typeof n=="string"?n_(n):n,a=vI(o.pathname||"/",r);if(a==null)return null;let s=wGe(e);Jqt(s);let l=null;for(let c=0;l==null&&c<s.length;++c){let u=uKt(a);l=lKt(s[c],u,i)}return l}function Zqt(e,n){let{route:r,pathname:i,params:o}=e;return{id:r.id,pathname:i,params:o,data:n[r.id],handle:r.handle}}function wGe(e,n,r,i){n===void 0&&(n=[]),r===void 0&&(r=[]),i===void 0&&(i="");let o=(a,s,l)=>{let c={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};c.relativePath.startsWith("/")&&(ji(c.relativePath.startsWith(i),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(i.length));let u=fy([i,c.relativePath]),d=r.concat(c);a.children&&a.children.length>0&&(ji(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),wGe(a.children,n,d,u)),!(a.path==null&&!a.index)&&n.push({path:u,score:aKt(u,a.index),routesMeta:d})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,s);else for(let c of xGe(a.path))o(a,s,c)}),n}function xGe(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(i.length===0)return o?[a,""]:[a];let s=xGe(i.join("/")),l=[];return l.push(...s.map(c=>c===""?a:[a,c].join("/"))),o&&l.push(...s),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Jqt(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:sKt(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}const eKt=/^:[\w-]+$/,tKt=3,nKt=2,rKt=1,iKt=10,oKt=-2,Jwe=e=>e==="*";function aKt(e,n){let r=e.split("/"),i=r.length;return r.some(Jwe)&&(i+=oKt),n&&(i+=nKt),r.filter(o=>!Jwe(o)).reduce((o,a)=>o+(eKt.test(a)?tKt:a===""?rKt:iKt),i)}function sKt(e,n){return e.length===n.length&&e.slice(0,-1).every((i,o)=>i===n[o])?e[e.length-1]-n[n.length-1]:0}function lKt(e,n,r){r===void 0&&(r=!1);let{routesMeta:i}=e,o={},a="/",s=[];for(let l=0;l<i.length;++l){let c=i[l],u=l===i.length-1,d=a==="/"?n:n.slice(a.length)||"/",f=exe({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),p=c.route;if(!f&&u&&r&&!i[i.length-1].route.index&&(f=exe({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),s.push({params:o,pathname:fy([a,f.pathname]),pathnameBase:pKt(fy([a,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(a=fy([a,f.pathnameBase]))}return s}function exe(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=cKt(e.path,e.caseSensitive,e.end),o=n.match(r);if(!o)return null;let a=o[0],s=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:i.reduce((u,d,f)=>{let{paramName:p,isOptional:h}=d;if(p==="*"){let v=l[f]||"";s=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const g=l[f];return h&&!g?u[p]=void 0:u[p]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function cKt(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!0),cC(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,c)=>(i.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),i]}function uKt(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return cC(!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 ("+n+").")),e}}function vI(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function dKt(e,n){n===void 0&&(n="/");let{pathname:r,search:i="",hash:o=""}=typeof e=="string"?n_(e):e;return{pathname:r?r.startsWith("/")?r:fKt(r,n):n,search:hKt(i),hash:gKt(o)}}function fKt(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Mq(e,n,r,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function TGe(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function NU(e,n){let r=TGe(e);return n?r.map((i,o)=>o===r.length-1?i.pathname:i.pathnameBase):r.map(i=>i.pathnameBase)}function MU(e,n,r,i){i===void 0&&(i=!1);let o;typeof e=="string"?o=n_(e):(o=Ba({},e),ji(!o.pathname||!o.pathname.includes("?"),Mq("?","pathname","search",o)),ji(!o.pathname||!o.pathname.includes("#"),Mq("#","pathname","hash",o)),ji(!o.search||!o.search.includes("#"),Mq("#","search","hash",o)));let a=e===""||o.pathname==="",s=a?"/":o.pathname,l;if(s==null)l=r;else{let f=n.length-1;if(!i&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}l=f>=0?n[f]:"/"}let c=dKt(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const fy=e=>e.join("/").replace(/\/\/+/g,"/"),pKt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hKt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gKt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class sB{constructor(n,r,i,o){o===void 0&&(o=!1),this.status=n,this.statusText=r||"",this.internal=o,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}function PU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const OGe=["post","put","patch","delete"],mKt=new Set(OGe),vKt=["get",...OGe],yKt=new Set(vKt),_Kt=new Set([301,302,303,307,308]),bKt=new Set([307,308]),Pq={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},SKt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fM={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Qde=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,EKt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),RGe="remix-router-transitions";function IGe(e){const n=e.window?e.window:typeof window<"u"?window:void 0,r=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u",i=!r;ji(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let tt=e.detectErrorBoundary;o=it=>({hasErrorBoundary:tt(it)})}else o=EKt;let a={},s=aB(e.routes,o,void 0,a),l,c=e.basename||"/",u=e.dataStrategy||TKt,d=e.patchRoutesOnNavigation,f=Ba({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,h=new Set,g=null,v=null,y=null,_=e.hydrationData!=null,S=HE(s,e.history.location,c),b=null;if(S==null&&!d){let tt=Zu(404,{pathname:e.history.location.pathname}),{matches:it,route:nt}=dxe(s);S=it,b={[nt.id]:tt}}S&&!e.hydrationData&&Wt(S,s,e.history.location.pathname).active&&(S=null);let E;if(S)if(S.some(tt=>tt.route.lazy))E=!1;else if(!S.some(tt=>tt.route.loader))E=!0;else if(f.v7_partialHydration){let tt=e.hydrationData?e.hydrationData.loaderData:null,it=e.hydrationData?e.hydrationData.errors:null;if(it){let nt=S.findIndex(vt=>it[vt.route.id]!==void 0);E=S.slice(0,nt+1).every(vt=>!Aie(vt.route,tt,it))}else E=S.every(nt=>!Aie(nt.route,tt,it))}else E=e.hydrationData!=null;else if(E=!1,S=[],f.v7_partialHydration){let tt=Wt(null,s,e.history.location.pathname);tt.active&&tt.matches&&(S=tt.matches)}let w,C={historyAction:e.history.action,location:e.history.location,matches:S,initialized:E,navigation:Pq,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},x=el.Pop,T=!1,R,O=!1,M=new Map,P=null,k=!1,$=!1,U=[],z=new Set,D=new Map,B=0,Y=-1,q=new Map,K=new Set,H=new Map,G=new Map,Q=new Set,le=new Map,Z=new Map,j;function F(){if(p=e.history.listen(tt=>{let{action:it,location:nt,delta:vt}=tt;if(j){j(),j=void 0;return}cC(Z.size===0||vt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let kt=Xe({currentLocation:C.location,nextLocation:nt,historyAction:it});if(kt&&vt!=null){let Dt=new Promise(Kt=>{j=Kt});e.history.go(vt*-1),ot(kt,{state:"blocked",location:nt,proceed(){ot(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:nt}),Dt.then(()=>e.history.go(vt))},reset(){let Kt=new Map(C.blockers);Kt.set(kt,fM),de({blockers:Kt})}});return}return he(it,nt)}),r){jKt(n,M);let tt=()=>UKt(n,M);n.addEventListener("pagehide",tt),P=()=>n.removeEventListener("pagehide",tt)}return C.initialized||he(el.Pop,C.location,{initialHydration:!0}),w}function te(){p&&p(),P&&P(),h.clear(),R&&R.abort(),C.fetchers.forEach((tt,it)=>xe(it)),C.blockers.forEach((tt,it)=>Je(it))}function oe(tt){return h.add(tt),()=>h.delete(tt)}function de(tt,it){it===void 0&&(it={}),C=Ba({},C,tt);let nt=[],vt=[];f.v7_fetcherPersist&&C.fetchers.forEach((kt,Dt)=>{kt.state==="idle"&&(Q.has(Dt)?vt.push(Dt):nt.push(Dt))}),[...h].forEach(kt=>kt(C,{deletedFetchers:vt,viewTransitionOpts:it.viewTransitionOpts,flushSync:it.flushSync===!0})),f.v7_fetcherPersist&&(nt.forEach(kt=>C.fetchers.delete(kt)),vt.forEach(kt=>xe(kt)))}function pe(tt,it,nt){var vt,kt;let{flushSync:Dt}=nt===void 0?{}:nt,Kt=C.actionData!=null&&C.navigation.formMethod!=null&&wh(C.navigation.formMethod)&&C.navigation.state==="loading"&&((vt=tt.state)==null?void 0:vt._isRedirect)!==!0,Ht;it.actionData?Object.keys(it.actionData).length>0?Ht=it.actionData:Ht=null:Kt?Ht=C.actionData:Ht=null;let tn=it.loaderData?cxe(C.loaderData,it.loaderData,it.matches||[],it.errors):C.loaderData,on=C.blockers;on.size>0&&(on=new Map(on),on.forEach((En,Pt)=>on.set(Pt,fM)));let sn=T===!0||C.navigation.formMethod!=null&&wh(C.navigation.formMethod)&&((kt=tt.state)==null?void 0:kt._isRedirect)!==!0;l&&(s=l,l=void 0),k||x===el.Pop||(x===el.Push?e.history.push(tt,tt.state):x===el.Replace&&e.history.replace(tt,tt.state));let Jt;if(x===el.Pop){let En=M.get(C.location.pathname);En&&En.has(tt.pathname)?Jt={currentLocation:C.location,nextLocation:tt}:M.has(tt.pathname)&&(Jt={currentLocation:tt,nextLocation:C.location})}else if(O){let En=M.get(C.location.pathname);En?En.add(tt.pathname):(En=new Set([tt.pathname]),M.set(C.location.pathname,En)),Jt={currentLocation:C.location,nextLocation:tt}}de(Ba({},it,{actionData:Ht,loaderData:tn,historyAction:x,location:tt,initialized:!0,navigation:Pq,revalidation:"idle",restoreScrollPosition:It(tt,it.matches||C.matches),preventScrollReset:sn,blockers:on}),{viewTransitionOpts:Jt,flushSync:Dt===!0}),x=el.Pop,T=!1,O=!1,k=!1,$=!1,U=[]}async function me(tt,it){if(typeof tt=="number"){e.history.go(tt);return}let nt=Pie(C.location,C.matches,c,f.v7_prependBasename,tt,f.v7_relativeSplatPath,it==null?void 0:it.fromRouteId,it==null?void 0:it.relative),{path:vt,submission:kt,error:Dt}=txe(f.v7_normalizeFormMethod,!1,nt,it),Kt=C.location,Ht=jO(C.location,vt,it&&it.state);Ht=Ba({},Ht,e.history.encodeLocation(Ht));let tn=it&&it.replace!=null?it.replace:void 0,on=el.Push;tn===!0?on=el.Replace:tn===!1||kt!=null&&wh(kt.formMethod)&&kt.formAction===C.location.pathname+C.location.search&&(on=el.Replace);let sn=it&&"preventScrollReset"in it?it.preventScrollReset===!0:void 0,Jt=(it&&it.flushSync)===!0,En=Xe({currentLocation:Kt,nextLocation:Ht,historyAction:on});if(En){ot(En,{state:"blocked",location:Ht,proceed(){ot(En,{state:"proceeding",proceed:void 0,reset:void 0,location:Ht}),me(tt,it)},reset(){let Pt=new Map(C.blockers);Pt.set(En,fM),de({blockers:Pt})}});return}return await he(on,Ht,{submission:kt,pendingError:Dt,preventScrollReset:sn,replace:it&&it.replace,enableViewTransition:it&&it.viewTransition,flushSync:Jt})}function ve(){if(ne(),de({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){he(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}he(x||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:O===!0})}}async function he(tt,it,nt){R&&R.abort(),R=null,x=tt,k=(nt&&nt.startUninterruptedRevalidation)===!0,Ct(C.location,C.matches),T=(nt&&nt.preventScrollReset)===!0,O=(nt&&nt.enableViewTransition)===!0;let vt=l||s,kt=nt&&nt.overrideNavigation,Dt=HE(vt,it,c),Kt=(nt&&nt.flushSync)===!0,Ht=Wt(Dt,vt,it.pathname);if(Ht.active&&Ht.matches&&(Dt=Ht.matches),!Dt){let{error:Qt,notFoundMatches:ln,route:jt}=Ze(it.pathname);pe(it,{matches:ln,loaderData:{},errors:{[jt.id]:Qt}},{flushSync:Kt});return}if(C.initialized&&!$&&PKt(C.location,it)&&!(nt&&nt.submission&&wh(nt.submission.formMethod))){pe(it,{matches:Dt},{flushSync:Kt});return}R=new AbortController;let tn=Ox(e.history,it,R.signal,nt&&nt.submission),on;if(nt&&nt.pendingError)on=[zE(Dt).route.id,{type:Yo.error,error:nt.pendingError}];else if(nt&&nt.submission&&wh(nt.submission.formMethod)){let Qt=await be(tn,it,nt.submission,Dt,Ht.active,{replace:nt.replace,flushSync:Kt});if(Qt.shortCircuited)return;if(Qt.pendingActionResult){let[ln,jt]=Qt.pendingActionResult;if(Xd(jt)&&PU(jt.error)&&jt.error.status===404){R=null,pe(it,{matches:Qt.matches,loaderData:{},errors:{[ln]:jt.error}});return}}Dt=Qt.matches||Dt,on=Qt.pendingActionResult,kt=Aq(it,nt.submission),Kt=!1,Ht.active=!1,tn=Ox(e.history,tn.url,tn.signal)}let{shortCircuited:sn,matches:Jt,loaderData:En,errors:Pt}=await we(tn,it,Dt,Ht.active,kt,nt&&nt.submission,nt&&nt.fetcherSubmission,nt&&nt.replace,nt&&nt.initialHydration===!0,Kt,on);sn||(R=null,pe(it,Ba({matches:Jt||Dt},uxe(on),{loaderData:En,errors:Pt})))}async function be(tt,it,nt,vt,kt,Dt){Dt===void 0&&(Dt={}),ne();let Kt=FKt(it,nt);if(de({navigation:Kt},{flushSync:Dt.flushSync===!0}),kt){let on=await Bt(vt,it.pathname,tt.signal);if(on.type==="aborted")return{shortCircuited:!0};if(on.type==="error"){let sn=zE(on.partialMatches).route.id;return{matches:on.partialMatches,pendingActionResult:[sn,{type:Yo.error,error:on.error}]}}else if(on.matches)vt=on.matches;else{let{notFoundMatches:sn,error:Jt,route:En}=Ze(it.pathname);return{matches:sn,pendingActionResult:[En.id,{type:Yo.error,error:Jt}]}}}let Ht,tn=p2(vt,it);if(!tn.route.action&&!tn.route.lazy)Ht={type:Yo.error,error:Zu(405,{method:tt.method,pathname:it.pathname,routeId:tn.route.id})};else if(Ht=(await Ne("action",C,tt,[tn],vt,null))[tn.route.id],tt.signal.aborted)return{shortCircuited:!0};if(s1(Ht)){let on;return Dt&&Dt.replace!=null?on=Dt.replace:on=axe(Ht.response.headers.get("Location"),new URL(tt.url),c)===C.location.pathname+C.location.search,await Oe(tt,Ht,!0,{submission:nt,replace:on}),{shortCircuited:!0}}if(Ub(Ht))throw Zu(400,{type:"defer-action"});if(Xd(Ht)){let on=zE(vt,tn.route.id);return(Dt&&Dt.replace)!==!0&&(x=el.Push),{matches:vt,pendingActionResult:[on.route.id,Ht]}}return{matches:vt,pendingActionResult:[tn.route.id,Ht]}}async function we(tt,it,nt,vt,kt,Dt,Kt,Ht,tn,on,sn){let Jt=kt||Aq(it,Dt),En=Dt||Kt||pxe(Jt),Pt=!k&&(!f.v7_partialHydration||!tn);if(vt){if(Pt){let W=De(sn);de(Ba({navigation:Jt},W!==void 0?{actionData:W}:{}),{flushSync:on})}let A=await Bt(nt,it.pathname,tt.signal);if(A.type==="aborted")return{shortCircuited:!0};if(A.type==="error"){let W=zE(A.partialMatches).route.id;return{matches:A.partialMatches,loaderData:{},errors:{[W]:A.error}}}else if(A.matches)nt=A.matches;else{let{error:W,notFoundMatches:ce,route:Pe}=Ze(it.pathname);return{matches:ce,loaderData:{},errors:{[Pe.id]:W}}}}let Qt=l||s,[ln,jt]=rxe(e.history,C,nt,En,it,f.v7_partialHydration&&tn===!0,f.v7_skipActionErrorRevalidation,$,U,z,Q,H,K,Qt,c,sn);if(bt(A=>!(nt&&nt.some(W=>W.route.id===A))||ln&&ln.some(W=>W.route.id===A)),Y=++B,ln.length===0&&jt.length===0){let A=ge();return pe(it,Ba({matches:nt,loaderData:{},errors:sn&&Xd(sn[1])?{[sn[0]]:sn[1].error}:null},uxe(sn),A?{fetchers:new Map(C.fetchers)}:{}),{flushSync:on}),{shortCircuited:!0}}if(Pt){let A={};if(!vt){A.navigation=Jt;let W=De(sn);W!==void 0&&(A.actionData=W)}jt.length>0&&(A.fetchers=Ae(jt)),de(A,{flushSync:on})}jt.forEach(A=>{Me(A.key),A.controller&&D.set(A.key,A.controller)});let Lt=()=>jt.forEach(A=>Me(A.key));R&&R.signal.addEventListener("abort",Lt);let{loaderResults:en,fetcherResults:Ue}=await je(C,nt,ln,jt,tt);if(tt.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",Lt),jt.forEach(A=>D.delete(A.key));let Zt=s4(en);if(Zt)return await Oe(tt,Zt.result,!0,{replace:Ht}),{shortCircuited:!0};if(Zt=s4(Ue),Zt)return K.add(Zt.key),await Oe(tt,Zt.result,!0,{replace:Ht}),{shortCircuited:!0};let{loaderData:Et,errors:Gt}=lxe(C,nt,en,sn,jt,Ue,le);le.forEach((A,W)=>{A.subscribe(ce=>{(ce||A.done)&&le.delete(W)})}),f.v7_partialHydration&&tn&&C.errors&&(Gt=Ba({},C.errors,Gt));let zt=ge(),Vn=Ve(Y),sr=zt||Vn||jt.length>0;return Ba({matches:nt,loaderData:Et,errors:Gt},sr?{fetchers:new Map(C.fetchers)}:{})}function De(tt){if(tt&&!Xd(tt[1]))return{[tt[0]]:tt[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Ae(tt){return tt.forEach(it=>{let nt=C.fetchers.get(it.key),vt=pM(void 0,nt?nt.data:void 0);C.fetchers.set(it.key,vt)}),new Map(C.fetchers)}function Ee(tt,it,nt,vt){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Me(tt);let kt=(vt&&vt.flushSync)===!0,Dt=l||s,Kt=Pie(C.location,C.matches,c,f.v7_prependBasename,nt,f.v7_relativeSplatPath,it,vt==null?void 0:vt.relative),Ht=HE(Dt,Kt,c),tn=Wt(Ht,Dt,Kt);if(tn.active&&tn.matches&&(Ht=tn.matches),!Ht){ae(tt,it,Zu(404,{pathname:Kt}),{flushSync:kt});return}let{path:on,submission:sn,error:Jt}=txe(f.v7_normalizeFormMethod,!0,Kt,vt);if(Jt){ae(tt,it,Jt,{flushSync:kt});return}let En=p2(Ht,on),Pt=(vt&&vt.preventScrollReset)===!0;if(sn&&wh(sn.formMethod)){Re(tt,it,on,En,Ht,tn.active,kt,Pt,sn);return}H.set(tt,{routeId:it,path:on}),Te(tt,it,on,En,Ht,tn.active,kt,Pt,sn)}async function Re(tt,it,nt,vt,kt,Dt,Kt,Ht,tn){ne(),H.delete(tt);function on(qe){if(!qe.route.action&&!qe.route.lazy){let gt=Zu(405,{method:tn.formMethod,pathname:nt,routeId:it});return ae(tt,it,gt,{flushSync:Kt}),!0}return!1}if(!Dt&&on(vt))return;let sn=C.fetchers.get(tt);J(tt,BKt(tn,sn),{flushSync:Kt});let Jt=new AbortController,En=Ox(e.history,nt,Jt.signal,tn);if(Dt){let qe=await Bt(kt,nt,En.signal);if(qe.type==="aborted")return;if(qe.type==="error"){ae(tt,it,qe.error,{flushSync:Kt});return}else if(qe.matches){if(kt=qe.matches,vt=p2(kt,nt),on(vt))return}else{ae(tt,it,Zu(404,{pathname:nt}),{flushSync:Kt});return}}D.set(tt,Jt);let Pt=B,ln=(await Ne("action",C,En,[vt],kt,tt))[vt.route.id];if(En.signal.aborted){D.get(tt)===Jt&&D.delete(tt);return}if(f.v7_fetcherPersist&&Q.has(tt)){if(s1(ln)||Xd(ln)){J(tt,ub(void 0));return}}else{if(s1(ln))if(D.delete(tt),Y>Pt){J(tt,ub(void 0));return}else return K.add(tt),J(tt,pM(tn)),Oe(En,ln,!1,{fetcherSubmission:tn,preventScrollReset:Ht});if(Xd(ln)){ae(tt,it,ln.error);return}}if(Ub(ln))throw Zu(400,{type:"defer-action"});let jt=C.navigation.location||C.location,Lt=Ox(e.history,jt,Jt.signal),en=l||s,Ue=C.navigation.state!=="idle"?HE(en,C.navigation.location,c):C.matches;ji(Ue,"Didn't find any matches after fetcher action");let Zt=++B;q.set(tt,Zt);let Et=pM(tn,ln.data);C.fetchers.set(tt,Et);let[Gt,zt]=rxe(e.history,C,Ue,tn,jt,!1,f.v7_skipActionErrorRevalidation,$,U,z,Q,H,K,en,c,[vt.route.id,ln]);zt.filter(qe=>qe.key!==tt).forEach(qe=>{let gt=qe.key,Yt=C.fetchers.get(gt),Nn=pM(void 0,Yt?Yt.data:void 0);C.fetchers.set(gt,Nn),Me(gt),qe.controller&&D.set(gt,qe.controller)}),de({fetchers:new Map(C.fetchers)});let Vn=()=>zt.forEach(qe=>Me(qe.key));Jt.signal.addEventListener("abort",Vn);let{loaderResults:sr,fetcherResults:A}=await je(C,Ue,Gt,zt,Lt);if(Jt.signal.aborted)return;Jt.signal.removeEventListener("abort",Vn),q.delete(tt),D.delete(tt),zt.forEach(qe=>D.delete(qe.key));let W=s4(sr);if(W)return Oe(Lt,W.result,!1,{preventScrollReset:Ht});if(W=s4(A),W)return K.add(W.key),Oe(Lt,W.result,!1,{preventScrollReset:Ht});let{loaderData:ce,errors:Pe}=lxe(C,Ue,sr,void 0,zt,A,le);if(C.fetchers.has(tt)){let qe=ub(ln.data);C.fetchers.set(tt,qe)}Ve(Zt),C.navigation.state==="loading"&&Zt>Y?(ji(x,"Expected pending action"),R&&R.abort(),pe(C.navigation.location,{matches:Ue,loaderData:ce,errors:Pe,fetchers:new Map(C.fetchers)})):(de({errors:Pe,loaderData:cxe(C.loaderData,ce,Ue,Pe),fetchers:new Map(C.fetchers)}),$=!1)}async function Te(tt,it,nt,vt,kt,Dt,Kt,Ht,tn){let on=C.fetchers.get(tt);J(tt,pM(tn,on?on.data:void 0),{flushSync:Kt});let sn=new AbortController,Jt=Ox(e.history,nt,sn.signal);if(Dt){let ln=await Bt(kt,nt,Jt.signal);if(ln.type==="aborted")return;if(ln.type==="error"){ae(tt,it,ln.error,{flushSync:Kt});return}else if(ln.matches)kt=ln.matches,vt=p2(kt,nt);else{ae(tt,it,Zu(404,{pathname:nt}),{flushSync:Kt});return}}D.set(tt,sn);let En=B,Qt=(await Ne("loader",C,Jt,[vt],kt,tt))[vt.route.id];if(Ub(Qt)&&(Qt=await Zde(Qt,Jt.signal,!0)||Qt),D.get(tt)===sn&&D.delete(tt),!Jt.signal.aborted){if(Q.has(tt)){J(tt,ub(void 0));return}if(s1(Qt))if(Y>En){J(tt,ub(void 0));return}else{K.add(tt),await Oe(Jt,Qt,!1,{preventScrollReset:Ht});return}if(Xd(Qt)){ae(tt,it,Qt.error);return}ji(!Ub(Qt),"Unhandled fetcher deferred data"),J(tt,ub(Qt.data))}}async function Oe(tt,it,nt,vt){let{submission:kt,fetcherSubmission:Dt,preventScrollReset:Kt,replace:Ht}=vt===void 0?{}:vt;it.response.headers.has("X-Remix-Revalidate")&&($=!0);let tn=it.response.headers.get("Location");ji(tn,"Expected a Location header on the redirect Response"),tn=axe(tn,new URL(tt.url),c);let on=jO(C.location,tn,{_isRedirect:!0});if(r){let ln=!1;if(it.response.headers.has("X-Remix-Reload-Document"))ln=!0;else if(Qde.test(tn)){const jt=e.history.createURL(tn);ln=jt.origin!==n.location.origin||vI(jt.pathname,c)==null}if(ln){Ht?n.location.replace(tn):n.location.assign(tn);return}}R=null;let sn=Ht===!0||it.response.headers.has("X-Remix-Replace")?el.Replace:el.Push,{formMethod:Jt,formAction:En,formEncType:Pt}=C.navigation;!kt&&!Dt&&Jt&&En&&Pt&&(kt=pxe(C.navigation));let Qt=kt||Dt;if(bKt.has(it.response.status)&&Qt&&wh(Qt.formMethod))await he(sn,on,{submission:Ba({},Qt,{formAction:tn}),preventScrollReset:Kt||T,enableViewTransition:nt?O:void 0});else{let ln=Aq(on,kt);await he(sn,on,{overrideNavigation:ln,fetcherSubmission:Dt,preventScrollReset:Kt||T,enableViewTransition:nt?O:void 0})}}async function Ne(tt,it,nt,vt,kt,Dt){let Kt,Ht={};try{Kt=await OKt(u,tt,it,nt,vt,kt,Dt,a,o)}catch(tn){return vt.forEach(on=>{Ht[on.route.id]={type:Yo.error,error:tn}}),Ht}for(let[tn,on]of Object.entries(Kt))if(AKt(on)){let sn=on.result;Ht[tn]={type:Yo.redirect,response:NKt(sn,nt,tn,kt,c,f.v7_relativeSplatPath)}}else Ht[tn]=await IKt(on);return Ht}async function je(tt,it,nt,vt,kt){let Dt=tt.matches,Kt=Ne("loader",tt,kt,nt,it,null),Ht=Promise.all(vt.map(async sn=>{if(sn.matches&&sn.match&&sn.controller){let En=(await Ne("loader",tt,Ox(e.history,sn.path,sn.controller.signal),[sn.match],sn.matches,sn.key))[sn.match.route.id];return{[sn.key]:En}}else return Promise.resolve({[sn.key]:{type:Yo.error,error:Zu(404,{pathname:sn.path})}})})),tn=await Kt,on=(await Ht).reduce((sn,Jt)=>Object.assign(sn,Jt),{});return await Promise.all([LKt(it,tn,kt.signal,Dt,tt.loaderData),$Kt(it,on,vt)]),{loaderResults:tn,fetcherResults:on}}function ne(){$=!0,U.push(...bt()),H.forEach((tt,it)=>{D.has(it)&&z.add(it),Me(it)})}function J(tt,it,nt){nt===void 0&&(nt={}),C.fetchers.set(tt,it),de({fetchers:new Map(C.fetchers)},{flushSync:(nt&&nt.flushSync)===!0})}function ae(tt,it,nt,vt){vt===void 0&&(vt={});let kt=zE(C.matches,it);xe(tt),de({errors:{[kt.route.id]:nt},fetchers:new Map(C.fetchers)},{flushSync:(vt&&vt.flushSync)===!0})}function Se(tt){return f.v7_fetcherPersist&&(G.set(tt,(G.get(tt)||0)+1),Q.has(tt)&&Q.delete(tt)),C.fetchers.get(tt)||SKt}function xe(tt){let it=C.fetchers.get(tt);D.has(tt)&&!(it&&it.state==="loading"&&q.has(tt))&&Me(tt),H.delete(tt),q.delete(tt),K.delete(tt),Q.delete(tt),z.delete(tt),C.fetchers.delete(tt)}function ue(tt){if(f.v7_fetcherPersist){let it=(G.get(tt)||0)-1;it<=0?(G.delete(tt),Q.add(tt)):G.set(tt,it)}else xe(tt);de({fetchers:new Map(C.fetchers)})}function Me(tt){let it=D.get(tt);it&&(it.abort(),D.delete(tt))}function $e(tt){for(let it of tt){let nt=Se(it),vt=ub(nt.data);C.fetchers.set(it,vt)}}function ge(){let tt=[],it=!1;for(let nt of K){let vt=C.fetchers.get(nt);ji(vt,"Expected fetcher: "+nt),vt.state==="loading"&&(K.delete(nt),tt.push(nt),it=!0)}return $e(tt),it}function Ve(tt){let it=[];for(let[nt,vt]of q)if(vt<tt){let kt=C.fetchers.get(nt);ji(kt,"Expected fetcher: "+nt),kt.state==="loading"&&(Me(nt),q.delete(nt),it.push(nt))}return $e(it),it.length>0}function st(tt,it){let nt=C.blockers.get(tt)||fM;return Z.get(tt)!==it&&Z.set(tt,it),nt}function Je(tt){C.blockers.delete(tt),Z.delete(tt)}function ot(tt,it){let nt=C.blockers.get(tt)||fM;ji(nt.state==="unblocked"&&it.state==="blocked"||nt.state==="blocked"&&it.state==="blocked"||nt.state==="blocked"&&it.state==="proceeding"||nt.state==="blocked"&&it.state==="unblocked"||nt.state==="proceeding"&&it.state==="unblocked","Invalid blocker state transition: "+nt.state+" -> "+it.state);let vt=new Map(C.blockers);vt.set(tt,it),de({blockers:vt})}function Xe(tt){let{currentLocation:it,nextLocation:nt,historyAction:vt}=tt;if(Z.size===0)return;Z.size>1&&cC(!1,"A router only supports one blocker at a time");let kt=Array.from(Z.entries()),[Dt,Kt]=kt[kt.length-1],Ht=C.blockers.get(Dt);if(!(Ht&&Ht.state==="proceeding")&&Kt({currentLocation:it,nextLocation:nt,historyAction:vt}))return Dt}function Ze(tt){let it=Zu(404,{pathname:tt}),nt=l||s,{matches:vt,route:kt}=dxe(nt);return bt(),{notFoundMatches:vt,route:kt,error:it}}function bt(tt){let it=[];return le.forEach((nt,vt)=>{(!tt||tt(vt))&&(nt.cancel(),it.push(vt),le.delete(vt))}),it}function at(tt,it,nt){if(g=tt,y=it,v=nt||null,!_&&C.navigation===Pq){_=!0;let vt=It(C.location,C.matches);vt!=null&&de({restoreScrollPosition:vt})}return()=>{g=null,y=null,v=null}}function pt(tt,it){return v&&v(tt,it.map(vt=>Zqt(vt,C.loaderData)))||tt.key}function Ct(tt,it){if(g&&y){let nt=pt(tt,it);g[nt]=y()}}function It(tt,it){if(g){let nt=pt(tt,it),vt=g[nt];if(typeof vt=="number")return vt}return null}function Wt(tt,it,nt){if(d)if(tt){if(Object.keys(tt[0].params).length>0)return{active:!0,matches:y6(it,nt,c,!0)}}else return{active:!0,matches:y6(it,nt,c,!0)||[]};return{active:!1,matches:null}}async function Bt(tt,it,nt){if(!d)return{type:"success",matches:tt};let vt=tt;for(;;){let kt=l==null,Dt=l||s,Kt=a;try{await d({path:it,matches:vt,patch:(on,sn)=>{nt.aborted||oxe(on,sn,Dt,Kt,o)}})}catch(on){return{type:"error",error:on,partialMatches:vt}}finally{kt&&!nt.aborted&&(s=[...s])}if(nt.aborted)return{type:"aborted"};let Ht=HE(Dt,it,c);if(Ht)return{type:"success",matches:Ht};let tn=y6(Dt,it,c,!0);if(!tn||vt.length===tn.length&&vt.every((on,sn)=>on.route.id===tn[sn].route.id))return{type:"success",matches:null};vt=tn}}function Vt(tt){a={},l=aB(tt,o,void 0,a)}function rn(tt,it){let nt=l==null;oxe(tt,it,l||s,a,o),nt&&(s=[...s],de({}))}return w={get basename(){return c},get future(){return f},get state(){return C},get routes(){return s},get window(){return n},initialize:F,subscribe:oe,enableScrollRestoration:at,navigate:me,fetch:Ee,revalidate:ve,createHref:tt=>e.history.createHref(tt),encodeLocation:tt=>e.history.encodeLocation(tt),getFetcher:Se,deleteFetcher:ue,dispose:te,getBlocker:st,deleteBlocker:Je,patchRoutes:rn,_internalFetchControllers:D,_internalActiveDeferreds:le,_internalSetRoutes:Vt},w}function CKt(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Pie(e,n,r,i,o,a,s,l){let c,u;if(s){c=[];for(let f of n)if(c.push(f),f.route.id===s){u=f;break}}else c=n,u=n[n.length-1];let d=MU(o||".",NU(c,a),vI(e.pathname,r)||e.pathname,l==="path");if(o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u){let f=Jde(d.search);if(u.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let p=new URLSearchParams(d.search),h=p.getAll("index");p.delete("index"),h.filter(v=>v).forEach(v=>p.append("index",v));let g=p.toString();d.search=g?"?"+g:""}}return i&&r!=="/"&&(d.pathname=d.pathname==="/"?r:fy([r,d.pathname])),O0(d)}function txe(e,n,r,i){if(!i||!CKt(i))return{path:r};if(i.formMethod&&!kKt(i.formMethod))return{path:r,error:Zu(405,{method:i.formMethod})};let o=()=>({path:r,error:Zu(400,{type:"invalid-body"})}),a=i.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),l=PGe(r);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!wh(s))return o();let p=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((h,g)=>{let[v,y]=g;return""+h+v+"="+y+`
|
||
`},""):String(i.body);return{path:r,submission:{formMethod:s,formAction:l,formEncType:i.formEncType,formData:void 0,json:void 0,text:p}}}else if(i.formEncType==="application/json"){if(!wh(s))return o();try{let p=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:r,submission:{formMethod:s,formAction:l,formEncType:i.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}ji(typeof FormData=="function","FormData is not available in this environment");let c,u;if(i.formData)c=Die(i.formData),u=i.formData;else if(i.body instanceof FormData)c=Die(i.body),u=i.body;else if(i.body instanceof URLSearchParams)c=i.body,u=sxe(c);else if(i.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(i.body),u=sxe(c)}catch{return o()}let d={formMethod:s,formAction:l,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(wh(d.formMethod))return{path:r,submission:d};let f=n_(r);return n&&f.search&&Jde(f.search)&&c.append("index",""),f.search="?"+c,{path:O0(f),submission:d}}function nxe(e,n,r){r===void 0&&(r=!1);let i=e.findIndex(o=>o.route.id===n);return i>=0?e.slice(0,r?i+1:i):e}function rxe(e,n,r,i,o,a,s,l,c,u,d,f,p,h,g,v){let y=v?Xd(v[1])?v[1].error:v[1].data:void 0,_=e.createURL(n.location),S=e.createURL(o),b=r;a&&n.errors?b=nxe(r,Object.keys(n.errors)[0],!0):v&&Xd(v[1])&&(b=nxe(r,v[0]));let E=v?v[1].statusCode:void 0,w=s&&E&&E>=400,C=b.filter((T,R)=>{let{route:O}=T;if(O.lazy)return!0;if(O.loader==null)return!1;if(a)return Aie(O,n.loaderData,n.errors);if(wKt(n.loaderData,n.matches[R],T)||c.some(k=>k===T.route.id))return!0;let M=n.matches[R],P=T;return ixe(T,Ba({currentUrl:_,currentParams:M.params,nextUrl:S,nextParams:P.params},i,{actionResult:y,actionStatus:E,defaultShouldRevalidate:w?!1:l||_.pathname+_.search===S.pathname+S.search||_.search!==S.search||NGe(M,P)}))}),x=[];return f.forEach((T,R)=>{if(a||!r.some($=>$.route.id===T.routeId)||d.has(R))return;let O=HE(h,T.path,g);if(!O){x.push({key:R,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let M=n.fetchers.get(R),P=p2(O,T.path),k=!1;p.has(R)?k=!1:u.has(R)?(u.delete(R),k=!0):M&&M.state!=="idle"&&M.data===void 0?k=l:k=ixe(P,Ba({currentUrl:_,currentParams:n.matches[n.matches.length-1].params,nextUrl:S,nextParams:r[r.length-1].params},i,{actionResult:y,actionStatus:E,defaultShouldRevalidate:w?!1:l})),k&&x.push({key:R,routeId:T.routeId,path:T.path,matches:O,match:P,controller:new AbortController})}),[C,x]}function Aie(e,n,r){if(e.lazy)return!0;if(!e.loader)return!1;let i=n!=null&&n[e.id]!==void 0,o=r!=null&&r[e.id]!==void 0;return!i&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!i&&!o}function wKt(e,n,r){let i=!n||r.route.id!==n.route.id,o=e[r.route.id]===void 0;return i||o}function NGe(e,n){let r=e.route.path;return e.pathname!==n.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==n.params["*"]}function ixe(e,n){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(n);if(typeof r=="boolean")return r}return n.defaultShouldRevalidate}function oxe(e,n,r,i,o){var a;let s;if(e){let u=i[e];ji(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),s=u.children}else s=r;let l=n.filter(u=>!s.some(d=>MGe(u,d))),c=aB(l,o,[e||"_","patch",String(((a=s)==null?void 0:a.length)||"0")],i);s.push(...c)}function MGe(e,n){return"id"in e&&"id"in n&&e.id===n.id?!0:e.index===n.index&&e.path===n.path&&e.caseSensitive===n.caseSensitive?(!e.children||e.children.length===0)&&(!n.children||n.children.length===0)?!0:e.children.every((r,i)=>{var o;return(o=n.children)==null?void 0:o.some(a=>MGe(r,a))}):!1}async function xKt(e,n,r){if(!e.lazy)return;let i=await e.lazy();if(!e.lazy)return;let o=r[e.id];ji(o,"No route found in manifest");let a={};for(let s in i){let c=o[s]!==void 0&&s!=="hasErrorBoundary";cC(!c,'Route "'+o.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!c&&!Xqt.has(s)&&(a[s]=i[s])}Object.assign(o,a),Object.assign(o,Ba({},n(o),{lazy:void 0}))}async function TKt(e){let{matches:n}=e,r=n.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,a,s)=>Object.assign(o,{[r[s].route.id]:a}),{})}async function OKt(e,n,r,i,o,a,s,l,c,u){let d=a.map(h=>h.route.lazy?xKt(h.route,c,l):void 0),f=a.map((h,g)=>{let v=d[g],y=o.some(S=>S.route.id===h.route.id);return Ba({},h,{shouldLoad:y,resolve:async S=>(S&&i.method==="GET"&&(h.route.lazy||h.route.loader)&&(y=!0),y?RKt(n,i,h,v,S,u):Promise.resolve({type:Yo.data,result:void 0}))})}),p=await e({matches:f,request:i,params:a[0].params,fetcherKey:s,context:u});try{await Promise.all(d)}catch{}return p}async function RKt(e,n,r,i,o,a){let s,l,c=u=>{let d,f=new Promise((g,v)=>d=v);l=()=>d(),n.signal.addEventListener("abort",l);let p=g=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:n,params:r.params,context:a},...g!==void 0?[g]:[]),h=(async()=>{try{return{type:"data",result:await(o?o(v=>p(v)):p())}}catch(g){return{type:"error",result:g}}})();return Promise.race([h,f])};try{let u=r.route[e];if(i)if(u){let d,[f]=await Promise.all([c(u).catch(p=>{d=p}),i]);if(d!==void 0)throw d;s=f}else if(await i,u=r.route[e],u)s=await c(u);else if(e==="action"){let d=new URL(n.url),f=d.pathname+d.search;throw Zu(405,{method:n.method,pathname:f,routeId:r.route.id})}else return{type:Yo.data,result:void 0};else if(u)s=await c(u);else{let d=new URL(n.url),f=d.pathname+d.search;throw Zu(404,{pathname:f})}ji(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:Yo.error,result:u}}finally{l&&n.signal.removeEventListener("abort",l)}return s}async function IKt(e){let{result:n,type:r}=e;if(AGe(n)){let u;try{let d=n.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?n.body==null?u=null:u=await n.json():u=await n.text()}catch(d){return{type:Yo.error,error:d}}return r===Yo.error?{type:Yo.error,error:new sB(n.status,n.statusText,u),statusCode:n.status,headers:n.headers}:{type:Yo.data,data:u,statusCode:n.status,headers:n.headers}}if(r===Yo.error){if(fxe(n)){var i;if(n.data instanceof Error){var o;return{type:Yo.error,error:n.data,statusCode:(o=n.init)==null?void 0:o.status}}n=new sB(((i=n.init)==null?void 0:i.status)||500,void 0,n.data)}return{type:Yo.error,error:n,statusCode:PU(n)?n.status:void 0}}if(DKt(n)){var a,s;return{type:Yo.deferred,deferredData:n,statusCode:(a=n.init)==null?void 0:a.status,headers:((s=n.init)==null?void 0:s.headers)&&new Headers(n.init.headers)}}if(fxe(n)){var l,c;return{type:Yo.data,data:n.data,statusCode:(l=n.init)==null?void 0:l.status,headers:(c=n.init)!=null&&c.headers?new Headers(n.init.headers):void 0}}return{type:Yo.data,data:n}}function NKt(e,n,r,i,o,a){let s=e.headers.get("Location");if(ji(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Qde.test(s)){let l=i.slice(0,i.findIndex(c=>c.route.id===r)+1);s=Pie(new URL(n.url),l,o,!0,s,a),e.headers.set("Location",s)}return e}function axe(e,n,r){if(Qde.test(e)){let i=e,o=i.startsWith("//")?new URL(n.protocol+i):new URL(i),a=vI(o.pathname,r)!=null;if(o.origin===n.origin&&a)return o.pathname+o.search+o.hash}return e}function Ox(e,n,r,i){let o=e.createURL(PGe(n)).toString(),a={signal:r};if(i&&wh(i.formMethod)){let{formMethod:s,formEncType:l}=i;a.method=s.toUpperCase(),l==="application/json"?(a.headers=new Headers({"Content-Type":l}),a.body=JSON.stringify(i.json)):l==="text/plain"?a.body=i.text:l==="application/x-www-form-urlencoded"&&i.formData?a.body=Die(i.formData):a.body=i.formData}return new Request(o,a)}function Die(e){let n=new URLSearchParams;for(let[r,i]of e.entries())n.append(r,typeof i=="string"?i:i.name);return n}function sxe(e){let n=new FormData;for(let[r,i]of e.entries())n.append(r,i);return n}function MKt(e,n,r,i,o){let a={},s=null,l,c=!1,u={},d=r&&Xd(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in n))return;let p=f.route.id,h=n[p];if(ji(!s1(h),"Cannot handle redirect results in processLoaderData"),Xd(h)){let g=h.error;d!==void 0&&(g=d,d=void 0),s=s||{};{let v=zE(e,p);s[v.route.id]==null&&(s[v.route.id]=g)}a[p]=void 0,c||(c=!0,l=PU(h.error)?h.error.status:500),h.headers&&(u[p]=h.headers)}else Ub(h)?(i.set(p,h.deferredData),a[p]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!c&&(l=h.statusCode),h.headers&&(u[p]=h.headers)):(a[p]=h.data,h.statusCode&&h.statusCode!==200&&!c&&(l=h.statusCode),h.headers&&(u[p]=h.headers))}),d!==void 0&&r&&(s={[r[0]]:d},a[r[0]]=void 0),{loaderData:a,errors:s,statusCode:l||200,loaderHeaders:u}}function lxe(e,n,r,i,o,a,s){let{loaderData:l,errors:c}=MKt(n,r,i,s);return o.forEach(u=>{let{key:d,match:f,controller:p}=u,h=a[d];if(ji(h,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(Xd(h)){let g=zE(e.matches,f==null?void 0:f.route.id);c&&c[g.route.id]||(c=Ba({},c,{[g.route.id]:h.error})),e.fetchers.delete(d)}else if(s1(h))ji(!1,"Unhandled fetcher revalidation redirect");else if(Ub(h))ji(!1,"Unhandled fetcher deferred data");else{let g=ub(h.data);e.fetchers.set(d,g)}}),{loaderData:l,errors:c}}function cxe(e,n,r,i){let o=Ba({},n);for(let a of r){let s=a.route.id;if(n.hasOwnProperty(s)?n[s]!==void 0&&(o[s]=n[s]):e[s]!==void 0&&a.route.loader&&(o[s]=e[s]),i&&i.hasOwnProperty(s))break}return o}function uxe(e){return e?Xd(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function zE(e,n){return(n?e.slice(0,e.findIndex(i=>i.route.id===n)+1):[...e]).reverse().find(i=>i.route.hasErrorBoundary===!0)||e[0]}function dxe(e){let n=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function Zu(e,n){let{pathname:r,routeId:i,method:o,type:a,message:s}=n===void 0?{}:n,l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&r&&i?c="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+i+'", ')+"so there is no way to handle the request.":a==="defer-action"?c="defer() is not supported in actions":a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c='Route "'+i+'" does not match URL "'+r+'"'):e===404?(l="Not Found",c='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&i?c="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+i+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new sB(e||500,l,new Error(c),!0)}function s4(e){let n=Object.entries(e);for(let r=n.length-1;r>=0;r--){let[i,o]=n[r];if(s1(o))return{key:i,result:o}}}function PGe(e){let n=typeof e=="string"?n_(e):e;return O0(Ba({},n,{hash:""}))}function PKt(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function AKt(e){return AGe(e.result)&&_Kt.has(e.result.status)}function Ub(e){return e.type===Yo.deferred}function Xd(e){return e.type===Yo.error}function s1(e){return(e&&e.type)===Yo.redirect}function fxe(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function DKt(e){let n=e;return n&&typeof n=="object"&&typeof n.data=="object"&&typeof n.subscribe=="function"&&typeof n.cancel=="function"&&typeof n.resolveData=="function"}function AGe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function kKt(e){return yKt.has(e.toLowerCase())}function wh(e){return mKt.has(e.toLowerCase())}async function LKt(e,n,r,i,o){let a=Object.entries(n);for(let s=0;s<a.length;s++){let[l,c]=a[s],u=e.find(p=>(p==null?void 0:p.route.id)===l);if(!u)continue;let d=i.find(p=>p.route.id===u.route.id),f=d!=null&&!NGe(d,u)&&(o&&o[u.route.id])!==void 0;Ub(c)&&f&&await Zde(c,r,!1).then(p=>{p&&(n[l]=p)})}}async function $Kt(e,n,r){for(let i=0;i<r.length;i++){let{key:o,routeId:a,controller:s}=r[i],l=n[o];e.find(u=>(u==null?void 0:u.route.id)===a)&&Ub(l)&&(ji(s,"Expected an AbortController for revalidating fetcher deferred result"),await Zde(l,s.signal,!0).then(u=>{u&&(n[o]=u)}))}}async function Zde(e,n,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(n)){if(r)try{return{type:Yo.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Yo.error,error:o}}return{type:Yo.data,data:e.deferredData.data}}}function Jde(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function p2(e,n){let r=typeof n=="string"?n_(n).search:n.search;if(e[e.length-1].route.index&&Jde(r||""))return e[e.length-1];let i=TGe(e);return i[i.length-1]}function pxe(e){let{formMethod:n,formAction:r,formEncType:i,text:o,formData:a,json:s}=e;if(!(!n||!r||!i)){if(o!=null)return{formMethod:n,formAction:r,formEncType:i,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:n,formAction:r,formEncType:i,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:n,formAction:r,formEncType:i,formData:void 0,json:s,text:void 0}}}function Aq(e,n){return n?{state:"loading",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function FKt(e,n){return{state:"submitting",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function pM(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function BKt(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function ub(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function jKt(e,n){try{let r=e.sessionStorage.getItem(RGe);if(r){let i=JSON.parse(r);for(let[o,a]of Object.entries(i||{}))a&&Array.isArray(a)&&n.set(o,new Set(a||[]))}}catch{}}function UKt(e,n){if(n.size>0){let r={};for(let[i,o]of n)r[i]=[...o];try{e.sessionStorage.setItem(RGe,JSON.stringify(r))}catch(i){cC(!1,"Failed to save applied view transitions in sessionStorage ("+i+").")}}}/**
|
||
* React Router v6.28.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 lB(){return lB=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},lB.apply(this,arguments)}const AU=m.createContext(null),DGe=m.createContext(null),oS=m.createContext(null),efe=m.createContext(null),nv=m.createContext({outlet:null,matches:[],isDataRoute:!1}),kGe=m.createContext(null);function HKt(e,n){let{relative:r}=n===void 0?{}:n;yI()||ji(!1);let{basename:i,navigator:o}=m.useContext(oS),{hash:a,pathname:s,search:l}=$Ge(e,{relative:r}),c=s;return i!=="/"&&(c=s==="/"?i:fy([i,s])),o.createHref({pathname:c,search:l,hash:a})}function yI(){return m.useContext(efe)!=null}function _I(){return yI()||ji(!1),m.useContext(efe).location}function LGe(e){m.useContext(oS).static||m.useLayoutEffect(e)}function Af(){let{isDataRoute:e}=m.useContext(nv);return e?rXt():zKt()}function zKt(){yI()||ji(!1);let e=m.useContext(AU),{basename:n,future:r,navigator:i}=m.useContext(oS),{matches:o}=m.useContext(nv),{pathname:a}=_I(),s=JSON.stringify(NU(o,r.v7_relativeSplatPath)),l=m.useRef(!1);return LGe(()=>{l.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){i.go(u);return}let f=MU(u,JSON.parse(s),a,d.relative==="path");e==null&&n!=="/"&&(f.pathname=f.pathname==="/"?n:fy([n,f.pathname])),(d.replace?i.replace:i.push)(f,d.state,d)},[n,i,s,a,e])}const VKt=m.createContext(null);function GKt(e){let n=m.useContext(nv).outlet;return n&&m.createElement(VKt.Provider,{value:e},n)}function WKt(){let{matches:e}=m.useContext(nv),n=e[e.length-1];return n?n.params:{}}function $Ge(e,n){let{relative:r}=n===void 0?{}:n,{future:i}=m.useContext(oS),{matches:o}=m.useContext(nv),{pathname:a}=_I(),s=JSON.stringify(NU(o,i.v7_relativeSplatPath));return m.useMemo(()=>MU(e,JSON.parse(s),a,r==="path"),[e,s,a,r])}function YKt(e,n,r,i){yI()||ji(!1);let{navigator:o}=m.useContext(oS),{matches:a}=m.useContext(nv),s=a[a.length-1],l=s?s.params:{};s&&s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let u=_I(),d;d=u;let f=d.pathname||"/",p=f;if(c!=="/"){let v=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let h=HE(e,{pathname:p});return ZKt(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:fy([c,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:fy([c,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,i)}function qKt(){let e=nXt(),n=PU(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},n),r?m.createElement("pre",{style:o},r):null,null)}const KKt=m.createElement(qKt,null);class XKt extends m.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){console.error("React Router caught the following error during render",n,r)}render(){return this.state.error!==void 0?m.createElement(nv.Provider,{value:this.props.routeContext},m.createElement(kGe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function QKt(e){let{routeContext:n,match:r,children:i}=e,o=m.useContext(AU);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),m.createElement(nv.Provider,{value:n},i)}function ZKt(e,n,r,i){var o;if(n===void 0&&(n=[]),r===void 0&&(r=null),i===void 0&&(i=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=i)!=null&&a.v7_partialHydration&&n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let d=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||ji(!1),s=s.slice(0,Math.min(s.length,d+1))}let c=!1,u=-1;if(r&&i&&i.v7_partialHydration)for(let d=0;d<s.length;d++){let f=s[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:p,errors:h}=r,g=f.route.loader&&p[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||g){c=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,f,p)=>{let h,g=!1,v=null,y=null;r&&(h=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||KKt,c&&(u<0&&p===0?(g=!0,y=null):u===p&&(g=!0,y=f.route.hydrateFallbackElement||null)));let _=n.concat(s.slice(0,p+1)),S=()=>{let b;return h?b=v:g?b=y:f.route.Component?b=m.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,m.createElement(QKt,{match:f,routeContext:{outlet:d,matches:_,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement(XKt,{location:r.location,revalidation:r.revalidation,component:v,error:h,children:S(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):S()},null)}var FGe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(FGe||{}),cB=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}(cB||{});function JKt(e){let n=m.useContext(AU);return n||ji(!1),n}function eXt(e){let n=m.useContext(DGe);return n||ji(!1),n}function tXt(e){let n=m.useContext(nv);return n||ji(!1),n}function BGe(e){let n=tXt(),r=n.matches[n.matches.length-1];return r.route.id||ji(!1),r.route.id}function nXt(){var e;let n=m.useContext(kGe),r=eXt(cB.UseRouteError),i=BGe(cB.UseRouteError);return n!==void 0?n:(e=r.errors)==null?void 0:e[i]}function rXt(){let{router:e}=JKt(FGe.UseNavigateStable),n=BGe(cB.UseNavigateStable),r=m.useRef(!1);return LGe(()=>{r.current=!0}),m.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,lB({fromRouteId:n},a)))},[e,n])}const hxe={};function iXt(e,n){hxe[n]||(hxe[n]=!0,console.warn(n))}const Rx=(e,n,r)=>iXt(e,"⚠️ React Router Future Flag Warning: "+n+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));function oXt(e,n){e!=null&&e.v7_startTransition||Rx("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!n||!n.v7_relativeSplatPath)&&Rx("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),n&&(n.v7_fetcherPersist||Rx("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),n.v7_normalizeFormMethod||Rx("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),n.v7_partialHydration||Rx("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),n.v7_skipActionErrorRevalidation||Rx("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function aXt(e){let{to:n,replace:r,state:i,relative:o}=e;yI()||ji(!1);let{future:a,static:s}=m.useContext(oS),{matches:l}=m.useContext(nv),{pathname:c}=_I(),u=Af(),d=MU(n,NU(l,a.v7_relativeSplatPath),c,o==="path"),f=JSON.stringify(d);return m.useEffect(()=>u(JSON.parse(f),{replace:r,state:i,relative:o}),[u,f,o,r,i]),null}function DU(e){return GKt(e.context)}function sXt(e){let{basename:n="/",children:r=null,location:i,navigationType:o=el.Pop,navigator:a,static:s=!1,future:l}=e;yI()&&ji(!1);let c=n.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:c,navigator:a,static:s,future:lB({v7_relativeSplatPath:!1},l)}),[c,l,a,s]);typeof i=="string"&&(i=n_(i));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:g="default"}=i,v=m.useMemo(()=>{let y=vI(d,c);return y==null?null:{location:{pathname:y,search:f,hash:p,state:h,key:g},navigationType:o}},[c,d,f,p,h,g,o]);return v==null?null:m.createElement(oS.Provider,{value:u},m.createElement(efe.Provider,{children:r,value:v}))}new Promise(()=>{});function jGe(e){let n={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(n,{element:m.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(n,{hydrateFallbackElement:m.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(n,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),n}/**
|
||
* React Router DOM v6.28.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 UO(){return UO=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},UO.apply(this,arguments)}function lXt(e,n){if(e==null)return{};var r={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(n.indexOf(o)>=0)&&(r[o]=e[o]);return r}function cXt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uXt(e,n){return e.button===0&&(!n||n==="_self")&&!cXt(e)}const dXt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],fXt="6";try{window.__reactRouterVersion=fXt}catch{}function pXt(e,n){return IGe({basename:n==null?void 0:n.basename,future:UO({},n==null?void 0:n.future,{v7_prependBasename:!0}),history:Yqt({window:n==null?void 0:n.window}),hydrationData:(n==null?void 0:n.hydrationData)||UGe(),routes:e,mapRouteProperties:jGe,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window}).initialize()}function hXt(e,n){return IGe({basename:n==null?void 0:n.basename,future:UO({},n==null?void 0:n.future,{v7_prependBasename:!0}),history:qqt({window:n==null?void 0:n.window}),hydrationData:(n==null?void 0:n.hydrationData)||UGe(),routes:e,mapRouteProperties:jGe,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window}).initialize()}function UGe(){var e;let n=(e=window)==null?void 0:e.__staticRouterHydrationData;return n&&n.errors&&(n=UO({},n,{errors:gXt(n.errors)})),n}function gXt(e){if(!e)return null;let n=Object.entries(e),r={};for(let[i,o]of n)if(o&&o.__type==="RouteErrorResponse")r[i]=new sB(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let s=new a(o.message);s.stack="",r[i]=s}catch{}}if(r[i]==null){let a=new Error(o.message);a.stack="",r[i]=a}}else r[i]=o;return r}const mXt=m.createContext({isTransitioning:!1}),vXt=m.createContext(new Map),yXt="startTransition",gxe=VD[yXt],_Xt="flushSync",mxe=cje[_Xt];function bXt(e){gxe?gxe(e):e()}function hM(e){mxe?mxe(e):e()}class SXt{constructor(){this.status="pending",this.promise=new Promise((n,r)=>{this.resolve=i=>{this.status==="pending"&&(this.status="resolved",n(i))},this.reject=i=>{this.status==="pending"&&(this.status="rejected",r(i))}})}}function EXt(e){let{fallbackElement:n,router:r,future:i}=e,[o,a]=m.useState(r.state),[s,l]=m.useState(),[c,u]=m.useState({isTransitioning:!1}),[d,f]=m.useState(),[p,h]=m.useState(),[g,v]=m.useState(),y=m.useRef(new Map),{v7_startTransition:_}=i||{},S=m.useCallback(T=>{_?bXt(T):T()},[_]),b=m.useCallback((T,R)=>{let{deletedFetchers:O,flushSync:M,viewTransitionOpts:P}=R;O.forEach($=>y.current.delete($)),T.fetchers.forEach(($,U)=>{$.data!==void 0&&y.current.set(U,$.data)});let k=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!P||k){M?hM(()=>a(T)):S(()=>a(T));return}if(M){hM(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let $=r.window.document.startViewTransition(()=>{hM(()=>a(T))});$.finished.finally(()=>{hM(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})})}),hM(()=>h($));return}p?(d&&d.resolve(),p.skipTransition(),v({state:T,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(l(T),u({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[r.window,p,d,y,S]);m.useLayoutEffect(()=>r.subscribe(b),[r,b]),m.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new SXt)},[c]),m.useEffect(()=>{if(d&&s&&r.window){let T=s,R=d.promise,O=r.window.document.startViewTransition(async()=>{S(()=>a(T)),await R});O.finished.finally(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})}),h(O)}},[S,s,d,r.window]),m.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,p,o.location,s]),m.useEffect(()=>{!c.isTransitioning&&g&&(l(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[c.isTransitioning,g]),m.useEffect(()=>{},[]);let E=m.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:T=>r.navigate(T),push:(T,R,O)=>r.navigate(T,{state:R,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(T,R,O)=>r.navigate(T,{replace:!0,state:R,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[r]),w=r.basename||"/",C=m.useMemo(()=>({router:r,navigator:E,static:!1,basename:w}),[r,E,w]),x=m.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return m.useEffect(()=>oXt(i,r.future),[i,r.future]),m.createElement(m.Fragment,null,m.createElement(AU.Provider,{value:C},m.createElement(DGe.Provider,{value:o},m.createElement(vXt.Provider,{value:y.current},m.createElement(mXt.Provider,{value:c},m.createElement(sXt,{basename:w,location:o.location,navigationType:o.historyAction,navigator:E,future:x},o.initialized||r.future.v7_partialHydration?m.createElement(CXt,{routes:r.routes,future:r.future,state:o}):n))))),null)}const CXt=m.memo(wXt);function wXt(e){let{routes:n,future:r,state:i}=e;return YKt(n,void 0,i,r)}const xXt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",TXt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,OXt=m.forwardRef(function(n,r){let{onClick:i,relative:o,reloadDocument:a,replace:s,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=n,p=lXt(n,dXt),{basename:h}=m.useContext(oS),g,v=!1;if(typeof u=="string"&&TXt.test(u)&&(g=u,xXt))try{let b=new URL(window.location.href),E=u.startsWith("//")?new URL(b.protocol+u):new URL(u),w=vI(E.pathname,h);E.origin===b.origin&&w!=null?u=w+E.search+E.hash:v=!0}catch{}let y=HKt(u,{relative:o}),_=RXt(u,{replace:s,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:f});function S(b){i&&i(b),b.defaultPrevented||_(b)}return m.createElement("a",UO({},p,{href:g||y,onClick:v||a?i:S,ref:r,target:c}))});var vxe;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vxe||(vxe={}));var yxe;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yxe||(yxe={}));function RXt(e,n){let{target:r,replace:i,state:o,preventScrollReset:a,relative:s,viewTransition:l}=n===void 0?{}:n,c=Af(),u=_I(),d=$Ge(e,{relative:s});return m.useCallback(f=>{if(uXt(f,r)){f.preventDefault();let p=i!==void 0?i:O0(u)===O0(d);c(e,{replace:p,state:o,preventScrollReset:a,relative:s,viewTransition:l})}},[u,c,d,i,o,r,e,a,s,l])}var IXt=ee(ee({},Jje),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const HGe={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},kie={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},IXt),timePickerLocale:Object.assign({},HGe)};kie.lang.ok="确定";const jd="${label}不是一个有效的${type}",NXt={locale:"zh-cn",Pagination:lHt,DatePicker:kie,TimePicker:HGe,Calendar:kie,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:jd,method:jd,array:jd,object:jd,number:jd,date:jd,boolean:jd,integer:jd,float:jd,regexp:jd,email:jd,url:jd,hex:jd},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}},Hb=()=>{},ef=Hb(),_6=Object,yo=e=>e===ef,um=e=>typeof e=="function",Ay=(e,n)=>({...e,...n}),MXt=e=>um(e.then),l4=new WeakMap;let PXt=0;const OA=e=>{const n=typeof e,r=e&&e.constructor,i=r==Date;let o,a;if(_6(e)===e&&!i&&r!=RegExp){if(o=l4.get(e),o)return o;if(o=++PXt+"~",l4.set(e,o),r==Array){for(o="@",a=0;a<e.length;a++)o+=OA(e[a])+",";l4.set(e,o)}if(r==_6){o="#";const s=_6.keys(e).sort();for(;!yo(a=s.pop());)yo(e[a])||(o+=a+":"+OA(e[a])+",");l4.set(e,o)}}else o=i?e.toJSON():n=="symbol"?e.toString():n=="string"?JSON.stringify(e):""+e;return o},Gv=new WeakMap,Dq={},c4={},tfe="undefined",kU=typeof window!=tfe,Lie=typeof document!=tfe,AXt=()=>kU&&typeof window.requestAnimationFrame!=tfe,zGe=(e,n)=>{const r=Gv.get(e);return[()=>!yo(n)&&e.get(n)||Dq,i=>{if(!yo(n)){const o=e.get(n);n in c4||(c4[n]=o),r[5](n,Ay(o,i),o||Dq)}},r[6],()=>!yo(n)&&n in c4?c4[n]:!yo(n)&&e.get(n)||Dq]};let $ie=!0;const DXt=()=>$ie,[Fie,Bie]=kU&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Hb,Hb],kXt=()=>{const e=Lie&&document.visibilityState;return yo(e)||e!=="hidden"},LXt=e=>(Lie&&document.addEventListener("visibilitychange",e),Fie("focus",e),()=>{Lie&&document.removeEventListener("visibilitychange",e),Bie("focus",e)}),$Xt=e=>{const n=()=>{$ie=!0,e()},r=()=>{$ie=!1};return Fie("online",n),Fie("offline",r),()=>{Bie("online",n),Bie("offline",r)}},FXt={isOnline:DXt,isVisible:kXt},BXt={initFocus:LXt,initReconnect:$Xt},_xe=!V.useId,RA=!kU||"Deno"in window,jXt=e=>AXt()?window.requestAnimationFrame(e):setTimeout(e,1),b6=RA?m.useEffect:m.useLayoutEffect,kq=typeof navigator<"u"&&navigator.connection,bxe=!RA&&kq&&(["slow-2g","2g"].includes(kq.effectiveType)||kq.saveData),nfe=e=>{if(um(e))try{e=e()}catch{e=""}const n=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?OA(e):"",[e,n]};let UXt=0;const jie=()=>++UXt,VGe=0,GGe=1,WGe=2,HXt=3;var gM={__proto__:null,ERROR_REVALIDATE_EVENT:HXt,FOCUS_EVENT:VGe,MUTATE_EVENT:WGe,RECONNECT_EVENT:GGe};async function YGe(...e){const[n,r,i,o]=e,a=Ay({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=a.populateCache;const l=a.rollbackOnError;let c=a.optimisticData;const u=a.revalidate!==!1,d=h=>typeof l=="function"?l(h):l!==!1,f=a.throwOnError;if(um(r)){const h=r,g=[],v=n.keys();for(const y of v)!/^\$(inf|sub)\$/.test(y)&&h(n.get(y)._k)&&g.push(y);return Promise.all(g.map(p))}return p(r);async function p(h){const[g]=nfe(h);if(!g)return;const[v,y]=zGe(n,g),[_,S,b,E]=Gv.get(n),w=_[g],C=()=>u&&(delete b[g],delete E[g],w&&w[0])?w[0](WGe).then(()=>v().data):v().data;if(e.length<3)return C();let x=i,T;const R=jie();S[g]=[R,0];const O=!yo(c),M=v(),P=M.data,k=M._c,$=yo(k)?P:k;if(O&&(c=um(c)?c($,P):c,y({data:c,_c:$})),um(x))try{x=x($)}catch(z){T=z}if(x&&MXt(x))if(x=await x.catch(z=>{T=z}),R!==S[g][0]){if(T)throw T;return x}else T&&O&&d(T)&&(s=!0,x=$,y({data:x,_c:ef}));s&&(T||(um(s)&&(x=s(x,$)),y({data:x,error:ef,_c:ef}))),S[g][1]=jie();const U=await C();if(y({_c:ef}),T){if(f)throw T;return}return s?U:x}}const Sxe=(e,n)=>{for(const r in e)e[r][0]&&e[r][0](n)},qGe=(e,n)=>{if(!Gv.has(e)){const r=Ay(BXt,n),i={},o=YGe.bind(ef,e);let a=Hb;const s={},l=(d,f)=>{const p=s[d]||[];return s[d]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},c=(d,f,p)=>{e.set(d,f);const h=s[d];if(h)for(const g of h)g(f,p)},u=()=>{if(!Gv.has(e)&&(Gv.set(e,[i,{},{},{},o,c,l]),!RA)){const d=r.initFocus(setTimeout.bind(ef,Sxe.bind(ef,i,VGe))),f=r.initReconnect(setTimeout.bind(ef,Sxe.bind(ef,i,GGe)));a=()=>{d&&d(),f&&f(),Gv.delete(e)}}};return u(),[e,o,u,a]}return[e,Gv.get(e)[4]]},zXt=(e,n,r,i,o)=>{const a=r.errorRetryCount,s=o.retryCount,l=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;!yo(a)&&s>a||setTimeout(i,l,o)},VXt=(e,n)=>OA(e)==OA(n),[rfe,GXt]=qGe(new Map),KGe=Ay({onLoadingSlow:Hb,onSuccess:Hb,onError:Hb,onErrorRetry:zXt,onDiscarded:Hb,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:bxe?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:bxe?5e3:3e3,compare:VXt,isPaused:()=>!1,cache:rfe,mutate:GXt,fallback:{}},FXt),XGe=(e,n)=>{const r=Ay(e,n);if(n){const{use:i,fallback:o}=e,{use:a,fallback:s}=n;i&&a&&(r.use=i.concat(a)),o&&s&&(r.fallback=Ay(o,s))}return r},Uie=m.createContext({}),WXt=e=>{const{value:n}=e,r=m.useContext(Uie),i=um(n),o=m.useMemo(()=>i?n(r):n,[i,r,n]),a=m.useMemo(()=>i?o:XGe(r,o),[i,r,o]),s=o&&o.provider,l=m.useRef(ef);s&&!l.current&&(l.current=qGe(s(a.cache||rfe),o));const c=l.current;return c&&(a.cache=c[0],a.mutate=c[1]),b6(()=>{if(c)return c[2]&&c[2](),c[3]},[]),m.createElement(Uie.Provider,Ay(e,{value:a}))},QGe=kU&&window.__SWR_DEVTOOLS_USE__,YXt=QGe?window.__SWR_DEVTOOLS_USE__:[],qXt=()=>{QGe&&(window.__SWR_DEVTOOLS_REACT__=V)},KXt=e=>um(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],ife=()=>Ay(KGe,m.useContext(Uie)),XXt=e=>(n,r,i)=>e(n,r&&((...a)=>{const[s]=nfe(n),[,,,l]=Gv.get(rfe),c=l[s];return yo(c)?r(...a):(delete l[s],c)}),i),QXt=YXt.concat(XXt),ZXt=e=>function(...r){const i=ife(),[o,a,s]=KXt(r),l=XGe(i,s);let c=e;const{use:u}=l,d=(u||[]).concat(QXt);for(let f=d.length;f--;)c=d[f](c);return c(o,a||l.fetcher||null,l)},JXt=(e,n,r)=>{const i=n[e]||(n[e]=[]);return i.push(r),()=>{const o=i.indexOf(r);o>=0&&(i[o]=i[i.length-1],i.pop())}};qXt();const Exe=V.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e)}),Lq={dedupe:!0},eQt=(e,n,r)=>{const{cache:i,compare:o,suspense:a,fallbackData:s,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:p}=r,[h,g,v,y]=Gv.get(i),[_,S]=nfe(e),b=m.useRef(!1),E=m.useRef(!1),w=m.useRef(_),C=m.useRef(n),x=m.useRef(r),T=()=>x.current,R=()=>T().isVisible()&&T().isOnline(),[O,M,P,k]=zGe(i,_),$=m.useRef({}).current,U=yo(s)?r.fallback[_]:s,z=(pe,me)=>{for(const ve in $){const he=ve;if(he==="data"){if(!o(pe[he],me[he])&&(!yo(pe[he])||!o(le,me[he])))return!1}else if(me[he]!==pe[he])return!1}return!0},D=m.useMemo(()=>{const pe=!_||!n?!1:yo(l)?T().isPaused()||a?!1:yo(c)?!0:c:l,me=Ae=>{const Ee=Ay(Ae);return delete Ee._k,pe?{isValidating:!0,isLoading:!0,...Ee}:Ee},ve=O(),he=k(),be=me(ve),we=ve===he?be:me(he);let De=be;return[()=>{const Ae=me(O());return z(Ae,De)?(De.data=Ae.data,De.isLoading=Ae.isLoading,De.isValidating=Ae.isValidating,De.error=Ae.error,De):(De=Ae,Ae)},()=>we]},[i,_]),B=S4e.useSyncExternalStore(m.useCallback(pe=>P(_,(me,ve)=>{z(ve,me)||pe()}),[i,_]),D[0],D[1]),Y=!b.current,q=h[_]&&h[_].length>0,K=B.data,H=yo(K)?U:K,G=B.error,Q=m.useRef(H),le=p?yo(K)?Q.current:K:H,Z=q&&!yo(G)?!1:Y&&!yo(l)?l:T().isPaused()?!1:a?yo(H)?!1:c:yo(H)||c,j=!!(_&&n&&Y&&Z),F=yo(B.isValidating)?j:B.isValidating,te=yo(B.isLoading)?j:B.isLoading,oe=m.useCallback(async pe=>{const me=C.current;if(!_||!me||E.current||T().isPaused())return!1;let ve,he,be=!0;const we=pe||{},De=!v[_]||!we.dedupe,Ae=()=>_xe?!E.current&&_===w.current&&b.current:_===w.current,Ee={isValidating:!1,isLoading:!1},Re=()=>{M(Ee)},Te=()=>{const Ne=v[_];Ne&&Ne[1]===he&&delete v[_]},Oe={isValidating:!0};yo(O().data)&&(Oe.isLoading=!0);try{if(De&&(M(Oe),r.loadingTimeout&&yo(O().data)&&setTimeout(()=>{be&&Ae()&&T().onLoadingSlow(_,r)},r.loadingTimeout),v[_]=[me(S),jie()]),[ve,he]=v[_],ve=await ve,De&&setTimeout(Te,r.dedupingInterval),!v[_]||v[_][1]!==he)return De&&Ae()&&T().onDiscarded(_),!1;Ee.error=ef;const Ne=g[_];if(!yo(Ne)&&(he<=Ne[0]||he<=Ne[1]||Ne[1]===0))return Re(),De&&Ae()&&T().onDiscarded(_),!1;const je=O().data;Ee.data=o(je,ve)?je:ve,De&&Ae()&&T().onSuccess(ve,_,r)}catch(Ne){Te();const je=T(),{shouldRetryOnError:ne}=je;je.isPaused()||(Ee.error=Ne,De&&Ae()&&(je.onError(Ne,_,je),(ne===!0||um(ne)&&ne(Ne))&&R()&&je.onErrorRetry(Ne,_,je,J=>{const ae=h[_];ae&&ae[0]&&ae[0](gM.ERROR_REVALIDATE_EVENT,J)},{retryCount:(we.retryCount||0)+1,dedupe:!0})))}return be=!1,Re(),!0},[_,i]),de=m.useCallback((...pe)=>YGe(i,w.current,...pe),[]);if(b6(()=>{C.current=n,x.current=r,yo(K)||(Q.current=K)}),b6(()=>{if(!_)return;const pe=oe.bind(ef,Lq);let me=0;const he=JXt(_,h,(be,we={})=>{if(be==gM.FOCUS_EVENT){const De=Date.now();T().revalidateOnFocus&&De>me&&R()&&(me=De+T().focusThrottleInterval,pe())}else if(be==gM.RECONNECT_EVENT)T().revalidateOnReconnect&&R()&&pe();else{if(be==gM.MUTATE_EVENT)return oe();if(be==gM.ERROR_REVALIDATE_EVENT)return oe(we)}});return E.current=!1,w.current=_,b.current=!0,M({_k:S}),Z&&(yo(H)||RA?pe():jXt(pe)),()=>{E.current=!0,he()}},[_]),b6(()=>{let pe;function me(){const he=um(u)?u(O().data):u;he&&pe!==-1&&(pe=setTimeout(ve,he))}function ve(){!O().error&&(d||T().isVisible())&&(f||T().isOnline())?oe(Lq).then(me):me()}return me(),()=>{pe&&(clearTimeout(pe),pe=-1)}},[u,d,f,_]),m.useDebugValue(le),a&&yo(H)&&_){if(!_xe&&RA)throw new Error("Fallback data is required when using suspense in SSR.");C.current=n,x.current=r,E.current=!1;const pe=y[_];if(!yo(pe)){const me=de(pe);Exe(me)}if(yo(G)){const me=oe(Lq);yo(le)||(me.status="fulfilled",me.value=!0),Exe(me)}else throw G}return{mutate:de,get data(){return $.data=!0,le},get error(){return $.error=!0,G},get isValidating(){return $.isValidating=!0,F},get isLoading(){return $.isLoading=!0,te}}},tQt=_6.defineProperty(WXt,"defaultValue",{value:KGe}),ofe=ZXt(eQt),nQt={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},rQt={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},iQt={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},oQt={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},aQt={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},sQt={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},lQt={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},cQt={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},uQt={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},dQt={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},fQt={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},pQt={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},hQt={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},gQt={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},mQt={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},vQt={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},yQt={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},_Qt={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},bQt={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},SQt={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},EQt={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},CQt={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},wQt={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},xQt={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},TQt={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}},OQt={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},RQt={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},IQt={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},NQt={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},MQt={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},PQt={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},AQt={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}};var Eo=function(n,r){return{getMessage:function(o,a){var s=al(r,o.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(s)return s;var l=n.replace("_","-");if(l==="zh-CN")return a;var c=uC["zh-CN"];return c?c.getMessage(o,a):a},locale:n}},DQt=Eo("mn_MN",vQt),kQt=Eo("ar_EG",nQt),YT=Eo("zh_CN",PQt),LQt=Eo("en_US",sQt),$Qt=Eo("en_GB",aQt),FQt=Eo("vi_VN",MQt),BQt=Eo("it_IT",hQt),jQt=Eo("ja_JP",gQt),UQt=Eo("es_ES",lQt),HQt=Eo("ca_ES",rQt),zQt=Eo("ru_RU",CQt),VQt=Eo("sr_RS",xQt),GQt=Eo("ms_MY",yQt),WQt=Eo("zh_TW",AQt),YQt=Eo("fr_FR",uQt),qQt=Eo("pt_BR",SQt),KQt=Eo("ko_KR",mQt),XQt=Eo("id_ID",pQt),QQt=Eo("de_DE",oQt),ZQt=Eo("fa_IR",cQt),JQt=Eo("tr_TR",RQt),eZt=Eo("pl_PL",bQt),tZt=Eo("hr_",fQt),nZt=Eo("th_TH",OQt),rZt=Eo("cs_cz",iQt),iZt=Eo("sk_SK",wQt),oZt=Eo("he_IL",dQt),aZt=Eo("uk_UA",IQt),sZt=Eo("uz_UZ",NQt),lZt=Eo("nl_NL",_Qt),cZt=Eo("ro_RO",EQt),uZt=Eo("sv_SE",TQt),uC={"mn-MN":DQt,"ar-EG":kQt,"zh-CN":YT,"en-US":LQt,"en-GB":$Qt,"vi-VN":FQt,"it-IT":BQt,"ja-JP":jQt,"es-ES":UQt,"ca-ES":HQt,"ru-RU":zQt,"sr-RS":VQt,"ms-MY":GQt,"zh-TW":WQt,"fr-FR":YQt,"pt-BR":qQt,"ko-KR":KQt,"id-ID":XQt,"de-DE":QQt,"fa-IR":ZQt,"tr-TR":JQt,"pl-PL":eZt,"hr-HR":tZt,"th-TH":nZt,"cs-CZ":rZt,"sk-SK":iZt,"he-IL":oZt,"uk-UA":aZt,"uz-UZ":sZt,"nl-NL":lZt,"ro-RO":cZt,"sv-SE":uZt},dZt=Object.keys(uC),ZGe=function(n){var r=(n||"zh-CN").toLocaleLowerCase();return dZt.find(function(i){var o=i.toLocaleLowerCase();return o.includes(r)})};function mc(e,n){fZt(e)&&(e="100%");var r=pZt(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function u4(e){return Math.min(1,Math.max(0,e))}function fZt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function pZt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function JGe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function d4(e){return e<=1?"".concat(Number(e)*100,"%"):e}function l1(e){return e.length===1?"0"+e:String(e)}function hZt(e,n,r){return{r:mc(e,255)*255,g:mc(n,255)*255,b:mc(r,255)*255}}function Cxe(e,n,r){e=mc(e,255),n=mc(n,255),r=mc(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a=0,s=0,l=(i+o)/2;if(i===o)s=0,a=0;else{var c=i-o;switch(s=l>.5?c/(2-i-o):c/(i+o),i){case e:a=(n-r)/c+(n<r?6:0);break;case n:a=(r-e)/c+2;break;case r:a=(e-n)/c+4;break}a/=6}return{h:a,s,l}}function $q(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*(6*r):r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function gZt(e,n,r){var i,o,a;if(e=mc(e,360),n=mc(n,100),r=mc(r,100),n===0)o=r,a=r,i=r;else{var s=r<.5?r*(1+n):r+n-r*n,l=2*r-s;i=$q(l,s,e+1/3),o=$q(l,s,e),a=$q(l,s,e-1/3)}return{r:i*255,g:o*255,b:a*255}}function wxe(e,n,r){e=mc(e,255),n=mc(n,255),r=mc(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a=0,s=i,l=i-o,c=i===0?0:l/i;if(i===o)a=0;else{switch(i){case e:a=(n-r)/l+(n<r?6:0);break;case n:a=(r-e)/l+2;break;case r:a=(e-n)/l+4;break}a/=6}return{h:a,s:c,v:s}}function mZt(e,n,r){e=mc(e,360)*6,n=mc(n,100),r=mc(r,100);var i=Math.floor(e),o=e-i,a=r*(1-n),s=r*(1-o*n),l=r*(1-(1-o)*n),c=i%6,u=[r,s,a,a,l,r][c],d=[l,r,r,s,a,a][c],f=[a,a,l,r,r,s][c];return{r:u*255,g:d*255,b:f*255}}function xxe(e,n,r,i){var o=[l1(Math.round(e).toString(16)),l1(Math.round(n).toString(16)),l1(Math.round(r).toString(16))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function vZt(e,n,r,i,o){var a=[l1(Math.round(e).toString(16)),l1(Math.round(n).toString(16)),l1(Math.round(r).toString(16)),l1(yZt(i))];return o&&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 yZt(e){return Math.round(parseFloat(e)*255).toString(16)}function Txe(e){return Ud(e)/255}function Ud(e){return parseInt(e,16)}function _Zt(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Hie={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 bZt(e){var n={r:0,g:0,b:0},r=1,i=null,o=null,a=null,s=!1,l=!1;return typeof e=="string"&&(e=CZt(e)),typeof e=="object"&&(Tv(e.r)&&Tv(e.g)&&Tv(e.b)?(n=hZt(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Tv(e.h)&&Tv(e.s)&&Tv(e.v)?(i=d4(e.s),o=d4(e.v),n=mZt(e.h,i,o),s=!0,l="hsv"):Tv(e.h)&&Tv(e.s)&&Tv(e.l)&&(i=d4(e.s),a=d4(e.l),n=gZt(e.h,i,a),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=JGe(r),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}var SZt="[-\\+]?\\d+%?",EZt="[-\\+]?\\d*\\.\\d+%?",zb="(?:".concat(EZt,")|(?:").concat(SZt,")"),Fq="[\\s|\\(]+(".concat(zb,")[,|\\s]+(").concat(zb,")[,|\\s]+(").concat(zb,")\\s*\\)?"),Bq="[\\s|\\(]+(".concat(zb,")[,|\\s]+(").concat(zb,")[,|\\s]+(").concat(zb,")[,|\\s]+(").concat(zb,")\\s*\\)?"),hh={CSS_UNIT:new RegExp(zb),rgb:new RegExp("rgb"+Fq),rgba:new RegExp("rgba"+Bq),hsl:new RegExp("hsl"+Fq),hsla:new RegExp("hsla"+Bq),hsv:new RegExp("hsv"+Fq),hsva:new RegExp("hsva"+Bq),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 CZt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(Hie[e])e=Hie[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=hh.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=hh.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=hh.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=hh.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=hh.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=hh.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=hh.hex8.exec(e),r?{r:Ud(r[1]),g:Ud(r[2]),b:Ud(r[3]),a:Txe(r[4]),format:n?"name":"hex8"}:(r=hh.hex6.exec(e),r?{r:Ud(r[1]),g:Ud(r[2]),b:Ud(r[3]),format:n?"name":"hex"}:(r=hh.hex4.exec(e),r?{r:Ud(r[1]+r[1]),g:Ud(r[2]+r[2]),b:Ud(r[3]+r[3]),a:Txe(r[4]+r[4]),format:n?"name":"hex8"}:(r=hh.hex3.exec(e),r?{r:Ud(r[1]+r[1]),g:Ud(r[2]+r[2]),b:Ud(r[3]+r[3]),format:n?"name":"hex"}:!1)))))))))}function Tv(e){return!!hh.CSS_UNIT.exec(String(e))}var wZt=function(){function e(n,r){n===void 0&&(n=""),r===void 0&&(r={});var i;if(n instanceof e)return n;typeof n=="number"&&(n=_Zt(n)),this.originalInput=n;var o=bZt(n);this.originalInput=n,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=r.format)!==null&&i!==void 0?i:o.format,this.gradientType=r.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=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),r,i,o,a=n.r/255,s=n.g/255,l=n.b/255;return a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*r+.7152*i+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=JGe(n),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var n=this.toHsl().s;return n===0},e.prototype.toHsv=function(){var n=wxe(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},e.prototype.toHsvString=function(){var n=wxe(this.r,this.g,this.b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.v*100);return this.a===1?"hsv(".concat(r,", ").concat(i,"%, ").concat(o,"%)"):"hsva(".concat(r,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=Cxe(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},e.prototype.toHslString=function(){var n=Cxe(this.r,this.g,this.b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.l*100);return this.a===1?"hsl(".concat(r,", ").concat(i,"%, ").concat(o,"%)"):"hsla(".concat(r,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),xxe(this.r,this.g,this.b,n)},e.prototype.toHexString=function(n){return n===void 0&&(n=!1),"#"+this.toHex(n)},e.prototype.toHex8=function(n){return n===void 0&&(n=!1),vZt(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},e.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},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 n=Math.round(this.r),r=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(r,", ").concat(i,")"):"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(r){return"".concat(Math.round(mc(r,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(r){return Math.round(mc(r,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+xxe(this.r,this.g,this.b,!1),r=0,i=Object.entries(Hie);r<i.length;r++){var o=i[r],a=o[0],s=o[1];if(n===s)return a}return!1},e.prototype.toString=function(n){var r=!!n;n=n??this.format;var i=!1,o=this.a<1&&this.a>=0,a=!r&&o&&(n.startsWith("hex")||n==="name");return a?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(i=this.toRgbString()),n==="prgb"&&(i=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(i=this.toHexString()),n==="hex3"&&(i=this.toHexString(!0)),n==="hex4"&&(i=this.toHex8String(!0)),n==="hex8"&&(i=this.toHex8String()),n==="name"&&(i=this.toName()),n==="hsl"&&(i=this.toHslString()),n==="hsv"&&(i=this.toHsvString()),i||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(n){n===void 0&&(n=10);var r=this.toHsl();return r.l+=n/100,r.l=u4(r.l),new e(r)},e.prototype.brighten=function(n){n===void 0&&(n=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),new e(r)},e.prototype.darken=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.l-=n/100,r.l=u4(r.l),new e(r)},e.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},e.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},e.prototype.desaturate=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.s-=n/100,r.s=u4(r.s),new e(r)},e.prototype.saturate=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.s+=n/100,r.s=u4(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var r=this.toHsl(),i=(r.h+n)%360;return r.h=i<0?360+i:i,new e(r)},e.prototype.mix=function(n,r){r===void 0&&(r=50);var i=this.toRgb(),o=new e(n).toRgb(),a=r/100,s={r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a};return new e(s)},e.prototype.analogous=function(n,r){n===void 0&&(n=6),r===void 0&&(r=30);var i=this.toHsl(),o=360/r,a=[this];for(i.h=(i.h-(o*n>>1)+720)%360;--n;)i.h=(i.h+o)%360,a.push(new e(i));return a},e.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new e(n)},e.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var r=this.toHsv(),i=r.h,o=r.s,a=r.v,s=[],l=1/n;n--;)s.push(new e({h:i,s:o,v:a})),a=(a+l)%1;return s},e.prototype.splitcomplement=function(){var n=this.toHsl(),r=n.h;return[this,new e({h:(r+72)%360,s:n.s,l:n.l}),new e({h:(r+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var r=this.toRgb(),i=new e(n).toRgb(),o=r.a+i.a*(1-r.a);return new e({r:(r.r*r.a+i.r*i.a*(1-r.a))/o,g:(r.g*r.a+i.g*i.a*(1-r.a))/o,b:(r.b*r.a+i.b*i.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var r=this.toHsl(),i=r.h,o=[this],a=360/n,s=1;s<n;s++)o.push(new e({h:(i+s*a)%360,s:r.s,l:r.l}));return o},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e}(),jq,IA={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",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",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'",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)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"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)",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)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",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)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"},eWe=function(n){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,i=3735928559^r,o=1103547991^r,a=0,s;a<n.length;a++)s=n.charCodeAt(a),i=Math.imul(i^s,2654435761),o=Math.imul(o^s,1597334677);return i=Math.imul(i^i>>>16,2246822507)^Math.imul(o^o>>>13,3266489909),o=Math.imul(o^o>>>16,2246822507)^Math.imul(i^i>>>13,3266489909),4294967296*(2097151&o)+(i>>>0)},afe=eC(function(e){return e}),tWe={theme:afe,token:ee(ee({},IA),cu==null||(jq=cu.defaultAlgorithm)===null||jq===void 0?void 0:jq.call(cu,cu==null?void 0:cu.defaultSeed)),hashId:"pro-".concat(eWe(JSON.stringify(IA)))},xZt=function(){return tWe};const TZt=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:IA,emptyTheme:afe,hashCode:eWe,token:tWe,useToken:xZt},Symbol.toStringTag,{value:"Module"}));var Hd=function(n,r){return new wZt(n).setAlpha(r).toRgbString()},OZt=function(){return typeof cu>"u"||!cu?TZt:cu},Pm=OZt(),S6=Pm.useToken,Uq=function(n){return{boxSizing:"border-box",margin:0,padding:0,color:n.colorText,fontSize:n.fontSize,lineHeight:n.lineHeight,listStyle:"none"}};function ia(e,n){var r,i=m.useContext(Gh),o=i.token,a=o===void 0?{}:o,s=m.useContext(Gh),l=s.hashed,c=S6(),u=c.token,d=c.hashId,f=m.useContext(Gh),p=f.theme,h=m.useContext(or.ConfigContext),g=h.getPrefixCls,v=h.csp;return a.layout||(a=ee({},u)),a.proComponentsCls=(r=a.proComponentsCls)!==null&&r!==void 0?r:".".concat(g("pro")),a.antCls=".".concat(g()),{wrapSSR:dA({theme:p,token:a,path:[e],nonce:v==null?void 0:v.nonce,layer:{name:"antd-pro",dependencies:["antd"]}},function(){return n(a)}),hashId:l?d:""}}var RZt=function(n,r){var i,o,a,s,l,c=ee({},n);return ee(ee({bgLayout:"linear-gradient(".concat(r.colorBgContainer,", ").concat(r.colorBgLayout," 28%)"),colorTextAppListIcon:r.colorTextSecondary,appListIconHoverBgColor:c==null||(i=c.sider)===null||i===void 0?void 0:i.colorBgMenuItemSelected,colorBgAppListIconHover:Hd(r.colorTextBase,.04),colorTextAppListIconHover:r.colorTextBase},c),{},{header:ee({colorBgHeader:Hd(r.colorBgElevated,.6),colorBgScrollHeader:Hd(r.colorBgElevated,.8),colorHeaderTitle:r.colorText,colorBgMenuItemHover:Hd(r.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(c==null||(o=c.header)===null||o===void 0?void 0:o.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(a=c.header)===null||a===void 0?void 0:a.colorBgHeader:r.colorBgElevated,colorTextMenuSelected:Hd(r.colorTextBase,.95),colorBgRightActionsItemHover:Hd(r.colorTextBase,.03),colorTextRightActionsItem:r.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:r.colorTextSecondary,colorTextMenuSecondary:r.colorTextTertiary,colorTextMenuTitle:r.colorText,colorTextMenuActive:r.colorText},c.header),sider:ee({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:r.colorBgElevated,colorTextCollapsedButtonHover:r.colorTextSecondary,colorTextCollapsedButton:Hd(r.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:Hd(r.colorTextBase,.06),colorBgMenuItemHover:Hd(r.colorTextBase,.03),colorBgMenuItemSelected:Hd(r.colorTextBase,.04),colorTextMenuItemHover:r.colorText,colorTextMenuSelected:Hd(r.colorTextBase,.95),colorTextMenuActive:r.colorText,colorTextMenu:r.colorTextSecondary,colorTextMenuSecondary:r.colorTextTertiary,colorTextMenuTitle:r.colorText,colorTextSubMenuSelected:Hd(r.colorTextBase,.95)},c.sider),pageContainer:ee({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((s=c.pageContainer)===null||s===void 0?void 0:s.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((l=c.pageContainer)===null||l===void 0?void 0:l.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:r.colorBgElevated},c.pageContainer)})},IZt=function(){for(var n={},r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];for(var a=i.length,s,l=0;l<a;l+=1)for(s in i[l])i[l].hasOwnProperty(s)&&(cn(n[s])==="object"&&cn(i[l][s])==="object"&&n[s]!==void 0&&n[s]!==null&&!Array.isArray(n[s])&&!Array.isArray(i[l][s])?n[s]=ee(ee({},n[s]),i[l][s]):n[s]=i[l][s]);return n},NZt={exports:{}};(function(e,n){(function(r,i){e.exports=i(tHe)})(oo,function(r){function i(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=i(r),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,l){return l==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,l){var c=100*s+l;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return o.default.locale(a,null,!0),a})})(NZt);var MZt=["locale","getPrefixCls"],PZt=["locale","theme"],AZt=function(n){var r={};if(Object.keys(n||{}).forEach(function(i){n[i]!==void 0&&(r[i]=n[i])}),!(Object.keys(r).length<1))return r},qT=function(){var n,r;return!(typeof process<"u"&&(((n="production")===null||n===void 0?void 0:n.toUpperCase())==="TEST"||((r="production")===null||r===void 0?void 0:r.toUpperCase())==="DEV"))},R0=V.createContext({intl:ee(ee({},YT),{},{locale:"default"}),valueTypeMap:{},theme:afe,hashed:!0,dark:!1,token:IA});R0.Consumer;var DZt=function(){var n=ife(),r=n.cache;return m.useEffect(function(){return function(){r.clear()}},[]),null},kZt=function(n){var r,i=n.children,o=n.dark,a=n.valueTypeMap,s=n.autoClearCache,l=s===void 0?!1:s,c=n.token,u=n.prefixCls,d=n.intl,f=m.useContext(or.ConfigContext),p=f.locale,h=f.getPrefixCls,g=Xt(f,MZt),v=(r=Pm.useToken)===null||r===void 0?void 0:r.call(Pm),y=m.useContext(R0),_=u?".".concat(u):".".concat(h(),"-pro"),S="."+h(),b="".concat(_),E=m.useMemo(function(){return RZt(c||{},v.token||IA)},[c,v.token]),w=m.useMemo(function(){var z,D=p==null?void 0:p.locale,B=ZGe(D),Y=d??(D&&((z=y.intl)===null||z===void 0?void 0:z.locale)==="default"?uC[B]:y.intl||uC[B]);return ee(ee({},y),{},{dark:o??y.dark,token:IZt(y.token,v.token,{proComponentsCls:_,antCls:S,themeId:v.theme.id,layout:E}),intl:Y||YT})},[p==null?void 0:p.locale,y,o,v.token,v.theme.id,_,S,E,d]),C=ee(ee({},w.token||{}),{},{proComponentsCls:_}),x=fue(v.theme,[v.token,C??{}],{salt:b,override:C}),T=ke(x,2),R=T[0],O=T[1],M=m.useMemo(function(){return!(n.hashed===!1||y.hashed===!1)},[y.hashed,n.hashed]),P=m.useMemo(function(){return n.hashed===!1||y.hashed===!1||qT()===!1?"":v.hashId?v.hashId:O},[O,y.hashed,n.hashed]);m.useEffect(function(){Zr.locale((p==null?void 0:p.locale)||"zh-cn")},[p==null?void 0:p.locale]);var k=m.useMemo(function(){return ee(ee({},g.theme),{},{hashId:P,hashed:M&&qT()})},[g.theme,P,M,qT()]),$=m.useMemo(function(){return ee(ee({},w),{},{valueTypeMap:a||(w==null?void 0:w.valueTypeMap),token:R,theme:v.theme,hashed:M,hashId:P})},[w,a,R,v.theme,M,P]),U=m.useMemo(function(){return N.jsx(or,ee(ee({},g),{},{theme:k,children:N.jsx(R0.Provider,{value:$,children:N.jsxs(N.Fragment,{children:[l&&N.jsx(DZt,{}),i]})})}))},[g,k,$,l,i]);return l?N.jsx(tQt,{value:{provider:function(){return new Map}},children:U}):U},LU=function(n){var r=n.needDeps,i=n.dark,o=n.token,a=m.useContext(R0),s=m.useContext(or.ConfigContext),l=s.locale,c=s.theme,u=Xt(s,PZt),d=r&&a.hashId!==void 0&&Object.keys(n).sort().join("-")==="children-needDeps";if(d)return N.jsx(N.Fragment,{children:n.children});var f=function(){var g=i??a.dark;return g&&!Array.isArray(c==null?void 0:c.algorithm)?[Pm.darkAlgorithm,c==null?void 0:c.algorithm].filter(Boolean):g&&Array.isArray(c==null?void 0:c.algorithm)?[Pm.darkAlgorithm].concat(Tt((c==null?void 0:c.algorithm)||[])).filter(Boolean):c==null?void 0:c.algorithm},p=ee(ee({},u),{},{locale:l||NXt,theme:AZt(ee(ee({},c),{},{algorithm:f()}))});return N.jsx(or,ee(ee({},p),{},{children:N.jsx(kZt,ee(ee({},n),{},{token:o}))}))};function cs(){var e=m.useContext(or.ConfigContext),n=e.locale,r=m.useContext(R0),i=r.intl;return i&&i.locale!=="default"?i||YT:n!=null&&n.locale&&uC[ZGe(n.locale)]||YT}R0.displayName="ProProvider";var Gh=R0,LZt=function(n){return fe({},n.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(n.colorSplit)})};function $Zt(e){return ia("DropdownFooter",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[LZt(r)]})}var FZt=function(n){var r=cs(),i=n.onClear,o=n.onConfirm,a=n.disabled,s=n.footerRender,l=m.useContext(or.ConfigContext),c=l.getPrefixCls,u=c("pro-core-dropdown-footer"),d=$Zt(u),f=d.wrapSSR,p=d.hashId,h=[N.jsx(qn,{style:{visibility:i?"visible":"hidden"},type:"link",size:"small",disabled:a,onClick:function(y){i&&i(y),y.stopPropagation()},children:r.getMessage("form.lightFilter.clear","清除")},"clear"),N.jsx(qn,{"data-type":"confirm",type:"primary",size:"small",onClick:o,disabled:a,children:r.getMessage("form.lightFilter.confirm","确认")},"confirm")];if(s===!1||(s==null?void 0:s(o,i))===!1)return null;var g=(s==null?void 0:s(o,i))||h;return f(N.jsx("div",{className:Ce(u,p),onClick:function(y){return y.target.getAttribute("data-type")!=="confirm"&&y.stopPropagation()},children:g}))},BZt=function(e){Kc(r,e);var n=Iu(r);function r(){var i;Ki(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),fe(Tn(i),"state",{hasError:!1,errorInfo:""}),i}return Xi(r,[{key:"componentDidCatch",value:function(o,a){console.log(o,a)}},{key:"render",value:function(){return this.state.hasError?N.jsx(Mk,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(o){return{hasError:!0,errorInfo:o.message}}}]),r}(V.Component),jZt=function(n){return fe({},n.componentCls,fe(fe(fe(fe(fe(fe(fe(fe({display:"inline-flex",gap:n.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:n.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:n.colorBgTextHover},"&-active":fe({paddingBlock:0,paddingInline:8,backgroundColor:n.colorBgTextHover},"&".concat(n.componentCls,"-allow-clear:hover:not(").concat(n.componentCls,"-disabled)"),fe(fe({},"".concat(n.componentCls,"-arrow"),{display:"none"}),"".concat(n.componentCls,"-close"),{display:"inline-flex"}))},"".concat(n.antCls,"-select"),fe({},"".concat(n.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(n.antCls,"-picker"),fe({},"".concat(n.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",fe(fe({color:n.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(n.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:n.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:n.colorIconHover})),"&-disabled",fe({color:n.colorTextPlaceholder,cursor:"not-allowed"},"".concat(n.componentCls,"-icon"),{color:n.colorTextPlaceholder})),"&-small",fe(fe(fe({height:"24px",paddingBlock:0,paddingInline:4,fontSize:n.fontSizeSM,lineHeight:"24px"},"&".concat(n.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(n.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(n.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(n.lineWidth,"px solid ").concat(n.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:n.colorBgContainer}))};function UZt(e){return ia("FieldLabel",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[jZt(r)]})}var HZt=function(n,r){var i,o,a,s=n.label,l=n.onClear,c=n.value,u=n.disabled,d=n.onLabelClick,f=n.ellipsis,p=n.placeholder,h=n.className,g=n.formatter,v=n.bordered,y=n.style,_=n.downIcon,S=n.allowClear,b=S===void 0?!0:S,E=n.valueMaxLength,w=E===void 0?41:E,C=(or==null||(i=or.useConfig)===null||i===void 0?void 0:i.call(or))||{componentSize:"middle"},x=C.componentSize,T=x,R=m.useContext(or.ConfigContext),O=R.getPrefixCls,M=O("pro-core-field-label"),P=UZt(M),k=P.wrapSSR,$=P.hashId,U=cs(),z=m.useRef(null),D=m.useRef(null);m.useImperativeHandle(r,function(){return{labelRef:D,clearRef:z}});var B=function(H){return H.every(function(G){return typeof G=="string"})?H.join(","):H.map(function(G,Q){var le=Q===H.length-1?"":",";return typeof G=="string"?N.jsxs("span",{children:[G,le]},Q):N.jsxs("span",{style:{display:"flex"},children:[G,le]},Q)})},Y=function(H){return g?g(H):Array.isArray(H)?B(H):H},q=function(H,G){if(G!=null&&G!==""&&(!Array.isArray(G)||G.length)){var Q,le,Z=H?N.jsxs("span",{onClick:function(){d==null||d()},className:"".concat(M,"-text"),children:[H,": "]}):"",j=Y(G);if(!f)return N.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[Z,Y(G)]});var F=function(){var de=Array.isArray(G)&&G.length>1,pe=U.getMessage("form.lightFilter.itemUnit","项");return typeof j=="string"&&j.length>w&&de?"...".concat(G.length).concat(pe):""},te=F();return N.jsxs("span",{title:typeof j=="string"?j:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Z,N.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof j=="string"?j==null||(Q=j.toString())===null||Q===void 0||(le=Q.slice)===null||le===void 0?void 0:le.call(Q,0,w):j}),te]})}return H||p};return k(N.jsxs("span",{className:Ce(M,$,"".concat(M,"-").concat((o=(a=n.size)!==null&&a!==void 0?a:T)!==null&&o!==void 0?o:"middle"),fe(fe(fe(fe({},"".concat(M,"-active"),(Array.isArray(c)?c.length>0:!!c)||c===0),"".concat(M,"-disabled"),u),"".concat(M,"-bordered"),v),"".concat(M,"-allow-clear"),b),h),style:y,ref:D,onClick:function(){var H;n==null||(H=n.onClick)===null||H===void 0||H.call(n)},children:[q(s,c),(c||c===0)&&b&&N.jsx(ev,{role:"button",title:U.getMessage("form.lightFilter.clear","清除"),className:Ce("".concat(M,"-icon"),$,"".concat(M,"-close")),onClick:function(H){u||l==null||l(),H.stopPropagation()},ref:z}),_!==!1?_??N.jsx(cI,{className:Ce("".concat(M,"-icon"),$,"".concat(M,"-arrow"))}):null]}))},r_=V.forwardRef(HZt),fp=function(n){var r={};if(Object.keys(n||{}).forEach(function(i){n[i]!==void 0&&(r[i]=n[i])}),!(Object.keys(r).length<1))return r},zZt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Oxe=function(n){return n==="*"||n==="x"||n==="X"},Rxe=function(n){var r=parseInt(n,10);return isNaN(r)?n:r},VZt=function(n,r){return cn(n)!==cn(r)?[String(n),String(r)]:[n,r]},GZt=function(n,r){if(Oxe(n)||Oxe(r))return 0;var i=VZt(Rxe(n),Rxe(r)),o=ke(i,2),a=o[0],s=o[1];return a>s?1:a<s?-1:0},WZt=function(n,r){for(var i=0;i<Math.max(n.length,r.length);i++){var o=GZt(n[i]||"0",r[i]||"0");if(o!==0)return o}return 0},Ixe=function(n){var r,i=n.match(zZt);return i==null||(r=i.shift)===null||r===void 0||r.call(i),i},Ak=function(n,r){var i=Ixe(n),o=Ixe(r),a=i.pop(),s=o.pop(),l=WZt(i,o);return l!==0?l:a||s?a?-1:1:0},nWe=function(){var n;return typeof process>"u"?Iy:((n=process)===null||n===void 0||(n=n.env)===null||n===void 0?void 0:n.ANTD_VERSION)||Iy},$U=function(n,r){var i=Ak(nWe(),"4.23.0")>-1?{open:n,onOpenChange:r}:{visible:n,onVisibleChange:r};return fp(i)},YZt=function(n){return fe(fe(fe({},"".concat(n.componentCls,"-label"),{cursor:"pointer"}),"".concat(n.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(n.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function qZt(e){return ia("FilterDropdown",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[YZt(r)]})}var KZt=function(n){var r=n.children,i=n.label,o=n.footer,a=n.open,s=n.onOpenChange,l=n.disabled,c=n.onVisibleChange,u=n.visible,d=n.footerRender,f=n.placement,p=m.useContext(or.ConfigContext),h=p.getPrefixCls,g=h("pro-core-field-dropdown"),v=qZt(g),y=v.wrapSSR,_=v.hashId,S=$U(a||u||!1,s||c),b=m.useRef(null);return y(N.jsx(Rp,ee(ee({placement:f,trigger:["click"]},S),{},{overlayInnerStyle:{padding:0},content:N.jsxs("div",{ref:b,className:Ce("".concat(g,"-overlay"),fe(fe({},"".concat(g,"-overlay-").concat(f),f),"hashId",_)),children:[N.jsx(or,{getPopupContainer:function(){return b.current||document.body},children:N.jsx("div",{className:"".concat(g,"-content ").concat(_).trim(),children:r})}),o&&N.jsx(FZt,ee({disabled:l,footerRender:d},o))]}),children:N.jsx("span",{className:"".concat(g,"-label ").concat(_).trim(),children:i})})))},XZt=function(n){return fe({},n.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:n.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:n.colorTextSecondary,fontWeight:"normal",fontSize:n.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function QZt(e){return ia("LabelIconTip",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[XZt(r)]})}var ZZt=V.memo(function(e){var n=e.label,r=e.tooltip,i=e.ellipsis,o=e.subTitle,a=m.useContext(or.ConfigContext),s=a.getPrefixCls,l=s("pro-core-label-tip"),c=QZt(l),u=c.wrapSSR,d=c.hashId;if(!r&&!o)return N.jsx(N.Fragment,{children:n});var f=typeof r=="string"||V.isValidElement(r)?{title:r}:r,p=(f==null?void 0:f.icon)||N.jsx(fVt,{});return u(N.jsxs("div",{className:Ce(l,d),onMouseDown:function(g){return g.stopPropagation()},onMouseLeave:function(g){return g.stopPropagation()},onMouseMove:function(g){return g.stopPropagation()},children:[N.jsx("div",{className:Ce("".concat(l,"-title"),d,fe({},"".concat(l,"-title-ellipsis"),i)),children:n}),o&&N.jsx("div",{className:"".concat(l,"-subtitle ").concat(d).trim(),children:o}),r&&N.jsx(Sf,ee(ee({},f),{},{children:N.jsx("span",{className:"".concat(l,"-icon ").concat(d).trim(),children:p})}))]}))}),rWe=V.createContext({}),iWe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r="month",i="quarter";return function(o,a){var s=a.prototype;s.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=s.add;s.add=function(u,d){return u=Number(u),this.$utils().p(d)===i?this.add(3*u,r):l.bind(this)(u,d)};var c=s.startOf;s.startOf=function(u,d){var f=this.$utils(),p=!!f.u(d)||d;if(f.p(u)===i){var h=this.quarter()-1;return p?this.month(3*h).startOf(r).startOf("day"):this.month(3*h+2).endOf(r).endOf("day")}return c.bind(this)(u,d)}}})})(iWe);var JZt=iWe.exports;const eJt=Or(JZt);var dC=function(n){return n==null};Zr.extend(eJt);var oWe={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function Nxe(e){return Object.prototype.toString.call(e)==="[object Object]"}function tJt(e){if(Nxe(e)===!1)return!1;var n=e.constructor;if(n===void 0)return!0;var r=n.prototype;return!(Nxe(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)}var zie=function(n){return!!(n!=null&&n._isAMomentObject)},Mxe=function(n,r,i){if(!r)return n;if(Zr.isDayjs(n)||zie(n)){if(r==="number")return n.valueOf();if(r==="string")return n.format(oWe[i]||"YYYY-MM-DD HH:mm:ss");if(typeof r=="string"&&r!=="string")return n.format(r);if(typeof r=="function")return r(n,i)}return n},nJt=function e(n,r,i,o,a){var s={};return typeof window>"u"||cn(n)!=="object"||dC(n)||n instanceof Blob||Array.isArray(n)?n:(Object.keys(n).forEach(function(l){var c=a?[a,l].flat(1):[l],u=al(i,c)||"text",d="text",f;typeof u=="string"?d=u:u&&(d=u.valueType,f=u.dateFormat);var p=n[l];if(!(dC(p)&&o)){if(tJt(p)&&!Array.isArray(p)&&!Zr.isDayjs(p)&&!zie(p)){s[l]=e(p,r,i,o,c);return}if(Array.isArray(p)){s[l]=p.map(function(h,g){return Zr.isDayjs(h)||zie(h)?Mxe(h,f||r,d):e(h,r,i,o,[l,"".concat(g)].flat(1))});return}s[l]=Mxe(p,f||r,d)}}),s)},Pxe=function(n,r){return typeof r=="function"?r(Zr(n)):Zr(n).format(r)},rJt=function(n,r){var i=Array.isArray(n)?n:[],o=ke(i,2),a=o[0],s=o[1],l,c;Array.isArray(r)?(l=r[0],c=r[1]):cn(r)==="object"&&r.type==="mask"?(l=r.format,c=r.format):(l=r,c=r);var u=a?Pxe(a,l):"",d=s?Pxe(s,c):"",f=u&&d?"".concat(u," ~ ").concat(d):"";return f};function fC(e){if(typeof e=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.apply(void 0,r)}return e}function aWe(e){if(Ak(nWe(),"5.6.0")<0)return e;var n={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",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},r=ee({},e);return Object.keys(n).forEach(function(i){r[i]!==void 0&&(r[n[i]]=r[i],delete r[i])}),r}var Wh=function(n){var r=m.useRef(null);return r.current=n,m.useCallback(function(){for(var i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=r.current)===null||i===void 0?void 0:i.call.apply(i,[r].concat(Tt(a)))},[])};function iJt(e,n){var r=Wh(e),i=m.useRef(),o=m.useCallback(function(){i.current&&(clearTimeout(i.current),i.current=null)},[]),a=m.useCallback(Ss(ri().mark(function s(){var l,c,u,d=arguments;return ri().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:for(l=d.length,c=new Array(l),u=0;u<l;u++)c[u]=d[u];{p.next=3;break}case 3:return o(),p.abrupt("return",new Promise(function(h){i.current=setTimeout(Ss(ri().mark(function g(){return ri().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.t0=h,y.next=3,r.apply(void 0,c);case 3:return y.t1=y.sent,(0,y.t0)(y.t1),y.abrupt("return");case 6:case"end":return y.stop()}},g)})),n)}));case 5:case"end":return p.stop()}},s)})),[r,o,n]);return m.useEffect(function(){return o},[o]),{run:a,cancel:o}}var oJt=function(n){var r=m.useRef(n);return r.current=n,r};function aJt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,r=arguments.length>2?arguments[2]:void 0,i=m.useState(e),o=ke(i,2),a=o[0],s=o[1],l=oJt(e);return m.useEffect(function(){var c=setTimeout(function(){s(l.current)},n);return function(){return clearTimeout(c)}},r?[n].concat(Tt(r)):void 0),a}function A1(e,n,r,i){if(e===n)return!0;if(e&&n&&cn(e)==="object"&&cn(n)==="object"){if(e.constructor!==n.constructor)return!1;var o,a,s;if(Array.isArray(e)){if(o=e.length,o!=n.length)return!1;for(a=o;a--!==0;)if(!A1(e[a],n[a],r,i))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;var l=lm(e.entries()),c;try{for(l.s();!(c=l.n()).done;)if(a=c.value,!n.has(a[0]))return!1}catch(g){l.e(g)}finally{l.f()}var u=lm(e.entries()),d;try{for(u.s();!(d=u.n()).done;)if(a=d.value,!A1(a[1],n.get(a[0]),r,i))return!1}catch(g){u.e(g)}finally{u.f()}return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;var f=lm(e.entries()),p;try{for(f.s();!(p=f.n()).done;)if(a=p.value,!n.has(a[0]))return!1}catch(g){f.e(g)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(o=e.length,o!=n.length)return!1;for(a=o;a--!==0;)if(e[a]!==n[a])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===n.toString();if(s=Object.keys(e),o=s.length,o!==Object.keys(n).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[a]))return!1;for(a=o;a--!==0;){var h=s[a];if(!(r!=null&&r.includes(h))&&!(h==="_owner"&&e.$$typeof)&&!A1(e[h],n[h],r,i))return!1}return!0}return e!==e&&n!==n}var sJt=function(n,r,i){return A1(n,r,i)};function sWe(e,n){var r=m.useRef();return sJt(e,r.current,n)||(r.current=e),r.current}function lJt(e,n,r){m.useEffect(e,sWe(n||[],r))}function Xu(e,n){return V.useMemo(e,sWe(n))}var cJt=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,sfe=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!cJt};function uJt(e,n){var r=typeof e.pageName=="string"?e.title:n;m.useEffect(function(){sfe()&&r&&(document.title=r)},[e.title,r])}var Hq=0;function dJt(e){var n=m.useRef(null),r=m.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(Hq+=1,Hq.toString())}),i=ke(r,1),o=i[0],a=m.useRef(o),s=function(){var d=Ss(ri().mark(function f(){var p,h,g,v;return ri().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return(p=n.current)===null||p===void 0||p.abort(),g=new AbortController,n.current=g,_.next=5,Promise.race([(h=e.request)===null||h===void 0?void 0:h.call(e,e.params,e),new Promise(function(S,b){var E;(E=n.current)===null||E===void 0||(E=E.signal)===null||E===void 0||E.addEventListener("abort",function(){b(new Error("aborted"))})})]);case 5:return v=_.sent,_.abrupt("return",v);case 7:case"end":return _.stop()}},f)}));return function(){return d.apply(this,arguments)}}();m.useEffect(function(){return function(){Hq+=1}},[]);var l=ofe([a.current,e.params],s,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),c=l.data,u=l.error;return[c||u]}var fJt=function(n){var r=m.useRef();return m.useEffect(function(){r.current=n}),r.current},pJt=function(n){var r=!1;return(typeof n=="string"&&n.startsWith("date")&&!n.endsWith("Range")||n==="select"||n==="time")&&(r=!0),r};function hJt(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var lfe=function(n){if(!n||!n.startsWith("http"))return!1;try{var r=new URL(n);return!!r}catch{return!1}},lWe=function(){for(var n={},r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];for(var a=i.length,s,l=0;l<a;l+=1)for(s in i[l])i[l].hasOwnProperty(s)&&(cn(n[s])==="object"&&cn(i[l][s])==="object"&&n[s]!==void 0&&n[s]!==null&&!Array.isArray(n[s])&&!Array.isArray(i[l][s])?n[s]=ee(ee({},n[s]),i[l][s]):n[s]=i[l][s]);return n},Axe=0,Dxe=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(Axe+=1).toFixed(0);for(var r="",i=crypto.getRandomValues(new Uint8Array(n));n--;){var o=63&i[n];r+=o<36?o.toString(36):o<62?(o-26).toString(36).toUpperCase():o<63?"_":"-"}return r},uB=function(){return typeof window>"u"?Dxe():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():Dxe()};Zr.extend(dHe);var kxe=function(n){return!!(n!=null&&n._isAMomentObject)},Dk=function e(n,r){return dC(n)||Zr.isDayjs(n)||kxe(n)?kxe(n)?Zr(n):n:Array.isArray(n)?n.map(function(i){return e(i,r)}):typeof n=="number"?Zr(n):Zr(n,r)},gJt=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function mJt(e){var n={};return gJt.forEach(function(r){e[r]!==void 0&&(n[r]=e[r])}),n}var vJt="valueType request plain renderFormItem render text formItemProps valueEnum",yJt="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function cWe(e){var n="".concat(vJt," ").concat(yJt).split(/[\s\n]+/),r={};return Object.keys(e||{}).forEach(function(i){n.includes(i)||(r[i]=e[i])}),r}function _Jt(e){var n=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return n==="string"&&cn(e)==="object"?"object":e===null?"null":e===void 0?"undefined":n}var bJt=function(n){var r=n.color,i=n.children;return N.jsx(Qu,{color:r,text:i})},i_=function(n){return _Jt(n)==="map"?n:new Map(Object.entries(n||{}))},SJt={Success:function(n){var r=n.children;return N.jsx(Qu,{status:"success",text:r})},Error:function(n){var r=n.children;return N.jsx(Qu,{status:"error",text:r})},Default:function(n){var r=n.children;return N.jsx(Qu,{status:"default",text:r})},Processing:function(n){var r=n.children;return N.jsx(Qu,{status:"processing",text:r})},Warning:function(n){var r=n.children;return N.jsx(Qu,{status:"warning",text:r})},success:function(n){var r=n.children;return N.jsx(Qu,{status:"success",text:r})},error:function(n){var r=n.children;return N.jsx(Qu,{status:"error",text:r})},default:function(n){var r=n.children;return N.jsx(Qu,{status:"default",text:r})},processing:function(n){var r=n.children;return N.jsx(Qu,{status:"processing",text:r})},warning:function(n){var r=n.children;return N.jsx(Qu,{status:"warning",text:r})}},bI=function e(n,r,i){if(Array.isArray(n))return N.jsx(Ef,{split:",",size:2,wrap:!0,children:n.map(function(u,d){return e(u,r,d)})},i);var o=i_(r);if(!o.has(n)&&!o.has("".concat(n)))return(n==null?void 0:n.label)||n;var a=o.get(n)||o.get("".concat(n));if(!a)return N.jsx(V.Fragment,{children:(n==null?void 0:n.label)||n},i);var s=a.status,l=a.color,c=SJt[s||"Init"];return c?N.jsx(c,{children:a.text},i):l?N.jsx(bJt,{color:l,children:a.text},i):N.jsx(V.Fragment,{children:a.text||a},i)},Vie={exports:{}};(function(e,n){const{hasOwnProperty:r}=Object.prototype,i=_();i.configure=_,i.stringify=i,i.default=i,n.stringify=i,n.configure=_,e.exports=i;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function a(S){return S.length<5e3&&!o.test(S)?`"${S}"`:JSON.stringify(S)}function s(S,b){if(S.length>200||b)return S.sort(b);for(let E=1;E<S.length;E++){const w=S[E];let C=E;for(;C!==0&&S[C-1]>w;)S[C]=S[C-1],C--;S[C]=w}return S}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(S){return l.call(S)!==void 0&&S.length!==0}function u(S,b,E){S.length<E&&(E=S.length);const w=b===","?"":" ";let C=`"0":${w}${S[0]}`;for(let x=1;x<E;x++)C+=`${b}"${x}":${w}${S[x]}`;return C}function d(S){if(r.call(S,"circularValue")){const b=S.circularValue;if(typeof b=="string")return`"${b}"`;if(b==null)return b;if(b===Error||b===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function f(S){let b;if(r.call(S,"deterministic")&&(b=S.deterministic,typeof b!="boolean"&&typeof b!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return b===void 0?!0:b}function p(S,b){let E;if(r.call(S,b)&&(E=S[b],typeof E!="boolean"))throw new TypeError(`The "${b}" argument must be of type boolean`);return E===void 0?!0:E}function h(S,b){let E;if(r.call(S,b)){if(E=S[b],typeof E!="number")throw new TypeError(`The "${b}" argument must be of type number`);if(!Number.isInteger(E))throw new TypeError(`The "${b}" argument must be an integer`);if(E<1)throw new RangeError(`The "${b}" argument must be >= 1`)}return E===void 0?1/0:E}function g(S){return S===1?"1 item":`${S} items`}function v(S){const b=new Set;for(const E of S)(typeof E=="string"||typeof E=="number")&&b.add(String(E));return b}function y(S){if(r.call(S,"strict")){const b=S.strict;if(typeof b!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(b)return E=>{let w=`Object can not safely be stringified. Received type ${typeof E}`;throw typeof E!="function"&&(w+=` (${E.toString()})`),new Error(w)}}}function _(S){S={...S};const b=y(S);b&&(S.bigint===void 0&&(S.bigint=!1),"circularValue"in S||(S.circularValue=Error));const E=d(S),w=p(S,"bigint"),C=f(S),x=typeof C=="function"?C:void 0,T=h(S,"maximumDepth"),R=h(S,"maximumBreadth");function O(U,z,D,B,Y,q){let K=z[U];switch(typeof K=="object"&&K!==null&&typeof K.toJSON=="function"&&(K=K.toJSON(U)),K=B.call(z,U,K),typeof K){case"string":return a(K);case"object":{if(K===null)return"null";if(D.indexOf(K)!==-1)return E;let H="",G=",";const Q=q;if(Array.isArray(K)){if(K.length===0)return"[]";if(T<D.length+1)return'"[Array]"';D.push(K),Y!==""&&(q+=Y,H+=`
|
||
${q}`,G=`,
|
||
${q}`);const oe=Math.min(K.length,R);let de=0;for(;de<oe-1;de++){const me=O(String(de),K,D,B,Y,q);H+=me!==void 0?me:"null",H+=G}const pe=O(String(de),K,D,B,Y,q);if(H+=pe!==void 0?pe:"null",K.length-1>R){const me=K.length-R-1;H+=`${G}"... ${g(me)} not stringified"`}return Y!==""&&(H+=`
|
||
${Q}`),D.pop(),`[${H}]`}let le=Object.keys(K);const Z=le.length;if(Z===0)return"{}";if(T<D.length+1)return'"[Object]"';let j="",F="";Y!==""&&(q+=Y,G=`,
|
||
${q}`,j=" ");const te=Math.min(Z,R);C&&!c(K)&&(le=s(le,x)),D.push(K);for(let oe=0;oe<te;oe++){const de=le[oe],pe=O(de,K,D,B,Y,q);pe!==void 0&&(H+=`${F}${a(de)}:${j}${pe}`,F=G)}if(Z>R){const oe=Z-R;H+=`${F}"...":${j}"${g(oe)} not stringified"`,F=G}return Y!==""&&F.length>1&&(H=`
|
||
${q}${H}
|
||
${Q}`),D.pop(),`{${H}}`}case"number":return isFinite(K)?String(K):b?b(K):"null";case"boolean":return K===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(K);default:return b?b(K):void 0}}function M(U,z,D,B,Y,q){switch(typeof z=="object"&&z!==null&&typeof z.toJSON=="function"&&(z=z.toJSON(U)),typeof z){case"string":return a(z);case"object":{if(z===null)return"null";if(D.indexOf(z)!==-1)return E;const K=q;let H="",G=",";if(Array.isArray(z)){if(z.length===0)return"[]";if(T<D.length+1)return'"[Array]"';D.push(z),Y!==""&&(q+=Y,H+=`
|
||
${q}`,G=`,
|
||
${q}`);const Z=Math.min(z.length,R);let j=0;for(;j<Z-1;j++){const te=M(String(j),z[j],D,B,Y,q);H+=te!==void 0?te:"null",H+=G}const F=M(String(j),z[j],D,B,Y,q);if(H+=F!==void 0?F:"null",z.length-1>R){const te=z.length-R-1;H+=`${G}"... ${g(te)} not stringified"`}return Y!==""&&(H+=`
|
||
${K}`),D.pop(),`[${H}]`}D.push(z);let Q="";Y!==""&&(q+=Y,G=`,
|
||
${q}`,Q=" ");let le="";for(const Z of B){const j=M(Z,z[Z],D,B,Y,q);j!==void 0&&(H+=`${le}${a(Z)}:${Q}${j}`,le=G)}return Y!==""&&le.length>1&&(H=`
|
||
${q}${H}
|
||
${K}`),D.pop(),`{${H}}`}case"number":return isFinite(z)?String(z):b?b(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(z);default:return b?b(z):void 0}}function P(U,z,D,B,Y){switch(typeof z){case"string":return a(z);case"object":{if(z===null)return"null";if(typeof z.toJSON=="function"){if(z=z.toJSON(U),typeof z!="object")return P(U,z,D,B,Y);if(z===null)return"null"}if(D.indexOf(z)!==-1)return E;const q=Y;if(Array.isArray(z)){if(z.length===0)return"[]";if(T<D.length+1)return'"[Array]"';D.push(z),Y+=B;let j=`
|
||
${Y}`;const F=`,
|
||
${Y}`,te=Math.min(z.length,R);let oe=0;for(;oe<te-1;oe++){const pe=P(String(oe),z[oe],D,B,Y);j+=pe!==void 0?pe:"null",j+=F}const de=P(String(oe),z[oe],D,B,Y);if(j+=de!==void 0?de:"null",z.length-1>R){const pe=z.length-R-1;j+=`${F}"... ${g(pe)} not stringified"`}return j+=`
|
||
${q}`,D.pop(),`[${j}]`}let K=Object.keys(z);const H=K.length;if(H===0)return"{}";if(T<D.length+1)return'"[Object]"';Y+=B;const G=`,
|
||
${Y}`;let Q="",le="",Z=Math.min(H,R);c(z)&&(Q+=u(z,G,R),K=K.slice(z.length),Z-=z.length,le=G),C&&(K=s(K,x)),D.push(z);for(let j=0;j<Z;j++){const F=K[j],te=P(F,z[F],D,B,Y);te!==void 0&&(Q+=`${le}${a(F)}: ${te}`,le=G)}if(H>R){const j=H-R;Q+=`${le}"...": "${g(j)} not stringified"`,le=G}return le!==""&&(Q=`
|
||
${Y}${Q}
|
||
${q}`),D.pop(),`{${Q}}`}case"number":return isFinite(z)?String(z):b?b(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(z);default:return b?b(z):void 0}}function k(U,z,D){switch(typeof z){case"string":return a(z);case"object":{if(z===null)return"null";if(typeof z.toJSON=="function"){if(z=z.toJSON(U),typeof z!="object")return k(U,z,D);if(z===null)return"null"}if(D.indexOf(z)!==-1)return E;let B="";const Y=z.length!==void 0;if(Y&&Array.isArray(z)){if(z.length===0)return"[]";if(T<D.length+1)return'"[Array]"';D.push(z);const Q=Math.min(z.length,R);let le=0;for(;le<Q-1;le++){const j=k(String(le),z[le],D);B+=j!==void 0?j:"null",B+=","}const Z=k(String(le),z[le],D);if(B+=Z!==void 0?Z:"null",z.length-1>R){const j=z.length-R-1;B+=`,"... ${g(j)} not stringified"`}return D.pop(),`[${B}]`}let q=Object.keys(z);const K=q.length;if(K===0)return"{}";if(T<D.length+1)return'"[Object]"';let H="",G=Math.min(K,R);Y&&c(z)&&(B+=u(z,",",R),q=q.slice(z.length),G-=z.length,H=","),C&&(q=s(q,x)),D.push(z);for(let Q=0;Q<G;Q++){const le=q[Q],Z=k(le,z[le],D);Z!==void 0&&(B+=`${H}${a(le)}:${Z}`,H=",")}if(K>R){const Q=K-R;B+=`${H}"...":"${g(Q)} not stringified"`}return D.pop(),`{${B}}`}case"number":return isFinite(z)?String(z):b?b(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(z);default:return b?b(z):void 0}}function $(U,z,D){if(arguments.length>1){let B="";if(typeof D=="number"?B=" ".repeat(Math.min(D,10)):typeof D=="string"&&(B=D.slice(0,10)),z!=null){if(typeof z=="function")return O("",{"":U},[],z,B,"");if(Array.isArray(z))return M("",U,[],v(z),B,"")}if(B.length!==0)return P("",U,[],B,"")}return k("",U,[])}return $}})(Vie,Vie.exports);var EJt=Vie.exports;const CJt=Or(EJt),wJt=CJt.configure;var Lxe=wJt({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function xJt(){this.__data__=[],this.size=0}function kk(e,n){return e===n||e!==e&&n!==n}function FU(e,n){for(var r=e.length;r--;)if(kk(e[r][0],n))return r;return-1}var TJt=Array.prototype,OJt=TJt.splice;function RJt(e){var n=this.__data__,r=FU(n,e);if(r<0)return!1;var i=n.length-1;return r==i?n.pop():OJt.call(n,r,1),--this.size,!0}function IJt(e){var n=this.__data__,r=FU(n,e);return r<0?void 0:n[r][1]}function NJt(e){return FU(this.__data__,e)>-1}function MJt(e,n){var r=this.__data__,i=FU(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}function o_(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}o_.prototype.clear=xJt;o_.prototype.delete=RJt;o_.prototype.get=IJt;o_.prototype.has=NJt;o_.prototype.set=MJt;function PJt(){this.__data__=new o_,this.size=0}function AJt(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function DJt(e){return this.__data__.get(e)}function kJt(e){return this.__data__.has(e)}var uWe=typeof global=="object"&&global&&global.Object===Object&&global,LJt=typeof self=="object"&&self&&self.Object===Object&&self,Sg=uWe||LJt||Function("return this")(),I0=Sg.Symbol,dWe=Object.prototype,$Jt=dWe.hasOwnProperty,FJt=dWe.toString,mM=I0?I0.toStringTag:void 0;function BJt(e){var n=$Jt.call(e,mM),r=e[mM];try{e[mM]=void 0;var i=!0}catch{}var o=FJt.call(e);return i&&(n?e[mM]=r:delete e[mM]),o}var jJt=Object.prototype,UJt=jJt.toString;function HJt(e){return UJt.call(e)}var zJt="[object Null]",VJt="[object Undefined]",$xe=I0?I0.toStringTag:void 0;function uw(e){return e==null?e===void 0?VJt:zJt:$xe&&$xe in Object(e)?BJt(e):HJt(e)}function Am(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var GJt="[object AsyncFunction]",WJt="[object Function]",YJt="[object GeneratorFunction]",qJt="[object Proxy]";function cfe(e){if(!Am(e))return!1;var n=uw(e);return n==WJt||n==YJt||n==GJt||n==qJt}var zq=Sg["__core-js_shared__"],Fxe=function(){var e=/[^.]+$/.exec(zq&&zq.keys&&zq.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KJt(e){return!!Fxe&&Fxe in e}var XJt=Function.prototype,QJt=XJt.toString;function dw(e){if(e!=null){try{return QJt.call(e)}catch{}try{return e+""}catch{}}return""}var ZJt=/[\\^$.*+?()[\]{}|]/g,JJt=/^\[object .+?Constructor\]$/,een=Function.prototype,ten=Object.prototype,nen=een.toString,ren=ten.hasOwnProperty,ien=RegExp("^"+nen.call(ren).replace(ZJt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oen(e){if(!Am(e)||KJt(e))return!1;var n=cfe(e)?ien:JJt;return n.test(dw(e))}function aen(e,n){return e==null?void 0:e[n]}function fw(e,n){var r=aen(e,n);return oen(r)?r:void 0}var NA=fw(Sg,"Map"),MA=fw(Object,"create");function sen(){this.__data__=MA?MA(null):{},this.size=0}function len(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var cen="__lodash_hash_undefined__",uen=Object.prototype,den=uen.hasOwnProperty;function fen(e){var n=this.__data__;if(MA){var r=n[e];return r===cen?void 0:r}return den.call(n,e)?n[e]:void 0}var pen=Object.prototype,hen=pen.hasOwnProperty;function gen(e){var n=this.__data__;return MA?n[e]!==void 0:hen.call(n,e)}var men="__lodash_hash_undefined__";function ven(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=MA&&n===void 0?men:n,this}function pC(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}pC.prototype.clear=sen;pC.prototype.delete=len;pC.prototype.get=fen;pC.prototype.has=gen;pC.prototype.set=ven;function yen(){this.size=0,this.__data__={hash:new pC,map:new(NA||o_),string:new pC}}function _en(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function BU(e,n){var r=e.__data__;return _en(n)?r[typeof n=="string"?"string":"hash"]:r.map}function ben(e){var n=BU(this,e).delete(e);return this.size-=n?1:0,n}function Sen(e){return BU(this,e).get(e)}function Een(e){return BU(this,e).has(e)}function Cen(e,n){var r=BU(this,e),i=r.size;return r.set(e,n),this.size+=r.size==i?0:1,this}function a_(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}a_.prototype.clear=yen;a_.prototype.delete=ben;a_.prototype.get=Sen;a_.prototype.has=Een;a_.prototype.set=Cen;var wen=200;function xen(e,n){var r=this.__data__;if(r instanceof o_){var i=r.__data__;if(!NA||i.length<wen-1)return i.push([e,n]),this.size=++r.size,this;r=this.__data__=new a_(i)}return r.set(e,n),this.size=r.size,this}function py(e){var n=this.__data__=new o_(e);this.size=n.size}py.prototype.clear=PJt;py.prototype.delete=AJt;py.prototype.get=DJt;py.prototype.has=kJt;py.prototype.set=xen;var dB=function(){try{var e=fw(Object,"defineProperty");return e({},"",{}),e}catch{}}();function ufe(e,n,r){n=="__proto__"&&dB?dB(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}function Gie(e,n,r){(r!==void 0&&!kk(e[n],r)||r===void 0&&!(n in e))&&ufe(e,n,r)}function Ten(e){return function(n,r,i){for(var o=-1,a=Object(n),s=i(n),l=s.length;l--;){var c=s[++o];if(r(a[c],c,a)===!1)break}return n}}var Oen=Ten(),fWe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bxe=fWe&&typeof module=="object"&&module&&!module.nodeType&&module,Ren=Bxe&&Bxe.exports===fWe,jxe=Ren?Sg.Buffer:void 0;jxe&&jxe.allocUnsafe;function Ien(e,n){return e.slice()}var fB=Sg.Uint8Array;function Nen(e){var n=new e.constructor(e.byteLength);return new fB(n).set(new fB(e)),n}function Men(e,n){var r=Nen(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function Pen(e,n){var r=-1,i=e.length;for(n||(n=Array(i));++r<i;)n[r]=e[r];return n}var Uxe=Object.create,Aen=function(){function e(){}return function(n){if(!Am(n))return{};if(Uxe)return Uxe(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}();function pWe(e,n){return function(r){return e(n(r))}}var hWe=pWe(Object.getPrototypeOf,Object),Den=Object.prototype;function dfe(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||Den;return e===r}function ken(e){return typeof e.constructor=="function"&&!dfe(e)?Aen(hWe(e)):{}}function N0(e){return e!=null&&typeof e=="object"}var Len="[object Arguments]";function Hxe(e){return N0(e)&&uw(e)==Len}var gWe=Object.prototype,$en=gWe.hasOwnProperty,Fen=gWe.propertyIsEnumerable,Wie=Hxe(function(){return arguments}())?Hxe:function(e){return N0(e)&&$en.call(e,"callee")&&!Fen.call(e,"callee")},Dy=Array.isArray,Ben=9007199254740991;function mWe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ben}function jU(e){return e!=null&&mWe(e.length)&&!cfe(e)}function jen(e){return N0(e)&&jU(e)}function Uen(){return!1}var vWe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zxe=vWe&&typeof module=="object"&&module&&!module.nodeType&&module,Hen=zxe&&zxe.exports===vWe,Vxe=Hen?Sg.Buffer:void 0,zen=Vxe?Vxe.isBuffer:void 0,pB=zen||Uen,Ven="[object Object]",Gen=Function.prototype,Wen=Object.prototype,yWe=Gen.toString,Yen=Wen.hasOwnProperty,qen=yWe.call(Object);function Ken(e){if(!N0(e)||uw(e)!=Ven)return!1;var n=hWe(e);if(n===null)return!0;var r=Yen.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&yWe.call(r)==qen}var Xen="[object Arguments]",Qen="[object Array]",Zen="[object Boolean]",Jen="[object Date]",etn="[object Error]",ttn="[object Function]",ntn="[object Map]",rtn="[object Number]",itn="[object Object]",otn="[object RegExp]",atn="[object Set]",stn="[object String]",ltn="[object WeakMap]",ctn="[object ArrayBuffer]",utn="[object DataView]",dtn="[object Float32Array]",ftn="[object Float64Array]",ptn="[object Int8Array]",htn="[object Int16Array]",gtn="[object Int32Array]",mtn="[object Uint8Array]",vtn="[object Uint8ClampedArray]",ytn="[object Uint16Array]",_tn="[object Uint32Array]",_a={};_a[dtn]=_a[ftn]=_a[ptn]=_a[htn]=_a[gtn]=_a[mtn]=_a[vtn]=_a[ytn]=_a[_tn]=!0;_a[Xen]=_a[Qen]=_a[ctn]=_a[Zen]=_a[utn]=_a[Jen]=_a[etn]=_a[ttn]=_a[ntn]=_a[rtn]=_a[itn]=_a[otn]=_a[atn]=_a[stn]=_a[ltn]=!1;function btn(e){return N0(e)&&mWe(e.length)&&!!_a[uw(e)]}function Stn(e){return function(n){return e(n)}}var _We=typeof exports=="object"&&exports&&!exports.nodeType&&exports,iP=_We&&typeof module=="object"&&module&&!module.nodeType&&module,Etn=iP&&iP.exports===_We,Vq=Etn&&uWe.process,Gxe=function(){try{var e=iP&&iP.require&&iP.require("util").types;return e||Vq&&Vq.binding&&Vq.binding("util")}catch{}}(),Wxe=Gxe&&Gxe.isTypedArray,ffe=Wxe?Stn(Wxe):btn;function Yie(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var Ctn=Object.prototype,wtn=Ctn.hasOwnProperty;function xtn(e,n,r){var i=e[n];(!(wtn.call(e,n)&&kk(i,r))||r===void 0&&!(n in e))&&ufe(e,n,r)}function Ttn(e,n,r,i){var o=!r;r||(r={});for(var a=-1,s=n.length;++a<s;){var l=n[a],c=void 0;c===void 0&&(c=e[l]),o?ufe(r,l,c):xtn(r,l,c)}return r}function Otn(e,n){for(var r=-1,i=Array(e);++r<e;)i[r]=n(r);return i}var Rtn=9007199254740991,Itn=/^(?:0|[1-9]\d*)$/;function bWe(e,n){var r=typeof e;return n=n??Rtn,!!n&&(r=="number"||r!="symbol"&&Itn.test(e))&&e>-1&&e%1==0&&e<n}var Ntn=Object.prototype,Mtn=Ntn.hasOwnProperty;function SWe(e,n){var r=Dy(e),i=!r&&Wie(e),o=!r&&!i&&pB(e),a=!r&&!i&&!o&&ffe(e),s=r||i||o||a,l=s?Otn(e.length,String):[],c=l.length;for(var u in e)(n||Mtn.call(e,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||bWe(u,c)))&&l.push(u);return l}function Ptn(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var Atn=Object.prototype,Dtn=Atn.hasOwnProperty;function ktn(e){if(!Am(e))return Ptn(e);var n=dfe(e),r=[];for(var i in e)i=="constructor"&&(n||!Dtn.call(e,i))||r.push(i);return r}function EWe(e){return jU(e)?SWe(e,!0):ktn(e)}function Ltn(e){return Ttn(e,EWe(e))}function $tn(e,n,r,i,o,a,s){var l=Yie(e,r),c=Yie(n,r),u=s.get(c);if(u){Gie(e,r,u);return}var d=a?a(l,c,r+"",e,n,s):void 0,f=d===void 0;if(f){var p=Dy(c),h=!p&&pB(c),g=!p&&!h&&ffe(c);d=c,p||h||g?Dy(l)?d=l:jen(l)?d=Pen(l):h?(f=!1,d=Ien(c)):g?(f=!1,d=Men(c)):d=[]:Ken(c)||Wie(c)?(d=l,Wie(l)?d=Ltn(l):(!Am(l)||cfe(l))&&(d=ken(c))):f=!1}f&&(s.set(c,d),o(d,c,i,a,s),s.delete(c)),Gie(e,r,d)}function CWe(e,n,r,i,o){e!==n&&Oen(n,function(a,s){if(o||(o=new py),Am(a))$tn(e,n,s,r,CWe,i,o);else{var l=i?i(Yie(e,s),a,s+"",e,n,o):void 0;l===void 0&&(l=a),Gie(e,s,l)}},EWe)}function wWe(e){return e}function Ftn(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}var Yxe=Math.max;function Btn(e,n,r){return n=Yxe(n===void 0?e.length-1:n,0),function(){for(var i=arguments,o=-1,a=Yxe(i.length-n,0),s=Array(a);++o<a;)s[o]=i[n+o];o=-1;for(var l=Array(n+1);++o<n;)l[o]=i[o];return l[n]=r(s),Ftn(e,this,l)}}function jtn(e){return function(){return e}}var Utn=dB?function(e,n){return dB(e,"toString",{configurable:!0,enumerable:!1,value:jtn(n),writable:!0})}:wWe,Htn=800,ztn=16,Vtn=Date.now;function Gtn(e){var n=0,r=0;return function(){var i=Vtn(),o=ztn-(i-r);if(r=i,o>0){if(++n>=Htn)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}var Wtn=Gtn(Utn);function Ytn(e,n){return Wtn(Btn(e,n,wWe),e+"")}function qtn(e,n,r){if(!Am(r))return!1;var i=typeof n;return(i=="number"?jU(r)&&bWe(n,r.length):i=="string"&&n in r)?kk(r[n],e):!1}function Ktn(e){return Ytn(function(n,r){var i=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,s&&qtn(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),n=Object(n);++i<o;){var l=r[i];l&&e(n,l,i,a)}return n})}var Xtn=Ktn(function(e,n,r){CWe(e,n,r)});function Qtn(e){return cn(e)!=="object"?!1:e===null?!0:!(V.isValidElement(e)||e.constructor===RegExp||e instanceof Map||e instanceof Set||e instanceof HTMLElement||e instanceof Blob||e instanceof File||Array.isArray(e))}var Ztn=function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Object.keys(r).reduce(function(l,c){var u=r[c];return dC(u)||(l[c]=u),l},{});if(Object.keys(o).length<1||typeof window>"u"||cn(n)!=="object"||dC(n)||n instanceof Blob)return n;var a=Array.isArray(n)?[]:{},s=function l(c,u){var d=Array.isArray(c),f=d?[]:{};return c==null||c===void 0?f:(Object.keys(c).forEach(function(p){var h=function b(E,w){return Array.isArray(E)&&E.forEach(function(C,x){if(C){var T=w==null?void 0:w[x];typeof C=="function"&&(w[x]=C(w,p,c)),cn(C)==="object"&&!Array.isArray(C)&&Object.keys(C).forEach(function(R){var O=T==null?void 0:T[R];if(typeof C[R]=="function"&&O){var M=C[R](T[R],p,c);T[R]=cn(M)==="object"?M[R]:M}else cn(C[R])==="object"&&Array.isArray(C[R])&&O&&b(C[R],O)}),cn(C)==="object"&&Array.isArray(C)&&T&&b(C,T)}}),p},g=u?[u,p].flat(1):[p].flat(1),v=c[p],y=al(o,g),_=function(){var E,w,C=!1;if(typeof y=="function"){w=y==null?void 0:y(v,p,c);var x=cn(w);x!=="object"&&x!=="undefined"?(E=p,C=!0):E=w}else E=h(y,v);if(Array.isArray(E)){f=Fs(f,E,v);return}cn(E)==="object"&&!Array.isArray(a)?a=Xtn(a,E):cn(E)==="object"&&Array.isArray(a)?f=ee(ee({},f),E):(E!==null||E!==void 0)&&(f=Fs(f,[E],C?w:v))};if(y&&typeof y=="function"&&_(),!(typeof window>"u")){if(Qtn(v)){var S=l(v,g);if(Object.keys(S).length<1)return;f=Fs(f,[p],S);return}_()}}),i?f:c)};return a=Array.isArray(n)&&Array.isArray(a)?Tt(s(n)):lWe({},s(n),a),a},Cf=function(n){return n===void 0?{}:Ak(Iy,"5.13.0")<=0?{bordered:n}:{variant:n?void 0:"borderless"}};function Ix(e){var n=typeof window>"u",r=m.useState(function(){return n?!1:window.matchMedia(e).matches}),i=ke(r,2),o=i[0],a=i[1];return m.useLayoutEffect(function(){if(!n){var s=window.matchMedia(e),l=function(u){return a(u.matches)};return s.addListener(l),function(){return s.removeListener(l)}}},[e]),o}var mb={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},Jtn=function(){var n=void 0;if(typeof window>"u")return n;var r=Object.keys(mb).find(function(i){var o=mb[i].matchMedia;return!!window.matchMedia(o).matches});return n=r,n},enn=function(){var n=Ix(mb.md.matchMedia),r=Ix(mb.lg.matchMedia),i=Ix(mb.xxl.matchMedia),o=Ix(mb.xl.matchMedia),a=Ix(mb.sm.matchMedia),s=Ix(mb.xs.matchMedia),l=m.useState(Jtn()),c=ke(l,2),u=c[0],d=c[1];return m.useEffect(function(){if(i){d("xxl");return}if(o){d("xl");return}if(r){d("lg");return}if(n){d("md");return}if(a){d("sm");return}if(s){d("xs");return}d("md")},[n,r,i,o,a,s]),u},oP=function(){return oP=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},oP.apply(this,arguments)};function tnn(e){var n,r=(typeof window<"u"?window:{}).URL,i=new r((n=window==null?void 0:window.location)===null||n===void 0?void 0:n.href);return Object.keys(e).forEach(function(o){var a=e[o];a!=null?Array.isArray(a)?(i.searchParams.delete(o),a.forEach(function(s){i.searchParams.append(o,s)})):a instanceof Date?Number.isNaN(a.getTime())||i.searchParams.set(o,a.toISOString()):typeof a=="object"?i.searchParams.set(o,JSON.stringify(a)):i.searchParams.set(o,a):i.searchParams.delete(o)}),i}function nnn(e,n){var r;e===void 0&&(e={}),n===void 0&&(n={disabled:!1});var i=m.useState(),o=i[1],a=typeof window<"u"&&((r=window==null?void 0:window.location)===null||r===void 0?void 0:r.search),s=m.useMemo(function(){return n.disabled?{}:new URLSearchParams(a||{})},[n.disabled,a]),l=m.useMemo(function(){if(n.disabled)return{};if(typeof window>"u"||!window.URL)return{};var d=[];s.forEach(function(p,h){d.push({key:h,value:p})}),d=d.reduce(function(p,h){return(p[h.key]=p[h.key]||[]).push(h),p},{}),d=Object.keys(d).map(function(p){var h=d[p];return h.length===1?[p,h[0].value]:[p,h.map(function(g){var v=g.value;return v})]});var f=oP({},e);return d.forEach(function(p){var h=p[0],g=p[1];f[h]=inn(h,g,{},e)}),f},[n.disabled,e,s]);function c(d){if(!(typeof window>"u"||!window.URL)){var f=tnn(d);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),s.toString()!==f.searchParams.toString()&&o({})}}m.useEffect(function(){n.disabled||typeof window>"u"||!window.URL||c(oP(oP({},e),l))},[n.disabled,l]);var u=function(d){c(d)};return m.useEffect(function(){if(n.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var d=function(){o({})};return window.addEventListener("popstate",d),function(){window.removeEventListener("popstate",d)}},[n.disabled]),[l,u]}var rnn={true:!0,false:!1};function inn(e,n,r,i){if(!r)return n;var o=r[e],a=n===void 0?i[e]:n;return o===Number?Number(a):o===Boolean||n==="true"||n==="false"?rnn[a]:Array.isArray(o)?o.find(function(s){return s==a})||i[e]:a}var Eg=V.createContext({}),onn=["children","Wrapper"],ann=["children","Wrapper"],xWe=m.createContext({grid:!1,colProps:void 0,rowProps:void 0}),snn=function(n){var r=n.grid,i=n.rowProps,o=n.colProps;return{grid:!!r,RowWrapper:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=s.children,c=s.Wrapper,u=Xt(s,onn);return r?N.jsx(Tde,ee(ee(ee({gutter:8},i),u),{},{children:l})):c?N.jsx(c,{children:l}):l},ColWrapper:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=s.children,c=s.Wrapper,u=Xt(s,ann),d=m.useMemo(function(){var f=ee(ee({},o),u);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[u]);return r?N.jsx(SA,ee(ee({},d),{},{children:l})):c?N.jsx(c,{children:l}):l}}},pfe=function(n){var r=m.useMemo(function(){return cn(n)==="object"?n:{grid:n}},[n]),i=m.useContext(xWe),o=i.grid,a=i.colProps;return m.useMemo(function(){return snn({grid:!!(o||r.grid),rowProps:r==null?void 0:r.rowProps,colProps:(r==null?void 0:r.colProps)||a,Wrapper:r==null?void 0:r.Wrapper})},[r==null?void 0:r.Wrapper,r.grid,o,JSON.stringify([a,r==null?void 0:r.colProps,r==null?void 0:r.rowProps])])},lnn=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],cnn=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],qxe={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},unn=["switch","radioButton","radio","rate"];function UU(e,n){e.displayName="ProFormComponent";var r=function(a){var s=ee(ee({},a==null?void 0:a.filedConfig),n),l=s.valueType,c=s.customLightMode,u=s.lightFilterLabelFormatter,d=s.valuePropName,f=d===void 0?"value":d,p=s.ignoreWidth,h=s.defaultProps,g=Xt(s,lnn),v=ee(ee({},h),a),y=v.label,_=v.tooltip,S=v.placeholder,b=v.width,E=v.bordered,w=v.messageVariables,C=v.ignoreFormItem,x=v.transform,T=v.convertValue,R=v.readonly,O=v.allowClear;v.colSize;var M=v.getFormItemProps,P=v.getFieldProps;v.filedConfig;var k=v.cacheForSwr,$=v.proFieldProps,U=Xt(v,cnn),z=l||U.valueType,D=m.useMemo(function(){return p||unn.includes(z)},[p,z]),B=m.useState(),Y=ke(B,2),q=Y[1],K=m.useState(),H=ke(K,2),G=H[0],Q=H[1],le=V.useContext(Eg),Z=Xu(function(){return{formItemProps:M==null?void 0:M(),fieldProps:P==null?void 0:P()}},[P,M,U.dependenciesValues,G]),j=Xu(function(){var Oe=ee(ee(ee(ee({},C?fp({value:U.value}):{}),{},{placeholder:S,disabled:a.disabled},le.fieldProps),Z.fieldProps),U.fieldProps);return Oe.style=fp(Oe==null?void 0:Oe.style),Oe},[C,U.value,U.fieldProps,S,a.disabled,le.fieldProps,Z.fieldProps]),F=mJt(U),te=Xu(function(){return ee(ee(ee(ee({},le.formItemProps),F),Z.formItemProps),U.formItemProps)},[Z.formItemProps,le.formItemProps,U.formItemProps,F]),oe=Xu(function(){return ee(ee({messageVariables:w},g),te)},[g,te,w]);BF(!U.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var de=m.useContext(T0),pe=de.prefixName,me=Xu(function(){var Oe,Ne=oe==null?void 0:oe.name;Array.isArray(Ne)&&(Ne=Ne.join("_")),Array.isArray(pe)&&Ne&&(Ne="".concat(pe.join("."),".").concat(Ne));var je=Ne&&"form-".concat((Oe=le.formKey)!==null&&Oe!==void 0?Oe:"","-field-").concat(Ne);return je},[Lxe(oe==null?void 0:oe.name),pe,le.formKey]),ve=Wh(function(){var Oe;M||P?Q([]):U.renderFormItem&&q([]);for(var Ne=arguments.length,je=new Array(Ne),ne=0;ne<Ne;ne++)je[ne]=arguments[ne];j==null||(Oe=j.onChange)===null||Oe===void 0||Oe.call.apply(Oe,[j].concat(je))}),he=Xu(function(){var Oe=ee({width:b&&!qxe[b]?b:le.grid?"100%":void 0},j==null?void 0:j.style);return D&&Reflect.deleteProperty(Oe,"width"),fp(Oe)},[Lxe(j==null?void 0:j.style),le.grid,D,b]),be=Xu(function(){var Oe=b&&qxe[b];return Ce(j==null?void 0:j.className,fe({"pro-field":Oe},"pro-field-".concat(b),Oe&&!D))||void 0},[b,j==null?void 0:j.className,D]),we=Xu(function(){return fp(ee(ee({},le.proFieldProps),{},{mode:U==null?void 0:U.mode,readonly:R,params:U.params,proFieldKey:me,cacheForSwr:k},$))},[le.proFieldProps,U==null?void 0:U.mode,U.params,R,me,k,$]),De=Xu(function(){return ee(ee({onChange:ve,allowClear:O},j),{},{style:he,className:be})},[O,be,ve,j,he]),Ae=Xu(function(){return N.jsx(e,ee(ee({},U),{},{fieldProps:De,proFieldProps:we,ref:a==null?void 0:a.fieldRef}),a.proFormFieldKey||a.name)},[we,De,U]),Ee=Xu(function(){var Oe,Ne,je,ne;return N.jsx(VYe,ee(ee({label:y&&($==null?void 0:$.light)!==!0?y:void 0,tooltip:($==null?void 0:$.light)!==!0&&_,valuePropName:f},oe),{},{ignoreFormItem:C,transform:x,dataFormat:j==null?void 0:j.format,valueType:z,messageVariables:ee({label:y||""},oe==null?void 0:oe.messageVariables),convertValue:T,lightProps:fp(ee(ee(ee({},j),{},{valueType:z,bordered:E,allowClear:(Ne=Ae==null||(je=Ae.props)===null||je===void 0?void 0:je.allowClear)!==null&&Ne!==void 0?Ne:O,light:$==null?void 0:$.light,label:y,customLightMode:c,labelFormatter:u,valuePropName:f,footerRender:Ae==null||(ne=Ae.props)===null||ne===void 0?void 0:ne.footerRender},U.lightProps),oe.lightProps)),children:Ae}),a.proFormFieldKey||((Oe=oe.name)===null||Oe===void 0?void 0:Oe.toString()))},[y,$==null?void 0:$.light,_,f,a.proFormFieldKey,oe,C,x,j,z,T,E,Ae,O,c,u,U.lightProps]),Re=pfe(U),Te=Re.ColWrapper;return N.jsx(Te,{children:Ee})},i=function(a){var s=a.dependencies;return s?N.jsx(zYe,{name:s,originDependencies:a==null?void 0:a.originDependencies,children:function(c){return N.jsx(r,ee({dependenciesValues:c,dependencies:s},a))}}):N.jsx(r,ee({dependencies:s},a))};return i}var dnn=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],fnn=V.forwardRef(function(e,n){var r=Hr.useFormInstance(),i=m.useState(e.countDown||60),o=ke(i,2),a=o[0],s=o[1],l=m.useState(!1),c=ke(l,2),u=c[0],d=c[1],f=m.useState(),p=ke(f,2),h=p[0],g=p[1];e.rules,e.name;var v=e.phoneName,y=e.fieldProps,_=e.onTiming,S=e.captchaTextRender,b=S===void 0?function(x,T){return x?"".concat(T," 秒后重新获取"):"获取验证码"}:S,E=e.captchaProps,w=Xt(e,dnn),C=function(){var x=Ss(ri().mark(function T(R){return ri().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.prev=0,g(!0),M.next=4,w.onGetCaptcha(R);case 4:g(!1),d(!0),M.next=13;break;case 8:M.prev=8,M.t0=M.catch(0),d(!1),g(!1),console.log(M.t0);case 13:case"end":return M.stop()}},T,null,[[0,8]])}));return function(R){return x.apply(this,arguments)}}();return m.useImperativeHandle(n,function(){return{startTiming:function(){return d(!0)},endTiming:function(){return d(!1)}}}),m.useEffect(function(){var x=0,T=e.countDown;return u&&(x=window.setInterval(function(){s(function(R){return R<=1?(d(!1),clearInterval(x),T||60):R-1})},1e3)),function(){return clearInterval(x)}},[u]),m.useEffect(function(){_&&_(a)},[a,_]),N.jsxs("div",{style:ee(ee({},y==null?void 0:y.style),{},{display:"flex",alignItems:"center"}),ref:n,children:[N.jsx(Oi,ee(ee({},y),{},{style:ee({flex:1,transition:"width .3s",marginRight:8},y==null?void 0:y.style)})),N.jsx(qn,ee(ee({style:{display:"block"},disabled:u,loading:h},E),{},{onClick:Ss(ri().mark(function x(){var T;return ri().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(O.prev=0,!v){O.next=9;break}return O.next=4,r.validateFields([v].flat(1));case 4:return T=r.getFieldValue([v].flat(1)),O.next=7,C(T);case 7:O.next=11;break;case 9:return O.next=11,C("");case 11:O.next=16;break;case 13:O.prev=13,O.t0=O.catch(0),console.log(O.t0);case 16:case"end":return O.stop()}},x,null,[[0,13]])})),children:b(u,a)}))]})}),Lk=UU(fnn),pnn=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength","fetchDataOnSearch","fetchData"],Kxe=function(n,r){return cn(r)!=="object"?n[r]||r:n[r==null?void 0:r.value]||r.label},hnn=function(n,r){var i=n.label,o=n.prefixCls,a=n.onChange,s=n.value,l=n.mode;n.children,n.defaultValue;var c=n.size,u=n.showSearch,d=n.disabled,f=n.style,p=n.className,h=n.bordered,g=n.options,v=n.onSearch,y=n.allowClear,_=n.labelInValue,S=n.fieldNames,b=n.lightLabel,E=n.labelTrigger,w=n.optionFilterProp,C=n.optionLabelProp,x=C===void 0?"":C,T=n.valueMaxLength,R=T===void 0?41:T,O=n.fetchDataOnSearch,M=O===void 0?!1:O,P=n.fetchData,k=Xt(n,pnn),$=n.placeholder,U=$===void 0?i:$,z=S||{},D=z.label,B=D===void 0?"label":D,Y=z.value,q=Y===void 0?"value":Y,K=m.useContext(or.ConfigContext),H=K.getPrefixCls,G=H("pro-field-select-light-select"),Q=m.useState(!1),le=ke(Q,2),Z=le[0],j=le[1],F=m.useState(""),te=ke(F,2),oe=te[0],de=te[1],pe=ia("LightSelect",function(De){return fe({},".".concat(G),fe(fe({},"".concat(De.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),"&.".concat(G,"-searchable"),fe({},"".concat(De.antCls,"-select"),{width:"200px","&-selector":{height:28}})))}),me=pe.wrapSSR,ve=pe.hashId,he=m.useMemo(function(){var De={};return g==null||g.forEach(function(Ae){var Ee=Ae[x]||Ae[B],Re=Ae[q];De[Re]=Ee||Re}),De},[B,g,q,x]),be=m.useMemo(function(){return Reflect.has(k,"open")?k==null?void 0:k.open:Z},[Z,k]),we=Array.isArray(s)?s.map(function(De){return Kxe(he,De)}):Kxe(he,s);return me(N.jsxs("div",{className:Ce(G,ve,fe({},"".concat(G,"-searchable"),u),"".concat(G,"-container-").concat(k.placement||"bottomLeft"),p),style:f,onClick:function(Ae){var Ee;if(!d){var Re=b==null||(Ee=b.current)===null||Ee===void 0||(Ee=Ee.labelRef)===null||Ee===void 0||(Ee=Ee.current)===null||Ee===void 0?void 0:Ee.contains(Ae.target);Re&&j(!Z)}},children:[N.jsx(_g,ee(ee(ee({},k),{},{allowClear:y,value:s,mode:l,labelInValue:_,size:c,disabled:d,onChange:function(Ae,Ee){a==null||a(Ae,Ee),l!=="multiple"&&j(!1)}},Cf(h)),{},{showSearch:u,onSearch:u?function(De){M&&P&&P(De),v==null||v(De)}:void 0,style:f,dropdownRender:function(Ae){return N.jsxs("div",{ref:r,children:[u&&N.jsx("div",{style:{margin:"4px 8px"},children:N.jsx(Oi,{value:oe,allowClear:!!y,onChange:function(Re){de(Re.target.value),M&&P&&P(Re.target.value),v==null||v(Re.target.value)},onKeyDown:function(Re){if(Re.key==="Backspace"){Re.stopPropagation();return}(Re.key==="ArrowUp"||Re.key==="ArrowDown")&&Re.preventDefault()},style:{width:"100%"},prefix:N.jsx(Que,{})})}),Ae]})},open:be,onDropdownVisibleChange:function(Ae){var Ee;Ae||de(""),E||j(Ae),k==null||(Ee=k.onDropdownVisibleChange)===null||Ee===void 0||Ee.call(k,Ae)},prefixCls:o,options:v||!oe?g:g==null?void 0:g.filter(function(De){var Ae,Ee;return w?Tl(De[w]).join("").toLowerCase().includes(oe):((Ae=String(De[B]))===null||Ae===void 0||(Ae=Ae.toLowerCase())===null||Ae===void 0?void 0:Ae.includes(oe==null?void 0:oe.toLowerCase()))||((Ee=De[q])===null||Ee===void 0||(Ee=Ee.toString())===null||Ee===void 0||(Ee=Ee.toLowerCase())===null||Ee===void 0?void 0:Ee.includes(oe==null?void 0:oe.toLowerCase()))})})),N.jsx(r_,{ellipsis:!0,label:i,placeholder:U,disabled:d,bordered:h,allowClear:!!y,value:we||(s==null?void 0:s.label)||s,onClear:function(){a==null||a(void 0,void 0)},ref:b,valueMaxLength:R})]}))};const gnn=V.forwardRef(hnn);var mnn=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue","preserveOriginalLabel"],vnn=["className","optionType"],ynn=function(n,r){var i=n.optionItemRender,o=n.mode,a=n.onSearch,s=n.onFocus,l=n.onChange,c=n.autoClearSearchValue,u=c===void 0?!0:c,d=n.searchOnFocus,f=d===void 0?!1:d,p=n.resetAfterSelect,h=p===void 0?!1:p,g=n.fetchDataOnSearch,v=g===void 0?!0:g,y=n.optionFilterProp,_=y===void 0?"label":y,S=n.optionLabelProp,b=S===void 0?"label":S,E=n.className,w=n.disabled,C=n.options,x=n.fetchData,T=n.resetData,R=n.prefixCls,O=n.onClear,M=n.searchValue,P=n.showSearch,k=n.fieldNames,$=n.defaultSearchValue,U=n.preserveOriginalLabel,z=U===void 0?!1:U,D=Xt(n,mnn),B=k||{},Y=B.label,q=Y===void 0?"label":Y,K=B.value,H=K===void 0?"value":K,G=B.options,Q=G===void 0?"options":G,le=m.useState(M??$),Z=ke(le,2),j=Z[0],F=Z[1],te=m.useRef();m.useImperativeHandle(r,function(){return te.current}),m.useEffect(function(){if(D.autoFocus){var be;te==null||(be=te.current)===null||be===void 0||be.focus()}},[D.autoFocus]),m.useEffect(function(){F(M)},[M]);var oe=m.useContext(or.ConfigContext),de=oe.getPrefixCls,pe=de("pro-filed-search-select",R),me=Ce(pe,E,fe({},"".concat(pe,"-disabled"),w)),ve=function(we,De){return Array.isArray(we)&&Array.isArray(De)&&we.length>0?we.map(function(Ae,Ee){var Re=De==null?void 0:De[Ee],Te=(Re==null?void 0:Re["data-item"])||{};return ee(ee(ee({},Te),Ae),{},{label:z?Te.label:Ae.label})}):[]},he=function be(we){return we.map(function(De,Ae){var Ee,Re=De,Te=Re.className,Oe=Re.optionType,Ne=Xt(Re,vnn),je=De[q],ne=De[H],J=(Ee=De[Q])!==null&&Ee!==void 0?Ee:[];return Oe==="optGroup"||De.options?ee(ee({label:je},Ne),{},{data_title:je,title:je,key:ne??"".concat(je==null?void 0:je.toString(),"-").concat(Ae,"-").concat(uB()),children:be(J)}):ee(ee({title:je},Ne),{},{data_title:je,value:ne??Ae,key:ne??"".concat(je==null?void 0:je.toString(),"-").concat(Ae,"-").concat(uB()),"data-item":De,className:"".concat(pe,"-option ").concat(Te||"").trim(),label:(i==null?void 0:i(De))||je})})};return N.jsx(_g,ee(ee({ref:te,className:me,allowClear:!0,autoClearSearchValue:u,disabled:w,mode:o,showSearch:P,searchValue:j,optionFilterProp:_,optionLabelProp:b,onClear:function(){O==null||O(),x(void 0),P&&F(void 0)}},D),{},{filterOption:D.filterOption==!1?!1:function(be,we){var De,Ae,Ee;return D.filterOption&&typeof D.filterOption=="function"?D.filterOption(be,ee(ee({},we),{},{label:we==null?void 0:we.data_title})):!!(we!=null&&(De=we.data_title)!==null&&De!==void 0&&De.toString().toLowerCase().includes(be.toLowerCase())||we!=null&&(Ae=we.label)!==null&&Ae!==void 0&&Ae.toString().toLowerCase().includes(be.toLowerCase())||we!=null&&(Ee=we.value)!==null&&Ee!==void 0&&Ee.toString().toLowerCase().includes(be.toLowerCase()))},onSearch:P?function(be){v&&x(be),a==null||a(be),F(be)}:void 0,onChange:function(we,De){P&&u&&(x(void 0),a==null||a(""),F(void 0));for(var Ae=arguments.length,Ee=new Array(Ae>2?Ae-2:0),Re=2;Re<Ae;Re++)Ee[Re-2]=arguments[Re];if(!n.labelInValue){l==null||l.apply(void 0,[we,De].concat(Ee));return}if(o!=="multiple"&&!Array.isArray(De)){var Te=De&&De["data-item"];if(!we||!Te){var Oe=we&&ee(ee({},we),{},{label:z?Te==null?void 0:Te.label:we.label});l==null||l.apply(void 0,[Oe,De].concat(Ee))}else l==null||l.apply(void 0,[ee(ee(ee({},we),Te),{},{label:z?Te.label:we.label}),De].concat(Ee));return}var Ne=ve(we,De);l==null||l.apply(void 0,[Ne,De].concat(Ee)),h&&T()},onFocus:function(we){f&&x(j),s==null||s(we)},options:he(C||[])}))};const _nn=V.forwardRef(ynn);var bnn=["value","text"],Snn=["mode","valueEnum","render","renderFormItem","request","fieldProps","plain","children","light","proFieldKey","params","label","bordered","id","lightLabel","labelTrigger"],Enn=function(n){for(var r=n.label,i=n.words,o=m.useContext(or.ConfigContext),a=o.getPrefixCls,s=a("pro-select-item-option-content-light"),l=a("pro-select-item-option-content"),c=ia("Highlight",function(y){return fe(fe({},".".concat(s),{color:y.colorPrimary}),".".concat(l),{flex:"auto",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"})}),u=c.wrapSSR,d=new RegExp(i.map(function(y){return y.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|"),"gi"),f=r,p=[];f.length;){var h=d.exec(f);if(!h){p.push(f);break}var g=h.index,v=h[0].length+g;p.push(f.slice(0,g),V.createElement("span",{className:s},f.slice(g,v))),f=f.slice(v)}return u(V.createElement.apply(V,["div",{title:r,className:l}].concat(p)))};function qie(e,n){var r,i;if(!n||e!=null&&(r=e.label)!==null&&r!==void 0&&r.toString().toLowerCase().includes(n.toLowerCase())||e!=null&&(i=e.value)!==null&&i!==void 0&&i.toString().toLowerCase().includes(n.toLowerCase()))return!0;if(e.children||e.options){var o=[].concat(Tt(e.children||[]),[e.options||[]]).find(function(a){return qie(a,n)});if(o)return!0}return!1}var Cnn=function(n){var r=[],i=i_(n);return i.forEach(function(o,a){var s=i.get(a)||i.get("".concat(a));if(s){if(cn(s)==="object"&&s!==null&&s!==void 0&&s.text){r.push({text:s==null?void 0:s.text,value:a,label:s==null?void 0:s.text,disabled:s.disabled});return}r.push({text:s,value:a})}}),r},SI=function(n){var r,i,o,a,s=n.cacheForSwr,l=n.fieldProps,c=m.useState(n.defaultKeyWords),u=ke(c,2),d=u[0],f=u[1],p=m.useState(function(){return n.proFieldKey?n.proFieldKey.toString():n.request?uB():"no-fetch"}),h=ke(p,1),g=h[0],v=m.useRef(g),y=Wh(function(P){return Cnn(i_(P)).map(function(k){var $=k.value,U=k.text,z=Xt(k,bnn);return ee({label:U,value:$,key:$},z)})}),_=Xu(function(){if(l){var P=(l==null?void 0:l.options)||(l==null?void 0:l.treeData);if(P){var k=l.fieldNames||{},$=k.children,U=k.label,z=k.value,D=function B(Y,q){if(Y!=null&&Y.length)for(var K=Y.length,H=0;H<K;){var G=Y[H++];(G[$]||G[U]||G[z])&&(G[q]=G[q==="children"?$:q==="label"?U:z],B(G[$],q))}};return $&&D(P,"children"),U&&D(P,"label"),z&&D(P,"value"),P}}},[l]),S=dr(function(){return n.valueEnum?y(n.valueEnum):[]},{value:_}),b=ke(S,2),E=b[0],w=b[1];lJt(function(){var P,k;!n.valueEnum||(P=n.fieldProps)!==null&&P!==void 0&&P.options||(k=n.fieldProps)!==null&&k!==void 0&&k.treeData||w(y(n.valueEnum))},[n.valueEnum]);var C=aJt([v.current,n.params,d],(r=(i=n.debounceTime)!==null&&i!==void 0?i:n==null||(o=n.fieldProps)===null||o===void 0?void 0:o.debounceTime)!==null&&r!==void 0?r:0,[n.params,d]),x=ofe(function(){return n.request?C:null},function(P){var k=ke(P,3),$=k[1],U=k[2];return n.request(ee(ee({},$),{},{keyWords:U}),n)},{revalidateIfStale:!s,revalidateOnReconnect:s,shouldRetryOnError:!1,revalidateOnFocus:!1}),T=x.data,R=x.mutate,O=x.isValidating,M=m.useMemo(function(){var P,k,$=E==null?void 0:E.map(function(U){if(typeof U=="string")return{label:U,value:U};if(U.children||U.options){var z=[].concat(Tt(U.children||[]),Tt(U.options||[])).filter(function(D){return qie(D,d)});return ee(ee({},U),{},{children:z,options:z})}return U});return((P=n.fieldProps)===null||P===void 0?void 0:P.filterOption)===!0||((k=n.fieldProps)===null||k===void 0?void 0:k.filterOption)===void 0?$==null?void 0:$.filter(function(U){return U?d?qie(U,d):!0:!1}):$},[E,d,(a=n.fieldProps)===null||a===void 0?void 0:a.filterOption]);return[O,n.request?T:M,function(P){f(P)},function(){f(void 0),R([],!1)}]},wnn=function(n,r){var i,o=n.mode,a=n.valueEnum,s=n.render,l=n.renderFormItem;n.request;var c=n.fieldProps;n.plain,n.children;var u=n.light;n.proFieldKey,n.params;var d=n.label,f=n.bordered,p=n.id,h=n.lightLabel,g=n.labelTrigger,v=Xt(n,Snn),y=m.useRef(),_=cs(),S=m.useRef(""),b=c.fieldNames;m.useEffect(function(){S.current=c==null?void 0:c.searchValue},[c==null?void 0:c.searchValue]);var E=SI(n),w=ke(E,4),C=w[0],x=w[1],T=w[2],R=w[3],O=(or==null||(i=or.useConfig)===null||i===void 0?void 0:i.call(or))||{componentSize:"middle"},M=O.componentSize;m.useImperativeHandle(r,function(){return ee(ee({},y.current||{}),{},{fetchData:function(Y){return T(Y)}})},[T]);var P=m.useMemo(function(){if(o==="read"){var B=b||{},Y=B.label,q=Y===void 0?"label":Y,K=B.value,H=K===void 0?"value":K,G=B.options,Q=G===void 0?"options":G,le=new Map,Z=function j(F){if(!(F!=null&&F.length))return le;for(var te=F.length,oe=0;oe<te;){var de=F[oe++];le.set(de[H],de[q]),j(de[Q])}return le};return Z(x)}},[b,o,x]);if(o==="read"){var k=N.jsx(N.Fragment,{children:bI(v.text,i_(a||P))});if(s){var $;return($=s(k,ee({mode:o},c),k))!==null&&$!==void 0?$:null}return k}if(o==="edit"||o==="update"){var U=function(){return u?N.jsx(gnn,ee(ee({},Cf(f)),{},{id:p,loading:C,ref:y,allowClear:!0,size:M,options:x,label:d,placeholder:_.getMessage("tableForm.selectPlaceholder","请选择"),lightLabel:h,labelTrigger:g,fetchData:T},c)):N.jsx(_nn,ee(ee(ee({className:v.className,style:ee({minWidth:100},v.style)},Cf(f)),{},{id:p,loading:C,ref:y,allowClear:!0,defaultSearchValue:n.defaultKeyWords,notFoundContent:C?N.jsx(e_,{size:"small"}):c==null?void 0:c.notFoundContent,fetchData:function(q){S.current=q??"",T(q)},resetData:R,preserveOriginalLabel:!0,optionItemRender:function(q){return typeof q.label=="string"&&S.current?N.jsx(Enn,{label:q.label,words:[S.current]}):q.label},placeholder:_.getMessage("tableForm.selectPlaceholder","请选择"),label:d},c),{},{options:x}),"SearchSelect")},z=U();if(l){var D;return(D=l(v.text,ee(ee({mode:o},c),{},{options:x,loading:C}),z))!==null&&D!==void 0?D:null}return z}return null};const xnn=V.forwardRef(wnn);var Tnn=["radioType","renderFormItem","mode","render","label","light"],Onn=function(n,r){var i;n.radioType;var o=n.renderFormItem,a=n.mode,s=n.render,l=n.label,c=n.light,u=Xt(n,Tnn),d=m.useContext(or.ConfigContext),f=d.getPrefixCls,p=f("pro-field-cascader"),h=SI(u),g=ke(h,3),v=g[0],y=g[1],_=g[2],S=cs(),b=m.useRef(),E=m.useState(!1),w=ke(E,2),C=w[0],x=w[1];m.useImperativeHandle(r,function(){return ee(ee({},b.current||{}),{},{fetchData:function(q){return _(q)}})},[_]);var T=m.useMemo(function(){var Y;if(a==="read"){var q=((Y=u.fieldProps)===null||Y===void 0?void 0:Y.fieldNames)||{},K=q.value,H=K===void 0?"value":K,G=q.label,Q=G===void 0?"label":G,le=q.children,Z=le===void 0?"children":le,j=new Map,F=function te(oe){if(!(oe!=null&&oe.length))return j;for(var de=oe.length,pe=0;pe<de;){var me=oe[pe++];j.set(me[H],me[Q]),te(me[Z])}return j};return F(y)}},[a,y,(i=u.fieldProps)===null||i===void 0?void 0:i.fieldNames]);if(a==="read"){var R=N.jsx(N.Fragment,{children:bI(u.text,i_(u.valueEnum||T))});if(s){var O;return(O=s(u.text,ee({mode:a},u.fieldProps),R))!==null&&O!==void 0?O:null}return R}if(a==="edit"){var M,P,k=N.jsx(gI,ee(ee(ee({},Cf(!c)),{},{ref:b,open:C,suffixIcon:v?N.jsx(Nm,{}):void 0,placeholder:S.getMessage("tableForm.selectPlaceholder","请选择"),allowClear:((M=u.fieldProps)===null||M===void 0?void 0:M.allowClear)!==!1},u.fieldProps),{},{onDropdownVisibleChange:function(q){var K,H;u==null||(K=u.fieldProps)===null||K===void 0||(H=K.onDropdownVisibleChange)===null||H===void 0||H.call(K,q),x(q)},className:Ce((P=u.fieldProps)===null||P===void 0?void 0:P.className,p),options:y}));if(o){var $;k=($=o(u.text,ee(ee({mode:a},u.fieldProps),{},{options:y,loading:v}),k))!==null&&$!==void 0?$:null}if(c){var U=u.fieldProps,z=U.disabled,D=U.value,B=!!D&&(D==null?void 0:D.length)!==0;return N.jsx(r_,{label:l,disabled:z,bordered:u.bordered,value:B||C?k:null,style:B?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:B||C?!1:void 0,onClick:function(){var q,K;x(!0),u==null||(q=u.fieldProps)===null||q===void 0||(K=q.onDropdownVisibleChange)===null||K===void 0||K.call(q,!0)}})}return k}return null};const Rnn=V.forwardRef(Onn);var Inn=["layout","renderFormItem","mode","render"],Nnn=["fieldNames"],Mnn=function(n,r){var i,o,a=n.layout,s=a===void 0?"horizontal":a,l=n.renderFormItem,c=n.mode,u=n.render,d=Xt(n,Inn),f=m.useContext(or.ConfigContext),p=f.getPrefixCls,h=p("pro-field-checkbox"),g=(i=Hr.Item)===null||i===void 0||(o=i.useStatus)===null||o===void 0?void 0:o.call(i),v=SI(d),y=ke(v,3),_=y[0],S=y[1],b=y[2],E=ia("Checkbox",function(B){return fe({},".".concat(h),{"&-error":{span:{color:B.colorError}},"&-warning":{span:{color:B.colorWarning}},"&-vertical":fe(fe(fe({},"&".concat(B.antCls,"-checkbox-group"),{display:"inline-block"}),"".concat(B.antCls,"-checkbox-wrapper+").concat(B.antCls,"-checkbox-wrapper"),{"margin-inline-start":"0 !important"}),"".concat(B.antCls,"-checkbox-group-item"),{display:"flex",marginInlineEnd:0})})}),w=E.wrapSSR,C=E.hashId,x=S6==null?void 0:S6(),T=x.token,R=m.useRef();if(m.useImperativeHandle(r,function(){return ee(ee({},R.current||{}),{},{fetchData:function(Y){return b(Y)}})},[b]),_)return N.jsx(e_,{size:"small"});if(c==="read"){var O=S!=null&&S.length?S==null?void 0:S.reduce(function(B,Y){var q;return ee(ee({},B),{},fe({},(q=Y.value)!==null&&q!==void 0?q:"",Y.label))},{}):void 0,M=bI(d.text,i_(d.valueEnum||O));if(u){var P;return(P=u(d.text,ee({mode:c},d.fieldProps),N.jsx(N.Fragment,{children:M})))!==null&&P!==void 0?P:null}return N.jsx("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:T.marginSM},children:M})}if(c==="edit"){var k,$=d.fieldProps||{};$.fieldNames;var U=Xt($,Nnn),z=w(N.jsx(ow.Group,ee(ee({},U),{},{className:Ce((k=d.fieldProps)===null||k===void 0?void 0:k.className,C,"".concat(h,"-").concat(s),fe(fe({},"".concat(h,"-error"),(g==null?void 0:g.status)==="error"),"".concat(h,"-warning"),(g==null?void 0:g.status)==="warning")),options:S})));if(l){var D;return(D=l(d.text,ee(ee({mode:c},d.fieldProps),{},{options:S,loading:_}),z))!==null&&D!==void 0?D:null}return z}return null};const Pnn=V.forwardRef(Mnn);var Ann=function(n,r){if(typeof n!="string")return n;try{if(r==="json")return JSON.stringify(JSON.parse(n),null,2)}catch{}return n},Dnn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.language,l=s===void 0?"text":s,c=n.renderFormItem,u=n.plain,d=n.fieldProps,f=Ann(i,l),p=Pm.useToken(),h=p.token;if(o==="read"){var g=N.jsx("pre",ee(ee({ref:r},d),{},{style:ee({padding:16,overflow:"auto",fontSize:"85%",lineHeight:1.45,color:h.colorTextSecondary,fontFamily:h.fontFamilyCode,backgroundColor:"rgba(150, 150, 150, 0.1)",borderRadius:3,width:"min-content"},d.style),children:N.jsx("code",{children:f})}));return a?a(f,ee(ee({mode:o},d),{},{ref:r}),g):g}if(o==="edit"||o==="update"){d.value=f;var v=N.jsx(Oi.TextArea,ee(ee({rows:5},d),{},{ref:r}));if(u&&(v=N.jsx(Oi,ee(ee({},d),{},{ref:r}))),c){var y;return(y=c(f,ee(ee({mode:o},d),{},{ref:r}),v))!==null&&y!==void 0?y:null}return v}return null};const Xxe=V.forwardRef(Dnn);var pp={},$k={},knn=typeof oo=="object"&&oo&&oo.Object===Object&&oo,TWe=knn,Lnn=TWe,$nn=typeof self=="object"&&self&&self.Object===Object&&self,Fnn=Lnn||$nn||Function("return this")(),Cg=Fnn,Bnn=Cg,jnn=Bnn.Symbol,EI=jnn,Qxe=EI,OWe=Object.prototype,Unn=OWe.hasOwnProperty,Hnn=OWe.toString,vM=Qxe?Qxe.toStringTag:void 0;function znn(e){var n=Unn.call(e,vM),r=e[vM];try{e[vM]=void 0;var i=!0}catch{}var o=Hnn.call(e);return i&&(n?e[vM]=r:delete e[vM]),o}var Vnn=znn,Gnn=Object.prototype,Wnn=Gnn.toString;function Ynn(e){return Wnn.call(e)}var qnn=Ynn,Zxe=EI,Knn=Vnn,Xnn=qnn,Qnn="[object Null]",Znn="[object Undefined]",Jxe=Zxe?Zxe.toStringTag:void 0;function Jnn(e){return e==null?e===void 0?Znn:Qnn:Jxe&&Jxe in Object(e)?Knn(e):Xnn(e)}var s_=Jnn,ern=Array.isArray,Xc=ern;const RWe=Or(Xc);function trn(e){return e!=null&&typeof e=="object"}var Hp=trn,nrn=s_,rrn=Xc,irn=Hp,orn="[object String]";function arn(e){return typeof e=="string"||!rrn(e)&&irn(e)&&nrn(e)==orn}var hfe=arn;const Es=Or(hfe);function srn(e){return function(n,r,i){for(var o=-1,a=Object(n),s=i(n),l=s.length;l--;){var c=s[e?l:++o];if(r(a[c],c,a)===!1)break}return n}}var lrn=srn,crn=lrn,urn=crn(),IWe=urn;function drn(e,n){for(var r=-1,i=Array(e);++r<e;)i[r]=n(r);return i}var frn=drn,prn=s_,hrn=Hp,grn="[object Arguments]";function mrn(e){return hrn(e)&&prn(e)==grn}var vrn=mrn,eTe=vrn,yrn=Hp,NWe=Object.prototype,_rn=NWe.hasOwnProperty,brn=NWe.propertyIsEnumerable,Srn=eTe(function(){return arguments}())?eTe:function(e){return yrn(e)&&_rn.call(e,"callee")&&!brn.call(e,"callee")},Fk=Srn,hB={exports:{}};function Ern(){return!1}var Crn=Ern;hB.exports;(function(e,n){var r=Cg,i=Crn,o=n&&!n.nodeType&&n,a=o&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||i;e.exports=u})(hB,hB.exports);var Bk=hB.exports,wrn=9007199254740991,xrn=/^(?:0|[1-9]\d*)$/;function Trn(e,n){var r=typeof e;return n=n??wrn,!!n&&(r=="number"||r!="symbol"&&xrn.test(e))&&e>-1&&e%1==0&&e<n}var HU=Trn,Orn=9007199254740991;function Rrn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Orn}var gfe=Rrn,Irn=s_,Nrn=gfe,Mrn=Hp,Prn="[object Arguments]",Arn="[object Array]",Drn="[object Boolean]",krn="[object Date]",Lrn="[object Error]",$rn="[object Function]",Frn="[object Map]",Brn="[object Number]",jrn="[object Object]",Urn="[object RegExp]",Hrn="[object Set]",zrn="[object String]",Vrn="[object WeakMap]",Grn="[object ArrayBuffer]",Wrn="[object DataView]",Yrn="[object Float32Array]",qrn="[object Float64Array]",Krn="[object Int8Array]",Xrn="[object Int16Array]",Qrn="[object Int32Array]",Zrn="[object Uint8Array]",Jrn="[object Uint8ClampedArray]",ein="[object Uint16Array]",tin="[object Uint32Array]",ba={};ba[Yrn]=ba[qrn]=ba[Krn]=ba[Xrn]=ba[Qrn]=ba[Zrn]=ba[Jrn]=ba[ein]=ba[tin]=!0;ba[Prn]=ba[Arn]=ba[Grn]=ba[Drn]=ba[Wrn]=ba[krn]=ba[Lrn]=ba[$rn]=ba[Frn]=ba[Brn]=ba[jrn]=ba[Urn]=ba[Hrn]=ba[zrn]=ba[Vrn]=!1;function nin(e){return Mrn(e)&&Nrn(e.length)&&!!ba[Irn(e)]}var rin=nin;function iin(e){return function(n){return e(n)}}var zU=iin,gB={exports:{}};gB.exports;(function(e,n){var r=TWe,i=n&&!n.nodeType&&n,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,l=function(){try{var c=o&&o.require&&o.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(gB,gB.exports);var mfe=gB.exports,oin=rin,ain=zU,tTe=mfe,nTe=tTe&&tTe.isTypedArray,sin=nTe?ain(nTe):oin,VU=sin,lin=frn,cin=Fk,uin=Xc,din=Bk,fin=HU,pin=VU,hin=Object.prototype,gin=hin.hasOwnProperty;function min(e,n){var r=uin(e),i=!r&&cin(e),o=!r&&!i&&din(e),a=!r&&!i&&!o&&pin(e),s=r||i||o||a,l=s?lin(e.length,String):[],c=l.length;for(var u in e)(n||gin.call(e,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||fin(u,c)))&&l.push(u);return l}var MWe=min,vin=Object.prototype;function yin(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||vin;return e===r}var jk=yin;function _in(e,n){return function(r){return e(n(r))}}var PWe=_in,bin=PWe,Sin=bin(Object.keys,Object),Ein=Sin,Cin=jk,win=Ein,xin=Object.prototype,Tin=xin.hasOwnProperty;function Oin(e){if(!Cin(e))return win(e);var n=[];for(var r in Object(e))Tin.call(e,r)&&r!="constructor"&&n.push(r);return n}var AWe=Oin;function Rin(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Cd=Rin;const DWe=Or(Cd);var Iin=s_,Nin=Cd,Min="[object AsyncFunction]",Pin="[object Function]",Ain="[object GeneratorFunction]",Din="[object Proxy]";function kin(e){if(!Nin(e))return!1;var n=Iin(e);return n==Pin||n==Ain||n==Min||n==Din}var GU=kin;const za=Or(GU);var Lin=GU,$in=gfe;function Fin(e){return e!=null&&$in(e.length)&&!Lin(e)}var l_=Fin,Bin=MWe,jin=AWe,Uin=l_;function Hin(e){return Uin(e)?Bin(e):jin(e)}var pw=Hin,zin=IWe,Vin=pw;function Gin(e,n){return e&&zin(e,n,Vin)}var kWe=Gin;function Win(e){return e}var Uk=Win,Yin=Uk;function qin(e){return typeof e=="function"?e:Yin}var LWe=qin,Kin=kWe,Xin=LWe;function Qin(e,n){return e&&Kin(e,Xin(n))}var vfe=Qin,Zin=PWe,Jin=Zin(Object.getPrototypeOf,Object),yfe=Jin,eon=s_,ton=yfe,non=Hp,ron="[object Object]",ion=Function.prototype,oon=Object.prototype,$We=ion.toString,aon=oon.hasOwnProperty,son=$We.call(Object);function lon(e){if(!non(e)||eon(e)!=ron)return!1;var n=ton(e);if(n===null)return!0;var r=aon.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&$We.call(r)==son}var WU=lon;const con=Or(WU);function uon(e,n){for(var r=-1,i=e==null?0:e.length,o=Array(i);++r<i;)o[r]=n(e[r],r,e);return o}var Hk=uon;function don(){this.__data__=[],this.size=0}var fon=don;function pon(e,n){return e===n||e!==e&&n!==n}var zk=pon,hon=zk;function gon(e,n){for(var r=e.length;r--;)if(hon(e[r][0],n))return r;return-1}var YU=gon,mon=YU,von=Array.prototype,yon=von.splice;function _on(e){var n=this.__data__,r=mon(n,e);if(r<0)return!1;var i=n.length-1;return r==i?n.pop():yon.call(n,r,1),--this.size,!0}var bon=_on,Son=YU;function Eon(e){var n=this.__data__,r=Son(n,e);return r<0?void 0:n[r][1]}var Con=Eon,won=YU;function xon(e){return won(this.__data__,e)>-1}var Ton=xon,Oon=YU;function Ron(e,n){var r=this.__data__,i=Oon(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}var Ion=Ron,Non=fon,Mon=bon,Pon=Con,Aon=Ton,Don=Ion;function CI(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}CI.prototype.clear=Non;CI.prototype.delete=Mon;CI.prototype.get=Pon;CI.prototype.has=Aon;CI.prototype.set=Don;var qU=CI,kon=qU;function Lon(){this.__data__=new kon,this.size=0}var $on=Lon;function Fon(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}var Bon=Fon;function jon(e){return this.__data__.get(e)}var Uon=jon;function Hon(e){return this.__data__.has(e)}var zon=Hon,Von=Cg,Gon=Von["__core-js_shared__"],Won=Gon,Gq=Won,rTe=function(){var e=/[^.]+$/.exec(Gq&&Gq.keys&&Gq.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Yon(e){return!!rTe&&rTe in e}var qon=Yon,Kon=Function.prototype,Xon=Kon.toString;function Qon(e){if(e!=null){try{return Xon.call(e)}catch{}try{return e+""}catch{}}return""}var FWe=Qon,Zon=GU,Jon=qon,ean=Cd,tan=FWe,nan=/[\\^$.*+?()[\]{}|]/g,ran=/^\[object .+?Constructor\]$/,ian=Function.prototype,oan=Object.prototype,aan=ian.toString,san=oan.hasOwnProperty,lan=RegExp("^"+aan.call(san).replace(nan,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function can(e){if(!ean(e)||Jon(e))return!1;var n=Zon(e)?lan:ran;return n.test(tan(e))}var uan=can;function dan(e,n){return e==null?void 0:e[n]}var fan=dan,pan=uan,han=fan;function gan(e,n){var r=han(e,n);return pan(r)?r:void 0}var hw=gan,man=hw,van=Cg,yan=man(van,"Map"),_fe=yan,_an=hw,ban=_an(Object,"create"),KU=ban,iTe=KU;function San(){this.__data__=iTe?iTe(null):{},this.size=0}var Ean=San;function Can(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var wan=Can,xan=KU,Tan="__lodash_hash_undefined__",Oan=Object.prototype,Ran=Oan.hasOwnProperty;function Ian(e){var n=this.__data__;if(xan){var r=n[e];return r===Tan?void 0:r}return Ran.call(n,e)?n[e]:void 0}var Nan=Ian,Man=KU,Pan=Object.prototype,Aan=Pan.hasOwnProperty;function Dan(e){var n=this.__data__;return Man?n[e]!==void 0:Aan.call(n,e)}var kan=Dan,Lan=KU,$an="__lodash_hash_undefined__";function Fan(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Lan&&n===void 0?$an:n,this}var Ban=Fan,jan=Ean,Uan=wan,Han=Nan,zan=kan,Van=Ban;function wI(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}wI.prototype.clear=jan;wI.prototype.delete=Uan;wI.prototype.get=Han;wI.prototype.has=zan;wI.prototype.set=Van;var Gan=wI,oTe=Gan,Wan=qU,Yan=_fe;function qan(){this.size=0,this.__data__={hash:new oTe,map:new(Yan||Wan),string:new oTe}}var Kan=qan;function Xan(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var Qan=Xan,Zan=Qan;function Jan(e,n){var r=e.__data__;return Zan(n)?r[typeof n=="string"?"string":"hash"]:r.map}var XU=Jan,esn=XU;function tsn(e){var n=esn(this,e).delete(e);return this.size-=n?1:0,n}var nsn=tsn,rsn=XU;function isn(e){return rsn(this,e).get(e)}var osn=isn,asn=XU;function ssn(e){return asn(this,e).has(e)}var lsn=ssn,csn=XU;function usn(e,n){var r=csn(this,e),i=r.size;return r.set(e,n),this.size+=r.size==i?0:1,this}var dsn=usn,fsn=Kan,psn=nsn,hsn=osn,gsn=lsn,msn=dsn;function xI(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}xI.prototype.clear=fsn;xI.prototype.delete=psn;xI.prototype.get=hsn;xI.prototype.has=gsn;xI.prototype.set=msn;var bfe=xI,vsn=qU,ysn=_fe,_sn=bfe,bsn=200;function Ssn(e,n){var r=this.__data__;if(r instanceof vsn){var i=r.__data__;if(!ysn||i.length<bsn-1)return i.push([e,n]),this.size=++r.size,this;r=this.__data__=new _sn(i)}return r.set(e,n),this.size=r.size,this}var Esn=Ssn,Csn=qU,wsn=$on,xsn=Bon,Tsn=Uon,Osn=zon,Rsn=Esn;function TI(e){var n=this.__data__=new Csn(e);this.size=n.size}TI.prototype.clear=wsn;TI.prototype.delete=xsn;TI.prototype.get=Tsn;TI.prototype.has=Osn;TI.prototype.set=Rsn;var QU=TI,Isn="__lodash_hash_undefined__";function Nsn(e){return this.__data__.set(e,Isn),this}var Msn=Nsn;function Psn(e){return this.__data__.has(e)}var Asn=Psn,Dsn=bfe,ksn=Msn,Lsn=Asn;function mB(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new Dsn;++n<r;)this.add(e[n])}mB.prototype.add=mB.prototype.push=ksn;mB.prototype.has=Lsn;var Sfe=mB;function $sn(e,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(e[r],r,e))return!0;return!1}var Fsn=$sn;function Bsn(e,n){return e.has(n)}var Efe=Bsn,jsn=Sfe,Usn=Fsn,Hsn=Efe,zsn=1,Vsn=2;function Gsn(e,n,r,i,o,a){var s=r&zsn,l=e.length,c=n.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(n);if(u&&d)return u==n&&d==e;var f=-1,p=!0,h=r&Vsn?new jsn:void 0;for(a.set(e,n),a.set(n,e);++f<l;){var g=e[f],v=n[f];if(i)var y=s?i(v,g,f,n,e,a):i(g,v,f,e,n,a);if(y!==void 0){if(y)continue;p=!1;break}if(h){if(!Usn(n,function(_,S){if(!Hsn(h,S)&&(g===_||o(g,_,r,i,a)))return h.push(S)})){p=!1;break}}else if(!(g===v||o(g,v,r,i,a))){p=!1;break}}return a.delete(e),a.delete(n),p}var BWe=Gsn,Wsn=Cg,Ysn=Wsn.Uint8Array,jWe=Ysn;function qsn(e){var n=-1,r=Array(e.size);return e.forEach(function(i,o){r[++n]=[o,i]}),r}var Ksn=qsn;function Xsn(e){var n=-1,r=Array(e.size);return e.forEach(function(i){r[++n]=i}),r}var Cfe=Xsn,aTe=EI,sTe=jWe,Qsn=zk,Zsn=BWe,Jsn=Ksn,eln=Cfe,tln=1,nln=2,rln="[object Boolean]",iln="[object Date]",oln="[object Error]",aln="[object Map]",sln="[object Number]",lln="[object RegExp]",cln="[object Set]",uln="[object String]",dln="[object Symbol]",fln="[object ArrayBuffer]",pln="[object DataView]",lTe=aTe?aTe.prototype:void 0,Wq=lTe?lTe.valueOf:void 0;function hln(e,n,r,i,o,a,s){switch(r){case pln:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case fln:return!(e.byteLength!=n.byteLength||!a(new sTe(e),new sTe(n)));case rln:case iln:case sln:return Qsn(+e,+n);case oln:return e.name==n.name&&e.message==n.message;case lln:case uln:return e==n+"";case aln:var l=Jsn;case cln:var c=i&tln;if(l||(l=eln),e.size!=n.size&&!c)return!1;var u=s.get(e);if(u)return u==n;i|=nln,s.set(e,n);var d=Zsn(l(e),l(n),i,o,a,s);return s.delete(e),d;case dln:if(Wq)return Wq.call(e)==Wq.call(n)}return!1}var gln=hln;function mln(e,n){for(var r=-1,i=n.length,o=e.length;++r<i;)e[o+r]=n[r];return e}var wfe=mln,vln=wfe,yln=Xc;function _ln(e,n,r){var i=n(e);return yln(e)?i:vln(i,r(e))}var UWe=_ln;function bln(e,n){for(var r=-1,i=e==null?0:e.length,o=0,a=[];++r<i;){var s=e[r];n(s,r,e)&&(a[o++]=s)}return a}var Sln=bln;function Eln(){return[]}var HWe=Eln,Cln=Sln,wln=HWe,xln=Object.prototype,Tln=xln.propertyIsEnumerable,cTe=Object.getOwnPropertySymbols,Oln=cTe?function(e){return e==null?[]:(e=Object(e),Cln(cTe(e),function(n){return Tln.call(e,n)}))}:wln,xfe=Oln,Rln=UWe,Iln=xfe,Nln=pw;function Mln(e){return Rln(e,Nln,Iln)}var zWe=Mln,uTe=zWe,Pln=1,Aln=Object.prototype,Dln=Aln.hasOwnProperty;function kln(e,n,r,i,o,a){var s=r&Pln,l=uTe(e),c=l.length,u=uTe(n),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in n:Dln.call(n,p)))return!1}var h=a.get(e),g=a.get(n);if(h&&g)return h==n&&g==e;var v=!0;a.set(e,n),a.set(n,e);for(var y=s;++f<c;){p=l[f];var _=e[p],S=n[p];if(i)var b=s?i(S,_,p,n,e,a):i(_,S,p,e,n,a);if(!(b===void 0?_===S||o(_,S,r,i,a):b)){v=!1;break}y||(y=p=="constructor")}if(v&&!y){var E=e.constructor,w=n.constructor;E!=w&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(v=!1)}return a.delete(e),a.delete(n),v}var Lln=kln,$ln=hw,Fln=Cg,Bln=$ln(Fln,"DataView"),jln=Bln,Uln=hw,Hln=Cg,zln=Uln(Hln,"Promise"),Vln=zln,Gln=hw,Wln=Cg,Yln=Gln(Wln,"Set"),VWe=Yln,qln=hw,Kln=Cg,Xln=qln(Kln,"WeakMap"),Qln=Xln,Kie=jln,Xie=_fe,Qie=Vln,Zie=VWe,Jie=Qln,GWe=s_,OI=FWe,dTe="[object Map]",Zln="[object Object]",fTe="[object Promise]",pTe="[object Set]",hTe="[object WeakMap]",gTe="[object DataView]",Jln=OI(Kie),ecn=OI(Xie),tcn=OI(Qie),ncn=OI(Zie),rcn=OI(Jie),PE=GWe;(Kie&&PE(new Kie(new ArrayBuffer(1)))!=gTe||Xie&&PE(new Xie)!=dTe||Qie&&PE(Qie.resolve())!=fTe||Zie&&PE(new Zie)!=pTe||Jie&&PE(new Jie)!=hTe)&&(PE=function(e){var n=GWe(e),r=n==Zln?e.constructor:void 0,i=r?OI(r):"";if(i)switch(i){case Jln:return gTe;case ecn:return dTe;case tcn:return fTe;case ncn:return pTe;case rcn:return hTe}return n});var Vk=PE,Yq=QU,icn=BWe,ocn=gln,acn=Lln,mTe=Vk,vTe=Xc,yTe=Bk,scn=VU,lcn=1,_Te="[object Arguments]",bTe="[object Array]",f4="[object Object]",ccn=Object.prototype,STe=ccn.hasOwnProperty;function ucn(e,n,r,i,o,a){var s=vTe(e),l=vTe(n),c=s?bTe:mTe(e),u=l?bTe:mTe(n);c=c==_Te?f4:c,u=u==_Te?f4:u;var d=c==f4,f=u==f4,p=c==u;if(p&&yTe(e)){if(!yTe(n))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Yq),s||scn(e)?icn(e,n,r,i,o,a):ocn(e,n,c,r,i,o,a);if(!(r&lcn)){var h=d&&STe.call(e,"__wrapped__"),g=f&&STe.call(n,"__wrapped__");if(h||g){var v=h?e.value():e,y=g?n.value():n;return a||(a=new Yq),o(v,y,r,i,a)}}return p?(a||(a=new Yq),acn(e,n,r,i,o,a)):!1}var dcn=ucn,fcn=dcn,ETe=Hp;function WWe(e,n,r,i,o){return e===n?!0:e==null||n==null||!ETe(e)&&!ETe(n)?e!==e&&n!==n:fcn(e,n,r,i,WWe,o)}var Tfe=WWe,pcn=QU,hcn=Tfe,gcn=1,mcn=2;function vcn(e,n,r,i){var o=r.length,a=o,s=!i;if(e==null)return!a;for(e=Object(e);o--;){var l=r[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){l=r[o];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var f=new pcn;if(i)var p=i(u,d,c,e,n,f);if(!(p===void 0?hcn(d,u,gcn|mcn,i,f):p))return!1}}return!0}var ycn=vcn,_cn=Cd;function bcn(e){return e===e&&!_cn(e)}var YWe=bcn,Scn=YWe,Ecn=pw;function Ccn(e){for(var n=Ecn(e),r=n.length;r--;){var i=n[r],o=e[i];n[r]=[i,o,Scn(o)]}return n}var wcn=Ccn;function xcn(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}var qWe=xcn,Tcn=ycn,Ocn=wcn,Rcn=qWe;function Icn(e){var n=Ocn(e);return n.length==1&&n[0][2]?Rcn(n[0][0],n[0][1]):function(r){return r===e||Tcn(r,e,n)}}var Ncn=Icn,Mcn=s_,Pcn=Hp,Acn="[object Symbol]";function Dcn(e){return typeof e=="symbol"||Pcn(e)&&Mcn(e)==Acn}var Gk=Dcn,kcn=Xc,Lcn=Gk,$cn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fcn=/^\w*$/;function Bcn(e,n){if(kcn(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Lcn(e)?!0:Fcn.test(e)||!$cn.test(e)||n!=null&&e in Object(n)}var Ofe=Bcn,KWe=bfe,jcn="Expected a function";function Rfe(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(jcn);var r=function(){var i=arguments,o=n?n.apply(this,i):i[0],a=r.cache;if(a.has(o))return a.get(o);var s=e.apply(this,i);return r.cache=a.set(o,s)||a,s};return r.cache=new(Rfe.Cache||KWe),r}Rfe.Cache=KWe;var Ucn=Rfe,Hcn=Ucn,zcn=500;function Vcn(e){var n=Hcn(e,function(i){return r.size===zcn&&r.clear(),i}),r=n.cache;return n}var Gcn=Vcn,Wcn=Gcn,Ycn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qcn=/\\(\\)?/g,Kcn=Wcn(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Ycn,function(r,i,o,a){n.push(o?a.replace(qcn,"$1"):i||r)}),n}),Xcn=Kcn,CTe=EI,Qcn=Hk,Zcn=Xc,Jcn=Gk,eun=1/0,wTe=CTe?CTe.prototype:void 0,xTe=wTe?wTe.toString:void 0;function XWe(e){if(typeof e=="string")return e;if(Zcn(e))return Qcn(e,XWe)+"";if(Jcn(e))return xTe?xTe.call(e):"";var n=e+"";return n=="0"&&1/e==-eun?"-0":n}var tun=XWe,nun=tun;function run(e){return e==null?"":nun(e)}var iun=run,oun=Xc,aun=Ofe,sun=Xcn,lun=iun;function cun(e,n){return oun(e)?e:aun(e,n)?[e]:sun(lun(e))}var RI=cun,uun=Gk,dun=1/0;function fun(e){if(typeof e=="string"||uun(e))return e;var n=e+"";return n=="0"&&1/e==-dun?"-0":n}var II=fun,pun=RI,hun=II;function gun(e,n){n=pun(n,e);for(var r=0,i=n.length;e!=null&&r<i;)e=e[hun(n[r++])];return r&&r==i?e:void 0}var ZU=gun,mun=ZU;function vun(e,n,r){var i=e==null?void 0:mun(e,n);return i===void 0?r:i}var QWe=vun;const fr=Or(QWe);function yun(e,n){return e!=null&&n in Object(e)}var _un=yun,bun=RI,Sun=Fk,Eun=Xc,Cun=HU,wun=gfe,xun=II;function Tun(e,n,r){n=bun(n,e);for(var i=-1,o=n.length,a=!1;++i<o;){var s=xun(n[i]);if(!(a=e!=null&&r(e,s)))break;e=e[s]}return a||++i!=o?a:(o=e==null?0:e.length,!!o&&wun(o)&&Cun(s,o)&&(Eun(e)||Sun(e)))}var Oun=Tun,Run=_un,Iun=Oun;function Nun(e,n){return e!=null&&Iun(e,n,Run)}var ZWe=Nun,Mun=Tfe,Pun=QWe,Aun=ZWe,Dun=Ofe,kun=YWe,Lun=qWe,$un=II,Fun=1,Bun=2;function jun(e,n){return Dun(e)&&kun(n)?Lun($un(e),n):function(r){var i=Pun(r,e);return i===void 0&&i===n?Aun(r,e):Mun(n,i,Fun|Bun)}}var Uun=jun;function Hun(e){return function(n){return n==null?void 0:n[e]}}var zun=Hun,Vun=ZU;function Gun(e){return function(n){return Vun(n,e)}}var Wun=Gun,Yun=zun,qun=Wun,Kun=Ofe,Xun=II;function Qun(e){return Kun(e)?Yun(Xun(e)):qun(e)}var Zun=Qun,Jun=Ncn,edn=Uun,tdn=Uk,ndn=Xc,rdn=Zun;function idn(e){return typeof e=="function"?e:e==null?tdn:typeof e=="object"?ndn(e)?edn(e[0],e[1]):Jun(e):rdn(e)}var odn=idn,adn=l_;function sdn(e,n){return function(r,i){if(r==null)return r;if(!adn(r))return e(r,i);for(var o=r.length,a=n?o:-1,s=Object(r);(n?a--:++a<o)&&i(s[a],a,s)!==!1;);return r}}var ldn=sdn,cdn=kWe,udn=ldn,ddn=udn(cdn),JWe=ddn,fdn=JWe,pdn=l_;function hdn(e,n){var r=-1,i=pdn(e)?Array(e.length):[];return fdn(e,function(o,a,s){i[++r]=n(o,a,s)}),i}var gdn=hdn,mdn=Hk,vdn=odn,ydn=gdn,_dn=Xc;function bdn(e,n){var r=_dn(e)?mdn:ydn;return r(e,vdn(n))}var Sdn=bdn;Object.defineProperty($k,"__esModule",{value:!0});$k.flattenNames=void 0;var Edn=hfe,Cdn=JU(Edn),wdn=vfe,xdn=JU(wdn),Tdn=WU,Odn=JU(Tdn),Rdn=Sdn,Idn=JU(Rdn);function JU(e){return e&&e.__esModule?e:{default:e}}var Ndn=$k.flattenNames=function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,Idn.default)(n,function(i){Array.isArray(i)?e(i).map(function(o){return r.push(o)}):(0,Odn.default)(i)?(0,xdn.default)(i,function(o,a){o===!0&&r.push(a),r.push(a+"-"+o)}):(0,Cdn.default)(i)&&r.push(i)}),r};$k.default=Ndn;var Wk={};function Mdn(e,n){for(var r=-1,i=e==null?0:e.length;++r<i&&n(e[r],r,e)!==!1;);return e}var eYe=Mdn,Pdn=hw,Adn=function(){try{var e=Pdn(Object,"defineProperty");return e({},"",{}),e}catch{}}(),tYe=Adn,TTe=tYe;function Ddn(e,n,r){n=="__proto__"&&TTe?TTe(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}var Ife=Ddn,kdn=Ife,Ldn=zk,$dn=Object.prototype,Fdn=$dn.hasOwnProperty;function Bdn(e,n,r){var i=e[n];(!(Fdn.call(e,n)&&Ldn(i,r))||r===void 0&&!(n in e))&&kdn(e,n,r)}var eH=Bdn,jdn=eH,Udn=Ife;function Hdn(e,n,r,i){var o=!r;r||(r={});for(var a=-1,s=n.length;++a<s;){var l=n[a],c=i?i(r[l],e[l],l,r,e):void 0;c===void 0&&(c=e[l]),o?Udn(r,l,c):jdn(r,l,c)}return r}var gw=Hdn,zdn=gw,Vdn=pw;function Gdn(e,n){return e&&zdn(n,Vdn(n),e)}var Wdn=Gdn;function Ydn(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var qdn=Ydn,Kdn=Cd,Xdn=jk,Qdn=qdn,Zdn=Object.prototype,Jdn=Zdn.hasOwnProperty;function efn(e){if(!Kdn(e))return Qdn(e);var n=Xdn(e),r=[];for(var i in e)i=="constructor"&&(n||!Jdn.call(e,i))||r.push(i);return r}var tfn=efn,nfn=MWe,rfn=tfn,ifn=l_;function ofn(e){return ifn(e)?nfn(e,!0):rfn(e)}var Yk=ofn,afn=gw,sfn=Yk;function lfn(e,n){return e&&afn(n,sfn(n),e)}var cfn=lfn,vB={exports:{}};vB.exports;(function(e,n){var r=Cg,i=n&&!n.nodeType&&n,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var f=u.length,p=l?l(f):new u.constructor(f);return u.copy(p),p}e.exports=c})(vB,vB.exports);var nYe=vB.exports;function ufn(e,n){var r=-1,i=e.length;for(n||(n=Array(i));++r<i;)n[r]=e[r];return n}var rYe=ufn,dfn=gw,ffn=xfe;function pfn(e,n){return dfn(e,ffn(e),n)}var hfn=pfn,gfn=wfe,mfn=yfe,vfn=xfe,yfn=HWe,_fn=Object.getOwnPropertySymbols,bfn=_fn?function(e){for(var n=[];e;)gfn(n,vfn(e)),e=mfn(e);return n}:yfn,iYe=bfn,Sfn=gw,Efn=iYe;function Cfn(e,n){return Sfn(e,Efn(e),n)}var wfn=Cfn,xfn=UWe,Tfn=iYe,Ofn=Yk;function Rfn(e){return xfn(e,Ofn,Tfn)}var oYe=Rfn,Ifn=Object.prototype,Nfn=Ifn.hasOwnProperty;function Mfn(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Nfn.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Pfn=Mfn,OTe=jWe;function Afn(e){var n=new e.constructor(e.byteLength);return new OTe(n).set(new OTe(e)),n}var Nfe=Afn,Dfn=Nfe;function kfn(e,n){var r=n?Dfn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Lfn=kfn,$fn=/\w*$/;function Ffn(e){var n=new e.constructor(e.source,$fn.exec(e));return n.lastIndex=e.lastIndex,n}var Bfn=Ffn,RTe=EI,ITe=RTe?RTe.prototype:void 0,NTe=ITe?ITe.valueOf:void 0;function jfn(e){return NTe?Object(NTe.call(e)):{}}var Ufn=jfn,Hfn=Nfe;function zfn(e,n){var r=n?Hfn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var aYe=zfn,Vfn=Nfe,Gfn=Lfn,Wfn=Bfn,Yfn=Ufn,qfn=aYe,Kfn="[object Boolean]",Xfn="[object Date]",Qfn="[object Map]",Zfn="[object Number]",Jfn="[object RegExp]",epn="[object Set]",tpn="[object String]",npn="[object Symbol]",rpn="[object ArrayBuffer]",ipn="[object DataView]",opn="[object Float32Array]",apn="[object Float64Array]",spn="[object Int8Array]",lpn="[object Int16Array]",cpn="[object Int32Array]",upn="[object Uint8Array]",dpn="[object Uint8ClampedArray]",fpn="[object Uint16Array]",ppn="[object Uint32Array]";function hpn(e,n,r){var i=e.constructor;switch(n){case rpn:return Vfn(e);case Kfn:case Xfn:return new i(+e);case ipn:return Gfn(e,r);case opn:case apn:case spn:case lpn:case cpn:case upn:case dpn:case fpn:case ppn:return qfn(e,r);case Qfn:return new i;case Zfn:case tpn:return new i(e);case Jfn:return Wfn(e);case epn:return new i;case npn:return Yfn(e)}}var gpn=hpn,mpn=Cd,MTe=Object.create,vpn=function(){function e(){}return function(n){if(!mpn(n))return{};if(MTe)return MTe(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}(),ypn=vpn,_pn=ypn,bpn=yfe,Spn=jk;function Epn(e){return typeof e.constructor=="function"&&!Spn(e)?_pn(bpn(e)):{}}var sYe=Epn,Cpn=Vk,wpn=Hp,xpn="[object Map]";function Tpn(e){return wpn(e)&&Cpn(e)==xpn}var Opn=Tpn,Rpn=Opn,Ipn=zU,PTe=mfe,ATe=PTe&&PTe.isMap,Npn=ATe?Ipn(ATe):Rpn,Mpn=Npn,Ppn=Vk,Apn=Hp,Dpn="[object Set]";function kpn(e){return Apn(e)&&Ppn(e)==Dpn}var Lpn=kpn,$pn=Lpn,Fpn=zU,DTe=mfe,kTe=DTe&&DTe.isSet,Bpn=kTe?Fpn(kTe):$pn,lYe=Bpn;const jpn=Or(lYe);var Upn=QU,Hpn=eYe,zpn=eH,Vpn=Wdn,Gpn=cfn,Wpn=nYe,Ypn=rYe,qpn=hfn,Kpn=wfn,Xpn=zWe,Qpn=oYe,Zpn=Vk,Jpn=Pfn,ehn=gpn,thn=sYe,nhn=Xc,rhn=Bk,ihn=Mpn,ohn=Cd,ahn=lYe,shn=pw,lhn=Yk,chn=1,uhn=2,dhn=4,cYe="[object Arguments]",fhn="[object Array]",phn="[object Boolean]",hhn="[object Date]",ghn="[object Error]",uYe="[object Function]",mhn="[object GeneratorFunction]",vhn="[object Map]",yhn="[object Number]",dYe="[object Object]",_hn="[object RegExp]",bhn="[object Set]",Shn="[object String]",Ehn="[object Symbol]",Chn="[object WeakMap]",whn="[object ArrayBuffer]",xhn="[object DataView]",Thn="[object Float32Array]",Ohn="[object Float64Array]",Rhn="[object Int8Array]",Ihn="[object Int16Array]",Nhn="[object Int32Array]",Mhn="[object Uint8Array]",Phn="[object Uint8ClampedArray]",Ahn="[object Uint16Array]",Dhn="[object Uint32Array]",aa={};aa[cYe]=aa[fhn]=aa[whn]=aa[xhn]=aa[phn]=aa[hhn]=aa[Thn]=aa[Ohn]=aa[Rhn]=aa[Ihn]=aa[Nhn]=aa[vhn]=aa[yhn]=aa[dYe]=aa[_hn]=aa[bhn]=aa[Shn]=aa[Ehn]=aa[Mhn]=aa[Phn]=aa[Ahn]=aa[Dhn]=!0;aa[ghn]=aa[uYe]=aa[Chn]=!1;function E6(e,n,r,i,o,a){var s,l=n&chn,c=n&uhn,u=n&dhn;if(r&&(s=o?r(e,i,o,a):r(e)),s!==void 0)return s;if(!ohn(e))return e;var d=nhn(e);if(d){if(s=Jpn(e),!l)return Ypn(e,s)}else{var f=Zpn(e),p=f==uYe||f==mhn;if(rhn(e))return Wpn(e,l);if(f==dYe||f==cYe||p&&!o){if(s=c||p?{}:thn(e),!l)return c?Kpn(e,Gpn(s,e)):qpn(e,Vpn(s,e))}else{if(!aa[f])return o?e:{};s=ehn(e,f,l)}}a||(a=new Upn);var h=a.get(e);if(h)return h;a.set(e,s),ahn(e)?e.forEach(function(y){s.add(E6(y,n,r,y,e,a))}):ihn(e)&&e.forEach(function(y,_){s.set(_,E6(y,n,r,_,e,a))});var g=u?c?Qpn:Xpn:c?lhn:shn,v=d?void 0:g(e);return Hpn(v||e,function(y,_){v&&(_=y,y=e[_]),zpn(s,_,E6(y,n,r,_,e,a))}),s}var Mfe=E6,khn=Mfe,Lhn=1,$hn=4;function Fhn(e){return khn(e,Lhn|$hn)}var Bhn=Fhn;Object.defineProperty(Wk,"__esModule",{value:!0});Wk.mergeClasses=void 0;var jhn=vfe,Uhn=fYe(jhn),Hhn=Bhn,zhn=fYe(Hhn),Vhn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e};function fYe(e){return e&&e.__esModule?e:{default:e}}var Ghn=Wk.mergeClasses=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=n.default&&(0,zhn.default)(n.default)||{};return r.map(function(o){var a=n[o];return a&&(0,Uhn.default)(a,function(s,l){i[l]||(i[l]={}),i[l]=Vhn({},i[l],a[l])}),o}),i};Wk.default=Ghn;var qk={};Object.defineProperty(qk,"__esModule",{value:!0});qk.autoprefix=void 0;var Whn=vfe,LTe=qhn(Whn),Yhn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e};function qhn(e){return e&&e.__esModule?e:{default:e}}var Khn={borderRadius:function(n){return{msBorderRadius:n,MozBorderRadius:n,OBorderRadius:n,WebkitBorderRadius:n,borderRadius:n}},boxShadow:function(n){return{msBoxShadow:n,MozBoxShadow:n,OBoxShadow:n,WebkitBoxShadow:n,boxShadow:n}},userSelect:function(n){return{WebkitTouchCallout:n,KhtmlUserSelect:n,MozUserSelect:n,msUserSelect:n,WebkitUserSelect:n,userSelect:n}},flex:function(n){return{WebkitBoxFlex:n,MozBoxFlex:n,WebkitFlex:n,msFlex:n,flex:n}},flexBasis:function(n){return{WebkitFlexBasis:n,flexBasis:n}},justifyContent:function(n){return{WebkitJustifyContent:n,justifyContent:n}},transition:function(n){return{msTransition:n,MozTransition:n,OTransition:n,WebkitTransition:n,transition:n}},transform:function(n){return{msTransform:n,MozTransform:n,OTransform:n,WebkitTransform:n,transform:n}},absolute:function(n){var r=n&&n.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(n,r){var i=r[n];return i||{extend:n}}},Xhn=qk.autoprefix=function(n){var r={};return(0,LTe.default)(n,function(i,o){var a={};(0,LTe.default)(i,function(s,l){var c=Khn[l];c?a=Yhn({},a,c(s)):a[l]=s}),r[o]=a}),r};qk.default=Xhn;var Kk={};Object.defineProperty(Kk,"__esModule",{value:!0});Kk.hover=void 0;var Qhn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Zhn=m,qq=Jhn(Zhn);function Jhn(e){return e&&e.__esModule?e:{default:e}}function egn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function $Te(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function tgn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var ngn=Kk.hover=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(i){tgn(o,i);function o(){var a,s,l,c;egn(this,o);for(var u=arguments.length,d=Array(u),f=0;f<u;f++)d[f]=arguments[f];return c=(s=(l=$Te(this,(a=o.__proto__||Object.getPrototypeOf(o)).call.apply(a,[this].concat(d))),l),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return qq.default.createElement(r,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},qq.default.createElement(n,Qhn({},l.props,l.state)))},s),$Te(l,c)}return o}(qq.default.Component)};Kk.default=ngn;var Xk={};Object.defineProperty(Xk,"__esModule",{value:!0});Xk.active=void 0;var rgn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ign=m,Kq=ogn(ign);function ogn(e){return e&&e.__esModule?e:{default:e}}function agn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function FTe(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function sgn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var lgn=Xk.active=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(i){sgn(o,i);function o(){var a,s,l,c;agn(this,o);for(var u=arguments.length,d=Array(u),f=0;f<u;f++)d[f]=arguments[f];return c=(s=(l=FTe(this,(a=o.__proto__||Object.getPrototypeOf(o)).call.apply(a,[this].concat(d))),l),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return Kq.default.createElement(r,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},Kq.default.createElement(n,rgn({},l.props,l.state)))},s),FTe(l,c)}return o}(Kq.default.Component)};Xk.default=lgn;var Pfe={};Object.defineProperty(Pfe,"__esModule",{value:!0});var cgn=function(n,r){var i={},o=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i[s]=l};return n===0&&o("first-child"),n===r-1&&o("last-child"),(n===0||n%2===0)&&o("even"),Math.abs(n%2)===1&&o("odd"),o("nth-child",n),i};Pfe.default=cgn;Object.defineProperty(pp,"__esModule",{value:!0});pp.ReactCSS=pp.loop=pp.handleActive=pp.handleHover=pp.hover=void 0;var ugn=$k,dgn=NI(ugn),fgn=Wk,pgn=NI(fgn),hgn=qk,ggn=NI(hgn),mgn=Kk,pYe=NI(mgn),vgn=Xk,ygn=NI(vgn),_gn=Pfe,bgn=NI(_gn);function NI(e){return e&&e.__esModule?e:{default:e}}pp.hover=pYe.default;pp.handleHover=pYe.default;pp.handleActive=ygn.default;pp.loop=bgn.default;var Sgn=pp.ReactCSS=function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=(0,dgn.default)(i),s=(0,pgn.default)(n,a);return(0,ggn.default)(s)},aS=pp.default=Sgn,Egn=Ife,Cgn=zk;function wgn(e,n,r){(r!==void 0&&!Cgn(e[n],r)||r===void 0&&!(n in e))&&Egn(e,n,r)}var hYe=wgn,xgn=l_,Tgn=Hp;function Ogn(e){return Tgn(e)&&xgn(e)}var gYe=Ogn;function Rgn(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var mYe=Rgn,Ign=gw,Ngn=Yk;function Mgn(e){return Ign(e,Ngn(e))}var Pgn=Mgn,BTe=hYe,Agn=nYe,Dgn=aYe,kgn=rYe,Lgn=sYe,jTe=Fk,UTe=Xc,$gn=gYe,Fgn=Bk,Bgn=GU,jgn=Cd,Ugn=WU,Hgn=VU,HTe=mYe,zgn=Pgn;function Vgn(e,n,r,i,o,a,s){var l=HTe(e,r),c=HTe(n,r),u=s.get(c);if(u){BTe(e,r,u);return}var d=a?a(l,c,r+"",e,n,s):void 0,f=d===void 0;if(f){var p=UTe(c),h=!p&&Fgn(c),g=!p&&!h&&Hgn(c);d=c,p||h||g?UTe(l)?d=l:$gn(l)?d=kgn(l):h?(f=!1,d=Agn(c,!0)):g?(f=!1,d=Dgn(c,!0)):d=[]:Ugn(c)||jTe(c)?(d=l,jTe(l)?d=zgn(l):(!jgn(l)||Bgn(l))&&(d=Lgn(c))):f=!1}f&&(s.set(c,d),o(d,c,i,a,s),s.delete(c)),BTe(e,r,d)}var Ggn=Vgn,Wgn=QU,Ygn=hYe,qgn=IWe,Kgn=Ggn,Xgn=Cd,Qgn=Yk,Zgn=mYe;function vYe(e,n,r,i,o){e!==n&&qgn(n,function(a,s){if(o||(o=new Wgn),Xgn(a))Kgn(e,n,s,r,vYe,i,o);else{var l=i?i(Zgn(e,s),a,s+"",e,n,o):void 0;l===void 0&&(l=a),Ygn(e,s,l)}},Qgn)}var Jgn=vYe;function emn(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}var tmn=emn,nmn=tmn,zTe=Math.max;function rmn(e,n,r){return n=zTe(n===void 0?e.length-1:n,0),function(){for(var i=arguments,o=-1,a=zTe(i.length-n,0),s=Array(a);++o<a;)s[o]=i[n+o];o=-1;for(var l=Array(n+1);++o<n;)l[o]=i[o];return l[n]=r(s),nmn(e,this,l)}}var yYe=rmn;function imn(e){return function(){return e}}var omn=imn,amn=omn,VTe=tYe,smn=Uk,lmn=VTe?function(e,n){return VTe(e,"toString",{configurable:!0,enumerable:!1,value:amn(n),writable:!0})}:smn,cmn=lmn,umn=800,dmn=16,fmn=Date.now;function pmn(e){var n=0,r=0;return function(){var i=fmn(),o=dmn-(i-r);if(r=i,o>0){if(++n>=umn)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}var hmn=pmn,gmn=cmn,mmn=hmn,vmn=mmn(gmn),_Ye=vmn,ymn=Uk,_mn=yYe,bmn=_Ye;function Smn(e,n){return bmn(_mn(e,n,ymn),e+"")}var bYe=Smn,Emn=zk,Cmn=l_,wmn=HU,xmn=Cd;function Tmn(e,n,r){if(!xmn(r))return!1;var i=typeof n;return(i=="number"?Cmn(r)&&wmn(n,r.length):i=="string"&&n in r)?Emn(r[n],e):!1}var Omn=Tmn,Rmn=bYe,Imn=Omn;function Nmn(e){return Rmn(function(n,r){var i=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,s&&Imn(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),n=Object(n);++i<o;){var l=r[i];l&&e(n,l,i,a)}return n})}var SYe=Nmn,Mmn=Jgn,Pmn=SYe,Amn=Pmn(function(e,n,r){Mmn(e,n,r)}),Dmn=Amn;const EYe=Or(Dmn);var kmn=function(n,r,i,o,a){var s=a.clientWidth,l=a.clientHeight,c=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,u=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,d=c-(a.getBoundingClientRect().left+window.pageXOffset),f=u-(a.getBoundingClientRect().top+window.pageYOffset);if(i==="vertical"){var p;if(f<0?p=0:f>l?p=1:p=Math.round(f*100/l)/100,r.a!==p)return{h:r.h,s:r.s,l:r.l,a:p,source:"rgb"}}else{var h;if(d<0?h=0:d>s?h=1:h=Math.round(d*100/s)/100,o!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},Xq={},Lmn=function(n,r,i,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=i*2,a.height=i*2;var s=a.getContext("2d");return s?(s.fillStyle=n,s.fillRect(0,0,a.width,a.height),s.fillStyle=r,s.fillRect(0,0,i,i),s.translate(i,i),s.fillRect(0,0,i,i),a.toDataURL()):null},$mn=function(n,r,i,o){var a="".concat(n,"-").concat(r,"-").concat(i).concat(o?"-server":"");if(Xq[a])return Xq[a];var s=Lmn(n,r,i,o);return Xq[a]=s,s};function PA(e){"@babel/helpers - typeof";return PA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},PA(e)}function GTe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function p4(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?GTe(Object(r),!0).forEach(function(i){Fmn(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GTe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Fmn(e,n,r){return n=Bmn(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Bmn(e){var n=jmn(e,"string");return PA(n)==="symbol"?n:String(n)}function jmn(e,n){if(PA(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(PA(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var tH=function(n){var r=n.white,i=n.grey,o=n.size,a=n.renderers,s=n.borderRadius,l=n.boxShadow,c=n.children,u=aS({default:{grid:{borderRadius:s,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url(".concat($mn(r,i,o,a.canvas),") center left")}}});return m.isValidElement(c)?V.cloneElement(c,p4(p4({},c.props),{},{style:p4(p4({},c.props.style),u.grid)})):V.createElement("div",{style:u.grid})};tH.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};function HO(e){"@babel/helpers - typeof";return HO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},HO(e)}function WTe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function Umn(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?WTe(Object(r),!0).forEach(function(i){Hmn(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WTe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Hmn(e,n,r){return n=CYe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function zmn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Vmn(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,CYe(i.key),i)}}function Gmn(e,n,r){return n&&Vmn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function CYe(e){var n=Wmn(e,"string");return HO(n)==="symbol"?n:String(n)}function Wmn(e,n){if(HO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(HO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Ymn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&eoe(e,n)}function eoe(e,n){return eoe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},eoe(e,n)}function qmn(e){var n=Qmn();return function(){var i=yB(e),o;if(n){var a=yB(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Kmn(this,o)}}function Kmn(e,n){if(n&&(HO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xmn(e)}function Xmn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qmn(){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 yB(e){return yB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yB(e)}var Zmn=function(e){Ymn(r,e);var n=qmn(r);function r(){var i;zmn(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),i.handleChange=function(l){var c=kmn(l,i.props.hsl,i.props.direction,i.props.a,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},i}return Gmn(r,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var o=this,a=this.props.rgb,s=aS({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba(".concat(a.r,",").concat(a.g,",").concat(a.b,`, 0) 0%,
|
||
rgba(`).concat(a.r,",").concat(a.g,",").concat(a.b,", 1) 100%)"),boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:"".concat(a.a*100,"%")},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba(".concat(a.r,",").concat(a.g,",").concat(a.b,`, 0) 0%,
|
||
rgba(`).concat(a.r,",").concat(a.g,",").concat(a.b,", 1) 100%)")},pointer:{left:0,top:"".concat(a.a*100,"%")}},overwrite:Umn({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return V.createElement("div",{style:s.alpha},V.createElement("div",{style:s.checkboard},V.createElement(tH,{renderers:this.props.renderers})),V.createElement("div",{style:s.gradient}),V.createElement("div",{style:s.container,ref:function(c){return o.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},V.createElement("div",{style:s.pointer},this.props.pointer?V.createElement(this.props.pointer,this.props):V.createElement("div",{style:s.slider}))))}}]),r}(m.PureComponent||m.Component),Jmn=function(n,r,i,o){var a=o.clientWidth,s=o.clientHeight,l=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,c=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,u=l-(o.getBoundingClientRect().left+window.pageXOffset),d=c-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var f;if(d<0)f=359;else if(d>s)f=0;else{var p=-(d*100/s)+100;f=360*p/100}if(i.h!==f)return{h:f,s:i.s,l:i.l,a:i.a,source:"hsl"}}else{var h;if(u<0)h=0;else if(u>a)h=359;else{var g=u*100/a;h=360*g/100}if(i.h!==h)return{h,s:i.s,l:i.l,a:i.a,source:"hsl"}}return null};function zO(e){"@babel/helpers - typeof";return zO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zO(e)}function evn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function tvn(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,rvn(i.key),i)}}function nvn(e,n,r){return n&&tvn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rvn(e){var n=ivn(e,"string");return zO(n)==="symbol"?n:String(n)}function ivn(e,n){if(zO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(zO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ovn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&toe(e,n)}function toe(e,n){return toe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},toe(e,n)}function avn(e){var n=cvn();return function(){var i=_B(e),o;if(n){var a=_B(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return svn(this,o)}}function svn(e,n){if(n&&(zO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lvn(e)}function lvn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cvn(){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 _B(e){return _B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_B(e)}var uvn=function(e){ovn(r,e);var n=avn(r);function r(){var i;evn(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),i.handleChange=function(l){var c=Jmn(l,i.props.direction,i.props.hsl,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i}return nvn(r,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var o=this,a=this.props.direction,s=a===void 0?"horizontal":a,l=aS({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:"".concat(this.props.hsl.h*100/360,"%")},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:"".concat(-(this.props.hsl.h*100/360)+100,"%")}}},{vertical:s==="vertical"});return V.createElement("div",{style:l.hue},V.createElement("div",{className:"hue-".concat(s),style:l.container,ref:function(u){return o.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},V.createElement("style",null,`
|
||
.hue-horizontal {
|
||
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
||
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
|
||
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
}
|
||
|
||
.hue-vertical {
|
||
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
|
||
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
||
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
}
|
||
`),V.createElement("div",{style:l.pointer},this.props.pointer?V.createElement(this.props.pointer,this.props):V.createElement("div",{style:l.slider}))))}}]),r}(m.PureComponent||m.Component),dvn=Cg,fvn=function(){return dvn.Date.now()},pvn=fvn,hvn=/\s/;function gvn(e){for(var n=e.length;n--&&hvn.test(e.charAt(n)););return n}var mvn=gvn,vvn=mvn,yvn=/^\s+/;function _vn(e){return e&&e.slice(0,vvn(e)+1).replace(yvn,"")}var bvn=_vn,Svn=bvn,YTe=Cd,Evn=Gk,qTe=NaN,Cvn=/^[-+]0x[0-9a-f]+$/i,wvn=/^0b[01]+$/i,xvn=/^0o[0-7]+$/i,Tvn=parseInt;function Ovn(e){if(typeof e=="number")return e;if(Evn(e))return qTe;if(YTe(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=YTe(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Svn(e);var r=wvn.test(e);return r||xvn.test(e)?Tvn(e.slice(2),r?2:8):Cvn.test(e)?qTe:+e}var wYe=Ovn,Rvn=Cd,Qq=pvn,KTe=wYe,Ivn="Expected a function",Nvn=Math.max,Mvn=Math.min;function Pvn(e,n,r){var i,o,a,s,l,c,u=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(Ivn);n=KTe(n)||0,Rvn(r)&&(d=!!r.leading,f="maxWait"in r,a=f?Nvn(KTe(r.maxWait)||0,n):a,p="trailing"in r?!!r.trailing:p);function h(C){var x=i,T=o;return i=o=void 0,u=C,s=e.apply(T,x),s}function g(C){return u=C,l=setTimeout(_,n),d?h(C):s}function v(C){var x=C-c,T=C-u,R=n-x;return f?Mvn(R,a-T):R}function y(C){var x=C-c,T=C-u;return c===void 0||x>=n||x<0||f&&T>=a}function _(){var C=Qq();if(y(C))return S(C);l=setTimeout(_,v(C))}function S(C){return l=void 0,p&&i?h(C):(i=o=void 0,s)}function b(){l!==void 0&&clearTimeout(l),u=0,i=c=o=l=void 0}function E(){return l===void 0?s:S(Qq())}function w(){var C=Qq(),x=y(C);if(i=arguments,o=this,c=C,x){if(l===void 0)return g(c);if(f)return clearTimeout(l),l=setTimeout(_,n),h(c)}return l===void 0&&(l=setTimeout(_,n)),s}return w.cancel=b,w.flush=E,w}var xYe=Pvn;const TYe=Or(xYe);var Avn=xYe,Dvn=Cd,kvn="Expected a function";function Lvn(e,n,r){var i=!0,o=!0;if(typeof e!="function")throw new TypeError(kvn);return Dvn(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Avn(e,n,{leading:i,maxWait:n,trailing:o})}var $vn=Lvn;const noe=Or($vn);var Fvn=function(n,r,i){var o=i.getBoundingClientRect(),a=o.width,s=o.height,l=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,c=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,u=l-(i.getBoundingClientRect().left+window.pageXOffset),d=c-(i.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>a&&(u=a),d<0?d=0:d>s&&(d=s);var f=u/a,p=1-d/s;return{h:r.h,s:f,v:p,a:r.a,source:"hsv"}};function VO(e){"@babel/helpers - typeof";return VO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},VO(e)}function Bvn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function jvn(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Hvn(i.key),i)}}function Uvn(e,n,r){return n&&jvn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hvn(e){var n=zvn(e,"string");return VO(n)==="symbol"?n:String(n)}function zvn(e,n){if(VO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(VO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vvn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&roe(e,n)}function roe(e,n){return roe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},roe(e,n)}function Gvn(e){var n=qvn();return function(){var i=bB(e),o;if(n){var a=bB(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Wvn(this,o)}}function Wvn(e,n){if(n&&(VO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yvn(e)}function Yvn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qvn(){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 bB(e){return bB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bB(e)}var Kvn=function(e){Vvn(r,e);var n=Gvn(r);function r(i){var o;return Bvn(this,r),o=n.call(this,i),o.handleChange=function(a){typeof o.props.onChange=="function"&&o.throttle(o.props.onChange,Fvn(a,o.props.hsl,o.container),a)},o.handleMouseDown=function(a){o.handleChange(a);var s=o.getContainerRenderWindow();s.addEventListener("mousemove",o.handleChange),s.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},o.throttle=noe(function(a,s,l){a(s,l)},50),o}return Uvn(r,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var o=this.container,a=window;!a.document.contains(o)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var o=this.getContainerRenderWindow();o.removeEventListener("mousemove",this.handleChange),o.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var o=this,a=this.props.style||{},s=a.color,l=a.white,c=a.black,u=a.pointer,d=a.circle,f=aS({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:s,white:l,black:c,pointer:u,circle:d}},{custom:!!this.props.style});return V.createElement("div",{style:f.color,ref:function(h){return o.container=h},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},V.createElement("style",null,`
|
||
.saturation-white {
|
||
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||
}
|
||
.saturation-black {
|
||
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||
}
|
||
`),V.createElement("div",{style:f.white,className:"saturation-white"},V.createElement("div",{style:f.black,className:"saturation-black"}),V.createElement("div",{style:f.pointer},this.props.pointer?V.createElement(this.props.pointer,this.props):V.createElement("div",{style:f.circle}))))}}]),r}(m.PureComponent||m.Component),Xvn=eYe,Qvn=JWe,Zvn=LWe,Jvn=Xc;function eyn(e,n){var r=Jvn(e)?Xvn:Qvn;return r(e,Zvn(n))}var tyn=eyn,nyn=tyn;const OYe=Or(nyn);function SB(e){"@babel/helpers - typeof";return SB=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},SB(e)}var ryn=/^\s+/,iyn=/\s+$/;function Cr(e,n){if(e=e||"",n=n||{},e instanceof Cr)return e;if(!(this instanceof Cr))return new Cr(e,n);var r=oyn(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||r.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._ok=r.ok}Cr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),r,i,o,a,s,l;return r=n.r/255,i=n.g/255,o=n.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),o<=.03928?l=o/12.92:l=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*s+.0722*l},setAlpha:function(n){return this._a=RYe(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=QTe(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=QTe(this._r,this._g,this._b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.v*100);return this._a==1?"hsv("+r+", "+i+"%, "+o+"%)":"hsva("+r+", "+i+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var n=XTe(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=XTe(this._r,this._g,this._b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.l*100);return this._a==1?"hsl("+r+", "+i+"%, "+o+"%)":"hsla("+r+", "+i+"%, "+o+"%, "+this._roundA+")"},toHex:function(n){return ZTe(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return cyn(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ja(this._r,255)*100)+"%",g:Math.round(ja(this._g,255)*100)+"%",b:Math.round(ja(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ja(this._r,255)*100)+"%, "+Math.round(ja(this._g,255)*100)+"%, "+Math.round(ja(this._b,255)*100)+"%)":"rgba("+Math.round(ja(this._r,255)*100)+"%, "+Math.round(ja(this._g,255)*100)+"%, "+Math.round(ja(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Syn[ZTe(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var r="#"+JTe(this._r,this._g,this._b,this._a),i=r,o=this._gradientType?"GradientType = 1, ":"";if(n){var a=Cr(n);i="#"+JTe(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+i+")"},toString:function(n){var r=!!n;n=n||this._format;var i=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return a?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(i=this.toRgbString()),n==="prgb"&&(i=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(i=this.toHexString()),n==="hex3"&&(i=this.toHexString(!0)),n==="hex4"&&(i=this.toHex8String(!0)),n==="hex8"&&(i=this.toHex8String()),n==="name"&&(i=this.toName()),n==="hsl"&&(i=this.toHslString()),n==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return Cr(this.toString())},_applyModification:function(n,r){var i=n.apply(null,[this].concat([].slice.call(r)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(pyn,arguments)},brighten:function(){return this._applyModification(hyn,arguments)},darken:function(){return this._applyModification(gyn,arguments)},desaturate:function(){return this._applyModification(uyn,arguments)},saturate:function(){return this._applyModification(dyn,arguments)},greyscale:function(){return this._applyModification(fyn,arguments)},spin:function(){return this._applyModification(myn,arguments)},_applyCombination:function(n,r){return n.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_yn,arguments)},complement:function(){return this._applyCombination(vyn,arguments)},monochromatic:function(){return this._applyCombination(byn,arguments)},splitcomplement:function(){return this._applyCombination(yyn,arguments)},triad:function(){return this._applyCombination(eOe,[3])},tetrad:function(){return this._applyCombination(eOe,[4])}};Cr.fromRatio=function(e,n){if(SB(e)=="object"){var r={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?r[i]=e[i]:r[i]=h2(e[i]));e=r}return Cr(e,n)};function oyn(e){var n={r:0,g:0,b:0},r=1,i=null,o=null,a=null,s=!1,l=!1;return typeof e=="string"&&(e=xyn(e)),SB(e)=="object"&&(Ov(e.r)&&Ov(e.g)&&Ov(e.b)?(n=ayn(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ov(e.h)&&Ov(e.s)&&Ov(e.v)?(i=h2(e.s),o=h2(e.v),n=lyn(e.h,i,o),s=!0,l="hsv"):Ov(e.h)&&Ov(e.s)&&Ov(e.l)&&(i=h2(e.s),a=h2(e.l),n=syn(e.h,i,a),s=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=RYe(r),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function ayn(e,n,r){return{r:ja(e,255)*255,g:ja(n,255)*255,b:ja(r,255)*255}}function XTe(e,n,r){e=ja(e,255),n=ja(n,255),r=ja(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,l=(i+o)/2;if(i==o)a=s=0;else{var c=i-o;switch(s=l>.5?c/(2-i-o):c/(i+o),i){case e:a=(n-r)/c+(n<r?6:0);break;case n:a=(r-e)/c+2;break;case r:a=(e-n)/c+4;break}a/=6}return{h:a,s,l}}function syn(e,n,r){var i,o,a;e=ja(e,360),n=ja(n,100),r=ja(r,100);function s(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(n===0)i=o=a=r;else{var l=r<.5?r*(1+n):r+n-r*n,c=2*r-l;i=s(c,l,e+1/3),o=s(c,l,e),a=s(c,l,e-1/3)}return{r:i*255,g:o*255,b:a*255}}function QTe(e,n,r){e=ja(e,255),n=ja(n,255),r=ja(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,l=i,c=i-o;if(s=i===0?0:c/i,i==o)a=0;else{switch(i){case e:a=(n-r)/c+(n<r?6:0);break;case n:a=(r-e)/c+2;break;case r:a=(e-n)/c+4;break}a/=6}return{h:a,s,v:l}}function lyn(e,n,r){e=ja(e,360)*6,n=ja(n,100),r=ja(r,100);var i=Math.floor(e),o=e-i,a=r*(1-n),s=r*(1-o*n),l=r*(1-(1-o)*n),c=i%6,u=[r,s,a,a,l,r][c],d=[l,r,r,s,a,a][c],f=[a,a,l,r,r,s][c];return{r:u*255,g:d*255,b:f*255}}function ZTe(e,n,r,i){var o=[Ah(Math.round(e).toString(16)),Ah(Math.round(n).toString(16)),Ah(Math.round(r).toString(16))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function cyn(e,n,r,i,o){var a=[Ah(Math.round(e).toString(16)),Ah(Math.round(n).toString(16)),Ah(Math.round(r).toString(16)),Ah(IYe(i))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function JTe(e,n,r,i){var o=[Ah(IYe(i)),Ah(Math.round(e).toString(16)),Ah(Math.round(n).toString(16)),Ah(Math.round(r).toString(16))];return o.join("")}Cr.equals=function(e,n){return!e||!n?!1:Cr(e).toRgbString()==Cr(n).toRgbString()};Cr.random=function(){return Cr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function uyn(e,n){n=n===0?0:n||10;var r=Cr(e).toHsl();return r.s-=n/100,r.s=nH(r.s),Cr(r)}function dyn(e,n){n=n===0?0:n||10;var r=Cr(e).toHsl();return r.s+=n/100,r.s=nH(r.s),Cr(r)}function fyn(e){return Cr(e).desaturate(100)}function pyn(e,n){n=n===0?0:n||10;var r=Cr(e).toHsl();return r.l+=n/100,r.l=nH(r.l),Cr(r)}function hyn(e,n){n=n===0?0:n||10;var r=Cr(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),Cr(r)}function gyn(e,n){n=n===0?0:n||10;var r=Cr(e).toHsl();return r.l-=n/100,r.l=nH(r.l),Cr(r)}function myn(e,n){var r=Cr(e).toHsl(),i=(r.h+n)%360;return r.h=i<0?360+i:i,Cr(r)}function vyn(e){var n=Cr(e).toHsl();return n.h=(n.h+180)%360,Cr(n)}function eOe(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Cr(e).toHsl(),i=[Cr(e)],o=360/n,a=1;a<n;a++)i.push(Cr({h:(r.h+a*o)%360,s:r.s,l:r.l}));return i}function yyn(e){var n=Cr(e).toHsl(),r=n.h;return[Cr(e),Cr({h:(r+72)%360,s:n.s,l:n.l}),Cr({h:(r+216)%360,s:n.s,l:n.l})]}function _yn(e,n,r){n=n||6,r=r||30;var i=Cr(e).toHsl(),o=360/r,a=[Cr(e)];for(i.h=(i.h-(o*n>>1)+720)%360;--n;)i.h=(i.h+o)%360,a.push(Cr(i));return a}function byn(e,n){n=n||6;for(var r=Cr(e).toHsv(),i=r.h,o=r.s,a=r.v,s=[],l=1/n;n--;)s.push(Cr({h:i,s:o,v:a})),a=(a+l)%1;return s}Cr.mix=function(e,n,r){r=r===0?0:r||50;var i=Cr(e).toRgb(),o=Cr(n).toRgb(),a=r/100,s={r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a};return Cr(s)};Cr.readability=function(e,n){var r=Cr(e),i=Cr(n);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)};Cr.isReadable=function(e,n,r){var i=Cr.readability(e,n),o,a;switch(a=!1,o=Tyn(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7;break}return a};Cr.mostReadable=function(e,n,r){var i=null,o=0,a,s,l,c;r=r||{},s=r.includeFallbackColors,l=r.level,c=r.size;for(var u=0;u<n.length;u++)a=Cr.readability(e,n[u]),a>o&&(o=a,i=Cr(n[u]));return Cr.isReadable(e,i,{level:l,size:c})||!s?i:(r.includeFallbackColors=!1,Cr.mostReadable(e,["#fff","#000"],r))};var ioe=Cr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Syn=Cr.hexNames=Eyn(ioe);function Eyn(e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[e[r]]=r);return n}function RYe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ja(e,n){Cyn(e)&&(e="100%");var r=wyn(e);return e=Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function nH(e){return Math.min(1,Math.max(0,e))}function zd(e){return parseInt(e,16)}function Cyn(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function wyn(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ah(e){return e.length==1?"0"+e:""+e}function h2(e){return e<=1&&(e=e*100+"%"),e}function IYe(e){return Math.round(parseFloat(e)*255).toString(16)}function tOe(e){return zd(e)/255}var gh=function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",r="(?:"+n+")|(?:"+e+")",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+o),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 Ov(e){return!!gh.CSS_UNIT.exec(e)}function xyn(e){e=e.replace(ryn,"").replace(iyn,"").toLowerCase();var n=!1;if(ioe[e])e=ioe[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=gh.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=gh.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=gh.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=gh.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=gh.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=gh.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=gh.hex8.exec(e))?{r:zd(r[1]),g:zd(r[2]),b:zd(r[3]),a:tOe(r[4]),format:n?"name":"hex8"}:(r=gh.hex6.exec(e))?{r:zd(r[1]),g:zd(r[2]),b:zd(r[3]),format:n?"name":"hex"}:(r=gh.hex4.exec(e))?{r:zd(r[1]+""+r[1]),g:zd(r[2]+""+r[2]),b:zd(r[3]+""+r[3]),a:tOe(r[4]+""+r[4]),format:n?"name":"hex8"}:(r=gh.hex3.exec(e))?{r:zd(r[1]+""+r[1]),g:zd(r[2]+""+r[2]),b:zd(r[3]+""+r[3]),format:n?"name":"hex"}:!1}function Tyn(e){var n,r;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:n,size:r}}var nOe=function(n){var r=["r","g","b","a","h","s","l","v"],i=0,o=0;return OYe(r,function(a){if(n[a]&&(i+=1,isNaN(n[a])||(o+=1),a==="s"||a==="l")){var s=/^\d+%$/;s.test(n[a])&&(o+=1)}}),i===o?n:!1},h4=function(n,r){var i=n.hex?Cr(n.hex):Cr(n),o=i.toHsl(),a=i.toHsv(),s=i.toRgb(),l=i.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var c=l==="000000"&&s.a===0;return{hsl:o,hex:c?"transparent":"#".concat(l),rgb:s,hsv:a,oldHue:n.h||r||o.h,source:n.source}},Oyn=function(n){if(n==="transparent")return!0;var r=String(n).charAt(0)==="#"?1:0;return n.length!==4+r&&n.length<7+r&&Cr(n).isValid()};function GO(e){"@babel/helpers - typeof";return GO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},GO(e)}function ooe(){return ooe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ooe.apply(this,arguments)}function rOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function yM(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?rOe(Object(r),!0).forEach(function(i){Ryn(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Ryn(e,n,r){return n=NYe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Iyn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function iOe(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,NYe(i.key),i)}}function Nyn(e,n,r){return n&&iOe(e.prototype,n),r&&iOe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function NYe(e){var n=Myn(e,"string");return GO(n)==="symbol"?n:String(n)}function Myn(e,n){if(GO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(GO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Pyn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&aoe(e,n)}function aoe(e,n){return aoe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},aoe(e,n)}function Ayn(e){var n=Lyn();return function(){var i=EB(e),o;if(n){var a=EB(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Dyn(this,o)}}function Dyn(e,n){if(n&&(GO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kyn(e)}function kyn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lyn(){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 EB(e){return EB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},EB(e)}var $yn=function(n){var r=function(i){Pyn(a,i);var o=Ayn(a);function a(s){var l;return Iyn(this,a),l=o.call(this),l.handleChange=function(c,u){var d=nOe(c);if(d){var f=h4(c,c.h||l.state.oldHue);l.setState(f),l.props.onChangeComplete&&l.debounce(l.props.onChangeComplete,f,u),l.props.onChange&&l.props.onChange(f,u)}},l.handleSwatchHover=function(c,u){var d=nOe(c);if(d){var f=h4(c,c.h||l.state.oldHue);l.props.onSwatchHover&&l.props.onSwatchHover(f,u)}},l.state=yM({},h4(s.color,0)),l.debounce=TYe(function(c,u,d){c(u,d)},100),l}return Nyn(a,[{key:"render",value:function(){var l={};return this.props.onSwatchHover&&(l.onSwatchHover=this.handleSwatchHover),V.createElement(n,ooe({},this.props,this.state,{onChange:this.handleChange},l))}}],[{key:"getDerivedStateFromProps",value:function(l,c){return yM({},h4(l.color,c.oldHue))}}]),a}(m.PureComponent||m.Component);return r.propTypes=yM({},n.propTypes),r.defaultProps=yM(yM({},n.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),r};function WO(e){"@babel/helpers - typeof";return WO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},WO(e)}function Fyn(e,n,r){return n=MYe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Byn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function jyn(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,MYe(i.key),i)}}function Uyn(e,n,r){return n&&jyn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function MYe(e){var n=Hyn(e,"string");return WO(n)==="symbol"?n:String(n)}function Hyn(e,n){if(WO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(WO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function zyn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&soe(e,n)}function soe(e,n){return soe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},soe(e,n)}function Vyn(e){var n=Yyn();return function(){var i=CB(e),o;if(n){var a=CB(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Gyn(this,o)}}function Gyn(e,n){if(n&&(WO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wyn(e)}function Wyn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yyn(){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 CB(e){return CB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},CB(e)}var qyn=1,PYe=38,Kyn=40,Xyn=[PYe,Kyn],Qyn=function(n){return Xyn.indexOf(n)>-1},Zyn=function(n){return Number(String(n).replace(/%/g,""))},Jyn=1,_M=function(e){zyn(r,e);var n=Vyn(r);function r(i){var o;return Byn(this,r),o=n.call(this),o.handleBlur=function(){o.state.blurValue&&o.setState({value:o.state.blurValue,blurValue:null})},o.handleChange=function(a){o.setUpdatedValue(a.target.value,a)},o.handleKeyDown=function(a){var s=Zyn(a.target.value);if(!isNaN(s)&&Qyn(a.keyCode)){var l=o.getArrowOffset(),c=a.keyCode===PYe?s+l:s-l;o.setUpdatedValue(c,a)}},o.handleDrag=function(a){if(o.props.dragLabel){var s=Math.round(o.props.value+a.movementX);s>=0&&s<=o.props.dragMax&&o.props.onChange&&o.props.onChange(o.getValueObjectWithLabel(s),a)}},o.handleMouseDown=function(a){o.props.dragLabel&&(a.preventDefault(),o.handleDrag(a),window.addEventListener("mousemove",o.handleDrag),window.addEventListener("mouseup",o.handleMouseUp))},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleDrag),window.removeEventListener("mouseup",o.handleMouseUp)},o.state={value:String(i.value).toUpperCase(),blurValue:String(i.value).toUpperCase()},o.inputId="rc-editable-input-".concat(Jyn++),o}return Uyn(r,[{key:"componentDidUpdate",value:function(o,a){this.props.value!==this.state.value&&(o.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(o){return Fyn({},this.props.label,o)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||qyn}},{key:"setUpdatedValue",value:function(o,a){var s=this.props.label?this.getValueObjectWithLabel(o):o;this.props.onChange&&this.props.onChange(s,a),this.setState({value:o})}},{key:"render",value:function(){var o=this,a=aS({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return V.createElement("div",{style:a.wrap},V.createElement("input",{id:this.inputId,style:a.input,ref:function(l){return o.input=l},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?V.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),r}(m.PureComponent||m.Component);function YO(e){"@babel/helpers - typeof";return YO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},YO(e)}function loe(){return loe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},loe.apply(this,arguments)}function e_n(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function t_n(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r_n(i.key),i)}}function n_n(e,n,r){return n&&t_n(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function r_n(e){var n=i_n(e,"string");return YO(n)==="symbol"?n:String(n)}function i_n(e,n){if(YO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(YO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function o_n(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&coe(e,n)}function coe(e,n){return coe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},coe(e,n)}function a_n(e){var n=c_n();return function(){var i=wB(e),o;if(n){var a=wB(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return s_n(this,o)}}function s_n(e,n){if(n&&(YO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l_n(e)}function l_n(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c_n(){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 wB(e){return wB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wB(e)}var u_n=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(i){o_n(a,i);var o=a_n(a);function a(){var s;e_n(this,a);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return s=o.call.apply(o,[this].concat(c)),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},s}return n_n(a,[{key:"render",value:function(){return V.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},V.createElement(n,loe({},this.props,this.state)))}}]),a}(V.Component)};function AA(e){"@babel/helpers - typeof";return AA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},AA(e)}function uoe(){return uoe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},uoe.apply(this,arguments)}function oOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function aOe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?oOe(Object(r),!0).forEach(function(i){d_n(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function d_n(e,n,r){return n=f_n(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function f_n(e){var n=p_n(e,"string");return AA(n)==="symbol"?n:String(n)}function p_n(e,n){if(AA(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(AA(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var h_n=13,g_n=function(n){var r=n.color,i=n.style,o=n.onClick,a=o===void 0?function(){}:o,s=n.onHover,l=n.title,c=l===void 0?r:l,u=n.children,d=n.focus,f=n.focusStyle,p=f===void 0?{}:f,h=r==="transparent",g=aS({default:{swatch:aOe(aOe({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},i),d?p:{})}}),v=function(E){return a(r,E)},y=function(E){return E.keyCode===h_n&&a(r,E)},_=function(E){return s(r,E)},S={};return s&&(S.onMouseOver=_),V.createElement("div",uoe({style:g.swatch,onClick:v,title:c,tabIndex:0,onKeyDown:y},S),u,h&&V.createElement(tH,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const m_n=u_n(g_n);var v_n=function(n){var r=n.onChange,i=n.rgb,o=n.hsl,a=n.hex,s=n.disableAlpha,l=aS({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:s}),c=function(d,f){d.hex?Oyn(d.hex)&&(r==null||r({hex:d.hex,source:"hex"},f)):d.r||d.g||d.b?r==null||r({r:d.r||(i==null?void 0:i.r),g:d.g||(i==null?void 0:i.g),b:d.b||(i==null?void 0:i.b),a:i==null?void 0:i.a,source:"rgb"},f):d.a&&(d.a<0?d.a=0:d.a>100&&(d.a=100),d.a/=100,r==null||r({h:o==null?void 0:o.h,s:o==null?void 0:o.s,l:o==null?void 0:o.l,a:d.a,source:"rgb"},f))};return V.createElement("div",{style:l.fields,className:"flexbox-fix"},V.createElement("div",{style:l.double},V.createElement(_M,{style:{input:l.input,label:l.label},label:"hex",value:a==null?void 0:a.replace("#",""),onChange:c})),V.createElement("div",{style:l.single},V.createElement(_M,{style:{input:l.input,label:l.label},label:"r",value:i==null?void 0:i.r,onChange:c,dragLabel:"true",dragMax:"255"})),V.createElement("div",{style:l.single},V.createElement(_M,{style:{input:l.input,label:l.label},label:"g",value:i==null?void 0:i.g,onChange:c,dragLabel:"true",dragMax:"255"})),V.createElement("div",{style:l.single},V.createElement(_M,{style:{input:l.input,label:l.label},label:"b",value:i==null?void 0:i.b,onChange:c,dragLabel:"true",dragMax:"255"})),V.createElement("div",{style:l.alpha},V.createElement(_M,{style:{input:l.input,label:l.label},label:"a",value:Math.round(((i==null?void 0:i.a)||0)*100),onChange:c,dragLabel:"true",dragMax:"100"})))};function DA(e){"@babel/helpers - typeof";return DA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},DA(e)}function sOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function lOe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?sOe(Object(r),!0).forEach(function(i){y_n(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function y_n(e,n,r){return n=__n(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function __n(e){var n=b_n(e,"string");return DA(n)==="symbol"?n:String(n)}function b_n(e,n){if(DA(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(DA(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var S_n=function(n){var r=n.colors,i=n.onClick,o=i===void 0?function(){}:i,a=n.onSwatchHover,s={colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{msBorderRadius:"3px",MozBorderRadius:"3px",OBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px",msBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",MozBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",OBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",WebkitBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},l=function(u,d){o==null||o({hex:u,source:"hex"},d)};return V.createElement("div",{style:s.colors,className:"flexbox-fix"},r==null?void 0:r.map(function(c){var u=typeof c=="string"?{color:c,title:void 0}:c,d="".concat(u.color).concat((u==null?void 0:u.title)||"");return V.createElement("div",{key:d,style:s.swatchWrap},V.createElement(m_n,lOe(lOe({},u),{},{style:s.swatch,onClick:l,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ".concat(u.color)}})))}))};function kA(e){"@babel/helpers - typeof";return kA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kA(e)}function cOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function E_n(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?cOe(Object(r),!0).forEach(function(i){C_n(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function C_n(e,n,r){return n=w_n(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function w_n(e){var n=x_n(e,"string");return kA(n)==="symbol"?n:String(n)}function x_n(e,n){if(kA(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(kA(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var AYe=function(n){var r=n.width,i=n.rgb,o=n.hex,a=n.hsv,s=n.hsl,l=n.onChange,c=n.onSwatchHover,u=n.disableAlpha,d=n.presetColors,f=n.renderers,p=n.styles,h=p===void 0?{}:p,g=n.className,v=g===void 0?"":g,y=aS(EYe({default:E_n({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba(".concat(i.r,",").concat(i.g,",").concat(i.b,",").concat(i.a,")"),boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:u});return V.createElement("div",{style:y.picker,className:"sketch-picker ".concat(v)},V.createElement("div",{style:y.saturation},V.createElement(Kvn,{style:y.Saturation,hsl:s,hsv:a,onChange:l})),V.createElement("div",{style:y.controls,className:"flexbox-fix"},V.createElement("div",{style:y.sliders},V.createElement("div",{style:y.hue},V.createElement(uvn,{style:y.Hue,hsl:s,onChange:l})),V.createElement("div",{style:y.alpha},V.createElement(Zmn,{style:y.Alpha,rgb:i,hsl:s,renderers:f,onChange:l}))),V.createElement("div",{style:y.color},V.createElement(tH,null),V.createElement("div",{style:y.activeColor}))),V.createElement(v_n,{rgb:i,hsl:s,hex:o,onChange:l,disableAlpha:u}),V.createElement(S_n,{colors:d,onClick:l,onSwatchHover:c}))};AYe.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var T_n=$yn(AYe),O_n=["mode","popoverProps"],R_n=["#FF9D4E","#5BD8A6","#5B8FF9","#F7664E","#FF86B7","#2B9E9D","#9270CA","#6DC8EC","#667796","#F6BD16"],I_n=V.forwardRef(function(e,n){var r=e.mode,i=e.popoverProps,o=Xt(e,O_n),a=m.useContext(or.ConfigContext),s=a.getPrefixCls,l=s("pro-field-color-picker"),c=Pm.useToken(),u=c.token,d=dr("#1890ff",{value:o.value,onChange:o.onChange}),f=ke(d,2),p=f[0],h=f[1],g=ia("ProFiledColorPicker"+p,function(){return fe({},".".concat(l),{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",border:"1px solid ".concat(u.colorSplit),borderRadius:u.borderRadius,"&:hover":{borderColor:p}})}),v=g.wrapSSR,y=g.hashId,_=v(N.jsx("div",{className:"".concat(l," ").concat(y).trim(),style:{cursor:o.disabled?"not-allowed":"pointer",backgroundColor:o.disabled?u.colorBgContainerDisabled:u.colorBgContainer},children:N.jsx("div",{style:{backgroundColor:p,width:24,boxSizing:"border-box",height:24,borderRadius:u.borderRadius}})}));return m.useImperativeHandle(n,function(){}),r==="read"||o.disabled?_:N.jsx(Rp,ee(ee({trigger:"click",placement:"right"},i),{},{content:N.jsx("div",{style:{margin:"-12px -16px"},children:N.jsx(T_n,ee(ee({},o),{},{presetColors:o.colors||o.presetColors||R_n,color:p,onChange:function(b){var E=b.hex,w=b.rgb,C=w.r,x=w.g,T=w.b,R=w.a;if(R&&R<1){h("rgba(".concat(C,", ").concat(x,", ").concat(T,", ").concat(R,")"));return}h(E)}}))}),children:_}))}),N_n={label:"Recommended",colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96","#F5222D4D","#FA8C164D","#FADB144D","#8BBB114D","#52C41A4D","#13A8A84D","#1677FF4D","#2F54EB4D","#722ED14D","#EB2F964D"]};function DYe(){return Ak(Iy,"5.5.0")>-1}function M_n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&DYe()?Pde:I_n}var P_n=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps,c=n.old,u=m.useContext(or.ConfigContext),d=u.getPrefixCls,f=V.useMemo(function(){return M_n(c)},[c]),p=d("pro-field-color-picker"),h=m.useMemo(function(){return c?"":Ce(fe({},p,DYe()))},[p,c]);if(o==="read"){var g=N.jsx(f,{value:i,mode:"read",ref:r,className:h,open:!1});return a?a(i,ee({mode:o},l),g):g}if(o==="edit"||o==="update"){var v=ee({display:"table-cell"},l.style),y=N.jsx(f,ee(ee({ref:r,presets:[N_n]},l),{},{style:v,className:h}));return s?s(i,ee(ee({mode:o},l),{},{style:v}),y):y}return null};const A_n=V.forwardRef(P_n);Zr.extend(ude);var D_n=function(n,r){return n?typeof r=="function"?r(Zr(n)):Zr(n).format((Array.isArray(r)?r[0]:r)||"YYYY-MM-DD"):"-"},k_n=function(n,r){var i=n.text,o=n.mode,a=n.format,s=n.label,l=n.light,c=n.render,u=n.renderFormItem,d=n.plain,f=n.showTime,p=n.fieldProps,h=n.picker,g=n.bordered,v=n.lightLabel,y=cs(),_=m.useState(!1),S=ke(_,2),b=S[0],E=S[1];if(o==="read"){var w=D_n(i,p.format||a);return c?c(i,ee({mode:o},p),N.jsx(N.Fragment,{children:w})):N.jsx(N.Fragment,{children:w})}if(o==="edit"||o==="update"){var C,x=p.disabled,T=p.value,R=p.placeholder,O=R===void 0?y.getMessage("tableForm.selectPlaceholder","请选择"):R,M=Dk(T);return l?C=N.jsx(r_,{label:s,onClick:function(){var k;p==null||(k=p.onOpenChange)===null||k===void 0||k.call(p,!0),E(!0)},style:M?{paddingInlineEnd:0}:void 0,disabled:x,value:M||b?N.jsx(gd,ee(ee(ee({picker:h,showTime:f,format:a,ref:r},p),{},{value:M,onOpenChange:function(k){var $;E(k),p==null||($=p.onOpenChange)===null||$===void 0||$.call(p,k)}},Cf(!1)),{},{open:b})):void 0,allowClear:!1,downIcon:M||b?!1:void 0,bordered:g,ref:v}):C=N.jsx(gd,ee(ee(ee({picker:h,showTime:f,format:a,placeholder:O},Cf(d===void 0?!0:!d)),{},{ref:r},p),{},{value:M})),u?u(i,ee({mode:o},p),C):C}return null};const Nx=V.forwardRef(k_n);var L_n=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.placeholder,l=n.renderFormItem,c=n.fieldProps,u=cs(),d=s||u.getMessage("tableForm.inputPlaceholder","请输入"),f=m.useCallback(function(_){var S=_??void 0;return!c.stringMode&&typeof S=="string"&&(S=Number(S)),typeof S=="number"&&!dC(S)&&!dC(c.precision)&&(S=Number(S.toFixed(c.precision))),S},[c]);if(o==="read"){var p,h={};c!=null&&c.precision&&(h={minimumFractionDigits:Number(c.precision),maximumFractionDigits:Number(c.precision)});var g=new Intl.NumberFormat(void 0,ee(ee({},h),(c==null?void 0:c.intlProps)||{})).format(Number(i)),v=c!=null&&c.stringMode?N.jsx("span",{children:i}):N.jsx("span",{ref:r,children:(c==null||(p=c.formatter)===null||p===void 0?void 0:p.call(c,g))||g});return a?a(i,ee({mode:o},c),v):v}if(o==="edit"||o==="update"){var y=N.jsx(My,ee(ee({ref:r,min:0,placeholder:d},Wr(c,["onChange","onBlur"])),{},{onChange:function(S){var b;return c==null||(b=c.onChange)===null||b===void 0?void 0:b.call(c,f(S))},onBlur:function(S){var b;return c==null||(b=c.onBlur)===null||b===void 0?void 0:b.call(c,f(S.target.value))}}));return l?l(i,ee({mode:o},c),y):y}return null};const $_n=V.forwardRef(L_n);var F_n=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.placeholder,l=n.renderFormItem,c=n.fieldProps,u=n.separator,d=u===void 0?"~":u,f=n.separatorWidth,p=f===void 0?30:f,h=c.value,g=c.defaultValue,v=c.onChange,y=c.id,_=cs(),S=Pm.useToken(),b=S.token,E=dr(function(){return g},{value:h,onChange:v}),w=ke(E,2),C=w[0],x=w[1];if(o==="read"){var T=function(B){var Y,q=new Intl.NumberFormat(void 0,ee({minimumSignificantDigits:2},(c==null?void 0:c.intlProps)||{})).format(Number(B));return(c==null||(Y=c.formatter)===null||Y===void 0?void 0:Y.call(c,q))||q},R=N.jsxs("span",{ref:r,children:[T(i[0])," ",d," ",T(i[1])]});return a?a(i,ee({mode:o},c),R):R}if(o==="edit"||o==="update"){var O=function(){if(Array.isArray(C)){var B=ke(C,2),Y=B[0],q=B[1];typeof Y=="number"&&typeof q=="number"&&Y>q?x([q,Y]):Y===void 0&&q===void 0&&x(void 0)}},M=function(B,Y){var q=Tt(C||[]);q[B]=Y===null?void 0:Y,x(q)},P=(c==null?void 0:c.placeholder)||s||[_.getMessage("tableForm.inputPlaceholder","请输入"),_.getMessage("tableForm.inputPlaceholder","请输入")],k=function(B){return Array.isArray(P)?P[B]:P},$=Ef.Compact||Oi.Group,U=Ef.Compact?{}:{compact:!0},z=N.jsxs($,ee(ee({},U),{},{onBlur:O,children:[N.jsx(My,ee(ee({},c),{},{placeholder:k(0),id:y??"".concat(y,"-0"),style:{width:"calc((100% - ".concat(p,"px) / 2)")},value:C==null?void 0:C[0],defaultValue:g==null?void 0:g[0],onChange:function(B){return M(0,B)}})),N.jsx(Oi,{style:{width:p,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:b==null?void 0:b.colorBgContainer},placeholder:d,disabled:!0}),N.jsx(My,ee(ee({},c),{},{placeholder:k(1),id:y??"".concat(y,"-1"),style:{width:"calc((100% - ".concat(p,"px) / 2)"),borderInlineStart:0},value:C==null?void 0:C[1],defaultValue:g==null?void 0:g[1],onChange:function(B){return M(1,B)}}))]}));return l?l(i,ee({mode:o},c),z):z}return null};const B_n=V.forwardRef(F_n);var kYe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){return function(r,i,o){r=r||{};var a=i.prototype,s={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 l(u,d,f,p){return a.fromToBase(u,d,f,p)}o.en.relativeTime=s,a.fromToBase=function(u,d,f,p,h){for(var g,v,y,_=f.$locale().relativeTime||s,S=r.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"}],b=S.length,E=0;E<b;E+=1){var w=S[E];w.d&&(g=p?o(u).diff(f,w.d,!0):f.diff(u,w.d,!0));var C=(r.rounding||Math.round)(Math.abs(g));if(y=g>0,C<=w.r||!w.r){C<=1&&E>0&&(w=S[E-1]);var x=_[w.l];h&&(C=h(""+C)),v=typeof x=="string"?x.replace("%d",C):x(C,d,w.l,y);break}}if(d)return v;var T=y?_.future:_.past;return typeof T=="function"?T(v):T.replace("%s",v)},a.to=function(u,d){return l(u,d,this,!0)},a.from=function(u,d){return l(u,d,this)};var c=function(u){return u.$u?o.utc():o()};a.toNow=function(u){return this.to(c(this),u)},a.fromNow=function(u){return this.from(c(this),u)}}})})(kYe);var j_n=kYe.exports;const U_n=Or(j_n);Zr.extend(U_n);var H_n=function(n,r){var i=n.text,o=n.mode,a=n.plain,s=n.render,l=n.renderFormItem,c=n.format,u=n.fieldProps,d=cs();if(o==="read"){var f=N.jsx(Sf,{title:Zr(i).format((u==null?void 0:u.format)||c||"YYYY-MM-DD HH:mm:ss"),children:Zr(i).fromNow()});return s?s(i,ee({mode:o},u),N.jsx(N.Fragment,{children:f})):N.jsx(N.Fragment,{children:f})}if(o==="edit"||o==="update"){var p=d.getMessage("tableForm.selectPlaceholder","请选择"),h=Dk(u.value),g=N.jsx(gd,ee(ee(ee({ref:r,placeholder:p,showTime:!0},Cf(a===void 0?!0:!a)),u),{},{value:h}));return l?l(i,ee({mode:o},u),g):g}return null};const z_n=V.forwardRef(H_n);var LYe=V.forwardRef(function(e,n){var r=e.text,i=e.mode,o=e.render,a=e.renderFormItem,s=e.fieldProps,l=e.placeholder,c=e.width,u=cs(),d=l||u.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var f=N.jsx(SVe,ee({ref:n,width:c||32,src:r},s));return o?o(r,ee({mode:i},s),f):f}if(i==="edit"||i==="update"){var p=N.jsx(Oi,ee({ref:n,placeholder:d},s));return a?a(r,ee({mode:i},s),p):p}return null}),V_n=function(n,r){var i=n.border,o=i===void 0?!1:i,a=n.children,s=m.useContext(or.ConfigContext),l=s.getPrefixCls,c=l("pro-field-index-column"),u=ia("IndexColumn",function(){return fe({},".".concat(c),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),d=u.wrapSSR,f=u.hashId;return d(N.jsx("div",{ref:r,className:Ce(c,f,fe(fe({},"".concat(c,"-border"),o),"top-three",a>3)),children:a}))};const uOe=V.forwardRef(V_n);var G_n=["contentRender","numberFormatOptions","numberPopoverRender","open"],W_n=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],$Ye=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),Y_n={style:"currency",currency:"USD"},q_n={style:"currency",currency:"RUB"},K_n={style:"currency",currency:"RSD"},X_n={style:"currency",currency:"MYR"},Q_n={style:"currency",currency:"BRL"},Z_n={default:$Ye,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":Y_n,"ru-RU":q_n,"ms-MY":X_n,"sr-RS":K_n,"pt-BR":Q_n},dOe=function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",s=r==null?void 0:r.toString().replaceAll(",","");if(typeof s=="string"){var l=Number(s);if(Number.isNaN(l))return s;s=l}if(!s&&s!==0)return"";var c=!1;try{c=n!==!1&&Intl.NumberFormat.supportedLocalesOf([n.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var u=new Intl.NumberFormat(c&&n!==!1&&(n==null?void 0:n.replace("_","-"))||"zh-Hans-CN",ee(ee({},Z_n[n||"zh-Hans-CN"]||$Ye),{},{maximumFractionDigits:i},o)),d=u.format(s),f=function(_){var S=_.match(/\d+/);if(S){var b=S[0];return _.slice(_.indexOf(b))}else return _},p=f(d),h=d||"",g=ke(h,1),v=g[0];return["+","-"].includes(v)?"".concat(a||"").concat(v).concat(p):"".concat(a||"").concat(p)}catch{return s}},Zq=2,J_n=V.forwardRef(function(e,n){var r=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var i=e.open,o=Xt(e,G_n),a=dr(function(){return o.defaultValue},{value:o.value,onChange:o.onChange}),s=ke(a,2),l=s[0],c=s[1],u=r==null?void 0:r(ee(ee({},o),{},{value:l})),d=$U(u?i:!1);return N.jsx(Rp,ee(ee({placement:"topLeft"},d),{},{trigger:["focus","click"],content:u,getPopupContainer:function(p){return(p==null?void 0:p.parentElement)||document.body},children:N.jsx(My,ee(ee({ref:n},o),{},{value:l,onChange:c}))}))}),ebn=function(n,r){var i,o=n.text,a=n.mode,s=n.render,l=n.renderFormItem,c=n.fieldProps;n.proFieldKey,n.plain,n.valueEnum;var u=n.placeholder,d=n.locale,f=n.customSymbol,p=f===void 0?c.customSymbol:f,h=n.numberFormatOptions,g=h===void 0?c==null?void 0:c.numberFormatOptions:h,v=n.numberPopoverRender,y=v===void 0?(c==null?void 0:c.numberPopoverRender)||!1:v,_=Xt(n,W_n),S=(i=c==null?void 0:c.precision)!==null&&i!==void 0?i:Zq,b=cs();d&&uC[d]&&(b=uC[d]);var E=u||b.getMessage("tableForm.inputPlaceholder","请输入"),w=m.useMemo(function(){if(p)return p;if(!(_.moneySymbol===!1||c.moneySymbol===!1))return b.getMessage("moneySymbol","¥")},[p,c.moneySymbol,b,_.moneySymbol]),C=m.useCallback(function(R){var O=new RegExp("\\B(?=(\\d{".concat(3+Math.max(S-Zq,0),"})+(?!\\d))"),"g"),M=String(R).split("."),P=ke(M,2),k=P[0],$=P[1],U=k.replace(O,","),z="";return $&&S>0&&(z=".".concat($.slice(0,S===void 0?Zq:S))),"".concat(U).concat(z)},[S]);if(a==="read"){var x=N.jsx("span",{ref:r,children:dOe(d||!1,o,S,g??c.numberFormatOptions,w)});return s?s(o,ee({mode:a},c),x):x}if(a==="edit"||a==="update"){var T=N.jsx(J_n,ee(ee({contentRender:function(O){if(y===!1||!O.value)return null;var M=dOe(w||d||!1,"".concat(C(O.value)),S,ee(ee({},g),{},{notation:"compact"}),w);return typeof y=="function"?y==null?void 0:y(O,M):M},ref:r,precision:S,formatter:function(O){return O&&w?"".concat(w," ").concat(C(O)):O==null?void 0:O.toString()},parser:function(O){return w&&O?O.replace(new RegExp("\\".concat(w,"\\s?|(,*)"),"g"),""):O},placeholder:E},Wr(c,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:c.onBlur?function(R){var O,M=R.target.value;w&&M&&(M=M.replace(new RegExp("\\".concat(w,"\\s?|(,*)"),"g"),"")),(O=c.onBlur)===null||O===void 0||O.call(c,M)}:void 0}));return l?l(o,ee({mode:a},c),T):T}return null};const FYe=V.forwardRef(ebn);var fOe=function(n){return n.map(function(r,i){var o;return V.isValidElement(r)?V.cloneElement(r,ee(ee({key:i},r==null?void 0:r.props),{},{style:ee({},r==null||(o=r.props)===null||o===void 0?void 0:o.style)})):N.jsx(V.Fragment,{children:r},i)})},tbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.fieldProps,l=m.useContext(or.ConfigContext),c=l.getPrefixCls,u=c("pro-field-option"),d=Pm.useToken(),f=d.token;if(m.useImperativeHandle(r,function(){return{}}),a){var p=a(i,ee({mode:o},s),N.jsx(N.Fragment,{}));return!p||(p==null?void 0:p.length)<1||!Array.isArray(p)?null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:fOe(p)})}return!i||!Array.isArray(i)?V.isValidElement(i)?i:null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:fOe(i)})};const nbn=V.forwardRef(tbn);var rbn=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],ibn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps;n.proFieldKey;var c=Xt(n,rbn),u=cs(),d=dr(function(){return c.open||c.visible||!1},{value:c.open||c.visible,onChange:c.onOpenChange||c.onVisible}),f=ke(d,2),p=f[0],h=f[1];if(o==="read"){var g=N.jsx(N.Fragment,{children:"-"});return i&&(g=N.jsxs(Ef,{children:[N.jsx("span",{ref:r,children:p?i:"********"}),N.jsx("a",{onClick:function(){return h(!p)},children:p?N.jsx(xk,{}):N.jsx(Uze,{})})]})),a?a(i,ee({mode:o},l),g):g}if(o==="edit"||o==="update"){var v=N.jsx(Oi.Password,ee({placeholder:u.getMessage("tableForm.inputPlaceholder","请输入"),ref:r},l));return s?s(i,ee({mode:o},l),v):v}return null};const obn=V.forwardRef(ibn);function abn(e){return e===0?null:e>0?"+":"-"}function sbn(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function lbn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return n>=0?e==null?void 0:e.toFixed(n):e}function xB(e){return cn(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var cbn=function(n,r){var i=n.text,o=n.prefix,a=n.precision,s=n.suffix,l=s===void 0?"%":s,c=n.mode,u=n.showColor,d=u===void 0?!1:u,f=n.render,p=n.renderFormItem,h=n.fieldProps,g=n.placeholder,v=n.showSymbol,y=cs(),_=g||y.getMessage("tableForm.inputPlaceholder","请输入"),S=m.useMemo(function(){return typeof i=="string"&&i.includes("%")?xB(i.replace("%","")):xB(i)},[i]),b=m.useMemo(function(){return typeof v=="function"?v==null?void 0:v(i):v},[v,i]);if(c==="read"){var E=d?{color:sbn(S)}:{},w=N.jsxs("span",{style:E,ref:r,children:[o&&N.jsx("span",{children:o}),b&&N.jsxs(m.Fragment,{children:[abn(S)," "]}),lbn(Math.abs(S),a),l&&l]});return f?f(i,ee(ee({mode:c},h),{},{prefix:o,precision:a,showSymbol:b,suffix:l}),w):w}if(c==="edit"||c==="update"){var C=N.jsx(My,ee({ref:r,formatter:function(T){return T&&o?"".concat(o," ").concat(T).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):T},parser:function(T){return T?T.replace(/.*\s|,/g,""):""},placeholder:_},h));return p?p(i,ee({mode:c},h),C):C}return null};const BYe=V.forwardRef(cbn);function ubn(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var dbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.plain,l=n.renderFormItem,c=n.fieldProps,u=n.placeholder,d=cs(),f=u||d.getMessage("tableForm.inputPlaceholder","请输入"),p=m.useMemo(function(){return typeof i=="string"&&i.includes("%")?xB(i.replace("%","")):xB(i)},[i]);if(o==="read"){var h=N.jsx(MVe,ee({ref:r,size:"small",style:{minWidth:100,maxWidth:320},percent:p,steps:s?10:void 0,status:ubn(p)},c));return a?a(p,ee({mode:o},c),h):h}if(o==="edit"||o==="update"){var g=N.jsx(My,ee({ref:r,placeholder:f},c));return l?l(i,ee({mode:o},c),g):g}return null};const jYe=V.forwardRef(dbn);var fbn=["radioType","renderFormItem","mode","render"],pbn=function(n,r){var i,o,a=n.radioType,s=n.renderFormItem,l=n.mode,c=n.render,u=Xt(n,fbn),d=m.useContext(or.ConfigContext),f=d.getPrefixCls,p=f("pro-field-radio"),h=SI(u),g=ke(h,3),v=g[0],y=g[1],_=g[2],S=m.useRef(),b=(i=Hr.Item)===null||i===void 0||(o=i.useStatus)===null||o===void 0?void 0:o.call(i);m.useImperativeHandle(r,function(){return ee(ee({},S.current||{}),{},{fetchData:function($){return _($)}})},[_]);var E=ia("FieldRadioRadio",function(k){return fe(fe(fe({},".".concat(p,"-error"),{span:{color:k.colorError}}),".".concat(p,"-warning"),{span:{color:k.colorWarning}}),".".concat(p,"-vertical"),fe({},"".concat(k.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),w=E.wrapSSR,C=E.hashId;if(v)return N.jsx(e_,{size:"small"});if(l==="read"){var x=y!=null&&y.length?y==null?void 0:y.reduce(function(k,$){var U;return ee(ee({},k),{},fe({},(U=$.value)!==null&&U!==void 0?U:"",$.label))},{}):void 0,T=N.jsx(N.Fragment,{children:bI(u.text,i_(u.valueEnum||x))});if(c){var R;return(R=c(u.text,ee({mode:l},u.fieldProps),T))!==null&&R!==void 0?R:null}return T}if(l==="edit"){var O,M=w(N.jsx(ya.Group,ee(ee({ref:S,optionType:a},u.fieldProps),{},{className:Ce((O=u.fieldProps)===null||O===void 0?void 0:O.className,fe(fe({},"".concat(p,"-error"),(b==null?void 0:b.status)==="error"),"".concat(p,"-warning"),(b==null?void 0:b.status)==="warning"),C,"".concat(p,"-").concat(u.fieldProps.layout||"horizontal")),options:y})));if(s){var P;return(P=s(u.text,ee(ee({mode:l},u.fieldProps),{},{options:y,loading:v}),M))!==null&&P!==void 0?P:null}return M}return null};const pOe=V.forwardRef(pbn);var hbn=function(n,r){var i=n.text,o=n.mode,a=n.light,s=n.label,l=n.format,c=n.render,u=n.picker,d=n.renderFormItem,f=n.plain,p=n.showTime,h=n.lightLabel,g=n.bordered,v=n.fieldProps,y=cs(),_=Array.isArray(i)?i:[],S=ke(_,2),b=S[0],E=S[1],w=V.useState(!1),C=ke(w,2),x=C[0],T=C[1],R=m.useCallback(function(z){if(typeof(v==null?void 0:v.format)=="function"){var D;return v==null||(D=v.format)===null||D===void 0?void 0:D.call(v,z)}return(v==null?void 0:v.format)||l||"YYYY-MM-DD"},[v,l]),O=b?Zr(b).format(R(Zr(b))):"",M=E?Zr(E).format(R(Zr(E))):"";if(o==="read"){var P=N.jsxs("div",{ref:r,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[N.jsx("div",{children:O||"-"}),N.jsx("div",{children:M||"-"})]});return c?c(i,ee({mode:o},v),N.jsx("span",{children:P})):P}if(o==="edit"||o==="update"){var k=Dk(v.value),$;if(a){var U;$=N.jsx(r_,{label:s,onClick:function(){var D;v==null||(D=v.onOpenChange)===null||D===void 0||D.call(v,!0),T(!0)},style:k?{paddingInlineEnd:0}:void 0,disabled:v.disabled,value:k||x?N.jsx(gd.RangePicker,ee(ee(ee({picker:u,showTime:p,format:l},Cf(!1)),v),{},{placeholder:(U=v.placeholder)!==null&&U!==void 0?U:[y.getMessage("tableForm.selectPlaceholder","请选择"),y.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var D;T(!1),v==null||(D=v.onClear)===null||D===void 0||D.call(v)},value:k,onOpenChange:function(D){var B;k&&T(D),v==null||(B=v.onOpenChange)===null||B===void 0||B.call(v,D)}})):null,allowClear:!1,bordered:g,ref:h,downIcon:k||x?!1:void 0})}else $=N.jsx(gd.RangePicker,ee(ee(ee({ref:r,format:l,showTime:p,placeholder:[y.getMessage("tableForm.selectPlaceholder","请选择"),y.getMessage("tableForm.selectPlaceholder","请选择")]},Cf(f===void 0?!0:!f)),v),{},{value:k}));return d?d(i,ee({mode:o},v),$):$}return null};const Mx=V.forwardRef(hbn);var gbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps;if(o==="read"){var c=N.jsx(Swe,ee(ee({allowHalf:!0,disabled:!0,ref:r},l),{},{value:i}));return a?a(i,ee({mode:o},l),N.jsx(N.Fragment,{children:c})):c}if(o==="edit"||o==="update"){var u=N.jsx(Swe,ee({allowHalf:!0,ref:r},l));return s?s(i,ee({mode:o},l),u):u}return null};const mbn=V.forwardRef(gbn);function vbn(e){var n=e,r="",i=!1;n<0&&(n=-n,i=!0);var o=Math.floor(n/(3600*24)),a=Math.floor(n/3600%24),s=Math.floor(n/60%60),l=Math.floor(n%60);return r="".concat(l,"秒"),s>0&&(r="".concat(s,"分钟").concat(r)),a>0&&(r="".concat(a,"小时").concat(r)),o>0&&(r="".concat(o,"天").concat(r)),i&&(r+="前"),r}var ybn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps,c=n.placeholder,u=cs(),d=c||u.getMessage("tableForm.inputPlaceholder","请输入");if(o==="read"){var f=vbn(Number(i)),p=N.jsx("span",{ref:r,children:f});return a?a(i,ee({mode:o},l),p):p}if(o==="edit"||o==="update"){var h=N.jsx(My,ee({ref:r,min:0,style:{width:"100%"},placeholder:d},l));return s?s(i,ee({mode:o},l),h):h}return null};const _bn=V.forwardRef(ybn);var bbn=["mode","render","renderFormItem","fieldProps","emptyText"],Sbn=function(n,r){var i=n.mode,o=n.render,a=n.renderFormItem,s=n.fieldProps,l=n.emptyText,c=l===void 0?"-":l,u=Xt(n,bbn),d=m.useRef(),f=SI(n),p=ke(f,3),h=p[0],g=p[1],v=p[2];if(m.useImperativeHandle(r,function(){return ee(ee({},d.current||{}),{},{fetchData:function(w){return v(w)}})},[v]),h)return N.jsx(e_,{size:"small"});if(i==="read"){var y=g!=null&&g.length?g==null?void 0:g.reduce(function(E,w){var C;return ee(ee({},E),{},fe({},(C=w.value)!==null&&C!==void 0?C:"",w.label))},{}):void 0,_=N.jsx(N.Fragment,{children:bI(u.text,i_(u.valueEnum||y))});if(o){var S;return(S=o(u.text,ee({mode:i},s),N.jsx(N.Fragment,{children:_})))!==null&&S!==void 0?S:c}return _}if(i==="edit"||i==="update"){var b=N.jsx(Mze,ee(ee({ref:d},Wr(s||{},["allowClear"])),{},{options:g}));return a?a(u.text,ee(ee({mode:i},s),{},{options:g,loading:h}),b):b}return null};const Ebn=V.forwardRef(Sbn);var Cbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps;if(o==="read"){var c=i;return a?a(i,ee({mode:o},l),N.jsx(N.Fragment,{children:c})):N.jsx(N.Fragment,{children:c})}if(o==="edit"||o==="update"){var u=N.jsx(Gze,ee(ee({ref:r},l),{},{style:ee({minWidth:120},l==null?void 0:l.style)}));return s?s(i,ee({mode:o},l),u):u}return null};const wbn=V.forwardRef(Cbn);var xbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.light,l=n.label,c=n.renderFormItem,u=n.fieldProps,d=cs(),f=m.useMemo(function(){var y,_;return i==null||"".concat(i).length<1?"-":i?(y=u==null?void 0:u.checkedChildren)!==null&&y!==void 0?y:d.getMessage("switch.open","打开"):(_=u==null?void 0:u.unCheckedChildren)!==null&&_!==void 0?_:d.getMessage("switch.close","关闭")},[u==null?void 0:u.checkedChildren,u==null?void 0:u.unCheckedChildren,i]);if(o==="read")return a?a(i,ee({mode:o},u),N.jsx(N.Fragment,{children:f})):f??"-";if(o==="edit"||o==="update"){var p,h=N.jsx(sC,ee(ee({ref:r,size:s?"small":void 0},Wr(u,["value"])),{},{checked:(p=u==null?void 0:u.checked)!==null&&p!==void 0?p:u==null?void 0:u.value}));if(s){var g=u.disabled,v=u.bordered;return N.jsx(r_,{label:l,disabled:g,bordered:v,downIcon:!1,value:N.jsx("div",{style:{paddingLeft:8},children:h}),allowClear:!1})}return c?c(i,ee({mode:o},u),h):h}return null};const Tbn=V.forwardRef(xbn);var Obn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps,c=n.emptyText,u=c===void 0?"-":c,d=l||{},f=d.autoFocus,p=d.prefix,h=p===void 0?"":p,g=d.suffix,v=g===void 0?"":g,y=cs(),_=m.useRef();if(m.useImperativeHandle(r,function(){return _.current},[]),m.useEffect(function(){if(f){var C;(C=_.current)===null||C===void 0||C.focus()}},[f]),o==="read"){var S=N.jsxs(N.Fragment,{children:[h,i??u,v]});if(a){var b;return(b=a(i,ee({mode:o},l),S))!==null&&b!==void 0?b:u}return S}if(o==="edit"||o==="update"){var E=y.getMessage("tableForm.inputPlaceholder","请输入"),w=N.jsx(Oi,ee({ref:_,placeholder:E,allowClear:!0},l));return s?s(i,ee({mode:o},l),w):w}return null};const Rbn=V.forwardRef(Obn);var Ibn=function(n,r){var i=n.text,o=n.fieldProps,a=m.useContext(or.ConfigContext),s=a.getPrefixCls,l=s("pro-field-readonly"),c="".concat(l,"-textarea"),u=ia("TextArea",function(){return fe({},".".concat(c),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),d=u.wrapSSR,f=u.hashId;return d(N.jsx("span",ee(ee({ref:r,className:Ce(f,l,c)},Wr(o,["autoSize","classNames","styles"])),{},{children:i??"-"})))};const Nbn=V.forwardRef(Ibn);var Mbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps,c=cs();if(o==="read"){var u=N.jsx(Nbn,ee(ee({},n),{},{ref:r}));return a?a(i,ee({mode:o},Wr(l,["showCount"])),u):u}if(o==="edit"||o==="update"){var d=N.jsx(Oi.TextArea,ee({ref:r,rows:3,onKeyPress:function(p){p.key==="Enter"&&p.stopPropagation()},placeholder:c.getMessage("tableForm.inputPlaceholder","请输入")},l));return s?s(i,ee({mode:o},l),d):d}return null};const Pbn=V.forwardRef(Mbn);var Abn=function(n,r){var i=n.text,o=n.mode,a=n.light,s=n.label,l=n.format,c=n.render,u=n.renderFormItem,d=n.plain,f=n.fieldProps,p=n.lightLabel,h=m.useState(!1),g=ke(h,2),v=g[0],y=g[1],_=cs(),S=(f==null?void 0:f.format)||l||"HH:mm:ss",b=Zr.isDayjs(i)||typeof i=="number";if(o==="read"){var E=N.jsx("span",{ref:r,children:i?Zr(i,b?void 0:S).format(S):"-"});return c?c(i,ee({mode:o},f),N.jsx("span",{children:E})):E}if(o==="edit"||o==="update"){var w,C=f.disabled,x=f.value,T=Dk(x,S);if(a){var R;w=N.jsx(r_,{onClick:function(){var M;f==null||(M=f.onOpenChange)===null||M===void 0||M.call(f,!0),y(!0)},style:T?{paddingInlineEnd:0}:void 0,label:s,disabled:C,value:T||v?N.jsx(Py,ee(ee(ee({},Cf(!1)),{},{format:l,ref:r},f),{},{placeholder:(R=f.placeholder)!==null&&R!==void 0?R:_.getMessage("tableForm.selectPlaceholder","请选择"),value:T,onOpenChange:function(M){var P;y(M),f==null||(P=f.onOpenChange)===null||P===void 0||P.call(f,M)},open:v})):null,downIcon:T||v?!1:void 0,allowClear:!1,ref:p})}else w=N.jsx(gd.TimePicker,ee(ee(ee({ref:r,format:l},Cf(d===void 0?!0:!d)),f),{},{value:T}));return u?u(i,ee({mode:o},f),w):w}return null},Dbn=function(n,r){var i=n.text,o=n.light,a=n.label,s=n.mode,l=n.lightLabel,c=n.format,u=n.render,d=n.renderFormItem,f=n.plain,p=n.fieldProps,h=cs(),g=m.useState(!1),v=ke(g,2),y=v[0],_=v[1],S=(p==null?void 0:p.format)||c||"HH:mm:ss",b=Array.isArray(i)?i:[],E=ke(b,2),w=E[0],C=E[1],x=Zr.isDayjs(w)||typeof w=="number",T=Zr.isDayjs(C)||typeof C=="number",R=w?Zr(w,x?void 0:S).format(S):"",O=C?Zr(C,T?void 0:S).format(S):"";if(s==="read"){var M=N.jsxs("div",{ref:r,children:[N.jsx("div",{children:R||"-"}),N.jsx("div",{children:O||"-"})]});return u?u(i,ee({mode:s},p),N.jsx("span",{children:M})):M}if(s==="edit"||s==="update"){var P=Dk(p.value,S),k;if(o){var $=p.disabled,U=p.placeholder,z=U===void 0?[h.getMessage("tableForm.selectPlaceholder","请选择"),h.getMessage("tableForm.selectPlaceholder","请选择")]:U;k=N.jsx(r_,{onClick:function(){var B;p==null||(B=p.onOpenChange)===null||B===void 0||B.call(p,!0),_(!0)},style:P?{paddingInlineEnd:0}:void 0,label:a,disabled:$,placeholder:z,value:P||y?N.jsx(Py.RangePicker,ee(ee(ee({},Cf(!1)),{},{format:c,ref:r},p),{},{placeholder:z,value:P,onOpenChange:function(B){var Y;_(B),p==null||(Y=p.onOpenChange)===null||Y===void 0||Y.call(p,B)},open:y})):null,downIcon:P||y?!1:void 0,allowClear:!1,ref:l})}else k=N.jsx(Py.RangePicker,ee(ee(ee({ref:r,format:c},Cf(f===void 0?!0:!f)),p),{},{value:P}));return d?d(i,ee({mode:s},p),k):k}return null},kbn=V.forwardRef(Dbn);const Lbn=V.forwardRef(Abn);var $bn=["radioType","renderFormItem","mode","light","label","render"],Fbn=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],Bbn=function(n,r){n.radioType;var i=n.renderFormItem,o=n.mode,a=n.light,s=n.label,l=n.render,c=Xt(n,$bn),u=m.useContext(or.ConfigContext),d=u.getPrefixCls,f=d("pro-field-tree-select"),p=m.useRef(null),h=m.useState(!1),g=ke(h,2),v=g[0],y=g[1],_=c.fieldProps,S=_.onSearch,b=_.onClear,E=_.onChange,w=_.onBlur,C=_.showSearch,x=_.autoClearSearchValue;_.treeData;var T=_.fetchDataOnSearch,R=_.searchValue,O=Xt(_,Fbn),M=cs(),P=SI(ee(ee({},c),{},{defaultKeyWords:R})),k=ke(P,3),$=k[0],U=k[1],z=k[2],D=dr(void 0,{onChange:S,value:R}),B=ke(D,2),Y=B[0],q=B[1];m.useImperativeHandle(r,function(){return ee(ee({},p.current||{}),{},{fetchData:function(ve){return z(ve)}})});var K=m.useMemo(function(){if(o==="read"){var me=(O==null?void 0:O.fieldNames)||{},ve=me.value,he=ve===void 0?"value":ve,be=me.label,we=be===void 0?"label":be,De=me.children,Ae=De===void 0?"children":De,Ee=new Map,Re=function Te(Oe){if(!(Oe!=null&&Oe.length))return Ee;for(var Ne=Oe.length,je=0;je<Ne;){var ne=Oe[je++];Ee.set(ne[he],ne[we]),Te(ne[Ae])}return Ee};return Re(U)}},[O==null?void 0:O.fieldNames,o,U]),H=function(ve,he,be){C&&x&&(z(void 0),q(void 0)),E==null||E(ve,he,be)};if(o==="read"){var G=N.jsx(N.Fragment,{children:bI(c.text,i_(c.valueEnum||K))});if(l){var Q;return(Q=l(c.text,ee({mode:o},O),G))!==null&&Q!==void 0?Q:null}return G}if(o==="edit"){var le,Z=Array.isArray(O==null?void 0:O.value)?O==null||(le=O.value)===null||le===void 0?void 0:le.length:0,j=N.jsx(e_,{spinning:$,children:N.jsx(cw,ee(ee({open:v,onDropdownVisibleChange:function(ve){var he;O==null||(he=O.onDropdownVisibleChange)===null||he===void 0||he.call(O,ve),y(ve)},ref:p,popupMatchSelectWidth:!a,placeholder:M.getMessage("tableForm.selectPlaceholder","请选择"),tagRender:a?function(me){var ve;if(Z<2)return N.jsx(N.Fragment,{children:me.label});var he=O==null||(ve=O.value)===null||ve===void 0?void 0:ve.findIndex(function(be){return be===me.value||be.value===me.value});return N.jsxs(N.Fragment,{children:[me.label," ",he<Z-1?",":""]})}:void 0,bordered:!a},O),{},{treeData:U,showSearch:C,style:ee({minWidth:60},O.style),allowClear:O.allowClear!==!1,searchValue:Y,autoClearSearchValue:x,onClear:function(){b==null||b(),z(void 0),C&&q(void 0)},onChange:H,onSearch:function(ve){T&&c!==null&&c!==void 0&&c.request&&z(ve),q(ve)},onBlur:function(ve){q(void 0),z(void 0),w==null||w(ve)},className:Ce(O==null?void 0:O.className,f)}))});if(i){var F;j=(F=i(c.text,ee(ee({mode:o},O),{},{options:U,loading:$}),j))!==null&&F!==void 0?F:null}if(a){var te,oe=O.disabled,de=O.placeholder,pe=!!O.value&&((te=O.value)===null||te===void 0?void 0:te.length)!==0;return N.jsx(r_,{label:s,disabled:oe,placeholder:de,onClick:function(){var ve;y(!0),O==null||(ve=O.onDropdownVisibleChange)===null||ve===void 0||ve.call(O,!0)},bordered:c.bordered,value:pe||v?j:null,style:pe?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:!1})}return j}return null};const jbn=V.forwardRef(Bbn);function zu(e){var n=m.useState(!1),r=ke(n,2),i=r[0],o=r[1],a=m.useRef(null),s=m.useCallback(function(u){var d,f,p=(d=a.current)===null||d===void 0||(d=d.labelRef)===null||d===void 0||(d=d.current)===null||d===void 0?void 0:d.contains(u.target),h=(f=a.current)===null||f===void 0||(f=f.clearRef)===null||f===void 0||(f=f.current)===null||f===void 0?void 0:f.contains(u.target);return p&&!h},[a]),l=function(d){s(d)&&o(!0)},c=function(){o(!1)};return e.isLight?N.jsx("div",{onMouseDown:l,onMouseUp:c,children:V.cloneElement(e.children,{labelTrigger:i,lightLabel:a})}):N.jsx(N.Fragment,{children:e.children})}var UYe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r="day";return function(i,o,a){var s=function(u){return u.add(4-u.isoWeekday(),r)},l=o.prototype;l.isoWeekYear=function(){return s(this).year()},l.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),r);var d,f,p,h,g=s(this),v=(d=this.isoWeekYear(),f=this.$u,p=(f?a.utc:a)().year(d).startOf("year"),h=4-p.isoWeekday(),p.isoWeekday()>4&&(h+=7),p.add(h,r));return g.diff(v,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var f=this.$utils(),p=!!f.u(d)||d;return f.p(u)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}})})(UYe);var Ubn=UYe.exports;const Hbn=Or(Ubn);var HYe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r={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(i,o,a){var s=o.prototype,l=s.format;a.en.formats=r,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,g,v){var y=v&&v.toUpperCase();return g||p[v]||r[v]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,S,b){return S||b.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(HYe);var zbn=HYe.exports;const Vbn=Or(zbn);var Gbn=["fieldProps"],Wbn=["fieldProps"],Ybn=["fieldProps"],qbn=["fieldProps"],Kbn=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],Xbn=["placeholder"];Zr.extend(oHe);Zr.extend(cHe);Zr.extend(Hbn);Zr.extend(ude);Zr.extend(rHe);Zr.extend(Vbn);var Qbn=function(n,r,i){var o=cWe(i.fieldProps);return r.type==="progress"?N.jsx(jYe,ee(ee({},i),{},{text:n,fieldProps:ee({status:r.status?r.status:void 0},o)})):r.type==="money"?N.jsx(FYe,ee(ee({locale:r.locale},i),{},{fieldProps:o,text:n,moneySymbol:r.moneySymbol})):r.type==="percent"?N.jsx(BYe,ee(ee({},i),{},{text:n,showSymbol:r.showSymbol,precision:r.precision,fieldProps:o,showColor:r.showColor})):r.type==="image"?N.jsx(LYe,ee(ee({},i),{},{text:n,width:r.width})):n},Zbn=function(n,r,i,o){var a=i.mode,s=a===void 0?"read":a,l=i.emptyText,c=l===void 0?"-":l;if(c!==!1&&s==="read"&&r!=="option"&&r!=="switch"&&typeof n!="boolean"&&typeof n!="number"&&!n){var u=i.fieldProps,d=i.render;return d?d(n,ee({mode:s},u),N.jsx(N.Fragment,{children:c})):N.jsx(N.Fragment,{children:c})}if(delete i.emptyText,cn(r)==="object")return Qbn(n,r,i);var f=o&&o[r];if(f){if(delete i.ref,s==="read"){var p;return(p=f.render)===null||p===void 0?void 0:p.call(f,n,ee(ee({text:n},i),{},{mode:s||"read"}),N.jsx(N.Fragment,{children:n}))}if(s==="update"||s==="edit"){var h;return(h=f.renderFormItem)===null||h===void 0?void 0:h.call(f,n,ee({text:n},i),N.jsx(N.Fragment,{children:n}))}}if(r==="money")return N.jsx(FYe,ee(ee({},i),{},{text:n}));if(r==="date")return N.jsx(zu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY-MM-DD"},i))});if(r==="dateWeek")return N.jsx(zu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY-wo",picker:"week"},i))});if(r==="dateWeekRange"){var g=i.fieldProps,v=Xt(i,Gbn);return N.jsx(zu,{isLight:i.light,children:N.jsx(Mx,ee({text:n,format:"YYYY-W",showTime:!0,fieldProps:ee({picker:"week"},g)},v))})}if(r==="dateMonthRange"){var y=i.fieldProps,_=Xt(i,Wbn);return N.jsx(zu,{isLight:i.light,children:N.jsx(Mx,ee({text:n,format:"YYYY-MM",showTime:!0,fieldProps:ee({picker:"month"},y)},_))})}if(r==="dateQuarterRange"){var S=i.fieldProps,b=Xt(i,Ybn);return N.jsx(zu,{isLight:i.light,children:N.jsx(Mx,ee({text:n,format:"YYYY-Q",showTime:!0,fieldProps:ee({picker:"quarter"},S)},b))})}if(r==="dateYearRange"){var E=i.fieldProps,w=Xt(i,qbn);return N.jsx(zu,{isLight:i.light,children:N.jsx(Mx,ee({text:n,format:"YYYY",showTime:!0,fieldProps:ee({picker:"year"},E)},w))})}return r==="dateMonth"?N.jsx(zu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY-MM",picker:"month"},i))}):r==="dateQuarter"?N.jsx(zu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY-[Q]Q",picker:"quarter"},i))}):r==="dateYear"?N.jsx(zu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY",picker:"year"},i))}):r==="dateRange"?N.jsx(Mx,ee({text:n,format:"YYYY-MM-DD"},i)):r==="dateTime"?N.jsx(zu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},i))}):r==="dateTimeRange"?N.jsx(zu,{isLight:i.light,children:N.jsx(Mx,ee({text:n,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},i))}):r==="time"?N.jsx(zu,{isLight:i.light,children:N.jsx(Lbn,ee({text:n,format:"HH:mm:ss"},i))}):r==="timeRange"?N.jsx(zu,{isLight:i.light,children:N.jsx(kbn,ee({text:n,format:"HH:mm:ss"},i))}):r==="fromNow"?N.jsx(z_n,ee({text:n},i)):r==="index"?N.jsx(uOe,{children:n+1}):r==="indexBorder"?N.jsx(uOe,{border:!0,children:n+1}):r==="progress"?N.jsx(jYe,ee(ee({},i),{},{text:n})):r==="percent"?N.jsx(BYe,ee({text:n},i)):r==="avatar"&&typeof n=="string"&&i.mode==="read"?N.jsx(nS,{src:n,size:22,shape:"circle"}):r==="code"?N.jsx(Xxe,ee({text:n},i)):r==="jsonCode"?N.jsx(Xxe,ee({text:n,language:"json"},i)):r==="textarea"?N.jsx(Pbn,ee({text:n},i)):r==="digit"?N.jsx($_n,ee({text:n},i)):r==="digitRange"?N.jsx(B_n,ee({text:n},i)):r==="second"?N.jsx(_bn,ee({text:n},i)):r==="select"||r==="text"&&(i.valueEnum||i.request)?N.jsx(zu,{isLight:i.light,children:N.jsx(xnn,ee({text:n},i))}):r==="checkbox"?N.jsx(Pnn,ee({text:n},i)):r==="radio"?N.jsx(pOe,ee({text:n},i)):r==="radioButton"?N.jsx(pOe,ee({radioType:"button",text:n},i)):r==="rate"?N.jsx(mbn,ee({text:n},i)):r==="slider"?N.jsx(wbn,ee({text:n},i)):r==="switch"?N.jsx(Tbn,ee({text:n},i)):r==="option"?N.jsx(nbn,ee({text:n},i)):r==="password"?N.jsx(obn,ee({text:n},i)):r==="image"?N.jsx(LYe,ee({text:n},i)):r==="cascader"?N.jsx(Rnn,ee({text:n},i)):r==="treeSelect"?N.jsx(jbn,ee({text:n},i)):r==="color"?N.jsx(A_n,ee({text:n},i)):r==="segmented"?N.jsx(Ebn,ee({text:n},i)):N.jsx(Rbn,ee({text:n},i))},Jbn=function(n,r){var i,o,a,s,l,c=n.text,u=n.valueType,d=u===void 0?"text":u,f=n.mode,p=f===void 0?"read":f,h=n.onChange,g=n.renderFormItem,v=n.value,y=n.readonly,_=n.fieldProps,S=Xt(n,Kbn),b=m.useContext(R0),E=Wh(function(){for(var x,T=arguments.length,R=new Array(T),O=0;O<T;O++)R[O]=arguments[O];_==null||(x=_.onChange)===null||x===void 0||x.call.apply(x,[_].concat(R)),h==null||h.apply(void 0,R)}),w=Xu(function(){return(v!==void 0||_)&&ee(ee({value:v},fp(_)),{},{onChange:E})},[v,_,E]),C=Zbn(p==="edit"?(i=(o=w==null?void 0:w.value)!==null&&o!==void 0?o:c)!==null&&i!==void 0?i:"":(a=c??(w==null?void 0:w.value))!==null&&a!==void 0?a:"",d||"text",fp(ee(ee({ref:r},S),{},{mode:y?"read":p,renderFormItem:g?function(x,T,R){T.placeholder;var O=Xt(T,Xbn),M=g(x,O,R);return V.isValidElement(M)?V.cloneElement(M,ee(ee({},w),M.props||{})):M}:void 0,placeholder:g?void 0:(s=S==null?void 0:S.placeholder)!==null&&s!==void 0?s:w==null?void 0:w.placeholder,fieldProps:cWe(fp(ee(ee({},w),{},{placeholder:g?void 0:(l=S==null?void 0:S.placeholder)!==null&&l!==void 0?l:w==null?void 0:w.placeholder})))})),b.valueTypeMap||{});return N.jsx(V.Fragment,{children:C})},e0n=V.forwardRef(Jbn),Afe=V.createContext({mode:"edit"}),t0n=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],n0n=function(n){var r=n.fieldProps,i=n.children;n.labelCol,n.label;var o=n.autoFocus;n.isDefaultDom;var a=n.render,s=n.proFieldProps,l=n.renderFormItem,c=n.valueType;n.initialValue;var u=n.onChange,d=n.valueEnum,f=n.params;n.name;var p=n.dependenciesValues,h=n.cacheForSwr,g=h===void 0?!1:h,v=n.valuePropName,y=v===void 0?"value":v,_=Xt(n,t0n),S=m.useContext(Afe),b=m.useMemo(function(){return p&&_.request?ee(ee({},f),p||{}):f},[p,f,_.request]),E=Wh(function(){if(r!=null&&r.onChange){for(var x,T=arguments.length,R=new Array(T),O=0;O<T;O++)R[O]=arguments[O];r==null||(x=r.onChange)===null||x===void 0||x.call.apply(x,[r].concat(R));return}}),w=m.useMemo(function(){return ee(ee({autoFocus:o},r),{},{onChange:E})},[o,r,E]),C=m.useMemo(function(){if(i)return V.isValidElement(i)?V.cloneElement(i,ee(ee({},_),{},{onChange:function(){for(var T=arguments.length,R=new Array(T),O=0;O<T;O++)R[O]=arguments[O];if(r!=null&&r.onChange){var M;r==null||(M=r.onChange)===null||M===void 0||M.call.apply(M,[r].concat(R));return}u==null||u.apply(void 0,R)}},(i==null?void 0:i.props)||{})):N.jsx(N.Fragment,{children:i})},[i,r==null?void 0:r.onChange,u,_]);return C||N.jsx(e0n,ee(ee(ee({text:r==null?void 0:r[y],render:a,renderFormItem:l,valueType:c||"text",cacheForSwr:g,fieldProps:w,valueEnum:fC(d)},s),_),{},{mode:(s==null?void 0:s.mode)||S.mode||"edit",params:b}))},bu=UU(m.memo(n0n,function(e,n){return A1(n,e,["onChange","onBlur"])})),r0n=["options","fieldProps","proFieldProps","valueEnum"],i0n=V.forwardRef(function(e,n){var r=e.options,i=e.fieldProps,o=e.proFieldProps,a=e.valueEnum,s=Xt(e,r0n);return N.jsx(bu,ee({ref:n,valueType:"checkbox",valueEnum:fC(a,void 0),fieldProps:ee({options:r},i),lightProps:ee({labelFormatter:function(){return N.jsx(bu,ee({ref:n,valueType:"checkbox",mode:"read",valueEnum:fC(a,void 0),filedConfig:{customLightMode:!0},fieldProps:ee({options:r},i),proFieldProps:o},s))}},s.lightProps),proFieldProps:o},s))}),o0n=V.forwardRef(function(e,n){var r=e.fieldProps,i=e.children;return N.jsx(ow,ee(ee({ref:n},r),{},{children:i}))}),a0n=UU(o0n,{valuePropName:"checked"}),rH=a0n;rH.Group=i0n;var s0n=["proFieldProps","fieldProps"],hOe="date",l0n=V.forwardRef(function(e,n){var r=e.proFieldProps,i=e.fieldProps,o=Xt(e,s0n),a=m.useContext(Eg);return N.jsx(bu,ee({ref:n,valueType:hOe,fieldProps:ee({getPopupContainer:a.getPopupContainer},i),proFieldProps:r,filedConfig:{valueType:hOe,customLightMode:!0}},o))}),c0n=["proFieldProps","fieldProps"],gOe="dateMonth",u0n=V.forwardRef(function(e,n){var r=e.proFieldProps,i=e.fieldProps,o=Xt(e,c0n),a=m.useContext(Eg);return N.jsx(bu,ee({ref:n,valueType:gOe,fieldProps:ee({getPopupContainer:a.getPopupContainer},i),proFieldProps:r,filedConfig:{valueType:gOe,customLightMode:!0}},o))}),d0n=["fieldProps"],mOe="dateQuarter",f0n=V.forwardRef(function(e,n){var r=e.fieldProps,i=Xt(e,d0n),o=m.useContext(Eg);return N.jsx(bu,ee({ref:n,valueType:mOe,fieldProps:ee({getPopupContainer:o.getPopupContainer},r),filedConfig:{valueType:mOe,customLightMode:!0}},i))}),p0n=["proFieldProps","fieldProps"],vOe="dateWeek",h0n=V.forwardRef(function(e,n){var r=e.proFieldProps,i=e.fieldProps,o=Xt(e,p0n),a=m.useContext(Eg);return N.jsx(bu,ee({ref:n,valueType:vOe,fieldProps:ee({getPopupContainer:a.getPopupContainer},i),proFieldProps:r,filedConfig:{valueType:vOe,customLightMode:!0}},o))}),g0n=["proFieldProps","fieldProps"],yOe="dateYear",m0n=V.forwardRef(function(e,n){var r=e.proFieldProps,i=e.fieldProps,o=Xt(e,g0n),a=m.useContext(Eg);return N.jsx(bu,ee({ref:n,valueType:yOe,fieldProps:ee({getPopupContainer:a.getPopupContainer},i),proFieldProps:r,filedConfig:{valueType:yOe,customLightMode:!0}},o))}),MI=l0n;MI.Week=h0n;MI.Month=u0n;MI.Quarter=f0n;MI.Year=m0n;MI.displayName="ProFormComponent";var Dfe=V.createContext({}),v0n=["name","originDependencies","children","ignoreFormListField"],zYe=function(n){var r=n.name,i=n.originDependencies,o=i===void 0?r:i,a=n.children,s=n.ignoreFormListField,l=Xt(n,v0n),c=m.useContext(rWe),u=m.useContext(Dfe),d=m.useMemo(function(){return r.map(function(f){var p,h=[f];return!s&&u.name!==void 0&&(p=u.listName)!==null&&p!==void 0&&p.length&&h.unshift(u.listName),h.flat(1)})},[u.listName,u.name,s,r==null?void 0:r.toString()]);return N.jsx(Hr.Item,ee(ee({},l),{},{noStyle:!0,shouldUpdate:function(p,h,g){if(typeof l.shouldUpdate=="boolean")return l.shouldUpdate;if(typeof l.shouldUpdate=="function"){var v;return(v=l.shouldUpdate)===null||v===void 0?void 0:v.call(l,p,h,g)}return d.some(function(y){return!A1(al(p,y),al(h,y))})},children:function(p){for(var h={},g=0;g<r.length;g++){var v,y=d[g],_=o[g],S=[_].flat(1),b=(v=c.getFieldFormatValueObject)===null||v===void 0?void 0:v.call(c,y);if(b&&Object.keys(b).length)h=lWe({},h,b),al(b,y)&&(h=Fs(h,S,al(b,y)));else{var E;b=(E=p.getFieldValue)===null||E===void 0?void 0:E.call(p,y),typeof b<"u"&&(h=Fs(h,S,b))}}return a==null?void 0:a(h,ee(ee({},p),c))}}))};zYe.displayName="ProFormDependency";var y0n=["fieldProps","min","proFieldProps","max"],_0n=function(n,r){var i=n.fieldProps,o=n.min,a=n.proFieldProps,s=n.max,l=Xt(n,y0n);return N.jsx(bu,ee({valueType:"digit",fieldProps:ee({min:o,max:s},i),ref:r,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:a},l))},b0n=V.forwardRef(_0n),S0n=["children","onChange","onBlur","ignoreFormItem","valuePropName"],E0n=["children","addonAfter","addonBefore","valuePropName","addonWarpStyle","convertValue","help"],C0n=["valueType","transform","dataFormat","ignoreFormItem","lightProps","children"],w0n=V.createContext({}),x0n=function(n){var r,i,o=n.children,a=n.onChange,s=n.onBlur;n.ignoreFormItem;var l=n.valuePropName,c=l===void 0?"value":l,u=Xt(n,S0n),d=(o==null||(r=o.type)===null||r===void 0?void 0:r.displayName)!=="ProFormComponent",f=!V.isValidElement(o),p=Wh(function(){for(var S,b,E,w,C=arguments.length,x=new Array(C),T=0;T<C;T++)x[T]=arguments[T];a==null||a.apply(void 0,x),!d&&(f||(o==null||(S=o.props)===null||S===void 0||(b=S.onChange)===null||b===void 0||b.call.apply(b,[S].concat(x)),o==null||(E=o.props)===null||E===void 0||(E=E.fieldProps)===null||E===void 0||(w=E.onChange)===null||w===void 0||w.call.apply(w,[E].concat(x))))}),h=Wh(function(){var S,b,E,w;if(!d&&!f){for(var C=arguments.length,x=new Array(C),T=0;T<C;T++)x[T]=arguments[T];s==null||s.apply(void 0,x),o==null||(S=o.props)===null||S===void 0||(b=S.onBlur)===null||b===void 0||b.call.apply(b,[S].concat(x)),o==null||(E=o.props)===null||E===void 0||(E=E.fieldProps)===null||E===void 0||(w=E.onBlur)===null||w===void 0||w.call.apply(w,[E].concat(x))}}),g=Xu(function(){var S;return Wr((o==null||(S=o.props)===null||S===void 0?void 0:S.fieldProps)||{},["onBlur","onChange"])},[Wr((o==null||(i=o.props)===null||i===void 0?void 0:i.fieldProps)||{},["onBlur","onChange"])]),v=n[c],y=m.useMemo(function(){if(!d&&!f)return fp(ee(ee(fe({id:u.id},c,v),g),{},{onBlur:h,onChange:p}))},[v,g,h,p,u.id,c]),_=m.useMemo(function(){if(!y&&V.isValidElement(o))return function(){for(var S,b,E=arguments.length,w=new Array(E),C=0;C<E;C++)w[C]=arguments[C];a==null||a.apply(void 0,w),o==null||(S=o.props)===null||S===void 0||(b=S.onChange)===null||b===void 0||b.call.apply(b,[S].concat(w))}},[y,o,a]);return V.isValidElement(o)?V.cloneElement(o,fp(ee(ee(ee({},u),{},fe({},c,n[c]),o.props),{},{onChange:_,fieldProps:y,onBlur:d&&!f&&s}))):N.jsx(N.Fragment,{children:o})},_Oe=function(n){var r=n.children,i=n.addonAfter,o=n.addonBefore,a=n.valuePropName,s=n.addonWarpStyle,l=n.convertValue,c=n.help,u=Xt(n,E0n),d=m.useMemo(function(){var f=function(h){var g,v=(g=l==null?void 0:l(h,u.name))!==null&&g!==void 0?g:h;return u.getValueProps?u.getValueProps(v):fe({},a||"value",v)};return!l&&!u.getValueProps&&(f=void 0),!i&&!o?N.jsx(Hr.Item,ee(ee({},u),{},{help:typeof c!="function"?c:void 0,valuePropName:a,getValueProps:f,_internalItemRender:{mark:"pro_table_render",render:function(h,g){return N.jsxs(N.Fragment,{children:[g.input,typeof c=="function"?c({errors:h.errors,warnings:h.warnings}):g.errorList,g.extra]})}},children:r})):N.jsx(Hr.Item,ee(ee(ee({},u),{},{help:typeof c!="function"?c:void 0,valuePropName:a,_internalItemRender:{mark:"pro_table_render",render:function(h,g){return N.jsxs(N.Fragment,{children:[N.jsxs("div",{style:ee({display:"flex",alignItems:"center",flexWrap:"wrap"},s),children:[o?N.jsx("div",{style:{marginInlineEnd:8},children:o}):null,g.input,i?N.jsx("div",{style:{marginInlineStart:8},children:i}):null]}),typeof c=="function"?c({errors:h.errors,warnings:h.warnings}):g.errorList,g.extra]})}}},u),{},{getValueProps:f,children:r}))},[i,o,r,l==null?void 0:l.toString(),u]);return N.jsx(w0n.Provider,{value:{name:u.name,label:u.label},children:d})},VYe=function(n){var r,i,o,a,s=(or==null||(r=or.useConfig)===null||r===void 0?void 0:r.call(or))||{componentSize:"middle"},l=s.componentSize,c=l,u=n.valueType,d=n.transform,f=n.dataFormat,p=n.ignoreFormItem,h=n.lightProps;n.children;var g=Xt(n,C0n),v=m.useContext(Dfe),y=m.useMemo(function(){return n.name===void 0?n.name:v.name!==void 0?[v.name,n.name].flat(1):n.name},[v.name,n.name]),_=V.useContext(Eg),S=_.setFieldValueType,b=_.formItemProps;m.useEffect(function(){!S||!n.name||S([v.listName,n.name].flat(1).filter(function(R){return R!==void 0}),{valueType:u||"text",dateFormat:f,transform:d})},[v.listName,y,f,n.name,S,d,u]);var E=V.isValidElement(n.children)&&pJt(u||n.children.props.valueType),w=m.useMemo(function(){return!!(!(h!=null&&h.light)||h!=null&&h.customLightMode||E)},[h==null?void 0:h.customLightMode,E,h==null?void 0:h.light]);if(typeof n.children=="function"){var C;return m.createElement(_Oe,ee(ee({},g),{},{name:y,key:g.proFormFieldKey||((C=g.name)===null||C===void 0?void 0:C.toString())}),n.children)}var x=N.jsx(x0n,{valuePropName:n.valuePropName,children:n.children},g.proFormFieldKey||((i=g.name)===null||i===void 0?void 0:i.toString())),T=w?x:m.createElement(J0n,ee(ee({},h),{},{key:g.proFormFieldKey||((o=g.name)===null||o===void 0?void 0:o.toString()),size:c}),x);return p?N.jsx(N.Fragment,{children:T}):N.jsx(_Oe,ee(ee(ee({},b),g),{},{name:y,isListField:v.name!==void 0,children:T}),g.proFormFieldKey||((a=g.name)===null||a===void 0?void 0:a.toString()))},T0n=function(n){return fe({},n.componentCls,{"&-title":{marginBlockEnd:n.marginXL,fontWeight:"bold"},"&-container":fe({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(n.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":fe(fe(fe(fe({display:"block",width:"100%"},"".concat(n.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(n.componentCls,"-container"),{paddingInlineStart:16}),"".concat(n.antCls,"-space-item,").concat(n.antCls,"-form-item"),{width:"100%"}),"".concat(n.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function O0n(e){return ia("ProFormGroup",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[T0n(r)]})}var GYe=V.forwardRef(function(e,n){var r=V.useContext(Eg),i=r.groupProps,o=ee(ee({},i),e),a=o.children,s=o.collapsible,l=o.defaultCollapsed,c=o.style,u=o.labelLayout,d=o.title,f=d===void 0?e.label:d,p=o.tooltip,h=o.align,g=h===void 0?"start":h,v=o.direction,y=o.size,_=y===void 0?32:y,S=o.titleStyle,b=o.titleRender,E=o.spaceProps,w=o.extra,C=o.autoFocus,x=dr(function(){return l||!1},{value:e.collapsed,onChange:e.onCollapse}),T=ke(x,2),R=T[0],O=T[1],M=m.useContext(or.ConfigContext),P=M.getPrefixCls,k=pfe(e),$=k.ColWrapper,U=k.RowWrapper,z=P("pro-form-group"),D=O0n(z),B=D.wrapSSR,Y=D.hashId,q=s&&N.jsx(w0,{style:{marginInlineEnd:8},rotate:R?void 0:90}),K=N.jsx(ZZt,{label:q?N.jsxs("div",{children:[q,f]}):f,tooltip:p}),H=m.useCallback(function(F){var te=F.children;return N.jsx(Ef,ee(ee({},E),{},{className:Ce("".concat(z,"-container ").concat(Y),E==null?void 0:E.className),size:_,align:g,direction:v,style:ee({rowGap:0},E==null?void 0:E.style),children:te}))},[g,z,v,Y,_,E]),G=b?b(K,e):K,Q=m.useMemo(function(){var F=[],te=V.Children.toArray(a).map(function(oe,de){var pe;return V.isValidElement(oe)&&oe!==null&&oe!==void 0&&(pe=oe.props)!==null&&pe!==void 0&&pe.hidden?(F.push(oe),null):de===0&&V.isValidElement(oe)&&C?V.cloneElement(oe,ee(ee({},oe.props),{},{autoFocus:C})):oe});return[N.jsx(U,{Wrapper:H,children:te},"children"),F.length>0?N.jsx("div",{style:{display:"none"},children:F}):null]},[a,U,H,C]),le=ke(Q,2),Z=le[0],j=le[1];return B(N.jsx($,{children:N.jsxs("div",{className:Ce(z,Y,fe({},"".concat(z,"-twoLine"),u==="twoLine")),style:c,ref:n,children:[j,(f||p||w)&&N.jsx("div",{className:"".concat(z,"-title ").concat(Y).trim(),style:S,onClick:function(){O(!R)},children:w?N.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[G,N.jsx("span",{onClick:function(te){return te.stopPropagation()},children:w})]}):G}),N.jsx("div",{style:{display:s&&R?"none":void 0},children:Z})]})}))});GYe.displayName="ProForm-Group";var R0n=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],I0n=V.forwardRef(function(e,n){var r=e.fieldProps,i=e.options,o=e.radioType,a=e.layout,s=e.proFieldProps,l=e.valueEnum,c=Xt(e,R0n);return N.jsx(bu,ee(ee({valueType:o==="button"?"radioButton":"radio",ref:n,valueEnum:fC(l,void 0)},c),{},{fieldProps:ee({options:i,layout:a},r),proFieldProps:s,filedConfig:{customLightMode:!0}}))}),N0n=V.forwardRef(function(e,n){var r=e.fieldProps,i=e.children;return N.jsx(ya,ee(ee({},r),{},{ref:n,children:i}))}),M0n=UU(N0n,{valuePropName:"checked",ignoreWidth:!0}),iH=M0n;iH.Group=I0n;iH.Button=ya.Button;iH.displayName="ProFormComponent";var P0n=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],A0n=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],D0n=function(n,r){var i=n.fieldProps,o=n.children,a=n.params,s=n.proFieldProps,l=n.mode,c=n.valueEnum,u=n.request,d=n.showSearch,f=n.options,p=Xt(n,P0n),h=m.useContext(Eg);return N.jsx(bu,ee(ee({valueEnum:fC(c),request:u,params:a,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:ee({options:f,mode:l,showSearch:d,getPopupContainer:h.getPopupContainer},i),ref:r,proFieldProps:s},p),{},{children:o}))},k0n=V.forwardRef(function(e,n){var r=e.fieldProps,i=e.children,o=e.params,a=e.proFieldProps,s=e.mode,l=e.valueEnum,c=e.request,u=e.options,d=Xt(e,A0n),f=ee({options:u,mode:s||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},r),p=m.useContext(Eg);return N.jsx(bu,ee(ee({valueEnum:fC(l),request:c,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:ee({getPopupContainer:p.getPopupContainer},f),ref:n,proFieldProps:a},d),{},{children:i}))}),L0n=V.forwardRef(D0n),$0n=k0n,hC=L0n;hC.SearchSelect=$0n;hC.displayName="ProFormComponent";var F0n=function(n){var r=cs(),i=Hr.useFormInstance();if(n.render===!1)return null;var o=n.onSubmit,a=n.render,s=n.onReset,l=n.searchConfig,c=l===void 0?{}:l,u=n.submitButtonProps,d=n.resetButtonProps,f=Pm.useToken(),p=f.token,h=function(){i.submit(),o==null||o()},g=function(){i.resetFields(),s==null||s()},v=c.submitText,y=v===void 0?r.getMessage("tableForm.submit","提交"):v,_=c.resetText,S=_===void 0?r.getMessage("tableForm.reset","重置"):_,b=[];d!==!1&&b.push(m.createElement(qn,ee(ee({},Wr(d??{},["preventDefault"])),{},{key:"rest",onClick:function(C){var x;d!=null&&d.preventDefault||g(),d==null||(x=d.onClick)===null||x===void 0||x.call(d,C)}}),S)),u!==!1&&b.push(m.createElement(qn,ee(ee({type:"primary"},Wr(u||{},["preventDefault"])),{},{key:"submit",onClick:function(C){var x;u!=null&&u.preventDefault||h(),u==null||(x=u.onClick)===null||x===void 0||x.call(u,C)}}),y));var E=a?a(ee(ee({},n),{},{form:i,submit:h,reset:g}),b):b;return E?Array.isArray(E)?(E==null?void 0:E.length)<1?null:(E==null?void 0:E.length)===1?E[0]:N.jsx("div",{style:{display:"flex",gap:p.marginXS,alignItems:"center"},children:E}):E:null},B0n=["fieldProps","proFieldProps"],j0n=["fieldProps","proFieldProps"],TB="text",U0n=function(n){var r=n.fieldProps,i=n.proFieldProps,o=Xt(n,B0n);return N.jsx(bu,ee({valueType:TB,fieldProps:r,filedConfig:{valueType:TB},proFieldProps:i},o))},H0n=function(n){var r=dr(n.open||!1,{value:n.open,onChange:n.onOpenChange}),i=ke(r,2),o=i[0],a=i[1];return N.jsx(Hr.Item,{shouldUpdate:!0,noStyle:!0,children:function(l){var c,u=l.getFieldValue(n.name||[]);return N.jsx(Rp,ee(ee({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return a(f)},content:N.jsxs("div",{style:{padding:"4px 0"},children:[(c=n.statusRender)===null||c===void 0?void 0:c.call(n,u),n.strengthText?N.jsx("div",{style:{marginTop:10},children:N.jsx("span",{children:n.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},n.popoverProps),{},{open:o,children:n.children}))}})},z0n=function(n){var r=n.fieldProps,i=n.proFieldProps,o=Xt(n,j0n),a=m.useState(!1),s=ke(a,2),l=s[0],c=s[1];return r!=null&&r.statusRender&&o.name?N.jsx(H0n,{name:o.name,statusRender:r==null?void 0:r.statusRender,popoverProps:r==null?void 0:r.popoverProps,strengthText:r==null?void 0:r.strengthText,open:l,onOpenChange:c,children:N.jsx("div",{children:N.jsx(bu,ee({valueType:"password",fieldProps:ee(ee({},Wr(r,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(d){var f;r==null||(f=r.onBlur)===null||f===void 0||f.call(r,d),c(!1)},onClick:function(d){var f;r==null||(f=r.onClick)===null||f===void 0||f.call(r,d),c(!0)}}),proFieldProps:i,filedConfig:{valueType:TB}},o))})}):N.jsx(bu,ee({valueType:"password",fieldProps:r,proFieldProps:i,filedConfig:{valueType:TB}},o))},eo=U0n;eo.Password=z0n;eo.displayName="ProFormComponent";var V0n=["fieldProps","proFieldProps"],G0n=function(n,r){var i=n.fieldProps,o=n.proFieldProps,a=Xt(n,V0n);return N.jsx(bu,ee({ref:r,valueType:"textarea",fieldProps:i,proFieldProps:o},a))};const Qk=V.forwardRef(G0n);var W0n=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Y0n=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],C6=function(n,r,i){return n===!0?r:fC(n,r,i)},bOe=function(n){return!n||Array.isArray(n)?n:[n]};function q0n(e){var n,r=e.children,i=e.contentRender,o=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var a=e.transformKey,s=e.formRef,l=e.onInit,c=e.form,u=e.loading;e.formComponentType;var d=e.extraUrlParams,f=d===void 0?{}:d,p=e.syncToUrl,h=e.onUrlSearchChange,g=e.onReset,v=e.omitNil,y=v===void 0?!0:v;e.isKeyPressSubmit;var _=e.autoFocusFirstInput,S=_===void 0?!0:_,b=e.grid,E=e.rowProps,w=e.colProps,C=Xt(e,W0n),x=Hr.useFormInstance(),T=(or==null||(n=or.useConfig)===null||n===void 0?void 0:n.call(or))||{componentSize:"middle"},R=T.componentSize,O=m.useRef(c||x),M=pfe({grid:b,rowProps:E}),P=M.RowWrapper,k=Wh(function(){return x}),$=m.useMemo(function(){return{getFieldsFormatValue:function(K){var H;return a((H=k())===null||H===void 0?void 0:H.getFieldsValue(K),y)},getFieldFormatValue:function(){var K,H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],G=bOe(H);if(!G)throw new Error("nameList is require");var Q=(K=k())===null||K===void 0?void 0:K.getFieldValue(G),le=G?Fs({},G,Q):Q,Z=Tt(G);return Z.shift(),al(a(le,y,Z),G)},getFieldFormatValueObject:function(K){var H,G=bOe(K),Q=(H=k())===null||H===void 0?void 0:H.getFieldValue(G),le=G?Fs({},G,Q):Q;return a(le,y,G)},validateFieldsReturnFormatValue:function(){var q=Ss(ri().mark(function H(G){var Q,le,Z;return ri().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(!(!Array.isArray(G)&&G)){F.next=2;break}throw new Error("nameList must be array");case 2:return F.next=4,(Q=k())===null||Q===void 0?void 0:Q.validateFields(G);case 4:return le=F.sent,Z=a(le,y),F.abrupt("return",Z||{});case 7:case"end":return F.stop()}},H)}));function K(H){return q.apply(this,arguments)}return K}()}},[y,a]),U=m.useMemo(function(){return V.Children.toArray(r).map(function(q,K){return K===0&&V.isValidElement(q)&&S?V.cloneElement(q,ee(ee({},q.props),{},{autoFocus:S})):q})},[S,r]),z=m.useMemo(function(){return typeof o=="boolean"||!o?{}:o},[o]),D=m.useMemo(function(){if(o!==!1)return N.jsx(F0n,ee(ee({},z),{},{onReset:function(){var K,H,G=a((K=O.current)===null||K===void 0?void 0:K.getFieldsValue(),y);if(z==null||(H=z.onReset)===null||H===void 0||H.call(z,G),g==null||g(G),p){var Q,le=Object.keys(a((Q=O.current)===null||Q===void 0?void 0:Q.getFieldsValue(),!1)).reduce(function(Z,j){return ee(ee({},Z),{},fe({},j,G[j]||void 0))},f);h(C6(p,le||{},"set"))}},submitButtonProps:ee({loading:u},z.submitButtonProps)}),"submitter")},[o,z,u,a,y,g,p,f,h]),B=m.useMemo(function(){var q=b?N.jsx(P,{children:U}):U;return i?i(q,D,O.current):q},[b,P,U,i,D]),Y=fJt(e.initialValues);return m.useEffect(function(){if(!(p||!e.initialValues||!Y||C.request)){var q=A1(e.initialValues,Y);BF(q,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? <Form/> : null "),BF(q,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? <Form/> : null ")}},[e.initialValues]),m.useImperativeHandle(s,function(){return ee(ee({},O.current),$)},[$,O.current]),m.useEffect(function(){var q,K,H=a((q=O.current)===null||q===void 0||(K=q.getFieldsValue)===null||K===void 0?void 0:K.call(q,!0),y);l==null||l(H,ee(ee({},O.current),$))},[]),N.jsx(rWe.Provider,{value:ee(ee({},$),{},{formRef:O}),children:N.jsx(or,{componentSize:C.size||R,children:N.jsxs(xWe.Provider,{value:{grid:b,colProps:w},children:[C.component!==!1&&N.jsx("input",{type:"text",style:{display:"none"}}),B]})})})}var SOe=0;function K0n(e){var n=e.extraUrlParams,r=n===void 0?{}:n,i=e.syncToUrl,o=e.isKeyPressSubmit,a=e.syncToUrlAsImportant,s=a===void 0?!1:a,l=e.syncToInitialValues,c=l===void 0?!0:l;e.children,e.contentRender,e.submitter;var u=e.fieldProps,d=e.proFieldProps,f=e.formItemProps,p=e.groupProps,h=e.dateFormatter,g=h===void 0?"string":h,v=e.formRef;e.onInit;var y=e.form,_=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var S=e.omitNil,b=S===void 0?!0:S,E=e.request,w=e.params,C=e.initialValues,x=e.formKey,T=x===void 0?SOe:x;e.readonly;var R=e.onLoadingChange,O=e.loading,M=Xt(e,Y0n),P=m.useRef({}),k=dr(!1,{onChange:R,value:O}),$=ke(k,2),U=$[0],z=$[1],D=nnn({},{disabled:!i}),B=ke(D,2),Y=B[0],q=B[1],K=m.useRef(uB());m.useEffect(function(){SOe+=0},[]);var H=dJt({request:E,params:w,proFieldKey:T}),G=ke(H,1),Q=G[0],le=m.useContext(or.ConfigContext),Z=le.getPrefixCls,j=Z("pro-form"),F=ia("ProForm",function(Re){return fe({},".".concat(j),fe({},"> div:not(".concat(Re.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),te=F.wrapSSR,oe=F.hashId,de=m.useState(function(){return i?C6(i,Y,"get"):{}}),pe=ke(de,2),me=pe[0],ve=pe[1],he=m.useRef({}),be=m.useRef({}),we=Wh(function(Re,Te,Oe){return Ztn(nJt(Re,g,be.current,Te,Oe),he.current,Te)});m.useEffect(function(){c||ve({})},[c]);var De=Wh(function(){return ee(ee({},Y),r)});m.useEffect(function(){i&&q(C6(i,De(),"set"))},[r,De,i]);var Ae=m.useMemo(function(){if(!(typeof window>"u")&&_&&["DrawerForm"].includes(_))return function(Re){return Re.parentNode||document.body}},[_]),Ee=Wh(Ss(ri().mark(function Re(){var Te,Oe,Ne,je,ne,J,ae;return ri().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(M.onFinish){xe.next=2;break}return xe.abrupt("return");case 2:if(!U){xe.next=4;break}return xe.abrupt("return");case 4:return xe.prev=4,Ne=P==null||(Te=P.current)===null||Te===void 0||(Oe=Te.getFieldsFormatValue)===null||Oe===void 0?void 0:Oe.call(Te),je=M.onFinish(Ne),je instanceof Promise&&z(!0),xe.next=10,je;case 10:i&&(ae=Object.keys(P==null||(ne=P.current)===null||ne===void 0||(J=ne.getFieldsFormatValue)===null||J===void 0?void 0:J.call(ne,void 0,!1)).reduce(function(ue,Me){var $e;return ee(ee({},ue),{},fe({},Me,($e=Ne[Me])!==null&&$e!==void 0?$e:void 0))},r),Object.keys(Y).forEach(function(ue){ae[ue]!==!1&&ae[ue]!==0&&!ae[ue]&&(ae[ue]=void 0)}),q(C6(i,ae,"set"))),z(!1),xe.next=18;break;case 14:xe.prev=14,xe.t0=xe.catch(4),console.log(xe.t0),z(!1);case 18:case"end":return xe.stop()}},Re,null,[[4,14]])})));return m.useImperativeHandle(v,function(){return P.current},[!Q]),!Q&&e.request?N.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:N.jsx(e_,{})}):te(N.jsx(Afe.Provider,{value:{mode:e.readonly?"read":"edit"},children:N.jsx(LU,{needDeps:!0,children:N.jsx(Eg.Provider,{value:{formRef:P,fieldProps:u,proFieldProps:d,formItemProps:f,groupProps:p,formComponentType:_,getPopupContainer:Ae,formKey:K.current,setFieldValueType:function(Te,Oe){var Ne=Oe.valueType,je=Ne===void 0?"text":Ne,ne=Oe.dateFormat,J=Oe.transform;Array.isArray(Te)&&(he.current=Fs(he.current,Te,J),be.current=Fs(be.current,Te,{valueType:je,dateFormat:ne}))}},children:N.jsx(Dfe.Provider,{value:{},children:N.jsx(Hr,ee(ee({onKeyPress:function(Te){if(o&&Te.key==="Enter"){var Oe;(Oe=P.current)===null||Oe===void 0||Oe.submit()}},autoComplete:"off",form:y},Wr(M,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(Te){P.current&&(P.current.nativeElement=Te==null?void 0:Te.nativeElement)},initialValues:s?ee(ee(ee({},C),Q),me):ee(ee(ee({},me),C),Q),onValuesChange:function(Te,Oe){var Ne;M==null||(Ne=M.onValuesChange)===null||Ne===void 0||Ne.call(M,we(Te,!!b),we(Oe,!!b))},className:Ce(e.className,j,oe),onFinish:Ee,children:N.jsx(q0n,ee(ee({transformKey:we,autoComplete:"off",loading:U,onUrlSearchChange:q},e),{},{formRef:P,initialValues:ee(ee({},C),Q)}))}))})})})}))}var X0n=function(n){return fe(fe({},"".concat(n.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(n.componentCls,"-container"),fe({},"".concat(n.antCls,"-form-item"),{marginBlockEnd:0}))};function Q0n(e){return ia("LightWrapper",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[X0n(r)]})}var Z0n=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],J0n=function(n){var r=n.label,i=n.size,o=n.disabled,a=n.onChange,s=n.className,l=n.style,c=n.children,u=n.valuePropName,d=n.placeholder,f=n.labelFormatter,p=n.bordered,h=n.footerRender,g=n.allowClear,v=n.otherFieldProps,y=n.valueType,_=n.placement,S=Xt(n,Z0n),b=m.useContext(or.ConfigContext),E=b.getPrefixCls,w=E("pro-field-light-wrapper"),C=Q0n(w),x=C.wrapSSR,T=C.hashId,R=m.useState(n[u]),O=ke(R,2),M=O[0],P=O[1],k=dr(!1),$=ke(k,2),U=$[0],z=$[1],D=function(){for(var K,H=arguments.length,G=new Array(H),Q=0;Q<H;Q++)G[Q]=arguments[Q];v==null||(K=v.onChange)===null||K===void 0||K.call.apply(K,[v].concat(G)),a==null||a.apply(void 0,G)},B=n[u],Y=m.useMemo(function(){var q;return B&&(y!=null&&(q=y.toLowerCase())!==null&&q!==void 0&&q.endsWith("range")&&y!=="digitRange"&&!f?rJt(B,oWe[y]||"YYYY-MM-DD"):Array.isArray(B)?B.map(function(K){return cn(K)==="object"&&K.label&&K.value?K.label:K}):B)},[B,y,f]);return x(N.jsx(KZt,{disabled:o,open:U,onOpenChange:z,placement:_,label:N.jsx(r_,{ellipsis:!0,size:i,onClear:function(){D==null||D(),P(null)},bordered:p,style:l,className:s,label:r,placeholder:d,value:Y,disabled:o,formatter:f,allowClear:g}),footer:{onClear:function(){return P(null)},onConfirm:function(){D==null||D(M),z(!1)}},footerRender:h,children:N.jsx("div",{className:Ce("".concat(w,"-container"),T,s),style:l,children:V.cloneElement(c,ee(ee({},S),{},fe(fe({},u,M),"onChange",function(K){P(K!=null&&K.target?K.target.value:K)}),c.props))})}))};function mi(e){return N.jsx(K0n,ee({layout:"vertical",contentRender:function(r,i){return N.jsxs(N.Fragment,{children:[r,i]})}},e))}mi.Group=GYe;mi.useForm=Hr.useForm;mi.Item=VYe;mi.useWatch=Hr.useWatch;mi.ErrorList=Hr.ErrorList;mi.Provider=Hr.Provider;mi.useFormInstance=Hr.useFormInstance;mi.EditOrReadOnlyContext=Afe;var eSn=function(n){return fe(fe({},n.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:n.colorTextSecondary,fontSize:n.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",fe({},"".concat(n.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function tSn(e){return ia("LoginForm",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[eSn(r)]})}var nSn=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function WYe(e){var n,r=e.logo,i=e.message,o=e.contentStyle,a=e.title,s=e.subTitle,l=e.actions,c=e.children,u=e.containerStyle,d=e.otherStyle,f=Xt(e,nSn),p=cs(),h=f.submitter===!1?!1:ee(ee({searchConfig:{submitText:p.getMessage("loginForm.submitText","登录")}},f.submitter),{},{submitButtonProps:ee({size:"large",style:{width:"100%"}},(n=f.submitter)===null||n===void 0?void 0:n.submitButtonProps),render:function(C,x){var T,R=x.pop();if(typeof(f==null||(T=f.submitter)===null||T===void 0?void 0:T.render)=="function"){var O,M;return f==null||(O=f.submitter)===null||O===void 0||(M=O.render)===null||M===void 0?void 0:M.call(O,C,x)}return R}}),g=m.useContext(or.ConfigContext),v=g.getPrefixCls("pro-form-login"),y=tSn(v),_=y.wrapSSR,S=y.hashId,b=function(C){return"".concat(v,"-").concat(C," ").concat(S)},E=m.useMemo(function(){return r?typeof r=="string"?N.jsx("img",{src:r}):r:null},[r]);return _(N.jsxs("div",{className:Ce(b("container"),S),style:u,children:[N.jsxs("div",{className:"".concat(b("top")," ").concat(S).trim(),children:[a||E?N.jsxs("div",{className:"".concat(b("header")),children:[E?N.jsx("span",{className:b("logo"),children:E}):null,a?N.jsx("span",{className:b("title"),children:a}):null]}):null,s?N.jsx("div",{className:b("desc"),children:s}):null]}),N.jsxs("div",{className:b("main"),style:ee({width:328},o),children:[N.jsxs(mi,ee(ee({isKeyPressSubmit:!0},f),{},{submitter:h,children:[i,c]})),l?N.jsx("div",{className:b("main-other"),style:d,children:l}):null]})]}))}var EOe=m.createContext({}),YYe={exports:{}};(function(e){var n=zC.default;function r(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(r=function(c){return c?s:a})(o)}function i(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||n(o)!="object"&&typeof o!="function")return{default:o};var s=r(a);if(s&&s.has(o))return s.get(o);var l={__proto__:null},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in o)if(u!=="default"&&{}.hasOwnProperty.call(o,u)){var d=c?Object.getOwnPropertyDescriptor(o,u):null;d&&(d.get||d.set)?Object.defineProperty(l,u,d):l[u]=o[u]}return l.default=o,s&&s.set(o,l),l}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(YYe);var Qs=YYe.exports,qYe={exports:{}};(function(e){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(qYe);var oH=qYe.exports,PI={},KYe={exports:{}},XYe={exports:{}};(function(e){function n(r){if(Array.isArray(r))return r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(XYe);var QYe=XYe.exports,ZYe={exports:{}};(function(e){function n(r,i){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,s,l,c,u=[],d=!0,f=!1;try{if(l=(o=o.call(r)).next,i===0){if(Object(o)!==o)return;d=!1}else for(;!(d=(a=l.call(o)).done)&&(u.push(a.value),u.length!==i);d=!0);}catch(p){f=!0,s=p}finally{try{if(!d&&o.return!=null&&(c=o.return(),Object(c)!==c))return}finally{if(f)throw s}}return u}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(ZYe);var rSn=ZYe.exports,JYe={exports:{}},eqe={exports:{}};(function(e){function n(r,i){(i==null||i>r.length)&&(i=r.length);for(var o=0,a=Array(i);o<i;o++)a[o]=r[o];return a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(eqe);var tqe=eqe.exports;(function(e){var n=tqe;function r(i,o){if(i){if(typeof i=="string")return n(i,o);var a={}.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(i,o):void 0}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(JYe);var kfe=JYe.exports,nqe={exports:{}};(function(e){function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(nqe);var rqe=nqe.exports;(function(e){var n=QYe,r=rSn,i=kfe,o=rqe;function a(s,l){return n(s)||r(s,l)||i(s,l)||o()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(KYe);var iqe=KYe.exports,oqe={exports:{}},aqe={exports:{}};(function(e){function n(r,i){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(i.includes(a))continue;o[a]=r[a]}return o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(aqe);var iSn=aqe.exports;(function(e){var n=iSn;function r(i,o){if(i==null)return{};var a,s,l=n(i,o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);for(s=0;s<c.length;s++)a=c[s],o.includes(a)||{}.propertyIsEnumerable.call(i,a)&&(l[a]=i[a])}return l}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(oqe);var sqe=oqe.exports;const Zk=HD(BNt);var AI={};Object.defineProperty(AI,"__esModule",{value:!0});AI.default=void 0;var oSn=m,aSn=(0,oSn.createContext)({});AI.default=aSn;var Jk={},Wc={},mw={},aH={};Object.defineProperty(aH,"__esModule",{value:!0});aH.default=sSn;function sSn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Lfe={};Object.defineProperty(Lfe,"__esModule",{value:!0});Lfe.default=lSn;function lSn(e,n){if(!e)return!1;if(e.contains)return e.contains(n);for(var r=n;r;){if(r===e)return!0;r=r.parentNode}return!1}var $fe=di.default;Object.defineProperty(mw,"__esModule",{value:!0});mw.clearContainerCache=gSn;mw.injectCSS=Bfe;mw.removeCSS=pSn;mw.updateCSS=mSn;var COe=$fe(VC),cSn=$fe(aH),uSn=$fe(Lfe),wOe="data-rc-order",xOe="data-rc-priority",dSn="rc-util-key",OB=new Map;function lqe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.mark;return n?n.startsWith("data-")?n:"data-".concat(n):dSn}function sH(e){if(e.attachTo)return e.attachTo;var n=document.querySelector("head");return n||document.body}function fSn(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ffe(e){return Array.from((OB.get(e)||e).children).filter(function(n){return n.tagName==="STYLE"})}function Bfe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,cSn.default)())return null;var r=n.csp,i=n.prepend,o=n.priority,a=o===void 0?0:o,s=fSn(i),l=s==="prependQueue",c=document.createElement("style");c.setAttribute(wOe,s),l&&a&&c.setAttribute(xOe,"".concat(a)),r!=null&&r.nonce&&(c.nonce=r==null?void 0:r.nonce),c.innerHTML=e;var u=sH(n),d=u.firstChild;if(i){if(l){var f=(n.styles||Ffe(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(wOe)))return!1;var h=Number(p.getAttribute(xOe)||0);return a>=h});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function cqe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=sH(n);return(n.styles||Ffe(r)).find(function(i){return i.getAttribute(lqe(n))===e})}function pSn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=cqe(e,n);if(r){var i=sH(n);i.removeChild(r)}}function hSn(e,n){var r=OB.get(e);if(!r||!(0,uSn.default)(document,r)){var i=Bfe("",n),o=i.parentNode;OB.set(e,o),e.removeChild(i)}}function gSn(){OB.clear()}function mSn(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=sH(r),o=Ffe(i),a=(0,COe.default)((0,COe.default)({},r),{},{styles:o});hSn(i,a);var s=cqe(n,a);if(s){var l,c;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&s.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;s.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var d=Bfe(e,a);return d.setAttribute(lqe(a),n),d}var lH={};Object.defineProperty(lH,"__esModule",{value:!0});lH.getShadowRoot=vSn;lH.inShadow=dqe;function uqe(e){var n;return e==null||(n=e.getRootNode)===null||n===void 0?void 0:n.call(e)}function dqe(e){return uqe(e)instanceof ShadowRoot}function vSn(e){return dqe(e)?uqe(e):null}var wd={};Object.defineProperty(wd,"__esModule",{value:!0});wd.call=jfe;wd.default=void 0;wd.note=pqe;wd.noteOnce=gqe;wd.preMessage=void 0;wd.resetWarned=hqe;wd.warning=fqe;wd.warningOnce=eL;var doe={},ySn=wd.preMessage=function(n){};function fqe(e,n){}function pqe(e,n){}function hqe(){doe={}}function jfe(e,n,r){!n&&!doe[r]&&(e(!1,r),doe[r]=!0)}function eL(e,n){jfe(fqe,e,n)}function gqe(e,n){jfe(pqe,e,n)}eL.preMessage=ySn;eL.resetWarned=hqe;eL.noteOnce=gqe;wd.default=eL;var _Sn=Qs.default,cH=di.default;Object.defineProperty(Wc,"__esModule",{value:!0});Wc.generate=poe;Wc.getSecondaryColor=RSn;Wc.iconStyles=void 0;Wc.isIconDefinition=OSn;Wc.normalizeAttrs=foe;Wc.normalizeTwoToneColors=ISn;Wc.useInsertStyles=Wc.svgBaseProps=void 0;Wc.warning=TSn;var Jq=cH(VC),TOe=cH(zC),bSn=Zk,SSn=mw,ESn=lH,CSn=cH(wd),RB=_Sn(m),wSn=cH(AI);function xSn(e){return e.replace(/-(.)/g,function(n,r){return r.toUpperCase()})}function TSn(e,n){(0,CSn.default)(e,"[@ant-design/icons] ".concat(n))}function OSn(e){return(0,TOe.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,TOe.default)(e.icon)==="object"||typeof e.icon=="function")}function foe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(n,r){var i=e[r];switch(r){case"class":n.className=i,delete n.class;break;default:delete n[r],n[xSn(r)]=i}return n},{})}function poe(e,n,r){return r?RB.default.createElement(e.tag,(0,Jq.default)((0,Jq.default)({key:n},foe(e.attrs)),r),(e.children||[]).map(function(i,o){return poe(i,"".concat(n,"-").concat(e.tag,"-").concat(o))})):RB.default.createElement(e.tag,(0,Jq.default)({key:n},foe(e.attrs)),(e.children||[]).map(function(i,o){return poe(i,"".concat(n,"-").concat(e.tag,"-").concat(o))}))}function RSn(e){return(0,bSn.generate)(e)[0]}function ISn(e){return e?Array.isArray(e)?e:[e]:[]}Wc.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var NSn=Wc.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);
|
||
}
|
||
}
|
||
`;Wc.useInsertStyles=function(n){var r=(0,RB.useContext)(wSn.default),i=r.csp,o=r.prefixCls,a=r.layer,s=NSn;o&&(s=s.replace(/anticon/g,o)),a&&(s="@layer ".concat(a,` {
|
||
`).concat(s,`
|
||
}`)),(0,RB.useEffect)(function(){var l=n.current,c=(0,ESn.getShadowRoot)(l);(0,SSn.updateCSS)(s,"@ant-design-icons",{prepend:!a,csp:i,attachTo:c})},[])};var mqe=di.default,MSn=Qs.default;Object.defineProperty(Jk,"__esModule",{value:!0});Jk.default=void 0;var PSn=mqe(sqe),g2=mqe(VC),ASn=MSn(m),AE=Wc,DSn=["icon","className","onClick","style","primaryColor","secondaryColor"],aP={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function kSn(e){var n=e.primaryColor,r=e.secondaryColor;aP.primaryColor=n,aP.secondaryColor=r||(0,AE.getSecondaryColor)(n),aP.calculated=!!r}function LSn(){return(0,g2.default)({},aP)}var uH=function(n){var r=n.icon,i=n.className,o=n.onClick,a=n.style,s=n.primaryColor,l=n.secondaryColor,c=(0,PSn.default)(n,DSn),u=ASn.useRef(),d=aP;if(s&&(d={primaryColor:s,secondaryColor:l||(0,AE.getSecondaryColor)(s)}),(0,AE.useInsertStyles)(u),(0,AE.warning)((0,AE.isIconDefinition)(r),"icon should be icon definiton, but got ".concat(r)),!(0,AE.isIconDefinition)(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=(0,g2.default)((0,g2.default)({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),(0,AE.generate)(f.icon,"svg-".concat(f.name),(0,g2.default)((0,g2.default)({className:i,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};uH.displayName="IconReact";uH.getTwoToneColors=LSn;uH.setTwoToneColors=kSn;Jk.default=uH;var dH={},vqe=di.default;Object.defineProperty(dH,"__esModule",{value:!0});dH.getTwoToneColor=jSn;dH.setTwoToneColor=BSn;var $Sn=vqe(iqe),yqe=vqe(Jk),FSn=Wc;function BSn(e){var n=(0,FSn.normalizeTwoToneColors)(e),r=(0,$Sn.default)(n,2),i=r[0],o=r[1];return yqe.default.setTwoToneColors({primaryColor:i,secondaryColor:o})}function jSn(){var e=yqe.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var vw=di.default,USn=Qs.default;Object.defineProperty(PI,"__esModule",{value:!0});PI.default=void 0;var HSn=vw(oH),zSn=vw(iqe),OOe=vw(H4e),VSn=vw(sqe),g4=USn(m),GSn=vw(Z7),WSn=Zk,YSn=vw(AI),qSn=vw(Jk),Ufe=dH,KSn=Wc,XSn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,Ufe.setTwoToneColor)(WSn.blue.primary);var fH=g4.forwardRef(function(e,n){var r=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=(0,VSn.default)(e,XSn),d=g4.useContext(YSn.default),f=d.prefixCls,p=f===void 0?"anticon":f,h=d.rootClassName,g=(0,GSn.default)(h,p,(0,OOe.default)((0,OOe.default)({},"".concat(p,"-").concat(i.name),!!i.name),"".concat(p,"-spin"),!!o||i.name==="loading"),r),v=s;v===void 0&&l&&(v=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,_=(0,KSn.normalizeTwoToneColors)(c),S=(0,zSn.default)(_,2),b=S[0],E=S[1];return g4.createElement("span",(0,HSn.default)({role:"img","aria-label":i.name},u,{ref:n,tabIndex:v,onClick:l,className:g}),g4.createElement(qSn.default,{icon:i,primaryColor:b,secondaryColor:E,style:y}))});fH.displayName="AntdIcon";fH.getTwoToneColor=Ufe.getTwoToneColor;fH.setTwoToneColor=Ufe.setTwoToneColor;PI.default=fH;var QSn=["isLoading","pastDelay","timedOut","error","retry"],ZSn=function(n){n.isLoading,n.pastDelay,n.timedOut,n.error,n.retry;var r=Xt(n,QSn);return N.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:N.jsx(e_,ee({size:"large"},r))})},JSn=function(n){return fe({},n.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:n.colorTextSecondary,"&-link":{color:n.colorTextSecondary,textDecoration:n.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:n.colorPrimary}},"&-copyright":{fontSize:"14px",color:n.colorText}})};function eEn(e){return ia("ProLayoutFooter",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[JSn(r)]})}var tEn=function(n){var r=n.className,i=n.prefixCls,o=n.links,a=n.copyright,s=n.style,l=m.useContext(or.ConfigContext),c=l.getPrefixCls(i||"pro-global-footer"),u=eEn(c),d=u.wrapSSR,f=u.hashId;return(o==null||o===!1||Array.isArray(o)&&o.length===0)&&(a==null||a===!1)?null:d(N.jsxs("div",{className:Ce(c,f,r),style:s,children:[o&&N.jsx("div",{className:"".concat(c,"-list ").concat(f).trim(),children:o.map(function(p){return N.jsx("a",{className:"".concat(c,"-list-link ").concat(f).trim(),title:p.key,target:p.blankTarget?"_blank":"_self",href:p.href,rel:"noreferrer",children:p.title},p.key)})}),a&&N.jsx("div",{className:"".concat(c,"-copyright ").concat(f).trim(),children:a})]}))},nEn=bo.Footer,rEn=function(n){var r=n.links,i=n.copyright,o=n.style,a=n.className,s=n.prefixCls;return N.jsx(nEn,{className:a,style:ee({padding:0},o),children:N.jsx(tEn,{links:r,prefixCls:s,copyright:i===!1?null:N.jsxs(m.Fragment,{children:[N.jsx(Hzt,{})," ",i]})})})},ROe=function e(n){return(n||[]).reduce(function(r,i){if(i.key&&r.push(i.key),i.children||i.routes){var o=r.concat(e(i.children||i.routes)||[]);return o}return r},[])};function pH(e){return e.map(function(n){var r=n.children||[],i=ee({},n);if(!i.children&&i.routes&&(i.children=i.routes),!i.name||i.hideInMenu)return null;if(i&&i!==null&&i!==void 0&&i.children){if(!i.hideChildrenInMenu&&r.some(function(o){return o&&o.name&&!o.hideInMenu}))return ee(ee({},n),{},{children:pH(r)});delete i.children}return delete i.routes,i}).filter(function(n){return n})}var iEn=function(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},oEn=function e(n){var r=n.appList,i=n.baseClassName,o=n.hashId,a=n.itemClick;return N.jsx("div",{className:"".concat(i,"-content ").concat(o).trim(),children:N.jsx("ul",{className:"".concat(i,"-content-list ").concat(o).trim(),children:r==null?void 0:r.map(function(s,l){var c;return s!=null&&(c=s.children)!==null&&c!==void 0&&c.length?N.jsxs("div",{className:"".concat(i,"-content-list-item-group ").concat(o).trim(),children:[N.jsx("div",{className:"".concat(i,"-content-list-item-group-title ").concat(o).trim(),children:s.title}),N.jsx(e,{hashId:o,itemClick:a,appList:s==null?void 0:s.children,baseClassName:i})]},l):N.jsx("li",{className:"".concat(i,"-content-list-item ").concat(o).trim(),onClick:function(d){d.stopPropagation(),a==null||a(s)},children:N.jsxs("a",{href:a?void 0:s.url,target:s.target,rel:"noreferrer",children:[Hfe(s.icon),N.jsxs("div",{children:[N.jsx("div",{children:s.title}),s.desc?N.jsx("span",{children:s.desc}):null]})]})},l)})})})},aEn=function(n,r){if(n&&typeof n=="string"&&lfe(n))return N.jsx("img",{src:n,alt:"logo"});if(typeof n=="function")return n();if(n&&typeof n=="string")return N.jsx("div",{id:"avatarLogo",children:n});if(!n&&r&&typeof r=="string"){var i=r.substring(0,1);return N.jsx("div",{id:"avatarLogo",children:i})}return n},sEn=function e(n){var r=n.appList,i=n.baseClassName,o=n.hashId,a=n.itemClick;return N.jsx("div",{className:"".concat(i,"-content ").concat(o).trim(),children:N.jsx("ul",{className:"".concat(i,"-content-list ").concat(o).trim(),children:r==null?void 0:r.map(function(s,l){var c;return s!=null&&(c=s.children)!==null&&c!==void 0&&c.length?N.jsxs("div",{className:"".concat(i,"-content-list-item-group ").concat(o).trim(),children:[N.jsx("div",{className:"".concat(i,"-content-list-item-group-title ").concat(o).trim(),children:s.title}),N.jsx(e,{hashId:o,itemClick:a,appList:s==null?void 0:s.children,baseClassName:i})]},l):N.jsx("li",{className:"".concat(i,"-content-list-item ").concat(o).trim(),onClick:function(d){d.stopPropagation(),a==null||a(s)},children:N.jsxs("a",{href:a?"javascript:;":s.url,target:s.target,rel:"noreferrer",children:[aEn(s.icon,s.title),N.jsx("div",{children:N.jsx("div",{children:s.title})})]})},l)})})})},lEn=function(n){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:n.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:n.colorBgTextHover},"* div":Uq==null?void 0:Uq(n),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:n.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:n.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},cEn=function(n){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:n.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:n.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:n.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:n.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:n.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:n.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},uEn=function(n){var r,i,o,a,s;return fe({},n.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(r=n.layout)===null||r===void 0?void 0:r.colorTextAppListIcon,borderRadius:n.borderRadius,"&:hover":{color:(i=n.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(o=n.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover},"&-active":{color:(a=n.layout)===null||a===void 0?void 0:a.colorTextAppListIconHover,backgroundColor:(s=n.layout)===null||s===void 0?void 0:s.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":fe({},"".concat(n.antCls,"-popover-arrow"),{display:"none"}),"&-simple":cEn(n),"&-default":lEn(n)})};function dEn(e){return ia("AppsLogoComponents",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[uEn(r)]})}var Hfe=function(n){return typeof n=="string"?N.jsx("img",{width:"auto",height:22,src:n,alt:"logo"}):typeof n=="function"?n():n},zfe=function(n){var r,i=n.appList,o=n.appListRender,a=n.prefixCls,s=a===void 0?"ant-pro":a,l=n.onItemClick,c=V.useRef(null),u=V.useRef(null),d="".concat(s,"-layout-apps"),f=dEn(d),p=f.wrapSSR,h=f.hashId,g=m.useState(!1),v=ke(g,2),y=v[0],_=v[1],S=function(x){l==null||l(x,u)},b=m.useMemo(function(){var C=i==null?void 0:i.some(function(x){return!(x!=null&&x.desc)});return C?N.jsx(sEn,{hashId:h,appList:i,itemClick:l?S:void 0,baseClassName:"".concat(d,"-simple")}):N.jsx(oEn,{hashId:h,appList:i,itemClick:l?S:void 0,baseClassName:"".concat(d,"-default")})},[i,d,h]);if(!(n!=null&&(r=n.appList)!==null&&r!==void 0&&r.length))return null;var E=o?o(n==null?void 0:n.appList,b):b,w=$U(void 0,function(C){return _(C)});return p(N.jsxs(N.Fragment,{children:[N.jsx("div",{ref:c,onClick:function(x){x.stopPropagation(),x.preventDefault()}}),N.jsx(Rp,ee(ee({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},w),{},{overlayClassName:"".concat(d,"-popover ").concat(h).trim(),content:E,getPopupContainer:function(){return c.current||document.body},children:N.jsx("span",{ref:u,onClick:function(x){x.stopPropagation()},className:Ce("".concat(d,"-icon"),h,fe({},"".concat(d,"-icon-active"),y)),children:N.jsx(iEn,{})})}))]}))};function fEn(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var pEn=function(n){var r,i,o;return fe({},n.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(r=n.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextCollapsedButton,backgroundColor:(i=n.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(o=n.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function hEn(e){return ia("SiderMenuCollapsedIcon",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[pEn(r)]})}var gEn=["isMobile","collapsed"],mEn=function(n){var r=n.isMobile,i=n.collapsed,o=Xt(n,gEn),a=hEn(n.className),s=a.wrapSSR,l=a.hashId;return r&&i?null:s(N.jsx("div",ee(ee({},o),{},{className:Ce(n.className,l,fe(fe({},"".concat(n.className,"-collapsed"),i),"".concat(n.className,"-is-mobile"),r)),children:N.jsx(fEn,{})})))},_qe={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},vEn=function(n,r){var i,o,a=r.includes("horizontal")?(i=n.layout)===null||i===void 0?void 0:i.header:(o=n.layout)===null||o===void 0?void 0:o.sider;return ee(ee(fe({},"".concat(n.componentCls),fe(fe(fe(fe(fe(fe(fe(fe(fe({background:"transparent",color:a==null?void 0:a.colorTextMenu,border:"none"},"".concat(n.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(n.componentCls,"-submenu-has-icon"),fe({},"> ".concat(n.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(n.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(n.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(n.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",fe(fe(fe({},"".concat(n.antCls,`-menu-item,
|
||
`).concat(n.antCls,"-menu-item-group > ").concat(n.antCls,"-menu-item-group-list > ").concat(n.antCls,`-menu-item,
|
||
`).concat(n.antCls,"-menu-item-group > ").concat(n.antCls,"-menu-item-group-list > ").concat(n.antCls,"-menu-submenu > ").concat(n.antCls,`-menu-submenu-title,
|
||
`).concat(n.antCls,"-menu-submenu > ").concat(n.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(n.antCls,"-menu-item-group > ").concat(n.antCls,"-menu-item-group-list > ").concat(n.antCls,"-menu-submenu-selected > ").concat(n.antCls,`-menu-submenu-title,
|
||
`).concat(n.antCls,"-menu-submenu-selected > ").concat(n.antCls,"-menu-submenu-title"),{backgroundColor:a==null?void 0:a.colorBgMenuItemSelected,borderRadius:n.borderRadiusLG}),"".concat(n.componentCls,"-group"),fe({},"".concat(n.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",fe(fe(fe(fe(fe({display:"flex",flexDirection:"row",alignItems:"center",gap:n.marginXS},"".concat(n.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",fe(fe({minWidth:40,height:40},"".concat(n.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(n.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(n.componentCls,"-group-item-title"),{gap:n.marginXS,height:18,overflow:"hidden"}),"&".concat(n.componentCls,"-item-collapsed-show-title"),fe({lineHeight:"16px",gap:0},"&".concat(n.componentCls,"-item-title-collapsed"),fe(fe({display:"flex"},"".concat(n.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(n.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",fe({},"".concat(n.antCls,"-menu-item-group-title"),{fontSize:12,color:n.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:n.colorTextSecondary,fontSize:12,lineHeight:20})),r.includes("horizontal")?{}:fe({},"".concat(n.antCls,"-menu-submenu").concat(n.antCls,"-menu-submenu-popup"),fe({},"".concat(n.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},fe({},"".concat(n.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function yEn(e,n){return ia("ProLayoutBaseMenu"+n,function(r){var i=ee(ee({},r),{},{componentCls:".".concat(e)});return[vEn(i,n||"inline")]})}var IOe=function(n){var r=m.useState(n.collapsed),i=ke(r,2),o=i[0],a=i[1],s=m.useState(!1),l=ke(s,2),c=l[0],u=l[1];return m.useEffect(function(){u(!1),setTimeout(function(){a(n.collapsed)},400)},[n.collapsed]),n.disable?n.children:N.jsx(Sf,{title:n.title,open:o&&n.collapsed?c:!1,placement:"right",onOpenChange:u,children:n.children})},bqe=QVe({scriptUrl:_qe.iconfontUrl}),NOe=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",i=arguments.length>2?arguments[2]:void 0;if(typeof n=="string"&&n!==""){if(lfe(n)||hJt(n))return N.jsx("img",{width:16,src:n,alt:"icon",className:i},n);if(n.startsWith(r))return N.jsx(bqe,{type:n})}return n},MOe=function(n){if(n&&typeof n=="string"){var r=n.substring(0,1).toUpperCase();return r}return null},_En=Xi(function e(n){var r=this;Ki(this,e),fe(this,"props",void 0),fe(this,"getNavMenuItems",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return i.map(function(s){return r.getSubMenuOrItem(s,o,a)}).filter(function(s){return s}).flat(1)}),fe(this,"getSubMenuOrItem",function(i,o,a){var s=r.props,l=s.subMenuItemRender,c=s.baseClassName,u=s.prefixCls,d=s.collapsed,f=s.menu,p=s.iconPrefixes,h=s.layout,g=(f==null?void 0:f.type)==="group"&&h!=="top",v=r.props.token,y=r.getIntlName(i),_=(i==null?void 0:i.children)||(i==null?void 0:i.routes),S=g&&o===0?"group":void 0;if(Array.isArray(_)&&_.length>0){var b,E,w,C,x,T=o===0||g&&o===1,R=NOe(i.icon,p,"".concat(c,"-icon ").concat((b=r.props)===null||b===void 0?void 0:b.hashId)),O=d&&T?MOe(y):null,M=N.jsxs("div",{className:Ce("".concat(c,"-item-title"),(E=r.props)===null||E===void 0?void 0:E.hashId,fe(fe(fe(fe({},"".concat(c,"-item-title-collapsed"),d),"".concat(c,"-item-title-collapsed-level-").concat(a),d),"".concat(c,"-group-item-title"),S==="group"),"".concat(c,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&d)),children:[S==="group"&&d?null:T&&R?N.jsx("span",{className:"".concat(c,"-item-icon ").concat((w=r.props)===null||w===void 0?void 0:w.hashId).trim(),children:R}):O,N.jsx("span",{className:Ce("".concat(c,"-item-text"),(C=r.props)===null||C===void 0?void 0:C.hashId,fe({},"".concat(c,"-item-text-has-icon"),S!=="group"&&T&&(R||O))),children:y})]}),P=l?l(ee(ee({},i),{},{isUrl:!1}),M,r.props):M;if(g&&o===0&&r.props.collapsed&&!f.collapsedShowGroupTitle)return r.getNavMenuItems(_,o+1,o);var k=r.getNavMenuItems(_,o+1,g&&o===0&&r.props.collapsed?o:o+1);return[{type:S,key:i.key||i.path,label:P,onClick:g?void 0:i.onTitleClick,children:k,className:Ce(fe(fe(fe({},"".concat(c,"-group"),S==="group"),"".concat(c,"-submenu"),S!=="group"),"".concat(c,"-submenu-has-icon"),S!=="group"&&T&&R))},g&&o===0?{type:"divider",prefixCls:u,className:"".concat(c,"-divider"),key:(i.key||i.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:r.props.collapsed?"4px":"6px 16px",marginBlockStart:r.props.collapsed?4:8,borderColor:v==null||(x=v.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(c,"-menu-item"),disabled:i.disabled,key:i.key||i.path,onClick:i.onTitleClick,label:r.getMenuItemPath(i,o,a)}}),fe(this,"getIntlName",function(i){var o=i.name,a=i.locale,s=r.props,l=s.menu,c=s.formatMessage,u=o;return a&&(l==null?void 0:l.locale)!==!1&&(u=c==null?void 0:c({id:a,defaultMessage:o})),r.props.menuTextRender?r.props.menuTextRender(i,u,r.props):u}),fe(this,"getMenuItemPath",function(i,o,a){var s,l,c,u,d=r.conversionPath(i.path||"/"),f=r.props,p=f.location,h=p===void 0?{pathname:"/"}:p,g=f.isMobile,v=f.onCollapse,y=f.menuItemRender,_=f.iconPrefixes,S=r.getIntlName(i),b=r.props,E=b.baseClassName,w=b.menu,C=b.collapsed,x=(w==null?void 0:w.type)==="group",T=o===0||x&&o===1,R=T?NOe(i.icon,_,"".concat(E,"-icon ").concat((s=r.props)===null||s===void 0?void 0:s.hashId)):null,O=C&&T?MOe(S):null,M=N.jsxs("div",{className:Ce("".concat(E,"-item-title"),(l=r.props)===null||l===void 0?void 0:l.hashId,fe(fe(fe({},"".concat(E,"-item-title-collapsed"),C),"".concat(E,"-item-title-collapsed-level-").concat(a),C),"".concat(E,"-item-collapsed-show-title"),(w==null?void 0:w.collapsedShowTitle)&&C)),children:[N.jsx("span",{className:"".concat(E,"-item-icon ").concat((c=r.props)===null||c===void 0?void 0:c.hashId).trim(),style:{display:O===null&&!R?"none":""},children:R||N.jsx("span",{className:"anticon",children:O})}),N.jsx("span",{className:Ce("".concat(E,"-item-text"),(u=r.props)===null||u===void 0?void 0:u.hashId,fe({},"".concat(E,"-item-text-has-icon"),T&&(R||O))),children:S})]},d),P=lfe(d);if(P){var k,$,U;M=N.jsxs("span",{onClick:function(){var B,Y;(B=window)===null||B===void 0||(Y=B.open)===null||Y===void 0||Y.call(B,d,"_blank")},className:Ce("".concat(E,"-item-title"),(k=r.props)===null||k===void 0?void 0:k.hashId,fe(fe(fe(fe({},"".concat(E,"-item-title-collapsed"),C),"".concat(E,"-item-title-collapsed-level-").concat(a),C),"".concat(E,"-item-link"),!0),"".concat(E,"-item-collapsed-show-title"),(w==null?void 0:w.collapsedShowTitle)&&C)),children:[N.jsx("span",{className:"".concat(E,"-item-icon ").concat(($=r.props)===null||$===void 0?void 0:$.hashId).trim(),style:{display:O===null&&!R?"none":""},children:R||N.jsx("span",{className:"anticon",children:O})}),N.jsx("span",{className:Ce("".concat(E,"-item-text"),(U=r.props)===null||U===void 0?void 0:U.hashId,fe({},"".concat(E,"-item-text-has-icon"),T&&(R||O))),children:S})]},d)}if(y){var z=ee(ee({},i),{},{isUrl:P,itemPath:d,isMobile:g,replace:d===h.pathname,onClick:function(){return v&&v(!0)},children:void 0});return o===0?N.jsx(IOe,{collapsed:C,title:S,disable:i.disabledTooltip,children:y(z,M,r.props)}):y(z,M,r.props)}return o===0?N.jsx(IOe,{collapsed:C,title:S,disable:i.disabledTooltip,children:M}):M}),fe(this,"conversionPath",function(i){return i&&i.indexOf("http")===0?i:"/".concat(i||"").replace(/\/+/g,"/")}),this.props=n}),bEn=function(n,r){var i=r.layout,o=r.collapsed,a={};return n&&!o&&["side","mix"].includes(i||"mix")&&(a={openKeys:n}),a},Sqe=function(n){var r=n.mode,i=n.className,o=n.handleOpenChange,a=n.style,s=n.menuData,l=n.prefixCls,c=n.menu,u=n.matchMenuKeys,d=n.iconfontUrl,f=n.selectedKeys,p=n.onSelect,h=n.menuRenderType,g=n.openKeys,v=m.useContext(Gh),y=v.dark,_=v.token,S="".concat(l,"-base-menu-").concat(r),b=m.useRef([]),E=dr(c==null?void 0:c.defaultOpenAll),w=ke(E,2),C=w[0],x=w[1],T=dr(function(){return c!=null&&c.defaultOpenAll?ROe(s)||[]:g===!1?!1:[]},{value:g===!1?void 0:g,onChange:o}),R=ke(T,2),O=R[0],M=R[1],P=dr([],{value:f,onChange:p?function(H){p&&H&&p(H)}:void 0}),k=ke(P,2),$=k[0],U=k[1];m.useEffect(function(){c!=null&&c.defaultOpenAll||g===!1||u&&(M(u),U(u))},[u.join("-")]),m.useEffect(function(){d&&(bqe=QVe({scriptUrl:d}))},[d]),m.useEffect(function(){if(u.join("-")!==($||[]).join("-")&&U(u),!C&&g!==!1&&u.join("-")!==(O||[]).join("-")){var H=u;(c==null?void 0:c.autoClose)===!1&&(H=Array.from(new Set([].concat(Tt(u),Tt(O||[]))))),M(H)}else c!=null&&c.ignoreFlatMenu&&C?M(ROe(s)):x(!1)},[u.join("-")]);var z=m.useMemo(function(){return bEn(O,n)},[O&&O.join(","),n.layout,n.collapsed]),D=yEn(S,r),B=D.wrapSSR,Y=D.hashId,q=m.useMemo(function(){return new _En(ee(ee({},n),{},{token:_,menuRenderType:h,baseClassName:S,hashId:Y}))},[n,_,h,S,Y]);if(c!=null&&c.loading)return N.jsx("div",{style:r!=null&&r.includes("inline")?{padding:24}:{marginBlockStart:16},children:N.jsx(Qy,{active:!0,title:!1,paragraph:{rows:r!=null&&r.includes("inline")?6:1}})});n.openKeys===!1&&!n.handleOpenChange&&(b.current=u);var K=n.postMenuData?n.postMenuData(s):s;return K&&(K==null?void 0:K.length)<1?null:B(m.createElement(tv,ee(ee({},z),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:r,inlineIndent:16,defaultOpenKeys:b.current,theme:y?"dark":"light",selectedKeys:$,style:ee({backgroundColor:"transparent",border:"none"},a),className:Ce(i,Y,S,fe(fe({},"".concat(S,"-horizontal"),r==="horizontal"),"".concat(S,"-collapsed"),n.collapsed)),items:q.getNavMenuItems(K,0,0),onOpenChange:function(G){n.collapsed||M(G)}},n.menuProps)))};function SEn(e,n){var r=n.stylish,i=n.proLayoutCollapsedWidth;return ia("ProLayoutSiderMenuStylish",function(o){var a=ee(ee({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:i});return r?[fe({},"div".concat(o.proComponentsCls,"-layout"),fe({},"".concat(a.componentCls),r==null?void 0:r(a)))]:[]})}var EEn=["title","render"],CEn=V.memo(function(e){return N.jsx(N.Fragment,{children:e.children})}),wEn=bo.Sider,POe=bo._InternalSiderContext,xEn=POe===void 0?{Provider:CEn}:POe,Vfe=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",i=n.logo,o=n.title,a=n.layout,s=n[r];if(s===!1)return null;var l=Hfe(i),c=N.jsx("h1",{children:o??"Ant Design Pro"});return s?s(l,n.collapsed?null:c,n):n.isMobile?null:a==="mix"&&r==="menuHeaderRender"?!1:n.collapsed?N.jsx("a",{children:l},"title"):N.jsxs("a",{children:[l,c]},"title")},AOe=function(n){var r,i=n.collapsed,o=n.originCollapsed,a=n.fixSiderbar,s=n.menuFooterRender,l=n.onCollapse,c=n.theme,u=n.siderWidth,d=n.isMobile,f=n.onMenuHeaderClick,p=n.breakpoint,h=p===void 0?"lg":p,g=n.style,v=n.layout,y=n.menuExtraRender,_=y===void 0?!1:y,S=n.links,b=n.menuContentRender,E=n.collapsedButtonRender,w=n.prefixCls,C=n.avatarProps,x=n.rightContentRender,T=n.actionsRender,R=n.onOpenChange,O=n.stylish,M=n.logoStyle,P=m.useContext(Gh),k=P.hashId,$=m.useMemo(function(){return!(d||v==="mix")},[d,v]),U="".concat(w,"-sider"),z=64,D=SEn("".concat(U,".").concat(U,"-stylish"),{stylish:O,proLayoutCollapsedWidth:z}),B=Ce("".concat(U),k,fe(fe(fe(fe(fe(fe(fe({},"".concat(U,"-fixed"),a),"".concat(U,"-fixed-mix"),v==="mix"&&!d&&a),"".concat(U,"-collapsed"),n.collapsed),"".concat(U,"-layout-").concat(v),v&&!d),"".concat(U,"-light"),c!=="dark"),"".concat(U,"-mix"),v==="mix"&&!d),"".concat(U,"-stylish"),!!O)),Y=Vfe(n),q=_&&_(n),K=m.useMemo(function(){return b!==!1&&m.createElement(Sqe,ee(ee({},n),{},{key:"base-menu",mode:i&&!d?"vertical":"inline",handleOpenChange:R,style:{width:"100%"},className:"".concat(U,"-menu ").concat(k).trim()}))},[U,k,b,R,n]),H=(S||[]).map(function(pe,me){return{className:"".concat(U,"-link"),label:pe,key:me}}),G=m.useMemo(function(){return b?b(n,K):K},[b,K,n]),Q=m.useMemo(function(){if(!C)return null;var pe=C.title,me=C.render,ve=Xt(C,EEn),he=N.jsxs("div",{className:"".concat(U,"-actions-avatar"),children:[ve!=null&&ve.src||ve!=null&&ve.srcSet||ve.icon||ve.children?N.jsx(nS,ee({size:28},ve)):null,C.title&&!i&&N.jsx("span",{children:pe})]});return me?me(C,he,n):he},[C,U,i]),le=m.useMemo(function(){return T?N.jsx(Ef,{align:"center",size:4,direction:i?"vertical":"horizontal",className:Ce(["".concat(U,"-actions-list"),i&&"".concat(U,"-actions-list-collapsed"),k]),children:[T==null?void 0:T(n)].flat(1).map(function(pe,me){return N.jsx("div",{className:"".concat(U,"-actions-list-item ").concat(k).trim(),children:pe},me)})}):null},[T,U,i]),Z=m.useMemo(function(){return N.jsx(zfe,{onItemClick:n.itemClick,appListRender:n.appListRender,appList:n.appList,prefixCls:n.prefixCls})},[n.appList,n.appListRender,n.prefixCls]),j=m.useMemo(function(){if(E===!1)return null;var pe=N.jsx(mEn,{isMobile:d,collapsed:o,className:"".concat(U,"-collapsed-button"),onClick:function(){l==null||l(!o)}});return E?E(i,pe):pe},[E,d,o,U,i,l]),F=m.useMemo(function(){return!Q&&!le?null:N.jsxs("div",{className:Ce("".concat(U,"-actions"),k,i&&"".concat(U,"-actions-collapsed")),children:[Q,le]})},[le,Q,U,i,k]),te=m.useMemo(function(){var pe;return n!=null&&(pe=n.menu)!==null&&pe!==void 0&&pe.hideMenuWhenCollapsed&&i?"".concat(U,"-hide-menu-collapsed"):null},[U,i,n==null||(r=n.menu)===null||r===void 0?void 0:r.hideMenuWhenCollapsed]),oe=s&&(s==null?void 0:s(n)),de=N.jsxs(N.Fragment,{children:[Y&&N.jsxs("div",{className:Ce([Ce("".concat(U,"-logo"),k,fe({},"".concat(U,"-logo-collapsed"),i))]),onClick:$?f:void 0,id:"logo",style:M,children:[Y,Z]}),q&&N.jsx("div",{className:Ce(["".concat(U,"-extra"),!Y&&"".concat(U,"-extra-no-logo"),k]),children:q}),N.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:G}),N.jsxs(xEn.Provider,{value:{},children:[S?N.jsx("div",{className:"".concat(U,"-links ").concat(k).trim(),children:N.jsx(tv,{inlineIndent:16,className:"".concat(U,"-link-menu ").concat(k).trim(),selectedKeys:[],openKeys:[],theme:c,mode:"inline",items:H})}):null,$&&N.jsxs(N.Fragment,{children:[F,!le&&x?N.jsx("div",{className:Ce("".concat(U,"-actions"),k,fe({},"".concat(U,"-actions-collapsed"),i)),children:x==null?void 0:x(n)}):null]}),oe&&N.jsx("div",{className:Ce(["".concat(U,"-footer"),k,fe({},"".concat(U,"-footer-collapsed"),i)]),children:oe})]})]});return D.wrapSSR(N.jsxs(N.Fragment,{children:[a&&!d&&!te&&N.jsx("div",{style:ee({width:i?z:u,overflow:"hidden",flex:"0 0 ".concat(i?z:u,"px"),maxWidth:i?z:u,minWidth:i?z:u,transition:"all 0.2s ease 0s"},g)}),N.jsxs(wEn,{collapsible:!0,trigger:null,collapsed:i,breakpoint:h===!1?void 0:h,onCollapse:function(me){d||l==null||l(me)},collapsedWidth:z,style:g,theme:c,width:u,className:Ce(B,k,te),children:[te?N.jsx("div",{className:"".concat(U,"-hide-when-collapsed ").concat(k).trim(),style:{height:"100%",width:"100%",opacity:te?0:1},children:de}):de,j]})]}))},TEn=function(n){var r,i,o,a,s;return fe({},n.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(r=n.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:n.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:n.borderRadius,"&:hover":{backgroundColor:(i=n.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:n.padding,paddingInlineEnd:n.padding,cursor:"pointer",color:(o=n.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,"> div":{height:"44px",color:(a=n.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:n.borderRadius,"&:hover":{backgroundColor:(s=n.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorBgRightActionsItemHover}}}}})};function OEn(e){return ia("ProLayoutRightContent",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[TEn(r)]})}var REn=["rightContentRender","avatarProps","actionsRender","headerContentRender"],IEn=["title","render"],Eqe=function(n){var r=n.rightContentRender,i=n.avatarProps,o=n.actionsRender;n.headerContentRender;var a=Xt(n,REn),s=m.useContext(or.ConfigContext),l=s.getPrefixCls,c="".concat(l(),"-pro-global-header"),u=OEn(c),d=u.wrapSSR,f=u.hashId,p=m.useState("auto"),h=ke(p,2),g=h[0],v=h[1],y=m.useMemo(function(){if(!i)return null;var E=i.title,w=i.render,C=Xt(i,IEn),x=[C!=null&&C.src||C!=null&&C.srcSet||C.icon||C.children?m.createElement(nS,ee(ee({},C),{},{size:28,key:"avatar"})):null,E?N.jsx("span",{style:{marginInlineStart:8},children:E},"name"):void 0];return w?w(i,N.jsx("div",{children:x}),a):N.jsx("div",{children:x})},[i]),_=o||y?function(E){var w=o&&(o==null?void 0:o(E));return!w&&!y?null:Array.isArray(w)?d(N.jsxs("div",{className:"".concat(c,"-header-actions ").concat(f).trim(),children:[w.filter(Boolean).map(function(C,x){var T=!1;if(V.isValidElement(C)){var R;T=!!(C!=null&&(R=C.props)!==null&&R!==void 0&&R["aria-hidden"])}return N.jsx("div",{className:Ce("".concat(c,"-header-actions-item ").concat(f),fe({},"".concat(c,"-header-actions-hover"),!T)),children:C},x)}),y&&N.jsx("span",{className:"".concat(c,"-header-actions-avatar ").concat(f).trim(),children:y})]})):d(N.jsxs("div",{className:"".concat(c,"-header-actions ").concat(f).trim(),children:[w,y&&N.jsx("span",{className:"".concat(c,"-header-actions-avatar ").concat(f).trim(),children:y})]}))}:void 0,S=iJt(function(){var E=Ss(ri().mark(function w(C){return ri().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:v(C);case 1:case"end":return T.stop()}},w)}));return function(w){return E.apply(this,arguments)}}(),160),b=_||r;return N.jsx("div",{className:"".concat(c,"-right-content ").concat(f).trim(),style:{minWidth:g,height:"100%"},children:N.jsx("div",{style:{height:"100%"},children:N.jsx(Hc,{onResize:function(w){var C=w.width;S.run(C)},children:b?N.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:b(ee(ee({},a),{},{rightContentSize:g}))}):null})})})},NEn=function(n){var r,i;return fe({},n.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":fe({display:"flex",alignItems:"center"},"".concat(n.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(r=n.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((i=n.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56)-12,40),"px")}})};function MEn(e){return ia("ProLayoutTopNavHeader",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[NEn(r)]})}var Cqe=function(n){var r,i,o,a,s,l,c,u=m.useRef(null),d=n.onMenuHeaderClick,f=n.contentWidth,p=n.rightContentRender,h=n.className,g=n.style,v=n.headerContentRender,y=n.layout,_=n.actionsRender,S=m.useContext(or.ConfigContext),b=S.getPrefixCls,E=m.useContext(Gh),w=E.dark,C="".concat(n.prefixCls||b("pro"),"-top-nav-header"),x=MEn(C),T=x.wrapSSR,R=x.hashId,O=void 0;n.menuHeaderRender!==void 0?O="menuHeaderRender":(y==="mix"||y==="top")&&(O="headerTitleRender");var M=Vfe(ee(ee({},n),{},{collapsed:!1}),O),P=m.useContext(Gh),k=P.token,$=m.useMemo(function(){var U,z,D,B,Y,q,K,H,G,Q,le,Z,j,F=N.jsx(or,{theme:{hashed:qT(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:ee({},aWe({colorItemBg:((U=k.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorBgHeader)||"transparent",colorSubItemBg:((z=k.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorBgHeader)||"transparent",radiusItem:k.borderRadius,colorItemBgSelected:((D=k.layout)===null||D===void 0||(D=D.header)===null||D===void 0?void 0:D.colorBgMenuItemSelected)||(k==null?void 0:k.colorBgTextHover),itemHoverBg:((B=k.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorBgMenuItemHover)||(k==null?void 0:k.colorBgTextHover),colorItemBgSelectedHorizontal:((Y=k.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorBgMenuItemSelected)||(k==null?void 0:k.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((q=k.layout)===null||q===void 0||(q=q.header)===null||q===void 0?void 0:q.colorTextMenu)||(k==null?void 0:k.colorTextSecondary),colorItemTextHoverHorizontal:((K=k.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorTextMenuActive)||(k==null?void 0:k.colorText),colorItemTextSelectedHorizontal:((H=k.layout)===null||H===void 0||(H=H.header)===null||H===void 0?void 0:H.colorTextMenuSelected)||(k==null?void 0:k.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((G=k.layout)===null||G===void 0||(G=G.header)===null||G===void 0?void 0:G.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Q=k.layout)===null||Q===void 0||(Q=Q.header)===null||Q===void 0?void 0:Q.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((le=k.layout)===null||le===void 0||(le=le.header)===null||le===void 0?void 0:le.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:k==null?void 0:k.colorBgElevated,subMenuItemBg:k==null?void 0:k.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:k==null?void 0:k.colorBgElevated}))},token:{colorBgElevated:((Z=k.layout)===null||Z===void 0||(Z=Z.header)===null||Z===void 0?void 0:Z.colorBgHeader)||"transparent"}},children:N.jsx(Sqe,ee(ee(ee({theme:w?"dark":"light"},n),{},{className:"".concat(C,"-base-menu ").concat(R).trim()},n.menuProps),{},{style:ee({width:"100%"},(j=n.menuProps)===null||j===void 0?void 0:j.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return v?v(n,F):F},[(r=k.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgHeader,(i=k.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgMenuItemSelected,(o=k.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgMenuItemHover,(a=k.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenu,(s=k.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuActive,(l=k.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorTextMenuSelected,(c=k.layout)===null||c===void 0||(c=c.header)===null||c===void 0?void 0:c.colorBgMenuElevated,k.borderRadius,k==null?void 0:k.colorBgTextHover,k==null?void 0:k.colorTextSecondary,k==null?void 0:k.colorText,k==null?void 0:k.colorTextBase,k.colorBgElevated,w,n,C,R,v]);return T(N.jsx("div",{className:Ce(C,R,h,fe({},"".concat(C,"-light"),!0)),style:g,children:N.jsxs("div",{ref:u,className:Ce("".concat(C,"-main"),R,fe({},"".concat(C,"-wide"),f==="Fixed"&&y==="top")),children:[M&&N.jsxs("div",{className:Ce("".concat(C,"-main-left ").concat(R)),onClick:d,children:[N.jsx(zfe,ee({},n)),N.jsx("div",{className:"".concat(C,"-logo ").concat(R).trim(),id:"logo",children:M},"logo")]}),N.jsx("div",{style:{flex:1},className:"".concat(C,"-menu ").concat(R).trim(),children:$}),(p||_||n.avatarProps)&&N.jsx(Eqe,ee(ee({rightContentRender:p},n),{},{prefixCls:C}))]})}))},PEn=function(n){var r,i,o;return fe({},n.componentCls,fe(fe(fe(fe({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((r=n.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(n.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(i=n.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((o=n.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorHeaderTitle)||n.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function AEn(e){return ia("ProLayoutGlobalHeader",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[PEn(r)]})}var DEn=function(n,r){return n===!1?null:n?n(r,null):r},kEn=function(n){var r=n.isMobile,i=n.logo,o=n.collapsed,a=n.onCollapse,s=n.rightContentRender,l=n.menuHeaderRender,c=n.onMenuHeaderClick,u=n.className,d=n.style,f=n.layout,p=n.children,h=n.splitMenus,g=n.menuData,v=n.prefixCls,y=m.useContext(or.ConfigContext),_=y.getPrefixCls,S=y.direction,b="".concat(v||_("pro"),"-global-header"),E=AEn(b),w=E.wrapSSR,C=E.hashId,x=Ce(u,b,C);if(f==="mix"&&!r&&h){var T=(g||[]).map(function(P){return ee(ee({},P),{},{children:void 0,routes:void 0})}),R=pH(T);return N.jsx(Cqe,ee(ee({mode:"horizontal"},n),{},{splitMenus:!1,menuData:R}))}var O=Ce("".concat(b,"-logo"),C,fe(fe(fe({},"".concat(b,"-logo-rtl"),S==="rtl"),"".concat(b,"-logo-mix"),f==="mix"),"".concat(b,"-logo-mobile"),r)),M=N.jsx("span",{className:O,children:N.jsx("a",{children:Hfe(i)})},"logo");return w(N.jsxs("div",{className:x,style:ee({},d),children:[r&&N.jsx("span",{className:"".concat(b,"-collapsed-button ").concat(C).trim(),onClick:function(){a==null||a(!o)},children:N.jsx(WVe,{})}),r&&DEn(l,M),f==="mix"&&!r&&N.jsxs(N.Fragment,{children:[N.jsx(zfe,ee({},n)),N.jsx("div",{className:O,onClick:c,children:Vfe(ee(ee({},n),{},{collapsed:!1}),"headerTitleRender")})]}),N.jsx("div",{style:{flex:1},children:p}),(s||n.actionsRender||n.avatarProps)&&N.jsx(Eqe,ee({rightContentRender:s},n))]}))},LEn=function(n){var r,i,o,a;return fe({},"".concat(n.proComponentsCls,"-layout"),fe({},"".concat(n.antCls,"-layout-header").concat(n.componentCls),{height:((r=n.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((i=n.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(n.colorSplit),backgroundColor:((o=n.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((a=n.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:n.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function $En(e){return ia("ProLayoutHeader",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[LEn(r)]})}function FEn(e,n){var r=n.stylish,i=n.proLayoutCollapsedWidth;return ia("ProLayoutHeaderStylish",function(o){var a=ee(ee({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:i});return r?[fe({},"div".concat(o.proComponentsCls,"-layout"),fe({},"".concat(a.componentCls),r==null?void 0:r(a)))]:[]})}var DOe=bo.Header,BEn=function(n){var r,i,o,a=n.isMobile,s=n.fixedHeader,l=n.className,c=n.style,u=n.collapsed,d=n.prefixCls,f=n.onCollapse,p=n.layout,h=n.headerRender,g=n.headerContentRender,v=m.useContext(Gh),y=v.token,_=m.useContext(or.ConfigContext),S=m.useState(!1),b=ke(S,2),E=b[0],w=b[1],C=s||p==="mix",x=m.useCallback(function(){var U=p==="top",z=pH(n.menuData||[]),D=N.jsx(kEn,ee(ee({onCollapse:f},n),{},{menuData:z,children:g&&g(n,null)}));return U&&!a&&(D=N.jsx(Cqe,ee(ee({mode:"horizontal",onCollapse:f},n),{},{menuData:z}))),h&&typeof h=="function"?h(n,D):D},[g,h,a,p,f,n]);m.useEffect(function(){var U,z=(_==null||(U=_.getTargetContainer)===null||U===void 0?void 0:U.call(_))||document.body,D=function(){var Y,q=z.scrollTop;return q>(((Y=y.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.heightLayoutHeader)||56)&&!E?(w(!0),!0):(E&&w(!1),!1)};if(C&&!(typeof window>"u"))return z.addEventListener("scroll",D,{passive:!0}),function(){z.removeEventListener("scroll",D)}},[(r=y.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader,C,E]);var T=p==="top",R="".concat(d,"-layout-header"),O=$En(R),M=O.wrapSSR,P=O.hashId,k=FEn("".concat(R,".").concat(R,"-stylish"),{proLayoutCollapsedWidth:64,stylish:n.stylish}),$=Ce(l,P,R,fe(fe(fe(fe(fe(fe(fe({},"".concat(R,"-fixed-header"),C),"".concat(R,"-fixed-header-scroll"),E),"".concat(R,"-mix"),p==="mix"),"".concat(R,"-fixed-header-action"),!u),"".concat(R,"-top-menu"),T),"".concat(R,"-header"),!0),"".concat(R,"-stylish"),!!n.stylish));return p==="side"&&!a?null:k.wrapSSR(M(N.jsx(N.Fragment,{children:N.jsxs(or,{theme:{hashed:qT(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[C&&N.jsx(DOe,{style:ee({height:((i=y.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,lineHeight:"".concat(((o=y.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},c)}),N.jsx(DOe,{className:$,style:c,children:x()})]})})))};const jEn={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},UEn=ee({},jEn),HEn={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},zEn=ee({},HEn),VEn={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},GEn=ee({},VEn),WEn={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},YEn=ee({},WEn),qEn={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},KEn=ee({},qEn);var kOe={"zh-CN":YEn,"zh-TW":KEn,"en-US":UEn,"it-IT":zEn,"ko-KR":GEn},XEn=function(){if(!sfe())return"zh-CN";var n=window.localStorage.getItem("umi_locale");return n||window.g_locale||navigator.language},QEn=function(){var n=XEn();return kOe[n]||kOe["zh-CN"]},sS={};Object.defineProperty(sS,"__esModule",{value:!0});sS.TokenData=void 0;sS.parse=qfe;sS.compile=n1n;var hoe=sS.match=i1n;sS.pathToRegexp=Tqe;sS.stringify=s1n;const Gfe="/",Wfe=e=>e,wqe=/^[$_\p{ID_Start}]$/u,Yfe=/^[$\u200c\u200d\p{ID_Continue}]$/u,IB="https://git.new/pathToRegexpError",ZEn={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function JEn(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function qg(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*e1n(e){const n=[...e];let r=0;function i(){let o="";if(wqe.test(n[++r]))for(o+=n[r];Yfe.test(n[++r]);)o+=n[r];else if(n[r]==='"'){let a=r;for(;r<n.length;){if(n[++r]==='"'){r++,a=0;break}n[r]==="\\"?o+=n[++r]:o+=n[r]}if(a)throw new TypeError(`Unterminated quote at ${a}: ${IB}`)}if(!o)throw new TypeError(`Missing parameter name at ${r}: ${IB}`);return o}for(;r<n.length;){const o=n[r],a=ZEn[o];if(a)yield{type:a,index:r++,value:o};else if(o==="\\")yield{type:"ESCAPED",index:r++,value:n[r++]};else if(o===":"){const s=i();yield{type:"PARAM",index:r,value:s}}else if(o==="*"){const s=i();yield{type:"WILDCARD",index:r,value:s}}else yield{type:"CHAR",index:r,value:n[r++]}}return{type:"END",index:r,value:""}}class t1n{constructor(n){this.tokens=n}peek(){if(!this._peek){const n=this.tokens.next();this._peek=n.value}return this._peek}tryConsume(n){const r=this.peek();if(r.type===n)return this._peek=void 0,r.value}consume(n){const r=this.tryConsume(n);if(r!==void 0)return r;const{type:i,index:o}=this.peek();throw new TypeError(`Unexpected ${i} at ${o}, expected ${n}: ${IB}`)}text(){let n="",r;for(;r=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)n+=r;return n}}class hH{constructor(n){this.tokens=n}}sS.TokenData=hH;function qfe(e,n={}){const{encodePath:r=Wfe}=n,i=new t1n(e1n(e));function o(s){const l=[];for(;;){const c=i.text();c&&l.push({type:"text",value:r(c)});const u=i.tryConsume("PARAM");if(u){l.push({type:"param",name:u});continue}const d=i.tryConsume("WILDCARD");if(d){l.push({type:"wildcard",name:d});continue}if(i.tryConsume("{")){l.push({type:"group",tokens:o("}")});continue}return i.consume(s),l}}const a=o("END");return new hH(a)}function n1n(e,n={}){const{encode:r=encodeURIComponent,delimiter:i=Gfe}=n,o=e instanceof hH?e:qfe(e,n),a=xqe(o.tokens,i,r);return function(l={}){const[c,...u]=a(l);if(u.length)throw new TypeError(`Missing parameters: ${u.join(", ")}`);return c}}function xqe(e,n,r){const i=e.map(o=>r1n(o,n,r));return o=>{const a=[""];for(const s of i){const[l,...c]=s(o);a[0]+=l,a.push(...c)}return a}}function r1n(e,n,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const o=xqe(e.tokens,n,r);return a=>{const[s,...l]=o(a);return l.length?[""]:[s]}}const i=r||Wfe;return e.type==="wildcard"&&r!==!1?o=>{const a=o[e.name];if(a==null)return["",e.name];if(!Array.isArray(a)||a.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[a.map((s,l)=>{if(typeof s!="string")throw new TypeError(`Expected "${e.name}/${l}" to be a string`);return i(s)}).join(n)]}:o=>{const a=o[e.name];if(a==null)return["",e.name];if(typeof a!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[i(a)]}}function i1n(e,n={}){const{decode:r=decodeURIComponent,delimiter:i=Gfe}=n,{regexp:o,keys:a}=Tqe(e,n),s=a.map(l=>r===!1?Wfe:l.type==="param"?r:c=>c.split(i).map(r));return function(c){const u=o.exec(c);if(!u)return!1;const d=u[0],f=Object.create(null);for(let p=1;p<u.length;p++){if(u[p]===void 0)continue;const h=a[p-1],g=s[p-1];f[h.name]=g(u[p])}return{path:d,params:f}}}function Tqe(e,n={}){const{delimiter:r=Gfe,end:i=!0,sensitive:o=!1,trailing:a=!0}=n,s=[],l=[],c=o?"":"i",d=(Array.isArray(e)?e:[e]).map(h=>h instanceof hH?h:qfe(h,n));for(const{tokens:h}of d)for(const g of w6(h,0,[])){const v=o1n(g,r,s);l.push(v)}let f=`^(?:${l.join("|")})`;return a&&(f+=`(?:${qg(r)}$)?`),f+=i?"$":`(?=${qg(r)}|$)`,{regexp:new RegExp(f,c),keys:s}}function*w6(e,n,r){if(n===e.length)return yield r;const i=e[n];if(i.type==="group"){const o=r.slice();for(const a of w6(i.tokens,0,o))yield*w6(e,n+1,a)}else r.push(i);yield*w6(e,n+1,r)}function o1n(e,n,r){let i="",o="",a=!0;for(let s=0;s<e.length;s++){const l=e[s];if(l.type==="text"){i+=qg(l.value),o+=l.value,a||(a=l.value.includes(n));continue}if(l.type==="param"||l.type==="wildcard"){if(!a&&!o)throw new TypeError(`Missing text after "${l.name}": ${IB}`);l.type==="param"?i+=`(${a1n(n,a?"":o)}+)`:i+="([\\s\\S]+)",r.push(l),o="",a=!1;continue}}return i}function a1n(e,n){return n.length<2?e.length<2?`[^${qg(e+n)}]`:`(?:(?!${qg(e)})[^${qg(n)}])`:e.length<2?`(?:(?!${qg(n)})[^${qg(e)}])`:`(?:(?!${qg(n)}|${qg(e)})[\\s\\S])`}function s1n(e){return e.tokens.map(function n(r,i,o){if(r.type==="text")return JEn(r.value);if(r.type==="group")return`{${r.tokens.map(n).join("")}}`;const s=l1n(r.name)&&c1n(o[i+1])?r.name:JSON.stringify(r.name);if(r.type==="param")return`:${s}`;if(r.type==="wildcard")return`*${s}`;throw new TypeError(`Unexpected token: ${r}`)}).join("")}function l1n(e){const[n,...r]=e;return wqe.test(n)?r.every(i=>Yfe.test(i)):!1}function c1n(e){return(e==null?void 0:e.type)!=="text"?!0:!Yfe.test(e.value[0])}var u1n=function(n,r,i){if(i){var o=Tt(i.keys()).find(function(s){try{return s.startsWith("http")?!1:hoe(s)(n)}catch(l){return console.log("key",s,l),!1}});if(o)return i.get(o)}if(r){var a=Object.keys(r).find(function(s){try{return s!=null&&s.startsWith("http")?!1:hoe(s)(n)}catch(l){return console.log("key",s,l),!1}});if(a)return r[a]}return{path:""}},LOe=function(n,r){var i=n.pathname,o=i===void 0?"/":i,a=n.breadcrumb,s=n.breadcrumbMap,l=n.formatMessage,c=n.title,u=n.menu,d=u===void 0?{locale:!1}:u,f=r?"":c||"",p=u1n(o,a,s);if(!p)return{title:f,id:"",pageName:f};var h=p.name;return d.locale!==!1&&p.locale&&l&&(h=l({id:p.locale||"",defaultMessage:p.name})),h?r||!c?{title:h,id:p.locale||"",pageName:h}:{title:"".concat(h," - ").concat(c),id:p.locale||"",pageName:h}:{title:f,id:p.locale||"",pageName:f}},uu={};function goe(e){"@babel/helpers - typeof";return goe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},goe(e)}Object.defineProperty(uu,"__esModule",{value:!0});var sP=uu.pathToRegexp=uu.tokensToRegexp=uu.regexpToFunction=uu.match=uu.tokensToFunction=uu.compile=uu.parse=void 0;function d1n(e){for(var n=[],r=0;r<e.length;){var i=e[r];if(i==="*"||i==="+"||i==="?"){n.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(i==="\\"){n.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(i==="{"){n.push({type:"OPEN",index:r,value:e[r++]});continue}if(i==="}"){n.push({type:"CLOSE",index:r,value:e[r++]});continue}if(i===":"){for(var o="",a=r+1;a<e.length;){var s=e.charCodeAt(a);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){o+=e[a++];continue}break}if(!o)throw new TypeError("Missing parameter name at "+r);n.push({type:"NAME",index:r,value:o}),r=a;continue}if(i==="("){var l=1,c="",a=r+1;if(e[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a<e.length;){if(e[a]==="\\"){c+=e[a++]+e[a++];continue}if(e[a]===")"){if(l--,l===0){a++;break}}else if(e[a]==="("&&(l++,e[a+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+a);c+=e[a++]}if(l)throw new TypeError("Unbalanced pattern at "+r);if(!c)throw new TypeError("Missing pattern at "+r);n.push({type:"PATTERN",index:r,value:c}),r=a;continue}n.push({type:"CHAR",index:r,value:e[r++]})}return n.push({type:"END",index:r,value:""}),n}function Kfe(e,n){n===void 0&&(n={});for(var r=d1n(e),i=n.prefixes,o=i===void 0?"./":i,a="[^"+Qx(n.delimiter||"/#?")+"]+?",s=[],l=0,c=0,u="",d=function(x){if(c<r.length&&r[c].type===x)return r[c++].value},f=function(x){var T=d(x);if(T!==void 0)return T;var R=r[c],O=R.type,M=R.index;throw new TypeError("Unexpected "+O+" at "+M+", expected "+x)},p=function(){for(var x="",T;T=d("CHAR")||d("ESCAPED_CHAR");)x+=T;return x};c<r.length;){var h=d("CHAR"),g=d("NAME"),v=d("PATTERN");if(g||v){var y=h||"";o.indexOf(y)===-1&&(u+=y,y=""),u&&(s.push(u),u=""),s.push({name:g||l++,prefix:y,suffix:"",pattern:v||a,modifier:d("MODIFIER")||""});continue}var _=h||d("ESCAPED_CHAR");if(_){u+=_;continue}u&&(s.push(u),u="");var S=d("OPEN");if(S){var y=p(),b=d("NAME")||"",E=d("PATTERN")||"",w=p();f("CLOSE"),s.push({name:b||(E?l++:""),pattern:b&&!E?a:E,prefix:y,suffix:w,modifier:d("MODIFIER")||""});continue}f("END")}return s}uu.parse=Kfe;function f1n(e,n){return Oqe(Kfe(e,n),n)}uu.compile=f1n;function Oqe(e,n){n===void 0&&(n={});var r=Xfe(n),i=n.encode,o=i===void 0?function(c){return c}:i,a=n.validate,s=a===void 0?!0:a,l=e.map(function(c){if(goe(c)==="object")return new RegExp("^(?:"+c.pattern+")$",r)});return function(c){for(var u="",d=0;d<e.length;d++){var f=e[d];if(typeof f=="string"){u+=f;continue}var p=c?c[f.name]:void 0,h=f.modifier==="?"||f.modifier==="*",g=f.modifier==="*"||f.modifier==="+";if(Array.isArray(p)){if(!g)throw new TypeError('Expected "'+f.name+'" to not repeat, but got an array');if(p.length===0){if(h)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var v=0;v<p.length;v++){var y=o(p[v],f);if(s&&!l[d].test(y))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but got "'+y+'"');u+=f.prefix+y+f.suffix}continue}if(typeof p=="string"||typeof p=="number"){var y=o(String(p),f);if(s&&!l[d].test(y))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but got "'+y+'"');u+=f.prefix+y+f.suffix;continue}if(!h){var _=g?"an array":"a string";throw new TypeError('Expected "'+f.name+'" to be '+_)}}return u}}uu.tokensToFunction=Oqe;function p1n(e,n){var r=[],i=Qfe(e,r,n);return Rqe(i,r,n)}uu.match=p1n;function Rqe(e,n,r){r===void 0&&(r={});var i=r.decode,o=i===void 0?function(a){return a}:i;return function(a){var s=e.exec(a);if(!s)return!1;for(var l=s[0],c=s.index,u=Object.create(null),d=function(h){if(s[h]===void 0)return"continue";var g=n[h-1];g.modifier==="*"||g.modifier==="+"?u[g.name]=s[h].split(g.prefix+g.suffix).map(function(v){return o(v,g)}):u[g.name]=o(s[h],g)},f=1;f<s.length;f++)d(f);return{path:l,index:c,params:u}}}uu.regexpToFunction=Rqe;function Qx(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Xfe(e){return e&&e.sensitive?"":"i"}function h1n(e,n){if(!n)return e;var r=e.source.match(/\((?!\?)/g);if(r)for(var i=0;i<r.length;i++)n.push({name:i,prefix:"",suffix:"",modifier:"",pattern:""});return e}function g1n(e,n,r){var i=e.map(function(o){return Qfe(o,n,r).source});return new RegExp("(?:"+i.join("|")+")",Xfe(r))}function m1n(e,n,r){return Iqe(Kfe(e,r),n,r)}function Iqe(e,n,r){r===void 0&&(r={});for(var i=r.strict,o=i===void 0?!1:i,a=r.start,s=a===void 0?!0:a,l=r.end,c=l===void 0?!0:l,u=r.encode,d=u===void 0?function(C){return C}:u,f="["+Qx(r.endsWith||"")+"]|$",p="["+Qx(r.delimiter||"/#?")+"]",h=s?"^":"",g=0,v=e;g<v.length;g++){var y=v[g];if(typeof y=="string")h+=Qx(d(y));else{var _=Qx(d(y.prefix)),S=Qx(d(y.suffix));if(y.pattern)if(n&&n.push(y),_||S)if(y.modifier==="+"||y.modifier==="*"){var b=y.modifier==="*"?"?":"";h+="(?:"+_+"((?:"+y.pattern+")(?:"+S+_+"(?:"+y.pattern+"))*)"+S+")"+b}else h+="(?:"+_+"("+y.pattern+")"+S+")"+y.modifier;else h+="("+y.pattern+")"+y.modifier;else h+="(?:"+_+S+")"+y.modifier}}if(c)o||(h+=p+"?"),h+=r.endsWith?"(?="+f+")":"$";else{var E=e[e.length-1],w=typeof E=="string"?p.indexOf(E[E.length-1])>-1:E===void 0;o||(h+="(?:"+p+"(?="+f+"))?"),w||(h+="(?="+p+"|"+f+")")}return new RegExp(h,Xfe(r))}uu.tokensToRegexp=Iqe;function Qfe(e,n,r){return e instanceof RegExp?h1n(e,n):Array.isArray(e)?g1n(e,n,r):m1n(e,n,r)}sP=uu.pathToRegexp=Qfe;function mm(e,n){return n>>>e|n<<32-e}function v1n(e,n,r){return e&n^~e&r}function y1n(e,n,r){return e&n^e&r^n&r}function _1n(e){return mm(2,e)^mm(13,e)^mm(22,e)}function b1n(e){return mm(6,e)^mm(11,e)^mm(25,e)}function S1n(e){return mm(7,e)^mm(18,e)^e>>>3}function E1n(e){return mm(17,e)^mm(19,e)^e>>>10}function C1n(e,n){return e[n&15]+=E1n(e[n+14&15])+e[n+9&15]+S1n(e[n+1&15])}var w1n=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],sa,kc,gl,x1n="0123456789abcdef";function $Oe(e,n){var r=(e&65535)+(n&65535),i=(e>>16)+(n>>16)+(r>>16);return i<<16|r&65535}function T1n(){sa=new Array(8),kc=new Array(2),gl=new Array(64),kc[0]=kc[1]=0,sa[0]=1779033703,sa[1]=3144134277,sa[2]=1013904242,sa[3]=2773480762,sa[4]=1359893119,sa[5]=2600822924,sa[6]=528734635,sa[7]=1541459225}function moe(){var e,n,r,i,o,a,s,l,c,u,d=new Array(16);e=sa[0],n=sa[1],r=sa[2],i=sa[3],o=sa[4],a=sa[5],s=sa[6],l=sa[7];for(var f=0;f<16;f++)d[f]=gl[(f<<2)+3]|gl[(f<<2)+2]<<8|gl[(f<<2)+1]<<16|gl[f<<2]<<24;for(var p=0;p<64;p++)c=l+b1n(o)+v1n(o,a,s)+w1n[p],p<16?c+=d[p]:c+=C1n(d,p),u=_1n(e)+y1n(e,n,r),l=s,s=a,a=o,o=$Oe(i,c),i=r,r=n,n=e,e=$Oe(c,u);sa[0]+=e,sa[1]+=n,sa[2]+=r,sa[3]+=i,sa[4]+=o,sa[5]+=a,sa[6]+=s,sa[7]+=l}function O1n(e,n){var r,i,o=0;i=kc[0]>>3&63;var a=n&63;for((kc[0]+=n<<3)<n<<3&&kc[1]++,kc[1]+=n>>29,r=0;r+63<n;r+=64){for(var s=i;s<64;s++)gl[s]=e.charCodeAt(o++);moe(),i=0}for(var l=0;l<a;l++)gl[l]=e.charCodeAt(o++)}function R1n(){var e=kc[0]>>3&63;if(gl[e++]=128,e<=56)for(var n=e;n<56;n++)gl[n]=0;else{for(var r=e;r<64;r++)gl[r]=0;moe();for(var i=0;i<56;i++)gl[i]=0}gl[56]=kc[1]>>>24&255,gl[57]=kc[1]>>>16&255,gl[58]=kc[1]>>>8&255,gl[59]=kc[1]&255,gl[60]=kc[0]>>>24&255,gl[61]=kc[0]>>>16&255,gl[62]=kc[0]>>>8&255,gl[63]=kc[0]&255,moe()}function I1n(){for(var e=new String,n=0;n<8;n++)for(var r=28;r>=0;r-=4)e+=x1n.charAt(sa[n]>>>r&15);return e}function N1n(e){return T1n(),O1n(e,e.length),R1n(),I1n()}function voe(e){"@babel/helpers - typeof";return voe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},voe(e)}var M1n=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function P1n(e,n){return k1n(e)||D1n(e,n)||Zfe(e,n)||A1n()}function A1n(){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 D1n(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],o=!0,a=!1,s,l;try{for(r=r.call(e);!(o=(s=r.next()).done)&&(i.push(s.value),!(n&&i.length===n));o=!0);}catch(c){a=!0,l=c}finally{try{!o&&r.return!=null&&r.return()}finally{if(a)throw l}}return i}}function k1n(e){if(Array.isArray(e))return e}function L1n(e,n){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Zfe(e))||n){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,l;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return a=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(s)throw l}}}}function $1n(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function F1n(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function B1n(e,n,r){return n&&F1n(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function j1n(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&LA(e,n)}function U1n(e){var n=Nqe();return function(){var i=$A(e),o;if(n){var a=$A(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return H1n(this,o)}}function H1n(e,n){if(n&&(voe(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z1n(e)}function z1n(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yoe(e){var n=typeof Map=="function"?new Map:void 0;return yoe=function(i){if(i===null||!V1n(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(i))return n.get(i);n.set(i,o)}function o(){return x6(i,arguments,$A(this).constructor)}return o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),LA(o,i)},yoe(e)}function x6(e,n,r){return Nqe()?x6=Reflect.construct.bind():x6=function(o,a,s){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(o,l),u=new c;return s&&LA(u,s.prototype),u},x6.apply(null,arguments)}function Nqe(){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 V1n(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function LA(e,n){return LA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},LA(e,n)}function $A(e){return $A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$A(e)}function FOe(e){return Y1n(e)||W1n(e)||Zfe(e)||G1n()}function G1n(){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 Zfe(e,n){if(e){if(typeof e=="string")return _oe(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _oe(e,n)}}function W1n(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y1n(e){if(Array.isArray(e))return _oe(e)}function _oe(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function q1n(e,n){if(e==null)return{};var r=K1n(e,n),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)i=a[o],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function K1n(e,n){if(e==null)return{};var r={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(n.indexOf(o)>=0)&&(r[o]=e[o]);return r}function BOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function ml(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?BOe(Object(r),!0).forEach(function(i){X1n(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function X1n(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var cf="routes";function tL(e){return e.split("?")[0].split("#")[0]}var Jfe=function(n){if(!n.startsWith("http"))return!1;try{var r=new URL(n);return!!r}catch{return!1}},Q1n=function(n){var r=n.path;if(!r||r==="/")try{return"/".concat(N1n(JSON.stringify(n)))}catch{}return r&&tL(r)},Z1n=function(n,r){var i=n.name,o=n.locale;return"locale"in n&&o===!1||!i?!1:n.locale||"".concat(r,".").concat(i)},Mqe=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return n.endsWith("/*")?n.replace("/*","/"):(n||r).startsWith("/")||Jfe(n)?n:"/".concat(r,"/").concat(n).replace(/\/\//g,"/").replace(/\/\//g,"/")},J1n=function(n,r){var i=n.menu,o=i===void 0?{}:i,a=n.indexRoute,s=n.path,l=s===void 0?"":s,c=n.children||[],u=o.name,d=u===void 0?n.name:u,f=o.icon,p=f===void 0?n.icon:f,h=o.hideChildren,g=h===void 0?n.hideChildren:h,v=o.flatMenu,y=v===void 0?n.flatMenu:v,_=a&&Object.keys(a).join(",")!=="redirect"?[ml({path:l,menu:o},a)].concat(c||[]):c,S=ml({},n);if(d&&(S.name=d),p&&(S.icon=p),_&&_.length){if(g)return delete S.children,S;var b=epe(ml(ml({},r),{},{data:_}),n);if(y)return b;delete S[cf]}return S},D1=function(n){return Array.isArray(n)&&n.length>0};function epe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},r=e.data,i=e.formatMessage,o=e.parentName,a=e.locale;return!r||!Array.isArray(r)?[]:r.filter(function(s){return s?D1(s.children)||s.path||s.originPath||s.layout?!0:(s.redirect||s.unaccessible,!1):!1}).filter(function(s){var l,c;return!(s==null||(l=s.menu)===null||l===void 0)&&l.name||s!=null&&s.flatMenu||!(s==null||(c=s.menu)===null||c===void 0)&&c.flatMenu?!0:s.menu!==!1}).map(function(s){var l=ml(ml({},s),{},{path:s.path||s.originPath});return!l.children&&l[cf]&&(l.children=l[cf],delete l[cf]),l.unaccessible&&delete l.name,l.path==="*"&&(l.path="."),l.path==="/*"&&(l.path="."),!l.path&&l.originPath&&(l.path=l.originPath),l}).map(function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},l=s.children||s[cf]||[],c=Mqe(s.path,n?n.path:"/"),u=s.name,d=Z1n(s,o||"menu"),f=d!==!1&&a!==!1&&i&&d?i({id:d,defaultMessage:u}):u,p=n.pro_layout_parentKeys,h=p===void 0?[]:p;n.children,n.icon,n.flatMenu,n.indexRoute,n.routes;var g=q1n(n,M1n),v=new Set([].concat(FOe(h),FOe(s.parentKeys||[])));n.key&&v.add(n.key);var y=ml(ml(ml({},g),{},{menu:void 0},s),{},{path:c,locale:d,key:s.key||Q1n(ml(ml({},s),{},{path:c})),pro_layout_parentKeys:Array.from(v).filter(function(S){return S&&S!=="/"})});if(f?y.name=f:delete y.name,y.menu===void 0&&delete y.menu,D1(l)){var _=epe(ml(ml({},e),{},{data:l,parentName:d||""}),y);D1(_)&&(y.children=_)}return J1n(y,e)}).flat(1)}var eCn=function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return n.filter(function(r){return r&&(r.name||D1(r.children))&&!r.hideInMenu&&!r.redirect}).map(function(r){var i=ml({},r),o=i.children||r[cf]||[];if(delete i[cf],D1(o)&&!i.hideChildrenInMenu&&o.some(function(s){return s&&!!s.name})){var a=e(o);if(a.length)return ml(ml({},i),{},{children:a})}return ml({},r)}).filter(function(r){return r})},tCn=function(e){j1n(r,e);var n=U1n(r);function r(){return $1n(this,r),n.apply(this,arguments)}return B1n(r,[{key:"get",value:function(o){var a;try{var s=L1n(this.entries()),l;try{for(s.s();!(l=s.n()).done;){var c=P1n(l.value,2),u=c[0],d=c[1],f=tL(u);if(!Jfe(u)&&sP(f,[]).test(o)){a=d;break}}}catch(p){s.e(p)}finally{s.f()}}catch{a=void 0}return a}}]),r}(yoe(Map)),nCn=function(n){var r=new tCn,i=function o(a,s){a.forEach(function(l){var c=l.children||l[cf]||[];D1(c)&&o(c,l);var u=Mqe(l.path,s?s.path:"/");r.set(tL(u),l)})};return i(n),r},rCn=function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return n.map(function(r){var i=r.children||r[cf];if(D1(i)){var o=e(i);if(o.length)return ml({},r)}var a=ml({},r);return delete a[cf],delete a.children,a}).filter(function(r){return r})},iCn=function(n,r,i,o){var a=epe({data:n,formatMessage:i,locale:r}),s=o?rCn(a):eCn(a),l=nCn(a);return{breadcrumb:l,menuData:s}};function jOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function bM(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?jOe(Object(r),!0).forEach(function(i){oCn(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function oCn(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var aCn=function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r={};return n.forEach(function(i){var o=bM({},i);if(!(!o||!o.key)){!o.children&&o[cf]&&(o.children=o[cf],delete o[cf]);var a=o.children||[];r[tL(o.path||o.key||"/")]=bM({},o),r[o.key||o.path||"/"]=bM({},o),a&&(r=bM(bM({},r),e(a)))}}),r},sCn=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return n.filter(function(o){if(o==="/"&&r==="/")return!0;if(o!=="/"&&o!=="/*"&&o&&!Jfe(o)){var a=tL(o);try{if(i&&sP("".concat(a)).test(r)||sP("".concat(a),[]).test(r)||sP("".concat(a,"/(.*)")).test(r))return!0}catch{}}return!1}).sort(function(o,a){return o===r?10:a===r?-10:o.substr(1).split("/").length-a.substr(1).split("/").length})},lCn=function(n,r,i,o){var a=aCn(r),s=Object.keys(a),l=sCn(s,n||"/",o);return!l||l.length<1?[]:l.map(function(c){var u=a[c]||{pro_layout_parentKeys:"",key:""},d=new Map,f=(u.pro_layout_parentKeys||[]).map(function(p){return d.has(p)?null:(d.set(p,!0),a[p])}).filter(function(p){return p});return u.key&&f.push(u),f}).flat(1)},cCn=function(n){var r=m.useContext(Gh),i=r.hashId,o=n.style,a=n.prefixCls,s=n.children,l=n.hasPageContainer,c=l===void 0?0:l,u=Ce("".concat(a,"-content"),i,fe(fe({},"".concat(a,"-has-header"),n.hasHeader),"".concat(a,"-content-has-page-container"),c>0)),d=n.ErrorBoundary||BZt;return n.ErrorBoundary===!1?N.jsx(bo.Content,{className:u,style:o,children:s}):N.jsx(d,{children:N.jsx(bo.Content,{className:u,style:o,children:s})})},uCn=function(){return N.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[N.jsxs("defs",{children:[N.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[N.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),N.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[N.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),N.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),N.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[N.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[N.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),N.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:N.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:N.jsx("g",{transform:"translate(20.000000, 20.000000)",children:N.jsxs("g",{children:[N.jsxs("g",{fillRule:"nonzero",children:[N.jsxs("g",{children:[N.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),N.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),N.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),N.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},UOe=new kr("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),dCn=function(n){var r,i,o,a,s,l,c,u,d,f,p,h;return fe({},"".concat(n.proComponentsCls,"-layout"),fe(fe(fe({},"".concat(n.antCls,"-layout-sider").concat(n.componentCls),{background:((r=n.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorMenuBackground)||"transparent"}),n.componentCls,fe(fe(fe(fe(fe(fe(fe(fe(fe({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(n.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(i=n.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.paddingInlineLayoutMenu,paddingBlock:(o=n.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(n.colorSplit),marginInlineEnd:-1}),"".concat(n.antCls,"-menu"),fe(fe({},"".concat(n.antCls,"-menu-item-group-title"),{fontSize:n.fontSizeSM,paddingBottom:4}),"".concat(n.antCls,"-menu-item:not(").concat(n.antCls,"-menu-item-selected):hover"),{color:(a=n.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(s=n.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((l=n.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(c=n.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuTitle,animationName:UOe,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":fe({flexDirection:"column-reverse",margin:0,padding:12},"".concat(n.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(u=n.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(d=n.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:n.borderRadius,"&:hover":{background:n.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:n.marginXS,borderRadius:n.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:n.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(n.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(f=n.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:n.fontSize,animationName:UOe,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(n.componentCls).concat(n.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((p=n.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((h=n.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px")}}))};function fCn(e,n){var r=n.proLayoutCollapsedWidth;return ia("ProLayoutSiderMenu",function(i){var o=ee(ee({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return[dCn(o)]})}var HOe=function(n){var r,i=n.isMobile,o=n.siderWidth,a=n.collapsed,s=n.onCollapse,l=n.style,c=n.className,u=n.hide,d=n.prefixCls,f=n.getContainer,p=m.useContext(Gh),h=p.token;m.useEffect(function(){i===!0&&(s==null||s(!0))},[i]);var g=Wr(n,["className","style"]),v=V.useContext(or.ConfigContext),y=v.direction,_=fCn("".concat(d,"-sider"),{proLayoutCollapsedWidth:64}),S=_.wrapSSR,b=_.hashId,E=Ce("".concat(d,"-sider"),c,b);if(u)return null;var w=$U(!a,function(){return s==null?void 0:s(!0)});return S(i?N.jsx(Dde,ee(ee({placement:y==="rtl"?"right":"left",className:Ce("".concat(d,"-drawer-sider"),c)},w),{},{style:ee({padding:0,height:"100vh"},l),onClose:function(){s==null||s(!0)},maskClosable:!0,closable:!1,getContainer:f||!1,width:o,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(r=h.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorMenuBackground}},children:N.jsx(AOe,ee(ee({},g),{},{isMobile:!0,className:E,collapsed:i?!1:a,splitMenus:!1,originCollapsed:a}))})):N.jsx(AOe,ee(ee({className:E,originCollapsed:a},g),{},{style:l})))},pCn=function(){var n;return typeof process>"u"?Iy:((n=process)===null||n===void 0||(n=n.env)===null||n===void 0?void 0:n.ANTD_VERSION)||Iy},hCn=function(n){var r,i,o,a,s,l,c,u,d,f,p,h,g,v,y,_,S,b,E,w,C,x,T,R,O,M,P,k,$,U,z,D;return(r=pCn())!==null&&r!==void 0&&r.startsWith("5")?{}:fe(fe(fe({},n.componentCls,fe(fe({width:"100%",height:"100%"},"".concat(n.proComponentsCls,"-base-menu"),(C={color:(i=n.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},fe(fe(fe(fe(fe(fe(fe(fe(fe(fe(C,"".concat(n.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(o=n.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu}),"& ".concat(n.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(n.antCls,"-menu-submenu-expand-icon, ").concat(n.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(n.antCls,"-menu"),fe(fe({color:(a=n.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu},"".concat(n.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(n.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(n.antCls,"-menu-inline"),fe({},"".concat(n.antCls,"-menu-selected::after,").concat(n.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(n.antCls,"-menu-sub ").concat(n.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(n.antCls,`-menu-item:active,
|
||
`).concat(n.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(n.antCls,"-menu-light"),fe({},"".concat(n.antCls,`-menu-item:hover,
|
||
`).concat(n.antCls,`-menu-item-active,
|
||
`).concat(n.antCls,`-menu-submenu-active,
|
||
`).concat(n.antCls,"-menu-submenu-title:hover"),fe({color:(s=n.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuActive,borderRadius:n.borderRadius},"".concat(n.antCls,"-menu-submenu-arrow"),{color:(l=n.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenuActive}))),"&".concat(n.antCls,"-menu:not(").concat(n.antCls,"-menu-horizontal)"),fe(fe({},"".concat(n.antCls,"-menu-item-selected"),{backgroundColor:(c=n.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemSelected,borderRadius:n.borderRadius}),"".concat(n.antCls,`-menu-item:hover,
|
||
`).concat(n.antCls,`-menu-item-active,
|
||
`).concat(n.antCls,"-menu-submenu-title:hover"),fe({color:(u=n.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuActive,borderRadius:n.borderRadius,backgroundColor:"".concat((d=n.layout)===null||d===void 0||(d=d.header)===null||d===void 0?void 0:d.colorBgMenuItemHover," !important")},"".concat(n.antCls,"-menu-submenu-arrow"),{color:(f=n.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuActive}))),"".concat(n.antCls,"-menu-item-selected"),{color:(p=n.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSelected}),fe(fe(fe(fe(fe(C,"".concat(n.antCls,"-menu-submenu-selected"),{color:(h=n.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuSelected}),"&".concat(n.antCls,"-menu:not(").concat(n.antCls,"-menu-inline) ").concat(n.antCls,"-menu-submenu-open"),{color:(g=n.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected}),"&".concat(n.antCls,"-menu-vertical"),fe({},"".concat(n.antCls,"-menu-submenu-selected"),{borderRadius:n.borderRadius,color:(v=n.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuSelected})),"".concat(n.antCls,"-menu-submenu:hover > ").concat(n.antCls,"-menu-submenu-title > ").concat(n.antCls,"-menu-submenu-arrow"),{color:(y=n.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenuActive}),"&".concat(n.antCls,"-menu-horizontal"),fe(fe(fe(fe({},"".concat(n.antCls,`-menu-item:hover,
|
||
`).concat(n.antCls,`-menu-submenu:hover,
|
||
`).concat(n.antCls,`-menu-item-active,
|
||
`).concat(n.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(_=n.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorTextMenuActive,backgroundColor:"".concat((S=n.layout)===null||S===void 0||(S=S.header)===null||S===void 0?void 0:S.colorBgMenuItemHover," !important")}),"".concat(n.antCls,`-menu-item-open,
|
||
`).concat(n.antCls,`-menu-submenu-open,
|
||
`).concat(n.antCls,`-menu-item-selected,
|
||
`).concat(n.antCls,"-menu-submenu-selected"),fe({backgroundColor:(b=n.layout)===null||b===void 0||(b=b.header)===null||b===void 0?void 0:b.colorBgMenuItemSelected,borderRadius:n.borderRadius,transition:"none",color:"".concat((E=n.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorTextMenuSelected," !important")},"".concat(n.antCls,"-menu-submenu-arrow"),{color:"".concat((w=n.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.colorTextMenuSelected," !important")})),"> ".concat(n.antCls,"-menu-item, > ").concat(n.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(n.antCls,"-menu-item::after, > ").concat(n.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(n.proComponentsCls,"-top-nav-header-base-menu"),fe(fe({},"&".concat(n.antCls,"-menu"),fe({color:(x=n.layout)===null||x===void 0||(x=x.header)===null||x===void 0?void 0:x.colorTextMenu},"".concat(n.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(n.antCls,"-menu-light"),fe(fe({},"".concat(n.antCls,`-menu-item:hover,
|
||
`).concat(n.antCls,`-menu-item-active,
|
||
`).concat(n.antCls,`-menu-submenu-active,
|
||
`).concat(n.antCls,"-menu-submenu-title:hover"),fe({color:(T=n.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorTextMenuActive,borderRadius:n.borderRadius,transition:"none",backgroundColor:(R=n.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorBgMenuItemSelected},"".concat(n.antCls,"-menu-submenu-arrow"),{color:(O=n.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorTextMenuActive})),"".concat(n.antCls,"-menu-item-selected"),{color:(M=n.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorTextMenuSelected,borderRadius:n.borderRadius,backgroundColor:(P=n.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorBgMenuItemSelected})))),"".concat(n.antCls,"-menu-sub").concat(n.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(n.antCls,"-menu-submenu-popup"),fe(fe(fe(fe({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(n.antCls,"-menu"),fe({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(n.antCls,`-menu-item:active,
|
||
`).concat(n.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(n.antCls,"-menu-item-selected"),{color:(k=n.layout)===null||k===void 0||(k=k.sider)===null||k===void 0?void 0:k.colorTextMenuSelected}),"".concat(n.antCls,"-menu-submenu-selected"),{color:($=n.layout)===null||$===void 0||($=$.sider)===null||$===void 0?void 0:$.colorTextMenuSelected}),"".concat(n.antCls,"-menu:not(").concat(n.antCls,"-menu-horizontal)"),fe(fe({},"".concat(n.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:n.borderRadius,color:(U=n.layout)===null||U===void 0||(U=U.sider)===null||U===void 0?void 0:U.colorTextMenuSelected}),"".concat(n.antCls,`-menu-item:hover,
|
||
`).concat(n.antCls,`-menu-item-active,
|
||
`).concat(n.antCls,"-menu-submenu-title:hover"),fe({color:(z=n.layout)===null||z===void 0||(z=z.sider)===null||z===void 0?void 0:z.colorTextMenuActive,borderRadius:n.borderRadius},"".concat(n.antCls,"-menu-submenu-arrow"),{color:(D=n.layout)===null||D===void 0||(D=D.sider)===null||D===void 0?void 0:D.colorTextMenuActive}))))},gCn=function(n){var r,i,o,a;return fe(fe({},"".concat(n.antCls,"-layout"),{backgroundColor:"transparent !important"}),n.componentCls,fe(fe(fe(fe({},"& ".concat(n.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(n.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((r=n.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(i=n.layout)===null||i===void 0||(i=i.pageContainer)===null||i===void 0?void 0:i.paddingBlockPageContainerContent,paddingInline:(o=n.layout)===null||o===void 0||(o=o.pageContainer)===null||o===void 0?void 0:o.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(n.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(n.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(a=n.layout)===null||a===void 0?void 0:a.bgLayout}))};function mCn(e){return ia("ProLayout",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[gCn(r),hCn(r)]})}function vCn(e){if(!e||e==="/")return["/"];var n=e.split("/").filter(function(r){return r});return n.map(function(r,i){return"/".concat(n.slice(0,i+1).join("/"))})}var yCn=function(){var n;return typeof process>"u"?Iy:((n=process)===null||n===void 0||(n=n.env)===null||n===void 0?void 0:n.ANTD_VERSION)||Iy},_Cn=function(n,r,i){var o=n,a=o.breadcrumbName,s=o.title,l=o.path,c=i.findIndex(function(u){return u.linkPath===n.path})===i.length-1;return c?N.jsx("span",{children:s||a}):N.jsx("span",{onClick:l?function(){return location.href=l}:void 0,children:s||a})},bCn=function(n,r){var i=r.formatMessage,o=r.menu;return n.locale&&i&&(o==null?void 0:o.locale)!==!1?i({id:n.locale,defaultMessage:n.name}):n.name},SCn=function(n,r){var i=n.get(r);if(!i){var o=Array.from(n.keys())||[],a=o.find(function(s){try{return s!=null&&s.startsWith("http")?!1:hoe(s.replace("?",""))(r)}catch(l){return console.log("path",s,l),!1}});a&&(i=n.get(a))}return i||{path:""}},ECn=function(n){var r=n.location,i=n.breadcrumbMap;return{location:r,breadcrumbMap:i}},CCn=function(n,r,i){var o=vCn(n==null?void 0:n.pathname),a=o.map(function(s){var l=SCn(r,s),c=bCn(l,i),u=l.hideInBreadcrumb;return c&&!u?{linkPath:s,breadcrumbName:c,title:c,component:l.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(s){return s&&s.linkPath});return a},wCn=function(n){var r=ECn(n),i=r.location,o=r.breadcrumbMap;return i&&i.pathname&&o?CCn(i,o,n):[]},xCn=function(n,r){var i=n.breadcrumbRender,o=n.itemRender,a=r.breadcrumbProps||{},s=a.minLength,l=s===void 0?2:s,c=wCn(n),u=function(p){for(var h=o||_Cn,g=arguments.length,v=new Array(g>1?g-1:0),y=1;y<g;y++)v[y-1]=arguments[y];return h==null?void 0:h.apply(void 0,[ee(ee({},p),{},{path:p.linkPath||p.path})].concat(v))},d=c;return i&&(d=i(d||[])||void 0),(d&&d.length<l||i===!1)&&(d=void 0),Ak(yCn(),"5.3.0")>-1?{items:d,itemRender:u}:{routes:d,itemRender:u}};function TCn(e){return Tt(e).reduce(function(n,r){var i=ke(r,2),o=i[0],a=i[1];return n[o]=a,n},{})}var OCn=function e(n,r,i,o){var a=iCn(n,(r==null?void 0:r.locale)||!1,i,!0),s=a.menuData,l=a.breadcrumb;return o?e(o(s),r,i,void 0):{breadcrumb:TCn(l),breadcrumbMap:l,menuData:s}},RCn=function(n){var r=m.useState({}),i=ke(r,2),o=i[0],a=i[1];return m.useEffect(function(){a(fp({layout:cn(n.layout)!=="object"?n.layout:void 0,navTheme:n.navTheme,menuRender:n.menuRender,footerRender:n.footerRender,menuHeaderRender:n.menuHeaderRender,headerRender:n.headerRender,fixSiderbar:n.fixSiderbar}))},[n.layout,n.navTheme,n.menuRender,n.footerRender,n.menuHeaderRender,n.headerRender,n.fixSiderbar]),o},ICn=["id","defaultMessage"],NCn=["fixSiderbar","navTheme","layout"],zOe=0,MCn=function(n,r){var i;return n.headerRender===!1||n.pure?null:N.jsx(BEn,ee(ee({matchMenuKeys:r},n),{},{stylish:(i=n.stylish)===null||i===void 0?void 0:i.header}))},PCn=function(n){return n.footerRender===!1||n.pure?null:n.footerRender?n.footerRender(ee({},n),N.jsx(rEn,{})):null},ACn=function(n,r){var i,o=n.layout,a=n.isMobile,s=n.selectedKeys,l=n.openKeys,c=n.splitMenus,u=n.suppressSiderWhenMenuEmpty,d=n.menuRender;if(n.menuRender===!1||n.pure)return null;var f=n.menuData;if(c&&(l!==!1||o==="mix")&&!a){var p=s||r,h=ke(p,1),g=h[0];if(g){var v;f=((v=n.menuData)===null||v===void 0||(v=v.find(function(b){return b.key===g}))===null||v===void 0?void 0:v.children)||[]}else f=[]}var y=pH(f||[]);if(y&&(y==null?void 0:y.length)<1&&(c||u))return null;if(o==="top"&&!a){var _;return N.jsx(HOe,ee(ee({matchMenuKeys:r},n),{},{hide:!0,stylish:(_=n.stylish)===null||_===void 0?void 0:_.sider}))}var S=N.jsx(HOe,ee(ee({matchMenuKeys:r},n),{},{menuData:y,stylish:(i=n.stylish)===null||i===void 0?void 0:i.sider}));return d?d(n,S):S},DCn=function(n,r){var i=r.pageTitleRender,o=LOe(n);if(i===!1)return{title:r.title||"",id:"",pageName:""};if(i){var a=i(n,o.title,o);if(typeof a=="string")return LOe(ee(ee({},o),{},{title:a}));qi(typeof a=="string","pro-layout: renderPageTitle return value should be a string")}return o},kCn=function(n,r,i){return n?r?64:i:0},LCn=function(n){var r,i,o,a,s,l,c,u,d,f,p,h,g,v,y=n||{},_=y.children,S=y.onCollapse,b=y.location,E=b===void 0?{pathname:"/"}:b,w=y.contentStyle,C=y.route,x=y.defaultCollapsed,T=y.style,R=y.siderWidth,O=y.menu,M=y.siderMenuType,P=y.isChildrenLayout,k=y.menuDataRender,$=y.actionRef,U=y.bgLayoutImgList,z=y.formatMessage,D=y.loading,B=m.useMemo(function(){return R||(n.layout==="mix"?215:256)},[n.layout,R]),Y=m.useContext(or.ConfigContext),q=(r=n.prefixCls)!==null&&r!==void 0?r:Y.getPrefixCls("pro"),K=dr(!1,{value:O==null?void 0:O.loading,onChange:O==null?void 0:O.onLoadingChange}),H=ke(K,2),G=H[0],Q=H[1],le=m.useState(function(){return zOe+=1,"pro-layout-".concat(zOe)}),Z=ke(le,1),j=Z[0],F=m.useCallback(function(Pt){var Qt=Pt.id,ln=Pt.defaultMessage,jt=Xt(Pt,ICn);if(z)return z(ee({id:Qt,defaultMessage:ln},jt));var Lt=QEn();return Lt[Qt]?Lt[Qt]:ln},[z]),te=ofe([j,O==null?void 0:O.params],function(){var Pt=Ss(ri().mark(function Qt(ln){var jt,Lt,en,Ue;return ri().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Lt=ke(ln,2),en=Lt[1],Q(!0),Et.next=4,O==null||(jt=O.request)===null||jt===void 0?void 0:jt.call(O,en||{},(C==null?void 0:C.children)||(C==null?void 0:C.routes)||[]);case 4:return Ue=Et.sent,Q(!1),Et.abrupt("return",Ue);case 7:case"end":return Et.stop()}},Qt)}));return function(Qt){return Pt.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),oe=te.data,de=te.mutate,pe=te.isLoading;m.useEffect(function(){Q(pe)},[pe]);var me=ife(),ve=me.cache;m.useEffect(function(){return function(){ve instanceof Map&&ve.delete(j)}},[]);var he=m.useMemo(function(){return OCn(oe||(C==null?void 0:C.children)||(C==null?void 0:C.routes)||[],O,F,k)},[F,O,k,oe,C==null?void 0:C.children,C==null?void 0:C.routes]),be=he||{},we=be.breadcrumb,De=be.breadcrumbMap,Ae=be.menuData,Ee=Ae===void 0?[]:Ae;$&&O!==null&&O!==void 0&&O.request&&($.current={reload:function(){de()}});var Re=m.useMemo(function(){return lCn(E.pathname||"/",Ee||[])},[E.pathname,Ee]),Te=m.useMemo(function(){return Array.from(new Set(Re.map(function(Pt){return Pt.key||Pt.path||""})))},[Re]),Oe=Re[Re.length-1]||{},Ne=RCn(Oe),je=ee(ee({},n),Ne),ne=je.fixSiderbar;je.navTheme;var J=je.layout,ae=Xt(je,NCn),Se=enn(),xe=m.useMemo(function(){return(Se==="sm"||Se==="xs")&&!n.disableMobile},[Se,n.disableMobile]),ue=J!=="top"&&!xe,Me=dr(function(){return x!==void 0?x:!!(xe||Se==="md")},{value:n.collapsed,onChange:S}),$e=ke(Me,2),ge=$e[0],Ve=$e[1],st=Wr(ee(ee(ee({prefixCls:q},n),{},{siderWidth:B},Ne),{},{formatMessage:F,breadcrumb:we,menu:ee(ee({},O),{},{type:M||(O==null?void 0:O.type),loading:G}),layout:J}),["className","style","breadcrumbRender"]),Je=DCn(ee(ee({pathname:E.pathname},st),{},{breadcrumbMap:De}),n),ot=xCn(ee(ee({},st),{},{breadcrumbRender:n.breadcrumbRender,breadcrumbMap:De}),n),Xe=ACn(ee(ee({},st),{},{menuData:Ee,onCollapse:Ve,isMobile:xe,collapsed:ge}),Te),Ze=MCn(ee(ee({},st),{},{children:null,hasSiderMenu:!!Xe,menuData:Ee,isMobile:xe,collapsed:ge,onCollapse:Ve}),Te),bt=PCn(ee({isMobile:xe,collapsed:ge},st)),at=m.useContext(EOe),pt=at.isChildrenLayout,Ct=P!==void 0?P:pt,It="".concat(q,"-layout"),Wt=mCn(It),Bt=Wt.wrapSSR,Vt=Wt.hashId,rn=Ce(n.className,Vt,"ant-design-pro",It,fe(fe(fe(fe(fe({},"screen-".concat(Se),Se),"".concat(It,"-top-menu"),J==="top"),"".concat(It,"-is-children"),Ct),"".concat(It,"-fix-siderbar"),ne),"".concat(It,"-").concat(J),J)),tt=kCn(!!ue,ge,B),it={position:"relative"};(Ct||w&&w.minHeight)&&(it.minHeight=0),m.useEffect(function(){var Pt;(Pt=n.onPageChange)===null||Pt===void 0||Pt.call(n,n.location)},[E.pathname,(i=E.pathname)===null||i===void 0?void 0:i.search]);var nt=m.useState(!1),vt=ke(nt,2),kt=vt[0],Dt=vt[1],Kt=m.useState(0),Ht=ke(Kt,2),tn=Ht[0],on=Ht[1];uJt(Je,n.title||!1);var sn=m.useContext(Gh),Jt=sn.token,En=m.useMemo(function(){return U&&U.length>0?U==null?void 0:U.map(function(Pt,Qt){return N.jsx("img",{src:Pt.src,style:ee({position:"absolute"},Pt)},Qt)}):null},[U]);return Bt(N.jsx(EOe.Provider,{value:ee(ee({},st),{},{breadcrumb:ot,menuData:Ee,isMobile:xe,collapsed:ge,hasPageContainer:tn,setHasPageContainer:on,isChildrenLayout:!0,title:Je.pageName,hasSiderMenu:!!Xe,hasHeader:!!Ze,siderWidth:tt,hasFooter:!!bt,hasFooterToolbar:kt,setHasFooterToolbar:Dt,pageTitleInfo:Je,matchMenus:Re,matchMenuKeys:Te,currentMenu:Oe}),children:n.pure?N.jsx(N.Fragment,{children:_}):N.jsxs("div",{className:rn,children:[En||(o=Jt.layout)!==null&&o!==void 0&&o.bgLayout?N.jsx("div",{className:Ce("".concat(It,"-bg-list"),Vt),children:En}):null,N.jsxs(bo,{style:ee({minHeight:"100%",flexDirection:Xe?"row":void 0},T),children:[N.jsx(or,{theme:{hashed:qT(),token:{controlHeightLG:((a=Jt.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.menuHeight)||(Jt==null?void 0:Jt.controlHeightLG)},components:{Menu:aWe({colorItemBg:((s=Jt.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",colorSubItemBg:((l=Jt.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorMenuBackground)||"transparent",radiusItem:Jt.borderRadius,colorItemBgSelected:((c=Jt.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemSelected)||(Jt==null?void 0:Jt.colorBgTextHover),colorItemBgHover:((u=Jt.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemHover)||(Jt==null?void 0:Jt.colorBgTextHover),colorItemBgActive:((d=Jt.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemActive)||(Jt==null?void 0:Jt.colorBgTextActive),colorItemBgSelectedHorizontal:((f=Jt.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(Jt==null?void 0:Jt.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((p=Jt.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenu)||(Jt==null?void 0:Jt.colorTextSecondary),colorItemTextHover:((h=Jt.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((g=Jt.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:Jt==null?void 0:Jt.colorBgElevated,subMenuItemBg:Jt==null?void 0:Jt.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:Jt==null?void 0:Jt.colorBgElevated})}},children:Xe}),N.jsxs("div",{style:it,className:"".concat(It,"-container ").concat(Vt).trim(),children:[Ze,N.jsx(cCn,ee(ee({hasPageContainer:tn,isChildrenLayout:Ct},ae),{},{hasHeader:!!Ze,prefixCls:It,style:w,children:D?N.jsx(ZSn,{}):_})),bt,kt&&N.jsx("div",{className:"".concat(It,"-has-footer"),style:{height:64,marginBlockStart:(v=Jt.layout)===null||v===void 0||(v=v.pageContainer)===null||v===void 0?void 0:v.paddingBlockPageContainerContent}})]})]})]})}))},Pqe=function(n){var r=n.colorPrimary,i=n.navTheme!==void 0?{dark:n.navTheme==="realDark"}:{};return N.jsx(or,{theme:r?{token:{colorPrimary:r}}:void 0,children:N.jsx(LU,ee(ee({},i),{},{token:n.token,prefixCls:n.prefixCls,children:N.jsx(LCn,ee(ee({logo:N.jsx(uCn,{})},_qe),{},{location:sfe()?window.location:void 0},n))}))})},$Cn=pWe(Object.keys,Object),FCn=Object.prototype,BCn=FCn.hasOwnProperty;function jCn(e){if(!dfe(e))return $Cn(e);var n=[];for(var r in Object(e))BCn.call(e,r)&&r!="constructor"&&n.push(r);return n}var boe=fw(Sg,"DataView"),Soe=fw(Sg,"Promise"),Eoe=fw(Sg,"Set"),Coe=fw(Sg,"WeakMap"),VOe="[object Map]",UCn="[object Object]",GOe="[object Promise]",WOe="[object Set]",YOe="[object WeakMap]",qOe="[object DataView]",HCn=dw(boe),zCn=dw(NA),VCn=dw(Soe),GCn=dw(Eoe),WCn=dw(Coe),vb=uw;(boe&&vb(new boe(new ArrayBuffer(1)))!=qOe||NA&&vb(new NA)!=VOe||Soe&&vb(Soe.resolve())!=GOe||Eoe&&vb(new Eoe)!=WOe||Coe&&vb(new Coe)!=YOe)&&(vb=function(e){var n=uw(e),r=n==UCn?e.constructor:void 0,i=r?dw(r):"";if(i)switch(i){case HCn:return qOe;case zCn:return VOe;case VCn:return GOe;case GCn:return WOe;case WCn:return YOe}return n});var YCn="__lodash_hash_undefined__";function qCn(e){return this.__data__.set(e,YCn),this}function KCn(e){return this.__data__.has(e)}function NB(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new a_;++n<r;)this.add(e[n])}NB.prototype.add=NB.prototype.push=qCn;NB.prototype.has=KCn;function XCn(e,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(e[r],r,e))return!0;return!1}function QCn(e,n){return e.has(n)}var ZCn=1,JCn=2;function Aqe(e,n,r,i,o,a){var s=r&ZCn,l=e.length,c=n.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(n);if(u&&d)return u==n&&d==e;var f=-1,p=!0,h=r&JCn?new NB:void 0;for(a.set(e,n),a.set(n,e);++f<l;){var g=e[f],v=n[f];if(i)var y=s?i(v,g,f,n,e,a):i(g,v,f,e,n,a);if(y!==void 0){if(y)continue;p=!1;break}if(h){if(!XCn(n,function(_,S){if(!QCn(h,S)&&(g===_||o(g,_,r,i,a)))return h.push(S)})){p=!1;break}}else if(!(g===v||o(g,v,r,i,a))){p=!1;break}}return a.delete(e),a.delete(n),p}function ewn(e){var n=-1,r=Array(e.size);return e.forEach(function(i,o){r[++n]=[o,i]}),r}function twn(e){var n=-1,r=Array(e.size);return e.forEach(function(i){r[++n]=i}),r}var nwn=1,rwn=2,iwn="[object Boolean]",own="[object Date]",awn="[object Error]",swn="[object Map]",lwn="[object Number]",cwn="[object RegExp]",uwn="[object Set]",dwn="[object String]",fwn="[object Symbol]",pwn="[object ArrayBuffer]",hwn="[object DataView]",KOe=I0?I0.prototype:void 0,eK=KOe?KOe.valueOf:void 0;function gwn(e,n,r,i,o,a,s){switch(r){case hwn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case pwn:return!(e.byteLength!=n.byteLength||!a(new fB(e),new fB(n)));case iwn:case own:case lwn:return kk(+e,+n);case awn:return e.name==n.name&&e.message==n.message;case cwn:case dwn:return e==n+"";case swn:var l=ewn;case uwn:var c=i&nwn;if(l||(l=twn),e.size!=n.size&&!c)return!1;var u=s.get(e);if(u)return u==n;i|=rwn,s.set(e,n);var d=Aqe(l(e),l(n),i,o,a,s);return s.delete(e),d;case fwn:if(eK)return eK.call(e)==eK.call(n)}return!1}function mwn(e,n){for(var r=-1,i=n.length,o=e.length;++r<i;)e[o+r]=n[r];return e}function vwn(e,n,r){var i=n(e);return Dy(e)?i:mwn(i,r(e))}function ywn(e,n){for(var r=-1,i=e==null?0:e.length,o=0,a=[];++r<i;){var s=e[r];n(s,r,e)&&(a[o++]=s)}return a}function _wn(){return[]}var bwn=Object.prototype,Swn=bwn.propertyIsEnumerable,XOe=Object.getOwnPropertySymbols,Ewn=XOe?function(e){return e==null?[]:(e=Object(e),ywn(XOe(e),function(n){return Swn.call(e,n)}))}:_wn;function Cwn(e){return jU(e)?SWe(e):jCn(e)}function QOe(e){return vwn(e,Cwn,Ewn)}var wwn=1,xwn=Object.prototype,Twn=xwn.hasOwnProperty;function Own(e,n,r,i,o,a){var s=r&wwn,l=QOe(e),c=l.length,u=QOe(n),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in n:Twn.call(n,p)))return!1}var h=a.get(e),g=a.get(n);if(h&&g)return h==n&&g==e;var v=!0;a.set(e,n),a.set(n,e);for(var y=s;++f<c;){p=l[f];var _=e[p],S=n[p];if(i)var b=s?i(S,_,p,n,e,a):i(_,S,p,e,n,a);if(!(b===void 0?_===S||o(_,S,r,i,a):b)){v=!1;break}y||(y=p=="constructor")}if(v&&!y){var E=e.constructor,w=n.constructor;E!=w&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(v=!1)}return a.delete(e),a.delete(n),v}var Rwn=1,ZOe="[object Arguments]",JOe="[object Array]",m4="[object Object]",Iwn=Object.prototype,eRe=Iwn.hasOwnProperty;function Nwn(e,n,r,i,o,a){var s=Dy(e),l=Dy(n),c=s?JOe:vb(e),u=l?JOe:vb(n);c=c==ZOe?m4:c,u=u==ZOe?m4:u;var d=c==m4,f=u==m4,p=c==u;if(p&&pB(e)){if(!pB(n))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new py),s||ffe(e)?Aqe(e,n,r,i,o,a):gwn(e,n,c,r,i,o,a);if(!(r&Rwn)){var h=d&&eRe.call(e,"__wrapped__"),g=f&&eRe.call(n,"__wrapped__");if(h||g){var v=h?e.value():e,y=g?n.value():n;return a||(a=new py),o(v,y,r,i,a)}}return p?(a||(a=new py),Own(e,n,r,i,o,a)):!1}function Dqe(e,n,r,i,o){return e===n?!0:e==null||n==null||!N0(e)&&!N0(n)?e!==e&&n!==n:Nwn(e,n,r,i,Dqe,o)}function kqe(e,n){return Dqe(e,n)}function Lqe(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m.useMemo(()=>i=>{n.forEach(o=>o(i))},n)}const gH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function DI(e){const n=Object.prototype.toString.call(e);return n==="[object Window]"||n==="[object global]"}function tpe(e){return"nodeType"in e}function Pu(e){var n,r;return e?DI(e)?e:tpe(e)&&(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window:window}function npe(e){const{Document:n}=Pu(e);return e instanceof n}function nL(e){return DI(e)?!1:e instanceof Pu(e).HTMLElement}function $qe(e){return e instanceof Pu(e).SVGElement}function kI(e){return e?DI(e)?e.document:tpe(e)?npe(e)?e:nL(e)||$qe(e)?e.ownerDocument:document:document:document}const wf=gH?m.useLayoutEffect:m.useEffect;function mH(e){const n=m.useRef(e);return wf(()=>{n.current=e}),m.useCallback(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.current==null?void 0:n.current(...i)},[])}function Mwn(){const e=m.useRef(null),n=m.useCallback((i,o)=>{e.current=setInterval(i,o)},[]),r=m.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[n,r]}function FA(e,n){n===void 0&&(n=[e]);const r=m.useRef(e);return wf(()=>{r.current!==e&&(r.current=e)},n),r}function rL(e,n){const r=m.useRef();return m.useMemo(()=>{const i=e(r.current);return r.current=i,i},[...n])}function MB(e){const n=mH(e),r=m.useRef(null),i=m.useCallback(o=>{o!==r.current&&(n==null||n(o,r.current)),r.current=o},[]);return[r,i]}function PB(e){const n=m.useRef();return m.useEffect(()=>{n.current=e},[e]),n.current}let tK={};function LI(e,n){return m.useMemo(()=>{if(n)return n;const r=tK[e]==null?0:tK[e]+1;return tK[e]=r,e+"-"+r},[e,n])}function Fqe(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((a,s)=>{const l=Object.entries(s);for(const[c,u]of l){const d=a[c];d!=null&&(a[c]=d+e*u)}return a},{...n})}}const KT=Fqe(1),BA=Fqe(-1);function Pwn(e){return"clientX"in e&&"clientY"in e}function iL(e){if(!e)return!1;const{KeyboardEvent:n}=Pu(e.target);return n&&e instanceof n}function Awn(e){if(!e)return!1;const{TouchEvent:n}=Pu(e.target);return n&&e instanceof n}function AB(e){if(Awn(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:r}=e.touches[0];return{x:n,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:r}=e.changedTouches[0];return{x:n,y:r}}}return Pwn(e)?{x:e.clientX,y:e.clientY}:null}const Ip=Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:r}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:r}=e;return"scaleX("+n+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[Ip.Translate.toString(e),Ip.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:r,easing:i}=e;return n+" "+r+"ms "+i}}}),tRe="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Dwn(e){return e.matches(tRe)?e:e.querySelector(tRe)}const kwn={display:"none"};function Lwn(e){let{id:n,value:r}=e;return V.createElement("div",{id:n,style:kwn},r)}function $wn(e){let{id:n,announcement:r,ariaLiveType:i="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return V.createElement("div",{id:n,style:o,role:"status","aria-live":i,"aria-atomic":!0},r)}function Fwn(){const[e,n]=m.useState("");return{announce:m.useCallback(i=>{i!=null&&n(i)},[]),announcement:e}}const Bqe=m.createContext(null);function Bwn(e){const n=m.useContext(Bqe);m.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)},[e,n])}function jwn(){const[e]=m.useState(()=>new Set),n=m.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[m.useCallback(i=>{let{type:o,event:a}=i;e.forEach(s=>{var l;return(l=s[o])==null?void 0:l.call(s,a)})},[e]),n]}const Uwn={draggable:`
|
||
To pick up a draggable item, press the space bar.
|
||
While dragging, use the arrow keys to move the item.
|
||
Press space again to drop the item in its new position, or press escape to cancel.
|
||
`},Hwn={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:r}=e;return r?"Draggable item "+n.id+" was moved over droppable area "+r.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:r}=e;return r?"Draggable item "+n.id+" was dropped over droppable area "+r.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function zwn(e){let{announcements:n=Hwn,container:r,hiddenTextDescribedById:i,screenReaderInstructions:o=Uwn}=e;const{announce:a,announcement:s}=Fwn(),l=LI("DndLiveRegion"),[c,u]=m.useState(!1);if(m.useEffect(()=>{u(!0)},[]),Bwn(m.useMemo(()=>({onDragStart(f){let{active:p}=f;a(n.onDragStart({active:p}))},onDragMove(f){let{active:p,over:h}=f;n.onDragMove&&a(n.onDragMove({active:p,over:h}))},onDragOver(f){let{active:p,over:h}=f;a(n.onDragOver({active:p,over:h}))},onDragEnd(f){let{active:p,over:h}=f;a(n.onDragEnd({active:p,over:h}))},onDragCancel(f){let{active:p,over:h}=f;a(n.onDragCancel({active:p,over:h}))}}),[a,n])),!c)return null;const d=V.createElement(V.Fragment,null,V.createElement(Lwn,{id:i,value:o.draggable}),V.createElement($wn,{id:l,announcement:s}));return r?Us.createPortal(d,r):d}var yl;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(yl||(yl={}));function DB(){}function T6(e,n){return m.useMemo(()=>({sensor:e,options:n??{}}),[e,n])}function jqe(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m.useMemo(()=>[...n].filter(i=>i!=null),[...n])}const og=Object.freeze({x:0,y:0});function rpe(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Vwn(e,n){const r=AB(e);if(!r)return"0 0";const i={x:(r.x-n.left)/n.width*100,y:(r.y-n.top)/n.height*100};return i.x+"% "+i.y+"%"}function ipe(e,n){let{data:{value:r}}=e,{data:{value:i}}=n;return r-i}function Gwn(e,n){let{data:{value:r}}=e,{data:{value:i}}=n;return i-r}function woe(e){let{left:n,top:r,height:i,width:o}=e;return[{x:n,y:r},{x:n+o,y:r},{x:n,y:r+i},{x:n+o,y:r+i}]}function Uqe(e,n){if(!e||e.length===0)return null;const[r]=e;return r[n]}function nRe(e,n,r){return n===void 0&&(n=e.left),r===void 0&&(r=e.top),{x:n+e.width*.5,y:r+e.height*.5}}const Wwn=e=>{let{collisionRect:n,droppableRects:r,droppableContainers:i}=e;const o=nRe(n,n.left,n.top),a=[];for(const s of i){const{id:l}=s,c=r.get(l);if(c){const u=rpe(nRe(c),o);a.push({id:l,data:{droppableContainer:s,value:u}})}}return a.sort(ipe)},Ywn=e=>{let{collisionRect:n,droppableRects:r,droppableContainers:i}=e;const o=woe(n),a=[];for(const s of i){const{id:l}=s,c=r.get(l);if(c){const u=woe(c),d=o.reduce((p,h,g)=>p+rpe(u[g],h),0),f=Number((d/4).toFixed(4));a.push({id:l,data:{droppableContainer:s,value:f}})}}return a.sort(ipe)};function qwn(e,n){const r=Math.max(n.top,e.top),i=Math.max(n.left,e.left),o=Math.min(n.left+n.width,e.left+e.width),a=Math.min(n.top+n.height,e.top+e.height),s=o-i,l=a-r;if(i<o&&r<a){const c=n.width*n.height,u=e.width*e.height,d=s*l,f=d/(c+u-d);return Number(f.toFixed(4))}return 0}const Kwn=e=>{let{collisionRect:n,droppableRects:r,droppableContainers:i}=e;const o=[];for(const a of i){const{id:s}=a,l=r.get(s);if(l){const c=qwn(l,n);c>0&&o.push({id:s,data:{droppableContainer:a,value:c}})}}return o.sort(Gwn)};function Xwn(e,n){const{top:r,left:i,bottom:o,right:a}=n;return r<=e.y&&e.y<=o&&i<=e.x&&e.x<=a}const Qwn=e=>{let{droppableContainers:n,droppableRects:r,pointerCoordinates:i}=e;if(!i)return[];const o=[];for(const a of n){const{id:s}=a,l=r.get(s);if(l&&Xwn(i,l)){const u=woe(l).reduce((f,p)=>f+rpe(i,p),0),d=Number((u/4).toFixed(4));o.push({id:s,data:{droppableContainer:a,value:d}})}}return o.sort(ipe)};function Zwn(e,n,r){return{...e,scaleX:n&&r?n.width/r.width:1,scaleY:n&&r?n.height/r.height:1}}function Hqe(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:og}function Jwn(e){return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return o.reduce((s,l)=>({...s,top:s.top+e*l.y,bottom:s.bottom+e*l.y,left:s.left+e*l.x,right:s.right+e*l.x}),{...r})}}const exn=Jwn(1);function zqe(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function txn(e,n,r){const i=zqe(n);if(!i)return e;const{scaleX:o,scaleY:a,x:s,y:l}=i,c=e.left-s-(1-o)*parseFloat(r),u=e.top-l-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),d=o?e.width/o:e.width,f=a?e.height/a:e.height;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c}}const nxn={ignoreTransform:!1};function yw(e,n){n===void 0&&(n=nxn);let r=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:u,transformOrigin:d}=Pu(e).getComputedStyle(e);u&&(r=txn(r,u,d))}const{top:i,left:o,width:a,height:s,bottom:l,right:c}=r;return{top:i,left:o,width:a,height:s,bottom:l,right:c}}function rRe(e){return yw(e,{ignoreTransform:!0})}function rxn(e){const n=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:n,bottom:r,width:n,height:r}}function ixn(e,n){return n===void 0&&(n=Pu(e).getComputedStyle(e)),n.position==="fixed"}function oxn(e,n){n===void 0&&(n=Pu(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const a=n[o];return typeof a=="string"?r.test(a):!1})}function vH(e,n){const r=[];function i(o){if(n!=null&&r.length>=n||!o)return r;if(npe(o)&&o.scrollingElement!=null&&!r.includes(o.scrollingElement))return r.push(o.scrollingElement),r;if(!nL(o)||$qe(o)||r.includes(o))return r;const a=Pu(e).getComputedStyle(o);return o!==e&&oxn(o,a)&&r.push(o),ixn(o,a)?r:i(o.parentNode)}return e?i(e):r}function Vqe(e){const[n]=vH(e,1);return n??null}function nK(e){return!gH||!e?null:DI(e)?e:tpe(e)?npe(e)||e===kI(e).scrollingElement?window:nL(e)?e:null:null}function Gqe(e){return DI(e)?e.scrollX:e.scrollLeft}function Wqe(e){return DI(e)?e.scrollY:e.scrollTop}function xoe(e){return{x:Gqe(e),y:Wqe(e)}}var Hl;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Hl||(Hl={}));function Yqe(e){return!gH||!e?!1:e===document.scrollingElement}function qqe(e){const n={x:0,y:0},r=Yqe(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},o=e.scrollTop<=n.y,a=e.scrollLeft<=n.x,s=e.scrollTop>=i.y,l=e.scrollLeft>=i.x;return{isTop:o,isLeft:a,isBottom:s,isRight:l,maxScroll:i,minScroll:n}}const axn={x:.2,y:.2};function sxn(e,n,r,i,o){let{top:a,left:s,right:l,bottom:c}=r;i===void 0&&(i=10),o===void 0&&(o=axn);const{isTop:u,isBottom:d,isLeft:f,isRight:p}=qqe(e),h={x:0,y:0},g={x:0,y:0},v={height:n.height*o.y,width:n.width*o.x};return!u&&a<=n.top+v.height?(h.y=Hl.Backward,g.y=i*Math.abs((n.top+v.height-a)/v.height)):!d&&c>=n.bottom-v.height&&(h.y=Hl.Forward,g.y=i*Math.abs((n.bottom-v.height-c)/v.height)),!p&&l>=n.right-v.width?(h.x=Hl.Forward,g.x=i*Math.abs((n.right-v.width-l)/v.width)):!f&&s<=n.left+v.width&&(h.x=Hl.Backward,g.x=i*Math.abs((n.left+v.width-s)/v.width)),{direction:h,speed:g}}function lxn(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:s}=window;return{top:0,left:0,right:a,bottom:s,width:a,height:s}}const{top:n,left:r,right:i,bottom:o}=e.getBoundingClientRect();return{top:n,left:r,right:i,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Kqe(e){return e.reduce((n,r)=>KT(n,xoe(r)),og)}function cxn(e){return e.reduce((n,r)=>n+Gqe(r),0)}function uxn(e){return e.reduce((n,r)=>n+Wqe(r),0)}function Xqe(e,n){if(n===void 0&&(n=yw),!e)return;const{top:r,left:i,bottom:o,right:a}=n(e);Vqe(e)&&(o<=0||a<=0||r>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const dxn=[["x",["left","right"],cxn],["y",["top","bottom"],uxn]];class ope{constructor(n,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=vH(r),o=Kqe(i);this.rect={...n},this.width=n.width,this.height=n.height;for(const[a,s,l]of dxn)for(const c of s)Object.defineProperty(this,c,{get:()=>{const u=l(i),d=o[a]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class lP{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...r)})},this.target=n}add(n,r,i){var o;(o=this.target)==null||o.addEventListener(n,r,i),this.listeners.push([n,r,i])}}function fxn(e){const{EventTarget:n}=Pu(e);return e instanceof n?e:kI(e)}function rK(e,n){const r=Math.abs(e.x),i=Math.abs(e.y);return typeof n=="number"?Math.sqrt(r**2+i**2)>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n?i>n.y:!1}var ip;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ip||(ip={}));function iRe(e){e.preventDefault()}function pxn(e){e.stopPropagation()}var Ai;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Ai||(Ai={}));const Qqe={start:[Ai.Space,Ai.Enter],cancel:[Ai.Esc],end:[Ai.Space,Ai.Enter]},hxn=(e,n)=>{let{currentCoordinates:r}=n;switch(e.code){case Ai.Right:return{...r,x:r.x+25};case Ai.Left:return{...r,x:r.x-25};case Ai.Down:return{...r,y:r.y+25};case Ai.Up:return{...r,y:r.y-25}}};class ape{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:r}}=n;this.props=n,this.listeners=new lP(kI(r)),this.windowListeners=new lP(Pu(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ip.Resize,this.handleCancel),this.windowListeners.add(ip.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ip.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:r}=this.props,i=n.node.current;i&&Xqe(i),r(og)}handleKeyDown(n){if(iL(n)){const{active:r,context:i,options:o}=this.props,{keyboardCodes:a=Qqe,coordinateGetter:s=hxn,scrollBehavior:l="smooth"}=o,{code:c}=n;if(a.end.includes(c)){this.handleEnd(n);return}if(a.cancel.includes(c)){this.handleCancel(n);return}const{collisionRect:u}=i.current,d=u?{x:u.left,y:u.top}:og;this.referenceCoordinates||(this.referenceCoordinates=d);const f=s(n,{active:r,context:i.current,currentCoordinates:d});if(f){const p=BA(f,d),h={x:0,y:0},{scrollableAncestors:g}=i.current;for(const v of g){const y=n.code,{isTop:_,isRight:S,isLeft:b,isBottom:E,maxScroll:w,minScroll:C}=qqe(v),x=lxn(v),T={x:Math.min(y===Ai.Right?x.right-x.width/2:x.right,Math.max(y===Ai.Right?x.left:x.left+x.width/2,f.x)),y:Math.min(y===Ai.Down?x.bottom-x.height/2:x.bottom,Math.max(y===Ai.Down?x.top:x.top+x.height/2,f.y))},R=y===Ai.Right&&!S||y===Ai.Left&&!b,O=y===Ai.Down&&!E||y===Ai.Up&&!_;if(R&&T.x!==f.x){const M=v.scrollLeft+p.x,P=y===Ai.Right&&M<=w.x||y===Ai.Left&&M>=C.x;if(P&&!p.y){v.scrollTo({left:M,behavior:l});return}P?h.x=v.scrollLeft-M:h.x=y===Ai.Right?v.scrollLeft-w.x:v.scrollLeft-C.x,h.x&&v.scrollBy({left:-h.x,behavior:l});break}else if(O&&T.y!==f.y){const M=v.scrollTop+p.y,P=y===Ai.Down&&M<=w.y||y===Ai.Up&&M>=C.y;if(P&&!p.x){v.scrollTo({top:M,behavior:l});return}P?h.y=v.scrollTop-M:h.y=y===Ai.Down?v.scrollTop-w.y:v.scrollTop-C.y,h.y&&v.scrollBy({top:-h.y,behavior:l});break}}this.handleMove(n,KT(BA(f,this.referenceCoordinates),h))}}}handleMove(n,r){const{onMove:i}=this.props;n.preventDefault(),i(r)}handleEnd(n){const{onEnd:r}=this.props;n.preventDefault(),this.detach(),r()}handleCancel(n){const{onCancel:r}=this.props;n.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}ape.activators=[{eventName:"onKeyDown",handler:(e,n,r)=>{let{keyboardCodes:i=Qqe,onActivation:o}=n,{active:a}=r;const{code:s}=e.nativeEvent;if(i.start.includes(s)){const l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function oRe(e){return!!(e&&"distance"in e)}function aRe(e){return!!(e&&"delay"in e)}class spe{constructor(n,r,i){var o;i===void 0&&(i=fxn(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=r;const{event:a}=n,{target:s}=a;this.props=n,this.events=r,this.document=kI(s),this.documentListeners=new lP(this.document),this.listeners=new lP(i),this.windowListeners=new lP(Pu(s)),this.initialCoordinates=(o=AB(a))!=null?o:og,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:r,bypassActivationConstraint:i}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(ip.Resize,this.handleCancel),this.windowListeners.add(ip.DragStart,iRe),this.windowListeners.add(ip.VisibilityChange,this.handleCancel),this.windowListeners.add(ip.ContextMenu,iRe),this.documentListeners.add(ip.Keydown,this.handleKeydown),r){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(aRe(r)){this.timeoutId=setTimeout(this.handleStart,r.delay);return}if(oRe(r))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:n}=this,{onStart:r}=this.props;n&&(this.activated=!0,this.documentListeners.add(ip.Click,pxn,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ip.SelectionChange,this.removeTextSelection),r(n))}handleMove(n){var r;const{activated:i,initialCoordinates:o,props:a}=this,{onMove:s,options:{activationConstraint:l}}=a;if(!o)return;const c=(r=AB(n))!=null?r:og,u=BA(o,c);if(!i&&l){if(oRe(l)){if(l.tolerance!=null&&rK(u,l.tolerance))return this.handleCancel();if(rK(u,l.distance))return this.handleStart()}return aRe(l)&&rK(u,l.tolerance)?this.handleCancel():void 0}n.cancelable&&n.preventDefault(),s(c)}handleEnd(){const{onEnd:n}=this.props;this.detach(),n()}handleCancel(){const{onCancel:n}=this.props;this.detach(),n()}handleKeydown(n){n.code===Ai.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const gxn={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Zqe extends spe{constructor(n){const{event:r}=n,i=kI(r.target);super(n,gxn,i)}}Zqe.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:i}=n;return!r.isPrimary||r.button!==0?!1:(i==null||i({event:r}),!0)}}];const mxn={move:{name:"mousemove"},end:{name:"mouseup"}};var Toe;(function(e){e[e.RightClick=2]="RightClick"})(Toe||(Toe={}));class lpe extends spe{constructor(n){super(n,mxn,kI(n.event.target))}}lpe.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:i}=n;return r.button===Toe.RightClick?!1:(i==null||i({event:r}),!0)}}];const iK={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Jqe extends spe{constructor(n){super(n,iK)}static setup(){return window.addEventListener(iK.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(iK.move.name,n)};function n(){}}}Jqe.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:i}=n;const{touches:o}=r;return o.length>1?!1:(i==null||i({event:r}),!0)}}];var cP;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(cP||(cP={}));var jA;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(jA||(jA={}));function vxn(e){let{acceleration:n,activator:r=cP.Pointer,canScroll:i,draggingRect:o,enabled:a,interval:s=5,order:l=jA.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const h=_xn({delta:f,disabled:!a}),[g,v]=Mwn(),y=m.useRef({x:0,y:0}),_=m.useRef({x:0,y:0}),S=m.useMemo(()=>{switch(r){case cP.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case cP.DraggableRect:return o}},[r,o,c]),b=m.useRef(null),E=m.useCallback(()=>{const C=b.current;if(!C)return;const x=y.current.x*_.current.x,T=y.current.y*_.current.y;C.scrollBy(x,T)},[]),w=m.useMemo(()=>l===jA.TreeOrder?[...u].reverse():u,[l,u]);m.useEffect(()=>{if(!a||!u.length||!S){v();return}for(const C of w){if((i==null?void 0:i(C))===!1)continue;const x=u.indexOf(C),T=d[x];if(!T)continue;const{direction:R,speed:O}=sxn(C,T,S,n,p);for(const M of["x","y"])h[M][R[M]]||(O[M]=0,R[M]=0);if(O.x>0||O.y>0){v(),b.current=C,g(E,s),y.current=O,_.current=R;return}}y.current={x:0,y:0},_.current={x:0,y:0},v()},[n,E,i,v,a,s,JSON.stringify(S),JSON.stringify(h),g,u,w,d,JSON.stringify(p)])}const yxn={x:{[Hl.Backward]:!1,[Hl.Forward]:!1},y:{[Hl.Backward]:!1,[Hl.Forward]:!1}};function _xn(e){let{delta:n,disabled:r}=e;const i=PB(n);return rL(o=>{if(r||!i||!o)return yxn;const a={x:Math.sign(n.x-i.x),y:Math.sign(n.y-i.y)};return{x:{[Hl.Backward]:o.x[Hl.Backward]||a.x===-1,[Hl.Forward]:o.x[Hl.Forward]||a.x===1},y:{[Hl.Backward]:o.y[Hl.Backward]||a.y===-1,[Hl.Forward]:o.y[Hl.Forward]||a.y===1}}},[r,n,i])}function bxn(e,n){const r=n!=null?e.get(n):void 0,i=r?r.node.current:null;return rL(o=>{var a;return n==null?null:(a=i??o)!=null?a:null},[i,n])}function Sxn(e,n){return m.useMemo(()=>e.reduce((r,i)=>{const{sensor:o}=i,a=o.activators.map(s=>({eventName:s.eventName,handler:n(s.handler,i)}));return[...r,...a]},[]),[e,n])}var UA;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(UA||(UA={}));var Ooe;(function(e){e.Optimized="optimized"})(Ooe||(Ooe={}));const sRe=new Map;function Exn(e,n){let{dragging:r,dependencies:i,config:o}=n;const[a,s]=m.useState(null),{frequency:l,measure:c,strategy:u}=o,d=m.useRef(e),f=y(),p=FA(f),h=m.useCallback(function(_){_===void 0&&(_=[]),!p.current&&s(S=>S===null?_:S.concat(_.filter(b=>!S.includes(b))))},[p]),g=m.useRef(null),v=rL(_=>{if(f&&!r)return sRe;if(!_||_===sRe||d.current!==e||a!=null){const S=new Map;for(let b of e){if(!b)continue;if(a&&a.length>0&&!a.includes(b.id)&&b.rect.current){S.set(b.id,b.rect.current);continue}const E=b.node.current,w=E?new ope(c(E),E):null;b.rect.current=w,w&&S.set(b.id,w)}return S}return _},[e,a,r,f,c]);return m.useEffect(()=>{d.current=e},[e]),m.useEffect(()=>{f||h()},[r,f]),m.useEffect(()=>{a&&a.length>0&&s(null)},[JSON.stringify(a)]),m.useEffect(()=>{f||typeof l!="number"||g.current!==null||(g.current=setTimeout(()=>{h(),g.current=null},l))},[l,f,h,...i]),{droppableRects:v,measureDroppableContainers:h,measuringScheduled:a!=null};function y(){switch(u){case UA.Always:return!1;case UA.BeforeDragging:return r;default:return!r}}}function cpe(e,n){return rL(r=>e?r||(typeof n=="function"?n(e):e):null,[n,e])}function Cxn(e,n){return cpe(e,n)}function wxn(e){let{callback:n,disabled:r}=e;const i=mH(n),o=m.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(i)},[i,r]);return m.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function yH(e){let{callback:n,disabled:r}=e;const i=mH(n),o=m.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(i)},[r]);return m.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function xxn(e){return new ope(yw(e),e)}function lRe(e,n,r){n===void 0&&(n=xxn);const[i,o]=m.useState(null);function a(){o(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??r)!=null?u:null}const d=n(e);return JSON.stringify(c)===JSON.stringify(d)?c:d})}const s=wxn({callback(c){if(e)for(const u of c){const{type:d,target:f}=u;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){a();break}}}}),l=yH({callback:a});return wf(()=>{a(),e?(l==null||l.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),s==null||s.disconnect())},[e]),i}function Txn(e){const n=cpe(e);return Hqe(e,n)}const cRe=[];function Oxn(e){const n=m.useRef(e),r=rL(i=>e?i&&i!==cRe&&e&&n.current&&e.parentNode===n.current.parentNode?i:vH(e):cRe,[e]);return m.useEffect(()=>{n.current=e},[e]),r}function Rxn(e){const[n,r]=m.useState(null),i=m.useRef(e),o=m.useCallback(a=>{const s=nK(a.target);s&&r(l=>l?(l.set(s,xoe(s)),new Map(l)):null)},[]);return m.useEffect(()=>{const a=i.current;if(e!==a){s(a);const l=e.map(c=>{const u=nK(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,xoe(u)]):null}).filter(c=>c!=null);r(l.length?new Map(l):null),i.current=e}return()=>{s(e),s(a)};function s(l){l.forEach(c=>{const u=nK(c);u==null||u.removeEventListener("scroll",o)})}},[o,e]),m.useMemo(()=>e.length?n?Array.from(n.values()).reduce((a,s)=>KT(a,s),og):Kqe(e):og,[e,n])}function uRe(e,n){n===void 0&&(n=[]);const r=m.useRef(null);return m.useEffect(()=>{r.current=null},n),m.useEffect(()=>{const i=e!==og;i&&!r.current&&(r.current=e),!i&&r.current&&(r.current=null)},[e]),r.current?BA(e,r.current):og}function Ixn(e){m.useEffect(()=>{if(!gH)return;const n=e.map(r=>{let{sensor:i}=r;return i.setup==null?void 0:i.setup()});return()=>{for(const r of n)r==null||r()}},e.map(n=>{let{sensor:r}=n;return r}))}function Nxn(e,n){return m.useMemo(()=>e.reduce((r,i)=>{let{eventName:o,handler:a}=i;return r[o]=s=>{a(s,n)},r},{}),[e,n])}function eKe(e){return m.useMemo(()=>e?rxn(e):null,[e])}const dRe=[];function Mxn(e,n){n===void 0&&(n=yw);const[r]=e,i=eKe(r?Pu(r):null),[o,a]=m.useState(dRe);function s(){a(()=>e.length?e.map(c=>Yqe(c)?i:new ope(n(c),c)):dRe)}const l=yH({callback:s});return wf(()=>{l==null||l.disconnect(),s(),e.forEach(c=>l==null?void 0:l.observe(c))},[e]),o}function tKe(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return nL(n)?n:e}function Pxn(e){let{measure:n}=e;const[r,i]=m.useState(null),o=m.useCallback(u=>{for(const{target:d}of u)if(nL(d)){i(f=>{const p=n(d);return f?{...f,width:p.width,height:p.height}:p});break}},[n]),a=yH({callback:o}),s=m.useCallback(u=>{const d=tKe(u);a==null||a.disconnect(),d&&(a==null||a.observe(d)),i(d?n(d):null)},[n,a]),[l,c]=MB(s);return m.useMemo(()=>({nodeRef:l,rect:r,setRef:c}),[r,l,c])}const Axn=[{sensor:Zqe,options:{}},{sensor:ape,options:{}}],Dxn={current:{}},O6={draggable:{measure:rRe},droppable:{measure:rRe,strategy:UA.WhileDragging,frequency:Ooe.Optimized},dragOverlay:{measure:yw}};class uP extends Map{get(n){var r;return n!=null&&(r=super.get(n))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:r}=n;return!r})}getNodeFor(n){var r,i;return(r=(i=this.get(n))==null?void 0:i.node.current)!=null?r:void 0}}const kxn={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new uP,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:DB},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:O6,measureDroppableContainers:DB,windowRect:null,measuringScheduled:!1},nKe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:DB,draggableNodes:new Map,over:null,measureDroppableContainers:DB},oL=m.createContext(nKe),rKe=m.createContext(kxn);function Lxn(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new uP}}}function $xn(e,n){switch(n.type){case yl.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case yl.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}};case yl.DragEnd:case yl.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case yl.RegisterDroppable:{const{element:r}=n,{id:i}=r,o=new uP(e.droppable.containers);return o.set(i,r),{...e,droppable:{...e.droppable,containers:o}}}case yl.SetDroppableDisabled:{const{id:r,key:i,disabled:o}=n,a=e.droppable.containers.get(r);if(!a||i!==a.key)return e;const s=new uP(e.droppable.containers);return s.set(r,{...a,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case yl.UnregisterDroppable:{const{id:r,key:i}=n,o=e.droppable.containers.get(r);if(!o||i!==o.key)return e;const a=new uP(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Fxn(e){let{disabled:n}=e;const{active:r,activatorEvent:i,draggableNodes:o}=m.useContext(oL),a=PB(i),s=PB(r==null?void 0:r.id);return m.useEffect(()=>{if(!n&&!i&&a&&s!=null){if(!iL(a)||document.activeElement===a.target)return;const l=o.get(s);if(!l)return;const{activatorNode:c,node:u}=l;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const f=Dwn(d);if(f){f.focus();break}}})}},[i,n,o,s,a]),null}function iKe(e,n){let{transform:r,...i}=n;return e!=null&&e.length?e.reduce((o,a)=>a({transform:o,...i}),r):r}function Bxn(e){return m.useMemo(()=>({draggable:{...O6.draggable,...e==null?void 0:e.draggable},droppable:{...O6.droppable,...e==null?void 0:e.droppable},dragOverlay:{...O6.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function jxn(e){let{activeNode:n,measure:r,initialRect:i,config:o=!0}=e;const a=m.useRef(!1),{x:s,y:l}=typeof o=="boolean"?{x:o,y:o}:o;wf(()=>{if(!s&&!l||!n){a.current=!1;return}if(a.current||!i)return;const u=n==null?void 0:n.node.current;if(!u||u.isConnected===!1)return;const d=r(u),f=Hqe(d,i);if(s||(f.x=0),l||(f.y=0),a.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const p=Vqe(u);p&&p.scrollBy({top:f.y,left:f.x})}},[n,s,l,i,r])}const _H=m.createContext({...og,scaleX:1,scaleY:1});var yb;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(yb||(yb={}));const oKe=m.memo(function(n){var r,i,o,a;let{id:s,accessibility:l,autoScroll:c=!0,children:u,sensors:d=Axn,collisionDetection:f=Kwn,measuring:p,modifiers:h,...g}=n;const v=m.useReducer($xn,void 0,Lxn),[y,_]=v,[S,b]=jwn(),[E,w]=m.useState(yb.Uninitialized),C=E===yb.Initialized,{draggable:{active:x,nodes:T,translate:R},droppable:{containers:O}}=y,M=x!=null?T.get(x):null,P=m.useRef({initial:null,translated:null}),k=m.useMemo(()=>{var at;return x!=null?{id:x,data:(at=M==null?void 0:M.data)!=null?at:Dxn,rect:P}:null},[x,M]),$=m.useRef(null),[U,z]=m.useState(null),[D,B]=m.useState(null),Y=FA(g,Object.values(g)),q=LI("DndDescribedBy",s),K=m.useMemo(()=>O.getEnabled(),[O]),H=Bxn(p),{droppableRects:G,measureDroppableContainers:Q,measuringScheduled:le}=Exn(K,{dragging:C,dependencies:[R.x,R.y],config:H.droppable}),Z=bxn(T,x),j=m.useMemo(()=>D?AB(D):null,[D]),F=bt(),te=Cxn(Z,H.draggable.measure);jxn({activeNode:x!=null?T.get(x):null,config:F.layoutShiftCompensation,initialRect:te,measure:H.draggable.measure});const oe=lRe(Z,H.draggable.measure,te),de=lRe(Z?Z.parentElement:null),pe=m.useRef({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:G,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),me=O.getNodeFor((r=pe.current.over)==null?void 0:r.id),ve=Pxn({measure:H.dragOverlay.measure}),he=(i=ve.nodeRef.current)!=null?i:Z,be=C?(o=ve.rect)!=null?o:oe:null,we=!!(ve.nodeRef.current&&ve.rect),De=Txn(we?null:oe),Ae=eKe(he?Pu(he):null),Ee=Oxn(C?me??Z:null),Re=Mxn(Ee),Te=iKe(h,{transform:{x:R.x-De.x,y:R.y-De.y,scaleX:1,scaleY:1},activatorEvent:D,active:k,activeNodeRect:oe,containerNodeRect:de,draggingNodeRect:be,over:pe.current.over,overlayNodeRect:ve.rect,scrollableAncestors:Ee,scrollableAncestorRects:Re,windowRect:Ae}),Oe=j?KT(j,R):null,Ne=Rxn(Ee),je=uRe(Ne),ne=uRe(Ne,[oe]),J=KT(Te,je),ae=be?exn(be,Te):null,Se=k&&ae?f({active:k,collisionRect:ae,droppableRects:G,droppableContainers:K,pointerCoordinates:Oe}):null,xe=Uqe(Se,"id"),[ue,Me]=m.useState(null),$e=we?Te:KT(Te,ne),ge=Zwn($e,(a=ue==null?void 0:ue.rect)!=null?a:null,oe),Ve=m.useRef(null),st=m.useCallback((at,pt)=>{let{sensor:Ct,options:It}=pt;if($.current==null)return;const Wt=T.get($.current);if(!Wt)return;const Bt=at.nativeEvent,Vt=new Ct({active:$.current,activeNode:Wt,event:Bt,options:It,context:pe,onStart(tt){const it=$.current;if(it==null)return;const nt=T.get(it);if(!nt)return;const{onDragStart:vt}=Y.current,kt={activatorEvent:Bt,active:{id:it,data:nt.data,rect:P}};Us.unstable_batchedUpdates(()=>{vt==null||vt(kt),w(yb.Initializing),_({type:yl.DragStart,initialCoordinates:tt,active:it}),S({type:"onDragStart",event:kt}),z(Ve.current),B(Bt)})},onMove(tt){_({type:yl.DragMove,coordinates:tt})},onEnd:rn(yl.DragEnd),onCancel:rn(yl.DragCancel)});Ve.current=Vt;function rn(tt){return async function(){const{active:nt,collisions:vt,over:kt,scrollAdjustedTranslate:Dt}=pe.current;let Kt=null;if(nt&&Dt){const{cancelDrop:Ht}=Y.current;Kt={activatorEvent:Bt,active:nt,collisions:vt,delta:Dt,over:kt},tt===yl.DragEnd&&typeof Ht=="function"&&await Promise.resolve(Ht(Kt))&&(tt=yl.DragCancel)}$.current=null,Us.unstable_batchedUpdates(()=>{_({type:tt}),w(yb.Uninitialized),Me(null),z(null),B(null),Ve.current=null;const Ht=tt===yl.DragEnd?"onDragEnd":"onDragCancel";if(Kt){const tn=Y.current[Ht];tn==null||tn(Kt),S({type:Ht,event:Kt})}})}}},[T]),Je=m.useCallback((at,pt)=>(Ct,It)=>{const Wt=Ct.nativeEvent,Bt=T.get(It);if($.current!==null||!Bt||Wt.dndKit||Wt.defaultPrevented)return;const Vt={active:Bt};at(Ct,pt.options,Vt)===!0&&(Wt.dndKit={capturedBy:pt.sensor},$.current=It,st(Ct,pt))},[T,st]),ot=Sxn(d,Je);Ixn(d),wf(()=>{oe&&E===yb.Initializing&&w(yb.Initialized)},[oe,E]),m.useEffect(()=>{const{onDragMove:at}=Y.current,{active:pt,activatorEvent:Ct,collisions:It,over:Wt}=pe.current;if(!pt||!Ct)return;const Bt={active:pt,activatorEvent:Ct,collisions:It,delta:{x:J.x,y:J.y},over:Wt};Us.unstable_batchedUpdates(()=>{at==null||at(Bt),S({type:"onDragMove",event:Bt})})},[J.x,J.y]),m.useEffect(()=>{const{active:at,activatorEvent:pt,collisions:Ct,droppableContainers:It,scrollAdjustedTranslate:Wt}=pe.current;if(!at||$.current==null||!pt||!Wt)return;const{onDragOver:Bt}=Y.current,Vt=It.get(xe),rn=Vt&&Vt.rect.current?{id:Vt.id,rect:Vt.rect.current,data:Vt.data,disabled:Vt.disabled}:null,tt={active:at,activatorEvent:pt,collisions:Ct,delta:{x:Wt.x,y:Wt.y},over:rn};Us.unstable_batchedUpdates(()=>{Me(rn),Bt==null||Bt(tt),S({type:"onDragOver",event:tt})})},[xe]),wf(()=>{pe.current={activatorEvent:D,active:k,activeNode:Z,collisionRect:ae,collisions:Se,droppableRects:G,draggableNodes:T,draggingNode:he,draggingNodeRect:be,droppableContainers:O,over:ue,scrollableAncestors:Ee,scrollAdjustedTranslate:J},P.current={initial:be,translated:ae}},[k,Z,Se,ae,T,he,be,G,O,ue,Ee,J]),vxn({...F,delta:R,draggingRect:ae,pointerCoordinates:Oe,scrollableAncestors:Ee,scrollableAncestorRects:Re});const Xe=m.useMemo(()=>({active:k,activeNode:Z,activeNodeRect:oe,activatorEvent:D,collisions:Se,containerNodeRect:de,dragOverlay:ve,draggableNodes:T,droppableContainers:O,droppableRects:G,over:ue,measureDroppableContainers:Q,scrollableAncestors:Ee,scrollableAncestorRects:Re,measuringConfiguration:H,measuringScheduled:le,windowRect:Ae}),[k,Z,oe,D,Se,de,ve,T,O,G,ue,Q,Ee,Re,H,le,Ae]),Ze=m.useMemo(()=>({activatorEvent:D,activators:ot,active:k,activeNodeRect:oe,ariaDescribedById:{draggable:q},dispatch:_,draggableNodes:T,over:ue,measureDroppableContainers:Q}),[D,ot,k,oe,_,q,T,ue,Q]);return V.createElement(Bqe.Provider,{value:b},V.createElement(oL.Provider,{value:Ze},V.createElement(rKe.Provider,{value:Xe},V.createElement(_H.Provider,{value:ge},u)),V.createElement(Fxn,{disabled:(l==null?void 0:l.restoreFocus)===!1})),V.createElement(zwn,{...l,hiddenTextDescribedById:q}));function bt(){const at=(U==null?void 0:U.autoScrollEnabled)===!1,pt=typeof c=="object"?c.enabled===!1:c===!1,Ct=C&&!at&&!pt;return typeof c=="object"?{...c,enabled:Ct}:{enabled:Ct}}}),Uxn=m.createContext(null),fRe="button",Hxn="Draggable";function upe(e){let{id:n,data:r,disabled:i=!1,attributes:o}=e;const a=LI(Hxn),{activators:s,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=m.useContext(oL),{role:h=fRe,roleDescription:g="draggable",tabIndex:v=0}=o??{},y=(c==null?void 0:c.id)===n,_=m.useContext(y?_H:Uxn),[S,b]=MB(),[E,w]=MB(),C=Nxn(s,n),x=FA(r);wf(()=>(f.set(n,{id:n,key:a,node:S,activatorNode:E,data:x}),()=>{const R=f.get(n);R&&R.key===a&&f.delete(n)}),[f,n]);const T=m.useMemo(()=>({role:h,tabIndex:v,"aria-disabled":i,"aria-pressed":y&&h===fRe?!0:void 0,"aria-roledescription":g,"aria-describedby":d.draggable}),[i,h,v,y,g,d.draggable]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:T,isDragging:y,listeners:i?void 0:C,node:S,over:p,setNodeRef:b,setActivatorNodeRef:w,transform:_}}function dpe(){return m.useContext(rKe)}const zxn="Droppable",Vxn={timeout:25};function fpe(e){let{data:n,disabled:r=!1,id:i,resizeObserverConfig:o}=e;const a=LI(zxn),{active:s,dispatch:l,over:c,measureDroppableContainers:u}=m.useContext(oL),d=m.useRef({disabled:r}),f=m.useRef(!1),p=m.useRef(null),h=m.useRef(null),{disabled:g,updateMeasurementsFor:v,timeout:y}={...Vxn,...o},_=FA(v??i),S=m.useCallback(()=>{if(!f.current){f.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(_.current)?_.current:[_.current]),h.current=null},y)},[y]),b=yH({callback:S,disabled:g||!s}),E=m.useCallback((T,R)=>{b&&(R&&(b.unobserve(R),f.current=!1),T&&b.observe(T))},[b]),[w,C]=MB(E),x=FA(n);return m.useEffect(()=>{!b||!w.current||(b.disconnect(),f.current=!1,b.observe(w.current))},[w,b]),m.useEffect(()=>(l({type:yl.RegisterDroppable,element:{id:i,key:a,disabled:r,node:w,rect:p,data:x}}),()=>l({type:yl.UnregisterDroppable,key:a,id:i})),[i]),m.useEffect(()=>{r!==d.current.disabled&&(l({type:yl.SetDroppableDisabled,id:i,key:a,disabled:r}),d.current.disabled=r)},[i,a,r,l]),{active:s,rect:p,isOver:(c==null?void 0:c.id)===i,node:w,over:c,setNodeRef:C}}function Gxn(e){let{animation:n,children:r}=e;const[i,o]=m.useState(null),[a,s]=m.useState(null),l=PB(r);return!r&&!i&&l&&o(l),wf(()=>{if(!a)return;const c=i==null?void 0:i.key,u=i==null?void 0:i.props.id;if(c==null||u==null){o(null);return}Promise.resolve(n(u,a)).then(()=>{o(null)})},[n,i,a]),V.createElement(V.Fragment,null,r,i?m.cloneElement(i,{ref:s}):null)}const Wxn={x:0,y:0,scaleX:1,scaleY:1};function Yxn(e){let{children:n}=e;return V.createElement(oL.Provider,{value:nKe},V.createElement(_H.Provider,{value:Wxn},n))}const qxn={position:"fixed",touchAction:"none"},Kxn=e=>iL(e)?"transform 250ms ease":void 0,Xxn=m.forwardRef((e,n)=>{let{as:r,activatorEvent:i,adjustScale:o,children:a,className:s,rect:l,style:c,transform:u,transition:d=Kxn}=e;if(!l)return null;const f=o?u:{...u,scaleX:1,scaleY:1},p={...qxn,width:l.width,height:l.height,top:l.top,left:l.left,transform:Ip.Transform.toString(f),transformOrigin:o&&i?Vwn(i,l):void 0,transition:typeof d=="function"?d(i):d,...c};return V.createElement(r,{className:s,style:p,ref:n},a)}),aKe=e=>n=>{let{active:r,dragOverlay:i}=n;const o={},{styles:a,className:s}=e;if(a!=null&&a.active)for(const[l,c]of Object.entries(a.active))c!==void 0&&(o[l]=r.node.style.getPropertyValue(l),r.node.style.setProperty(l,c));if(a!=null&&a.dragOverlay)for(const[l,c]of Object.entries(a.dragOverlay))c!==void 0&&i.node.style.setProperty(l,c);return s!=null&&s.active&&r.node.classList.add(s.active),s!=null&&s.dragOverlay&&i.node.classList.add(s.dragOverlay),function(){for(const[c,u]of Object.entries(o))r.node.style.setProperty(c,u);s!=null&&s.active&&r.node.classList.remove(s.active)}},Qxn=e=>{let{transform:{initial:n,final:r}}=e;return[{transform:Ip.Transform.toString(n)},{transform:Ip.Transform.toString(r)}]},Zxn={duration:250,easing:"ease",keyframes:Qxn,sideEffects:aKe({styles:{active:{opacity:"0"}}})};function Jxn(e){let{config:n,draggableNodes:r,droppableContainers:i,measuringConfiguration:o}=e;return mH((a,s)=>{if(n===null)return;const l=r.get(a);if(!l)return;const c=l.node.current;if(!c)return;const u=tKe(s);if(!u)return;const{transform:d}=Pu(s).getComputedStyle(s),f=zqe(d);if(!f)return;const p=typeof n=="function"?n:eTn(n);return Xqe(c,o.draggable.measure),p({active:{id:a,data:l.data,node:c,rect:o.draggable.measure(c)},draggableNodes:r,dragOverlay:{node:s,rect:o.dragOverlay.measure(u)},droppableContainers:i,measuringConfiguration:o,transform:f})})}function eTn(e){const{duration:n,easing:r,sideEffects:i,keyframes:o}={...Zxn,...e};return a=>{let{active:s,dragOverlay:l,transform:c,...u}=a;if(!n)return;const d={x:l.rect.left-s.rect.left,y:l.rect.top-s.rect.top},f={scaleX:c.scaleX!==1?s.rect.width*c.scaleX/l.rect.width:1,scaleY:c.scaleY!==1?s.rect.height*c.scaleY/l.rect.height:1},p={x:c.x-d.x,y:c.y-d.y,...f},h=o({...u,active:s,dragOverlay:l,transform:{initial:c,final:p}}),[g]=h,v=h[h.length-1];if(JSON.stringify(g)===JSON.stringify(v))return;const y=i==null?void 0:i({active:s,dragOverlay:l,...u}),_=l.node.animate(h,{duration:n,easing:r,fill:"forwards"});return new Promise(S=>{_.onfinish=()=>{y==null||y(),S()}})}}let pRe=0;function tTn(e){return m.useMemo(()=>{if(e!=null)return pRe++,pRe},[e])}const sKe=V.memo(e=>{let{adjustScale:n=!1,children:r,dropAnimation:i,style:o,transition:a,modifiers:s,wrapperElement:l="div",className:c,zIndex:u=999}=e;const{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggableNodes:g,droppableContainers:v,dragOverlay:y,over:_,measuringConfiguration:S,scrollableAncestors:b,scrollableAncestorRects:E,windowRect:w}=dpe(),C=m.useContext(_H),x=tTn(f==null?void 0:f.id),T=iKe(s,{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggingNodeRect:y.rect,over:_,overlayNodeRect:y.rect,scrollableAncestors:b,scrollableAncestorRects:E,transform:C,windowRect:w}),R=cpe(p),O=Jxn({config:i,draggableNodes:g,droppableContainers:v,measuringConfiguration:S}),M=R?y.setRef:void 0;return V.createElement(Yxn,null,V.createElement(Gxn,{animation:O},f&&x?V.createElement(Xxn,{key:x,id:f.id,ref:M,as:l,activatorEvent:d,adjustScale:n,className:c,transition:a,rect:R,style:{zIndex:u,...o},transform:T},r):null))});function lKe(e,n,r){const i=e.slice();return i.splice(r<0?i.length+r:r,0,i.splice(n,1)[0]),i}function nTn(e,n){return e.reduce((r,i,o)=>{const a=n.get(i);return a&&(r[o]=a),r},Array(e.length))}function v4(e){return e!==null&&e>=0}function rTn(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}function iTn(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const ppe=e=>{let{rects:n,activeIndex:r,overIndex:i,index:o}=e;const a=lKe(n,i,r),s=n[o],l=a[o];return!l||!s?null:{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}},cKe="Sortable",uKe=V.createContext({activeIndex:-1,containerId:cKe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ppe,disabled:{draggable:!1,droppable:!1}});function oTn(e){let{children:n,id:r,items:i,strategy:o=ppe,disabled:a=!1}=e;const{active:s,dragOverlay:l,droppableRects:c,over:u,measureDroppableContainers:d}=dpe(),f=LI(cKe,r),p=l.rect!==null,h=m.useMemo(()=>i.map(C=>typeof C=="object"&&"id"in C?C.id:C),[i]),g=s!=null,v=s?h.indexOf(s.id):-1,y=u?h.indexOf(u.id):-1,_=m.useRef(h),S=!rTn(h,_.current),b=y!==-1&&v===-1||S,E=iTn(a);wf(()=>{S&&g&&d(h)},[S,h,g,d]),m.useEffect(()=>{_.current=h},[h]);const w=m.useMemo(()=>({activeIndex:v,containerId:f,disabled:E,disableTransforms:b,items:h,overIndex:y,useDragOverlay:p,sortedRects:nTn(h,c),strategy:o}),[v,f,E.draggable,E.droppable,b,h,y,c,p,o]);return V.createElement(uKe.Provider,{value:w},n)}const aTn=e=>{let{id:n,items:r,activeIndex:i,overIndex:o}=e;return lKe(r,i,o).indexOf(n)},sTn=e=>{let{containerId:n,isSorting:r,wasDragging:i,index:o,items:a,newIndex:s,previousItems:l,previousContainerId:c,transition:u}=e;return!u||!i||l!==a&&o===s?!1:r?!0:s!==o&&n===c},lTn={duration:200,easing:"ease"},dKe="transform",cTn=Ip.Transition.toString({property:dKe,duration:0,easing:"linear"}),uTn={roleDescription:"sortable"};function dTn(e){let{disabled:n,index:r,node:i,rect:o}=e;const[a,s]=m.useState(null),l=m.useRef(r);return wf(()=>{if(!n&&r!==l.current&&i.current){const c=o.current;if(c){const u=yw(i.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&s(d)}}r!==l.current&&(l.current=r)},[n,r,i,o]),m.useEffect(()=>{a&&s(null)},[a]),a}function fTn(e){let{animateLayoutChanges:n=sTn,attributes:r,disabled:i,data:o,getNewIndex:a=aTn,id:s,strategy:l,resizeObserverConfig:c,transition:u=lTn}=e;const{items:d,containerId:f,activeIndex:p,disabled:h,disableTransforms:g,sortedRects:v,overIndex:y,useDragOverlay:_,strategy:S}=m.useContext(uKe),b=pTn(i,h),E=d.indexOf(s),w=m.useMemo(()=>({sortable:{containerId:f,index:E,items:d},...o}),[f,o,E,d]),C=m.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:x,node:T,isOver:R,setNodeRef:O}=fpe({id:s,data:w,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...c}}),{active:M,activatorEvent:P,activeNodeRect:k,attributes:$,setNodeRef:U,listeners:z,isDragging:D,over:B,setActivatorNodeRef:Y,transform:q}=upe({id:s,data:w,attributes:{...uTn,...r},disabled:b.draggable}),K=Lqe(O,U),H=!!M,G=H&&!g&&v4(p)&&v4(y),Q=!_&&D,le=Q&&G?q:null,j=G?le??(l??S)({rects:v,activeNodeRect:k,activeIndex:p,overIndex:y,index:E}):null,F=v4(p)&&v4(y)?a({id:s,items:d,activeIndex:p,overIndex:y}):E,te=M==null?void 0:M.id,oe=m.useRef({activeId:te,items:d,newIndex:F,containerId:f}),de=d!==oe.current.items,pe=n({active:M,containerId:f,isDragging:D,isSorting:H,id:s,index:E,items:d,newIndex:oe.current.newIndex,previousItems:oe.current.items,previousContainerId:oe.current.containerId,transition:u,wasDragging:oe.current.activeId!=null}),me=dTn({disabled:!pe,index:E,node:T,rect:x});return m.useEffect(()=>{H&&oe.current.newIndex!==F&&(oe.current.newIndex=F),f!==oe.current.containerId&&(oe.current.containerId=f),d!==oe.current.items&&(oe.current.items=d)},[H,F,f,d]),m.useEffect(()=>{if(te===oe.current.activeId)return;if(te&&!oe.current.activeId){oe.current.activeId=te;return}const he=setTimeout(()=>{oe.current.activeId=te},50);return()=>clearTimeout(he)},[te]),{active:M,activeIndex:p,attributes:$,data:w,rect:x,index:E,newIndex:F,items:d,isOver:R,isSorting:H,isDragging:D,listeners:z,node:T,overIndex:y,over:B,setNodeRef:K,setActivatorNodeRef:Y,setDroppableNodeRef:O,setDraggableNodeRef:U,transform:me??j,transition:ve()};function ve(){if(me||de&&oe.current.newIndex===E)return cTn;if(!(Q&&!iL(P)||!u)&&(H||pe))return Ip.Transition.toString({...u,property:dKe})}}function pTn(e,n){var r,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:n.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:n.droppable}}function kB(e){if(!e)return!1;const n=e.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const hTn=[Ai.Down,Ai.Right,Ai.Up,Ai.Left],gTn=(e,n)=>{let{context:{active:r,collisionRect:i,droppableRects:o,droppableContainers:a,over:s,scrollableAncestors:l}}=n;if(hTn.includes(e.code)){if(e.preventDefault(),!r||!i)return;const c=[];a.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const p=o.get(f.id);if(p)switch(e.code){case Ai.Down:i.top<p.top&&c.push(f);break;case Ai.Up:i.top>p.top&&c.push(f);break;case Ai.Left:i.left>p.left&&c.push(f);break;case Ai.Right:i.left<p.left&&c.push(f);break}});const u=Ywn({active:r,collisionRect:i,droppableRects:o,droppableContainers:c,pointerCoordinates:null});let d=Uqe(u,"id");if(d===(s==null?void 0:s.id)&&u.length>1&&(d=u[1].id),d!=null){const f=a.get(r.id),p=a.get(d),h=p?o.get(p.id):null,g=p==null?void 0:p.node.current;if(g&&h&&f&&p){const y=vH(g).some((C,x)=>l[x]!==C),_=fKe(f,p),S=mTn(f,p),b=y||!_?{x:0,y:0}:{x:S?i.width-h.width:0,y:S?i.height-h.height:0},E={x:h.left,y:h.top};return b.x&&b.y?E:BA(E,b)}}}};function fKe(e,n){return!kB(e)||!kB(n)?!1:e.data.current.sortable.containerId===n.data.current.sortable.containerId}function mTn(e,n){return!kB(e)||!kB(n)||!fKe(e,n)?!1:e.data.current.sortable.index<n.data.current.sortable.index}async function vTn(){return so("/kaptcha/api/v1/get",{method:"GET",params:{client:xo}})}async function yTn(e,n){return so("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:n,client:xo}})}var Roe=function(e,n){return Roe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},Roe(e,n)};function us(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Roe(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var yr=function(){return yr=Object.assign||function(n){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},yr.apply(this,arguments)};function qO(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r}function _Tn(e,n,r,i){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(d){try{u(i.next(d))}catch(f){s(f)}}function c(d){try{u(i.throw(d))}catch(f){s(f)}}function u(d){d.done?a(d.value):o(d.value).then(l,c)}u((i=i.apply(e,n||[])).next())})}function pKe(e,n){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,o,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=l(0),s.throw=l(1),s.return=l(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(i=1,o&&(a=u[0]&2?o.return:u[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;switch(o=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=n.call(e,r)}catch(d){u=[6,d],o=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function KO(e){var n=typeof Symbol=="function"&&Symbol.iterator,r=n&&e[n],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function M0(e,n){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),o,a=[],s;try{for(;(n===void 0||n-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return a}function rs(e,n,r){if(r||arguments.length===2)for(var i=0,o=n.length,a;i<o;i++)(a||!(i in n))&&(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return e.concat(a||Array.prototype.slice.call(n))}function XT(e){return this instanceof XT?(this.v=e,this):new XT(e)}function bTn(e,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,n||[]),o,a=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(h){return function(g){return Promise.resolve(g).then(h,f)}}function l(h,g){i[h]&&(o[h]=function(v){return new Promise(function(y,_){a.push([h,v,y,_])>1||c(h,v)})},g&&(o[h]=g(o[h])))}function c(h,g){try{u(i[h](g))}catch(v){p(a[0][3],v)}}function u(h){h.value instanceof XT?Promise.resolve(h.value.v).then(d,f):p(a[0][2],h)}function d(h){c("next",h)}function f(h){c("throw",h)}function p(h,g){h(g),a.shift(),a.length&&c(a[0][0],a[0][1])}}function STn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],r;return n?n.call(e):(e=typeof KO=="function"?KO(e):e[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(a){r[a]=e[a]&&function(s){return new Promise(function(l,c){s=e[a](s),o(l,c,s.done,s.value)})}}function o(a,s,l,c){Promise.resolve(c).then(function(u){a({value:u,done:l})},s)}}function du(e,n){var r=n&&n.cache?n.cache:OTn,i=n&&n.serializer?n.serializer:TTn,o=n&&n.strategy?n.strategy:CTn;return o(e,{cache:r,serializer:i})}function ETn(e){return e==null||typeof e=="number"||typeof e=="boolean"}function hKe(e,n,r,i){var o=ETn(i)?i:r(i),a=n.get(o);return typeof a>"u"&&(a=e.call(this,i),n.set(o,a)),a}function gKe(e,n,r){var i=Array.prototype.slice.call(arguments,3),o=r(i),a=n.get(o);return typeof a>"u"&&(a=e.apply(this,i),n.set(o,a)),a}function hpe(e,n,r,i,o){return r.bind(n,e,i,o)}function CTn(e,n){var r=e.length===1?hKe:gKe;return hpe(e,this,r,n.cache.create(),n.serializer)}function wTn(e,n){return hpe(e,this,gKe,n.cache.create(),n.serializer)}function xTn(e,n){return hpe(e,this,hKe,n.cache.create(),n.serializer)}var TTn=function(){return JSON.stringify(arguments)};function gpe(){this.cache=Object.create(null)}gpe.prototype.get=function(e){return this.cache[e]};gpe.prototype.set=function(e,n){this.cache[e]=n};var OTn={create:function(){return new gpe}},fu={variadic:wTn,monadic:xTn};function mKe(e,n,r){if(r===void 0&&(r=Error),!e)throw new r(n)}du(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,rs([void 0],n,!1)))},{strategy:fu.variadic});du(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,rs([void 0],n,!1)))},{strategy:fu.variadic});du(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,rs([void 0],n,!1)))},{strategy:fu.variadic});du(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.Locale).bind.apply(e,rs([void 0],n,!1)))},{strategy:fu.variadic});du(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.ListFormat).bind.apply(e,rs([void 0],n,!1)))},{strategy:fu.variadic});var Ji;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Ji||(Ji={}));var Ea;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ea||(Ea={}));var XO;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(XO||(XO={}));function hRe(e){return e.type===Ea.literal}function RTn(e){return e.type===Ea.argument}function vKe(e){return e.type===Ea.number}function yKe(e){return e.type===Ea.date}function _Ke(e){return e.type===Ea.time}function bKe(e){return e.type===Ea.select}function SKe(e){return e.type===Ea.plural}function ITn(e){return e.type===Ea.pound}function EKe(e){return e.type===Ea.tag}function CKe(e){return!!(e&&typeof e=="object"&&e.type===XO.number)}function Ioe(e){return!!(e&&typeof e=="object"&&e.type===XO.dateTime)}var wKe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,NTn=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function MTn(e){var n={};return e.replace(NTn,function(r){var i=r.length;switch(r[0]){case"G":n.era=i===4?"long":i===5?"narrow":"short";break;case"y":n.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][i-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][i-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][i-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][i-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][i-1];break;case"s":n.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n}var PTn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ATn(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(PTn).filter(function(p){return p.length>0}),r=[],i=0,o=n;i<o.length;i++){var a=o[i],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var l=s[0],c=s.slice(1),u=0,d=c;u<d.length;u++){var f=d[u];if(f.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:c})}return r}function DTn(e){return e.replace(/^(.*?)-/,"")}var gRe=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,xKe=/^(@+)?(\+|#+)?[rs]?$/g,kTn=/(\*)(0+)|(#+)(0+)|(0+)/g,TKe=/^(0+)$/;function mRe(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(xKe,function(r,i,o){return typeof o!="string"?(n.minimumSignificantDigits=i.length,n.maximumSignificantDigits=i.length):o==="+"?n.minimumSignificantDigits=i.length:i[0]==="#"?n.maximumSignificantDigits=i.length:(n.minimumSignificantDigits=i.length,n.maximumSignificantDigits=i.length+(typeof o=="string"?o.length:0)),""}),n}function OKe(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function LTn(e){var n;if(e[0]==="E"&&e[1]==="E"?(n={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(n={notation:"scientific"},e=e.slice(1)),n){var r=e.slice(0,2);if(r==="+!"?(n.signDisplay="always",e=e.slice(2)):r==="+?"&&(n.signDisplay="exceptZero",e=e.slice(2)),!TKe.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function vRe(e){var n={},r=OKe(e);return r||n}function $Tn(e){for(var n={},r=0,i=e;r<i.length;r++){var o=i[r];switch(o.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=o.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=DTn(o.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=yr(yr(yr({},n),{notation:"scientific"}),o.options.reduce(function(c,u){return yr(yr({},c),vRe(u))},{}));continue;case"engineering":n=yr(yr(yr({},n),{notation:"engineering"}),o.options.reduce(function(c,u){return yr(yr({},c),vRe(u))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(kTn,function(c,u,d,f,p,h){if(u)n.minimumIntegerDigits=d.length;else{if(f&&p)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(TKe.test(o.stem)){n.minimumIntegerDigits=o.stem.length;continue}if(gRe.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(gRe,function(c,u,d,f,p,h){return d==="*"?n.minimumFractionDigits=u.length:f&&f[0]==="#"?n.maximumFractionDigits=f.length:p&&h?(n.minimumFractionDigits=p.length,n.maximumFractionDigits=p.length+h.length):(n.minimumFractionDigits=u.length,n.maximumFractionDigits=u.length),""});var a=o.options[0];a==="w"?n=yr(yr({},n),{trailingZeroDisplay:"stripIfInteger"}):a&&(n=yr(yr({},n),mRe(a)));continue}if(xKe.test(o.stem)){n=yr(yr({},n),mRe(o.stem));continue}var s=OKe(o.stem);s&&(n=yr(yr({},n),s));var l=LTn(o.stem);l&&(n=yr(yr({},n),l))}return n}var y4={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function FTn(e,n){for(var r="",i=0;i<e.length;i++){var o=e.charAt(i);if(o==="j"){for(var a=0;i+1<e.length&&e.charAt(i+1)===o;)a++,i++;var s=1+(a&1),l=a<2?1:3+(a>>1),c="a",u=BTn(n);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=c;for(;s-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function BTn(e){var n=e.hourCycle;if(n===void 0&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,i;r!=="root"&&(i=e.maximize().region);var o=y4[i||""]||y4[r||""]||y4["".concat(r,"-001")]||y4["001"];return o[0]}var oK,jTn=new RegExp("^".concat(wKe.source,"*")),UTn=new RegExp("".concat(wKe.source,"*$"));function ro(e,n){return{start:e,end:n}}var HTn=!!String.prototype.startsWith&&"_a".startsWith("a",1),zTn=!!String.fromCodePoint,VTn=!!Object.fromEntries,GTn=!!String.prototype.codePointAt,WTn=!!String.prototype.trimStart,YTn=!!String.prototype.trimEnd,qTn=!!Number.isSafeInteger,KTn=qTn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Noe=!0;try{var XTn=IKe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Noe=((oK=XTn.exec("a"))===null||oK===void 0?void 0:oK[0])==="a"}catch{Noe=!1}var yRe=HTn?function(n,r,i){return n.startsWith(r,i)}:function(n,r,i){return n.slice(i,i+r.length)===r},Moe=zTn?String.fromCodePoint:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i="",o=n.length,a=0,s;o>a;){if(s=n[a++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},_Re=VTn?Object.fromEntries:function(n){for(var r={},i=0,o=n;i<o.length;i++){var a=o[i],s=a[0],l=a[1];r[s]=l}return r},RKe=GTn?function(n,r){return n.codePointAt(r)}:function(n,r){var i=n.length;if(!(r<0||r>=i)){var o=n.charCodeAt(r),a;return o<55296||o>56319||r+1===i||(a=n.charCodeAt(r+1))<56320||a>57343?o:(o-55296<<10)+(a-56320)+65536}},QTn=WTn?function(n){return n.trimStart()}:function(n){return n.replace(jTn,"")},ZTn=YTn?function(n){return n.trimEnd()}:function(n){return n.replace(UTn,"")};function IKe(e,n){return new RegExp(e,n)}var Poe;if(Noe){var bRe=IKe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Poe=function(n,r){var i;bRe.lastIndex=r;var o=bRe.exec(n);return(i=o[1])!==null&&i!==void 0?i:""}}else Poe=function(n,r){for(var i=[];;){var o=RKe(n,r);if(o===void 0||NKe(o)||nOn(o))break;i.push(o),r+=o>=65536?2:1}return Moe.apply(void 0,i)};var JTn=function(){function e(n,r){r===void 0&&(r={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(n,r,i){for(var o=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(n,i);if(s.err)return s;o.push(s.val)}else{if(a===125&&n>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),o.push({type:Ea.pound,location:ro(l,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(Ji.UNMATCHED_CLOSING_TAG,ro(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Aoe(this.peek()||0)){var s=this.parseTag(n,r);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(n,r);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(n,r){var i=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ea.literal,value:"<".concat(o,"/>"),location:ro(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(n+1,r,!0);if(a.err)return a;var s=a.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Aoe(this.char()))return this.error(Ji.INVALID_TAG,ro(l,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(Ji.UNMATCHED_CLOSING_TAG,ro(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ea.tag,value:o,children:s,location:ro(i,this.clonePosition())},err:null}:this.error(Ji.INVALID_TAG,ro(l,this.clonePosition())))}else return this.error(Ji.UNCLOSED_TAG,ro(i,this.clonePosition()))}else return this.error(Ji.INVALID_TAG,ro(i,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&tOn(this.char());)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(n,r){for(var i=this.clonePosition(),o="";;){var a=this.tryParseQuote(r);if(a){o+=a;continue}var s=this.tryParseUnquoted(n,r);if(s){o+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}var c=ro(i,this.clonePosition());return{val:{type:Ea.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!eOn(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(n){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return Moe.apply(void 0,r)},e.prototype.tryParseUnquoted=function(n,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&n>0?null:(this.bump(),Moe(i))},e.prototype.parseArgument=function(n,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ji.EXPECT_ARGUMENT_CLOSING_BRACE,ro(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Ji.EMPTY_ARGUMENT,ro(i,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Ji.MALFORMED_ARGUMENT,ro(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ji.EXPECT_ARGUMENT_CLOSING_BRACE,ro(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ea.argument,value:o,location:ro(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ji.EXPECT_ARGUMENT_CLOSING_BRACE,ro(i,this.clonePosition())):this.parseArgumentOptions(n,r,o,i);default:return this.error(Ji.MALFORMED_ARGUMENT,ro(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),r=this.offset(),i=Poe(this.message,r),o=r+i.length;this.bumpTo(o);var a=this.clonePosition(),s=ro(n,a);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(n,r,i,o){var a,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(l){case"":return this.error(Ji.EXPECT_ARGUMENT_TYPE,ro(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=ZTn(f.val);if(p.length===0)return this.error(Ji.EXPECT_ARGUMENT_STYLE,ro(this.clonePosition(),this.clonePosition()));var h=ro(d,this.clonePosition());u={style:p,styleLocation:h}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var v=ro(o,this.clonePosition());if(u&&yRe(u==null?void 0:u.style,"::",0)){var y=QTn(u.style.slice(2));if(l==="number"){var f=this.parseNumberSkeletonFromString(y,u.styleLocation);return f.err?f:{val:{type:Ea.number,value:i,location:v,style:f.val},err:null}}else{if(y.length===0)return this.error(Ji.EXPECT_DATE_TIME_SKELETON,v);var _=y;this.locale&&(_=FTn(y,this.locale));var p={type:XO.dateTime,pattern:_,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?MTn(_):{}},S=l==="date"?Ea.date:Ea.time;return{val:{type:S,value:i,location:v,style:p},err:null}}}return{val:{type:l==="number"?Ea.number:l==="date"?Ea.date:Ea.time,value:i,location:v,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ji.EXPECT_SELECT_ARGUMENT_OPTIONS,ro(b,yr({},b)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),w=0;if(l!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(Ji.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ro(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(Ji.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ji.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),E=this.parseIdentifierIfPossible(),w=f.val}var C=this.tryParsePluralOrSelectOptions(n,l,r,E);if(C.err)return C;var g=this.tryParseArgumentClose(o);if(g.err)return g;var x=ro(o,this.clonePosition());return l==="select"?{val:{type:Ea.select,value:i,options:_Re(C.val),location:x},err:null}:{val:{type:Ea.plural,value:i,options:_Re(C.val),offset:w,pluralType:l==="plural"?"cardinal":"ordinal",location:x},err:null}}default:return this.error(Ji.INVALID_ARGUMENT_TYPE,ro(s,c))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(Ji.EXPECT_ARGUMENT_CLOSING_BRACE,ro(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Ji.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ro(o,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(n,r){var i=[];try{i=ATn(n)}catch{return this.error(Ji.INVALID_NUMBER_SKELETON,r)}return{val:{type:XO.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?$Tn(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,r,i,o){for(var a,s=!1,l=[],c=new Set,u=o.value,d=o.location;;){if(u.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(Ji.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ji.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;d=ro(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(c.has(u))return this.error(r==="select"?Ji.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ji.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Ji.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ji.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ro(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(n+1,r,i);if(g.err)return g;var v=this.tryParseArgumentClose(h);if(v.err)return v;l.push([u,{value:g.val,location:ro(h,this.clonePosition())}]),c.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,d=a.location}return l.length===0?this.error(r==="select"?Ji.EXPECT_SELECT_ARGUMENT_SELECTOR:Ji.EXPECT_PLURAL_ARGUMENT_SELECTOR,ro(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(Ji.MISSING_OTHER_CLAUSE,ro(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(n,r){var i=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var a=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)a=!0,s=s*10+(l-48),this.bump();else break}var c=ro(o,this.clonePosition());return a?(s*=i,KTn(s)?{val:s,err:null}:this.error(r,c)):this.error(n,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var r=RKe(this.message,n);if(r===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(n,r){return{val:null,err:{kind:n,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},e.prototype.bumpIf=function(n){if(yRe(this.message,n,this.offset())){for(var r=0;r<n.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(n){var r=this.offset(),i=this.message.indexOf(n,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var r=this.offset();if(r===n)break;if(r>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&NKe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(n>=65536?2:1));return i??null},e}();function Aoe(e){return e>=97&&e<=122||e>=65&&e<=90}function eOn(e){return Aoe(e)||e===47}function tOn(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function NKe(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function nOn(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Doe(e){e.forEach(function(n){if(delete n.location,bKe(n)||SKe(n))for(var r in n.options)delete n.options[r].location,Doe(n.options[r].value);else vKe(n)&&CKe(n.style)||(yKe(n)||_Ke(n))&&Ioe(n.style)?delete n.style.location:EKe(n)&&Doe(n.children)})}function rOn(e,n){n===void 0&&(n={}),n=yr({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var r=new JTn(e,n).parse();if(r.err){var i=SyntaxError(Ji[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return n!=null&&n.captureLocation||Doe(r.val),r.val}var Dm;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Dm||(Dm={}));var lS=function(e){us(n,e);function n(r,i,o){var a=e.call(this,r)||this;return a.code=i,a.originalMessage=o,a}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),SRe=function(e){us(n,e);function n(r,i,o,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Dm.INVALID_VALUE,a)||this}return n}(lS),iOn=function(e){us(n,e);function n(r,i,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Dm.INVALID_VALUE,o)||this}return n}(lS),oOn=function(e){us(n,e);function n(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),Dm.MISSING_VALUE,i)||this}return n}(lS),au;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(au||(au={}));function aOn(e){return e.length<2?e:e.reduce(function(n,r){var i=n[n.length-1];return!i||i.type!==au.literal||r.type!==au.literal?n.push(r):i.value+=r.value,n},[])}function MKe(e){return typeof e=="function"}function R6(e,n,r,i,o,a,s){if(e.length===1&&hRe(e[0]))return[{type:au.literal,value:e[0].value}];for(var l=[],c=0,u=e;c<u.length;c++){var d=u[c];if(hRe(d)){l.push({type:au.literal,value:d.value});continue}if(ITn(d)){typeof a=="number"&&l.push({type:au.literal,value:r.getNumberFormat(n).format(a)});continue}var f=d.value;if(!(o&&f in o))throw new oOn(f,s);var p=o[f];if(RTn(d)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),l.push({type:typeof p=="string"?au.literal:au.object,value:p});continue}if(yKe(d)){var h=typeof d.style=="string"?i.date[d.style]:Ioe(d.style)?d.style.parsedOptions:void 0;l.push({type:au.literal,value:r.getDateTimeFormat(n,h).format(p)});continue}if(_Ke(d)){var h=typeof d.style=="string"?i.time[d.style]:Ioe(d.style)?d.style.parsedOptions:i.time.medium;l.push({type:au.literal,value:r.getDateTimeFormat(n,h).format(p)});continue}if(vKe(d)){var h=typeof d.style=="string"?i.number[d.style]:CKe(d.style)?d.style.parsedOptions:void 0;h&&h.scale&&(p=p*(h.scale||1)),l.push({type:au.literal,value:r.getNumberFormat(n,h).format(p)});continue}if(EKe(d)){var g=d.children,v=d.value,y=o[v];if(!MKe(y))throw new iOn(v,"function",s);var _=R6(g,n,r,i,o,a),S=y(_.map(function(w){return w.value}));Array.isArray(S)||(S=[S]),l.push.apply(l,S.map(function(w){return{type:typeof w=="string"?au.literal:au.object,value:w}}))}if(bKe(d)){var b=d.options[p]||d.options.other;if(!b)throw new SRe(d.value,p,Object.keys(d.options),s);l.push.apply(l,R6(b.value,n,r,i,o));continue}if(SKe(d)){var b=d.options["=".concat(p)];if(!b){if(!Intl.PluralRules)throw new lS(`Intl.PluralRules is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-pluralrules"
|
||
`,Dm.MISSING_INTL_API,s);var E=r.getPluralRules(n,{type:d.pluralType}).select(p-(d.offset||0));b=d.options[E]||d.options.other}if(!b)throw new SRe(d.value,p,Object.keys(d.options),s);l.push.apply(l,R6(b.value,n,r,i,o,p-(d.offset||0)));continue}}return aOn(l)}function sOn(e,n){return n?yr(yr(yr({},e||{}),n||{}),Object.keys(e).reduce(function(r,i){return r[i]=yr(yr({},e[i]),n[i]||{}),r},{})):e}function lOn(e,n){return n?Object.keys(e).reduce(function(r,i){return r[i]=sOn(e[i],n[i]),r},yr({},e)):e}function aK(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,r){e[n]=r}}}}}function cOn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:du(function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((n=Intl.NumberFormat).bind.apply(n,rs([void 0],r,!1)))},{cache:aK(e.number),strategy:fu.variadic}),getDateTimeFormat:du(function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((n=Intl.DateTimeFormat).bind.apply(n,rs([void 0],r,!1)))},{cache:aK(e.dateTime),strategy:fu.variadic}),getPluralRules:du(function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((n=Intl.PluralRules).bind.apply(n,rs([void 0],r,!1)))},{cache:aK(e.pluralRules),strategy:fu.variadic})}}var PKe=function(){function e(n,r,i,o){r===void 0&&(r=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=a.formatToParts(c);if(u.length===1)return u[0].value;var d=u.reduce(function(f,p){return!f.length||p.type!==au.literal||typeof f[f.length-1]!="string"?f.push(p.value):f[f.length-1]+=p.value,f},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(c){return R6(a.ast,a.locales,a.formatters,a.formats,c,void 0,a.message)},this.resolvedOptions=function(){var c;return{locale:((c=a.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof n=="string"){if(this.message=n,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var l=qO(s,["formatters"]);this.ast=e.__parse(n,yr(yr({},l),{locale:this.resolvedLocale}))}else this.ast=n;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=lOn(e.formats,i),this.formatters=o&&o.formatters||cOn(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(n){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(n);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof n=="string"?n:n[0])}},e.__parse=rOn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),gC;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(gC||(gC={}));var aL=function(e){us(n,e);function n(r,i,o){var a=this,s=o?o instanceof Error?o:new Error(String(o)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(i,`
|
||
`).concat(s?`
|
||
`.concat(s.message,`
|
||
`).concat(s.stack):""))||this,a.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,n),a}return n}(Error),uOn=function(e){us(n,e);function n(r,i){return e.call(this,gC.UNSUPPORTED_FORMATTER,r,i)||this}return n}(aL),dOn=function(e){us(n,e);function n(r,i){return e.call(this,gC.INVALID_CONFIG,r,i)||this}return n}(aL),ERe=function(e){us(n,e);function n(r,i){return e.call(this,gC.MISSING_DATA,r,i)||this}return n}(aL),zp=function(e){us(n,e);function n(r,i,o){var a=e.call(this,gC.FORMAT_ERROR,"".concat(r,`
|
||
Locale: `).concat(i,`
|
||
`),o)||this;return a.locale=i,a}return n}(aL),sK=function(e){us(n,e);function n(r,i,o,a){var s=e.call(this,"".concat(r,`
|
||
MessageID: `).concat(o==null?void 0:o.id,`
|
||
Default Message: `).concat(o==null?void 0:o.defaultMessage,`
|
||
Description: `).concat(o==null?void 0:o.description,`
|
||
`),i,a)||this;return s.descriptor=o,s.locale=i,s}return n}(zp),fOn=function(e){us(n,e);function n(r,i){var o=e.call(this,gC.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(i,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(a){var s;return(s=a.value)!==null&&s!==void 0?s:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=r,o}return n}(aL);function _w(e,n,r){return r===void 0&&(r={}),n.reduce(function(i,o){return o in e?i[o]=e[o]:o in r&&(i[o]=r[o]),i},{})}var pOn=function(e){},hOn=function(e){},AKe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:pOn,onWarn:hOn};function DKe(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function vE(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,r){e[n]=r}}}}}function gOn(e){e===void 0&&(e=DKe());var n=Intl.RelativeTimeFormat,r=Intl.ListFormat,i=Intl.DisplayNames,o=du(function(){for(var l,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((l=Intl.DateTimeFormat).bind.apply(l,rs([void 0],c,!1)))},{cache:vE(e.dateTime),strategy:fu.variadic}),a=du(function(){for(var l,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((l=Intl.NumberFormat).bind.apply(l,rs([void 0],c,!1)))},{cache:vE(e.number),strategy:fu.variadic}),s=du(function(){for(var l,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((l=Intl.PluralRules).bind.apply(l,rs([void 0],c,!1)))},{cache:vE(e.pluralRules),strategy:fu.variadic});return{getDateTimeFormat:o,getNumberFormat:a,getMessageFormat:du(function(l,c,u,d){return new PKe(l,c,u,yr({formatters:{getNumberFormat:a,getDateTimeFormat:o,getPluralRules:s}},d||{}))},{cache:vE(e.message),strategy:fu.variadic}),getRelativeTimeFormat:du(function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new(n.bind.apply(n,rs([void 0],l,!1)))},{cache:vE(e.relativeTime),strategy:fu.variadic}),getPluralRules:s,getListFormat:du(function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new(r.bind.apply(r,rs([void 0],l,!1)))},{cache:vE(e.list),strategy:fu.variadic}),getDisplayNames:du(function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new(i.bind.apply(i,rs([void 0],l,!1)))},{cache:vE(e.displayNames),strategy:fu.variadic})}}function mpe(e,n,r,i){var o=e&&e[n],a;if(o&&(a=o[r]),a)return a;i(new uOn("No ".concat(n," format named: ").concat(r)))}function _4(e,n){return Object.keys(e).reduce(function(r,i){return r[i]=yr({timeZone:n},e[i]),r},{})}function CRe(e,n){var r=Object.keys(yr(yr({},e),n));return r.reduce(function(i,o){return i[o]=yr(yr({},e[o]||{}),n[o]||{}),i},{})}function wRe(e,n){if(!n)return e;var r=PKe.formats;return yr(yr(yr({},r),e),{date:CRe(_4(r.date,n),_4(e.date||{},n)),time:CRe(_4(r.time,n),_4(e.time||{},n))})}var koe=function(e,n,r,i,o){var a=e.locale,s=e.formats,l=e.messages,c=e.defaultLocale,u=e.defaultFormats,d=e.fallbackOnEmptyString,f=e.onError,p=e.timeZone,h=e.defaultRichTextElements;r===void 0&&(r={id:""});var g=r.id,v=r.defaultMessage;mKe(!!g,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var y=String(g),_=l&&Object.prototype.hasOwnProperty.call(l,y)&&l[y];if(Array.isArray(_)&&_.length===1&&_[0].type===Ea.literal)return _[0].value;if(!i&&_&&typeof _=="string"&&!h)return _.replace(/'\{(.*?)\}'/gi,"{$1}");if(i=yr(yr({},h),i||{}),s=wRe(s,p),u=wRe(u,p),!_){if(d===!1&&_==="")return _;if((!v||a&&a.toLowerCase()!==c.toLowerCase())&&f(new fOn(r,a)),v)try{var S=n.getMessageFormat(v,c,u,o);return S.format(i)}catch(b){return f(new sK('Error formatting default message for: "'.concat(y,'", rendering default message verbatim'),a,r,b)),typeof v=="string"?v:y}return y}try{var S=n.getMessageFormat(_,a,s,yr({formatters:n},o||{}));return S.format(i)}catch(b){f(new sK('Error formatting message: "'.concat(y,'", using ').concat(v?"default message":"id"," as fallback."),a,r,b))}if(v)try{var S=n.getMessageFormat(v,c,u,o);return S.format(i)}catch(b){f(new sK('Error formatting the default message for: "'.concat(y,'", rendering message verbatim'),a,r,b))}return typeof _=="string"?_:typeof v=="string"?v:y},kKe=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function bH(e,n,r,i){var o=e.locale,a=e.formats,s=e.onError,l=e.timeZone;i===void 0&&(i={});var c=i.format,u=yr(yr({},l&&{timeZone:l}),c&&mpe(a,n,c,s)),d=_w(i,kKe,u);return n==="time"&&!d.hour&&!d.minute&&!d.second&&!d.timeStyle&&!d.dateStyle&&(d=yr(yr({},d),{hour:"numeric",minute:"numeric"})),r(o,d)}function mOn(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=r[0],a=r[1],s=a===void 0?{}:a,l=typeof o=="string"?new Date(o||0):o;try{return bH(e,"date",n,s).format(l)}catch(c){e.onError(new zp("Error formatting date.",e.locale,c))}return String(l)}function vOn(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=r[0],a=r[1],s=a===void 0?{}:a,l=typeof o=="string"?new Date(o||0):o;try{return bH(e,"time",n,s).format(l)}catch(c){e.onError(new zp("Error formatting time.",e.locale,c))}return String(l)}function yOn(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=r[0],a=r[1],s=r[2],l=s===void 0?{}:s,c=e.timeZone,u=e.locale,d=e.onError,f=_w(l,kKe,c?{timeZone:c}:{});try{return n(u,f).formatRange(o,a)}catch(p){d(new zp("Error formatting date time range.",e.locale,p))}return String(o)}function _On(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=r[0],a=r[1],s=a===void 0?{}:a,l=typeof o=="string"?new Date(o||0):o;try{return bH(e,"date",n,s).formatToParts(l)}catch(c){e.onError(new zp("Error formatting date.",e.locale,c))}return[]}function bOn(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=r[0],a=r[1],s=a===void 0?{}:a,l=typeof o=="string"?new Date(o||0):o;try{return bH(e,"time",n,s).formatToParts(l)}catch(c){e.onError(new zp("Error formatting time.",e.locale,c))}return[]}var SOn=["style","type","fallback","languageDisplay"];function EOn(e,n,r,i){var o=e.locale,a=e.onError,s=Intl.DisplayNames;s||a(new lS(`Intl.DisplayNames is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-displaynames"
|
||
`,Dm.MISSING_INTL_API));var l=_w(i,SOn);try{return n(o,l).of(r)}catch(c){a(new zp("Error formatting display name.",o,c))}}var COn=["type","style"],xRe=Date.now();function wOn(e){return"".concat(xRe,"_").concat(e,"_").concat(xRe)}function xOn(e,n,r,i){i===void 0&&(i={});var o=LKe(e,n,r,i).reduce(function(a,s){var l=s.value;return typeof l!="string"?a.push(l):typeof a[a.length-1]=="string"?a[a.length-1]+=l:a.push(l),a},[]);return o.length===1?o[0]:o.length===0?"":o}function LKe(e,n,r,i){var o=e.locale,a=e.onError;i===void 0&&(i={});var s=Intl.ListFormat;s||a(new lS(`Intl.ListFormat is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-listformat"
|
||
`,Dm.MISSING_INTL_API));var l=_w(i,COn);try{var c={},u=r.map(function(d,f){if(typeof d=="object"){var p=wOn(f);return c[p]=d,p}return String(d)});return n(o,l).formatToParts(u).map(function(d){return d.type==="literal"?d:yr(yr({},d),{value:c[d.value]||d.value})})}catch(d){a(new zp("Error formatting list.",o,d))}return r}var TOn=["type"];function OOn(e,n,r,i){var o=e.locale,a=e.onError;i===void 0&&(i={}),Intl.PluralRules||a(new lS(`Intl.PluralRules is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-pluralrules"
|
||
`,Dm.MISSING_INTL_API));var s=_w(i,TOn);try{return n(o,s).select(r)}catch(l){a(new zp("Error formatting plural.",o,l))}return"other"}var ROn=["numeric","style"];function IOn(e,n,r){var i=e.locale,o=e.formats,a=e.onError;r===void 0&&(r={});var s=r.format,l=!!s&&mpe(o,"relative",s,a)||{},c=_w(r,ROn,l);return n(i,c)}function NOn(e,n,r,i,o){o===void 0&&(o={}),i||(i="second");var a=Intl.RelativeTimeFormat;a||e.onError(new lS(`Intl.RelativeTimeFormat is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
||
`,Dm.MISSING_INTL_API));try{return IOn(e,n,o).format(r,i)}catch(s){e.onError(new zp("Error formatting relative time.",e.locale,s))}return String(r)}var MOn=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function $Ke(e,n,r){var i=e.locale,o=e.formats,a=e.onError;r===void 0&&(r={});var s=r.format,l=s&&mpe(o,"number",s,a)||{},c=_w(r,MOn,l);return n(i,c)}function POn(e,n,r,i){i===void 0&&(i={});try{return $Ke(e,n,i).format(r)}catch(o){e.onError(new zp("Error formatting number.",e.locale,o))}return String(r)}function AOn(e,n,r,i){i===void 0&&(i={});try{return $Ke(e,n,i).formatToParts(r)}catch(o){e.onError(new zp("Error formatting number.",e.locale,o))}return[]}function DOn(e){var n=e?e[Object.keys(e)[0]]:void 0;return typeof n=="string"}function kOn(e){e.onWarn&&e.defaultRichTextElements&&DOn(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
||
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
||
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function LOn(e,n){var r=gOn(n),i=yr(yr({},AKe),e),o=i.locale,a=i.defaultLocale,s=i.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&s?s(new ERe('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&s&&s(new ERe('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new dOn('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),i.locale=i.defaultLocale||"en"),kOn(i),yr(yr({},i),{formatters:r,formatNumber:POn.bind(null,i,r.getNumberFormat),formatNumberToParts:AOn.bind(null,i,r.getNumberFormat),formatRelativeTime:NOn.bind(null,i,r.getRelativeTimeFormat),formatDate:mOn.bind(null,i,r.getDateTimeFormat),formatDateToParts:_On.bind(null,i,r.getDateTimeFormat),formatTime:vOn.bind(null,i,r.getDateTimeFormat),formatDateTimeRange:yOn.bind(null,i,r.getDateTimeFormat),formatTimeToParts:bOn.bind(null,i,r.getDateTimeFormat),formatPlural:OOn.bind(null,i,r.getPluralRules),formatMessage:koe.bind(null,i,r),$t:koe.bind(null,i,r),formatList:xOn.bind(null,i,r.getListFormat),formatListToParts:LKe.bind(null,i,r.getListFormat),formatDisplayName:EOn.bind(null,i,r.getDisplayNames)})}function FKe(e){mKe(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var BKe=yr(yr({},AKe),{textComponent:m.Fragment});function $On(e){return function(n){return e(m.Children.toArray(n))}}function Loe(e,n){if(e===n)return!0;if(!e||!n)return!1;var r=Object.keys(e),i=Object.keys(n),o=r.length;if(i.length!==o)return!1;for(var a=0;a<o;a++){var s=r[a];if(e[s]!==n[s]||!Object.prototype.hasOwnProperty.call(n,s))return!1}return!0}var jKe={exports:{}},Ho={};/** @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 Zl=typeof Symbol=="function"&&Symbol.for,vpe=Zl?Symbol.for("react.element"):60103,ype=Zl?Symbol.for("react.portal"):60106,SH=Zl?Symbol.for("react.fragment"):60107,EH=Zl?Symbol.for("react.strict_mode"):60108,CH=Zl?Symbol.for("react.profiler"):60114,wH=Zl?Symbol.for("react.provider"):60109,xH=Zl?Symbol.for("react.context"):60110,_pe=Zl?Symbol.for("react.async_mode"):60111,TH=Zl?Symbol.for("react.concurrent_mode"):60111,OH=Zl?Symbol.for("react.forward_ref"):60112,RH=Zl?Symbol.for("react.suspense"):60113,FOn=Zl?Symbol.for("react.suspense_list"):60120,IH=Zl?Symbol.for("react.memo"):60115,NH=Zl?Symbol.for("react.lazy"):60116,BOn=Zl?Symbol.for("react.block"):60121,jOn=Zl?Symbol.for("react.fundamental"):60117,UOn=Zl?Symbol.for("react.responder"):60118,HOn=Zl?Symbol.for("react.scope"):60119;function Df(e){if(typeof e=="object"&&e!==null){var n=e.$$typeof;switch(n){case vpe:switch(e=e.type,e){case _pe:case TH:case SH:case CH:case EH:case RH:return e;default:switch(e=e&&e.$$typeof,e){case xH:case OH:case NH:case IH:case wH:return e;default:return n}}case ype:return n}}}function UKe(e){return Df(e)===TH}Ho.AsyncMode=_pe;Ho.ConcurrentMode=TH;Ho.ContextConsumer=xH;Ho.ContextProvider=wH;Ho.Element=vpe;Ho.ForwardRef=OH;Ho.Fragment=SH;Ho.Lazy=NH;Ho.Memo=IH;Ho.Portal=ype;Ho.Profiler=CH;Ho.StrictMode=EH;Ho.Suspense=RH;Ho.isAsyncMode=function(e){return UKe(e)||Df(e)===_pe};Ho.isConcurrentMode=UKe;Ho.isContextConsumer=function(e){return Df(e)===xH};Ho.isContextProvider=function(e){return Df(e)===wH};Ho.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vpe};Ho.isForwardRef=function(e){return Df(e)===OH};Ho.isFragment=function(e){return Df(e)===SH};Ho.isLazy=function(e){return Df(e)===NH};Ho.isMemo=function(e){return Df(e)===IH};Ho.isPortal=function(e){return Df(e)===ype};Ho.isProfiler=function(e){return Df(e)===CH};Ho.isStrictMode=function(e){return Df(e)===EH};Ho.isSuspense=function(e){return Df(e)===RH};Ho.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===SH||e===TH||e===CH||e===EH||e===RH||e===FOn||typeof e=="object"&&e!==null&&(e.$$typeof===NH||e.$$typeof===IH||e.$$typeof===wH||e.$$typeof===xH||e.$$typeof===OH||e.$$typeof===jOn||e.$$typeof===UOn||e.$$typeof===HOn||e.$$typeof===BOn)};Ho.typeOf=Df;jKe.exports=Ho;var zOn=jKe.exports,HKe=zOn,VOn={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},GOn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zKe={};zKe[HKe.ForwardRef]=VOn;zKe[HKe.Memo]=GOn;var bpe=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=m.createContext(null)):m.createContext(null);bpe.Consumer;var WOn=bpe.Provider,YOn=WOn,qOn=bpe;function Fr(){var e=m.useContext(qOn);return FKe(e),e}var $oe;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})($oe||($oe={}));var Foe;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Foe||(Foe={}));function VKe(e){var n=function(r){var i=Fr(),o=r.value,a=r.children,s=qO(r,["value","children"]),l=typeof o=="string"?new Date(o||0):o,c=e==="formatDate"?i.formatDateToParts(l,s):i.formatTimeToParts(l,s);return a(c)};return n.displayName=Foe[e],n}function sL(e){var n=function(r){var i=Fr(),o=r.value,a=r.children,s=qO(r,["value","children"]),l=i[e](o,s);if(typeof a=="function")return a(l);var c=i.textComponent||m.Fragment;return m.createElement(c,null,l)};return n.displayName=$oe[e],n}function GKe(e){return e&&Object.keys(e).reduce(function(n,r){var i=e[r];return n[r]=MKe(i)?$On(i):i,n},{})}var TRe=function(e,n,r,i){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var s=GKe(i),l=koe.apply(void 0,rs([e,n,r,s],o,!1));return Array.isArray(l)?m.Children.toArray(l):l},ORe=function(e,n){var r=e.defaultRichTextElements,i=qO(e,["defaultRichTextElements"]),o=GKe(r),a=LOn(yr(yr(yr({},BKe),i),{defaultRichTextElements:o}),n),s={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o};return yr(yr({},a),{formatMessage:TRe.bind(null,s,a.formatters),$t:TRe.bind(null,s,a.formatters)})};function lK(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var KOn=function(e){us(n,e);function n(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=DKe(),r.state={cache:r.cache,intl:ORe(lK(r.props),r.cache),prevConfig:lK(r.props)},r}return n.getDerivedStateFromProps=function(r,i){var o=i.prevConfig,a=i.cache,s=lK(r);return Loe(o,s)?null:{intl:ORe(s,a),prevConfig:s}},n.prototype.render=function(){return FKe(this.state.intl),m.createElement(YOn,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=BKe,n}(m.PureComponent);function XOn(e,n){var r=e.values,i=qO(e,["values"]),o=n.values,a=qO(n,["values"]);return Loe(o,r)&&Loe(i,a)}function WKe(e){var n=Fr(),r=n.formatMessage,i=n.textComponent,o=i===void 0?m.Fragment:i,a=e.id,s=e.description,l=e.defaultMessage,c=e.values,u=e.children,d=e.tagName,f=d===void 0?o:d,p=e.ignoreTag,h={id:a,description:s,defaultMessage:l},g=r(h,c,{ignoreTag:p});return typeof u=="function"?u(Array.isArray(g)?g:[g]):f?m.createElement(f,null,m.Children.toArray(g)):m.createElement(m.Fragment,null,g)}WKe.displayName="FormattedMessage";var Dh=m.memo(WKe,XOn);Dh.displayName="MemoizedFormattedMessage";sL("formatDate");sL("formatTime");sL("formatNumber");sL("formatList");sL("formatDisplayName");VKe("formatDate");VKe("formatTime");const $I=({onKaptchaChange:e,onKaptchaCheck:n})=>{const r=Fr(),[i,o]=m.useState(),[a,s]=m.useState(),l=async()=>{const d=await vTn();d.data.code===200&&(o(d.data.data.captchaUid),s(d.data.data.captchaImage))},c=async(d,f)=>{const p=await yTn(d,f);console.log("checkCaptcha response",p),p.data.code===200?n&&n(!0):n&&n(!1)};m.useEffect(()=>{l()},[]);const u=d=>{e&&(e(i,d.target.value),d.target.value&&d.target.value!==""&&d.target.value.trim().length===4?c(i,d.target.value):n&&n(!1))};return N.jsx(N.Fragment,{children:a&&N.jsxs(N.Fragment,{children:[N.jsx(Oi,{onChange:u,prefix:N.jsx(tGt,{}),placeholder:r.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),N.jsx("img",{src:a,alt:"captcha",onClick:l})]})})},QOn=({loginType:e,onKaptchaChange:n,onKaptchaCheck:r,onRememberChange:i})=>{const o=Fr();return m.useEffect(()=>{const a=localStorage.getItem(Kd);if(a)try{const{username:s,remember:l}=JSON.parse(a);s&&(i==null||i(s,!!l))}catch(s){console.error("Failed to parse saved credentials:",s)}},[i]),N.jsx(N.Fragment,{children:e==="account"&&N.jsxs("div",{children:[N.jsx(eo,{name:"username",fieldProps:{size:"large",prefix:N.jsx(qVe,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const a=localStorage.getItem(Kd);if(a)try{const s=JSON.parse(a),{username:l,...c}=s;console.log("username",l),console.log("rest",c),localStorage.setItem(Kd,JSON.stringify(c))}catch(s){console.error("Failed to parse saved credentials:",s)}}},placeholder:o.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:N.jsx(Dh,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),N.jsx(eo.Password,{name:"password",fieldProps:{size:"large",prefix:N.jsx(lw,{className:"prefixIcon"})},placeholder:o.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:N.jsx(Dh,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),N.jsx(mi.Item,{name:"captchaCode",rules:[{required:!0,message:o.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:N.jsx($I,{onKaptchaChange:n,onKaptchaCheck:r})})]})})};async function ZOn(e){return so("/auth/v1/login",{method:"POST",data:{...e,client:xo}})}async function Spe(e){return so("/auth/v1/send/mobile",{method:"POST",data:{...e,client:xo}})}async function YKe(e){return so("/auth/v1/send/email",{method:"POST",data:{...e,client:xo}})}async function JOn(e){return so("/auth/v1/login/mobile",{method:"POST",data:{...e,client:xo}})}async function eRn(e,n){return so("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:n,client:xo}})}async function tRn(e){return so("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:xo}})}async function nRn(e){return so("/api/v1/user/logout",{method:"POST",data:{client:xo}})}const rRn=({loginType:e,onKaptchaChange:n,onKaptchaCheck:r,onRememberChange:i})=>{const o=Fr(),[a,s]=m.useState(""),[l,c]=m.useState(""),[u,d]=m.useState(!1),[f,p]=m.useState(!1);m.useEffect(()=>{if(f)return;const _=localStorage.getItem(Kd);if(_)try{const{mobile:S}=JSON.parse(_);S&&(i==null||i(S),p(!0))}catch(S){console.error("Failed to parse saved credentials:",S)}},[i,f]);const h=async(_,S)=>{s(_),c(S),n&&n(_,S)},g=async _=>{d(_),r&&r(_)},v=[{label:o.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:o.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:o.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:o.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:o.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:o.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:o.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:o.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:o.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:o.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:o.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:o.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:o.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:o.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:o.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:o.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:o.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:o.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:o.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:o.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:o.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:o.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],y=_=>{const S=_.value.includes("-")?_.value.split("-")[0]:_.value;return N.jsxs("div",{children:[N.jsx("span",{role:"img","aria-label":_.label,style:{marginRight:8},children:_.icon}),_.label," (+",S,")"]})};return N.jsx(N.Fragment,{children:e==="mobile"&&N.jsxs(N.Fragment,{children:[N.jsxs(Tde,{gutter:16,children:[N.jsx(SA,{span:10,children:N.jsx(hC,{name:"country",options:v,fieldProps:{size:"large",placeholder:o.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:y},initialValue:"86"})}),N.jsx(SA,{span:14,children:N.jsx(eo,{fieldProps:{size:"large",prefix:N.jsx(Ik,{className:"prefixIcon"}),onChange:()=>{p(!0)},onClear:()=>{console.log("onClear");const _=localStorage.getItem(Kd);if(_)try{const S=JSON.parse(_),{mobile:b,...E}=S;console.log("saved:",b,S),localStorage.setItem(Kd,JSON.stringify(E))}catch(S){console.error("Failed to parse saved credentials:",S)}}},name:"mobile",placeholder:o.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:N.jsx(Dh,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:N.jsx(Dh,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),N.jsx(mi.Item,{name:"captchaCode",rules:[{required:!0,message:o.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:N.jsx($I,{onKaptchaChange:h,onKaptchaCheck:g})}),N.jsx(Lk,{fieldProps:{size:"large",prefix:N.jsx(lw,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!u},placeholder:o.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(_,S)=>_?`${S} ${o.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:o.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:N.jsx(Dh,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async _=>{if(console.log("mobile:",_),_&&_.length===11){const b=await Spe({mobile:_,type:$yt,captchaUid:a,captchaCode:l,platform:Ep});if(console.log("sendMobileCode:",b.data),b.data.code!==200){Nt.error(o.formatMessage({id:b.data.message,defaultMessage:b.data.message}));return}Nt.success(o.formatMessage({id:b.data.message,defaultMessage:b.data.message}))}else Nt.error("手机号格式错误")}}),N.jsx(V7e,{message:N.jsx(Dh,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},iRn=({loginType:e})=>{const n=Fr(),r=Af(),i=ws(h=>h.setUserInfo),o=GD(h=>h.setAccessToken),{deviceUid:a,setDeviceUid:s}=ws(h=>({deviceUid:h.deviceUid,setDeviceUid:h.setDeviceUid})),[l,c]=m.useState("login"),[u,d]=m.useState("loading"),f=async h=>{console.log("handleScanLogin values: ",h),Nt.loading(n.formatMessage({id:"logging",defaultMessage:"logging..."}));const g=await tRn({...h});console.log("LoginMobileResult scanLogin:",g.data),g.data.code===200?(Nt.destroy(),Nt.success(n.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),i(g.data.data.user),o(g.data.data.accessToken),r("/chat"),Nie()):(Nt.destroy(),Nt.error(g.data.message))},p=async h=>{if(e!="scan")return;const g=await eRn(a,h);if(g.data.code===200){const v=g.data.data;if(console.log("handleScanQuery status: ",v.status),v.status===Hyt)d("active"),c("deviceUid="+v.deviceUid+"&code="+v.content);else if(v.status===zyt)d("scanned");else if(v.status===Gyt)d("expired");else if(v.status===Vyt){if(v.receiver===void 0||v.receiver==="")return;let y={mobile:v.receiver,code:v.content,platform:Ep};console.log("login scan info:",y),await f(y)}}else Nt.error(g.data.message)};return m.useEffect(()=>{console.log("scan deviceUid:",a),(a===void 0||a==="")&&s(Q7()),p(!0);const h=setInterval(()=>{p(!1)},3e3);return()=>{clearInterval(h)}},[e,a]),N.jsx(N.Fragment,{children:e==="scan"&&N.jsx(N.Fragment,{children:N.jsx(ZVe,{style:{margin:"auto"},value:l,status:u,onRefresh:()=>{console.log("onRefresh"),p(!0)}})})})},qKe=()=>{const{token:e}=cu.useToken(),{isCustomServer:n,setIsCustomServer:r}=m.useContext(Xl),[i]=mi.useForm(),[o,a]=m.useState(!1),[s,l]=m.useState(""),[c,u]=m.useState(""),d=Fr(),f=()=>{console.log("switch server"),r(g=>!g)};m.useEffect(()=>{s&&s.length>0&&(i.setFieldsValue({apiUrl:s}),console.log("apiUrl:",s))},[s]),m.useEffect(()=>{if(n){const g=localStorage.getItem(eT);g==="true"&&(a(!0),i.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",g);const v=localStorage.getItem(XM);v&&i.setFieldsValue({apiUrl:fx(v)});const y=localStorage.getItem(QM);y&&i.setFieldsValue({websocketUrl:fx(y)})}},[n]);const p=g=>{if(console.log("handleCustomServerChange e:",g),a(g.target.checked),g.target.checked){const v=localStorage.getItem(XM);v&&i.setFieldsValue({apiUrl:fx(v)});const y=localStorage.getItem(QM);y&&i.setFieldsValue({websocketUrl:fx(y)}),console.log("initData apiUrl:",v,"websocketUrl:",y)}else localStorage.setItem(eT,"false")},h=(g,v)=>(console.log("props:",g,v),N.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[N.jsx(qn,{icon:N.jsx(Tzt,{}),onClick:f,children:d.formatMessage({id:"server.button.back"})},"back"),N.jsx(qn,{type:"primary",onClick:()=>{let y=g.form.getFieldValue("apiUrl");y=fx(y.trim());let _=g.form.getFieldValue("websocketUrl");_=fx(_.trim()),y&&y.trim().length>0&&_&&_.trim().length>0?(localStorage.setItem(XM,y),localStorage.setItem(QM,_),localStorage.setItem(eT,"true"),Nt.success(d.formatMessage({id:"server.save.success"}))):Nt.error("请输入正确的服务器地址")},children:d.formatMessage({id:"server.button.save"})},"submit"),N.jsx(qn,{onClick:()=>{var y;(y=g.form)==null||y.resetFields(),l(""),localStorage.setItem(eT,"false"),localStorage.setItem(XM,""),localStorage.setItem(QM,""),Nt.success(d.formatMessage({id:"server.reset.success"}))},children:d.formatMessage({id:"server.button.reset"})},"reset"),N.jsx(qn,{onClick:()=>{wA("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:d.formatMessage({id:"server.button.help"})},"help")]}));return N.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:N.jsxs(mi,{className:"ant-pro-form-server-main",form:i,submitter:{render:h},children:[N.jsx(rH,{name:"isCustomServerEnabled",fieldProps:{onChange:p},children:d.formatMessage({id:"server.custom.enable"})}),o&&N.jsxs(N.Fragment,{children:[N.jsx(eo,{name:"apiUrl",label:d.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!o,placeholder:d.formatMessage({id:"server.api.url.placeholder"}),onChange:g=>l(g.target.value)}}),N.jsx(eo,{name:"websocketUrl",label:d.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!o,placeholder:d.formatMessage({id:"server.websocket.url.placeholder"}),onChange:g=>u(g.target.value)}})]})]})})},oRn=({isModel:e=!1})=>{const n=Fr(),[r]=mi.useForm(),i=Af(),{isLoggedIn:o}=m.useContext(Xl),{token:a}=cu.useToken(),[s,l]=m.useState("/agenticflow/logo.png"),[c,u]=m.useState(""),[d,f]=m.useState(""),p=localStorage.getItem(Vee),[h]=m.useState(p||"/"),[g,v]=m.useState("account"),y=ws(K=>K.setUserInfo),_=GD(K=>K.setAccessToken),{isCustomServer:S,setIsCustomServer:b}=m.useContext(Xl),[E,w]=m.useState(!1);m.useEffect(()=>{o&&!e&&i(h)},[o,i,e]);const C=K=>{console.log(`onPrivacyProtocolChange checked = ${K.target.checked}`),w(K.target.checked);const H=localStorage.getItem(Kd);if(H)try{const{remember:G}=JSON.parse(H);G&&setTimeout(()=>{r.setFieldsValue({remember:G})},0)}catch(G){console.error("Failed to parse saved credentials:",G)}},x=()=>{wA(uyt)},[T,R]=m.useState(""),O=async(K,H)=>{R(K),r.setFieldValue("captchaCode",H)},M=async K=>{console.log("handleKaptchaCheck:",K)},P=async K=>{if(console.log("handleSubmit values: ",K,g),!E){Nt.error("请阅读并同意隐私协议");return}Nt.loading(n.formatMessage({id:"logging",defaultMessage:"logging..."}));const H=localStorage.getItem(Kd);let G=!1;if(H)try{G=JSON.parse(H).remember}catch(le){console.error("Failed to parse saved credentials:",le)}localStorage.setItem(Kd,JSON.stringify({username:K.username,remember:G}));const Q=await ZOn({...K});console.log("LoginResult:",Q.data),Q.data.code===200?(Nt.destroy(),Nt.success(n.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),G&&localStorage.setItem(Kd,JSON.stringify({username:K.username,password:K.password,remember:!0})),y(Q.data.data.user),_(Q.data.data.accessToken),e||i(h),Nie()):(Nt.destroy(),Nt.error(n.formatMessage({id:Q.data.message,defaultMessage:Q.data.message})))},k=K=>{r.setFieldsValue({mobile:K})},$=async K=>{if(!E){Nt.error(n.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const H=localStorage.getItem(Kd);let G={};if(H)try{G=JSON.parse(H)}catch(le){console.error("Failed to parse saved credentials:",le)}localStorage.setItem(Kd,JSON.stringify({...G,mobile:K.mobile}));const Q=await JOn({...K});console.log("LoginMobileResult:",Q),Q.data.code===200?(Nt.destroy(),Nt.success(n.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),y(Q.data.data.user),_(Q.data.data.accessToken),e||i(h),Nie()):(Nt.destroy(),Nt.error(n.formatMessage({id:Q.data.message,defaultMessage:Q.data.message})))},U=()=>{console.log("switch server"),b(K=>!K)},z=()=>{console.log("handleAnonymousLogin"),i("/anonymous")},D=()=>{if(_O)return{}},B=(K,H)=>{r.setFieldsValue({username:K,remember:H});const G=localStorage.getItem(Kd);if(G&&H)try{const{password:Q}=JSON.parse(G);Q&&r.setFieldsValue({password:Q})}catch(Q){console.error("Failed to parse saved credentials:",Q)}},Y=async()=>{var H,G,Q,le,Z,j,F;console.log("getConfig");const K=await b5e();(H=K==null?void 0:K.custom)!=null&&H.enabled?((G=K==null?void 0:K.custom)!=null&&G.logo?l((Q=K==null?void 0:K.custom)==null?void 0:Q.logo):l("/agenticflow/logo.png"),(le=K==null?void 0:K.custom)!=null&&le.name?u((Z=K==null?void 0:K.custom)==null?void 0:Z.name):u(n.formatMessage({id:"app.title"})),(j=K==null?void 0:K.custom)!=null&&j.description?f((F=K==null?void 0:K.custom)==null?void 0:F.description):f(n.formatMessage({id:"slogan"}))):(l("/agenticflow/logo.png"),u(n.formatMessage({id:"app.title"})),f(n.formatMessage({id:"slogan"}))),_5e()};m.useEffect(()=>{r8e(),Y()},[]);const q=[{key:"account",label:n.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:N.jsx(QOn,{loginType:g,onKaptchaChange:O,onKaptchaCheck:M,onRememberChange:B})},{key:"mobile",label:n.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:N.jsx(rRn,{loginType:g,onKaptchaChange:O,onKaptchaCheck:M,onRememberChange:k})}];return fyt&&q.push({key:"scan",label:n.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:N.jsx(iRn,{loginType:g})}),N.jsx(LU,{hashed:!1,children:N.jsxs("div",{style:{backgroundColor:a.colorBgContainer,textAlign:"center",height:"100%"},children:[!S&&N.jsxs(WYe,{form:r,contentStyle:{minWidth:400},logo:N.jsx("img",{alt:"logo",src:pyt}),title:hyt,initialValues:D(),onFinish:async K=>{if(console.log("login:",K),g==="account"){const H={username:K.username,password:K.password,captchaUid:T,captchaCode:K.captchaCode,platform:Ep};await P(H)}else if(g==="mobile"){const H={mobile:K.mobile,code:K.code,captchaUid:T,captchaCode:K.captchaCode,platform:Ep};await $(H)}else console.log("scan login type")},actions:_O&&N.jsxs(Ef,{children:[N.jsx(Dh,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),N.jsx(qn,{type:"link",onClick:z,children:n.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[N.jsx(Ek,{centered:!0,items:q,activeKey:g,onChange:K=>v(K)}),N.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[N.jsx(ow,{checked:E,onChange:C,children:N.jsx(qn,{size:"small",type:"link",onClick:x,children:n.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),dyt&&N.jsx(qn,{type:"link",style:{float:"right",marginBottom:24},onClick:U,children:n.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),S&&N.jsx(qKe,{})]})})},Boe=({isModel:e=!1})=>N.jsx(J9,{children:N.jsx(oRn,{isModel:e})}),aRn=()=>{Af();const{token:e}=cu.useToken();return m.useState("phone"),Hd(e.colorTextBase,.2),N.jsx(LU,{hashed:!1,children:N.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:N.jsxs(WYe,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[N.jsxs(N.Fragment,{children:[N.jsx(eo,{name:"username",fieldProps:{size:"large",prefix:N.jsx(qVe,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),N.jsx(eo.Password,{name:"password",fieldProps:{size:"large",prefix:N.jsx(lw,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),N.jsxs("div",{style:{marginBlockEnd:24},children:[N.jsx(rH,{noStyle:!0,name:"autoLogin",children:"自动登录"}),N.jsx(OXt,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};function MH(){const[e,n]=m.useState(!0);return m.useEffect(()=>{function r(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&n(!0)}function i(){console.log("networkStatus offline:",!navigator.onLine),n(!1)}return window.addEventListener("online",r),window.addEventListener("offline",i),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}},[]),e}function Vp(){const e=Fr();return{translateString:i=>i==null?i:i&&i.startsWith(hbe)?e.formatMessage({id:i,defaultMessage:i}):i,translateStringTranct:i=>i==null?i:i!=null&&i.startsWith(hbe)?G0e(e.formatMessage({id:i}),10):G0e(i,10)}}function Epe(){const e=MH(),{translateString:n}=Vp(),[r,i]=m.useState(!1),[o,a]=m.useState(!1),s=async(c,u)=>{Yl?await yqt()?console.log("handleNewMessage isWindowActive"):_qt(c,u):o?l(c,u):console.log("handleNewMessage not isBrowserTabHidden")},l=(c,u)=>{console.log("showWebNotification");var d=new Notification(c,{body:u,icon:"./logo.png"});d.onshow=function(){console.log("Notification shown")},d.onclick=function(){console.log("notification click")},d.onclose=function(){console.log("notification close")},d.onerror=function(){console.log("notification error")}};return m.useEffect(()=>(Yl||(window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(c){i(c==="granted")}):(console.log("已经授权或浏览器不支持通知"),i(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?a(!0):document.visibilityState==="visible"&&a(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),m.useEffect(()=>{if(console.log("useNotification useEffect isNetworkOnline",e),e){const c=localStorage.getItem(A2);(c==null||c==="true")&&s(n("i18n.tip.title"),n("i18n.tip.network.disconnected"))}else{const c=localStorage.getItem(A2);(c==null||c==="true")&&s(n("i18n.tip.title"),n("i18n.tip.network.connected"))}},[e]),{isNotificationGranted:r,showWebNotification:l,showNotification:s}}var ey={},KKe={exports:{}},XKe={exports:{}};(function(e){var n=tqe;function r(i){if(Array.isArray(i))return n(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(XKe);var sRn=XKe.exports,QKe={exports:{}};(function(e){function n(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(QKe);var ZKe=QKe.exports,JKe={exports:{}};(function(e){function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(JKe);var lRn=JKe.exports;(function(e){var n=sRn,r=ZKe,i=kfe,o=lRn;function a(s){return n(s)||r(s)||i(s)||o()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(KKe);var eXe=KKe.exports,PH={};Object.defineProperty(PH,"__esModule",{value:!0});PH.default=cRn;function cRn(e,n){var r=Object.assign({},e);return Array.isArray(n)&&n.forEach(function(i){delete r[i]}),r}var Cpe={};const cS=HD(ENt);var AH={},uRn=Qs.default;Object.defineProperty(AH,"__esModule",{value:!0});AH.default=fRn;var dRn=uRn(m);function fRn(e,n,r){var i=dRn.useRef({});return(!("value"in i.current)||r(i.current.condition,n))&&(i.current.value=e(),i.current.condition=n),i.current.value}var DH={},tXe={exports:{}};(function(e){var n=QYe,r=ZKe,i=kfe,o=rqe;function a(s){return n(s)||r(s)||i(s)||o()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(tXe);var pRn=tXe.exports,wpe={};Object.defineProperty(wpe,"__esModule",{value:!0});wpe.default=hRn;function hRn(e,n){for(var r=e,i=0;i<n.length;i+=1){if(r==null)return;r=r[n[i]]}return r}var lL=di.default;Object.defineProperty(DH,"__esModule",{value:!0});DH.default=I6;DH.merge=_Rn;var nXe=lL(zC),gRn=lL(VC),rXe=lL(eXe),mRn=lL(pRn),joe=lL(wpe);function iXe(e,n,r,i){if(!n.length)return r;var o=(0,mRn.default)(n),a=o[0],s=o.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=(0,rXe.default)(e):l=(0,gRn.default)({},e),i&&r===void 0&&s.length===1?delete l[a][s[0]]:l[a]=iXe(l[a],s,r,i),l}function I6(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return n.length&&i&&r===void 0&&!(0,joe.default)(e,n.slice(0,-1))?e:iXe(e,n,r,i)}function vRn(e){return(0,nXe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function RRe(e){return Array.isArray(e)?[]:{}}var yRn=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function _Rn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=RRe(n[0]);return n.forEach(function(o){function a(s,l){var c=new Set(l),u=(0,joe.default)(o,s),d=Array.isArray(u);if(d||vRn(u)){if(!c.has(u)){c.add(u);var f=(0,joe.default)(i,s);d?i=I6(i,s,[]):(!f||(0,nXe.default)(f)!=="object")&&(i=I6(i,s,RRe(u))),yRn(u).forEach(function(p){a([].concat((0,rXe.default)(s),[p]),c)})}}else i=I6(i,s,u)}a([])}),i}var bp={},oXe=Qs.default;Object.defineProperty(bp,"__esModule",{value:!0});bp.devUseWarning=bp.default=bp.WarningContext=void 0;bp.noop=xpe;bp.resetWarned=ERn;var bRn=oXe(m),SRn=oXe(wd);function xpe(){}function ERn(){(0,SRn.resetWarned)()}let CRn=xpe;bp.WarningContext=bRn.createContext({});bp.devUseWarning=()=>{const e=()=>{};return e.deprecated=xpe,e};bp.default=CRn;var kH={};Object.defineProperty(kH,"__esModule",{value:!0});kH.default=void 0;var wRn=m;kH.default=(0,wRn.createContext)(void 0);var aXe={},LH={},xRn=di.default;Object.defineProperty(LH,"__esModule",{value:!0});LH.changeConfirmLocale=TRn;LH.getConfirmLocale=ORn;var Tpe=xRn(HC);let N6=Object.assign({},Tpe.default.Modal),M6=[];const IRe=()=>M6.reduce((e,n)=>Object.assign(Object.assign({},e),n),Tpe.default.Modal);function TRn(e){if(e){const n=Object.assign({},e);return M6.push(n),N6=IRe(),()=>{M6=M6.filter(r=>r!==n),N6=IRe()}}N6=Object.assign({},Tpe.default.Modal)}function ORn(){return N6}var FI={};Object.defineProperty(FI,"__esModule",{value:!0});FI.default=void 0;var RRn=m;const IRn=(0,RRn.createContext)(void 0);FI.default=IRn;var $H={},sXe=di.default,NRn=Qs.default;Object.defineProperty($H,"__esModule",{value:!0});$H.default=void 0;var cK=NRn(m),MRn=sXe(FI),NRe=sXe(HC);const PRn=(e,n)=>{const r=cK.useContext(MRn.default),i=cK.useMemo(()=>{var a;const s=n||NRe.default[e],l=(a=r==null?void 0:r[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),l||{})},[e,n,r]),o=cK.useMemo(()=>{const a=r==null?void 0:r.locale;return r!=null&&r.exist&&!a?NRe.default.locale:a},[r]);return[i,o]};$H.default=PRn;(function(e){"use client";var n=di.default,r=Qs.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return s.default}});var i=r(m),o=LH,a=n(FI),s=n($H);e.ANT_MARK="internalMark";const l=c=>{const{locale:u={},children:d,_ANT_MARK__:f}=c;i.useEffect(()=>(0,o.changeConfirmLocale)(u==null?void 0:u.Modal),[u]);const p=i.useMemo(()=>Object.assign(Object.assign({},u),{exist:!0}),[u]);return i.createElement(a.default.Provider,{value:p},d)};e.default=l})(aXe);var vm={},Ope={},km={};Object.defineProperty(km,"__esModule",{value:!0});km.defaultPresetColors=km.default=void 0;const ARn=km.defaultPresetColors={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"},DRn=Object.assign(Object.assign({},ARn),{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});km.default=DRn;var Rpe={};const cL=HD(PNt);Object.defineProperty(Rpe,"__esModule",{value:!0});Rpe.default=kRn;var uK=cL;function kRn(e,n){let{generateColorPalettes:r,generateNeutralColorPalettes:i}=n;const{colorSuccess:o,colorWarning:a,colorError:s,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=r(c),p=r(o),h=r(a),g=r(s),v=r(l),y=i(u,d),_=e.colorLink||e.colorInfo,S=r(_),b=new uK.FastColor(g[1]).mix(new uK.FastColor(g[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:b,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new uK.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var Ipe={},FH={};Object.defineProperty(FH,"__esModule",{value:!0});FH.default=void 0;const LRn=e=>{let n=e,r=e,i=e,o=e;return e<6&&e>=5?n=e+1:e<16&&e>=6?n=e+2:e>=16&&(n=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?i=1:e>=6&&(i=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:i,borderRadiusSM:r,borderRadiusLG:n,borderRadiusOuter:o}};FH.default=LRn;var $Rn=di.default;Object.defineProperty(Ipe,"__esModule",{value:!0});Ipe.default=BRn;var FRn=$Rn(FH);function BRn(e){const{motionUnit:n,motionBase:r,borderRadius:i,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+n).toFixed(1)}s`,motionDurationMid:`${(r+n*2).toFixed(1)}s`,motionDurationSlow:`${(r+n*3).toFixed(1)}s`,lineWidthBold:o+1},(0,FRn.default)(i))}var BH={};Object.defineProperty(BH,"__esModule",{value:!0});BH.default=void 0;const jRn=e=>{const{controlHeight:n}=e;return{controlHeightSM:n*.75,controlHeightXS:n*.5,controlHeightLG:n*1.25}};BH.default=jRn;var jH={},uL={};Object.defineProperty(uL,"__esModule",{value:!0});uL.default=URn;uL.getLineHeight=lXe;function lXe(e){return(e+8)/e}function URn(e){const n=new Array(10).fill(null).map((r,i)=>{const o=i-1,a=e*Math.pow(Math.E,o/5),s=i>1?Math.floor(a):Math.ceil(a);return Math.floor(s/2)*2});return n[1]=e,n.map(r=>({size:r,lineHeight:lXe(r)}))}var HRn=di.default;Object.defineProperty(jH,"__esModule",{value:!0});jH.default=void 0;var zRn=HRn(uL);const VRn=e=>{const n=(0,zRn.default)(e),r=n.map(d=>d.size),i=n.map(d=>d.lineHeight),o=r[1],a=r[0],s=r[2],l=i[1],c=i[0],u=i[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:s,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*s),fontHeightSM:Math.round(c*a),lineHeightHeading1:i[6],lineHeightHeading2:i[5],lineHeightHeading3:i[4],lineHeightHeading4:i[3],lineHeightHeading5:i[2]}};jH.default=VRn;var Npe={};Object.defineProperty(Npe,"__esModule",{value:!0});Npe.default=GRn;function GRn(e){const{sizeUnit:n,sizeStep:r}=e;return{sizeXXL:n*(r+8),sizeXL:n*(r+4),sizeLG:n*(r+2),sizeMD:n*(r+1),sizeMS:n*r,size:n*r,sizeSM:n*(r-1),sizeXS:n*(r-2),sizeXXS:n*(r-3)}}var QO={},ZO={};Object.defineProperty(ZO,"__esModule",{value:!0});ZO.getSolidColor=ZO.getAlphaColor=void 0;var cXe=cL;const WRn=(e,n)=>new cXe.FastColor(e).setA(n).toRgbString();ZO.getAlphaColor=WRn;const YRn=(e,n)=>new cXe.FastColor(e).darken(n).toHexString();ZO.getSolidColor=YRn;Object.defineProperty(QO,"__esModule",{value:!0});QO.generateNeutralColorPalettes=QO.generateColorPalettes=void 0;var qRn=Zk,oc=ZO;const KRn=e=>{const n=(0,qRn.generate)(e);return{1:n[0],2:n[1],3:n[2],4:n[3],5:n[4],6:n[5],7:n[6],8:n[4],9:n[5],10:n[6]}};QO.generateColorPalettes=KRn;const XRn=(e,n)=>{const r=e||"#fff",i=n||"#000";return{colorBgBase:r,colorTextBase:i,colorText:(0,oc.getAlphaColor)(i,.88),colorTextSecondary:(0,oc.getAlphaColor)(i,.65),colorTextTertiary:(0,oc.getAlphaColor)(i,.45),colorTextQuaternary:(0,oc.getAlphaColor)(i,.25),colorFill:(0,oc.getAlphaColor)(i,.15),colorFillSecondary:(0,oc.getAlphaColor)(i,.06),colorFillTertiary:(0,oc.getAlphaColor)(i,.04),colorFillQuaternary:(0,oc.getAlphaColor)(i,.02),colorBgSolid:(0,oc.getAlphaColor)(i,1),colorBgSolidHover:(0,oc.getAlphaColor)(i,.75),colorBgSolidActive:(0,oc.getAlphaColor)(i,.95),colorBgLayout:(0,oc.getSolidColor)(r,4),colorBgContainer:(0,oc.getSolidColor)(r,0),colorBgElevated:(0,oc.getSolidColor)(r,0),colorBgSpotlight:(0,oc.getAlphaColor)(i,.85),colorBgBlur:"transparent",colorBorder:(0,oc.getSolidColor)(r,15),colorBorderSecondary:(0,oc.getSolidColor)(r,6)}};QO.generateNeutralColorPalettes=XRn;var dL=di.default;Object.defineProperty(Ope,"__esModule",{value:!0});Ope.default=rIn;var yE=Zk,QRn=km,ZRn=dL(Rpe),JRn=dL(Ipe),eIn=dL(BH),tIn=dL(jH),nIn=dL(Npe),MRe=QO;function rIn(e){yE.presetPrimaryColors.pink=yE.presetPrimaryColors.magenta,yE.presetPalettes.pink=yE.presetPalettes.magenta;const n=Object.keys(QRn.defaultPresetColors).map(r=>{const i=e[r]===yE.presetPrimaryColors[r]?yE.presetPalettes[r]:(0,yE.generate)(e[r]);return new Array(10).fill(1).reduce((o,a,s)=>(o[`${r}-${s+1}`]=i[s],o[`${r}${s+1}`]=i[s],o),{})}).reduce((r,i)=>(r=Object.assign(Object.assign({},r),i),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),n),(0,ZRn.default)(e,{generateColorPalettes:MRe.generateColorPalettes,generateNeutralColorPalettes:MRe.generateNeutralColorPalettes})),(0,tIn.default)(e.fontSize)),(0,nIn.default)(e)),(0,eIn.default)(e)),(0,JRn.default)(e))}var Mpe=di.default;Object.defineProperty(vm,"__esModule",{value:!0});vm.defaultTheme=vm.defaultConfig=vm.DesignTokenContext=void 0;var iIn=Mpe(m),oIn=cS,aIn=Mpe(Ope),PRe=Mpe(km);vm.defaultTheme=(0,oIn.createTheme)(aIn.default);const sIn=vm.defaultConfig={token:PRe.default,override:{override:PRe.default},hashed:!0};vm.DesignTokenContext=iIn.default.createContext(sIn);var tf={},lIn=Qs.default;Object.defineProperty(tf,"__esModule",{value:!0});tf.defaultPrefixCls=tf.defaultIconPrefixCls=tf.Variants=tf.ConfigContext=tf.ConfigConsumer=void 0;var cIn=lIn(m);const ARe=tf.defaultPrefixCls="ant",uIn=tf.defaultIconPrefixCls="anticon";tf.Variants=["outlined","borderless","filled"];const dIn=(e,n)=>n||(e?`${ARe}-${e}`:ARe),fIn=tf.ConfigContext=cIn.createContext({getPrefixCls:dIn,iconPrefixCls:uIn}),{Consumer:pIn}=fIn;tf.ConfigConsumer=pIn;var UH={},uXe=di.default;Object.defineProperty(UH,"__esModule",{value:!0});UH.getStyle=dXe;UH.registerTheme=vIn;var DRe=Zk,dK=cL,hIn=uXe(aH),gIn=mw;uXe(bp);const mIn=`-ant-${Date.now()}-${Math.random()}`;function dXe(e,n){const r={},i=(s,l)=>{let c=s.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(s,l)=>{const c=new dK.FastColor(s),u=(0,DRe.generate)(c.toRgbString());r[`${l}-color`]=i(c),r[`${l}-color-disabled`]=u[1],r[`${l}-color-hover`]=u[4],r[`${l}-color-active`]=u[6],r[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),r[`${l}-color-deprecated-bg`]=u[0],r[`${l}-color-deprecated-border`]=u[2]};if(n.primaryColor){o(n.primaryColor,"primary");const s=new dK.FastColor(n.primaryColor),l=(0,DRe.generate)(s.toRgbString());l.forEach((u,d)=>{r[`primary-${d+1}`]=u}),r["primary-color-deprecated-l-35"]=i(s,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=i(s,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=i(s,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=i(s,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=i(s,u=>u.setA(u.a*.12));const c=new dK.FastColor(l[0]);r["primary-color-active-deprecated-f-30"]=i(c,u=>u.setA(u.a*.3)),r["primary-color-active-deprecated-d-02"]=i(c,u=>u.darken(2))}return n.successColor&&o(n.successColor,"success"),n.warningColor&&o(n.warningColor,"warning"),n.errorColor&&o(n.errorColor,"error"),n.infoColor&&o(n.infoColor,"info"),`
|
||
:root {
|
||
${Object.keys(r).map(s=>`--${e}-${s}: ${r[s]};`).join(`
|
||
`)}
|
||
}
|
||
`.trim()}function vIn(e,n){const r=dXe(e,n);(0,hIn.default)()&&(0,gIn.updateCSS)(r,`${mIn}-dynamic-theme`)}var mC={},yIn=Qs.default;Object.defineProperty(mC,"__esModule",{value:!0});mC.default=mC.DisabledContextProvider=void 0;var Uoe=yIn(m);const Hoe=Uoe.createContext(!1),_In=e=>{let{children:n,disabled:r}=e;const i=Uoe.useContext(Hoe);return Uoe.createElement(Hoe.Provider,{value:r??i},n)};mC.DisabledContextProvider=_In;mC.default=Hoe;var HH={},vC={},bIn=Qs.default;Object.defineProperty(vC,"__esModule",{value:!0});vC.default=vC.SizeContextProvider=void 0;var zoe=bIn(m);const Voe=zoe.createContext(void 0),SIn=e=>{let{children:n,size:r}=e;const i=zoe.useContext(Voe);return zoe.createElement(Voe.Provider,{value:r||i},n)};vC.SizeContextProvider=SIn;vC.default=Voe;var fXe=di.default;Object.defineProperty(HH,"__esModule",{value:!0});HH.default=void 0;var kRe=m,EIn=fXe(mC),CIn=fXe(vC);function wIn(){const e=(0,kRe.useContext)(EIn.default),n=(0,kRe.useContext)(CIn.default);return{componentDisabled:e,componentSize:n}}HH.default=wIn;var Ppe={},zH={},pXe=di.default;Object.defineProperty(zH,"__esModule",{value:!0});zH.default=void 0;var LRe=pXe(zC),xIn=pXe(wd);function TIn(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function o(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=i.has(a);if((0,xIn.default)(!c,"Warning: There may be circular references"),c)return!1;if(a===s)return!0;if(r&&l>1)return!1;i.add(a);var u=l+1;if(Array.isArray(a)){if(!Array.isArray(s)||a.length!==s.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],s[d],u))return!1;return!0}if(a&&s&&(0,LRe.default)(a)==="object"&&(0,LRe.default)(s)==="object"){var f=Object.keys(a);return f.length!==Object.keys(s).length?!1:f.every(function(p){return o(a[p],s[p],u)})}return!1}return o(e,n)}zH.default=TIn;var BI={};const hXe=HD(dMt);var Ape={},VH={};Object.defineProperty(VH,"__esModule",{value:!0});VH.PresetColors=void 0;VH.PresetColors=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return n.PresetColors}});var n=VH})(Ape);var Yh={},GH={},WH={};Object.defineProperty(WH,"__esModule",{value:!0});WH.default=void 0;WH.default="5.23.2";var OIn=di.default;Object.defineProperty(GH,"__esModule",{value:!0});GH.default=void 0;var RIn=OIn(WH);GH.default=RIn.default;var Dpe={},YH={};Object.defineProperty(YH,"__esModule",{value:!0});YH.default=void 0;var b4=cL;function fK(e){return e>=0&&e<=255}function IIn(e,n){const{r,g:i,b:o,a}=new b4.FastColor(e).toRgb();if(a<1)return e;const{r:s,g:l,b:c}=new b4.FastColor(n).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((r-s*(1-u))/u),f=Math.round((i-l*(1-u))/u),p=Math.round((o-c*(1-u))/u);if(fK(d)&&fK(f)&&fK(p))return new b4.FastColor({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new b4.FastColor({r,g:i,b:o,a:1}).toRgbString()}YH.default=IIn;var gXe=di.default;Object.defineProperty(Dpe,"__esModule",{value:!0});Dpe.default=PIn;var pK=cL,NIn=gXe(km),S4=gXe(YH),MIn=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function PIn(e){const{override:n}=e,r=MIn(e,["override"]),i=Object.assign({},n);Object.keys(NIn.default).forEach(p=>{delete i[p]});const o=Object.assign(Object.assign({},r),i),a=480,s=576,l=768,c=992,u=1200,d=1600;if(o.motion===!1){const p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:(0,S4.default)(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:(0,S4.default)(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:(0,S4.default)(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:(0,S4.default)(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.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:s-1,screenSM:s,screenSMMin:s,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
||
0 1px 2px -2px ${new pK.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||
0 3px 6px 0 ${new pK.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||
0 5px 12px 4px ${new pK.FastColor("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)"}),i)}var qH=di.default;Object.defineProperty(Yh,"__esModule",{value:!0});Yh.default=jIn;Yh.unitless=Yh.ignore=Yh.getComputedToken=void 0;var AIn=qH(m),DIn=cS,kIn=qH(GH),$Re=vm,LIn=qH(km),mXe=qH(Dpe),FRe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const $In=Yh.unitless={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},FIn=Yh.ignore={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},BIn={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},kpe=(e,n,r)=>{const i=r.getDerivativeToken(e),{override:o}=n,a=FRe(n,["override"]);let s=Object.assign(Object.assign({},i),{override:o});return s=(0,mXe.default)(s),a&&Object.entries(a).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=FRe(u,["theme"]);let p=f;d&&(p=kpe(Object.assign(Object.assign({},s),f),{override:f},d)),s[c]=p}),s};Yh.getComputedToken=kpe;function jIn(){const{token:e,hashed:n,theme:r,override:i,cssVar:o}=AIn.default.useContext($Re.DesignTokenContext),a=`${kIn.default}-${n||""}`,s=r||$Re.defaultTheme,[l,c,u]=(0,DIn.useCacheToken)(s,[LIn.default,e],{salt:a,override:i,getComputedToken:kpe,formatToken:mXe.default,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:$In,ignore:FIn,preserve:BIn}});return[s,u,n?c:"",l,o]}var p0={},ts={};Object.defineProperty(ts,"__esModule",{value:!0});ts.textEllipsis=ts.resetIcon=ts.resetComponent=ts.operationUnit=ts.genLinkStyle=ts.genIconStyle=ts.genFocusStyle=ts.genFocusOutline=ts.genCommonStyle=ts.clearFix=void 0;var UIn=cS;ts.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const HIn=function(e){let n=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:n?"inherit":e.fontFamily}};ts.resetComponent=HIn;const vXe=()=>({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"}});ts.resetIcon=vXe;const zIn=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});ts.clearFix=zIn;const VIn=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"}}});ts.genLinkStyle=VIn;const GIn=(e,n,r,i)=>{const o=`[class^="${n}"], [class*=" ${n}"]`,a=r?`.${r}`:o,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return i!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},l),s),{[o]:s})}};ts.genCommonStyle=GIn;const yXe=(e,n)=>({outline:`${(0,UIn.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:n??1,transition:"outline-offset 0s, outline 0s"});ts.genFocusOutline=yXe;const _Xe=(e,n)=>({"&:focus-visible":Object.assign({},yXe(e,n))});ts.genFocusStyle=_Xe;const WIn=e=>({[`.${e}`]:Object.assign(Object.assign({},vXe()),{[`.${e} .${e}-icon`]:{display:"block"}})});ts.genIconStyle=WIn;const YIn=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},_Xe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});ts.operationUnit=YIn;var qIn=Qs.default;Object.defineProperty(p0,"__esModule",{value:!0});p0.genSubStyleComponent=p0.genStyleHooks=p0.genComponentStyleHook=void 0;var BRe=m,KIn=hXe,hK=tf,gK=ts,jRe=qIn(Yh);const{genStyleHooks:XIn,genComponentStyleHook:QIn,genSubStyleComponent:ZIn}=(0,KIn.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=(0,BRe.useContext)(hK.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,n,r,i,o]=(0,jRe.default)();return{theme:e,realToken:n,hashId:r,token:i,cssVar:o}},useCSP:()=>{const{csp:e}=(0,BRe.useContext)(hK.ConfigContext);return e??{}},getResetStyles:(e,n)=>{var r;return[{"&":(0,gK.genLinkStyle)(e)},(0,gK.genIconStyle)((r=n==null?void 0:n.prefix.iconPrefixCls)!==null&&r!==void 0?r:hK.defaultIconPrefixCls)]},getCommonStyle:gK.genCommonStyle,getCompUnitless:()=>jRe.unitless});p0.genSubStyleComponent=ZIn;p0.genComponentStyleHook=QIn;p0.genStyleHooks=XIn;var Lpe={};Object.defineProperty(Lpe,"__esModule",{value:!0});Lpe.default=eNn;var JIn=Ape;function eNn(e,n){return JIn.PresetColors.reduce((r,i)=>{const o=e[`${i}1`],a=e[`${i}3`],s=e[`${i}6`],l=e[`${i}7`];return Object.assign(Object.assign({},r),n(i,{lightColor:o,lightBorderColor:a,darkColor:s,textColor:l}))},{})}var KH={},tNn=di.default;Object.defineProperty(KH,"__esModule",{value:!0});KH.default=void 0;var nNn=cS,rNn=ts,iNn=tNn(Yh);const oNn=(e,n)=>{const[r,i]=(0,iNn.default)();return(0,nNn.useStyleRegister)({theme:r,token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>n==null?void 0:n.nonce,layer:{name:"antd"}},()=>[(0,rNn.genIconStyle)(e)])};KH.default=oNn;(function(e){var n=di.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return d.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return o.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return i.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return d.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return l.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return l.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return l.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return a.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return i.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return i.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return i.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return r.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return s.default}});var r=cS,i=hXe,o=Ape,a=uL,s=n(Yh),l=p0,c=n(Lpe),u=n(KH),d=vm})(BI);var XH={},aNn=Qs.default;Object.defineProperty(XH,"__esModule",{value:!0});XH.default=void 0;var sNn=aNn(m);const lNn=Object.assign({},sNn),{useId:URe}=lNn,cNn=()=>"",uNn=typeof URe>"u"?cNn:URe;XH.default=uNn;var $pe=di.default;Object.defineProperty(Ppe,"__esModule",{value:!0});Ppe.default=gNn;var dNn=$pe(AH),fNn=$pe(zH),pNn=bp,HRe=BI,hNn=$pe(XH);function gNn(e,n,r){var i;(0,pNn.devUseWarning)("ConfigProvider");const o=e||{},a=o.inherit===!1||!n?Object.assign(Object.assign({},HRe.defaultConfig),{hashed:(i=n==null?void 0:n.hashed)!==null&&i!==void 0?i:HRe.defaultConfig.hashed,cssVar:n==null?void 0:n.cssVar}):n,s=(0,hNn.default)();return(0,dNn.default)(()=>{var l,c;if(!e)return n;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{u[p]=Object.assign(Object.assign({},u[p]),e.components[p])});const d=`css-var-${s.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(l,c)=>l.some((u,d)=>{const f=c[d];return!(0,fNn.default)(u,f,!0)}))}var Fpe={};const mNn=HD(HMt);var vNn=Qs.default;Object.defineProperty(Fpe,"__esModule",{value:!0});Fpe.default=bNn;var zRe=vNn(m),yNn=mNn,_Nn=BI;function bNn(e){const{children:n}=e,[,r]=(0,_Nn.useToken)(),{motion:i}=r,o=zRe.useRef(!1);return o.current=o.current||i===!1,o.current?zRe.createElement(yNn.Provider,{motion:i},n):n}var QH={},SNn=Qs.default;Object.defineProperty(QH,"__esModule",{value:!0});QH.default=void 0;SNn(m);QH.default=()=>null;var bXe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.useResetIconStyle}});var n=BI})(bXe);(function(e){"use client";var n=di.default,r=Qs.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return v.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return v.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return v.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return v.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return v.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var i=r(m),o=cS,a=n(AI),s=n(AH),l=DH,c=r(bp),u=n(kH),d=r(aXe),f=n(FI),p=n(HC),h=vm,g=n(km),v=tf,y=UH,_=mC,S=n(HH),b=n(Ppe),E=n(Fpe),w=n(QH),C=r(vC),x=n(bXe),T=function(K,H){var G={};for(var Q in K)Object.prototype.hasOwnProperty.call(K,Q)&&H.indexOf(Q)<0&&(G[Q]=K[Q]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,Q=Object.getOwnPropertySymbols(K);le<Q.length;le++)H.indexOf(Q[le])<0&&Object.prototype.propertyIsEnumerable.call(K,Q[le])&&(G[Q[le]]=K[Q[le]]);return G};e.warnContext=null,e.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale"];const R=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let O,M,P,k;function $(){return O||v.defaultPrefixCls}function U(){return M||v.defaultIconPrefixCls}function z(K){return Object.keys(K).some(H=>H.endsWith("Color"))}const D=K=>{const{prefixCls:H,iconPrefixCls:G,theme:Q,holderRender:le}=K;H!==void 0&&(O=H),G!==void 0&&(M=G),"holderRender"in K&&(k=le),Q&&(z(Q)?(0,y.registerTheme)($(),Q):P=Q)},B=()=>({getPrefixCls:(K,H)=>H||(K?`${$()}-${K}`:$()),getIconPrefixCls:U,getRootPrefixCls:()=>O||$(),getTheme:()=>P,holderRender:k});e.globalConfig=B;const Y=K=>{const{children:H,csp:G,autoInsertSpaceInButton:Q,alert:le,anchor:Z,form:j,locale:F,componentSize:te,direction:oe,space:de,splitter:pe,virtual:me,dropdownMatchSelectWidth:ve,popupMatchSelectWidth:he,popupOverflow:be,legacyLocale:we,parentContext:De,iconPrefixCls:Ae,theme:Ee,componentDisabled:Re,segmented:Te,statistic:Oe,spin:Ne,calendar:je,carousel:ne,cascader:J,collapse:ae,typography:Se,checkbox:xe,descriptions:ue,divider:Me,drawer:$e,skeleton:ge,steps:Ve,image:st,layout:Je,list:ot,mentions:Xe,modal:Ze,progress:bt,result:at,slider:pt,breadcrumb:Ct,menu:It,pagination:Wt,input:Bt,textArea:Vt,empty:rn,badge:tt,radio:it,rate:nt,switch:vt,transfer:kt,avatar:Dt,message:Kt,tag:Ht,table:tn,card:on,tabs:sn,timeline:Jt,timePicker:En,upload:Pt,notification:Qt,tree:ln,colorPicker:jt,datePicker:Lt,rangePicker:en,flex:Ue,wave:Zt,dropdown:Et,warning:Gt,tour:zt,tooltip:Vn,popover:sr,popconfirm:A,floatButtonGroup:W,variant:ce,inputNumber:Pe,treeSelect:qe}=K,gt=i.useCallback((yn,Sn)=>{const{prefixCls:ur}=K;if(Sn)return Sn;const qr=ur||De.getPrefixCls("");return yn?`${qr}-${yn}`:qr},[De.getPrefixCls,K.prefixCls]),Yt=Ae||De.iconPrefixCls||v.defaultIconPrefixCls,Nn=G||De.csp;(0,x.default)(Yt,Nn);const Jn=(0,b.default)(Ee,De.theme,{prefixCls:gt("")}),Ci={csp:Nn,autoInsertSpaceInButton:Q,alert:le,anchor:Z,locale:F||we,direction:oe,space:de,splitter:pe,virtual:me,popupMatchSelectWidth:he??ve,popupOverflow:be,getPrefixCls:gt,iconPrefixCls:Yt,theme:Jn,segmented:Te,statistic:Oe,spin:Ne,calendar:je,carousel:ne,cascader:J,collapse:ae,typography:Se,checkbox:xe,descriptions:ue,divider:Me,drawer:$e,skeleton:ge,steps:Ve,image:st,input:Bt,textArea:Vt,layout:Je,list:ot,mentions:Xe,modal:Ze,progress:bt,result:at,slider:pt,breadcrumb:Ct,menu:It,pagination:Wt,empty:rn,badge:tt,radio:it,rate:nt,switch:vt,transfer:kt,avatar:Dt,message:Kt,tag:Ht,table:tn,card:on,tabs:sn,timeline:Jt,timePicker:En,upload:Pt,notification:Qt,tree:ln,colorPicker:jt,datePicker:Lt,rangePicker:en,flex:Ue,wave:Zt,dropdown:Et,warning:Gt,tour:zt,tooltip:Vn,popover:sr,popconfirm:A,floatButtonGroup:W,variant:ce,inputNumber:Pe,treeSelect:qe},wi=Object.assign({},De);Object.keys(Ci).forEach(yn=>{Ci[yn]!==void 0&&(wi[yn]=Ci[yn])}),R.forEach(yn=>{const Sn=K[yn];Sn&&(wi[yn]=Sn)}),typeof Q<"u"&&(wi.button=Object.assign({autoInsertSpace:Q},wi.button));const to=(0,s.default)(()=>wi,wi,(yn,Sn)=>{const ur=Object.keys(yn),qr=Object.keys(Sn);return ur.length!==qr.length||ur.some(zi=>yn[zi]!==Sn[zi])}),Vr=i.useMemo(()=>({prefixCls:Yt,csp:Nn}),[Yt,Nn]);let wn=i.createElement(i.Fragment,null,i.createElement(w.default,{dropdownMatchSelectWidth:ve}),H);const Bn=i.useMemo(()=>{var yn,Sn,ur,qr;return(0,l.merge)(((yn=p.default.Form)===null||yn===void 0?void 0:yn.defaultValidateMessages)||{},((ur=(Sn=to.locale)===null||Sn===void 0?void 0:Sn.Form)===null||ur===void 0?void 0:ur.defaultValidateMessages)||{},((qr=to.form)===null||qr===void 0?void 0:qr.validateMessages)||{},(j==null?void 0:j.validateMessages)||{})},[to,j==null?void 0:j.validateMessages]);Object.keys(Bn).length>0&&(wn=i.createElement(u.default.Provider,{value:Bn},wn)),F&&(wn=i.createElement(d.default,{locale:F,_ANT_MARK__:d.ANT_MARK},wn)),(Yt||Nn)&&(wn=i.createElement(a.default.Provider,{value:Vr},wn)),te&&(wn=i.createElement(C.SizeContextProvider,{size:te},wn)),wn=i.createElement(E.default,null,wn);const ni=i.useMemo(()=>{const yn=Jn||{},{algorithm:Sn,token:ur,components:qr,cssVar:zi}=yn,Qo=T(yn,["algorithm","token","components","cssVar"]),gr=Sn&&(!Array.isArray(Sn)||Sn.length>0)?(0,o.createTheme)(Sn):h.defaultTheme,Oo={};Object.entries(qr||{}).forEach(Er=>{let[nr,lr]=Er;const Kr=Object.assign({},lr);"algorithm"in Kr&&(Kr.algorithm===!0?Kr.theme=gr:(Array.isArray(Kr.algorithm)||typeof Kr.algorithm=="function")&&(Kr.theme=(0,o.createTheme)(Kr.algorithm)),delete Kr.algorithm),Oo[nr]=Kr});const Pa=Object.assign(Object.assign({},g.default),ur);return Object.assign(Object.assign({},Qo),{theme:gr,token:Pa,components:Oo,override:Object.assign({override:Pa},Oo),cssVar:zi})},[Jn]);return Ee&&(wn=i.createElement(h.DesignTokenContext.Provider,{value:ni},wn)),to.warning&&(wn=i.createElement(c.WarningContext.Provider,{value:to.warning},wn)),Re!==void 0&&(wn=i.createElement(_.DisabledContextProvider,{disabled:Re},wn)),i.createElement(v.ConfigContext.Provider,{value:to},wn)},q=K=>{const H=i.useContext(v.ConfigContext),G=i.useContext(f.default);return i.createElement(Y,Object.assign({parentContext:H,legacyLocale:G},K))};q.ConfigContext=v.ConfigContext,q.SizeContext=C.default,q.config=D,q.useConfig=S.default,Object.defineProperty(q,"SizeContext",{get:()=>C.default}),e.default=q})(Cpe);var fL={},ENn=Qs.default;Object.defineProperty(fL,"__esModule",{value:!0});fL.LayoutContext=void 0;var CNn=ENn(m);fL.LayoutContext=CNn.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Bpe={},jpe={},Upe={},wNn=di.default;Object.defineProperty(Upe,"__esModule",{value:!0});Upe.default=INn;var xNn=wNn(zC),TNn=Symbol.for("react.element"),ONn=Symbol.for("react.transitional.element"),RNn=Symbol.for("react.fragment");function INn(e){return e&&(0,xNn.default)(e)==="object"&&(e.$$typeof===TNn||e.$$typeof===ONn)&&e.type===RNn}var SXe=di.default;Object.defineProperty(jpe,"__esModule",{value:!0});jpe.default=Goe;var NNn=SXe(Upe),MNn=SXe(m);function Goe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return MNn.default.Children.forEach(e,function(i){i==null&&!n.keepEmpty||(Array.isArray(i)?r=r.concat(Goe(i)):(0,NNn.default)(i)&&i.props?r=r.concat(Goe(i.props.children,n)):r.push(i))}),r}var JO={},Woe={exports:{}},ZH={},Hpe={};Object.defineProperty(Hpe,"__esModule",{value:!0});var PNn={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"};Hpe.default=PNn;var ANn=Qs.default,zpe=di.default;Object.defineProperty(ZH,"__esModule",{value:!0});ZH.default=void 0;var DNn=zpe(oH),EXe=ANn(m),kNn=zpe(Hpe),LNn=zpe(PI),$Nn=function(n,r){return EXe.createElement(LNn.default,(0,DNn.default)({},n,{ref:r,icon:kNn.default}))},FNn=EXe.forwardRef($Nn);ZH.default=FNn;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;const r=i(ZH);function i(a){return a&&a.__esModule?a:{default:a}}const o=r;n.default=o,e.exports=o})(Woe,Woe.exports);var BNn=Woe.exports,Yoe={exports:{}},JH={},Vpe={};Object.defineProperty(Vpe,"__esModule",{value:!0});var jNn={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"};Vpe.default=jNn;var UNn=Qs.default,Gpe=di.default;Object.defineProperty(JH,"__esModule",{value:!0});JH.default=void 0;var HNn=Gpe(oH),CXe=UNn(m),zNn=Gpe(Vpe),VNn=Gpe(PI),GNn=function(n,r){return CXe.createElement(VNn.default,(0,HNn.default)({},n,{ref:r,icon:zNn.default}))},WNn=CXe.forwardRef(GNn);JH.default=WNn;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;const r=i(JH);function i(a){return a&&a.__esModule?a:{default:a}}const o=r;n.default=o,e.exports=o})(Yoe,Yoe.exports);var YNn=Yoe.exports,qoe={exports:{}},ez={},Wpe={};Object.defineProperty(Wpe,"__esModule",{value:!0});var qNn={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"};Wpe.default=qNn;var KNn=Qs.default,Ype=di.default;Object.defineProperty(ez,"__esModule",{value:!0});ez.default=void 0;var XNn=Ype(oH),wXe=KNn(m),QNn=Ype(Wpe),ZNn=Ype(PI),JNn=function(n,r){return wXe.createElement(ZNn.default,(0,XNn.default)({},n,{ref:r,icon:QNn.default}))},eMn=wXe.forwardRef(JNn);ez.default=eMn;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;const r=i(ez);function i(a){return a&&a.__esModule?a:{default:a}}const o=r;n.default=o,e.exports=o})(qoe,qoe.exports);var tMn=qoe.exports,tz={},hy={};Object.defineProperty(hy,"__esModule",{value:!0});hy.prepareComponentToken=hy.default=hy.DEPRECATED_TOKENS=void 0;var nMn=cS,rMn=BI;const iMn=e=>{const{antCls:n,componentCls:r,colorText:i,footerBg:o,headerHeight:a,headerPadding:s,headerColor:l,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[r]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${r}-header`]:{height:a,padding:s,color:l,lineHeight:(0,nMn.unit)(a),background:f,[`${n}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:c,color:i,fontSize:u,background:o},[`${r}-content`]:{flex:"auto",color:i,minHeight:0}}},xXe=e=>{const{colorBgLayout:n,controlHeight:r,controlHeightLG:i,colorText:o,controlHeightSM:a,marginXXS:s,colorTextLightSolid:l,colorBgContainer:c}=e,u=i*1.25;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140",bodyBg:n,headerBg:"#001529",headerHeight:r*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:n,siderBg:"#001529",triggerHeight:i+s*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:i,zeroTriggerHeight:i,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}};hy.prepareComponentToken=xXe;const oMn=hy.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];hy.default=(0,rMn.genStyleHooks)("Layout",e=>[iMn(e)],xXe,{deprecatedTokens:oMn});Object.defineProperty(tz,"__esModule",{value:!0});tz.default=void 0;var SM=cS,VRe=hy,aMn=BI;const sMn=e=>{const{componentCls:n,siderBg:r,motionDurationMid:i,motionDurationSlow:o,antCls:a,triggerHeight:s,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:g,lightTriggerBg:v,bodyBg:y}=e;return{[n]:{position:"relative",minWidth:0,background:r,transition:`all ${i}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${n}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${n}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:l,lineHeight:(0,SM.unit)(s),textAlign:"center",background:c,cursor:"pointer",transition:`all ${i}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:r,borderRadius:`0 ${(0,SM.unit)(p)} ${(0,SM.unit)(p)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${(0,SM.unit)(p)} 0 0 ${(0,SM.unit)(p)}`}}},"&-light":{background:h,[`${n}-trigger`]:{color:g,background:v},[`${n}-zero-width-trigger`]:{color:g,background:v,border:`1px solid ${y}`,borderInlineStart:0}}}}};tz.default=(0,aMn.genStyleHooks)(["Layout","Sider"],e=>[sMn(e)],VRe.prepareComponentToken,{deprecatedTokens:VRe.DEPRECATED_TOKENS});var jI=di.default,lMn=Qs.default;Object.defineProperty(JO,"__esModule",{value:!0});JO.default=JO.SiderContext=void 0;var Av=lMn(m),Vd=Av,cMn=jI(BNn),GRe=jI(YNn),WRe=jI(tMn),YRe=jI(Z7),uMn=jI(PH),dMn=Cpe,fMn=fL,pMn=jI(tz),hMn=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const qRe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},gMn=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),mMn=JO.SiderContext=Vd.createContext({}),vMn=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),yMn=Vd.forwardRef((e,n)=>{const{prefixCls:r,className:i,trigger:o,children:a,defaultCollapsed:s=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:g,onCollapse:v,onBreakpoint:y}=e,_=hMn(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=(0,Av.useContext)(fMn.LayoutContext),[b,E]=(0,Av.useState)("collapsed"in e?e.collapsed:s),[w,C]=(0,Av.useState)(!1);(0,Av.useEffect)(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const x=(F,te)=>{"collapsed"in e||E(F),v==null||v(F,te)},{getPrefixCls:T,direction:R}=(0,Av.useContext)(dMn.ConfigContext),O=T("layout-sider",r),[M,P,k]=(0,pMn.default)(O),$=(0,Av.useRef)(null);$.current=F=>{C(F.matches),y==null||y(F.matches),b!==F.matches&&x(F.matches,"responsive")},(0,Av.useEffect)(()=>{function F(oe){return $.current(oe)}let te;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&g&&g in qRe){te=oe(`screen and (max-width: ${qRe[g]})`);try{te.addEventListener("change",F)}catch{te.addListener(F)}F(te)}}return()=>{try{te==null||te.removeEventListener("change",F)}catch{te==null||te.removeListener(F)}}},[g]),(0,Av.useEffect)(()=>{const F=vMn("ant-sider-");return S.addSider(F),()=>S.removeSider(F)},[]);const U=()=>{x(!b,"clickTrigger")},z=(0,uMn.default)(_,["collapsed"]),D=b?p:f,B=gMn(D)?`${D}px`:String(D),Y=parseFloat(String(p||0))===0?Vd.createElement("span",{onClick:U,className:(0,YRe.default)(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${d?"right":"left"}`),style:h},o||Vd.createElement(cMn.default,null)):null,q=R==="rtl"==!d,G={expanded:q?Vd.createElement(WRe.default,null):Vd.createElement(GRe.default,null),collapsed:q?Vd.createElement(GRe.default,null):Vd.createElement(WRe.default,null)}[b?"collapsed":"expanded"],Q=o!==null?Y||Vd.createElement("div",{className:`${O}-trigger`,onClick:U,style:{width:B}},o||G):null,le=Object.assign(Object.assign({},c),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),Z=(0,YRe.default)(O,`${O}-${l}`,{[`${O}-collapsed`]:!!b,[`${O}-has-trigger`]:u&&o!==null&&!Y,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(B)===0},i,P,k),j=Vd.useMemo(()=>({siderCollapsed:b}),[b]);return M(Vd.createElement(mMn.Provider,{value:j},Vd.createElement("aside",Object.assign({className:Z},z,{style:le,ref:n}),Vd.createElement("div",{className:`${O}-children`},a),u||w&&Y?Q:null)))});JO.default=yMn;var TXe=di.default;Object.defineProperty(Bpe,"__esModule",{value:!0});Bpe.default=SMn;var _Mn=TXe(jpe),bMn=TXe(JO);function SMn(e,n,r){return typeof r=="boolean"?r:e.length?!0:(0,_Mn.default)(n).some(o=>o.type===bMn.default)}var nz,rz,EMn=Qs.default,pL=di.default;Object.defineProperty(ey,"__esModule",{value:!0});ey.default=ey.Header=rz=ey.Footer=nz=ey.Content=void 0;var CMn=pL(eXe),op=EMn(m),OXe=pL(Z7),wMn=pL(PH),Koe=Cpe,xMn=fL,TMn=pL(Bpe),RXe=pL(hy),IXe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function iz(e){let{suffixCls:n,tagName:r,displayName:i}=e;return o=>op.forwardRef((s,l)=>op.createElement(o,Object.assign({ref:l,suffixCls:n,tagName:r},s)))}const qpe=op.forwardRef((e,n)=>{const{prefixCls:r,suffixCls:i,className:o,tagName:a}=e,s=IXe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=op.useContext(Koe.ConfigContext),c=l("layout",r),[u,d,f]=(0,RXe.default)(c),p=i?`${c}-${i}`:c;return u(op.createElement(a,Object.assign({className:(0,OXe.default)(r||p,o,d,f),ref:n},s)))}),OMn=op.forwardRef((e,n)=>{const{direction:r}=op.useContext(Koe.ConfigContext),[i,o]=op.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,p=IXe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,wMn.default)(p,["suffixCls"]),{getPrefixCls:g,layout:v}=op.useContext(Koe.ConfigContext),y=g("layout",a),_=(0,TMn.default)(i,c,u),[S,b,E]=(0,RXe.default)(y),w=(0,OXe.default)(y,{[`${y}-has-sider`]:_,[`${y}-rtl`]:r==="rtl"},v==null?void 0:v.className,s,l,b,E),C=op.useMemo(()=>({siderHook:{addSider:x=>{o(T=>[].concat((0,CMn.default)(T),[x]))},removeSider:x=>{o(T=>T.filter(R=>R!==x))}}}),[]);return S(op.createElement(xMn.LayoutContext.Provider,{value:C},op.createElement(d,Object.assign({ref:n,className:w,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},h),c)))}),RMn=iz({tagName:"div",displayName:"Layout"})(OMn);ey.Header=iz({suffixCls:"header",tagName:"header",displayName:"Header"})(qpe);rz=ey.Footer=iz({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(qpe);nz=ey.Content=iz({suffixCls:"content",tagName:"main",displayName:"Content"})(qpe);ey.default=RMn;function c_(){const{isDarkMode:e}=q4e(),{token:n}=cu.useToken(),r={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},i=260,o={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},s={minHeight:120,overflowY:"auto"},l={height:20,fontSize:12,backgroundColor:n.colorBgContainer,color:n.colorText};return{leftSiderStyle:r,leftSiderWidth:i,headerStyle:o,rightSiderStyle:a,contentStyle:s,footerStyle:l}}const{Header:IMn,Sider:NMn,Content:MMn}=bo,NXe=()=>{const e=Fr();m.useContext(Xl);const n=Af(),{headerStyle:r,leftSiderStyle:i,leftSiderWidth:o,contentStyle:a}=c_(),[s,l]=m.useState([]);m.useEffect(()=>{const u=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];l(u)},[e]);const c=u=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),u),n("/setting/"+u.key)};return N.jsxs(bo,{children:[N.jsx(NMn,{style:i,width:o,children:N.jsx(tv,{mode:"inline",onClick:c,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:s})}),N.jsxs(bo,{children:[N.jsx(IMn,{style:r,children:e.formatMessage({id:"menu.dashboard.mine"})}),N.jsx(MMn,{style:a,children:N.jsx(DU,{})})]})]})},MXe=Ou()(kp(Sd(Lp((e,n)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(r){console.log("addNewfriend",r)},addDevice(r){var i;if(r.type===D4e){const o=n().devices.some(a=>a.device.uid===r.device.uid);e(o?{devices:[r,...n().devices.filter(a=>a.device.uid!==r.device.uid)]}:{devices:[r,...n().devices]}),((i=n().currentContact.device)==null?void 0:i.uid)===r.device.uid&&e({currentContact:r})}},addGroup(r){console.log("addGroup",r)},addChannel(r){console.log("addChannel",r)},addMember(r){if(r.type===Lyt){const i=n().members.some(o=>o.member.uid===r.member.uid);e(i?{members:[r,...n().members.filter(o=>o.member.uid!==r.member.uid)]}:{members:[...n().members,r]})}},addFriend(r){console.log("addFriend",r)},setCurrentContact:r=>{e({currentContact:r})},setMemberSelf:r=>{e({memberSelf:r})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:Ryt}))),PMn=Ou()(kp(Sd(Lp(e=>({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(n){e({currentMember:n})},setMemberSelf(n){e({memberSelf:n})},setMemberResult:n=>{e({memberResult:n})},resetMembers:()=>e({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}}})})),{name:Tyt}))),PXe=Ou()(kp(Sd(Lp((e,n)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(r){e(i=>{i.workgroupResult.data.content.unshift(r)})},updateWorkgroup(r){e(i=>{const o=i.workgroupResult.data.content,a=o.findIndex(s=>s.uid===r.uid);a!==-1?o[a]=r:console.warn(`Workgroup with uid ${r.uid} not found.`)})},deleteWorkgroup(r){e(i=>{const o=i.workgroupResult.data.content,a=o.findIndex(s=>s.uid===r.uid);a!==-1?o.splice(a,1):console.warn(`Workgroup with uid ${r.uid} not found.`)})},setWorkgroupResult:r=>{e({workgroupResult:r})},setWorkgroupInfo(r){e({workgroupInfo:r})},deleteWorkgroupInfo(r){const i=n().workgroupResult.data.content,o=i.findIndex(a=>a.uid===r);o!==-1?e({workgroupResult:{...n().workgroupResult,data:{content:[...i.slice(0,o),...i.slice(o+1)]}}}):console.warn("Workgroup not found in cache:",r),n().workgroupInfo.uid===r&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:Dyt}))),m2=Ou()(kp(Sd(Lp(e=>({currentProcess:null,processResult:{data:{content:[]}},setCurrentProcess(n){e({currentProcess:n})},setProcessResult(n){e({processResult:n})},resetProcess:()=>e({currentProcess:null,processResult:{data:{content:[]}}})})),{name:kyt}))),AMn=()=>{const e=Jm(f=>f.deleteOrg),n=Ph(f=>f.resetThreads),r=Yy(f=>f.resetMessageList),i=PMn(f=>f.resetMembers),o=GD(f=>f.removeAccessToken),a=ws(f=>f.resetUserInfo),s=MXe(f=>f.resetContactInfo),l=XC(f=>f.resetAgentInfo),c=PXe(f=>f.resetWorkgroupInfo),u=m2(f=>f.resetProcess);return{clearStorage:()=>{e(),n(),r(),i(),o(),a(),s(),l(),c(),u()}}};function Kpe(){const e=GD(S=>S.accessToken),n=ws(S=>S.userInfo),r=XC(S=>S.agentInfo),i=MH(),[o,a]=m.useState(!1),{showNotification:s}=Epe(),{translateString:l}=Vp();Yy(S=>S.addMessage),Ph(S=>S.updateThreadContent),m.useContext(Xl),m.useRef(!1);const c=Ph(S=>S.threads),[u,d]=m.useState(c),f=m.useCallback(()=>{if(i&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!uqt()&&i&&e&&v()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",i," accessToken:",e)},[i,e]),p=async()=>{},h=m.useRef(r==null?void 0:r.uid),g=m.useCallback(()=>{if(!o&&e)return setInterval(async()=>{h.current?p():console.log("useMqtt autoPingMessage currentUidRef.current:",h.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",i," accessToken:",e)},[o,e,n,r]),v=()=>{console.log("useMqtt doConnect"),lqt({uid:n.uid,username:n.username,accessToken:e})},y=()=>{console.log("useMqtt useEffect doDisconnect"),Rq()},_=S=>{var b,E;(S==null?void 0:S.type)!==LP&&((b=S==null?void 0:S.user)==null?void 0:b.uid)!==(n==null?void 0:n.uid)&&((E=S==null?void 0:S.user)==null?void 0:E.uid)!==(r==null?void 0:r.uid)&&(Qxt(),console.log("playAudio"))};return m.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",i),i?v():Rq()},[i]),m.useEffect(()=>{if(r!=null&&r.uid){h.current=r==null?void 0:r.uid;const S=g();return()=>{clearInterval(S)}}else h.current=null},[r]),m.useEffect(()=>{console.log("useMqtt useEffect accessToken"),v();const S=f();return()=>{Rq(),clearInterval(S)}},[e,n]),m.useEffect(()=>{console.log("useMqtt threads change"),d(c)},[c]),m.useEffect(()=>{const S=function(b){if(console.log("useMqtt handleNewMessage",b),b.type===kP||b.type===k4e||b.type===Bee||b.type===LP||b.type===$P)return;const E=b.threadTopic,w=u.find(C=>C.topic===E);w?w.mute?console.log("useMqtt matchingThread muted",E):(console.log("useMqtt matchingThread no mute",E),s(l(u3),l(u3)),_(b)):(console.log("useMqtt matchingThread no"),s(l(u3),l(u3)),_(b))};return Qr.on(DP,S),()=>{Qr.off(DP)}},[u]),m.useEffect(()=>{console.log("useMqtt useEffect");const S=function(){console.log("handleMqttConnected"),a(!0)},b=function(){console.log("handleMqttDisconnected"),a(!1)};return Qr.on(Iee,S),Qr.on(Mee,b),Qr.on(Pee,b),Qr.on(Nee,b),Qr.on(Aee,b),Qr.on(Dee,b),()=>{console.log("un - useEffect mqttDisconnect"),Qr.off(Iee),Qr.off(Mee),Qr.off(Pee),Qr.off(Nee),Qr.off(Aee),Qr.off(Dee)}},[]),{doConnect:v,doDisconnect:y,isMqttConnected:o}}function AXe(){const{clearStorage:e}=AMn(),{doDisconnect:n}=Kpe(),{setPingLoading:r}=m.useContext(Xl),i=m.useCallback(async()=>{try{const o=await nRn();console.log("logout result:",o.data),r(!1),n(),e(),Sqt()}catch(o){console.log("logout error:",o)}},[]);return m.useEffect(()=>{console.log("useEventBus useEffect");const o=function(a){console.log("token过期,强制刷新登录",a),Qr.off(Jb,o),i()};return Qr.on(Jb,o),()=>{console.log("un - useEffect mqttDisconnect"),Qr.off(Jb)}},[]),{doLogout:i}}const DXe=()=>{const e=Fr(),{isLoggedIn:n,mode:r}=m.useContext(Xl),{doLogout:i}=AXe(),[o,a]=m.useState("✅"),[s,l]=m.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),c=MH();m.useEffect(()=>{c?(a("✅"),l(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(a("❌"),l(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[c,e]);const u=N.jsx("div",{children:N.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),d=N.jsx("div",{children:N.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[f,p]=m.useState(!1),h=()=>{p(!0)},g=()=>{p(!1)},v=()=>{console.log("handleShowLoginModel"),h()},y=S=>{console.log(S),i()},_=S=>{console.log(S)};return N.jsxs(N.Fragment,{children:[N.jsx(fa,{open:f&&!n,onOk:g,onCancel:g,footer:[N.jsx(qn,{onClick:g,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:N.jsx(Boe,{isModel:!0})}),N.jsxs("span",{children:[!n&&N.jsxs(N.Fragment,{children:[N.jsx(Rp,{content:u,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:N.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),N.jsx(Rp,{content:d,children:N.jsx("span",{className:"footerLeftButton",onClick:v,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),n&&N.jsx(N.Fragment,{children:N.jsx(IVe,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:y,onCancel:_,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:N.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),r===V1&&_O&&N.jsx("span",{style:{marginLeft:10},children:N.jsx(Sf,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:N.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),N.jsxs("span",{className:"footerRightButton",children:[N.jsx(Sf,{title:s,children:N.jsx("span",{children:o})}),N.jsxs("span",{style:{marginLeft:"10px"},onClick:()=>wA(qyt),children:["v",Xxt()]}),N.jsx("span",{style:{marginLeft:"10px"},onClick:()=>wA("https://www.weiyuai.cn/chat/iframe.html?org=df_org_uid&t=1&sid=df_wg_uid&"),children:e.formatMessage({id:"i18n.online.chat",defaultMessage:"Chat"})})]})]})},kXe=()=>{const e=Af(),{userInfo:n}=qde(),{translateString:r}=Vp(),{mode:i}=m.useContext(Xl),[o,a]=m.useState(""),[s,l]=m.useState(""),[c,u]=m.useState(""),d=()=>{e("/setting")};return m.useEffect(()=>{a(r(n==null?void 0:n.nickname)),l(r(n==null?void 0:n.description)),u(n==null?void 0:n.avatar)},[i,n]),N.jsx(N.Fragment,{children:N.jsx(Rp,{title:o,content:s,placement:"rightBottom",children:N.jsx(N.Fragment,{children:N.jsx(nS,{style:{marginTop:60,cursor:"pointer"},size:40,src:c,onClick:d})})})})};function LXe(){const e=Af(),n=ws(i=>i.userInfo),r=MXe(i=>i.addDevice);m.useEffect(()=>(console.log("useElectronApi useEffect"),Yl?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(i=>{console.log("Dashboard onNewWindowCreated content:",i),e("/enlarge",{state:{content:i}})}),window.electronAPI.onMulticastMessage(i=>{const o=JSON.parse(i);if(o.user.uid!==n.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",i);const a={type:D4e,device:o.device,user:o.user,createdAt:o.createdAt};r(a)}}),window.electronAPI.onWebSocketMessage(i=>{console.log("Dashboard onWebSocketMessage content:",i)}),window.electronAPI.onHttpMessage(i=>{console.log("Dashboard onHttpMessage content:",i)}),window.electronAPI.onNotificationMessage(i=>{if(console.log("Dashboard onNotificationMessage content:",i),i.type===vyt){Nt.success("截图成功");const o=i.data;Qr.emit(Cyt,o.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),Yl?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const DMn=()=>{const e=Fr(),{doLogout:n}=AXe(),{isLoggedIn:r,locale:i,changeLocale:o,mode:a,changeMode:s,handleUpdateAgentStatus:l}=m.useContext(Xl),{agentInfo:c}=XC(h=>({agentInfo:h.agentInfo})),u=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:N.jsx(Ude,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[d,f]=m.useState(u);m.useEffect(()=>{if(f(u),c.uid!==""&&a===V1){console.log("agentInfo changed",c);const h=[...u],g={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:Ibe,icon:c.status===Ibe?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:Nbe,icon:c.status===Nbe?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:RW,icon:c.status===RW?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},v=h[0].children,y=v.findIndex(_=>_.key===g.key);y!==-1?v[y]=g:v.splice(0,0,g),h[0].children=v,f(h)}},[c,i,a]);const p=async h=>{console.log("click",h.key),h.key==="logout"?n():h.key==="zh-cn"||h.key==="zh-tw"||h.key==="en"?o(h.key):h.key===PT||h.key===V1||h.key===wF?(console.log("mode",h.key),s(h.key)):(console.log("status"),h.key===RW&&rP.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),l(h.key))};return N.jsx(N.Fragment,{children:r?N.jsx(N.Fragment,{children:N.jsx(tv,{inlineCollapsed:!0,onClick:p,style:{width:64,height:34},mode:"inline",items:d})}):N.jsx(N.Fragment,{})})};async function kMn(e){return so("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:xo}})}const $Xe=()=>{const[e,n]=m.useState([]),r=new fGe;m.useEffect(()=>{(async()=>{try{const l=await r.getAllMessages();n(l)}catch(l){console.error("Error fetching messages from IndexedDB:",l)}})()},[]);const i=async s=>{try{await r.createMessage(s);const l=await r.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",l),n(l)}catch(l){console.error("Error creating message in IndexedDB:",l)}},o=async(s,l)=>{try{await r.updateMessage(s,l);const c=await r.getAllMessages();n(c)}catch(c){console.error("Error updating message in IndexedDB:",c)}},a=async s=>{try{await r.deleteMessage(s);const l=await r.getAllMessages();n(l)}catch(l){console.error("Error deleting message in IndexedDB:",l)}};return m.useEffect(()=>{console.log("useIndexedDB useEffect");const s=function(l){console.log("useIndexedDB handleNewMessage",l),i(l)};return Qr.on(DP,s),()=>{console.log("useIndexedDB useEffect return"),Qr.off(DP,s)}},[]),{messages:e,createMessage:i,updateMessage:o,deleteMessage:a}};async function oz(){return so("/api/v1/user/profile",{method:"GET",params:{client:xo}})}async function FXe(e){return so("/api/v1/user/update",{method:"POST",data:{...e,client:xo}})}async function LMn(e){return so("/api/v1/user/change/password",{method:"POST",data:{...e,client:xo}})}async function BXe(e){return so("/api/v1/user/change/email",{method:"POST",data:{...e,client:xo}})}async function jXe(e){return so("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:xo}})}const $Mn=()=>{const e=Fr(),{locale:n,changeLocale:r}=m.useContext(Xl),i=[{key:"lang",icon:N.jsx(rVt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:n.locale==="zh-cn"?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:n.locale==="zh-tw"?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:n.locale==="en"?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],o=a=>{const s=a.key;r(s)};return N.jsx(tv,{inlineCollapsed:!0,onClick:o,style:{width:64,height:34},mode:"inline",items:i})},Xpe=({formFields:e=[],onSubmit:n})=>{const[r,i]=m.useState(e),{formId:o}=WKt(),[a]=Hr.useForm(),s=Fr(),{isDarkMode:l}=Mu(),[c,u]=m.useState(!1);m.useEffect(()=>{if(o==="preview"){const p=localStorage.getItem("form-preview-data");if(p){const{fields:h}=JSON.parse(p);i(h)}}},[o]);const d=p=>{var h,g,v;switch(p.type){case"input":return N.jsx(Oi,{placeholder:s.formatMessage({id:"preview.placeholder.text"})});case"textarea":return N.jsx(Oi.TextArea,{placeholder:s.formatMessage({id:"preview.placeholder.text"})});case"datePicker":return N.jsx(gd,{style:{width:"100%"},placeholder:s.formatMessage({id:"preview.placeholder.date"})});case"timePicker":return N.jsx(Py,{style:{width:"100%"},placeholder:s.formatMessage({id:"preview.placeholder.time"})});case"select":return N.jsx(_g,{placeholder:s.formatMessage({id:"preview.placeholder.select"}),options:(h=p.options)==null?void 0:h.map(y=>({label:y,value:y}))});case"checkbox":return N.jsx(ow.Group,{options:(g=p.options)==null?void 0:g.map(y=>({label:y,value:y}))});case"radio":return N.jsx(ya.Group,{options:(v=p.options)==null?void 0:v.map(y=>({label:y,value:y}))});case"switch":return N.jsx(sC,{});case"upload":return N.jsx(ig,{});default:return N.jsx(Oi,{})}},f=async p=>{u(!0);try{n&&await n(p)}finally{u(!1)}};return N.jsx(_u,{title:o==="preview"?s.formatMessage({id:"formBuilder.preview"}):void 0,style:{maxWidth:800,margin:"24px auto",background:l?"#1f1f1f":"#fff"},children:N.jsxs(Hr,{form:a,layout:"vertical",onFinish:f,style:{maxWidth:600,margin:"0 auto"},children:[r.map(p=>N.jsx(Hr.Item,{name:p.id,label:p.label,rules:[{required:p.required,message:`${p.label}是必填项`}],children:d(p)},p.id)),N.jsx(Hr.Item,{children:N.jsx(qn,{type:"primary",htmlType:"submit",loading:c,block:!0,children:s.formatMessage({id:"form.submit"})})})]})})},FMn=({visible:e,onClose:n,formFields:r})=>{const i=Fr(),{isDarkMode:o}=Mu();return e?N.jsxs("div",{style:{position:"fixed",right:20,bottom:0,width:400,height:600,background:o?"#1f1f1f":"#fff",boxShadow:"0 0 10px rgba(0,0,0,0.1)",borderRadius:"8px 8px 0 0",display:"flex",flexDirection:"column",zIndex:1e3},children:[N.jsxs("div",{style:{padding:"12px 16px",borderBottom:`1px solid ${o?"#303030":"#f0f0f0"}`,display:"flex",justifyContent:"space-between",alignItems:"center",background:o?"#141414":"#f5f5f5",borderRadius:"8px 8px 0 0"},children:[N.jsx("span",{children:i.formatMessage({id:"preview.title"})}),N.jsxs("div",{children:[N.jsx(SVt,{style:{marginRight:12,cursor:"pointer"},onClick:()=>n(),title:i.formatMessage({id:"preview.minimize"})}),N.jsx(jp,{style:{cursor:"pointer"},onClick:()=>n(),title:i.formatMessage({id:"preview.close"})})]})]}),N.jsx("div",{style:{flex:1,overflow:"auto",padding:"16px"},children:N.jsx(Xpe,{formFields:r})})]}):null},az=Ou()(Sd(e=>({components:[],activeId:null,setComponents:n=>e({components:n}),addComponent:({id:n,type:r,index:i,options:o})=>e(a=>{const s=[...a.components];return s.splice(i,0,{id:n,type:r,index:i,options:o}),{components:s.map((l,c)=>({...l,index:c}))}}),moveComponent:(n,r,i)=>e(o=>{const a=[...o.components],s=a.findIndex(c=>c.id===n),l=a[s];return a.splice(s,1),a.splice(i,0,l),{components:a}}),updateComponent:(n,r)=>e(i=>({components:i.components.map(o=>o.id===n?{...o,props:{...o.props,...r}}:o)})),setActiveId:n=>e({activeId:n}),clearForm:()=>e({components:[],activeId:null}),deleteComponent:n=>e(r=>({components:r.components.filter(i=>i.id!==n),activeId:null}))}),{name:"form-builder-storage"})),BMn=({children:e,onDragStart:n,onDragEnd:r})=>{const[i,o]=m.useState(null),[a,s]=m.useState(null),l=T6(lpe),c=jqe(l),u=f=>{var h;console.log("DndContext drag start data:",f.active.data.current);const{active:p}=f;s(p.data.current),o(N.jsx("div",{className:"dragging-overlay",children:N.jsx("div",{className:"component-item",children:N.jsx("div",{className:"component-item-inner",children:(h=p.data.current)==null?void 0:h.title})})})),n==null||n(f)},d=f=>{console.log("DndContext drag end data:",a);const p={...f,active:{...f.active,data:{current:a}}};o(null),s(null),r==null||r(p)};return N.jsxs(oKe,{sensors:c,collisionDetection:Qwn,onDragStart:u,onDragEnd:d,children:[e,N.jsx(sKe,{dropAnimation:{duration:150,sideEffects:aKe({styles:{active:{opacity:"0.5"}}})},children:i})]})};function UXe(e,n,r){const i=e.slice();return i.splice(r<0?i.length+r:r,0,i.splice(n,1)[0]),i}function jMn(e,n){return e.reduce((r,i,o)=>{const a=n.get(i);return a&&(r[o]=a),r},Array(e.length))}function E4(e){return e!==null&&e>=0}function UMn(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}function HMn(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const HXe=e=>{let{rects:n,activeIndex:r,overIndex:i,index:o}=e;const a=UXe(n,i,r),s=n[o],l=a[o];return!l||!s?null:{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}},C4={scaleX:1,scaleY:1},zMn=e=>{var n;let{activeIndex:r,activeNodeRect:i,index:o,rects:a,overIndex:s}=e;const l=(n=a[r])!=null?n:i;if(!l)return null;if(o===r){const u=a[s];return u?{x:0,y:r<s?u.top+u.height-(l.top+l.height):u.top-l.top,...C4}:null}const c=VMn(a,o,r);return o>r&&o<=s?{x:0,y:-l.height-c,...C4}:o<r&&o>=s?{x:0,y:l.height+c,...C4}:{x:0,y:0,...C4}};function VMn(e,n,r){const i=e[n],o=e[n-1],a=e[n+1];return i?r<n?o?i.top-(o.top+o.height):a?a.top-(i.top+i.height):0:a?a.top-(i.top+i.height):o?i.top-(o.top+o.height):0:0}const zXe="Sortable",VXe=V.createContext({activeIndex:-1,containerId:zXe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:HXe,disabled:{draggable:!1,droppable:!1}});function GMn(e){let{children:n,id:r,items:i,strategy:o=HXe,disabled:a=!1}=e;const{active:s,dragOverlay:l,droppableRects:c,over:u,measureDroppableContainers:d}=dpe(),f=LI(zXe,r),p=l.rect!==null,h=m.useMemo(()=>i.map(C=>typeof C=="object"&&"id"in C?C.id:C),[i]),g=s!=null,v=s?h.indexOf(s.id):-1,y=u?h.indexOf(u.id):-1,_=m.useRef(h),S=!UMn(h,_.current),b=y!==-1&&v===-1||S,E=HMn(a);wf(()=>{S&&g&&d(h)},[S,h,g,d]),m.useEffect(()=>{_.current=h},[h]);const w=m.useMemo(()=>({activeIndex:v,containerId:f,disabled:E,disableTransforms:b,items:h,overIndex:y,useDragOverlay:p,sortedRects:jMn(h,c),strategy:o}),[v,f,E.draggable,E.droppable,b,h,y,c,p,o]);return V.createElement(VXe.Provider,{value:w},n)}const WMn=e=>{let{id:n,items:r,activeIndex:i,overIndex:o}=e;return UXe(r,i,o).indexOf(n)},YMn=e=>{let{containerId:n,isSorting:r,wasDragging:i,index:o,items:a,newIndex:s,previousItems:l,previousContainerId:c,transition:u}=e;return!u||!i||l!==a&&o===s?!1:r?!0:s!==o&&n===c},qMn={duration:200,easing:"ease"},GXe="transform",KMn=Ip.Transition.toString({property:GXe,duration:0,easing:"linear"}),XMn={roleDescription:"sortable"};function QMn(e){let{disabled:n,index:r,node:i,rect:o}=e;const[a,s]=m.useState(null),l=m.useRef(r);return wf(()=>{if(!n&&r!==l.current&&i.current){const c=o.current;if(c){const u=yw(i.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&s(d)}}r!==l.current&&(l.current=r)},[n,r,i,o]),m.useEffect(()=>{a&&s(null)},[a]),a}function ZMn(e){let{animateLayoutChanges:n=YMn,attributes:r,disabled:i,data:o,getNewIndex:a=WMn,id:s,strategy:l,resizeObserverConfig:c,transition:u=qMn}=e;const{items:d,containerId:f,activeIndex:p,disabled:h,disableTransforms:g,sortedRects:v,overIndex:y,useDragOverlay:_,strategy:S}=m.useContext(VXe),b=JMn(i,h),E=d.indexOf(s),w=m.useMemo(()=>({sortable:{containerId:f,index:E,items:d},...o}),[f,o,E,d]),C=m.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:x,node:T,isOver:R,setNodeRef:O}=fpe({id:s,data:w,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...c}}),{active:M,activatorEvent:P,activeNodeRect:k,attributes:$,setNodeRef:U,listeners:z,isDragging:D,over:B,setActivatorNodeRef:Y,transform:q}=upe({id:s,data:w,attributes:{...XMn,...r},disabled:b.draggable}),K=Lqe(O,U),H=!!M,G=H&&!g&&E4(p)&&E4(y),Q=!_&&D,le=Q&&G?q:null,j=G?le??(l??S)({rects:v,activeNodeRect:k,activeIndex:p,overIndex:y,index:E}):null,F=E4(p)&&E4(y)?a({id:s,items:d,activeIndex:p,overIndex:y}):E,te=M==null?void 0:M.id,oe=m.useRef({activeId:te,items:d,newIndex:F,containerId:f}),de=d!==oe.current.items,pe=n({active:M,containerId:f,isDragging:D,isSorting:H,id:s,index:E,items:d,newIndex:oe.current.newIndex,previousItems:oe.current.items,previousContainerId:oe.current.containerId,transition:u,wasDragging:oe.current.activeId!=null}),me=QMn({disabled:!pe,index:E,node:T,rect:x});return m.useEffect(()=>{H&&oe.current.newIndex!==F&&(oe.current.newIndex=F),f!==oe.current.containerId&&(oe.current.containerId=f),d!==oe.current.items&&(oe.current.items=d)},[H,F,f,d]),m.useEffect(()=>{if(te===oe.current.activeId)return;if(te&&!oe.current.activeId){oe.current.activeId=te;return}const he=setTimeout(()=>{oe.current.activeId=te},50);return()=>clearTimeout(he)},[te]),{active:M,activeIndex:p,attributes:$,data:w,rect:x,index:E,newIndex:F,items:d,isOver:R,isSorting:H,isDragging:D,listeners:z,node:T,overIndex:y,over:B,setNodeRef:K,setActivatorNodeRef:Y,setDroppableNodeRef:O,setDraggableNodeRef:U,transform:me??j,transition:ve()};function ve(){if(me||de&&oe.current.newIndex===E)return KMn;if(!(Q&&!iL(P)||!u)&&(H||pe))return Ip.Transition.toString({...u,property:GXe})}}function JMn(e,n){var r,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:n.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:n.droppable}}Ai.Down,Ai.Right,Ai.Up,Ai.Left;const{TextArea:e2n}=Oi,{Group:t2n}=ya,{Group:n2n}=ow,WXe=({component:e})=>{const{attributes:n,listeners:r,setNodeRef:i,transform:o,transition:a,isDragging:s}=ZMn({id:e.id}),{type:l}=e,{activeId:c,setActiveId:u,deleteComponent:d,moveComponent:f,components:p}=az(),h=c===e.id;if(!l)return console.error("No type provided for component:",e),null;const g=r2n(l),v={required:!1},y=w=>{w.preventDefault(),w.stopPropagation(),h||u(String(e.id))},_=w=>{w.stopPropagation(),d(String(e.id))},S=w=>{w.stopPropagation(),e.index>0&&f(String(e.id),String(e.id),e.index-1)},b=w=>{w.stopPropagation(),e.index<p.length-1&&f(String(e.id),String(e.id),e.index+1)},E={transform:Ip.Transform.toString(o),transition:a,opacity:s?.5:void 0};return N.jsxs("div",{ref:i,style:E,...n,className:`form-item-wrapper ${h?"active":""}`,"data-id":String(e.id),children:[N.jsxs("div",{className:"form-item-header",children:[N.jsx("div",{className:"drag-handle",...r,children:N.jsx(WVe,{})}),N.jsx("span",{className:"form-item-label",onClick:y,children:g})]}),N.jsxs("div",{className:"form-content",children:[N.jsx(Hr.Item,{...v,children:i2n(l)}),e.children&&e.children.length>0&&N.jsx("div",{className:"nested-components",children:e.children.map(w=>N.jsx(WXe,{component:w},w.id))})]}),N.jsxs("div",{className:"form-item-actions",children:[N.jsx(VVe,{className:"action-icon",onClick:S}),N.jsx(zVe,{className:"action-icon",onClick:b}),N.jsx(sw,{className:"delete-icon",onClick:_})]})]})};function r2n(e){return{input:"单行文本",textarea:"多行文本",select:"下拉选择",radio:"单选框组",checkbox:"多选框组",datepicker:"日期选择",timepicker:"时间选择",switch:"开关",upload:"上传"}[e]||e}function i2n(e){if(!e)return null;switch(e.toLowerCase()){case"input":return N.jsx(Oi,{placeholder:"请输入"});case"textarea":return N.jsx(e2n,{rows:4,placeholder:"请输入多行文本"});case"select":return N.jsx(_g,{style:{width:"100%"},placeholder:"请选择",options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]});case"radio":return N.jsxs(t2n,{children:[N.jsx(ya,{value:"1",children:"选项1"}),N.jsx(ya,{value:"2",children:"选项2"})]});case"checkbox":return N.jsx(n2n,{options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]});case"datepicker":return N.jsx(or,{locale:tT,children:N.jsx(gd,{style:{width:"100%"},placeholder:"请选择日期"})});case"timepicker":return N.jsx(or,{locale:tT,children:N.jsx(Py,{style:{width:"100%"},placeholder:"请选择时间"})});case"switch":return N.jsx(sC,{checkedChildren:"开",unCheckedChildren:"关"});case"upload":return N.jsx(ig,{children:N.jsx(qn,{children:"点击上传"})});default:return console.log("Unknown component type:",e),N.jsxs("div",{children:["未知组件类型: ",e]})}}const o2n=()=>{const{isDarkMode:e}=Mu(),{components:n,setActiveId:r}=az(),[i,o]=m.useState(null),{setNodeRef:a,isOver:s}=fpe({id:"canvas",data:{position:i==null?void 0:i.position,targetId:i==null?void 0:i.id}}),l=u=>{u.target===u.currentTarget&&r(null)},c=u=>{const f=u.target.closest(".form-item-wrapper");if(f&&f instanceof HTMLElement){const p=f.getAttribute("data-id");if(p){const h=f.getBoundingClientRect(),g=u.clientY<h.top+h.height/2?"top":"bottom";o({id:p,position:g})}}else o(null)};return m.useEffect(()=>{console.log("Canvas isOver:",s)},[s]),N.jsx("div",{ref:a,className:`canvas-area ${s?"is-over":""}`,onClick:l,onDragOver:c,onDragLeave:()=>o(null),style:{minHeight:"200px",transition:"all 0.2s",padding:"16px",backgroundColor:s?"rgba(24, 144, 255, 0.05)":"transparent",background:e?"#141414":"#fff"},children:!n||n.length===0?N.jsx(xb,{description:"拖拽组件到此处"}):N.jsx(Hr,{layout:"vertical",children:N.jsx(GMn,{items:n.map(u=>u.id),strategy:zMn,children:n.map((u,d)=>N.jsxs("div",{className:"form-item-container",children:[(i==null?void 0:i.id)===u.id&&i.position==="top"&&N.jsx("div",{className:"drop-indicator top"}),N.jsx(WXe,{component:{...u,index:d}}),(i==null?void 0:i.id)===u.id&&i.position==="bottom"&&N.jsx("div",{className:"drop-indicator bottom"})]},u.id))})})})},a2n={input:{title:"component.input.title",icon:"FormOutlined"},textarea:{title:"component.textarea.title",icon:"FileTextOutlined"},select:{title:"component.select.title",icon:"SelectOutlined"},radio:{title:"component.radio.title",icon:"RadiusSettingOutlined"},checkbox:{title:"component.checkbox.title",icon:"CheckSquareOutlined"},datePicker:{title:"component.datePicker.title",icon:"CalendarOutlined"},timePicker:{title:"component.timePicker.title",icon:"ClockCircleOutlined"},switch:{title:"component.switch.title",icon:"PoweroffOutlined"},upload:{title:"component.upload.title",icon:"UploadOutlined"}};function s2n({id:e,data:n}){const r=upe({id:e,data:n}),{attributes:i,listeners:o,setNodeRef:a,transform:s}=r;return{dragRef:a,dragProps:o?{...o,...i,style:{cursor:"grab",transform:Ip.Transform.toString(s),touchAction:"none",userSelect:"none"}}:{},isDragging:r.isDragging}}const l2n=({type:e,index:n,icon:r,title:i})=>{const{isDarkMode:o}=Mu(),{dragRef:a,dragProps:s}=s2n({id:n8e(),data:{type:"component",componentType:e,index:n,title:i}});return N.jsx("div",{ref:a,...s,children:N.jsx("div",{className:"component-item",style:{background:o?"#141414":"#fff"},children:N.jsxs("div",{className:"component-item-inner",children:[r,N.jsx("span",{children:i})]})})})},c2n=V.memo(l2n),u2n={FormOutlined:GVe,FileTextOutlined:P9t,SelectOutlined:YVe,RadiusSettingOutlined:KVt,CheckSquareOutlined:wie,CalendarOutlined:CU,ClockCircleOutlined:Ade,PoweroffOutlined:zVt,UploadOutlined:iS},d2n=()=>{const e=Fr(),{isDarkMode:n}=Mu();return N.jsx("div",{className:"component-panel",style:{background:n?"#141414":"#fff"},children:N.jsx(_u,{title:e.formatMessage({id:"component.panel.title"}),bordered:!1,children:N.jsx("div",{className:"component-list",children:Object.entries(a2n).map(([r,i],o)=>{const a=u2n[i.icon];return N.jsx(c2n,{type:r,index:o,icon:N.jsx(a,{}),title:e.formatMessage({id:i.title})},r)})})})})},f2n=()=>{const{activeId:e,components:n,updateComponent:r}=az(),[i]=Hr.useForm(),{isDarkMode:o}=Mu(),a=n.find(c=>c.id===e),s=c=>c?{input:"单行文本",textarea:"多行文本",select:"下拉选择",radio:"单选框组",checkbox:"多选框组",datepicker:"日期选择",timepicker:"时间选择",switch:"开关",upload:"上传"}[c.toLowerCase()]||c:"",l=c=>{e&&r(e,c)};return a?N.jsx("div",{className:"property-panel",style:{background:o?"#141414":"#fff"},children:N.jsx(_u,{title:`${s(a.type)} - 属性设置`,bordered:!1,children:N.jsxs(Hr,{form:i,layout:"vertical",initialValues:a,onValuesChange:l,children:[N.jsx(Hr.Item,{label:"标签",name:"label",children:N.jsx(Oi,{placeholder:"请输入标签"})}),N.jsx(Hr.Item,{label:"字段名",name:"name",children:N.jsx(Oi,{placeholder:"请输入字段名"})}),N.jsx(Hr.Item,{label:"必填",name:"required",valuePropName:"checked",children:N.jsx(sC,{})}),p2n(a.type||"")]})})}):N.jsx("div",{className:"property-panel",style:{background:o?"#141414":"#fff"},children:N.jsx(_u,{title:"属性设置",bordered:!1,children:N.jsx("div",{className:"empty-tip",style:{color:o?"#fff":"#000"},children:"请选择组件"})})})};function p2n(e){switch(e.toLowerCase()){case"input":case"textarea":return N.jsxs(Ef,{direction:"vertical",style:{width:"100%"},children:[N.jsx(Hr.Item,{label:"占位文本",name:"placeholder",children:N.jsx(Oi,{placeholder:"请输入占位文本"})}),N.jsx(Hr.Item,{label:"最大长度",name:"maxLength",children:N.jsx(Oi,{type:"number",placeholder:"请输入最大长度"})})]});case"select":case"radio":case"checkbox":return N.jsx(Hr.Item,{label:"选项",name:"options",children:N.jsx(Oi.TextArea,{placeholder:"每行一个选项,格式:值:标签",rows:4})});default:return null}}const{Header:h2n}=bo,Xoe=()=>{const{components:e,setActiveId:n,addComponent:r,moveComponent:i,setComponents:o}=az(),a=Fr(),{isDarkMode:s}=Mu(),[l,c]=m.useState(!1),[u,d]=m.useState([]),{headerStyle:f}=c_(),p=_=>{console.log("FormBuilder drag start:",_.active)},h=_=>{var w;const{active:S,over:b}=_;if(!b)return;const E=b.data.current;if(b.id==="canvas"&&!E.targetId){const C=S.data.current;if(!(C!=null&&C.componentType))return;const x=String(S.id);r({id:x,type:C.componentType,index:e.length}),n(x)}else{const C=E.targetId||b.id;if(!e.find(M=>M.id===C))return;const T=E.position||"bottom",R=e.findIndex(M=>M.id===C),O=T==="top"?R:R+1;if((w=S.data.current)!=null&&w.isNew){const P=S.data.current.componentType||"";let k;["radio","checkbox","select"].includes(P)&&(k=[a.formatMessage({id:"flow.option.1"}),a.formatMessage({id:"flow.option.2"}),a.formatMessage({id:"flow.option.3"})]),r({id:String(S.id),type:P,index:O,options:k})}else i(String(S.id),String(C),O)}},g=()=>{const _=JSON.stringify(e,null,2),S=new Blob([_],{type:"application/json"}),b=URL.createObjectURL(S),E=document.createElement("a");E.href=b,E.download=a.formatMessage({id:"formBuilder.export.filename"}),E.click(),URL.revokeObjectURL(b),rP.success(a.formatMessage({id:"formBuilder.export.success"}))},v={accept:".json",showUploadList:!1,beforeUpload:_=>{const S=new FileReader;return S.onload=b=>{var E;try{const w=JSON.parse((E=b.target)==null?void 0:E.result);o(w),rP.success(a.formatMessage({id:"formBuilder.import.success"}))}catch{rP.error(a.formatMessage({id:"formBuilder.import.error"}))}},S.readAsText(_),!1}},y=()=>{const _=e.map(S=>({id:S.id,type:S.type,label:S.label||a.formatMessage({id:`component.${S.type}.title`}),options:S.options,required:S.required}));d(_),c(!0)};return N.jsxs("div",{children:[N.jsx(BMn,{onDragStart:p,onDragEnd:h,children:N.jsxs(bo,{children:[N.jsx(h2n,{style:f,children:N.jsxs("div",{className:"header-content",children:[N.jsx("h1",{children:N.jsx("span",{className:"title-text",style:{color:s?"#fff":"#000"},children:a.formatMessage({id:"formBuilder.title"})})}),N.jsxs("div",{className:"header-actions",children:[N.jsx(ig,{...v,children:N.jsx(qn,{type:"primary",icon:N.jsx(iS,{}),children:a.formatMessage({id:"formBuilder.header.import"})})}),N.jsx(qn,{type:"primary",icon:N.jsx(Rk,{}),onClick:g,children:a.formatMessage({id:"formBuilder.header.export"})}),N.jsx(qn,{type:"primary",icon:N.jsx(xk,{}),onClick:y,children:a.formatMessage({id:"formBuilder.header.preview"})})]})]})}),N.jsx(bo,{className:"main-layout",children:N.jsxs("div",{className:"main-content",children:[N.jsx("div",{className:"left-panel",children:N.jsx(d2n,{})}),N.jsx("div",{className:"center-panel",children:N.jsx(o2n,{})}),N.jsx("div",{className:"right-panel",children:N.jsx(f2n,{})})]})})]})}),N.jsx(FMn,{visible:l,onClose:()=>c(!1),formFields:u})]})},KRe=(e,n,r)=>{e.dataTransfer.setData("application/reactflow",n),r&&e.dataTransfer.setData("form-type",r),e.dataTransfer.effectAllowed="move"},g2n=()=>{const e=Fr(),{isDarkMode:n}=Mu(),r=[{type:"start",title:e.formatMessage({id:"flow.startNode"}),icon:N.jsx(Bde,{})},{type:"parent",title:e.formatMessage({id:"flow.parentNode"}),icon:N.jsx(Szt,{})}],i=[{type:"form",title:e.formatMessage({id:"flow.textField"}),icon:N.jsx(GVe,{}),formType:"text"},{type:"form",title:e.formatMessage({id:"flow.numberField"}),icon:N.jsx(IVt,{}),formType:"digit"},{type:"form",title:e.formatMessage({id:"flow.datePicker"}),icon:N.jsx(CU,{}),formType:"date"},{type:"form",title:e.formatMessage({id:"flow.select"}),icon:N.jsx(YVe,{}),formType:"select"},{type:"form",title:e.formatMessage({id:"flow.checkbox"}),icon:N.jsx(wie,{}),formType:"checkbox"},{type:"form",title:e.formatMessage({id:"flow.radio"}),icon:N.jsx(wie,{}),formType:"radio"}],o=[{key:"1",label:e.formatMessage({id:"flow.container"}),children:r.map(a=>N.jsxs(_u,{className:"draggable-item",draggable:!0,onDragStart:s=>KRe(s,a.type),bordered:!1,style:{marginBottom:"5px",border:"1px solid",background:n?"#1f1f1f":"#fff",color:n?"#fff":void 0},children:[a.icon," ",a.title]},a.type))},{key:"2",label:e.formatMessage({id:"flow.form"}),children:i.map(a=>N.jsxs(_u,{className:"draggable-item",draggable:!0,onDragStart:s=>KRe(s,a.type,a.formType),bordered:!1,style:{marginBottom:"5px",border:"1px dashed",background:n?"#1f1f1f":"#fff",color:n?"#fff":void 0},children:[a.icon," ",a.title]},a.formType))},{key:"3",label:e.formatMessage({id:"flow.logic"}),children:N.jsx("div",{children:"TODO: logic"})},{key:"4",label:e.formatMessage({id:"flow.action"}),children:N.jsx("div",{children:"TODO: action"})}];return N.jsx("div",{className:"left-panel-container",children:N.jsx(d9e,{defaultActiveKey:["1","2"],ghost:!0,items:o})})};function dl(e){if(typeof e=="string"||typeof e=="number")return""+e;let n="";if(Array.isArray(e))for(let r=0,i;r<e.length;r++)(i=dl(e[r]))!==""&&(n+=(n&&" ")+i);else for(let r in e)e[r]&&(n+=(n&&" ")+r);return n}var m2n={value:()=>{}};function sz(){for(var e=0,n=arguments.length,r={},i;e<n;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new P6(r)}function P6(e){this._=e}function v2n(e,n){return e.trim().split(/^|\s+/).map(function(r){var i="",o=r.indexOf(".");if(o>=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}P6.prototype=sz.prototype={constructor:P6,on:function(e,n){var r=this._,i=v2n(e+"",r),o,a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((o=(e=i[a]).type)&&(o=y2n(r[o],e.name)))return o;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++a<s;)if(o=(e=i[a]).type)r[o]=XRe(r[o],e.name,n);else if(n==null)for(o in r)r[o]=XRe(r[o],e.name,null);return this},copy:function(){var e={},n=this._;for(var r in n)e[r]=n[r].slice();return new P6(e)},call:function(e,n){if((o=arguments.length-2)>0)for(var r=new Array(o),i=0,o,a;i<o;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,o=a.length;i<o;++i)a[i].value.apply(n,r)},apply:function(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(n,r)}};function y2n(e,n){for(var r=0,i=e.length,o;r<i;++r)if((o=e[r]).name===n)return o.value}function XRe(e,n,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===n){e[i]=m2n,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:n,value:r}),e}var Qoe="http://www.w3.org/1999/xhtml";const QRe={svg:"http://www.w3.org/2000/svg",xhtml:Qoe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function lz(e){var n=e+="",r=n.indexOf(":");return r>=0&&(n=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),QRe.hasOwnProperty(n)?{space:QRe[n],local:e}:e}function _2n(e){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===Qoe&&n.documentElement.namespaceURI===Qoe?n.createElement(e):n.createElementNS(r,e)}}function b2n(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function YXe(e){var n=lz(e);return(n.local?b2n:_2n)(n)}function S2n(){}function Qpe(e){return e==null?S2n:function(){return this.querySelector(e)}}function E2n(e){typeof e!="function"&&(e=Qpe(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,l=i[o]=new Array(s),c,u,d=0;d<s;++d)(c=a[d])&&(u=e.call(c,c.__data__,d,a))&&("__data__"in c&&(u.__data__=c.__data__),l[d]=u);return new xf(i,this._parents)}function C2n(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function w2n(){return[]}function qXe(e){return e==null?w2n:function(){return this.querySelectorAll(e)}}function x2n(e){return function(){return C2n(e.apply(this,arguments))}}function T2n(e){typeof e=="function"?e=x2n(e):e=qXe(e);for(var n=this._groups,r=n.length,i=[],o=[],a=0;a<r;++a)for(var s=n[a],l=s.length,c,u=0;u<l;++u)(c=s[u])&&(i.push(e.call(c,c.__data__,u,s)),o.push(c));return new xf(i,o)}function KXe(e){return function(){return this.matches(e)}}function XXe(e){return function(n){return n.matches(e)}}var O2n=Array.prototype.find;function R2n(e){return function(){return O2n.call(this.children,e)}}function I2n(){return this.firstElementChild}function N2n(e){return this.select(e==null?I2n:R2n(typeof e=="function"?e:XXe(e)))}var M2n=Array.prototype.filter;function P2n(){return Array.from(this.children)}function A2n(e){return function(){return M2n.call(this.children,e)}}function D2n(e){return this.selectAll(e==null?P2n:A2n(typeof e=="function"?e:XXe(e)))}function k2n(e){typeof e!="function"&&(e=KXe(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,l=i[o]=[],c,u=0;u<s;++u)(c=a[u])&&e.call(c,c.__data__,u,a)&&l.push(c);return new xf(i,this._parents)}function QXe(e){return new Array(e.length)}function L2n(){return new xf(this._enter||this._groups.map(QXe),this._parents)}function LB(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}LB.prototype={constructor:LB,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function $2n(e){return function(){return e}}function F2n(e,n,r,i,o,a){for(var s=0,l,c=n.length,u=a.length;s<u;++s)(l=n[s])?(l.__data__=a[s],i[s]=l):r[s]=new LB(e,a[s]);for(;s<c;++s)(l=n[s])&&(o[s]=l)}function B2n(e,n,r,i,o,a,s){var l,c,u=new Map,d=n.length,f=a.length,p=new Array(d),h;for(l=0;l<d;++l)(c=n[l])&&(p[l]=h=s.call(c,c.__data__,l,n)+"",u.has(h)?o[l]=c:u.set(h,c));for(l=0;l<f;++l)h=s.call(e,a[l],l,a)+"",(c=u.get(h))?(i[l]=c,c.__data__=a[l],u.delete(h)):r[l]=new LB(e,a[l]);for(l=0;l<d;++l)(c=n[l])&&u.get(p[l])===c&&(o[l]=c)}function j2n(e){return e.__data__}function U2n(e,n){if(!arguments.length)return Array.from(this,j2n);var r=n?B2n:F2n,i=this._parents,o=this._groups;typeof e!="function"&&(e=$2n(e));for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var d=i[u],f=o[u],p=f.length,h=H2n(e.call(d,d&&d.__data__,u,i)),g=h.length,v=l[u]=new Array(g),y=s[u]=new Array(g),_=c[u]=new Array(p);r(d,f,v,y,_,h,n);for(var S=0,b=0,E,w;S<g;++S)if(E=v[S]){for(S>=b&&(b=S+1);!(w=y[b])&&++b<g;);E._next=w||null}}return s=new xf(s,i),s._enter=l,s._exit=c,s}function H2n(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function z2n(){return new xf(this._exit||this._groups.map(QXe),this._parents)}function V2n(e,n,r){var i=this.enter(),o=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),n!=null&&(o=n(o),o&&(o=o.selection())),r==null?a.remove():r(a),i&&o?i.merge(o).order():o}function G2n(e){for(var n=e.selection?e.selection():e,r=this._groups,i=n._groups,o=r.length,a=i.length,s=Math.min(o,a),l=new Array(o),c=0;c<s;++c)for(var u=r[c],d=i[c],f=u.length,p=l[c]=new Array(f),h,g=0;g<f;++g)(h=u[g]||d[g])&&(p[g]=h);for(;c<o;++c)l[c]=r[c];return new xf(l,this._parents)}function W2n(){for(var e=this._groups,n=-1,r=e.length;++n<r;)for(var i=e[n],o=i.length-1,a=i[o],s;--o>=0;)(s=i[o])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function Y2n(e){e||(e=q2n);function n(f,p){return f&&p?e(f.__data__,p.__data__):!f-!p}for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a){for(var s=r[a],l=s.length,c=o[a]=new Array(l),u,d=0;d<l;++d)(u=s[d])&&(c[d]=u);c.sort(n)}return new xf(o,this._parents).order()}function q2n(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function K2n(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function X2n(){return Array.from(this)}function Q2n(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null}function Z2n(){let e=0;for(const n of this)++e;return e}function J2n(){return!this.node()}function ePn(e){for(var n=this._groups,r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length,l;a<s;++a)(l=o[a])&&e.call(l,l.__data__,a,o);return this}function tPn(e){return function(){this.removeAttribute(e)}}function nPn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function rPn(e,n){return function(){this.setAttribute(e,n)}}function iPn(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function oPn(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function aPn(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function sPn(e,n){var r=lz(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((n==null?r.local?nPn:tPn:typeof n=="function"?r.local?aPn:oPn:r.local?iPn:rPn)(r,n))}function ZXe(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function lPn(e){return function(){this.style.removeProperty(e)}}function cPn(e,n,r){return function(){this.style.setProperty(e,n,r)}}function uPn(e,n,r){return function(){var i=n.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function dPn(e,n,r){return arguments.length>1?this.each((n==null?lPn:typeof n=="function"?uPn:cPn)(e,n,r??"")):eR(this.node(),e)}function eR(e,n){return e.style.getPropertyValue(n)||ZXe(e).getComputedStyle(e,null).getPropertyValue(n)}function fPn(e){return function(){delete this[e]}}function pPn(e,n){return function(){this[e]=n}}function hPn(e,n){return function(){var r=n.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function gPn(e,n){return arguments.length>1?this.each((n==null?fPn:typeof n=="function"?hPn:pPn)(e,n)):this.node()[e]}function JXe(e){return e.trim().split(/^|\s+/)}function Zpe(e){return e.classList||new eQe(e)}function eQe(e){this._node=e,this._names=JXe(e.getAttribute("class")||"")}eQe.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tQe(e,n){for(var r=Zpe(e),i=-1,o=n.length;++i<o;)r.add(n[i])}function nQe(e,n){for(var r=Zpe(e),i=-1,o=n.length;++i<o;)r.remove(n[i])}function mPn(e){return function(){tQe(this,e)}}function vPn(e){return function(){nQe(this,e)}}function yPn(e,n){return function(){(n.apply(this,arguments)?tQe:nQe)(this,e)}}function _Pn(e,n){var r=JXe(e+"");if(arguments.length<2){for(var i=Zpe(this.node()),o=-1,a=r.length;++o<a;)if(!i.contains(r[o]))return!1;return!0}return this.each((typeof n=="function"?yPn:n?mPn:vPn)(r,n))}function bPn(){this.textContent=""}function SPn(e){return function(){this.textContent=e}}function EPn(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function CPn(e){return arguments.length?this.each(e==null?bPn:(typeof e=="function"?EPn:SPn)(e)):this.node().textContent}function wPn(){this.innerHTML=""}function xPn(e){return function(){this.innerHTML=e}}function TPn(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function OPn(e){return arguments.length?this.each(e==null?wPn:(typeof e=="function"?TPn:xPn)(e)):this.node().innerHTML}function RPn(){this.nextSibling&&this.parentNode.appendChild(this)}function IPn(){return this.each(RPn)}function NPn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function MPn(){return this.each(NPn)}function PPn(e){var n=typeof e=="function"?e:YXe(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function APn(){return null}function DPn(e,n){var r=typeof e=="function"?e:YXe(e),i=n==null?APn:typeof n=="function"?n:Qpe(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function kPn(){var e=this.parentNode;e&&e.removeChild(this)}function LPn(){return this.each(kPn)}function $Pn(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function FPn(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function BPn(e){return this.select(e?FPn:$Pn)}function jPn(e){return arguments.length?this.property("__data__",e):this.node().__data__}function UPn(e){return function(n){e.call(this,n,this.__data__)}}function HPn(e){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");return i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),{type:n,name:r}})}function zPn(e){return function(){var n=this.__on;if(n){for(var r=0,i=-1,o=n.length,a;r<o;++r)a=n[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):n[++i]=a;++i?n.length=i:delete this.__on}}}function VPn(e,n,r){return function(){var i=this.__on,o,a=UPn(n);if(i){for(var s=0,l=i.length;s<l;++s)if((o=i[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=r),o.value=n;return}}this.addEventListener(e.type,a,r),o={type:e.type,name:e.name,value:n,listener:a,options:r},i?i.push(o):this.__on=[o]}}function GPn(e,n,r){var i=HPn(e+""),o,a=i.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,u=l.length,d;c<u;++c)for(o=0,d=l[c];o<a;++o)if((s=i[o]).type===d.type&&s.name===d.name)return d.value}return}for(l=n?VPn:zPn,o=0;o<a;++o)this.each(l(i[o],n,r));return this}function rQe(e,n,r){var i=ZXe(e),o=i.CustomEvent;typeof o=="function"?o=new o(n,r):(o=i.document.createEvent("Event"),r?(o.initEvent(n,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(n,!1,!1)),e.dispatchEvent(o)}function WPn(e,n){return function(){return rQe(this,e,n)}}function YPn(e,n){return function(){return rQe(this,e,n.apply(this,arguments))}}function qPn(e,n){return this.each((typeof n=="function"?YPn:WPn)(e,n))}function*KPn(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&(yield s)}var iQe=[null];function xf(e,n){this._groups=e,this._parents=n}function hL(){return new xf([[document.documentElement]],iQe)}function XPn(){return this}xf.prototype=hL.prototype={constructor:xf,select:E2n,selectAll:T2n,selectChild:N2n,selectChildren:D2n,filter:k2n,data:U2n,enter:L2n,exit:z2n,join:V2n,merge:G2n,selection:XPn,order:W2n,sort:Y2n,call:K2n,nodes:X2n,node:Q2n,size:Z2n,empty:J2n,each:ePn,attr:sPn,style:dPn,property:gPn,classed:_Pn,text:CPn,html:OPn,raise:IPn,lower:MPn,append:PPn,insert:DPn,remove:LPn,clone:BPn,datum:jPn,on:GPn,dispatch:qPn,[Symbol.iterator]:KPn};function nf(e){return typeof e=="string"?new xf([[document.querySelector(e)]],[document.documentElement]):new xf([[e]],iQe)}function QPn(e){let n;for(;n=e.sourceEvent;)e=n;return e}function xh(e,n){if(e=QPn(e),n===void 0&&(n=e.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var i=r.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]}if(n.getBoundingClientRect){var o=n.getBoundingClientRect();return[e.clientX-o.left-n.clientLeft,e.clientY-o.top-n.clientTop]}}return[e.pageX,e.pageY]}const ZPn={passive:!1},HA={capture:!0,passive:!1};function mK(e){e.stopImmediatePropagation()}function QT(e){e.preventDefault(),e.stopImmediatePropagation()}function oQe(e){var n=e.document.documentElement,r=nf(e).on("dragstart.drag",QT,HA);"onselectstart"in n?r.on("selectstart.drag",QT,HA):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function aQe(e,n){var r=e.document.documentElement,i=nf(e).on("dragstart.drag",null);n&&(i.on("click.drag",QT,HA),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const w4=e=>()=>e;function Zoe(e,{sourceEvent:n,subject:r,target:i,identifier:o,active:a,x:s,y:l,dx:c,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}Zoe.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function JPn(e){return!e.ctrlKey&&!e.button}function eAn(){return this.parentNode}function tAn(e,n){return n??{x:e.x,y:e.y}}function nAn(){return navigator.maxTouchPoints||"ontouchstart"in this}function sQe(){var e=JPn,n=eAn,r=tAn,i=nAn,o={},a=sz("start","drag","end"),s=0,l,c,u,d,f=0;function p(E){E.on("mousedown.drag",h).filter(i).on("touchstart.drag",y).on("touchmove.drag",_,ZPn).on("touchend.drag touchcancel.drag",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(E,w){if(!(d||!e.call(this,E,w))){var C=b(this,n.call(this,E,w),E,w,"mouse");C&&(nf(E.view).on("mousemove.drag",g,HA).on("mouseup.drag",v,HA),oQe(E.view),mK(E),u=!1,l=E.clientX,c=E.clientY,C("start",E))}}function g(E){if(QT(E),!u){var w=E.clientX-l,C=E.clientY-c;u=w*w+C*C>f}o.mouse("drag",E)}function v(E){nf(E.view).on("mousemove.drag mouseup.drag",null),aQe(E.view,u),QT(E),o.mouse("end",E)}function y(E,w){if(e.call(this,E,w)){var C=E.changedTouches,x=n.call(this,E,w),T=C.length,R,O;for(R=0;R<T;++R)(O=b(this,x,E,w,C[R].identifier,C[R]))&&(mK(E),O("start",E,C[R]))}}function _(E){var w=E.changedTouches,C=w.length,x,T;for(x=0;x<C;++x)(T=o[w[x].identifier])&&(QT(E),T("drag",E,w[x]))}function S(E){var w=E.changedTouches,C=w.length,x,T;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),x=0;x<C;++x)(T=o[w[x].identifier])&&(mK(E),T("end",E,w[x]))}function b(E,w,C,x,T,R){var O=a.copy(),M=xh(R||C,w),P,k,$;if(($=r.call(E,new Zoe("beforestart",{sourceEvent:C,target:p,identifier:T,active:s,x:M[0],y:M[1],dx:0,dy:0,dispatch:O}),x))!=null)return P=$.x-M[0]||0,k=$.y-M[1]||0,function U(z,D,B){var Y=M,q;switch(z){case"start":o[T]=U,q=s++;break;case"end":delete o[T],--s;case"drag":M=xh(B||D,w),q=s;break}O.call(z,E,new Zoe(z,{sourceEvent:D,subject:$,target:p,identifier:T,active:q,x:M[0]+P,y:M[1]+k,dx:M[0]-Y[0],dy:M[1]-Y[1],dispatch:O}),x)}}return p.filter=function(E){return arguments.length?(e=typeof E=="function"?E:w4(!!E),p):e},p.container=function(E){return arguments.length?(n=typeof E=="function"?E:w4(E),p):n},p.subject=function(E){return arguments.length?(r=typeof E=="function"?E:w4(E),p):r},p.touchable=function(E){return arguments.length?(i=typeof E=="function"?E:w4(!!E),p):i},p.on=function(){var E=a.on.apply(a,arguments);return E===a?p:E},p.clickDistance=function(E){return arguments.length?(f=(E=+E)*E,p):Math.sqrt(f)},p}function Jpe(e,n,r){e.prototype=n.prototype=r,r.constructor=e}function lQe(e,n){var r=Object.create(e.prototype);for(var i in n)r[i]=n[i];return r}function gL(){}var zA=.7,$B=1/zA,ZT="\\s*([+-]?\\d+)\\s*",VA="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ym="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rAn=/^#([0-9a-f]{3,8})$/,iAn=new RegExp(`^rgb\\(${ZT},${ZT},${ZT}\\)$`),oAn=new RegExp(`^rgb\\(${ym},${ym},${ym}\\)$`),aAn=new RegExp(`^rgba\\(${ZT},${ZT},${ZT},${VA}\\)$`),sAn=new RegExp(`^rgba\\(${ym},${ym},${ym},${VA}\\)$`),lAn=new RegExp(`^hsl\\(${VA},${ym},${ym}\\)$`),cAn=new RegExp(`^hsla\\(${VA},${ym},${ym},${VA}\\)$`),ZRe={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};Jpe(gL,GA,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:JRe,formatHex:JRe,formatHex8:uAn,formatHsl:dAn,formatRgb:eIe,toString:eIe});function JRe(){return this.rgb().formatHex()}function uAn(){return this.rgb().formatHex8()}function dAn(){return cQe(this).formatHsl()}function eIe(){return this.rgb().formatRgb()}function GA(e){var n,r;return e=(e+"").trim().toLowerCase(),(n=rAn.exec(e))?(r=n[1].length,n=parseInt(n[1],16),r===6?tIe(n):r===3?new ad(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?x4(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?x4(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=iAn.exec(e))?new ad(n[1],n[2],n[3],1):(n=oAn.exec(e))?new ad(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=aAn.exec(e))?x4(n[1],n[2],n[3],n[4]):(n=sAn.exec(e))?x4(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=lAn.exec(e))?iIe(n[1],n[2]/100,n[3]/100,1):(n=cAn.exec(e))?iIe(n[1],n[2]/100,n[3]/100,n[4]):ZRe.hasOwnProperty(e)?tIe(ZRe[e]):e==="transparent"?new ad(NaN,NaN,NaN,0):null}function tIe(e){return new ad(e>>16&255,e>>8&255,e&255,1)}function x4(e,n,r,i){return i<=0&&(e=n=r=NaN),new ad(e,n,r,i)}function fAn(e){return e instanceof gL||(e=GA(e)),e?(e=e.rgb(),new ad(e.r,e.g,e.b,e.opacity)):new ad}function Joe(e,n,r,i){return arguments.length===1?fAn(e):new ad(e,n,r,i??1)}function ad(e,n,r,i){this.r=+e,this.g=+n,this.b=+r,this.opacity=+i}Jpe(ad,Joe,lQe(gL,{brighter(e){return e=e==null?$B:Math.pow($B,e),new ad(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?zA:Math.pow(zA,e),new ad(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ad(k1(this.r),k1(this.g),k1(this.b),FB(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:nIe,formatHex:nIe,formatHex8:pAn,formatRgb:rIe,toString:rIe}));function nIe(){return`#${c1(this.r)}${c1(this.g)}${c1(this.b)}`}function pAn(){return`#${c1(this.r)}${c1(this.g)}${c1(this.b)}${c1((isNaN(this.opacity)?1:this.opacity)*255)}`}function rIe(){const e=FB(this.opacity);return`${e===1?"rgb(":"rgba("}${k1(this.r)}, ${k1(this.g)}, ${k1(this.b)}${e===1?")":`, ${e})`}`}function FB(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function k1(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function c1(e){return e=k1(e),(e<16?"0":"")+e.toString(16)}function iIe(e,n,r,i){return i<=0?e=n=r=NaN:r<=0||r>=1?e=n=NaN:n<=0&&(e=NaN),new Nh(e,n,r,i)}function cQe(e){if(e instanceof Nh)return new Nh(e.h,e.s,e.l,e.opacity);if(e instanceof gL||(e=GA(e)),!e)return new Nh;if(e instanceof Nh)return e;e=e.rgb();var n=e.r/255,r=e.g/255,i=e.b/255,o=Math.min(n,r,i),a=Math.max(n,r,i),s=NaN,l=a-o,c=(a+o)/2;return l?(n===a?s=(r-i)/l+(r<i)*6:r===a?s=(i-n)/l+2:s=(n-r)/l+4,l/=c<.5?a+o:2-a-o,s*=60):l=c>0&&c<1?0:s,new Nh(s,l,c,e.opacity)}function hAn(e,n,r,i){return arguments.length===1?cQe(e):new Nh(e,n,r,i??1)}function Nh(e,n,r,i){this.h=+e,this.s=+n,this.l=+r,this.opacity=+i}Jpe(Nh,hAn,lQe(gL,{brighter(e){return e=e==null?$B:Math.pow($B,e),new Nh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?zA:Math.pow(zA,e),new Nh(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*n,o=2*r-i;return new ad(vK(e>=240?e-240:e+120,o,i),vK(e,o,i),vK(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Nh(oIe(this.h),T4(this.s),T4(this.l),FB(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=FB(this.opacity);return`${e===1?"hsl(":"hsla("}${oIe(this.h)}, ${T4(this.s)*100}%, ${T4(this.l)*100}%${e===1?")":`, ${e})`}`}}));function oIe(e){return e=(e||0)%360,e<0?e+360:e}function T4(e){return Math.max(0,Math.min(1,e||0))}function vK(e,n,r){return(e<60?n+(r-n)*e/60:e<180?r:e<240?n+(r-n)*(240-e)/60:n)*255}const uQe=e=>()=>e;function gAn(e,n){return function(r){return e+r*n}}function mAn(e,n,r){return e=Math.pow(e,r),n=Math.pow(n,r)-e,r=1/r,function(i){return Math.pow(e+i*n,r)}}function vAn(e){return(e=+e)==1?dQe:function(n,r){return r-n?mAn(n,r,e):uQe(isNaN(n)?r:n)}}function dQe(e,n){var r=n-e;return r?gAn(e,r):uQe(isNaN(e)?n:e)}const aIe=function e(n){var r=vAn(n);function i(o,a){var s=r((o=Joe(o)).r,(a=Joe(a)).r),l=r(o.g,a.g),c=r(o.b,a.b),u=dQe(o.opacity,a.opacity);return function(d){return o.r=s(d),o.g=l(d),o.b=c(d),o.opacity=u(d),o+""}}return i.gamma=e,i}(1);function _b(e,n){return e=+e,n=+n,function(r){return e*(1-r)+n*r}}var eae=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yK=new RegExp(eae.source,"g");function yAn(e){return function(){return e}}function _An(e){return function(n){return e(n)+""}}function bAn(e,n){var r=eae.lastIndex=yK.lastIndex=0,i,o,a,s=-1,l=[],c=[];for(e=e+"",n=n+"";(i=eae.exec(e))&&(o=yK.exec(n));)(a=o.index)>r&&(a=n.slice(r,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,c.push({i:s,x:_b(i,o)})),r=yK.lastIndex;return r<n.length&&(a=n.slice(r),l[s]?l[s]+=a:l[++s]=a),l.length<2?c[0]?_An(c[0].x):yAn(n):(n=c.length,function(u){for(var d=0,f;d<n;++d)l[(f=c[d]).i]=f.x(u);return l.join("")})}var sIe=180/Math.PI,tae={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fQe(e,n,r,i,o,a){var s,l,c;return(s=Math.sqrt(e*e+n*n))&&(e/=s,n/=s),(c=e*r+n*i)&&(r-=e*c,i-=n*c),(l=Math.sqrt(r*r+i*i))&&(r/=l,i/=l,c/=l),e*i<n*r&&(e=-e,n=-n,c=-c,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(n,e)*sIe,skewX:Math.atan(c)*sIe,scaleX:s,scaleY:l}}var O4;function SAn(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?tae:fQe(n.a,n.b,n.c,n.d,n.e,n.f)}function EAn(e){return e==null||(O4||(O4=document.createElementNS("http://www.w3.org/2000/svg","g")),O4.setAttribute("transform",e),!(e=O4.transform.baseVal.consolidate()))?tae:(e=e.matrix,fQe(e.a,e.b,e.c,e.d,e.e,e.f))}function pQe(e,n,r,i){function o(u){return u.length?u.pop()+" ":""}function a(u,d,f,p,h,g){if(u!==f||d!==p){var v=h.push("translate(",null,n,null,r);g.push({i:v-4,x:_b(u,f)},{i:v-2,x:_b(d,p)})}else(f||p)&&h.push("translate("+f+n+p+r)}function s(u,d,f,p){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),p.push({i:f.push(o(f)+"rotate(",null,i)-2,x:_b(u,d)})):d&&f.push(o(f)+"rotate("+d+i)}function l(u,d,f,p){u!==d?p.push({i:f.push(o(f)+"skewX(",null,i)-2,x:_b(u,d)}):d&&f.push(o(f)+"skewX("+d+i)}function c(u,d,f,p,h,g){if(u!==f||d!==p){var v=h.push(o(h)+"scale(",null,",",null,")");g.push({i:v-4,x:_b(u,f)},{i:v-2,x:_b(d,p)})}else(f!==1||p!==1)&&h.push(o(h)+"scale("+f+","+p+")")}return function(u,d){var f=[],p=[];return u=e(u),d=e(d),a(u.translateX,u.translateY,d.translateX,d.translateY,f,p),s(u.rotate,d.rotate,f,p),l(u.skewX,d.skewX,f,p),c(u.scaleX,u.scaleY,d.scaleX,d.scaleY,f,p),u=d=null,function(h){for(var g=-1,v=p.length,y;++g<v;)f[(y=p[g]).i]=y.x(h);return f.join("")}}}var CAn=pQe(SAn,"px, ","px)","deg)"),wAn=pQe(EAn,", ",")",")"),xAn=1e-12;function lIe(e){return((e=Math.exp(e))+1/e)/2}function TAn(e){return((e=Math.exp(e))-1/e)/2}function OAn(e){return((e=Math.exp(2*e))-1)/(e+1)}const RAn=function e(n,r,i){function o(a,s){var l=a[0],c=a[1],u=a[2],d=s[0],f=s[1],p=s[2],h=d-l,g=f-c,v=h*h+g*g,y,_;if(v<xAn)_=Math.log(p/u)/n,y=function(x){return[l+x*h,c+x*g,u*Math.exp(n*x*_)]};else{var S=Math.sqrt(v),b=(p*p-u*u+i*v)/(2*u*r*S),E=(p*p-u*u-i*v)/(2*p*r*S),w=Math.log(Math.sqrt(b*b+1)-b),C=Math.log(Math.sqrt(E*E+1)-E);_=(C-w)/n,y=function(x){var T=x*_,R=lIe(w),O=u/(r*S)*(R*OAn(n*T+w)-TAn(w));return[l+O*h,c+O*g,u*R/lIe(n*T+w)]}}return y.duration=_*1e3*n/Math.SQRT2,y}return o.rho=function(a){var s=Math.max(.001,+a),l=s*s,c=l*l;return e(s,l,c)},o}(Math.SQRT2,2,4);var tR=0,v2=0,EM=0,hQe=1e3,BB,y2,jB=0,yC=0,cz=0,WA=typeof performance=="object"&&performance.now?performance:Date,gQe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ehe(){return yC||(gQe(IAn),yC=WA.now()+cz)}function IAn(){yC=0}function UB(){this._call=this._time=this._next=null}UB.prototype=mQe.prototype={constructor:UB,restart:function(e,n,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ehe():+r)+(n==null?0:+n),!this._next&&y2!==this&&(y2?y2._next=this:BB=this,y2=this),this._call=e,this._time=r,nae()},stop:function(){this._call&&(this._call=null,this._time=1/0,nae())}};function mQe(e,n,r){var i=new UB;return i.restart(e,n,r),i}function NAn(){ehe(),++tR;for(var e=BB,n;e;)(n=yC-e._time)>=0&&e._call.call(void 0,n),e=e._next;--tR}function cIe(){yC=(jB=WA.now())+cz,tR=v2=0;try{NAn()}finally{tR=0,PAn(),yC=0}}function MAn(){var e=WA.now(),n=e-jB;n>hQe&&(cz-=n,jB=e)}function PAn(){for(var e,n=BB,r,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(r=n._next,n._next=null,n=e?e._next=r:BB=r);y2=e,nae(i)}function nae(e){if(!tR){v2&&(v2=clearTimeout(v2));var n=e-yC;n>24?(e<1/0&&(v2=setTimeout(cIe,e-WA.now()-cz)),EM&&(EM=clearInterval(EM))):(EM||(jB=WA.now(),EM=setInterval(MAn,hQe)),tR=1,gQe(cIe))}}function uIe(e,n,r){var i=new UB;return n=n==null?0:+n,i.restart(o=>{i.stop(),e(o+n)},n,r),i}var AAn=sz("start","end","cancel","interrupt"),DAn=[],vQe=0,dIe=1,rae=2,A6=3,fIe=4,iae=5,D6=6;function uz(e,n,r,i,o,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;kAn(e,r,{name:n,index:i,group:o,on:AAn,tween:DAn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:vQe})}function the(e,n){var r=wg(e,n);if(r.state>vQe)throw new Error("too late; already scheduled");return r}function rv(e,n){var r=wg(e,n);if(r.state>A6)throw new Error("too late; already running");return r}function wg(e,n){var r=e.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function kAn(e,n,r){var i=e.__transition,o;i[n]=r,r.timer=mQe(a,0,r.time);function a(u){r.state=dIe,r.timer.restart(s,r.delay,r.time),r.delay<=u&&s(u-r.delay)}function s(u){var d,f,p,h;if(r.state!==dIe)return c();for(d in i)if(h=i[d],h.name===r.name){if(h.state===A6)return uIe(s);h.state===fIe?(h.state=D6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[d]):+d<n&&(h.state=D6,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[d])}if(uIe(function(){r.state===A6&&(r.state=fIe,r.timer.restart(l,r.delay,r.time),l(u))}),r.state=rae,r.on.call("start",e,e.__data__,r.index,r.group),r.state===rae){for(r.state=A6,o=new Array(p=r.tween.length),d=0,f=-1;d<p;++d)(h=r.tween[d].value.call(e,e.__data__,r.index,r.group))&&(o[++f]=h);o.length=f+1}}function l(u){for(var d=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(c),r.state=iae,1),f=-1,p=o.length;++f<p;)o[f].call(e,d);r.state===iae&&(r.on.call("end",e,e.__data__,r.index,r.group),c())}function c(){r.state=D6,r.timer.stop(),delete i[n];for(var u in i)return;delete e.__transition}}function k6(e,n){var r=e.__transition,i,o,a=!0,s;if(r){n=n==null?null:n+"";for(s in r){if((i=r[s]).name!==n){a=!1;continue}o=i.state>rae&&i.state<iae,i.state=D6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}a&&delete e.__transition}}function LAn(e){return this.each(function(){k6(this,e)})}function $An(e,n){var r,i;return function(){var o=rv(this,e),a=o.tween;if(a!==r){i=r=a;for(var s=0,l=i.length;s<l;++s)if(i[s].name===n){i=i.slice(),i.splice(s,1);break}}o.tween=i}}function FAn(e,n,r){var i,o;if(typeof r!="function")throw new Error;return function(){var a=rv(this,e),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:n,value:r},c=0,u=o.length;c<u;++c)if(o[c].name===n){o[c]=l;break}c===u&&o.push(l)}a.tween=o}}function BAn(e,n){var r=this._id;if(e+="",arguments.length<2){for(var i=wg(this.node(),r).tween,o=0,a=i.length,s;o<a;++o)if((s=i[o]).name===e)return s.value;return null}return this.each((n==null?$An:FAn)(r,e,n))}function nhe(e,n,r){var i=e._id;return e.each(function(){var o=rv(this,i);(o.value||(o.value={}))[n]=r.apply(this,arguments)}),function(o){return wg(o,i).value[n]}}function yQe(e,n){var r;return(typeof n=="number"?_b:n instanceof GA?aIe:(r=GA(n))?(n=r,aIe):bAn)(e,n)}function jAn(e){return function(){this.removeAttribute(e)}}function UAn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function HAn(e,n,r){var i,o=r+"",a;return function(){var s=this.getAttribute(e);return s===o?null:s===i?a:a=n(i=s,r)}}function zAn(e,n,r){var i,o=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===i?a:a=n(i=s,r)}}function VAn(e,n,r){var i,o,a;return function(){var s,l=r(this),c;return l==null?void this.removeAttribute(e):(s=this.getAttribute(e),c=l+"",s===c?null:s===i&&c===o?a:(o=c,a=n(i=s,l)))}}function GAn(e,n,r){var i,o,a;return function(){var s,l=r(this),c;return l==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),c=l+"",s===c?null:s===i&&c===o?a:(o=c,a=n(i=s,l)))}}function WAn(e,n){var r=lz(e),i=r==="transform"?wAn:yQe;return this.attrTween(e,typeof n=="function"?(r.local?GAn:VAn)(r,i,nhe(this,"attr."+e,n)):n==null?(r.local?UAn:jAn)(r):(r.local?zAn:HAn)(r,i,n))}function YAn(e,n){return function(r){this.setAttribute(e,n.call(this,r))}}function qAn(e,n){return function(r){this.setAttributeNS(e.space,e.local,n.call(this,r))}}function KAn(e,n){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&qAn(e,a)),r}return o._value=n,o}function XAn(e,n){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&YAn(e,a)),r}return o._value=n,o}function QAn(e,n){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var i=lz(e);return this.tween(r,(i.local?KAn:XAn)(i,n))}function ZAn(e,n){return function(){the(this,e).delay=+n.apply(this,arguments)}}function JAn(e,n){return n=+n,function(){the(this,e).delay=n}}function eDn(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?ZAn:JAn)(n,e)):wg(this.node(),n).delay}function tDn(e,n){return function(){rv(this,e).duration=+n.apply(this,arguments)}}function nDn(e,n){return n=+n,function(){rv(this,e).duration=n}}function rDn(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?tDn:nDn)(n,e)):wg(this.node(),n).duration}function iDn(e,n){if(typeof n!="function")throw new Error;return function(){rv(this,e).ease=n}}function oDn(e){var n=this._id;return arguments.length?this.each(iDn(n,e)):wg(this.node(),n).ease}function aDn(e,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;rv(this,e).ease=r}}function sDn(e){if(typeof e!="function")throw new Error;return this.each(aDn(this._id,e))}function lDn(e){typeof e!="function"&&(e=KXe(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,l=i[o]=[],c,u=0;u<s;++u)(c=a[u])&&e.call(c,c.__data__,u,a)&&l.push(c);return new ky(i,this._parents,this._name,this._id)}function cDn(e){if(e._id!==this._id)throw new Error;for(var n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++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 ky(s,this._parents,this._name,this._id)}function uDn(e){return(e+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||n==="start"})}function dDn(e,n,r){var i,o,a=uDn(n)?the:rv;return function(){var s=a(this,e),l=s.on;l!==i&&(o=(i=l).copy()).on(n,r),s.on=o}}function fDn(e,n){var r=this._id;return arguments.length<2?wg(this.node(),r).on.on(e):this.each(dDn(r,e,n))}function pDn(e){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==e)return;n&&n.removeChild(this)}}function hDn(){return this.on("end.remove",pDn(this._id))}function gDn(e){var n=this._name,r=this._id;typeof e!="function"&&(e=Qpe(e));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var l=i[s],c=l.length,u=a[s]=new Array(c),d,f,p=0;p<c;++p)(d=l[p])&&(f=e.call(d,d.__data__,p,l))&&("__data__"in d&&(f.__data__=d.__data__),u[p]=f,uz(u[p],n,r,p,u,wg(d,r)));return new ky(a,this._parents,n,r)}function mDn(e){var n=this._name,r=this._id;typeof e!="function"&&(e=qXe(e));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var c=i[l],u=c.length,d,f=0;f<u;++f)if(d=c[f]){for(var p=e.call(d,d.__data__,f,c),h,g=wg(d,r),v=0,y=p.length;v<y;++v)(h=p[v])&&uz(h,n,r,v,p,g);a.push(p),s.push(d)}return new ky(a,s,n,r)}var vDn=hL.prototype.constructor;function yDn(){return new vDn(this._groups,this._parents)}function _Dn(e,n){var r,i,o;return function(){var a=eR(this,e),s=(this.style.removeProperty(e),eR(this,e));return a===s?null:a===r&&s===i?o:o=n(r=a,i=s)}}function _Qe(e){return function(){this.style.removeProperty(e)}}function bDn(e,n,r){var i,o=r+"",a;return function(){var s=eR(this,e);return s===o?null:s===i?a:a=n(i=s,r)}}function SDn(e,n,r){var i,o,a;return function(){var s=eR(this,e),l=r(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(e),eR(this,e))),s===c?null:s===i&&c===o?a:(o=c,a=n(i=s,l))}}function EDn(e,n){var r,i,o,a="style."+n,s="end."+a,l;return function(){var c=rv(this,e),u=c.on,d=c.value[a]==null?l||(l=_Qe(n)):void 0;(u!==r||o!==d)&&(i=(r=u).copy()).on(s,o=d),c.on=i}}function CDn(e,n,r){var i=(e+="")=="transform"?CAn:yQe;return n==null?this.styleTween(e,_Dn(e,i)).on("end.style."+e,_Qe(e)):typeof n=="function"?this.styleTween(e,SDn(e,i,nhe(this,"style."+e,n))).each(EDn(this._id,e)):this.styleTween(e,bDn(e,i,n),r).on("end.style."+e,null)}function wDn(e,n,r){return function(i){this.style.setProperty(e,n.call(this,i),r)}}function xDn(e,n,r){var i,o;function a(){var s=n.apply(this,arguments);return s!==o&&(i=(o=s)&&wDn(e,s,r)),i}return a._value=n,a}function TDn(e,n,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;return this.tween(i,xDn(e,n,r??""))}function ODn(e){return function(){this.textContent=e}}function RDn(e){return function(){var n=e(this);this.textContent=n??""}}function IDn(e){return this.tween("text",typeof e=="function"?RDn(nhe(this,"text",e)):ODn(e==null?"":e+""))}function NDn(e){return function(n){this.textContent=e.call(this,n)}}function MDn(e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&NDn(o)),n}return i._value=e,i}function PDn(e){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,MDn(e))}function ADn(){for(var e=this._name,n=this._id,r=bQe(),i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],l=s.length,c,u=0;u<l;++u)if(c=s[u]){var d=wg(c,n);uz(c,e,r,u,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new ky(i,this._parents,e,r)}function DDn(){var e,n,r=this,i=r._id,o=r.size();return new Promise(function(a,s){var l={value:s},c={value:function(){--o===0&&a()}};r.each(function(){var u=rv(this,i),d=u.on;d!==e&&(n=(e=d).copy(),n._.cancel.push(l),n._.interrupt.push(l),n._.end.push(c)),u.on=n}),o===0&&a()})}var kDn=0;function ky(e,n,r,i){this._groups=e,this._parents=n,this._name=r,this._id=i}function bQe(){return++kDn}var Rv=hL.prototype;ky.prototype={constructor:ky,select:gDn,selectAll:mDn,selectChild:Rv.selectChild,selectChildren:Rv.selectChildren,filter:lDn,merge:cDn,selection:yDn,transition:ADn,call:Rv.call,nodes:Rv.nodes,node:Rv.node,size:Rv.size,empty:Rv.empty,each:Rv.each,on:fDn,attr:WAn,attrTween:QAn,style:CDn,styleTween:TDn,text:IDn,textTween:PDn,remove:hDn,tween:BAn,delay:eDn,duration:rDn,ease:oDn,easeVarying:sDn,end:DDn,[Symbol.iterator]:Rv[Symbol.iterator]};function LDn(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var $Dn={time:null,delay:0,duration:250,ease:LDn};function FDn(e,n){for(var r;!(r=e.__transition)||!(r=r[n]);)if(!(e=e.parentNode))throw new Error(`transition ${n} not found`);return r}function BDn(e){var n,r;e instanceof ky?(n=e._id,e=e._name):(n=bQe(),(r=$Dn).time=ehe(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],l=s.length,c,u=0;u<l;++u)(c=s[u])&&uz(c,e,n,u,s,r||FDn(c,n));return new ky(i,this._parents,e,n)}hL.prototype.interrupt=LAn;hL.prototype.transition=BDn;const R4=e=>()=>e;function jDn(e,{sourceEvent:n,target:r,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function ty(e,n,r){this.k=e,this.x=n,this.y=r}ty.prototype={constructor:ty,scale:function(e){return e===1?this:new ty(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new ty(this.k,this.x+this.k*e,this.y+this.k*n)},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 dz=new ty(1,0,0);SQe.prototype=ty.prototype;function SQe(e){for(;!e.__zoom;)if(!(e=e.parentNode))return dz;return e.__zoom}function _K(e){e.stopImmediatePropagation()}function CM(e){e.preventDefault(),e.stopImmediatePropagation()}function UDn(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function HDn(){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 pIe(){return this.__zoom||dz}function zDn(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function VDn(){return navigator.maxTouchPoints||"ontouchstart"in this}function GDn(e,n,r){var i=e.invertX(n[0][0])-r[0][0],o=e.invertX(n[1][0])-r[1][0],a=e.invertY(n[0][1])-r[0][1],s=e.invertY(n[1][1])-r[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function EQe(){var e=UDn,n=HDn,r=GDn,i=zDn,o=VDn,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,c=RAn,u=sz("start","zoom","end"),d,f,p,h=500,g=150,v=0,y=10;function _($){$.property("__zoom",pIe).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",O).filter(o).on("touchstart.zoom",M).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}_.transform=function($,U,z,D){var B=$.selection?$.selection():$;B.property("__zoom",pIe),$!==B?w($,U,z,D):B.interrupt().each(function(){C(this,arguments).event(D).start().zoom(null,typeof U=="function"?U.apply(this,arguments):U).end()})},_.scaleBy=function($,U,z,D){_.scaleTo($,function(){var B=this.__zoom.k,Y=typeof U=="function"?U.apply(this,arguments):U;return B*Y},z,D)},_.scaleTo=function($,U,z,D){_.transform($,function(){var B=n.apply(this,arguments),Y=this.__zoom,q=z==null?E(B):typeof z=="function"?z.apply(this,arguments):z,K=Y.invert(q),H=typeof U=="function"?U.apply(this,arguments):U;return r(b(S(Y,H),q,K),B,s)},z,D)},_.translateBy=function($,U,z,D){_.transform($,function(){return r(this.__zoom.translate(typeof U=="function"?U.apply(this,arguments):U,typeof z=="function"?z.apply(this,arguments):z),n.apply(this,arguments),s)},null,D)},_.translateTo=function($,U,z,D,B){_.transform($,function(){var Y=n.apply(this,arguments),q=this.__zoom,K=D==null?E(Y):typeof D=="function"?D.apply(this,arguments):D;return r(dz.translate(K[0],K[1]).scale(q.k).translate(typeof U=="function"?-U.apply(this,arguments):-U,typeof z=="function"?-z.apply(this,arguments):-z),Y,s)},D,B)};function S($,U){return U=Math.max(a[0],Math.min(a[1],U)),U===$.k?$:new ty(U,$.x,$.y)}function b($,U,z){var D=U[0]-z[0]*$.k,B=U[1]-z[1]*$.k;return D===$.x&&B===$.y?$:new ty($.k,D,B)}function E($){return[(+$[0][0]+ +$[1][0])/2,(+$[0][1]+ +$[1][1])/2]}function w($,U,z,D){$.on("start.zoom",function(){C(this,arguments).event(D).start()}).on("interrupt.zoom end.zoom",function(){C(this,arguments).event(D).end()}).tween("zoom",function(){var B=this,Y=arguments,q=C(B,Y).event(D),K=n.apply(B,Y),H=z==null?E(K):typeof z=="function"?z.apply(B,Y):z,G=Math.max(K[1][0]-K[0][0],K[1][1]-K[0][1]),Q=B.__zoom,le=typeof U=="function"?U.apply(B,Y):U,Z=c(Q.invert(H).concat(G/Q.k),le.invert(H).concat(G/le.k));return function(j){if(j===1)j=le;else{var F=Z(j),te=G/F[2];j=new ty(te,H[0]-F[0]*te,H[1]-F[1]*te)}q.zoom(null,j)}})}function C($,U,z){return!z&&$.__zooming||new x($,U)}function x($,U){this.that=$,this.args=U,this.active=0,this.sourceEvent=null,this.extent=n.apply($,U),this.taps=0}x.prototype={event:function($){return $&&(this.sourceEvent=$),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function($,U){return this.mouse&&$!=="mouse"&&(this.mouse[1]=U.invert(this.mouse[0])),this.touch0&&$!=="touch"&&(this.touch0[1]=U.invert(this.touch0[0])),this.touch1&&$!=="touch"&&(this.touch1[1]=U.invert(this.touch1[0])),this.that.__zoom=U,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function($){var U=nf(this.that).datum();u.call($,this.that,new jDn($,{sourceEvent:this.sourceEvent,target:_,type:$,transform:this.that.__zoom,dispatch:u}),U)}};function T($,...U){if(!e.apply(this,arguments))return;var z=C(this,U).event($),D=this.__zoom,B=Math.max(a[0],Math.min(a[1],D.k*Math.pow(2,i.apply(this,arguments)))),Y=xh($);if(z.wheel)(z.mouse[0][0]!==Y[0]||z.mouse[0][1]!==Y[1])&&(z.mouse[1]=D.invert(z.mouse[0]=Y)),clearTimeout(z.wheel);else{if(D.k===B)return;z.mouse=[Y,D.invert(Y)],k6(this),z.start()}CM($),z.wheel=setTimeout(q,g),z.zoom("mouse",r(b(S(D,B),z.mouse[0],z.mouse[1]),z.extent,s));function q(){z.wheel=null,z.end()}}function R($,...U){if(p||!e.apply(this,arguments))return;var z=$.currentTarget,D=C(this,U,!0).event($),B=nf($.view).on("mousemove.zoom",H,!0).on("mouseup.zoom",G,!0),Y=xh($,z),q=$.clientX,K=$.clientY;oQe($.view),_K($),D.mouse=[Y,this.__zoom.invert(Y)],k6(this),D.start();function H(Q){if(CM(Q),!D.moved){var le=Q.clientX-q,Z=Q.clientY-K;D.moved=le*le+Z*Z>v}D.event(Q).zoom("mouse",r(b(D.that.__zoom,D.mouse[0]=xh(Q,z),D.mouse[1]),D.extent,s))}function G(Q){B.on("mousemove.zoom mouseup.zoom",null),aQe(Q.view,D.moved),CM(Q),D.event(Q).end()}}function O($,...U){if(e.apply(this,arguments)){var z=this.__zoom,D=xh($.changedTouches?$.changedTouches[0]:$,this),B=z.invert(D),Y=z.k*($.shiftKey?.5:2),q=r(b(S(z,Y),D,B),n.apply(this,U),s);CM($),l>0?nf(this).transition().duration(l).call(w,q,D,$):nf(this).call(_.transform,q,D,$)}}function M($,...U){if(e.apply(this,arguments)){var z=$.touches,D=z.length,B=C(this,U,$.changedTouches.length===D).event($),Y,q,K,H;for(_K($),q=0;q<D;++q)K=z[q],H=xh(K,this),H=[H,this.__zoom.invert(H),K.identifier],B.touch0?!B.touch1&&B.touch0[2]!==H[2]&&(B.touch1=H,B.taps=0):(B.touch0=H,Y=!0,B.taps=1+!!d);d&&(d=clearTimeout(d)),Y&&(B.taps<2&&(f=H[0],d=setTimeout(function(){d=null},h)),k6(this),B.start())}}function P($,...U){if(this.__zooming){var z=C(this,U).event($),D=$.changedTouches,B=D.length,Y,q,K,H;for(CM($),Y=0;Y<B;++Y)q=D[Y],K=xh(q,this),z.touch0&&z.touch0[2]===q.identifier?z.touch0[0]=K:z.touch1&&z.touch1[2]===q.identifier&&(z.touch1[0]=K);if(q=z.that.__zoom,z.touch1){var G=z.touch0[0],Q=z.touch0[1],le=z.touch1[0],Z=z.touch1[1],j=(j=le[0]-G[0])*j+(j=le[1]-G[1])*j,F=(F=Z[0]-Q[0])*F+(F=Z[1]-Q[1])*F;q=S(q,Math.sqrt(j/F)),K=[(G[0]+le[0])/2,(G[1]+le[1])/2],H=[(Q[0]+Z[0])/2,(Q[1]+Z[1])/2]}else if(z.touch0)K=z.touch0[0],H=z.touch0[1];else return;z.zoom("touch",r(b(q,K,H),z.extent,s))}}function k($,...U){if(this.__zooming){var z=C(this,U).event($),D=$.changedTouches,B=D.length,Y,q;for(_K($),p&&clearTimeout(p),p=setTimeout(function(){p=null},h),Y=0;Y<B;++Y)q=D[Y],z.touch0&&z.touch0[2]===q.identifier?delete z.touch0:z.touch1&&z.touch1[2]===q.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),z.taps===2&&(q=xh(q,this),Math.hypot(f[0]-q[0],f[1]-q[1])<y)){var K=nf(this).on("dblclick.zoom");K&&K.apply(this,arguments)}}}return _.wheelDelta=function($){return arguments.length?(i=typeof $=="function"?$:R4(+$),_):i},_.filter=function($){return arguments.length?(e=typeof $=="function"?$:R4(!!$),_):e},_.touchable=function($){return arguments.length?(o=typeof $=="function"?$:R4(!!$),_):o},_.extent=function($){return arguments.length?(n=typeof $=="function"?$:R4([[+$[0][0],+$[0][1]],[+$[1][0],+$[1][1]]]),_):n},_.scaleExtent=function($){return arguments.length?(a[0]=+$[0],a[1]=+$[1],_):[a[0],a[1]]},_.translateExtent=function($){return arguments.length?(s[0][0]=+$[0][0],s[1][0]=+$[1][0],s[0][1]=+$[0][1],s[1][1]=+$[1][1],_):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},_.constrain=function($){return arguments.length?(r=$,_):r},_.duration=function($){return arguments.length?(l=+$,_):l},_.interpolate=function($){return arguments.length?(c=$,_):c},_.on=function(){var $=u.on.apply(u,arguments);return $===u?_:$},_.clickDistance=function($){return arguments.length?(v=($=+$)*$,_):Math.sqrt(v)},_.tapDistance=function($){return arguments.length?(y=+$,_):y},_}const u_={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,{id:n,sourceHandle:r,targetHandle:i})=>`Couldn't create edge for ${e} handle id: "${e==="source"?r:i}", edge id: ${n}.`,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.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`},YA=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],CQe=["Enter"," ","Escape"];var nR;(function(e){e.Strict="strict",e.Loose="loose"})(nR||(nR={}));var L1;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(L1||(L1={}));var qA;(function(e){e.Partial="partial",e.Full="full"})(qA||(qA={}));const wQe={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var Tb;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Tb||(Tb={}));var HB;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(HB||(HB={}));var xr;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(xr||(xr={}));const hIe={[xr.Left]:xr.Right,[xr.Right]:xr.Left,[xr.Top]:xr.Bottom,[xr.Bottom]:xr.Top};function xQe(e){return e===null?null:e?"valid":"invalid"}const TQe=e=>"id"in e&&"source"in e&&"target"in e,WDn=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),rhe=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),mL=(e,n=[0,0])=>{const{width:r,height:i}=d_(e),o=e.origin??n,a=r*o[0],s=i*o[1];return{x:e.position.x-a,y:e.position.y-s}},YDn=(e,n={nodeOrigin:[0,0],nodeLookup:void 0})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const r=e.reduce((i,o)=>{const a=typeof o=="string";let s=!n.nodeLookup&&!a?o:void 0;n.nodeLookup&&(s=a?n.nodeLookup.get(o):rhe(o)?o:n.nodeLookup.get(o.id));const l=s?zB(s,n.nodeOrigin):{x:0,y:0,x2:0,y2:0};return fz(i,l)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return pz(r)},vL=(e,n={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let r={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(i=>{if(n.filter===void 0||n.filter(i)){const o=zB(i);r=fz(r,o)}}),pz(r)},OQe=(e,n,[r,i,o]=[0,0,1],a=!1,s=!1)=>{const l={...yL(n,[r,i,o]),width:n.width/o,height:n.height/o},c=[];for(const u of e.values()){const{measured:d,selectable:f=!0,hidden:p=!1}=u;if(s&&!f||p)continue;const h=d.width??u.width??u.initialWidth??null,g=d.height??u.height??u.initialHeight??null,v=KA(l,iR(u)),y=(h??0)*(g??0),_=a&&v>0;(!u.internals.handleBounds||_||v>=y||u.dragging)&&c.push(u)}return c},qDn=(e,n)=>{const r=new Set;return e.forEach(i=>{r.add(i.id)}),n.filter(i=>r.has(i.source)||r.has(i.target))};function oae(e,n){const r=new Map,i=n!=null&&n.nodes?new Set(n.nodes.map(o=>o.id)):null;return e.forEach(o=>{o.measured.width&&o.measured.height&&((n==null?void 0:n.includeHiddenNodes)||!o.hidden)&&(!i||i.has(o.id))&&r.set(o.id,o)}),r}async function aae({nodes:e,width:n,height:r,panZoom:i,minZoom:o,maxZoom:a},s){if(e.size===0)return Promise.resolve(!1);const l=vL(e),c=ihe(l,n,r,(s==null?void 0:s.minZoom)??o,(s==null?void 0:s.maxZoom)??a,(s==null?void 0:s.padding)??.1);return await i.setViewport(c,{duration:s==null?void 0:s.duration}),Promise.resolve(!0)}function RQe({nodeId:e,nextPosition:n,nodeLookup:r,nodeOrigin:i=[0,0],nodeExtent:o,onError:a}){const s=r.get(e),l=s.parentId?r.get(s.parentId):void 0,{x:c,y:u}=l?l.internals.positionAbsolute:{x:0,y:0},d=s.origin??i;let f=o;if(s.extent==="parent"&&!s.expandParent)if(!l)a==null||a("005",u_.error005());else{const h=l.measured.width,g=l.measured.height;h&&g&&(f=[[c,u],[c+h,u+g]])}else l&&oR(s.extent)&&(f=[[s.extent[0][0]+c,s.extent[0][1]+u],[s.extent[1][0]+c,s.extent[1][1]+u]]);const p=oR(f)?_C(n,f,s.measured):n;return{position:{x:p.x-c+s.measured.width*d[0],y:p.y-u+s.measured.height*d[1]},positionAbsolute:p}}async function KDn({nodesToRemove:e=[],edgesToRemove:n=[],nodes:r,edges:i,onBeforeDelete:o}){const a=new Set(e.map(p=>p.id)),s=[];for(const p of r){if(p.deletable===!1)continue;const h=a.has(p.id),g=!h&&p.parentId&&s.find(v=>v.id===p.parentId);(h||g)&&s.push(p)}const l=new Set(n.map(p=>p.id)),c=i.filter(p=>p.deletable!==!1),d=qDn(s,c);for(const p of c)l.has(p.id)&&!d.find(g=>g.id===p.id)&&d.push(p);if(!o)return{edges:d,nodes:s};const f=await o({nodes:s,edges:d});return typeof f=="boolean"?f?{edges:d,nodes:s}:{edges:[],nodes:[]}:f}const rR=(e,n=0,r=1)=>Math.min(Math.max(e,n),r),_C=(e={x:0,y:0},n,r)=>({x:rR(e.x,n[0][0],n[1][0]-((r==null?void 0:r.width)??0)),y:rR(e.y,n[0][1],n[1][1]-((r==null?void 0:r.height)??0))});function IQe(e,n,r){const{width:i,height:o}=d_(r),{x:a,y:s}=r.internals.positionAbsolute;return _C(e,[[a,s],[a+i,s+o]],n)}const gIe=(e,n,r)=>e<n?rR(Math.abs(e-n),1,n)/n:e>r?-rR(Math.abs(e-r),1,n)/n:0,NQe=(e,n,r=15,i=40)=>{const o=gIe(e.x,i,n.width-i)*r,a=gIe(e.y,i,n.height-i)*r;return[o,a]},fz=(e,n)=>({x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),x2:Math.max(e.x2,n.x2),y2:Math.max(e.y2,n.y2)}),sae=({x:e,y:n,width:r,height:i})=>({x:e,y:n,x2:e+r,y2:n+i}),pz=({x:e,y:n,x2:r,y2:i})=>({x:e,y:n,width:r-e,height:i-n}),iR=(e,n=[0,0])=>{var o,a;const{x:r,y:i}=rhe(e)?e.internals.positionAbsolute:mL(e,n);return{x:r,y:i,width:((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0,height:((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0}},zB=(e,n=[0,0])=>{var o,a;const{x:r,y:i}=rhe(e)?e.internals.positionAbsolute:mL(e,n);return{x:r,y:i,x2:r+(((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0),y2:i+(((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0)}},MQe=(e,n)=>pz(fz(sae(e),sae(n))),KA=(e,n)=>{const r=Math.max(0,Math.min(e.x+e.width,n.x+n.width)-Math.max(e.x,n.x)),i=Math.max(0,Math.min(e.y+e.height,n.y+n.height)-Math.max(e.y,n.y));return Math.ceil(r*i)},mIe=e=>kh(e.width)&&kh(e.height)&&kh(e.x)&&kh(e.y),kh=e=>!isNaN(e)&&isFinite(e),XDn=(e,n)=>{},hz=(e,n=[1,1])=>({x:n[0]*Math.round(e.x/n[0]),y:n[1]*Math.round(e.y/n[1])}),yL=({x:e,y:n},[r,i,o],a=!1,s=[1,1])=>{const l={x:(e-r)/o,y:(n-i)/o};return a?hz(l,s):l},PQe=({x:e,y:n},[r,i,o])=>({x:e*o+r,y:n*o+i}),ihe=(e,n,r,i,o,a)=>{const s=n/(e.width*(1+a)),l=r/(e.height*(1+a)),c=Math.min(s,l),u=rR(c,i,o),d=e.x+e.width/2,f=e.y+e.height/2,p=n/2-d*u,h=r/2-f*u;return{x:p,y:h,zoom:u}},VB=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function oR(e){return e!==void 0&&e!=="parent"}function d_(e){var n,r;return{width:((n=e.measured)==null?void 0:n.width)??e.width??e.initialWidth??0,height:((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight??0}}function AQe(e){var n,r;return(((n=e.measured)==null?void 0:n.width)??e.width??e.initialWidth)!==void 0&&(((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight)!==void 0}function DQe(e,n={width:0,height:0},r,i,o){const a={...e},s=i.get(r);if(s){const l=s.origin||o;a.x+=s.internals.positionAbsolute.x-(n.width??0)*l[0],a.y+=s.internals.positionAbsolute.y-(n.height??0)*l[1]}return a}function dP(e,{snapGrid:n=[0,0],snapToGrid:r=!1,transform:i,containerBounds:o}){const{x:a,y:s}=gy(e),l=yL({x:a-((o==null?void 0:o.left)??0),y:s-((o==null?void 0:o.top)??0)},i),{x:c,y:u}=r?hz(l,n):l;return{xSnapped:c,ySnapped:u,...l}}const gz=e=>({width:e.offsetWidth,height:e.offsetHeight}),kQe=e=>{var n;return((n=e.getRootNode)==null?void 0:n.call(e))||(window==null?void 0:window.document)},QDn=["INPUT","SELECT","TEXTAREA"];function lae(e){var i,o;const n=((o=(i=e.composedPath)==null?void 0:i.call(e))==null?void 0:o[0])||e.target;return QDn.includes(n==null?void 0:n.nodeName)||(n==null?void 0:n.hasAttribute("contenteditable"))||!!(n!=null&&n.closest(".nokey"))}const LQe=e=>"clientX"in e,gy=(e,n)=>{var a,s;const r=LQe(e),i=r?e.clientX:(a=e.touches)==null?void 0:a[0].clientX,o=r?e.clientY:(s=e.touches)==null?void 0:s[0].clientY;return{x:i-((n==null?void 0:n.left)??0),y:o-((n==null?void 0:n.top)??0)}},vIe=(e,n,r,i,o)=>{const a=n.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(s=>{const l=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:o,position:s.getAttribute("data-handlepos"),x:(l.left-r.left)/i,y:(l.top-r.top)/i,...gz(s)}})};function $Qe({sourceX:e,sourceY:n,targetX:r,targetY:i,sourceControlX:o,sourceControlY:a,targetControlX:s,targetControlY:l}){const c=e*.125+o*.375+s*.375+r*.125,u=n*.125+a*.375+l*.375+i*.125,d=Math.abs(c-e),f=Math.abs(u-n);return[c,u,d,f]}function I4(e,n){return e>=0?.5*e:n*25*Math.sqrt(-e)}function yIe({pos:e,x1:n,y1:r,x2:i,y2:o,c:a}){switch(e){case xr.Left:return[n-I4(n-i,a),r];case xr.Right:return[n+I4(i-n,a),r];case xr.Top:return[n,r-I4(r-o,a)];case xr.Bottom:return[n,r+I4(o-r,a)]}}function FQe({sourceX:e,sourceY:n,sourcePosition:r=xr.Bottom,targetX:i,targetY:o,targetPosition:a=xr.Top,curvature:s=.25}){const[l,c]=yIe({pos:r,x1:e,y1:n,x2:i,y2:o,c:s}),[u,d]=yIe({pos:a,x1:i,y1:o,x2:e,y2:n,c:s}),[f,p,h,g]=$Qe({sourceX:e,sourceY:n,targetX:i,targetY:o,sourceControlX:l,sourceControlY:c,targetControlX:u,targetControlY:d});return[`M${e},${n} C${l},${c} ${u},${d} ${i},${o}`,f,p,h,g]}function BQe({sourceX:e,sourceY:n,targetX:r,targetY:i}){const o=Math.abs(r-e)/2,a=r<e?r+o:r-o,s=Math.abs(i-n)/2,l=i<n?i+s:i-s;return[a,l,o,s]}function ZDn({sourceNode:e,targetNode:n,selected:r=!1,zIndex:i=0,elevateOnSelect:o=!1}){if(!o)return i;const a=r||n.selected||e.selected,s=Math.max(e.internals.z||0,n.internals.z||0,1e3);return i+(a?s:0)}function JDn({sourceNode:e,targetNode:n,width:r,height:i,transform:o}){const a=fz(zB(e),zB(n));a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1);const s={x:-o[0]/o[2],y:-o[1]/o[2],width:r/o[2],height:i/o[2]};return KA(s,pz(a))>0}const ekn=({source:e,sourceHandle:n,target:r,targetHandle:i})=>`xy-edge__${e}${n||""}-${r}${i||""}`,tkn=(e,n)=>n.some(r=>r.source===e.source&&r.target===e.target&&(r.sourceHandle===e.sourceHandle||!r.sourceHandle&&!e.sourceHandle)&&(r.targetHandle===e.targetHandle||!r.targetHandle&&!e.targetHandle)),jQe=(e,n)=>{if(!e.source||!e.target)return n;let r;return TQe(e)?r={...e}:r={...e,id:ekn(e)},tkn(r,n)?n:(r.sourceHandle===null&&delete r.sourceHandle,r.targetHandle===null&&delete r.targetHandle,n.concat(r))};function UQe({sourceX:e,sourceY:n,targetX:r,targetY:i}){const[o,a,s,l]=BQe({sourceX:e,sourceY:n,targetX:r,targetY:i});return[`M ${e},${n}L ${r},${i}`,o,a,s,l]}const _Ie={[xr.Left]:{x:-1,y:0},[xr.Right]:{x:1,y:0},[xr.Top]:{x:0,y:-1},[xr.Bottom]:{x:0,y:1}},nkn=({source:e,sourcePosition:n=xr.Bottom,target:r})=>n===xr.Left||n===xr.Right?e.x<r.x?{x:1,y:0}:{x:-1,y:0}:e.y<r.y?{x:0,y:1}:{x:0,y:-1},bIe=(e,n)=>Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2));function rkn({source:e,sourcePosition:n=xr.Bottom,target:r,targetPosition:i=xr.Top,center:o,offset:a}){const s=_Ie[n],l=_Ie[i],c={x:e.x+s.x*a,y:e.y+s.y*a},u={x:r.x+l.x*a,y:r.y+l.y*a},d=nkn({source:c,sourcePosition:n,target:u}),f=d.x!==0?"x":"y",p=d[f];let h=[],g,v;const y={x:0,y:0},_={x:0,y:0},[S,b,E,w]=BQe({sourceX:e.x,sourceY:e.y,targetX:r.x,targetY:r.y});if(s[f]*l[f]===-1){g=o.x??S,v=o.y??b;const x=[{x:g,y:c.y},{x:g,y:u.y}],T=[{x:c.x,y:v},{x:u.x,y:v}];s[f]===p?h=f==="x"?x:T:h=f==="x"?T:x}else{const x=[{x:c.x,y:u.y}],T=[{x:u.x,y:c.y}];if(f==="x"?h=s.x===p?T:x:h=s.y===p?x:T,n===i){const k=Math.abs(e[f]-r[f]);if(k<=a){const $=Math.min(a-1,a-k);s[f]===p?y[f]=(c[f]>e[f]?-1:1)*$:_[f]=(u[f]>r[f]?-1:1)*$}}if(n!==i){const k=f==="x"?"y":"x",$=s[f]===l[k],U=c[k]>u[k],z=c[k]<u[k];(s[f]===1&&(!$&&U||$&&z)||s[f]!==1&&(!$&&z||$&&U))&&(h=f==="x"?x:T)}const R={x:c.x+y.x,y:c.y+y.y},O={x:u.x+_.x,y:u.y+_.y},M=Math.max(Math.abs(R.x-h[0].x),Math.abs(O.x-h[0].x)),P=Math.max(Math.abs(R.y-h[0].y),Math.abs(O.y-h[0].y));M>=P?(g=(R.x+O.x)/2,v=h[0].y):(g=h[0].x,v=(R.y+O.y)/2)}return[[e,{x:c.x+y.x,y:c.y+y.y},...h,{x:u.x+_.x,y:u.y+_.y},r],g,v,E,w]}function ikn(e,n,r,i){const o=Math.min(bIe(e,n)/2,bIe(n,r)/2,i),{x:a,y:s}=n;if(e.x===a&&a===r.x||e.y===s&&s===r.y)return`L${a} ${s}`;if(e.y===s){const u=e.x<r.x?-1:1,d=e.y<r.y?1:-1;return`L ${a+o*u},${s}Q ${a},${s} ${a},${s+o*d}`}const l=e.x<r.x?1:-1,c=e.y<r.y?-1:1;return`L ${a},${s+o*c}Q ${a},${s} ${a+o*l},${s}`}function cae({sourceX:e,sourceY:n,sourcePosition:r=xr.Bottom,targetX:i,targetY:o,targetPosition:a=xr.Top,borderRadius:s=5,centerX:l,centerY:c,offset:u=20}){const[d,f,p,h,g]=rkn({source:{x:e,y:n},sourcePosition:r,target:{x:i,y:o},targetPosition:a,center:{x:l,y:c},offset:u});return[d.reduce((y,_,S)=>{let b="";return S>0&&S<d.length-1?b=ikn(d[S-1],_,d[S+1],s):b=`${S===0?"M":"L"}${_.x} ${_.y}`,y+=b,y},""),f,p,h,g]}function SIe(e){var n;return e&&!!(e.internals.handleBounds||(n=e.handles)!=null&&n.length)&&!!(e.measured.width||e.width||e.initialWidth)}function okn(e){var f;const{sourceNode:n,targetNode:r}=e;if(!SIe(n)||!SIe(r))return null;const i=n.internals.handleBounds||EIe(n.handles),o=r.internals.handleBounds||EIe(r.handles),a=CIe((i==null?void 0:i.source)??[],e.sourceHandle),s=CIe(e.connectionMode===nR.Strict?(o==null?void 0:o.target)??[]:((o==null?void 0:o.target)??[]).concat((o==null?void 0:o.source)??[]),e.targetHandle);if(!a||!s)return(f=e.onError)==null||f.call(e,"008",u_.error008(a?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const l=(a==null?void 0:a.position)||xr.Bottom,c=(s==null?void 0:s.position)||xr.Top,u=XA(n,a,l),d=XA(r,s,c);return{sourceX:u.x,sourceY:u.y,targetX:d.x,targetY:d.y,sourcePosition:l,targetPosition:c}}function EIe(e){if(!e)return null;const n=[],r=[];for(const i of e)i.width=i.width??1,i.height=i.height??1,i.type==="source"?n.push(i):i.type==="target"&&r.push(i);return{source:n,target:r}}function XA(e,n,r=xr.Left,i=!1){const o=((n==null?void 0:n.x)??0)+e.internals.positionAbsolute.x,a=((n==null?void 0:n.y)??0)+e.internals.positionAbsolute.y,{width:s,height:l}=n??d_(e);if(i)return{x:o+s/2,y:a+l/2};switch((n==null?void 0:n.position)??r){case xr.Top:return{x:o+s/2,y:a};case xr.Right:return{x:o+s,y:a+l/2};case xr.Bottom:return{x:o+s/2,y:a+l};case xr.Left:return{x:o,y:a+l/2}}}function CIe(e,n){return e&&(n?e.find(r=>r.id===n):e[0])||null}function uae(e,n){return e?typeof e=="string"?e:`${n?`${n}__`:""}${Object.keys(e).sort().map(i=>`${i}=${e[i]}`).join("&")}`:""}function akn(e,{id:n,defaultColor:r,defaultMarkerStart:i,defaultMarkerEnd:o}){const a=new Set;return e.reduce((s,l)=>([l.markerStart||i,l.markerEnd||o].forEach(c=>{if(c&&typeof c=="object"){const u=uae(c,n);a.has(u)||(s.push({id:u,color:c.color||r,...c}),a.add(u))}}),s),[]).sort((s,l)=>s.id.localeCompare(l.id))}const ohe={nodeOrigin:[0,0],nodeExtent:YA,elevateNodesOnSelect:!0,defaults:{}},skn={...ohe,checkEquality:!0};function ahe(e,n){const r={...e};for(const i in n)n[i]!==void 0&&(r[i]=n[i]);return r}function lkn(e,n,r){const i=ahe(ohe,r);for(const o of e.values())if(o.parentId)she(o,e,n,i);else{const a=mL(o,i.nodeOrigin),s=oR(o.extent)?o.extent:i.nodeExtent,l=_C(a,s,d_(o));o.internals.positionAbsolute=l}}function dae(e,n,r,i){var l,c;const o=ahe(skn,i),a=new Map(n),s=o!=null&&o.elevateNodesOnSelect?1e3:0;n.clear(),r.clear();for(const u of e){let d=a.get(u.id);if(o.checkEquality&&u===(d==null?void 0:d.internals.userNode))n.set(u.id,d);else{const f=mL(u,o.nodeOrigin),p=oR(u.extent)?u.extent:o.nodeExtent,h=_C(f,p,d_(u));d={...o.defaults,...u,measured:{width:(l=u.measured)==null?void 0:l.width,height:(c=u.measured)==null?void 0:c.height},internals:{positionAbsolute:h,handleBounds:u.measured?d==null?void 0:d.internals.handleBounds:void 0,z:HQe(u,s),userNode:u}},n.set(u.id,d)}u.parentId&&she(d,n,r,i)}}function ckn(e,n){if(!e.parentId)return;const r=n.get(e.parentId);r?r.set(e.id,e):n.set(e.parentId,new Map([[e.id,e]]))}function she(e,n,r,i){const{elevateNodesOnSelect:o,nodeOrigin:a,nodeExtent:s}=ahe(ohe,i),l=e.parentId,c=n.get(l);if(!c){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}ckn(e,r);const u=o?1e3:0,{x:d,y:f,z:p}=ukn(e,c,a,s,u),{positionAbsolute:h}=e.internals,g=d!==h.x||f!==h.y;(g||p!==e.internals.z)&&(e.internals={...e.internals,positionAbsolute:g?{x:d,y:f}:h,z:p})}function HQe(e,n){return(kh(e.zIndex)?e.zIndex:0)+(e.selected?n:0)}function ukn(e,n,r,i,o){const{x:a,y:s}=n.internals.positionAbsolute,l=d_(e),c=mL(e,r),u=oR(e.extent)?_C(c,e.extent,l):c;let d=_C({x:a+u.x,y:s+u.y},i,l);e.extent==="parent"&&(d=IQe(d,l,n));const f=HQe(e,o),p=n.internals.z??0;return{x:d.x,y:d.y,z:p>f?p:f}}function lhe(e,n,r,i=[0,0]){var s;const o=[],a=new Map;for(const l of e){const c=n.get(l.parentId);if(!c)continue;const u=((s=a.get(l.parentId))==null?void 0:s.expandedRect)??iR(c),d=MQe(u,l.rect);a.set(l.parentId,{expandedRect:d,parent:c})}return a.size>0&&a.forEach(({expandedRect:l,parent:c},u)=>{var b;const d=c.internals.positionAbsolute,f=d_(c),p=c.origin??i,h=l.x<d.x?Math.round(Math.abs(d.x-l.x)):0,g=l.y<d.y?Math.round(Math.abs(d.y-l.y)):0,v=Math.max(f.width,Math.round(l.width)),y=Math.max(f.height,Math.round(l.height)),_=(v-f.width)*p[0],S=(y-f.height)*p[1];(h>0||g>0||_||S)&&(o.push({id:u,type:"position",position:{x:c.position.x-h+_,y:c.position.y-g+S}}),(b=r.get(u))==null||b.forEach(E=>{e.some(w=>w.id===E.id)||o.push({id:E.id,type:"position",position:{x:E.position.x+h,y:E.position.y+g}})})),(f.width<l.width||f.height<l.height||h||g)&&o.push({id:u,type:"dimensions",setAttributes:!0,dimensions:{width:v+(h?p[0]*h-_:0),height:y+(g?p[1]*g-S:0)}})}),o}function dkn(e,n,r,i,o,a){const s=i==null?void 0:i.querySelector(".xyflow__viewport");let l=!1;if(!s)return{changes:[],updatedInternals:l};const c=[],u=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(u.transform),f=[];for(const p of e.values()){const h=n.get(p.id);if(h)if(h.hidden)h.internals={...h.internals,handleBounds:void 0},l=!0;else{const g=gz(p.nodeElement),v=h.measured.width!==g.width||h.measured.height!==g.height;if(!!(g.width&&g.height&&(v||!h.internals.handleBounds||p.force))){const _=p.nodeElement.getBoundingClientRect(),S=oR(h.extent)?h.extent:a;let{positionAbsolute:b}=h.internals;h.parentId&&h.extent==="parent"?b=IQe(b,g,n.get(h.parentId)):S&&(b=_C(b,S,g)),h.measured=g,h.internals={...h.internals,positionAbsolute:b,handleBounds:{source:vIe("source",p.nodeElement,_,d,h.id),target:vIe("target",p.nodeElement,_,d,h.id)}},h.parentId&&she(h,n,r,{nodeOrigin:o}),l=!0,v&&(c.push({id:h.id,type:"dimensions",dimensions:g}),h.expandParent&&h.parentId&&f.push({id:h.id,parentId:h.parentId,rect:iR(h,o)}))}}}if(f.length>0){const p=lhe(f,n,r,o);c.push(...p)}return{changes:c,updatedInternals:l}}async function fkn({delta:e,panZoom:n,transform:r,translateExtent:i,width:o,height:a}){if(!n||!e.x&&!e.y)return Promise.resolve(!1);const s=await n.setViewportConstrained({x:r[0]+e.x,y:r[1]+e.y,zoom:r[2]},[[0,0],[o,a]],i),l=!!s&&(s.x!==r[0]||s.y!==r[1]||s.k!==r[2]);return Promise.resolve(l)}function zQe(e,n,r){e.clear(),n.clear();for(const i of r){const{source:o,target:a,sourceHandle:s=null,targetHandle:l=null}=i,c=`${o}-source-${s}`,u=`${a}-target-${l}`,d=e.get(c)||new Map,f=e.get(u)||new Map,p={edgeId:i.id,source:o,target:a,sourceHandle:s,targetHandle:l};n.set(i.id,i),e.set(c,d.set(`${a}-${l}`,p)),e.set(u,f.set(`${o}-${s}`,p))}}function VQe(e,n){if(!e.parentId)return!1;const r=n.get(e.parentId);return r?r.selected?!0:VQe(r,n):!1}function wIe(e,n,r){let i=e;do{if(i!=null&&i.matches(n))return!0;if(i===r)return!1;i=i.parentElement}while(i);return!1}function pkn(e,n,r,i){const o=new Map;for(const[a,s]of e)if((s.selected||s.id===i)&&(!s.parentId||!VQe(s,e))&&(s.draggable||n&&typeof s.draggable>"u")){const l=e.get(a);l&&o.set(a,{id:a,position:l.position||{x:0,y:0},distance:{x:r.x-l.internals.positionAbsolute.x,y:r.y-l.internals.positionAbsolute.y},extent:l.extent,parentId:l.parentId,origin:l.origin,expandParent:l.expandParent,internals:{positionAbsolute:l.internals.positionAbsolute||{x:0,y:0}},measured:{width:l.measured.width??0,height:l.measured.height??0}})}return o}function bK({nodeId:e,dragItems:n,nodeLookup:r,dragging:i=!0}){var s,l,c;const o=[];for(const[u,d]of n){const f=(s=r.get(u))==null?void 0:s.internals.userNode;f&&o.push({...f,position:d.position,dragging:i})}if(!e)return[o[0],o];const a=(l=r.get(e))==null?void 0:l.internals.userNode;return[a?{...a,position:((c=n.get(e))==null?void 0:c.position)||a.position,dragging:i}:o[0],o]}function hkn({onNodeMouseDown:e,getStoreItems:n,onDragStart:r,onDrag:i,onDragStop:o}){let a={x:null,y:null},s=0,l=new Map,c=!1,u={x:0,y:0},d=null,f=!1,p=null,h=!1;function g({noDragClassName:y,handleSelector:_,domNode:S,isSelectable:b,nodeId:E,nodeClickDistance:w=0}){p=nf(S);function C({x:O,y:M},P){const{nodeLookup:k,nodeExtent:$,snapGrid:U,snapToGrid:z,nodeOrigin:D,onNodeDrag:B,onSelectionDrag:Y,onError:q,updateNodePositions:K}=n();a={x:O,y:M};let H=!1,G={x:0,y:0,x2:0,y2:0};if(l.size>1&&$){const Q=vL(l);G=sae(Q)}for(const[Q,le]of l){if(!k.has(Q))continue;let Z={x:O-le.distance.x,y:M-le.distance.y};z&&(Z=hz(Z,U));let j=[[$[0][0],$[0][1]],[$[1][0],$[1][1]]];if(l.size>1&&$&&!le.extent){const{positionAbsolute:oe}=le.internals,de=oe.x-G.x+$[0][0],pe=oe.x+le.measured.width-G.x2+$[1][0],me=oe.y-G.y+$[0][1],ve=oe.y+le.measured.height-G.y2+$[1][1];j=[[de,me],[pe,ve]]}const{position:F,positionAbsolute:te}=RQe({nodeId:Q,nextPosition:Z,nodeLookup:k,nodeExtent:j,nodeOrigin:D,onError:q});H=H||le.position.x!==F.x||le.position.y!==F.y,le.position=F,le.internals.positionAbsolute=te}if(H&&(K(l,!0),P&&(i||B||!E&&Y))){const[Q,le]=bK({nodeId:E,dragItems:l,nodeLookup:k});i==null||i(P,l,Q,le),B==null||B(P,Q,le),E||Y==null||Y(P,le)}}async function x(){if(!d)return;const{transform:O,panBy:M,autoPanSpeed:P}=n(),[k,$]=NQe(u,d,P);(k!==0||$!==0)&&(a.x=(a.x??0)-k/O[2],a.y=(a.y??0)-$/O[2],await M({x:k,y:$})&&C(a,null)),s=requestAnimationFrame(x)}function T(O){var H;const{nodeLookup:M,multiSelectionActive:P,nodesDraggable:k,transform:$,snapGrid:U,snapToGrid:z,selectNodesOnDrag:D,onNodeDragStart:B,onSelectionDragStart:Y,unselectNodesAndEdges:q}=n();f=!0,(!D||!b)&&!P&&E&&((H=M.get(E))!=null&&H.selected||q()),b&&D&&E&&(e==null||e(E));const K=dP(O.sourceEvent,{transform:$,snapGrid:U,snapToGrid:z,containerBounds:d});if(a=K,l=pkn(M,k,K,E),l.size>0&&(r||B||!E&&Y)){const[G,Q]=bK({nodeId:E,dragItems:l,nodeLookup:M});r==null||r(O.sourceEvent,l,G,Q),B==null||B(O.sourceEvent,G,Q),E||Y==null||Y(O.sourceEvent,Q)}}const R=sQe().clickDistance(w).on("start",O=>{const{domNode:M,nodeDragThreshold:P,transform:k,snapGrid:$,snapToGrid:U}=n();d=(M==null?void 0:M.getBoundingClientRect())||null,h=!1,P===0&&T(O),a=dP(O.sourceEvent,{transform:k,snapGrid:$,snapToGrid:U,containerBounds:d}),u=gy(O.sourceEvent,d)}).on("drag",O=>{const{autoPanOnNodeDrag:M,transform:P,snapGrid:k,snapToGrid:$,nodeDragThreshold:U,nodeLookup:z}=n(),D=dP(O.sourceEvent,{transform:P,snapGrid:k,snapToGrid:$,containerBounds:d});if((O.sourceEvent.type==="touchmove"&&O.sourceEvent.touches.length>1||E&&!z.has(E))&&(h=!0),!h){if(!c&&M&&f&&(c=!0,x()),!f){const B=D.xSnapped-(a.x??0),Y=D.ySnapped-(a.y??0);Math.sqrt(B*B+Y*Y)>U&&T(O)}(a.x!==D.xSnapped||a.y!==D.ySnapped)&&l&&f&&(u=gy(O.sourceEvent,d),C(D,O.sourceEvent))}}).on("end",O=>{if(!(!f||h)&&(c=!1,f=!1,cancelAnimationFrame(s),l.size>0)){const{nodeLookup:M,updateNodePositions:P,onNodeDragStop:k,onSelectionDragStop:$}=n();if(P(l,!1),o||k||!E&&$){const[U,z]=bK({nodeId:E,dragItems:l,nodeLookup:M,dragging:!1});o==null||o(O.sourceEvent,l,U,z),k==null||k(O.sourceEvent,U,z),E||$==null||$(O.sourceEvent,z)}}}).filter(O=>{const M=O.target;return!O.button&&(!y||!wIe(M,`.${y}`,S))&&(!_||wIe(M,_,S))});p.call(R)}function v(){p==null||p.on(".drag",null)}return{update:g,destroy:v}}function gkn(e,n,r){const i=[],o={x:e.x-r,y:e.y-r,width:r*2,height:r*2};for(const a of n.values())KA(o,iR(a))>0&&i.push(a);return i}const mkn=250;function vkn(e,n,r,i){var l,c;let o=[],a=1/0;const s=gkn(e,r,n+mkn);for(const u of s){const d=[...((l=u.internals.handleBounds)==null?void 0:l.source)??[],...((c=u.internals.handleBounds)==null?void 0:c.target)??[]];for(const f of d){if(i.nodeId===f.nodeId&&i.type===f.type&&i.id===f.id)continue;const{x:p,y:h}=XA(u,f,f.position,!0),g=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(h-e.y,2));g>n||(g<a?(o=[{...f,x:p,y:h}],a=g):g===a&&o.push({...f,x:p,y:h}))}}if(!o.length)return null;if(o.length>1){const u=i.type==="source"?"target":"source";return o.find(d=>d.type===u)??o[0]}return o[0]}function GQe(e,n,r,i,o,a=!1){var u,d,f;const s=i.get(e);if(!s)return null;const l=o==="strict"?(u=s.internals.handleBounds)==null?void 0:u[n]:[...((d=s.internals.handleBounds)==null?void 0:d.source)??[],...((f=s.internals.handleBounds)==null?void 0:f.target)??[]],c=(r?l==null?void 0:l.find(p=>p.id===r):l==null?void 0:l[0])??null;return c&&a?{...c,...XA(s,c,c.position,!0)}:c}function WQe(e,n){return e||(n!=null&&n.classList.contains("target")?"target":n!=null&&n.classList.contains("source")?"source":null)}function ykn(e,n){let r=null;return n?r=!0:e&&!n&&(r=!1),r}const YQe=()=>!0;function _kn(e,{connectionMode:n,connectionRadius:r,handleId:i,nodeId:o,edgeUpdaterType:a,isTarget:s,domNode:l,nodeLookup:c,lib:u,autoPanOnConnect:d,flowId:f,panBy:p,cancelConnection:h,onConnectStart:g,onConnect:v,onConnectEnd:y,isValidConnection:_=YQe,onReconnectEnd:S,updateConnection:b,getTransform:E,getFromHandle:w,autoPanSpeed:C}){const x=kQe(e.target);let T=0,R;const{x:O,y:M}=gy(e),P=x==null?void 0:x.elementFromPoint(O,M),k=WQe(a,P),$=l==null?void 0:l.getBoundingClientRect();if(!$||!k)return;const U=GQe(o,k,i,c,n);if(!U)return;let z=gy(e,$),D=!1,B=null,Y=!1,q=null;function K(){if(!d||!$)return;const[te,oe]=NQe(z,$,C);p({x:te,y:oe}),T=requestAnimationFrame(K)}const H={...U,nodeId:o,type:k,position:U.position},G=c.get(o),le={inProgress:!0,isValid:null,from:XA(G,H,xr.Left,!0),fromHandle:H,fromPosition:H.position,fromNode:G,to:z,toHandle:null,toPosition:hIe[H.position],toNode:null};b(le);let Z=le;g==null||g(e,{nodeId:o,handleId:i,handleType:k});function j(te){if(!w()||!H){F(te);return}const oe=E();z=gy(te,$),R=vkn(yL(z,oe,!1,[1,1]),r,c,H),D||(K(),D=!0);const de=qQe(te,{handle:R,connectionMode:n,fromNodeId:o,fromHandleId:i,fromType:s?"target":"source",isValidConnection:_,doc:x,lib:u,flowId:f,nodeLookup:c});q=de.handleDomNode,B=de.connection,Y=ykn(!!R,de.isValid);const pe={...Z,isValid:Y,to:R&&Y?PQe({x:R.x,y:R.y},oe):z,toHandle:de.toHandle,toPosition:Y&&de.toHandle?de.toHandle.position:hIe[H.position],toNode:de.toHandle?c.get(de.toHandle.nodeId):null};Y&&R&&Z.toHandle&&pe.toHandle&&Z.toHandle.type===pe.toHandle.type&&Z.toHandle.nodeId===pe.toHandle.nodeId&&Z.toHandle.id===pe.toHandle.id&&Z.to.x===pe.to.x&&Z.to.y===pe.to.y||(b(pe),Z=pe)}function F(te){(R||q)&&B&&Y&&(v==null||v(B));const{inProgress:oe,...de}=Z,pe={...de,toPosition:Z.toHandle?Z.toPosition:null};y==null||y(te,pe),a&&(S==null||S(te,pe)),h(),cancelAnimationFrame(T),D=!1,Y=!1,B=null,q=null,x.removeEventListener("mousemove",j),x.removeEventListener("mouseup",F),x.removeEventListener("touchmove",j),x.removeEventListener("touchend",F)}x.addEventListener("mousemove",j),x.addEventListener("mouseup",F),x.addEventListener("touchmove",j),x.addEventListener("touchend",F)}function qQe(e,{handle:n,connectionMode:r,fromNodeId:i,fromHandleId:o,fromType:a,doc:s,lib:l,flowId:c,isValidConnection:u=YQe,nodeLookup:d}){const f=a==="target",p=n?s.querySelector(`.${l}-flow__handle[data-id="${c}-${n==null?void 0:n.nodeId}-${n==null?void 0:n.id}-${n==null?void 0:n.type}"]`):null,{x:h,y:g}=gy(e),v=s.elementFromPoint(h,g),y=v!=null&&v.classList.contains(`${l}-flow__handle`)?v:p,_={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){const S=WQe(void 0,y),b=y.getAttribute("data-nodeid"),E=y.getAttribute("data-handleid"),w=y.classList.contains("connectable"),C=y.classList.contains("connectableend");if(!b||!S)return _;const x={source:f?b:i,sourceHandle:f?E:o,target:f?i:b,targetHandle:f?o:E};_.connection=x;const R=w&&C&&(r===nR.Strict?f&&S==="source"||!f&&S==="target":b!==i||E!==o);_.isValid=R&&u(x),_.toHandle=GQe(b,S,E,d,r,!1)}return _}const fae={onPointerDown:_kn,isValid:qQe};function bkn({domNode:e,panZoom:n,getTransform:r,getViewScale:i}){const o=nf(e);function a({translateExtent:l,width:c,height:u,zoomStep:d=10,pannable:f=!0,zoomable:p=!0,inversePan:h=!1}){const g=b=>{const E=r();if(b.sourceEvent.type!=="wheel"||!n)return;const w=-b.sourceEvent.deltaY*(b.sourceEvent.deltaMode===1?.05:b.sourceEvent.deltaMode?1:.002)*d,C=E[2]*Math.pow(2,w);n.scaleTo(C)};let v=[0,0];const y=b=>{(b.sourceEvent.type==="mousedown"||b.sourceEvent.type==="touchstart")&&(v=[b.sourceEvent.clientX??b.sourceEvent.touches[0].clientX,b.sourceEvent.clientY??b.sourceEvent.touches[0].clientY])},_=b=>{const E=r();if(b.sourceEvent.type!=="mousemove"&&b.sourceEvent.type!=="touchmove"||!n)return;const w=[b.sourceEvent.clientX??b.sourceEvent.touches[0].clientX,b.sourceEvent.clientY??b.sourceEvent.touches[0].clientY],C=[w[0]-v[0],w[1]-v[1]];v=w;const x=i()*Math.max(E[2],Math.log(E[2]))*(h?-1:1),T={x:E[0]-C[0]*x,y:E[1]-C[1]*x},R=[[0,0],[c,u]];n.setViewportConstrained({x:T.x,y:T.y,zoom:E[2]},R,l)},S=EQe().on("start",y).on("zoom",f?_:null).on("zoom.wheel",p?g:null);o.call(S,{})}function s(){o.on("zoom",null)}return{update:a,destroy:s,pointer:xh}}const Skn=(e,n)=>e.x!==n.x||e.y!==n.y||e.zoom!==n.k,mz=e=>({x:e.x,y:e.y,zoom:e.k}),SK=({x:e,y:n,zoom:r})=>dz.translate(e,n).scale(r),ET=(e,n)=>e.target.closest(`.${n}`),KQe=(e,n)=>n===2&&Array.isArray(e)&&e.includes(2),EK=(e,n=0,r=()=>{})=>{const i=typeof n=="number"&&n>0;return i||r(),i?e.transition().duration(n).on("end",r):e},XQe=e=>{const n=e.ctrlKey&&VB()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*n};function Ekn({zoomPanValues:e,noWheelClassName:n,d3Selection:r,d3Zoom:i,panOnScrollMode:o,panOnScrollSpeed:a,zoomOnPinch:s,onPanZoomStart:l,onPanZoom:c,onPanZoomEnd:u}){return d=>{if(ET(d,n))return!1;d.preventDefault(),d.stopImmediatePropagation();const f=r.property("__zoom").k||1;if(d.ctrlKey&&s){const y=xh(d),_=XQe(d),S=f*Math.pow(2,_);i.scaleTo(r,S,y,d);return}const p=d.deltaMode===1?20:1;let h=o===L1.Vertical?0:d.deltaX*p,g=o===L1.Horizontal?0:d.deltaY*p;!VB()&&d.shiftKey&&o!==L1.Vertical&&(h=d.deltaY*p,g=0),i.translateBy(r,-(h/f)*a,-(g/f)*a,{internal:!0});const v=mz(r.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,l==null||l(d,v)),e.isPanScrolling&&(c==null||c(d,v),e.panScrollTimeout=setTimeout(()=>{u==null||u(d,v),e.isPanScrolling=!1},150))}}function Ckn({noWheelClassName:e,preventScrolling:n,d3ZoomHandler:r}){return function(i,o){if(!n&&i.type==="wheel"&&!i.ctrlKey||ET(i,e))return null;i.preventDefault(),r.call(this,i,o)}}function wkn({zoomPanValues:e,onDraggingChange:n,onPanZoomStart:r}){return i=>{var a,s,l;if((a=i.sourceEvent)!=null&&a.internal)return;const o=mz(i.transform);e.mouseButton=((s=i.sourceEvent)==null?void 0:s.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=o,((l=i.sourceEvent)==null?void 0:l.type)==="mousedown"&&n(!0),r&&(r==null||r(i.sourceEvent,o))}}function xkn({zoomPanValues:e,panOnDrag:n,onPaneContextMenu:r,onTransformChange:i,onPanZoom:o}){return a=>{var s,l;e.usedRightMouseButton=!!(r&&KQe(n,e.mouseButton??0)),(s=a.sourceEvent)!=null&&s.sync||i([a.transform.x,a.transform.y,a.transform.k]),o&&!((l=a.sourceEvent)!=null&&l.internal)&&(o==null||o(a.sourceEvent,mz(a.transform)))}}function Tkn({zoomPanValues:e,panOnDrag:n,panOnScroll:r,onDraggingChange:i,onPanZoomEnd:o,onPaneContextMenu:a}){return s=>{var l;if(!((l=s.sourceEvent)!=null&&l.internal)&&(e.isZoomingOrPanning=!1,a&&KQe(n,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&a(s.sourceEvent),e.usedRightMouseButton=!1,i(!1),o&&Skn(e.prevViewport,s.transform))){const c=mz(s.transform);e.prevViewport=c,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o==null||o(s.sourceEvent,c)},r?150:0)}}}function Okn({zoomActivationKeyPressed:e,zoomOnScroll:n,zoomOnPinch:r,panOnDrag:i,panOnScroll:o,zoomOnDoubleClick:a,userSelectionActive:s,noWheelClassName:l,noPanClassName:c,lib:u}){return d=>{var g;const f=e||n,p=r&&d.ctrlKey;if(d.button===1&&d.type==="mousedown"&&(ET(d,`${u}-flow__node`)||ET(d,`${u}-flow__edge`)))return!0;if(!i&&!f&&!o&&!a&&!r||s||ET(d,l)&&d.type==="wheel"||ET(d,c)&&(d.type!=="wheel"||o&&d.type==="wheel"&&!e)||!r&&d.ctrlKey&&d.type==="wheel")return!1;if(!r&&d.type==="touchstart"&&((g=d.touches)==null?void 0:g.length)>1)return d.preventDefault(),!1;if(!f&&!o&&!p&&d.type==="wheel"||!i&&(d.type==="mousedown"||d.type==="touchstart")||Array.isArray(i)&&!i.includes(d.button)&&d.type==="mousedown")return!1;const h=Array.isArray(i)&&i.includes(d.button)||!d.button||d.button<=1;return(!d.ctrlKey||d.type==="wheel")&&h}}function Rkn({domNode:e,minZoom:n,maxZoom:r,paneClickDistance:i,translateExtent:o,viewport:a,onPanZoom:s,onPanZoomStart:l,onPanZoomEnd:c,onDraggingChange:u}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e.getBoundingClientRect(),p=EQe().clickDistance(!kh(i)||i<0?0:i).scaleExtent([n,r]).translateExtent(o),h=nf(e).call(p);b({x:a.x,y:a.y,zoom:rR(a.zoom,n,r)},[[0,0],[f.width,f.height]],o);const g=h.on("wheel.zoom"),v=h.on("dblclick.zoom");p.wheelDelta(XQe);function y(P,k){return h?new Promise($=>{p==null||p.transform(EK(h,k==null?void 0:k.duration,()=>$(!0)),P)}):Promise.resolve(!1)}function _({noWheelClassName:P,noPanClassName:k,onPaneContextMenu:$,userSelectionActive:U,panOnScroll:z,panOnDrag:D,panOnScrollMode:B,panOnScrollSpeed:Y,preventScrolling:q,zoomOnPinch:K,zoomOnScroll:H,zoomOnDoubleClick:G,zoomActivationKeyPressed:Q,lib:le,onTransformChange:Z}){U&&!d.isZoomingOrPanning&&S();const F=z&&!Q&&!U?Ekn({zoomPanValues:d,noWheelClassName:P,d3Selection:h,d3Zoom:p,panOnScrollMode:B,panOnScrollSpeed:Y,zoomOnPinch:K,onPanZoomStart:l,onPanZoom:s,onPanZoomEnd:c}):Ckn({noWheelClassName:P,preventScrolling:q,d3ZoomHandler:g});if(h.on("wheel.zoom",F,{passive:!1}),!U){const oe=wkn({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:l});p.on("start",oe);const de=xkn({zoomPanValues:d,panOnDrag:D,onPaneContextMenu:!!$,onPanZoom:s,onTransformChange:Z});p.on("zoom",de);const pe=Tkn({zoomPanValues:d,panOnDrag:D,panOnScroll:z,onPaneContextMenu:$,onPanZoomEnd:c,onDraggingChange:u});p.on("end",pe)}const te=Okn({zoomActivationKeyPressed:Q,panOnDrag:D,zoomOnScroll:H,panOnScroll:z,zoomOnDoubleClick:G,zoomOnPinch:K,userSelectionActive:U,noPanClassName:k,noWheelClassName:P,lib:le});p.filter(te),G?h.on("dblclick.zoom",v):h.on("dblclick.zoom",null)}function S(){p.on("zoom",null)}async function b(P,k,$){const U=SK(P),z=p==null?void 0:p.constrain()(U,k,$);return z&&await y(z),new Promise(D=>D(z))}async function E(P,k){const $=SK(P);return await y($,k),new Promise(U=>U($))}function w(P){if(h){const k=SK(P),$=h.property("__zoom");($.k!==P.zoom||$.x!==P.x||$.y!==P.y)&&(p==null||p.transform(h,k,null,{sync:!0}))}}function C(){const P=h?SQe(h.node()):{x:0,y:0,k:1};return{x:P.x,y:P.y,zoom:P.k}}function x(P,k){return h?new Promise($=>{p==null||p.scaleTo(EK(h,k==null?void 0:k.duration,()=>$(!0)),P)}):Promise.resolve(!1)}function T(P,k){return h?new Promise($=>{p==null||p.scaleBy(EK(h,k==null?void 0:k.duration,()=>$(!0)),P)}):Promise.resolve(!1)}function R(P){p==null||p.scaleExtent(P)}function O(P){p==null||p.translateExtent(P)}function M(P){const k=!kh(P)||P<0?0:P;p==null||p.clickDistance(k)}return{update:_,destroy:S,setViewport:E,setViewportConstrained:b,getViewport:C,scaleTo:x,scaleBy:T,setScaleExtent:R,setTranslateExtent:O,syncViewport:w,setClickDistance:M}}var fP;(function(e){e.Line="line",e.Handle="handle"})(fP||(fP={}));function Ikn({width:e,prevWidth:n,height:r,prevHeight:i,affectsX:o,affectsY:a}){const s=e-n,l=r-i,c=[s>0?1:s<0?-1:0,l>0?1:l<0?-1:0];return s&&o&&(c[0]=c[0]*-1),l&&a&&(c[1]=c[1]*-1),c}function Nkn(e){const n=e.includes("right")||e.includes("left"),r=e.includes("bottom")||e.includes("top"),i=e.includes("left"),o=e.includes("top");return{isHorizontal:n,isVertical:r,affectsX:i,affectsY:o}}function V_(e,n){return Math.max(0,n-e)}function G_(e,n){return Math.max(0,e-n)}function N4(e,n,r){return Math.max(0,n-e,e-r)}function xIe(e,n){return e?!n:n}function Mkn(e,n,r,i,o,a,s,l){let{affectsX:c,affectsY:u}=n;const{isHorizontal:d,isVertical:f}=n,p=d&&f,{xSnapped:h,ySnapped:g}=r,{minWidth:v,maxWidth:y,minHeight:_,maxHeight:S}=i,{x:b,y:E,width:w,height:C,aspectRatio:x}=e;let T=Math.floor(d?h-e.pointerX:0),R=Math.floor(f?g-e.pointerY:0);const O=w+(c?-T:T),M=C+(u?-R:R),P=-a[0]*w,k=-a[1]*C;let $=N4(O,v,y),U=N4(M,_,S);if(s){let B=0,Y=0;c&&T<0?B=V_(b+T+P,s[0][0]):!c&&T>0&&(B=G_(b+O+P,s[1][0])),u&&R<0?Y=V_(E+R+k,s[0][1]):!u&&R>0&&(Y=G_(E+M+k,s[1][1])),$=Math.max($,B),U=Math.max(U,Y)}if(l){let B=0,Y=0;c&&T>0?B=G_(b+T,l[0][0]):!c&&T<0&&(B=V_(b+O,l[1][0])),u&&R>0?Y=G_(E+R,l[0][1]):!u&&R<0&&(Y=V_(E+M,l[1][1])),$=Math.max($,B),U=Math.max(U,Y)}if(o){if(d){const B=N4(O/x,_,S)*x;if($=Math.max($,B),s){let Y=0;!c&&!u||c&&!u&&p?Y=G_(E+k+O/x,s[1][1])*x:Y=V_(E+k+(c?T:-T)/x,s[0][1])*x,$=Math.max($,Y)}if(l){let Y=0;!c&&!u||c&&!u&&p?Y=V_(E+O/x,l[1][1])*x:Y=G_(E+(c?T:-T)/x,l[0][1])*x,$=Math.max($,Y)}}if(f){const B=N4(M*x,v,y)/x;if(U=Math.max(U,B),s){let Y=0;!c&&!u||u&&!c&&p?Y=G_(b+M*x+P,s[1][0])/x:Y=V_(b+(u?R:-R)*x+P,s[0][0])/x,U=Math.max(U,Y)}if(l){let Y=0;!c&&!u||u&&!c&&p?Y=V_(b+M*x,l[1][0])/x:Y=G_(b+(u?R:-R)*x,l[0][0])/x,U=Math.max(U,Y)}}}R=R+(R<0?U:-U),T=T+(T<0?$:-$),o&&(p?O>M*x?R=(xIe(c,u)?-T:T)/x:T=(xIe(c,u)?-R:R)*x:d?(R=T/x,u=c):(T=R*x,c=u));const z=c?b+T:b,D=u?E+R:E;return{width:w+(c?-T:T),height:C+(u?-R:R),x:a[0]*T*(c?-1:1)+z,y:a[1]*R*(u?-1:1)+D}}const QQe={width:0,height:0,x:0,y:0},Pkn={...QQe,pointerX:0,pointerY:0,aspectRatio:1};function Akn(e){return[[0,0],[e.measured.width,e.measured.height]]}function Dkn(e,n,r){const i=n.position.x+e.position.x,o=n.position.y+e.position.y,a=e.measured.width??0,s=e.measured.height??0,l=r[0]*a,c=r[1]*s;return[[i-l,o-c],[i+a-l,o+s-c]]}function kkn({domNode:e,nodeId:n,getStoreItems:r,onChange:i,onEnd:o}){const a=nf(e);function s({controlPosition:c,boundaries:u,keepAspectRatio:d,onResizeStart:f,onResize:p,onResizeEnd:h,shouldResize:g}){let v={...QQe},y={...Pkn};const _=Nkn(c);let S,b=null,E=[],w,C,x;const T=sQe().on("start",R=>{const{nodeLookup:O,transform:M,snapGrid:P,snapToGrid:k,nodeOrigin:$,paneDomNode:U}=r();if(S=O.get(n),!S)return;b=(U==null?void 0:U.getBoundingClientRect())??null;const{xSnapped:z,ySnapped:D}=dP(R.sourceEvent,{transform:M,snapGrid:P,snapToGrid:k,containerBounds:b});v={width:S.measured.width??0,height:S.measured.height??0,x:S.position.x??0,y:S.position.y??0},y={...v,pointerX:z,pointerY:D,aspectRatio:v.width/v.height},w=void 0,S.parentId&&(S.extent==="parent"||S.expandParent)&&(w=O.get(S.parentId),C=w&&S.extent==="parent"?Akn(w):void 0),E=[],x=void 0;for(const[B,Y]of O)if(Y.parentId===n&&(E.push({id:B,position:{...Y.position},extent:Y.extent}),Y.extent==="parent"||Y.expandParent)){const q=Dkn(Y,S,Y.origin??$);x?x=[[Math.min(q[0][0],x[0][0]),Math.min(q[0][1],x[0][1])],[Math.max(q[1][0],x[1][0]),Math.max(q[1][1],x[1][1])]]:x=q}f==null||f(R,{...v})}).on("drag",R=>{const{transform:O,snapGrid:M,snapToGrid:P,nodeOrigin:k}=r(),$=dP(R.sourceEvent,{transform:O,snapGrid:M,snapToGrid:P,containerBounds:b}),U=[];if(!S)return;const{x:z,y:D,width:B,height:Y}=v,q={},K=S.origin??k,{width:H,height:G,x:Q,y:le}=Mkn(y,_,$,u,d,K,C,x),Z=H!==B,j=G!==Y,F=Q!==z&&Z,te=le!==D&&j;if(!F&&!te&&!Z&&!j)return;if((F||te||K[0]===1||K[1]===1)&&(q.x=F?Q:v.x,q.y=te?le:v.y,v.x=q.x,v.y=q.y,E.length>0)){const me=Q-z,ve=le-D;for(const he of E)he.position={x:he.position.x-me+K[0]*(H-B),y:he.position.y-ve+K[1]*(G-Y)},U.push(he)}if((Z||j)&&(q.width=Z?H:v.width,q.height=j?G:v.height,v.width=q.width,v.height=q.height),w&&S.expandParent){const me=K[0]*(q.width??0);q.x&&q.x<me&&(v.x=me,y.x=y.x-(q.x-me));const ve=K[1]*(q.height??0);q.y&&q.y<ve&&(v.y=ve,y.y=y.y-(q.y-ve))}const oe=Ikn({width:v.width,prevWidth:B,height:v.height,prevHeight:Y,affectsX:_.affectsX,affectsY:_.affectsY}),de={...v,direction:oe};(g==null?void 0:g(R,de))!==!1&&(p==null||p(R,de),i(q,U))}).on("end",R=>{h==null||h(R,{...v}),o==null||o()});a.call(T)}function l(){a.on(".drag",null)}return{update:s,destroy:l}}const{useDebugValue:Lkn}=V,{useSyncExternalStoreWithSelector:$kn}=E4e,Fkn=e=>e;function ZQe(e,n=Fkn,r){const i=$kn(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,r);return Lkn(i),i}const TIe=(e,n)=>{const r=m4e(e),i=(o,a=n)=>ZQe(r,o,a);return Object.assign(i,r),i},Bkn=(e,n)=>e?TIe(e,n):TIe;function Ts(e,n){if(Object.is(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(const[i,o]of e)if(!Object.is(o,n.get(i)))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(const i of e)if(!n.has(i))return!1;return!0}const r=Object.keys(e);if(r.length!==Object.keys(n).length)return!1;for(const i of r)if(!Object.prototype.hasOwnProperty.call(n,i)||!Object.is(e[i],n[i]))return!1;return!0}const vz=m.createContext(null),jkn=vz.Provider,JQe=u_.error001();function fo(e,n){const r=m.useContext(vz);if(r===null)throw new Error(JQe);return ZQe(r,e,n)}function Ka(){const e=m.useContext(vz);if(e===null)throw new Error(JQe);return m.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const OIe={display:"none"},Ukn={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},eZe="react-flow__node-desc",tZe="react-flow__edge-desc",Hkn="react-flow__aria-live",zkn=e=>e.ariaLiveMessage;function Vkn({rfId:e}){const n=fo(zkn);return N.jsx("div",{id:`${Hkn}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:Ukn,children:n})}function Gkn({rfId:e,disableKeyboardA11y:n}){return N.jsxs(N.Fragment,{children:[N.jsxs("div",{id:`${eZe}-${e}`,style:OIe,children:["Press enter or space to select a node.",!n&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "]}),N.jsx("div",{id:`${tZe}-${e}`,style:OIe,children:"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."}),!n&&N.jsx(Vkn,{rfId:e})]})}const Wkn=e=>e.userSelectionActive?"none":"all";function che({position:e="top-left",children:n,className:r,style:i,...o}){const a=fo(Wkn),s=`${e}`.split("-");return N.jsx("div",{className:dl(["react-flow__panel",r,...s]),style:{...i,pointerEvents:a},...o,children:n})}function Ykn({proOptions:e,position:n="bottom-right"}){return e!=null&&e.hideAttribution?null:N.jsx(che,{position:n,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:N.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const qkn=e=>{const n=[],r=[];for(const[,i]of e.nodeLookup)i.selected&&n.push(i.internals.userNode);for(const[,i]of e.edgeLookup)i.selected&&r.push(i);return{selectedNodes:n,selectedEdges:r}},M4=e=>e.id;function Kkn(e,n){return Ts(e.selectedNodes.map(M4),n.selectedNodes.map(M4))&&Ts(e.selectedEdges.map(M4),n.selectedEdges.map(M4))}function Xkn({onSelectionChange:e}){const n=Ka(),{selectedNodes:r,selectedEdges:i}=fo(qkn,Kkn);return m.useEffect(()=>{const o={nodes:r,edges:i};e==null||e(o),n.getState().onSelectionChangeHandlers.forEach(a=>a(o))},[r,i,e]),null}const Qkn=e=>!!e.onSelectionChangeHandlers;function Zkn({onSelectionChange:e}){const n=fo(Qkn);return e||n?N.jsx(Xkn,{onSelectionChange:e}):null}const nZe=[0,0],Jkn={x:0,y:0,zoom:1},eLn=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance"],RIe=[...eLn,"rfId"],tLn=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),IIe={translateExtent:YA,nodeOrigin:nZe,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function nLn(e){const{setNodes:n,setEdges:r,setMinZoom:i,setMaxZoom:o,setTranslateExtent:a,setNodeExtent:s,reset:l,setDefaultNodesAndEdges:c,setPaneClickDistance:u}=fo(tLn,Ts),d=Ka();m.useEffect(()=>(c(e.defaultNodes,e.defaultEdges),()=>{f.current=IIe,l()}),[]);const f=m.useRef(IIe);return m.useEffect(()=>{for(const p of RIe){const h=e[p],g=f.current[p];h!==g&&(typeof e[p]>"u"||(p==="nodes"?n(h):p==="edges"?r(h):p==="minZoom"?i(h):p==="maxZoom"?o(h):p==="translateExtent"?a(h):p==="nodeExtent"?s(h):p==="paneClickDistance"?u(h):p==="fitView"?d.setState({fitViewOnInit:h}):p==="fitViewOptions"?d.setState({fitViewOnInitOptions:h}):d.setState({[p]:h})))}f.current=e},RIe.map(p=>e[p])),null}function NIe(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function rLn(e){var i;const[n,r]=m.useState(e==="system"?null:e);return m.useEffect(()=>{if(e!=="system"){r(e);return}const o=NIe(),a=()=>r(o!=null&&o.matches?"dark":"light");return a(),o==null||o.addEventListener("change",a),()=>{o==null||o.removeEventListener("change",a)}},[e]),n!==null?n:(i=NIe())!=null&&i.matches?"dark":"light"}const MIe=typeof document<"u"?document:null;function QA(e=null,n={target:MIe,actInsideInputWithModifier:!0}){const[r,i]=m.useState(!1),o=m.useRef(!1),a=m.useRef(new Set([])),[s,l]=m.useMemo(()=>{if(e!==null){const u=(Array.isArray(e)?e:[e]).filter(f=>typeof f=="string").map(f=>f.replace("+",`
|
||
`).replace(`
|
||
|
||
`,`
|
||
+`).split(`
|
||
`)),d=u.reduce((f,p)=>f.concat(...p),[]);return[u,d]}return[[],[]]},[e]);return m.useEffect(()=>{const c=(n==null?void 0:n.target)||MIe;if(e!==null){const u=p=>{if(o.current=p.ctrlKey||p.metaKey||p.shiftKey,(!o.current||o.current&&!n.actInsideInputWithModifier)&&lae(p))return!1;const g=AIe(p.code,l);a.current.add(p[g]),PIe(s,a.current,!1)&&(p.preventDefault(),i(!0))},d=p=>{if((!o.current||o.current&&!n.actInsideInputWithModifier)&&lae(p))return!1;const g=AIe(p.code,l);PIe(s,a.current,!0)?(i(!1),a.current.clear()):a.current.delete(p[g]),p.key==="Meta"&&a.current.clear(),o.current=!1},f=()=>{a.current.clear(),i(!1)};return c==null||c.addEventListener("keydown",u),c==null||c.addEventListener("keyup",d),window.addEventListener("blur",f),window.addEventListener("contextmenu",f),()=>{c==null||c.removeEventListener("keydown",u),c==null||c.removeEventListener("keyup",d),window.removeEventListener("blur",f),window.removeEventListener("contextmenu",f)}}},[e,i]),r}function PIe(e,n,r){return e.filter(i=>r||i.length===n.size).some(i=>i.every(o=>n.has(o)))}function AIe(e,n){return n.includes(e)?"code":"key"}const iLn=()=>{const e=Ka();return m.useMemo(()=>({zoomIn:n=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1.2,{duration:n==null?void 0:n.duration}):Promise.resolve(!1)},zoomOut:n=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1/1.2,{duration:n==null?void 0:n.duration}):Promise.resolve(!1)},zoomTo:(n,r)=>{const{panZoom:i}=e.getState();return i?i.scaleTo(n,{duration:r==null?void 0:r.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(n,r)=>{const{transform:[i,o,a],panZoom:s}=e.getState();return s?(await s.setViewport({x:n.x??i,y:n.y??o,zoom:n.zoom??a},{duration:r==null?void 0:r.duration}),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[n,r,i]=e.getState().transform;return{x:n,y:r,zoom:i}},fitView:n=>{const{nodeLookup:r,minZoom:i,maxZoom:o,panZoom:a,domNode:s}=e.getState();if(!a||!s)return Promise.resolve(!1);const l=oae(r,n),{width:c,height:u}=gz(s);return aae({nodes:l,width:c,height:u,minZoom:i,maxZoom:o,panZoom:a},n)},setCenter:async(n,r,i)=>{const{width:o,height:a,maxZoom:s,panZoom:l}=e.getState(),c=typeof(i==null?void 0:i.zoom)<"u"?i.zoom:s,u=o/2-n*c,d=a/2-r*c;return l?(await l.setViewport({x:u,y:d,zoom:c},{duration:i==null?void 0:i.duration}),Promise.resolve(!0)):Promise.resolve(!1)},fitBounds:async(n,r)=>{const{width:i,height:o,minZoom:a,maxZoom:s,panZoom:l}=e.getState(),c=ihe(n,i,o,a,s,(r==null?void 0:r.padding)??.1);return l?(await l.setViewport(c,{duration:r==null?void 0:r.duration}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(n,r={snapToGrid:!0})=>{const{transform:i,snapGrid:o,domNode:a}=e.getState();if(!a)return n;const{x:s,y:l}=a.getBoundingClientRect(),c={x:n.x-s,y:n.y-l};return yL(c,i,r.snapToGrid,o)},flowToScreenPosition:n=>{const{transform:r,domNode:i}=e.getState();if(!i)return n;const{x:o,y:a}=i.getBoundingClientRect(),s=PQe(n,r);return{x:s.x+o,y:s.y+a}}}),[])};function rZe(e,n){const r=[],i=new Map,o=[];for(const a of e)if(a.type==="add"){o.push(a);continue}else if(a.type==="remove"||a.type==="replace")i.set(a.id,[a]);else{const s=i.get(a.id);s?s.push(a):i.set(a.id,[a])}for(const a of n){const s=i.get(a.id);if(!s){r.push(a);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){r.push({...s[0].item});continue}const l={...a};for(const c of s)oLn(c,l);r.push(l)}return o.length&&o.forEach(a=>{a.index!==void 0?r.splice(a.index,0,{...a.item}):r.push({...a.item})}),r}function oLn(e,n){switch(e.type){case"select":{n.selected=e.selected;break}case"position":{typeof e.position<"u"&&(n.position=e.position),typeof e.dragging<"u"&&(n.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(n.measured??(n.measured={}),n.measured.width=e.dimensions.width,n.measured.height=e.dimensions.height,e.setAttributes&&(n.width=e.dimensions.width,n.height=e.dimensions.height)),typeof e.resizing=="boolean"&&(n.resizing=e.resizing);break}}}function iZe(e,n){return rZe(e,n)}function aLn(e,n){return rZe(e,n)}function DE(e,n){return{id:e,type:"select",selected:n}}function CT(e,n=new Set,r=!1){const i=[];for(const[o,a]of e){const s=n.has(o);!(a.selected===void 0&&!s)&&a.selected!==s&&(r&&(a.selected=s),i.push(DE(a.id,s)))}return i}function DIe({items:e=[],lookup:n}){var o;const r=[],i=new Map(e.map(a=>[a.id,a]));for(const[a,s]of e.entries()){const l=n.get(s.id),c=((o=l==null?void 0:l.internals)==null?void 0:o.userNode)??l;c!==void 0&&c!==s&&r.push({id:s.id,item:s,type:"replace"}),c===void 0&&r.push({item:s,type:"add",index:a})}for(const[a]of n)i.get(a)===void 0&&r.push({id:a,type:"remove"});return r}function kIe(e){return{id:e.id,type:"remove"}}const LIe=e=>WDn(e),sLn=e=>TQe(e);function oZe(e){return m.forwardRef(e)}const lLn=typeof window<"u"?m.useLayoutEffect:m.useEffect;function $Ie(e){const[n,r]=m.useState(BigInt(0)),[i]=m.useState(()=>cLn(()=>r(o=>o+BigInt(1))));return lLn(()=>{const o=i.get();o.length&&(e(o),i.reset())},[n]),i}function cLn(e){let n=[];return{get:()=>n,reset:()=>{n=[]},push:r=>{n.push(r),e()}}}const aZe=m.createContext(null);function uLn({children:e}){const n=Ka(),r=m.useCallback(l=>{const{nodes:c=[],setNodes:u,hasDefaultNodes:d,onNodesChange:f,nodeLookup:p}=n.getState();let h=c;for(const g of l)h=typeof g=="function"?g(h):g;d?u(h):f&&f(DIe({items:h,lookup:p}))},[]),i=$Ie(r),o=m.useCallback(l=>{const{edges:c=[],setEdges:u,hasDefaultEdges:d,onEdgesChange:f,edgeLookup:p}=n.getState();let h=c;for(const g of l)h=typeof g=="function"?g(h):g;d?u(h):f&&f(DIe({items:h,lookup:p}))},[]),a=$Ie(o),s=m.useMemo(()=>({nodeQueue:i,edgeQueue:a}),[]);return N.jsx(aZe.Provider,{value:s,children:e})}function dLn(){const e=m.useContext(aZe);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const fLn=e=>!!e.panZoom;function yz(){const e=iLn(),n=Ka(),r=dLn(),i=fo(fLn),o=m.useMemo(()=>{const a=f=>n.getState().nodeLookup.get(f),s=f=>{r.nodeQueue.push(f)},l=f=>{r.edgeQueue.push(f)},c=f=>{var _,S;const{nodeLookup:p,nodeOrigin:h}=n.getState(),g=LIe(f)?f:p.get(f.id),v=g.parentId?DQe(g.position,g.measured,g.parentId,p,h):g.position,y={id:g.id,position:v,width:((_=g.measured)==null?void 0:_.width)??g.width,height:((S=g.measured)==null?void 0:S.height)??g.height,data:g.data};return iR(y)},u=(f,p,h={replace:!1})=>{s(g=>g.map(v=>{if(v.id===f){const y=typeof p=="function"?p(v):p;return h.replace&&LIe(y)?y:{...v,...y}}return v}))},d=(f,p,h={replace:!1})=>{l(g=>g.map(v=>{if(v.id===f){const y=typeof p=="function"?p(v):p;return h.replace&&sLn(y)?y:{...v,...y}}return v}))};return{getNodes:()=>n.getState().nodes.map(f=>({...f})),getNode:f=>{var p;return(p=a(f))==null?void 0:p.internals.userNode},getInternalNode:a,getEdges:()=>{const{edges:f=[]}=n.getState();return f.map(p=>({...p}))},getEdge:f=>n.getState().edgeLookup.get(f),setNodes:s,setEdges:l,addNodes:f=>{const p=Array.isArray(f)?f:[f];r.nodeQueue.push(h=>[...h,...p])},addEdges:f=>{const p=Array.isArray(f)?f:[f];r.edgeQueue.push(h=>[...h,...p])},toObject:()=>{const{nodes:f=[],edges:p=[],transform:h}=n.getState(),[g,v,y]=h;return{nodes:f.map(_=>({..._})),edges:p.map(_=>({..._})),viewport:{x:g,y:v,zoom:y}}},deleteElements:async({nodes:f=[],edges:p=[]})=>{const{nodes:h,edges:g,onNodesDelete:v,onEdgesDelete:y,triggerNodeChanges:_,triggerEdgeChanges:S,onDelete:b,onBeforeDelete:E}=n.getState(),{nodes:w,edges:C}=await KDn({nodesToRemove:f,edgesToRemove:p,nodes:h,edges:g,onBeforeDelete:E}),x=C.length>0,T=w.length>0;if(x){const R=C.map(kIe);y==null||y(C),S(R)}if(T){const R=w.map(kIe);v==null||v(w),_(R)}return(T||x)&&(b==null||b({nodes:w,edges:C})),{deletedNodes:w,deletedEdges:C}},getIntersectingNodes:(f,p=!0,h)=>{const g=mIe(f),v=g?f:c(f),y=h!==void 0;return v?(h||n.getState().nodes).filter(_=>{const S=n.getState().nodeLookup.get(_.id);if(S&&!g&&(_.id===f.id||!S.internals.positionAbsolute))return!1;const b=iR(y?_:S),E=KA(b,v);return p&&E>0||E>=v.width*v.height}):[]},isNodeIntersecting:(f,p,h=!0)=>{const v=mIe(f)?f:c(f);if(!v)return!1;const y=KA(v,p);return h&&y>0||y>=v.width*v.height},updateNode:u,updateNodeData:(f,p,h={replace:!1})=>{u(f,g=>{const v=typeof p=="function"?p(g):p;return h.replace?{...g,data:v}:{...g,data:{...g.data,...v}}},h)},updateEdge:d,updateEdgeData:(f,p,h={replace:!1})=>{d(f,g=>{const v=typeof p=="function"?p(g):p;return h.replace?{...g,data:v}:{...g,data:{...g.data,...v}}},h)},getNodesBounds:f=>{const{nodeLookup:p,nodeOrigin:h}=n.getState();return YDn(f,{nodeLookup:p,nodeOrigin:h})},getHandleConnections:({type:f,id:p,nodeId:h})=>{var g;return Array.from(((g=n.getState().connectionLookup.get(`${h}-${f}-${p??null}`))==null?void 0:g.values())??[])}}},[]);return m.useMemo(()=>({...o,...e,viewportInitialized:i}),[i])}const FIe=e=>e.selected,pLn={actInsideInputWithModifier:!1},hLn=typeof window<"u"?window:void 0;function gLn({deleteKeyCode:e,multiSelectionKeyCode:n}){const r=Ka(),{deleteElements:i}=yz(),o=QA(e,pLn),a=QA(n,{target:hLn});m.useEffect(()=>{if(o){const{edges:s,nodes:l}=r.getState();i({nodes:l.filter(FIe),edges:s.filter(FIe)}),r.setState({nodesSelectionActive:!1})}},[o]),m.useEffect(()=>{r.setState({multiSelectionActive:a})},[a])}function mLn(e){const n=Ka();m.useEffect(()=>{const r=()=>{var o,a;if(!e.current)return!1;const i=gz(e.current);(i.height===0||i.width===0)&&((a=(o=n.getState()).onError)==null||a.call(o,"004",u_.error004())),n.setState({width:i.width||500,height:i.height||500})};if(e.current){r(),window.addEventListener("resize",r);const i=new ResizeObserver(()=>r());return i.observe(e.current),()=>{window.removeEventListener("resize",r),i&&e.current&&i.unobserve(e.current)}}},[])}const _z={position:"absolute",width:"100%",height:"100%",top:0,left:0},vLn=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib});function yLn({onPaneContextMenu:e,zoomOnScroll:n=!0,zoomOnPinch:r=!0,panOnScroll:i=!1,panOnScrollSpeed:o=.5,panOnScrollMode:a=L1.Free,zoomOnDoubleClick:s=!0,panOnDrag:l=!0,defaultViewport:c,translateExtent:u,minZoom:d,maxZoom:f,zoomActivationKeyCode:p,preventScrolling:h=!0,children:g,noWheelClassName:v,noPanClassName:y,onViewportChange:_,isControlledViewport:S,paneClickDistance:b}){const E=Ka(),w=m.useRef(null),{userSelectionActive:C,lib:x}=fo(vLn,Ts),T=QA(p),R=m.useRef();mLn(w);const O=m.useCallback(M=>{_==null||_({x:M[0],y:M[1],zoom:M[2]}),S||E.setState({transform:M})},[_,S]);return m.useEffect(()=>{if(w.current){R.current=Rkn({domNode:w.current,minZoom:d,maxZoom:f,translateExtent:u,viewport:c,paneClickDistance:b,onDraggingChange:$=>E.setState({paneDragging:$}),onPanZoomStart:($,U)=>{const{onViewportChangeStart:z,onMoveStart:D}=E.getState();D==null||D($,U),z==null||z(U)},onPanZoom:($,U)=>{const{onViewportChange:z,onMove:D}=E.getState();D==null||D($,U),z==null||z(U)},onPanZoomEnd:($,U)=>{const{onViewportChangeEnd:z,onMoveEnd:D}=E.getState();D==null||D($,U),z==null||z(U)}});const{x:M,y:P,zoom:k}=R.current.getViewport();return E.setState({panZoom:R.current,transform:[M,P,k],domNode:w.current.closest(".react-flow")}),()=>{var $;($=R.current)==null||$.destroy()}}},[]),m.useEffect(()=>{var M;(M=R.current)==null||M.update({onPaneContextMenu:e,zoomOnScroll:n,zoomOnPinch:r,panOnScroll:i,panOnScrollSpeed:o,panOnScrollMode:a,zoomOnDoubleClick:s,panOnDrag:l,zoomActivationKeyPressed:T,preventScrolling:h,noPanClassName:y,userSelectionActive:C,noWheelClassName:v,lib:x,onTransformChange:O})},[e,n,r,i,o,a,s,l,T,h,y,C,v,x,O]),N.jsx("div",{className:"react-flow__renderer",ref:w,style:_z,children:g})}const _Ln=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function bLn(){const{userSelectionActive:e,userSelectionRect:n}=fo(_Ln,Ts);return e&&n?N.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:n.width,height:n.height,transform:`translate(${n.x}px, ${n.y}px)`}}):null}const CK=(e,n)=>r=>{r.target===n.current&&(e==null||e(r))},SLn=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging});function ELn({isSelecting:e,selectionKeyPressed:n,selectionMode:r=qA.Full,panOnDrag:i,selectionOnDrag:o,onSelectionStart:a,onSelectionEnd:s,onPaneClick:l,onPaneContextMenu:c,onPaneScroll:u,onPaneMouseEnter:d,onPaneMouseMove:f,onPaneMouseLeave:p,children:h}){const g=m.useRef(null),v=Ka(),y=m.useRef(0),_=m.useRef(0),S=m.useRef(),b=m.useRef(new Map),{userSelectionActive:E,elementsSelectable:w,dragging:C}=fo(SLn,Ts),x=w&&(e||E),T=m.useRef(!1),R=m.useRef(!1),O=()=>{v.setState({userSelectionActive:!1,userSelectionRect:null}),y.current=0,_.current=0},M=B=>{if(T.current){T.current=!1;return}l==null||l(B),v.getState().resetSelectedElements(),v.setState({nodesSelectionActive:!1})},P=B=>{if(Array.isArray(i)&&(i!=null&&i.includes(2))){B.preventDefault();return}c==null||c(B)},k=u?B=>u(B):void 0,$=B=>{var Q,le,Z,j;const{resetSelectedElements:Y,domNode:q,edgeLookup:K}=v.getState();if(S.current=q==null?void 0:q.getBoundingClientRect(),!w||!e||B.button!==0||B.target!==g.current||!S.current)return;(le=(Q=B.target)==null?void 0:Q.setPointerCapture)==null||le.call(Q,B.pointerId),R.current=!0,T.current=!1,b.current=new Map;for(const[F,te]of K)b.current.set(te.source,((Z=b.current.get(te.source))==null?void 0:Z.add(F))||new Set([F])),b.current.set(te.target,((j=b.current.get(te.target))==null?void 0:j.add(F))||new Set([F]));const{x:H,y:G}=gy(B.nativeEvent,S.current);Y(),v.setState({userSelectionRect:{width:0,height:0,startX:H,startY:G,x:H,y:G}}),a==null||a(B)},U=B=>{const{userSelectionRect:Y,edgeLookup:q,transform:K,nodeLookup:H,triggerNodeChanges:G,triggerEdgeChanges:Q}=v.getState();if(!S.current||!Y)return;T.current=!0;const{x:le,y:Z}=gy(B.nativeEvent,S.current),{startX:j,startY:F}=Y,te={startX:j,startY:F,x:le<j?le:j,y:Z<F?Z:F,width:Math.abs(le-j),height:Math.abs(Z-F)},oe=OQe(H,te,K,r===qA.Partial,!0),de=new Set,pe=new Set;for(const me of oe){pe.add(me.id);const ve=b.current.get(me.id);if(ve)for(const he of ve)de.add(he)}if(y.current!==pe.size){y.current=pe.size;const me=CT(H,pe,!0);G(me)}if(_.current!==de.size){_.current=de.size;const me=CT(q,de);Q(me)}v.setState({userSelectionRect:te,userSelectionActive:!0,nodesSelectionActive:!1})},z=B=>{var q,K;if(B.button!==0||!R.current)return;(K=(q=B.target)==null?void 0:q.releasePointerCapture)==null||K.call(q,B.pointerId);const{userSelectionRect:Y}=v.getState();!E&&Y&&B.target===g.current&&(M==null||M(B)),y.current>0&&v.setState({nodesSelectionActive:!0}),O(),s==null||s(B),(n||o)&&(T.current=!1),R.current=!1},D=i===!0||Array.isArray(i)&&i.includes(0);return N.jsxs("div",{className:dl(["react-flow__pane",{draggable:D,dragging:C,selection:e}]),onClick:x?void 0:CK(M,g),onContextMenu:CK(P,g),onWheel:CK(k,g),onPointerEnter:x?void 0:d,onPointerDown:x?$:f,onPointerMove:x?U:f,onPointerUp:x?z:void 0,onPointerLeave:p,ref:g,style:_z,children:[h,N.jsx(bLn,{})]})}function pae({id:e,store:n,unselect:r=!1,nodeRef:i}){const{addSelectedNodes:o,unselectNodesAndEdges:a,multiSelectionActive:s,nodeLookup:l,onError:c}=n.getState(),u=l.get(e);if(!u){c==null||c("012",u_.error012(e));return}n.setState({nodesSelectionActive:!1}),u.selected?(r||u.selected&&s)&&(a({nodes:[u],edges:[]}),requestAnimationFrame(()=>{var d;return(d=i==null?void 0:i.current)==null?void 0:d.blur()})):o([e])}function sZe({nodeRef:e,disabled:n=!1,noDragClassName:r,handleSelector:i,nodeId:o,isSelectable:a,nodeClickDistance:s}){const l=Ka(),[c,u]=m.useState(!1),d=m.useRef();return m.useEffect(()=>{d.current=hkn({getStoreItems:()=>l.getState(),onNodeMouseDown:f=>{pae({id:f,store:l,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),m.useEffect(()=>{var f,p;if(n)(f=d.current)==null||f.destroy();else if(e.current)return(p=d.current)==null||p.update({noDragClassName:r,handleSelector:i,domNode:e.current,isSelectable:a,nodeId:o,nodeClickDistance:s}),()=>{var h;(h=d.current)==null||h.destroy()}},[r,i,n,a,e,o]),c}const CLn=e=>n=>n.selected&&(n.draggable||e&&typeof n.draggable>"u");function lZe(){const e=Ka();return m.useCallback(r=>{const{nodeExtent:i,snapToGrid:o,snapGrid:a,nodesDraggable:s,onError:l,updateNodePositions:c,nodeLookup:u,nodeOrigin:d}=e.getState(),f=new Map,p=CLn(s),h=o?a[0]:5,g=o?a[1]:5,v=r.direction.x*h*r.factor,y=r.direction.y*g*r.factor;for(const[,_]of u){if(!p(_))continue;let S={x:_.internals.positionAbsolute.x+v,y:_.internals.positionAbsolute.y+y};o&&(S=hz(S,a));const{position:b,positionAbsolute:E}=RQe({nodeId:_.id,nextPosition:S,nodeLookup:u,nodeExtent:i,nodeOrigin:d,onError:l});_.position=b,_.internals.positionAbsolute=E,f.set(_.id,_)}c(f)},[])}const uhe=m.createContext(null),wLn=uhe.Provider;uhe.Consumer;const cZe=()=>m.useContext(uhe),xLn=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),TLn=(e,n,r)=>i=>{const{connectionClickStartHandle:o,connectionMode:a,connection:s}=i,{fromHandle:l,toHandle:c,isValid:u}=s,d=(c==null?void 0:c.nodeId)===e&&(c==null?void 0:c.id)===n&&(c==null?void 0:c.type)===r;return{connectingFrom:(l==null?void 0:l.nodeId)===e&&(l==null?void 0:l.id)===n&&(l==null?void 0:l.type)===r,connectingTo:d,clickConnecting:(o==null?void 0:o.nodeId)===e&&(o==null?void 0:o.id)===n&&(o==null?void 0:o.type)===r,isPossibleEndHandle:a===nR.Strict?(l==null?void 0:l.type)!==r:e!==(l==null?void 0:l.nodeId)||n!==(l==null?void 0:l.id),connectionInProcess:!!l,valid:d&&u}};function OLn({type:e="source",position:n=xr.Top,isValidConnection:r,isConnectable:i=!0,isConnectableStart:o=!0,isConnectableEnd:a=!0,id:s,onConnect:l,children:c,className:u,onMouseDown:d,onTouchStart:f,...p},h){var $,U;const g=s||null,v=e==="target",y=Ka(),_=cZe(),{connectOnClick:S,noPanClassName:b,rfId:E}=fo(xLn,Ts),{connectingFrom:w,connectingTo:C,clickConnecting:x,isPossibleEndHandle:T,connectionInProcess:R,valid:O}=fo(TLn(_,g,e),Ts);_||(U=($=y.getState()).onError)==null||U.call($,"010",u_.error010());const M=z=>{const{defaultEdgeOptions:D,onConnect:B,hasDefaultEdges:Y}=y.getState(),q={...D,...z};if(Y){const{edges:K,setEdges:H}=y.getState();H(jQe(q,K))}B==null||B(q),l==null||l(q)},P=z=>{if(!_)return;const D=LQe(z.nativeEvent);if(o&&(D&&z.button===0||!D)){const B=y.getState();fae.onPointerDown(z.nativeEvent,{autoPanOnConnect:B.autoPanOnConnect,connectionMode:B.connectionMode,connectionRadius:B.connectionRadius,domNode:B.domNode,nodeLookup:B.nodeLookup,lib:B.lib,isTarget:v,handleId:g,nodeId:_,flowId:B.rfId,panBy:B.panBy,cancelConnection:B.cancelConnection,onConnectStart:B.onConnectStart,onConnectEnd:B.onConnectEnd,updateConnection:B.updateConnection,onConnect:M,isValidConnection:r||B.isValidConnection,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,autoPanSpeed:B.autoPanSpeed})}D?d==null||d(z):f==null||f(z)},k=z=>{const{onClickConnectStart:D,onClickConnectEnd:B,connectionClickStartHandle:Y,connectionMode:q,isValidConnection:K,lib:H,rfId:G,nodeLookup:Q,connection:le}=y.getState();if(!_||!Y&&!o)return;if(!Y){D==null||D(z.nativeEvent,{nodeId:_,handleId:g,handleType:e}),y.setState({connectionClickStartHandle:{nodeId:_,type:e,id:g}});return}const Z=kQe(z.target),j=r||K,{connection:F,isValid:te}=fae.isValid(z.nativeEvent,{handle:{nodeId:_,id:g,type:e},connectionMode:q,fromNodeId:Y.nodeId,fromHandleId:Y.id||null,fromType:Y.type,isValidConnection:j,flowId:G,doc:Z,lib:H,nodeLookup:Q});te&&F&&M(F);const oe=structuredClone(le);delete oe.inProgress,oe.toPosition=oe.toHandle?oe.toHandle.position:null,B==null||B(z,oe),y.setState({connectionClickStartHandle:null})};return N.jsx("div",{"data-handleid":g,"data-nodeid":_,"data-handlepos":n,"data-id":`${E}-${_}-${g}-${e}`,className:dl(["react-flow__handle",`react-flow__handle-${n}`,"nodrag",b,u,{source:!v,target:v,connectable:i,connectablestart:o,connectableend:a,clickconnecting:x,connectingfrom:w,connectingto:C,valid:O,connectionindicator:i&&(!R||T)&&(R?a:o)}]),onMouseDown:P,onTouchStart:P,onClick:S?k:void 0,ref:h,...p,children:c})}const bC=m.memo(oZe(OLn));function RLn({data:e,isConnectable:n,sourcePosition:r=xr.Bottom}){return N.jsxs(N.Fragment,{children:[e==null?void 0:e.label,N.jsx(bC,{type:"source",position:r,isConnectable:n})]})}function ILn({data:e,isConnectable:n,targetPosition:r=xr.Top,sourcePosition:i=xr.Bottom}){return N.jsxs(N.Fragment,{children:[N.jsx(bC,{type:"target",position:r,isConnectable:n}),e==null?void 0:e.label,N.jsx(bC,{type:"source",position:i,isConnectable:n})]})}function NLn(){return null}function MLn({data:e,isConnectable:n,targetPosition:r=xr.Top}){return N.jsxs(N.Fragment,{children:[N.jsx(bC,{type:"target",position:r,isConnectable:n}),e==null?void 0:e.label]})}const GB={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},BIe={input:RLn,default:ILn,output:MLn,group:NLn};function PLn(e){var n,r,i,o;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((n=e.style)==null?void 0:n.width),height:e.height??e.initialHeight??((r=e.style)==null?void 0:r.height)}:{width:e.width??((i=e.style)==null?void 0:i.width),height:e.height??((o=e.style)==null?void 0:o.height)}}const ALn=e=>{const{width:n,height:r,x:i,y:o}=vL(e.nodeLookup,{filter:a=>!!a.selected});return{width:kh(n)?n:null,height:kh(r)?r:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${i}px,${o}px)`}};function DLn({onSelectionContextMenu:e,noPanClassName:n,disableKeyboardA11y:r}){const i=Ka(),{width:o,height:a,transformString:s,userSelectionActive:l}=fo(ALn,Ts),c=lZe(),u=m.useRef(null);if(m.useEffect(()=>{var p;r||(p=u.current)==null||p.focus({preventScroll:!0})},[r]),sZe({nodeRef:u}),l||!o||!a)return null;const d=e?p=>{const h=i.getState().nodes.filter(g=>g.selected);e(p,h)}:void 0,f=p=>{Object.prototype.hasOwnProperty.call(GB,p.key)&&c({direction:GB[p.key],factor:p.shiftKey?4:1})};return N.jsx("div",{className:dl(["react-flow__nodesselection","react-flow__container",n]),style:{transform:s},children:N.jsx("div",{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:r?void 0:-1,onKeyDown:r?void 0:f,style:{width:o,height:a}})})}const jIe=typeof window<"u"?window:void 0,kLn=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function uZe({children:e,onPaneClick:n,onPaneMouseEnter:r,onPaneMouseMove:i,onPaneMouseLeave:o,onPaneContextMenu:a,onPaneScroll:s,paneClickDistance:l,deleteKeyCode:c,selectionKeyCode:u,selectionOnDrag:d,selectionMode:f,onSelectionStart:p,onSelectionEnd:h,multiSelectionKeyCode:g,panActivationKeyCode:v,zoomActivationKeyCode:y,elementsSelectable:_,zoomOnScroll:S,zoomOnPinch:b,panOnScroll:E,panOnScrollSpeed:w,panOnScrollMode:C,zoomOnDoubleClick:x,panOnDrag:T,defaultViewport:R,translateExtent:O,minZoom:M,maxZoom:P,preventScrolling:k,onSelectionContextMenu:$,noWheelClassName:U,noPanClassName:z,disableKeyboardA11y:D,onViewportChange:B,isControlledViewport:Y}){const{nodesSelectionActive:q,userSelectionActive:K}=fo(kLn),H=QA(u,{target:jIe}),G=QA(v,{target:jIe}),Q=G||T,le=G||E,Z=d&&Q!==!0,j=H||K||Z;return gLn({deleteKeyCode:c,multiSelectionKeyCode:g}),N.jsx(yLn,{onPaneContextMenu:a,elementsSelectable:_,zoomOnScroll:S,zoomOnPinch:b,panOnScroll:le,panOnScrollSpeed:w,panOnScrollMode:C,zoomOnDoubleClick:x,panOnDrag:!H&&Q,defaultViewport:R,translateExtent:O,minZoom:M,maxZoom:P,zoomActivationKeyCode:y,preventScrolling:k,noWheelClassName:U,noPanClassName:z,onViewportChange:B,isControlledViewport:Y,paneClickDistance:l,children:N.jsxs(ELn,{onSelectionStart:p,onSelectionEnd:h,onPaneClick:n,onPaneMouseEnter:r,onPaneMouseMove:i,onPaneMouseLeave:o,onPaneContextMenu:a,onPaneScroll:s,panOnDrag:Q,isSelecting:!!j,selectionMode:f,selectionKeyPressed:H,selectionOnDrag:Z,children:[e,q&&N.jsx(DLn,{onSelectionContextMenu:$,noPanClassName:z,disableKeyboardA11y:D})]})})}uZe.displayName="FlowRenderer";const LLn=m.memo(uZe),$Ln=e=>n=>e?OQe(n.nodeLookup,{x:0,y:0,width:n.width,height:n.height},n.transform,!0).map(r=>r.id):Array.from(n.nodeLookup.keys());function FLn(e){return fo(m.useCallback($Ln(e),[e]),Ts)}const BLn=e=>e.updateNodeInternals;function jLn(){const e=fo(BLn),[n]=m.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(r=>{const i=new Map;r.forEach(o=>{const a=o.target.getAttribute("data-id");i.set(a,{id:a,nodeElement:o.target,force:!0})}),e(i)}));return m.useEffect(()=>()=>{n==null||n.disconnect()},[n]),n}function ULn({node:e,nodeType:n,hasDimensions:r,resizeObserver:i}){const o=Ka(),a=m.useRef(null),s=m.useRef(null),l=m.useRef(e.sourcePosition),c=m.useRef(e.targetPosition),u=m.useRef(n),d=r&&!!e.internals.handleBounds;return m.useEffect(()=>{a.current&&!e.hidden&&(!d||s.current!==a.current)&&(s.current&&(i==null||i.unobserve(s.current)),i==null||i.observe(a.current),s.current=a.current)},[d,e.hidden]),m.useEffect(()=>()=>{s.current&&(i==null||i.unobserve(s.current),s.current=null)},[]),m.useEffect(()=>{if(a.current){const f=u.current!==n,p=l.current!==e.sourcePosition,h=c.current!==e.targetPosition;(f||p||h)&&(u.current=n,l.current=e.sourcePosition,c.current=e.targetPosition,o.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:a.current,force:!0}]])))}},[e.id,n,e.sourcePosition,e.targetPosition]),a}function HLn({id:e,onClick:n,onMouseEnter:r,onMouseMove:i,onMouseLeave:o,onContextMenu:a,onDoubleClick:s,nodesDraggable:l,elementsSelectable:c,nodesConnectable:u,nodesFocusable:d,resizeObserver:f,noDragClassName:p,noPanClassName:h,disableKeyboardA11y:g,rfId:v,nodeTypes:y,nodeExtent:_,nodeClickDistance:S,onError:b}){const{node:E,internals:w,isParent:C}=fo(F=>{const te=F.nodeLookup.get(e),oe=F.parentLookup.has(e);return{node:te,internals:te.internals,isParent:oe}},Ts);let x=E.type||"default",T=(y==null?void 0:y[x])||BIe[x];T===void 0&&(b==null||b("003",u_.error003(x)),x="default",T=BIe.default);const R=!!(E.draggable||l&&typeof E.draggable>"u"),O=!!(E.selectable||c&&typeof E.selectable>"u"),M=!!(E.connectable||u&&typeof E.connectable>"u"),P=!!(E.focusable||d&&typeof E.focusable>"u"),k=Ka(),$=AQe(E),U=ULn({node:E,nodeType:x,hasDimensions:$,resizeObserver:f}),z=sZe({nodeRef:U,disabled:E.hidden||!R,noDragClassName:p,handleSelector:E.dragHandle,nodeId:e,isSelectable:O,nodeClickDistance:S}),D=lZe();if(E.hidden)return null;const B=d_(E),Y=PLn(E),q=O||R||n||r||i||o,K=r?F=>r(F,{...w.userNode}):void 0,H=i?F=>i(F,{...w.userNode}):void 0,G=o?F=>o(F,{...w.userNode}):void 0,Q=a?F=>a(F,{...w.userNode}):void 0,le=s?F=>s(F,{...w.userNode}):void 0,Z=F=>{const{selectNodesOnDrag:te,nodeDragThreshold:oe}=k.getState();O&&(!te||!R||oe>0)&&pae({id:e,store:k,nodeRef:U}),n&&n(F,{...w.userNode})},j=F=>{if(!(lae(F.nativeEvent)||g))if(CQe.includes(F.key)&&O){const te=F.key==="Escape";pae({id:e,store:k,unselect:te,nodeRef:U})}else R&&E.selected&&Object.prototype.hasOwnProperty.call(GB,F.key)&&(k.setState({ariaLiveMessage:`Moved selected node ${F.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~w.positionAbsolute.x}, y: ${~~w.positionAbsolute.y}`}),D({direction:GB[F.key],factor:F.shiftKey?4:1}))};return N.jsx("div",{className:dl(["react-flow__node",`react-flow__node-${x}`,{[h]:R},E.className,{selected:E.selected,selectable:O,parent:C,draggable:R,dragging:z}]),ref:U,style:{zIndex:w.z,transform:`translate(${w.positionAbsolute.x}px,${w.positionAbsolute.y}px)`,pointerEvents:q?"all":"none",visibility:$?"visible":"hidden",...E.style,...Y},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:K,onMouseMove:H,onMouseLeave:G,onContextMenu:Q,onClick:Z,onDoubleClick:le,onKeyDown:P?j:void 0,tabIndex:P?0:void 0,role:P?"button":void 0,"aria-describedby":g?void 0:`${eZe}-${v}`,"aria-label":E.ariaLabel,children:N.jsx(wLn,{value:e,children:N.jsx(T,{id:e,data:E.data,type:x,positionAbsoluteX:w.positionAbsolute.x,positionAbsoluteY:w.positionAbsolute.y,selected:E.selected,selectable:O,draggable:R,deletable:E.deletable??!0,isConnectable:M,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:z,dragHandle:E.dragHandle,zIndex:w.z,parentId:E.parentId,...B})})})}const zLn=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function dZe(e){const{nodesDraggable:n,nodesConnectable:r,nodesFocusable:i,elementsSelectable:o,onError:a}=fo(zLn,Ts),s=FLn(e.onlyRenderVisibleElements),l=jLn();return N.jsx("div",{className:"react-flow__nodes",style:_z,children:s.map(c=>N.jsx(HLn,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:l,nodesDraggable:n,nodesConnectable:r,nodesFocusable:i,elementsSelectable:o,nodeClickDistance:e.nodeClickDistance,onError:a},c))})}dZe.displayName="NodeRenderer";const VLn=m.memo(dZe);function GLn(e){return fo(m.useCallback(r=>{if(!e)return r.edges.map(o=>o.id);const i=[];if(r.width&&r.height)for(const o of r.edges){const a=r.nodeLookup.get(o.source),s=r.nodeLookup.get(o.target);a&&s&&JDn({sourceNode:a,targetNode:s,width:r.width,height:r.height,transform:r.transform})&&i.push(o.id)}return i},[e]),Ts)}const WLn=({color:e="none",strokeWidth:n=1})=>N.jsx("polyline",{style:{stroke:e,strokeWidth:n},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),YLn=({color:e="none",strokeWidth:n=1})=>N.jsx("polyline",{style:{stroke:e,fill:e,strokeWidth:n},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),UIe={[HB.Arrow]:WLn,[HB.ArrowClosed]:YLn};function qLn(e){const n=Ka();return m.useMemo(()=>{var o,a;return Object.prototype.hasOwnProperty.call(UIe,e)?UIe[e]:((a=(o=n.getState()).onError)==null||a.call(o,"009",u_.error009(e)),null)},[e])}const KLn=({id:e,type:n,color:r,width:i=12.5,height:o=12.5,markerUnits:a="strokeWidth",strokeWidth:s,orient:l="auto-start-reverse"})=>{const c=qLn(n);return c?N.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${i}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:l,refX:"0",refY:"0",children:N.jsx(c,{color:r,strokeWidth:s})}):null},fZe=({defaultColor:e,rfId:n})=>{const r=fo(a=>a.edges),i=fo(a=>a.defaultEdgeOptions),o=m.useMemo(()=>akn(r,{id:n,defaultColor:e,defaultMarkerStart:i==null?void 0:i.markerStart,defaultMarkerEnd:i==null?void 0:i.markerEnd}),[r,i,n,e]);return o.length?N.jsx("svg",{className:"react-flow__marker",children:N.jsx("defs",{children:o.map(a=>N.jsx(KLn,{id:a.id,type:a.type,color:a.color,width:a.width,height:a.height,markerUnits:a.markerUnits,strokeWidth:a.strokeWidth,orient:a.orient},a.id))})}):null};fZe.displayName="MarkerDefinitions";var XLn=m.memo(fZe);function pZe({x:e,y:n,label:r,labelStyle:i={},labelShowBg:o=!0,labelBgStyle:a={},labelBgPadding:s=[2,4],labelBgBorderRadius:l=2,children:c,className:u,...d}){const[f,p]=m.useState({x:1,y:0,width:0,height:0}),h=dl(["react-flow__edge-textwrapper",u]),g=m.useRef(null);return m.useEffect(()=>{if(g.current){const v=g.current.getBBox();p({x:v.x,y:v.y,width:v.width,height:v.height})}},[r]),typeof r>"u"||!r?null:N.jsxs("g",{transform:`translate(${e-f.width/2} ${n-f.height/2})`,className:h,visibility:f.width?"visible":"hidden",...d,children:[o&&N.jsx("rect",{width:f.width+2*s[0],x:-s[0],y:-s[1],height:f.height+2*s[1],className:"react-flow__edge-textbg",style:a,rx:l,ry:l}),N.jsx("text",{className:"react-flow__edge-text",y:f.height/2,dy:"0.3em",ref:g,style:i,children:r}),c]})}pZe.displayName="EdgeText";const QLn=m.memo(pZe);function bz({id:e,path:n,labelX:r,labelY:i,label:o,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:f,markerStart:p,className:h,interactionWidth:g=20}){return N.jsxs(N.Fragment,{children:[N.jsx("path",{id:e,style:d,d:n,fill:"none",className:dl(["react-flow__edge-path",h]),markerEnd:f,markerStart:p}),g&&N.jsx("path",{d:n,fill:"none",strokeOpacity:0,strokeWidth:g,className:"react-flow__edge-interaction"}),o&&kh(r)&&kh(i)?N.jsx(QLn,{x:r,y:i,label:o,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u}):null]})}function HIe({pos:e,x1:n,y1:r,x2:i,y2:o}){return e===xr.Left||e===xr.Right?[.5*(n+i),r]:[n,.5*(r+o)]}function hZe({sourceX:e,sourceY:n,sourcePosition:r=xr.Bottom,targetX:i,targetY:o,targetPosition:a=xr.Top}){const[s,l]=HIe({pos:r,x1:e,y1:n,x2:i,y2:o}),[c,u]=HIe({pos:a,x1:i,y1:o,x2:e,y2:n}),[d,f,p,h]=$Qe({sourceX:e,sourceY:n,targetX:i,targetY:o,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:u});return[`M${e},${n} C${s},${l} ${c},${u} ${i},${o}`,d,f,p,h]}function gZe(e){return m.memo(({id:n,sourceX:r,sourceY:i,targetX:o,targetY:a,sourcePosition:s=xr.Bottom,targetPosition:l=xr.Top,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:v,markerStart:y,interactionWidth:_})=>{const[S,b,E]=hZe({sourceX:r,sourceY:i,sourcePosition:s,targetX:o,targetY:a,targetPosition:l}),w=e.isInternal?void 0:n;return N.jsx(bz,{id:w,path:S,labelX:b,labelY:E,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:v,markerStart:y,interactionWidth:_})})}const ZLn=gZe({isInternal:!1}),mZe=gZe({isInternal:!0});ZLn.displayName="SimpleBezierEdge";mZe.displayName="SimpleBezierEdgeInternal";function vZe(e){return m.memo(({id:n,sourceX:r,sourceY:i,targetX:o,targetY:a,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,sourcePosition:h=xr.Bottom,targetPosition:g=xr.Top,markerEnd:v,markerStart:y,pathOptions:_,interactionWidth:S})=>{const[b,E,w]=cae({sourceX:r,sourceY:i,sourcePosition:h,targetX:o,targetY:a,targetPosition:g,borderRadius:_==null?void 0:_.borderRadius,offset:_==null?void 0:_.offset}),C=e.isInternal?void 0:n;return N.jsx(bz,{id:C,path:b,labelX:E,labelY:w,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:v,markerStart:y,interactionWidth:S})})}const yZe=vZe({isInternal:!1}),_Ze=vZe({isInternal:!0});yZe.displayName="SmoothStepEdge";_Ze.displayName="SmoothStepEdgeInternal";function bZe(e){return m.memo(({id:n,...r})=>{var o;const i=e.isInternal?void 0:n;return N.jsx(yZe,{...r,id:i,pathOptions:m.useMemo(()=>{var a;return{borderRadius:0,offset:(a=r.pathOptions)==null?void 0:a.offset}},[(o=r.pathOptions)==null?void 0:o.offset])})})}const JLn=bZe({isInternal:!1}),SZe=bZe({isInternal:!0});JLn.displayName="StepEdge";SZe.displayName="StepEdgeInternal";function EZe(e){return m.memo(({id:n,sourceX:r,sourceY:i,targetX:o,targetY:a,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:g,interactionWidth:v})=>{const[y,_,S]=UQe({sourceX:r,sourceY:i,targetX:o,targetY:a}),b=e.isInternal?void 0:n;return N.jsx(bz,{id:b,path:y,labelX:_,labelY:S,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:g,interactionWidth:v})})}const e$n=EZe({isInternal:!1}),CZe=EZe({isInternal:!0});e$n.displayName="StraightEdge";CZe.displayName="StraightEdgeInternal";function wZe(e){return m.memo(({id:n,sourceX:r,sourceY:i,targetX:o,targetY:a,sourcePosition:s=xr.Bottom,targetPosition:l=xr.Top,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:v,markerStart:y,pathOptions:_,interactionWidth:S})=>{const[b,E,w]=FQe({sourceX:r,sourceY:i,sourcePosition:s,targetX:o,targetY:a,targetPosition:l,curvature:_==null?void 0:_.curvature}),C=e.isInternal?void 0:n;return N.jsx(bz,{id:C,path:b,labelX:E,labelY:w,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:v,markerStart:y,interactionWidth:S})})}const t$n=wZe({isInternal:!1}),xZe=wZe({isInternal:!0});t$n.displayName="BezierEdge";xZe.displayName="BezierEdgeInternal";const zIe={default:xZe,straight:CZe,step:SZe,smoothstep:_Ze,simplebezier:mZe},VIe={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},n$n=(e,n,r)=>r===xr.Left?e-n:r===xr.Right?e+n:e,r$n=(e,n,r)=>r===xr.Top?e-n:r===xr.Bottom?e+n:e,GIe="react-flow__edgeupdater";function WIe({position:e,centerX:n,centerY:r,radius:i=10,onMouseDown:o,onMouseEnter:a,onMouseOut:s,type:l}){return N.jsx("circle",{onMouseDown:o,onMouseEnter:a,onMouseOut:s,className:dl([GIe,`${GIe}-${l}`]),cx:n$n(n,i,e),cy:r$n(r,i,e),r:i,stroke:"transparent",fill:"transparent"})}function i$n({isReconnectable:e,reconnectRadius:n,edge:r,sourceX:i,sourceY:o,targetX:a,targetY:s,sourcePosition:l,targetPosition:c,onReconnect:u,onReconnectStart:d,onReconnectEnd:f,setReconnecting:p,setUpdateHover:h}){const g=Ka(),v=(E,w)=>{if(E.button!==0)return;const{autoPanOnConnect:C,domNode:x,isValidConnection:T,connectionMode:R,connectionRadius:O,lib:M,onConnectStart:P,onConnectEnd:k,cancelConnection:$,nodeLookup:U,rfId:z,panBy:D,updateConnection:B}=g.getState(),Y=w.type==="target";p(!0),d==null||d(E,r,w.type);const q=(H,G)=>{p(!1),f==null||f(H,r,w.type,G)},K=H=>u==null?void 0:u(r,H);fae.onPointerDown(E.nativeEvent,{autoPanOnConnect:C,connectionMode:R,connectionRadius:O,domNode:x,handleId:w.id,nodeId:w.nodeId,nodeLookup:U,isTarget:Y,edgeUpdaterType:w.type,lib:M,flowId:z,cancelConnection:$,panBy:D,isValidConnection:T,onConnect:K,onConnectStart:P,onConnectEnd:k,onReconnectEnd:q,updateConnection:B,getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle})},y=E=>v(E,{nodeId:r.target,id:r.targetHandle??null,type:"target"}),_=E=>v(E,{nodeId:r.source,id:r.sourceHandle??null,type:"source"}),S=()=>h(!0),b=()=>h(!1);return N.jsxs(N.Fragment,{children:[(e===!0||e==="source")&&N.jsx(WIe,{position:l,centerX:i,centerY:o,radius:n,onMouseDown:y,onMouseEnter:S,onMouseOut:b,type:"source"}),(e===!0||e==="target")&&N.jsx(WIe,{position:c,centerX:a,centerY:s,radius:n,onMouseDown:_,onMouseEnter:S,onMouseOut:b,type:"target"})]})}function o$n({id:e,edgesFocusable:n,edgesReconnectable:r,elementsSelectable:i,onClick:o,onDoubleClick:a,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,reconnectRadius:d,onReconnect:f,onReconnectStart:p,onReconnectEnd:h,rfId:g,edgeTypes:v,noPanClassName:y,onError:_,disableKeyboardA11y:S}){let b=fo(pe=>pe.edgeLookup.get(e));const E=fo(pe=>pe.defaultEdgeOptions);b=E?{...E,...b}:b;let w=b.type||"default",C=(v==null?void 0:v[w])||zIe[w];C===void 0&&(_==null||_("011",u_.error011(w)),w="default",C=zIe.default);const x=!!(b.focusable||n&&typeof b.focusable>"u"),T=typeof f<"u"&&(b.reconnectable||r&&typeof b.reconnectable>"u"),R=!!(b.selectable||i&&typeof b.selectable>"u"),O=m.useRef(null),[M,P]=m.useState(!1),[k,$]=m.useState(!1),U=Ka(),{zIndex:z,sourceX:D,sourceY:B,targetX:Y,targetY:q,sourcePosition:K,targetPosition:H}=fo(m.useCallback(pe=>{const me=pe.nodeLookup.get(b.source),ve=pe.nodeLookup.get(b.target);if(!me||!ve)return{zIndex:b.zIndex,...VIe};const he=okn({id:e,sourceNode:me,targetNode:ve,sourceHandle:b.sourceHandle||null,targetHandle:b.targetHandle||null,connectionMode:pe.connectionMode,onError:_});return{zIndex:ZDn({selected:b.selected,zIndex:b.zIndex,sourceNode:me,targetNode:ve,elevateOnSelect:pe.elevateEdgesOnSelect}),...he||VIe}},[b.source,b.target,b.sourceHandle,b.targetHandle,b.selected,b.zIndex]),Ts),G=m.useMemo(()=>b.markerStart?`url('#${uae(b.markerStart,g)}')`:void 0,[b.markerStart,g]),Q=m.useMemo(()=>b.markerEnd?`url('#${uae(b.markerEnd,g)}')`:void 0,[b.markerEnd,g]);if(b.hidden||D===null||B===null||Y===null||q===null)return null;const le=pe=>{var be;const{addSelectedEdges:me,unselectNodesAndEdges:ve,multiSelectionActive:he}=U.getState();R&&(U.setState({nodesSelectionActive:!1}),b.selected&&he?(ve({nodes:[],edges:[b]}),(be=O.current)==null||be.blur()):me([e])),o&&o(pe,b)},Z=a?pe=>{a(pe,{...b})}:void 0,j=s?pe=>{s(pe,{...b})}:void 0,F=l?pe=>{l(pe,{...b})}:void 0,te=c?pe=>{c(pe,{...b})}:void 0,oe=u?pe=>{u(pe,{...b})}:void 0,de=pe=>{var me;if(!S&&CQe.includes(pe.key)&&R){const{unselectNodesAndEdges:ve,addSelectedEdges:he}=U.getState();pe.key==="Escape"?((me=O.current)==null||me.blur(),ve({edges:[b]})):he([e])}};return N.jsx("svg",{style:{zIndex:z},children:N.jsxs("g",{className:dl(["react-flow__edge",`react-flow__edge-${w}`,b.className,y,{selected:b.selected,animated:b.animated,inactive:!R&&!o,updating:M,selectable:R}]),onClick:le,onDoubleClick:Z,onContextMenu:j,onMouseEnter:F,onMouseMove:te,onMouseLeave:oe,onKeyDown:x?de:void 0,tabIndex:x?0:void 0,role:x?"button":"img","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":b.ariaLabel===null?void 0:b.ariaLabel||`Edge from ${b.source} to ${b.target}`,"aria-describedby":x?`${tZe}-${g}`:void 0,ref:O,children:[!k&&N.jsx(C,{id:e,source:b.source,target:b.target,type:b.type,selected:b.selected,animated:b.animated,selectable:R,deletable:b.deletable??!0,label:b.label,labelStyle:b.labelStyle,labelShowBg:b.labelShowBg,labelBgStyle:b.labelBgStyle,labelBgPadding:b.labelBgPadding,labelBgBorderRadius:b.labelBgBorderRadius,sourceX:D,sourceY:B,targetX:Y,targetY:q,sourcePosition:K,targetPosition:H,data:b.data,style:b.style,sourceHandleId:b.sourceHandle,targetHandleId:b.targetHandle,markerStart:G,markerEnd:Q,pathOptions:"pathOptions"in b?b.pathOptions:void 0,interactionWidth:b.interactionWidth}),T&&N.jsx(i$n,{edge:b,isReconnectable:T,reconnectRadius:d,onReconnect:f,onReconnectStart:p,onReconnectEnd:h,sourceX:D,sourceY:B,targetX:Y,targetY:q,sourcePosition:K,targetPosition:H,setUpdateHover:P,setReconnecting:$})]})})}const a$n=e=>({width:e.width,height:e.height,edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function TZe({defaultMarkerColor:e,onlyRenderVisibleElements:n,rfId:r,edgeTypes:i,noPanClassName:o,onReconnect:a,onEdgeContextMenu:s,onEdgeMouseEnter:l,onEdgeMouseMove:c,onEdgeMouseLeave:u,onEdgeClick:d,reconnectRadius:f,onEdgeDoubleClick:p,onReconnectStart:h,onReconnectEnd:g,disableKeyboardA11y:v}){const{edgesFocusable:y,edgesReconnectable:_,elementsSelectable:S,onError:b}=fo(a$n,Ts),E=GLn(n);return N.jsxs("div",{className:"react-flow__edges",children:[N.jsx(XLn,{defaultColor:e,rfId:r}),E.map(w=>N.jsx(o$n,{id:w,edgesFocusable:y,edgesReconnectable:_,elementsSelectable:S,noPanClassName:o,onReconnect:a,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,reconnectRadius:f,onDoubleClick:p,onReconnectStart:h,onReconnectEnd:g,rfId:r,onError:b,edgeTypes:i,disableKeyboardA11y:v},w))]})}TZe.displayName="EdgeRenderer";const s$n=m.memo(TZe),l$n=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function c$n({children:e}){const n=fo(l$n);return N.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:n},children:e})}function u$n(e){const n=yz(),r=m.useRef(!1);m.useEffect(()=>{!r.current&&n.viewportInitialized&&e&&(setTimeout(()=>e(n),1),r.current=!0)},[e,n.viewportInitialized])}const d$n=e=>{var n;return(n=e.panZoom)==null?void 0:n.syncViewport};function f$n(e){const n=fo(d$n),r=Ka();return m.useEffect(()=>{e&&(n==null||n(e),r.setState({transform:[e.x,e.y,e.zoom]}))},[e,n]),null}function p$n(e){return e.connection.inProgress?{...e.connection,to:yL(e.connection.to,e.transform)}:{...e.connection}}function h$n(e){return p$n}function g$n(e){const n=h$n();return fo(n,Ts)}const m$n=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function v$n({containerStyle:e,style:n,type:r,component:i}){const{nodesConnectable:o,width:a,height:s,isValid:l,inProgress:c}=fo(m$n,Ts);return!(a&&o&&c)?null:N.jsx("svg",{style:e,width:a,height:s,className:"react-flow__connectionline react-flow__container",children:N.jsx("g",{className:dl(["react-flow__connection",xQe(l)]),children:N.jsx(OZe,{style:n,type:r,CustomComponent:i,isValid:l})})})}const OZe=({style:e,type:n=Tb.Bezier,CustomComponent:r,isValid:i})=>{const{inProgress:o,from:a,fromNode:s,fromHandle:l,fromPosition:c,to:u,toNode:d,toHandle:f,toPosition:p}=g$n();if(!o)return;if(r)return N.jsx(r,{connectionLineType:n,connectionLineStyle:e,fromNode:s,fromHandle:l,fromX:a.x,fromY:a.y,toX:u.x,toY:u.y,fromPosition:c,toPosition:p,connectionStatus:xQe(i),toNode:d,toHandle:f});let h="";const g={sourceX:a.x,sourceY:a.y,sourcePosition:c,targetX:u.x,targetY:u.y,targetPosition:p};switch(n){case Tb.Bezier:[h]=FQe(g);break;case Tb.SimpleBezier:[h]=hZe(g);break;case Tb.Step:[h]=cae({...g,borderRadius:0});break;case Tb.SmoothStep:[h]=cae(g);break;default:[h]=UQe(g)}return N.jsx("path",{d:h,fill:"none",className:"react-flow__connection-path",style:e})};OZe.displayName="ConnectionLine";const y$n={};function YIe(e=y$n){m.useRef(e),Ka(),m.useEffect(()=>{},[e])}function _$n(){Ka(),m.useRef(!1),m.useEffect(()=>{},[])}function RZe({nodeTypes:e,edgeTypes:n,onInit:r,onNodeClick:i,onEdgeClick:o,onNodeDoubleClick:a,onEdgeDoubleClick:s,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,onSelectionContextMenu:f,onSelectionStart:p,onSelectionEnd:h,connectionLineType:g,connectionLineStyle:v,connectionLineComponent:y,connectionLineContainerStyle:_,selectionKeyCode:S,selectionOnDrag:b,selectionMode:E,multiSelectionKeyCode:w,panActivationKeyCode:C,zoomActivationKeyCode:x,deleteKeyCode:T,onlyRenderVisibleElements:R,elementsSelectable:O,defaultViewport:M,translateExtent:P,minZoom:k,maxZoom:$,preventScrolling:U,defaultMarkerColor:z,zoomOnScroll:D,zoomOnPinch:B,panOnScroll:Y,panOnScrollSpeed:q,panOnScrollMode:K,zoomOnDoubleClick:H,panOnDrag:G,onPaneClick:Q,onPaneMouseEnter:le,onPaneMouseMove:Z,onPaneMouseLeave:j,onPaneScroll:F,onPaneContextMenu:te,paneClickDistance:oe,nodeClickDistance:de,onEdgeContextMenu:pe,onEdgeMouseEnter:me,onEdgeMouseMove:ve,onEdgeMouseLeave:he,reconnectRadius:be,onReconnect:we,onReconnectStart:De,onReconnectEnd:Ae,noDragClassName:Ee,noWheelClassName:Re,noPanClassName:Te,disableKeyboardA11y:Oe,nodeExtent:Ne,rfId:je,viewport:ne,onViewportChange:J}){return YIe(e),YIe(n),_$n(),u$n(r),f$n(ne),N.jsx(LLn,{onPaneClick:Q,onPaneMouseEnter:le,onPaneMouseMove:Z,onPaneMouseLeave:j,onPaneContextMenu:te,onPaneScroll:F,paneClickDistance:oe,deleteKeyCode:T,selectionKeyCode:S,selectionOnDrag:b,selectionMode:E,onSelectionStart:p,onSelectionEnd:h,multiSelectionKeyCode:w,panActivationKeyCode:C,zoomActivationKeyCode:x,elementsSelectable:O,zoomOnScroll:D,zoomOnPinch:B,zoomOnDoubleClick:H,panOnScroll:Y,panOnScrollSpeed:q,panOnScrollMode:K,panOnDrag:G,defaultViewport:M,translateExtent:P,minZoom:k,maxZoom:$,onSelectionContextMenu:f,preventScrolling:U,noDragClassName:Ee,noWheelClassName:Re,noPanClassName:Te,disableKeyboardA11y:Oe,onViewportChange:J,isControlledViewport:!!ne,children:N.jsxs(c$n,{children:[N.jsx(s$n,{edgeTypes:n,onEdgeClick:o,onEdgeDoubleClick:s,onReconnect:we,onReconnectStart:De,onReconnectEnd:Ae,onlyRenderVisibleElements:R,onEdgeContextMenu:pe,onEdgeMouseEnter:me,onEdgeMouseMove:ve,onEdgeMouseLeave:he,reconnectRadius:be,defaultMarkerColor:z,noPanClassName:Te,disableKeyboardA11y:Oe,rfId:je}),N.jsx(v$n,{style:v,type:g,component:y,containerStyle:_}),N.jsx("div",{className:"react-flow__edgelabel-renderer"}),N.jsx(VLn,{nodeTypes:e,onNodeClick:i,onNodeDoubleClick:a,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,nodeClickDistance:de,onlyRenderVisibleElements:R,noPanClassName:Te,noDragClassName:Ee,disableKeyboardA11y:Oe,nodeExtent:Ne,rfId:je}),N.jsx("div",{className:"react-flow__viewport-portal"})]})})}RZe.displayName="GraphView";const b$n=m.memo(RZe),qIe=({nodes:e,edges:n,defaultNodes:r,defaultEdges:i,width:o,height:a,fitView:s,nodeOrigin:l,nodeExtent:c}={})=>{const u=new Map,d=new Map,f=new Map,p=new Map,h=i??n??[],g=r??e??[],v=l??[0,0],y=c??YA;zQe(f,p,h),dae(g,u,d,{nodeOrigin:v,nodeExtent:y,elevateNodesOnSelect:!1});let _=[0,0,1];if(s&&o&&a){const S=vL(u,{filter:C=>!!((C.width||C.initialWidth)&&(C.height||C.initialHeight))}),{x:b,y:E,zoom:w}=ihe(S,o,a,.5,2,.1);_=[b,E,w]}return{rfId:"1",width:0,height:0,transform:_,nodes:g,nodeLookup:u,parentLookup:d,edges:h,edgeLookup:p,connectionLookup:f,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:r!==void 0,hasDefaultEdges:i!==void 0,panZoom:null,minZoom:.5,maxZoom:2,translateExtent:YA,nodeExtent:y,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:nR.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:v,nodeDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,fitViewOnInit:!1,fitViewDone:!1,fitViewOnInitOptions:void 0,selectNodesOnDrag:!0,multiSelectionActive:!1,connection:{...wQe},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanSpeed:15,connectionRadius:20,onError:XDn,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1}},S$n=({nodes:e,edges:n,defaultNodes:r,defaultEdges:i,width:o,height:a,fitView:s,nodeOrigin:l,nodeExtent:c})=>Bkn((u,d)=>({...qIe({nodes:e,edges:n,width:o,height:a,fitView:s,nodeOrigin:l,nodeExtent:c,defaultNodes:r,defaultEdges:i}),setNodes:f=>{const{nodeLookup:p,parentLookup:h,nodeOrigin:g,elevateNodesOnSelect:v}=d();dae(f,p,h,{nodeOrigin:g,nodeExtent:c,elevateNodesOnSelect:v,checkEquality:!0}),u({nodes:f})},setEdges:f=>{const{connectionLookup:p,edgeLookup:h}=d();zQe(p,h,f),u({edges:f})},setDefaultNodesAndEdges:(f,p)=>{if(f){const{setNodes:h}=d();h(f),u({hasDefaultNodes:!0})}if(p){const{setEdges:h}=d();h(p),u({hasDefaultEdges:!0})}},updateNodeInternals:(f,p={triggerFitView:!0})=>{const{triggerNodeChanges:h,nodeLookup:g,parentLookup:v,fitViewOnInit:y,fitViewDone:_,fitViewOnInitOptions:S,domNode:b,nodeOrigin:E,nodeExtent:w,debug:C,fitViewSync:x}=d(),{changes:T,updatedInternals:R}=dkn(f,g,v,b,E,w);if(R){if(lkn(g,v,{nodeOrigin:E,nodeExtent:w}),p.triggerFitView){let O=_;!_&&y&&(O=x({...S,nodes:S==null?void 0:S.nodes})),u({fitViewDone:O})}else u({});(T==null?void 0:T.length)>0&&(C&&console.log("React Flow: trigger node changes",T),h==null||h(T))}},updateNodePositions:(f,p=!1)=>{const h=[],g=[];for(const[v,y]of f){const _={id:v,type:"position",position:y.position,dragging:p};y!=null&&y.expandParent&&(y!=null&&y.parentId)&&_.position&&(h.push({id:v,parentId:y.parentId,rect:{...y.internals.positionAbsolute,width:y.measured.width,height:y.measured.height}}),_.position.x=Math.max(0,_.position.x),_.position.y=Math.max(0,_.position.y)),g.push(_)}if(h.length>0){const{nodeLookup:v,parentLookup:y,nodeOrigin:_}=d(),S=lhe(h,v,y,_);g.push(...S)}d().triggerNodeChanges(g)},triggerNodeChanges:f=>{const{onNodesChange:p,setNodes:h,nodes:g,hasDefaultNodes:v,debug:y}=d();if(f!=null&&f.length){if(v){const _=iZe(f,g);h(_)}y&&console.log("React Flow: trigger node changes",f),p==null||p(f)}},triggerEdgeChanges:f=>{const{onEdgesChange:p,setEdges:h,edges:g,hasDefaultEdges:v,debug:y}=d();if(f!=null&&f.length){if(v){const _=aLn(f,g);h(_)}y&&console.log("React Flow: trigger edge changes",f),p==null||p(f)}},addSelectedNodes:f=>{const{multiSelectionActive:p,edgeLookup:h,nodeLookup:g,triggerNodeChanges:v,triggerEdgeChanges:y}=d();if(p){const _=f.map(S=>DE(S,!0));v(_);return}v(CT(g,new Set([...f]),!0)),y(CT(h))},addSelectedEdges:f=>{const{multiSelectionActive:p,edgeLookup:h,nodeLookup:g,triggerNodeChanges:v,triggerEdgeChanges:y}=d();if(p){const _=f.map(S=>DE(S,!0));y(_);return}y(CT(h,new Set([...f]))),v(CT(g,new Set,!0))},unselectNodesAndEdges:({nodes:f,edges:p}={})=>{const{edges:h,nodes:g,nodeLookup:v,triggerNodeChanges:y,triggerEdgeChanges:_}=d(),S=f||g,b=p||h,E=S.map(C=>{const x=v.get(C.id);return x&&(x.selected=!1),DE(C.id,!1)}),w=b.map(C=>DE(C.id,!1));y(E),_(w)},setMinZoom:f=>{const{panZoom:p,maxZoom:h}=d();p==null||p.setScaleExtent([f,h]),u({minZoom:f})},setMaxZoom:f=>{const{panZoom:p,minZoom:h}=d();p==null||p.setScaleExtent([h,f]),u({maxZoom:f})},setTranslateExtent:f=>{var p;(p=d().panZoom)==null||p.setTranslateExtent(f),u({translateExtent:f})},setPaneClickDistance:f=>{var p;(p=d().panZoom)==null||p.setClickDistance(f)},resetSelectedElements:()=>{const{edges:f,nodes:p,triggerNodeChanges:h,triggerEdgeChanges:g}=d(),v=p.reduce((_,S)=>S.selected?[..._,DE(S.id,!1)]:_,[]),y=f.reduce((_,S)=>S.selected?[..._,DE(S.id,!1)]:_,[]);h(v),g(y)},setNodeExtent:f=>{const{nodes:p,nodeLookup:h,parentLookup:g,nodeOrigin:v,elevateNodesOnSelect:y,nodeExtent:_}=d();f[0][0]===_[0][0]&&f[0][1]===_[0][1]&&f[1][0]===_[1][0]&&f[1][1]===_[1][1]||(dae(p,h,g,{nodeOrigin:v,nodeExtent:f,elevateNodesOnSelect:y,checkEquality:!1}),u({nodeExtent:f}))},panBy:f=>{const{transform:p,width:h,height:g,panZoom:v,translateExtent:y}=d();return fkn({delta:f,panZoom:v,transform:p,translateExtent:y,width:h,height:g})},fitView:f=>{const{panZoom:p,width:h,height:g,minZoom:v,maxZoom:y,nodeLookup:_}=d();if(!p)return Promise.resolve(!1);const S=oae(_,f);return aae({nodes:S,width:h,height:g,panZoom:p,minZoom:v,maxZoom:y},f)},fitViewSync:f=>{const{panZoom:p,width:h,height:g,minZoom:v,maxZoom:y,nodeLookup:_}=d();if(!p)return!1;const S=oae(_,f);return aae({nodes:S,width:h,height:g,panZoom:p,minZoom:v,maxZoom:y},f),S.size>0},cancelConnection:()=>{u({connection:{...wQe}})},updateConnection:f=>{u({connection:f})},reset:()=>u({...qIe()})}),Object.is);function IZe({initialNodes:e,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:o,initialHeight:a,fitView:s,nodeOrigin:l,nodeExtent:c,children:u}){const[d]=m.useState(()=>S$n({nodes:e,edges:n,defaultNodes:r,defaultEdges:i,width:o,height:a,fitView:s,nodeOrigin:l,nodeExtent:c}));return N.jsx(jkn,{value:d,children:N.jsx(uLn,{children:u})})}function E$n({children:e,nodes:n,edges:r,defaultNodes:i,defaultEdges:o,width:a,height:s,fitView:l,nodeOrigin:c,nodeExtent:u}){return m.useContext(vz)?N.jsx(N.Fragment,{children:e}):N.jsx(IZe,{initialNodes:n,initialEdges:r,defaultNodes:i,defaultEdges:o,initialWidth:a,initialHeight:s,fitView:l,nodeOrigin:c,nodeExtent:u,children:e})}const C$n={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function w$n({nodes:e,edges:n,defaultNodes:r,defaultEdges:i,className:o,nodeTypes:a,edgeTypes:s,onNodeClick:l,onEdgeClick:c,onInit:u,onMove:d,onMoveStart:f,onMoveEnd:p,onConnect:h,onConnectStart:g,onConnectEnd:v,onClickConnectStart:y,onClickConnectEnd:_,onNodeMouseEnter:S,onNodeMouseMove:b,onNodeMouseLeave:E,onNodeContextMenu:w,onNodeDoubleClick:C,onNodeDragStart:x,onNodeDrag:T,onNodeDragStop:R,onNodesDelete:O,onEdgesDelete:M,onDelete:P,onSelectionChange:k,onSelectionDragStart:$,onSelectionDrag:U,onSelectionDragStop:z,onSelectionContextMenu:D,onSelectionStart:B,onSelectionEnd:Y,onBeforeDelete:q,connectionMode:K,connectionLineType:H=Tb.Bezier,connectionLineStyle:G,connectionLineComponent:Q,connectionLineContainerStyle:le,deleteKeyCode:Z="Backspace",selectionKeyCode:j="Shift",selectionOnDrag:F=!1,selectionMode:te=qA.Full,panActivationKeyCode:oe="Space",multiSelectionKeyCode:de=VB()?"Meta":"Control",zoomActivationKeyCode:pe=VB()?"Meta":"Control",snapToGrid:me,snapGrid:ve,onlyRenderVisibleElements:he=!1,selectNodesOnDrag:be,nodesDraggable:we,nodesConnectable:De,nodesFocusable:Ae,nodeOrigin:Ee=nZe,edgesFocusable:Re,edgesReconnectable:Te,elementsSelectable:Oe=!0,defaultViewport:Ne=Jkn,minZoom:je=.5,maxZoom:ne=2,translateExtent:J=YA,preventScrolling:ae=!0,nodeExtent:Se,defaultMarkerColor:xe="#b1b1b7",zoomOnScroll:ue=!0,zoomOnPinch:Me=!0,panOnScroll:$e=!1,panOnScrollSpeed:ge=.5,panOnScrollMode:Ve=L1.Free,zoomOnDoubleClick:st=!0,panOnDrag:Je=!0,onPaneClick:ot,onPaneMouseEnter:Xe,onPaneMouseMove:Ze,onPaneMouseLeave:bt,onPaneScroll:at,onPaneContextMenu:pt,paneClickDistance:Ct=0,nodeClickDistance:It=0,children:Wt,onReconnect:Bt,onReconnectStart:Vt,onReconnectEnd:rn,onEdgeContextMenu:tt,onEdgeDoubleClick:it,onEdgeMouseEnter:nt,onEdgeMouseMove:vt,onEdgeMouseLeave:kt,reconnectRadius:Dt=10,onNodesChange:Kt,onEdgesChange:Ht,noDragClassName:tn="nodrag",noWheelClassName:on="nowheel",noPanClassName:sn="nopan",fitView:Jt,fitViewOptions:En,connectOnClick:Pt,attributionPosition:Qt,proOptions:ln,defaultEdgeOptions:jt,elevateNodesOnSelect:Lt,elevateEdgesOnSelect:en,disableKeyboardA11y:Ue=!1,autoPanOnConnect:Zt,autoPanOnNodeDrag:Et,autoPanSpeed:Gt,connectionRadius:zt,isValidConnection:Vn,onError:sr,style:A,id:W,nodeDragThreshold:ce,viewport:Pe,onViewportChange:qe,width:gt,height:Yt,colorMode:Nn="light",debug:Jn,...Ci},wi){const to=W||"1",Vr=rLn(Nn);return N.jsx("div",{...Ci,style:{...A,...C$n},ref:wi,className:dl(["react-flow",o,Vr]),"data-testid":"rf__wrapper",id:W,children:N.jsxs(E$n,{nodes:e,edges:n,width:gt,height:Yt,fitView:Jt,nodeOrigin:Ee,nodeExtent:Se,children:[N.jsx(b$n,{onInit:u,onNodeClick:l,onEdgeClick:c,onNodeMouseEnter:S,onNodeMouseMove:b,onNodeMouseLeave:E,onNodeContextMenu:w,onNodeDoubleClick:C,nodeTypes:a,edgeTypes:s,connectionLineType:H,connectionLineStyle:G,connectionLineComponent:Q,connectionLineContainerStyle:le,selectionKeyCode:j,selectionOnDrag:F,selectionMode:te,deleteKeyCode:Z,multiSelectionKeyCode:de,panActivationKeyCode:oe,zoomActivationKeyCode:pe,onlyRenderVisibleElements:he,defaultViewport:Ne,translateExtent:J,minZoom:je,maxZoom:ne,preventScrolling:ae,zoomOnScroll:ue,zoomOnPinch:Me,zoomOnDoubleClick:st,panOnScroll:$e,panOnScrollSpeed:ge,panOnScrollMode:Ve,panOnDrag:Je,onPaneClick:ot,onPaneMouseEnter:Xe,onPaneMouseMove:Ze,onPaneMouseLeave:bt,onPaneScroll:at,onPaneContextMenu:pt,paneClickDistance:Ct,nodeClickDistance:It,onSelectionContextMenu:D,onSelectionStart:B,onSelectionEnd:Y,onReconnect:Bt,onReconnectStart:Vt,onReconnectEnd:rn,onEdgeContextMenu:tt,onEdgeDoubleClick:it,onEdgeMouseEnter:nt,onEdgeMouseMove:vt,onEdgeMouseLeave:kt,reconnectRadius:Dt,defaultMarkerColor:xe,noDragClassName:tn,noWheelClassName:on,noPanClassName:sn,rfId:to,disableKeyboardA11y:Ue,nodeExtent:Se,viewport:Pe,onViewportChange:qe}),N.jsx(nLn,{nodes:e,edges:n,defaultNodes:r,defaultEdges:i,onConnect:h,onConnectStart:g,onConnectEnd:v,onClickConnectStart:y,onClickConnectEnd:_,nodesDraggable:we,nodesConnectable:De,nodesFocusable:Ae,edgesFocusable:Re,edgesReconnectable:Te,elementsSelectable:Oe,elevateNodesOnSelect:Lt,elevateEdgesOnSelect:en,minZoom:je,maxZoom:ne,nodeExtent:Se,onNodesChange:Kt,onEdgesChange:Ht,snapToGrid:me,snapGrid:ve,connectionMode:K,translateExtent:J,connectOnClick:Pt,defaultEdgeOptions:jt,fitView:Jt,fitViewOptions:En,onNodesDelete:O,onEdgesDelete:M,onDelete:P,onNodeDragStart:x,onNodeDrag:T,onNodeDragStop:R,onSelectionDrag:U,onSelectionDragStart:$,onSelectionDragStop:z,onMove:d,onMoveStart:f,onMoveEnd:p,noPanClassName:sn,nodeOrigin:Ee,rfId:to,autoPanOnConnect:Zt,autoPanOnNodeDrag:Et,autoPanSpeed:Gt,onError:sr,connectionRadius:zt,isValidConnection:Vn,selectNodesOnDrag:be,nodeDragThreshold:ce,onBeforeDelete:q,paneClickDistance:Ct,debug:Jn}),N.jsx(Zkn,{onSelectionChange:k}),Wt,N.jsx(Ykn,{proOptions:ln,position:Qt}),N.jsx(Gkn,{rfId:to,disableKeyboardA11y:Ue})]})})}var x$n=oZe(w$n);function T$n({dimensions:e,lineWidth:n,variant:r,className:i}){return N.jsx("path",{strokeWidth:n,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:dl(["react-flow__background-pattern",r,i])})}function O$n({radius:e,className:n}){return N.jsx("circle",{cx:e,cy:e,r:e,className:dl(["react-flow__background-pattern","dots",n])})}var my;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(my||(my={}));const R$n={[my.Dots]:1,[my.Lines]:1,[my.Cross]:6},I$n=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function NZe({id:e,variant:n=my.Dots,gap:r=20,size:i,lineWidth:o=1,offset:a=0,color:s,bgColor:l,style:c,className:u,patternClassName:d}){const f=m.useRef(null),{transform:p,patternId:h}=fo(I$n,Ts),g=i||R$n[n],v=n===my.Dots,y=n===my.Cross,_=Array.isArray(r)?r:[r,r],S=[_[0]*p[2]||1,_[1]*p[2]||1],b=g*p[2],E=Array.isArray(a)?a:[a,a],w=y?[b,b]:S,C=[E[0]*p[2]||1+w[0]/2,E[1]*p[2]||1+w[1]/2],x=`${h}${e||""}`;return N.jsxs("svg",{className:dl(["react-flow__background",u]),style:{...c,..._z,"--xy-background-color-props":l,"--xy-background-pattern-color-props":s},ref:f,"data-testid":"rf__background",children:[N.jsx("pattern",{id:x,x:p[0]%S[0],y:p[1]%S[1],width:S[0],height:S[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${C[0]},-${C[1]})`,children:v?N.jsx(O$n,{radius:b/2,className:d}):N.jsx(T$n,{dimensions:w,lineWidth:o,variant:n,className:d})}),N.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${x})`})]})}NZe.displayName="Background";const N$n=m.memo(NZe);function M$n(){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:N.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function P$n(){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:N.jsx("path",{d:"M0 0h32v4.2H0z"})})}function A$n(){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:N.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function D$n(){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:N.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function k$n(){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:N.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function P4({children:e,className:n,...r}){return N.jsx("button",{type:"button",className:dl(["react-flow__controls-button",n]),...r,children:e})}const L$n=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom});function MZe({style:e,showZoom:n=!0,showFitView:r=!0,showInteractive:i=!0,fitViewOptions:o,onZoomIn:a,onZoomOut:s,onFitView:l,onInteractiveChange:c,className:u,children:d,position:f="bottom-left",orientation:p="vertical","aria-label":h="React Flow controls"}){const g=Ka(),{isInteractive:v,minZoomReached:y,maxZoomReached:_}=fo(L$n,Ts),{zoomIn:S,zoomOut:b,fitView:E}=yz(),w=()=>{S(),a==null||a()},C=()=>{b(),s==null||s()},x=()=>{E(o),l==null||l()},T=()=>{g.setState({nodesDraggable:!v,nodesConnectable:!v,elementsSelectable:!v}),c==null||c(!v)},R=p==="horizontal"?"horizontal":"vertical";return N.jsxs(che,{className:dl(["react-flow__controls",R,u]),position:f,style:e,"data-testid":"rf__controls","aria-label":h,children:[n&&N.jsxs(N.Fragment,{children:[N.jsx(P4,{onClick:w,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:_,children:N.jsx(M$n,{})}),N.jsx(P4,{onClick:C,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:y,children:N.jsx(P$n,{})})]}),r&&N.jsx(P4,{className:"react-flow__controls-fitview",onClick:x,title:"fit view","aria-label":"fit view",children:N.jsx(A$n,{})}),i&&N.jsx(P4,{className:"react-flow__controls-interactive",onClick:T,title:"toggle interactivity","aria-label":"toggle interactivity",children:v?N.jsx(k$n,{}):N.jsx(D$n,{})}),d]})}MZe.displayName="Controls";const $$n=m.memo(MZe);function F$n({id:e,x:n,y:r,width:i,height:o,style:a,color:s,strokeColor:l,strokeWidth:c,className:u,borderRadius:d,shapeRendering:f,selected:p,onClick:h}){const{background:g,backgroundColor:v}=a||{},y=s||g||v;return N.jsx("rect",{className:dl(["react-flow__minimap-node",{selected:p},u]),x:n,y:r,rx:d,ry:d,width:i,height:o,style:{fill:y,stroke:l,strokeWidth:c},shapeRendering:f,onClick:h?_=>h(_,e):void 0})}const B$n=m.memo(F$n),j$n=e=>e.nodes.map(n=>n.id),wK=e=>e instanceof Function?e:()=>e;function U$n({nodeStrokeColor:e,nodeColor:n,nodeClassName:r="",nodeBorderRadius:i=5,nodeStrokeWidth:o,nodeComponent:a=B$n,onClick:s}){const l=fo(j$n,Ts),c=wK(n),u=wK(e),d=wK(r),f=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return N.jsx(N.Fragment,{children:l.map(p=>N.jsx(z$n,{id:p,nodeColorFunc:c,nodeStrokeColorFunc:u,nodeClassNameFunc:d,nodeBorderRadius:i,nodeStrokeWidth:o,NodeComponent:a,onClick:s,shapeRendering:f},p))})}function H$n({id:e,nodeColorFunc:n,nodeStrokeColorFunc:r,nodeClassNameFunc:i,nodeBorderRadius:o,nodeStrokeWidth:a,shapeRendering:s,NodeComponent:l,onClick:c}){const{node:u,x:d,y:f,width:p,height:h}=fo(g=>{const v=g.nodeLookup.get(e),{x:y,y:_}=v.internals.positionAbsolute,{width:S,height:b}=d_(v);return{node:v,x:y,y:_,width:S,height:b}},Ts);return!u||u.hidden||!AQe(u)?null:N.jsx(l,{x:d,y:f,width:p,height:h,style:u.style,selected:!!u.selected,className:i(u),color:n(u),borderRadius:o,strokeColor:r(u),strokeWidth:a,shapeRendering:s,onClick:c,id:u.id})}const z$n=m.memo(H$n);var V$n=m.memo(U$n);const G$n=200,W$n=150,Y$n=e=>{const n={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:n,boundingRect:e.nodeLookup.size>0?MQe(vL(e.nodeLookup),n):n,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height}},q$n="react-flow__minimap-desc";function PZe({style:e,className:n,nodeStrokeColor:r,nodeColor:i,nodeClassName:o="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:l,bgColor:c,maskColor:u,maskStrokeColor:d,maskStrokeWidth:f,position:p="bottom-right",onClick:h,onNodeClick:g,pannable:v=!1,zoomable:y=!1,ariaLabel:_="React Flow mini map",inversePan:S,zoomStep:b=10,offsetScale:E=5}){const w=Ka(),C=m.useRef(null),{boundingRect:x,viewBB:T,rfId:R,panZoom:O,translateExtent:M,flowWidth:P,flowHeight:k}=fo(Y$n,Ts),$=(e==null?void 0:e.width)??G$n,U=(e==null?void 0:e.height)??W$n,z=x.width/$,D=x.height/U,B=Math.max(z,D),Y=B*$,q=B*U,K=E*B,H=x.x-(Y-x.width)/2-K,G=x.y-(q-x.height)/2-K,Q=Y+K*2,le=q+K*2,Z=`${q$n}-${R}`,j=m.useRef(0),F=m.useRef();j.current=B,m.useEffect(()=>{if(C.current&&O)return F.current=bkn({domNode:C.current,panZoom:O,getTransform:()=>w.getState().transform,getViewScale:()=>j.current}),()=>{var de;(de=F.current)==null||de.destroy()}},[O]),m.useEffect(()=>{var de;(de=F.current)==null||de.update({translateExtent:M,width:P,height:k,inversePan:S,pannable:v,zoomStep:b,zoomable:y})},[v,y,S,b,M,P,k]);const te=h?de=>{var ve;const[pe,me]=((ve=F.current)==null?void 0:ve.pointer(de))||[0,0];h(de,{x:pe,y:me})}:void 0,oe=g?m.useCallback((de,pe)=>{const me=w.getState().nodeLookup.get(pe);g(de,me)},[]):void 0;return N.jsx(che,{position:p,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-width-props":typeof f=="number"?f*B:void 0,"--xy-minimap-node-background-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="string"?s:void 0},className:dl(["react-flow__minimap",n]),"data-testid":"rf__minimap",children:N.jsxs("svg",{width:$,height:U,viewBox:`${H} ${G} ${Q} ${le}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":Z,ref:C,onClick:te,children:[_&&N.jsx("title",{id:Z,children:_}),N.jsx(V$n,{onClick:oe,nodeColor:i,nodeStrokeColor:r,nodeBorderRadius:a,nodeClassName:o,nodeStrokeWidth:s,nodeComponent:l}),N.jsx("path",{className:"react-flow__minimap-mask",d:`M${H-K},${G-K}h${Q+K*2}v${le+K*2}h${-Q-K*2}z
|
||
M${T.x},${T.y}h${T.width}v${T.height}h${-T.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}PZe.displayName="MiniMap";const K$n=m.memo(PZe);function X$n({nodeId:e,position:n,variant:r=fP.Handle,className:i,style:o={},children:a,color:s,minWidth:l=10,minHeight:c=10,maxWidth:u=Number.MAX_VALUE,maxHeight:d=Number.MAX_VALUE,keepAspectRatio:f=!1,shouldResize:p,onResizeStart:h,onResize:g,onResizeEnd:v}){const y=cZe(),_=typeof e=="string"?e:y,S=Ka(),b=m.useRef(null),E=r===fP.Line?"right":"bottom-right",w=n??E,C=m.useRef(null);m.useEffect(()=>{if(!(!b.current||!_))return C.current||(C.current=kkn({domNode:b.current,nodeId:_,getStoreItems:()=>{const{nodeLookup:O,transform:M,snapGrid:P,snapToGrid:k,nodeOrigin:$,domNode:U}=S.getState();return{nodeLookup:O,transform:M,snapGrid:P,snapToGrid:k,nodeOrigin:$,paneDomNode:U}},onChange:(O,M)=>{const{triggerNodeChanges:P,nodeLookup:k,parentLookup:$,nodeOrigin:U}=S.getState(),z=[],D={x:O.x,y:O.y},B=k.get(_);if(B&&B.expandParent&&B.parentId){const Y=B.origin??U,q=O.width??B.measured.width,K=O.height??B.measured.height,H={id:B.id,parentId:B.parentId,rect:{width:q,height:K,...DQe({x:O.x??B.position.x,y:O.y??B.position.y},{width:q,height:K},B.parentId,k,Y)}},G=lhe([H],k,$,U);z.push(...G),D.x=O.x?Math.max(Y[0]*q,O.x):void 0,D.y=O.y?Math.max(Y[1]*K,O.y):void 0}if(D.x!==void 0&&D.y!==void 0){const Y={id:_,type:"position",position:{...D}};z.push(Y)}if(O.width!==void 0&&O.height!==void 0){const Y={id:_,type:"dimensions",resizing:!0,setAttributes:!0,dimensions:{width:O.width,height:O.height}};z.push(Y)}for(const Y of M){const q={...Y,type:"position"};z.push(q)}P(z)},onEnd:()=>{const O={id:_,type:"dimensions",resizing:!1};S.getState().triggerNodeChanges([O])}})),C.current.update({controlPosition:w,boundaries:{minWidth:l,minHeight:c,maxWidth:u,maxHeight:d},keepAspectRatio:f,onResizeStart:h,onResize:g,onResizeEnd:v,shouldResize:p}),()=>{var O;(O=C.current)==null||O.destroy()}},[w,l,c,u,d,f,h,g,v,p]);const x=w.split("-"),T=r===fP.Line?"borderColor":"backgroundColor",R=s?{...o,[T]:s}:o;return N.jsx("div",{className:dl(["react-flow__resize-control","nodrag",...x,r,i]),ref:b,style:R,children:a})}m.memo(X$n);const AZe=Ou()(Sd(e=>({nodes:[],edges:[],setNodes:n=>e(r=>{const i=typeof n=="function"?n(r.nodes):n;if(i.length<r.nodes.length){const o=r.nodes.filter(s=>!i.find(l=>l.id===s.id)).map(s=>s.id),a=r.edges.filter(s=>!o.includes(s.source)&&!o.includes(s.target));return{nodes:i,edges:a}}return JSON.stringify(i)!==JSON.stringify(r.nodes)?{nodes:i}:r}),setEdges:n=>e(r=>{const i=typeof n=="function"?n(r.edges):n;return JSON.stringify(i)!==JSON.stringify(r.edges)?{edges:i}:r}),clearFlow:()=>e({nodes:[],edges:[]})}),{name:"flow-builder-storage"})),DZe=({data:e})=>{const n=Fr(),r={style:{margin:0}},i=()=>{switch(e.formType){case"text":return N.jsx(eo,{name:"text",label:n.formatMessage({id:"nodes.textField.label"}),...r});case"digit":return N.jsx(b0n,{name:"digit",label:n.formatMessage({id:"nodes.numberField.label"}),...r});case"date":return N.jsx(MI,{name:"date",label:n.formatMessage({id:"nodes.datePicker.label"}),...r});case"select":return N.jsx(hC,{name:"select",label:n.formatMessage({id:"nodes.select.label"}),options:[{label:n.formatMessage({id:"flow.option.1"}),value:"1"},{label:n.formatMessage({id:"flow.option.2"}),value:"2"}],...r});case"checkbox":return N.jsx(rH.Group,{name:"checkbox",label:n.formatMessage({id:"nodes.checkbox.label"}),options:[n.formatMessage({id:"flow.option.1"}),n.formatMessage({id:"flow.option.2"}),n.formatMessage({id:"flow.option.3"})],...r});case"radio":return N.jsx(iH.Group,{name:"radio",label:n.formatMessage({id:"nodes.radio.label"}),options:[n.formatMessage({id:"flow.option.1"}),n.formatMessage({id:"flow.option.2"}),n.formatMessage({id:"flow.option.3"})],...r});default:return N.jsx("div",{children:n.formatMessage({id:"nodes.unknown"})})}};return N.jsx(_u,{size:"small",style:{width:"100%",margin:"8px 0",border:"dashed"},children:N.jsx(mi,{submitter:!1,layout:"vertical",children:i()})})},Q$n=({formType:e,onDelete:n,index:r,total:i,onMove:o})=>{const a=Fr();return N.jsx("div",{style:{marginBottom:8,position:"relative"},children:N.jsxs("div",{style:{position:"relative"},children:[N.jsx(DZe,{data:{formType:e}}),N.jsxs("div",{style:{position:"absolute",right:0,top:0,display:"flex",gap:4},children:[r>0&&N.jsx(qn,{type:"text",icon:N.jsx(VVe,{}),size:"small",onClick:()=>o("up"),title:a.formatMessage({id:"flow.moveUp"})}),r<i-1&&N.jsx(qn,{type:"text",icon:N.jsx(zVe,{}),size:"small",onClick:()=>o("down"),title:a.formatMessage({id:"flow.moveDown"})}),N.jsx(qn,{type:"text",icon:N.jsx(sw,{}),size:"small",onClick:n,title:a.formatMessage({id:"flow.delete"})})]})]})})},Z$n=({id:e,data:n})=>{var u;const r=Fr(),i=d=>{d.preventDefault(),d.dataTransfer.dropEffect="move"},o=d=>{var h;d.preventDefault(),d.stopPropagation();const f=d.dataTransfer.getData("application/reactflow"),p=d.dataTransfer.getData("form-type");f==="form"&&((h=n.onChildAdd)==null||h.call(n,e,{id:`form-${Date.now()}`,type:"form",formType:p||"text"}))},a=(d,f)=>{const p=[...n.children||[]],h=p.findIndex(v=>v.id===d),g=f==="up"?h-1:h+1;if(g>=0&&g<p.length){const[v]=p.splice(h,1);p.splice(g,0,v),window.dispatchEvent(new CustomEvent("flow-node-update",{detail:{nodeId:e,data:{...n,children:p}}}))}},s=()=>{window.dispatchEvent(new CustomEvent("flow-delete-node",{detail:{nodeId:e,selectedNodeId:e}}))},l=()=>{console.log("handleRun"),window.dispatchEvent(new CustomEvent("flow-start-chat",{detail:{nodeId:e}}))},c=()=>{console.log("handleCopy",e),window.dispatchEvent(new CustomEvent("flow-copy-node",{detail:{nodeId:e}}))};return N.jsxs(_u,{style:{width:300,minHeight:120,border:"1px solid"},onDragOver:i,onDrop:o,extra:N.jsxs("div",{style:{display:"flex",gap:4},children:[N.jsx(qn,{type:"text",icon:N.jsx(Ude,{}),size:"small",onClick:d=>{var f;d.stopPropagation(),(f=n.onPropertyClick)==null||f.call(n)},title:r.formatMessage({id:"flow.properties"})}),N.jsx(qn,{type:"text",icon:N.jsx(Bde,{}),size:"small",onClick:l,title:r.formatMessage({id:"flow.run"})}),N.jsx(qn,{type:"text",icon:N.jsx(Bzt,{}),size:"small",onClick:c,title:r.formatMessage({id:"flow.copy"})}),N.jsx(qn,{type:"text",icon:N.jsx(sw,{}),size:"small",onClick:s,title:r.formatMessage({id:"flow.delete"})})]}),children:[N.jsx(bC,{type:"target",position:xr.Top}),N.jsx("div",{children:n.title||r.formatMessage({id:"flow.parentNode"})}),N.jsx("div",{className:"node-children",style:{padding:"8px 0"},children:(u=n.children)==null?void 0:u.map((d,f)=>{var p;return N.jsx(Q$n,{id:d.id,parentId:e,formType:d.formType,index:f,total:((p=n.children)==null?void 0:p.length)||0,onDelete:()=>{var h;return(h=n.onChildDelete)==null?void 0:h.call(n,e,d.id)},onMove:h=>a(d.id,h)},d.id)})}),N.jsx(bC,{type:"source",position:xr.Bottom})]})},J$n=()=>{const e=Fr(),{isDarkMode:n}=Mu(),r=()=>{var i;console.log("handleRun"),(i=window.bytedesk)==null||i.showChat()};return N.jsxs(_u,{style:{width:100,minHeight:20,border:"1px solid"},children:[N.jsxs("div",{children:[e.formatMessage({id:"flow.start"}),N.jsx(qn,{type:"text",icon:N.jsx(Bde,{}),size:"small",onClick:r,title:e.formatMessage({id:"flow.run"}),style:{marginLeft:8}})]}),N.jsx(bC,{type:"source",position:xr.Bottom,style:{background:n?"#177ddc":"#1890ff"}})]})};window.flowPropertyClick=null;const e3n=V.memo(({props:e,onPropertyClick:n})=>N.jsx(Z$n,{...e,data:{...e.data,onPropertyClick:()=>n({id:e.id,type:e.type,position:e.position,data:e.data})}})),t3n={parent:e=>N.jsx(e3n,{props:e,onPropertyClick:window.flowPropertyClick}),form:DZe,start:J$n},n3n=({onNodeClick:e,onPropertyClick:n})=>{const{nodes:r,edges:i,setNodes:o,setEdges:a}=AZe(),s=yz(),l=Fr(),{themeMode:c,isDarkMode:u}=Mu(),[d,f]=m.useState(c),[p,h]=m.useState(null);m.useEffect(()=>{f(c)},[c]),m.useEffect(()=>{window.flowPropertyClick=n},[n]),m.useEffect(()=>{window.flowInstance=s},[s]),m.useEffect(()=>{const C=x=>{const{nodes:T,edges:R}=x.detail;o(T),a(R)};return window.addEventListener("flow-import",C),()=>{window.removeEventListener("flow-import",C)}},[o,a]),m.useEffect(()=>{r.length>0&&o(r.map(C=>C.type==="parent"?{...C,data:{...C.data,onChildAdd:g,onChildDelete:v}}:C))},[]);const g=m.useCallback((C,x)=>{o(T=>T.map(R=>R.id===C?{...R,data:{...R.data,children:[...R.data.children||[],x],onChildAdd:g,onChildDelete:v}}:R))},[o]),v=m.useCallback((C,x)=>{o(T=>T.map(R=>{var O;return R.id===C?{...R,data:{...R.data,children:(O=R.data.children)==null?void 0:O.filter(M=>M.id!==x),onChildAdd:g,onChildDelete:v}}:R}))},[o]),y=m.useCallback(C=>{if(C.preventDefault(),!C.dataTransfer)return;const x=C.dataTransfer.getData("application/reactflow");if(x!=="parent"&&x!=="form"&&x!=="start")return;const{x:T,y:R}=s.screenToFlowPosition({x:C.clientX,y:C.clientY});if(x==="start"&&r.some(M=>M.type==="start"))return;const O=r.find(M=>M.type==="start");if(O){const M={left:O.position.x-50,right:O.position.x+50,top:O.position.y-50,bottom:O.position.y+50};if(T>M.left&&T<M.right&&R>M.top&&R<M.bottom)return}if(x==="form"){const M=C.dataTransfer.getData("form-type"),k={id:`node-${Date.now()}`,type:"parent",position:{x:T,y:R},data:{title:"父节点",description:"",children:[{id:`form-${Date.now()}`,type:"form",formType:M||"text"}],onChildAdd:g,onChildDelete:v}};o($=>[...$,k])}else o(x==="start"?M=>[...M,{id:`start-${Date.now()}`,type:"start",position:{x:T,y:R},data:{}}]:M=>[...M,{id:`node-${Date.now()}`,type:x,position:{x:T,y:R},data:{title:"父节点",description:"",children:[],onChildAdd:g,onChildDelete:v}}])},[s,g,v]),_=m.useCallback(C=>{C.preventDefault(),C.dataTransfer&&(C.dataTransfer.dropEffect="move")},[]),S=m.useCallback(C=>{a(x=>jQe(C,x))},[]),b=m.useCallback(C=>{o(x=>iZe(C,x))},[]),E=m.useCallback((C,x)=>{h(x.id),e(x)},[e]),w=m.useCallback(()=>{h(null),window.dispatchEvent(new CustomEvent("flow-node-deselect"))},[]);return m.useEffect(()=>{const C=R=>{const{nodeId:O,data:M}=R.detail;o(r.map(P=>P.id===O?{...P,data:{...P.data,...M}}:P))},x=R=>{const{nodeId:O}=R.detail;console.log("handleCopyNode",O);const M=r.find(P=>P.id===O);if(M){const P=`copy-${O}-${Date.now()}`,k={x:M.position.x+100,y:M.position.y+100};o($=>[...$,{...M,id:P,position:k}])}},T=R=>{var M;const{nodeId:O}=R.detail;console.log("handleStartChat",O),(M=window.bytedesk)==null||M.showChat()};return window.addEventListener("flow-node-update",C),window.addEventListener("flow-copy-node",x),window.addEventListener("flow-start-chat",T),()=>{window.removeEventListener("flow-node-update",C),window.removeEventListener("flow-copy-node",x),window.removeEventListener("flow-start-chat",T)}},[r,o]),m.useEffect(()=>{const C=x=>{const{nodeId:T}=x.detail;o(R=>{const O=R.filter(M=>M.id!==T);return(O.length===0||T===x.detail.selectedNodeId)&&window.dispatchEvent(new CustomEvent("flow-node-deselect")),O})};return window.addEventListener("flow-delete-node",C),()=>{window.removeEventListener("flow-delete-node",C)}},[o]),m.useEffect(()=>{r.length===0&&o([{id:"start-node",type:"start",position:{x:100,y:100},data:{}}])},[]),N.jsx("div",{style:{width:"100%",height:"100%"},children:N.jsxs(x$n,{nodes:r.map(C=>({...C,style:{...C.style,border:C.id===p?`2px solid ${u?"#177ddc":"#1890ff"}`:void 0,boxShadow:C.id===p?`0 0 8px ${u?"#177ddc40":"#1890ff40"}`:void 0}})),edges:i,nodeTypes:t3n,onConnect:S,onNodesChange:b,onNodeClick:E,onPaneClick:w,onDrop:y,onDragOver:_,fitView:!1,defaultViewport:{x:0,y:0,zoom:1},"aria-label":l.formatMessage({id:"flow.canvas.label"}),colorMode:d,children:[N.jsx(N$n,{bgColor:u?"#322F2FFF":"#F5F2F2FF",variant:my.Dots,gap:12,size:1}),N.jsx($$n,{}),N.jsx(K$n,{})]})})},r3n=({onNodeClick:e,onPropertyClick:n})=>N.jsx("div",{style:{width:"100%",height:"100%"},children:N.jsx(IZe,{children:N.jsx(n3n,{onNodeClick:e,onPropertyClick:n})})}),i3n=({selectedNode:e,onNodeUpdate:n,onChildUpdate:r,onChildDelete:i})=>{var f;const o=Fr(),[a]=Hr.useForm(),s=()=>{e&&a.setFieldsValue({title:e.data.title,description:e.data.description})},l=async()=>{try{const p=await a.validateFields();e&&n(e.id,p)}catch(p){console.error("Validate Failed:",p)}};if(!e)return null;const c=p=>{const h={...e.data,...p};n(e.id,h)},u=(p,h,g)=>{r(p,h,g)},d=(p,h)=>{i(p,h)};return N.jsx("div",{className:"property-panel",children:N.jsx(_u,{title:o.formatMessage({id:"propertyPanel.settings"}),extra:N.jsxs(Ef,{children:[N.jsx(qn,{icon:N.jsx(pGt,{}),onClick:s,title:o.formatMessage({id:"propertyPanel.reset"}),children:o.formatMessage({id:"propertyPanel.reset"})}),N.jsx(qn,{type:"primary",icon:N.jsx(jde,{}),onClick:l,title:o.formatMessage({id:"propertyPanel.save"}),children:o.formatMessage({id:"propertyPanel.save"})})]}),children:N.jsx(Hr,{form:a,layout:"vertical",initialValues:{title:e==null?void 0:e.data.title,description:e==null?void 0:e.data.description},children:e&&N.jsxs(N.Fragment,{children:[N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.nodeId"}),name:"id",children:N.jsx(Oi,{value:e.id,disabled:!0})}),N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.nodeType"}),name:"type",children:N.jsx(Oi,{value:e.type,disabled:!0})}),N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.nodeName"}),name:"title",children:N.jsx(Oi,{placeholder:o.formatMessage({id:"propertyPanel.placeholder.name"}),defaultValue:e.data.title,onChange:p=>c({title:p.target.value})})}),N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.nodeDesc"}),name:"description",children:N.jsx(Oi.TextArea,{placeholder:o.formatMessage({id:"propertyPanel.placeholder.desc"}),defaultValue:e.data.description,onChange:p=>c({description:p.target.value})})}),(f=e.data.children)==null?void 0:f.map(p=>N.jsxs(_u,{size:"small",title:o.formatMessage({id:"propertyPanel.componentType"}),extra:N.jsx(qn,{type:"text",icon:N.jsx(sw,{}),onClick:()=>d(e.id,p.id),title:o.formatMessage({id:"flow.delete"})}),children:[N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.labelName"}),children:N.jsx(Oi,{placeholder:o.formatMessage({id:"propertyPanel.placeholder.label"}),defaultValue:p.label,onChange:h=>u(e.id,p.id,{label:h.target.value})})}),(p.formType==="select"||p.formType==="checkbox"||p.formType==="radio")&&N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.options"}),children:N.jsx(_g,{mode:"tags",style:{width:"100%"},placeholder:o.formatMessage({id:"propertyPanel.placeholder.options"}),defaultValue:p.options,onChange:h=>u(e.id,p.id,{options:h})})})]},p.id))]})})})})};function KIe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function wT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?KIe(Object(r),!0).forEach(function(i){fe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KIe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function o3n(e){var n=e.length;if(n===0||n===1)return e;if(n===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(n===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(n>=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 xK={};function a3n(e){if(e.length===0||e.length===1)return e;var n=e.join(".");return xK[n]||(xK[n]=o3n(e)),xK[n]}function s3n(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=e.filter(function(a){return a!=="token"}),o=a3n(i);return o.reduce(function(a,s){return wT(wT({},a),r[s])},n)}function XIe(e){return e.join(" ")}function l3n(e,n){var r=0;return function(i){return r+=1,i.map(function(o,a){return kZe({node:o,stylesheet:e,useInlineStyles:n,key:"code-segment-".concat(r,"-").concat(a)})})}}function kZe(e){var n=e.node,r=e.stylesheet,i=e.style,o=i===void 0?{}:i,a=e.useInlineStyles,s=e.key,l=n.properties,c=n.type,u=n.tagName,d=n.value;if(c==="text")return d;if(u){var f=l3n(r,a),p;if(!a)p=wT(wT({},l),{},{className:XIe(l.className)});else{var h=Object.keys(r).reduce(function(_,S){return S.split(".").forEach(function(b){_.includes(b)||_.push(b)}),_},[]),g=l.className&&l.className.includes("token")?["token"]:[],v=l.className&&g.concat(l.className.filter(function(_){return!h.includes(_)}));p=wT(wT({},l),{},{className:XIe(v)||void 0,style:s3n(l.className,Object.assign({},l.style,o),r)})}var y=f(n.children);return V.createElement(u,ft({key:s},p),y)}}const c3n=function(e,n){var r=e.listLanguages();return r.indexOf(n)!==-1};var u3n=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function QIe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function Vb(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?QIe(Object(r),!0).forEach(function(i){fe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QIe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}var d3n=/\n/g;function f3n(e){return e.match(d3n)}function p3n(e){var n=e.lines,r=e.startingLineNumber,i=e.style;return n.map(function(o,a){var s=a+r;return V.createElement("span",{key:"line-".concat(a),className:"react-syntax-highlighter-line-number",style:typeof i=="function"?i(s):i},"".concat(s,`
|
||
`))})}function h3n(e){var n=e.codeString,r=e.codeStyle,i=e.containerStyle,o=i===void 0?{float:"left",paddingRight:"10px"}:i,a=e.numberStyle,s=a===void 0?{}:a,l=e.startingLineNumber;return V.createElement("code",{style:Object.assign({},r,o)},p3n({lines:n.replace(/\n$/,"").split(`
|
||
`),style:s,startingLineNumber:l}))}function g3n(e){return"".concat(e.toString().length,".25em")}function LZe(e,n){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:n},children:[{type:"text",value:e}]}}function $Ze(e,n,r){var i={display:"inline-block",minWidth:g3n(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(n):e,a=Vb(Vb({},i),o);return a}function L6(e){var n=e.children,r=e.lineNumber,i=e.lineNumberStyle,o=e.largestLineNumber,a=e.showInlineLineNumbers,s=e.lineProps,l=s===void 0?{}:s,c=e.className,u=c===void 0?[]:c,d=e.showLineNumbers,f=e.wrapLongLines,p=e.wrapLines,h=p===void 0?!1:p,g=h?Vb({},typeof l=="function"?l(r):l):{};if(g.className=g.className?[].concat(Tt(g.className.trim().split(/\s+/)),Tt(u)):u,r&&a){var v=$Ze(i,r,o);n.unshift(LZe(r,v))}return f&d&&(g.style=Vb({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:n}}function FZe(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0;i<e.length;i++){var o=e[i];if(o.type==="text")r.push(L6({children:[o],className:Tt(new Set(n))}));else if(o.children){var a=n.concat(o.properties.className);FZe(o.children,a).forEach(function(s){return r.push(s)})}}return r}function m3n(e,n,r,i,o,a,s,l,c){var u,d=FZe(e.value),f=[],p=-1,h=0;function g(w,C){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return L6({children:w,lineNumber:C,lineNumberStyle:l,largestLineNumber:s,showInlineLineNumbers:o,lineProps:r,className:x,showLineNumbers:i,wrapLongLines:c,wrapLines:n})}function v(w,C){if(i&&C&&o){var x=$Ze(l,C,s);w.unshift(LZe(C,x))}return w}function y(w,C){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return n||x.length>0?g(w,C,x):v(w,C)}for(var _=function(){var C=d[h],x=C.children[0].value,T=f3n(x);if(T){var R=x.split(`
|
||
`);R.forEach(function(O,M){var P=i&&f.length+a,k={type:"text",value:"".concat(O,`
|
||
`)};if(M===0){var $=d.slice(p+1,h).concat(L6({children:[k],className:C.properties.className})),U=y($,P);f.push(U)}else if(M===R.length-1){var z=d[h+1]&&d[h+1].children&&d[h+1].children[0],D={type:"text",value:"".concat(O)};if(z){var B=L6({children:[D],className:C.properties.className});d.splice(h+1,0,B)}else{var Y=[D],q=y(Y,P,C.properties.className);f.push(q)}}else{var K=[k],H=y(K,P,C.properties.className);f.push(H)}}),p=h}h++};h<d.length;)_();if(p!==d.length-1){var S=d.slice(p+1,d.length);if(S&&S.length){var b=i&&f.length+a,E=y(S,b);f.push(E)}}return n?f:(u=[]).concat.apply(u,f)}function v3n(e){var n=e.rows,r=e.stylesheet,i=e.useInlineStyles;return n.map(function(o,a){return kZe({node:o,stylesheet:r,useInlineStyles:i,key:"code-segement".concat(a)})})}function BZe(e){return e&&typeof e.highlightAuto<"u"}function y3n(e){var n=e.astGenerator,r=e.language,i=e.code,o=e.defaultCodeValue;if(BZe(n)){var a=c3n(n,r);return r==="text"?{value:o,language:"text"}:a?n.highlight(r,i):n.highlightAuto(i)}try{return r&&r!=="text"?{value:n.highlight(i,r)}:{value:o}}catch{return{value:o}}}function _3n(e,n){return function(i){var o=i.language,a=i.children,s=i.style,l=s===void 0?n:s,c=i.customStyle,u=c===void 0?{}:c,d=i.codeTagProps,f=d===void 0?{className:o?"language-".concat(o):void 0,style:Vb(Vb({},l['code[class*="language-"]']),l['code[class*="language-'.concat(o,'"]')])}:d,p=i.useInlineStyles,h=p===void 0?!0:p,g=i.showLineNumbers,v=g===void 0?!1:g,y=i.showInlineLineNumbers,_=y===void 0?!0:y,S=i.startingLineNumber,b=S===void 0?1:S,E=i.lineNumberContainerStyle,w=i.lineNumberStyle,C=w===void 0?{}:w,x=i.wrapLines,T=i.wrapLongLines,R=T===void 0?!1:T,O=i.lineProps,M=O===void 0?{}:O,P=i.renderer,k=i.PreTag,$=k===void 0?"pre":k,U=i.CodeTag,z=U===void 0?"code":U,D=i.code,B=D===void 0?(Array.isArray(a)?a[0]:a)||"":D,Y=i.astGenerator,q=Xt(i,u3n);Y=Y||e;var K=v?V.createElement(h3n,{containerStyle:E,codeStyle:f.style||{},numberStyle:C,startingLineNumber:b,codeString:B}):null,H=l.hljs||l['pre[class*="language-"]']||{backgroundColor:"#fff"},G=BZe(Y)?"hljs":"prismjs",Q=h?Object.assign({},q,{style:Object.assign({},H,u)}):Object.assign({},q,{className:q.className?"".concat(G," ").concat(q.className):G,style:Object.assign({},u)});if(R?f.style=Vb({whiteSpace:"pre-wrap"},f.style):f.style=Vb({whiteSpace:"pre"},f.style),!Y)return V.createElement($,Q,K,V.createElement(z,f,B));(x===void 0&&P||R)&&(x=!0),P=P||v3n;var le=[{type:"text",value:B}],Z=y3n({astGenerator:Y,language:o,code:B,defaultCodeValue:le});Z.language===null&&(Z.value=le);var j=Z.value.length;j===1&&Z.value[0].type==="text"&&(j=Z.value[0].value.split(`
|
||
`).length);var F=j+b,te=m3n(Z,x,M,v,_,b,F,C,R);return V.createElement($,Q,V.createElement(z,f,!_&&K,P({rows:te,stylesheet:l,useInlineStyles:h})))}}const b3n={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#F0F0F0",color:"#444"},"hljs-subst":{color:"#444"},"hljs-comment":{color:"#888888"},"hljs-keyword":{fontWeight:"bold"},"hljs-attribute":{fontWeight:"bold"},"hljs-selector-tag":{fontWeight:"bold"},"hljs-meta-keyword":{fontWeight:"bold"},"hljs-doctag":{fontWeight:"bold"},"hljs-name":{fontWeight:"bold"},"hljs-type":{color:"#880000"},"hljs-string":{color:"#880000"},"hljs-number":{color:"#880000"},"hljs-selector-id":{color:"#880000"},"hljs-selector-class":{color:"#880000"},"hljs-quote":{color:"#880000"},"hljs-template-tag":{color:"#880000"},"hljs-deletion":{color:"#880000"},"hljs-title":{color:"#880000",fontWeight:"bold"},"hljs-section":{color:"#880000",fontWeight:"bold"},"hljs-regexp":{color:"#BC6060"},"hljs-symbol":{color:"#BC6060"},"hljs-variable":{color:"#BC6060"},"hljs-template-variable":{color:"#BC6060"},"hljs-link":{color:"#BC6060"},"hljs-selector-attr":{color:"#BC6060"},"hljs-selector-pseudo":{color:"#BC6060"},"hljs-literal":{color:"#78A960"},"hljs-built_in":{color:"#397300"},"hljs-bullet":{color:"#397300"},"hljs-code":{color:"#397300"},"hljs-addition":{color:"#397300"},"hljs-meta":{color:"#1f7199"},"hljs-meta-string":{color:"#4d99bf"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}};var UI={};function dhe(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(n){var r=e[n];typeof r=="object"&&!Object.isFrozen(r)&&dhe(r)}),e}var jZe=dhe,S3n=dhe;jZe.default=S3n;let ZIe=class{constructor(n){n.data===void 0&&(n.data={}),this.data=n.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function JT(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Gb(e,...n){const r=Object.create(null);for(const i in e)r[i]=e[i];return n.forEach(function(i){for(const o in i)r[o]=i[o]}),r}const E3n="</span>",JIe=e=>!!e.kind;class C3n{constructor(n,r){this.buffer="",this.classPrefix=r.classPrefix,n.walk(this)}addText(n){this.buffer+=JT(n)}openNode(n){if(!JIe(n))return;let r=n.kind;n.sublanguage||(r=`${this.classPrefix}${r}`),this.span(r)}closeNode(n){JIe(n)&&(this.buffer+=E3n)}value(){return this.buffer}span(n){this.buffer+=`<span class="${n}">`}}class fhe{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(n){this.top.children.push(n)}openNode(n){const r={kind:n,children:[]};this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(n){return this.constructor._walk(n,this.rootNode)}static _walk(n,r){return typeof r=="string"?n.addText(r):r.children&&(n.openNode(r),r.children.forEach(i=>this._walk(n,i)),n.closeNode(r)),n}static _collapse(n){typeof n!="string"&&n.children&&(n.children.every(r=>typeof r=="string")?n.children=[n.children.join("")]:n.children.forEach(r=>{fhe._collapse(r)}))}}class w3n extends fhe{constructor(n){super(),this.options=n}addKeyword(n,r){n!==""&&(this.openNode(r),this.addText(n),this.closeNode())}addText(n){n!==""&&this.add(n)}addSublanguage(n,r){const i=n.root;i.kind=r,i.sublanguage=!0,this.add(i)}toHTML(){return new C3n(this,this.options).value()}finalize(){return!0}}function x3n(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function ZA(e){return e?typeof e=="string"?e:e.source:null}function T3n(...e){return e.map(r=>ZA(r)).join("")}function O3n(...e){return"("+e.map(r=>ZA(r)).join("|")+")"}function R3n(e){return new RegExp(e.toString()+"|").exec("").length-1}function I3n(e,n){const r=e&&e.exec(n);return r&&r.index===0}const N3n=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function M3n(e,n="|"){let r=0;return e.map(i=>{r+=1;const o=r;let a=ZA(i),s="";for(;a.length>0;){const l=N3n.exec(a);if(!l){s+=a;break}s+=a.substring(0,l.index),a=a.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?s+="\\"+String(Number(l[1])+o):(s+=l[0],l[0]==="("&&r++)}return s}).map(i=>`(${i})`).join(n)}const P3n=/\b\B/,UZe="[a-zA-Z]\\w*",phe="[a-zA-Z_]\\w*",hhe="\\b\\d+(\\.\\d+)?",HZe="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",zZe="\\b(0b[01]+)",A3n="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",D3n=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=T3n(n,/.*\b/,e.binary,/\b.*/)),Gb({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":(r,i)=>{r.index!==0&&i.ignoreMatch()}},e)},JA={begin:"\\\\[\\s\\S]",relevance:0},k3n={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[JA]},L3n={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[JA]},VZe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Sz=function(e,n,r={}){const i=Gb({className:"comment",begin:e,end:n,contains:[]},r);return i.contains.push(VZe),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),i},$3n=Sz("//","$"),F3n=Sz("/\\*","\\*/"),B3n=Sz("#","$"),j3n={className:"number",begin:hhe,relevance:0},U3n={className:"number",begin:HZe,relevance:0},H3n={className:"number",begin:zZe,relevance:0},z3n={className:"number",begin:hhe+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},V3n={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[JA,{begin:/\[/,end:/\]/,relevance:0,contains:[JA]}]}]},G3n={className:"title",begin:UZe,relevance:0},W3n={className:"title",begin:phe,relevance:0},Y3n={begin:"\\.\\s*"+phe,relevance:0},q3n=function(e){return Object.assign(e,{"on:begin":(n,r)=>{r.data._beginMatch=n[1]},"on:end":(n,r)=>{r.data._beginMatch!==n[1]&&r.ignoreMatch()}})};var A4=Object.freeze({__proto__:null,MATCH_NOTHING_RE:P3n,IDENT_RE:UZe,UNDERSCORE_IDENT_RE:phe,NUMBER_RE:hhe,C_NUMBER_RE:HZe,BINARY_NUMBER_RE:zZe,RE_STARTERS_RE:A3n,SHEBANG:D3n,BACKSLASH_ESCAPE:JA,APOS_STRING_MODE:k3n,QUOTE_STRING_MODE:L3n,PHRASAL_WORDS_MODE:VZe,COMMENT:Sz,C_LINE_COMMENT_MODE:$3n,C_BLOCK_COMMENT_MODE:F3n,HASH_COMMENT_MODE:B3n,NUMBER_MODE:j3n,C_NUMBER_MODE:U3n,BINARY_NUMBER_MODE:H3n,CSS_NUMBER_MODE:z3n,REGEXP_MODE:V3n,TITLE_MODE:G3n,UNDERSCORE_TITLE_MODE:W3n,METHOD_GUARD:Y3n,END_SAME_AS_BEGIN:q3n});function K3n(e,n){e.input[e.index-1]==="."&&n.ignoreMatch()}function X3n(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=K3n,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Q3n(e,n){Array.isArray(e.illegal)&&(e.illegal=O3n(...e.illegal))}function Z3n(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function J3n(e,n){e.relevance===void 0&&(e.relevance=1)}const e4n=["of","and","for","in","not","or","if","then","parent","list","value"],t4n="keyword";function GZe(e,n,r=t4n){const i={};return typeof e=="string"?o(r,e.split(" ")):Array.isArray(e)?o(r,e):Object.keys(e).forEach(function(a){Object.assign(i,GZe(e[a],n,a))}),i;function o(a,s){n&&(s=s.map(l=>l.toLowerCase())),s.forEach(function(l){const c=l.split("|");i[c[0]]=[a,n4n(c[0],c[1])]})}}function n4n(e,n){return n?Number(n):r4n(e)?0:1}function r4n(e){return e4n.includes(e.toLowerCase())}function i4n(e,{plugins:n}){function r(l,c){return new RegExp(ZA(l),"m"+(e.case_insensitive?"i":"")+(c?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(c,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,c]),this.matchAt+=R3n(c)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const c=this.regexes.map(u=>u[1]);this.matcherRe=r(M3n(c),!0),this.lastIndex=0}exec(c){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(c);if(!u)return null;const d=u.findIndex((p,h)=>h>0&&p!==void 0),f=this.matchIndexes[d];return u.splice(0,d),Object.assign(u,f)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(c){if(this.multiRegexes[c])return this.multiRegexes[c];const u=new i;return this.rules.slice(c).forEach(([d,f])=>u.addRule(d,f)),u.compile(),this.multiRegexes[c]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(c,u){this.rules.push([c,u]),u.type==="begin"&&this.count++}exec(c){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let d=u.exec(c);if(this.resumingScanAtSamePosition()&&!(d&&d.index===this.lastIndex)){const f=this.getMatcher(0);f.lastIndex=this.lastIndex+1,d=f.exec(c)}return d&&(this.regexIndex+=d.position+1,this.regexIndex===this.count&&this.considerAll()),d}}function a(l){const c=new o;return l.contains.forEach(u=>c.addRule(u.begin,{rule:u,type:"begin"})),l.terminatorEnd&&c.addRule(l.terminatorEnd,{type:"end"}),l.illegal&&c.addRule(l.illegal,{type:"illegal"}),c}function s(l,c){const u=l;if(l.isCompiled)return u;[Z3n].forEach(f=>f(l,c)),e.compilerExtensions.forEach(f=>f(l,c)),l.__beforeBegin=null,[X3n,Q3n,J3n].forEach(f=>f(l,c)),l.isCompiled=!0;let d=null;if(typeof l.keywords=="object"&&(d=l.keywords.$pattern,delete l.keywords.$pattern),l.keywords&&(l.keywords=GZe(l.keywords,e.case_insensitive)),l.lexemes&&d)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return d=d||l.lexemes||/\w+/,u.keywordPatternRe=r(d,!0),c&&(l.begin||(l.begin=/\B|\b/),u.beginRe=r(l.begin),l.endSameAsBegin&&(l.end=l.begin),!l.end&&!l.endsWithParent&&(l.end=/\B|\b/),l.end&&(u.endRe=r(l.end)),u.terminatorEnd=ZA(l.end)||"",l.endsWithParent&&c.terminatorEnd&&(u.terminatorEnd+=(l.end?"|":"")+c.terminatorEnd)),l.illegal&&(u.illegalRe=r(l.illegal)),l.contains||(l.contains=[]),l.contains=[].concat(...l.contains.map(function(f){return o4n(f==="self"?l:f)})),l.contains.forEach(function(f){s(f,u)}),l.starts&&s(l.starts,c),u.matcher=a(u),u}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Gb(e.classNameAliases||{}),s(e)}function WZe(e){return e?e.endsWithParent||WZe(e.starts):!1}function o4n(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(n){return Gb(e,{variants:null},n)})),e.cachedVariants?e.cachedVariants:WZe(e)?Gb(e,{starts:e.starts?Gb(e.starts):null}):Object.isFrozen(e)?Gb(e):e}var a4n="10.7.3";function s4n(e){return!!(e||e==="")}function l4n(e){const n={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,JT(this.code);let i={};return this.autoDetect?(i=e.highlightAuto(this.code),this.detectedLanguage=i.language):(i=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),i.value},autoDetect(){return!this.language||s4n(this.autodetect)},ignoreIllegals(){return!0}},render(i){return i("pre",{},[i("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:n,VuePlugin:{install(i){i.component("highlightjs",n)}}}}const c4n={"after:highlightElement":({el:e,result:n,text:r})=>{const i=eNe(e);if(!i.length)return;const o=document.createElement("div");o.innerHTML=n.value,n.value=u4n(i,eNe(o),r)}};function hae(e){return e.nodeName.toLowerCase()}function eNe(e){const n=[];return function r(i,o){for(let a=i.firstChild;a;a=a.nextSibling)a.nodeType===3?o+=a.nodeValue.length:a.nodeType===1&&(n.push({event:"start",offset:o,node:a}),o=r(a,o),hae(a).match(/br|hr|img|input/)||n.push({event:"stop",offset:o,node:a}));return o}(e,0),n}function u4n(e,n,r){let i=0,o="";const a=[];function s(){return!e.length||!n.length?e.length?e:n:e[0].offset!==n[0].offset?e[0].offset<n[0].offset?e:n:n[0].event==="start"?e:n}function l(d){function f(p){return" "+p.nodeName+'="'+JT(p.value)+'"'}o+="<"+hae(d)+[].map.call(d.attributes,f).join("")+">"}function c(d){o+="</"+hae(d)+">"}function u(d){(d.event==="start"?l:c)(d.node)}for(;e.length||n.length;){let d=s();if(o+=JT(r.substring(i,d[0].offset)),i=d[0].offset,d===e){a.reverse().forEach(c);do u(d.splice(0,1)[0]),d=s();while(d===e&&d.length&&d[0].offset===i);a.reverse().forEach(l)}else d[0].event==="start"?a.push(d[0].node):a.pop(),u(d.splice(0,1)[0])}return o+JT(r.substr(i))}const tNe={},TK=e=>{console.error(e)},nNe=(e,...n)=>{console.log(`WARN: ${e}`,...n)},Yf=(e,n)=>{tNe[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),tNe[`${e}/${n}`]=!0)},OK=JT,rNe=Gb,iNe=Symbol("nomatch"),d4n=function(e){const n=Object.create(null),r=Object.create(null),i=[];let o=!0;const a=/(^(<[^>]+>|\t|)+|\n)/gm,s="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let c={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:w3n};function u(G){return c.noHighlightRe.test(G)}function d(G){let Q=G.className+" ";Q+=G.parentNode?G.parentNode.className:"";const le=c.languageDetectRe.exec(Q);if(le){const Z=U(le[1]);return Z||(nNe(s.replace("{}",le[1])),nNe("Falling back to no-highlight mode for this block.",G)),Z?le[1]:"no-highlight"}return Q.split(/\s+/).find(Z=>u(Z)||U(Z))}function f(G,Q,le,Z){let j="",F="";typeof Q=="object"?(j=G,le=Q.ignoreIllegals,F=Q.language,Z=void 0):(Yf("10.7.0","highlight(lang, code, ...args) has been deprecated."),Yf("10.7.0",`Please use highlight(code, options) instead.
|
||
https://github.com/highlightjs/highlight.js/issues/2277`),F=G,j=Q);const te={code:j,language:F};q("before:highlight",te);const oe=te.result?te.result:p(te.language,te.code,le,Z);return oe.code=te.code,q("after:highlight",oe),oe}function p(G,Q,le,Z){function j(xe,ue){const Me=Ae.case_insensitive?ue[0].toLowerCase():ue[0];return Object.prototype.hasOwnProperty.call(xe.keywords,Me)&&xe.keywords[Me]}function F(){if(!Te.keywords){Ne.addText(je);return}let xe=0;Te.keywordPatternRe.lastIndex=0;let ue=Te.keywordPatternRe.exec(je),Me="";for(;ue;){Me+=je.substring(xe,ue.index);const $e=j(Te,ue);if($e){const[ge,Ve]=$e;if(Ne.addText(Me),Me="",ne+=Ve,ge.startsWith("_"))Me+=ue[0];else{const st=Ae.classNameAliases[ge]||ge;Ne.addKeyword(ue[0],st)}}else Me+=ue[0];xe=Te.keywordPatternRe.lastIndex,ue=Te.keywordPatternRe.exec(je)}Me+=je.substr(xe),Ne.addText(Me)}function te(){if(je==="")return;let xe=null;if(typeof Te.subLanguage=="string"){if(!n[Te.subLanguage]){Ne.addText(je);return}xe=p(Te.subLanguage,je,!0,Oe[Te.subLanguage]),Oe[Te.subLanguage]=xe.top}else xe=g(je,Te.subLanguage.length?Te.subLanguage:null);Te.relevance>0&&(ne+=xe.relevance),Ne.addSublanguage(xe.emitter,xe.language)}function oe(){Te.subLanguage!=null?te():F(),je=""}function de(xe){return xe.className&&Ne.openNode(Ae.classNameAliases[xe.className]||xe.className),Te=Object.create(xe,{parent:{value:Te}}),Te}function pe(xe,ue,Me){let $e=I3n(xe.endRe,Me);if($e){if(xe["on:end"]){const ge=new ZIe(xe);xe["on:end"](ue,ge),ge.isMatchIgnored&&($e=!1)}if($e){for(;xe.endsParent&&xe.parent;)xe=xe.parent;return xe}}if(xe.endsWithParent)return pe(xe.parent,ue,Me)}function me(xe){return Te.matcher.regexIndex===0?(je+=xe[0],1):(Se=!0,0)}function ve(xe){const ue=xe[0],Me=xe.rule,$e=new ZIe(Me),ge=[Me.__beforeBegin,Me["on:begin"]];for(const Ve of ge)if(Ve&&(Ve(xe,$e),$e.isMatchIgnored))return me(ue);return Me&&Me.endSameAsBegin&&(Me.endRe=x3n(ue)),Me.skip?je+=ue:(Me.excludeBegin&&(je+=ue),oe(),!Me.returnBegin&&!Me.excludeBegin&&(je=ue)),de(Me),Me.returnBegin?0:ue.length}function he(xe){const ue=xe[0],Me=Q.substr(xe.index),$e=pe(Te,xe,Me);if(!$e)return iNe;const ge=Te;ge.skip?je+=ue:(ge.returnEnd||ge.excludeEnd||(je+=ue),oe(),ge.excludeEnd&&(je=ue));do Te.className&&Ne.closeNode(),!Te.skip&&!Te.subLanguage&&(ne+=Te.relevance),Te=Te.parent;while(Te!==$e.parent);return $e.starts&&($e.endSameAsBegin&&($e.starts.endRe=$e.endRe),de($e.starts)),ge.returnEnd?0:ue.length}function be(){const xe=[];for(let ue=Te;ue!==Ae;ue=ue.parent)ue.className&&xe.unshift(ue.className);xe.forEach(ue=>Ne.openNode(ue))}let we={};function De(xe,ue){const Me=ue&&ue[0];if(je+=xe,Me==null)return oe(),0;if(we.type==="begin"&&ue.type==="end"&&we.index===ue.index&&Me===""){if(je+=Q.slice(ue.index,ue.index+1),!o){const $e=new Error("0 width match regex");throw $e.languageName=G,$e.badRule=we.rule,$e}return 1}if(we=ue,ue.type==="begin")return ve(ue);if(ue.type==="illegal"&&!le){const $e=new Error('Illegal lexeme "'+Me+'" for mode "'+(Te.className||"<unnamed>")+'"');throw $e.mode=Te,$e}else if(ue.type==="end"){const $e=he(ue);if($e!==iNe)return $e}if(ue.type==="illegal"&&Me==="")return 1;if(ae>1e5&&ae>ue.index*3)throw new Error("potential infinite loop, way more iterations than matches");return je+=Me,Me.length}const Ae=U(G);if(!Ae)throw TK(s.replace("{}",G)),new Error('Unknown language: "'+G+'"');const Ee=i4n(Ae,{plugins:i});let Re="",Te=Z||Ee;const Oe={},Ne=new c.__emitter(c);be();let je="",ne=0,J=0,ae=0,Se=!1;try{for(Te.matcher.considerAll();;){ae++,Se?Se=!1:Te.matcher.considerAll(),Te.matcher.lastIndex=J;const xe=Te.matcher.exec(Q);if(!xe)break;const ue=Q.substring(J,xe.index),Me=De(ue,xe);J=xe.index+Me}return De(Q.substr(J)),Ne.closeAllNodes(),Ne.finalize(),Re=Ne.toHTML(),{relevance:Math.floor(ne),value:Re,language:G,illegal:!1,emitter:Ne,top:Te}}catch(xe){if(xe.message&&xe.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:xe.message,context:Q.slice(J-100,J+100),mode:xe.mode},sofar:Re,relevance:0,value:OK(Q),emitter:Ne};if(o)return{illegal:!1,relevance:0,value:OK(Q),emitter:Ne,language:G,top:Te,errorRaised:xe};throw xe}}function h(G){const Q={relevance:0,emitter:new c.__emitter(c),value:OK(G),illegal:!1,top:l};return Q.emitter.addText(G),Q}function g(G,Q){Q=Q||c.languages||Object.keys(n);const le=h(G),Z=Q.filter(U).filter(D).map(de=>p(de,G,!1));Z.unshift(le);const j=Z.sort((de,pe)=>{if(de.relevance!==pe.relevance)return pe.relevance-de.relevance;if(de.language&&pe.language){if(U(de.language).supersetOf===pe.language)return 1;if(U(pe.language).supersetOf===de.language)return-1}return 0}),[F,te]=j,oe=F;return oe.second_best=te,oe}function v(G){return c.tabReplace||c.useBR?G.replace(a,Q=>Q===`
|
||
`?c.useBR?"<br>":Q:c.tabReplace?Q.replace(/\t/g,c.tabReplace):Q):G}function y(G,Q,le){const Z=Q?r[Q]:le;G.classList.add("hljs"),Z&&G.classList.add(Z)}const _={"before:highlightElement":({el:G})=>{c.useBR&&(G.innerHTML=G.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
|
||
`))},"after:highlightElement":({result:G})=>{c.useBR&&(G.value=G.value.replace(/\n/g,"<br>"))}},S=/^(<[^>]+>|\t)+/gm,b={"after:highlightElement":({result:G})=>{c.tabReplace&&(G.value=G.value.replace(S,Q=>Q.replace(/\t/g,c.tabReplace)))}};function E(G){let Q=null;const le=d(G);if(u(le))return;q("before:highlightElement",{el:G,language:le}),Q=G;const Z=Q.textContent,j=le?f(Z,{language:le,ignoreIllegals:!0}):g(Z);q("after:highlightElement",{el:G,result:j,text:Z}),G.innerHTML=j.value,y(G,le,j.language),G.result={language:j.language,re:j.relevance,relavance:j.relevance},j.second_best&&(G.second_best={language:j.second_best.language,re:j.second_best.relevance,relavance:j.second_best.relevance})}function w(G){G.useBR&&(Yf("10.3.0","'useBR' will be removed entirely in v11.0"),Yf("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),c=rNe(c,G)}const C=()=>{if(C.called)return;C.called=!0,Yf("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(E)};function x(){Yf("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),T=!0}let T=!1;function R(){if(document.readyState==="loading"){T=!0;return}document.querySelectorAll("pre code").forEach(E)}function O(){T&&R()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1);function M(G,Q){let le=null;try{le=Q(e)}catch(Z){if(TK("Language definition for '{}' could not be registered.".replace("{}",G)),o)TK(Z);else throw Z;le=l}le.name||(le.name=G),n[G]=le,le.rawDefinition=Q.bind(null,e),le.aliases&&z(le.aliases,{languageName:G})}function P(G){delete n[G];for(const Q of Object.keys(r))r[Q]===G&&delete r[Q]}function k(){return Object.keys(n)}function $(G){Yf("10.4.0","requireLanguage will be removed entirely in v11."),Yf("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const Q=U(G);if(Q)return Q;throw new Error("The '{}' language is required, but not loaded.".replace("{}",G))}function U(G){return G=(G||"").toLowerCase(),n[G]||n[r[G]]}function z(G,{languageName:Q}){typeof G=="string"&&(G=[G]),G.forEach(le=>{r[le.toLowerCase()]=Q})}function D(G){const Q=U(G);return Q&&!Q.disableAutodetect}function B(G){G["before:highlightBlock"]&&!G["before:highlightElement"]&&(G["before:highlightElement"]=Q=>{G["before:highlightBlock"](Object.assign({block:Q.el},Q))}),G["after:highlightBlock"]&&!G["after:highlightElement"]&&(G["after:highlightElement"]=Q=>{G["after:highlightBlock"](Object.assign({block:Q.el},Q))})}function Y(G){B(G),i.push(G)}function q(G,Q){const le=G;i.forEach(function(Z){Z[le]&&Z[le](Q)})}function K(G){return Yf("10.2.0","fixMarkup will be removed entirely in v11.0"),Yf("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),v(G)}function H(G){return Yf("10.7.0","highlightBlock will be removed entirely in v12.0"),Yf("10.7.0","Please use highlightElement now."),E(G)}Object.assign(e,{highlight:f,highlightAuto:g,highlightAll:R,fixMarkup:K,highlightElement:E,highlightBlock:H,configure:w,initHighlighting:C,initHighlightingOnLoad:x,registerLanguage:M,unregisterLanguage:P,listLanguages:k,getLanguage:U,registerAliases:z,requireLanguage:$,autoDetection:D,inherit:rNe,addPlugin:Y,vuePlugin:l4n(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=a4n;for(const G in A4)typeof A4[G]=="object"&&jZe(A4[G]);return Object.assign(e,A4),e.addPlugin(_),e.addPlugin(c4n),e.addPlugin(b),e};var f4n=d4n({}),p4n=f4n,YZe={exports:{}};(function(e){(function(){var n;n=e.exports=o,n.format=o,n.vsprintf=i,typeof console<"u"&&typeof console.log=="function"&&(n.printf=r);function r(){console.log(o.apply(null,arguments))}function i(a,s){return o.apply(null,[a].concat(s))}function o(a){for(var s=1,l=[].slice.call(arguments),c=0,u=a.length,d="",f,p=!1,h,g,v=!1,y,_=function(){return l[s++]},S=function(){for(var b="";/\d/.test(a[c]);)b+=a[c++],f=a[c];return b.length>0?parseInt(b):null};c<u;++c)if(f=a[c],p)switch(p=!1,f=="."?(v=!1,f=a[++c]):f=="0"&&a[c+1]=="."?(v=!0,c+=2,f=a[c]):v=!0,y=S(),f){case"b":d+=parseInt(_(),10).toString(2);break;case"c":h=_(),typeof h=="string"||h instanceof String?d+=h:d+=String.fromCharCode(parseInt(h,10));break;case"d":d+=parseInt(_(),10);break;case"f":g=String(parseFloat(_()).toFixed(y||6)),d+=v?g:g.replace(/^0/,"");break;case"j":d+=JSON.stringify(_());break;case"o":d+="0"+parseInt(_(),10).toString(8);break;case"s":d+=_();break;case"x":d+="0x"+parseInt(_(),10).toString(16);break;case"X":d+="0x"+parseInt(_(),10).toString(16).toUpperCase();break;default:d+=f;break}else f==="%"?p=!0:d+=f;return d}})()})(YZe);var h4n=YZe.exports,g4n=h4n,uS=dS(Error),m4n=uS;uS.eval=dS(EvalError);uS.range=dS(RangeError);uS.reference=dS(ReferenceError);uS.syntax=dS(SyntaxError);uS.type=dS(TypeError);uS.uri=dS(URIError);uS.create=dS;function dS(e){return n.displayName=e.displayName||e.name,n;function n(r){return r&&(r=g4n.apply(null,arguments)),new e(r)}}var om=p4n,$6=m4n;UI.highlight=qZe;UI.highlightAuto=y4n;UI.registerLanguage=_4n;UI.listLanguages=b4n;UI.registerAlias=S4n;f_.prototype.addText=w4n;f_.prototype.addKeyword=E4n;f_.prototype.addSublanguage=C4n;f_.prototype.openNode=x4n;f_.prototype.closeNode=T4n;f_.prototype.closeAllNodes=KZe;f_.prototype.finalize=KZe;f_.prototype.toHTML=O4n;var v4n="hljs-";function qZe(e,n,r){var i=om.configure({}),o=r||{},a=o.prefix,s;if(typeof e!="string")throw $6("Expected `string` for name, got `%s`",e);if(!om.getLanguage(e))throw $6("Unknown language: `%s` is not registered",e);if(typeof n!="string")throw $6("Expected `string` for value, got `%s`",n);if(a==null&&(a=v4n),om.configure({__emitter:f_,classPrefix:a}),s=om.highlight(n,{language:e,ignoreIllegals:!0}),om.configure(i||{}),s.errorRaised)throw s.errorRaised;return{relevance:s.relevance,language:s.language,value:s.emitter.rootNode.children}}function y4n(e,n){var r=n||{},i=r.subset||om.listLanguages();r.prefix;var o=i.length,a=-1,s,l,c,u;if(typeof e!="string")throw $6("Expected `string` for value, got `%s`",e);for(l={relevance:0,language:null,value:[]},s={relevance:0,language:null,value:[]};++a<o;)u=i[a],om.getLanguage(u)&&(c=qZe(u,e,n),c.language=u,c.relevance>l.relevance&&(l=c),c.relevance>s.relevance&&(l=s,s=c));return l.language&&(s.secondBest=l),s}function _4n(e,n){om.registerLanguage(e,n)}function b4n(){return om.listLanguages()}function S4n(e,n){var r=e,i;n&&(r={},r[e]=n);for(i in r)om.registerAliases(r[i],{languageName:i})}function f_(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function E4n(e,n){this.openNode(n),this.addText(e),this.closeNode()}function C4n(e,n){var r=this.stack,i=r[r.length-1],o=e.rootNode.children,a=n?{type:"element",tagName:"span",properties:{className:[n]},children:o}:o;i.children=i.children.concat(a)}function w4n(e){var n=this.stack,r,i;e!==""&&(r=n[n.length-1],i=r.children[r.children.length-1],i&&i.type==="text"?i.value+=e:r.children.push({type:"text",value:e}))}function x4n(e){var n=this.stack,r=this.options.classPrefix+e,i=n[n.length-1],o={type:"element",tagName:"span",properties:{className:[r]},children:[]};i.children.push(o),n.push(o)}function T4n(){this.stack.pop()}function O4n(){return""}function KZe(){}var RK,oNe;function R4n(){if(oNe)return RK;oNe=1;function e(n){var r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее ",o="возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",a=i+o,s="загрузитьизфайла ",l="вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",c=s+l,u="разделительстраниц разделительстрок символтабуляции ",d="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",f="acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",p="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",h=u+d+f+p,g="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",v="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",y="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",_="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",S="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",b="отображениевремениэлементовпланировщика ",E="типфайлаформатированногодокумента ",w="обходрезультатазапроса типзаписизапроса ",C="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",x="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",T="типизмеренияпостроителязапроса ",R="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",O="wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ",M="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",P="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",k="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",$="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",U="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",z="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",D="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",B="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",Y="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",q=g+v+y+_+S+b+E+w+C+x+T+R+O+M+P+k+$+U+z+D+B+Y,K="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных ",H="comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",G=K+H,Q="null истина ложь неопределено",le=n.inherit(n.NUMBER_MODE),Z={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},j={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},F=n.inherit(n.C_LINE_COMMENT_MODE),te={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:r,"meta-keyword":a+c},contains:[F]},oe={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},de={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:r,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:r,keyword:"знач",literal:Q},contains:[le,Z,j]},F]},n.inherit(n.TITLE_MODE,{begin:r})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:r,keyword:a,built_in:h,class:q,type:G,literal:Q},contains:[te,de,F,oe,le,Z,j]}}return RK=e,RK}var IK,aNe;function I4n(){if(aNe)return IK;aNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={ruleDeclaration:/^[a-zA-Z][a-zA-Z0-9-]*/,unexpectedChars:/[!@#$^&',?+~`|:]/},a=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],s=i.COMMENT(/;/,/$/),l={className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},c={className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},u={className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},d={className:"symbol",begin:/%[si]/},f={className:"attribute",begin:n(o.ruleDeclaration,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:o.unexpectedChars,keywords:a,contains:[f,s,l,c,u,d,i.QUOTE_STRING_MODE,i.NUMBER_MODE]}}return IK=r,IK}var NK,sNe;function N4n(){if(sNe)return NK;sNe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(...o){return o.map(s=>e(s)).join("")}function r(...o){return"("+o.map(s=>e(s)).join("|")+")"}function i(o){const a=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:n(/"/,r(...a)),end:/"/,keywords:a,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return NK=i,NK}var MK,lNe;function M4n(){if(lNe)return MK;lNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o=/[a-zA-Z_$][a-zA-Z0-9_$]*/,a=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,s={className:"rest_arg",begin:/[.]{3}/,end:o,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},contains:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:/\{/,contains:[i.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},i.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[i.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,contains:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,s]},{begin:n(/:\s*/,a)}]},i.METHOD_GUARD],illegal:/#/}}return MK=r,MK}var PK,cNe;function P4n(){if(cNe)return PK;cNe=1;function e(n){const r="\\d(_|\\d)*",i="[eE][-+]?"+r,o=r+"(\\."+r+")?("+i+")?",a="\\w+",l="\\b("+(r+"#"+a+"(\\."+a+")?#("+i+")?")+"|"+o+")",c="[A-Za-z](_?[A-Za-z0-9.])*",u=`[]\\{\\}%#'"`,d=n.COMMENT("--","$"),f={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:u,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:c,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[d,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:l,relevance:0},{className:"symbol",begin:"'"+c},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:u},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[d,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:u},f,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:u}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:u},f]}}return PK=e,PK}var AK,uNe;function A4n(){if(uNe)return AK;uNe=1;function e(n){var r={className:"built_in",begin:"\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)"},i={className:"symbol",begin:"[a-zA-Z0-9_]+@"},o={className:"keyword",begin:"<",end:">",contains:[r,i]};return r.contains=[o],i.contains=[o],{name:"AngelScript",aliases:["asc"],keywords:"for in|0 break continue while do|0 return if else case switch namespace is cast or and xor not get|0 in inout|10 out override set|0 private public const default|0 final shared external mixin|10 enum typedef funcdef this super import from interface abstract|0 try catch protected explicit property",illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[n.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE],relevance:0},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},r,i,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return AK=e,AK}var DK,dNe;function D4n(){if(dNe)return DK;dNe=1;function e(n){const r={className:"number",begin:/[$%]\d+/},i={className:"number",begin:/\d+/},o={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},a={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[n.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[o,a,n.inherit(n.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",r]},o,i,n.QUOTE_STRING_MODE]}}],illegal:/\S/}}return DK=e,DK}var kK,fNe;function k4n(){if(fNe)return kK;fNe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(...o){return o.map(s=>e(s)).join("")}function r(...o){return"("+o.map(s=>e(s)).join("|")+")"}function i(o){const a=o.inherit(o.QUOTE_STRING_MODE,{illegal:null}),s={className:"params",begin:/\(/,end:/\)/,contains:["self",o.C_NUMBER_MODE,a]},l=o.COMMENT(/--/,/$/),c=o.COMMENT(/\(\*/,/\*\)/,{contains:["self",l]}),u=[l,c,o.HASH_COMMENT_MODE],d=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],f=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[a,o.C_NUMBER_MODE,{className:"built_in",begin:n(/\b/,r(...f),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:n(/\b/,r(...d),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[o.UNDERSCORE_TITLE_MODE,s]},...u],illegal:/\/\/|->|=>|\[\[/}}return kK=i,kK}var LK,pNe;function L4n(){if(pNe)return LK;pNe=1;function e(n){const r="[A-Za-z_][0-9A-Za-z_]*",i={keyword:"if for while var new function do return void else break",literal:"BackSlash DoubleQuote false ForwardSlash Infinity NaN NewLine null PI SingleQuote Tab TextFormatting true undefined",built_in:"Abs Acos Angle Attachments Area AreaGeodetic Asin Atan Atan2 Average Bearing Boolean Buffer BufferGeodetic Ceil Centroid Clip Console Constrain Contains Cos Count Crosses Cut Date DateAdd DateDiff Day Decode DefaultValue Dictionary Difference Disjoint Distance DistanceGeodetic Distinct DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetByAssociation FeatureSetById FeatureSetByPortalItem FeatureSetByRelationshipName FeatureSetByTitle FeatureSetByUrl Filter First Floor Geometry GroupBy Guid HasKey Hour IIf IndexOf Intersection Intersects IsEmpty IsNan IsSelfIntersecting Length LengthGeodetic Log Max Mean Millisecond Min Minute Month MultiPartToSinglePart Multipoint NextSequenceValue Now Number OrderBy Overlaps Point Polygon Polyline Portal Pow Random Relate Reverse RingIsClockWise Round Second SetGeometry Sin Sort Sqrt Stdev Sum SymmetricDifference Tan Text Timestamp Today ToLocal Top Touches ToUTC TrackCurrentTime TrackGeometryWindow TrackIndex TrackStartTime TrackWindow TypeOf Union UrlEncode Variance Weekday When Within Year "},o={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:n.C_NUMBER_RE}],relevance:0},s={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},l={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,s]};s.contains=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,l,a,n.REGEXP_MODE];const c=s.contains.concat([n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",keywords:i,contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,l,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,o,a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:r+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:r,relevance:0}]}]},{begin:"("+n.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+r+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:c}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[n.inherit(n.TITLE_MODE,{begin:r}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:c}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return LK=e,LK}var $K,hNe;function $4n(){if(hNe)return $K;hNe=1;function e(s){return s?typeof s=="string"?s:s.source:null}function n(s){return i("(?=",s,")")}function r(s){return i("(",s,")?")}function i(...s){return s.map(c=>e(c)).join("")}function o(s){const l=s.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),c="decltype\\(auto\\)",u="[a-zA-Z_]\\w*::",f="("+c+"|"+r(u)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",p={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},g={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[s.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},s.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},v={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},s.inherit(g,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},l,s.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:r(u)+s.IDENT_RE,relevance:0},S=r(u)+s.IDENT_RE+"\\s*\\(",E={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},w={className:"function.dispatch",relevance:0,keywords:E,begin:i(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,s.IDENT_RE,n(/\s*\(/))},C=[w,y,p,l,s.C_BLOCK_COMMENT_MODE,v,g],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:C.concat([{begin:/\(/,end:/\)/,keywords:E,contains:C.concat(["self"]),relevance:0}]),relevance:0},T={className:"function",begin:"("+f+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:c,keywords:E,relevance:0},{begin:S,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[g,v]},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[l,s.C_BLOCK_COMMENT_MODE,g,v,p,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",l,s.C_BLOCK_COMMENT_MODE,g,v,p]}]},p,l,s.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:E,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(x,T,w,C,[y,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:E,contains:["self",p]},{begin:s.IDENT_RE+"::",keywords:E},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},s.TITLE_MODE]}]),exports:{preprocessor:y,strings:g,keywords:E}}}function a(s){const l={keyword:"boolean byte word String",built_in:"KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD ",_:"setup loop runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",literal:"DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW"},c=o(s),u=c.keywords;return u.keyword+=" "+l.keyword,u.literal+=" "+l.literal,u.built_in+=" "+l.built_in,u._+=" "+l._,c.name="Arduino",c.aliases=["ino"],c.supersetOf="cpp",c}return $K=a,$K}var FK,gNe;function F4n(){if(gNe)return FK;gNe=1;function e(n){const r={variants:[n.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),n.COMMENT("[;@]","$",{relevance:0}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+n.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},r,n.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return FK=e,FK}var BK,mNe;function B4n(){if(mNe)return BK;mNe=1;function e(s){return s?typeof s=="string"?s:s.source:null}function n(s){return i("(?=",s,")")}function r(s){return i("(",s,")?")}function i(...s){return s.map(c=>e(c)).join("")}function o(...s){return"("+s.map(c=>e(c)).join("|")+")"}function a(s){const l=i(/[A-Z_]/,r(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),c=/[A-Za-z0-9._:-]+/,u={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},d={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},f=s.inherit(d,{begin:/\(/,end:/\)/}),p=s.inherit(s.APOS_STRING_MODE,{className:"meta-string"}),h=s.inherit(s.QUOTE_STRING_MODE,{className:"meta-string"}),g={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:c,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[u]},{begin:/'/,end:/'/,contains:[u]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[d,h,p,f,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[d,f,h,p]}]}]},s.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},u,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[g],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[g],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i(/</,n(i(l,o(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:g}]},{className:"tag",begin:i(/<\//,n(i(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return BK=a,BK}var jK,vNe;function j4n(){if(vNe)return jK;vNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={begin:"^'{3,}[ \\t]*$",relevance:10},a=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],s=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:n(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],l=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:n(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],c={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},u={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[i.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),i.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},u,c,...a,...s,...l,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},o,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return jK=r,jK}var UK,yNe;function U4n(){if(yNe)return UK;yNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",a="get set args call";return{name:"AspectJ",keywords:o,illegal:/<\/|#/,contains:[i.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},i.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:o+" "+a,excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},i.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:n(i.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[i.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:o,illegal:/["\[\]]/,contains:[{begin:n(i.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:o+" "+a,relevance:0},i.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:o,excludeEnd:!0,contains:[{begin:n(i.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[i.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:o,contains:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,i.C_NUMBER_MODE,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},i.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return UK=r,UK}var HK,_Ne;function H4n(){if(_Ne)return HK;_Ne=1;function e(n){const r={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[r,n.inherit(n.QUOTE_STRING_MODE,{contains:[r]}),n.COMMENT(";","$",{relevance:0}),n.C_BLOCK_COMMENT_MODE,{className:"number",begin:n.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return HK=e,HK}var zK,bNe;function z4n(){if(bNe)return zK;bNe=1;function e(n){const r="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",i=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],o="True False And Null Not Or Default",a="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",s={variants:[n.COMMENT(";","$",{relevance:0}),n.COMMENT("#cs","#ce"),n.COMMENT("#comments-start","#comments-end")]},l={begin:"\\$[A-z0-9_]+"},c={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},u={variants:[n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE]},d={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":i},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[c,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},c,s]},f={className:"symbol",begin:"@[A-z0-9_]+"},p={className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[n.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[l,c,u]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:r,built_in:a,literal:o},contains:[s,l,c,u,d,f,p]}}return zK=e,zK}var VK,SNe;function V4n(){if(SNe)return VK;SNe=1;function e(n){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+n.IDENT_RE,keyword:"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 eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[n.C_BLOCK_COMMENT_MODE,n.COMMENT(";","$",{relevance:0}),n.C_NUMBER_MODE,n.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},n.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return VK=e,VK}var GK,ENe;function G4n(){if(ENe)return GK;ENe=1;function e(n){const r={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",o={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:i},contains:[r,o,n.REGEXP_MODE,n.HASH_COMMENT_MODE,n.NUMBER_MODE]}}return GK=e,GK}var WK,CNe;function W4n(){if(CNe)return WK;CNe=1;function e(n){return{name:"X++",aliases:["x++"],keywords:{keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]}]}}return WK=e,WK}var YK,wNe;function Y4n(){if(wNe)return YK;wNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={},a={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[o]}]};Object.assign(o,{className:"variable",variants:[{begin:n(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[i.BACKSLASH_ESCAPE]},l={begin:/<<-?\s*(?=\w+)/,starts:{contains:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,o,s]};s.contains.push(c);const u={className:"",begin:/\\"/},d={className:"string",begin:/'/,end:/'/},f={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},i.NUMBER_MODE,o]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],h=i.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[i.inherit(i.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[h,i.SHEBANG(),g,f,i.HASH_COMMENT_MODE,l,c,u,d,o]}}return YK=r,YK}var qK,xNe;function q4n(){if(xNe)return qK;xNe=1;function e(n){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:"ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"},contains:[n.QUOTE_STRING_MODE,n.COMMENT("REM","$",{relevance:10}),n.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return qK=e,qK}var KK,TNe;function K4n(){if(TNe)return KK;TNe=1;function e(n){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]}]}}return KK=e,KK}var XK,ONe;function X4n(){if(ONe)return XK;ONe=1;function e(n){const r={className:"literal",begin:/[+-]/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[n.COMMENT(`[^\\[\\]\\.,\\+\\-<> \r
|
||
]`,`[\\[\\]\\.,\\+\\-<> \r
|
||
]`,{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|--)/,contains:[r]},r]}}return XK=e,XK}var QK,RNe;function Q4n(){if(RNe)return QK;RNe=1;function e(s){return s?typeof s=="string"?s:s.source:null}function n(s){return i("(?=",s,")")}function r(s){return i("(",s,")?")}function i(...s){return s.map(c=>e(c)).join("")}function o(s){const l=s.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),c="decltype\\(auto\\)",u="[a-zA-Z_]\\w*::",f="("+c+"|"+r(u)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",p={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},g={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[s.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},s.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},v={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},s.inherit(g,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},l,s.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:r(u)+s.IDENT_RE,relevance:0},S=r(u)+s.IDENT_RE+"\\s*\\(",E={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},w={className:"function.dispatch",relevance:0,keywords:E,begin:i(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,s.IDENT_RE,n(/\s*\(/))},C=[w,y,p,l,s.C_BLOCK_COMMENT_MODE,v,g],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:C.concat([{begin:/\(/,end:/\)/,keywords:E,contains:C.concat(["self"]),relevance:0}]),relevance:0},T={className:"function",begin:"("+f+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:c,keywords:E,relevance:0},{begin:S,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[g,v]},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[l,s.C_BLOCK_COMMENT_MODE,g,v,p,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",l,s.C_BLOCK_COMMENT_MODE,g,v,p]}]},p,l,s.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:E,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(x,T,w,C,[y,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:E,contains:["self",p]},{begin:s.IDENT_RE+"::",keywords:E},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},s.TITLE_MODE]}]),exports:{preprocessor:y,strings:g,keywords:E}}}function a(s){const l=o(s),c=["c","h"],u=["cc","c++","h++","hpp","hh","hxx","cxx"];return l.disableAutodetect=!0,l.aliases=[],s.getLanguage("c")||l.aliases.push(...c),s.getLanguage("cpp")||l.aliases.push(...u),l}return QK=a,QK}var ZK,INe;function Z4n(){if(INe)return ZK;INe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(",o,")?")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const a=o.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",l="[a-zA-Z_]\\w*::",u="("+s+"|"+n(l)+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",d={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[o.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},o.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},o.inherit(p,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},a,o.C_BLOCK_COMMENT_MODE]},v={className:"title",begin:n(l)+o.IDENT_RE,relevance:0},y=n(l)+o.IDENT_RE+"\\s*\\(",_={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},S=[g,d,a,o.C_BLOCK_COMMENT_MODE,h,p],b={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:S.concat([{begin:/\(/,end:/\)/,keywords:_,contains:S.concat(["self"]),relevance:0}]),relevance:0},E={className:"function",begin:"("+u+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:_,relevance:0},{begin:y,returnBegin:!0,contains:[v],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[a,o.C_BLOCK_COMMENT_MODE,p,h,d,{begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:["self",a,o.C_BLOCK_COMMENT_MODE,p,h,d]}]},d,a,o.C_BLOCK_COMMENT_MODE,g]};return{name:"C",aliases:["h"],keywords:_,disableAutodetect:!0,illegal:"</",contains:[].concat(b,E,S,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:_,contains:["self",d]},{begin:o.IDENT_RE+"::",keywords:_},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},o.TITLE_MODE]}]),exports:{preprocessor:g,strings:p,keywords:_}}}return ZK=i,ZK}var JK,NNe;function J4n(){if(NNe)return JK;NNe=1;function e(n){const r="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",i="false true",o=[n.C_LINE_COMMENT_MODE,n.COMMENT(/\{/,/\}/,{relevance:0}),n.COMMENT(/\(\*/,/\*\)/,{relevance:10})],a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",begin:/(#\d+)+/},l={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},c={className:"string",begin:'"',end:'"'},u={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[n.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[a,s]}].concat(o)},d={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[n.TITLE_MODE,u]};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:r,literal:i},illegal:/\/\*/,contains:[a,s,l,c,n.NUMBER_MODE,d,u]}}return JK=e,JK}var eX,MNe;function e5n(){if(MNe)return eX;MNe=1;function e(n){return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},contains:[n.QUOTE_STRING_MODE,n.NUMBER_MODE,n.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[n.inherit(n.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[n.inherit(n.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}return eX=e,eX}var tX,PNe;function t5n(){if(PNe)return tX;PNe=1;function e(n){const r="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",i="shared abstract formal default actual variable late native deprecated final sealed annotation suppressWarnings small",o="doc by license see throws tagged",a={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:r,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[a]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return a.contains=s,{name:"Ceylon",keywords:{keyword:r+" "+i,meta:o},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[n.C_LINE_COMMENT_MODE,n.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(s)}}return tX=e,tX}var nX,ANe;function n5n(){if(ANe)return nX;ANe=1;function e(n){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:"if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",built_in:"Int Real Char Bool",literal:"True False"},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return nX=e,nX}var rX,DNe;function r5n(){if(DNe)return rX;DNe=1;function e(n){const r="a-zA-Z_\\-!.?+*=<>&#'",i="["+r+"]["+r+"0-9/;:]*",o="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",a={$pattern:i,"builtin-name":o+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},s="[-+]?\\d+(\\.\\d+)?",l={begin:i,relevance:0},c={className:"number",begin:s,relevance:0},u=n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),d=n.COMMENT(";","$",{relevance:0}),f={className:"literal",begin:/\b(true|false|nil)\b/},p={begin:"[\\[\\{]",end:"[\\]\\}]"},h={className:"comment",begin:"\\^"+i},g=n.COMMENT("\\^\\{","\\}"),v={className:"symbol",begin:"[:]{1,2}"+i},y={begin:"\\(",end:"\\)"},_={endsWithParent:!0,relevance:0},S={keywords:a,className:"name",begin:i,relevance:0,starts:_},b=[y,u,h,g,d,v,p,c,f,l],E={beginKeywords:o,lexemes:i,end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:i,relevance:0,excludeEnd:!0,endsParent:!0}].concat(b)};return y.contains=[n.COMMENT("comment",""),E,S,_],_.contains=b,p.contains=b,g.contains=[p],{name:"Clojure",aliases:["clj"],illegal:/\S/,contains:[y,u,h,g,d,v,p,c,f]}}return rX=e,rX}var iX,kNe;function i5n(){if(kNe)return iX;kNe=1;function e(n){return{name:"Clojure REPL",contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return iX=e,iX}var oX,LNe;function o5n(){if(LNe)return oX;LNe=1;function e(n){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while 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 build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group 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 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 build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},n.HASH_COMMENT_MODE,n.QUOTE_STRING_MODE,n.NUMBER_MODE]}}return oX=e,oX}var aX,$Ne;function a5n(){if($Ne)return aX;$Ne=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],i=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=["arguments","this","super","console","window","document","localStorage","module","global"],s=[].concat(o,a,r,i);function l(c){const u=["npm","print"],d=["yes","no","on","off"],f=["then","unless","until","loop","by","when","and","or","is","isnt","not"],p=["var","const","let","function","static"],h=w=>C=>!w.includes(C),g={keyword:e.concat(f).filter(h(p)),literal:n.concat(d),built_in:s.concat(u)},v="[A-Za-z$_][0-9A-Za-z$_]*",y={className:"subst",begin:/#\{/,end:/\}/,keywords:g},_=[c.BINARY_NUMBER_MODE,c.inherit(c.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[c.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[c.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[c.BACKSLASH_ESCAPE,y]},{begin:/"/,end:/"/,contains:[c.BACKSLASH_ESCAPE,y]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[y,c.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+v},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];y.contains=_;const S=c.inherit(c.TITLE_MODE,{begin:v}),b="(\\(.*\\)\\s*)?\\B[-=]>",E={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:g,contains:["self"].concat(_)}]};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:g,illegal:/\/\*/,contains:_.concat([c.COMMENT("###","###"),c.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+v+"\\s*=\\s*"+b,end:"[-=]>",returnBegin:!0,contains:[S,E]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:b,end:"[-=]>",returnBegin:!0,contains:[E]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[S]},S]},{begin:v+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return aX=l,aX}var sX,FNe;function s5n(){if(FNe)return sX;FNe=1;function e(n){return{name:"Coq",keywords:{keyword:"_|0 as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies Dependent Derive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",built_in:"abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"},contains:[n.QUOTE_STRING_MODE,n.COMMENT("\\(\\*","\\*\\)"),n.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return sX=e,sX}var lX,BNe;function l5n(){if(BNe)return lX;BNe=1;function e(n){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}return lX=e,lX}var cX,jNe;function c5n(){if(jNe)return cX;jNe=1;function e(a){return a?typeof a=="string"?a:a.source:null}function n(a){return i("(?=",a,")")}function r(a){return i("(",a,")?")}function i(...a){return a.map(l=>e(l)).join("")}function o(a){const s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",c="[a-zA-Z_]\\w*::",d="("+l+"|"+r(c)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",f={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},g={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},v={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(h,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:r(c)+a.IDENT_RE,relevance:0},_=r(c)+a.IDENT_RE+"\\s*\\(",b={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},E={className:"function.dispatch",relevance:0,keywords:b,begin:i(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,a.IDENT_RE,n(/\s*\(/))},w=[E,v,f,s,a.C_BLOCK_COMMENT_MODE,g,h],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:w.concat([{begin:/\(/,end:/\)/,keywords:b,contains:w.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:b,relevance:0},{begin:_,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,g]},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,h,g,f,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,h,g,f]}]},f,s,a.C_BLOCK_COMMENT_MODE,v]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:b,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(C,x,E,w,[v,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:b,contains:["self",f]},{begin:a.IDENT_RE+"::",keywords:b},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:v,strings:h,keywords:b}}}return cX=o,cX}var uX,UNe;function u5n(){if(UNe)return uX;UNe=1;function e(n){const r="primitive rsc_template",i="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[n.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:r,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+i.split(" ").join("|")+")\\s+",keywords:i,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},n.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}return uX=e,uX}var dX,HNe;function d5n(){if(HNe)return dX;HNe=1;function e(n){const r="(_?[ui](8|16|32|64|128))?",i="(_?f(32|64))?",o="[a-zA-Z_]\\w*[!?=]?",a="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",l={$pattern:o,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},c={className:"subst",begin:/#\{/,end:/\}/,keywords:l},u={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:l};function d(_,S){const b=[{begin:_,end:S}];return b[0].contains=b,b}const f={className:"string",contains:[n.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:d("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},p={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%q<",end:">",contains:d("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},h={begin:"(?!%\\})("+n.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[n.BACKSLASH_ESCAPE,c],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},g={className:"regexp",contains:[n.BACKSLASH_ESCAPE,c],variants:[{begin:"%r\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%r<",end:">",contains:d("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},v={className:"meta",begin:"@\\[",end:"\\]",contains:[n.inherit(n.QUOTE_STRING_MODE,{className:"meta-string"})]},y=[u,f,p,g,h,v,n.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[n.HASH_COMMENT_MODE,n.inherit(n.TITLE_MODE,{begin:s}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[n.HASH_COMMENT_MODE,n.inherit(n.TITLE_MODE,{begin:s})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[n.HASH_COMMENT_MODE,n.inherit(n.TITLE_MODE,{begin:s})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[n.inherit(n.TITLE_MODE,{begin:a,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[n.inherit(n.TITLE_MODE,{begin:a,endsParent:!0})],relevance:2},{className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[f,{begin:a}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+i+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+r}],relevance:0}];return c.contains=y,u.contains=y.slice(1),{name:"Crystal",aliases:["cr"],keywords:l,contains:y}}return dX=e,dX}var fX,zNe;function f5n(){if(zNe)return fX;zNe=1;function e(n){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],i=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],o=["default","false","null","true"],a=["abstract","as","base","break","case","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],l={keyword:a.concat(s),built_in:r,literal:o},c=n.inherit(n.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=n.inherit(d,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:l},h=n.inherit(p,{illegal:/\n/}),g={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},n.BACKSLASH_ESCAPE,h]},v={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},y=n.inherit(v,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]});p.contains=[v,g,d,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,u,n.C_BLOCK_COMMENT_MODE],h.contains=[y,g,f,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,u,n.inherit(n.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const _={variants:[v,g,d,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},S={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},b=n.IDENT_RE+"(<"+n.IDENT_RE+"(\\s*,\\s*"+n.IDENT_RE+")*>)?(\\[\\])?",E={begin:"@"+n.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:l,illegal:/::/,contains:[n.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},_,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,S,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,S,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+b+"\\s+)+"+n.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:l,contains:[{beginKeywords:i.join(" "),relevance:0},{begin:n.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,contains:[n.TITLE_MODE,S],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,relevance:0,contains:[_,u,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},E]}}return fX=e,fX}var pX,VNe;function p5n(){if(VNe)return pX;VNe=1;function e(n){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return pX=e,pX}var hX,GNe;function h5n(){if(GNe)return hX;GNe=1;const e=d=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],a=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function s(d){return d?typeof d=="string"?d:d.source:null}function l(d){return c("(?=",d,")")}function c(...d){return d.map(p=>s(p)).join("")}function u(d){const f=e(d),p={className:"built_in",begin:/[\w-]+(?=\()/},h={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},g="and or not only",v=/@-?\w[\w]*(-\w+)*/,y="[a-zA-Z-][a-zA-Z0-9_-]*",_=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[d.C_BLOCK_COMMENT_MODE,h,d.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+y,relevance:0},f.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:"::("+o.join("|")+")"}]},{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:":",end:"[;}]",contains:[f.HEXCOLOR,f.IMPORTANT,d.CSS_NUMBER_MODE,..._,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},p]},{begin:l(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:v},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},..._,d.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b"}]}}return hX=u,hX}var gX,WNe;function g5n(){if(WNe)return gX;WNe=1;function e(n){const r={$pattern:n.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},i="(0|[1-9][\\d_]*)",o="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",a="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",l="0[xX]"+s,c="([eE][+-]?"+o+")",u="("+o+"(\\.\\d*|"+c+")|\\d+\\."+o+"|\\."+i+c+"?)",d="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+o+")",f="("+i+"|"+a+"|"+l+")",p="("+d+"|"+u+")",h=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,g={className:"number",begin:"\\b"+f+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},v={className:"number",begin:"\\b("+p+"([fF]|L|i|[fF]i|Li)?|"+f+"(i|[fF]i|Li))",relevance:0},y={className:"string",begin:"'("+h+"|.)",end:"'",illegal:"."},S={className:"string",begin:'"',contains:[{begin:h,relevance:0}],end:'"[cwd]?'},b={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},E={className:"string",begin:"`",end:"`[cwd]?"},w={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},x={className:"meta",begin:"^#!",end:"$",relevance:5},T={className:"meta",begin:"#(line)",end:"$",relevance:5},R={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},O=n.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:r,contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,O,w,S,b,E,C,v,g,y,x,T,R]}}return gX=e,gX}var mX,YNe;function m5n(){if(YNe)return mX;YNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},a={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},l={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},c={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.+?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},f={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},p={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};f.contains.push(p),p.contains.push(f);let h=[o,d];return f.contains=f.contains.concat(h),p.contains=p.contains.concat(h),h=h.concat(f,p),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},o,l,f,p,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},s,a,d,c]}}return mX=r,mX}var vX,qNe;function v5n(){if(qNe)return vX;qNe=1;function e(n){const r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},i={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},o={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[n.BACKSLASH_ESCAPE,r,i]},{begin:'"""',end:'"""',contains:[n.BACKSLASH_ESCAPE,r,i]},{begin:"'",end:"'",illegal:"\\n",contains:[n.BACKSLASH_ESCAPE,r,i]},{begin:'"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE,r,i]}]};i.contains=[n.C_NUMBER_MODE,o];const a=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],s=a.map(c=>`${c}?`);return{name:"Dart",keywords:{keyword:"abstract as assert async await break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory false final finally for Function get hide if implements import in inferface is late library mixin new null on operator part required rethrow return set show static super switch sync this throw true try typedef var void while with yield",built_in:a.concat(s).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[o,n.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),n.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},n.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return vX=e,vX}var yX,KNe;function y5n(){if(KNe)return yX;KNe=1;function e(n){const r="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",i=[n.C_LINE_COMMENT_MODE,n.COMMENT(/\{/,/\}/,{relevance:0}),n.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},l={className:"string",begin:/(#\d+)+/},c={begin:n.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[n.TITLE_MODE]},u={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[n.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[a,l,o].concat(i)},o].concat(i)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:r,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[a,l,n.NUMBER_MODE,s,c,u,o].concat(i)}}return yX=e,yX}var _X,XNe;function _5n(){if(XNe)return _X;XNe=1;function e(n){return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^--- +\d+,\d+ +----$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/^index/,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/},{begin:/^diff --git/,end:/$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return _X=e,_X}var bX,QNe;function b5n(){if(QNe)return bX;QNe=1;function e(n){const r={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[n.QUOTE_STRING_MODE,n.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[n.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),n.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[r],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[r]}]}}return bX=e,bX}var SX,ZNe;function S5n(){if(ZNe)return SX;ZNe=1;function e(n){return{name:"DNS Zone",aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[n.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},n.inherit(n.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return SX=e,SX}var EX,JNe;function E5n(){if(JNe)return EX;JNe=1;function e(n){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env arg user onbuild stopsignal",contains:[n.HASH_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}return EX=e,EX}var CX,eMe;function C5n(){if(eMe)return CX;eMe=1;function e(n){const r=n.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",built_in:"prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux shift cd dir echo setlocal endlocal set pause copy append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shift sort start subst time title tree type ver verify vol ping net ipconfig taskkill xcopy ren del"},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:{className:"symbol",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",relevance:0}.begin,end:"goto:eof",contains:[n.inherit(n.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),r]},{className:"number",begin:"\\b\\d+",relevance:0},r]}}return CX=e,CX}var wX,tMe;function w5n(){if(tMe)return wX;tMe=1;function e(n){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},n.HASH_COMMENT_MODE]}}return wX=e,wX}var xX,nMe;function x5n(){if(nMe)return xX;nMe=1;function e(n){const r={className:"string",variants:[n.inherit(n.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[n.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},i={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:n.C_NUMBER_RE}],relevance:0},o={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[n.inherit(r,{className:"meta-string"}),{className:"meta-string",begin:"<",end:">",illegal:"\\n"}]},r,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},a={className:"variable",begin:/&[a-z\d_]*\b/},s={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},l={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},c={className:"params",begin:"<",end:">",contains:[i,a]},u={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s\{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0};return{name:"Device Tree",keywords:"",contains:[{className:"class",begin:"/\\s*\\{",end:/\};/,relevance:10,contains:[a,s,l,u,c,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,i,r]},a,s,l,u,c,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,i,r,o,{begin:n.IDENT_RE+"::",keywords:""}]}}return xX=e,xX}var TX,rMe;function T5n(){if(rMe)return TX;rMe=1;function e(n){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[n.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return TX=e,TX}var OX,iMe;function O5n(){if(iMe)return OX;iMe=1;function e(n){const r=n.COMMENT(/\(\*/,/\*\)/),i={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},a={begin:/=/,end:/[.;]/,contains:[r,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[r,i,a]}}return OX=e,OX}var RX,oMe;function R5n(){if(oMe)return RX;oMe=1;function e(n){const r="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",o={$pattern:r,keyword:"and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote require import with|0"},a={className:"subst",begin:/#\{/,end:/\}/,keywords:o},s={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[1-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},l=`[/|([{<"']`,c={className:"string",begin:"~[a-z](?="+l+")",contains:[{endsParent:!0,contains:[{contains:[n.BACKSLASH_ESCAPE,a],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]}]}]},u={className:"string",begin:"~[A-Z](?="+l+")",contains:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]},d={className:"string",contains:[n.BACKSLASH_ESCAPE,a],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},f={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[n.inherit(n.TITLE_MODE,{begin:r,endsParent:!0})]},p=n.inherit(f,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),h=[d,u,c,n.HASH_COMMENT_MODE,p,f,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[d,{begin:i}],relevance:0},{className:"symbol",begin:r+":(?!:)",relevance:0},s,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"},{begin:"->"},{begin:"("+n.RE_STARTERS_RE+")\\s*",contains:[n.HASH_COMMENT_MODE,{begin:/\/: (?=\d+\s*[,\]])/,relevance:0,contains:[s]},{className:"regexp",illegal:"\\n",contains:[n.BACKSLASH_ESCAPE,a],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return a.contains=h,{name:"Elixir",keywords:o,contains:h}}return RX=e,RX}var IX,aMe;function I5n(){if(aMe)return IX;aMe=1;function e(n){const r={variants:[n.COMMENT("--","$"),n.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},o={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},r]},a={begin:/\{/,end:/\}/,contains:o.contains},s={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[o,r],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[o,r],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[i,o,a,r]},{beginKeywords:"infix infixl infixr",end:"$",contains:[n.C_NUMBER_MODE,r]},{begin:"port",end:"$",keywords:"port",contains:[r]},s,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,i,n.inherit(n.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),r,{begin:"->|<-"}],illegal:/;/}}return IX=e,IX}var NX,sMe;function N5n(){if(sMe)return NX;sMe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(?=",o,")")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__",built_in:"proc lambda",literal:"true false nil"},l={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},u=[o.COMMENT("#","$",{contains:[l]}),o.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),o.COMMENT("^__END__","\\n$")],d={className:"subst",begin:/#\{/,end:/\}/,keywords:s},f={className:"string",contains:[o.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:/<<[-~]?'?(\w+)\n(?:[^\n]*\n)*?\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},o.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[o.BACKSLASH_ESCAPE,d]})]}]},p="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},v={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:s},y=[f,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[o.inherit(o.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{begin:"("+o.IDENT_RE+"::)?"+o.IDENT_RE,relevance:0}]}].concat(u)},{className:"function",begin:r(/def\s+/,n(a+"\\s*(\\(|;|$)")),relevance:0,keywords:"def",end:"$|;",contains:[o.inherit(o.TITLE_MODE,{begin:a}),v].concat(u)},{begin:o.IDENT_RE+"::"},{className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:a}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:s},{begin:"("+o.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[o.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,u),relevance:0}].concat(c,u);d.contains=y,v.contains=y;const E=[{begin:/^\s*=>/,starts:{end:"$",contains:y}},{className:"meta",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+>"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",contains:y}}];return u.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/,contains:[o.SHEBANG({binary:"ruby"})].concat(E).concat(u).concat(y)}}return NX=i,NX}var MX,lMe;function M5n(){if(lMe)return MX;lMe=1;function e(n){return{name:"ERB",subLanguage:"xml",contains:[n.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return MX=e,MX}var PX,cMe;function P5n(){if(cMe)return PX;cMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},i.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{begin:n(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return PX=r,PX}var AX,uMe;function A5n(){if(uMe)return AX;uMe=1;function e(n){const r="[a-z'][a-zA-Z0-9_']*",i="("+r+":"+r+"|"+r+")",o={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},a=n.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},l={begin:"fun\\s+"+r+"/\\d+"},c={begin:i+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:i,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},u={begin:/\{/,end:/\}/,relevance:0},d={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},f={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},p={begin:"#"+n.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+n.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={beginKeywords:"fun receive if try case",end:"end",keywords:o};h.contains=[a,l,n.inherit(n.APOS_STRING_MODE,{className:""}),h,c,n.QUOTE_STRING_MODE,s,u,d,f,p];const g=[a,l,h,c,n.QUOTE_STRING_MODE,s,u,d,f,p];c.contains[1].contains=g,u.contains=g,p.contains[1].contains=g;const v=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],y={className:"params",begin:"\\(",end:"\\)",contains:g};return{name:"Erlang",aliases:["erl"],keywords:o,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+r+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[y,n.inherit(n.TITLE_MODE,{begin:r})],starts:{end:";|\\.",keywords:o,contains:g}},a,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+n.IDENT_RE,keyword:v.map(_=>`${_}|1.5`).join(" ")},contains:[y]},s,n.QUOTE_STRING_MODE,p,d,f,u,{begin:/\.$/}]}}return AX=e,AX}var DX,dMe;function D5n(){if(dMe)return DX;dMe=1;function e(n){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:"ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},n.BACKSLASH_ESCAPE,n.QUOTE_STRING_MODE,{className:"number",begin:n.NUMBER_RE+"(%)?",relevance:0},n.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return DX=e,DX}var kX,fMe;function k5n(){if(fMe)return kX;fMe=1;function e(n){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return kX=e,kX}var LX,pMe;function L5n(){if(pMe)return LX;pMe=1;function e(n){const r={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},i={className:"string",variants:[{begin:'"',end:'"'}]},a={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{literal:"true false",keyword:"case class def else enum if impl import in lat rel index let match namespace switch type yield with"},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,r,i,a,n.C_NUMBER_MODE]}}return LX=e,LX}var $X,hMe;function $5n(){if(hMe)return $X;hMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={className:"params",begin:"\\(",end:"\\)"},a={variants:[i.COMMENT("!","$",{relevance:0}),i.COMMENT("^C[ ]","$",{relevance:0}),i.COMMENT("^C$","$",{relevance:0})]},s=/(_[a-z_\d]+)?/,l=/([de][+-]?\d+)?/,c={className:"number",variants:[{begin:n(/\b\d+/,/\.(\d*)/,l,s)},{begin:n(/\b\d+/,l,s)},{begin:n(/\.\d+/,l,s)}],relevance:0},u={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[i.UNDERSCORE_TITLE_MODE,o]},d={className:"string",relevance:0,variants:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{literal:".False. .True.",keyword:"kind do concurrent local shared while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then block endblock endassociate public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure impure integer real character complex logical codimension dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image sync change team co_broadcast co_max co_min co_sum co_reduce"},illegal:/\/\*/,contains:[d,u,{begin:/^C\s*=(?!=)/,relevance:0},a,c]}}return $X=r,$X}var FX,gMe;function F5n(){if(gMe)return FX;gMe=1;function e(n){const r={begin:"<",end:">",contains:[n.inherit(n.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{name:"F#",aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},n.COMMENT("\\(\\*(\\s)","\\*\\)",{contains:["self"]}),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[n.UNDERSCORE_TITLE_MODE,r]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[n.BACKSLASH_ESCAPE]},n.C_LINE_COMMENT_MODE,n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),n.C_NUMBER_MODE]}}return FX=e,FX}var BX,mMe;function B5n(){if(mMe)return BX;mMe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(",o,")*")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const a={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},s={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},l={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},c={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[o.BACKSLASH_ESCAPE]},u={begin:"/",end:"/",keywords:a,contains:[c,o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.QUOTE_STRING_MODE,o.APOS_STRING_MODE,o.C_NUMBER_MODE]},d=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,f={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[c,u,{className:"comment",begin:r(d,n(r(/[ ]+/,d))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:a,contains:[o.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},o.COMMENT("^\\*","$"),o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.QUOTE_STRING_MODE,o.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[o.COMMENT("^\\*","$"),o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.QUOTE_STRING_MODE,o.APOS_STRING_MODE,u,f]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[f]},o.COMMENT("^\\*","$"),o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.QUOTE_STRING_MODE,o.APOS_STRING_MODE,o.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},s,l]},o.C_NUMBER_MODE,l]}}return BX=i,BX}var jX,vMe;function j5n(){if(vMe)return jX;vMe=1;function e(n){const r={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},i=n.COMMENT("@","@"),o={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,i]},a={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:n.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,i,a]}],l={className:"title",begin:n.UNDERSCORE_IDENT_RE,relevance:0},c=function(h,g,v){const y=n.inherit({className:"function",beginKeywords:h,end:g,excludeEnd:!0,contains:[].concat(s)},{});return y.contains.push(l),y.contains.push(n.C_NUMBER_MODE),y.contains.push(n.C_BLOCK_COMMENT_MODE),y.contains.push(i),y},u={className:"built_in",begin:"\\b("+r.built_in.split(" ").join("|")+")\\b"},d={className:"string",begin:'"',end:'"',contains:[n.BACKSLASH_ESCAPE],relevance:0},f={begin:n.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:r,relevance:0,contains:[{beginKeywords:r.keyword},u,{className:"built_in",begin:n.UNDERSCORE_IDENT_RE,relevance:0}]},p={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:r.built_in,literal:r.literal},contains:[n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,i,u,f,d,"self"]};return f.contains.push(p),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:r,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[n.C_NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,i,d,o,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},c("proc keyword",";"),c("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[n.C_BLOCK_COMMENT_MODE,i,p]},{variants:[{begin:n.UNDERSCORE_IDENT_RE+"\\."+n.UNDERSCORE_IDENT_RE},{begin:n.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},f,a]}}return jX=e,jX}var UX,yMe;function U5n(){if(yMe)return UX;yMe=1;function e(n){const r="[A-Z_][A-Z0-9_.]*",i="%",o={$pattern:r,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},a={className:"meta",begin:"([O])([0-9]+)"},s=n.inherit(n.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+n.C_NUMBER_RE}),l=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.COMMENT(/\(/,/\)/),s,n.inherit(n.APOS_STRING_MODE,{illegal:null}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[s],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:o,contains:[{className:"meta",begin:i},a].concat(l)}}return UX=e,UX}var HX,_Me;function H5n(){if(_Me)return HX;_Me=1;function e(n){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},n.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},n.QUOTE_STRING_MODE]}}return HX=e,HX}var zX,bMe;function z5n(){if(bMe)return zX;bMe=1;function e(n){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return zX=e,zX}var VX,SMe;function V5n(){if(SMe)return VX;SMe=1;function e(n){return{name:"GML",case_insensitive:!1,keywords:{keyword:"begin end if then else while do for break continue with until repeat exit and or xor not return mod div switch case default var globalvar enum function constructor delete #macro #region #endregion",built_in:"is_real is_string is_array is_undefined is_int32 is_int64 is_ptr is_vec3 is_vec4 is_matrix is_bool is_method is_struct is_infinity is_nan is_numeric typeof variable_global_exists variable_global_get variable_global_set variable_instance_exists variable_instance_get variable_instance_set variable_instance_get_names variable_struct_exists variable_struct_get variable_struct_get_names variable_struct_names_count variable_struct_remove variable_struct_set array_delete array_insert array_length array_length_1d array_length_2d array_height_2d array_equals array_create array_copy array_pop array_push array_resize array_sort random random_range irandom irandom_range random_set_seed random_get_seed randomize randomise choose abs round floor ceil sign frac sqrt sqr exp ln log2 log10 sin cos tan arcsin arccos arctan arctan2 dsin dcos dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn min max mean median clamp lerp dot_product dot_product_3d dot_product_normalised dot_product_3d_normalised dot_product_normalized dot_product_3d_normalized math_set_epsilon math_get_epsilon angle_difference point_distance_3d point_distance point_direction lengthdir_x lengthdir_y real string int64 ptr string_format chr ansi_char ord string_length string_byte_length string_pos string_copy string_char_at string_ord_at string_byte_at string_set_byte_at string_delete string_insert string_lower string_upper string_repeat string_letters string_digits string_lettersdigits string_replace string_replace_all string_count string_hash_to_newline clipboard_has_text clipboard_set_text clipboard_get_text date_current_datetime date_create_datetime date_valid_datetime date_inc_year date_inc_month date_inc_week date_inc_day date_inc_hour date_inc_minute date_inc_second date_get_year date_get_month date_get_week date_get_day date_get_hour date_get_minute date_get_second date_get_weekday date_get_day_of_year date_get_hour_of_year date_get_minute_of_year date_get_second_of_year date_year_span date_month_span date_week_span date_day_span date_hour_span date_minute_span date_second_span date_compare_datetime date_compare_date date_compare_time date_date_of date_time_of date_datetime_string date_date_string date_time_string date_days_in_month date_days_in_year date_leap_year date_is_today date_set_timezone date_get_timezone game_set_speed game_get_speed motion_set motion_add place_free place_empty place_meeting place_snapped move_random move_snap move_towards_point move_contact_solid move_contact_all move_outside_solid move_outside_all move_bounce_solid move_bounce_all move_wrap distance_to_point distance_to_object position_empty position_meeting path_start path_end mp_linear_step mp_potential_step mp_linear_step_object mp_potential_step_object mp_potential_settings mp_linear_path mp_potential_path mp_linear_path_object mp_potential_path_object mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell mp_grid_clear_rectangle mp_grid_add_cell mp_grid_get_cell mp_grid_add_rectangle mp_grid_add_instances mp_grid_path mp_grid_draw mp_grid_to_ds_grid collision_point collision_rectangle collision_circle collision_ellipse collision_line collision_point_list collision_rectangle_list collision_circle_list collision_ellipse_list collision_line_list instance_position_list instance_place_list point_in_rectangle point_in_triangle point_in_circle rectangle_in_rectangle rectangle_in_triangle rectangle_in_circle instance_find instance_exists instance_number instance_position instance_nearest instance_furthest instance_place instance_create_depth instance_create_layer instance_copy instance_change instance_destroy position_destroy position_change instance_id_get instance_deactivate_all instance_deactivate_object instance_deactivate_region instance_activate_all instance_activate_object instance_activate_region room_goto room_goto_previous room_goto_next room_previous room_next room_restart game_end game_restart game_load game_save game_save_buffer game_load_buffer event_perform event_user event_perform_object event_inherited show_debug_message show_debug_overlay debug_event debug_get_callstack alarm_get alarm_set font_texture_page_size keyboard_set_map keyboard_get_map keyboard_unset_map keyboard_check keyboard_check_pressed keyboard_check_released keyboard_check_direct keyboard_get_numlock keyboard_set_numlock keyboard_key_press keyboard_key_release keyboard_clear io_clear mouse_check_button mouse_check_button_pressed mouse_check_button_released mouse_wheel_up mouse_wheel_down mouse_clear draw_self draw_sprite draw_sprite_pos draw_sprite_ext draw_sprite_stretched draw_sprite_stretched_ext draw_sprite_tiled draw_sprite_tiled_ext draw_sprite_part draw_sprite_part_ext draw_sprite_general draw_clear draw_clear_alpha draw_point draw_line draw_line_width draw_rectangle draw_roundrect draw_roundrect_ext draw_triangle draw_circle draw_ellipse draw_set_circle_precision draw_arrow draw_button draw_path draw_healthbar draw_getpixel draw_getpixel_ext draw_set_colour draw_set_color draw_set_alpha draw_get_colour draw_get_color draw_get_alpha merge_colour make_colour_rgb make_colour_hsv colour_get_red colour_get_green colour_get_blue colour_get_hue colour_get_saturation colour_get_value merge_color make_color_rgb make_color_hsv color_get_red color_get_green color_get_blue color_get_hue color_get_saturation color_get_value merge_color screen_save screen_save_part draw_set_font draw_set_halign draw_set_valign draw_text draw_text_ext string_width string_height string_width_ext string_height_ext draw_text_transformed draw_text_ext_transformed draw_text_colour draw_text_ext_colour draw_text_transformed_colour draw_text_ext_transformed_colour draw_text_color draw_text_ext_color draw_text_transformed_color draw_text_ext_transformed_color draw_point_colour draw_line_colour draw_line_width_colour draw_rectangle_colour draw_roundrect_colour draw_roundrect_colour_ext draw_triangle_colour draw_circle_colour draw_ellipse_colour draw_point_color draw_line_color draw_line_width_color draw_rectangle_color draw_roundrect_color draw_roundrect_color_ext draw_triangle_color draw_circle_color draw_ellipse_color draw_primitive_begin draw_vertex draw_vertex_colour draw_vertex_color draw_primitive_end sprite_get_uvs font_get_uvs sprite_get_texture font_get_texture texture_get_width texture_get_height texture_get_uvs draw_primitive_begin_texture draw_vertex_texture draw_vertex_texture_colour draw_vertex_texture_color texture_global_scale surface_create surface_create_ext surface_resize surface_free surface_exists surface_get_width surface_get_height surface_get_texture surface_set_target surface_set_target_ext surface_reset_target surface_depth_disable surface_get_depth_disable draw_surface draw_surface_stretched draw_surface_tiled draw_surface_part draw_surface_ext draw_surface_stretched_ext draw_surface_tiled_ext draw_surface_part_ext draw_surface_general surface_getpixel surface_getpixel_ext surface_save surface_save_part surface_copy surface_copy_part application_surface_draw_enable application_get_position application_surface_enable application_surface_is_enabled display_get_width display_get_height display_get_orientation display_get_gui_width display_get_gui_height display_reset display_mouse_get_x display_mouse_get_y display_mouse_set display_set_ui_visibility window_set_fullscreen window_get_fullscreen window_set_caption window_set_min_width window_set_max_width window_set_min_height window_set_max_height window_get_visible_rects window_get_caption window_set_cursor window_get_cursor window_set_colour window_get_colour window_set_color window_get_color window_set_position window_set_size window_set_rectangle window_center window_get_x window_get_y window_get_width window_get_height window_mouse_get_x window_mouse_get_y window_mouse_set window_view_mouse_get_x window_view_mouse_get_y window_views_mouse_get_x window_views_mouse_get_y audio_listener_position audio_listener_velocity audio_listener_orientation audio_emitter_position audio_emitter_create audio_emitter_free audio_emitter_exists audio_emitter_pitch audio_emitter_velocity audio_emitter_falloff audio_emitter_gain audio_play_sound audio_play_sound_on audio_play_sound_at audio_stop_sound audio_resume_music audio_music_is_playing audio_resume_sound audio_pause_sound audio_pause_music audio_channel_num audio_sound_length audio_get_type audio_falloff_set_model audio_play_music audio_stop_music audio_master_gain audio_music_gain audio_sound_gain audio_sound_pitch audio_stop_all audio_resume_all audio_pause_all audio_is_playing audio_is_paused audio_exists audio_sound_set_track_position audio_sound_get_track_position audio_emitter_get_gain audio_emitter_get_pitch audio_emitter_get_x audio_emitter_get_y audio_emitter_get_z audio_emitter_get_vx audio_emitter_get_vy audio_emitter_get_vz audio_listener_set_position audio_listener_set_velocity audio_listener_set_orientation audio_listener_get_data audio_set_master_gain audio_get_master_gain audio_sound_get_gain audio_sound_get_pitch audio_get_name audio_sound_set_track_position audio_sound_get_track_position audio_create_stream audio_destroy_stream audio_create_sync_group audio_destroy_sync_group audio_play_in_sync_group audio_start_sync_group audio_stop_sync_group audio_pause_sync_group audio_resume_sync_group audio_sync_group_get_track_pos audio_sync_group_debug audio_sync_group_is_playing audio_debug audio_group_load audio_group_unload audio_group_is_loaded audio_group_load_progress audio_group_name audio_group_stop_all audio_group_set_gain audio_create_buffer_sound audio_free_buffer_sound audio_create_play_queue audio_free_play_queue audio_queue_sound audio_get_recorder_count audio_get_recorder_info audio_start_recording audio_stop_recording audio_sound_get_listener_mask audio_emitter_get_listener_mask audio_get_listener_mask audio_sound_set_listener_mask audio_emitter_set_listener_mask audio_set_listener_mask audio_get_listener_count audio_get_listener_info audio_system show_message show_message_async clickable_add clickable_add_ext clickable_change clickable_change_ext clickable_delete clickable_exists clickable_set_style show_question show_question_async get_integer get_string get_integer_async get_string_async get_login_async get_open_filename get_save_filename get_open_filename_ext get_save_filename_ext show_error highscore_clear highscore_add highscore_value highscore_name draw_highscore sprite_exists sprite_get_name sprite_get_number sprite_get_width sprite_get_height sprite_get_xoffset sprite_get_yoffset sprite_get_bbox_left sprite_get_bbox_right sprite_get_bbox_top sprite_get_bbox_bottom sprite_save sprite_save_strip sprite_set_cache_size sprite_set_cache_size_ext sprite_get_tpe sprite_prefetch sprite_prefetch_multi sprite_flush sprite_flush_multi sprite_set_speed sprite_get_speed_type sprite_get_speed font_exists font_get_name font_get_fontname font_get_bold font_get_italic font_get_first font_get_last font_get_size font_set_cache_size path_exists path_get_name path_get_length path_get_time path_get_kind path_get_closed path_get_precision path_get_number path_get_point_x path_get_point_y path_get_point_speed path_get_x path_get_y path_get_speed script_exists script_get_name timeline_add timeline_delete timeline_clear timeline_exists timeline_get_name timeline_moment_clear timeline_moment_add_script timeline_size timeline_max_moment object_exists object_get_name object_get_sprite object_get_solid object_get_visible object_get_persistent object_get_mask object_get_parent object_get_physics object_is_ancestor room_exists room_get_name sprite_set_offset sprite_duplicate sprite_assign sprite_merge sprite_add sprite_replace sprite_create_from_surface sprite_add_from_surface sprite_delete sprite_set_alpha_from_sprite sprite_collision_mask font_add_enable_aa font_add_get_enable_aa font_add font_add_sprite font_add_sprite_ext font_replace font_replace_sprite font_replace_sprite_ext font_delete path_set_kind path_set_closed path_set_precision path_add path_assign path_duplicate path_append path_delete path_add_point path_insert_point path_change_point path_delete_point path_clear_points path_reverse path_mirror path_flip path_rotate path_rescale path_shift script_execute object_set_sprite object_set_solid object_set_visible object_set_persistent object_set_mask room_set_width room_set_height room_set_persistent room_set_background_colour room_set_background_color room_set_view room_set_viewport room_get_viewport room_set_view_enabled room_add room_duplicate room_assign room_instance_add room_instance_clear room_get_camera room_set_camera asset_get_index asset_get_type file_text_open_from_string file_text_open_read file_text_open_write file_text_open_append file_text_close file_text_write_string file_text_write_real file_text_writeln file_text_read_string file_text_read_real file_text_readln file_text_eof file_text_eoln file_exists file_delete file_rename file_copy directory_exists directory_create directory_destroy file_find_first file_find_next file_find_close file_attributes filename_name filename_path filename_dir filename_drive filename_ext filename_change_ext file_bin_open file_bin_rewrite file_bin_close file_bin_position file_bin_size file_bin_seek file_bin_write_byte file_bin_read_byte parameter_count parameter_string environment_get_variable ini_open_from_string ini_open ini_close ini_read_string ini_read_real ini_write_string ini_write_real ini_key_exists ini_section_exists ini_key_delete ini_section_delete ds_set_precision ds_exists ds_stack_create ds_stack_destroy ds_stack_clear ds_stack_copy ds_stack_size ds_stack_empty ds_stack_push ds_stack_pop ds_stack_top ds_stack_write ds_stack_read ds_queue_create ds_queue_destroy ds_queue_clear ds_queue_copy ds_queue_size ds_queue_empty ds_queue_enqueue ds_queue_dequeue ds_queue_head ds_queue_tail ds_queue_write ds_queue_read ds_list_create ds_list_destroy ds_list_clear ds_list_copy ds_list_size ds_list_empty ds_list_add ds_list_insert ds_list_replace ds_list_delete ds_list_find_index ds_list_find_value ds_list_mark_as_list ds_list_mark_as_map ds_list_sort ds_list_shuffle ds_list_write ds_list_read ds_list_set ds_map_create ds_map_destroy ds_map_clear ds_map_copy ds_map_size ds_map_empty ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ds_map_replace_map ds_map_replace_list ds_map_delete ds_map_exists ds_map_find_value ds_map_find_previous ds_map_find_next ds_map_find_first ds_map_find_last ds_map_write ds_map_read ds_map_secure_save ds_map_secure_load ds_map_secure_load_buffer ds_map_secure_save_buffer ds_map_set ds_priority_create ds_priority_destroy ds_priority_clear ds_priority_copy ds_priority_size ds_priority_empty ds_priority_add ds_priority_change_priority ds_priority_find_priority ds_priority_delete_value ds_priority_delete_min ds_priority_find_min ds_priority_delete_max ds_priority_find_max ds_priority_write ds_priority_read ds_grid_create ds_grid_destroy ds_grid_copy ds_grid_resize ds_grid_width ds_grid_height ds_grid_clear ds_grid_set ds_grid_add ds_grid_multiply ds_grid_set_region ds_grid_add_region ds_grid_multiply_region ds_grid_set_disk ds_grid_add_disk ds_grid_multiply_disk ds_grid_set_grid_region ds_grid_add_grid_region ds_grid_multiply_grid_region ds_grid_get ds_grid_get_sum ds_grid_get_max ds_grid_get_min ds_grid_get_mean ds_grid_get_disk_sum ds_grid_get_disk_min ds_grid_get_disk_max ds_grid_get_disk_mean ds_grid_value_exists ds_grid_value_x ds_grid_value_y ds_grid_value_disk_exists ds_grid_value_disk_x ds_grid_value_disk_y ds_grid_shuffle ds_grid_write ds_grid_read ds_grid_sort ds_grid_set ds_grid_get effect_create_below effect_create_above effect_clear part_type_create part_type_destroy part_type_exists part_type_clear part_type_shape part_type_sprite part_type_size part_type_scale part_type_orientation part_type_life part_type_step part_type_death part_type_speed part_type_direction part_type_gravity part_type_colour1 part_type_colour2 part_type_colour3 part_type_colour_mix part_type_colour_rgb part_type_colour_hsv part_type_color1 part_type_color2 part_type_color3 part_type_color_mix part_type_color_rgb part_type_color_hsv part_type_alpha1 part_type_alpha2 part_type_alpha3 part_type_blend part_system_create part_system_create_layer part_system_destroy part_system_exists part_system_clear part_system_draw_order part_system_depth part_system_position part_system_automatic_update part_system_automatic_draw part_system_update part_system_drawit part_system_get_layer part_system_layer part_particles_create part_particles_create_colour part_particles_create_color part_particles_clear part_particles_count part_emitter_create part_emitter_destroy part_emitter_destroy_all part_emitter_exists part_emitter_clear part_emitter_region part_emitter_burst part_emitter_stream external_call external_define external_free window_handle window_device matrix_get matrix_set matrix_build_identity matrix_build matrix_build_lookat matrix_build_projection_ortho matrix_build_projection_perspective matrix_build_projection_perspective_fov matrix_multiply matrix_transform_vertex matrix_stack_push matrix_stack_pop matrix_stack_multiply matrix_stack_set matrix_stack_clear matrix_stack_top matrix_stack_is_empty browser_input_capture os_get_config os_get_info os_get_language os_get_region os_lock_orientation display_get_dpi_x display_get_dpi_y display_set_gui_size display_set_gui_maximise display_set_gui_maximize device_mouse_dbclick_enable display_set_timing_method display_get_timing_method display_set_sleep_margin display_get_sleep_margin virtual_key_add virtual_key_hide virtual_key_delete virtual_key_show draw_enable_drawevent draw_enable_swf_aa draw_set_swf_aa_level draw_get_swf_aa_level draw_texture_flush draw_flush gpu_set_blendenable gpu_set_ztestenable gpu_set_zfunc gpu_set_zwriteenable gpu_set_lightingenable gpu_set_fog gpu_set_cullmode gpu_set_blendmode gpu_set_blendmode_ext gpu_set_blendmode_ext_sepalpha gpu_set_colorwriteenable gpu_set_colourwriteenable gpu_set_alphatestenable gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter gpu_set_texfilter_ext gpu_set_texrepeat gpu_set_texrepeat_ext gpu_set_tex_filter gpu_set_tex_filter_ext gpu_set_tex_repeat gpu_set_tex_repeat_ext gpu_set_tex_mip_filter gpu_set_tex_mip_filter_ext gpu_set_tex_mip_bias gpu_set_tex_mip_bias_ext gpu_set_tex_min_mip gpu_set_tex_min_mip_ext gpu_set_tex_max_mip gpu_set_tex_max_mip_ext gpu_set_tex_max_aniso gpu_set_tex_max_aniso_ext gpu_set_tex_mip_enable gpu_set_tex_mip_enable_ext gpu_get_blendenable gpu_get_ztestenable gpu_get_zfunc gpu_get_zwriteenable gpu_get_lightingenable gpu_get_fog gpu_get_cullmode gpu_get_blendmode gpu_get_blendmode_ext gpu_get_blendmode_ext_sepalpha gpu_get_blendmode_src gpu_get_blendmode_dest gpu_get_blendmode_srcalpha gpu_get_blendmode_destalpha gpu_get_colorwriteenable gpu_get_colourwriteenable gpu_get_alphatestenable gpu_get_alphatestref gpu_get_alphatestfunc gpu_get_texfilter gpu_get_texfilter_ext gpu_get_texrepeat gpu_get_texrepeat_ext gpu_get_tex_filter gpu_get_tex_filter_ext gpu_get_tex_repeat gpu_get_tex_repeat_ext gpu_get_tex_mip_filter gpu_get_tex_mip_filter_ext gpu_get_tex_mip_bias gpu_get_tex_mip_bias_ext gpu_get_tex_min_mip gpu_get_tex_min_mip_ext gpu_get_tex_max_mip gpu_get_tex_max_mip_ext gpu_get_tex_max_aniso gpu_get_tex_max_aniso_ext gpu_get_tex_mip_enable gpu_get_tex_mip_enable_ext gpu_push_state gpu_pop_state gpu_get_state gpu_set_state draw_light_define_ambient draw_light_define_direction draw_light_define_point draw_light_enable draw_set_lighting draw_light_get_ambient draw_light_get draw_get_lighting shop_leave_rating url_get_domain url_open url_open_ext url_open_full get_timer achievement_login achievement_logout achievement_post achievement_increment achievement_post_score achievement_available achievement_show_achievements achievement_show_leaderboards achievement_load_friends achievement_load_leaderboard achievement_send_challenge achievement_load_progress achievement_reset achievement_login_status achievement_get_pic achievement_show_challenge_notifications achievement_get_challenges achievement_event achievement_show achievement_get_info cloud_file_save cloud_string_save cloud_synchronise ads_enable ads_disable ads_setup ads_engagement_launch ads_engagement_available ads_engagement_active ads_event ads_event_preload ads_set_reward_callback ads_get_display_height ads_get_display_width ads_move ads_interstitial_available ads_interstitial_display device_get_tilt_x device_get_tilt_y device_get_tilt_z device_is_keypad_open device_mouse_check_button device_mouse_check_button_pressed device_mouse_check_button_released device_mouse_x device_mouse_y device_mouse_raw_x device_mouse_raw_y device_mouse_x_to_gui device_mouse_y_to_gui iap_activate iap_status iap_enumerate_products iap_restore_all iap_acquire iap_consume iap_product_details iap_purchase_details facebook_init facebook_login facebook_status facebook_graph_request facebook_dialog facebook_logout facebook_launch_offerwall facebook_post_message facebook_send_invite facebook_user_id facebook_accesstoken facebook_check_permission facebook_request_read_permissions facebook_request_publish_permissions gamepad_is_supported gamepad_get_device_count gamepad_is_connected gamepad_get_description gamepad_get_button_threshold gamepad_set_button_threshold gamepad_get_axis_deadzone gamepad_set_axis_deadzone gamepad_button_count gamepad_button_check gamepad_button_check_pressed gamepad_button_check_released gamepad_button_value gamepad_axis_count gamepad_axis_value gamepad_set_vibration gamepad_set_colour gamepad_set_color os_is_paused window_has_focus code_is_compiled http_get http_get_file http_post_string http_request json_encode json_decode zip_unzip load_csv base64_encode base64_decode md5_string_unicode md5_string_utf8 md5_file os_is_network_connected sha1_string_unicode sha1_string_utf8 sha1_file os_powersave_enable analytics_event analytics_event_ext win8_livetile_tile_notification win8_livetile_tile_clear win8_livetile_badge_notification win8_livetile_badge_clear win8_livetile_queue_enable win8_secondarytile_pin win8_secondarytile_badge_notification win8_secondarytile_delete win8_livetile_notification_begin win8_livetile_notification_secondary_begin win8_livetile_notification_expiry win8_livetile_notification_tag win8_livetile_notification_text_add win8_livetile_notification_image_add win8_livetile_notification_end win8_appbar_enable win8_appbar_add_element win8_appbar_remove_element win8_settingscharm_add_entry win8_settingscharm_add_html_entry win8_settingscharm_add_xaml_entry win8_settingscharm_set_xaml_property win8_settingscharm_get_xaml_property win8_settingscharm_remove_entry win8_share_image win8_share_screenshot win8_share_file win8_share_url win8_share_text win8_search_enable win8_search_disable win8_search_add_suggestions win8_device_touchscreen_available win8_license_initialize_sandbox win8_license_trial_version winphone_license_trial_version winphone_tile_title winphone_tile_count winphone_tile_back_title winphone_tile_back_content winphone_tile_back_content_wide winphone_tile_front_image winphone_tile_front_image_small winphone_tile_front_image_wide winphone_tile_back_image winphone_tile_back_image_wide winphone_tile_background_colour winphone_tile_background_color winphone_tile_icon_image winphone_tile_small_icon_image winphone_tile_wide_content winphone_tile_cycle_images winphone_tile_small_background_image physics_world_create physics_world_gravity physics_world_update_speed physics_world_update_iterations physics_world_draw_debug physics_pause_enable physics_fixture_create physics_fixture_set_kinematic physics_fixture_set_density physics_fixture_set_awake physics_fixture_set_restitution physics_fixture_set_friction physics_fixture_set_collision_group physics_fixture_set_sensor physics_fixture_set_linear_damping physics_fixture_set_angular_damping physics_fixture_set_circle_shape physics_fixture_set_box_shape physics_fixture_set_edge_shape physics_fixture_set_polygon_shape physics_fixture_set_chain_shape physics_fixture_add_point physics_fixture_bind physics_fixture_bind_ext physics_fixture_delete physics_apply_force physics_apply_impulse physics_apply_angular_impulse physics_apply_local_force physics_apply_local_impulse physics_apply_torque physics_mass_properties physics_draw_debug physics_test_overlap physics_remove_fixture physics_set_friction physics_set_density physics_set_restitution physics_get_friction physics_get_density physics_get_restitution physics_joint_distance_create physics_joint_rope_create physics_joint_revolute_create physics_joint_prismatic_create physics_joint_pulley_create physics_joint_wheel_create physics_joint_weld_create physics_joint_friction_create physics_joint_gear_create physics_joint_enable_motor physics_joint_get_value physics_joint_set_value physics_joint_delete physics_particle_create physics_particle_delete physics_particle_delete_region_circle physics_particle_delete_region_box physics_particle_delete_region_poly physics_particle_set_flags physics_particle_set_category_flags physics_particle_draw physics_particle_draw_ext physics_particle_count physics_particle_get_data physics_particle_get_data_particle physics_particle_group_begin physics_particle_group_circle physics_particle_group_box physics_particle_group_polygon physics_particle_group_add_point physics_particle_group_end physics_particle_group_join physics_particle_group_delete physics_particle_group_count physics_particle_group_get_data physics_particle_group_get_mass physics_particle_group_get_inertia physics_particle_group_get_centre_x physics_particle_group_get_centre_y physics_particle_group_get_vel_x physics_particle_group_get_vel_y physics_particle_group_get_ang_vel physics_particle_group_get_x physics_particle_group_get_y physics_particle_group_get_angle physics_particle_set_group_flags physics_particle_get_group_flags physics_particle_get_max_count physics_particle_get_radius physics_particle_get_density physics_particle_get_damping physics_particle_get_gravity_scale physics_particle_set_max_count physics_particle_set_radius physics_particle_set_density physics_particle_set_damping physics_particle_set_gravity_scale network_create_socket network_create_socket_ext network_create_server network_create_server_raw network_connect network_connect_raw network_send_packet network_send_raw network_send_broadcast network_send_udp network_send_udp_raw network_set_timeout network_set_config network_resolve network_destroy buffer_create buffer_write buffer_read buffer_seek buffer_get_surface buffer_set_surface buffer_delete buffer_exists buffer_get_type buffer_get_alignment buffer_poke buffer_peek buffer_save buffer_save_ext buffer_load buffer_load_ext buffer_load_partial buffer_copy buffer_fill buffer_get_size buffer_tell buffer_resize buffer_md5 buffer_sha1 buffer_base64_encode buffer_base64_decode buffer_base64_decode_ext buffer_sizeof buffer_get_address buffer_create_from_vertex_buffer buffer_create_from_vertex_buffer_ext buffer_copy_from_vertex_buffer buffer_async_group_begin buffer_async_group_option buffer_async_group_end buffer_load_async buffer_save_async gml_release_mode gml_pragma steam_activate_overlay steam_is_overlay_enabled steam_is_overlay_activated steam_get_persona_name steam_initialised steam_is_cloud_enabled_for_app steam_is_cloud_enabled_for_account steam_file_persisted steam_get_quota_total steam_get_quota_free steam_file_write steam_file_write_file steam_file_read steam_file_delete steam_file_exists steam_file_size steam_file_share steam_is_screenshot_requested steam_send_screenshot steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc steam_user_installed_dlc steam_set_achievement steam_get_achievement steam_clear_achievement steam_set_stat_int steam_set_stat_float steam_set_stat_avg_rate steam_get_stat_int steam_get_stat_float steam_get_stat_avg_rate steam_reset_all_stats steam_reset_all_stats_achievements steam_stats_ready steam_create_leaderboard steam_upload_score steam_upload_score_ext steam_download_scores_around_user steam_download_scores steam_download_friends_scores steam_upload_score_buffer steam_upload_score_buffer_ext steam_current_game_language steam_available_languages steam_activate_overlay_browser steam_activate_overlay_user steam_activate_overlay_store steam_get_user_persona_name steam_get_app_id steam_get_user_account_id steam_ugc_download steam_ugc_create_item steam_ugc_start_item_update steam_ugc_set_item_title steam_ugc_set_item_description steam_ugc_set_item_visibility steam_ugc_set_item_tags steam_ugc_set_item_content steam_ugc_set_item_preview steam_ugc_submit_item_update steam_ugc_get_item_update_progress steam_ugc_subscribe_item steam_ugc_unsubscribe_item steam_ugc_num_subscribed_items steam_ugc_get_subscribed_items steam_ugc_get_item_install_info steam_ugc_get_item_update_info steam_ugc_request_item_details steam_ugc_create_query_user steam_ugc_create_query_user_ex steam_ugc_create_query_all steam_ugc_create_query_all_ex steam_ugc_query_set_cloud_filename_filter steam_ugc_query_set_match_any_tag steam_ugc_query_set_search_text steam_ugc_query_set_ranked_by_trend_days steam_ugc_query_add_required_tag steam_ugc_query_add_excluded_tag steam_ugc_query_set_return_long_description steam_ugc_query_set_return_total_only steam_ugc_query_set_allow_cached_response steam_ugc_send_query shader_set shader_get_name shader_reset shader_current shader_is_compiled shader_get_sampler_index shader_get_uniform shader_set_uniform_i shader_set_uniform_i_array shader_set_uniform_f shader_set_uniform_f_array shader_set_uniform_matrix shader_set_uniform_matrix_array shader_enable_corner_id texture_set_stage texture_get_texel_width texture_get_texel_height shaders_are_supported vertex_format_begin vertex_format_end vertex_format_delete vertex_format_add_position vertex_format_add_position_3d vertex_format_add_colour vertex_format_add_color vertex_format_add_normal vertex_format_add_texcoord vertex_format_add_textcoord vertex_format_add_custom vertex_create_buffer vertex_create_buffer_ext vertex_delete_buffer vertex_begin vertex_end vertex_position vertex_position_3d vertex_colour vertex_color vertex_argb vertex_texcoord vertex_normal vertex_float1 vertex_float2 vertex_float3 vertex_float4 vertex_ubyte4 vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size vertex_create_buffer_from_buffer vertex_create_buffer_from_buffer_ext push_local_notification push_get_first_local_notification push_get_next_local_notification push_cancel_local_notification skeleton_animation_set skeleton_animation_get skeleton_animation_mix skeleton_animation_set_ext skeleton_animation_get_ext skeleton_animation_get_duration skeleton_animation_get_frames skeleton_animation_clear skeleton_skin_set skeleton_skin_get skeleton_attachment_set skeleton_attachment_get skeleton_attachment_create skeleton_collision_draw_set skeleton_bone_data_get skeleton_bone_data_set skeleton_bone_state_get skeleton_bone_state_set skeleton_get_minmax skeleton_get_num_bounds skeleton_get_bounds skeleton_animation_get_frame skeleton_animation_set_frame draw_skeleton draw_skeleton_time draw_skeleton_instance draw_skeleton_collision skeleton_animation_list skeleton_skin_list skeleton_slot_data layer_get_id layer_get_id_at_depth layer_get_depth layer_create layer_destroy layer_destroy_instances layer_add_instance layer_has_instance layer_set_visible layer_get_visible layer_exists layer_x layer_y layer_get_x layer_get_y layer_hspeed layer_vspeed layer_get_hspeed layer_get_vspeed layer_script_begin layer_script_end layer_shader layer_get_script_begin layer_get_script_end layer_get_shader layer_set_target_room layer_get_target_room layer_reset_target_room layer_get_all layer_get_all_elements layer_get_name layer_depth layer_get_element_layer layer_get_element_type layer_element_move layer_force_draw_depth layer_is_draw_depth_forced layer_get_forced_depth layer_background_get_id layer_background_exists layer_background_create layer_background_destroy layer_background_visible layer_background_change layer_background_sprite layer_background_htiled layer_background_vtiled layer_background_stretch layer_background_yscale layer_background_xscale layer_background_blend layer_background_alpha layer_background_index layer_background_speed layer_background_get_visible layer_background_get_sprite layer_background_get_htiled layer_background_get_vtiled layer_background_get_stretch layer_background_get_yscale layer_background_get_xscale layer_background_get_blend layer_background_get_alpha layer_background_get_index layer_background_get_speed layer_sprite_get_id layer_sprite_exists layer_sprite_create layer_sprite_destroy layer_sprite_change layer_sprite_index layer_sprite_speed layer_sprite_xscale layer_sprite_yscale layer_sprite_angle layer_sprite_blend layer_sprite_alpha layer_sprite_x layer_sprite_y layer_sprite_get_sprite layer_sprite_get_index layer_sprite_get_speed layer_sprite_get_xscale layer_sprite_get_yscale layer_sprite_get_angle layer_sprite_get_blend layer_sprite_get_alpha layer_sprite_get_x layer_sprite_get_y layer_tilemap_get_id layer_tilemap_exists layer_tilemap_create layer_tilemap_destroy tilemap_tileset tilemap_x tilemap_y tilemap_set tilemap_set_at_pixel tilemap_get_tileset tilemap_get_tile_width tilemap_get_tile_height tilemap_get_width tilemap_get_height tilemap_get_x tilemap_get_y tilemap_get tilemap_get_at_pixel tilemap_get_cell_x_at_pixel tilemap_get_cell_y_at_pixel tilemap_clear draw_tilemap draw_tile tilemap_set_global_mask tilemap_get_global_mask tilemap_set_mask tilemap_get_mask tilemap_get_frame tile_set_empty tile_set_index tile_set_flip tile_set_mirror tile_set_rotate tile_get_empty tile_get_index tile_get_flip tile_get_mirror tile_get_rotate layer_tile_exists layer_tile_create layer_tile_destroy layer_tile_change layer_tile_xscale layer_tile_yscale layer_tile_blend layer_tile_alpha layer_tile_x layer_tile_y layer_tile_region layer_tile_visible layer_tile_get_sprite layer_tile_get_xscale layer_tile_get_yscale layer_tile_get_blend layer_tile_get_alpha layer_tile_get_x layer_tile_get_y layer_tile_get_region layer_tile_get_visible layer_instance_get_instance instance_activate_layer instance_deactivate_layer camera_create camera_create_view camera_destroy camera_apply camera_get_active camera_get_default camera_set_default camera_set_view_mat camera_set_proj_mat camera_set_update_script camera_set_begin_script camera_set_end_script camera_set_view_pos camera_set_view_size camera_set_view_speed camera_set_view_border camera_set_view_angle camera_set_view_target camera_get_view_mat camera_get_proj_mat camera_get_update_script camera_get_begin_script camera_get_end_script camera_get_view_x camera_get_view_y camera_get_view_width camera_get_view_height camera_get_view_speed_x camera_get_view_speed_y camera_get_view_border_x camera_get_view_border_y camera_get_view_angle camera_get_view_target view_get_camera view_get_visible view_get_xport view_get_yport view_get_wport view_get_hport view_get_surface_id view_set_camera view_set_visible view_set_xport view_set_yport view_set_wport view_set_hport view_set_surface_id gesture_drag_time gesture_drag_distance gesture_flick_speed gesture_double_tap_time gesture_double_tap_distance gesture_pinch_distance gesture_pinch_angle_towards gesture_pinch_angle_away gesture_rotate_time gesture_rotate_angle gesture_tap_count gesture_get_drag_time gesture_get_drag_distance gesture_get_flick_speed gesture_get_double_tap_time gesture_get_double_tap_distance gesture_get_pinch_distance gesture_get_pinch_angle_towards gesture_get_pinch_angle_away gesture_get_rotate_time gesture_get_rotate_angle gesture_get_tap_count keyboard_virtual_show keyboard_virtual_hide keyboard_virtual_status keyboard_virtual_height",literal:"self other all noone global local undefined pointer_invalid pointer_null path_action_stop path_action_restart path_action_continue path_action_reverse true false pi GM_build_date GM_version GM_runtime_version timezone_local timezone_utc gamespeed_fps gamespeed_microseconds ev_create ev_destroy ev_step ev_alarm ev_keyboard ev_mouse ev_collision ev_other ev_draw ev_draw_begin ev_draw_end ev_draw_pre ev_draw_post ev_keypress ev_keyrelease ev_trigger ev_left_button ev_right_button ev_middle_button ev_no_button ev_left_press ev_right_press ev_middle_press ev_left_release ev_right_release ev_middle_release ev_mouse_enter ev_mouse_leave ev_mouse_wheel_up ev_mouse_wheel_down ev_global_left_button ev_global_right_button ev_global_middle_button ev_global_left_press ev_global_right_press ev_global_middle_press ev_global_left_release ev_global_right_release ev_global_middle_release ev_joystick1_left ev_joystick1_right ev_joystick1_up ev_joystick1_down ev_joystick1_button1 ev_joystick1_button2 ev_joystick1_button3 ev_joystick1_button4 ev_joystick1_button5 ev_joystick1_button6 ev_joystick1_button7 ev_joystick1_button8 ev_joystick2_left ev_joystick2_right ev_joystick2_up ev_joystick2_down ev_joystick2_button1 ev_joystick2_button2 ev_joystick2_button3 ev_joystick2_button4 ev_joystick2_button5 ev_joystick2_button6 ev_joystick2_button7 ev_joystick2_button8 ev_outside ev_boundary ev_game_start ev_game_end ev_room_start ev_room_end ev_no_more_lives ev_animation_end ev_end_of_path ev_no_more_health ev_close_button ev_user0 ev_user1 ev_user2 ev_user3 ev_user4 ev_user5 ev_user6 ev_user7 ev_user8 ev_user9 ev_user10 ev_user11 ev_user12 ev_user13 ev_user14 ev_user15 ev_step_normal ev_step_begin ev_step_end ev_gui ev_gui_begin ev_gui_end ev_cleanup ev_gesture ev_gesture_tap ev_gesture_double_tap ev_gesture_drag_start ev_gesture_dragging ev_gesture_drag_end ev_gesture_flick ev_gesture_pinch_start ev_gesture_pinch_in ev_gesture_pinch_out ev_gesture_pinch_end ev_gesture_rotate_start ev_gesture_rotating ev_gesture_rotate_end ev_global_gesture_tap ev_global_gesture_double_tap ev_global_gesture_drag_start ev_global_gesture_dragging ev_global_gesture_drag_end ev_global_gesture_flick ev_global_gesture_pinch_start ev_global_gesture_pinch_in ev_global_gesture_pinch_out ev_global_gesture_pinch_end ev_global_gesture_rotate_start ev_global_gesture_rotating ev_global_gesture_rotate_end vk_nokey vk_anykey vk_enter vk_return vk_shift vk_control vk_alt vk_escape vk_space vk_backspace vk_tab vk_pause vk_printscreen vk_left vk_right vk_up vk_down vk_home vk_end vk_delete vk_insert vk_pageup vk_pagedown vk_f1 vk_f2 vk_f3 vk_f4 vk_f5 vk_f6 vk_f7 vk_f8 vk_f9 vk_f10 vk_f11 vk_f12 vk_numpad0 vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 vk_numpad7 vk_numpad8 vk_numpad9 vk_divide vk_multiply vk_subtract vk_add vk_decimal vk_lshift vk_lcontrol vk_lalt vk_rshift vk_rcontrol vk_ralt mb_any mb_none mb_left mb_right mb_middle c_aqua c_black c_blue c_dkgray c_fuchsia c_gray c_green c_lime c_ltgray c_maroon c_navy c_olive c_purple c_red c_silver c_teal c_white c_yellow c_orange fa_left fa_center fa_right fa_top fa_middle fa_bottom pr_pointlist pr_linelist pr_linestrip pr_trianglelist pr_trianglestrip pr_trianglefan bm_complex bm_normal bm_add bm_max bm_subtract bm_zero bm_one bm_src_colour bm_inv_src_colour bm_src_color bm_inv_src_color bm_src_alpha bm_inv_src_alpha bm_dest_alpha bm_inv_dest_alpha bm_dest_colour bm_inv_dest_colour bm_dest_color bm_inv_dest_color bm_src_alpha_sat tf_point tf_linear tf_anisotropic mip_off mip_on mip_markedonly audio_falloff_none audio_falloff_inverse_distance audio_falloff_inverse_distance_clamped audio_falloff_linear_distance audio_falloff_linear_distance_clamped audio_falloff_exponent_distance audio_falloff_exponent_distance_clamped audio_old_system audio_new_system audio_mono audio_stereo audio_3d cr_default cr_none cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse cr_size_we cr_uparrow cr_hourglass cr_drag cr_appstart cr_handpoint cr_size_all spritespeed_framespersecond spritespeed_framespergameframe asset_object asset_unknown asset_sprite asset_sound asset_room asset_path asset_script asset_font asset_timeline asset_tiles asset_shader fa_readonly fa_hidden fa_sysfile fa_volumeid fa_directory fa_archive ds_type_map ds_type_list ds_type_stack ds_type_queue ds_type_grid ds_type_priority ef_explosion ef_ring ef_ellipse ef_firework ef_smoke ef_smokeup ef_star ef_spark ef_flare ef_cloud ef_rain ef_snow pt_shape_pixel pt_shape_disk pt_shape_square pt_shape_line pt_shape_star pt_shape_circle pt_shape_ring pt_shape_sphere pt_shape_flare pt_shape_spark pt_shape_explosion pt_shape_cloud pt_shape_smoke pt_shape_snow ps_distr_linear ps_distr_gaussian ps_distr_invgaussian ps_shape_rectangle ps_shape_ellipse ps_shape_diamond ps_shape_line ty_real ty_string dll_cdecl dll_stdcall matrix_view matrix_projection matrix_world os_win32 os_windows os_macosx os_ios os_android os_symbian os_linux os_unknown os_winphone os_tizen os_win8native os_wiiu os_3ds os_psvita os_bb10 os_ps4 os_xboxone os_ps3 os_xbox360 os_uwp os_tvos os_switch browser_not_a_browser browser_unknown browser_ie browser_firefox browser_chrome browser_safari browser_safari_mobile browser_opera browser_tizen browser_edge browser_windows_store browser_ie_mobile device_ios_unknown device_ios_iphone device_ios_iphone_retina device_ios_ipad device_ios_ipad_retina device_ios_iphone5 device_ios_iphone6 device_ios_iphone6plus device_emulator device_tablet display_landscape display_landscape_flipped display_portrait display_portrait_flipped tm_sleep tm_countvsyncs of_challenge_win of_challen ge_lose of_challenge_tie leaderboard_type_number leaderboard_type_time_mins_secs cmpfunc_never cmpfunc_less cmpfunc_equal cmpfunc_lessequal cmpfunc_greater cmpfunc_notequal cmpfunc_greaterequal cmpfunc_always cull_noculling cull_clockwise cull_counterclockwise lighttype_dir lighttype_point iap_ev_storeload iap_ev_product iap_ev_purchase iap_ev_consume iap_ev_restore iap_storeload_ok iap_storeload_failed iap_status_uninitialised iap_status_unavailable iap_status_loading iap_status_available iap_status_processing iap_status_restoring iap_failed iap_unavailable iap_available iap_purchased iap_canceled iap_refunded fb_login_default fb_login_fallback_to_webview fb_login_no_fallback_to_webview fb_login_forcing_webview fb_login_use_system_account fb_login_forcing_safari phy_joint_anchor_1_x phy_joint_anchor_1_y phy_joint_anchor_2_x phy_joint_anchor_2_y phy_joint_reaction_force_x phy_joint_reaction_force_y phy_joint_reaction_torque phy_joint_motor_speed phy_joint_angle phy_joint_motor_torque phy_joint_max_motor_torque phy_joint_translation phy_joint_speed phy_joint_motor_force phy_joint_max_motor_force phy_joint_length_1 phy_joint_length_2 phy_joint_damping_ratio phy_joint_frequency phy_joint_lower_angle_limit phy_joint_upper_angle_limit phy_joint_angle_limits phy_joint_max_length phy_joint_max_torque phy_joint_max_force phy_debug_render_aabb phy_debug_render_collision_pairs phy_debug_render_coms phy_debug_render_core_shapes phy_debug_render_joints phy_debug_render_obb phy_debug_render_shapes phy_particle_flag_water phy_particle_flag_zombie phy_particle_flag_wall phy_particle_flag_spring phy_particle_flag_elastic phy_particle_flag_viscous phy_particle_flag_powder phy_particle_flag_tensile phy_particle_flag_colourmixing phy_particle_flag_colormixing phy_particle_group_flag_solid phy_particle_group_flag_rigid phy_particle_data_flag_typeflags phy_particle_data_flag_position phy_particle_data_flag_velocity phy_particle_data_flag_colour phy_particle_data_flag_color phy_particle_data_flag_category achievement_our_info achievement_friends_info achievement_leaderboard_info achievement_achievement_info achievement_filter_all_players achievement_filter_friends_only achievement_filter_favorites_only achievement_type_achievement_challenge achievement_type_score_challenge achievement_pic_loaded achievement_show_ui achievement_show_profile achievement_show_leaderboard achievement_show_achievement achievement_show_bank achievement_show_friend_picker achievement_show_purchase_prompt network_socket_tcp network_socket_udp network_socket_bluetooth network_type_connect network_type_disconnect network_type_data network_type_non_blocking_connect network_config_connect_timeout network_config_use_non_blocking_socket network_config_enable_reliable_udp network_config_disable_reliable_udp buffer_fixed buffer_grow buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_u64 buffer_f16 buffer_f32 buffer_f64 buffer_bool buffer_text buffer_string buffer_surface_copy buffer_seek_start buffer_seek_relative buffer_seek_end buffer_generalerror buffer_outofspace buffer_outofbounds buffer_invalidtype text_type button_type input_type ANSI_CHARSET DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET SHIFTJIS_CHARSET HANGEUL_CHARSET GB2312_CHARSET CHINESEBIG5_CHARSET JOHAB_CHARSET HEBREW_CHARSET ARABIC_CHARSET GREEK_CHARSET TURKISH_CHARSET VIETNAMESE_CHARSET THAI_CHARSET MAC_CHARSET BALTIC_CHARSET OEM_CHARSET gp_face1 gp_face2 gp_face3 gp_face4 gp_shoulderl gp_shoulderr gp_shoulderlb gp_shoulderrb gp_select gp_start gp_stickl gp_stickr gp_padu gp_padd gp_padl gp_padr gp_axislh gp_axislv gp_axisrh gp_axisrv ov_friends ov_community ov_players ov_settings ov_gamegroup ov_achievements lb_sort_none lb_sort_ascending lb_sort_descending lb_disp_none lb_disp_numeric lb_disp_time_sec lb_disp_time_ms ugc_result_success ugc_filetype_community ugc_filetype_microtrans ugc_visibility_public ugc_visibility_friends_only ugc_visibility_private ugc_query_RankedByVote ugc_query_RankedByPublicationDate ugc_query_AcceptedForGameRankedByAcceptanceDate ugc_query_RankedByTrend ugc_query_FavoritedByFriendsRankedByPublicationDate ugc_query_CreatedByFriendsRankedByPublicationDate ugc_query_RankedByNumTimesReported ugc_query_CreatedByFollowedUsersRankedByPublicationDate ugc_query_NotYetRated ugc_query_RankedByTotalVotesAsc ugc_query_RankedByVotesUp ugc_query_RankedByTextSearch ugc_sortorder_CreationOrderDesc ugc_sortorder_CreationOrderAsc ugc_sortorder_TitleAsc ugc_sortorder_LastUpdatedDesc ugc_sortorder_SubscriptionDateDesc ugc_sortorder_VoteScoreDesc ugc_sortorder_ForModeration ugc_list_Published ugc_list_VotedOn ugc_list_VotedUp ugc_list_VotedDown ugc_list_WillVoteLater ugc_list_Favorited ugc_list_Subscribed ugc_list_UsedOrPlayed ugc_list_Followed ugc_match_Items ugc_match_Items_Mtx ugc_match_Items_ReadyToUse ugc_match_Collections ugc_match_Artwork ugc_match_Videos ugc_match_Screenshots ugc_match_AllGuides ugc_match_WebGuides ugc_match_IntegratedGuides ugc_match_UsableInGame ugc_match_ControllerBindings vertex_usage_position vertex_usage_colour vertex_usage_color vertex_usage_normal vertex_usage_texcoord vertex_usage_textcoord vertex_usage_blendweight vertex_usage_blendindices vertex_usage_psize vertex_usage_tangent vertex_usage_binormal vertex_usage_fog vertex_usage_depth vertex_usage_sample vertex_type_float1 vertex_type_float2 vertex_type_float3 vertex_type_float4 vertex_type_colour vertex_type_color vertex_type_ubyte4 layerelementtype_undefined layerelementtype_background layerelementtype_instance layerelementtype_oldtilemap layerelementtype_sprite layerelementtype_tilemap layerelementtype_particlesystem layerelementtype_tile tile_rotate tile_flip tile_mirror tile_index_mask kbv_type_default kbv_type_ascii kbv_type_url kbv_type_email kbv_type_numbers kbv_type_phone kbv_type_phone_name kbv_returnkey_default kbv_returnkey_go kbv_returnkey_google kbv_returnkey_join kbv_returnkey_next kbv_returnkey_route kbv_returnkey_search kbv_returnkey_send kbv_returnkey_yahoo kbv_returnkey_done kbv_returnkey_continue kbv_returnkey_emergency kbv_autocapitalize_none kbv_autocapitalize_words kbv_autocapitalize_sentences kbv_autocapitalize_characters",symbol:"argument_relative argument argument0 argument1 argument2 argument3 argument4 argument5 argument6 argument7 argument8 argument9 argument10 argument11 argument12 argument13 argument14 argument15 argument_count x|0 y|0 xprevious yprevious xstart ystart hspeed vspeed direction speed friction gravity gravity_direction path_index path_position path_positionprevious path_speed path_scale path_orientation path_endaction object_index id solid persistent mask_index instance_count instance_id room_speed fps fps_real current_time current_year current_month current_day current_weekday current_hour current_minute current_second alarm timeline_index timeline_position timeline_speed timeline_running timeline_loop room room_first room_last room_width room_height room_caption room_persistent score lives health show_score show_lives show_health caption_score caption_lives caption_health event_type event_number event_object event_action application_surface gamemaker_pro gamemaker_registered gamemaker_version error_occurred error_last debug_mode keyboard_key keyboard_lastkey keyboard_lastchar keyboard_string mouse_x mouse_y mouse_button mouse_lastbutton cursor_sprite visible sprite_index sprite_width sprite_height sprite_xoffset sprite_yoffset image_number image_index image_speed depth image_xscale image_yscale image_angle image_alpha image_blend bbox_left bbox_right bbox_top bbox_bottom layer background_colour background_showcolour background_color background_showcolor view_enabled view_current view_visible view_xview view_yview view_wview view_hview view_xport view_yport view_wport view_hport view_angle view_hborder view_vborder view_hspeed view_vspeed view_object view_surface_id view_camera game_id game_display_name game_project_name game_save_id working_directory temp_directory program_directory browser_width browser_height os_type os_device os_browser os_version display_aa async_load delta_time webgl_enabled event_data iap_data phy_rotation phy_position_x phy_position_y phy_angular_velocity phy_linear_velocity_x phy_linear_velocity_y phy_speed_x phy_speed_y phy_speed phy_angular_damping phy_linear_damping phy_bullet phy_fixed_rotation phy_active phy_mass phy_inertia phy_com_x phy_com_y phy_dynamic phy_kinematic phy_sleeping phy_collision_points phy_collision_x phy_collision_y phy_col_normal_x phy_col_normal_y phy_position_xprevious phy_position_yprevious"},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE]}}return VX=e,VX}var GX,EMe;function G5n(){if(EMe)return GX;EMe=1;function e(n){const r={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{name:"Go",aliases:["golang"],keywords:r,illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"string",variants:[n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:n.C_NUMBER_RE+"[i]",relevance:1},n.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[n.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,illegal:/["']/}]}]}}return GX=e,GX}var WX,CMe;function W5n(){if(CMe)return WX;CMe=1;function e(n){return{name:"Golo",keywords:{keyword:"println readln print import module function local return let var while for foreach times in case when match with break continue augment augmentation each find filter reduce if then else otherwise try catch finally raise throw orIfNull DynamicObject|10 DynamicVariable struct Observable map set vector list array",literal:"true false null"},contains:[n.HASH_COMMENT_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return WX=e,WX}var YX,wMe;function Y5n(){if(wMe)return YX;wMe=1;function e(n){return{name:"Gradle",case_insensitive:!0,keywords:{keyword:"task project allprojects subprojects artifacts buildscript configurations dependencies repositories sourceSets description delete from into include exclude source classpath destinationDir includes options sourceCompatibility targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant def abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true antlrtask checkstyle codenarc copy boolean byte char class double float int interface long short void compile runTime file fileTree abs any append asList asWritable call collect compareTo count div dump each eachByte eachFile eachLine every find findAll flatten getAt getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter newReader newWriter next plus pop power previous print println push putAt read readBytes readLines reverse reverseEach round size sort splitEachLine step subMap times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader withStream withWriter withWriterAppend write writeLine"},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.NUMBER_MODE,n.REGEXP_MODE]}}return YX=e,YX}var qX,xMe;function q5n(){if(xMe)return qX;xMe=1;function e(a){return a?typeof a=="string"?a:a.source:null}function n(a){return r("(?=",a,")")}function r(...a){return a.map(l=>e(l)).join("")}function i(a,s={}){return s.variants=a,s}function o(a){const s="[A-Za-z0-9_$]+",l=i([a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),c={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[a.BACKSLASH_ESCAPE]},u=i([a.BINARY_NUMBER_MODE,a.C_NUMBER_MODE]),d=i([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE],{className:"string"});return{name:"Groovy",keywords:{built_in:"this super",literal:"true false null",keyword:"byte short char int long boolean float double void def as in assert trait abstract static volatile transient public private protected synchronized final class interface enum if else for while switch case break default continue throw throws try catch finally implements extends new import package return instanceof"},contains:[a.SHEBANG({binary:"groovy",relevance:10}),l,d,c,u,{className:"class",beginKeywords:"class interface trait enum",end:/\{/,illegal:":",contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:s+"[ ]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[l,d,c,u,"self"]},{className:"symbol",begin:"^[ ]*"+n(s+":"),excludeBegin:!0,end:s+":",relevance:0}],illegal:/#|<\//}}return qX=o,qX}var KX,TMe;function K5n(){if(TMe)return KX;TMe=1;function e(n){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},n.COMMENT("^\\s*(!=#|=#|-#|/).*$",!1,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",starts:{end:"\\n",subLanguage:"ruby"}},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,starts:{end:/\}/,subLanguage:"ruby"}}]}}return KX=e,KX}var XX,OMe;function X5n(){if(OMe)return XX;OMe=1;function e(s){return s?typeof s=="string"?s:s.source:null}function n(s){return i("(",s,")*")}function r(s){return i("(",s,")?")}function i(...s){return s.map(c=>e(c)).join("")}function o(...s){return"("+s.map(c=>e(c)).join("|")+")"}function a(s){const l={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},c={literal:["true","false","undefined","null"]},u=/""|"[^"]+"/,d=/''|'[^']+'/,f=/\[\]|\[[^\]]+\]/,p=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,h=/(\.|\/)/,g=o(u,d,f,p),v=i(r(/\.|\.\/|\//),g,n(i(h,g))),y=i("(",f,"|",p,")(?==)"),_={begin:v,lexemes:/[\w.\/]+/},S=s.inherit(_,{keywords:c}),b={begin:/\(/,end:/\)/},E={className:"attr",begin:y,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[s.NUMBER_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,S,b]}}},w={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},C={contains:[s.NUMBER_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,w,E,S,b],returnEnd:!0},x=s.inherit(_,{className:"name",keywords:l,starts:s.inherit(C,{end:/\)/})});b.contains=[x];const T=s.inherit(_,{keywords:l,className:"name",starts:s.inherit(C,{end:/\}\}/})}),R=s.inherit(_,{keywords:l,className:"name"}),O=s.inherit(_,{className:"name",keywords:l,starts:s.inherit(C,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},s.COMMENT(/\{\{!--/,/--\}\}/),s.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[T],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[R]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[T]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[R]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[O]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[O]}]}}return XX=a,XX}var QX,RMe;function Q5n(){if(RMe)return QX;RMe=1;function e(n){const r={variants:[n.COMMENT("--","$"),n.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={className:"meta",begin:/\{-#/,end:/#-\}/},o={className:"meta",begin:"^#",end:"$"},a={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},s={begin:"\\(",end:"\\)",illegal:'"',contains:[i,o,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},n.inherit(n.TITLE_MODE,{begin:"[_a-z][\\w']*"}),r]},l={begin:/\{/,end:/\}/,contains:s.contains};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[s,r],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[s,r],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[a,s,r]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[i,a,s,l,r]},{beginKeywords:"default",end:"$",contains:[a,s,r]},{beginKeywords:"infix infixl infixr",end:"$",contains:[n.C_NUMBER_MODE,r]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[a,n.QUOTE_STRING_MODE,r]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},i,o,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,a,n.inherit(n.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),r,{begin:"->|<-"}]}}return QX=e,QX}var ZX,IMe;function Z5n(){if(IMe)return ZX;IMe=1;function e(n){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:/\W\}/}]},n.QUOTE_STRING_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"type",begin:":[ ]*",end:"[^A-Za-z0-9_ \\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ ]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[n.TITLE_MODE]},{className:"class",beginKeywords:"abstract",end:"[\\{$]",contains:[{className:"type",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"from +",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"to +",end:"\\W",excludeBegin:!0,excludeEnd:!0},n.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"class",begin:"\\b(class|interface) +",end:"[\\{$]",excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:"\\b(extends|implements) +",keywords:"extends implements",contains:[{className:"type",begin:n.IDENT_RE,relevance:0}]},n.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[n.TITLE_MODE]}],illegal:/<\//}}return ZX=e,ZX}var JX,NMe;function J5n(){if(NMe)return JX;NMe=1;function e(n){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[n.BACKSLASH_ESCAPE]},n.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[n.inherit(n.QUOTE_STRING_MODE,{className:"meta-string"}),n.NUMBER_MODE,n.C_NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},n.NUMBER_MODE,n.C_NUMBER_MODE]}}return JX=e,JX}var eQ,MMe;function e6n(){if(MMe)return eQ;MMe=1;function e(l){return l?typeof l=="string"?l:l.source:null}function n(l){return i("(",l,")*")}function r(l){return i("(",l,")?")}function i(...l){return l.map(u=>e(u)).join("")}function o(...l){return"("+l.map(u=>e(u)).join("|")+")"}function a(l){const c={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},u={literal:["true","false","undefined","null"]},d=/""|"[^"]+"/,f=/''|'[^']+'/,p=/\[\]|\[[^\]]+\]/,h=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,g=/(\.|\/)/,v=o(d,f,p,h),y=i(r(/\.|\.\/|\//),v,n(i(g,v))),_=i("(",p,"|",h,")(?==)"),S={begin:y,lexemes:/[\w.\/]+/},b=l.inherit(S,{keywords:u}),E={begin:/\(/,end:/\)/},w={className:"attr",begin:_,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[l.NUMBER_MODE,l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,b,E]}}},C={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},x={contains:[l.NUMBER_MODE,l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,C,w,b,E],returnEnd:!0},T=l.inherit(S,{className:"name",keywords:c,starts:l.inherit(x,{end:/\)/})});E.contains=[T];const R=l.inherit(S,{keywords:c,className:"name",starts:l.inherit(x,{end:/\}\}/})}),O=l.inherit(S,{keywords:c,className:"name"}),M=l.inherit(S,{className:"name",keywords:c,starts:l.inherit(x,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},l.COMMENT(/\{\{!--/,/--\}\}/),l.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[R],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[O]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[R]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[O]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[M]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[M]}]}}function s(l){const c=a(l);return c.name="HTMLbars",l.getLanguage("handlebars")&&(c.disableAutodetect=!0),c}return eQ=s,eQ}var tQ,PMe;function t6n(){if(PMe)return tQ;PMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o="HTTP/(2|1\\.[01])",s={className:"attribute",begin:n("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},l=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+o+" \\d{3})",end:/$/,contains:[{className:"meta",begin:o},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:l}},{begin:"(?=^[A-Z]+ (.*?) "+o+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:o},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:l}},i.inherit(s,{relevance:0})]}}return tQ=r,tQ}var nQ,AMe;function n6n(){if(AMe)return nQ;AMe=1;function e(n){var r="a-zA-Z_\\-!.?+*=<>&#'",i="["+r+"]["+r+"0-9/;:]*",o={$pattern:i,"builtin-name":"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},a="[-+]?\\d+(\\.\\d+)?",s={begin:i,relevance:0},l={className:"number",begin:a,relevance:0},c=n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),u=n.COMMENT(";","$",{relevance:0}),d={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},f={begin:"[\\[\\{]",end:"[\\]\\}]"},p={className:"comment",begin:"\\^"+i},h=n.COMMENT("\\^\\{","\\}"),g={className:"symbol",begin:"[:]{1,2}"+i},v={begin:"\\(",end:"\\)"},y={endsWithParent:!0,relevance:0},_={className:"name",relevance:0,keywords:o,begin:i,starts:y},S=[v,c,p,h,u,g,f,l,d,s];return v.contains=[n.COMMENT("comment",""),_,y],y.contains=S,f.contains=S,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[n.SHEBANG(),v,c,p,h,u,g,f,l,d]}}return nQ=e,nQ}var rQ,DMe;function r6n(){if(DMe)return rQ;DMe=1;function e(n){const r="\\[",i="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:r,end:i}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:r,end:i,contains:["self"]}]}}return rQ=e,rQ}var iQ,kMe;function i6n(){if(kMe)return iQ;kMe=1;function e(a){return a?typeof a=="string"?a:a.source:null}function n(a){return r("(?=",a,")")}function r(...a){return a.map(l=>e(l)).join("")}function i(...a){return"("+a.map(l=>e(l)).join("|")+")"}function o(a){const s={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},l=a.COMMENT();l.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const c={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},u={className:"literal",begin:/\bon|off|true|false|yes|no\b/},d={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},f={begin:/\[/,end:/\]/,contains:[l,u,c,d,s,"self"],relevance:0},v=i(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/),y=r(v,"(\\s*\\.\\s*",v,")*",n(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[l,{className:"section",begin:/\[+/,end:/\]+/},{begin:y,className:"attr",starts:{end:/$/,contains:[l,f,u,c,d,s]}}]}}return iQ=o,iQ}var oQ,LMe;function o6n(){if(LMe)return oQ;LMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={className:"params",begin:"\\(",end:"\\)"},a=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,l={className:"number",variants:[{begin:n(/\b\d+/,/\.(\d*)/,s,a)},{begin:n(/\b\d+/,s,a)},{begin:n(/\.\d+/,s,a)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[i.inherit(i.APOS_STRING_MODE,{className:"string",relevance:0}),i.inherit(i.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[i.UNDERSCORE_TITLE_MODE,o]},i.COMMENT("!","$",{relevance:0}),i.COMMENT("begin_doc","end_doc",{relevance:10}),l]}}return oQ=r,oQ}var aQ,$Me;function a6n(){if($Me)return aQ;$Me=1;function e(n){const r="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",i="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",o="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",le="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",ur="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",qr="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",zi="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",Qo="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",gr=le+ur,Oo=zi,Pa="null true false nil ",Er={className:"number",begin:n.NUMBER_RE,relevance:0},nr={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},lr={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},Kr={className:"comment",begin:"//",end:"$",relevance:0,contains:[n.PHRASAL_WORDS_MODE,lr]},Pi={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[n.PHRASAL_WORDS_MODE,lr]},Dl={variants:[Kr,Pi]},kl={$pattern:r,keyword:o,built_in:gr,class:Oo,literal:Pa},Ro={begin:"\\.\\s*"+n.UNDERSCORE_IDENT_RE,keywords:kl,relevance:0},Is={className:"type",begin:":[ \\t]*("+Qo.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Du={className:"variable",keywords:kl,begin:r,relevance:0,contains:[Is,Ro]},ku=i+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:kl,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:ku,end:"\\)$",returnBegin:!0,keywords:kl,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:r,built_in:qr},begin:ku,end:"\\(",returnBegin:!0,excludeEnd:!0},Ro,Du,nr,Er,Dl]},Is,Ro,Du,nr,Er,Dl]}}return aQ=e,aQ}var sQ,FMe;function s6n(){if(FMe)return sQ;FMe=1;var e="[0-9](_*[0-9])*",n=`\\.(${e})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${e})((${n})|\\.)?|(${n}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(a){var s="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",l=s+"(<"+s+"(\\s*,\\s*"+s+")*>)?",c="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",u={className:"meta",begin:"@"+s,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const d=i;return{name:"Java",aliases:["jsp"],keywords:c,illegal:/<\/|#/,contains:[a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,end:/[{;=]/,keywords:c,contains:[{beginKeywords:"record"},{begin:a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"("+l+"\\s+)+"+a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:c,contains:[{begin:a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[u,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,d,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},d,u]}}return sQ=o,sQ}var lQ,BMe;function l6n(){if(BMe)return lQ;BMe=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],i=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],o=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","module","global"],l=[].concat(a,s,i,o);function c(p){return p?typeof p=="string"?p:p.source:null}function u(p){return d("(?=",p,")")}function d(...p){return p.map(g=>c(g)).join("")}function f(p){const h=(z,{after:D})=>{const B="</"+z[0].slice(1);return z.input.indexOf(B,D)!==-1},g=e,v={begin:"<>",end:"</>"},y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(z,D)=>{const B=z[0].length+z.index,Y=z.input[B];if(Y==="<"){D.ignoreMatch();return}Y===">"&&(h(z,{after:B})||D.ignoreMatch())}},_={$pattern:e,keyword:n,literal:r,built_in:l},S="[0-9](_?[0-9])*",b=`\\.(${S})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",w={className:"number",variants:[{begin:`(\\b(${E})((${b})|\\.)?|(${b}))[eE][+-]?(${S})\\b`},{begin:`\\b(${E})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:_,contains:[]},x={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},T={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,C],subLanguage:"css"}},R={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,C]},M={className:"comment",variants:[p.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},P=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,x,T,R,w,p.REGEXP_MODE];C.contains=P.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat(P)});const k=[].concat(M,C.contains),$=k.concat([{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(k)}]),U={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:$};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:$},illegal:/#(?![$_A-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,x,T,R,M,w,{begin:d(/[{,\n]\s*/,u(d(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,g+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:g+u("\\s*:"),relevance:0}]},{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[M,p.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:$}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:v.begin,end:v.end},{begin:y.begin,"on:begin":y.isTrulyOpeningTag,end:y.end}],subLanguage:"xml",contains:[{begin:y.begin,end:y.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:_,contains:["self",p.inherit(p.TITLE_MODE,{begin:g}),U],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[U,p.inherit(p.TITLE_MODE,{begin:g})]},{variants:[{begin:"\\."+g},{begin:"\\$"+g}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},p.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[p.inherit(p.TITLE_MODE,{begin:g}),"self",U]},{begin:"(get|set)\\s+(?="+g+"\\()",end:/\{/,keywords:"get set",contains:[p.inherit(p.TITLE_MODE,{begin:g}),{begin:/\(\)/},U]},{begin:/\$[(.]/}]}}return lQ=f,lQ}var cQ,jMe;function c6n(){if(jMe)return cQ;jMe=1;function e(n){const i={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},o={className:"function",begin:/:[\w\-.]+/,relevance:0},a={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},s={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[n.HASH_COMMENT_MODE,n.QUOTE_STRING_MODE,s,o,a,i]}}return cQ=e,cQ}var uQ,UMe;function u6n(){if(UMe)return uQ;UMe=1;function e(n){const r={literal:"true false null"},i=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],o=[n.QUOTE_STRING_MODE,n.C_NUMBER_MODE],a={end:",",endsWithParent:!0,excludeEnd:!0,contains:o,keywords:r},s={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE],illegal:"\\n"},n.inherit(a,{begin:/:/})].concat(i),illegal:"\\S"},l={begin:"\\[",end:"\\]",contains:[n.inherit(a)],illegal:"\\S"};return o.push(s,l),i.forEach(function(c){o.push(c)}),{name:"JSON",contains:o,keywords:r,illegal:"\\S"}}return uQ=e,uQ}var dQ,HMe;function d6n(){if(HMe)return dQ;HMe=1;function e(n){var r="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",i=["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],o=["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],a=["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"],s={$pattern:r,keyword:i,literal:o,built_in:a},l={keywords:s,illegal:/<\//},c={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},u={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},d={className:"subst",begin:/\$\(/,end:/\)/,keywords:s},f={className:"variable",begin:"\\$"+r},p={className:"string",contains:[n.BACKSLASH_ESCAPE,d,f],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},h={className:"string",contains:[n.BACKSLASH_ESCAPE,d,f],begin:"`",end:"`"},g={className:"meta",begin:"@"+r},v={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return l.name="Julia",l.contains=[c,u,p,h,g,v,n.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],d.contains=l.contains,l}return dQ=e,dQ}var fQ,zMe;function f6n(){if(zMe)return fQ;zMe=1;function e(n){return{name:"Julia REPL",contains:[{className:"meta",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"},aliases:["jldoctest"]}]}}return fQ=e,fQ}var pQ,VMe;function p6n(){if(VMe)return pQ;VMe=1;var e="[0-9](_*[0-9])*",n=`\\.(${e})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${e})((${n})|\\.)?|(${n}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(a){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},l={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},c={className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"@"},u={className:"subst",begin:/\$\{/,end:/\}/,contains:[a.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+a.UNDERSCORE_IDENT_RE},f={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,u]},{begin:"'",end:"'",illegal:/\n/,contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[a.BACKSLASH_ESCAPE,d,u]}]};u.contains.push(f);const p={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+a.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+a.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[a.inherit(f,{className:"meta-string"})]}]},g=i,v=a.COMMENT("/\\*","\\*/",{contains:[a.C_BLOCK_COMMENT_MODE]}),y={variants:[{className:"type",begin:a.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},_=y;return _.variants[1].contains=[y],y.variants[1].contains=[_],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),a.C_LINE_COMMENT_MODE,v,l,c,p,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[y,a.C_LINE_COMMENT_MODE,v],relevance:0},a.C_LINE_COMMENT_MODE,v,p,h,f,a.C_NUMBER_MODE]},v]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},a.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},p,h]},f,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
||
`},g]}}return pQ=o,pQ}var hQ,GMe;function h6n(){if(GMe)return hQ;GMe=1;function e(n){const r="[a-zA-Z_][\\w.]*",i="<\\?(lasso(script)?|=)",o="\\]|\\?>",a={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=n.COMMENT("<!--","-->",{relevance:0}),l={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},c={className:"meta",begin:"\\[/noprocess|"+i},u={className:"symbol",begin:"'"+r+"'"},d=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.inherit(n.C_NUMBER_MODE,{begin:n.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),n.inherit(n.APOS_STRING_MODE,{illegal:null}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[u]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[n.inherit(n.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:a,contains:[{className:"meta",begin:o,relevance:0,starts:{end:"\\[|"+i,returnEnd:!0,relevance:0,contains:[s]}},l,c,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:a,contains:[{className:"meta",begin:o,relevance:0,starts:{end:"\\[noprocess\\]|"+i,returnEnd:!0,contains:[s]}},l,c].concat(d)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(d)}}return hQ=e,hQ}var gQ,WMe;function g6n(){if(WMe)return gQ;WMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return"("+i.map(a=>e(a)).join("|")+")"}function r(i){const o=n(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(P=>P+"(?![a-zA-Z@:_])")),a=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(P=>P+"(?![a-zA-Z:_])").join("|")),s=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],l=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],c={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:o},{endsParent:!0,begin:a},{endsParent:!0,variants:l},{endsParent:!0,relevance:0,variants:s}]},u={className:"params",relevance:0,begin:/#+\d?/},d={variants:l},f={className:"built_in",relevance:0,begin:/[$&^_]/},p={className:"meta",begin:"% !TeX",end:"$",relevance:10},h=i.COMMENT("%","$",{relevance:0}),g=[c,u,d,f,p,h],v={begin:/\{/,end:/\}/,relevance:0,contains:["self",...g]},y=i.inherit(v,{relevance:0,endsParent:!0,contains:[v,...g]}),_={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[v,...g]},S={begin:/\s+/,relevance:0},b=[y],E=[_],w=function(P,k){return{contains:[S],starts:{relevance:0,contains:P,starts:k}}},C=function(P,k){return{begin:"\\\\"+P+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+P},relevance:0,contains:[S],starts:k}},x=function(P,k){return i.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+P+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},w(b,k))},T=(P="string")=>i.END_SAME_AS_BEGIN({className:P,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),R=function(P){return{className:"string",end:"(?=\\\\end\\{"+P+"\\})"}},O=(P="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:P,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),M=[...["verb","lstinline"].map(P=>C(P,{contains:[T()]})),C("mint",w(b,{contains:[T()]})),C("mintinline",w(b,{contains:[O(),T()]})),C("url",{contains:[O("link"),O("link")]}),C("hyperref",{contains:[O("link")]}),C("href",w(E,{contains:[O("link")]})),...[].concat(...["","\\*"].map(P=>[x("verbatim"+P,R("verbatim"+P)),x("filecontents"+P,w(b,R("filecontents"+P))),...["","B","L"].map(k=>x(k+"Verbatim"+P,w(E,R(k+"Verbatim"+P))))])),x("minted",w(E,w(b,R("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...M,...g]}}return gQ=r,gQ}var mQ,YMe;function m6n(){if(YMe)return mQ;YMe=1;function e(n){return{name:"LDIF",contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},n.HASH_COMMENT_MODE]}}return mQ=e,mQ}var vQ,qMe;function v6n(){if(qMe)return vQ;qMe=1;function e(n){return{name:"Leaf",contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:/ \{/,returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}return vQ=e,vQ}var yQ,KMe;function y6n(){if(KMe)return yQ;KMe=1;const e=c=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],a=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse(),s=i.concat(o);function l(c){const u=e(c),d=s,f="and or not only",p="[\\w-]+",h="("+p+"|@\\{"+p+"\\})",g=[],v=[],y=function(M){return{className:"string",begin:"~?"+M+".*?"+M}},_=function(M,P,k){return{className:M,begin:P,relevance:k}},S={$pattern:/[a-z-]+/,keyword:f,attribute:r.join(" ")},b={begin:"\\(",end:"\\)",contains:v,keywords:S,relevance:0};v.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,y("'"),y('"'),c.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},u.HEXCOLOR,b,_("variable","@@?"+p,10),_("variable","@\\{"+p+"\\}"),_("built_in","~?`[^`]*?`"),{className:"attribute",begin:p+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},u.IMPORTANT);const E=v.concat({begin:/\{/,end:/\}/,contains:g}),w={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(v)},C={begin:h+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute",begin:"\\b("+a.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:v}}]},x={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:S,returnEnd:!0,contains:v,relevance:0}},T={className:"variable",variants:[{begin:"@"+p+"\\s*:",relevance:15},{begin:"@"+p}],starts:{end:"[;}]",returnEnd:!0,contains:E}},R={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:h,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,w,_("keyword","all\\b"),_("variable","@\\{"+p+"\\}"),{begin:"\\b("+n.join("|")+")\\b",className:"selector-tag"},_("selector-tag",h+"%?",0),_("selector-id","#"+h),_("selector-class","\\."+h,0),_("selector-tag","&",0),u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:"::("+o.join("|")+")"},{begin:"\\(",end:"\\)",contains:E},{begin:"!important"}]},O={begin:p+`:(:)?(${d.join("|")})`,returnBegin:!0,contains:[R]};return g.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,x,T,O,C,R),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:g}}return yQ=l,yQ}var _Q,XMe;function _6n(){if(XMe)return _Q;XMe=1;function e(n){var r="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",i="\\|[^]*?\\|",o="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",a={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:o,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+o+" +"+o,end:"\\)"}]},l=n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),c=n.COMMENT(";","$",{relevance:0}),u={begin:"\\*",end:"\\*"},d={className:"symbol",begin:"[:&]"+r},f={begin:r,relevance:0},p={begin:i},h={begin:"\\(",end:"\\)",contains:["self",a,l,s,f]},g={contains:[s,l,u,d,h,f],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+i}]},v={variants:[{begin:"'"+r},{begin:"#'"+r+"(::"+r+")*"}]},y={begin:"\\(\\s*",end:"\\)"},_={endsWithParent:!0,relevance:0};return y.contains=[{className:"name",variants:[{begin:r,relevance:0},{begin:i}]},_],_.contains=[g,v,y,a,s,l,c,u,d,p,f],{name:"Lisp",illegal:/\S/,contains:[s,n.SHEBANG(),a,l,c,g,v,y,f]}}return _Q=e,_Q}var bQ,QMe;function b6n(){if(QMe)return bQ;QMe=1;function e(n){const r={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},i=[n.C_BLOCK_COMMENT_MODE,n.HASH_COMMENT_MODE,n.COMMENT("--","$"),n.COMMENT("[^:]//","$")],o=n.inherit(n.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),a=n.inherit(n.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[r,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[r,a,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE,o]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[a,o],relevance:0},{beginKeywords:"command on",end:"$",contains:[r,a,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE,o]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE,o].concat(i),illegal:";$|^\\[|^=|&|\\{"}}return bQ=e,bQ}var SQ,ZMe;function S6n(){if(ZMe)return SQ;ZMe=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],i=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=["arguments","this","super","console","window","document","localStorage","module","global"],s=[].concat(o,a,r,i);function l(c){const u=["npm","print"],d=["yes","no","on","off","it","that","void"],f=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],p={keyword:e.concat(f),literal:n.concat(d),built_in:s.concat(u)},h="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",g=c.inherit(c.TITLE_MODE,{begin:h}),v={className:"subst",begin:/#\{/,end:/\}/,keywords:p},y={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:p},_=[c.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[c.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[c.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[c.BACKSLASH_ESCAPE,v,y]},{begin:/"/,end:/"/,contains:[c.BACKSLASH_ESCAPE,v,y]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[v,c.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+h},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];v.contains=_;const S={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:p,contains:["self"].concat(_)}]},b={begin:"(#=>|=>|\\|>>|-?->|!->)"};return{name:"LiveScript",aliases:["ls"],keywords:p,illegal:/\/\*/,contains:_.concat([c.COMMENT("\\/\\*","\\*\\/"),c.HASH_COMMENT_MODE,b,{className:"function",contains:[g,S],returnBegin:!0,variants:[{begin:"("+h+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+h+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+h+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[g]},g]},{begin:h+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return SQ=l,SQ}var EQ,JMe;function E6n(){if(JMe)return EQ;JMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o=/([-a-zA-Z$._][\w$.-]*)/,a={className:"type",begin:/\bi\d+(?=\s|\b)/},s={className:"operator",relevance:0,begin:/=/},l={className:"punctuation",relevance:0,begin:/,/},c={className:"number",variants:[{begin:/0[xX][a-fA-F0-9]+/},{begin:/-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},u={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},d={className:"variable",variants:[{begin:n(/%/,o)},{begin:/%\d+/},{begin:/#\d+/}]},f={className:"title",variants:[{begin:n(/@/,o)},{begin:/@\d+/},{begin:n(/!/,o)},{begin:n(/!\d+/,o)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[a,i.COMMENT(/;\s*$/,null,{relevance:0}),i.COMMENT(/;/,/$/),i.QUOTE_STRING_MODE,{className:"string",variants:[{begin:/"/,end:/[^\\]"/}]},f,l,s,d,u,c]}}return EQ=r,EQ}var CQ,e2e;function C6n(){if(e2e)return CQ;e2e=1;function e(n){var r={className:"subst",begin:/\\[tn"\\]/},i={className:"string",begin:'"',end:'"',contains:[r]},o={className:"number",relevance:0,begin:n.C_NUMBER_RE},a={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},s={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[i,{className:"comment",variants:[n.COMMENT("//","$"),n.COMMENT("/\\*","\\*/")],relevance:0},o,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},s,a,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return CQ=e,CQ}var wQ,t2e;function w6n(){if(t2e)return wQ;t2e=1;function e(n){const r="\\[=*\\[",i="\\]=*\\]",o={begin:r,end:i,contains:["self"]},a=[n.COMMENT("--(?!"+r+")","$"),n.COMMENT("--"+r,i,{contains:[o],relevance:10})];return{name:"Lua",keywords:{$pattern:n.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[n.inherit(n.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:r,end:i,contains:[o],relevance:5}])}}return wQ=e,wQ}var xQ,n2e;function x6n(){if(n2e)return xQ;n2e=1;function e(n){const r={className:"variable",variants:[{begin:"\\$\\("+n.UNDERSCORE_IDENT_RE+"\\)",contains:[n.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},i={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,r]},o={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r]},a={begin:"^"+n.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,"meta-keyword":".PHONY"}},l={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[n.HASH_COMMENT_MODE,r,i,o,a,s,l]}}return xQ=e,xQ}var TQ,r2e;function T6n(){if(r2e)return TQ;r2e=1;const e=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Apply","ApplySides","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayQ","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstronomicalData","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomList","AtomQ","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTracks","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","BabyMonsterGroupB","Back","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginFrontEndInteractionPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","Binomial","BinomialDistribution","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockMap","BlockRandom","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CardinalBSplineBasis","CarlemanLinearize","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalData","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","ClosingSaveDialog","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledFunction","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteKaryTree","CompletionsListPacket","Complex","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","ConformAudio","ConformImages","Congruent","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegionBox","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnesWindow","ConoverTest","ConsoleMessage","ConsoleMessagePacket","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","Convergents","ConversionOptions","ConversionRules","ConvertToBitmapPacket","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexPolygonQ","ConvexPolyhedronQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyTag","CopyToClipboard","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePalettePacket","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","Cumulant","CumulantGeneratingFunction","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentlySpeakingPacket","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylindricalDecomposition","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFormatTypeForStyle","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayFlushImagePacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplaySetSizePacket","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DragAndDrop","DrawEdges","DrawFrontFaces","DrawHighlighted","Drop","DropoutLayer","DSolve","DSolveValue","Dt","DualLinearProgramming","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoFunction","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EnableConsolePrintPacket","Enabled","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndFrontEndInteractionPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedProcess","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPostmanTour","FindProcessParameters","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlipView","Floor","FlowPolynomial","FlushPrintOutputPacket","Fold","FoldList","FoldPair","FoldPairList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FractionalBrownianMotionProcess","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceOpacity","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionDomain","FunctionExpand","FunctionInterpolation","FunctionPeriod","FunctionRange","FunctionSpace","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedCell","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoPath","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetBoundingBoxSizePacket","GetContext","GetEnvironment","GetFileName","GetFrontEndOptionsDataPacket","GetLinebreakInformationPacket","GetMenusPacket","GetPageBreakInformationPacket","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","Grad","Gradient","GradientFilter","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphElementData","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","HeaderSize","HeaderStyle","Heads","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","Here","HermiteDecomposition","HermiteH","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IgnoreCase","IgnoreDiacritics","IgnorePunctuation","IgnoreSpellCheck","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImagingDevice","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","Interactive","InteractiveTradingChart","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LibraryDataType","LibraryFunction","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseID","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeContainsQ","MoleculeEquivalentQ","MoleculeGraph","MoleculeModify","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeValue","Moment","Momentary","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborGraph","NearestTo","NebulaData","NeedCurrentFrontEndPackagePacket","NeedCurrentFrontEndSymbolsPacket","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestWhile","NestWhileList","NetAppend","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookCreateReturnObject","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookFindReturnObject","NotebookGet","NotebookGetLayoutInformationPacket","NotebookGetMisspellingsPacket","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookOpenReturnObject","NotebookPath","NotebookPrint","NotebookPut","NotebookPutReturnObject","NotebookRead","NotebookResetGeneratedCells","Notebooks","NotebookSave","NotebookSaveAs","NotebookSelection","NotebookSetupLayoutInformationPacket","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhysicalSystemData","Pi","Pick","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderReplace","Plain","PlanarAngle","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointFigureChart","PointLegend","PointSize","PoissonConsulDistribution","PoissonDistribution","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","Projection","Prolog","PromptForm","ProofObject","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","Quit","Quotient","QuotientRemainder","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomChoice","RandomColor","RandomComplex","RandomEntity","RandomFunction","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecognitionPrior","RecognitionThreshold","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionDifference","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionFillingStyle","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteConnect","RemoteConnectionObject","RemoteFile","RemoteRun","RemoteRunProcess","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetMenusPacket","ResetScheduledTask","ReshapeLayer","Residue","ResizeLayer","Resolve","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RiskAchievementImportance","RiskReductionImportance","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionDuplicateCell","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectionSetStyle","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetBoxFormNamesPacket","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetEvaluationNotebook","SetFileDate","SetFileLoadingContext","SetNotebookStatusLine","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetSpeechParametersPacket","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","SetValue","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SnDispersion","Snippet","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolidAngle","SolidData","SolidRegionQ","Solve","SolveAlways","SolveDelayed","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SpatialGraphDistribution","SpatialMedian","SpatialTransformationLayer","Speak","SpeakerMatchQ","SpeakTextPacket","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","SpellingSuggestionsPacket","Sphere","SphereBox","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripWrapperBoxes","StrokeForm","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTracks","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxBackground","TableViewBoxItemSize","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThompsonGroupTh","Thread","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRules","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","TreeForm","TreeGraph","TreeGraphQ","TreePlot","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValidationLength","ValidationSet","Value","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceTest","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerboseConvertToPostScriptPacket","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","Version","VersionedPreferences","VersionNumber","VertexAdd","VertexCapacity","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoPause","VideoPlay","VideoQ","VideoStop","VideoStream","VideoStreams","VideoTimeSeries","VideoTracks","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$ConditionHold","$ConfiguredKernels","$Context","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultLocalBase","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$PublisherID","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterWolframID","$RequesterWolframUUID","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function n(s){return s?typeof s=="string"?s:s.source:null}function r(s){return i("(",s,")?")}function i(...s){return s.map(c=>n(c)).join("")}function o(...s){return"("+s.map(c=>n(c)).join("|")+")"}function a(s){const l=/([2-9]|[1-2]\d|[3][0-5])\^\^/,c=/(\w*\.\w+|\w+\.\w*|\w+)/,u=/(\d*\.\d+|\d+\.\d*|\d+)/,d=o(i(l,c),u),h=o(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),g=/\*\^[+-]?\d+/,y={className:"number",relevance:0,begin:i(d,r(h),r(g))},_=/[a-zA-Z$][a-zA-Z0-9$]*/,S=new Set(e),b={variants:[{className:"builtin-symbol",begin:_,"on:begin":(O,M)=>{S.has(O[0])||M.ignoreMatch()}},{className:"symbol",relevance:0,begin:_}]},E={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},w={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},C={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},x={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},T={className:"brace",relevance:0,begin:/[[\](){}]/},R={className:"message-name",relevance:0,begin:i("::",_)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[s.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),C,x,R,b,E,s.QUOTE_STRING_MODE,y,w,T]}}return TQ=a,TQ}var OQ,i2e;function O6n(){if(i2e)return OQ;i2e=1;function e(n){var r="('|\\.')+",i={relevance:0,contains:[{begin:r}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[n.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:i},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+r,relevance:0},{className:"number",begin:n.C_NUMBER_RE,relevance:0,starts:i},{className:"string",begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE,{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:i},{className:"string",begin:'"',end:'"',contains:[n.BACKSLASH_ESCAPE,{begin:'""'}],starts:i},n.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),n.COMMENT("%","$")]}}return OQ=e,OQ}var RQ,o2e;function R6n(){if(o2e)return RQ;o2e=1;function e(n){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},n.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return RQ=e,RQ}var IQ,a2e;function I6n(){if(a2e)return IQ;a2e=1;function e(n){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return 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 CBG 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 HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS 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 Mayatomr 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",illegal:"</",contains:[n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]}}return IQ=e,IQ}var NQ,s2e;function N6n(){if(s2e)return NQ;s2e=1;function e(n){const r={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},i=n.COMMENT("%","$"),o={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},a=n.inherit(n.APOS_STRING_MODE,{relevance:0}),s=n.inherit(n.QUOTE_STRING_MODE,{relevance:0}),l={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return s.contains=s.contains.slice(),s.contains.push(l),{name:"Mercury",aliases:["m","moo"],keywords:r,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},i,n.C_BLOCK_COMMENT_MODE,o,n.NUMBER_MODE,a,s,{begin:/:-/},{begin:/\.$/}]}}return NQ=e,NQ}var MQ,l2e;function M6n(){if(l2e)return MQ;l2e=1;function e(n){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+n.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $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 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},n.COMMENT("[;#](?!\\s*$)","$"),n.C_BLOCK_COMMENT_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return MQ=e,MQ}var PQ,c2e;function P6n(){if(c2e)return PQ;c2e=1;function e(n){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[n.COMMENT("::","$")]}}return PQ=e,PQ}var AQ,u2e;function A6n(){if(u2e)return AQ;u2e=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(...o){return o.map(s=>e(s)).join("")}function r(...o){return"("+o.map(s=>e(s)).join("|")+")"}function i(o){const a=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],s=/[dualxmsipngr]{0,12}/,l={$pattern:/[\w.]+/,keyword:a.join(" ")},c={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:l},u={begin:/->\{/,end:/\}/},d={variants:[{begin:/\$\d/},{begin:n(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},f=[o.BACKSLASH_ESCAPE,c,d],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(y,_,S="\\1")=>{const b=S==="\\1"?S:n(S,_);return n(n("(?:",y,")"),_,/(?:\\.|[^\\\/])*?/,b,/(?:\\.|[^\\\/])*?/,S,s)},g=(y,_,S)=>n(n("(?:",y,")"),_,/(?:\\.|[^\\\/])*?/,S,s),v=[d,o.HASH_COMMENT_MODE,o.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),u,{className:"string",contains:f,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[o.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+o.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[o.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:h("s|tr|y",r(...p))},{begin:h("s|tr|y","\\(","\\)")},{begin:h("s|tr|y","\\[","\\]")},{begin:h("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:g("(?:m|qr)?",/\//,/\//)},{begin:g("m|qr",r(...p),/\1/)},{begin:g("m|qr",/\(/,/\)/)},{begin:g("m|qr",/\[/,/\]/)},{begin:g("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[o.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=v,u.contains=v,{name:"Perl",aliases:["pl","pm"],keywords:l,contains:v}}return AQ=i,AQ}var DQ,d2e;function D6n(){if(d2e)return DQ;d2e=1;function e(n){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return DQ=e,DQ}var kQ,f2e;function k6n(){if(f2e)return kQ;f2e=1;function e(n){const r={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},n.NUMBER_MODE]};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw import",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},illegal:/\/\*/,contains:[n.COMMENT("#rem","#end"),n.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[n.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[n.UNDERSCORE_TITLE_MODE]},n.QUOTE_STRING_MODE,r]}}return kQ=e,kQ}var LQ,p2e;function L6n(){if(p2e)return LQ;p2e=1;function e(n){const r={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},i="[A-Za-z$_][0-9A-Za-z$_]*",o={className:"subst",begin:/#\{/,end:/\}/,keywords:r},a=[n.inherit(n.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[n.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,o]}]},{className:"built_in",begin:"@__"+n.IDENT_RE},{begin:"@"+n.IDENT_RE},{begin:n.IDENT_RE+"\\\\"+n.IDENT_RE}];o.contains=a;const s=n.inherit(n.TITLE_MODE,{begin:i}),l="(\\(.*\\)\\s*)?\\B[-=]>",c={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:r,contains:["self"].concat(a)}]};return{name:"MoonScript",aliases:["moon"],keywords:r,illegal:/\/\*/,contains:a.concat([n.COMMENT("--","$"),{className:"function",begin:"^\\s*"+i+"\\s*=\\s*"+l,end:"[-=]>",returnBegin:!0,contains:[s,c]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:l,end:"[-=]>",returnBegin:!0,contains:[c]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return LQ=e,LQ}var $Q,h2e;function $6n(){if(h2e)return $Q;h2e=1;function e(n){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,endsWithParent:!0,keywords:{keyword:"all alter analyze and any array as asc begin between binary boolean break bucket build by call case cast cluster collate collection commit connect continue correlate cover create database dataset datastore declare decrement delete derived desc describe distinct do drop each element else end every except exclude execute exists explain fetch first flatten for force from function grant group gsi having if ignore ilike in include increment index infer inline inner insert intersect into is join key keys keyspace known last left let letting like limit lsm map mapping matched materialized merge minus namespace nest not number object offset on option or order outer over parse partition password path pool prepare primary private privilege procedure public raw realm reduce rename return returning revoke right role rollback satisfies schema select self semi set show some start statistics string system then to transaction trigger truncate under union unique unknown unnest unset update upsert use user using validate value valued values via view when where while with within work xor",literal:"true false null missing|5",built_in:"array_agg array_append array_concat array_contains array_count array_distinct array_ifnull array_length array_max array_min array_position array_prepend array_put array_range array_remove array_repeat array_replace array_reverse array_sort array_sum avg count max min sum greatest least ifmissing ifmissingornull ifnull missingif nullif ifinf ifnan ifnanorinf naninf neginfif posinfif clock_millis clock_str date_add_millis date_add_str date_diff_millis date_diff_str date_part_millis date_part_str date_trunc_millis date_trunc_str duration_to_str millis str_to_millis millis_to_str millis_to_utc millis_to_zone_name now_millis now_str str_to_duration str_to_utc str_to_zone_name decode_json encode_json encoded_size poly_length base64 base64_encode base64_decode meta uuid abs acos asin atan atan2 ceil cos degrees e exp ln log floor pi power radians random round sign sin sqrt tan trunc object_length object_names object_pairs object_inner_pairs object_values object_inner_values object_add object_put object_remove object_unwrap regexp_contains regexp_like regexp_position regexp_replace contains initcap length lower ltrim position repeat replace rtrim split substr title trim upper isarray isatom isboolean isnumber isobject isstring type toarray toatom toboolean tonumber toobject tostring"},contains:[{className:"string",begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[n.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE],relevance:2},n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE]},n.C_BLOCK_COMMENT_MODE]}}return $Q=e,$Q}var FQ,g2e;function F6n(){if(g2e)return FQ;g2e=1;function e(n){const r={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/\}/},{begin:/[$@]/+n.UNDERSCORE_IDENT_RE}]},i={endsWithParent:!0,keywords:{$pattern:"[a-z/_]+",literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[n.HASH_COMMENT_MODE,{className:"string",contains:[n.BACKSLASH_ESCAPE,r],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[r]},{className:"regexp",contains:[n.BACKSLASH_ESCAPE,r],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},r]};return{name:"Nginx config",aliases:["nginxconf"],contains:[n.HASH_COMMENT_MODE,{begin:n.UNDERSCORE_IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\{/,contains:[{className:"section",begin:n.UNDERSCORE_IDENT_RE}],relevance:0},{begin:n.UNDERSCORE_IDENT_RE+"\\s",end:";|\\{",returnBegin:!0,contains:[{className:"attribute",begin:n.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}]"}}return FQ=e,FQ}var BQ,m2e;function B6n(){if(m2e)return BQ;m2e=1;function e(n){return{name:"Nim",keywords:{keyword:"addr and as asm bind block break case cast const continue converter discard distinct div do elif else end enum except export finally for from func generic if import in include interface is isnot iterator let macro method mixin mod nil not notin object of or out proc ptr raise ref return shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float float32 float64 bool char string cstring pointer expr stmt void auto any range array openarray varargs seq set clong culong cchar cschar cshort cint csize clonglong cfloat cdouble clongdouble cuchar cushort cuint culonglong cstringarray semistatic"},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},n.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},n.HASH_COMMENT_MODE]}}return BQ=e,BQ}var jQ,v2e;function j6n(){if(v2e)return jQ;v2e=1;function e(n){const r={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},i={className:"subst",begin:/\$\{/,end:/\}/,keywords:r},o={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]},a={className:"string",contains:[i],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},s=[n.NUMBER_MODE,n.HASH_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,a,o];return i.contains=s,{name:"Nix",aliases:["nixos"],keywords:r,contains:s}}return jQ=e,jQ}var UQ,y2e;function U6n(){if(y2e)return UQ;y2e=1;function e(n){return{name:"Node REPL",contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return UQ=e,UQ}var HQ,_2e;function H6n(){if(_2e)return HQ;_2e=1;function e(n){const r={className:"variable",begin:/\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)/},i={className:"variable",begin:/\$+\{[\w.:-]+\}/},o={className:"variable",begin:/\$+\w+/,illegal:/\(\)\{\}/},a={className:"variable",begin:/\$+\([\w^.:-]+\)/},s={className:"params",begin:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},l={className:"keyword",begin:/!(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|searchparse|searchreplace|system|tempfile|undef|verbose|warning)/},c={className:"meta",begin:/\$(\\[nrt]|\$)/},u={className:"class",begin:/\w+::\w+/},d={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[c,r,i,o,a]};return{name:"NSIS",case_insensitive:!1,keywords:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecShellWait ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileWriteUTF16LE FileSeek FileWrite FileWriteByte FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetKnownFolderPath GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfRtlLanguage IfShellVarContextAll IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText Int64Cmp Int64CmpU Int64Fmt IntCmp IntCmpU IntFmt IntOp IntPtrCmp IntPtrCmpU IntPtrOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadAndSetImage LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestLongPathAware ManifestMaxVersionTested ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PEAddResource PEDllCharacteristics PERemoveResource PESubsysVer Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegMultiStr WriteRegNone WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both bottom bzip2 colored components current custom directory false force hide highest ifdiff ifnewer instfiles lastused leave left license listonly lzma nevershow none normal notset off on open print right show silent silentlog smooth textonly top true try un.components un.custom un.directory un.instfiles un.license uninstConfirm user Win10 Win7 Win8 WinVista zlib"},contains:[n.HASH_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup",end:"$"},d,l,i,o,a,s,u,n.NUMBER_MODE]}}return HQ=e,HQ}var zQ,b2e;function z6n(){if(b2e)return zQ;b2e=1;function e(n){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},i=/[a-zA-Z@][a-zA-Z0-9_]*/,o={$pattern:i,keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},a={$pattern:i,keyword:"@interface @class @protocol @implementation"};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:o,illegal:"</",contains:[r,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.C_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(n.QUOTE_STRING_MODE,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+a.keyword.split(" ").join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:a,contains:[n.UNDERSCORE_TITLE_MODE]},{begin:"\\."+n.UNDERSCORE_IDENT_RE,relevance:0}]}}return zQ=e,zQ}var VQ,S2e;function V6n(){if(S2e)return VQ;S2e=1;function e(n){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},n.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},n.inherit(n.APOS_STRING_MODE,{className:"string",relevance:0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return VQ=e,VQ}var GQ,E2e;function G6n(){if(E2e)return GQ;E2e=1;function e(n){const r={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},i={className:"literal",begin:"false|true|PI|undef"},o={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},a=n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},l={className:"params",begin:"\\(",end:"\\)",contains:["self",o,a,r,i]},c={begin:"[*!#%]",relevance:0},u={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[l,n.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,o,s,a,r,c,u]}}return GQ=e,GQ}var WQ,C2e;function W6n(){if(C2e)return WQ;C2e=1;function e(n){const r={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},i=n.COMMENT(/\{/,/\}/,{relevance:0}),o=n.COMMENT("\\(\\*","\\*\\)",{relevance:10}),a={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},l={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[n.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:r,contains:[a,s]},i,o]};return{name:"Oxygene",case_insensitive:!0,keywords:r,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[i,o,n.C_LINE_COMMENT_MODE,a,s,n.NUMBER_MODE,l,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:r,contains:[a,s,i,o,n.C_LINE_COMMENT_MODE,l]}]}}return WQ=e,WQ}var YQ,w2e;function Y6n(){if(w2e)return YQ;w2e=1;function e(n){const r=n.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[n.COMMENT("^#","$"),n.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[r]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},n.C_NUMBER_MODE]}}return YQ=e,YQ}var qQ,x2e;function q6n(){if(x2e)return qQ;x2e=1;function e(n){const r={className:"variable",begin:/\$[\w\d#@][\w\d_]*/},i={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[n.HASH_COMMENT_MODE,n.NUMBER_MODE,n.QUOTE_STRING_MODE,r,i]}}return qQ=e,qQ}var KQ,T2e;function K6n(){if(T2e)return KQ;T2e=1;function e(n){const r=n.COMMENT("--","$"),i="[a-zA-Z_][a-zA-Z_0-9$]*",o="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",a="<<\\s*"+i+"\\s*>>",s="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",l="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",c="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",u="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",d=u.trim().split(" ").map(function(y){return y.split("|")[0]}).join("|"),f="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",p="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",h="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",v="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(y){return y.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],case_insensitive:!0,keywords:{keyword:s+c+l,built_in:f+p+h},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:n.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+v+")\\s*\\("},{begin:"\\.("+d+")\\b"},{begin:"\\b("+d+")\\s+PATH\\b",keywords:{keyword:"PATH",type:u.replace("PATH ","")}},{className:"type",begin:"\\b("+d+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},n.END_SAME_AS_BEGIN({begin:o,end:o,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,r,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:a,relevance:10}]}}return KQ=e,KQ}var XQ,O2e;function X6n(){if(O2e)return XQ;O2e=1;function e(n){const r={className:"variable",begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$])"},i={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},o={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},a=n.inherit(n.APOS_STRING_MODE,{illegal:null}),s=n.inherit(n.QUOTE_STRING_MODE,{illegal:null,contains:n.QUOTE_STRING_MODE.contains.concat(o)}),l=n.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:n.QUOTE_STRING_MODE.contains.concat(o)}),c={className:"string",contains:[n.BACKSLASH_ESCAPE,i],variants:[n.inherit(a,{begin:"b'",end:"'"}),n.inherit(s,{begin:'b"',end:'"'}),s,a,l]},u={className:"number",variants:[{begin:"\\b0b[01]+(?:_[01]+)*\\b"},{begin:"\\b0o[0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0x[\\da-f]+(?:_[\\da-f]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:e[+-]?\\d+)?"}],relevance:0},d={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 mixed new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException UnhandledMatchError ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Stringable Throwable Traversable WeakReference WeakMap Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php3","php4","php5","php6","php7","php8"],case_insensitive:!0,keywords:d,contains:[n.HASH_COMMENT_MODE,n.COMMENT("//","$",{contains:[i]}),n.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),n.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),i,{className:"keyword",begin:/\$this\b/},r,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},n.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",r,n.C_BLOCK_COMMENT_MODE,c,u]}]},{className:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[n.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[n.UNDERSCORE_TITLE_MODE]},c,u]}}return XQ=e,XQ}var QQ,R2e;function Q6n(){if(R2e)return QQ;R2e=1;function e(n){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return QQ=e,QQ}var ZQ,I2e;function Z6n(){if(I2e)return ZQ;I2e=1;function e(n){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return ZQ=e,ZQ}var JQ,N2e;function J6n(){if(N2e)return JQ;N2e=1;function e(n){const r={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},i={className:"string",begin:'"""',end:'"""',relevance:10},o={className:"string",begin:'"',end:'"',contains:[n.BACKSLASH_ESCAPE]},a={className:"string",begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE],relevance:0},s={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},l={begin:n.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:r,contains:[s,i,o,a,l,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]}}return JQ=e,JQ}var eZ,M2e;function eFn(){if(M2e)return eZ;M2e=1;function e(n){const r=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],i="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",o="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",a={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},s=/\w[\w\d]*((-)[\w\d]+)*/,l={begin:"`[\\s\\S]",relevance:0},c={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},u={className:"literal",begin:/\$(null|true|false)\b/},d={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[l,c,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},f={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},p={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},h=n.inherit(n.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[p]}),g={className:"built_in",variants:[{begin:"(".concat(i,")+(-)[\\w\\d]+")}]},v={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[n.TITLE_MODE]},y={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:s,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[c]}]},_={begin:/using\s/,end:/$/,returnBegin:!0,contains:[d,f,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},S={variants:[{className:"operator",begin:"(".concat(o,")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},b={className:"selector-tag",begin:/@\B/,relevance:0},E={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(a.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},n.inherit(n.TITLE_MODE,{endsParent:!0})]},w=[E,h,l,n.NUMBER_MODE,d,f,g,c,u,b],C={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",w,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return E.contains.unshift(C),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:a,contains:w.concat(v,y,_,S,C)}}return eZ=e,eZ}var tZ,P2e;function tFn(){if(P2e)return tZ;P2e=1;function e(n){return{name:"Processing",keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE]}}return tZ=e,tZ}var nZ,A2e;function nFn(){if(A2e)return nZ;A2e=1;function e(n){return{name:"Python profiler",contains:[n.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[n.C_NUMBER_MODE],relevance:10},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return nZ=e,nZ}var rZ,D2e;function rFn(){if(D2e)return rZ;D2e=1;function e(n){const r={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},i={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},o={begin:/\(/,end:/\)/,relevance:0},a={begin:/\[/,end:/\]/},s={className:"comment",begin:/%/,end:/$/,contains:[n.PHRASAL_WORDS_MODE]},l={className:"string",begin:/`/,end:/`/,contains:[n.BACKSLASH_ESCAPE]},c={className:"string",begin:/0'(\\'|.)/},u={className:"string",begin:/0'\\s/},f=[r,i,o,{begin:/:-/},a,s,n.C_BLOCK_COMMENT_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,l,c,u,n.C_NUMBER_MODE];return o.contains=f,a.contains=f,{name:"Prolog",contains:f.concat([{begin:/\.$/}])}}return rZ=e,rZ}var iZ,k2e;function iFn(){if(k2e)return iZ;k2e=1;function e(n){var r="[ \\t\\f]*",i="[ \\t\\f]+",o=r+"[:=]"+r,a=i,s="("+o+"|"+a+")",l="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",c="([^\\\\:= \\t\\f\\n]|\\\\.)+",u={end:s,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",case_insensitive:!0,illegal:/\S/,contains:[n.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:l+o,relevance:1},{begin:l+a,relevance:0}],contains:[{className:"attr",begin:l,endsParent:!0,relevance:0}],starts:u},{begin:c+s,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:c,endsParent:!0,relevance:0}],starts:u},{className:"attr",relevance:0,begin:c+r+"$"}]}}return iZ=e,iZ}var oZ,L2e;function oFn(){if(L2e)return oZ;L2e=1;function e(n){return{name:"Protocol Buffers",keywords:{keyword:"package import option optional required repeated group oneof",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[n.QUOTE_STRING_MODE,n.NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[n.inherit(n.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return oZ=e,oZ}var aZ,$2e;function aFn(){if($2e)return aZ;$2e=1;function e(n){const r={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},i=n.COMMENT("#","$"),o="([A-Za-z_]|::)(\\w|::)*",a=n.inherit(n.TITLE_MODE,{begin:o}),s={className:"variable",begin:"\\$"+o},l={className:"string",contains:[n.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[i,s,l,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[a,i]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:n.IDENT_RE,endsParent:!0}]},{begin:n.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:n.IDENT_RE},{begin:/\{/,end:/\}/,keywords:r,relevance:0,contains:[l,i,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:n.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},s]}],relevance:0}]}}return aZ=e,aZ}var sZ,F2e;function sFn(){if(F2e)return sZ;F2e=1;function e(n){const r={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},i={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning 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 EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[n.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},n.UNDERSCORE_TITLE_MODE]},r,i]}}return sZ=e,sZ}var lZ,B2e;function lFn(){if(B2e)return lZ;B2e=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(?=",o,")")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const u={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},f={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},p={begin:/\{\{/,relevance:0},h={className:"string",contains:[o.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE,d,p,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,d,p,f]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[o.BACKSLASH_ESCAPE,p,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,p,f]},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",v=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,y={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${v}))[eE][+-]?(${g})[jJ]?\\b`},{begin:`(${v})[jJ]?`},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${g})[jJ]\\b`}]},_={className:"comment",begin:n(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},S={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",d,y,h,o.HASH_COMMENT_MODE]}]};return f.contains=[h,y,d],{name:"Python",aliases:["py","gyp","ipython"],keywords:u,illegal:/(<\/|->|\?)|=>/,contains:[d,y,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},h,_,o.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[o.UNDERSCORE_TITLE_MODE,S,{begin:/->/,endsWithParent:!0,keywords:u}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[y,S,h]}]}}return lZ=i,lZ}var cZ,j2e;function cFn(){if(j2e)return cZ;j2e=1;function e(n){return{aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return cZ=e,cZ}var uZ,U2e;function uFn(){if(U2e)return uZ;U2e=1;function e(n){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[n.C_LINE_COMMENT_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE]}}return uZ=e,uZ}var dZ,H2e;function dFn(){if(H2e)return dZ;H2e=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},a="[a-zA-Z_][a-zA-Z0-9\\._]*",s={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},l={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},c={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:a,returnEnd:!1}},u={begin:a+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:a,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},d={begin:n(a,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[i.inherit(i.TITLE_MODE,{begin:a})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:o,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:i.C_NUMBER_RE}],relevance:0},{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},l,s,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[i.inherit(i.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+i.IDENT_RE,relevance:0},c,u,d],illegal:/#/}}return dZ=r,dZ}var fZ,z2e;function fFn(){if(z2e)return fZ;z2e=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(?=",o,")")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=/[a-zA-Z][a-zA-Z_0-9]*/;return{name:"R",illegal:/->/,keywords:{$pattern:a,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},compilerExtensions:[(l,c)=>{if(!l.beforeMatch)return;if(l.starts)throw new Error("beforeMatch cannot be used with starts");const u=Object.assign({},l);Object.keys(l).forEach(d=>{delete l[d]}),l.begin=r(u.beforeMatch,n(u.begin)),l.starts={relevance:0,contains:[Object.assign(u,{endsParent:!0})]},l.relevance=0,delete u.beforeMatch}],contains:[o.COMMENT(/#'/,/$/,{contains:[{className:"doctag",begin:"@examples",starts:{contains:[{begin:/\n/},{begin:/#'\s*(?=@[a-zA-Z]+)/,endsParent:!0},{begin:/#'/,end:/$/,excludeBegin:!0}]}},{className:"doctag",begin:"@param",end:/$/,contains:[{className:"variable",variants:[{begin:a},{begin:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{className:"doctag",begin:/@[a-zA-Z]+/},{className:"meta-keyword",begin:/\\[a-zA-Z]+/}]}),o.HASH_COMMENT_MODE,{className:"string",contains:[o.BACKSLASH_ESCAPE],variants:[o.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),o.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),o.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),o.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),o.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),o.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{className:"number",relevance:0,beforeMatch:/([^a-zA-Z0-9._])/,variants:[{match:/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/},{match:/0[xX][0-9a-fA-F]+([pP][+-]?\d+)?[Li]?/},{match:/(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?[Li]?/}]},{begin:"%",end:"%"},{begin:r(s,"\\s+<-\\s+")},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return fZ=i,fZ}var pZ,V2e;function pFn(){if(V2e)return pZ;V2e=1;function e(n){function r(C){return C.map(function(x){return x.split("").map(function(T){return"\\"+T}).join("")}).join("|")}const i="~?[a-z$_][0-9a-zA-Z$_]*",o="`?[A-Z$_][0-9a-zA-Z$_]*",a="'?[a-z$_][0-9a-z$_]*",s="\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*("+a+"\\s*(,"+a+"\\s*)*)?\\))?",l=i+"("+s+"){0,2}",c="("+r(["||","++","**","+.","*","/","*.","/.","..."])+"|\\|>|&&|==|===)",u="\\s+"+c+"\\s+",d={keyword:"and as asr assert begin class constraint do done downto else end exception external for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new nonrec object of open or private rec sig struct then to try type val virtual when while with",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ",literal:"true false"},f="\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",p={className:"number",relevance:0,variants:[{begin:f},{begin:"\\(-"+f+"\\)"}]},h={className:"operator",relevance:0,begin:c},g=[{className:"identifier",relevance:0,begin:i},h,p],v=[n.QUOTE_STRING_MODE,h,{className:"module",begin:"\\b"+o,returnBegin:!0,end:".",contains:[{className:"identifier",begin:o,relevance:0}]}],y=[{className:"module",begin:"\\b"+o,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:o,relevance:0}]}],_={begin:i,end:"(,|\\n|\\))",relevance:0,contains:[h,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:y}]},S={className:"function",relevance:0,keywords:d,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+i+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:i},{begin:l},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[_]}]},{begin:"\\(\\.\\s"+i+"\\)\\s*=>"}]};v.push(S);const b={className:"constructor",begin:o+"\\(",end:"\\)",illegal:"\\n",keywords:d,contains:[n.QUOTE_STRING_MODE,h,{className:"params",begin:"\\b"+i}]},E={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:d,end:"=>",relevance:0,contains:[b,h,{relevance:0,className:"constructor",begin:o}]},w={className:"module-access",keywords:d,returnBegin:!0,variants:[{begin:"\\b("+o+"\\.)+"+i},{begin:"\\b("+o+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[S,{begin:"\\(",end:"\\)",skip:!0}].concat(v)},{begin:"\\b("+o+"\\.)+\\{",end:/\}/}],contains:v};return y.push(w),{name:"ReasonML",aliases:["re"],keywords:d,illegal:"(:-|:=|\\$\\{|\\+=)",contains:[n.COMMENT("/\\*","\\*/",{illegal:"^(#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},n.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:g},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:g},b,{className:"operator",begin:u,illegal:"-->",relevance:0},p,n.C_LINE_COMMENT_MODE,E,S,{className:"module-def",begin:"\\bmodule\\s+"+i+"\\s+"+o+"\\s+=\\s+\\{",end:/\}/,returnBegin:!0,keywords:d,relevance:0,contains:[{className:"module",relevance:0,begin:o},{begin:/\{/,end:/\}/,skip:!0}].concat(v)},w]}}return pZ=e,pZ}var hZ,G2e;function hFn(){if(G2e)return hZ;G2e=1;function e(n){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[n.HASH_COMMENT_MODE,n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]}}return hZ=e,hZ}var gZ,W2e;function gFn(){if(W2e)return gZ;W2e=1;function e(n){const r="[a-zA-Z-_][^\\n{]+\\{",i={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+r,end:/\}/,keywords:"facet",contains:[i,n.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+r,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",i,n.HASH_COMMENT_MODE]},{begin:"^"+r,end:/\}/,contains:[i,n.HASH_COMMENT_MODE]},n.HASH_COMMENT_MODE]}}return gZ=e,gZ}var mZ,Y2e;function mFn(){if(Y2e)return mZ;Y2e=1;function e(n){const r="foreach do while for if from to step else on-error and or not in",i="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",o="add remove enable disable set get print export edit find run debug error info warning",a="true false yes no nothing nil null",s="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",l={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,l,{className:"variable",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]}]},u={className:"string",begin:/'/,end:/'/};return{name:"Microtik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:a,keyword:r+" :"+r.split(" ").join(" :")+" :"+i.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},n.COMMENT("^#","$"),c,u,l,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[c,u,l,{className:"literal",begin:"\\b("+a.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+o.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"builtin-name",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+s.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return mZ=e,mZ}var vZ,q2e;function vFn(){if(q2e)return vZ;q2e=1;function e(n){return{name:"RenderMan RSL",keywords:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,n.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"surface displacement light volume imager",end:"\\("},{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return vZ=e,vZ}var yZ,K2e;function yFn(){if(K2e)return yZ;K2e=1;function e(n){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}return yZ=e,yZ}var _Z,X2e;function _Fn(){if(X2e)return _Z;X2e=1;function e(n){const r="([ui](8|16|32|64|128|size)|f(32|64))?",i="abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",o="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{name:"Rust",aliases:["rs"],keywords:{$pattern:n.IDENT_RE+"!?",keyword:i,literal:"true false Some None Ok Err",built_in:o},illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.COMMENT("/\\*","\\*/",{contains:["self"]}),n.inherit(n.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{className:"function",beginKeywords:"fn",end:"(\\(|<)",excludeEnd:!0,contains:[n.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"meta-string",begin:/"/,end:/"/}]},{className:"class",beginKeywords:"type",end:";",contains:[n.inherit(n.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"\\S"},{className:"class",beginKeywords:"trait enum struct union",end:/\{/,contains:[n.inherit(n.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"[\\w\\d]"},{begin:n.IDENT_RE+"::",keywords:{built_in:o}},{begin:"->"}]}}return _Z=e,_Z}var bZ,Q2e;function bFn(){if(Q2e)return bZ;Q2e=1;function e(n){return{name:"SAS",case_insensitive:!0,keywords:{literal:"null missing _all_ _automatic_ _character_ _infile_ _n_ _name_ _null_ _numeric_ _user_ _webout_",meta:"do if then else end until while abort array attrib by call cards cards4 catname continue datalines datalines4 delete delim delimiter display dm drop endsas error file filename footnote format goto in infile informat input keep label leave length libname link list lostcard merge missing modify options output out page put redirect remove rename replace retain return select set skip startsas stop title update waitsas where window x systask add and alter as cascade check create delete describe distinct drop foreign from group having index insert into in key like message modify msgtype not null on or order primary references reset restrict select set table unique update validate view where"},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{className:"emphasis",begin:/^\s*datalines|cards.*;/,end:/^\s*;\s*$/},{className:"built_in",begin:"%("+"bquote|nrbquote|cmpres|qcmpres|compstor|datatyp|display|do|else|end|eval|global|goto|if|index|input|keydef|label|left|length|let|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qcmpres|qleft|qlowcase|qscan|qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|substr|superq|syscall|sysevalf|sysexec|sysfunc|sysget|syslput|sysprod|sysrc|sysrput|then|to|trim|unquote|until|upcase|verify|while|window"+")"},{className:"name",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:"[^%]("+"abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|cexist|cinv|close|cnonct|collate|compbl|compound|compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|filename|fileref|finfo|finv|fipname|fipnamel|fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|hms|hosthelp|hour|ibessel|index|indexc|indexw|input|inputc|inputn|int|intck|intnx|intrr|irr|jbessel|juldate|kurtosis|lag|lbound|left|length|lgamma|libname|libref|log|log10|log2|logpdf|logpmf|logsdf|lowcase|max|mdy|mean|min|minute|mod|month|mopen|mort|n|netpv|nmiss|normal|note|npv|open|ordinal|pathname|pdf|peek|peekc|pmf|point|poisson|poke|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probt|put|putc|putn|qtr|quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|rewind|right|round|saving|scan|sdf|second|sign|sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|stfips|stname|stnamel|substr|sum|symget|sysget|sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|tinv|tnonct|today|translate|tranwrd|trigamma|trim|trimn|trunc|uniform|upcase|uss|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|zipnamel|zipstate"+")[(]"},{className:"string",variants:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},n.COMMENT("\\*",";"),n.C_BLOCK_COMMENT_MODE]}}return bZ=e,bZ}var SZ,Z2e;function SFn(){if(Z2e)return SZ;Z2e=1;function e(n){const r={className:"meta",begin:"@[A-Za-z]+"},i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},o={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE,i]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[i],relevance:10}]},a={className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},s={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},l={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},c={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s]},l]},u={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[l]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,o,a,s,u,c,n.C_NUMBER_MODE,r]}}return SZ=e,SZ}var EZ,J2e;function EFn(){if(J2e)return EZ;J2e=1;function e(n){const r="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",i="(-|\\+)?\\d+([./]\\d+)?",o=i+"[+\\-]"+i+"i",a={$pattern:r,"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},s={className:"literal",begin:"(#t|#f|#\\\\"+r+"|#\\\\.)"},l={className:"number",variants:[{begin:i,relevance:0},{begin:o,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},c=n.QUOTE_STRING_MODE,u=[n.COMMENT(";","$",{relevance:0}),n.COMMENT("#\\|","\\|#")],d={begin:r,relevance:0},f={className:"symbol",begin:"'"+r},p={endsWithParent:!0,relevance:0},h={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",s,c,l,d,f]}]},g={className:"name",relevance:0,begin:r,keywords:a},y={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[g,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[d]}]},g,p]};return p.contains=[s,l,c,d,f,h,y].concat(u),{name:"Scheme",illegal:/\S/,contains:[n.SHEBANG(),l,c,f,h,y].concat(u)}}return EZ=e,EZ}var CZ,ePe;function CFn(){if(ePe)return CZ;ePe=1;function e(n){const r=[n.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[n.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[n.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:r},n.COMMENT("//","$")].concat(r)}}return CZ=e,CZ}var wZ,tPe;function wFn(){if(tPe)return wZ;tPe=1;const e=l=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],a=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function s(l){const c=e(l),u=o,d=i,f="@[a-z-]+",p="and or not only",g={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b"};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},c.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:"::("+u.join("|")+")"},g,{begin:/\(/,end:/\)/,contains:[l.CSS_NUMBER_MODE]},{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[g,c.HEXCOLOR,l.CSS_NUMBER_MODE,l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,c.IMPORTANT]},{begin:"@(page|font-face)",lexemes:f,keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:r.join(" ")},contains:[{begin:f,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},g,l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,c.HEXCOLOR,l.CSS_NUMBER_MODE]}]}}return wZ=s,wZ}var xZ,nPe;function xFn(){if(nPe)return xZ;nPe=1;function e(n){return{name:"Shell Session",aliases:["console"],contains:[{className:"meta",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#]/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return xZ=e,xZ}var TZ,rPe;function TFn(){if(rPe)return TZ;rPe=1;function e(n){const r=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],i=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],o=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},n.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+o.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+r.join("|")+")\\s"},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+i.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
|
||
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return TZ=e,TZ}var OZ,iPe;function OFn(){if(iPe)return OZ;iPe=1;function e(n){const r="[a-z][a-zA-Z0-9_]*",i={className:"string",begin:"\\$.{1}"},o={className:"symbol",begin:"#"+n.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:"self super nil true false thisContext",contains:[n.COMMENT('"','"'),n.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},n.C_NUMBER_MODE,o,i,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[n.APOS_STRING_MODE,i,n.C_NUMBER_MODE,o]}]}}return OZ=e,OZ}var RZ,oPe;function RFn(){if(oPe)return RZ;oPe=1;function e(n){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"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 with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},n.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},n.inherit(n.APOS_STRING_MODE,{className:"string",relevance:0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return RZ=e,RZ}var IZ,aPe;function IFn(){if(aPe)return IZ;aPe=1;function e(n){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},i={className:"title",begin:/[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/},o={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},a={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"define undef ifdef ifndef else endif include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(o,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if private switch then throw to try waitUntil while with",built_in:"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 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 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 and 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 boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode call 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 className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio 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 configProperties configSourceAddonList configSourceMod configSourceModList confirmSensorTarget connectTerminalToUAV 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 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 ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight 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_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 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 echo 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 enableTeamSwitch enableTraffic enableUAVConnectability enableUAVWaypoints enableVehicleCargo enableVehicleSensor enableWeaponDisassembly endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities environmentEnabled estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM 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 forcedMap forceEnd forceFlagTexture forceFollowRoad forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam 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 getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getEnvSoundController getFatigue getForcedFlagTexture getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget getPlateNumber getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getPylonMagazines getRelDir getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents getSlingLoad getSoundController getSoundControllerResult getSpeed getStamina getStatValue getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit 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 inflame inflamed infoPanel infoPanelComponentEnabled infoPanelComponents infoPanels inGameUISetEventHandler inheritsFrom initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest 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 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 leaderboardsRequestUploadScore leaderboardsRequestUploadScoreKeepBest leaderboardState leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects listRemoteTargets listVehicleSensors ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbSort lnbSortByValue lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize 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 mod 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 not numberOfEnginesRTD numberToDate objectCurators objectFromNetId objectParent objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openDLCPage openMap openSteamApp openYoutubeVideo or orderGetIn overcast overcastForecast owner param params parseNumber parseSimpleArray parseText parsingNamespace particlesQuality 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 preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority processDiaryLink 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 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 scopeName score scoreSide screenshot screenToWorld scriptDone scriptName 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 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 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 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 sideChat sideEnemy sideFriendly sideRadio simpleTasks simulationEnabled simulCloudDensity simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode splitString sqrt squadParams stance startLoadingScreen step 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 taskParent taskResult taskState taskType teamMember 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 tvSetColor tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled tvSetPictureRightColorSelected 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 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 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 WFSideText wind ",literal:"blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak locationNull nil objNull opfor pi resistance scriptNull sideAmbientLife sideEmpty sideLogic sideUnknown taskNull teamMemberNull true west"},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.NUMBER_MODE,r,i,o,a],illegal:/#|^\$ /}}return IZ=e,IZ}var NZ,sPe;function NFn(){if(sPe)return NZ;sPe=1;function e(n){var r=n.COMMENT("--","$");return{name:"SQL (more)",aliases:["mysql","oracle"],disableAutodetect:!0,case_insensitive:!0,illegal:/[<>{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,keywords:{$pattern:/[\w\.]+/,keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,r,n.HASH_COMMENT_MODE]},n.C_BLOCK_COMMENT_MODE,r,n.HASH_COMMENT_MODE]}}return NZ=e,NZ}var MZ,lPe;function MFn(){if(lPe)return MZ;lPe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(...o){return o.map(s=>e(s)).join("")}function r(...o){return"("+o.map(s=>e(s)).join("|")+")"}function i(o){const a=o.COMMENT("--","$"),s={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},l={begin:/"/,end:/"/,contains:[{begin:/""/}]},c=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],d=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],f=["add","asc","collation","desc","final","first","last","view"],p=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update ","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],h=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],g=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],v=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],y=h,_=[...p,...f].filter(C=>!h.includes(C)),S={className:"variable",begin:/@[a-z0-9]+/},b={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={begin:n(/\b/,r(...y),/\s*\(/),keywords:{built_in:y}};function w(C,{exceptions:x,when:T}={}){const R=T;return x=x||[],C.map(O=>O.match(/\|\d+$/)||x.includes(O)?O:R(O)?`${O}|0`:O)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:w(_,{when:C=>C.length<3}),literal:c,type:d,built_in:g},contains:[{begin:r(...v),keywords:{$pattern:/[\w\.]+/,keyword:_.concat(v),literal:c,type:d}},{className:"type",begin:r(...u)},E,S,s,l,o.C_NUMBER_MODE,o.C_BLOCK_COMMENT_MODE,a,b]}}return MZ=i,MZ}var PZ,cPe;function PFn(){if(cPe)return PZ;cPe=1;function e(n){const r=["functions","model","data","parameters","quantities","transformed","generated"],i=["for","in","if","else","while","break","continue","return"],o=["print","reject","increment_log_prob|10","integrate_ode|10","integrate_ode_rk45|10","integrate_ode_bdf|10","algebra_solver"],a=["int","real","vector","ordered","positive_ordered","simplex","unit_vector","row_vector","matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],s=["Phi","Phi_approx","abs","acos","acosh","algebra_solver","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bernoulli_cdf","bernoulli_lccdf","bernoulli_lcdf","bernoulli_logit_lpmf","bernoulli_logit_rng","bernoulli_lpmf","bernoulli_rng","bessel_first_kind","bessel_second_kind","beta_binomial_cdf","beta_binomial_lccdf","beta_binomial_lcdf","beta_binomial_lpmf","beta_binomial_rng","beta_cdf","beta_lccdf","beta_lcdf","beta_lpdf","beta_rng","binary_log_loss","binomial_cdf","binomial_coefficient_log","binomial_lccdf","binomial_lcdf","binomial_logit_lpmf","binomial_lpmf","binomial_rng","block","categorical_logit_lpmf","categorical_logit_rng","categorical_lpmf","categorical_rng","cauchy_cdf","cauchy_lccdf","cauchy_lcdf","cauchy_lpdf","cauchy_rng","cbrt","ceil","chi_square_cdf","chi_square_lccdf","chi_square_lcdf","chi_square_lpdf","chi_square_rng","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","cos","cosh","cov_exp_quad","crossprod","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","determinant","diag_matrix","diag_post_multiply","diag_pre_multiply","diagonal","digamma","dims","dirichlet_lpdf","dirichlet_rng","distance","dot_product","dot_self","double_exponential_cdf","double_exponential_lccdf","double_exponential_lcdf","double_exponential_lpdf","double_exponential_rng","e","eigenvalues_sym","eigenvectors_sym","erf","erfc","exp","exp2","exp_mod_normal_cdf","exp_mod_normal_lccdf","exp_mod_normal_lcdf","exp_mod_normal_lpdf","exp_mod_normal_rng","expm1","exponential_cdf","exponential_lccdf","exponential_lcdf","exponential_lpdf","exponential_rng","fabs","falling_factorial","fdim","floor","fma","fmax","fmin","fmod","frechet_cdf","frechet_lccdf","frechet_lcdf","frechet_lpdf","frechet_rng","gamma_cdf","gamma_lccdf","gamma_lcdf","gamma_lpdf","gamma_p","gamma_q","gamma_rng","gaussian_dlm_obs_lpdf","get_lp","gumbel_cdf","gumbel_lccdf","gumbel_lcdf","gumbel_lpdf","gumbel_rng","head","hypergeometric_lpmf","hypergeometric_rng","hypot","inc_beta","int_step","integrate_ode","integrate_ode_bdf","integrate_ode_rk45","inv","inv_Phi","inv_chi_square_cdf","inv_chi_square_lccdf","inv_chi_square_lcdf","inv_chi_square_lpdf","inv_chi_square_rng","inv_cloglog","inv_gamma_cdf","inv_gamma_lccdf","inv_gamma_lcdf","inv_gamma_lpdf","inv_gamma_rng","inv_logit","inv_sqrt","inv_square","inv_wishart_lpdf","inv_wishart_rng","inverse","inverse_spd","is_inf","is_nan","lbeta","lchoose","lgamma","lkj_corr_cholesky_lpdf","lkj_corr_cholesky_rng","lkj_corr_lpdf","lkj_corr_rng","lmgamma","lmultiply","log","log10","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log2","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_mix","log_rising_factorial","log_softmax","log_sum_exp","logistic_cdf","logistic_lccdf","logistic_lcdf","logistic_lpdf","logistic_rng","logit","lognormal_cdf","lognormal_lccdf","lognormal_lcdf","lognormal_lpdf","lognormal_rng","machine_precision","matrix_exp","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multi_gp_cholesky_lpdf","multi_gp_lpdf","multi_normal_cholesky_lpdf","multi_normal_cholesky_rng","multi_normal_lpdf","multi_normal_prec_lpdf","multi_normal_rng","multi_student_t_lpdf","multi_student_t_rng","multinomial_lpmf","multinomial_rng","multiply_log","multiply_lower_tri_self_transpose","neg_binomial_2_cdf","neg_binomial_2_lccdf","neg_binomial_2_lcdf","neg_binomial_2_log_lpmf","neg_binomial_2_log_rng","neg_binomial_2_lpmf","neg_binomial_2_rng","neg_binomial_cdf","neg_binomial_lccdf","neg_binomial_lcdf","neg_binomial_lpmf","neg_binomial_rng","negative_infinity","normal_cdf","normal_lccdf","normal_lcdf","normal_lpdf","normal_rng","not_a_number","num_elements","ordered_logistic_lpmf","ordered_logistic_rng","owens_t","pareto_cdf","pareto_lccdf","pareto_lcdf","pareto_lpdf","pareto_rng","pareto_type_2_cdf","pareto_type_2_lccdf","pareto_type_2_lcdf","pareto_type_2_lpdf","pareto_type_2_rng","pi","poisson_cdf","poisson_lccdf","poisson_lcdf","poisson_log_lpmf","poisson_log_rng","poisson_lpmf","poisson_rng","positive_infinity","pow","print","prod","qr_Q","qr_R","quad_form","quad_form_diag","quad_form_sym","rank","rayleigh_cdf","rayleigh_lccdf","rayleigh_lcdf","rayleigh_lpdf","rayleigh_rng","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scaled_inv_chi_square_cdf","scaled_inv_chi_square_lccdf","scaled_inv_chi_square_lcdf","scaled_inv_chi_square_lpdf","scaled_inv_chi_square_rng","sd","segment","sin","singular_values","sinh","size","skew_normal_cdf","skew_normal_lccdf","skew_normal_lcdf","skew_normal_lpdf","skew_normal_rng","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","sqrt2","square","squared_distance","step","student_t_cdf","student_t_lccdf","student_t_lcdf","student_t_lpdf","student_t_rng","sub_col","sub_row","sum","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_cdf","uniform_lccdf","uniform_lcdf","uniform_lpdf","uniform_rng","variance","von_mises_lpdf","von_mises_rng","weibull_cdf","weibull_lccdf","weibull_lcdf","weibull_lpdf","weibull_rng","wiener_lpdf","wishart_lpdf","wishart_rng"],l=["bernoulli","bernoulli_logit","beta","beta_binomial","binomial","binomial_logit","categorical","categorical_logit","cauchy","chi_square","dirichlet","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","lkj_corr","lkj_corr_cholesky","logistic","lognormal","multi_gp","multi_gp_cholesky","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_t","multinomial","neg_binomial","neg_binomial_2","neg_binomial_2_log","normal","ordered_logistic","pareto","pareto_type_2","poisson","poisson_log","rayleigh","scaled_inv_chi_square","skew_normal","student_t","uniform","von_mises","weibull","wiener","wishart"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:n.IDENT_RE,title:r,keyword:i.concat(a).concat(o),built_in:s},contains:[n.C_LINE_COMMENT_MODE,n.COMMENT(/#/,/$/,{relevance:0,keywords:{"meta-keyword":"include"}}),n.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{className:"doctag",begin:/@(return|param)/}]}),{begin:/<\s*lower\s*=/,keywords:"lower"},{begin:/[<,]\s*upper\s*=/,keywords:"upper"},{className:"keyword",begin:/\btarget\s*\+=/,relevance:10},{begin:"~\\s*("+n.IDENT_RE+")\\s*\\(",keywords:l},{className:"number",variants:[{begin:/\b\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/},{begin:/\.\d+(?:[eE][+-]?\d+)?\b/}],relevance:0},{className:"string",begin:'"',end:'"',relevance:0}]}}return PZ=e,PZ}var AZ,uPe;function AFn(){if(uPe)return AZ;uPe=1;function e(n){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/},{className:"string",variants:[{begin:`\`"[^\r
|
||
]*?"'`},{begin:`"[^\r
|
||
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},n.COMMENT("^[ ]*\\*.*$",!1),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]}}return AZ=e,AZ}var DZ,dPe;function DFn(){if(dPe)return DZ;dPe=1;function e(n){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:"HEADER ENDSEC DATA"},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.COMMENT("/\\*\\*!","\\*/"),n.C_NUMBER_MODE,n.inherit(n.APOS_STRING_MODE,{illegal:null}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return DZ=e,DZ}var kZ,fPe;function kFn(){if(fPe)return kZ;fPe=1;const e=l=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],a=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function s(l){const c=e(l),u="and or not only",d={className:"variable",begin:"\\$"+l.IDENT_RE},f=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],p="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,c.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+p,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+p,className:"selector-id"},{begin:"\\b("+n.join("|")+")"+p,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+i.join("|")+")"+p},{className:"selector-pseudo",begin:"&?::("+o.join("|")+")"+p},c.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:r.join(" ")},contains:[l.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+f.join("|")+"))\\b"},d,l.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[c.HEXCOLOR,d,l.APOS_STRING_MODE,l.CSS_NUMBER_MODE,l.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+a.join("|")+")\\b",starts:{end:/;|$/,contains:[c.HEXCOLOR,d,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,l.CSS_NUMBER_MODE,l.C_BLOCK_COMMENT_MODE,c.IMPORTANT],illegal:/\./,relevance:0}}]}}return kZ=s,kZ}var LZ,pPe;function LFn(){if(pPe)return LZ;pPe=1;function e(n){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[
|
||
(multipart)?`,end:`\\]
|
||
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return LZ=e,LZ}var $Z,hPe;function $Fn(){if(hPe)return $Z;hPe=1;function e(x){return x?typeof x=="string"?x:x.source:null}function n(x){return r("(?=",x,")")}function r(...x){return x.map(R=>e(R)).join("")}function i(...x){return"("+x.map(R=>e(R)).join("|")+")"}const o=x=>r(/\b/,x,/\w$/.test(x)?/\b/:/\B/),a=["Protocol","Type"].map(o),s=["init","self"].map(o),l=["Any","Self"],c=["associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],u=["false","nil","true"],d=["assignment","associativity","higherThan","left","lowerThan","none","right"],f=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],h=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),g=i(h,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=r(h,g,"*"),y=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),_=i(y,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),S=r(y,_,"*"),b=r(/[A-Z]/,_,"*"),E=["autoclosure",r(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,S,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],w=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function C(x){const T={match:/\s+/,relevance:0},R=x.COMMENT("/\\*","\\*/",{contains:["self"]}),O=[x.C_LINE_COMMENT_MODE,R],M={className:"keyword",begin:r(/\./,n(i(...a,...s))),end:i(...a,...s),excludeBegin:!0},P={match:r(/\./,i(...c)),relevance:0},k=c.filter($e=>typeof $e=="string").concat(["_|0"]),$=c.filter($e=>typeof $e!="string").concat(l).map(o),U={variants:[{className:"keyword",match:i(...$,...s)}]},z={$pattern:i(/\b\w+/,/#\w+/),keyword:k.concat(f),literal:u},D=[M,P,U],B={match:r(/\./,i(...p)),relevance:0},Y={className:"built_in",match:r(/\b/,i(...p),/(?=\()/)},q=[B,Y],K={match:/->/,relevance:0},H={className:"operator",relevance:0,variants:[{match:v},{match:`\\.(\\.|${g})+`}]},G=[K,H],Q="([0-9]_*)+",le="([0-9a-fA-F]_*)+",Z={className:"number",relevance:0,variants:[{match:`\\b(${Q})(\\.(${Q}))?([eE][+-]?(${Q}))?\\b`},{match:`\\b0x(${le})(\\.(${le}))?([pP][+-]?(${Q}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},j=($e="")=>({className:"subst",variants:[{match:r(/\\/,$e,/[0\\tnr"']/)},{match:r(/\\/,$e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),F=($e="")=>({className:"subst",match:r(/\\/,$e,/[\t ]*(?:[\r\n]|\r\n)/)}),te=($e="")=>({className:"subst",label:"interpol",begin:r(/\\/,$e,/\(/),end:/\)/}),oe=($e="")=>({begin:r($e,/"""/),end:r(/"""/,$e),contains:[j($e),F($e),te($e)]}),de=($e="")=>({begin:r($e,/"/),end:r(/"/,$e),contains:[j($e),te($e)]}),pe={className:"string",variants:[oe(),oe("#"),oe("##"),oe("###"),de(),de("#"),de("##"),de("###")]},me={match:r(/`/,S,/`/)},ve={className:"variable",match:/\$\d+/},he={className:"variable",match:`\\$${_}+`},be=[me,ve,he],we={match:/(@|#)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:w,contains:[...G,Z,pe]}]}},De={className:"keyword",match:r(/@/,i(...E))},Ae={className:"meta",match:r(/@/,S)},Ee=[we,De,Ae],Re={match:n(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,_,"+")},{className:"type",match:b,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,n(b)),relevance:0}]},Te={begin:/</,end:/>/,keywords:z,contains:[...O,...D,...Ee,K,Re]};Re.contains.push(Te);const Oe={match:r(S,/\s*:/),keywords:"_|0",relevance:0},Ne={begin:/\(/,end:/\)/,relevance:0,keywords:z,contains:["self",Oe,...O,...D,...q,...G,Z,pe,...be,...Ee,Re]},je={beginKeywords:"func",contains:[{className:"title",match:i(me.match,S,v),endsParent:!0,relevance:0},T]},ne={begin:/</,end:/>/,contains:[...O,Re]},J={begin:i(n(r(S,/\s*:/)),n(r(S,/\s+/,S,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:S}]},ae={begin:/\(/,end:/\)/,keywords:z,contains:[J,...O,...D,...G,Z,pe,...Ee,Re,Ne],endsParent:!0,illegal:/["']/},Se={className:"function",match:n(/\bfunc\b/),contains:[je,ne,ae,T],illegal:[/\[/,/%/]},xe={className:"function",match:/\b(subscript|init[?!]?)\s*(?=[<(])/,keywords:{keyword:"subscript init init? init!",$pattern:/\w+[?!]?/},contains:[ne,ae,T],illegal:/\[|%/},ue={beginKeywords:"operator",end:x.MATCH_NOTHING_RE,contains:[{className:"title",match:v,endsParent:!0,relevance:0}]},Me={beginKeywords:"precedencegroup",end:x.MATCH_NOTHING_RE,contains:[{className:"title",match:b,relevance:0},{begin:/{/,end:/}/,relevance:0,endsParent:!0,keywords:[...d,...u],contains:[Re]}]};for(const $e of pe.variants){const ge=$e.contains.find(st=>st.label==="interpol");ge.keywords=z;const Ve=[...D,...q,...G,Z,pe,...be];ge.contains=[...Ve,{begin:/\(/,end:/\)/,contains:["self",...Ve]}]}return{name:"Swift",keywords:z,contains:[...O,Se,xe,{className:"class",beginKeywords:"struct protocol class extension enum",end:"\\{",excludeEnd:!0,keywords:z,contains:[x.inherit(x.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...D]},ue,Me,{beginKeywords:"import",end:/$/,contains:[...O],relevance:0},...D,...q,...G,Z,pe,...be,...Ee,Re,Ne]}}return $Z=C,$Z}var FZ,gPe;function FFn(){if(gPe)return FZ;gPe=1;function e(n){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},{className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},{className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},{className:"symbol",begin:/\\./}]}}return FZ=e,FZ}var BZ,mPe;function BFn(){if(mPe)return BZ;mPe=1;function e(n){var r="true false yes no null",i="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},a={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[n.BACKSLASH_ESCAPE,a]},l=n.inherit(s,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),c="[0-9]{4}(-[0-9][0-9]){0,2}",u="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",d="(\\.[0-9]*)?",f="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",p={className:"number",begin:"\\b"+c+u+d+f+"\\b"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},g={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},v={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},y=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+i},{className:"type",begin:"!<"+i+">"},{className:"type",begin:"!"+i},{className:"type",begin:"!!"+i},{className:"meta",begin:"&"+n.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+n.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},n.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},p,{className:"number",begin:n.C_NUMBER_RE+"\\b",relevance:0},g,v,s],_=[...y];return _.pop(),_.push(l),h.contains=_,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:y}}return BZ=e,BZ}var jZ,vPe;function jFn(){if(vPe)return jZ;vPe=1;function e(n){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[n.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return jZ=e,jZ}var UZ,yPe;function UFn(){if(yPe)return UZ;yPe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(",o,")?")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const a=/[a-zA-Z_][a-zA-Z0-9_]*/,s={className:"number",variants:[o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",contains:[o.COMMENT(";[ \\t]*#","$"),o.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:r(/\$/,n(/::/),a,"(::",a,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[s]}]},{className:"string",contains:[o.BACKSLASH_ESCAPE],variants:[o.inherit(o.QUOTE_STRING_MODE,{illegal:null})]},s]}}return UZ=i,UZ}var HZ,_Pe;function HFn(){if(_Pe)return HZ;_Pe=1;function e(n){const r="bool byte i16 i32 i64 double string binary";return{name:"Thrift",keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:r,literal:"true false"},contains:[n.QUOTE_STRING_MODE,n.NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[n.inherit(n.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:r,contains:["self"]}]}}return HZ=e,HZ}var zZ,bPe;function zFn(){if(bPe)return zZ;bPe=1;function e(n){const r={className:"number",begin:"[1-9][0-9]*",relevance:0},i={className:"symbol",begin:":[^\\]]+"},o={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",r,i]},a={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",r,n.QUOTE_STRING_MODE,i]};return{name:"TP",keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[o,a,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},n.COMMENT("//","[;$]"),n.COMMENT("!","[;$]"),n.COMMENT("--eg:","$"),n.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},n.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return zZ=e,zZ}var VZ,SPe;function VFn(){if(SPe)return VZ;SPe=1;function e(n){var r={className:"params",begin:"\\(",end:"\\)"},i="attribute block constant cycle date dump include max min parent random range source template_from_string",o={beginKeywords:i,keywords:{name:i},relevance:0,contains:[r]},a={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize column convert_encoding date date_modify default escape filter first format inky_to_html inline_css join json_encode keys last length lower map markdown merge nl2br number_format raw reduce replace reverse round slice sort spaceless split striptags title trim upper url_encode",contains:[o]},s="apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with";return s=s+" "+s.split(" ").map(function(l){return"end"+l}).join(" "),{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[n.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:s,starts:{endsWithParent:!0,contains:[a,o],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",a,o]}]}}return VZ=e,VZ}var GZ,EPe;function GFn(){if(EPe)return GZ;EPe=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],i=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],o=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","module","global"],l=[].concat(a,s,i,o);function c(h){return h?typeof h=="string"?h:h.source:null}function u(h){return d("(?=",h,")")}function d(...h){return h.map(v=>c(v)).join("")}function f(h){const g=(D,{after:B})=>{const Y="</"+D[0].slice(1);return D.input.indexOf(Y,B)!==-1},v=e,y={begin:"<>",end:"</>"},_={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(D,B)=>{const Y=D[0].length+D.index,q=D.input[Y];if(q==="<"){B.ignoreMatch();return}q===">"&&(g(D,{after:Y})||B.ignoreMatch())}},S={$pattern:e,keyword:n,literal:r,built_in:l},b="[0-9](_?[0-9])*",E=`\\.(${b})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",C={className:"number",variants:[{begin:`(\\b(${w})((${E})|\\.)?|(${E}))[eE][+-]?(${b})\\b`},{begin:`\\b(${w})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},T={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},R={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,x],subLanguage:"css"}},O={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,x]},P={className:"comment",variants:[h.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:v+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),h.C_BLOCK_COMMENT_MODE,h.C_LINE_COMMENT_MODE]},k=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,T,R,O,C,h.REGEXP_MODE];x.contains=k.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(k)});const $=[].concat(P,x.contains),U=$.concat([{begin:/\(/,end:/\)/,keywords:S,contains:["self"].concat($)}]),z={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:U};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:S,exports:{PARAMS_CONTAINS:U},illegal:/#(?![$_A-z])/,contains:[h.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,T,R,O,P,C,{begin:d(/[{,\n]\s*/,u(d(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,v+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:v+u("\\s*:"),relevance:0}]},{begin:"("+h.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[P,h.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+h.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:h.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:U}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:y.begin,end:y.end},{begin:_.begin,"on:begin":_.isTrulyOpeningTag,end:_.end}],subLanguage:"xml",contains:[{begin:_.begin,end:_.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:S,contains:["self",h.inherit(h.TITLE_MODE,{begin:v}),z],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[z,h.inherit(h.TITLE_MODE,{begin:v})]},{variants:[{begin:"\\."+v},{begin:"\\$"+v}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},h.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[h.inherit(h.TITLE_MODE,{begin:v}),"self",z]},{begin:"(get|set)\\s+(?="+v+"\\()",end:/\{/,keywords:"get set",contains:[h.inherit(h.TITLE_MODE,{begin:v}),{begin:/\(\)/},z]},{begin:/\$[(.]/}]}}function p(h){const g=e,v={beginKeywords:"namespace",end:/\{/,excludeEnd:!0},y={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},_={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},S=["any","void","number","boolean","string","object","never","enum"],b=["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"],E={$pattern:e,keyword:n.concat(b),literal:r,built_in:l.concat(S)},w={className:"meta",begin:"@"+g},C=(R,O,M)=>{const P=R.contains.findIndex(k=>k.label===O);if(P===-1)throw new Error("can not find mode to replace");R.contains.splice(P,1,M)},x=f(h);Object.assign(x.keywords,E),x.exports.PARAMS_CONTAINS.push(w),x.contains=x.contains.concat([w,v,y]),C(x,"shebang",h.SHEBANG()),C(x,"use_strict",_);const T=x.contains.find(R=>R.className==="function");return T.relevance=0,Object.assign(x,{name:"TypeScript",aliases:["ts","tsx"]}),x}return GZ=p,GZ}var WZ,CPe;function WFn(){if(CPe)return WZ;CPe=1;function e(n){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[n.UNDERSCORE_TITLE_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}return WZ=e,WZ}var YZ,wPe;function YFn(){if(wPe)return YZ;wPe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(...o){return o.map(s=>e(s)).join("")}function r(...o){return"("+o.map(s=>e(s)).join("|")+")"}function i(o){const a={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},l=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,u=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,d=/\d{1,2}(:\d{1,2}){1,2}/,f={className:"literal",variants:[{begin:n(/# */,r(c,l),/ *#/)},{begin:n(/# */,d,/ *#/)},{begin:n(/# */,u,/ *#/)},{begin:n(/# */,r(c,l),/ +/,r(u,d),/ *#/)}]},p={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},h={className:"label",begin:/^\w+:/},g=o.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),v=o.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[a,s,f,p,h,g,v,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{"meta-keyword":"const disable else elseif enable end externalsource if region then"},contains:[v]}]}}return YZ=i,YZ}var qZ,xPe;function qFn(){if(xPe)return qZ;xPe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(...o){return o.map(s=>e(s)).join("")}function r(...o){return"("+o.map(s=>e(s)).join("|")+")"}function i(o){const a="lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid split cint sin datepart ltrim sqr time derived eval date formatpercent exp inputbox left ascw chrw regexp cstr err".split(" "),s=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],l={begin:n(r(...a),"\\s*\\("),relevance:0,keywords:{built_in:a}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:s,literal:"true false null nothing empty"},illegal:"//",contains:[l,o.inherit(o.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),o.COMMENT(/'/,/$/,{relevance:0}),o.C_NUMBER_MODE]}}return qZ=i,qZ}var KZ,TPe;function KFn(){if(TPe)return KZ;TPe=1;function e(n){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return KZ=e,KZ}var XZ,OPe;function XFn(){if(OPe)return XZ;OPe=1;function e(n){return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:{$pattern:/[\w\$]+/,keyword:"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 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 reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor",literal:"null",built_in:"$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale $bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat $realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename $unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning $dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random $dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system $display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo $write $readmemb $readmemh $writememh $value$plusargs $dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit $writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb $dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall $dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo $fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh $swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb $fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat $sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror"},contains:[n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE,n.QUOTE_STRING_MODE,{className:"number",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}}return XZ=e,XZ}var QZ,RPe;function QFn(){if(RPe)return QZ;RPe=1;function e(n){const r="\\d(_|\\d)*",i="[eE][-+]?"+r,o=r+"(\\."+r+")?("+i+")?",a="\\w+",l="\\b("+(r+"#"+a+"(\\."+a+")?#("+i+")?")+"|"+o+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:"abs access after alias all and architecture array assert assume assume_guarantee attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package parameter port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable view vmode vprop vunit wait when while with xnor xor",built_in:"boolean bit character integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_logic std_logic_vector unsigned signed boolean_vector integer_vector std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signed real_vector time_vector",literal:"false true note warning error failure line text side width"},illegal:/\{/,contains:[n.C_BLOCK_COMMENT_MODE,n.COMMENT("--","$"),n.QUOTE_STRING_MODE,{className:"number",begin:l,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[n.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[n.BACKSLASH_ESCAPE]}]}}return QZ=e,QZ}var ZZ,IPe;function ZFn(){if(IPe)return ZZ;IPe=1;function e(n){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[n.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},n.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[n.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return ZZ=e,ZZ}var JZ,NPe;function JFn(){if(NPe)return JZ;NPe=1;function e(n){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+n.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[n.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},n.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return JZ=e,JZ}var eJ,MPe;function e8n(){if(MPe)return eJ;MPe=1;function e(n){const i={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons "+"ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts"},o={className:"string",begin:'"',end:'"',illegal:"\\n"},a={className:"string",begin:"'",end:"'",illegal:"\\n"},s={className:"string",begin:"<<",end:">>"},l={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},c={beginKeywords:"import",end:"$",keywords:i,contains:[o]},u={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[n.inherit(n.TITLE_MODE,{starts:{endsWithParent:!0,keywords:i}})]};return{name:"XL",aliases:["tao"],keywords:i,contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,o,a,s,u,c,l,n.NUMBER_MODE]}}return eJ=e,eJ}var tJ,PPe;function t8n(){if(PPe)return tJ;PPe=1;function e(n){return{name:"XQuery",aliases:["xpath","xq"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:"module schema namespace boundary-space preserve no-preserve strip default collation base-uri ordering context decimal-format decimal-separator copy-namespaces empty-sequence except exponent-separator external grouping-separator inherit no-inherit lax minus-sign per-mille percent schema-attribute schema-element strict unordered zero-digit declare import option function validate variable for at in let where order group by return if then else tumbling sliding window start when only end previous next stable ascending descending allowing empty greatest least some every satisfies switch case typeswitch try catch and or to union intersect instance of treat as castable cast map array delete insert into replace value rename copy modify update",type:"item document-node node attribute document element comment namespace namespace-node processing-instruction text construction xs:anyAtomicType xs:untypedAtomic xs:duration xs:time xs:decimal xs:float xs:double xs:gYearMonth xs:gYear xs:gMonthDay xs:gMonth xs:gDay xs:boolean xs:base64Binary xs:hexBinary xs:anyURI xs:QName xs:NOTATION xs:dateTime xs:dateTimeStamp xs:date xs:string xs:normalizedString xs:token xs:language xs:NMTOKEN xs:Name xs:NCName xs:ID xs:IDREF xs:ENTITY xs:integer xs:nonPositiveInteger xs:negativeInteger xs:long xs:int xs:short xs:byte xs:nonNegativeInteger xs:unisignedLong xs:unsignedInt xs:unsignedShort xs:unsignedByte xs:positiveInteger xs:yearMonthDuration xs:dayTimeDuration",literal:"eq ne lt le gt ge is self:: child:: descendant:: descendant-or-self:: attribute:: following:: following-sibling:: parent:: ancestor:: ancestor-or-self:: preceding:: preceding-sibling:: NaN"},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return tJ=e,tJ}var nJ,APe;function n8n(){if(APe)return nJ;APe=1;function e(n){const r={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[n.inherit(n.APOS_STRING_MODE,{illegal:null}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null})]},i=n.UNDERSCORE_TITLE_MODE,o={variants:[n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE]},a="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:a,contains:[n.C_LINE_COMMENT_MODE,n.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[n.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[i,{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:["self",n.C_BLOCK_COMMENT_MODE,r,o]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},i]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[i]},{beginKeywords:"use",end:/;/,contains:[i]},{begin:/=>/},r,o]}}return nJ=e,nJ}var wt=UI,r8n=wt;wt.registerLanguage("1c",R4n());wt.registerLanguage("abnf",I4n());wt.registerLanguage("accesslog",N4n());wt.registerLanguage("actionscript",M4n());wt.registerLanguage("ada",P4n());wt.registerLanguage("angelscript",A4n());wt.registerLanguage("apache",D4n());wt.registerLanguage("applescript",k4n());wt.registerLanguage("arcade",L4n());wt.registerLanguage("arduino",$4n());wt.registerLanguage("armasm",F4n());wt.registerLanguage("xml",B4n());wt.registerLanguage("asciidoc",j4n());wt.registerLanguage("aspectj",U4n());wt.registerLanguage("autohotkey",H4n());wt.registerLanguage("autoit",z4n());wt.registerLanguage("avrasm",V4n());wt.registerLanguage("awk",G4n());wt.registerLanguage("axapta",W4n());wt.registerLanguage("bash",Y4n());wt.registerLanguage("basic",q4n());wt.registerLanguage("bnf",K4n());wt.registerLanguage("brainfuck",X4n());wt.registerLanguage("c-like",Q4n());wt.registerLanguage("c",Z4n());wt.registerLanguage("cal",J4n());wt.registerLanguage("capnproto",e5n());wt.registerLanguage("ceylon",t5n());wt.registerLanguage("clean",n5n());wt.registerLanguage("clojure",r5n());wt.registerLanguage("clojure-repl",i5n());wt.registerLanguage("cmake",o5n());wt.registerLanguage("coffeescript",a5n());wt.registerLanguage("coq",s5n());wt.registerLanguage("cos",l5n());wt.registerLanguage("cpp",c5n());wt.registerLanguage("crmsh",u5n());wt.registerLanguage("crystal",d5n());wt.registerLanguage("csharp",f5n());wt.registerLanguage("csp",p5n());wt.registerLanguage("css",h5n());wt.registerLanguage("d",g5n());wt.registerLanguage("markdown",m5n());wt.registerLanguage("dart",v5n());wt.registerLanguage("delphi",y5n());wt.registerLanguage("diff",_5n());wt.registerLanguage("django",b5n());wt.registerLanguage("dns",S5n());wt.registerLanguage("dockerfile",E5n());wt.registerLanguage("dos",C5n());wt.registerLanguage("dsconfig",w5n());wt.registerLanguage("dts",x5n());wt.registerLanguage("dust",T5n());wt.registerLanguage("ebnf",O5n());wt.registerLanguage("elixir",R5n());wt.registerLanguage("elm",I5n());wt.registerLanguage("ruby",N5n());wt.registerLanguage("erb",M5n());wt.registerLanguage("erlang-repl",P5n());wt.registerLanguage("erlang",A5n());wt.registerLanguage("excel",D5n());wt.registerLanguage("fix",k5n());wt.registerLanguage("flix",L5n());wt.registerLanguage("fortran",$5n());wt.registerLanguage("fsharp",F5n());wt.registerLanguage("gams",B5n());wt.registerLanguage("gauss",j5n());wt.registerLanguage("gcode",U5n());wt.registerLanguage("gherkin",H5n());wt.registerLanguage("glsl",z5n());wt.registerLanguage("gml",V5n());wt.registerLanguage("go",G5n());wt.registerLanguage("golo",W5n());wt.registerLanguage("gradle",Y5n());wt.registerLanguage("groovy",q5n());wt.registerLanguage("haml",K5n());wt.registerLanguage("handlebars",X5n());wt.registerLanguage("haskell",Q5n());wt.registerLanguage("haxe",Z5n());wt.registerLanguage("hsp",J5n());wt.registerLanguage("htmlbars",e6n());wt.registerLanguage("http",t6n());wt.registerLanguage("hy",n6n());wt.registerLanguage("inform7",r6n());wt.registerLanguage("ini",i6n());wt.registerLanguage("irpf90",o6n());wt.registerLanguage("isbl",a6n());wt.registerLanguage("java",s6n());wt.registerLanguage("javascript",l6n());wt.registerLanguage("jboss-cli",c6n());wt.registerLanguage("json",u6n());wt.registerLanguage("julia",d6n());wt.registerLanguage("julia-repl",f6n());wt.registerLanguage("kotlin",p6n());wt.registerLanguage("lasso",h6n());wt.registerLanguage("latex",g6n());wt.registerLanguage("ldif",m6n());wt.registerLanguage("leaf",v6n());wt.registerLanguage("less",y6n());wt.registerLanguage("lisp",_6n());wt.registerLanguage("livecodeserver",b6n());wt.registerLanguage("livescript",S6n());wt.registerLanguage("llvm",E6n());wt.registerLanguage("lsl",C6n());wt.registerLanguage("lua",w6n());wt.registerLanguage("makefile",x6n());wt.registerLanguage("mathematica",T6n());wt.registerLanguage("matlab",O6n());wt.registerLanguage("maxima",R6n());wt.registerLanguage("mel",I6n());wt.registerLanguage("mercury",N6n());wt.registerLanguage("mipsasm",M6n());wt.registerLanguage("mizar",P6n());wt.registerLanguage("perl",A6n());wt.registerLanguage("mojolicious",D6n());wt.registerLanguage("monkey",k6n());wt.registerLanguage("moonscript",L6n());wt.registerLanguage("n1ql",$6n());wt.registerLanguage("nginx",F6n());wt.registerLanguage("nim",B6n());wt.registerLanguage("nix",j6n());wt.registerLanguage("node-repl",U6n());wt.registerLanguage("nsis",H6n());wt.registerLanguage("objectivec",z6n());wt.registerLanguage("ocaml",V6n());wt.registerLanguage("openscad",G6n());wt.registerLanguage("oxygene",W6n());wt.registerLanguage("parser3",Y6n());wt.registerLanguage("pf",q6n());wt.registerLanguage("pgsql",K6n());wt.registerLanguage("php",X6n());wt.registerLanguage("php-template",Q6n());wt.registerLanguage("plaintext",Z6n());wt.registerLanguage("pony",J6n());wt.registerLanguage("powershell",eFn());wt.registerLanguage("processing",tFn());wt.registerLanguage("profile",nFn());wt.registerLanguage("prolog",rFn());wt.registerLanguage("properties",iFn());wt.registerLanguage("protobuf",oFn());wt.registerLanguage("puppet",aFn());wt.registerLanguage("purebasic",sFn());wt.registerLanguage("python",lFn());wt.registerLanguage("python-repl",cFn());wt.registerLanguage("q",uFn());wt.registerLanguage("qml",dFn());wt.registerLanguage("r",fFn());wt.registerLanguage("reasonml",pFn());wt.registerLanguage("rib",hFn());wt.registerLanguage("roboconf",gFn());wt.registerLanguage("routeros",mFn());wt.registerLanguage("rsl",vFn());wt.registerLanguage("ruleslanguage",yFn());wt.registerLanguage("rust",_Fn());wt.registerLanguage("sas",bFn());wt.registerLanguage("scala",SFn());wt.registerLanguage("scheme",EFn());wt.registerLanguage("scilab",CFn());wt.registerLanguage("scss",wFn());wt.registerLanguage("shell",xFn());wt.registerLanguage("smali",TFn());wt.registerLanguage("smalltalk",OFn());wt.registerLanguage("sml",RFn());wt.registerLanguage("sqf",IFn());wt.registerLanguage("sql_more",NFn());wt.registerLanguage("sql",MFn());wt.registerLanguage("stan",PFn());wt.registerLanguage("stata",AFn());wt.registerLanguage("step21",DFn());wt.registerLanguage("stylus",kFn());wt.registerLanguage("subunit",LFn());wt.registerLanguage("swift",$Fn());wt.registerLanguage("taggerscript",FFn());wt.registerLanguage("yaml",BFn());wt.registerLanguage("tap",jFn());wt.registerLanguage("tcl",UFn());wt.registerLanguage("thrift",HFn());wt.registerLanguage("tp",zFn());wt.registerLanguage("twig",VFn());wt.registerLanguage("typescript",GFn());wt.registerLanguage("vala",WFn());wt.registerLanguage("vbnet",YFn());wt.registerLanguage("vbscript",qFn());wt.registerLanguage("vbscript-html",KFn());wt.registerLanguage("verilog",XFn());wt.registerLanguage("vhdl",QFn());wt.registerLanguage("vim",ZFn());wt.registerLanguage("x86asm",JFn());wt.registerLanguage("xl",e8n());wt.registerLanguage("xquery",t8n());wt.registerLanguage("zephir",n8n());const i8n=Or(r8n),o8n=["1c","abnf","accesslog","actionscript","ada","angelscript","apache","applescript","arcade","arduino","armasm","asciidoc","aspectj","autohotkey","autoit","avrasm","awk","axapta","bash","basic","bnf","brainfuck","c-like","c","cal","capnproto","ceylon","clean","clojure-repl","clojure","cmake","coffeescript","coq","cos","cpp","crmsh","crystal","csharp","csp","css","d","dart","delphi","diff","django","dns","dockerfile","dos","dsconfig","dts","dust","ebnf","elixir","elm","erb","erlang-repl","erlang","excel","fix","flix","fortran","fsharp","gams","gauss","gcode","gherkin","glsl","gml","go","golo","gradle","groovy","haml","handlebars","haskell","haxe","hsp","htmlbars","http","hy","inform7","ini","irpf90","isbl","java","javascript","jboss-cli","json","julia-repl","julia","kotlin","lasso","latex","ldif","leaf","less","lisp","livecodeserver","livescript","llvm","lsl","lua","makefile","markdown","mathematica","matlab","maxima","mel","mercury","mipsasm","mizar","mojolicious","monkey","moonscript","n1ql","nginx","nim","nix","node-repl","nsis","objectivec","ocaml","openscad","oxygene","parser3","perl","pf","pgsql","php-template","php","plaintext","pony","powershell","processing","profile","prolog","properties","protobuf","puppet","purebasic","python-repl","python","q","qml","r","reasonml","rib","roboconf","routeros","rsl","ruby","ruleslanguage","rust","sas","scala","scheme","scilab","scss","shell","smali","smalltalk","sml","sqf","sql","sql_more","stan","stata","step21","stylus","subunit","swift","taggerscript","tap","tcl","thrift","tp","twig","typescript","vala","vbnet","vbscript-html","vbscript","verilog","vhdl","vim","x86asm","xl","xml","xquery","yaml","zephir"];var XZe=_3n(i8n,b3n);XZe.supportedLanguages=o8n;const a8n={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#f8f8ff"},"hljs-comment":{color:"#408080",fontStyle:"italic"},"hljs-quote":{color:"#408080",fontStyle:"italic"},"hljs-keyword":{color:"#954121"},"hljs-selector-tag":{color:"#954121"},"hljs-literal":{color:"#954121"},"hljs-subst":{color:"#954121"},"hljs-number":{color:"#40a070"},"hljs-string":{color:"#219161"},"hljs-doctag":{color:"#219161"},"hljs-selector-id":{color:"#19469d"},"hljs-selector-class":{color:"#19469d"},"hljs-section":{color:"#19469d"},"hljs-type":{color:"#19469d"},"hljs-params":{color:"#00f"},"hljs-title":{color:"#458",fontWeight:"bold"},"hljs-tag":{color:"#000080",fontWeight:"normal"},"hljs-name":{color:"#000080",fontWeight:"normal"},"hljs-attribute":{color:"#000080",fontWeight:"normal"},"hljs-variable":{color:"#008080"},"hljs-template-variable":{color:"#008080"},"hljs-regexp":{color:"#b68"},"hljs-link":{color:"#b68"},"hljs-symbol":{color:"#990073"},"hljs-bullet":{color:"#990073"},"hljs-built_in":{color:"#0086b3"},"hljs-builtin-name":{color:"#0086b3"},"hljs-meta":{color:"#999",fontWeight:"bold"},"hljs-deletion":{background:"#fdd"},"hljs-addition":{background:"#dfd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},s8n={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#1E1E1E",color:"#DCDCDC"},"hljs-keyword":{color:"#569CD6"},"hljs-literal":{color:"#569CD6"},"hljs-symbol":{color:"#569CD6"},"hljs-name":{color:"#569CD6"},"hljs-link":{color:"#569CD6",textDecoration:"underline"},"hljs-built_in":{color:"#4EC9B0"},"hljs-type":{color:"#4EC9B0"},"hljs-number":{color:"#B8D7A3"},"hljs-class":{color:"#B8D7A3"},"hljs-string":{color:"#D69D85"},"hljs-meta-string":{color:"#D69D85"},"hljs-regexp":{color:"#9A5334"},"hljs-template-tag":{color:"#9A5334"},"hljs-subst":{color:"#DCDCDC"},"hljs-function":{color:"#DCDCDC"},"hljs-title":{color:"#DCDCDC"},"hljs-params":{color:"#DCDCDC"},"hljs-formula":{color:"#DCDCDC"},"hljs-comment":{color:"#57A64A",fontStyle:"italic"},"hljs-quote":{color:"#57A64A",fontStyle:"italic"},"hljs-doctag":{color:"#608B4E"},"hljs-meta":{color:"#9B9B9B"},"hljs-meta-keyword":{color:"#9B9B9B"},"hljs-tag":{color:"#9B9B9B"},"hljs-variable":{color:"#BD63C5"},"hljs-template-variable":{color:"#BD63C5"},"hljs-attr":{color:"#9CDCFE"},"hljs-attribute":{color:"#9CDCFE"},"hljs-builtin-name":{color:"#9CDCFE"},"hljs-section":{color:"gold"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-bullet":{color:"#D7BA7D"},"hljs-selector-tag":{color:"#D7BA7D"},"hljs-selector-id":{color:"#D7BA7D"},"hljs-selector-class":{color:"#D7BA7D"},"hljs-selector-attr":{color:"#D7BA7D"},"hljs-selector-pseudo":{color:"#D7BA7D"},"hljs-addition":{backgroundColor:"#144212",display:"inline-block",width:"100%"},"hljs-deletion":{backgroundColor:"#600",display:"inline-block",width:"100%"}},l8n=({visible:e,onClose:n,nodes:r,edges:i})=>{const o=Fr(),{isDarkMode:a}=Mu(),s={nodes:r,edges:i};return N.jsx(fa,{title:o.formatMessage({id:"flow.json"}),open:e,onCancel:n,width:800,footer:null,children:N.jsx("div",{style:{maxHeight:"70vh",overflow:"auto"},children:N.jsx(XZe,{language:"json",style:a?s8n:a8n,customStyle:{padding:"20px",borderRadius:"4px"},children:JSON.stringify(s,null,2)})})})},{Header:c8n}=bo,QZe=()=>{const[e,n]=m.useState(null),[r,i]=m.useState(!1),{nodes:o,edges:a}=AZe(),s=Fr(),{isDarkMode:l}=Mu(),[c,u]=m.useState(!1),{headerStyle:d}=c_();m.useEffect(()=>{const w=()=>{n(null)};return window.addEventListener("flow-node-deselect",w),()=>{window.removeEventListener("flow-node-deselect",w)}},[]);const f=w=>{n(w)},p=w=>{n(w),i(!0)},h=(w,C)=>{window.dispatchEvent(new CustomEvent("flow-node-update",{detail:{nodeId:w,data:C}}))},g=()=>{const C=JSON.stringify({nodes:o,edges:a},null,2),x=new Blob([C],{type:"application/json"}),T=URL.createObjectURL(x),R=document.createElement("a");R.download="flow-data.json",R.href=T,R.click(),URL.revokeObjectURL(T)},v=w=>{const C=new FileReader;return C.onload=x=>{var T;try{const R=JSON.parse((T=x.target)==null?void 0:T.result);window.dispatchEvent(new CustomEvent("flow-import",{detail:R})),Nt.success("导入成功")}catch{Nt.error("导入失败,请检查文件格式")}},C.readAsText(w),!1},y=()=>{var w;(w=window.bytedesk)==null||w.showChat()},_=()=>{var w;(w=window.bytedesk)==null||w.hideChat()},S=()=>{console.log("handleNewFlow")},b=()=>{u(!0)},E=()=>{u(!1)};return N.jsxs("div",{children:[N.jsxs(bo,{children:[N.jsx(c8n,{style:d,children:N.jsxs("div",{className:"header-content",children:[N.jsx("h1",{children:N.jsx("span",{className:"title-text",style:{color:l?"#fff":"#000"},children:s.formatMessage({id:"flow.title"})})}),N.jsxs("div",{className:"header-actions",children:[N.jsx(qn,{type:"primary",icon:N.jsx(bA,{}),style:{marginLeft:8},onClick:S,children:s.formatMessage({id:"flow.new"})}),N.jsx(qn,{type:"primary",icon:N.jsx(bA,{}),style:{marginLeft:8},onClick:b,children:s.formatMessage({id:"flow.json"})}),N.jsx(ig,{beforeUpload:v,showUploadList:!1,accept:".json",children:N.jsx(qn,{type:"primary",icon:N.jsx(iS,{}),children:s.formatMessage({id:"flow.import"})})}),N.jsx(qn,{type:"primary",icon:N.jsx(Rk,{}),onClick:g,style:{marginLeft:8},children:s.formatMessage({id:"flow.export"})}),N.jsx(qn,{type:"primary",icon:N.jsx(ST,{}),onClick:y,children:s.formatMessage({id:"flow.startChat"})}),N.jsx(qn,{type:"primary",icon:N.jsx(jp,{}),onClick:_,children:s.formatMessage({id:"flow.closeChat"})})]})]})}),N.jsx(bo,{className:"main-layout",style:{background:l?"#141414":void 0},children:N.jsxs("div",{className:"main-content",style:{display:"flex",flex:1,background:l?"#141414":"#fff"},children:[N.jsx("div",{className:"left-panel",style:{width:280,flexShrink:0,borderRight:`1px solid ${l?"#303030":"#f0f0f0"}`,background:l?"#141414":"#fff"},children:N.jsx(g2n,{})}),N.jsx("div",{className:"center-panel",style:{flex:1},children:N.jsx(r3n,{onNodeClick:f,onPropertyClick:p})})]})})]}),N.jsx(Dde,{title:(e==null?void 0:e.data.title)||"属性设置",placement:"right",width:600,onClose:()=>i(!1),open:r,children:e&&N.jsx(i3n,{selectedNode:e,onNodeUpdate:h,onChildUpdate:(w,C,x)=>{console.log("onChildUpdate",w,C,x)},onChildDelete:(w,C)=>{console.log("onChildDelete",w,C)}})}),N.jsx(l8n,{visible:c,onClose:E,nodes:o,edges:a})]})};function Zn(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}function u8n(e,n){return n={exports:{}},e(n,n.exports),n.exports}var d8n=u8n(function(e){var n=e.exports=function(r,i){if(i||(i=16),r===void 0&&(r=128),r<=0)return"0";for(var o=Math.log(Math.pow(2,r))/Math.log(i),a=2;o===1/0;a*=2)o=Math.log(Math.pow(2,r/a))/Math.log(i)*a;for(var s=o-Math.floor(o),l="",a=0;a<Math.floor(o);a++){var c=Math.floor(Math.random()*i).toString(i);l=c+l}if(s){var u=Math.pow(i,s),c=Math.floor(Math.random()*u).toString(i);l=c+l}var d=parseInt(l,i);return d!==1/0&&d>=Math.pow(2,r)?n(r,i):l};n.rack=function(r,i,o){var a=function(l){var c=0;do{if(c++>10)if(o)r+=o;else throw new Error("too many ID collisions, use more bits");var u=n(r,i)}while(Object.hasOwnProperty.call(s,u));return s[u]=l,u},s=a.hats={};return a.get=function(l){return a.hats[l]},a.set=function(l,c){return a.hats[l]=c,a},a.bits=r||128,a.base=i||16,a}});function Lm(e){if(!(this instanceof Lm))return new Lm(e);e=e||[128,36,1],this._seed=e.length?d8n.rack(e[0],e[1],e[2]):e}Lm.prototype.next=function(e){return this._seed(e||!0)};Lm.prototype.nextPrefixed=function(e,n){var r;do r=e+this.next(!0);while(this.assigned(r));return this.claim(r,n),r};Lm.prototype.claim=function(e,n){this._seed.set(e,n||!0)};Lm.prototype.assigned=function(e){return this._seed.get(e)||!1};Lm.prototype.unclaim=function(e){delete this._seed.hats[e]};Lm.prototype.clear=function(){var e=this._seed.hats,n;for(n in e)this.unclaim(n)};function ghe(e){return Array.prototype.concat.apply([],e)}const _L=Object.prototype.toString,f8n=Object.prototype.hasOwnProperty;function SC(e){return e===void 0}function bl(e){return e!==void 0}function eD(e){return e==null}function zr(e){return _L.call(e)==="[object Array]"}function Rl(e){return _L.call(e)==="[object Object]"}function Nr(e){return _L.call(e)==="[object Number]"}function zs(e){const n=_L.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"||n==="[object Proxy]"}function md(e){return _L.call(e)==="[object String]"}function p8n(e){if(!zr(e))throw new Error("must supply array")}function gu(e,n){return!eD(e)&&f8n.call(e,n)}function ki(e,n){const r=Ez(n);let i;return ht(e,function(o,a){if(r(o,a))return i=o,!1}),i}function ZZe(e,n){const r=Ez(n);let i=zr(e)?-1:void 0;return ht(e,function(o,a){if(r(o,a))return i=a,!1}),i}function si(e,n){const r=Ez(n);let i=[];return ht(e,function(o,a){r(o,a)&&i.push(o)}),i}function ht(e,n){let r,i;if(SC(e))return;const o=zr(e)?y8n:v8n;for(let a in e)if(gu(e,a)&&(r=e[a],i=n(r,o(a)),i===!1))return r}function h8n(e,n){if(SC(e))return[];p8n(e);const r=Ez(n);return e.filter(function(i,o){return!r(i,o)})}function vd(e,n,r){return ht(e,function(i,o){r=n(r,i,o)}),r}function bw(e,n){return!!vd(e,function(r,i,o){return r&&n(i,o)},!0)}function fS(e,n){return!!ki(e,n)}function vc(e,n){let r=[];return ht(e,function(i,o){r.push(n(i,o))}),r}function WB(e){return e&&Object.keys(e)||[]}function g8n(e){return WB(e).length}function mhe(e){return vc(e,n=>n)}function HI(e,n,r={}){return n=vhe(n),ht(e,function(i){let o=n(i)||"_",a=r[o];a||(a=r[o]=[]),a.push(i)}),r}function JZe(e,...n){e=vhe(e);let r={};return ht(n,o=>HI(o,e,r)),vc(r,function(o,a){return o[0]})}const m8n=JZe;function $m(e,n){n=vhe(n);let r=[];return ht(e,function(i,o){let a=n(i,o),s={d:a,v:i};for(var l=0;l<r.length;l++){let{d:c}=r[l];if(a<c){r.splice(l,0,s);return}}r.push(s)}),vc(r,i=>i.v)}function qh(e){return function(n){return bw(e,function(r,i){return n[i]===r})}}function vhe(e){return zs(e)?e:n=>n[e]}function Ez(e){return zs(e)?e:n=>n===e}function v8n(e){return e}function y8n(e){return Number(e)}function eJe(e,n){let r,i,o,a;function s(f){let p=Date.now(),h=f?0:a+n-p;if(h>0)return l(h);e.apply(o,i),c()}function l(f){r=setTimeout(s,f)}function c(){r&&clearTimeout(r),r=a=i=o=void 0}function u(){r&&s(!0),c()}function d(...f){a=Date.now(),i=f,o=this,r||l(n)}return d.flush=u,d.cancel=c,d}function Su(e,n){return e.bind(n)}function Rt(e,...n){return Object.assign(e,...n)}function _8n(e,n,r){let i=e;return ht(n,function(o,a){if(typeof o!="number"&&typeof o!="string")throw new Error("illegal key type: "+typeof o+". Key should be of type number or string.");if(o==="constructor")throw new Error("illegal key: constructor");if(o==="__proto__")throw new Error("illegal key: __proto__");let s=n[a+1],l=i[o];bl(s)&&eD(l)&&(l=i[o]=isNaN(+s)?{}:[]),SC(s)?SC(r)?delete i[o]:i[o]=r:i=l}),e}function ag(e,n){let r={},i=Object(e);return ht(n,function(o){o in i&&(r[o]=e[o])}),r}function iv(e,n){let r={},i=Object(e);return ht(i,function(o,a){n.indexOf(a)===-1&&(r[a]=o)}),r}function b8n(e,n){return n.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(i){if(i!=="default"&&!(i in e)){var o=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return r[i]}})}})}),Object.freeze(e)}const S8n=Object.prototype.toString,E8n=Object.prototype.hasOwnProperty;function C8n(e){return e===void 0}function w8n(e){return S8n.call(e)==="[object Array]"}function x8n(e,n){return E8n.call(e,n)}function DPe(e,n){let r,i;if(C8n(e))return;const o=w8n(e)?O8n:T8n;for(let a in e)if(x8n(e,a)&&(r=e[a],i=n(r,o(a)),i===!1))return r}function T8n(e){return e}function O8n(e){return Number(e)}function dc(e,...n){const r=e.style;return DPe(n,function(i){i&&DPe(i,function(o,a){r[a]=o})}),e}function fc(e,n,r){return arguments.length==2?e.getAttribute(n):r===null?e.removeAttribute(n):(e.setAttribute(n,r),e)}const R8n=Object.prototype.toString;function Ga(e){return new P0(e)}function P0(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}P0.prototype.add=function(e){return this.list.add(e),this};P0.prototype.remove=function(e){return R8n.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)};P0.prototype.removeMatching=function(e){const n=this.array();for(let r=0;r<n.length;r++)e.test(n[r])&&this.remove(n[r]);return this};P0.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this};P0.prototype.array=function(){return Array.from(this.list)};P0.prototype.has=P0.prototype.contains=function(e){return this.list.contains(e)};function Cz(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}function zI(e,n,r){var i=r?e:e.parentNode;return i&&typeof i.closest=="function"&&i.closest(n)||null}var YB={},qB,gae,yhe;function tJe(){qB=window.addEventListener?"addEventListener":"attachEvent",gae=window.removeEventListener?"removeEventListener":"detachEvent",yhe=qB!=="addEventListener"?"on":""}var I8n=YB.bind=function(e,n,r,i){return qB||tJe(),e[qB](yhe+n,r,i||!1),r},N8n=YB.unbind=function(e,n,r,i){return gae||tJe(),e[gae](yhe+n,r,i||!1),r},Ur=b8n({__proto__:null,bind:I8n,unbind:N8n,default:YB},[YB]),nJe=["focus","blur"];function M8n(e,n,r,i,o){return nJe.indexOf(r)!==-1&&(o=!0),Ur.bind(e,r,function(a){var s=a.target||a.srcElement;a.delegateTarget=zI(s,n,!0),a.delegateTarget&&i.call(e,a)},o)}function P8n(e,n,r,i){return nJe.indexOf(n)!==-1&&(i=!0),Ur.unbind(e,n,r,i)}var sd={bind:M8n,unbind:P8n},A8n=D8n,rJe=!1,D4;typeof document<"u"&&(D4=document.createElement("div"),D4.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',rJe=!D4.getElementsByTagName("link").length,D4=void 0);var $s={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:rJe?[1,"X<div>","</div>"]:[0,"",""]};$s.td=$s.th=[3,"<table><tbody><tr>","</tr></tbody></table>"];$s.option=$s.optgroup=[1,'<select multiple="multiple">',"</select>"];$s.thead=$s.tbody=$s.colgroup=$s.caption=$s.tfoot=[1,"<table>","</table>"];$s.polyline=$s.ellipse=$s.polygon=$s.circle=$s.text=$s.line=$s.path=$s.rect=$s.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function D8n(e,n){if(typeof e!="string")throw new TypeError("String expected");n||(n=document);var r=/<([\w:]+)/.exec(e);if(!r)return n.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var i=r[1];if(i=="body"){var c=n.createElement("html");return c.innerHTML=e,c.removeChild(c.lastChild)}var o=Object.prototype.hasOwnProperty.call($s,i)?$s[i]:$s._default,a=o[0],s=o[1],l=o[2],c=n.createElement("div");for(c.innerHTML=s+e+l;a--;)c=c.lastChild;if(c.firstChild==c.lastChild)return c.removeChild(c.firstChild);for(var u=n.createDocumentFragment();c.firstChild;)u.appendChild(c.removeChild(c.firstChild));return u}var Ko=A8n;function iJe(e,n){return e&&typeof e.matches=="function"&&e.matches(n)||!1}function Co(e,n){return n=n||document,n.querySelector(e)}function mae(e,n){return n=n||document,n.querySelectorAll(e)}function Fm(e){e.parentNode&&e.parentNode.removeChild(e)}function k8n(e,n){if(e.ownerDocument!==n.ownerDocument)try{return n.ownerDocument.importNode(e,!0)}catch{}return e}function L8n(e,n){return n.appendChild(k8n(e,n))}function Ar(e,n){return L8n(n,e),e}var vae=2,oJe={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":vae,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":vae,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function $8n(e,n){return oJe[n]?e.style[n]:e.getAttributeNS(null,n)}function aJe(e,n,r){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=oJe[i];o?(o===vae&&typeof r=="number"&&(r=String(r)+"px"),e.style[i]=r):e.setAttributeNS(null,n,r)}function F8n(e,n){var r=Object.keys(n),i,o;for(i=0,o;o=r[i];i++)aJe(e,o,n[o])}function Gn(e,n,r){if(typeof n=="string")if(r!==void 0)aJe(e,n,r);else return $8n(e,n);else F8n(e,n);return e}const B8n=Object.prototype.toString;function Ri(e){return new A0(e)}function A0(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}A0.prototype.add=function(e){return this.list.add(e),this};A0.prototype.remove=function(e){return B8n.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)};A0.prototype.removeMatching=function(e){const n=this.array();for(let r=0;r<n.length;r++)e.test(n[r])&&this.remove(n[r]);return this};A0.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this};A0.prototype.array=function(){return Array.from(this.list)};A0.prototype.has=A0.prototype.contains=function(e){return this.list.contains(e)};function wz(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}function sJe(e){return e.cloneNode(!0)}var _he={svg:"http://www.w3.org/2000/svg"},kPe='<svg xmlns="'+_he.svg+'"';function j8n(e){var n=!1;e.substring(0,4)==="<svg"?e.indexOf(_he.svg)===-1&&(e=kPe+e.substring(4)):(e=kPe+">"+e+"</svg>",n=!0);var r=U8n(e);if(!n)return r;for(var i=document.createDocumentFragment(),o=r.firstChild;o.firstChild;)i.appendChild(o.firstChild);return i}function U8n(e){var n;return n=new DOMParser,n.async=!1,n.parseFromString(e,"text/xml")}function pr(e,n){var r;return e=e.trim(),e.charAt(0)==="<"?(r=j8n(e).firstChild,r=document.importNode(r,!0)):r=document.createElementNS(_he.svg,e),n&&Gn(r,n),r}var rJ=null;function lJe(){return rJ===null&&(rJ=pr("svg")),rJ}function LPe(e,n){var r,i,o=Object.keys(n);for(r=0;i=o[r];r++)e[i]=n[i];return e}function H8n(e,n,r,i,o,a){var s=lJe().createSVGMatrix();switch(arguments.length){case 0:return s;case 1:return LPe(s,e);case 6:return LPe(s,{a:e,b:n,c:r,d:i,e:o,f:a})}}function pP(e){return lJe().createSVGTransform()}var $Pe=/([&<>]{1})/g,z8n=/([&<>\n\r"]{1})/g,V8n={"&":"&","<":"<",">":">",'"':"'"};function iJ(e,n){function r(i,o){return V8n[o]||o}return e.replace(n,r)}function cJe(e,n){var r,i,o,a,s;switch(e.nodeType){case 3:n.push(iJ(e.textContent,$Pe));break;case 1:if(n.push("<",e.tagName),e.hasAttributes())for(o=e.attributes,r=0,i=o.length;r<i;++r)a=o.item(r),n.push(" ",a.name,'="',iJ(a.value,z8n),'"');if(e.hasChildNodes()){for(n.push(">"),s=e.childNodes,r=0,i=s.length;r<i;++r)cJe(s.item(r),n);n.push("</",e.tagName,">")}else n.push("/>");break;case 8:n.push("<!--",iJ(e.nodeValue,$Pe),"-->");break;case 4:n.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return n}function G8n(e){for(var n=e.firstChild,r=[];n;)cJe(n,r),n=n.nextSibling;return r.join("")}function FPe(e,n){return G8n(e)}function Hs(e){var n=e.parentNode;return n&&n.removeChild(e),e}function W8n(e,n){return n instanceof SVGMatrix?e.createSVGTransformFromMatrix(n):n}function Y8n(e,n){var r,i;for(e.clear(),r=0;i=n[r];r++)e.appendItem(W8n(e,i))}function tD(e,n){var r=e.transform.baseVal;return n&&(Array.isArray(n)||(n=[n]),Y8n(r,n)),r.consolidate()}const q8n=/^class[ {]/;function K8n(e){return q8n.test(e.toString())}function bhe(e){return Array.isArray(e)}function oJ(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function F6(...e){e.length===1&&bhe(e[0])&&(e=e[0]),e=[...e];const n=e.pop();return n.$inject=e,n}const X8n=/constructor\s*[^(]*\(\s*([^)]*)\)/m,Q8n=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,Z8n=/\/\*([^*]*)\*\//m;function J8n(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const n=e.toString().match(K8n(e)?X8n:Q8n);if(!n)return[];const r=n[1]||n[2];return r&&r.split(",").map(i=>{const o=i.match(Z8n);return(o&&o[1]||i).trim()})||[]}function uJe(e,n){const r=n||{get:function(b,E){if(i.push(b),E===!1)return null;throw l(`No provider for "${b}"!`)}},i=[],o=this._providers=Object.create(r._providers||null),a=this._instances=Object.create(null),s=a.injector=this,l=function(b){const E=i.join(" -> ");return i.length=0,new Error(E?`${b} (Resolving: ${E})`:b)};function c(b,E){if(!o[b]&&b.includes(".")){const w=b.split(".");let C=c(w.shift());for(;w.length;)C=C[w.shift()];return C}if(oJ(a,b))return a[b];if(oJ(o,b)){if(i.indexOf(b)!==-1)throw i.push(b),l("Cannot resolve circular dependency!");return i.push(b),a[b]=o[b][0](o[b][1]),i.pop(),a[b]}return r.get(b,E)}function u(b,E){if(typeof E>"u"&&(E={}),typeof b!="function")if(bhe(b))b=F6(b.slice());else throw l(`Cannot invoke "${b}". Expected a function!`);const C=(b.$inject||J8n(b)).map(x=>oJ(E,x)?E[x]:c(x));return{fn:b,dependencies:C}}function d(b){const{fn:E,dependencies:w}=u(b),C=Function.prototype.bind.call(E,null,...w);return new C}function f(b,E,w){const{fn:C,dependencies:x}=u(b,w);return C.apply(E,x)}function p(b){return F6(E=>b.get(E))}function h(b,E){if(E&&E.length){const w=Object.create(null),C=Object.create(null),x=[],T=[],R=[];let O,M,P,k;for(let $ in o)O=o[$],E.indexOf($)!==-1&&(O[2]==="private"?(M=x.indexOf(O[3]),M===-1?(P=O[3].createChild([],E),k=p(P),x.push(O[3]),T.push(P),R.push(k),w[$]=[k,$,"private",P]):w[$]=[R[M],$,"private",T[M]]):w[$]=[O[2],O[1]],C[$]=!0),(O[2]==="factory"||O[2]==="type")&&O[1].$scope&&E.forEach(U=>{O[1].$scope.indexOf(U)!==-1&&(w[$]=[O[2],O[1]],C[U]=!0)});E.forEach($=>{if(!C[$])throw new Error('No provider for "'+$+'". Cannot use provider from the parent!')}),b.unshift(w)}return new uJe(b,s)}const g={factory:f,type:d,value:function(b){return b}};function v(b,E){const w=b.__init__||[];return function(){w.forEach(C=>{typeof C=="string"?E.get(C):E.invoke(C)})}}function y(b){const E=b.__exports__;if(E){const w=b.__modules__,C=Object.keys(b).reduce((M,P)=>(P!=="__exports__"&&P!=="__modules__"&&P!=="__init__"&&P!=="__depends__"&&(M[P]=b[P]),M),Object.create(null)),x=(w||[]).concat(C),T=h(x),R=F6(function(M){return T.get(M)});E.forEach(function(M){o[M]=[R,M,"private",T]});const O=(b.__init__||[]).slice();return O.unshift(function(){T.init()}),b=Object.assign({},b,{__init__:O}),v(b,T)}return Object.keys(b).forEach(function(w){if(w==="__init__"||w==="__depends__")return;const C=b[w];if(C[2]==="private"){o[w]=C;return}const x=C[0],T=C[1];o[w]=[g[x],eBn(x,T),x]}),v(b,s)}function _(b,E){return b.indexOf(E)!==-1||(b=(E.__depends__||[]).reduce(_,b),b.indexOf(E)!==-1)?b:b.concat(E)}function S(b){const E=b.reduce(_,[]).map(y);let w=!1;return function(){w||(w=!0,E.forEach(C=>C()))}}this.get=c,this.invoke=f,this.instantiate=d,this.createChild=h,this.init=S(e)}function eBn(e,n){return e!=="value"&&bhe(n)&&(n=F6(n.slice())),n}var tBn=1e3;function p_(e,n){var r=this;n=n||tBn,e.on(["render.shape","render.connection"],n,function(i,o){var a=i.type,s=o.element,l=o.gfx,c=o.attrs;if(r.canRender(s))return a==="render.shape"?r.drawShape(l,s,c):r.drawConnection(l,s,c)}),e.on(["render.getShapePath","render.getConnectionPath"],n,function(i,o){if(r.canRender(o))return i.type==="render.getShapePath"?r.getShapePath(o):r.getConnectionPath(o)})}p_.prototype.canRender=function(e){};p_.prototype.drawShape=function(e,n){};p_.prototype.drawConnection=function(e,n){};p_.prototype.getShapePath=function(e){};p_.prototype.getConnectionPath=function(e){};function Sw(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function nBn(e){return["M",e.x,e.y]}function aJ(e){return["L",e.x,e.y]}function rBn(e,n,r){return["C",e.x,e.y,n.x,n.y,r.x,r.y]}function iBn(e,n){const r=e.length,i=[nBn(e[0])];for(let o=1;o<r;o++){const a=e[o-1],s=e[o],l=e[o+1];if(!l||!n){i.push(aJ(s));continue}const c=Math.min(n,yae(s.x-a.x,s.y-a.y),yae(l.x-s.x,l.y-s.y));if(!c){i.push(aJ(s));continue}const u=k4(s,a,c),d=k4(s,a,c*.5),f=k4(s,l,c),p=k4(s,l,c*.5);i.push(aJ(u)),i.push(rBn(d,p,f))}return i}function k4(e,n,r){const i=n.x-e.x,o=n.y-e.y,a=yae(i,o),s=r/a;return{x:e.x+i*s,y:e.y+o*s}}function yae(e,n){return Math.sqrt(Math.pow(e,2)+Math.pow(n,2))}function xz(e,n,r){Nr(n)&&(r=n,n=null),n||(n={});const i=pr("path",n);return Nr(r)&&(i.dataset.cornerRadius=String(r)),dJe(i,e)}function dJe(e,n){const r=parseInt(e.dataset.cornerRadius,10)||0;return Gn(e,{d:Sw(iBn(n,r))}),e}function Tz(e){return si(e,function(n){return!ki(e,function(r){return r!==n&&fJe(n,r)})})}function fJe(e,n){if(n){if(e===n)return n;if(e.parent)return fJe(e.parent,n)}}function BPe(e,n,r){var i=!r||e.indexOf(n)===-1;return i&&e.push(n),i}function Ew(e,n,r){r=r||0,zr(e)||(e=[e]),ht(e,function(i,o){var a=n(i,o,r);zr(a)&&a.length&&Ew(a,n,r+1)})}function oBn(e,n,r){var i=[],o=[];return Ew(e,function(a,s,l){BPe(i,a,n);var c=a.children;if(c&&BPe(o,c,n))return c}),i}function bL(e,n){return oBn(e,!n)}function aBn(e,n,r){SC(n)&&(n=!0),Rl(n)&&(r=n,n=!0),r=r||{};var i=wM(r.allShapes),o=wM(r.allConnections),a=wM(r.enclosedElements),s=wM(r.enclosedConnections),l=wM(r.topLevel,n&&HI(e,function(d){return d.id}));function c(d){l[d.source.id]&&l[d.target.id]&&(l[d.id]=[d]),i[d.source.id]&&i[d.target.id]&&(s[d.id]=a[d.id]=d),o[d.id]=d}function u(d){if(a[d.id]=d,d.waypoints)s[d.id]=o[d.id]=d;else return i[d.id]=d,ht(d.incoming,c),ht(d.outgoing,c),d.children}return Ew(e,u),{allShapes:i,allConnections:o,topLevel:l,enclosedConnections:s,enclosedElements:a}}function sl(e,n){n=!!n,zr(e)||(e=[e]);var r,i,o,a;return ht(e,function(s){var l=s;s.waypoints&&!n&&(l=sl(s.waypoints,!0));var c=l.x,u=l.y,d=l.height||0,f=l.width||0;(c<r||r===void 0)&&(r=c),(u<i||i===void 0)&&(i=u),(c+f>o||o===void 0)&&(o=c+f),(u+d>a||a===void 0)&&(a=u+d)}),{x:r,y:i,height:a-i,width:o-r}}function sBn(e,n){var r={};return ht(e,function(i){var o=i;o.waypoints&&(o=sl(o)),!Nr(n.y)&&o.x>n.x&&(r[i.id]=i),!Nr(n.x)&&o.y>n.y&&(r[i.id]=i),o.x>n.x&&o.y>n.y&&(Nr(n.width)&&Nr(n.height)&&o.width+o.x<n.width+n.x&&o.height+o.y<n.height+n.y||!Nr(n.width)||!Nr(n.height))&&(r[i.id]=i)}),r}function pJe(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function hJe(e){return!!(e&&e.isFrame)}function wM(e,n){return Rt({},e||{},n||{})}var lBn=1;function pS(e,n){p_.call(this,e,lBn),this.CONNECTION_STYLE=n.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=n.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=n.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}Zn(pS,p_);pS.prototype.canRender=function(){return!0};pS.prototype.drawShape=function(n,r,i){var o=pr("rect");return Gn(o,{x:0,y:0,width:r.width||0,height:r.height||0}),hJe(r)?Gn(o,Rt({},this.FRAME_STYLE,i||{})):Gn(o,Rt({},this.SHAPE_STYLE,i||{})),Ar(n,o),o};pS.prototype.drawConnection=function(n,r,i){var o=xz(r.waypoints,Rt({},this.CONNECTION_STYLE,i||{}));return Ar(n,o),o};pS.prototype.getShapePath=function(n){var r=n.x,i=n.y,o=n.width,a=n.height,s=[["M",r,i],["l",o,0],["l",0,a],["l",-o,0],["z"]];return Sw(s)};pS.prototype.getConnectionPath=function(n){var r=n.waypoints,i,o,a=[];for(i=0;o=r[i];i++)o=o.original||o,a.push([i===0?"M":"L",o.x,o.y]);return Sw(a)};pS.$inject=["eventBus","styles"];function cBn(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},n=this;this.cls=function(r,i,o){var a=this.style(i,o);return Rt(a,{class:r})},this.style=function(r,i){!zr(r)&&!i&&(i=r,r=[]);var o=vd(r,function(a,s){return Rt(a,e[s]||{})},{});return i?Rt(o,i):o},this.computeStyle=function(r,i,o){return zr(i)||(o=i,i=[]),n.style(i||[],Rt({},o,r||{}))}}const uBn={__init__:["defaultRenderer"],defaultRenderer:["type",pS],styles:["type",cBn]};function Cs(e,n){if(!e||!n)return-1;var r=e.indexOf(n);return r!==-1&&e.splice(r,1),r}function Ks(e,n,r){if(!(!e||!n)){typeof r!="number"&&(r=-1);var i=e.indexOf(n);if(i!==-1){if(i===r)return;if(r!==-1)e.splice(i,1);else return}r!==-1?e.splice(r,0,n):e.push(n)}}function She(e,n){return!e||!n?-1:e.indexOf(n)}function SL(e,n){return!e||!n?-1:Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Ehe(e,n,r,i){if(typeof i>"u"&&(i=5),!e||!n||!r)return!1;var o=(n.x-e.x)*(r.y-e.y)-(n.y-e.y)*(r.x-e.x),a=SL(e,n);return Math.abs(o/a)<=i}var dBn=2;function ny(e,n){var r=Array.from(arguments).flat();const i={x:"v",y:"h"};for(const[o,a]of Object.entries(i))if(fBn(o,r))return a;return!1}function fBn(e,n){const r=n[0];return bw(n,function(i){return Math.abs(r[e]-i[e])<=dBn})}function jPe(e,n,r){return r=r||0,e.x>n.x-r&&e.y>n.y-r&&e.x<n.x+n.width+r&&e.y<n.y+n.height+r}function _ae(e,n){return{x:Math.round(e.x+(n.x-e.x)/2),y:Math.round(e.y+(n.y-e.y)/2)}}var pBn=/,?([a-z]),?/gi,UPe=parseFloat,gs=Math,W_=gs.PI,Gg=gs.min,Wg=gs.max,HPe=gs.pow,Wb=gs.abs,hBn=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/ig,gBn=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/ig,KB=Array.isArray||function(e){return e instanceof Array};function Che(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function hP(e){if(typeof e=="function"||Object(e)!==e)return e;var n=new e.constructor;for(var r in e)Che(e,r)&&(n[r]=hP(e[r]));return n}function mBn(e,n){for(var r=0,i=e.length;r<i;r++)if(e[r]===n)return e.push(e.splice(r,1)[0])}function vBn(e){function n(){var r=Array.prototype.slice.call(arguments,0),i=r.join("␀"),o=n.cache=n.cache||{},a=n.count=n.count||[];return Che(o,i)?(mBn(a,i),o[i]):(a.length>=1e3&&delete o[a.shift()],a.push(i),o[i]=e(...arguments),o[i])}return n}function yBn(e){if(!e)return null;var n=aR(e);if(n.arr)return hP(n.arr);var r={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=[];return KB(e)&&KB(e[0])&&(i=hP(e)),i.length||String(e).replace(hBn,function(o,a,s){var l=[],c=a.toLowerCase();for(s.replace(gBn,function(u,d){d&&l.push(+d)}),c=="m"&&l.length>2&&(i.push([a,...l.splice(0,2)]),c="l",a=a=="m"?"l":"L");l.length>=r[c]&&(i.push([a,...l.splice(0,r[c])]),!!r[c]););}),i.toString=aR.toString,n.arr=hP(i),i}function aR(e){var n=aR.ps=aR.ps||{};return n[e]?n[e].sleep=100:n[e]={sleep:100},setTimeout(function(){for(var r in n)Che(n,r)&&r!=e&&(n[r].sleep--,!n[r].sleep&&delete n[r])}),n[e]}function bae(e,n,r,i){return arguments.length===1&&(n=e.y,r=e.width,i=e.height,e=e.x),{x:e,y:n,width:r,height:i,x2:e+r,y2:n+i}}function gJe(){return this.join(",").replace(pBn,"$1")}function XB(e){var n=hP(e);return n.toString=gJe,n}function zPe(e,n,r,i,o,a,s,l,c){var u=1-c,d=HPe(u,3),f=HPe(u,2),p=c*c,h=p*c,g=d*e+f*3*c*r+u*3*c*c*o+h*s,v=d*n+f*3*c*i+u*3*c*c*a+h*l;return{x:QB(g),y:QB(v)}}function VPe(e){var n=CBn(...e);return bae(n.x0,n.y0,n.x1-n.x0,n.y1-n.y0)}function Y_(e,n,r){return n>=e.x&&n<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function _Bn(e,n){return e=bae(e),n=bae(n),Y_(n,e.x,e.y)||Y_(n,e.x2,e.y)||Y_(n,e.x,e.y2)||Y_(n,e.x2,e.y2)||Y_(e,n.x,n.y)||Y_(e,n.x2,n.y)||Y_(e,n.x,n.y2)||Y_(e,n.x2,n.y2)||(e.x<n.x2&&e.x>n.x||n.x<e.x2&&n.x>e.x)&&(e.y<n.y2&&e.y>n.y||n.y<e.y2&&n.y>e.y)}function GPe(e,n,r,i,o){var a=-3*n+9*r-9*i+3*o,s=e*a+6*n-12*r+6*i;return e*s-3*n+3*r}function WPe(e,n,r,i,o,a,s,l,c){c==null&&(c=1),c=c>1?1:c<0?0:c;for(var u=c/2,d=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,g=0;g<d;g++){var v=u*f[g]+u,y=GPe(v,e,r,o,s),_=GPe(v,n,i,a,l),S=y*y+_*_;h+=p[g]*gs.sqrt(S)}return u*h}function bBn(e,n,r,i,o,a,s,l){if(!(Wg(e,r)<Gg(o,s)||Gg(e,r)>Wg(o,s)||Wg(n,i)<Gg(a,l)||Gg(n,i)>Wg(a,l))){var c=(e*i-n*r)*(o-s)-(e-r)*(o*l-a*s),u=(e*i-n*r)*(a-l)-(n-i)*(o*l-a*s),d=(e-r)*(a-l)-(n-i)*(o-s);if(d){var f=QB(c/d),p=QB(u/d),h=+f.toFixed(2),g=+p.toFixed(2);if(!(h<+Gg(e,r).toFixed(2)||h>+Wg(e,r).toFixed(2)||h<+Gg(o,s).toFixed(2)||h>+Wg(o,s).toFixed(2)||g<+Gg(n,i).toFixed(2)||g>+Wg(n,i).toFixed(2)||g<+Gg(a,l).toFixed(2)||g>+Wg(a,l).toFixed(2)))return{x:f,y:p}}}}function QB(e){return Math.round(e*1e11)/1e11}function SBn(e,n,r){var i=VPe(e),o=VPe(n);if(!_Bn(i,o))return r?0:[];for(var a=WPe(...e),s=WPe(...n),l=YPe(e)?1:~~(a/5)||1,c=YPe(n)?1:~~(s/5)||1,u=[],d=[],f={},p=r?0:[],h=0;h<l+1;h++){var g=zPe(...e,h/l);u.push({x:g.x,y:g.y,t:h/l})}for(h=0;h<c+1;h++)g=zPe(...n,h/c),d.push({x:g.x,y:g.y,t:h/c});for(h=0;h<l;h++)for(var v=0;v<c;v++){var y=u[h],_=u[h+1],S=d[v],b=d[v+1],E=Wb(_.x-y.x)<.01?"y":"x",w=Wb(b.x-S.x)<.01?"y":"x",C=bBn(y.x,y.y,_.x,_.y,S.x,S.y,b.x,b.y),x;if(C){if(x=C.x.toFixed(9)+"#"+C.y.toFixed(9),f[x])continue;f[x]=!0;var T=y.t+Wb((C[E]-y[E])/(_[E]-y[E]))*(_.t-y.t),R=S.t+Wb((C[w]-S[w])/(b[w]-S[w]))*(b.t-S.t);T>=0&&T<=1&&R>=0&&R<=1&&(r?p++:p.push({x:C.x,y:C.y,t1:T,t2:R}))}}return p}function mJe(e,n,r){e=KPe(e),n=KPe(n);for(var i,o,a,s,l,c,u,d,f,p,h=r?0:[],g=0,v=e.length;g<v;g++){var y=e[g];if(y[0]=="M")i=l=y[1],o=c=y[2];else{y[0]=="C"?(f=[i,o,...y.slice(1)],i=f[6],o=f[7]):(f=[i,o,i,o,l,c,l,c],i=l,o=c);for(var _=0,S=n.length;_<S;_++){var b=n[_];if(b[0]=="M")a=u=b[1],s=d=b[2];else{b[0]=="C"?(p=[a,s,...b.slice(1)],a=p[6],s=p[7]):(p=[a,s,a,s,u,d,u,d],a=u,s=d);var E=SBn(f,p,r);if(r)h+=E;else{for(var w=0,C=E.length;w<C;w++)E[w].segment1=g,E[w].segment2=_,E[w].bez1=f,E[w].bez2=p;h=h.concat(E)}}}}}return h}function EBn(e){var n=aR(e);if(n.abs)return XB(n.abs);if((!KB(e)||!KB(e&&e[0]))&&(e=yBn(e)),!e||!e.length)return[["M",0,0]];var r=[],i=0,o=0,a=0,s=0,l=0,c;e[0][0]=="M"&&(i=+e[0][1],o=+e[0][2],a=i,s=o,l++,r[0]=["M",i,o]);for(var u,d,f=l,p=e.length;f<p;f++){if(r.push(u=[]),d=e[f],c=d[0],c!=c.toUpperCase())switch(u[0]=c.toUpperCase(),u[0]){case"A":u[1]=d[1],u[2]=d[2],u[3]=d[3],u[4]=d[4],u[5]=d[5],u[6]=+d[6]+i,u[7]=+d[7]+o;break;case"V":u[1]=+d[1]+o;break;case"H":u[1]=+d[1]+i;break;case"M":a=+d[1]+i,s=+d[2]+o;default:for(var h=1,g=d.length;h<g;h++)u[h]=+d[h]+(h%2?i:o)}else for(var v=0,y=d.length;v<y;v++)u[v]=d[v];switch(c=c.toUpperCase(),u[0]){case"Z":i=+a,o=+s;break;case"H":i=u[1];break;case"V":o=u[1];break;case"M":a=u[u.length-2],s=u[u.length-1];default:i=u[u.length-2],o=u[u.length-1]}}return r.toString=gJe,n.abs=XB(r),r}function YPe(e){return e[0]===e[2]&&e[1]===e[3]&&e[4]===e[6]&&e[5]===e[7]}function L4(e,n,r,i){return[e,n,r,i,r,i]}function qPe(e,n,r,i,o,a){var s=.3333333333333333,l=2/3;return[s*e+l*r,s*n+l*i,s*o+l*r,s*a+l*i,o,a]}function vJe(e,n,r,i,o,a,s,l,c,u){var d=W_*120/180,f=W_/180*(+o||0),p=[],h,g=vBn(function(j,F,te){var oe=j*gs.cos(te)-F*gs.sin(te),de=j*gs.sin(te)+F*gs.cos(te);return{x:oe,y:de}});if(u)x=u[0],T=u[1],w=u[2],C=u[3];else{h=g(e,n,-f),e=h.x,n=h.y,h=g(l,c,-f),l=h.x,c=h.y;var v=(e-l)/2,y=(n-c)/2,_=v*v/(r*r)+y*y/(i*i);_>1&&(_=gs.sqrt(_),r=_*r,i=_*i);var S=r*r,b=i*i,E=(a==s?-1:1)*gs.sqrt(Wb((S*b-S*y*y-b*v*v)/(S*y*y+b*v*v))),w=E*r*y/i+(e+l)/2,C=E*-i*v/r+(n+c)/2,x=gs.asin(((n-C)/i).toFixed(9)),T=gs.asin(((c-C)/i).toFixed(9));x=e<w?W_-x:x,T=l<w?W_-T:T,x<0&&(x=W_*2+x),T<0&&(T=W_*2+T),s&&x>T&&(x=x-W_*2),!s&&T>x&&(T=T-W_*2)}var R=T-x;if(Wb(R)>d){var O=T,M=l,P=c;T=x+d*(s&&T>x?1:-1),l=w+r*gs.cos(T),c=C+i*gs.sin(T),p=vJe(l,c,r,i,o,0,s,M,P,[T,O,w,C])}R=T-x;var k=gs.cos(x),$=gs.sin(x),U=gs.cos(T),z=gs.sin(T),D=gs.tan(R/4),B=4/3*r*D,Y=4/3*i*D,q=[e,n],K=[e+B*$,n-Y*k],H=[l+B*z,c-Y*U],G=[l,c];if(K[0]=2*q[0]-K[0],K[1]=2*q[1]-K[1],u)return[K,H,G].concat(p);p=[K,H,G].concat(p).join().split(",");for(var Q=[],le=0,Z=p.length;le<Z;le++)Q[le]=le%2?g(p[le-1],p[le],f).y:g(p[le],p[le+1],f).x;return Q}function CBn(e,n,r,i,o,a,s,l){for(var c=[],u=[[],[]],d,f,p,h,g,v,y,_,S=0;S<2;++S){if(S==0?(f=6*e-12*r+6*o,d=-3*e+9*r-9*o+3*s,p=3*r-3*e):(f=6*n-12*i+6*a,d=-3*n+9*i-9*a+3*l,p=3*i-3*n),Wb(d)<1e-12){if(Wb(f)<1e-12)continue;h=-p/f,0<h&&h<1&&c.push(h);continue}y=f*f-4*p*d,_=gs.sqrt(y),!(y<0)&&(g=(-f+_)/(2*d),0<g&&g<1&&c.push(g),v=(-f-_)/(2*d),0<v&&v<1&&c.push(v))}for(var b=c.length,E=b,w;b--;)h=c[b],w=1-h,u[0][b]=w*w*w*e+3*w*w*h*r+3*w*h*h*o+h*h*h*s,u[1][b]=w*w*w*n+3*w*w*h*i+3*w*h*h*a+h*h*h*l;return u[0][E]=e,u[1][E]=n,u[0][E+1]=s,u[1][E+1]=l,u[0].length=u[1].length=E+2,{x0:Gg(...u[0]),y0:Gg(...u[1]),x1:Wg(...u[0]),y1:Wg(...u[1])}}function KPe(e){var n=aR(e);if(n.curve)return XB(n.curve);for(var r=EBn(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=function(h,g,v){var y,_;if(!h)return["C",g.x,g.y,g.x,g.y,g.x,g.y];switch(!(h[0]in{T:1,Q:1})&&(g.qx=g.qy=null),h[0]){case"M":g.X=h[1],g.Y=h[2];break;case"A":h=["C",...vJe(g.x,g.y,...h.slice(1))];break;case"S":v=="C"||v=="S"?(y=g.x*2-g.bx,_=g.y*2-g.by):(y=g.x,_=g.y),h=["C",y,_,...h.slice(1)];break;case"T":v=="Q"||v=="T"?(g.qx=g.x*2-g.qx,g.qy=g.y*2-g.qy):(g.qx=g.x,g.qy=g.y),h=["C",...qPe(g.x,g.y,g.qx,g.qy,h[1],h[2])];break;case"Q":g.qx=h[1],g.qy=h[2],h=["C",...qPe(g.x,g.y,h[1],h[2],h[3],h[4])];break;case"L":h=["C",...L4(g.x,g.y,h[1],h[2])];break;case"H":h=["C",...L4(g.x,g.y,h[1],g.y)];break;case"V":h=["C",...L4(g.x,g.y,g.x,h[1])];break;case"Z":h=["C",...L4(g.x,g.y,g.X,g.Y)];break}return h},a=function(h,g){if(h[g].length>7){h[g].shift();for(var v=h[g];v.length;)s[g]="A",h.splice(g++,0,["C",...v.splice(0,6)]);h.splice(g,1),d=r.length}},s=[],l="",c="",u=0,d=r.length;u<d;u++){r[u]&&(l=r[u][0]),l!="C"&&(s[u]=l,u&&(c=s[u-1])),r[u]=o(r[u],i,c),s[u]!="A"&&l=="C"&&(s[u]="C"),a(r,u);var f=r[u],p=f.length;i.x=f[p-2],i.y=f[p-1],i.bx=UPe(f[p-4])||i.x,i.by=UPe(f[p-3])||i.y}return n.curve=XB(r),r}function wo(e){return Rl(e)&&gu(e,"waypoints")}function Ni(e){return Rl(e)&&gu(e,"labelTarget")}function yJe(e){return{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}}function vy(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function br(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function Oz(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function wBn(e){return vy({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function xBn(e){for(var n=e.waypoints,r=n.reduce(function(u,d,f){var p=n[f-1];if(p){var h=u[u.length-1],g=h&&h.endLength||0,v=RBn(p,d);u.push({start:p,end:d,startLength:g,endLength:g+v,length:v})}return u},[]),i=r.reduce(function(u,d){return u+d.length},0),o=i/2,a=0,s=r[a];s.endLength<o;)s=r[++a];var l=(o-s.startLength)/s.length,c={x:s.start.x+(s.end.x-s.start.x)*l,y:s.start.y+(s.end.y-s.start.y)*l};return c}function Mr(e){return wo(e)?xBn(e):wBn(e)}function _c(e,n,r){r=r||0,Rl(r)||(r={x:r,y:r});var i=br(e),o=br(n),a=i.bottom+r.y<=o.top,s=i.left-r.x>=o.right,l=i.top-r.y>=o.bottom,c=i.right+r.x<=o.left,u=a?"top":l?"bottom":null,d=c?"left":s?"right":null;return d&&u?u+"-"+d:d||u||"intersect"}function Sae(e,n,r){var i=TBn(e,n);return i.length===1||i.length===2&&SL(i[0],i[1])<1?vy(i[0]):i.length>1?(i=$m(i,function(o){var a=Math.floor(o.t2*100)||1;return a=100-a,a=(a<10?"0":"")+a,o.segment2+"#"+a}),vy(i[r?0:i.length-1])):null}function TBn(e,n){return mJe(e,n)}function OBn(e){e=e.slice();for(var n=0,r,i,o;e[n];)r=e[n],i=e[n-1],o=e[n+1],SL(r,o)===0||Ehe(i,o,r)?e.splice(n,1):n++;return e}function RBn(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function B6(e,n){return Math.round(e*n)/n}function XPe(e){return Nr(e)?e+"px":e}function IBn(e){for(;e.parent;)e=e.parent;return e}function NBn(e){e=Rt({},{width:"100%",height:"100%"},e);const n=e.container||document.body,r=document.createElement("div");return r.setAttribute("class","djs-container djs-parent"),dc(r,{position:"relative",overflow:"hidden",width:XPe(e.width),height:XPe(e.height)}),n.appendChild(r),r}function _Je(e,n,r){const i=pr("g");Ri(i).add(n);const o=r!==void 0?r:e.childNodes.length-1;return e.insertBefore(i,e.childNodes[o]||null),i}const MBn="base",bJe=0,PBn=1,ABn={shape:["x","y","width","height"],connection:["waypoints"]};function Pr(e,n,r,i){this._eventBus=n,this._elementRegistry=i,this._graphicsFactory=r,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(e||{})}Pr.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"];Pr.prototype._init=function(e){const n=this._eventBus,r=this._container=NBn(e),i=this._svg=pr("svg");Gn(i,{width:"100%",height:"100%"}),fc(i,"tabindex",0),e.autoFocus&&n.on("element.hover",()=>{this.restoreFocus()}),n.on("element.mousedown",500,a=>{this.focus()}),i.addEventListener("focusin",()=>{this._setFocused(!0)}),i.addEventListener("focusout",()=>{this._setFocused(!1)}),Ar(r,i);const o=this._viewport=_Je(i,"viewport");e.deferUpdate&&(this._viewboxChanged=eJe(Su(this._viewboxChanged,this),300)),n.on("diagram.init",()=>{n.fire("canvas.init",{svg:i,viewport:o})}),n.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),n.on("diagram.destroy",500,this._destroy,this),n.on("diagram.clear",500,this._clear,this)};Pr.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport};Pr.prototype._setFocused=function(e){e!=this._focused&&(this._focused=e,this._eventBus.fire("canvas.focus.changed",{focused:e}))};Pr.prototype._clear=function(){this._elementRegistry.getAll().forEach(n=>{const r=pJe(n);r==="root"?this.removeRootElement(n):this._removeElement(n,r)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox};Pr.prototype.focus=function(){this._svg.focus({preventScroll:!0}),this._setFocused(!0)};Pr.prototype.restoreFocus=function(){document.activeElement===document.body&&this.focus()};Pr.prototype.isFocused=function(){return this._focused};Pr.prototype.getDefaultLayer=function(){return this.getLayer(MBn,bJe)};Pr.prototype.getLayer=function(e,n){if(!e)throw new Error("must specify a name");let r=this._layers[e];if(r||(r=this._layers[e]=this._createLayer(e,n)),typeof n<"u"&&r.index!==n)throw new Error("layer <"+e+"> already created at index <"+n+">");return r.group};Pr.prototype._getChildIndex=function(e){return vd(this._layers,function(n,r){return r.visible&&e>=r.index&&n++,n},0)};Pr.prototype._createLayer=function(e,n){typeof n>"u"&&(n=PBn);const r=this._getChildIndex(n);return{group:_Je(this._viewport,"layer-"+e,r),index:n,visible:!0}};Pr.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const r=this._viewport,i=n.group,o=n.index;if(n.visible)return i;const a=this._getChildIndex(o);return r.insertBefore(i,r.childNodes[a]||null),n.visible=!0,i};Pr.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const r=n.group;return n.visible&&(Hs(r),n.visible=!1),r};Pr.prototype._removeLayer=function(e){const n=this._layers[e];n&&(delete this._layers[e],Hs(n.group))};Pr.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null};Pr.prototype.findRoot=function(e){return typeof e=="string"&&(e=this._elementRegistry.get(e)),e?(this._findPlaneForRoot(IBn(e))||{}).rootElement:void 0};Pr.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})};Pr.prototype._findPlaneForRoot=function(e){return ki(this._planes,function(n){return n.rootElement===e})};Pr.prototype.getContainer=function(){return this._container};Pr.prototype._updateMarker=function(e,n,r){let i;e.id||(e=this._elementRegistry.get(e)),e.markers=e.markers||new Set,i=this._elementRegistry._elements[e.id],i&&(ht([i.gfx,i.secondaryGfx],function(o){o&&(r?(e.markers.add(n),Ri(o).add(n)):(e.markers.delete(n),Ri(o).remove(n)))}),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:n,add:!!r}))};Pr.prototype.addMarker=function(e,n){this._updateMarker(e,n,!0)};Pr.prototype.removeMarker=function(e,n){this._updateMarker(e,n,!1)};Pr.prototype.hasMarker=function(e,n){return e.id||(e=this._elementRegistry.get(e)),e.markers?e.markers.has(n):!1};Pr.prototype.toggleMarker=function(e,n){this.hasMarker(e,n)?this.removeMarker(e,n):this.addMarker(e,n)};Pr.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))};Pr.prototype.addRootElement=function(e){const n=this._rootsIdx++;e||(e={id:"__implicitroot_"+n,children:[],isImplicit:!0});const r=e.layer="root-"+n;this._ensureValid("root",e);const i=this.getLayer(r,bJe);return this.hideLayer(r),this._addRoot(e,i),this._planes.push({rootElement:e,layer:i}),e};Pr.prototype.removeRootElement=function(e){if(typeof e=="string"&&(e=this._elementRegistry.get(e)),!!this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter(function(r){return r.rootElement!==e}),this._rootElement===e&&(this._rootElement=null),e};Pr.prototype.setRootElement=function(e){if(e===this._rootElement)return e;let n;if(!e)throw new Error("rootElement required");return n=this._findPlaneForRoot(e),n||(e=this.addRootElement(e)),this._setRoot(e),e};Pr.prototype._removeRoot=function(e){const n=this._elementRegistry,r=this._eventBus;r.fire("root.remove",{element:e}),r.fire("root.removed",{element:e}),n.remove(e)};Pr.prototype._addRoot=function(e,n){const r=this._elementRegistry,i=this._eventBus;i.fire("root.add",{element:e}),r.add(e,n),i.fire("root.added",{element:e,gfx:n})};Pr.prototype._setRoot=function(e,n){const r=this._rootElement;r&&(this._elementRegistry.updateGraphics(r,null,!0),this.hideLayer(r.layer)),e&&(n||(n=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})};Pr.prototype._ensureValid=function(e,n){if(!n.id)throw new Error("element must have an id");if(this._elementRegistry.get(n.id))throw new Error("element <"+n.id+"> already exists");const r=ABn[e];if(!bw(r,function(o){return typeof n[o]<"u"}))throw new Error("must supply { "+r.join(", ")+" } with "+e)};Pr.prototype._setParent=function(e,n,r){Ks(n.children,e,r),e.parent=n};Pr.prototype._addElement=function(e,n,r,i){r=r||this.getRootElement();const o=this._eventBus,a=this._graphicsFactory;this._ensureValid(e,n),o.fire(e+".add",{element:n,parent:r}),this._setParent(n,r,i);const s=a.create(e,n,i);return this._elementRegistry.add(n,s),a.update(e,n,s),o.fire(e+".added",{element:n,gfx:s}),n};Pr.prototype.addShape=function(e,n,r){return this._addElement("shape",e,n,r)};Pr.prototype.addConnection=function(e,n,r){return this._addElement("connection",e,n,r)};Pr.prototype._removeElement=function(e,n){const r=this._elementRegistry,i=this._graphicsFactory,o=this._eventBus;if(e=r.get(e.id||e),!!e)return o.fire(n+".remove",{element:e}),i.remove(e),Cs(e.parent&&e.parent.children,e),e.parent=null,o.fire(n+".removed",{element:e}),r.remove(e),e};Pr.prototype.removeShape=function(e){return this._removeElement(e,"shape")};Pr.prototype.removeConnection=function(e){return this._removeElement(e,"connection")};Pr.prototype.getGraphics=function(e,n){return this._elementRegistry.getGraphics(e,n)};Pr.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()};Pr.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})};Pr.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return structuredClone(this._cachedViewbox);const n=this._viewport,r=this.getSize();let i,o,a,s,l,c,u;if(e)this._changeViewbox(function(){l=Math.min(r.width/e.width,r.height/e.height);const d=this._svg.createSVGMatrix().scale(l).translate(-e.x,-e.y);tD(n,d)});else return a=this._rootElement?this.getActiveLayer():null,i=a&&a.getBBox()||{},s=tD(n),o=s?s.matrix:H8n(),l=B6(o.a,1e3),c=B6(-o.e||0,1e3),u=B6(-o.f||0,1e3),e=this._cachedViewbox={x:c?c/l:0,y:u?u/l:0,width:r.width/l,height:r.height/l,scale:l,inner:{width:i.width||0,height:i.height||0,x:i.x||0,y:i.y||0},outer:r},e;return e};Pr.prototype.scroll=function(e){const n=this._viewport;let r=n.getCTM();return e&&this._changeViewbox(function(){e=Rt({dx:0,dy:0},e||{}),r=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(r),SJe(n,r)}),{x:r.e,y:r.f}};Pr.prototype.scrollToElement=function(e,n){let r=100;typeof e=="string"&&(e=this._elementRegistry.get(e));const i=this.findRoot(e);if(i!==this.getRootElement()&&this.setRootElement(i),i===e)return;n||(n={}),typeof n=="number"&&(r=n),n={top:n.top||r,right:n.right||r,bottom:n.bottom||r,left:n.left||r};const o=sl(e),a=br(o),s=this.viewbox(),l=this.zoom();let c,u;s.y+=n.top/l,s.x+=n.left/l,s.width-=(n.right+n.left)/l,s.height-=(n.bottom+n.top)/l;const d=br(s);if(!(o.width<s.width&&o.height<s.height))c=o.x-s.x,u=o.y-s.y;else{const p=Math.max(0,a.right-d.right),h=Math.min(0,a.left-d.left),g=Math.max(0,a.bottom-d.bottom),v=Math.min(0,a.top-d.top);c=p||h,u=g||v}this.scroll({dx:-c*l,dy:-u*l})};Pr.prototype.zoom=function(e,n){if(!e)return this.viewbox(e).scale;if(e==="fit-viewport")return this._fitViewport(n);let r,i;return this._changeViewbox(function(){typeof n!="object"&&(r=this.viewbox().outer,n={x:r.width/2,y:r.height/2}),i=this._setZoom(e,n)}),B6(i.a,1e3)};function SJe(e,n){const r="matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")";e.setAttribute("transform",r)}Pr.prototype._fitViewport=function(e){const n=this.viewbox(),r=n.outer,i=n.inner;let o,a;return i.x>=0&&i.y>=0&&i.x+i.width<=r.width&&i.y+i.height<=r.height&&!e?a={x:0,y:0,width:Math.max(i.width+i.x,r.width),height:Math.max(i.height+i.y,r.height)}:(o=Math.min(1,r.width/i.width,r.height/i.height),a={x:i.x+(e?i.width/2-r.width/o/2:0),y:i.y+(e?i.height/2-r.height/o/2:0),width:r.width/o,height:r.height/o}),this.viewbox(a),this.viewbox(!1).scale};Pr.prototype._setZoom=function(e,n){const r=this._svg,i=this._viewport,o=r.createSVGMatrix(),a=r.createSVGPoint();let s,l,c,u,d;c=i.getCTM();const f=c.a;return n?(s=Rt(a,n),l=s.matrixTransform(c.inverse()),u=o.translate(l.x,l.y).scale(1/f*e).translate(-l.x,-l.y),d=c.multiply(u)):d=o.scale(e),SJe(this._viewport,d),d};Pr.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}};Pr.prototype.getAbsoluteBBox=function(e){const n=this.viewbox();let r;e.waypoints?r=this.getGraphics(e).getBBox():r=e;const i=r.x*n.scale-n.x*n.scale,o=r.y*n.scale-n.y*n.scale,a=r.width*n.scale,s=r.height*n.scale;return{x:i,y:o,width:a,height:s}};Pr.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var sR="data-element-id";function kf(e){this._elements={},this._eventBus=e}kf.$inject=["eventBus"];kf.prototype.add=function(e,n,r){var i=e.id;this._validateId(i),Gn(n,sR,i),r&&Gn(r,sR,i),this._elements[i]={element:e,gfx:n,secondaryGfx:r}};kf.prototype.remove=function(e){var n=this._elements,r=e.id||e,i=r&&n[r];i&&(Gn(i.gfx,sR,""),i.secondaryGfx&&Gn(i.secondaryGfx,sR,""),delete n[r])};kf.prototype.updateId=function(e,n){this._validateId(n),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:n});var r=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=n,this.add(e,r,i)};kf.prototype.updateGraphics=function(e,n,r){var i=e.id||e,o=this._elements[i];return r?o.secondaryGfx=n:o.gfx=n,n&&Gn(n,sR,i),n};kf.prototype.get=function(e){var n;typeof e=="string"?n=e:n=e&&Gn(e,sR);var r=this._elements[n];return r&&r.element};kf.prototype.filter=function(e){var n=[];return this.forEach(function(r,i){e(r,i)&&n.push(r)}),n};kf.prototype.find=function(e){for(var n=this._elements,r=Object.keys(n),i=0;i<r.length;i++){var o=r[i],a=n[o],s=a.element,l=a.gfx;if(e(s,l))return s}};kf.prototype.getAll=function(){return this.filter(function(e){return e})};kf.prototype.forEach=function(e){var n=this._elements;Object.keys(n).forEach(function(r){var i=n[r],o=i.element,a=i.gfx;return e(o,a)})};kf.prototype.getGraphics=function(e,n){var r=e.id||e,i=this._elements[r];return i&&(n?i.secondaryGfx:i.gfx)};kf.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};function DBn(e,n,r,i){var o=r.inverse;return Object.defineProperty(e,"remove",{value:function(a){var s=this.indexOf(a);return s!==-1&&(this.splice(s,1),n.unset(a,o,i)),a}}),Object.defineProperty(e,"contains",{value:function(a){return this.indexOf(a)!==-1}}),Object.defineProperty(e,"add",{value:function(a,s){var l=this.indexOf(a);if(typeof s>"u"){if(l!==-1)return;s=this.length}l!==-1&&this.splice(l,1),this.splice(s,0,a),l===-1&&n.set(a,o,i)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function kBn(e){return e.__refs_collection===!0}function LBn(e,n){return Object.prototype.hasOwnProperty.call(e,n.name||n)}function EJe(e,n,r){var i=DBn(r[n.name]||[],e,n,r);Object.defineProperty(r,n.name,{enumerable:n.enumerable,value:i}),i.length&&i.forEach(function(o){e.set(o,n.inverse,r)})}function $Bn(e,n,r){var i=n.inverse,o=r[n.name];Object.defineProperty(r,n.name,{configurable:n.configurable,enumerable:n.enumerable,get:function(){return o},set:function(a){if(a!==o){var s=o;o=null,s&&e.unset(s,i,r),o=a,e.set(o,i,r)}}})}function Np(e,n){if(!(this instanceof Np))return new Np(e,n);e.inverse=n,n.inverse=e,this.props={},this.props[e.name]=e,this.props[n.name]=n}Np.prototype.bind=function(e,n){if(typeof n=="string"){if(!this.props[n])throw new Error("no property <"+n+"> in ref");n=this.props[n]}n.collection?EJe(this,n,e):$Bn(this,n,e)};Np.prototype.ensureRefsCollection=function(e,n){var r=e[n.name];return kBn(r)||EJe(this,n,e),r};Np.prototype.ensureBound=function(e,n){LBn(e,n)||this.bind(e,n)};Np.prototype.unset=function(e,n,r){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).remove(r):e[n.name]=void 0)};Np.prototype.set=function(e,n,r){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).add(r):e[n.name]=r)};var whe=new Np({name:"children",enumerable:!0,collection:!0},{name:"parent"}),CJe=new Np({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),QPe=new Np({name:"attachers",collection:!0},{name:"host"}),wJe=new Np({name:"outgoing",collection:!0},{name:"source"}),xJe=new Np({name:"incoming",collection:!0},{name:"target"});function VI(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var n=this.label,r=this.labels;!e&&n?r.remove(n):r.add(e,0)}}),whe.bind(this,"parent"),CJe.bind(this,"labels"),wJe.bind(this,"outgoing"),xJe.bind(this,"incoming")}function EL(){VI.call(this),whe.bind(this,"children"),QPe.bind(this,"host"),QPe.bind(this,"attachers")}Zn(EL,VI);function TJe(){VI.call(this),whe.bind(this,"children")}Zn(TJe,EL);function OJe(){EL.call(this),CJe.bind(this,"labelTarget")}Zn(OJe,EL);function RJe(){VI.call(this),wJe.bind(this,"source"),xJe.bind(this,"target")}Zn(RJe,VI);var FBn={connection:RJe,shape:EL,label:OJe,root:TJe};function BBn(e,n){var r=FBn[e];if(!r)throw new Error("unknown type: <"+e+">");return Rt(new r,n)}function jBn(e){return e instanceof VI}function h_(){this._uid=12}h_.prototype.createRoot=function(e){return this.create("root",e)};h_.prototype.createLabel=function(e){return this.create("label",e)};h_.prototype.createShape=function(e){return this.create("shape",e)};h_.prototype.createConnection=function(e){return this.create("connection",e)};h_.prototype.create=function(e,n){return n=Rt({},n||{}),n.id||(n.id=e+"_"+this._uid++),BBn(e,n)};var ZB="__fn",IJe=1e3,UBn=Array.prototype.slice;function xd(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}xd.prototype.on=function(e,n,r,i){if(e=zr(e)?e:[e],zs(n)&&(i=r,r=n,n=IJe),!Nr(n))throw new Error("priority must be a number");var o=r;i&&(o=Su(r,i),o[ZB]=r[ZB]||r);var a=this;e.forEach(function(s){a._addListener(s,{priority:n,callback:o,next:null})})};xd.prototype.once=function(e,n,r,i){var o=this;if(zs(n)&&(i=r,r=n,n=IJe),!Nr(n))throw new Error("priority must be a number");function a(){a.__isTomb=!0;var s=r.apply(i,arguments);return o.off(e,a),s}a[ZB]=r,this.on(e,n,a)};xd.prototype.off=function(e,n){e=zr(e)?e:[e];var r=this;e.forEach(function(i){r._removeListener(i,n)})};xd.prototype.createEvent=function(e){var n=new CL;return n.init(e),n};xd.prototype.fire=function(e,n){var r,i,o,a;if(a=UBn.call(arguments),typeof e=="object"&&(n=e,e=n.type),!e)throw new Error("no event type specified");if(i=this._listeners[e],!!i){n instanceof CL?r=n:r=this.createEvent(n),a[0]=r;var s=r.type;e!==s&&(r.type=e);try{o=this._invokeListeners(r,a,i)}finally{e!==s&&(r.type=s)}return o===void 0&&r.defaultPrevented&&(o=!1),o}};xd.prototype.handleError=function(e){return this.fire("error",{error:e})===!1};xd.prototype._destroy=function(){this._listeners={}};xd.prototype._invokeListeners=function(e,n,r){for(var i;r&&!e.cancelBubble;)i=this._invokeListener(e,n,r),r=r.next;return i};xd.prototype._invokeListener=function(e,n,r){var i;if(r.callback.__isTomb)return i;try{i=HBn(r.callback,n),i!==void 0&&(e.returnValue=i,e.stopPropagation()),i===!1&&e.preventDefault()}catch(o){if(!this.handleError(o))throw console.error("unhandled error in event listener",o),o}return i};xd.prototype._addListener=function(e,n){var r=this._getListeners(e),i;if(!r){this._setListeners(e,n);return}for(;r;){if(r.priority<n.priority){n.next=r,i?i.next=n:this._setListeners(e,n);return}i=r,r=r.next}i.next=n};xd.prototype._getListeners=function(e){return this._listeners[e]};xd.prototype._setListeners=function(e,n){this._listeners[e]=n};xd.prototype._removeListener=function(e,n){var r=this._getListeners(e),i,o,a;if(!n){this._setListeners(e,null);return}for(;r;)i=r.next,a=r.callback,(a===n||a[ZB]===n)&&(o?o.next=i:this._setListeners(e,i)),o=r,r=i};function CL(){}CL.prototype.stopPropagation=function(){this.cancelBubble=!0};CL.prototype.preventDefault=function(){this.defaultPrevented=!0};CL.prototype.init=function(e){Rt(this,e||{})};function HBn(e,n){return e.apply(null,n)}function $1(e){return e.childNodes[0]}function zBn(e){return e.parentNode.childNodes[1]}function j6(e,n,r,i,o){var a=pP();a.setTranslate(n,r);var s=pP();s.setRotate(i||0,0,0);var l=pP();l.setScale(1,1),tD(e,[a,s,l])}function Wl(e,n,r){var i=pP();i.setTranslate(n,r),tD(e,i)}function NJe(e,n){var r=pP();r.setRotate(n,0,0),tD(e,r)}function Lf(e,n){this._eventBus=e,this._elementRegistry=n}Lf.$inject=["eventBus","elementRegistry"];Lf.prototype._getChildrenContainer=function(e){var n=this._elementRegistry.getGraphics(e),r;return e.parent?(r=zBn(n),r||(r=pr("g"),Ri(r).add("djs-children"),Ar(n.parentNode,r))):r=n,r};Lf.prototype._clear=function(e){var n=$1(e);return Cz(n),n};Lf.prototype._createContainer=function(e,n,r,i){var o=pr("g");Ri(o).add("djs-group"),typeof r<"u"?MJe(o,n,n.childNodes[r]):Ar(n,o);var a=pr("g");Ri(a).add("djs-element"),Ri(a).add("djs-"+e),i&&Ri(a).add("djs-frame"),Ar(o,a);var s=pr("g");return Ri(s).add("djs-visual"),Ar(a,s),a};Lf.prototype.create=function(e,n,r){var i=this._getChildrenContainer(n.parent);return this._createContainer(e,i,r,hJe(n))};Lf.prototype.updateContainments=function(e){var n=this,r=this._elementRegistry,i;i=vd(e,function(o,a){return a.parent&&(o[a.parent.id]=a.parent),o},{}),ht(i,function(o){var a=o.children;if(a){var s=n._getChildrenContainer(o);ht(a.slice().reverse(),function(l){var c=r.getGraphics(l);MJe(c.parentNode,s)})}})};Lf.prototype.drawShape=function(e,n,r={}){var i=this._eventBus;return i.fire("render.shape",{gfx:e,element:n,attrs:r})};Lf.prototype.getShapePath=function(e){var n=this._eventBus;return n.fire("render.getShapePath",e)};Lf.prototype.drawConnection=function(e,n,r={}){var i=this._eventBus;return i.fire("render.connection",{gfx:e,element:n,attrs:r})};Lf.prototype.getConnectionPath=function(e){var n=this._eventBus;return n.fire("render.getConnectionPath",e)};Lf.prototype.update=function(e,n,r){if(n.parent){var i=this._clear(r);if(e==="shape")this.drawShape(i,n),Wl(r,n.x,n.y);else if(e==="connection")this.drawConnection(i,n);else throw new Error("unknown type: "+e);n.hidden?Gn(r,"display","none"):Gn(r,"display","block")}};Lf.prototype.remove=function(e){var n=this._elementRegistry.getGraphics(e);Hs(n.parentNode)};function MJe(e,n,r){var i=r||n.firstChild;e!==i&&n.insertBefore(e,i)}const VBn={__depends__:[uBn],__init__:["canvas"],canvas:["type",Pr],elementRegistry:["type",kf],elementFactory:["type",h_],eventBus:["type",xd],graphicsFactory:["type",Lf]};function GBn(e){var n=new uJe(e);return n.init(),n}function WBn(e){e=e||{};var n={config:["value",e]},r=[n,VBn].concat(e.modules||[]);return GBn(r)}function hS(e,n){this._injector=n||WBn(e),this.get("eventBus").fire("diagram.init")}hS.prototype.get=function(e,n){return this._injector.get(e,n)};hS.prototype.invoke=function(e,n,r){return this._injector.invoke(e,n,r)};hS.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")};hS.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function xhe(){}xhe.prototype.get=function(e){return this.$model.properties.get(this,e)};xhe.prototype.set=function(e,n){this.$model.properties.set(this,e,n)};function PJe(e,n){this.model=e,this.properties=n}PJe.prototype.createType=function(e){var n=this.model,r=this.properties,i=Object.create(xhe.prototype);ht(e.properties,function(s){!s.isMany&&s.default!==void 0&&(i[s.name]=s.default)}),r.defineModel(i,n),r.defineDescriptor(i,e);var o=e.ns.name;function a(s){r.define(this,"$type",{value:o,enumerable:!0}),r.define(this,"$attrs",{value:{}}),r.define(this,"$parent",{writable:!0}),ht(s,Su(function(l,c){this.set(c,l)},this))}return a.prototype=i,a.hasType=i.$instanceOf=this.model.hasType,r.defineModel(a,n),r.defineDescriptor(a,e),a};var YBn={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},AJe={String:function(e){return e},Boolean:function(e){return e==="true"},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function The(e,n){var r=AJe[e];return r?r(n):n}function Eae(e){return!!YBn[e]}function DJe(e){return!!AJe[e]}function pc(e,n){var r=e.split(/:/),i,o;if(r.length===1)i=e,o=n;else if(r.length===2)i=r[1],o=r[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(o?o+":":"")+i,{name:e,prefix:o,localName:i}}function $f(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}$f.prototype.build=function(){return ag(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])};$f.prototype.addProperty=function(e,n,r){typeof n=="boolean"&&(r=n,n=void 0),this.addNamedProperty(e,r!==!1);var i=this.properties;n!==void 0?i.splice(n,0,e):i.push(e)};$f.prototype.replaceProperty=function(e,n,r){var i=e.ns,o=this.properties,a=this.propertiesByName,s=e.name!==n.name;if(e.isId){if(!n.isId)throw new Error("property <"+n.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(n,!1)}if(e.isBody){if(!n.isBody)throw new Error("property <"+n.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(n,!1)}var l=o.indexOf(e);if(l===-1)throw new Error("property <"+i.name+"> not found in property list");o.splice(l,1),this.addProperty(n,r?void 0:l,s),a[i.name]=a[i.localName]=n};$f.prototype.redefineProperty=function(e,n,r){var i=e.ns.prefix,o=n.split("#"),a=pc(o[0],i),s=pc(o[1],a.prefix).name,l=this.propertiesByName[s];if(l)this.replaceProperty(l,e,r);else throw new Error("refined property <"+s+"> not found");delete e.redefines};$f.prototype.addNamedProperty=function(e,n){var r=e.ns,i=this.propertiesByName;n&&(this.assertNotDefined(e,r.name),this.assertNotDefined(e,r.localName)),i[r.name]=i[r.localName]=e};$f.prototype.removeNamedProperty=function(e){var n=e.ns,r=this.propertiesByName;delete r[n.name],delete r[n.localName]};$f.prototype.setBodyProperty=function(e,n){if(n&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e};$f.prototype.setIdProperty=function(e,n){if(n&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e};$f.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)};$f.prototype.assertNotDefined=function(e,n){var r=e.name,i=this.propertiesByName[r];if(i)throw new Error("property <"+r+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")};$f.prototype.hasProperty=function(e){return this.propertiesByName[e]};$f.prototype.addTrait=function(e,n){n&&this.assertNotTrait(e);var r=this.allTypesByName,i=this.allTypes,o=e.name;o in r||(ht(e.properties,Su(function(a){a=Rt({},a,{name:a.ns.localName,inherited:n}),Object.defineProperty(a,"definedBy",{value:e});var s=a.replaces,l=a.redefines;s||l?this.redefineProperty(a,s||l,s):(a.isBody&&this.setBodyProperty(a),a.isId&&this.setIdProperty(a),this.addProperty(a))},this)),i.push(e),r[o]=e)};function gS(e,n){this.packageMap={},this.typeMap={},this.packages=[],this.properties=n,ht(e,Su(this.registerPackage,this))}gS.prototype.getPackage=function(e){return this.packageMap[e]};gS.prototype.getPackages=function(){return this.packages};gS.prototype.registerPackage=function(e){e=Rt({},e);var n=this.packageMap;ZPe(n,e,"prefix"),ZPe(n,e,"uri"),ht(e.types,Su(function(r){this.registerType(r,e)},this)),n[e.uri]=n[e.prefix]=e,this.packages.push(e)};gS.prototype.registerType=function(e,n){e=Rt({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:Rt(e.meta||{})});var r=pc(e.name,n.prefix),i=r.name,o={};ht(e.properties,Su(function(a){var s=pc(a.name,r.prefix),l=s.name;Eae(a.type)||(a.type=pc(a.type,s.prefix).name),Rt(a,{ns:s,name:l}),o[l]=a},this)),Rt(e,{ns:r,name:i,propertiesByName:o}),ht(e.extends,Su(function(a){var s=pc(a,r.prefix),l=this.typeMap[s.name];l.traits=l.traits||[],l.traits.push(i)},this)),this.definePackage(e,n),this.typeMap[i]=e};gS.prototype.mapTypes=function(e,n,r){var i=Eae(e.name)?{name:e.name}:this.typeMap[e.name],o=this;function a(c,u){var d=pc(c,Eae(c)?"":e.prefix);o.mapTypes(d,n,u)}function s(c){return a(c,!0)}function l(c){return a(c,!1)}if(!i)throw new Error("unknown type <"+e.name+">");ht(i.superClass,r?s:l),n(i,!r),ht(i.traits,s)};gS.prototype.getEffectiveDescriptor=function(e){var n=pc(e),r=new $f(n);this.mapTypes(n,function(o,a){r.addTrait(o,a)});var i=r.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i};gS.prototype.definePackage=function(e,n){this.properties.define(e,"$pkg",{value:n})};function ZPe(e,n,r){var i=n[r];if(i in e)throw new Error("package with "+r+" <"+i+"> already defined")}function Cw(e){this.model=e}Cw.prototype.set=function(e,n,r){if(!md(n)||!n.length)throw new TypeError("property name must be a non-empty string");var i=this.getProperty(e,n),o=i&&i.name;qBn(r)?i?delete e[o]:delete e.$attrs[Cae(n)]:i?o in e?e[o]=r:kJe(e,i,r):e.$attrs[Cae(n)]=r};Cw.prototype.get=function(e,n){var r=this.getProperty(e,n);if(!r)return e.$attrs[Cae(n)];var i=r.name;return!e[i]&&r.isMany&&kJe(e,r,[]),e[i]};Cw.prototype.define=function(e,n,r){if(!r.writable){var i=r.value;r=Rt({},r,{get:function(){return i}}),delete r.value}Object.defineProperty(e,n,r)};Cw.prototype.defineDescriptor=function(e,n){this.define(e,"$descriptor",{value:n})};Cw.prototype.defineModel=function(e,n){this.define(e,"$model",{value:n})};Cw.prototype.getProperty=function(e,n){var r=this.model,i=r.getPropertyDescriptor(e,n);if(i)return i;if(n.includes(":"))return null;const o=r.config.strict;if(typeof o<"u"){const a=new TypeError(`unknown property <${n}> on <${e.$type}>`);if(o)throw a;typeof console<"u"&&console.warn(a)}return null};function qBn(e){return typeof e>"u"}function kJe(e,n,r){Object.defineProperty(e,n.name,{enumerable:!n.isReference,writable:!0,value:r,configurable:!0})}function Cae(e){return e.replace(/^:/,"")}function Gp(e,n={}){this.properties=new Cw(this),this.factory=new PJe(this,this.properties),this.registry=new gS(e,this.properties),this.typeCache={},this.config=n}Gp.prototype.create=function(e,n){var r=this.getType(e);if(!r)throw new Error("unknown type <"+e+">");return new r(n)};Gp.prototype.getType=function(e){var n=this.typeCache,r=md(e)?e:e.ns.name,i=n[r];return i||(e=this.registry.getEffectiveDescriptor(r),i=n[r]=this.factory.createType(e)),i};Gp.prototype.createAny=function(e,n,r){var i=pc(e),o={$type:e,$instanceOf:function(s){return s===this.$type},get:function(s){return this[s]},set:function(s,l){_8n(this,[s],l)}},a={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:n}};return this.properties.defineDescriptor(o,a),this.properties.defineModel(o,this),this.properties.define(o,"get",{enumerable:!1,writable:!0}),this.properties.define(o,"set",{enumerable:!1,writable:!0}),this.properties.define(o,"$parent",{enumerable:!1,writable:!0}),this.properties.define(o,"$instanceOf",{enumerable:!1,writable:!0}),ht(r,function(s,l){Rl(s)&&s.value!==void 0?o[s.name]=s.value:o[l]=s}),o};Gp.prototype.getPackage=function(e){return this.registry.getPackage(e)};Gp.prototype.getPackages=function(){return this.registry.getPackages()};Gp.prototype.getElementDescriptor=function(e){return e.$descriptor};Gp.prototype.hasType=function(e,n){n===void 0&&(n=e,e=this);var r=e.$model.getElementDescriptor(e);return n in r.allTypesByName};Gp.prototype.getPropertyDescriptor=function(e,n){return this.getElementDescriptor(e).propertiesByName[n]};Gp.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var JPe=String.fromCharCode,KBn=Object.prototype.hasOwnProperty,XBn=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,gP={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(gP).forEach(function(e){gP[e.toUpperCase()]=gP[e]});function QBn(e,n,r,i){return i?KBn.call(gP,i)?gP[i]:"&"+i+";":JPe(n||parseInt(r,16))}function _E(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(XBn,QBn):e}var eAe="non-whitespace outside of root node";function Px(e){return new Error(e)}function tAe(e){return"missing namespace for prefix <"+e+">"}function $4(e){return{get:e,enumerable:!0}}function ZBn(e){var n={},r;for(r in e)n[r]=e[r];return n}function wae(e){return e+"$uri"}function JBn(e){var n={},r,i;for(r in e)i=e[r],n[i]=i,n[wae(i)]=r;return n}function nAe(){return{line:0,column:0}}function ejn(e){throw e}function LJe(e){if(!this)return new LJe(e);var n=e&&e.proxy,r,i,o,a,s=ejn,l,c,u,d,f=nAe,p=!1,h=!1,g=null,v=!1,y;function _(E){E instanceof Error||(E=Px(E)),g=E,s(E,f)}function S(E){l&&(E instanceof Error||(E=Px(E)),l(E,f))}this.on=function(E,w){if(typeof w!="function")throw Px("required args <name, cb>");switch(E){case"openTag":i=w;break;case"text":r=w;break;case"closeTag":o=w;break;case"error":s=w;break;case"warn":l=w;break;case"cdata":a=w;break;case"attention":d=w;break;case"question":u=w;break;case"comment":c=w;break;default:throw Px("unsupported event: "+E)}return this},this.ns=function(E){if(typeof E>"u"&&(E={}),typeof E!="object")throw Px("required args <nsMap={}>");var w={},C;for(C in E)w[C]=E[C];return h=!0,y=w,this},this.parse=function(E){if(typeof E!="string")throw Px("required args <xml=string>");return g=null,b(E),f=nAe,v=!1,g},this.stop=function(){v=!0};function b(E){var w=h?[]:null,C=h?JBn(y):null,x,T=[],R=0,O=!1,M=!1,P=0,k=0,$,U,z,D,B,Y,q,K,H,G="",Q=0,le;function Z(){if(le!==null)return le;var F,te,oe,de=h&&C.xmlns,pe=h&&p?[]:null,me=Q,ve=G,he=ve.length,be,we,De,Ae,Ee,Re={},Te={},Oe,Ne,je;e:for(;me<he;me++)if(Oe=!1,Ne=ve.charCodeAt(me),!(Ne===32||Ne<14&&Ne>8)){for((Ne<65||Ne>122||Ne>90&&Ne<97)&&Ne!==95&&Ne!==58&&(S("illegal first char attribute name"),Oe=!0),je=me+1;je<he;je++)if(Ne=ve.charCodeAt(je),!(Ne>96&&Ne<123||Ne>64&&Ne<91||Ne>47&&Ne<59||Ne===46||Ne===45||Ne===95)){if(Ne===32||Ne<14&&Ne>8){S("missing attribute value"),me=je;continue e}if(Ne===61)break;S("illegal attribute name char"),Oe=!0}if(Ee=ve.substring(me,je),Ee==="xmlns:xmlns"&&(S("illegal declaration of xmlns"),Oe=!0),Ne=ve.charCodeAt(je+1),Ne===34)je=ve.indexOf('"',me=je+2),je===-1&&(je=ve.indexOf("'",me),je!==-1&&(S("attribute value quote missmatch"),Oe=!0));else if(Ne===39)je=ve.indexOf("'",me=je+2),je===-1&&(je=ve.indexOf('"',me),je!==-1&&(S("attribute value quote missmatch"),Oe=!0));else for(S("missing attribute value quotes"),Oe=!0,je=je+1;je<he&&(Ne=ve.charCodeAt(je+1),!(Ne===32||Ne<14&&Ne>8));je++);for(je===-1&&(S("missing closing quotes"),je=he,Oe=!0),Oe||(De=ve.substring(me,je)),me=je;je+1<he&&(Ne=ve.charCodeAt(je+1),!(Ne===32||Ne<14&&Ne>8));je++)me===je&&(S("illegal character after attribute end"),Oe=!0);if(me=je+1,Oe)continue e;if(Ee in Te){S("attribute <"+Ee+"> already defined");continue}if(Te[Ee]=!0,!h){Re[Ee]=De;continue}if(p){if(we=Ee==="xmlns"?"xmlns":Ee.charCodeAt(0)===120&&Ee.substr(0,6)==="xmlns:"?Ee.substr(6):null,we!==null){if(F=_E(De),te=wae(we),Ae=y[F],!Ae){if(we==="xmlns"||te in C&&C[te]!==F)do Ae="ns"+R++;while(typeof C[Ae]<"u");else Ae=we;y[F]=Ae}C[we]!==Ae&&(be||(C=ZBn(C),be=!0),C[we]=Ae,we==="xmlns"&&(C[wae(Ae)]=F,de=Ae),C[te]=F),Re[Ee]=De;continue}pe.push(Ee,De);continue}if(Ne=Ee.indexOf(":"),Ne===-1){Re[Ee]=De;continue}if(!(oe=C[Ee.substring(0,Ne)])){S(tAe(Ee.substring(0,Ne)));continue}Ee=de===oe?Ee.substr(Ne+1):oe+Ee.substr(Ne),Re[Ee]=De}if(p)for(me=0,he=pe.length;me<he;me++){if(Ee=pe[me++],De=pe[me],Ne=Ee.indexOf(":"),Ne!==-1){if(!(oe=C[Ee.substring(0,Ne)])){S(tAe(Ee.substring(0,Ne)));continue}Ee=de===oe?Ee.substr(Ne+1):oe+Ee.substr(Ne)}Re[Ee]=De}return le=Re}function j(){for(var F=/(\r\n|\r|\n)/g,te=0,oe=0,de=0,pe=k,me,ve;P>=de&&(me=F.exec(E),!(!me||(pe=me[0].length+me.index,pe>P)));)te+=1,de=pe;return P==-1?(oe=pe,ve=E.substring(k)):k===0?ve=E.substring(k,P):(oe=P-de,ve=k==-1?E.substring(P):E.substring(P,k+1)),{data:ve,line:te,column:oe}}for(f=j,n&&(H=Object.create({},{name:$4(function(){return q}),originalName:$4(function(){return K}),attrs:$4(Z),ns:$4(function(){return C})}));k!==-1;){if(E.charCodeAt(k)===60?P=k:P=E.indexOf("<",k),P===-1){if(T.length)return _("unexpected end of file");if(k===0)return _("missing start tag");k<E.length&&E.substring(k).trim()&&S(eAe);return}if(k!==P){if(T.length){if(r&&(r(E.substring(k,P),_E,f),v))return}else if(E.substring(k,P).trim()&&(S(eAe),v))return}if(D=E.charCodeAt(P+1),D===33){if(z=E.charCodeAt(P+2),z===91&&E.substr(P+3,6)==="CDATA["){if(k=E.indexOf("]]>",P),k===-1)return _("unclosed cdata");if(a&&(a(E.substring(P+9,k),f),v))return;k+=3;continue}if(z===45&&E.charCodeAt(P+3)===45){if(k=E.indexOf("-->",P),k===-1)return _("unclosed comment");if(c&&(c(E.substring(P+4,k),_E,f),v))return;k+=3;continue}}if(D===63){if(k=E.indexOf("?>",P),k===-1)return _("unclosed question");if(u&&(u(E.substring(P,k+2),f),v))return;k+=2;continue}for($=P+1;;$++){if(B=E.charCodeAt($),isNaN(B))return k=-1,_("unclosed tag");if(B===34)z=E.indexOf('"',$+1),$=z!==-1?z:$;else if(B===39)z=E.indexOf("'",$+1),$=z!==-1?z:$;else if(B===62){k=$;break}}if(D===33){if(d&&(d(E.substring(P,k+1),_E,f),v))return;k+=1;continue}if(le={},D===47){if(O=!1,M=!0,!T.length)return _("missing open tag");if($=q=T.pop(),z=P+2+$.length,E.substring(P+2,z)!==$)return _("closing tag mismatch");for(;z<k;z++)if(D=E.charCodeAt(z),!(D===32||D>8&&D<14))return _("close tag")}else{if(E.charCodeAt(k-1)===47?($=q=E.substring(P+1,k-1),O=!0,M=!0):($=q=E.substring(P+1,k),O=!0,M=!1),!(D>96&&D<123||D>64&&D<91||D===95||D===58))return _("illegal first char nodeName");for(z=1,U=$.length;z<U;z++)if(D=$.charCodeAt(z),!(D>96&&D<123||D>64&&D<91||D>47&&D<59||D===45||D===95||D==46)){if(D===32||D<14&&D>8){q=$.substring(0,z),le=null;break}return _("invalid nodeName")}M||T.push(q)}if(h){if(x=C,O&&(M||w.push(x),le===null&&(p=$.indexOf("xmlns",z)!==-1)&&(Q=z,G=$,Z(),p=!1)),K=q,D=q.indexOf(":"),D!==-1){if(Y=C[q.substring(0,D)],!Y)return _("missing namespace on <"+K+">");q=q.substr(D+1)}else Y=C.xmlns;Y&&(q=Y+":"+q)}if(O&&(Q=z,G=$,i&&(n?i(H,_E,M,f):i(q,Z,_E,M,f),v)))return;if(M){if(o&&(o(n?H:q,_E,O,f),v))return;h&&(O?C=x:C=w.pop())}k+=1}}}function $Je(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var xae={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},FJe="property";function BJe(e){return e.xml&&e.xml.serialize}function tjn(e){const n=BJe(e);return n!==FJe&&(n||null)}function njn(e){return e.charAt(0).toUpperCase()+e.slice(1)}function jJe(e,n){return $Je(n)?e.prefix+":"+njn(e.localName):e.name}function rjn(e,n){var r=e.name,i=e.localName,o=n&&n.xml&&n.xml.typePrefix;return o&&i.indexOf(o)===0?e.prefix+":"+i.slice(o.length):r}function ijn(e,n,r){const i=pc(e,n.xmlns),o=`${n[i.prefix]||i.prefix}:${i.localName}`,a=pc(o);var s=r.getPackage(a.prefix);return rjn(a,s)}function D0(e){return new Error(e)}function yy(e){return e.$descriptor}function ojn(e){Rt(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(n){this.references.push(n)},this.addElement=function(n){if(!n)throw D0("expected element");var r=this.elementsById,i=yy(n),o=i.idProperty,a;if(o&&(a=n.get(o.name),a)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(a))throw new Error("illegal ID <"+a+">");if(r[a])throw D0("duplicate ID <"+a+">");r[a]=n}},this.addWarning=function(n){this.warnings.push(n)}}function wL(){}wL.prototype.handleEnd=function(){};wL.prototype.handleText=function(){};wL.prototype.handleNode=function(){};function Ohe(){}Ohe.prototype=Object.create(wL.prototype);Ohe.prototype.handleNode=function(){return this};function GI(){}GI.prototype=Object.create(wL.prototype);GI.prototype.handleText=function(e){this.body=(this.body||"")+e};function xL(e,n){this.property=e,this.context=n}xL.prototype=Object.create(GI.prototype);xL.prototype.handleNode=function(e){if(this.element)throw D0("expected no sub nodes");return this.element=this.createReference(e),this};xL.prototype.handleEnd=function(){this.element.id=this.body};xL.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function Rhe(e,n){this.element=n,this.propertyDesc=e}Rhe.prototype=Object.create(GI.prototype);Rhe.prototype.handleEnd=function(){var e=this.body||"",n=this.element,r=this.propertyDesc;e=The(r.type,e),r.isMany?n.get(r.name).push(e):n.set(r.name,e)};function Rz(){}Rz.prototype=Object.create(GI.prototype);Rz.prototype.handleNode=function(e){var n=this,r=this.element;return r?n=this.handleChild(e):(r=this.element=this.createElement(e),this.context.addElement(r)),n};function Yc(e,n,r){this.model=e,this.type=e.getType(n),this.context=r}Yc.prototype=Object.create(Rz.prototype);Yc.prototype.addReference=function(e){this.context.addReference(e)};Yc.prototype.handleText=function(e){var n=this.element,r=yy(n),i=r.bodyProperty;if(!i)throw D0("unexpected body text <"+e+">");GI.prototype.handleText.call(this,e)};Yc.prototype.handleEnd=function(){var e=this.body,n=this.element,r=yy(n),i=r.bodyProperty;i&&e!==void 0&&(e=The(i.type,e),n.set(i.name,e))};Yc.prototype.createElement=function(e){var n=e.attributes,r=this.type,i=yy(r),o=this.context,a=new r({}),s=this.model,l;return ht(n,function(c,u){var d=i.propertiesByName[u],f;d&&d.isReference?d.isMany?(f=c.split(" "),ht(f,function(p){o.addReference({element:a,property:d.ns.name,id:p})})):o.addReference({element:a,property:d.ns.name,id:c}):(d?c=The(d.type,c):u==="xmlns"?u=":"+u:(l=pc(u,i.ns.prefix),s.getPackage(l.prefix)&&o.addWarning({message:"unknown attribute <"+u+">",element:a,property:u,value:c})),a.set(u,c))}),a};Yc.prototype.getPropertyForNode=function(e){var n=e.name,r=pc(n),i=this.type,o=this.model,a=yy(i),s=r.name,l=a.propertiesByName[s];if(l&&!l.isAttr){const u=tjn(l);if(u){const d=e.attributes[u];if(d){const f=ijn(d,e.ns,o),p=o.getType(f);return Rt({},l,{effectiveType:yy(p).name})}}return l}var c=o.getPackage(r.prefix);if(c){const u=jJe(r,c),d=o.getType(u);if(l=ki(a.properties,function(f){return!f.isVirtual&&!f.isReference&&!f.isAttribute&&d.hasType(f.type)}),l)return Rt({},l,{effectiveType:yy(d).name})}else if(l=ki(a.properties,function(u){return!u.isReference&&!u.isAttribute&&u.type==="Element"}),l)return l;throw D0("unrecognized element <"+r.name+">")};Yc.prototype.toString=function(){return"ElementDescriptor["+yy(this.type).name+"]"};Yc.prototype.valueHandler=function(e,n){return new Rhe(e,n)};Yc.prototype.referenceHandler=function(e){return new xL(e,this.context)};Yc.prototype.handler=function(e){return e==="Element"?new lR(this.model,e,this.context):new Yc(this.model,e,this.context)};Yc.prototype.handleChild=function(e){var n,r,i,o;if(n=this.getPropertyForNode(e),i=this.element,r=n.effectiveType||n.type,DJe(r))return this.valueHandler(n,i);n.isReference?o=this.referenceHandler(n).handleNode(e):o=this.handler(r).handleNode(e);var a=o.element;return a!==void 0&&(n.isMany?i.get(n.name).push(a):i.set(n.name,a),n.isReference?(Rt(a,{element:i}),this.context.addReference(a)):a.$parent=i),o};function Ihe(e,n,r){Yc.call(this,e,n,r)}Ihe.prototype=Object.create(Yc.prototype);Ihe.prototype.createElement=function(e){var n=e.name,r=pc(n),i=this.model,o=this.type,a=i.getPackage(r.prefix),s=a&&jJe(r,a)||n;if(!o.hasType(s))throw D0("unexpected element <"+e.originalName+">");return Yc.prototype.createElement.call(this,e)};function lR(e,n,r){this.model=e,this.context=r}lR.prototype=Object.create(Rz.prototype);lR.prototype.createElement=function(e){var n=e.name,r=pc(n),i=r.prefix,o=e.ns[i+"$uri"],a=e.attributes;return this.model.createAny(n,o,a)};lR.prototype.handleChild=function(e){var n=new lR(this.model,"Element",this.context).handleNode(e),r=this.element,i=n.element,o;return i!==void 0&&(o=r.$children=r.$children||[],o.push(i),i.$parent=r),n};lR.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function Nhe(e){e instanceof Gp&&(e={model:e}),Rt(this,{lax:!1},e)}Nhe.prototype.fromXML=function(e,n,r){var i=n.rootHandler;n instanceof Yc?(i=n,n={}):typeof n=="string"?(i=this.handler(n),n={}):typeof i=="string"&&(i=this.handler(i));var o=this.model,a=this.lax,s=new ojn(Rt({},n,{rootHandler:i})),l=new LJe({proxy:!0}),c=ajn();i.context=s,c.push(i);function u(w,C,x){var T=C(),R=T.line,O=T.column,M=T.data;M.charAt(0)==="<"&&M.indexOf(" ")!==-1&&(M=M.slice(0,M.indexOf(" "))+">");var P="unparsable content "+(M?M+" ":"")+`detected
|
||
line: `+R+`
|
||
column: `+O+`
|
||
nested error: `+w.message;if(x)return s.addWarning({message:P,error:w}),!0;throw D0(P)}function d(w,C){return u(w,C,!0)}function f(){var w=s.elementsById,C=s.references,x,T;for(x=0;T=C[x];x++){var R=T.element,O=w[T.id],M=yy(R).propertiesByName[T.property];if(O||s.addWarning({message:"unresolved reference <"+T.id+">",element:T.element,property:T.property,value:T.id}),M.isMany){var P=R.get(M.name),k=P.indexOf(T);k===-1&&(k=P.length),O?P[k]=O:P.splice(k,1)}else R.set(M.name,O)}}function p(){c.pop().handleEnd()}var h=/^<\?xml /i,g=/ encoding="([^"]+)"/i,v=/^utf-8$/i;function y(w){if(h.test(w)){var C=g.exec(w),x=C&&C[1];!x||v.test(x)||s.addWarning({message:"unsupported document encoding <"+x+">, falling back to UTF-8"})}}function _(w,C){var x=c.peek();try{c.push(x.handleNode(w))}catch(T){u(T,C,a)&&c.push(new Ohe)}}function S(w,C){try{c.peek().handleText(w)}catch(x){d(x,C)}}function b(w,C){w.trim()&&S(w,C)}var E=o.getPackages().reduce(function(w,C){return w[C.uri]=C.prefix,w},Object.entries(xae).reduce(function(w,[C,x]){return w[x]=C,w},o.config&&o.config.nsMap||{}));return l.ns(E).on("openTag",function(w,C,x,T){var R=w.attrs||{},O=Object.keys(R).reduce(function(P,k){var $=C(R[k]);return P[k]=$,P},{}),M={name:w.name,originalName:w.originalName,attributes:O,ns:w.ns};_(M,T)}).on("question",y).on("closeTag",p).on("cdata",S).on("text",function(w,C,x){b(C(w),x)}).on("error",u).on("warn",d),new Promise(function(w,C){var x;try{l.parse(e),f()}catch(P){x=P}var T=i.element;!x&&!T&&(x=D0("failed to parse document as <"+i.type.$descriptor.name+">"));var R=s.warnings,O=s.references,M=s.elementsById;return x?(x.warnings=R,C(x)):w({rootElement:T,elementsById:M,references:O,warnings:R})})};Nhe.prototype.handler=function(e){return new Ihe(this.model,e)};function ajn(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var sjn=`<?xml version="1.0" encoding="UTF-8"?>
|
||
`,ljn=/<|>|'|"|&|\n\r|\n/g,UJe=/<|>|&/g;function ov(e){this.prefixMap={},this.uriMap={},this.used={},this.wellknown=[],this.custom=[],this.parent=e,this.defaultPrefixMap=e&&e.defaultPrefixMap||{}}ov.prototype.mapDefaultPrefixes=function(e){this.defaultPrefixMap=e};ov.prototype.defaultUriByPrefix=function(e){return this.defaultPrefixMap[e]};ov.prototype.byUri=function(e){return this.uriMap[e]||this.parent&&this.parent.byUri(e)};ov.prototype.add=function(e,n){this.uriMap[e.uri]=e,n?this.wellknown.push(e):this.custom.push(e),this.mapPrefix(e.prefix,e.uri)};ov.prototype.uriByPrefix=function(e){return this.prefixMap[e||"xmlns"]||this.parent&&this.parent.uriByPrefix(e)};ov.prototype.mapPrefix=function(e,n){this.prefixMap[e||"xmlns"]=n};ov.prototype.getNSKey=function(e){return e.prefix!==void 0?e.uri+"|"+e.prefix:e.uri};ov.prototype.logUsed=function(e){var n=e.uri,r=this.getNSKey(e);this.used[r]=this.byUri(n),this.parent&&this.parent.logUsed(e)};ov.prototype.getUsed=function(e){var n=[].concat(this.wellknown,this.custom);return n.filter(r=>{var i=this.getNSKey(r);return this.used[i]})};function cjn(e){return e.charAt(0).toLowerCase()+e.slice(1)}function ujn(e,n){return $Je(n)?cjn(e):e}function HJe(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function zJe(e){return md(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function djn(e){return e.getUsed().filter(function(n){return n.prefix!=="xml"}).map(function(n){var r="xmlns"+(n.prefix?":"+n.prefix:"");return{name:r,value:n.uri}})}function fjn(e,n){return n.isGeneric?Rt({localName:n.ns.localName},e):Rt({localName:ujn(n.ns.localName,n.$pkg)},e)}function pjn(e,n){return Rt({localName:n.ns.localName},e)}function hjn(e){var n=e.$descriptor;return si(n.properties,function(r){var i=r.name;if(r.isVirtual||!gu(e,i))return!1;var o=e[i];return o===r.default||o===null?!1:r.isMany?o.length:!0})}var gjn={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},mjn={"<":"lt",">":"gt","&":"amp"};function VJe(e,n,r){return e=md(e)?e:""+e,e.replace(n,function(i){return"&"+r[i]+";"})}function vjn(e){return VJe(e,ljn,gjn)}function yjn(e){return VJe(e,UJe,mjn)}function _jn(e){return si(e,function(n){return n.isAttr})}function bjn(e){return si(e,function(n){return!n.isAttr})}function Mhe(e){this.tagName=e}Mhe.prototype.build=function(e){return this.element=e,this};Mhe.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()};function EC(){}EC.prototype.serializeValue=EC.prototype.serializeTo=function(e){e.append(this.escape?yjn(this.value):this.value)};EC.prototype.build=function(e,n){return this.value=n,e.type==="String"&&n.search(UJe)!==-1&&(this.escape=!0),this};function Phe(e){this.tagName=e}HJe(Phe,EC);Phe.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()};function ua(e,n){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=n}ua.prototype.build=function(e){this.element=e;var n=e.$descriptor,r=this.propertyDescriptor,i,o,a=n.isGeneric;return a?i=this.parseGenericNsAttributes(e):i=this.parseNsAttributes(e),r?this.ns=this.nsPropertyTagName(r):this.ns=this.nsTagName(n),this.tagName=this.addTagName(this.ns),a?this.parseGenericContainments(e):(o=hjn(e),this.parseAttributes(_jn(o)),this.parseContainments(bjn(o))),this.parseGenericAttributes(e,i),this};ua.prototype.nsTagName=function(e){var n=this.logNamespaceUsed(e.ns);return fjn(n,e)};ua.prototype.nsPropertyTagName=function(e){var n=this.logNamespaceUsed(e.ns);return pjn(n,e)};ua.prototype.isLocalNs=function(e){return e.uri===this.ns.uri};ua.prototype.nsAttributeName=function(e){var n;if(md(e)?n=pc(e):n=e.ns,e.inherited)return{localName:n.localName};var r=this.logNamespaceUsed(n);return this.getNamespaces().logUsed(r),this.isLocalNs(r)?{localName:n.localName}:Rt({localName:n.localName},r)};ua.prototype.parseGenericNsAttributes=function(e){return Object.entries(e).filter(([n,r])=>!n.startsWith("$")&&this.parseNsAttribute(e,n,r)).map(([n,r])=>({name:n,value:r}))};ua.prototype.parseGenericContainments=function(e){var n=e.$body;n&&this.body.push(new EC().build({type:"String"},n));var r=e.$children;r&&ht(r,i=>{this.body.push(new ua(this).build(i))})};ua.prototype.parseNsAttribute=function(e,n,r){var i=e.$model,o=pc(n),a;if(o.prefix==="xmlns"&&(a={prefix:o.localName,uri:r}),!o.prefix&&o.localName==="xmlns"&&(a={uri:r}),!a)return{name:n,value:r};if(i&&i.getPackage(r))this.logNamespace(a,!0,!0);else{var s=this.logNamespaceUsed(a,!0);this.getNamespaces().logUsed(s)}};ua.prototype.parseNsAttributes=function(e){var n=this,r=e.$attrs,i=[];return ht(r,function(o,a){var s=n.parseNsAttribute(e,a,o);s&&i.push(s)}),i};ua.prototype.parseGenericAttributes=function(e,n){var r=this;ht(n,function(i){try{r.addAttribute(r.nsAttributeName(i.name),i.value)}catch(o){typeof console<"u"&&console.warn(`missing namespace information for <${i.name}=${i.value}> on`,e,o)}})};ua.prototype.parseContainments=function(e){var n=this,r=this.body,i=this.element;ht(e,function(o){var a=i.get(o.name),s=o.isReference,l=o.isMany;if(l||(a=[a]),o.isBody)r.push(new EC().build(o,a[0]));else if(DJe(o.type))ht(a,function(u){r.push(new Phe(n.addTagName(n.nsPropertyTagName(o))).build(o,u))});else if(s)ht(a,function(u){r.push(new Mhe(n.addTagName(n.nsPropertyTagName(o))).build(u))});else{var c=BJe(o);ht(a,function(u){var d;c?c===FJe?d=new ua(n,o):d=new Iz(n,o,c):d=new ua(n),r.push(d.build(u))})}})};ua.prototype.getNamespaces=function(e){var n=this.namespaces,r=this.parent,i;return n||(i=r&&r.getNamespaces(),e||!i?this.namespaces=n=new ov(i):n=i),n};ua.prototype.logNamespace=function(e,n,r){var i=this.getNamespaces(r),o=e.uri,a=e.prefix,s=i.byUri(o);return(!s||r)&&i.add(e,n),i.mapPrefix(a,o),e};ua.prototype.logNamespaceUsed=function(e,n){var r=this.getNamespaces(n),i=e.prefix,o=e.uri,a,s,l;if(!i&&!o)return{localName:e.localName};if(l=r.defaultUriByPrefix(i),o=o||l||r.uriByPrefix(i),!o)throw new Error("no namespace uri given for prefix <"+i+">");if(e=r.byUri(o),!e&&!i&&(e=this.logNamespace({uri:o},l===o,!0)),!e){for(a=i,s=1;r.uriByPrefix(a);)a=i+"_"+s++;e=this.logNamespace({prefix:a,uri:o},l===o)}return i&&r.mapPrefix(i,o),e};ua.prototype.parseAttributes=function(e){var n=this,r=this.element;ht(e,function(i){var o=r.get(i.name);if(i.isReference)if(!i.isMany)o=o.id;else{var a=[];ht(o,function(s){a.push(s.id)}),o=a.join(" ")}n.addAttribute(n.nsAttributeName(i),o)})};ua.prototype.addTagName=function(e){var n=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(n),zJe(e)};ua.prototype.addAttribute=function(e,n){var r=this.attrs;md(n)&&(n=vjn(n));var i=ZZe(r,function(a){return a.name.localName===e.localName&&a.name.uri===e.uri&&a.name.prefix===e.prefix}),o={name:e,value:n};i!==-1?r.splice(i,1,o):r.push(o)};ua.prototype.serializeAttributes=function(e){var n=this.attrs,r=this.namespaces;r&&(n=djn(r).concat(n)),ht(n,function(i){e.append(" ").append(zJe(i.name)).append('="').append(i.value).append('"')})};ua.prototype.serializeTo=function(e){var n=this.body[0],r=n&&n.constructor!==EC;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(n?">":" />"),n&&(r&&e.appendNewLine().indent(),ht(this.body,function(i){i.serializeTo(e)}),r&&e.unindent().appendIndent(),e.append("</"+this.tagName+">")),e.appendNewLine()};function Iz(e,n,r){ua.call(this,e,n),this.serialization=r}HJe(Iz,ua);Iz.prototype.parseNsAttributes=function(e){var n=ua.prototype.parseNsAttributes.call(this,e).filter(s=>s.name!==this.serialization),r=e.$descriptor;if(r.name===this.propertyDescriptor.type)return n;var i=this.typeNs=this.nsTagName(r);this.getNamespaces().logUsed(this.typeNs);var o=e.$model.getPackage(i.uri),a=o.xml&&o.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(this.serialization),(i.prefix?i.prefix+":":"")+a+r.ns.localName),n};Iz.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri};function Sjn(){this.value="",this.write=function(e){this.value+=e}}function Ejn(e,n){var r=[""];this.append=function(i){return e.write(i),this},this.appendNewLine=function(){return n&&e.write(`
|
||
`),this},this.appendIndent=function(){return n&&e.write(r.join(" ")),this},this.indent=function(){return r.push(""),this},this.unindent=function(){return r.pop(),this}}function Cjn(e){e=Rt({format:!1,preamble:!0},e||{});function n(r,i){var o=i||new Sjn,a=new Ejn(o,e.format);e.preamble&&a.append(sjn);var s=new ua,l=r.$model;if(s.getNamespaces().mapDefaultPrefixes(wjn(l)),s.build(r).serializeTo(a),!i)return o.value}return{toXML:n}}function wjn(e){const n=e.config&&e.config.nsMap||{},r={};for(const i in xae)r[i]=xae[i];for(const i in n){const o=n[i];r[o]=i}for(const i of e.getPackages())r[i.prefix]=i.uri;return r}function Nz(e,n){Gp.call(this,e,n)}Nz.prototype=Object.create(Gp.prototype);Nz.prototype.fromXML=function(e,n,r){md(n)||(r=n,n="bpmn:Definitions");var i=new Nhe(Rt({model:this,lax:!0},r)),o=i.handler(n);return i.fromXML(e,o)};Nz.prototype.toXML=function(e,n){var r=new Cjn(n);return new Promise(function(i,o){try{var a=r.toXML(e);return i({xml:a})}catch(s){return o(s)}})};var xjn="BPMN20",Tjn="http://www.omg.org/spec/BPMN/20100524/MODEL",Ojn="bpmn",Rjn=[],Ijn=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],Njn=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],Mjn={tagAlias:"lowerCase",typePrefix:"t"},Pjn={name:xjn,uri:Tjn,prefix:Ojn,associations:Rjn,types:Ijn,enumerations:Njn,xml:Mjn},Ajn="BPMNDI",Djn="http://www.omg.org/spec/BPMN/20100524/DI",kjn="bpmndi",Ljn=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],$jn=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],Fjn=[],Bjn={name:Ajn,uri:Djn,prefix:kjn,types:Ljn,enumerations:$jn,associations:Fjn},jjn="DC",Ujn="http://www.omg.org/spec/DD/20100524/DC",Hjn="dc",zjn=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],Vjn=[],Gjn={name:jjn,uri:Ujn,prefix:Hjn,types:zjn,associations:Vjn},Wjn="DI",Yjn="http://www.omg.org/spec/DD/20100524/DI",qjn="di",Kjn=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],Xjn=[],Qjn={tagAlias:"lowerCase"},Zjn={name:Wjn,uri:Yjn,prefix:qjn,types:Kjn,associations:Xjn,xml:Qjn},Jjn="bpmn.io colors for BPMN",e7n="http://bpmn.io/schema/bpmn/biocolor/1.0",t7n="bioc",n7n=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],r7n=[],i7n=[],o7n={name:Jjn,uri:e7n,prefix:t7n,types:n7n,enumerations:r7n,associations:i7n},a7n="BPMN in Color",s7n="http://www.omg.org/spec/BPMN/non-normative/color/1.0",l7n="color",c7n=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],u7n=[],d7n=[],f7n={name:a7n,uri:s7n,prefix:l7n,types:c7n,enumerations:u7n,associations:d7n};const p7n={bpmn:Pjn,bpmndi:Bjn,dc:Gjn,di:Zjn,bioc:o7n,color:f7n};function h7n(e,n){const r=Rt({},p7n,e);return new Nz(r,n)}function uc(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}var g7n="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function GJe(e){gu(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(g7n)}})}function iu(e,n){return e.$instanceOf(n)}function m7n(e){return ki(e.rootElements,function(n){return iu(n,"bpmn:Process")||iu(n,"bpmn:Collaboration")})}function v7n(e){var n={},r=[],i={};function o(H,G){return function(Q){H(Q,G)}}function a(H){n[H.id]=H}function s(H){return n[H.id]}function l(H,G){var Q=H.gfx;if(Q)throw new Error(`already rendered ${uc(H)}`);return e.element(H,i[H.id],G)}function c(H,G){return e.root(H,i[H.id],G)}function u(H,G){try{var Q=i[H.id]&&l(H,G);return a(H),Q}catch(le){d(le.message,{element:H,error:le}),console.error(`failed to import ${uc(H)}`,le)}}function d(H,G){e.error(H,G)}var f=this.registerDi=function(G){var Q=G.bpmnElement;Q?i[Q.id]?d(`multiple DI elements defined for ${uc(Q)}`,{element:Q}):(i[Q.id]=G,GJe(Q)):d(`no bpmnElement referenced in ${uc(G)}`,{element:G})};function p(H){h(H.plane)}function h(H){f(H),ht(H.planeElement,g)}function g(H){f(H)}this.handleDefinitions=function(G,Q){var le=G.diagrams;if(Q&&le.indexOf(Q)===-1)throw new Error("diagram not part of <bpmn:Definitions />");if(!Q&&le&&le.length&&(Q=le[0]),!Q)throw new Error("no diagram to display");i={},p(Q);var Z=Q.plane;if(!Z)throw new Error(`no plane for ${uc(Q)}`);var j=Z.bpmnElement;if(!j)if(j=m7n(G),j)d(`correcting missing bpmnElement on ${uc(Z)} to ${uc(j)}`),Z.bpmnElement=j,f(Z);else throw new Error("no process or collaboration to display");var F=c(j,Z);if(iu(j,"bpmn:Process")||iu(j,"bpmn:SubProcess"))y(j,F);else if(iu(j,"bpmn:Collaboration"))q(j,F),_(G.rootElements,F);else throw new Error(`unsupported bpmnElement for ${uc(Z)}: ${uc(j)}`);v(r)};var v=this.handleDeferred=function(){for(var G;r.length;)G=r.shift(),G()};function y(H,G){D(H,G),R(H.ioSpecification,G),T(H.artifacts,G),a(H)}function _(H,G){var Q=si(H,function(le){return!s(le)&&iu(le,"bpmn:Process")&&le.laneSets});Q.forEach(o(y,G))}function S(H,G){u(H,G)}function b(H,G){ht(H,o(S,G))}function E(H,G){u(H,G)}function w(H,G){u(H,G)}function C(H,G){u(H,G)}function x(H,G){u(H,G)}function T(H,G){ht(H,function(Q){iu(Q,"bpmn:Association")?r.push(function(){x(Q,G)}):x(Q,G)})}function R(H,G){H&&(ht(H.dataInputs,o(w,G)),ht(H.dataOutputs,o(C,G)))}var O=this.handleSubProcess=function(G,Q){D(G,Q),T(G.artifacts,Q)};function M(H,G){var Q=u(H,G);iu(H,"bpmn:SubProcess")&&O(H,Q||G),iu(H,"bpmn:Activity")&&R(H.ioSpecification,G),r.push(function(){ht(H.dataInputAssociations,o(E,G)),ht(H.dataOutputAssociations,o(E,G))})}function P(H,G){u(H,G)}function k(H,G){u(H,G)}function $(H,G){r.push(function(){var Q=u(H,G);H.childLaneSet&&U(H.childLaneSet,Q||G),K(H)})}function U(H,G){ht(H.lanes,o($,G))}function z(H,G){ht(H,o(U,G))}function D(H,G){B(H.flowElements,G),H.laneSets&&z(H.laneSets,G)}function B(H,G){ht(H,function(Q){iu(Q,"bpmn:SequenceFlow")?r.push(function(){P(Q,G)}):iu(Q,"bpmn:BoundaryEvent")?r.unshift(function(){M(Q,G)}):iu(Q,"bpmn:FlowNode")?M(Q,G):iu(Q,"bpmn:DataObject")||(iu(Q,"bpmn:DataStoreReference")||iu(Q,"bpmn:DataObjectReference")?k(Q,G):d(`unrecognized flowElement ${uc(Q)} in context ${uc(G&&G.businessObject)}`,{element:Q,context:G}))})}function Y(H,G){var Q=u(H,G),le=H.processRef;le&&y(le,Q||G)}function q(H,G){ht(H.participants,o(Y,G)),T(H.artifacts,G),r.push(function(){b(H.messageFlows,G)})}function K(H){ht(H.flowNodeRef,function(G){var Q=G.get("lanes");Q&&Q.push(H)})}}function Fe(e,n){var r=In(e);return r&&typeof r.$instanceOf=="function"&&r.$instanceOf(n)}function ii(e,n){return fS(n,function(r){return Fe(e,r)})}function In(e){return e&&e.businessObject||e}function Ii(e){return e&&e.di}function y7n(e,n,r){var i,o,a,s,l=[];function c(u,d){var f={root:function(v,y){return i.add(v,y)},element:function(v,y,_){return i.add(v,y,_)},error:function(v,y){l.push({message:v,context:y})}},p=new v7n(f);d=d||u.diagrams&&u.diagrams[0];var h=_7n(u,d);if(!h)throw new Error("no diagram to display");ht(h,function(v){p.handleDefinitions(u,v)});var g=d.plane.bpmnElement.id;a.setRootElement(a.findRoot(g+"_plane")||a.findRoot(g))}return new Promise(function(u,d){try{return i=e.get("bpmnImporter"),o=e.get("eventBus"),a=e.get("canvas"),o.fire("import.render.start",{definitions:n}),c(n,r),o.fire("import.render.complete",{error:s,warnings:l}),u({warnings:l})}catch(f){return f.warnings=l,d(f)}})}function _7n(e,n){if(!(!n||!n.plane)){var r=n.plane.bpmnElement,i=r;!Fe(r,"bpmn:Process")&&!Fe(r,"bpmn:Collaboration")&&(i=b7n(r));var o;Fe(i,"bpmn:Collaboration")?o=i:o=ki(e.rootElements,function(u){if(Fe(u,"bpmn:Collaboration"))return ki(u.participants,function(d){return d.processRef===i})});var a=[i];o&&(a=vc(o.participants,function(u){return u.processRef}),a.push(o));var s=WJe(a),l=[n],c=[r];return ht(e.diagrams,function(u){if(u.plane){var d=u.plane.bpmnElement;s.indexOf(d)!==-1&&c.indexOf(d)===-1&&(l.push(u),c.push(d))}}),l}}function WJe(e){var n=[];return ht(e,function(r){r&&(n.push(r),n=n.concat(WJe(r.flowElements)))}),n}function b7n(e){for(var n=e;n;){if(Fe(n,"bpmn:Process"))return n;n=n.$parent}}var S7n='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',YJe=S7n,qJe={verticalAlign:"middle"},KJe={color:"#404040"},E7n={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},C7n={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},w7n={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},x7n='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+YJe+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>',Jg;function T7n(){Jg=Ko(x7n),dc(Jg,E7n),dc(Co("svg",Jg),qJe),dc(Co(".backdrop",Jg),C7n),dc(Co(".notice",Jg),w7n),dc(Co(".link",Jg),KJe,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function O7n(){Jg||(T7n(),sd.bind(Jg,".backdrop","click",function(e){document.body.removeChild(Jg)})),document.body.appendChild(Jg)}function Ia(e){e=Rt({},I7n,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),this._init(this._container,this._moddle,e),M7n(this._container)}Zn(Ia,hS);Ia.prototype.importXML=async function(n,r){const i=this;function o(s){return i.get("eventBus").createEvent(s)}let a=[];try{n=this._emit("import.parse.start",{xml:n})||n;let s;try{s=await this._moddle.fromXML(n,"bpmn:Definitions")}catch(p){throw this._emit("import.parse.complete",{error:p}),p}let l=s.rootElement;const c=s.references,u=s.warnings,d=s.elementsById;a=a.concat(u),l=this._emit("import.parse.complete",o({error:null,definitions:l,elementsById:d,references:c,warnings:a}))||l;const f=await this.importDefinitions(l,r);return a=a.concat(f.warnings),this._emit("import.done",{error:null,warnings:a}),{warnings:a}}catch(s){let l=s;throw a=a.concat(l.warnings||[]),U6(l,a),l=R7n(l),this._emit("import.done",{error:l,warnings:l.warnings}),l}};Ia.prototype.importDefinitions=async function(n,r){return this._setDefinitions(n),{warnings:(await this.open(r)).warnings}};Ia.prototype.open=async function(n){const r=this._definitions;let i=n;if(!r){const a=new Error("no XML imported");throw U6(a,[]),a}if(typeof n=="string"&&(i=N7n(r,n),!i)){const a=new Error("BPMNDiagram <"+n+"> not found");throw U6(a,[]),a}try{this.clear()}catch(a){throw U6(a,[]),a}const{warnings:o}=await y7n(this,r,i);return{warnings:o}};Ia.prototype.saveXML=async function(n){n=n||{};let r=this._definitions,i,o;try{if(!r)throw new Error("no definitions loaded");r=this._emit("saveXML.start",{definitions:r})||r,o=(await this._moddle.toXML(r,n)).xml,o=this._emit("saveXML.serialized",{xml:o})||o}catch(s){i=s}const a=i?{error:i}:{xml:o};if(this._emit("saveXML.done",a),i)throw i;return a};Ia.prototype.saveSVG=async function(){this._emit("saveSVG.start");let n,r;try{const i=this.get("canvas"),o=i.getActiveLayer(),a=Co(":scope > defs",i._svg),s=FPe(o),l=a?"<defs>"+FPe(a)+"</defs>":"",c=o.getBBox();n=`<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- created with bpmn-js / http://bpmn.io -->
|
||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+s+"</svg>"}catch(i){r=i}if(this._emit("saveSVG.done",{error:r,svg:n}),r)throw r;return{svg:n}};Ia.prototype._setDefinitions=function(e){this._definitions=e};Ia.prototype.getModules=function(){return this._modules};Ia.prototype.clear=function(){this.getDefinitions()&&hS.prototype.clear.call(this)};Ia.prototype.destroy=function(){hS.prototype.destroy.call(this),Fm(this._container)};Ia.prototype.on=function(e,n,r,i){return this.get("eventBus").on(e,n,r,i)};Ia.prototype.off=function(e,n){this.get("eventBus").off(e,n)};Ia.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=Co(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()};Ia.prototype.getDefinitions=function(){return this._definitions};Ia.prototype.detach=function(){const e=this._container,n=e.parentNode;n&&(this._emit("detach",{}),n.removeChild(e))};Ia.prototype._init=function(e,n,r){const i=r.modules||this.getModules(r),o=r.additionalModules||[],a=[{bpmnjs:["value",this],moddle:["value",n]}],s=[].concat(a,i,o),l=Rt(iv(r,["additionalModules"]),{canvas:Rt({},r.canvas,{container:e}),modules:s});hS.call(this,l),r&&r.container&&this.attachTo(r.container)};Ia.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)};Ia.prototype._createContainer=function(e){const n=Ko('<div class="bjs-container"></div>');return dc(n,{width:rAe(e.width),height:rAe(e.height),position:e.position}),n};Ia.prototype._createModdle=function(e){const n=Rt({},this._moddleExtensions,e.moddleExtensions);return new h7n(n)};Ia.prototype._modules=[];function U6(e,n){return e.warnings=n,e}function R7n(e){const r=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return r&&(e.message="unparsable content <"+r[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+r[2]),e}const I7n={width:"100%",height:"100%",position:"relative"};function rAe(e){return e+(Nr(e)?"px":"")}function N7n(e,n){return n&&ki(e.diagrams,function(r){return r.id===n})||null}function M7n(e){const r='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+YJe+"</a>",i=Ko(r);dc(Co("svg",i),qJe),dc(i,KJe,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(i),Ur.bind(i,"click",function(o){O7n(),o.preventDefault()})}function TL(e){Ia.call(this,e),this.on("import.parse.complete",function(n){n.error||this._collectIds(n.definitions,n.elementsById)},this),this.on("diagram.destroy",function(){this.get("moddle").ids.clear()},this)}Zn(TL,Ia);TL.prototype._createModdle=function(e){var n=Ia.prototype._createModdle.call(this,e);return n.ids=new Lm([32,36,1]),n};TL.prototype._collectIds=function(e,n){var r=e.$model,i=r.ids,o;i.clear();for(o in n)i.claim(o,n[o])};function pi(e,n){return Fe(e,"bpmn:CallActivity")?!1:Fe(e,"bpmn:SubProcess")?(n=n||Ii(e),n&&Fe(n,"bpmndi:BPMNPlane")?!0:n&&!!n.isExpanded):Fe(e,"bpmn:Participant")?!!In(e).processRef:!0}function cl(e){if(!(!Fe(e,"bpmn:Participant")&&!Fe(e,"bpmn:Lane"))){var n=Ii(e).isHorizontal;return n===void 0?!0:n}}function P7n(e){return e&&In(e).isInterrupting!==!1}function zc(e){return e&&!!In(e).triggeredByEvent}function WI(e,n){var r=In(e).eventDefinitions;return fS(r,function(i){return Fe(i,n)})}function A7n(e){return WI(e,"bpmn:ErrorEventDefinition")}function D7n(e){return WI(e,"bpmn:EscalationEventDefinition")}function k7n(e){return WI(e,"bpmn:CompensateEventDefinition")}var nD={width:90,height:20},iAe=15;function CC(e){return Fe(e,"bpmn:Event")||Fe(e,"bpmn:Gateway")||Fe(e,"bpmn:DataStoreReference")||Fe(e,"bpmn:DataObjectReference")||Fe(e,"bpmn:DataInput")||Fe(e,"bpmn:DataOutput")||Fe(e,"bpmn:SequenceFlow")||Fe(e,"bpmn:MessageFlow")||Fe(e,"bpmn:Group")}function Mz(e){return Ni(e.label)}function L7n(e){var n=e.length/2-1,r=e[Math.floor(n)],i=e[Math.ceil(n+.01)],o=$7n(e),a=Math.atan((i.y-r.y)/(i.x-r.x)),s=o.x,l=o.y;return Math.abs(a)<Math.PI/2?l-=iAe:s+=iAe,{x:s,y:l}}function $7n(e){var n=e.length/2-1,r=e[Math.floor(n)],i=e[Math.ceil(n+.01)];return{x:r.x+(i.x-r.x)/2,y:r.y+(i.y-r.y)/2}}function Ahe(e){return e.waypoints?L7n(e.waypoints):Fe(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+nD.height/2}:{x:e.x+e.width/2,y:e.y+e.height+nD.height/2}}function F7n(e,n){var r,i,o,a=e.label;return a&&a.bounds?(o=a.bounds,i={width:Math.max(nD.width,o.width),height:o.height},r={x:o.x+o.width/2,y:o.y+o.height/2}):(r=Ahe(n),i=nD),Rt({x:r.x-i.width/2,y:r.y-i.height/2},i)}function XJe(e){if(Fe(e,"bpmn:FlowElement")||Fe(e,"bpmn:Participant")||Fe(e,"bpmn:Lane")||Fe(e,"bpmn:SequenceFlow")||Fe(e,"bpmn:MessageFlow")||Fe(e,"bpmn:DataInput")||Fe(e,"bpmn:DataOutput"))return"name";if(Fe(e,"bpmn:TextAnnotation"))return"text";if(Fe(e,"bpmn:Group"))return"categoryValueRef"}function B7n(e){var n=e.categoryValueRef;return n&&n.value||""}function sg(e){var n=e.businessObject,r=XJe(n);if(r)return r==="categoryValueRef"?B7n(n):n[r]||""}function j7n(e,n){var r=e.businessObject,i=XJe(r);if(i)if(i==="categoryValueRef"){if(!r[i])return e;r[i].value=n}else r[i]=n;return e}var Tae="hsl(225, 10%, 15%)",U7n="white";function Ug(e,n){return fS(e.eventDefinitions,function(r){return r.$type===n})}function H7n(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function z7n(e){var n=e.dataObjectRef;return e.isCollection||n&&n.isCollection}function ai(e,n,r){var i=Ii(e);return r||i.get("color:background-color")||i.get("bioc:fill")||n||U7n}function Yn(e,n,r){var i=Ii(e);return r||i.get("color:border-color")||i.get("bioc:stroke")||n||Tae}function xM(e,n,r,i){var o=Ii(e),a=o.get("label");return i||a&&a.get("color:color")||n||Yn(e,r)}function V7n(e){var n=e.x+e.width/2,r=e.y+e.height/2,i=e.width/2,o=[["M",n,r],["m",0,-i],["a",i,i,0,1,1,0,2*i],["a",i,i,0,1,1,0,-2*i],["z"]];return Sw(o)}function G7n(e,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=[["M",r+n,i],["l",o-n*2,0],["a",n,n,0,0,1,n,n],["l",0,a-n*2],["a",n,n,0,0,1,-n,n],["l",n*2-o,0],["a",n,n,0,0,1,-n,-n],["l",0,n*2-a],["a",n,n,0,0,1,n,-n],["z"]];return Sw(s)}function W7n(e){var n=e.width,r=e.height,i=e.x,o=e.y,a=n/2,s=r/2,l=[["M",i+a,o],["l",a,s],["l",-a,s],["l",-a,-s],["z"]];return Sw(l)}function Y7n(e){var n=e.x,r=e.y,i=e.width,o=e.height,a=[["M",n,r],["l",i,0],["l",0,o],["l",-i,0],["z"]];return Sw(a)}function TM(e,n={}){return{width:Kf(e,n),height:Gu(e,n)}}function Kf(e,n={}){return gu(n,"width")?n.width:e.width}function Gu(e,n={}){return gu(n,"height")?n.height:e.height}var q7n=new Lm,K7n=10,F4=3,X7n=1.5,H6=10,Ax=.95,Q7n=1,Z7n=.25;function ww(e,n,r,i,o,a,s){p_.call(this,n,s);var l=e&&e.defaultFillColor,c=e&&e.defaultStrokeColor,u=e&&e.defaultLabelColor;function d(Z){return r.computeStyle(Z,{strokeLinecap:"round",strokeLinejoin:"round",stroke:Tae,strokeWidth:2,fill:"white"})}function f(Z){return r.computeStyle(Z,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:Tae,strokeWidth:2})}function p(Z,j){var{ref:F={x:0,y:0},scale:te=1,element:oe,parentGfx:de=o._svg}=j,pe=pr("marker",{id:Z,viewBox:"0 0 20 20",refX:F.x,refY:F.y,markerWidth:20*te,markerHeight:20*te,orient:"auto"});Ar(pe,oe);var me=Co(":scope > defs",de);me||(me=pr("defs"),Ar(de,me)),Ar(me,pe)}function h(Z,j,F,te){var oe=q7n.nextPrefixed("marker-");return g(Z,oe,j,F,te),"url(#"+oe+")"}function g(Z,j,F,te,oe){if(F==="sequenceflow-end"){var de=pr("path",{d:"M 1 5 L 11 10 L 1 15 Z",...d({fill:oe,stroke:oe,strokeWidth:1})});p(j,{element:de,ref:{x:11,y:10},scale:.5,parentGfx:Z})}if(F==="messageflow-start"){var pe=pr("circle",{cx:6,cy:6,r:3.5,...d({fill:te,stroke:oe,strokeWidth:1,strokeDasharray:[1e4,1]})});p(j,{element:pe,ref:{x:6,y:6},parentGfx:Z})}if(F==="messageflow-end"){var me=pr("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...d({fill:te,stroke:oe,strokeWidth:1,strokeDasharray:[1e4,1]})});p(j,{element:me,ref:{x:8.5,y:5},parentGfx:Z})}if(F==="association-start"){var ve=pr("path",{d:"M 11 5 L 1 10 L 11 15",...f({fill:"none",stroke:oe,strokeWidth:1.5,strokeDasharray:[1e4,1]})});p(j,{element:ve,ref:{x:1,y:10},scale:.5,parentGfx:Z})}if(F==="association-end"){var he=pr("path",{d:"M 1 5 L 11 10 L 1 15",...f({fill:"none",stroke:oe,strokeWidth:1.5,strokeDasharray:[1e4,1]})});p(j,{element:he,ref:{x:11,y:10},scale:.5,parentGfx:Z})}if(F==="conditional-flow-marker"){var be=pr("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...d({fill:te,stroke:oe})});p(j,{element:be,ref:{x:-1,y:10},scale:.5,parentGfx:Z})}if(F==="conditional-default-flow-marker"){var we=pr("path",{d:"M 6 4 L 10 16",...d({stroke:oe,fill:"none"})});p(j,{element:we,ref:{x:0,y:10},scale:.5,parentGfx:Z})}}function v(Z,j,F,te,oe={}){Rl(te)&&(oe=te,te=0),te=te||0,oe=d(oe);var de=j/2,pe=F/2,me=pr("circle",{cx:de,cy:pe,r:Math.round((j+F)/4-te),...oe});return Ar(Z,me),me}function y(Z,j,F,te,oe,de){Rl(oe)&&(de=oe,oe=0),oe=oe||0,de=d(de);var pe=pr("rect",{x:oe,y:oe,width:j-oe*2,height:F-oe*2,rx:te,ry:te,...de});return Ar(Z,pe),pe}function _(Z,j,F,te){var oe=j/2,de=F/2,pe=[{x:oe,y:0},{x:j,y:de},{x:oe,y:F},{x:0,y:de}],me=pe.map(function(he){return he.x+","+he.y}).join(" ");te=d(te);var ve=pr("polygon",{...te,points:me});return Ar(Z,ve),ve}function S(Z,j,F,te){F=f(F);var oe=xz(j,F,te);return Ar(Z,oe),oe}function b(Z,j,F){return S(Z,j,F,5)}function E(Z,j,F){F=f(F);var te=pr("path",{...F,d:j});return Ar(Z,te),te}function w(Z,j,F,te){return E(j,F,Rt({"data-marker":Z},te))}function C(Z){return le[Z]}function x(Z){return function(j,F,te){return C(Z)(j,F,te)}}var T={"bpmn:MessageEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:j.width,containerHeight:j.height,position:{mx:.235,my:.315}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill),pe=te?ai(j,l,F.fill):Yn(j,c,F.stroke),me=E(Z,oe,{fill:de,stroke:pe,strokeWidth:1});return me},"bpmn:TimerEventDefinition":function(Z,j,F={}){var te=v(Z,j.width,j.height,.2*j.height,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:2}),oe=i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:j.width,containerHeight:j.height,position:{mx:.5,my:.5}});E(Z,oe,{stroke:Yn(j,c,F.stroke),strokeWidth:2});for(var de=0;de<12;de++){var pe=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:j.width,containerHeight:j.height,position:{mx:.5,my:.5}}),me=j.width/2,ve=j.height/2;E(Z,pe,{strokeWidth:1,stroke:Yn(j,c,F.stroke),transform:"rotate("+de*30+","+ve+","+me+")"})}return te},"bpmn:EscalationEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.5,my:.2}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{fill:de,stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(Z,j,F={}){var te=i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.5,my:.222}});return E(Z,te,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.57,my:.263}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{fill:de,stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:j.width,containerHeight:j.height,position:{mx:.2,my:.722}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{fill:de,stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.638,my:-.055}}),de=te?Yn(j,c,F.stroke):"none",pe=E(Z,oe,{fill:de,stroke:Yn(j,c,F.stroke),strokeWidth:1});return NJe(pe,45),pe},"bpmn:CompensateEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.22,my:.5}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{fill:de,stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:j.width,containerHeight:j.height,position:{mx:.5,my:.2}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{strokeWidth:1,fill:de,stroke:Yn(j,c,F.stroke)})},"bpmn:MultipleEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:j.width,containerHeight:j.height,position:{mx:.222,my:.36}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{fill:de,strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(Z,j,F={}){var te=i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:j.width,containerHeight:j.height,position:{mx:.458,my:.194}});return E(Z,te,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(Z,j,F={}){var te=v(Z,j.width,j.height,8,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:4});return te}};function R(Z,j,F={}){var te=In(Z),oe=H7n(te);return te.get("eventDefinitions")&&te.get("eventDefinitions").length>1?te.get("parallelMultiple")?T["bpmn:ParallelMultipleEventDefinition"](j,Z,F,oe):T["bpmn:MultipleEventDefinition"](j,Z,F,oe):Ug(te,"bpmn:MessageEventDefinition")?T["bpmn:MessageEventDefinition"](j,Z,F,oe):Ug(te,"bpmn:TimerEventDefinition")?T["bpmn:TimerEventDefinition"](j,Z,F,oe):Ug(te,"bpmn:ConditionalEventDefinition")?T["bpmn:ConditionalEventDefinition"](j,Z,F,oe):Ug(te,"bpmn:SignalEventDefinition")?T["bpmn:SignalEventDefinition"](j,Z,F,oe):Ug(te,"bpmn:EscalationEventDefinition")?T["bpmn:EscalationEventDefinition"](j,Z,F,oe):Ug(te,"bpmn:LinkEventDefinition")?T["bpmn:LinkEventDefinition"](j,Z,F,oe):Ug(te,"bpmn:ErrorEventDefinition")?T["bpmn:ErrorEventDefinition"](j,Z,F,oe):Ug(te,"bpmn:CancelEventDefinition")?T["bpmn:CancelEventDefinition"](j,Z,F,oe):Ug(te,"bpmn:CompensateEventDefinition")?T["bpmn:CompensateEventDefinition"](j,Z,F,oe):Ug(te,"bpmn:TerminateEventDefinition")?T["bpmn:TerminateEventDefinition"](j,Z,F,oe):null}var O={ParticipantMultiplicityMarker:function(Z,j,F={}){var te=Kf(j,F),oe=Gu(j,F),de=i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:te,containerHeight:oe,position:{mx:(te/2-6)/te,my:(oe-15)/oe}});w("participant-multiplicity",Z,de,{strokeWidth:2,fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})},SubProcessMarker:function(Z,j,F={}){var te=y(Z,14,14,0,{strokeWidth:1,fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)});Wl(te,j.width/2-7.5,j.height-20);var oe=i.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:j.width,containerHeight:j.height,position:{mx:(j.width/2-7.5)/j.width,my:(j.height-20)/j.height}});w("sub-process",Z,oe,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})},ParallelMarker:function(Z,j,F){var te=Kf(j,F),oe=Gu(j,F),de=i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:te,containerHeight:oe,position:{mx:(te/2+F.parallel)/te,my:(oe-20)/oe}});w("parallel",Z,de,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})},SequentialMarker:function(Z,j,F){var te=i.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:(j.width/2+F.seq)/j.width,my:(j.height-19)/j.height}});w("sequential",Z,te,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})},CompensationMarker:function(Z,j,F){var te=i.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:(j.width/2+F.compensation)/j.width,my:(j.height-13)/j.height}});w("compensation",Z,te,{strokeWidth:1,fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})},LoopMarker:function(Z,j,F){var te=Kf(j,F),oe=Gu(j,F),de=i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:te,containerHeight:oe,position:{mx:(te/2+F.loop)/te,my:(oe-7)/oe}});w("loop",Z,de,{strokeWidth:1.5,fill:"none",stroke:Yn(j,c,F.stroke),strokeMiterlimit:.5})},AdhocMarker:function(Z,j,F){var te=Kf(j,F),oe=Gu(j,F),de=i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:te,containerHeight:oe,position:{mx:(te/2+F.adhoc)/te,my:(oe-15)/oe}});w("adhoc",Z,de,{strokeWidth:1,fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke)})}};function M(Z,j,F,te){O[Z](j,F,te)}function P(Z,j,F,te={}){te={fill:te.fill,stroke:te.stroke,width:Kf(j,te),height:Gu(j,te)};var oe=In(j),de=F&&F.includes("SubProcessMarker");de?te={...te,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:te={...te,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},ht(F,function(ve){M(ve,Z,j,te)}),oe.get("isForCompensation")&&M("CompensationMarker",Z,j,te),Fe(oe,"bpmn:AdHocSubProcess")&&M("AdhocMarker",Z,j,te);var pe=oe.get("loopCharacteristics"),me=pe&&pe.get("isSequential");pe&&(me===void 0&&M("LoopMarker",Z,j,te),me===!1&&M("ParallelMarker",Z,j,te),me===!0&&M("SequentialMarker",Z,j,te))}function k(Z,j,F={}){F=Rt({size:{width:100}},F);var te=a.createText(j||"",F);return Ri(te).add("djs-label"),Ar(Z,te),te}function $(Z,j,F,te={}){var oe=In(j),de=TM({x:j.x,y:j.y,width:j.width,height:j.height},te);return k(Z,oe.name,{align:F,box:de,padding:7,style:{fill:xM(j,u,c,te.stroke)}})}function U(Z,j,F={}){var te={width:90,height:30,x:j.width/2+j.x,y:j.height/2+j.y};return k(Z,sg(j),{box:te,fitBox:!0,style:Rt({},a.getExternalStyle(),{fill:xM(j,u,c,F.stroke)})})}function z(Z,j,F,te={}){var oe=cl(F),de=k(Z,j,{box:{height:30,width:oe?Gu(F,te):Kf(F,te)},align:"center-middle",style:{fill:xM(F,u,c,te.stroke)}});if(oe){var pe=-1*Gu(F,te);j6(de,0,-pe,270)}}function D(Z,j,F={}){var{width:te,height:oe}=TM(j,F);return y(Z,te,oe,H6,{...F,fill:ai(j,l,F.fill),fillOpacity:Ax,stroke:Yn(j,c,F.stroke)})}function B(Z,j,F={}){var te=In(j),oe=ai(j,l,F.fill),de=Yn(j,c,F.stroke);return(te.get("associationDirection")==="One"||te.get("associationDirection")==="Both")&&(F.markerEnd=h(Z,"association-end",oe,de)),te.get("associationDirection")==="Both"&&(F.markerStart=h(Z,"association-start",oe,de)),F=Ti(F,["markerStart","markerEnd"]),b(Z,j.waypoints,{...F,stroke:de,strokeDasharray:"0, 5"})}function Y(Z,j,F={}){var te=ai(j,l,F.fill),oe=Yn(j,c,F.stroke),de=i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.474,my:.296}}),pe=E(Z,de,{fill:te,fillOpacity:Ax,stroke:oe}),me=In(j);if(z7n(me)){var ve=i.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.33,my:(j.height-18)/j.height}});E(Z,ve,{strokeWidth:2,fill:te,stroke:oe})}return pe}function q(Z,j,F={}){return v(Z,j.width,j.height,{fillOpacity:Ax,...F,fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})}function K(Z,j,F={}){return _(Z,j.width,j.height,{fill:ai(j,l,F.fill),fillOpacity:Ax,stroke:Yn(j,c,F.stroke)})}function H(Z,j,F={}){var te=y(Z,Kf(j,F),Gu(j,F),0,{fill:ai(j,l,F.fill),fillOpacity:F.fillOpacity||Ax,stroke:Yn(j,c,F.stroke),strokeWidth:1.5}),oe=In(j);if(Fe(oe,"bpmn:Lane")){var de=oe.get("name");z(Z,de,j,F)}return te}function G(Z,j,F={}){var te=D(Z,j,F);zc(j)&&Gn(te,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var oe=pi(j);return $(Z,j,oe?"center-top":"center-middle",F),oe?P(Z,j,void 0,F):P(Z,j,["SubProcessMarker"],F),te}function Q(Z,j,F={}){var te=D(Z,j,F);return $(Z,j,"center-middle",F),P(Z,j,void 0,F),te}var le=this.handlers={"bpmn:AdHocSubProcess":function(Z,j,F={}){return pi(j)?F=Ti(F,["fill","stroke","width","height"]):F=Ti(F,["fill","stroke"]),G(Z,j,F)},"bpmn:Association":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),B(Z,j,F)},"bpmn:BoundaryEvent":function(Z,j,F={}){var{renderIcon:te=!0}=F;F=Ti(F,["fill","stroke"]);var oe=In(j),de=oe.get("cancelActivity");F={strokeWidth:1.5,fill:ai(j,l,F.fill),fillOpacity:Q7n,stroke:Yn(j,c,F.stroke)},de||(F.strokeDasharray="6");var pe=q(Z,j,F);return v(Z,j.width,j.height,F4,{...F,fill:"none"}),te&&R(j,Z,F),pe},"bpmn:BusinessRuleTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F),oe=i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),de=E(Z,oe);Gn(de,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1});var pe=i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),me=E(Z,pe);return Gn(me,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:CallActivity":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),G(Z,j,{strokeWidth:5,...F})},"bpmn:ComplexGateway":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=K(Z,j,F),oe=i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:j.width,containerHeight:j.height,position:{mx:.46,my:.26}});return E(Z,oe,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:DataInput":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=i.getRawPath("DATA_ARROW"),oe=Y(Z,j,F);return E(Z,te,{fill:"none",stroke:Yn(j,c,F.stroke),strokeWidth:1}),oe},"bpmn:DataInputAssociation":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),B(Z,j,{...F,markerEnd:h(Z,"association-end",ai(j,l,F.fill),Yn(j,c,F.stroke))})},"bpmn:DataObject":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),Y(Z,j,F)},"bpmn:DataObjectReference":x("bpmn:DataObject"),"bpmn:DataOutput":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=i.getRawPath("DATA_ARROW"),oe=Y(Z,j,F);return E(Z,te,{strokeWidth:1,fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)}),oe},"bpmn:DataOutputAssociation":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),B(Z,j,{...F,markerEnd:h(Z,"association-end",ai(j,l,F.fill),Yn(j,c,F.stroke))})},"bpmn:DataStoreReference":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:0,my:.133}});return E(Z,te,{fill:ai(j,l,F.fill),fillOpacity:Ax,stroke:Yn(j,c,F.stroke),strokeWidth:2})},"bpmn:EndEvent":function(Z,j,F={}){var{renderIcon:te=!0}=F;F=Ti(F,["fill","stroke"]);var oe=q(Z,j,{...F,strokeWidth:4});return te&&R(j,Z,F),oe},"bpmn:EventBasedGateway":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=In(j),oe=K(Z,j,F);v(Z,j.width,j.height,j.height*.2,{fill:ai(j,"none",F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1});var de=te.get("eventGatewayType"),pe=!!te.get("instantiate");function me(){var he=i.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:j.width,containerHeight:j.height,position:{mx:.36,my:.44}});E(Z,he,{fill:"none",stroke:Yn(j,c,F.stroke),strokeWidth:2})}if(de==="Parallel"){var ve=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:j.width,containerHeight:j.height,position:{mx:.474,my:.296}});E(Z,ve,{fill:"none",stroke:Yn(j,c,F.stroke),strokeWidth:1})}else de==="Exclusive"&&(pe||v(Z,j.width,j.height,j.height*.26,{fill:"none",stroke:Yn(j,c,F.stroke),strokeWidth:1}),me());return oe},"bpmn:ExclusiveGateway":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=K(Z,j,F),oe=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:j.width,containerHeight:j.height,position:{mx:.32,my:.3}}),de=Ii(j);return de.get("isMarkerVisible")&&E(Z,oe,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:Gateway":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),K(Z,j,F)},"bpmn:Group":function(Z,j,F={}){return F=Ti(F,["fill","stroke","width","height"]),y(Z,j.width,j.height,H6,{stroke:Yn(j,c,F.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:Kf(j,F),height:Gu(j,F)})},"bpmn:InclusiveGateway":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=K(Z,j,F);return v(Z,j.width,j.height,j.height*.24,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:2.5}),te},"bpmn:IntermediateEvent":function(Z,j,F={}){var{renderIcon:te=!0}=F;F=Ti(F,["fill","stroke"]);var oe=q(Z,j,{...F,strokeWidth:1.5});return v(Z,j.width,j.height,F4,{fill:"none",stroke:Yn(j,c,F.stroke),strokeWidth:1.5}),te&&R(j,Z,F),oe},"bpmn:IntermediateCatchEvent":x("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":x("bpmn:IntermediateEvent"),"bpmn:Lane":function(Z,j,F={}){return F=Ti(F,["fill","stroke","width","height"]),H(Z,j,{...F,fillOpacity:Z7n})},"bpmn:ManualTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F),oe=i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return E(Z,oe,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:.5}),te},"bpmn:MessageFlow":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=In(j),oe=Ii(j),de=ai(j,l,F.fill),pe=Yn(j,c,F.stroke),me=b(Z,j.waypoints,{markerEnd:h(Z,"messageflow-end",de,pe),markerStart:h(Z,"messageflow-start",de,pe),stroke:pe,strokeDasharray:"10, 11",strokeWidth:1.5});if(te.get("messageRef")){var ve=me.getPointAtLength(me.getTotalLength()/2),he=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:ve.x,y:ve.y}}),be={strokeWidth:1};oe.get("messageVisibleKind")==="initiating"?(be.fill=de,be.stroke=pe):(be.fill=pe,be.stroke=de);var we=E(Z,he,be),De=te.get("messageRef"),Ae=De.get("name"),Ee=k(Z,Ae,{align:"center-top",fitBox:!0,style:{fill:pe}}),Re=we.getBBox(),Te=Ee.getBBox(),Oe=ve.x-Te.width/2,Ne=ve.y+Re.height/2+K7n;j6(Ee,Oe,Ne,0)}return me},"bpmn:ParallelGateway":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=K(Z,j,F),oe=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:j.width,containerHeight:j.height,position:{mx:.46,my:.2}});return E(Z,oe,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:Participant":function(Z,j,F={}){F=Ti(F,["fill","stroke","width","height"]);var te=H(Z,j,F),oe=pi(j),de=cl(j),pe=In(j),me=pe.get("name");if(oe){var ve=de?[{x:30,y:0},{x:30,y:Gu(j,F)}]:[{x:0,y:30},{x:Kf(j,F),y:30}];S(Z,ve,{stroke:Yn(j,c,F.stroke),strokeWidth:X7n}),z(Z,me,j,F)}else{var he=TM(j,F);de||(he.height=Kf(j,F),he.width=Gu(j,F));var be=k(Z,me,{box:he,align:"center-middle",style:{fill:xM(j,u,c,F.stroke)}});if(!de){var we=-1*Gu(j,F);j6(be,0,-we,270)}}return pe.get("participantMultiplicity")&&M("ParticipantMultiplicityMarker",Z,j,F),te},"bpmn:ReceiveTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=In(j),oe=Q(Z,j,F),de;return te.get("instantiate")?(v(Z,28,28,20*.22,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1}),de=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):de=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),E(Z,de,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1}),oe},"bpmn:ScriptTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F),oe=i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return E(Z,oe,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:SendTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F),oe=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return E(Z,oe,{fill:Yn(j,c,F.stroke),stroke:ai(j,l,F.fill),strokeWidth:1}),te},"bpmn:SequenceFlow":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=ai(j,l,F.fill),oe=Yn(j,c,F.stroke),de=b(Z,j.waypoints,{markerEnd:h(Z,"sequenceflow-end",te,oe),stroke:oe}),pe=In(j),{source:me}=j;if(me){var ve=In(me);pe.get("conditionExpression")&&Fe(ve,"bpmn:Activity")&&Gn(de,{markerStart:h(Z,"conditional-flow-marker",te,oe)}),ve.get("default")&&(Fe(ve,"bpmn:Gateway")||Fe(ve,"bpmn:Activity"))&&ve.get("default")===pe&&Gn(de,{markerStart:h(Z,"conditional-default-flow-marker",te,oe)})}return de},"bpmn:ServiceTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F);v(Z,10,10,{fill:ai(j,l,F.fill),stroke:"none",transform:"translate(6, 6)"});var oe=i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});E(Z,oe,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1}),v(Z,10,10,{fill:ai(j,l,F.fill),stroke:"none",transform:"translate(11, 10)"});var de=i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return E(Z,de,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:StartEvent":function(Z,j,F={}){var{renderIcon:te=!0}=F;F=Ti(F,["fill","stroke"]);var oe=In(j);oe.get("isInterrupting")||(F={...F,strokeDasharray:"6"});var de=q(Z,j,F);return te&&R(j,Z,F),de},"bpmn:SubProcess":function(Z,j,F={}){return pi(j)?F=Ti(F,["fill","stroke","width","height"]):F=Ti(F,["fill","stroke"]),G(Z,j,F)},"bpmn:Task":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),Q(Z,j,F)},"bpmn:TextAnnotation":function(Z,j,F={}){F=Ti(F,["fill","stroke","width","height"]);var{width:te,height:oe}=TM(j,F),de=y(Z,te,oe,0,0,{fill:"none",stroke:"none"}),pe=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:te,containerHeight:oe,position:{mx:0,my:0}});E(Z,pe,{stroke:Yn(j,c,F.stroke)});var me=In(j),ve=me.get("text")||"";return k(Z,ve,{align:"left-top",box:TM(j,F),padding:7,style:{fill:xM(j,u,c,F.stroke)}}),de},"bpmn:Transaction":function(Z,j,F={}){pi(j)?F=Ti(F,["fill","stroke","width","height"]):F=Ti(F,["fill","stroke"]);var te=G(Z,j,{strokeWidth:1.5,...F}),oe=r.style(["no-fill","no-events"],{stroke:Yn(j,c,F.stroke),strokeWidth:1.5}),de=pi(j);return de||(F={}),y(Z,Kf(j,F),Gu(j,F),H6-F4,F4,oe),te},"bpmn:UserTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F),oe=15,de=12,pe=i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:oe,y:de}});E(Z,pe,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:.5});var me=i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:oe,y:de}});E(Z,me,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:.5});var ve=i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:oe,y:de}});return E(Z,ve,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:.5}),te},label:function(Z,j,F={}){return U(Z,j,F)}};this._drawPath=E,this._renderer=C}Zn(ww,p_);ww.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"];ww.prototype.canRender=function(e){return Fe(e,"bpmn:BaseElement")};ww.prototype.drawShape=function(e,n,r={}){var{type:i}=n,o=this._renderer(i);return o(e,n,r)};ww.prototype.drawConnection=function(e,n,r={}){var{type:i}=n,o=this._renderer(i);return o(e,n,r)};ww.prototype.getShapePath=function(e){return Fe(e,"bpmn:Event")?V7n(e):Fe(e,"bpmn:Activity")?G7n(e,H6):Fe(e,"bpmn:Gateway")?W7n(e):Y7n(e)};function Ti(e,n=[]){return n.reduce((r,i)=>(e[i]&&(r[i]=e[i]),r),{})}var J7n=0,e9n={width:150,height:50};function t9n(e){var n=e.split("-");return{horizontal:n[0]||"center",vertical:n[1]||"top"}}function n9n(e){return Rl(e)?Rt({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function r9n(e,n){n.textContent=e;var r;try{var i,o=e==="";return n.textContent=o?"dummy":e,r=n.getBBox(),i={width:r.width+r.x*2,height:r.height},o&&(i.width=0),i}catch(a){return console.log(a),{width:0,height:0}}}function i9n(e,n,r){for(var i=e.shift(),o=i,a;;){if(a=r9n(o,r),a.width=o?a.width:0,o===" "||o===""||a.width<Math.round(n)||o.length<2)return o9n(e,o,i,a);o=s9n(o,a.width,n)}}function o9n(e,n,r,i){if(n.length<r.length){var o=r.slice(n.length).trim();e.unshift(o)}return{width:i.width,height:i.height,text:n}}var oAe="";function a9n(e,n){var r=e.split(/(\s|-|\u00AD)/g),i,o=[],a=0;if(r.length>1)for(;i=r.shift();)if(i.length+a<n)o.push(i),a+=i.length;else{(i==="-"||i===oAe)&&o.pop();break}var s=o[o.length-1];return s&&s===oAe&&(o[o.length-1]="-"),o.join("")}function s9n(e,n,r){var i=Math.max(e.length*(r/n),1),o=a9n(e,i);return o||(o=e.slice(0,Math.max(Math.round(i-1),1))),o}function l9n(){var e=document.getElementById("helper-svg");return e||(e=pr("svg"),Gn(e,{id:"helper-svg"}),dc(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function Pz(e){this._config=Rt({},{size:e9n,padding:J7n,style:{},align:"center-top"},e||{})}Pz.prototype.createText=function(e,n){return this.layoutText(e,n).element};Pz.prototype.getDimensions=function(e,n){return this.layoutText(e,n).dimensions};Pz.prototype.layoutText=function(e,n){var r=Rt({},this._config.size,n.box),i=Rt({},this._config.style,n.style),o=t9n(n.align||this._config.align),a=n9n(n.padding!==void 0?n.padding:this._config.padding),s=n.fitBox||!1,l=c9n(i),c=e.split(/\u00AD?\r?\n/),u=[],d=r.width-a.left-a.right,f=pr("text");Gn(f,{x:0,y:0}),Gn(f,i);var p=l9n();for(Ar(p,f);c.length;)u.push(i9n(c,d,f));o.vertical==="middle"&&(a.top=a.bottom=0);var h=vd(u,function(S,b,E){return S+(l||b.height)},0)+a.top+a.bottom,g=vd(u,function(S,b,E){return b.width>S?b.width:S},0),v=a.top;o.vertical==="middle"&&(v+=(r.height-h)/2),v-=(l||u[0].height)/4;var y=pr("text");Gn(y,i),ht(u,function(S){var b;switch(v+=l||S.height,o.horizontal){case"left":b=a.left;break;case"right":b=(s?g:d)-a.right-S.width;break;default:b=Math.max(((s?g:d)-S.width)/2+a.left,0)}var E=pr("tspan");Gn(E,{x:b,y:v}),E.textContent=S.text,Ar(y,E)}),Hs(f);var _={width:g,height:h};return{dimensions:_,element:y}};function c9n(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var u9n=12,d9n=1.2,f9n=30;function QJe(e){var n=Rt({fontFamily:"Arial, sans-serif",fontSize:u9n,fontWeight:"normal",lineHeight:d9n},e&&e.defaultStyle||{}),r=parseInt(n.fontSize,10)-1,i=Rt({},n,{fontSize:r},e&&e.externalStyle||{}),o=new Pz({style:n});this.getExternalLabelBounds=function(a,s){var l=o.getDimensions(s,{box:{width:90,height:30},style:i});return{x:Math.round(a.x+a.width/2-l.width/2),y:Math.round(a.y),width:Math.ceil(l.width),height:Math.ceil(l.height)}},this.getTextAnnotationBounds=function(a,s){var l=o.getDimensions(s,{box:a,style:n,align:"left-top",padding:5});return{x:a.x,y:a.y,width:a.width,height:Math.max(f9n,Math.round(l.height))}},this.createText=function(a,s){return o.createText(a,s||{})},this.getDefaultStyle=function(){return n},this.getExternalStyle=function(){return i}}QJe.$inject=["config.textRenderer"];function p9n(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(n){return this.pathMap[n].d},this.getScaledPath=function(n,r){var i=this.pathMap[n],o,a;r.abspos?(o=r.abspos.x,a=r.abspos.y):(o=r.containerWidth*r.position.mx,a=r.containerHeight*r.position.my);var s={};if(r.position){for(var l=r.containerHeight/i.height*r.yScaleFactor,c=r.containerWidth/i.width*r.xScaleFactor,u=0;u<i.heightElements.length;u++)s["y"+u]=i.heightElements[u]*l;for(var d=0;d<i.widthElements.length;d++)s["x"+d]=i.widthElements[d]*c}var f=v9n(i.d,{mx:o,my:a,e:s});return f}}var h9n=/\{([^{}]+)\}/g,g9n=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function m9n(e,n,r){var i=r;return n.replace(g9n,function(o,a,s,l,c){a=a||l,i&&(a in i&&(i=i[a]),typeof i=="function"&&c&&(i=i()))}),i=(i==null||i==r?e:i)+"",i}function v9n(e,n){return String(e).replace(h9n,function(r,i){return m9n(r,i,n)})}const y9n={__init__:["bpmnRenderer"],bpmnRenderer:["type",ww],textRenderer:["type",QJe],pathMap:["type",p9n]};function _9n(e,n){return n=n||{},e.replace(/{([^}]+)}/g,function(r,i){return n[i]||"{"+i+"}"})}const Az={translate:["value",_9n]};function z6(e,n,r){return Rt({id:e.id,type:e.$type,businessObject:e,di:n},r)}function b9n(e,n,r){var i=e.waypoint;return!i||i.length<2?[Mr(n),Mr(r)]:i.map(function(o){return{x:o.x,y:o.y}})}function ZJe(e,n,r){return new Error(`element ${uc(n)} referenced by ${uc(e)}#${r} not yet drawn`)}function g_(e,n,r,i,o){this._eventBus=e,this._canvas=n,this._elementFactory=r,this._elementRegistry=i,this._textRenderer=o}g_.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"];g_.prototype.add=function(e,n,r){var i,o,a;if(Fe(n,"bpmndi:BPMNPlane")){var s=Fe(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(z6(e,n,s)),this._canvas.addRootElement(i)}else if(Fe(n,"bpmndi:BPMNShape")){var l=!pi(e,n),c=E9n(e);o=r&&(r.hidden||r.collapsed);var u=n.bounds;i=this._elementFactory.createShape(z6(e,n,{collapsed:l,hidden:o,x:Math.round(u.x),y:Math.round(u.y),width:Math.round(u.width),height:Math.round(u.height),isFrame:c})),Fe(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),Fe(e,"bpmn:Lane")&&(a=0),Fe(e,"bpmn:DataStoreReference")&&(S9n(r,Mr(u))||(r=this._canvas.findRoot(r))),this._canvas.addShape(i,r,a)}else if(Fe(n,"bpmndi:BPMNEdge")){var d=this._getSource(e),f=this._getTarget(e);o=r&&(r.hidden||r.collapsed),i=this._elementFactory.createConnection(z6(e,n,{hidden:o,source:d,target:f,waypoints:b9n(n,d,f)})),Fe(e,"bpmn:DataAssociation")&&(r=this._canvas.findRoot(r)),this._canvas.addConnection(i,r,a)}else throw new Error(`unknown di ${uc(n)} for element ${uc(e)}`);return CC(e)&&sg(i)&&this.addLabel(e,n,i),this._eventBus.fire("bpmnElement.added",{element:i}),i};g_.prototype._attachBoundary=function(e,n){var r=e.attachedToRef;if(!r)throw new Error(`missing ${uc(e)}#attachedToRef`);var i=this._elementRegistry.get(r.id),o=i&&i.attachers;if(!i)throw ZJe(e,r,"attachedToRef");n.host=i,o||(i.attachers=o=[]),o.indexOf(n)===-1&&o.push(n)};g_.prototype.addLabel=function(e,n,r){var i,o,a;return i=F7n(n,r),o=sg(r),o&&(i=this._textRenderer.getExternalLabelBounds(i,o)),a=this._elementFactory.createLabel(z6(e,n,{id:e.id+"_label",labelTarget:r,type:"label",hidden:r.hidden||!sg(r),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(a,r.parent)};g_.prototype._getConnectedElement=function(e,n){var r,i,o=e.$type;if(i=e[n+"Ref"],n==="source"&&o==="bpmn:DataInputAssociation"&&(i=i&&i[0]),(n==="source"&&o==="bpmn:DataOutputAssociation"||n==="target"&&o==="bpmn:DataInputAssociation")&&(i=e.$parent),r=i&&this._getElement(i),r)return r;throw i?ZJe(e,i,n+"Ref"):new Error(`${uc(e)}#${n} Ref not specified`)};g_.prototype._getSource=function(e){return this._getConnectedElement(e,"source")};g_.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")};g_.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function S9n(e,n){var r=n.x,i=n.y;return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function E9n(e){return Fe(e,"bpmn:Group")}const C9n={__depends__:[Az],bpmnImporter:["type",g_]},w9n={__depends__:[y9n,C9n]};function OL(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}OL.prototype.next=function(){return this._prefix+ ++this._counter};var x9n=new OL("ov"),T9n=500;function Ml(e,n,r,i){this._eventBus=n,this._canvas=r,this._elementRegistry=i,this._ids=x9n,this._overlayDefaults=Rt({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=O9n(r.getContainer()),this._init()}Ml.$inject=["config.overlays","eventBus","canvas","elementRegistry"];Ml.prototype.get=function(e){if(md(e)&&(e={id:e}),md(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var n=this._getOverlayContainer(e.element,!0);return n?e.type?si(n.overlays,qh({type:e.type})):n.overlays.slice():[]}else return e.type?si(this._overlays,qh({type:e.type})):e.id?this._overlays[e.id]:null};Ml.prototype.add=function(e,n,r){if(Rl(n)&&(r=n,n=null),e.id||(e=this._elementRegistry.get(e)),!r.position)throw new Error("must specifiy overlay position");if(!r.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return r=Rt({},this._overlayDefaults,r,{id:i,type:n,element:e,html:r.html}),this._addOverlay(r),i};Ml.prototype.remove=function(e){var n=this.get(e)||[];zr(n)||(n=[n]);var r=this;ht(n,function(i){var o=r._getOverlayContainer(i.element,!0);if(i&&(Fm(i.html),Fm(i.htmlContainer),delete i.htmlContainer,delete i.element,delete r._overlays[i.id]),o){var a=o.overlays.indexOf(i);a!==-1&&o.overlays.splice(a,1)}})};Ml.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"};Ml.prototype.show=function(){Dz(this._overlayRoot)};Ml.prototype.hide=function(){Dz(this._overlayRoot,!1)};Ml.prototype.clear=function(){this._overlays={},this._overlayContainers=[],Cz(this._overlayRoot)};Ml.prototype._updateOverlayContainer=function(e){var n=e.element,r=e.html,i=n.x,o=n.y;if(n.waypoints){var a=sl(n);i=a.x,o=a.y}JJe(r,i,o),fc(e.html,"data-container-id",n.id)};Ml.prototype._updateOverlay=function(e){var n=e.position,r=e.htmlContainer,i=e.element,o=n.left,a=n.top;if(n.right!==void 0){var s;i.waypoints?s=sl(i).width:s=i.width,o=n.right*-1+s}if(n.bottom!==void 0){var l;i.waypoints?l=sl(i).height:l=i.height,a=n.bottom*-1+l}JJe(r,o||0,a||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())};Ml.prototype._createOverlayContainer=function(e){var n=Ko('<div class="djs-overlays" />');dc(n,{position:"absolute"}),this._overlayRoot.appendChild(n);var r={html:n,element:e,overlays:[]};return this._updateOverlayContainer(r),this._overlayContainers.push(r),r};Ml.prototype._updateRoot=function(e){var n=e.scale||1,r="matrix("+[n,0,0,n,-1*e.x*n,-1*e.y*n].join(",")+")";eet(this._overlayRoot,r)};Ml.prototype._getOverlayContainer=function(e,n){var r=ki(this._overlayContainers,function(i){return i.element===e});return!r&&!n?this._createOverlayContainer(e):r};Ml.prototype._addOverlay=function(e){var n=e.id,r=e.element,i=e.html,o,a;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),md(i)&&(i=Ko(i)),a=this._getOverlayContainer(r),o=Ko('<div class="djs-overlay" data-overlay-id="'+n+'">'),dc(o,{position:"absolute"}),o.appendChild(i),e.type&&Ga(o).add("djs-overlay-"+e.type);var s=this._canvas.findRoot(r),l=this._canvas.getRootElement();Dz(o,s===l),e.htmlContainer=o,a.overlays.push(e),a.html.appendChild(o),this._overlays[n]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())};Ml.prototype._updateOverlayVisibilty=function(e,n){var r=e.show,i=this._canvas.findRoot(e.element),o=r&&r.minZoom,a=r&&r.maxZoom,s=e.htmlContainer,l=this._canvas.getRootElement(),c=!0;(i!==l||r&&(bl(o)&&o>n.scale||bl(a)&&a<n.scale))&&(c=!1),Dz(s,c),this._updateOverlayScale(e,n)};Ml.prototype._updateOverlayScale=function(e,n){var r=e.scale,i,o,a=e.htmlContainer,s,l="";r!==!0&&(r===!1?(i=1,o=1):(i=r.min,o=r.max),bl(i)&&n.scale<i&&(s=(1/n.scale||1)*i),bl(o)&&n.scale>o&&(s=(1/n.scale||1)*o)),bl(s)&&(l="scale("+s+","+s+")"),eet(a,l)};Ml.prototype._updateOverlaysVisibilty=function(e){var n=this;ht(this._overlays,function(r){n._updateOverlayVisibilty(r,e)})};Ml.prototype._init=function(){var e=this._eventBus,n=this;function r(i){n._updateRoot(i),n._updateOverlaysVisibilty(i),n.show()}e.on("canvas.viewbox.changing",function(i){n.hide()}),e.on("canvas.viewbox.changed",function(i){r(i.viewbox)}),e.on(["shape.remove","connection.remove"],function(i){var o=i.element,a=n.get({element:o});ht(a,function(c){n.remove(c.id)});var s=n._getOverlayContainer(o);if(s){Fm(s.html);var l=n._overlayContainers.indexOf(s);l!==-1&&n._overlayContainers.splice(l,1)}}),e.on("element.changed",T9n,function(i){var o=i.element,a=n._getOverlayContainer(o,!0);a&&(ht(a.overlays,function(s){n._updateOverlay(s)}),n._updateOverlayContainer(a))}),e.on("element.marker.update",function(i){var o=n._getOverlayContainer(i.element,!0);o&&Ga(o.html)[i.add?"add":"remove"](i.marker)}),e.on("root.set",function(){n._updateOverlaysVisibilty(n._canvas.viewbox())}),e.on("diagram.clear",this.clear,this)};function O9n(e){var n=Ko('<div class="djs-overlay-container" />');return dc(n,{position:"absolute",width:0,height:0}),e.insertBefore(n,e.firstChild),n}function JJe(e,n,r){dc(e,{left:n+"px",top:r+"px"})}function Dz(e,n){e.style.display=n===!1?"none":""}function eet(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(r){e.style[r+"transform"]=n})}const kz={__init__:["overlays"],overlays:["type",Ml]};function tet(e,n,r,i){e.on("element.changed",function(o){var a=o.element;(a.parent||a===n.getRootElement())&&(o.gfx=r.getGraphics(a)),o.gfx&&e.fire(pJe(a)+".changed",o)}),e.on("elements.changed",function(o){var a=o.elements;a.forEach(function(s){e.fire("element.changed",{element:s})}),i.updateContainments(a)}),e.on("shape.changed",function(o){i.update("shape",o.element,o.gfx)}),e.on("connection.changed",function(o){i.update("connection",o.element,o.gfx)})}tet.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const Dhe={__init__:["changeSupport"],changeSupport:["type",tet]};var R9n=1e3;function vn(e){this._eventBus=e}vn.$inject=["eventBus"];function I9n(e,n){return function(r){return e.call(n||null,r.context,r.command,r)}}vn.prototype.on=function(e,n,r,i,o,a){if((zs(n)||Nr(n))&&(a=o,o=i,i=r,r=n,n=null),zs(r)&&(a=o,o=i,i=r,r=R9n),Rl(o)&&(a=o,o=!1),!zs(i))throw new Error("handlerFn must be a function");zr(e)||(e=[e]);var s=this._eventBus;ht(e,function(l){var c=["commandStack",l,n].filter(function(u){return u}).join(".");s.on(c,r,o?I9n(i,a):i,a)})};vn.prototype.canExecute=m_("canExecute");vn.prototype.preExecute=m_("preExecute");vn.prototype.preExecuted=m_("preExecuted");vn.prototype.execute=m_("execute");vn.prototype.executed=m_("executed");vn.prototype.postExecute=m_("postExecute");vn.prototype.postExecuted=m_("postExecuted");vn.prototype.revert=m_("revert");vn.prototype.reverted=m_("reverted");function m_(e){return function(r,i,o,a,s){(zs(r)||Nr(r))&&(s=a,a=o,o=i,i=r,r=null),this.on(r,e,i,o,a,s)}}function khe(e,n){n.invoke(vn,this),this.executed(function(r){var i=r.context;i.rootElement?e.setRootElement(i.rootElement):i.rootElement=e.getRootElement()}),this.revert(function(r){var i=r.context;i.rootElement&&e.setRootElement(i.rootElement)})}Zn(khe,vn);khe.$inject=["canvas","injector"];const N9n={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",khe]};function rD(e){return CSS.escape(e)}var M9n={"&":"&","<":"<",">":">",'"':""","'":"'"};function net(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(n){return M9n[n]})}var ret="_plane";function aAe(e){var n=e.id;return P9n(n)}function Wv(e){var n=e.id;return Fe(e,"bpmn:SubProcess")?iet(n):n}function bE(e){return iet(e)}function V6(e){var n=Ii(e);return Fe(n,"bpmndi:BPMNPlane")}function iet(e){return e+ret}function P9n(e){return e.replace(new RegExp(ret+"$"),"")}var A9n="bjs-breadcrumbs-shown";function oet(e,n,r){var i=Ko('<ul class="bjs-breadcrumbs"></ul>'),o=r.getContainer(),a=Ga(o);o.appendChild(i);var s=[];e.on("element.changed",function(c){var u=c.element,d=In(u),f=ki(s,function(p){return p===d});f&&l()});function l(c){c&&(s=D9n(c));var u=s.flatMap(function(f){var p=r.findRoot(Wv(f))||r.findRoot(f.id);if(!p&&Fe(f,"bpmn:Process")){var h=n.find(function(y){var _=In(y);return _&&_.get("processRef")===f});p=h&&r.findRoot(h.id)}if(!p)return[];var g=net(f.name||f.id),v=Ko('<li><span class="bjs-crumb"><a title="'+g+'">'+g+"</a></span></li>");return v.addEventListener("click",function(){r.setRootElement(p)}),v});i.innerHTML="";var d=u.length>1;a.toggle(A9n,d),u.forEach(function(f){i.appendChild(f)})}e.on("root.set",function(c){l(c.element)})}oet.$inject=["eventBus","elementRegistry","canvas"];function D9n(e){for(var n=In(e),r=[],i=n;i;i=i.$parent)(Fe(i,"bpmn:SubProcess")||Fe(i,"bpmn:Process"))&&r.push(i);return r.reverse()}function aet(e,n){var r=null,i=new k9n;e.on("root.set",function(o){var a=o.element,s=n.viewbox(),l=i.get(a);if(i.set(r,{x:s.x,y:s.y,zoom:s.scale}),r=a,!(!Fe(a,"bpmn:SubProcess")&&!l)){l=l||{x:0,y:0,zoom:1};var c=(s.x-l.x)*s.scale,u=(s.y-l.y)*s.scale;(c!==0||u!==0)&&n.scroll({dx:c,dy:u}),l.zoom!==s.scale&&n.zoom(l.zoom,{x:0,y:0})}}),e.on("diagram.clear",function(){i.clear(),r=null})}aet.$inject=["eventBus","canvas"];function k9n(){this._entries=[],this.set=function(e,n){var r=!1;for(var i in this._entries)if(this._entries[i][0]===e){this._entries[i][1]=n,r=!0;break}r||this._entries.push([e,n])},this.get=function(e){for(var n in this._entries)if(this._entries[n][0]===e)return this._entries[n][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var n=-1;for(var r in this._entries)if(this._entries[r][0]===e){n=r;break}n!==-1&&this._entries.splice(n,1)}}var sAe={x:180,y:160};function xw(e,n){this._eventBus=e,this._moddle=n;var r=this;e.on("import.render.start",1500,function(i,o){r._handleImport(o.definitions)})}xw.prototype._handleImport=function(e){if(e.diagrams){var n=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach(function(i){!i.plane||!i.plane.bpmnElement||(n._processToDiagramMap[i.plane.bpmnElement.id]=i)});var r=e.diagrams.filter(i=>i.plane).flatMap(i=>n._createNewDiagrams(i.plane));r.forEach(function(i){n._movePlaneElementsToOrigin(i.plane)})}};xw.prototype._createNewDiagrams=function(e){var n=this,r=[],i=[];e.get("planeElement").forEach(function(a){var s=a.bpmnElement;if(s){var l=s.$parent;Fe(s,"bpmn:SubProcess")&&!a.isExpanded&&r.push(s),$9n(s,e)&&i.push({diElement:a,parent:l})}});var o=[];return r.forEach(function(a){if(!n._processToDiagramMap[a.id]){var s=n._createDiagram(a);n._processToDiagramMap[a.id]=s,o.push(s)}}),i.forEach(function(a){for(var s=a.diElement,l=a.parent;l&&r.indexOf(l)===-1;)l=l.$parent;if(l){var c=n._processToDiagramMap[l.id];n._moveToDiPlane(s,c.plane)}}),o};xw.prototype._movePlaneElementsToOrigin=function(e){var n=e.get("planeElement"),r=L9n(e),i={x:r.x-sAe.x,y:r.y-sAe.y};n.forEach(function(o){o.waypoint?o.waypoint.forEach(function(a){a.x=a.x-i.x,a.y=a.y-i.y}):o.bounds&&(o.bounds.x=o.bounds.x-i.x,o.bounds.y=o.bounds.y-i.y)})};xw.prototype._moveToDiPlane=function(e,n){var r=set(e),i=r.plane.get("planeElement");i.splice(i.indexOf(e),1),n.get("planeElement").push(e)};xw.prototype._createDiagram=function(e){var n=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),r=this._moddle.create("bpmndi:BPMNDiagram",{plane:n});return n.$parent=r,n.bpmnElement=e,r.$parent=this._definitions,this._definitions.diagrams.push(r),r};xw.$inject=["eventBus","moddle"];function set(e){return Fe(e,"bpmndi:BPMNDiagram")?e:set(e.$parent)}function L9n(e){var n={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(r){if(r.bounds){var i=br(r.bounds);n.top=Math.min(i.top,n.top),n.left=Math.min(i.left,n.left)}}),Oz(n)}function $9n(e,n){var r=e.$parent;return!(!Fe(r,"bpmn:SubProcess")||r===n.bpmnElement||ii(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var B4=250,F9n='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>',B9n="bjs-drilldown-empty";function mS(e,n,r,i,o){vn.call(this,n),this._canvas=e,this._eventBus=n,this._elementRegistry=r,this._overlays=i,this._translate=o;var a=this;this.executed("shape.toggleCollapse",B4,function(s){var l=s.shape;a._canDrillDown(l)?a._addOverlay(l):a._removeOverlay(l)},!0),this.reverted("shape.toggleCollapse",B4,function(s){var l=s.shape;a._canDrillDown(l)?a._addOverlay(l):a._removeOverlay(l)},!0),this.executed(["shape.create","shape.move","shape.delete"],B4,function(s){var l=s.oldParent,c=s.newParent||s.parent,u=s.shape;a._canDrillDown(u)&&a._addOverlay(u),a._updateDrilldownOverlay(l),a._updateDrilldownOverlay(c),a._updateDrilldownOverlay(u)},!0),this.reverted(["shape.create","shape.move","shape.delete"],B4,function(s){var l=s.oldParent,c=s.newParent||s.parent,u=s.shape;a._canDrillDown(u)&&a._addOverlay(u),a._updateDrilldownOverlay(l),a._updateDrilldownOverlay(c),a._updateDrilldownOverlay(u)},!0),n.on("import.render.complete",function(){r.filter(function(s){return a._canDrillDown(s)}).map(function(s){a._addOverlay(s)})})}Zn(mS,vn);mS.prototype._updateDrilldownOverlay=function(e){var n=this._canvas;if(e){var r=n.findRoot(e);r&&this._updateOverlayVisibility(r)}};mS.prototype._canDrillDown=function(e){var n=this._canvas;return Fe(e,"bpmn:SubProcess")&&n.findRoot(Wv(e))};mS.prototype._updateOverlayVisibility=function(e){var n=this._overlays,r=In(e),i=n.get({element:r.id,type:"drilldown"})[0];if(i){var o=r&&r.get("flowElements")&&r.get("flowElements").length;Ga(i.html).toggle(B9n,!o)}};mS.prototype._addOverlay=function(e){var n=this._canvas,r=this._overlays,i=In(e),o=r.get({element:e,type:"drilldown"});o.length&&this._removeOverlay(e);var a=Ko('<button type="button" class="bjs-drilldown">'+F9n+"</button>"),s=i.get("name")||i.get("id"),l=this._translate("Open {element}",{element:s});a.setAttribute("title",l),a.addEventListener("click",function(){n.setRootElement(n.findRoot(Wv(e)))}),r.add(e,"drilldown",{position:{bottom:-7,right:-8},html:a}),this._updateOverlayVisibility(e)};mS.prototype._removeOverlay=function(e){var n=this._overlays;n.remove({element:e,type:"drilldown"})};mS.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const j9n={__depends__:[kz,Dhe,N9n],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",oet],drilldownCentering:["type",aet],drilldownOverlayBehavior:["type",mS],subprocessCompatibility:["type",xw]};function lAe(e){!e||typeof e.stopPropagation!="function"||e.stopPropagation()}function YI(e){return e.originalEvent||e.srcEvent}function sJ(e){lAe(e),lAe(YI(e))}function wC(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function cet(){return/mac/i.test(navigator.platform)}function uet(e,n){return(YI(e)||e).button===n}function vS(e){return uet(e,0)}function U9n(e){return uet(e,1)}function iD(e){var n=YI(e)||e;return vS(e)?cet()?n.metaKey:n.ctrlKey:!1}function JB(e){var n=YI(e)||e;return vS(e)&&n.shiftKey}function H9n(e){return!0}function j4(e){return vS(e)||U9n(e)}var cAe=500;function det(e,n,r){var i=this;function o(T,R,O){if(!l(T,R)){var M,P,k;O?P=n.getGraphics(O):(M=R.delegateTarget||R.target,M&&(P=M,O=n.get(P))),!(!P||!O)&&(k=e.fire(T,{element:O,gfx:P,originalEvent:R}),k===!1&&(R.stopPropagation(),R.preventDefault()))}}var a={};function s(T){return a[T]}function l(T,R){var O=u[T]||vS;return!O(R)}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},u={"element.contextmenu":H9n,"element.mousedown":j4,"element.mouseup":j4,"element.click":j4,"element.dblclick":j4};function d(T,R,O){var M=c[T];if(!M)throw new Error("unmapped DOM event name <"+T+">");return o(M,R,O)}var f="svg, .djs-element";function p(T,R,O,M){var P=a[O]=function(k){o(O,k)};M&&(u[O]=M),P.$delegate=sd.bind(T,f,R,P)}function h(T,R,O){var M=s(O);M&&sd.unbind(T,R,M.$delegate)}function g(T){ht(c,function(R,O){p(T,O,R)})}function v(T){ht(c,function(R,O){h(T,O,R)})}e.on("canvas.destroy",function(T){v(T.svg)}),e.on("canvas.init",function(T){g(T.svg)}),e.on(["shape.added","connection.added"],function(T){var R=T.element,O=T.gfx;e.fire("interactionEvents.createHit",{element:R,gfx:O})}),e.on(["shape.changed","connection.changed"],cAe,function(T){var R=T.element,O=T.gfx;e.fire("interactionEvents.updateHit",{element:R,gfx:O})}),e.on("interactionEvents.createHit",cAe,function(T){var R=T.element,O=T.gfx;i.createDefaultHit(R,O)}),e.on("interactionEvents.updateHit",function(T){var R=T.element,O=T.gfx;i.updateDefaultHit(R,O)});var y=w("djs-hit djs-hit-stroke"),_=w("djs-hit djs-hit-click-stroke"),S=w("djs-hit djs-hit-all"),b=w("djs-hit djs-hit-no-move"),E={all:S,"click-stroke":_,stroke:y,"no-move":b};function w(T,R){return R=Rt({stroke:"white",strokeWidth:15},R||{}),r.cls(T,["no-fill","no-border"],R)}function C(T,R){var O=E[R];if(!O)throw new Error("invalid hit type <"+R+">");return Gn(T,O),T}function x(T,R){Ar(T,R)}this.removeHits=function(T){var R=mae(".djs-hit",T);ht(R,Hs)},this.createDefaultHit=function(T,R){var O=T.waypoints,M=T.isFrame,P;return O?this.createWaypointsHit(R,O):(P=M?"stroke":"all",this.createBoxHit(R,P,{width:T.width,height:T.height}))},this.createWaypointsHit=function(T,R){var O=xz(R);return C(O,"stroke"),x(T,O),O},this.createBoxHit=function(T,R,O){O=Rt({x:0,y:0},O);var M=pr("rect");return C(M,R),Gn(M,O),x(T,M),M},this.updateDefaultHit=function(T,R){var O=Co(".djs-hit",R);if(O)return T.waypoints?dJe(O,T.waypoints):Gn(O,{width:T.width,height:T.height}),O},this.fire=o,this.triggerMouseEvent=d,this.mouseHandler=s,this.registerEvent=p,this.unregisterEvent=h}det.$inject=["eventBus","elementRegistry","styles"];const Lz={__init__:["interactionEvents"],interactionEvents:["type",det]};function qI(e,n){this._eventBus=e,this._canvas=n,this._selectedElements=[];var r=this;e.on(["shape.remove","connection.remove"],function(i){var o=i.element;r.deselect(o)}),e.on(["diagram.clear","root.set"],function(i){r.select(null)})}qI.$inject=["eventBus","canvas"];qI.prototype.deselect=function(e){var n=this._selectedElements,r=n.indexOf(e);if(r!==-1){var i=n.slice();n.splice(r,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})}};qI.prototype.get=function(){return this._selectedElements};qI.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1};qI.prototype.select=function(e,n){var r=this._selectedElements,i=r.slice();zr(e)||(e=e?[e]:[]);var o=this._canvas,a=o.getRootElement();e=e.filter(function(s){var l=o.findRoot(s);return a===l}),n?ht(e,function(s){r.indexOf(s)===-1&&r.push(s)}):this._selectedElements=r=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:r})};var uAe="hover",dAe="selected";function fet(e,n){this._canvas=e;function r(o,a){e.addMarker(o,a)}function i(o,a){e.removeMarker(o,a)}n.on("element.hover",function(o){r(o.element,uAe)}),n.on("element.out",function(o){i(o.element,uAe)}),n.on("selection.changed",function(o){function a(u){i(u,dAe)}function s(u){r(u,dAe)}var l=o.oldSelection,c=o.newSelection;ht(l,function(u){c.indexOf(u)===-1&&a(u)}),ht(c,function(u){l.indexOf(u)===-1&&s(u)})})}fet.$inject=["canvas","eventBus"];function pet(e,n,r,i){e.on("create.end",500,function(o){var a=o.context,s=a.canExecute,l=a.elements,c=a.hints||{},u=c.autoSelect;if(s){if(u===!1)return;zr(u)?n.select(u):n.select(l.filter(z9n))}}),e.on("connect.end",500,function(o){var a=o.context,s=a.connection;s&&n.select(s)}),e.on("shape.move.end",500,function(o){var a=o.previousSelection||[],s=i.get(o.context.shape.id),l=ki(a,function(c){return s.id===c.id});l||n.select(s)}),e.on("element.click",function(o){if(vS(o)){var a=o.element;a===r.getRootElement()&&(a=null);var s=n.isSelected(a),l=n.get().length>1,c=JB(o);if(s&&l)return c?n.deselect(a):n.select(a);s?n.deselect(a):n.select(a,c)}})}pet.$inject=["eventBus","selection","canvas","elementRegistry"];function z9n(e){return!e.hidden}const xg={__init__:["selectionVisuals","selectionBehavior"],__depends__:[Lz],selection:["type",qI],selectionVisuals:["type",fet],selectionBehavior:["type",pet]};function yS(e){Ia.call(this,e)}Zn(yS,Ia);yS.prototype._modules=[w9n,j9n,kz,xg,Az];yS.prototype._moddleExtensions={};var V9n=["c","C"],G9n=["v","V"],W9n=["y","Y"],het=["z","Z"];function Y9n(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function Sp(e){return e.altKey?!1:e.ctrlKey||e.metaKey}function _l(e,n){return e=zr(e)?e:[e],e.indexOf(n.key)!==-1||e.indexOf(n.code)!==-1}function Lhe(e){return e.shiftKey}function q9n(e){return Sp(e)&&_l(V9n,e)}function K9n(e){return Sp(e)&&_l(G9n,e)}function X9n(e){return Sp(e)&&!Lhe(e)&&_l(het,e)}function Q9n(e){return Sp(e)&&(_l(W9n,e)||_l(het,e)&&Lhe(e))}var $z="keyboard.keydown",Z9n="keyboard.keyup",J9n=1e3,get="Keyboard binding is now implicit; explicit binding to an element got removed. For more information, see https://github.com/bpmn-io/diagram-js/issues/661";function Qc(e,n){var r=this;this._config=e=e||{},this._eventBus=n,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),n.on("diagram.destroy",function(){r._fire("destroy"),r.unbind()}),e.bindTo&&console.error("unsupported configuration <keyboard.bindTo>",new Error(get));var i=e&&e.bind!==!1;n.on("canvas.init",function(o){r._target=o.svg,i&&r.bind(),r._fire("init")})}Qc.$inject=["config.keyboard","eventBus"];Qc.prototype._keydownHandler=function(e){this._keyHandler(e,$z)};Qc.prototype._keyupHandler=function(e){this._keyHandler(e,Z9n)};Qc.prototype._keyHandler=function(e,n){var r;if(!this._isEventIgnored(e)){var i={keyEvent:e};r=this._eventBus.fire(n||$z,i),r&&e.preventDefault()}};Qc.prototype._isEventIgnored=function(e){return!1};Qc.prototype.bind=function(e){e&&console.error("unsupported argument <node>",new Error(get)),this.unbind(),e=this._node=this._target,Ur.bind(e,"keydown",this._keydownHandler),Ur.bind(e,"keyup",this._keyupHandler),this._fire("bind")};Qc.prototype.getBinding=function(){return this._node};Qc.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),Ur.unbind(e,"keydown",this._keydownHandler),Ur.unbind(e,"keyup",this._keyupHandler)),this._node=null};Qc.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})};Qc.prototype.addListener=function(e,n,r){zs(e)&&(r=n,n=e,e=J9n),this._eventBus.on(r||$z,e,n)};Qc.prototype.removeListener=function(e,n){this._eventBus.off(n||$z,e)};Qc.prototype.hasModifier=Y9n;Qc.prototype.isCmd=Sp;Qc.prototype.isShift=Lhe;Qc.prototype.isKey=_l;var eUn=500;function KI(e,n){var r=this;e.on("editorActions.init",eUn,function(i){var o=i.editorActions;r.registerBindings(n,o)})}KI.$inject=["eventBus","keyboard"];KI.prototype.registerBindings=function(e,n){function r(i,o){n.isRegistered(i)&&e.addListener(o)}r("undo",function(i){var o=i.keyEvent;if(X9n(o))return n.trigger("undo"),!0}),r("redo",function(i){var o=i.keyEvent;if(Q9n(o))return n.trigger("redo"),!0}),r("copy",function(i){var o=i.keyEvent;if(q9n(o))return n.trigger("copy"),!0}),r("paste",function(i){var o=i.keyEvent;if(K9n(o))return n.trigger("paste"),!0}),r("stepZoom",function(i){var o=i.keyEvent;if(_l(["+","Add","="],o)&&Sp(o))return n.trigger("stepZoom",{value:1}),!0}),r("stepZoom",function(i){var o=i.keyEvent;if(_l(["-","Subtract"],o)&&Sp(o))return n.trigger("stepZoom",{value:-1}),!0}),r("zoom",function(i){var o=i.keyEvent;if(_l("0",o)&&Sp(o))return n.trigger("zoom",{value:1}),!0}),r("removeSelection",function(i){var o=i.keyEvent;if(_l(["Backspace","Delete","Del"],o))return n.trigger("removeSelection"),!0})};const $he={__init__:["keyboard","keyboardBindings"],keyboard:["type",Qc],keyboardBindings:["type",KI]};var tUn={moveSpeed:50,moveSpeedAccelerated:200};function met(e,n,r){var i=this;this._config=Rt({},tUn,e||{}),n.addListener(o);function o(a){var s=a.keyEvent,l=i._config;if(n.isCmd(s)&&n.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],s)){var c=n.isShift(s)?l.moveSpeedAccelerated:l.moveSpeed,u;switch(s.key){case"ArrowLeft":case"Left":u="left";break;case"ArrowUp":case"Up":u="up";break;case"ArrowRight":case"Right":u="right";break;case"ArrowDown":case"Down":u="down";break}return i.moveCanvas({speed:c,direction:u}),!0}}this.moveCanvas=function(a){var s=0,l=0,c=a.speed,u=c/Math.min(Math.sqrt(r.viewbox().scale),1);switch(a.direction){case"left":s=u;break;case"up":l=u;break;case"right":s=-u;break;case"down":l=-u;break}r.scroll({dx:s,dy:l})}}met.$inject=["config.keyboardMove","keyboard","canvas"];const vet={__depends__:[$he],__init__:["keyboardMove"],keyboardMove:["type",met]};var nUn=/^djs-cursor-.*$/;function Fz(e){var n=Ga(document.body);n.removeMatching(nUn),e&&n.add("djs-cursor-"+e)}function yet(){Fz(null)}var rUn=5e3;function _et(e,n){n=n||"element.click";function r(){return!1}return e.once(n,rUn,r),function(){e.off(n,r)}}function mP(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function Kh(e,n){return{x:e.x-n.x,y:e.y-n.y}}var iUn=15;function bet(e,n){var r;function i(l){return s(l.originalEvent)}e.on("canvas.focus.changed",function(l){l.focused?e.on("element.mousedown",500,i):e.off("element.mousedown",i)});function o(l){var c=r.start,u=r.button,d=wC(l),f=Kh(d,c);if(!r.dragging&&oUn(f)>iUn&&(r.dragging=!0,u===0&&_et(e),Fz("grab")),r.dragging){var p=r.last||r.start;f=Kh(d,p),n.scroll({dx:f.x,dy:f.y}),r.last=d}l.preventDefault()}function a(l){Ur.unbind(document,"mousemove",o),Ur.unbind(document,"mouseup",a),r=null,yet()}function s(l){if(!zI(l.target,".djs-draggable")){var c=l.button;if(!(c>=2||l.ctrlKey||l.shiftKey||l.altKey))return r={button:c,start:wC(l)},Ur.bind(document,"mousemove",o),Ur.bind(document,"mouseup",a),!0}}this.isActive=function(){return!!r}}bet.$inject=["eventBus","canvas"];function oUn(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Eet={__init__:["moveCanvas"],moveCanvas:["type",bet]};function Oae(e){return Math.log(e)/Math.log(10)}function Cet(e,n){var r=Oae(e.min),i=Oae(e.max),o=Math.abs(r)+Math.abs(i);return o/n}function aUn(e,n){return Math.max(e.min,Math.min(e.max,n))}var sUn=Math.sign||function(e){return e>=0?1:-1},Fhe={min:.2,max:4},wet=10,lUn=.1,cUn=.75;function av(e,n,r){e=e||{},this._enabled=!1,this._canvas=r,this._container=r._container,this._handleWheel=Su(this._handleWheel,this),this._totalDelta=0,this._scale=e.scale||cUn;var i=this;n.on("canvas.focus.changed",function(o){i._init(o.focused&&e.enabled!==!1)})}av.$inject=["config.zoomScroll","eventBus","canvas"];av.prototype.scroll=function(n){this._canvas.scroll(n)};av.prototype.reset=function(){this._canvas.zoom("fit-viewport")};av.prototype.zoom=function(n,r){var i=Cet(Fhe,wet*2);this._totalDelta+=n,Math.abs(this._totalDelta)>lUn&&(this._zoom(n,r,i),this._totalDelta=0)};av.prototype._handleWheel=function(n){if(this._canvas.isFocused()){var r=this._container;n.preventDefault();var i=n.ctrlKey||cet()&&n.metaKey,o=n.shiftKey,a=-1*this._scale,s;if(i?a*=n.deltaMode===0?.02:.32:a*=n.deltaMode===0?1:16,i){var l=r.getBoundingClientRect(),c={x:n.clientX-l.left,y:n.clientY-l.top};s=Math.sqrt(Math.pow(n.deltaY,2)+Math.pow(n.deltaX,2))*sUn(n.deltaY)*a,this.zoom(s,c)}else o?s={dx:a*n.deltaY,dy:0}:s={dx:a*n.deltaX,dy:a*n.deltaY},this.scroll(s)}};av.prototype.stepZoom=function(n,r){var i=Cet(Fhe,wet);this._zoom(n,r,i)};av.prototype._zoom=function(e,n,r){var i=this._canvas,o=e>0?1:-1,a=Oae(i.zoom()),s=Math.round(a/r)*r;s+=r*o;var l=Math.pow(10,s);i.zoom(aUn(Fhe,l),n)};av.prototype.toggle=function(n){var r=this._container,i=this._handleWheel,o=this._enabled;return typeof n>"u"&&(n=!o),o!==n&&Ur[n?"bind":"unbind"](r,"wheel",i,!1),this._enabled=n,n};av.prototype._init=function(e){this.toggle(e)};const xet={__init__:["zoomScroll"],zoomScroll:["type",av]};function oD(e){yS.call(this,e)}Zn(oD,yS);oD.prototype._navigationModules=[vet,Eet,xet];oD.prototype._modules=[].concat(yS.prototype._modules,oD.prototype._navigationModules);function lJ(e){return e&&e[e.length-1]}function fAe(e){return e.y}function pAe(e){return e.x}var uUn={left:pAe,center:pAe,right:function(e){return e.x+e.width},top:fAe,middle:fAe,bottom:function(e){return e.y+e.height}};function XI(e,n){this._modeling=e,this._rules=n}XI.$inject=["modeling","rules"];XI.prototype._getOrientationDetails=function(e){var n=["top","bottom","middle"],r="x",i="width";return n.indexOf(e)!==-1&&(r="y",i="height"),{axis:r,dimension:i}};XI.prototype._isType=function(e,n){return n.indexOf(e)!==-1};XI.prototype._alignmentPosition=function(e,n){var r=this._getOrientationDetails(e),i=r.axis,o=r.dimension,a={},s={},l=!1,c,u,d;function f(p,h){return Math.round((p[i]+h[i]+h[o])/2)}if(this._isType(e,["left","top"]))a[e]=n[0][i];else if(this._isType(e,["right","bottom"]))d=lJ(n),a[e]=d[i]+d[o];else if(this._isType(e,["center","middle"])){if(ht(n,function(p){var h=p[i]+Math.round(p[o]/2);s[h]?s[h].elements.push(p):s[h]={elements:[p],center:h}}),c=$m(s,function(p){return p.elements.length>1&&(l=!0),p.elements.length}),l)return a[e]=lJ(c).center,a;u=n[0],n=$m(n,function(p){return p[i]+p[o]}),d=lJ(n),a[e]=f(u,d)}return a};XI.prototype.trigger=function(e,n){var r=this._modeling,i,o=si(e,function(c){return!(c.waypoints||c.host||c.labelTarget)});if(i=this._rules.allowed("elements.align",{elements:o}),zr(i)&&(o=i),!(o.length<2||!i)){var a=uUn[n],s=$m(o,a),l=this._alignmentPosition(n,s);r.alignElements(s,l)}};const dUn={__init__:["alignElements"],alignElements:["type",XI]},fUn=new OL;function QI(e){this._scheduled={},e.on("diagram.destroy",()=>{Object.keys(this._scheduled).forEach(n=>{this.cancel(n)})})}QI.$inject=["eventBus"];QI.prototype.schedule=function(e,n=fUn.next()){this.cancel(n);const r=this._schedule(e,n);return this._scheduled[n]=r,r.promise};QI.prototype._schedule=function(e,n){const r=pUn();return{executionId:setTimeout(()=>{try{this._scheduled[n]=null;try{r.resolve(e())}catch(o){r.reject(o)}}catch(o){console.error("Scheduler#_schedule execution failed",o)}}),promise:r.promise}};QI.prototype.cancel=function(e){const n=this._scheduled[e];n&&(this._cancel(n),this._scheduled[e]=null)};QI.prototype._cancel=function(e){clearTimeout(e.executionId)};function pUn(){const e={};return e.promise=new Promise((n,r)=>{e.resolve=n,e.reject=r}),e}const hUn={scheduler:["type",QI]};var gUn="djs-element-hidden",U4=".entry",mUn=1e3,hAe=8,vUn=300;function Rs(e,n,r,i){this._canvas=e,this._elementRegistry=n,this._eventBus=r,this._scheduler=i,this._current=null,this._init()}Rs.$inject=["canvas","elementRegistry","eventBus","scheduler"];Rs.prototype._init=function(){var e=this;this._eventBus.on("selection.changed",function(n){var r=n.newSelection,i=r.length?r.length===1?r[0]:r:null;i?e.open(i,!0):e.close()}),this._eventBus.on("elements.changed",function(n){var r=n.elements,i=e._current;if(i){var o=i.target,a=zr(o)?o:[o],s=a.filter(function(c){return r.includes(c)});if(s.length){e.close();var l=a.filter(function(c){return e._elementRegistry.get(c.id)});l.length&&e._updateAndOpen(l.length>1?l:l[0])}}}),this._eventBus.on("canvas.viewbox.changed",function(){e._updatePosition()}),this._eventBus.on("element.marker.update",function(n){if(e.isOpen()){var r=n.element,i=e._current,o=zr(i.target)?i.target:[i.target];o.includes(r)&&e._updateVisibility()}}),this._container=this._createContainer()};Rs.prototype._createContainer=function(){var e=Ko('<div class="djs-context-pad-parent"></div>');return this._canvas.getContainer().appendChild(e),e};Rs.prototype.registerProvider=function(e,n){n||(n=e,e=mUn),this._eventBus.on("contextPad.getProviders",e,function(r){r.providers.push(n)})};Rs.prototype.getEntries=function(e){var n=this._getProviders(),r=zr(e)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return ht(n,function(o){if(zs(o[r])){var a=o[r](e);zs(a)?i=a(i):ht(a,function(s,l){i[l]=s})}}),i};Rs.prototype.trigger=function(e,n,r){var i=this,o,a,s=n.delegateTarget||n.target;if(!s)return n.preventDefault();if(o=fc(s,"data-action"),a=n.originalEvent||n,e==="mouseover"){this._timeout=setTimeout(function(){i._mouseout=i.triggerEntry(o,"hover",a,r)},vUn);return}else if(e==="mouseout"){clearTimeout(this._timeout),this._mouseout&&(this._mouseout(),this._mouseout=null);return}return this.triggerEntry(o,e,a,r)};Rs.prototype.triggerEntry=function(e,n,r,i){if(this.isShown()){var o=this._current.target,a=this._current.entries,s=a[e];if(s){var l=s.action;if(this._eventBus.fire("contextPad.trigger",{entry:s,event:r})!==!1){if(zs(l)){if(n==="click")return l(r,o,i)}else if(l[n])return l[n](r,o,i);r.preventDefault()}}}};Rs.prototype.open=function(e,n){!n&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))};Rs.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers};Rs.prototype._updateAndOpen=function(e){var n=this.getEntries(e),r=this._createHtml(e),i;ht(n,function(o,a){var s=o.group||"default",l=Ko(o.html||'<div class="entry" draggable="true"></div>'),c;fc(l,"data-action",a),c=Co("[data-group="+rD(s)+"]",r),c||(c=Ko('<div class="group"></div>'),fc(c,"data-group",s),r.appendChild(c)),c.appendChild(l),o.className&&yUn(l,o.className),o.title&&fc(l,"title",o.title),o.imageUrl&&(i=Ko("<img>"),fc(i,"src",o.imageUrl),i.style.width="100%",i.style.height="100%",l.appendChild(i))}),Ga(r).add("open"),this._current={entries:n,html:r,target:e},this._updatePosition(),this._updateVisibility(),this._eventBus.fire("contextPad.open",{current:this._current})};Rs.prototype._createHtml=function(e){var n=this,r=Ko('<div class="djs-context-pad"></div>');return sd.bind(r,U4,"click",function(i){n.trigger("click",i)}),sd.bind(r,U4,"dragstart",function(i){n.trigger("dragstart",i)}),sd.bind(r,U4,"mouseover",function(i){n.trigger("mouseover",i)}),sd.bind(r,U4,"mouseout",function(i){n.trigger("mouseout",i)}),Ur.bind(r,"mousedown",function(i){i.stopPropagation()}),this._container.appendChild(r),this._eventBus.fire("contextPad.create",{target:e,pad:r}),r};Rs.prototype.getPad=function(e){console.warn(new Error("ContextPad#getPad is deprecated and will be removed in future library versions, cf. https://github.com/bpmn-io/diagram-js/pull/888"));let n;return this.isOpen()&&bUn(this._current.target,e)?n=this._current.html:n=this._createHtml(e),{html:n}};Rs.prototype.close=function(){this.isOpen()&&(clearTimeout(this._timeout),this._container.innerHTML="",this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)};Rs.prototype.isOpen=function(e){var n=this._current;if(!n)return!1;if(!e)return!0;var r=n.target;return zr(e)!==zr(r)?!1:zr(e)?e.length===r.length&&bw(e,function(i){return r.includes(i)}):r===e};Rs.prototype.isShown=function(){return this.isOpen()&&Ga(this._current.html).has("open")};Rs.prototype.show=function(){this.isOpen()&&(Ga(this._current.html).add("open"),this._updatePosition(),this._eventBus.fire("contextPad.show",{current:this._current}))};Rs.prototype.hide=function(){this.isOpen()&&(Ga(this._current.html).remove("open"),this._eventBus.fire("contextPad.hide",{current:this._current}))};Rs.prototype._getPosition=function(e){if(!zr(e)&&wo(e)){var n=this._canvas.viewbox(),r=_Un(e),i=r.x*n.scale-n.x*n.scale,o=r.y*n.scale-n.y*n.scale;return{left:i+hAe*this._canvas.zoom(),top:o}}var a=this._canvas.getContainer(),s=a.getBoundingClientRect(),l=this._getTargetBounds(e);return{left:l.right-s.left+hAe*this._canvas.zoom(),top:l.top-s.top}};Rs.prototype._updatePosition=function(){const e=()=>{if(this.isOpen()){var n=this._current.html,r=this._getPosition(this._current.target);"x"in r&&"y"in r?(n.style.left=r.x+"px",n.style.top=r.y+"px"):["top","right","bottom","left"].forEach(function(i){i in r&&(n.style[i]=r[i]+"px")})}};this._scheduler.schedule(e,"ContextPad#_updatePosition")};Rs.prototype._updateVisibility=function(){const e=()=>{if(this.isOpen()){var n=this,r=this._current.target,i=zr(r)?r:[r],o=i.some(function(a){return n._canvas.hasMarker(a,gUn)});o?n.hide():n.show()}};this._scheduler.schedule(e,"ContextPad#_updateVisibility")};Rs.prototype._getTargetBounds=function(e){var n=this,r=zr(e)?e:[e],i=r.map(function(o){return n._canvas.getGraphics(o)});return i.reduce(function(o,a){const s=a.getBoundingClientRect();return o.top=Math.min(o.top,s.top),o.right=Math.max(o.right,s.right),o.bottom=Math.max(o.bottom,s.bottom),o.left=Math.min(o.left,s.left),o.x=o.left,o.y=o.top,o.width=o.right-o.left,o.height=o.bottom-o.top,o},{top:1/0,right:-1/0,bottom:-1/0,left:1/0})};function yUn(e,n){var r=Ga(e);n=zr(n)?n:n.split(/\s+/g),n.forEach(function(i){r.add(i)})}function _Un(e){return e.waypoints[e.waypoints.length-1]}function bUn(e,n){return e=zr(e)?e:[e],n=zr(n)?n:[n],e.length===n.length&&bw(e,function(r){return n.includes(r)})}const Tet={__depends__:[Lz,hUn,kz],contextPad:["type",Rs]};var Bz,wa,Oet,VE,gAe,Ret,Rae,Bhe,Iae,Nae,aD={},Iet=[],SUn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,jhe=Array.isArray;function Yb(e,n){for(var r in n)e[r]=n[r];return e}function Net(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Met(e,n,r){var i,o,a,s={};for(a in n)a=="key"?i=n[a]:a=="ref"?o=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?Bz.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)s[a]===void 0&&(s[a]=e.defaultProps[a]);return G6(e,s,i,o,null)}function G6(e,n,r,i,o){var a={type:e,props:n,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Oet,__i:-1,__u:0};return o==null&&wa.vnode!=null&&wa.vnode(a),a}function RL(e){return e.children}function W6(e,n){this.props=e,this.context=n}function cR(e,n){if(n==null)return e.__?cR(e.__,e.__i+1):null;for(var r;n<e.__k.length;n++)if((r=e.__k[n])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?cR(e):null}function Pet(e){var n,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((r=e.__k[n])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Pet(e)}}function mAe(e){(!e.__d&&(e.__d=!0)&&VE.push(e)&&!ej.__r++||gAe!==wa.debounceRendering)&&((gAe=wa.debounceRendering)||Ret)(ej)}function ej(){var e,n,r,i,o,a,s,l;for(VE.sort(Rae);e=VE.shift();)e.__d&&(n=VE.length,i=void 0,a=(o=(r=e).__v).__e,s=[],l=[],r.__P&&((i=Yb({},o)).__v=o.__v+1,wa.vnode&&wa.vnode(i),Uhe(r.__P,i,o,r.__n,r.__P.namespaceURI,32&o.__u?[a]:null,s,a??cR(o),!!(32&o.__u),l),i.__v=o.__v,i.__.__k[i.__i]=i,ket(s,i,l),i.__e!=a&&Pet(i)),VE.length>n&&VE.sort(Rae));ej.__r=0}function Aet(e,n,r,i,o,a,s,l,c,u,d){var f,p,h,g,v,y=i&&i.__k||Iet,_=n.length;for(r.__d=c,EUn(r,n,y),c=r.__d,f=0;f<_;f++)(h=r.__k[f])!=null&&(p=h.__i===-1?aD:y[h.__i]||aD,h.__i=f,Uhe(e,h,p,o,a,s,l,c,u,d),g=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Hhe(p.ref,null,h),d.push(h.ref,h.__c||g,h)),v==null&&g!=null&&(v=g),65536&h.__u||p.__k===h.__k?c=Det(h,c,e):typeof h.type=="function"&&h.__d!==void 0?c=h.__d:g&&(c=g.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=c,r.__e=v}function EUn(e,n,r){var i,o,a,s,l,c=n.length,u=r.length,d=u,f=0;for(e.__k=[],i=0;i<c;i++)(o=n[i])!=null&&typeof o!="boolean"&&typeof o!="function"?(s=i+f,(o=e.__k[i]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?G6(null,o,null,null,null):jhe(o)?G6(RL,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?G6(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,a=null,(l=o.__i=CUn(o,r,s,d))!==-1&&(d--,(a=r[l])&&(a.__u|=131072)),a==null||a.__v===null?(l==-1&&f--,typeof o.type!="function"&&(o.__u|=65536)):l!==s&&(l==s-1?f--:l==s+1?f++:(l>s?f--:f++,o.__u|=65536))):o=e.__k[i]=null;if(d)for(i=0;i<u;i++)(a=r[i])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=cR(a)),Let(a,a))}function Det(e,n,r){var i,o;if(typeof e.type=="function"){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,n=Det(i[o],n,r));return n}e.__e!=n&&(n&&e.type&&!r.contains(n)&&(n=cR(e)),r.insertBefore(e.__e,n||null),n=e.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType===8);return n}function CUn(e,n,r,i){var o=e.key,a=e.type,s=r-1,l=r+1,c=n[r];if(c===null||c&&o==c.key&&a===c.type&&!(131072&c.__u))return r;if((typeof a!="function"||a===RL||o)&&i>(c!=null&&!(131072&c.__u)?1:0))for(;s>=0||l<n.length;){if(s>=0){if((c=n[s])&&!(131072&c.__u)&&o==c.key&&a===c.type)return s;s--}if(l<n.length){if((c=n[l])&&!(131072&c.__u)&&o==c.key&&a===c.type)return l;l++}}return-1}function vAe(e,n,r){n[0]==="-"?e.setProperty(n,r??""):e[n]=r==null?"":typeof r!="number"||SUn.test(n)?r:r+"px"}function H4(e,n,r,i,o){var a;e:if(n==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(n in i)r&&n in r||vAe(e.style,n,"");if(r)for(n in r)i&&r[n]===i[n]||vAe(e.style,n,r[n])}else if(n[0]==="o"&&n[1]==="n")a=n!==(n=n.replace(/(PointerCapture)$|Capture$/i,"$1")),n=n.toLowerCase()in e||n==="onFocusOut"||n==="onFocusIn"?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+a]=r,r?i?r.u=i.u:(r.u=Bhe,e.addEventListener(n,a?Nae:Iae,a)):e.removeEventListener(n,a?Nae:Iae,a);else{if(o=="http://www.w3.org/2000/svg")n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(n!="width"&&n!="height"&&n!="href"&&n!="list"&&n!="form"&&n!="tabIndex"&&n!="download"&&n!="rowSpan"&&n!="colSpan"&&n!="role"&&n!="popover"&&n in e)try{e[n]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&n[4]!=="-"?e.removeAttribute(n):e.setAttribute(n,n=="popover"&&r==1?"":r))}}function yAe(e){return function(n){if(this.l){var r=this.l[n.type+e];if(n.t==null)n.t=Bhe++;else if(n.t<r.u)return;return wa.event&&(n=wa.event(n)),"handleEvent"in r?r.handleEvent(n):r(n)}}}function Uhe(e,n,r,i,o,a,s,l,c,u){var d,f,p,h,g,v,y,_,S,b,E,w,C,x,T,R,O=n.type;if(n.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),a=[l=n.__e=r.__e]),(d=wa.__b)&&d(n);e:if(typeof O=="function")try{if(_=n.props,S="prototype"in O&&O.prototype.render,b=(d=O.contextType)&&i[d.__c],E=d?b?b.props.value:d.__:i,r.__c?y=(f=n.__c=r.__c).__=f.__E:(S?n.__c=f=new O(_,E):(n.__c=f=new W6(_,E),f.constructor=O,f.render=xUn),b&&b.sub(f),f.props=_,f.state||(f.state={}),f.context=E,f.__n=i,p=f.__d=!0,f.__h=[],f._sb=[]),S&&f.__s==null&&(f.__s=f.state),S&&O.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Yb({},f.__s)),Yb(f.__s,O.getDerivedStateFromProps(_,f.__s))),h=f.props,g=f.state,f.__v=n,p)S&&O.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),S&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(S&&O.getDerivedStateFromProps==null&&_!==h&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(_,E),!f.__e&&(f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(_,f.__s,E)===!1||n.__v===r.__v)){for(n.__v!==r.__v&&(f.props=_,f.state=f.__s,f.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.some(function(M){M&&(M.__=n)}),w=0;w<f._sb.length;w++)f.__h.push(f._sb[w]);f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(_,f.__s,E),S&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(h,g,v)})}if(f.context=E,f.props=_,f.__P=e,f.__e=!1,C=wa.__r,x=0,S){for(f.state=f.__s,f.__d=!1,C&&C(n),d=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__d=!1,C&&C(n),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++x<25);f.state=f.__s,f.getChildContext!=null&&(i=Yb(Yb({},i),f.getChildContext())),S&&!p&&f.getSnapshotBeforeUpdate!=null&&(v=f.getSnapshotBeforeUpdate(h,g)),Aet(e,jhe(R=d!=null&&d.type===RL&&d.key==null?d.props.children:d)?R:[R],n,r,i,o,a,s,l,c,u),f.base=n.__e,n.__u&=-161,f.__h.length&&s.push(f),y&&(f.__E=f.__=null)}catch(M){if(n.__v=null,c||a!=null){for(n.__u|=c?160:128;l&&l.nodeType===8&&l.nextSibling;)l=l.nextSibling;a[a.indexOf(l)]=null,n.__e=l}else n.__e=r.__e,n.__k=r.__k;wa.__e(M,n,r)}else a==null&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=wUn(r.__e,n,r,i,o,a,s,c,u);(d=wa.diffed)&&d(n)}function ket(e,n,r){n.__d=void 0;for(var i=0;i<r.length;i++)Hhe(r[i],r[++i],r[++i]);wa.__c&&wa.__c(n,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(a){a.call(o)})}catch(a){wa.__e(a,o.__v)}})}function wUn(e,n,r,i,o,a,s,l,c){var u,d,f,p,h,g,v,y=r.props,_=n.props,S=n.type;if(S==="svg"?o="http://www.w3.org/2000/svg":S==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),a!=null){for(u=0;u<a.length;u++)if((h=a[u])&&"setAttribute"in h==!!S&&(S?h.localName===S:h.nodeType===3)){e=h,a[u]=null;break}}if(e==null){if(S===null)return document.createTextNode(_);e=document.createElementNS(o,S,_.is&&_),l&&(wa.__m&&wa.__m(n,a),l=!1),a=null}if(S===null)y===_||l&&e.data===_||(e.data=_);else{if(a=a&&Bz.call(e.childNodes),y=r.props||aD,!l&&a!=null)for(y={},u=0;u<e.attributes.length;u++)y[(h=e.attributes[u]).name]=h.value;for(u in y)if(h=y[u],u!="children"){if(u=="dangerouslySetInnerHTML")f=h;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;H4(e,u,null,h,o)}}for(u in _)h=_[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?d=h:u=="value"?g=h:u=="checked"?v=h:l&&typeof h!="function"||y[u]===h||H4(e,u,h,y[u],o);if(d)l||f&&(d.__html===f.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),n.__k=[];else if(f&&(e.innerHTML=""),Aet(e,jhe(p)?p:[p],n,r,i,S==="foreignObject"?"http://www.w3.org/1999/xhtml":o,a,s,a?a[0]:r.__k&&cR(r,0),l,c),a!=null)for(u=a.length;u--;)Net(a[u]);l||(u="value",S==="progress"&&g==null?e.removeAttribute("value"):g!==void 0&&(g!==e[u]||S==="progress"&&!g||S==="option"&&g!==y[u])&&H4(e,u,g,y[u],o),u="checked",v!==void 0&&v!==e[u]&&H4(e,u,v,y[u],o))}return e}function Hhe(e,n,r){try{if(typeof e=="function"){var i=typeof e.__u=="function";i&&e.__u(),i&&n==null||(e.__u=e(n))}else e.current=n}catch(o){wa.__e(o,r)}}function Let(e,n,r){var i,o;if(wa.unmount&&wa.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Hhe(i,null,n)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){wa.__e(a,n)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&Let(i[o],n,r||typeof e.type!="function");r||Net(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function xUn(e,n,r){return this.constructor(e,r)}function $et(e,n,r){var i,o,a,s;wa.__&&wa.__(e,n),o=(i=typeof r=="function")?null:n.__k,a=[],s=[],Uhe(n,e=(!i&&r||n).__k=Met(RL,null,[e]),o||aD,aD,n.namespaceURI,!i&&r?[r]:o?null:n.firstChild?Bz.call(n.childNodes):null,a,!i&&r?r:o?o.__e:n.firstChild,i,s),ket(a,e,s)}Bz=Iet.slice,wa={__e:function(e,n,r,i){for(var o,a,s;n=n.__;)if((o=n.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,i||{}),s=o.__d),s)return o.__E=o}catch(l){e=l}throw e}},Oet=0,W6.prototype.setState=function(e,n){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Yb({},this.state),typeof e=="function"&&(e=e(Yb({},r),this.props)),e&&Yb(r,e),e!=null&&this.__v&&(n&&this._sb.push(n),mAe(this))},W6.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),mAe(this))},W6.prototype.render=RL,VE=[],Ret=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Rae=function(e,n){return e.__v.__b-n.__v.__b},ej.__r=0,Bhe=0,Iae=yAe(!1),Nae=yAe(!0);var Fet=function(e,n,r,i){var o;n[0]=0;for(var a=1;a<n.length;a++){var s=n[a++],l=n[a]?(n[0]|=s?1:2,r[n[a++]]):n[++a];s===3?i[0]=l:s===4?i[1]=Object.assign(i[1]||{},l):s===5?(i[1]=i[1]||{})[n[++a]]=l:s===6?i[1][n[++a]]+=l+"":s?(o=e.apply(l,Fet(e,l,r,["",null])),i.push(o),l[0]?n[0]|=2:(n[a-2]=0,n[a]=o)):i.push(l)}return i},_Ae=new Map;function TUn(e){var n=_Ae.get(this);return n||(n=new Map,_Ae.set(this,n)),(n=Fet(this,n.get(e)||(n.set(e,n=function(r){for(var i,o,a=1,s="",l="",c=[0],u=function(p){a===1&&(p||(s=s.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?c.push(0,p,s):a===3&&(p||s)?(c.push(3,p,s),a=2):a===2&&s==="..."&&p?c.push(4,p,0):a===2&&s&&!p?c.push(5,0,!0,s):a>=5&&((s||!p&&a===5)&&(c.push(a,0,s,o),a=6),p&&(c.push(a,p,0,o),a=6)),s=""},d=0;d<r.length;d++){d&&(a===1&&u(),u(d));for(var f=0;f<r[d].length;f++)i=r[d][f],a===1?i==="<"?(u(),c=[c],a=3):s+=i:a===4?s==="--"&&i===">"?(a=1,s=""):s=i+s[0]:l?i===l?l="":s+=i:i==='"'||i==="'"?l=i:i===">"?(u(),a=1):a&&(i==="="?(a=5,o=s,s=""):i==="/"&&(a<5||r[d][f+1]===">")?(u(),a===3&&(c=c[0]),a=c,(c=c[0]).push(2,0,a),a=0):i===" "||i===" "||i===`
|
||
`||i==="\r"?(u(),a=2):s+=i),a===3&&s==="!--"&&(a=4,c=c[0])}return u(),c}(e)),n),arguments,[])).length>1?n:n[0]}var is=TUn.bind(Met),uR,ys,cJ,bAe,sD=0,Bet=[],Ls=wa,SAe=Ls.__b,EAe=Ls.__r,CAe=Ls.diffed,wAe=Ls.__c,xAe=Ls.unmount,TAe=Ls.__;function jz(e,n){Ls.__h&&Ls.__h(ys,e,sD||n),sD=0;var r=ys.__H||(ys.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function uJ(e){return sD=1,OUn(Uet,e)}function OUn(e,n,r){var i=jz(uR++,2);if(i.t=e,!i.__c&&(i.__=[Uet(void 0,n),function(l){var c=i.__N?i.__N[0]:i.__[0],u=i.t(c,l);c!==u&&(i.__N=[u,i.__[1]],i.__c.setState({}))}],i.__c=ys,!ys.u)){var o=function(l,c,u){if(!i.__c.__H)return!0;var d=i.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!a||a.call(this,l,c,u);var f=i.__c.props!==l;return d.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(f=!0)}}),a&&a.call(this,l,c,u)||f};ys.u=!0;var a=ys.shouldComponentUpdate,s=ys.componentWillUpdate;ys.componentWillUpdate=function(l,c,u){if(this.__e){var d=a;a=void 0,o(l,c,u),a=d}s&&s.call(this,l,c,u)},ys.shouldComponentUpdate=o}return i.__N||i.__}function Mae(e,n){var r=jz(uR++,3);!Ls.__s&&zhe(r.__H,n)&&(r.__=e,r.i=n,ys.__H.__h.push(r))}function Pae(e,n){var r=jz(uR++,4);!Ls.__s&&zhe(r.__H,n)&&(r.__=e,r.i=n,ys.__h.push(r))}function jet(e){return sD=5,dR(function(){return{current:e}},[])}function dR(e,n){var r=jz(uR++,7);return zhe(r.__H,n)&&(r.__=e(),r.__H=n,r.__h=e),r.__}function OM(e,n){return sD=8,dR(function(){return e},n)}function RUn(){for(var e;e=Bet.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Y6),e.__H.__h.forEach(Aae),e.__H.__h=[]}catch(n){e.__H.__h=[],Ls.__e(n,e.__v)}}Ls.__b=function(e){ys=null,SAe&&SAe(e)},Ls.__=function(e,n){e&&n.__k&&n.__k.__m&&(e.__m=n.__k.__m),TAe&&TAe(e,n)},Ls.__r=function(e){EAe&&EAe(e),uR=0;var n=(ys=e.__c).__H;n&&(cJ===ys?(n.__h=[],ys.__h=[],n.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(n.__h.forEach(Y6),n.__h.forEach(Aae),n.__h=[],uR=0)),cJ=ys},Ls.diffed=function(e){CAe&&CAe(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(Bet.push(n)!==1&&bAe===Ls.requestAnimationFrame||((bAe=Ls.requestAnimationFrame)||IUn)(RUn)),n.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),cJ=ys=null},Ls.__c=function(e,n){n.some(function(r){try{r.__h.forEach(Y6),r.__h=r.__h.filter(function(i){return!i.__||Aae(i)})}catch(i){n.some(function(o){o.__h&&(o.__h=[])}),n=[],Ls.__e(i,r.__v)}}),wAe&&wAe(e,n)},Ls.unmount=function(e){xAe&&xAe(e);var n,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(i){try{Y6(i)}catch(o){n=o}}),r.__H=void 0,n&&Ls.__e(n,r.__v))};var OAe=typeof requestAnimationFrame=="function";function IUn(e){var n,r=function(){clearTimeout(i),OAe&&cancelAnimationFrame(n),setTimeout(e)},i=setTimeout(r,100);OAe&&(n=requestAnimationFrame(r))}function Y6(e){var n=ys,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ys=n}function Aae(e){var n=ys;e.__c=e.__(),ys=n}function zhe(e,n){return!e||e.length!==n.length||n.some(function(r,i){return r!==e[i]})}function Uet(e,n){return typeof n=="function"?n(e):n}function Het(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(r=Het(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function tj(){for(var e,n,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(n=Het(e))&&(i&&(i+=" "),i+=n);return i}function NUn(e){const{headerEntries:n,onSelect:r,selectedEntry:i,setSelectedEntry:o,title:a}=e,s=dR(()=>MUn(n),[n]);return is`
|
||
<div class="djs-popup-header">
|
||
<h3 class="djs-popup-title" title=${a}>${a}</h3>
|
||
${s.map(l=>is`
|
||
<ul key=${l.id} class="djs-popup-header-group" data-header-group=${l.id}>
|
||
|
||
${l.entries.map(c=>is`
|
||
<li key=${c.id}>
|
||
<${c.action?"button":"span"}
|
||
class=${PUn(c,c===i)}
|
||
onClick=${u=>c.action&&r(u,c)}
|
||
title=${c.title||c.label}
|
||
data-id=${c.id}
|
||
onMouseEnter=${()=>c.action&&o(c)}
|
||
onMouseLeave=${()=>c.action&&o(null)}
|
||
onFocus=${()=>c.action&&o(c)}
|
||
onBlur=${()=>c.action&&o(null)}
|
||
>
|
||
${c.imageUrl&&is`<img class="djs-popup-entry-icon" src=${c.imageUrl} alt="" />`||c.imageHtml&&is`<div class="djs-popup-entry-icon" dangerouslySetInnerHTML=${{__html:c.imageHtml}} />`}
|
||
${c.label?is`
|
||
<span class="djs-popup-label">${c.label}</span>
|
||
`:null}
|
||
</${c.action?"button":"span"}>
|
||
</li>
|
||
`)}
|
||
</ul>
|
||
`)}
|
||
</div>
|
||
`}function MUn(e){return e.reduce((n,r)=>{const i=r.group||"default",o=n.find(a=>a.id===i);return o?o.entries.push(r):n.push({id:i,entries:[r]}),n},[])}function PUn(e,n){return tj("entry",e.className,e.active?"active":"",e.disabled?"disabled":"",n?"selected":"")}function AUn(e){const{entry:n,selected:r,onMouseEnter:i,onMouseLeave:o,onAction:a}=e;return is`
|
||
<li
|
||
class=${tj("entry",{selected:r})}
|
||
data-id=${n.id}
|
||
title=${n.title||n.label}
|
||
tabIndex="0"
|
||
onClick=${a}
|
||
onFocus=${i}
|
||
onBlur=${o}
|
||
onMouseEnter=${i}
|
||
onMouseLeave=${o}
|
||
onDragStart=${s=>a(s,n,"dragstart")}
|
||
draggable=${!0}
|
||
>
|
||
<div class="djs-popup-entry-content">
|
||
<span
|
||
class=${tj("djs-popup-entry-name",n.className)}
|
||
>
|
||
${n.imageUrl&&is`<img class="djs-popup-entry-icon" src=${n.imageUrl} alt="" />`||n.imageHtml&&is`<div class="djs-popup-entry-icon" dangerouslySetInnerHTML=${{__html:n.imageHtml}} />`}
|
||
|
||
${n.label?is`
|
||
<span class="djs-popup-label">
|
||
${n.label}
|
||
</span>
|
||
`:null}
|
||
</span>
|
||
${n.description&&is`
|
||
<span
|
||
class="djs-popup-entry-description"
|
||
title=${n.description}
|
||
>
|
||
${n.description}
|
||
</span>
|
||
`}
|
||
</div>
|
||
${n.documentationRef&&is`
|
||
<div class="djs-popup-entry-docs">
|
||
<a
|
||
href="${n.documentationRef}"
|
||
onClick=${s=>s.stopPropagation()}
|
||
title="Open element documentation"
|
||
target="_blank"
|
||
rel="noopener"
|
||
>
|
||
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.6368 10.6375V5.91761H11.9995V10.6382C11.9995 10.9973 11.8623 11.3141 11.5878 11.5885C11.3134 11.863 10.9966 12.0002 10.6375 12.0002H1.36266C0.982345 12.0002 0.660159 11.8681 0.396102 11.6041C0.132044 11.34 1.52588e-05 11.0178 1.52588e-05 10.6375V1.36267C1.52588e-05 0.98236 0.132044 0.660173 0.396102 0.396116C0.660159 0.132058 0.982345 2.95639e-05 1.36266 2.95639e-05H5.91624V1.36267H1.36266V10.6375H10.6368ZM12 0H7.2794L7.27873 1.36197H9.68701L3.06507 7.98391L4.01541 8.93425L10.6373 2.31231V4.72059H12V0Z" fill="#818798"/>
|
||
</svg>
|
||
</a>
|
||
</div>
|
||
`}
|
||
</li>
|
||
`}function DUn(e){const{selectedEntry:n,setSelectedEntry:r,entries:i,...o}=e,a=jet(),s=dR(()=>kUn(i),[i]);return Pae(()=>{const l=a.current;if(!l)return;const c=l.querySelector(".selected");c&&LUn(c)},[n]),is`
|
||
<div class="djs-popup-results" ref=${a}>
|
||
${s.map(l=>is`
|
||
${l.name&&is`
|
||
<div key=${l.id} class="entry-header" title=${l.name}>
|
||
${l.name}
|
||
</div>
|
||
`}
|
||
<ul class="djs-popup-group" data-group=${l.id}>
|
||
${l.entries.map(c=>is`
|
||
<${AUn}
|
||
key=${c.id}
|
||
entry=${c}
|
||
selected=${c===n}
|
||
onMouseEnter=${()=>r(c)}
|
||
onMouseLeave=${()=>r(null)}
|
||
...${o}
|
||
/>
|
||
`)}
|
||
</ul>
|
||
`)}
|
||
</div>
|
||
`}function kUn(e){const n=[],r=a=>n.find(s=>a.id===s.id),i=a=>!!r(a),o=a=>typeof a=="string"?{id:a}:a;return e.forEach(a=>{const s=a.group?o(a.group):{id:"default"};i(s)?r(s).entries.push(a):n.push({...s,entries:[a]})}),n}function LUn(e){typeof e.scrollIntoViewIfNeeded=="function"?e.scrollIntoViewIfNeeded():e.scrollIntoView({scrollMode:"if-needed",block:"nearest"})}function $Un(e){const{onClose:n,onSelect:r,className:i,headerEntries:o,position:a,title:s,width:l,scale:c,search:u,emptyPlaceholder:d,searchFn:f,entries:p,onOpened:h,onClosed:g}=e,v=dR(()=>bl(u)?p.length>5:!1,[u,p]),[y,_]=uJ(""),S=OM((P,k)=>{if(!v)return P;if(!k.trim())return P.filter(({rank:U=0})=>U>=0);const $=P.filter(({searchable:U})=>U!==!1);return f($,k,{keys:["label","description","search"]}).map(({item:U})=>U)},[v]),[b,E]=uJ(S(p,y)),[w,C]=uJ(b[0]),x=OM(P=>{(!w||!P.includes(w))&&C(P[0]),E(P)},[w,E,C]);Mae(()=>{x(S(p,y))},[y,p]);const T=OM(P=>{let $=b.indexOf(w)+P;$<0&&($=b.length-1),$>=b.length&&($=0),C(b[$])},[b,w,C]),R=OM(P=>{if(P.key==="Enter"&&w)return r(P,w);if(P.key==="ArrowUp")return T(-1),P.preventDefault();if(P.key==="ArrowDown")return T(1),P.preventDefault()},[r,w,T]),O=OM(P=>{iJe(P.target,"input")&&_(()=>P.target.value)},[_]);Mae(()=>(h(),()=>{g()}),[]);const M=dR(()=>s||o.length>0,[s,o]);return is`
|
||
<${RAe}
|
||
onClose=${n}
|
||
onKeyup=${O}
|
||
onKeydown=${R}
|
||
className=${i}
|
||
position=${a}
|
||
width=${l}
|
||
scale=${c}
|
||
>
|
||
${M&&is`
|
||
<${NUn}
|
||
headerEntries=${o}
|
||
onSelect=${r}
|
||
selectedEntry=${w}
|
||
setSelectedEntry=${C}
|
||
title=${s}
|
||
/>
|
||
`}
|
||
${p.length>0&&is`
|
||
<div class="djs-popup-body">
|
||
|
||
${v&&is`
|
||
<div class="djs-popup-search">
|
||
<svg class="djs-popup-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>
|
||
</svg>
|
||
<input type="text" spellcheck=${!1} aria-label="${s}" />
|
||
</div>
|
||
`}
|
||
|
||
<${DUn}
|
||
entries=${b}
|
||
selectedEntry=${w}
|
||
setSelectedEntry=${C}
|
||
onAction=${r}
|
||
/>
|
||
</div>
|
||
`}
|
||
${d&&b.length===0&&is`
|
||
<div class="djs-popup-no-results">${zs(d)?d(y):d}</div>
|
||
`}
|
||
</${RAe}>
|
||
`}function RAe(e){const{onClose:n,onKeydown:r,onKeyup:i,className:o,children:a,position:s}=e,l=jet();return Pae(()=>{if(typeof s!="function")return;const c=l.current,u=s(c);c.style.left=`${u.x}px`,c.style.top=`${u.y}px`},[l.current,s]),Pae(()=>{const c=l.current;if(!c)return;(c.querySelector("input")||c).focus()},[]),Mae(()=>{const c=d=>{if(d.key==="Escape")return d.preventDefault(),n()},u=d=>{if(!zI(d.target,".djs-popup",!0))return n()};return document.documentElement.addEventListener("keydown",c),document.body.addEventListener("click",u),()=>{document.documentElement.removeEventListener("keydown",c),document.body.removeEventListener("click",u)}},[]),is`
|
||
<div
|
||
class=${tj("djs-popup",o)}
|
||
style=${FUn(e)}
|
||
onKeydown=${r}
|
||
onKeyup=${i}
|
||
ref=${l}
|
||
tabIndex="-1"
|
||
>
|
||
${a}
|
||
</div>
|
||
`}function FUn(e){return{transform:`scale(${e.scale})`,width:`${e.width}px`,"transform-origin":"top left"}}var BUn="data-id",zet=["contextPad.close","canvas.viewbox.changing","commandStack.changed"],jUn=1e3;function Na(e,n,r,i){this._eventBus=n,this._canvas=r,this._search=i,this._current=null;var o=bl(e&&e.scale)?e.scale:{min:1,max:1};this._config={scale:o},n.on("diagram.destroy",()=>{this.close()}),n.on("element.changed",a=>{const s=this.isOpen()&&this._current.target;a.element===s&&this.refresh()})}Na.$inject=["config.popupMenu","eventBus","canvas","search"];Na.prototype._render=function(){const{position:e,providerId:n,entries:r,headerEntries:i,emptyPlaceholder:o,options:a}=this._current,s=Object.entries(r).map(([p,h])=>({id:p,...h})),l=Object.entries(i).map(([p,h])=>({id:p,...h})),c=e&&(p=>this._ensureVisible(p,e)),u=this._updateScale(this._current.container);$et(is`
|
||
<${$Un}
|
||
onClose=${p=>this.close(p)}
|
||
onSelect=${(p,h,g)=>this.trigger(p,h,g)}
|
||
position=${c}
|
||
className=${n}
|
||
entries=${s}
|
||
headerEntries=${l}
|
||
emptyPlaceholder=${o}
|
||
scale=${u}
|
||
onOpened=${this._onOpened.bind(this)}
|
||
onClosed=${this._onClosed.bind(this)}
|
||
searchFn=${this._search}
|
||
...${{...a}}
|
||
/>
|
||
`,this._current.container)};Na.prototype.open=function(e,n,r,i){if(!e)throw new Error("target is missing");if(!n)throw new Error("providers for <"+n+"> not found");if(!r)throw new Error("position is missing");this.isOpen()&&this.close();const{entries:o,headerEntries:a,emptyPlaceholder:s}=this._getContext(e,n);this._current={position:r,providerId:n,target:e,entries:o,headerEntries:a,emptyPlaceholder:s,container:this._createContainer({provider:n}),options:i},this._emit("open"),this._bindAutoClose(),this._render()};Na.prototype.refresh=function(){if(!this.isOpen())return;const{target:e,providerId:n}=this._current,{entries:r,headerEntries:i,emptyPlaceholder:o}=this._getContext(e,n);this._current={...this._current,entries:r,headerEntries:i,emptyPlaceholder:o},this._emit("refresh"),this._render()};Na.prototype._getContext=function(e,n){const r=this._getProviders(n);if(!r||!r.length)throw new Error("provider for <"+n+"> not found");const i=this._getEntries(e,r),o=this._getHeaderEntries(e,r),a=this._getEmptyPlaceholder(r);return{entries:i,headerEntries:o,emptyPlaceholder:a,empty:!(Object.keys(i).length||Object.keys(o).length)}};Na.prototype.close=function(){this.isOpen()&&(this._emit("close"),this.reset(),this._canvas.restoreFocus(),this._current=null)};Na.prototype.reset=function(){const e=this._current.container;$et(null,e),Fm(e)};Na.prototype._emit=function(e,n){this._eventBus.fire(`popupMenu.${e}`,n)};Na.prototype._onOpened=function(){this._emit("opened")};Na.prototype._onClosed=function(){this._emit("closed")};Na.prototype._createContainer=function(e){var n=this._canvas,r=n.getContainer();const i=Ko(`<div class="djs-popup-parent djs-scrollable" data-popup=${e.provider}></div>`);return r.appendChild(i),i};Na.prototype._bindAutoClose=function(){this._eventBus.once(zet,this.close,this)};Na.prototype._unbindAutoClose=function(){this._eventBus.off(zet,this.close,this)};Na.prototype._updateScale=function(){var e=this._canvas.zoom(),n=this._config.scale,r,i,o=e;return n!==!0&&(n===!1?(r=1,i=1):(r=n.min,i=n.max),bl(r)&&e<r&&(o=r),bl(i)&&e>i&&(o=i)),o};Na.prototype._ensureVisible=function(e,n){var r=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect(),o={},a=n.x,s=n.y;return n.x+i.width>r.width&&(o.x=!0),n.y+i.height>r.height&&(o.y=!0),o.x&&o.y?(a=n.x-i.width,s=n.y-i.height):o.x?(a=n.x-i.width,s=n.y):o.y&&n.y<i.height?(a=n.x,s=10):o.y&&(a=n.x,s=n.y-i.height),n.y<r.top&&(s=n.y+i.height),{x:a,y:s}};Na.prototype.isEmpty=function(e,n){if(!e)throw new Error("target is missing");if(!n)throw new Error("provider ID is missing");const r=this._getProviders(n);return!r||!r.length?!0:this._getContext(e,n).empty};Na.prototype.registerProvider=function(e,n,r){r||(r=n,n=jUn),this._eventBus.on("popupMenu.getProviders."+e,n,function(i){i.providers.push(r)})};Na.prototype._getProviders=function(e){var n=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(n),n.providers};Na.prototype._getEntries=function(e,n){var r={};return ht(n,function(i){if(!i.getPopupMenuEntries){ht(i.getEntries(e),function(a){var s=a.id;if(!s)throw new Error("entry ID is missing");r[s]=iv(a,["id"])});return}var o=i.getPopupMenuEntries(e);zs(o)?r=o(r):ht(o,function(a,s){r[s]=a})}),r};Na.prototype._getHeaderEntries=function(e,n){var r={};return ht(n,function(i){if(!i.getPopupMenuHeaderEntries){if(!i.getHeaderEntries)return;ht(i.getHeaderEntries(e),function(a){var s=a.id;if(!s)throw new Error("entry ID is missing");r[s]=iv(a,["id"])});return}var o=i.getPopupMenuHeaderEntries(e);zs(o)?r=o(r):ht(o,function(a,s){r[s]=a})}),r};Na.prototype._getEmptyPlaceholder=function(e){const n=e.find(r=>zs(r.getEmptyPlaceholder));return n&&n.getEmptyPlaceholder()};Na.prototype.isOpen=function(){return!!this._current};Na.prototype.trigger=function(e,n,r="click"){if(e.preventDefault(),!n){let o=zI(e.delegateTarget||e.target,".entry",!0),a=fc(o,BUn);n={id:a,...this._getEntry(a)}}const i=n.action;if(this._emit("trigger",{entry:n,event:e})!==!1){if(zs(i)){if(r==="click")return i(e,n)}else if(i[r])return i[r](e,n)}};Na.prototype._getEntry=function(e){var n=this._current.entries[e]||this._current.headerEntries[e];if(!n)throw new Error("entry not found");return n};function UUn(e,n,r){const{keys:i}=r;if(n=n.trim().toLowerCase(),!n)throw new Error("<pattern> must not be empty");const o=n.trim().toLowerCase().split(/\s+/);return e.flatMap(a=>{const s=HUn(a,o,i);return s?{item:a,tokens:s}:[]}).sort(zUn(i))}function HUn(e,n,r){const{matchedWords:i,tokens:o}=r.reduce((a,s)=>{const l=e[s],{tokens:c,matchedWords:u}=YUn(l,n);return{tokens:{...a.tokens,[s]:c},matchedWords:{...a.matchedWords,...u}}},{matchedWords:{},tokens:{}});return Object.keys(i).length!==n.length?null:o}function zUn(e){return(n,r)=>{for(const i of e){const o=VUn(n.tokens[i],r.tokens[i]);if(o!==0)return o;const a=WUn(n.item[i],r.item[i]);if(a!==0)return a}return 0}}function VUn(e,n){return IAe(n)-IAe(e)}function IAe(e){return e.reduce((n,r)=>n+GUn(r),0)}function GUn(e){const n=Math.log(e.value.length);return e.match?(e.start?e.end?131.9:7.87:e.wordStart?2.19:1)*n:-.07*n}function WUn(e="",n=""){return e.localeCompare(n)}function YUn(e,n){if(!e)return{tokens:[],matchedWords:{}};const r=[],i={},o=n.map(qUn),a=[`(?<all>${o.join("\\s+")})`,...o].join("|"),s=new RegExp(a,"ig");let l,c=0;for(;l=s.exec(e);){const[u]=l,d=l.index,f=l.index+u.length,p=d===0,h=f===e.length,g=!!l.groups.all,v=p||/\s/.test(e.charAt(d-1)),y=h||/\s/.test(e.charAt(f+1));l.index>c&&r.push({value:e.slice(c,l.index),index:c}),r.push({value:u,index:l.index,match:!0,wordStart:v,wordEnd:y,start:p,end:h,all:g});const _=g?n:[u];for(const S of _)i[S.toLowerCase()]=!0;c=l.index+u.length}return c<e.length&&r.push({value:e.slice(c),index:c}),{tokens:r,matchedWords:i}}function qUn(e){return e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")}const Vet={search:["value",UUn]},Vhe={__depends__:[Vet],__init__:["popupMenu"],popupMenu:["type",Na]};var Get={align:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 2000">
|
||
<line x1="200" y1="150" x2="200" y2="1850" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="500" y="150" width="1300" height="700" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="500" y="1150" width="700" height="700" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,bottom:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="150" y1="1650" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="150" y="350" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="1050" y="850" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,center:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="900" y1="150" x2="900" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="250" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="500" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,left:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="100" y1="150" x2="100" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="100" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="100" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,right:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="1650" y1="150" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="350" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="850" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,top:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="150" y1="150" x2="1650" y2="150" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="150" y="150" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="1050" y="150" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,middle:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="150" y1="900" x2="1650" y2="900" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="150" y="250" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="1050" y="500" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`},KUn=900;function ZI(e,n,r,i){e.registerProvider(KUn,this),this._contextPad=e,this._popupMenu=n,this._translate=r,this._canvas=i}ZI.$inject=["contextPad","popupMenu","translate","canvas"];ZI.prototype.getMultiElementContextPadEntries=function(e){var n={};return this._isAllowed(e)&&Rt(n,this._getEntries(e)),n};ZI.prototype._isAllowed=function(e){return!this._popupMenu.isEmpty(e,"align-elements")};ZI.prototype._getEntries=function(){var e=this;return{"align-elements":{group:"align-elements",title:e._translate("Align elements"),html:`<div class="entry">${Get.align}</div>`,action:{click:function(n,r){var i=e._getMenuPosition(r);Rt(i,{cursor:{x:n.x,y:n.y}}),e._popupMenu.open(r,"align-elements",i)}}}}};ZI.prototype._getMenuPosition=function(e){var n=5,r=this._contextPad.getPad(e).html,i=r.getBoundingClientRect(),o={x:i.left,y:i.bottom+n};return o};var XUn=["left","center","right","top","middle","bottom"];function IL(e,n,r,i){this._alignElements=n,this._translate=r,this._popupMenu=e,this._rules=i,e.registerProvider("align-elements",this)}IL.$inject=["popupMenu","alignElements","translate","rules"];IL.prototype.getPopupMenuEntries=function(e){var n={};return this._isAllowed(e)&&Rt(n,this._getEntries(e)),n};IL.prototype._isAllowed=function(e){return this._rules.allowed("elements.align",{elements:e})};IL.prototype._getEntries=function(e){var n=this._alignElements,r=this._translate,i=this._popupMenu,o={};return ht(XUn,function(a){o["align-elements-"+a]={group:"align",title:r("Align elements "+a),className:"bjs-align-elements-menu-entry",imageHtml:Get[a],action:function(){n.trigger(e,a),i.close()}}}),o};function Wp(e){vn.call(this,e),this.init()}Wp.$inject=["eventBus"];Zn(Wp,vn);Wp.prototype.addRule=function(e,n,r){var i=this;typeof e=="string"&&(e=[e]),e.forEach(function(o){i.canExecute(o,n,function(a,s,l){return r(a)},!0)})};Wp.prototype.init=function(){};function Uz(e){Wp.call(this,e)}Uz.$inject=["eventBus"];Zn(Uz,Wp);Uz.prototype.init=function(){this.addRule("elements.align",function(e){var n=e.elements,r=si(n,function(i){return!(i.waypoints||i.host||i.labelTarget)});return r=Tz(r),r.length<2?!1:r})};const QUn={__depends__:[dUn,Tet,Vhe],__init__:["alignElementsContextPadProvider","alignElementsMenuProvider","bpmnAlignElements"],alignElementsContextPadProvider:["type",ZI],alignElementsMenuProvider:["type",IL],bpmnAlignElements:["type",Uz]};var ZUn=10,Wet=50,JUn=250;function Ghe(e,n,r,i){for(var o;o=eHn(e,r,n);)r=i(n,r,o);return r}function Whe(e){return function(n,r,i){var o={x:r.x,y:r.y};return["x","y"].forEach(function(a){var s=e[a];if(s){var l=a==="x"?"width":"height",c=s.margin,u=s.minDistance;c<0?o[a]=Math.min(i[a]+c-n[l]/2,r[a]-u+c):o[a]=Math.max(i[a]+i[l]+c+n[l]/2,r[a]+u+c)}}),o}}function eHn(e,n,r){var i={x:n.x-r.width/2,y:n.y-r.height/2,width:r.width,height:r.height},o=nHn(e);return ki(o,function(a){if(a===r)return!1;var s=_c(a,i,ZUn);return s==="intersect"})}function tHn(e,n){n||(n={});function r(g){return g.source===e?1:-1}var i=n.defaultDistance||Wet,o=n.direction||"e",a=n.filter,s=n.getWeight||r,l=n.maxDistance||JUn,c=n.reference||"start";a||(a=oHn);function u(g,v){return o==="n"?c==="start"?br(g).top-br(v).bottom:c==="center"?br(g).top-Mr(v).y:br(g).top-br(v).top:o==="w"?c==="start"?br(g).left-br(v).right:c==="center"?br(g).left-Mr(v).x:br(g).left-br(v).left:o==="s"?c==="start"?br(v).top-br(g).bottom:c==="center"?Mr(v).y-br(g).bottom:br(v).bottom-br(g).bottom:c==="start"?br(v).left-br(g).right:c==="center"?Mr(v).x-br(g).right:br(v).right-br(g).right}var d=e.incoming.filter(a).map(function(g){var v=s(g),y=v<0?u(g.source,e):u(e,g.source);return{id:g.source.id,distance:y,weight:v}}),f=e.outgoing.filter(a).map(function(g){var v=s(g),y=v>0?u(e,g.target):u(g.target,e);return{id:g.target.id,distance:y,weight:v}}),p=d.concat(f).reduce(function(g,v){return g[v.id+"__weight_"+v.weight]=v,g},{}),h=vd(p,function(g,v){var y=v.distance,_=v.weight;return y<0||y>l||(g[String(y)]||(g[String(y)]=0),g[String(y)]+=1*_,(!g.distance||g[g.distance]<g[String(y)])&&(g.distance=y)),g},{});return h.distance||i}function nHn(e){var n=dJ(e);return e.host&&(n=n.concat(dJ(e.host))),e.attachers&&(n=n.concat(e.attachers.reduce(function(r,i){return r.concat(dJ(i))},[]))),n}function dJ(e){return iHn(e).concat(rHn(e))}function rHn(e){return e.incoming.map(function(n){return n.source})}function iHn(e){return e.outgoing.map(function(n){return n.target})}function oHn(){return!0}var aHn=100;function Yet(e,n,r){e.on("autoPlace",aHn,function(i){var o=i.shape,a=i.source;return sHn(a,o)}),e.on("autoPlace.end",function(i){r.scrollToElement(i.shape)}),this.append=function(i,o,a){e.fire("autoPlace.start",{source:i,shape:o});var s=e.fire("autoPlace",{source:i,shape:o}),l=n.appendShape(i,o,s,i.parent,a);return e.fire("autoPlace.end",{source:i,shape:l}),l}}Yet.$inject=["eventBus","modeling","canvas"];function sHn(e,n,r){r||(r={});var i=r.defaultDistance||Wet,o=Mr(e),a=br(e);return{x:a.right+i+n.width/2,y:o.y}}function qet(e,n){e.on("autoPlace.end",500,function(r){n.select(r.shape)})}qet.$inject=["eventBus","selection"];const lHn={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",Yet],autoPlaceSelectionBehavior:["type",qet]};function fR(e,n){for(md(n)&&(n=[n]);e=e.parent;)if(ii(e,n))return e;return null}function Ket(e,n){var r=fR(e,"bpmn:Process");if(r)return!0;var i=["bpmn:Participant","bpmn:Lane"];if(r=fR(e,i),r)return cl(r);if(ii(e,i))return cl(e);var o;for(o=In(e);o&&!Fe(o,"bpmn:Process");o=o.$parent);if(!n)return!0;var a=n.find(function(s){var l=In(s);return l&&l.get("processRef")===o});return a?cl(a):!0}function Xet(e,n,r){var i=Ket(e,r);if(Fe(n,"bpmn:TextAnnotation"))return uHn(e,n,i);if(ii(n,["bpmn:DataObjectReference","bpmn:DataStoreReference"]))return dHn(e,n,i);if(Fe(n,"bpmn:FlowNode"))return cHn(e,n,i)}function cHn(e,n,r){var i=br(e),o=Mr(e),a=r?{directionHint:"e",minDistance:80,baseOrientation:"left",boundaryOrientation:"top",start:"top",end:"bottom"}:{directionHint:"s",minDistance:90,baseOrientation:"top",boundaryOrientation:"left",start:"left",end:"right"},s=tHn(e,{filter:function(h){return Fe(h,"bpmn:SequenceFlow")},direction:a.directionHint}),l=30,c=a.minDistance,u=a.baseOrientation;Fe(e,"bpmn:BoundaryEvent")&&(u=_c(e,e.host,-25),u.indexOf(a.boundaryOrientation)!==-1&&(l*=-1));var d=r?{x:i.right+s+n.width/2,y:o.y+NAe(u,c,a)}:{x:o.x+NAe(u,c,a),y:i.bottom+s+n.height/2},f={margin:l,minDistance:c},p=r?{y:f}:{x:f};return Ghe(e,n,d,Whe(p))}function NAe(e,n,r){return e.includes(r.start)?-1*n:e.includes(r.end)?n:0}function uHn(e,n,r){var i=br(e),o=r?{x:i.right+n.width/2,y:i.top-50-n.height/2}:{x:i.right+50+n.width/2,y:i.bottom+n.height/2};wo(e)&&(o=Mr(e),r?(o.x+=100,o.y-=50):(o.x+=100,o.y+=50));var a={margin:r?-30:30,minDistance:20},s=r?{y:a}:{x:a};return Ghe(e,n,o,Whe(s))}function dHn(e,n,r){var i=br(e),o=r?{x:i.right-10+n.width/2,y:i.bottom+40+n.width/2}:{x:i.left-40-n.width/2,y:i.bottom-10+n.height/2},a={margin:30,minDistance:30},s=r?{x:a}:{y:a};return Ghe(e,n,o,Whe(s))}function Qet(e,n){e.on("autoPlace",function(r){var i=r.shape,o=r.source;return Xet(o,i,n)})}Qet.$inject=["eventBus","elementRegistry"];const Yhe={__depends__:[lHn],__init__:["bpmnAutoPlace"],bpmnAutoPlace:["type",Qet]};function v_(e,n,r,i){vn.call(this,e),this._elementRegistry=n,this._modeling=r,this._rules=i;var o=this;this.postExecuted(["shape.create"],function(a){var s=a.context,l=s.hints||{},c=s.shape,u=s.parent||s.newParent;l.autoResize!==!1&&o._expand([c],u)}),this.postExecuted(["elements.move"],function(a){var s=a.context,l=ghe(mhe(s.closure.topLevel)),c=s.hints,u=c?c.autoResize:!0;if(u!==!1){var d=HI(l,function(f){return f.parent.id});ht(d,function(f,p){zr(u)&&(f=f.filter(function(h){return ki(u,qh({id:h.id}))})),o._expand(f,p)})}}),this.postExecuted(["shape.toggleCollapse"],function(a){var s=a.context,l=s.hints,c=s.shape;l&&l.autoResize===!1||c.collapsed||o._expand(c.children||[],c)}),this.postExecuted(["shape.resize"],function(a){var s=a.context,l=s.hints,c=s.shape,u=c.parent;l&&l.autoResize===!1||u&&o._expand([c],u)})}v_.$inject=["eventBus","elementRegistry","modeling","rules"];Zn(v_,vn);v_.prototype._getOptimalBounds=function(e,n){var r=this.getOffset(n),i=this.getPadding(n),o=br(sl(e)),a=br(n),s={};return o.top-a.top<i.top&&(s.top=o.top-r.top),o.left-a.left<i.left&&(s.left=o.left-r.left),a.right-o.right<i.right&&(s.right=o.right+r.right),a.bottom-o.bottom<i.bottom&&(s.bottom=o.bottom+r.bottom),Oz(Rt({},a,s))};v_.prototype._expand=function(e,n){typeof n=="string"&&(n=this._elementRegistry.get(n));var r=this._rules.allowed("element.autoResize",{elements:e,target:n});if(r){var i=this._getOptimalBounds(e,n);if(fHn(i,n)){var o=pHn(ag(n,["x","y","width","height"]),i);this.resize(n,i,{autoResize:o});var a=n.parent;a&&this._expand([n],a)}}};v_.prototype.getOffset=function(e){return{top:60,bottom:60,left:100,right:100}};v_.prototype.getPadding=function(e){return{top:2,bottom:2,left:15,right:15}};v_.prototype.resize=function(e,n,r){this._modeling.resizeShape(e,n,null,r)};function fHn(e,n){return e.x!==n.x||e.y!==n.y||e.width!==n.width||e.height!==n.height}function pHn(e,n){var r="";return e=br(e),n=br(n),e.top>n.top&&(r=r.concat("n")),e.right<n.right&&(r=r.concat("w")),e.bottom<n.bottom&&(r=r.concat("s")),e.left>n.left&&(r=r.concat("e")),r}function Hz(e){e.invoke(v_,this)}Hz.$inject=["injector"];Zn(Hz,v_);Hz.prototype.resize=function(e,n,r){Fe(e,"bpmn:Participant")?this._modeling.resizeLane(e,n,null,r):this._modeling.resizeShape(e,n,null,r)};function NL(e){Wp.call(this,e);var n=this;this.addRule("element.autoResize",function(r){return n.canResize(r.elements,r.target)})}NL.$inject=["eventBus"];Zn(NL,Wp);NL.prototype.canResize=function(e,n){return!1};function zz(e,n){NL.call(this,e),this._modeling=n}Zn(zz,NL);zz.$inject=["eventBus","modeling"];zz.prototype.canResize=function(e,n){if(Fe(n.di,"bpmndi:BPMNPlane")||!Fe(n,"bpmn:Participant")&&!Fe(n,"bpmn:Lane")&&!Fe(n,"bpmn:SubProcess"))return!1;var r=!0;return ht(e,function(i){if(Fe(i,"bpmn:Lane")||Ni(i)){r=!1;return}}),r};const hHn={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",Hz],bpmnAutoResizeProvider:["type",zz]};var MAe=1500;function Zet(e,n,r){var i=this,o=r.get("dragging",!1);function a(s){if(!s.hover){var l=s.originalEvent,c=i._findTargetGfx(l),u=c&&e.get(c);c&&u&&(s.stopPropagation(),o.hover({element:u,gfx:c}),o.move(l))}}o&&n.on("drag.start",function(s){n.once("drag.move",MAe,function(l){a(l)})}),function(){var s,l;n.on("element.hover",function(c){s=c.gfx,l=c.element}),n.on("element.hover",MAe,function(c){l&&n.fire("element.out",{element:l,gfx:s})}),n.on("element.out",function(){s=null,l=null})}(),this._findTargetGfx=function(s){var l,c;if(s instanceof MouseEvent)return l=wC(s),c=document.elementFromPoint(l.x,l.y),gHn(c)}}Zet.$inject=["elementRegistry","eventBus","injector"];function gHn(e){return zI(e,"svg, .djs-element",!0)}const mHn={__init__:["hoverFix"],hoverFix:["type",Zet]};var Dx=Math.round,PAe="djs-drag-active";function SE(e){e.preventDefault()}function vHn(e){return typeof TouchEvent<"u"&&e instanceof TouchEvent}function yHn(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function Jet(e,n,r,i){var o={threshold:5,trapClick:!0},a;function s(b){var E=n.viewbox(),w=n._container.getBoundingClientRect();return{x:E.x+(b.x-w.left)/E.scale,y:E.y+(b.y-w.top)/E.scale}}function l(b,E){E=E||a;var w=e.createEvent(Rt({},E.payload,E.data,{isTouch:E.isTouch}));return e.fire("drag."+b,w)===!1?!1:e.fire(E.prefix+"."+b,w)}function c(b){var E=b.filter(function(w){return i.get(w.id)});E.length&&r.select(E)}function u(b,E){var w=a.payload,C=a.displacement,x=a.globalStart,T=wC(b),R=Kh(T,x),O=a.localStart,M=s(T),P=Kh(M,O);if(!a.active&&(E||yHn(R)>a.threshold)){if(Rt(w,{x:Dx(O.x+C.x),y:Dx(O.y+C.y),dx:0,dy:0},{originalEvent:b}),l("start")===!1)return y();a.active=!0,a.keepSelection||(w.previousSelection=r.get(),r.select(null)),a.cursor&&Fz(a.cursor),n.addMarker(n.getRootElement(),PAe)}sJ(b),a.active&&(Rt(w,{x:Dx(M.x+C.x),y:Dx(M.y+C.y),dx:Dx(P.x),dy:Dx(P.y)},{originalEvent:b}),l("move"))}function d(b){var E,w=!0;a.active&&(b&&(a.payload.originalEvent=b,sJ(b)),w=l("end")),w===!1&&l("rejected"),E=_(w!==!0),l("ended",E)}function f(b){_l("Escape",b)&&(SE(b),y())}function p(b){var E;a.active&&(E=_et(e),setTimeout(E,400),SE(b)),d(b)}function h(b){u(b)}function g(b){var E=a.payload;E.hoverGfx=b.gfx,E.hover=b.element,l("hover")}function v(b){l("out");var E=a.payload;E.hoverGfx=null,E.hover=null}function y(b){var E;if(a){var w=a.active;w&&l("cancel"),E=_(b),w&&l("canceled",E)}}function _(b){var E,w;l("cleanup"),yet(),a.trapClick?w=p:w=d,Ur.unbind(document,"mousemove",u),Ur.unbind(document,"dragstart",SE),Ur.unbind(document,"selectstart",SE),Ur.unbind(document,"mousedown",w,!0),Ur.unbind(document,"mouseup",w,!0),Ur.unbind(document,"keyup",f),Ur.unbind(document,"touchstart",h,!0),Ur.unbind(document,"touchcancel",y,!0),Ur.unbind(document,"touchmove",u,!0),Ur.unbind(document,"touchend",d,!0),e.off("element.hover",g),e.off("element.out",v),n.removeMarker(n.getRootElement(),PAe);var C=a.payload.previousSelection;return b!==!1&&C&&!r.get().length&&c(C),E=a,a=null,E}function S(b,E,w,C){a&&y(!1),typeof E=="string"&&(C=w,w=E,E=null),C=Rt({},o,C||{});var x=C.data||{},T,R,O,M,P;C.trapClick?M=p:M=d,b?(T=YI(b)||b,R=wC(b),sJ(b),T.type==="dragstart"&&SE(T)):(T=null,R={x:0,y:0}),O=s(R),E||(E=O),P=vHn(T),a=Rt({prefix:w,data:x,payload:{},globalStart:R,displacement:Kh(E,O),localStart:O,isTouch:P},C),C.manual||(P?(Ur.bind(document,"touchstart",h,!0),Ur.bind(document,"touchcancel",y,!0),Ur.bind(document,"touchmove",u,!0),Ur.bind(document,"touchend",d,!0)):(Ur.bind(document,"mousemove",u),Ur.bind(document,"dragstart",SE),Ur.bind(document,"selectstart",SE),Ur.bind(document,"mousedown",M,!0),Ur.bind(document,"mouseup",M,!0)),Ur.bind(document,"keyup",f),e.on("element.hover",g),e.on("element.out",v)),l("init"),C.autoActivate&&u(b,!0)}e.on("diagram.destroy",y),this.init=S,this.move=u,this.hover=g,this.out=v,this.end=d,this.cancel=y,this.context=function(){return a},this.setOptions=function(b){Rt(o,b)}}Jet.$inject=["eventBus","canvas","selection","elementRegistry"];const y_={__depends__:[mHn,xg],dragging:["type",Jet]};function JI(e,n,r){this._canvas=r,this._opts=Rt({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},e);var i=this;n.on("drag.move",function(o){var a=i._toBorderPoint(o);i.startScroll(a)}),n.on(["drag.cleanup"],function(){i.stopScroll()})}JI.$inject=["config.autoScroll","eventBus","canvas"];JI.prototype.startScroll=function(e){var n=this._canvas,r=this._opts,i=this,o=n.getContainer().getBoundingClientRect(),a=[e.x,e.y,o.width-e.x,o.height-e.y];this.stopScroll();for(var s=0,l=0,c=0;c<4;c++)_Hn(a[c],r.scrollThresholdOut[c],r.scrollThresholdIn[c])&&(c===0?s=r.scrollStep:c==1?l=r.scrollStep:c==2?s=-r.scrollStep:c==3&&(l=-r.scrollStep));(s!==0||l!==0)&&(n.scroll({dx:s,dy:l}),this._scrolling=setTimeout(function(){i.startScroll(e)},r.scrollRepeatTimeout))};function _Hn(e,n,r){return n<e&&e<r}JI.prototype.stopScroll=function(){clearTimeout(this._scrolling)};JI.prototype.setOptions=function(e){this._opts=Rt({},this._opts,e)};JI.prototype._toBorderPoint=function(e){var n=this._canvas._container.getBoundingClientRect(),r=wC(e.originalEvent);return{x:r.x-n.left,y:r.y-n.top}};const bHn={__depends__:[y_],__init__:["autoScroll"],autoScroll:["type",JI]};function qhe(e){this._commandStack=e.get("commandStack",!1)}qhe.$inject=["injector"];qhe.prototype.allowed=function(e,n){var r=!0,i=this._commandStack;return i&&(r=i.canExecute(e,n)),r===void 0?!0:r};const sv={__init__:["rules"],rules:["type",qhe]};var z4=Math.round,SHn=Math.max;function EHn(e,n){var r=e.x,i=e.y;return[["M",r,i],["m",0,-n],["a",n,n,0,1,1,0,2*n],["a",n,n,0,1,1,0,-2*n],["z"]]}function CHn(e){var n=[];return e.forEach(function(r,i){n.push([i===0?"M":"L",r.x,r.y])}),n}var ett=10;function wHn(e,n){var r,i;for(r=0;i=e[r];r++)if(SL(i,n)<=ett)return{point:e[r],bendpoint:!0,index:r};return null}function xHn(e,n){var r=mJe(EHn(n,ett),CHn(e)),i=r[0],o=r[r.length-1],a;return i?i!==o?i.segment2!==o.segment2?(a=SHn(i.segment2,o.segment2)-1,{point:e[a],bendpoint:!0,index:a}):{point:{x:z4(i.x+o.x)/2,y:z4(i.y+o.y)/2},index:i.segment2}:{point:{x:z4(i.x),y:z4(i.y)},index:i.segment2}:null}function Dae(e,n){return wHn(e,n)||xHn(e,n)}function ttt(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function AAe(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function THn(e,n){return n?{x:Math.cos(n)*e.x-Math.sin(n)*e.y,y:Math.sin(n)*e.x+Math.cos(n)*e.y}:e}function OHn(e,n,r){var i=[{n:e[0]-r[0],lambda:n[0]},{n:e[1]-r[1],lambda:n[1]}],o=i[0].n*n[0]+i[1].n*n[1],a=i[0].lambda*n[0]+i[1].lambda*n[1];return-o/a}function Khe(e,n){var r=n[0],i=n[1],o={x:i.x-r.x,y:i.y-r.y},a=OHn([r.x,r.y],[o.x,o.y],[e.x,e.y]);return{x:r.x+a*o.x,y:r.y+a*o.y}}function ntt(e,n){var r=Khe(e,n),i={x:r.x-e.x,y:r.y-e.y};return ttt(i)}function nj(e,n){return ttt({x:e.x-n.x,y:e.y-n.y})}var rtt="djs-bendpoint",itt="djs-segment-dragger";function RHn(e,n){var r=wC(n),i=e._container.getBoundingClientRect(),o;o={x:i.left,y:i.top};var a=e.viewbox();return{x:a.x+(r.x-o.x)/a.scale,y:a.y+(r.y-o.y)/a.scale}}function kae(e,n,r){var i=RHn(e,r),o=Dae(n,i);return o}function Lae(e,n){var r=pr("g");Ri(r).add(rtt),Ar(e,r);var i=pr("circle");Gn(i,{cx:0,cy:0,r:4}),Ri(i).add("djs-visual"),Ar(r,i);var o=pr("circle");return Gn(o,{cx:0,cy:0,r:10}),Ri(o).add("djs-hit"),Ar(r,o),n&&Ri(r).add(n),r}function IHn(e,n,r,i){var o=pr("g");Ar(e,o);var a=18,s=6,l=11,c=MHn(n,r,i),u=s+l,d=pr("rect");Gn(d,{x:-a/2,y:-s/2,width:a,height:s}),Ri(d).add("djs-visual"),Ar(o,d);var f=pr("rect");return Gn(f,{x:-c/2,y:-u/2,width:c,height:u}),Ri(f).add("djs-hit"),Ar(o,f),NJe(o,i==="v"?90:0),o}function ott(e,n,r){var i=pr("g"),o=_ae(n,r),a=ny(n,r);return Ar(e,i),IHn(i,n,r,a),Ri(i).add(itt),Ri(i).add(a==="h"?"horizontal":"vertical"),Wl(i,o.x,o.y),i}function $ae(e){return Math.abs(Math.round(e*2/3))}function NHn(e,n){var r=PHn(e,n);return Khe(e,r)}function MHn(e,n,r){var i=n.x-e.x,o=n.y-e.y;return $ae(r==="h"?i:o)}function PHn(e,n){for(var r=n.waypoints,i=1/0,o,a=0;a<r.length-1;a++){var s=r[a],l=r[a+1],c=ntt(e,[s,l]);c<i&&(i=c,o=a)}return[r[o],r[o+1]]}function att(e,n,r,i,o){function a(b,E,w){var C=b.index,x=b.point,T,R,O,M,P,k;return C<=0||b.bendpoint?!1:(T=E[C-1],R=E[C],O=_ae(T,R),M=ny(T,R),P=Math.abs(x.x-O.x),k=Math.abs(x.y-O.y),M&&P<=w&&k<=w)}function s(b,E){var w=b.waypoints,C,x,T,R;return E.index<=0||E.bendpoint||(C={start:w[E.index-1],end:w[E.index]},x=ny(C.start,C.end),!x)?null:(x==="h"?T=C.end.x-C.start.x:T=C.end.y-C.start.y,R=$ae(T)/2,R)}function l(b,E){var w=E.waypoints,C=kae(n,w,b),x;if(C)return x=s(E,C),a(C,w,x)?o.start(b,E,C.index):i.start(b,E,C.index,!C.bendpoint),!0}function c(b,E,w){Ur.bind(b,E,function(C){r.triggerMouseEvent(E,C,w),C.stopPropagation()})}function u(b,E){var w=n.getLayer("overlays"),C=Co('.djs-bendpoints[data-element-id="'+rD(b.id)+'"]',w);return!C&&E&&(C=pr("g"),Gn(C,{"data-element-id":b.id}),Ri(C).add("djs-bendpoints"),Ar(w,C),c(C,"mousedown",b),c(C,"click",b),c(C,"dblclick",b)),C}function d(b,E){return Co('.djs-segment-dragger[data-segment-idx="'+b+'"]',E)}function f(b,E){E.waypoints.forEach(function(w,C){var x=Lae(b);Ar(b,x),Wl(x,w.x,w.y)}),Lae(b,"floating")}function p(b,E){for(var w=E.waypoints,C,x,T,R=1;R<w.length;R++)C=w[R-1],x=w[R],ny(C,x)&&(T=ott(b,C,x),Gn(T,{"data-segment-idx":R}),c(T,"mousemove",E))}function h(b){ht(mae("."+rtt,b),function(E){Hs(E)})}function g(b){ht(mae("."+itt,b),function(E){Hs(E)})}function v(b){var E=u(b);return E||(E=u(b,!0),f(E,b),p(E,b)),E}function y(b){var E=u(b);E&&(g(E),h(E),p(E,b),f(E,b))}function _(b,E){var w=Co(".floating",b),C=E.point;w&&Wl(w,C.x,C.y)}function S(b,E,w){var C=d(E.index,b),x=w[E.index-1],T=w[E.index],R=E.point,O=_ae(x,T),M=ny(x,T),P,k;C&&(P=AHn(C),k={x:R.x-O.x,y:R.y-O.y},M==="v"&&(k={x:k.y,y:k.x}),Wl(P,k.x,k.y))}e.on("connection.changed",function(b){y(b.element)}),e.on("connection.remove",function(b){var E=u(b.element);E&&Hs(E)}),e.on("element.marker.update",function(b){var E=b.element,w;E.waypoints&&(w=v(E),b.add?Ri(w).add(b.marker):Ri(w).remove(b.marker))}),e.on("element.mousemove",function(b){var E=b.element,w=E.waypoints,C,x;if(w){if(C=u(E,!0),x=kae(n,w,b.originalEvent),!x)return;_(C,x),x.bendpoint||S(C,x,w)}}),e.on("element.mousedown",function(b){if(vS(b)){var E=b.originalEvent,w=b.element;if(w.waypoints)return l(E,w)}}),e.on("selection.changed",function(b){var E=b.newSelection,w=E[0];w&&w.waypoints&&v(w)}),e.on("element.hover",function(b){var E=b.element;E.waypoints&&(v(E),r.registerEvent(b.gfx,"mousemove","element.mousemove"))}),e.on("element.out",function(b){r.unregisterEvent(b.gfx,"mousemove","element.mousemove")}),e.on("element.updateId",function(b){var E=b.element,w=b.newId;if(E.waypoints){var C=u(E);C&&Gn(C,{"data-element-id":w})}}),this.addHandles=v,this.updateHandles=y,this.getBendpointsContainer=u,this.getSegmentDragger=d}att.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];function AHn(e){return Co(".djs-visual",e)}var DAe=Math.round,kE="reconnectStart",LE="reconnectEnd",RM="updateWaypoints";function Xhe(e,n,r,i,o,a){this._injector=e,this.start=function(s,l,c,u){var d=r.getGraphics(l),f=l.source,p=l.target,h=l.waypoints,g;!u&&c===0?g=kE:!u&&c===h.length-1?g=LE:g=RM;var v=g===RM?"connection.updateWaypoints":"connection.reconnect",y=o.allowed(v,{connection:l,source:f,target:p});y===!1&&(y=o.allowed(v,{connection:l,source:p,target:f})),y!==!1&&i.init(s,"bendpoint.move",{data:{connection:l,connectionGfx:d,context:{allowed:y,bendpointIndex:c,connection:l,source:f,target:p,insert:u,type:g}}})},n.on("bendpoint.move.hover",function(s){var l=s.context,c=l.connection,u=c.source,d=c.target,f=s.hover,p=l.type;l.hover=f;var h;if(f){var g=p===RM?"connection.updateWaypoints":"connection.reconnect";if(h=l.allowed=o.allowed(g,{connection:c,source:p===kE?f:u,target:p===LE?f:d}),h){l.source=p===kE?f:u,l.target=p===LE?f:d;return}h===!1&&(h=l.allowed=o.allowed(g,{connection:c,source:p===LE?f:d,target:p===kE?f:u})),h&&(l.source=p===LE?f:d,l.target=p===kE?f:u)}}),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],function(s){var l=s.context,c=l.type;l.hover=null,l.source=null,l.target=null,c!==RM&&(l.allowed=!1)}),n.on("bendpoint.move.end",function(s){var l=s.context,c=l.allowed,u=l.bendpointIndex,d=l.connection,f=l.insert,p=d.waypoints.slice(),h=l.source,g=l.target,v=l.type,y=l.hints||{},_={x:DAe(s.x),y:DAe(s.y)};if(!c)return!1;v===RM?(f?p.splice(u,0,_):p[u]=_,y.bendpointMove={insert:f,bendpointIndex:u},p=this.cropWaypoints(d,p),a.updateWaypoints(d,OBn(p),y)):(v===kE?(y.docking="source",rj(l)&&(y.docking="target",y.newWaypoints=p.reverse())):v===LE&&(y.docking="target",rj(l)&&(y.docking="source",y.newWaypoints=p.reverse())),a.reconnect(d,h,g,_,y))},this)}Xhe.$inject=["injector","eventBus","canvas","dragging","rules","modeling"];Xhe.prototype.cropWaypoints=function(e,n){var r=this._injector.get("connectionDocking",!1);if(!r)return n;var i=e.waypoints;return e.waypoints=n,e.waypoints=r.getCroppedWaypoints(e),n=e.waypoints,e.waypoints=i,n};function rj(e){var n=e.hover,r=e.source,i=e.target,o=e.type;if(o===kE)return n&&i&&n===i&&r!==i;if(o===LE)return n&&r&&n===r&&r!==i}var DHn="reconnectStart",kHn="reconnectEnd",kAe="updateWaypoints",IM="connect-ok",V4="connect-not-ok",LAe="connect-hover",$Ae="djs-updating",FAe="djs-dragging",BAe=1100;function stt(e,n,r,i){this._injector=n;var o=n.get("connectionPreview",!1);r.on("bendpoint.move.start",function(a){var s=a.context,l=s.bendpointIndex,c=s.connection,u=s.insert,d=c.waypoints,f=d.slice();s.waypoints=d,u&&f.splice(l,0,{x:a.x,y:a.y}),c.waypoints=f;var p=s.draggerGfx=Lae(i.getLayer("overlays"));Ri(p).add("djs-dragging"),i.addMarker(c,FAe),i.addMarker(c,$Ae)}),r.on("bendpoint.move.hover",function(a){var s=a.context,l=s.allowed,c=s.hover,u=s.type;if(c){if(i.addMarker(c,LAe),u===kAe)return;l?(i.removeMarker(c,V4),i.addMarker(c,IM)):l===!1&&(i.removeMarker(c,IM),i.addMarker(c,V4))}}),r.on(["bendpoint.move.out","bendpoint.move.cleanup"],BAe,function(a){var s=a.context,l=s.hover,c=s.target;l&&(i.removeMarker(l,LAe),i.removeMarker(l,c?IM:V4))}),r.on("bendpoint.move.move",function(a){var s=a.context,l=s.allowed,c=s.bendpointIndex,u=s.draggerGfx,d=s.hover,f=s.type,p=s.connection,h=p.source,g=p.target,v=p.waypoints.slice(),y={x:a.x,y:a.y},_=s.hints||{},S={};o&&(_.connectionStart&&(S.connectionStart=_.connectionStart),_.connectionEnd&&(S.connectionEnd=_.connectionEnd),f===DHn?rj(s)?(S.connectionEnd=S.connectionEnd||y,S.source=g,S.target=d||h,v=v.reverse()):(S.connectionStart=S.connectionStart||y,S.source=d||h,S.target=g):f===kHn?rj(s)?(S.connectionStart=S.connectionStart||y,S.source=d||g,S.target=h,v=v.reverse()):(S.connectionEnd=S.connectionEnd||y,S.source=h,S.target=d||g):(S.noCropping=!0,S.noLayout=!0,v[c]=y),f===kAe&&(v=e.cropWaypoints(p,v)),S.waypoints=v,o.drawPreview(s,l,S)),Wl(u,a.x,a.y)},this),r.on(["bendpoint.move.end","bendpoint.move.cancel"],BAe,function(a){var s=a.context,l=s.connection,c=s.draggerGfx,u=s.hover,d=s.target,f=s.waypoints;l.waypoints=f,Hs(c),i.removeMarker(l,$Ae),i.removeMarker(l,FAe),u&&(i.removeMarker(u,IM),i.removeMarker(u,d?IM:V4)),o&&o.cleanUp(s)})}stt.$inject=["bendpointMove","injector","eventBus","canvas"];var jAe="connect-hover",UAe="djs-updating";function HAe(e,n,r){return Qhe(e,n,e[n]+r)}function Qhe(e,n,r){return{x:n==="x"?r:e.x,y:n==="y"?r:e.y}}function LHn(e,n,r,i){var o=Math.max(n[i],r[i]),a=Math.min(n[i],r[i]),s=20,l=Math.min(Math.max(a+s,e[i]),o-s);return Qhe(n,i,l)}function ltt(e){return e==="x"?"y":"x"}function zAe(e,n,r){var i,o;return e.original?e.original:(i=Mr(n),o=ltt(r),Qhe(e,o,i[o]))}function ctt(e,n,r,i,o,a){var s=e.get("connectionDocking",!1);this.start=function(f,p,h){var g,v=r.getGraphics(p),y=h-1,_=h,S=p.waypoints,b=S[y],E=S[_],w=kae(r,S,f),C,x,T;C=ny(b,E),C&&(x=C==="v"?"x":"y",y===0&&(b=zAe(b,p.source,x)),_===S.length-1&&(E=zAe(E,p.target,x)),w?T=w.point:T={x:(b.x+E.x)/2,y:(b.y+E.y)/2},g={connection:p,segmentStartIndex:y,segmentEndIndex:_,segmentStart:b,segmentEnd:E,axis:x,dragPosition:T},i.init(f,T,"connectionSegment.move",{cursor:x==="x"?"resize-ew":"resize-ns",data:{connection:p,connectionGfx:v,context:g}}))};function l(f,p){if(!s)return p;var h=f.waypoints,g;return f.waypoints=p,g=s.getCroppedWaypoints(f),f.waypoints=h,g}function c(f){o.update("connection",f.connection,f.connectionGfx)}function u(f,p,h){var g=f.newWaypoints,v=f.segmentStartIndex+p,y=g[v],_=f.segmentEndIndex+p,S=g[_],b=ltt(f.axis),E=LHn(h,y,S,b);Wl(f.draggerGfx,E.x,E.y)}function d(f,p){var h=0,g=f.filter(function(v,y){return Ehe(f[y-1],f[y+1],v)?(h=y<=p?h-1:h,!1):!0});return{waypoints:g,segmentOffset:h}}n.on("connectionSegment.move.start",function(f){var p=f.context,h=f.connection,g=r.getLayer("overlays");p.originalWaypoints=h.waypoints.slice(),p.draggerGfx=ott(g,p.segmentStart,p.segmentEnd),Ri(p.draggerGfx).add("djs-dragging"),r.addMarker(h,UAe)}),n.on("connectionSegment.move.move",function(f){var p=f.context,h=p.connection,g=p.segmentStartIndex,v=p.segmentEndIndex,y=p.segmentStart,_=p.segmentEnd,S=p.axis,b=p.originalWaypoints.slice(),E=HAe(y,S,f["d"+S]),w=HAe(_,S,f["d"+S]),C=b.length,x=0;b[g]=E,b[v]=w;var T,R;g<2&&(T=_c(h.source,E),g===1?T==="intersect"&&(b.shift(),b[0]=E,x--):T!=="intersect"&&(b.unshift(y),x++)),v>C-3&&(R=_c(h.target,w),v===C-2?R==="intersect"&&(b.pop(),b[b.length-1]=w):R!=="intersect"&&b.push(_)),p.newWaypoints=h.waypoints=l(h,b),u(p,x,f),p.newSegmentStartIndex=g+x,c(f)}),n.on("connectionSegment.move.hover",function(f){f.context.hover=f.hover,r.addMarker(f.hover,jAe)}),n.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],function(f){var p=f.context.hover;p&&r.removeMarker(p,jAe)}),n.on("connectionSegment.move.cleanup",function(f){var p=f.context,h=p.connection;p.draggerGfx&&Hs(p.draggerGfx),r.removeMarker(h,UAe)}),n.on(["connectionSegment.move.cancel","connectionSegment.move.end"],function(f){var p=f.context,h=p.connection;h.waypoints=p.originalWaypoints,c(f)}),n.on("connectionSegment.move.end",function(f){var p=f.context,h=p.connection,g=p.newWaypoints,v=p.newSegmentStartIndex;g=g.map(function(w){return{original:w.original,x:Math.round(w.x),y:Math.round(w.y)}});var y=d(g,v),_=y.waypoints,S=l(h,_),b=y.segmentOffset,E={segmentMove:{segmentStartIndex:p.segmentStartIndex,newSegmentStartIndex:v+b}};a.updateWaypoints(h,S,E)})}ctt.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var $Hn=Math.abs,VAe=Math.round;function FHn(e,n,r){r=r===void 0?10:r;var i,o;for(i=0;i<n.length;i++)if(o=n[i],$Hn(o-e)<=r)return o}function utt(e){return{x:e.x,y:e.y}}function dtt(e){return{x:e.x+e.width,y:e.y+e.height}}function mp(e,n){return!e||isNaN(e.x)||isNaN(e.y)?n:{x:VAe(e.x+e.width/2),y:VAe(e.y+e.height/2)}}function pR(e,n){var r=e.snapped;return r?typeof n=="string"?r[n]:r.x&&r.y:!1}function _s(e,n,r){if(typeof n!="string")throw new Error("axis must be in [x, y]");if(typeof r!="number"&&r!==!1)throw new Error("value must be Number or false");var i,o=e[n],a=e.snapped=e.snapped||{};return r===!1?a[n]=!1:(a[n]=!0,i=r-o,e[n]+=i,e["d"+n]+=i),o}function ftt(e){return e.children||[]}var BHn=Math.abs,GAe=Math.round,fJ=10;function ptt(e){function n(a,s){if(zr(a)){for(var l=a.length;l--;)if(BHn(a[l]-s)<=fJ)return a[l]}else{a=+a;var c=s%a;if(c<fJ)return s-c;if(c>a-fJ)return s-c+a}return s}function r(a,s){if(a.waypoints)return NHn(s,a);if(a.width)return{x:GAe(a.width/2+a.x),y:GAe(a.height/2+a.y)}}function i(a){var s=a.context,l=s.snapPoints,c=s.connection,u=c.waypoints,d=s.segmentStart,f=s.segmentStartIndex,p=s.segmentEnd,h=s.segmentEndIndex,g=s.axis;if(l)return l;var v=[u[f-1],d,p,u[h+1]];return f<2&&v.unshift(r(c.source,a)),h>u.length-3&&v.unshift(r(c.target,a)),s.snapPoints=l={horizontal:[],vertical:[]},ht(v,function(y){y&&(y=y.original||y,g==="y"&&l.horizontal.push(y.y),g==="x"&&l.vertical.push(y.x))}),l}e.on("connectionSegment.move.move",1500,function(a){var s=i(a),l=a.x,c=a.y,u,d;if(s){u=n(s.vertical,l),d=n(s.horizontal,c);var f=l-u,p=c-d;Rt(a,{dx:a.dx-f,dy:a.dy-p,x:u,y:d}),(f||s.vertical.indexOf(l)!==-1)&&_s(a,"x",u),(p||s.horizontal.indexOf(c)!==-1)&&_s(a,"y",d)}});function o(a){var s=a.snapPoints,l=a.connection.waypoints,c=a.bendpointIndex;if(s)return s;var u=[l[c-1],l[c+1]];return a.snapPoints=s={horizontal:[],vertical:[]},ht(u,function(d){d&&(d=d.original||d,s.horizontal.push(d.y),s.vertical.push(d.x))}),s}e.on(["connect.hover","connect.move","connect.end"],1500,function(a){var s=a.context,l=s.hover,c=l&&r(l,a);!wo(l)||!c||!c.x||!c.y||(_s(a,"x",c.x),_s(a,"y",c.y))}),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,function(a){var s=a.context,l=o(s),c=s.hover,u=c&&r(c,a),d=a.x,f=a.y,p,h;if(l){p=n(u?l.vertical.concat([u.x]):l.vertical,d),h=n(u?l.horizontal.concat([u.y]):l.horizontal,f);var g=d-p,v=f-h;Rt(a,{dx:a.dx-g,dy:a.dy-v,x:a.x-g,y:a.y-v}),(g||l.vertical.indexOf(d)!==-1)&&_s(a,"x",p),(v||l.horizontal.indexOf(f)!==-1)&&_s(a,"y",h)}})}ptt.$inject=["eventBus"];const jHn={__depends__:[y_,sv],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",att],bendpointMove:["type",Xhe],bendpointMovePreview:["type",stt],connectionSegmentMove:["type",ctt],bendpointSnapping:["type",ptt]};function htt(e,n,r,i){function o(s,l){return i.allowed("connection.create",{source:s,target:l})}function a(s,l){return o(l,s)}e.on("connect.hover",function(s){var l=s.context,c=l.start,u=s.hover,d;if(l.hover=u,d=l.canExecute=o(c,u),!eD(d)){if(d!==!1){l.source=c,l.target=u;return}d=l.canExecute=a(c,u),!eD(d)&&d!==!1&&(l.source=u,l.target=c)}}),e.on(["connect.out","connect.cleanup"],function(s){var l=s.context;l.hover=null,l.source=null,l.target=null,l.canExecute=!1}),e.on("connect.end",function(s){var l=s.context,c=l.canExecute,u=l.connectionStart,d={x:s.x,y:s.y},f=l.source,p=l.target;if(!c)return!1;var h=null,g={connectionStart:Fae(l)?d:u,connectionEnd:Fae(l)?u:d};Rl(c)&&(h=c),l.connection=r.connect(f,p,h,g)}),this.start=function(s,l,c,u){Rl(c)||(u=c,c=Mr(l)),n.init(s,"connect",{autoActivate:u,data:{shape:l,context:{start:l,connectionStart:c}}})}}htt.$inject=["eventBus","dragging","modeling","rules"];function Fae(e){var n=e.hover,r=e.source,i=e.target;return n&&r&&n===r&&r!==i}var UHn=1100,HHn=900,WAe="connect-ok",YAe="connect-not-ok";function gtt(e,n,r){var i=e.get("connectionPreview",!1);i&&n.on("connect.move",function(o){var a=o.context,s=a.canExecute,l=a.hover,c=a.source,u=a.start,d=a.startPosition,f=a.target,p=a.connectionStart||d,h=a.connectionEnd||{x:o.x,y:o.y},g=p,v=h;Fae(a)&&(g=h,v=p),i.drawPreview(a,s,{source:c||u,target:f||l,connectionStart:g,connectionEnd:v})}),n.on("connect.hover",HHn,function(o){var a=o.context,s=o.hover,l=a.canExecute;l!==null&&r.addMarker(s,l?WAe:YAe)}),n.on(["connect.out","connect.cleanup"],UHn,function(o){var a=o.hover;a&&(r.removeMarker(a,WAe),r.removeMarker(a,YAe))}),i&&n.on("connect.cleanup",function(o){i.cleanUp(o.context)})}gtt.$inject=["injector","eventBus","canvas"];const Zhe={__depends__:[xg,sv,y_],__init__:["connectPreview"],connect:["type",htt],connectPreview:["type",gtt]};var zHn="djs-dragger";function __(e,n,r,i){this._canvas=n,this._graphicsFactory=r,this._elementFactory=i,this._connectionDocking=e.get("connectionDocking",!1),this._layouter=e.get("layouter",!1)}__.$inject=["injector","canvas","graphicsFactory","elementFactory"];__.prototype.drawPreview=function(e,n,r){r=r||{};var i=e.connectionPreviewGfx,o=e.getConnection,a=r.source,s=r.target,l=r.waypoints,c=r.connectionStart,u=r.connectionEnd,d=r.noLayout,f=r.noCropping,p=r.noNoop,h,g=this;if(i||(i=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),wz(i),o||(o=e.getConnection=VHn(function(v,y,_){return g.getConnection(v,y,_)})),n&&(h=o(n,a,s)),!h){!p&&this.drawNoopPreview(i,r);return}h.waypoints=l||[],this._layouter&&!d&&(h.waypoints=this._layouter.layoutConnection(h,{source:a,target:s,connectionStart:c,connectionEnd:u,waypoints:r.waypoints||h.waypoints})),(!h.waypoints||!h.waypoints.length)&&(h.waypoints=[a?Mr(a):c,s?Mr(s):u]),this._connectionDocking&&(a||s)&&!f&&(h.waypoints=this._connectionDocking.getCroppedWaypoints(h,a,s)),this._graphicsFactory.drawConnection(i,h,{stroke:"var(--element-dragger-color)"})};__.prototype.drawNoopPreview=function(e,n){var r=n.source,i=n.target,o=n.connectionStart||Mr(r),a=n.connectionEnd||Mr(i),s=this.cropWaypoints(o,a,r,i),l=this.createNoopConnection(s[0],s[1]);Ar(e,l)};__.prototype.cropWaypoints=function(e,n,r,i){var o=this._graphicsFactory,a=r&&o.getShapePath(r),s=i&&o.getShapePath(i),l=o.getConnectionPath({waypoints:[e,n]});return e=r&&Sae(a,l,!0)||e,n=i&&Sae(s,l,!1)||n,[e,n]};__.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&Hs(e.connectionPreviewGfx)};__.prototype.getConnection=function(e){var n=GHn(e);return this._elementFactory.createConnection(n)};__.prototype.createConnectionPreviewGfx=function(){var e=pr("g");return Gn(e,{pointerEvents:"none"}),Ri(e).add(zHn),Ar(this._canvas.getActiveLayer(),e),e};__.prototype.createNoopConnection=function(e,n){return xz([e,n],{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"})};function VHn(e){var n={};return function(r){var i=JSON.stringify(r),o=n[i];return o||(o=n[i]=e.apply(null,arguments)),o}}function GHn(e){return Rl(e)?e:{}}const WHn={__init__:["connectionPreview"],connectionPreview:["type",__]},YHn=new OL("ps");var qHn=["marker-start","marker-mid","marker-end"],KHn=["circle","ellipse","line","path","polygon","polyline","path","rect"];function _S(e,n,r,i){this._elementRegistry=e,this._canvas=r,this._styles=i}_S.$inject=["elementRegistry","eventBus","canvas","styles"];_S.prototype.cleanUp=function(){console.warn("PreviewSupport#cleanUp is deprecated and will be removed in future versions. You do not need to manually clean up previews anymore. cf. https://github.com/bpmn-io/diagram-js/pull/906")};_S.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)};_S.prototype.addDragger=function(e,n,r,i="djs-dragger"){r=r||this.getGfx(e);var o=sJe(r),a=r.getBoundingClientRect();return this._cloneMarkers($1(o),i),Gn(o,this._styles.cls(i,[],{x:a.top,y:a.left})),Ar(n,o),Gn(o,"data-preview-support-element-id",e.id),o};_S.prototype.addFrame=function(e,n){var r=pr("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return Ar(n,r),Gn(r,"data-preview-support-element-id",e.id),r};_S.prototype._cloneMarkers=function(e,n="djs-dragger",r=e){var i=this;e.childNodes&&e.childNodes.forEach(o=>{i._cloneMarkers(o,n,r)}),JHn(e)&&qHn.forEach(function(o){if(Gn(e,o)){var a=XHn(e,o,i._canvas.getContainer());a&&i._cloneMarker(r,e,a,o,n)}})};_S.prototype._cloneMarker=function(e,n,r,i,o="djs-dragger"){var a=[r.id,o,YHn.next()].join("-"),s=Co("marker#"+r.id,e);e=e||this._canvas._svg;var l=s||sJe(r);l.id=a,Ri(l).add(o);var c=Co(":scope > defs",e);c||(c=pr("defs"),Ar(e,c)),Ar(c,l);var u=ZHn(l.id);Gn(n,i,u)};function XHn(e,n,r){var i=QHn(Gn(e,n));return Co("marker#"+i,r||document)}function QHn(e){return e.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]}function ZHn(e){return"url(#"+e+")"}function JHn(e){return KHn.indexOf(e.nodeName)!==-1}const eN={__init__:["previewSupport"],previewSupport:["type",_S]},G4="complex-preview";class mtt{constructor(n,r,i){this._canvas=n,this._graphicsFactory=r,this._previewSupport=i,this._markers=[]}create(n){this.cleanUp();const{created:r=[],moved:i=[],removed:o=[],resized:a=[]}=n,s=this._canvas.getLayer(G4);r.filter(l=>!ezn(l)).forEach(l=>{let c;wo(l)?(c=this._graphicsFactory._createContainer("connection",pr("g")),this._graphicsFactory.drawConnection($1(c),l)):(c=this._graphicsFactory._createContainer("shape",pr("g")),this._graphicsFactory.drawShape($1(c),l),Wl(c,l.x,l.y)),this._previewSupport.addDragger(l,s,c)}),i.forEach(({element:l,delta:c})=>{this._previewSupport.addDragger(l,s,void 0,"djs-dragging"),this._canvas.addMarker(l,"djs-element-hidden"),this._markers.push([l,"djs-element-hidden"]);const u=this._previewSupport.addDragger(l,s);wo(l)?Wl(u,c.x,c.y):Wl(u,l.x+c.x,l.y+c.y)}),o.forEach(l=>{this._previewSupport.addDragger(l,s,void 0,"djs-dragging"),this._canvas.addMarker(l,"djs-element-hidden"),this._markers.push([l,"djs-element-hidden"])}),a.forEach(({shape:l,bounds:c})=>{this._canvas.addMarker(l,"djs-hidden"),this._markers.push([l,"djs-hidden"]),this._previewSupport.addDragger(l,s,void 0,"djs-dragging");const u=this._graphicsFactory._createContainer("shape",pr("g"));this._graphicsFactory.drawShape($1(u),l,{width:c.width,height:c.height}),Wl(u,c.x,c.y),this._previewSupport.addDragger(l,s,u)})}cleanUp(){wz(this._canvas.getLayer(G4)),this._markers.forEach(([n,r])=>this._canvas.removeMarker(n,r)),this._markers=[]}show(){this._canvas.showLayer(G4)}hide(){this._canvas.hideLayer(G4)}}mtt.$inject=["canvas","graphicsFactory","previewSupport"];function ezn(e){return e.hidden}const tzn={__depends__:[eN],__init__:["complexPreview"],complexPreview:["type",mtt]};var Jhe=["top","bottom","left","right"],W4=10;function ege(e,n){vn.call(this,e),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],function(o){var a=o.context,s=a.connection,l=s.source,c=s.target,u=a.hints||{};u.createElementsBehavior!==!1&&(r(l),r(c))}),this.postExecuted(["label.create"],function(o){var a=o.context,s=a.shape,l=a.hints||{};l.createElementsBehavior!==!1&&r(s.labelTarget)}),this.postExecuted(["elements.create"],function(o){var a=o.context,s=a.elements,l=a.hints||{};l.createElementsBehavior!==!1&&s.forEach(function(c){r(c)})});function r(o){if(Mz(o)&&!wo(o)){var a=izn(o);a&&i(o,a)}}function i(o,a){var s=Mr(o),l=o.label,c=Mr(l);if(l.parent){var u=br(o),d;switch(a){case"top":d={x:s.x,y:u.top-W4-l.height/2};break;case"left":d={x:u.left-W4-l.width/2,y:s.y};break;case"bottom":d={x:s.x,y:u.bottom+W4+l.height/2};break;case"right":d={x:u.right+W4+l.width/2,y:s.y};break}var f=Kh(d,c);n.moveShape(l,f)}}}Zn(ege,vn);ege.$inject=["eventBus","modeling"];function nzn(e){var n=e.host,r=Mr(e),i=_c(r,n),o;i.indexOf("-")>=0?o=i.split("-"):o=[i];var a=Jhe.filter(function(s){return o.indexOf(s)===-1});return a}function rzn(e){var n=Mr(e),r=[].concat(e.incoming.map(function(i){return i.waypoints[i.waypoints.length-2]}),e.outgoing.map(function(i){return i.waypoints[1]})).map(function(i){return vtt(n,i)});return r}function izn(e){var n=Mr(e.label),r=Mr(e),i=vtt(r,n);if(ozn(i)){var o=rzn(e);if(e.host){var a=nzn(e);o=o.concat(a)}var s=Jhe.filter(function(l){return o.indexOf(l)===-1});if(s.indexOf(i)===-1)return s[0]}}function vtt(e,n){return _c(n,e,5)}function ozn(e){return Jhe.indexOf(e)!==-1}function tge(e){vn.call(this,e),this.preExecute("shape.append",function(n){var r=n.source,i=n.shape;n.position||(Fe(i,"bpmn:TextAnnotation")?n.position={x:r.x+r.width/2+75,y:r.y-50-i.height/2}:n.position={x:r.x+r.width+80+i.width/2,y:r.y+r.height/2})},!0)}Zn(tge,vn);tge.$inject=["eventBus"];function nge(e,n){e.invoke(vn,this),this.postExecute("shape.move",function(r){var i=r.newParent,o=r.shape,a=si(o.incoming.concat(o.outgoing),function(s){return Fe(s,"bpmn:Association")});ht(a,function(s){n.moveConnection(s,{x:0,y:0},i)})},!0)}Zn(nge,vn);nge.$inject=["injector","modeling"];var qAe=500;function Vz(e,n){n.invoke(vn,this),this._bpmnReplace=e;var r=this;this.postExecuted("elements.create",qAe,function(i){var o=i.elements;o=o.filter(function(a){var s=a.host;return KAe(a,s)}),o.length===1&&o.map(function(a){return o.indexOf(a)}).forEach(function(a){var s=o[a];i.elements[a]=r._replaceShape(o[a],s)})},!0),this.preExecute("elements.move",qAe,function(i){var o=i.shapes,a=i.newHost;if(o.length===1){var s=o[0];KAe(s,a)&&(i.shapes=[r._replaceShape(s,a)])}},!0)}Vz.$inject=["bpmnReplace","injector"];Zn(Vz,vn);Vz.prototype._replaceShape=function(e,n){var r=azn(e),i={type:"bpmn:BoundaryEvent",host:n};return r&&(i.eventDefinitionType=r.$type),this._bpmnReplace.replaceElement(e,i,{layoutConnection:!1})};function azn(e){var n=In(e),r=n.eventDefinitions;return r&&r[0]}function KAe(e,n){return!Ni(e)&&ii(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!n}function rge(e,n){vn.call(this,e);function r(i){return si(i.attachers,function(o){return Fe(o,"bpmn:BoundaryEvent")})}this.postExecute("connection.create",function(i){var o=i.context.source,a=i.context.target,s=r(a);Fe(o,"bpmn:EventBasedGateway")&&Fe(a,"bpmn:ReceiveTask")&&s.length>0&&n.removeElements(s)}),this.postExecute("connection.reconnect",function(i){var o=i.context.oldSource,a=i.context.newSource;Fe(o,"bpmn:Gateway")&&Fe(a,"bpmn:EventBasedGateway")&&ht(a.outgoing,function(s){var l=s.target,c=r(l);Fe(l,"bpmn:ReceiveTask")&&c.length>0&&n.removeElements(c)})})}rge.$inject=["eventBus","modeling"];Zn(rge,vn);function ige(e,n,r){vn.call(this,e),this.preExecute("shape.replace",l,!0),this.postExecuted("shape.replace",c,!0),this.preExecute("connection.create",o,!0),this.postExecuted("connection.delete",i,!0),this.postExecuted("connection.reconnect",a,!0),this.postExecuted("element.updateProperties",s,!0);function i(y){const _=y.source,S=y.target;kx(_)&&NM(S)&&d(S)}function o(y){const _=y.connection,S=y.source,b=y.target;kx(S)&&Y4(b)&&(u(b),p(S,[_]))}function a(y){const _=y.newTarget,S=y.oldSource,b=y.oldTarget;if(b!==_){const E=S;NM(b)&&d(b),kx(E)&&Y4(_)&&u(_)}}function s(y){const{element:_}=y;NM(_)?(f(_),h(_)):Y4(_)&&g(_)}function l(y){const{newData:_,oldShape:S}=y;if(kx(y.oldShape)&&_.eventDefinitionType!=="bpmn:CompensateEventDefinition"||_.type!=="bpmn:BoundaryEvent"){const b=S.outgoing.find(({target:E})=>NM(E));b&&b.target&&(y._connectionTarget=b.target)}else if(!kx(y.oldShape)&&_.eventDefinitionType==="bpmn:CompensateEventDefinition"&&_.type==="bpmn:BoundaryEvent"){const b=S.outgoing.find(({target:E})=>Y4(E));b&&b.target&&(y._connectionTarget=b.target),v(S)}}function c(y){const{_connectionTarget:_,newShape:S}=y;_&&n.connect(S,_)}function u(y){n.updateProperties(y,{isForCompensation:!0})}function d(y){n.updateProperties(y,{isForCompensation:void 0})}function f(y){for(const _ of y.incoming)r.canConnect(_.source,y)||n.removeConnection(_);for(const _ of y.outgoing)r.canConnect(y,_.target)||n.removeConnection(_)}function p(y,_){y.outgoing.filter(E=>Fe(E,"bpmn:Association")).filter(E=>NM(E.target)&&!_.includes(E)).forEach(E=>n.removeConnection(E))}function h(y){const _=y.attachers.slice();_.length&&n.removeElements(_)}function g(y){const _=y.incoming.filter(S=>kx(S.source));n.removeElements(_)}function v(y){const _=y.outgoing.filter(S=>Fe(S,"bpmn:SequenceFlow"));n.removeElements(_)}}Zn(ige,vn);ige.$inject=["eventBus","modeling","bpmnRules"];function NM(e){const n=In(e);return n&&n.get("isForCompensation")}function kx(e){return e&&Fe(e,"bpmn:BoundaryEvent")&&WI(e,"bpmn:CompensateEventDefinition")}function Y4(e){return e&&Fe(e,"bpmn:Activity")&&!zc(e)}function oge(e){e.invoke(vn,this),this.preExecute("shape.create",1500,function(n){var r=n.context,i=r.parent,o=r.shape;Fe(i,"bpmn:Lane")&&!Fe(o,"bpmn:Lane")&&(r.parent=fR(i,"bpmn:Participant"))})}oge.$inject=["injector"];Zn(oge,vn);function age(e,n){vn.call(this,e),this.preExecute("shape.create",function(r){var i=r.context,o=i.shape;if(Fe(o,"bpmn:DataObjectReference")&&o.type!=="label"){var a=n.create("bpmn:DataObject");o.businessObject.dataObjectRef=a}})}age.$inject=["eventBus","bpmnFactory"];Zn(age,vn);var Bae=20,jae=20,ytt=30,q4=2e3;function sge(e,n,r){vn.call(this,n),n.on(["create.start","shape.move.start"],q4,function(o){var a=o.context,s=a.shape,l=e.getRootElement();if(!(!Fe(s,"bpmn:Participant")||!Fe(l,"bpmn:Process")||!l.children.length)){var c=l.children.filter(function(f){return!Fe(f,"bpmn:Group")&&!Ni(f)&&!wo(f)});if(c.length){var u=sl(c),d=szn(s,u);Rt(s,d),a.createConstraints=lzn(s,u)}}}),n.on("create.start",q4,function(o){var a=o.context,s=a.shape,l=e.getRootElement(),c=e.getGraphics(l);function u(d){d.element=l,d.gfx=c}Fe(s,"bpmn:Participant")&&Fe(l,"bpmn:Process")&&(n.on("element.hover",q4,u),n.once("create.cleanup",function(){n.off("element.hover",u)}))});function i(){var o=e.getRootElement();return Fe(o,"bpmn:Collaboration")?o:r.makeCollaboration()}this.preExecute("elements.create",q4,function(o){var a=o.elements,s=o.parent,l=czn(a),c;l&&Fe(s,"bpmn:Process")&&(o.parent=i(),c=o.hints=o.hints||{},c.participant=l,c.process=s,c.processRef=In(l).get("processRef"))},!0),this.preExecute("shape.create",function(o){var a=o.parent,s=o.shape;Fe(s,"bpmn:Participant")&&Fe(a,"bpmn:Process")&&(o.parent=i(),o.process=a,o.processRef=In(s).get("processRef"))},!0),this.execute("shape.create",function(o){var a=o.hints||{},s=o.process||a.process,l=o.shape,c=a.participant;s&&(!c||l===c)&&In(l).set("processRef",In(s))},!0),this.revert("shape.create",function(o){var a=o.hints||{},s=o.process||a.process,l=o.processRef||a.processRef,c=o.shape,u=a.participant;s&&(!u||c===u)&&In(c).set("processRef",l)},!0),this.postExecute("shape.create",function(o){var a=o.hints||{},s=o.process||o.hints.process,l=o.shape,c=a.participant;if(s){var u=s.children.slice();c?l===c&&r.moveElements(u,{x:0,y:0},c):r.moveElements(u,{x:0,y:0},l)}},!0)}sge.$inject=["canvas","eventBus","modeling"];Zn(sge,vn);function szn(e,n){n={width:n.width+Bae*2+ytt,height:n.height+jae*2};var r=Math.max(e.width,n.width),i=Math.max(e.height,n.height);return{x:-r/2,y:-i/2,width:r,height:i}}function lzn(e,n){return n=br(n),{bottom:n.top+e.height/2-jae,left:n.right-e.width/2+Bae,top:n.bottom-e.height/2+jae,right:n.left+e.width/2-Bae-ytt}}function czn(e){return ki(e,function(n){return Fe(n,"bpmn:Participant")})}var XAe="__targetRef_placeholder";function lge(e,n){vn.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],QAe(a)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],QAe(a));function r(s,l,c){var u=s.get("dataInputAssociations");return ki(u,function(d){return d!==c&&d.targetRef===l})}function i(s,l){var c=s.get("properties"),u=ki(c,function(d){return d.name===XAe});return!u&&l&&(u=n.create("bpmn:Property",{name:XAe}),Ks(c,u)),u}function o(s,l){var c=i(s);c&&(r(s,c,l)||Cs(s.get("properties"),c))}function a(s){var l=s.context,c=l.connection,u=c.businessObject,d=c.target,f=d&&d.businessObject,p=l.newTarget,h=p&&p.businessObject,g=l.oldTarget||l.target,v=g&&g.businessObject,y=c.businessObject,_;v&&v!==f&&o(v,u),h&&h!==f&&o(h,u),f?(_=i(f,!0),y.targetRef=_):y.targetRef=null}}lge.$inject=["eventBus","bpmnFactory"];Zn(lge,vn);function QAe(e){return function(n){var r=n.context,i=r.connection;if(Fe(i,"bpmn:DataInputAssociation"))return e(n)}}function Gz(e){this._bpmnUpdater=e}Gz.$inject=["bpmnUpdater"];Gz.prototype.execute=function(e){var n=e.dataStoreBo,r=e.dataStoreDi,i=e.newSemanticParent,o=e.newDiParent;return e.oldSemanticParent=n.$parent,e.oldDiParent=r.$parent,this._bpmnUpdater.updateSemanticParent(n,i),this._bpmnUpdater.updateDiParent(r,o),[]};Gz.prototype.revert=function(e){var n=e.dataStoreBo,r=e.dataStoreDi,i=e.oldSemanticParent,o=e.oldDiParent;return this._bpmnUpdater.updateSemanticParent(n,i),this._bpmnUpdater.updateDiParent(r,o),[]};function cge(e,n,r,i){vn.call(this,i),n.registerHandler("dataStore.updateContainment",Gz);function o(){return r.filter(function(l){return Fe(l,"bpmn:Participant")&&In(l).processRef})[0]}function a(l){return l.children.filter(function(c){return Fe(c,"bpmn:DataStoreReference")&&!c.labelTarget})}function s(l,c){var u=l.businessObject||l;if(c=c||o(),c){var d=c.businessObject||c;n.execute("dataStore.updateContainment",{dataStoreBo:u,dataStoreDi:Ii(l),newSemanticParent:d.processRef||d,newDiParent:Ii(c)})}}this.preExecute("shape.create",function(l){var c=l.context,u=c.shape;Fe(u,"bpmn:DataStoreReference")&&u.type!=="label"&&(c.hints||(c.hints={}),c.hints.autoResize=!1)}),this.preExecute("elements.move",function(l){var c=l.context,u=c.shapes,d=u.filter(function(f){return Fe(f,"bpmn:DataStoreReference")});d.length&&(c.hints||(c.hints={}),c.hints.autoResize=u.filter(function(f){return!Fe(f,"bpmn:DataStoreReference")}))}),this.postExecute("shape.create",function(l){var c=l.context,u=c.shape,d=u.parent;Fe(u,"bpmn:DataStoreReference")&&u.type!=="label"&&Fe(d,"bpmn:Collaboration")&&s(u)}),this.postExecute("shape.move",function(l){var c=l.context,u=c.shape,d=c.oldParent,f=u.parent;if(!Fe(d,"bpmn:Collaboration")&&Fe(u,"bpmn:DataStoreReference")&&u.type!=="label"&&Fe(f,"bpmn:Collaboration")){var p=Fe(d,"bpmn:Participant")?d:dzn(d,"bpmn:Participant");s(u,p)}}),this.postExecute("shape.delete",function(l){var c=l.context,u=c.shape,d=e.getRootElement();ii(u,["bpmn:Participant","bpmn:SubProcess"])&&Fe(d,"bpmn:Collaboration")&&a(d).filter(function(f){return uzn(f,u)}).forEach(function(f){s(f)})}),this.postExecute("canvas.updateRoot",function(l){var c=l.context,u=c.oldRoot,d=c.newRoot,f=a(u);f.forEach(function(p){Fe(d,"bpmn:Process")&&s(p,d)})})}cge.$inject=["canvas","commandStack","elementRegistry","eventBus"];Zn(cge,vn);function uzn(e,n){for(var r=e.businessObject||e,i=n.businessObject||n;r.$parent;){if(r.$parent===i.processRef||i)return!0;r=r.$parent}return!1}function dzn(e,n){for(;e.parent;){if(Fe(e.parent,n))return e.parent;e=e.parent}}var ij=Math.max,oj=Math.min,fzn=20;function _tt(e,n){return{top:e.top-n.top,right:e.right-n.right,bottom:e.bottom-n.bottom,left:e.left-n.left}}function pzn(e,n,r){var i=r.x,o=r.y,a={x:e.x,y:e.y,width:e.width,height:e.height};return n.indexOf("n")!==-1?(a.y=e.y+o,a.height=e.height-o):n.indexOf("s")!==-1&&(a.height=e.height+o),n.indexOf("e")!==-1?a.width=e.width+i:n.indexOf("w")!==-1&&(a.x=e.x+i,a.width=e.width-i),a}function hzn(e,n){return{x:e.x+(n.left||0),y:e.y+(n.top||0),width:e.width-(n.left||0)+(n.right||0),height:e.height-(n.top||0)+(n.bottom||0)}}function K4(e,n,r){var i=n[e],o=r.min&&r.min[e],a=r.max&&r.max[e];return Nr(o)&&(i=(/top|left/.test(e)?oj:ij)(i,o)),Nr(a)&&(i=(/top|left/.test(e)?ij:oj)(i,a)),i}function gzn(e,n){if(!n)return e;var r=br(e);return Oz({top:K4("top",r,n),right:K4("right",r,n),bottom:K4("bottom",r,n),left:K4("left",r,n)})}function mzn(e,n,r,i){var o=br(n),a={top:/n/.test(e)?o.bottom-r.height:o.top,left:/w/.test(e)?o.right-r.width:o.left,bottom:/s/.test(e)?o.top+r.height:o.bottom,right:/e/.test(e)?o.left+r.width:o.right},s=i?br(i):a,l={top:oj(a.top,s.top),left:oj(a.left,s.left),bottom:ij(a.bottom,s.bottom),right:ij(a.right,s.right)};return Oz(l)}function MM(e,n){return typeof e<"u"?e:fzn}function vzn(e,n){var r,i,o,a;return typeof n=="object"?(r=MM(n.left),i=MM(n.right),o=MM(n.top),a=MM(n.bottom)):r=i=o=a=MM(n),{x:e.x-r,y:e.y-o,width:e.width+r+i,height:e.height+o+a}}function yzn(e){return!(e.waypoints||e.type==="label")}function btt(e,n){var r;if(e.length===void 0?r=si(e.children,yzn):r=e,r.length)return vzn(sl(r),n)}var q_=Math.abs;function _zn(e,n){return _tt(br(n),br(e))}var bzn=["bpmn:Participant","bpmn:Process","bpmn:SubProcess"],rp=30;function Wz(e,n){return n=n||[],e.children.filter(function(r){Fe(r,"bpmn:Lane")&&(Wz(r,n),n.push(r))}),n}function bS(e){return e.children.filter(function(n){return Fe(n,"bpmn:Lane")})}function cp(e){return fR(e,bzn)||e}function Szn(e,n){var r=cp(e),i=Fe(r,"bpmn:Process")?[]:[r],o=Wz(r,i),a=br(e),s=br(n),l=_zn(e,n),c=[],u=cl(e);return o.forEach(function(d){if(d!==e){var f=u?0:l.top,p=u?l.right:0,h=u?0:l.bottom,g=u?l.left:0,v=br(d);l.top&&(q_(v.bottom-a.top)<10&&(h=s.top-v.bottom),q_(v.top-a.top)<5&&(f=s.top-v.top)),l.left&&(q_(v.right-a.left)<10&&(p=s.left-v.right),q_(v.left-a.left)<5&&(g=s.left-v.left)),l.bottom&&(q_(v.top-a.bottom)<10&&(f=s.bottom-v.top),q_(v.bottom-a.bottom)<5&&(h=s.bottom-v.bottom)),l.right&&(q_(v.left-a.right)<10&&(g=s.right-v.left),q_(v.right-a.right)<5&&(p=s.right-v.right)),(f||p||h||g)&&c.push({shape:d,newBounds:hzn(d,{top:f,right:p,bottom:h,left:g})})}}),c}var Ezn=500;function uge(e,n){vn.call(this,e);function r(i,o){var a=cl(i),s=bS(o),l=[],c=[],u=[],d=[];if(Ew(s,function(y){return a?y.y>i.y?c.push(y):l.push(y):y.x>i.x?d.push(y):u.push(y),y.children}),!!s.length){var f;a?c.length&&l.length?f=i.height/2:f=i.height:d.length&&u.length?f=i.width/2:f=i.width;var p,h,g,v;l.length&&(p=n.calculateAdjustments(l,"y",f,i.y-10),n.makeSpace(p.movingShapes,p.resizingShapes,{x:0,y:f},"s")),c.length&&(h=n.calculateAdjustments(c,"y",-f,i.y+i.height+10),n.makeSpace(h.movingShapes,h.resizingShapes,{x:0,y:-f},"n")),u.length&&(g=n.calculateAdjustments(u,"x",f,i.x-10),n.makeSpace(g.movingShapes,g.resizingShapes,{x:f,y:0},"e")),d.length&&(v=n.calculateAdjustments(d,"x",-f,i.x+i.width+10),n.makeSpace(v.movingShapes,v.resizingShapes,{x:-f,y:0},"w"))}}this.postExecuted("shape.delete",Ezn,function(i){var o=i.context,a=o.hints,s=o.shape,l=o.oldParent;Fe(s,"bpmn:Lane")&&(a&&a.nested||r(s,l))})}uge.$inject=["eventBus","spaceTool"];Zn(uge,vn);var ZAe=500;function Yz(e,n){n.invoke(vn,this),this._bpmnReplace=e;var r=this;this.postExecuted("elements.create",ZAe,function(i){var o=i.elements;o.filter(function(a){var s=a.host;return JAe(a,s)}).map(function(a){return o.indexOf(a)}).forEach(function(a){i.elements[a]=r._replaceShape(o[a])})},!0),this.preExecute("elements.move",ZAe,function(i){var o=i.shapes,a=i.newHost;o.forEach(function(s,l){var c=s.host;JAe(s,wzn(o,c)?c:a)&&(o[l]=r._replaceShape(s))})},!0)}Yz.$inject=["bpmnReplace","injector"];Zn(Yz,vn);Yz.prototype._replaceShape=function(e){var n=Czn(e),r;return n?r={type:"bpmn:IntermediateCatchEvent",eventDefinitionType:n.$type}:r={type:"bpmn:IntermediateThrowEvent"},this._bpmnReplace.replaceElement(e,r,{layoutConnection:!1})};function Czn(e){var n=In(e),r=n.eventDefinitions;return r&&r[0]}function JAe(e,n){return!Ni(e)&&Fe(e,"bpmn:BoundaryEvent")&&!n}function wzn(e,n){return e.indexOf(n)!==-1}function dge(e,n,r){vn.call(this,e);function i(o,a,s){var l=a.waypoints,c,u,d,f,p,h,g,v=o.outgoing.slice(),y=o.incoming.slice(),_;Nr(s.width)?_=Mr(s):_=s;var S=Dae(l,_);if(S){if(c=l.slice(0,S.index),u=l.slice(S.index+(S.bendpoint?1:0)),!c.length||!u.length)return;d=S.bendpoint?l[S.index]:_,(c.length===1||!eDe(o,c[c.length-1]))&&c.push(tDe(d)),(u.length===1||!eDe(o,u[0]))&&u.unshift(tDe(d))}f=a.source,p=a.target,n.canConnect(f,o,a)&&(r.reconnectEnd(a,o,c||_),h=a),n.canConnect(o,p,a)&&(h?g=r.connect(o,p,{type:a.type,waypoints:u}):(r.reconnectStart(a,o,u||_),g=a));var b=[].concat(h&&si(y,function(E){return E.source===h.source})||[],g&&si(v,function(E){return E.target===g.target})||[]);b.length&&r.removeElements(b)}this.preExecute("elements.move",function(o){var a=o.newParent,s=o.shapes,l=o.delta,c=s[0];if(!(!c||!a)){a&&a.waypoints&&(o.newParent=a=a.parent);var u=Mr(c),d={x:u.x+l.x,y:u.y+l.y},f=ki(a.children,function(p){var h=n.canInsert(s,p);return h&&Dae(p.waypoints,d)});f&&(o.targetFlow=f,o.position=d)}},!0),this.postExecuted("elements.move",function(o){var a=o.shapes,s=o.targetFlow,l=o.position;s&&i(a[0],s,l)},!0),this.preExecute("shape.create",function(o){var a=o.parent,s=o.shape;n.canInsert(s,a)&&(o.targetFlow=a,o.parent=a.parent)},!0),this.postExecuted("shape.create",function(o){var a=o.shape,s=o.targetFlow,l=o.position;s&&i(a,s,l)},!0)}Zn(dge,vn);dge.$inject=["eventBus","bpmnRules","modeling"];function eDe(e,n){var r=n.x,i=n.y;return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function tDe(e){return Rt({},e)}function fge(e,n){vn.call(this,e),this.preExecuted("connection.create",function(r){var i=r.context,o=i.connection,a=i.source,s=i.target,l=i.hints;if(!(l&&l.createElementsBehavior===!1)&&Lx(o)){var c=[];Fe(a,"bpmn:EventBasedGateway")?c=s.incoming.filter(u=>u!==o&&Lx(u)):c=s.incoming.filter(u=>u!==o&&Lx(u)&&Fe(u.source,"bpmn:EventBasedGateway")),c.forEach(function(u){n.removeConnection(u)})}}),this.preExecuted("shape.replace",function(r){var i=r.context,o=i.newShape;if(Fe(o,"bpmn:EventBasedGateway")){var a=o.outgoing.filter(Lx).reduce(function(s,l){return s.includes(l.target)?s:s.concat(l.target)},[]);a.forEach(function(s){s.incoming.filter(Lx).forEach(function(l){const c=s.incoming.filter(Lx).filter(function(u){return u.source===o});(l.source!==o||c.length>1)&&n.removeConnection(l)})})}})}fge.$inject=["eventBus","modeling"];Zn(fge,vn);function Lx(e){return Fe(e,"bpmn:SequenceFlow")}var X4=1500,nDe=2e3;function Stt(e,n,r){n.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],X4,function(i){var o=i.context,a=o.shape||i.shape,s=i.hover;Fe(s,"bpmn:Lane")&&!ii(a,["bpmn:Lane","bpmn:Participant"])&&(i.hover=cp(s),i.hoverGfx=e.getGraphics(i.hover));var l=r.getRootElement();s!==l&&(a.labelTarget||ii(a,["bpmn:Group","bpmn:TextAnnotation"]))&&(i.hover=l,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],X4,function(i){var o=i.hover;Fe(o,"bpmn:Lane")&&(i.hover=cp(o)||o,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["bendpoint.move.hover"],X4,function(i){var o=i.context,a=i.hover,s=o.type;Fe(a,"bpmn:Lane")&&/reconnect/.test(s)&&(i.hover=cp(a)||a,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["connect.start"],X4,function(i){var o=i.context,a=o.start;Fe(a,"bpmn:Lane")&&(o.start=cp(a)||a)}),n.on("shape.move.start",nDe,function(i){var o=i.shape;Fe(o,"bpmn:Lane")&&(i.shape=cp(o)||o)}),n.on("spaceTool.move",nDe,function(i){var o=i.hover;o&&Fe(o,"bpmn:Lane")&&(i.hover=cp(o))})}Stt.$inject=["elementRegistry","eventBus","canvas"];function xzn(e){return e.create("bpmn:Category")}function Tzn(e){return e.create("bpmn:CategoryValue")}function Ozn(e,n,r){return Ks(n.get("categoryValue"),e),e.$parent=n,Ks(r.get("rootElements"),n),n.$parent=r,e}function Rzn(e){var n=e.$parent;return n&&(Cs(n.get("categoryValue"),e),e.$parent=null),e}function Izn(e){var n=e.$parent;return n&&(Cs(n.get("rootElements"),e),e.$parent=null),e}var rDe=770;function pge(e,n,r,i,o,a){o.invoke(vn,this);function s(){return r.filter(function(g){return Fe(g,"bpmn:Group")})}function l(g,v){return g.some(function(y){var _=In(y),S=_.categoryValueRef&&_.categoryValueRef.$parent;return S===v})}function c(g,v){return g.some(function(y){var _=In(y);return _.categoryValueRef===v})}function u(g,v,y){var _=s().filter(function(S){return S.businessObject!==y});v&&!l(_,v)&&Izn(v),g&&!c(_,g)&&Rzn(g)}function d(g,v){return Ozn(g,v,n.getDefinitions())}function f(g,v){var y=In(g),_=y.categoryValueRef;_||(_=y.categoryValueRef=v.categoryValue=v.categoryValue||Tzn(e));var S=_.$parent;S||(S=_.$parent=v.category=v.category||xzn(e)),d(_,S,n.getDefinitions())}function p(g,v){var y=v.category,_=v.categoryValue,S=In(g);_?(S.categoryValueRef=null,u(_,y,S)):u(null,S.categoryValueRef.$parent,S)}this.execute("label.create",function(g){var v=g.context,y=v.labelTarget;Fe(y,"bpmn:Group")&&f(y,v)}),this.revert("label.create",function(g){var v=g.context,y=v.labelTarget;Fe(y,"bpmn:Group")&&p(y,v)}),this.execute("shape.delete",function(g){var v=g.context,y=v.shape,_=In(y);if(!(!Fe(y,"bpmn:Group")||y.labelTarget)){var S=v.categoryValue=_.categoryValueRef,b;S&&(b=v.category=S.$parent,u(S,b,_),_.categoryValueRef=null)}}),this.reverted("shape.delete",function(g){var v=g.context,y=v.shape;if(!(!Fe(y,"bpmn:Group")||y.labelTarget)){var _=v.category,S=v.categoryValue,b=In(y);S&&(b.categoryValueRef=S,d(S,_))}}),this.execute("shape.create",function(g){var v=g.context,y=v.shape;!Fe(y,"bpmn:Group")||y.labelTarget||In(y).categoryValueRef&&f(y,v)}),this.reverted("shape.create",function(g){var v=g.context,y=v.shape;!Fe(y,"bpmn:Group")||y.labelTarget||In(y).categoryValueRef&&p(y,v)});function h(g,v){var y=e.create(g.$type);return a.copyElement(g,y,null,v)}i.on("copyPaste.copyElement",rDe,function(g){var v=g.descriptor,y=g.element;if(!(!Fe(y,"bpmn:Group")||y.labelTarget)){var _=In(y);if(_.categoryValueRef){var S=_.categoryValueRef;v.categoryValue=h(S,!0),S.$parent&&(v.category=h(S.$parent,!0))}}}),i.on("copyPaste.pasteElement",rDe,function(g){var v=g.descriptor,y=v.businessObject,_=v.categoryValue,S=v.category;_&&(_=y.categoryValueRef=h(_)),S&&(_.$parent=h(S)),delete v.category,delete v.categoryValue})}pge.$inject=["bpmnFactory","bpmnjs","elementRegistry","eventBus","injector","moddleCopy"];Zn(pge,vn);function Uae(e,n,r,i){var o,a,s,l,c;return o=(i.y-r.y)*(n.x-e.x)-(i.x-r.x)*(n.y-e.y),o==0?null:(a=e.y-r.y,s=e.x-r.x,c=(i.x-r.x)*a-(i.y-r.y)*s,l=c/o,{x:Math.round(e.x+l*(n.x-e.x)),y:Math.round(e.y+l*(n.y-e.y))})}function Ett(e){function n(i,o,a){var s={x:a.x,y:a.y-50},l={x:a.x-50,y:a.y},c=Uae(i,o,a,s),u=Uae(i,o,a,l),d;c&&u?iDe(c,a)>iDe(u,a)?d=u:d=c:d=c||u,i.original=d}function r(i){var o=i.waypoints;n(o[0],o[1],Mr(i.source)),n(o[o.length-1],o[o.length-2],Mr(i.target))}e.on("bpmnElement.added",function(i){var o=i.element;o.waypoints&&r(o)})}Ett.$inject=["eventBus"];function iDe(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function hge(e){vn.call(this,e);var n=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],function(r){var i=r.context.shape,o=In(i),a=Ii(i);if(ii(o,n)){var s=a.get("isHorizontal");s===void 0&&(s=!0),a.set("isHorizontal",s)}})}hge.$inject=["eventBus"];Zn(hge,vn);var Ctt=Math.sqrt,wtt=Math.min,Nzn=Math.max,oDe=Math.abs;function aDe(e){return Math.pow(e,2)}function PM(e,n){return Ctt(aDe(e.x-n.x)+aDe(e.y-n.y))}function Mzn(e,n){var r=0,i,o,a,s,l,c,u,d,f,p,h;for(r=0;r<n.length-1;r++){if(i=n[r],o=n[r+1],lDe(i,o)?u=[i]:(a=PM(e,i),s=PM(e,o),c=wtt(a,s),u=Pzn(i,o,e,c)),u.length<1)throw new Error("expected between [1, 2] circle -> line intersections");u.length===1&&(d={type:"bendpoint",position:u[0],segmentIndex:r,bendpointIndex:lDe(i,u[0])?r:r+1}),u.length===2&&(l=Dzn(u[0],u[1]),d={type:"segment",position:l,segmentIndex:r,relativeLocation:PM(i,l)/PM(i,o)}),f=PM(d.position,e),(!h||p>f)&&(h=d,p=f)}return h}function Pzn(e,n,r,i){var o=n.x-e.x,a=n.y-e.y,s=r.x-e.x,l=r.y-e.y,c=o*o+a*a,u=o*s+a*l,d=s*s+l*l-i*i,f=u/c,p=d/c,h=f*f-p;if(h<0&&h>-1e-6&&(h=0),h<0)return[];var g=Ctt(h),v=-f+g,y=-f-g,_={x:e.x-o*v,y:e.y-a*v};if(h===0)return[_];var S={x:e.x-o*y,y:e.y-a*y};return[_,S].filter(function(b){return Azn(b,e,n)})}function Azn(e,n,r){return sDe(e.x,n.x,r.x)&&sDe(e.y,n.y,r.y)}function sDe(e,n,r){return e>=wtt(n,r)-aj&&e<=Nzn(n,r)+aj}function Dzn(e,n){return{x:(e.x+n.x)/2,y:(e.y+n.y)/2}}var aj=.1;function lDe(e,n){return oDe(e.x-n.x)<=aj&&oDe(e.y-n.y)<=aj}function kzn(e,n,r,i){var o=r.segmentIndex,a=n.length-e.length;if(i.segmentMove){var s=i.segmentMove.segmentStartIndex,l=i.segmentMove.newSegmentStartIndex;return o===s?l:o>=l?o+a<l?l:o+a:o}if(i.bendpointMove){var c=i.bendpointMove.insert,u=i.bendpointMove.bendpointIndex,d;if(a===0)return o;if(o>=u&&(d=c?o+1:o-1),o<u&&(d=o,c&&r.type!=="bendpoint"&&u-1===o)){var f=Ttt(n,u);f<r.relativeLocation&&d++}return d}return a===0?o:i.connectionStart&&o===0?0:i.connectionEnd&&o===e.length-2?n.length-2:Math.floor((n.length-2)/2)}function xtt(e,n,r,i){var o=0,a=0,s={point:e,delta:{x:0,y:0}},l=Mzn(e,r),c=l.segmentIndex,u=kzn(r,n,l,i);if(u<0||u>n.length-2||u===null)return s;var d=cDe(r,c),f=cDe(n,u),p=l.position,h=$zn(d,p),g=Lzn(d,f);if(l.type==="bendpoint"){var v=n.length-r.length,y=l.bendpointIndex,_=r[y];if(n.indexOf(_)!==-1)return s;if(v===0){var S=n[y];return o=S.x-l.position.x,a=S.y-l.position.y,{delta:{x:o,y:a},point:{x:e.x+o,y:e.y+a}}}v<0&&y!==0&&y<r.length-1&&(h=Ttt(r,y))}var b={x:(f[1].x-f[0].x)*h+f[0].x,y:(f[1].y-f[0].y)*h+f[0].y},E=THn({x:e.x-p.x,y:e.y-p.y},g);return o=b.x+E.x-e.x,a=b.y+E.y-e.y,{point:vy(b),delta:vy({x:o,y:a})}}function Ttt(e,n){var r=nj(e[n-1],e[n]),i=nj(e[n],e[n+1]),o=r/(r+i);return o}function Lzn(e,n){var r=AAe(e),i=AAe(n);return i-r}function cDe(e,n){return[e[n],e[n+1]]}function $zn(e,n){var r=nj(e[0],e[1]),i=nj(e[0],n);return r===0?0:i/r}function Fzn(e,n,r,i){var o=Mr(e);return xtt(o,n,r,i).delta}function ML(e,n,r){var i=mP(n),o=mP(r),a=Kh(e,i),s={x:a.x*(r.width/n.width),y:a.y*(r.height/n.height)};return vy({x:o.x+s.x,y:o.y+s.y})}function uDe(e,n,r){var i=mP(e),o=mP(n),a=mP(r),s=Kh(e,i),l=Kh(i,o),c=Bzn(i,n,r);if(c)return c;var u={x:l.x*(r.width/n.width),y:l.y*(r.height/n.height)},d={x:a.x+u.x,y:a.y+u.y};return vy({x:d.x+s.x-e.x,y:d.y+s.y-e.y})}function Bzn(e,n,r){var i=br(n),o=br(r);if(jzn(i,o))return null;var a=_c(n,e),s,l,c;if(a==="top")s={x:0,y:o.bottom-i.bottom};else if(a==="bottom")s={x:0,y:o.top-i.top};else if(a==="right")s={x:o.left-i.left,y:0};else if(a==="left")s={x:o.right-i.right,y:0};else return null;return l={x:e.x+s.x,y:e.y+s.y},c=_c(r,l),c!==a?null:s}function jzn(e,n){return Uzn(e,n)||Hzn(e,n)}function Uzn(e,n){return e.right!==n.right&&e.left!==n.left}function Hzn(e,n){return e.top!==n.top&&e.bottom!==n.bottom}var dDe="name",fDe="text";function gge(e,n,r,i){vn.call(this,e),this.postExecute("element.updateProperties",o),this.postExecute("element.updateModdleProperties",s=>{In(s.context.element)===s.context.moddleElement&&o(s)});function o(s){var l=s.context,c=l.element,u=l.properties;if(dDe in u&&n.updateLabel(c,u[dDe]),fDe in u&&Fe(c,"bpmn:TextAnnotation")){var d=i.getTextAnnotationBounds({x:c.x,y:c.y,width:c.width,height:c.height},u[fDe]||"");n.updateLabel(c,u.text,d)}}this.postExecute(["shape.create","connection.create"],function(s){var l=s.context,c=l.hints||{};if(c.createElementsBehavior!==!1){var u=l.shape||l.connection;Ni(u)||!CC(u)||sg(u)&&n.updateLabel(u,sg(u))}}),this.postExecute("shape.delete",function(s){var l=s.context,c=l.labelTarget,u=l.hints||{};c&&u.unsetLabel!==!1&&n.updateLabel(c,null,null,{removeShape:!1})});function a(s){var l=s.context,c=l.connection,u=c.label,d=Rt({},l.hints),f=l.newWaypoints||c.waypoints,p=l.oldWaypoints;return typeof d.startChanged>"u"&&(d.startChanged=!!d.connectionStart),typeof d.endChanged>"u"&&(d.endChanged=!!d.connectionEnd),Fzn(u,f,p,d)}this.postExecute(["connection.layout","connection.updateWaypoints"],function(s){var l=s.context,c=l.hints||{};if(c.labelBehavior!==!1){var u=l.connection,d=u.label,f;!d||!d.parent||(f=a(s),n.moveShape(d,f))}}),this.postExecute(["shape.replace"],function(s){var l=s.context,c=l.newShape,u=l.oldShape,d=In(c);d&&CC(d)&&u.label&&c.label&&(c.label.x=u.label.x,c.label.y=u.label.y)}),this.postExecute("shape.resize",function(s){var l=s.context,c=l.shape,u=l.newBounds,d=l.oldBounds;if(Mz(c)){var f=c.label,p=Mr(f),h=Gzn(d),g=Vzn(p,h),v=zzn(g,d,u);n.moveShape(f,v)}})}Zn(gge,vn);gge.$inject=["eventBus","modeling","bpmnFactory","textRenderer"];function zzn(e,n,r){var i=ML(e,n,r);return vy(Kh(i,e))}function Vzn(e,n){if(n.length){var r=Wzn(e,n);return Khe(e,r)}}function Gzn(e){return[[{x:e.x,y:e.y},{x:e.x+(e.width||0),y:e.y}],[{x:e.x+(e.width||0),y:e.y},{x:e.x+(e.width||0),y:e.y+(e.height||0)}],[{x:e.x,y:e.y+(e.height||0)},{x:e.x+(e.width||0),y:e.y+(e.height||0)}],[{x:e.x,y:e.y},{x:e.x,y:e.y+(e.height||0)}]]}function Wzn(e,n){var r=n.map(function(o){return{line:o,distance:ntt(e,o)}}),i=$m(r,"distance");return i[0].line}function Yzn(e,n,r,i){return xtt(e,n,r,i).point}function mge(e,n){vn.call(this,e);function r(i,o){var a=i.context,s=a.connection,l=Rt({},a.hints),c=a.newWaypoints||s.waypoints,u=a.oldWaypoints;return typeof l.startChanged>"u"&&(l.startChanged=!!l.connectionStart),typeof l.endChanged>"u"&&(l.endChanged=!!l.connectionEnd),Yzn(o,c,u,l)}this.postExecute(["connection.layout","connection.updateWaypoints"],function(i){var o=i.context,a=o.connection,s=a.outgoing,l=a.incoming;l.forEach(function(c){var u=c.waypoints[c.waypoints.length-1],d=r(i,u),f=[].concat(c.waypoints.slice(0,-1),[d]);n.updateWaypoints(c,f)}),s.forEach(function(c){var u=c.waypoints[0],d=r(i,u),f=[].concat([d],c.waypoints.slice(1));n.updateWaypoints(c,f)})}),this.postExecute(["connection.move"],function(i){var o=i.context,a=o.connection,s=a.outgoing,l=a.incoming,c=o.delta;l.forEach(function(u){var d=u.waypoints[u.waypoints.length-1],f={x:d.x+c.x,y:d.y+c.y},p=[].concat(u.waypoints.slice(0,-1),[f]);n.updateWaypoints(u,p)}),s.forEach(function(u){var d=u.waypoints[0],f={x:d.x+c.x,y:d.y+c.y},p=[].concat([f],u.waypoints.slice(1));n.updateWaypoints(u,p)})})}Zn(mge,vn);mge.$inject=["eventBus","modeling"];function qz(e,n,r){var i=Xz(e),o=Rtt(i,n),a=i[0];return o.length?o[o.length-1]:ML(a.original||a,r,n)}function Kz(e,n,r){var i=Xz(e),o=Rtt(i,n),a=i[i.length-1];return o.length?o[0]:ML(a.original||a,r,n)}function vge(e,n,r){var i=Xz(e),o=Ott(n,r),a=i[0];return ML(a.original||a,o,n)}function yge(e,n,r){var i=Xz(e),o=Ott(n,r),a=i[i.length-1];return ML(a.original||a,o,n)}function Ott(e,n){return{x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}function Xz(e){var n=e.waypoints;if(!n.length)throw new Error("connection#"+e.id+": no waypoints");return n}function Rtt(e,n){var r=vc(e,Kzn);return si(r,function(i){return qzn(i,n)})}function qzn(e,n){return _c(n,e,1)==="intersect"}function Kzn(e){return e.original||e}function _ge(e,n){vn.call(this,e),this.postExecute("shape.replace",function(r){var i=r.oldShape,o=r.newShape;if(Xzn(i,o)){var a=Qzn(i);a.incoming.forEach(function(s){var l=Kz(s,o,i);n.reconnectEnd(s,o,l)}),a.outgoing.forEach(function(s){var l=qz(s,o,i);n.reconnectStart(s,o,l)})}},!0)}_ge.$inject=["eventBus","modeling"];Zn(_ge,vn);function Xzn(e,n){return Fe(e,"bpmn:Participant")&&pi(e)&&Fe(n,"bpmn:Participant")&&!pi(n)}function Qzn(e){var n=bL([e],!1),r=[],i=[];return n.forEach(function(o){o!==e&&(o.incoming.forEach(function(a){Fe(a,"bpmn:MessageFlow")&&r.push(a)}),o.outgoing.forEach(function(a){Fe(a,"bpmn:MessageFlow")&&i.push(a)}))},[]),{incoming:r,outgoing:i}}const Zzn=["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:EscalationEventDefinition","bpmn:ConditionalEventDefinition","bpmn:SignalEventDefinition"];function Itt(e){const n=In(e);if(!Fe(n,"bpmn:BoundaryEvent")&&!(Fe(n,"bpmn:StartEvent")&&zc(n.$parent)))return!1;const r=n.get("eventDefinitions");return!r||!r.length?!1:Zzn.some(i=>Fe(r[0],i))}function Ntt(e){return Fe(e,"bpmn:BoundaryEvent")?"cancelActivity":"isInterrupting"}function bge(e,n){e.invoke(vn,this),this.postExecuted("shape.replace",function(r){const i=r.context.oldShape,o=r.context.newShape,a=r.context.hints;if(!Itt(o))return;const s=Ntt(o);if(a.targetElement&&a.targetElement[s]!==void 0)return;const c=In(i).get(s),u=In(o).get(s);c!==u&&n.updateProperties(o,{[s]:c})})}bge.$inject=["injector","modeling"];Zn(bge,vn);function Sge(e,n){vn.call(this,e),this.preExecute("shape.resize",function(r){var i=r.shape,o=Ii(i),a=o&&o.get("label"),s=a&&a.get("bounds");s&&n.updateModdleProperties(i,a,{bounds:void 0})},!0)}Zn(Sge,vn);Sge.$inject=["eventBus","modeling"];function Ege(e,n,r){vn.call(this,e),this.preExecute("shape.delete",function(i){var o=i.context.shape;if(!(o.incoming.length!==1||o.outgoing.length!==1)){var a=o.incoming[0],s=o.outgoing[0];if(!(!Fe(a,"bpmn:SequenceFlow")||!Fe(s,"bpmn:SequenceFlow"))&&n.canConnect(a.source,s.target,a)){var l=Jzn(a.waypoints,s.waypoints);r.reconnectEnd(a,s.target,l)}}})}Zn(Ege,vn);Ege.$inject=["eventBus","bpmnRules","modeling"];function $x(e){return e.original||e}function Jzn(e,n){var r=Uae($x(e[e.length-2]),$x(e[e.length-1]),$x(n[1]),$x(n[0]));return r?[].concat(e.slice(0,e.length-1),[r],n.slice(1)):[$x(e[0]),$x(n[n.length-1])]}function Cge(e,n){vn.call(this,e),this.preExecute("shape.delete",function(r){var i=r.shape,o=i.parent;Fe(i,"bpmn:Participant")&&(r.collaborationRoot=o)},!0),this.postExecute("shape.delete",function(r){var i=r.collaborationRoot;if(i&&!i.businessObject.participants.length){var o=n.makeProcess(),a=i.children.slice();n.moveElements(a,{x:0,y:0},o)}},!0)}Cge.$inject=["eventBus","modeling"];Zn(Cge,vn);function wge(e,n,r,i){vn.call(this,e);var o=i.get("dragging",!1);function a(c){var u=c.source,d=c.target,f=c.parent;if(f){var p,h;Fe(c,"bpmn:SequenceFlow")&&(r.canConnectSequenceFlow(u,d)||(h=!0),r.canConnectMessageFlow(u,d)&&(p="bpmn:MessageFlow")),Fe(c,"bpmn:MessageFlow")&&(r.canConnectMessageFlow(u,d)||(h=!0),r.canConnectSequenceFlow(u,d)&&(p="bpmn:SequenceFlow")),h&&n.removeConnection(c),p&&n.connect(u,d,{type:p,waypoints:c.waypoints.slice()})}}function s(c){var u=c.context,d=u.connection,f=u.newSource||d.source,p=u.newTarget||d.target,h,g;h=r.canConnect(f,p),!(!h||h.type===d.type)&&(g=n.connect(f,p,{type:h.type,associationDirection:h.associationDirection,waypoints:d.waypoints.slice()}),d.parent&&n.removeConnection(d),u.connection=g,o&&l(d,g))}function l(c,u){var d=o.context(),f=d&&d.payload.previousSelection,p;!f||!f.length||(p=f.indexOf(c),p!==-1&&f.splice(p,1,u))}this.postExecuted("elements.move",function(c){var u=c.closure,d=u.allConnections;ht(d,a)},!0),this.preExecute("connection.reconnect",s),this.postExecuted("element.updateProperties",function(c){var u=c.context,d=u.properties,f=u.element,p=f.businessObject,h;d.default&&(h=ki(f.outgoing,qh({id:f.businessObject.default.id})),h&&n.updateProperties(h,{conditionExpression:void 0})),d.conditionExpression&&p.sourceRef.default===p&&n.updateProperties(f.source,{default:void 0})})}Zn(wge,vn);wge.$inject=["eventBus","modeling","bpmnRules","injector"];function Qz(e,n,r,i,o,a){i.invoke(vn,this),this._bpmnReplace=e,this._elementRegistry=r,this._selection=a,this.postExecuted(["elements.create"],500,function(s){var l=s.context,c=l.parent,u=l.elements,d=vd(u,function(f,p){var h=n.canReplace([p],p.host||p.parent||c);return h?f.concat(h.replacements):f},[]);d.length&&this._replaceElements(u,d)},this),this.postExecuted(["elements.move"],500,function(s){var l=s.context,c=l.newParent,u=l.newHost,d=[];ht(l.closure.topLevel,function(p){zc(p)?d=d.concat(p.children):d=d.concat(p)}),d.length===1&&u&&(c=u);var f=n.canReplace(d,c);f&&this._replaceElements(d,f.replacements,u)},this),this.postExecute(["shape.replace"],1500,function(s){var l=s.context,c=l.oldShape,u=l.newShape,d=c.attachers,f;d&&d.length&&(f=n.canReplace(d,u),this._replaceElements(d,f.replacements))},this),this.postExecuted(["shape.replace"],1500,function(s){var l=s.context,c=l.oldShape,u=l.newShape;o.unclaimId(c.businessObject.id,c.businessObject),o.updateProperties(u,{id:c.id})})}Zn(Qz,vn);Qz.prototype._replaceElements=function(e,n){var r=this._elementRegistry,i=this._bpmnReplace,o=this._selection;ht(n,function(a){var s={type:a.newElementType},l=r.get(a.oldElementId),c=e.indexOf(l);e[c]=i.replaceElement(l,s,{select:!1})}),n&&o.select(e)};Qz.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var eVn=1500,tVn={width:140,height:120},xge={width:300,height:60},Tge={width:60,height:300},q6={width:300,height:150},K6={width:150,height:300},Mtt={width:140,height:120},Ptt={width:50,height:30};function Att(e){e.on("resize.start",eVn,function(n){var r=n.context,i=r.shape,o=r.direction,a=r.balanced;(Fe(i,"bpmn:Lane")||Fe(i,"bpmn:Participant"))&&(r.resizeConstraints=aVn(i,o,a)),Fe(i,"bpmn:SubProcess")&&pi(i)&&(r.minDimensions=Mtt),Fe(i,"bpmn:TextAnnotation")&&(r.minDimensions=Ptt)})}Att.$inject=["eventBus"];var K_=Math.abs,nVn=Math.min,rVn=Math.max;function Dtt(e,n,r,i){var o=e[n];e[n]=o===void 0?r:i(r,o)}function Fx(e,n,r){return Dtt(e,n,r,nVn)}function Bx(e,n,r){return Dtt(e,n,r,rVn)}var iVn={top:20,left:50,right:20,bottom:20},oVn={top:50,left:20,right:20,bottom:20};function aVn(e,n,r){var i=cp(e),o=!0,a=!0,s=Wz(i,[i]),l=br(e),c={},u={},d=cl(e),f=d?xge:Tge;/n/.test(n)?u.top=l.bottom-f.height:/e/.test(n)?u.right=l.left+f.width:/s/.test(n)?u.bottom=l.top+f.height:/w/.test(n)&&(u.left=l.right-f.width),s.forEach(function(g){var v=br(g);d?(v.top<l.top-10&&(o=!1),v.bottom>l.bottom+10&&(a=!1)):(v.left<l.left-10&&(o=!1),v.right>l.right+10&&(a=!1)),/n/.test(n)&&(r&&K_(l.top-v.bottom)<10&&Bx(c,"top",v.top+f.height),K_(l.top-v.top)<5&&Fx(u,"top",v.bottom-f.height)),/e/.test(n)&&(r&&K_(l.right-v.left)<10&&Fx(c,"right",v.right-f.width),K_(l.right-v.right)<5&&Bx(u,"right",v.left+f.width)),/s/.test(n)&&(r&&K_(l.bottom-v.top)<10&&Fx(c,"bottom",v.bottom-f.height),K_(l.bottom-v.bottom)<5&&Bx(u,"bottom",v.top+f.height)),/w/.test(n)&&(r&&K_(l.left-v.right)<10&&Bx(c,"left",v.left+f.width),K_(l.left-v.left)<5&&Fx(u,"left",v.right-f.width))});var p=i.children.filter(function(g){return!g.hidden&&!g.waypoints&&(Fe(g,"bpmn:FlowElement")||Fe(g,"bpmn:Artifact"))}),h=d?iVn:oVn;return p.forEach(function(g){var v=br(g);/n/.test(n)&&(!d||o)&&Fx(u,"top",v.top-h.top),/e/.test(n)&&(d||a)&&Bx(u,"right",v.right+h.right),/s/.test(n)&&(!d||a)&&Bx(u,"bottom",v.bottom+h.bottom),/w/.test(n)&&(d||o)&&Fx(u,"left",v.left-h.left)}),{min:u,max:c}}var pDe=1001;function ktt(e,n){e.on("resize.start",pDe+500,function(r){var i=r.context,o=i.shape;(Fe(o,"bpmn:Lane")||Fe(o,"bpmn:Participant"))&&(i.balanced=!iD(r))}),e.on("resize.end",pDe,function(r){var i=r.context,o=i.shape,a=i.canExecute,s=i.newBounds;if(Fe(o,"bpmn:Lane")||Fe(o,"bpmn:Participant"))return a&&(s=yJe(s),n.resizeLane(o,s,i.balanced)),!1})}ktt.$inject=["eventBus","modeling"];var sVn=500;function Oge(e,n,r,i,o){r.invoke(vn,this);function a(d){return ii(d,["bpmn:ReceiveTask","bpmn:SendTask"])||lVn(d,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function s(d){var f=e.getDefinitions(),p=f.get("rootElements");return!!ki(p,qh({id:d.id}))}function l(d){if(Fe(d,"bpmn:ErrorEventDefinition"))return"errorRef";if(Fe(d,"bpmn:EscalationEventDefinition"))return"escalationRef";if(Fe(d,"bpmn:MessageEventDefinition"))return"messageRef";if(Fe(d,"bpmn:SignalEventDefinition"))return"signalRef"}function c(d){if(ii(d,["bpmn:ReceiveTask","bpmn:SendTask"]))return d.get("messageRef");var f=d.get("eventDefinitions"),p=f[0];return p.get(l(p))}function u(d,f){if(ii(d,["bpmn:ReceiveTask","bpmn:SendTask"]))return d.set("messageRef",f);var p=d.get("eventDefinitions"),h=p[0];return h.set(l(h),f)}this.executed(["shape.create","element.updateProperties","element.updateModdleProperties"],function(d){var f=d.shape||d.element;if(a(f)){var p=In(f),h=c(p),g;h&&!s(h)&&(g=e.getDefinitions().get("rootElements"),Ks(g,h),d.addedRootElement=h)}},!0),this.reverted(["shape.create","element.updateProperties","element.updateModdleProperties"],function(d){var f=d.addedRootElement;if(f){var p=e.getDefinitions().get("rootElements");Cs(p,f)}},!0),n.on("copyPaste.copyElement",function(d){var f=d.descriptor,p=d.element;if(!(p.labelTarget||!a(p))){var h=In(p),g=c(h);g&&(f.referencedRootElement=g)}}),n.on("copyPaste.pasteElement",sVn,function(d){var f=d.descriptor,p=f.businessObject,h=f.referencedRootElement;h&&(s(h)||(h=i.copyElement(h,o.create(h.$type))),u(p,h),delete f.referencedRootElement)})}Oge.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"];Zn(Oge,vn);function lVn(e,n){return zr(n)||(n=[n]),fS(n,function(r){return WI(e,r)})}var Ltt=Math.max;function $tt(e){e.on("spaceTool.getMinDimensions",function(n){var r=n.shapes,i=n.axis,o=n.start,a={};return ht(r,function(s){var l=s.id;Fe(s,"bpmn:Participant")&&(a[l]=uVn(s,i,o)),Fe(s,"bpmn:Lane")&&(a[l]=cl(s)?xge:Tge),Fe(s,"bpmn:SubProcess")&&pi(s)&&(a[l]=Mtt),Fe(s,"bpmn:TextAnnotation")&&(a[l]=Ptt),Fe(s,"bpmn:Group")&&(a[l]=tVn)}),a})}$tt.$inject=["eventBus"];function cVn(e){return e==="x"}function uVn(e,n,r){var i=cl(e);if(!pVn(e))return i?q6:K6;var o=cVn(n),a={};return o?i?a=q6:a={width:fVn(e,r,o),height:K6.height}:i?a={width:q6.width,height:dVn(e,r,o)}:a=K6,a}function dVn(e,n,r){var i;return i=hVn(e,n,r),Ltt(q6.height,i)}function fVn(e,n,r){var i;return i=gVn(e,n,r),Ltt(K6.width,i)}function pVn(e){return!!bS(e).length}function hVn(e,n,r){var i=bS(e),o;return o=Rge(i,n,r),e.height-o.height+xge.height}function gVn(e,n,r){var i=bS(e),o;return o=Rge(i,n,r),e.width-o.width+Tge.width}function Rge(e,n,r){var i,o,a;for(i=0;i<e.length;i++)if(o=e[i],!r&&n>=o.y&&n<=o.y+o.height||r&&n>=o.x&&n<=o.x+o.width)return a=bS(o),a.length?Rge(a,n,r):o}var hDe=400,mVn=600,gDe={x:180,y:160};function SS(e,n,r,i,o,a,s){vn.call(this,n),this._canvas=e,this._eventBus=n,this._modeling=r,this._elementFactory=i,this._bpmnFactory=o,this._bpmnjs=a,this._elementRegistry=s;var l=this;function c(f){return Fe(f,"bpmn:SubProcess")&&!pi(f)}function u(f){var p=f.shape,h=f.newRootElement,g=In(p);h=l._addDiagram(h||g),f.newRootElement=e.addRootElement(h)}function d(f){var p=f.shape,h=In(p);l._removeDiagram(h);var g=f.newRootElement=s.get(Wv(h));e.removeRootElement(g)}this.executed("shape.create",function(f){var p=f.shape;c(p)&&u(f)},!0),this.postExecuted("shape.create",function(f){var p=f.shape,h=f.newRootElement;!h||!p.children||(l._showRecursively(p.children),l._moveChildrenToShape(p,h))},!0),this.reverted("shape.create",function(f){var p=f.shape;c(p)&&d(f)},!0),this.preExecuted("shape.delete",function(f){var p=f.shape;if(c(p)){var h=s.get(Wv(p));h&&r.removeElements(h.children.slice())}},!0),this.executed("shape.delete",function(f){var p=f.shape;c(p)&&d(f)},!0),this.reverted("shape.delete",function(f){var p=f.shape;c(p)&&u(f)},!0),this.preExecuted("shape.replace",function(f){var p=f.oldShape,h=f.newShape;!c(p)||!c(h)||(f.oldRoot=e.removeRootElement(Wv(p)))},!0),this.postExecuted("shape.replace",function(f){var p=f.newShape,h=f.oldRoot,g=e.findRoot(Wv(p));if(!(!h||!g)){var v=h.children;r.moveElements(v,{x:0,y:0},g)}},!0),this.executed("element.updateProperties",function(f){var p=f.element;if(Fe(p,"bpmn:SubProcess")){var h=f.properties,g=f.oldProperties,v=g.id,y=h.id;if(v!==y){if(V6(p)){s.updateId(p,bE(y)),s.updateId(v,y);return}var _=s.get(bE(v));_&&s.updateId(bE(v),bE(y))}}},!0),this.reverted("element.updateProperties",function(f){var p=f.element;if(Fe(p,"bpmn:SubProcess")){var h=f.properties,g=f.oldProperties,v=g.id,y=h.id;if(v!==y){if(V6(p)){s.updateId(p,bE(v)),s.updateId(y,v);return}var _=s.get(bE(y));_&&s.updateId(_,bE(v))}}},!0),n.on("element.changed",function(f){var p=f.element;if(V6(p)){var h=p,g=s.get(aAe(h));!g||g===h||n.fire("element.changed",{element:g})}}),this.executed("shape.toggleCollapse",hDe,function(f){var p=f.shape;Fe(p,"bpmn:SubProcess")&&(pi(p)?d(f):(u(f),l._showRecursively(p.children)))},!0),this.reverted("shape.toggleCollapse",hDe,function(f){var p=f.shape;Fe(p,"bpmn:SubProcess")&&(pi(p)?d(f):(u(f),l._showRecursively(p.children)))},!0),this.postExecuted("shape.toggleCollapse",mVn,function(f){var p=f.shape;if(Fe(p,"bpmn:SubProcess")){var h=f.newRootElement;h&&(pi(p)?l._moveChildrenToShape(h,p):l._moveChildrenToShape(p,h))}},!0),n.on("copyPaste.createTree",function(f){var p=f.element,h=f.children;if(c(p)){var g=Wv(p),v=s.get(g);v&&h.push.apply(h,v.children)}}),n.on("copyPaste.copyElement",function(f){var p=f.descriptor,h=f.element,g=f.elements,v=h.parent,y=Fe(Ii(v),"bpmndi:BPMNPlane");if(y){var _=aAe(v),S=ki(g,function(b){return b.id===_});S&&(p.parent=S.id)}}),n.on("copyPaste.pasteElement",function(f){var p=f.descriptor;p.parent&&(c(p.parent)||p.parent.hidden)&&(p.hidden=!0)})}Zn(SS,vn);SS.prototype._moveChildrenToShape=function(e,n){var r=this._modeling,i=e.children,o;if(i){i=i.concat(i.reduce(function(u,d){return d.label&&d.label.parent!==e?u.concat(d.label):u},[]));var a=i.filter(function(u){return!u.hidden});if(!a.length){r.moveElements(i,{x:0,y:0},n,{autoResize:!1});return}var s=sl(a);if(!n.x)o={x:gDe.x-s.x,y:gDe.y-s.y};else{var l=Mr(n),c=Mr(s);o={x:l.x-c.x,y:l.y-c.y}}r.moveElements(i,o,n,{autoResize:!1})}};SS.prototype._showRecursively=function(e,n){var r=this,i=[];return e.forEach(function(o){o.hidden=!!n,i=i.concat(o),o.children&&(i=i.concat(r._showRecursively(o.children,o.collapsed||n)))}),i};SS.prototype._addDiagram=function(e){var n=this._bpmnjs,r=n.getDefinitions().diagrams;return e.businessObject||(e=this._createNewDiagram(e)),r.push(e.di.$parent),e};SS.prototype._createNewDiagram=function(e){var n=this._bpmnFactory,r=this._elementFactory,i=n.create("bpmndi:BPMNPlane",{bpmnElement:e}),o=n.create("bpmndi:BPMNDiagram",{plane:i});i.$parent=o;var a=r.createRoot({id:Wv(e),type:e.$type,di:i,businessObject:e,collapsed:!0});return a};SS.prototype._removeDiagram=function(e){var n=this._bpmnjs,r=n.getDefinitions().diagrams,i=ki(r,function(o){return o.plane.bpmnElement.id===e.id});return r.splice(r.indexOf(i),1),i};SS.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"];function Ige(e,n){e.invoke(vn,this),this.postExecuted("shape.replace",function(r){var i=r.context.oldShape,o=r.context.newShape;if(!(!Fe(o,"bpmn:SubProcess")||!(Fe(i,"bpmn:Task")||Fe(i,"bpmn:CallActivity"))||!pi(o))){var a=vVn(o);n.createShape({type:"bpmn:StartEvent"},a,o)}})}Ige.$inject=["injector","modeling"];Zn(Ige,vn);function vVn(e){return{x:e.x+e.width/6,y:e.y+e.height/2}}function Nge(e){vn.call(this,e),this.preExecute("connection.create",function(n){const{target:r}=n;Fe(r,"bpmn:TextAnnotation")&&(n.parent=r.parent)},!0),this.preExecute(["shape.create","shape.resize","elements.move"],function(n){const r=n.shapes||[n.shape];r.length===1&&Fe(r[0],"bpmn:TextAnnotation")&&(n.hints=n.hints||{},n.hints.autoResize=!1)},!0)}Zn(Nge,vn);Nge.$inject=["eventBus"];function Mge(e,n){vn.call(this,e),this.postExecuted("shape.toggleCollapse",1500,function(r){var i=r.shape;if(pi(i))return;var o=bL(i);o.forEach(function(s){var l=s.incoming.slice(),c=s.outgoing.slice();ht(l,function(u){a(u,!0)}),ht(c,function(u){a(u,!1)})});function a(s,l){o.indexOf(s.source)!==-1&&o.indexOf(s.target)!==-1||(l?n.reconnectEnd(s,i,Mr(i)):n.reconnectStart(s,i,Mr(i)))}},!0)}Zn(Mge,vn);Mge.$inject=["eventBus","modeling"];var pJ=500;function Pge(e,n,r){vn.call(this,e);function i(s){s.length&&s.forEach(function(l){l.type==="label"&&!l.businessObject.name&&(l.hidden=!0)})}function o(s,l){var c=s.children,u=l,d,f;return d=yVn(c).concat([s]),f=btt(d),f?(u.width=Math.max(f.width,u.width),u.height=Math.max(f.height,u.height),u.x=f.x+(f.width-u.width)/2,u.y=f.y+(f.height-u.height)/2):(u.x=s.x+(s.width-u.width)/2,u.y=s.y+(s.height-u.height)/2),u}function a(s,l){return{x:s.x+(s.width-l.width)/2,y:s.y+(s.height-l.height)/2,width:l.width,height:l.height}}this.executed(["shape.toggleCollapse"],pJ,function(s){var l=s.context,c=l.shape;Fe(c,"bpmn:SubProcess")&&(c.collapsed?Ii(c).isExpanded=!1:(i(c.children),Ii(c).isExpanded=!0))}),this.reverted(["shape.toggleCollapse"],pJ,function(s){var l=s.context,c=l.shape;c.collapsed?Ii(c).isExpanded=!1:Ii(c).isExpanded=!0}),this.postExecuted(["shape.toggleCollapse"],pJ,function(s){var l=s.context.shape,c=n.getDefaultSize(l),u;l.collapsed?u=a(l,c):u=o(l,c),r.resizeShape(l,u,null,{autoResize:l.collapsed?!1:"nwse"})})}Zn(Pge,vn);Pge.$inject=["eventBus","elementFactory","modeling"];function yVn(e){return e.filter(function(n){return!n.hidden})}function Age(e,n,r,i){n.invoke(vn,this),this.preExecute("shape.delete",function(o){var a=o.context,s=a.shape,l=s.businessObject;Ni(s)||(Fe(s,"bpmn:Participant")&&pi(s)&&r.ids.unclaim(l.processRef.id),i.unclaimId(l.id,l))}),this.preExecute("connection.delete",function(o){var a=o.context,s=a.connection,l=s.businessObject;i.unclaimId(l.id,l)}),this.preExecute("canvas.updateRoot",function(){var o=e.getRootElement(),a=o.businessObject;Fe(o,"bpmn:Collaboration")&&r.ids.unclaim(a.id)})}Zn(Age,vn);Age.$inject=["canvas","injector","moddle","modeling"];function Dge(e,n){vn.call(this,e),this.preExecute("connection.delete",function(r){var i=r.context,o=i.connection,a=o.source;_Vn(o,a)&&n.updateProperties(a,{default:null})})}Zn(Dge,vn);Dge.$inject=["eventBus","modeling"];function _Vn(e,n){if(!Fe(e,"bpmn:SequenceFlow"))return!1;var r=In(n),i=In(e);return r.get("default")===i}var bVn=500,SVn=5e3;function kge(e,n){vn.call(this,e);var r;function i(){return r=r||new EVn,r.enter(),r}function o(){if(!r)throw new Error("out of bounds release");return r}function a(){if(!r)throw new Error("out of bounds release");var l=r.leave();return l&&(n.updateLaneRefs(r.flowNodes,r.lanes),r=null),l}var s=["spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move","shape.create","shape.delete","shape.move","shape.resize"];this.preExecute(s,SVn,function(l){i()}),this.postExecuted(s,bVn,function(l){a()}),this.preExecute(["shape.create","shape.move","shape.delete","shape.resize"],function(l){var c=l.context,u=c.shape,d=o();u.labelTarget||(Fe(u,"bpmn:Lane")&&d.addLane(u),Fe(u,"bpmn:FlowNode")&&d.addFlowNode(u))})}kge.$inject=["eventBus","modeling"];Zn(kge,vn);function EVn(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(e){this.lanes.push(e)},this.addFlowNode=function(e){this.flowNodes.push(e)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}function Lge(e,n){vn.call(this,e),this.postExecuted("elements.create",function(r){const i=r.context,o=i.elements;for(const a of o)CVn(a)&&!xVn(a)&&n.updateProperties(a,{isForCompensation:void 0})})}Zn(Lge,vn);Lge.$inject=["eventBus","modeling"];function CVn(e){const n=In(e);return n&&n.isForCompensation}function wVn(e){return e&&Fe(e,"bpmn:BoundaryEvent")&&WI(e,"bpmn:CompensateEventDefinition")}function xVn(e){return e.incoming.filter(r=>wVn(r.source)).length>0}const TVn={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","compensateBoundaryEventBehaviour","createBehavior","createDataObjectBehavior","createParticipantBehavior","dataInputAssociationBehavior","dataStoreBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","fixHoverBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","layoutConnectionBehavior","messageFlowBehavior","nonInterruptingBehavior","removeElementBehavior","removeEmbeddedLabelBoundsBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","rootElementReferenceBehavior","spaceToolBehavior","subProcessPlaneBehavior","subProcessStartEventBehavior","textAnnotationBehavior","toggleCollapseConnectionBehaviour","toggleElementCollapseBehaviour","unclaimIdBehavior","updateFlowNodeRefsBehavior","unsetDefaultFlowBehavior","setCompensationActivityAfterPasteBehavior"],adaptiveLabelPositioningBehavior:["type",ege],appendBehavior:["type",tge],associationBehavior:["type",nge],attachEventBehavior:["type",Vz],boundaryEventBehavior:["type",rge],compensateBoundaryEventBehaviour:["type",ige],createBehavior:["type",oge],createDataObjectBehavior:["type",age],createParticipantBehavior:["type",sge],dataInputAssociationBehavior:["type",lge],dataStoreBehavior:["type",cge],deleteLaneBehavior:["type",uge],detachEventBehavior:["type",Yz],dropOnFlowBehavior:["type",dge],eventBasedGatewayBehavior:["type",fge],fixHoverBehavior:["type",Stt],groupBehavior:["type",pge],importDockingFix:["type",Ett],isHorizontalFix:["type",hge],labelBehavior:["type",gge],layoutConnectionBehavior:["type",mge],messageFlowBehavior:["type",_ge],nonInterruptingBehavior:["type",bge],removeElementBehavior:["type",Ege],removeEmbeddedLabelBoundsBehavior:["type",Sge],removeParticipantBehavior:["type",Cge],replaceConnectionBehavior:["type",wge],replaceElementBehaviour:["type",Qz],resizeBehavior:["type",Att],resizeLaneBehavior:["type",ktt],rootElementReferenceBehavior:["type",Oge],spaceToolBehavior:["type",$tt],subProcessPlaneBehavior:["type",SS],subProcessStartEventBehavior:["type",Ige],textAnnotationBehavior:["type",Nge],toggleCollapseConnectionBehaviour:["type",Mge],toggleElementCollapseBehaviour:["type",Pge],unclaimIdBehavior:["type",Age],unsetDefaultFlowBehavior:["type",Dge],updateFlowNodeRefsBehavior:["type",kge],setCompensationActivityAfterPasteBehavior:["type",Lge]};function Ftt(e,n){var r=_c(e,n,-15);return r!=="intersect"?r:null}function Jl(e){Wp.call(this,e)}Zn(Jl,Wp);Jl.$inject=["eventBus"];Jl.prototype.init=function(){this.addRule("connection.start",function(e){var n=e.source;return OVn(n)}),this.addRule("connection.create",function(e){var n=e.source,r=e.target,i=e.hints||{},o=i.targetParent,a=i.targetAttach;if(a)return!1;o&&(r.parent=o);try{return X6(n,r)}finally{o&&(r.parent=null)}}),this.addRule("connection.reconnect",function(e){var n=e.connection,r=e.source,i=e.target;return X6(r,i,n)}),this.addRule("connection.updateWaypoints",function(e){return{type:e.connection.type}}),this.addRule("shape.resize",function(e){var n=e.shape,r=e.newBounds;return Ytt(n,r)}),this.addRule("elements.create",function(e){var n=e.elements,r=e.position,i=e.target;return wo(i)&&!sj(n,i)?!1:bw(n,function(o){return wo(o)?X6(o.source,o.target,o):o.host?vP(o,o.host,null,r):Gae(o,i,null)})}),this.addRule("elements.move",function(e){var n=e.target,r=e.shapes,i=e.position;return vP(r,n,null,i)||Gtt(r,n,i)||Wtt(r,n)||sj(r,n)}),this.addRule("shape.create",function(e){return Gae(e.shape,e.target,e.source,e.position)}),this.addRule("shape.attach",function(e){return vP(e.shape,e.target,null,e.position)}),this.addRule("element.copy",function(e){var n=e.element,r=e.elements;return Ztt(r,n)})};Jl.prototype.canConnectMessageFlow=Xtt;Jl.prototype.canConnectSequenceFlow=Qtt;Jl.prototype.canConnectDataAssociation=Fge;Jl.prototype.canConnectAssociation=qtt;Jl.prototype.canConnectCompensationAssociation=Ktt;Jl.prototype.canMove=Wtt;Jl.prototype.canAttach=vP;Jl.prototype.canReplace=Gtt;Jl.prototype.canDrop=hR;Jl.prototype.canInsert=sj;Jl.prototype.canCreate=Gae;Jl.prototype.canConnect=X6;Jl.prototype.canResize=Ytt;Jl.prototype.canCopy=Ztt;function OVn(e){return Hae(e)?null:ii(e,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}function Hae(e){return!e||Ni(e)}function RVn(e,n){return e===n}function mDe(e){do{if(Fe(e,"bpmn:Process"))return In(e);if(Fe(e,"bpmn:Participant"))return In(e).processRef||In(e)}while(e=e.parent)}function zae(e){return Fe(e,"bpmn:TextAnnotation")}function $ge(e){return Fe(e,"bpmn:Group")&&!e.labelTarget}function Btt(e){return Fe(e,"bpmn:BoundaryEvent")&&dm(e,"bpmn:CompensateEventDefinition")}function Zz(e){return In(e).isForCompensation}function IVn(e,n){var r=mDe(e),i=mDe(n);return r===i}function NVn(e){return Fe(e,"bpmn:InteractionNode")&&!Fe(e,"bpmn:BoundaryEvent")&&(!Fe(e,"bpmn:Event")||Fe(e,"bpmn:ThrowEvent")&&Utt(e,"bpmn:MessageEventDefinition"))}function MVn(e){return Fe(e,"bpmn:InteractionNode")&&!Zz(e)&&(!Fe(e,"bpmn:Event")||Fe(e,"bpmn:CatchEvent")&&Utt(e,"bpmn:MessageEventDefinition"))&&!(Fe(e,"bpmn:BoundaryEvent")&&!dm(e,"bpmn:MessageEventDefinition"))}function vDe(e){for(var n=e;n=n.parent;){if(Fe(n,"bpmn:FlowElementsContainer"))return In(n);if(Fe(n,"bpmn:Participant"))return In(n).processRef}return null}function jtt(e,n){var r=vDe(e),i=vDe(n);return r===i}function dm(e,n){var r=In(e);return!!ki(r.eventDefinitions||[],function(i){return Fe(i,n)})}function Utt(e,n){var r=In(e);return(r.eventDefinitions||[]).every(function(i){return Fe(i,n)})}function PVn(e){return Fe(e,"bpmn:FlowNode")&&!Fe(e,"bpmn:EndEvent")&&!zc(e)&&!(Fe(e,"bpmn:IntermediateThrowEvent")&&dm(e,"bpmn:LinkEventDefinition"))&&!Btt(e)&&!Zz(e)}function AVn(e){return Fe(e,"bpmn:FlowNode")&&!Fe(e,"bpmn:StartEvent")&&!Fe(e,"bpmn:BoundaryEvent")&&!zc(e)&&!(Fe(e,"bpmn:IntermediateCatchEvent")&&dm(e,"bpmn:LinkEventDefinition"))&&!Zz(e)}function DVn(e){return Fe(e,"bpmn:ReceiveTask")||Fe(e,"bpmn:IntermediateCatchEvent")&&(dm(e,"bpmn:MessageEventDefinition")||dm(e,"bpmn:TimerEventDefinition")||dm(e,"bpmn:ConditionalEventDefinition")||dm(e,"bpmn:SignalEventDefinition"))}function kVn(e){for(var n=[];e;)e=e.parent,e&&n.push(e);return n}function Vae(e,n){var r=kVn(n);return r.indexOf(e)!==-1}function X6(e,n,r){if(Hae(e)||Hae(n))return null;if(!Fe(r,"bpmn:DataAssociation")){if(Xtt(e,n))return{type:"bpmn:MessageFlow"};if(Qtt(e,n))return{type:"bpmn:SequenceFlow"}}var i=Fge(e,n);return i||(Ktt(e,n)?{type:"bpmn:Association",associationDirection:"One"}:qtt(e,n)?{type:"bpmn:Association",associationDirection:"None"}:!1)}function hR(e,n){return Ni(e)||$ge(e)?!0:Fe(n,"bpmn:Participant")&&!pi(n)?!1:Fe(e,"bpmn:Participant")?Fe(n,"bpmn:Process")||Fe(n,"bpmn:Collaboration"):ii(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?n===e.parent:Fe(e,"bpmn:Lane")?Fe(n,"bpmn:Participant")||Fe(n,"bpmn:Lane"):Fe(e,"bpmn:BoundaryEvent")&&!LVn(e)?!1:Fe(e,"bpmn:FlowElement")&&!Fe(e,"bpmn:DataStoreReference")?Fe(n,"bpmn:FlowElementsContainer")?pi(n):ii(n,["bpmn:Participant","bpmn:Lane"]):Fe(e,"bpmn:DataStoreReference")&&Fe(n,"bpmn:Collaboration")?fS(In(n).get("participants"),function(r){return!!r.get("processRef")}):ii(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?ii(n,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):Fe(e,"bpmn:MessageFlow")?Fe(n,"bpmn:Collaboration")||e.source.parent==n||e.target.parent==n:!1}function LVn(e){return In(e).cancelActivity&&(Htt(e)||ztt(e))}function $Vn(e){return!Ni(e)&&Fe(e,"bpmn:BoundaryEvent")}function FVn(e){return Fe(e,"bpmn:Lane")}function BVn(e){return $Vn(e)||Fe(e,"bpmn:IntermediateThrowEvent")&&Htt(e)?!0:Fe(e,"bpmn:IntermediateCatchEvent")&&ztt(e)}function Htt(e){var n=In(e);return n&&!(n.eventDefinitions&&n.eventDefinitions.length)}function ztt(e){return Vtt(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function Vtt(e,n){return n.some(function(r){return dm(e,r)})}function jVn(e){return Fe(e,"bpmn:ReceiveTask")&&ki(e.incoming,function(n){return Fe(n.source,"bpmn:EventBasedGateway")})}function vP(e,n,r,i){if(Array.isArray(e)||(e=[e]),e.length!==1)return!1;var o=e[0];return Ni(o)||!BVn(o)||zc(n)||!Fe(n,"bpmn:Activity")||Zz(n)||i&&!Ftt(i,n)||jVn(n)?!1:"attach"}function Gtt(e,n,r){if(!n)return!1;var i={replacements:[]};return ht(e,function(o){zc(n)||Fe(o,"bpmn:StartEvent")&&o.type!=="label"&&hR(o,n)&&(P7n(o)||i.replacements.push({oldElementId:o.id,newElementType:"bpmn:StartEvent"}),(A7n(o)||D7n(o)||k7n(o))&&i.replacements.push({oldElementId:o.id,newElementType:"bpmn:StartEvent"}),Vtt(o,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&Fe(n,"bpmn:SubProcess")&&i.replacements.push({oldElementId:o.id,newElementType:"bpmn:StartEvent"})),Fe(n,"bpmn:Transaction")||dm(o,"bpmn:CancelEventDefinition")&&o.type!=="label"&&(Fe(o,"bpmn:EndEvent")&&hR(o,n)&&i.replacements.push({oldElementId:o.id,newElementType:"bpmn:EndEvent"}),Fe(o,"bpmn:BoundaryEvent")&&vP(o,n,null,r)&&i.replacements.push({oldElementId:o.id,newElementType:"bpmn:BoundaryEvent"}))}),i.replacements.length?i:!1}function Wtt(e,n){return fS(e,FVn)?!1:n?e.every(function(r){return hR(r,n)}):!0}function Gae(e,n,r,i){return n?Ni(e)||$ge(e)?!0:RVn(r,n)||r&&Vae(r,n)?!1:hR(e,n)||sj(e,n):!1}function Ytt(e,n){return Fe(e,"bpmn:SubProcess")?pi(e)&&(!n||n.width>=100&&n.height>=80):!!(Fe(e,"bpmn:Lane")||Fe(e,"bpmn:Participant")||zae(e)||$ge(e))}function UVn(e,n){var r=zae(e),i=zae(n);return(r||i)&&r!==i}function qtt(e,n){return Vae(n,e)||Vae(e,n)?!1:UVn(e,n)?!0:!!Fge(e,n)}function Ktt(e,n){return jtt(e,n)&&Btt(e)&&Fe(n,"bpmn:Activity")&&!zVn(n,e)&&!zc(n)}function Xtt(e,n){return yDe(e)&&!yDe(n)?!1:NVn(e)&&MVn(n)&&!IVn(e,n)}function Qtt(e,n){return PVn(e)&&AVn(n)&&jtt(e,n)&&!(Fe(e,"bpmn:EventBasedGateway")&&!DVn(n))}function Fge(e,n){return ii(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&ii(n,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:ii(n,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&ii(e,["bpmn:Activity","bpmn:CatchEvent"])?{type:"bpmn:DataOutputAssociation"}:!1}function sj(e,n,r){if(!n)return!1;if(Array.isArray(e)){if(e.length!==1)return!1;e=e[0]}return n.source===e||n.target===e?!1:ii(n,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!Ni(n)&&Fe(e,"bpmn:FlowNode")&&!Fe(e,"bpmn:BoundaryEvent")&&hR(e,n.parent)}function HVn(e,n){return e&&n&&e.indexOf(n)!==-1}function Ztt(e,n){return Ni(n)?!0:!(Fe(n,"bpmn:Lane")&&!HVn(e,n.parent))}function yDe(e){return fR(e,"bpmn:Process")||fR(e,"bpmn:Collaboration")}function zVn(e,n){return e.attachers.includes(n)}const VVn={__depends__:[sv],__init__:["bpmnRules"],bpmnRules:["type",Jl]};var GVn=2e3;function Jtt(e,n){e.on("saveXML.start",GVn,r);function r(){var i=n.getRootElements();ht(i,function(o){var a=Ii(o),s,l;s=bL([o],!1),s=si(s,function(c){return c!==o&&!c.labelTarget}),l=vc(s,Ii),a.set("planeElement",l)})}}Jtt.$inject=["eventBus","canvas"];const WVn={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",Jtt]};function Jz(e){vn.call(this,e);var n=this;this.preExecute(["shape.create","connection.create"],function(r){var i=r.context,o=i.shape||i.connection,a=i.parent,s=n.getOrdering(o,a);s&&(s.parent!==void 0&&(i.parent=s.parent),i.parentIndex=s.index)}),this.preExecute(["shape.move","connection.move"],function(r){var i=r.context,o=i.shape||i.connection,a=i.newParent||o.parent,s=n.getOrdering(o,a);s&&(s.parent!==void 0&&(i.newParent=s.parent),i.newParentIndex=s.index)})}Jz.prototype.getOrdering=function(e,n){return null};Zn(Jz,vn);function Bge(e,n){Jz.call(this,e);var r=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:9,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:TextAnnotation",order:{level:9}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function i(s){if(s.labelTarget)return{level:10};var l=ki(r,function(c){return ii(s,[c.type])});return l&&l.order||{level:1}}function o(s){var l=s.order;if(l||(s.order=l=i(s)),!l)throw new Error(`no order for <${s.id}>`);return l}function a(s,l,c){for(var u=l;u&&!ii(u,c);)u=u.parent;if(!u)throw new Error(`no parent for <${s.id}> in <${l&&l.id}>`);return u}this.getOrdering=function(s,l){if(s.labelTarget||Fe(s,"bpmn:TextAnnotation"))return{parent:n.findRoot(l)||n.getRootElement(),index:-1};var c=o(s);c.containers&&(l=a(s,l,c.containers));var u=l.children.indexOf(s),d=ZZe(l.children,function(f){return!s.labelTarget&&f.labelTarget?!1:c.level<o(f).level});return d!==-1&&u!==-1&&u<d&&(d-=1),{index:d,parent:l}}}Bge.$inject=["eventBus","canvas"];Zn(Bge,Jz);const YVn={__init__:["bpmnOrderingProvider"],bpmnOrderingProvider:["type",Bge]};function PL(){}PL.prototype.get=function(){return this._data};PL.prototype.set=function(e){this._data=e};PL.prototype.clear=function(){var e=this._data;return delete this._data,e};PL.prototype.isEmpty=function(){return!this._data};const qVn={clipboard:["type",PL]};var KVn="drop-ok",_De="drop-not-ok",bDe="attach-ok",SDe="new-parent",EDe="create",XVn=2e3;function ent(e,n,r,i,o){function a(c,u,d,f,p){if(!u)return!1;c=si(c,function(S){var b=S.labelTarget;return!S.parent&&!(Ni(S)&&c.indexOf(b)!==-1)});var h=ki(c,function(S){return!wo(S)}),g=!1,v=!1,y=!1;wDe(c)&&(g=o.allowed("shape.attach",{position:d,shape:h,target:u})),g||(wDe(c)?y=o.allowed("shape.create",{position:d,shape:h,source:f,target:u}):y=o.allowed("elements.create",{elements:c,position:d,target:u}));var _=p.connectionTarget;return y||g?(h&&f&&(v=o.allowed("connection.create",{source:_===f?h:f,target:_===f?f:h,hints:{targetParent:u,targetAttach:g}})),{attach:g,connect:v}):y===null||g===null?null:!1}function s(c,u){[bDe,KVn,_De,SDe].forEach(function(d){d===u?e.addMarker(c,d):e.removeMarker(c,d)})}r.on(["create.move","create.hover"],function(c){var u=c.context,d=u.elements,f=c.hover,p=u.source,h=u.hints||{};if(!f){u.canExecute=!1,u.target=null;return}CDe(c);var g={x:c.x,y:c.y},v=u.canExecute=f&&a(d,f,g,p,h);f&&v!==null&&(u.target=f,v&&v.attach?s(f,bDe):s(f,v?SDe:_De))}),r.on(["create.end","create.out","create.cleanup"],function(c){var u=c.hover;u&&s(u,null)}),r.on("create.end",function(c){var u=c.context,d=u.source,f=u.shape,p=u.elements,h=u.target,g=u.canExecute,v=g&&g.attach,y=g&&g.connect,_=u.hints||{};if(g===!1||!h)return!1;CDe(c);var S={x:c.x,y:c.y};y?f=i.appendShape(d,f,S,h,{attach:v,connection:y===!0?{}:y,connectionTarget:_.connectionTarget}):(p=i.createElements(p,S,h,Rt({},_,{attach:v})),f=ki(p,function(b){return!wo(b)})),Rt(u,{elements:p,shape:f}),Rt(c,{elements:p,shape:f})});function l(){var c=n.context();c&&c.prefix===EDe&&n.cancel()}r.on("create.init",function(){r.on("elements.changed",l),r.once(["create.cancel","create.end"],XVn,function(){r.off("elements.changed",l)})}),this.start=function(c,u,d){zr(u)||(u=[u]);var f=ki(u,function(g){return!wo(g)});if(f){d=Rt({elements:u,hints:{},shape:f},d||{}),ht(u,function(g){Nr(g.x)||(g.x=0),Nr(g.y)||(g.y=0)});var p=si(u,function(g){return!g.hidden}),h=sl(p);ht(u,function(g){wo(g)&&(g.waypoints=vc(g.waypoints,function(v){return{x:v.x-h.x-h.width/2,y:v.y-h.y-h.height/2}})),Rt(g,{x:g.x-h.x-h.width/2,y:g.y-h.y-h.height/2})}),n.init(c,EDe,{cursor:"grabbing",autoActivate:!0,data:{shape:f,elements:u,context:d}})}}}ent.$inject=["canvas","dragging","eventBus","modeling","rules"];function CDe(e){var n=e.context,r=n.createConstraints;r&&(r.left&&(e.x=Math.max(e.x,r.left)),r.right&&(e.x=Math.min(e.x,r.right)),r.top&&(e.y=Math.max(e.y,r.top)),r.bottom&&(e.y=Math.min(e.y,r.bottom)))}function wDe(e){return e&&e.length===1&&!wo(e[0])}var QVn=750;function tnt(e,n,r,i,o){function a(s){var l=pr("g");Gn(l,o.cls("djs-drag-group",["no-events"]));var c=pr("g");return s.forEach(function(u){var d;u.hidden||(u.waypoints?(d=r._createContainer("connection",c),r.drawConnection($1(d),u)):(d=r._createContainer("shape",c),r.drawShape($1(d),u),Wl(d,u.x,u.y)),i.addDragger(u,l,d))}),l}n.on("create.move",QVn,function(s){var l=s.hover,c=s.context,u=c.elements,d=c.dragGroup;d||(d=c.dragGroup=a(u));var f;l?(d.parentNode||(f=e.getActiveLayer(),Ar(f,d)),Wl(d,s.x,s.y)):Hs(d)}),n.on("create.cleanup",function(s){var l=s.context,c=l.dragGroup;c&&Hs(c)})}tnt.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];const eV={__depends__:[y_,eN,sv,xg],__init__:["create","createPreview"],create:["type",ent],createPreview:["type",tnt]};function jge(e){var n=this;this._lastMoveEvent=null;function r(i){n._lastMoveEvent=i}e.on("canvas.init",function(i){var o=n._svg=i.svg;o.addEventListener("mousemove",r)}),e.on("canvas.destroy",function(){n._lastMouseEvent=null,n._svg.removeEventListener("mousemove",r)})}jge.$inject=["eventBus"];jge.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||ZVn(0,0)};function ZVn(e,n){var r=document.createEvent("MouseEvent"),i=e,o=n,a=e,s=n;return r.initMouseEvent&&r.initMouseEvent("mousemove",!0,!0,window,0,i,o,a,s,!1,!1,!1,!1,0,null),r}const AL={__init__:["mouse"],mouse:["type",jge]};function Tg(e,n,r,i,o,a,s,l){this._canvas=e,this._create=n,this._clipboard=r,this._elementFactory=i,this._eventBus=o,this._modeling=a,this._mouse=s,this._rules=l,o.on("copyPaste.copyElement",function(c){var u=c.descriptor,d=c.element,f=c.elements;u.priority=1,u.id=d.id;var p=ki(f,function(h){return h===d.parent});p&&(u.parent=d.parent.id),JVn(d)&&(u.priority=2,u.host=d.host.id),wo(d)&&(u.priority=3,u.source=d.source.id,u.target=d.target.id,u.waypoints=eGn(d)),Ni(d)&&(u.priority=4,u.labelTarget=d.labelTarget.id),ht(["x","y","width","height"],function(h){Nr(d[h])&&(u[h]=d[h])}),u.hidden=d.hidden,u.collapsed=d.collapsed}),o.on("copyPaste.pasteElements",function(c){var u=c.hints;Rt(u,{createElementsBehavior:!1})})}Tg.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"];Tg.prototype.copy=function(e){var n,r;return zr(e)||(e=e?[e]:[]),n=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}),n===!1?r={}:r=this.createTree(zr(n)?n:e),this._clipboard.set(r),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:r}),r};Tg.prototype.paste=function(e){var n=this._clipboard.get();if(!this._clipboard.isEmpty()){var r=e&&e.hints||{};this._eventBus.fire("copyPaste.pasteElements",{hints:r});var i=this._createElements(n);if(e&&e.element&&e.point)return this._paste(i,e.element,e.point,r);this._create.start(this._mouse.getLastMoveEvent(),i,{hints:r||{}})}};Tg.prototype._paste=function(e,n,r,i){ht(e,function(a){Nr(a.x)||(a.x=0),Nr(a.y)||(a.y=0)});var o=sl(e);return ht(e,function(a){wo(a)&&(a.waypoints=vc(a.waypoints,function(s){return{x:s.x-o.x-o.width/2,y:s.y-o.y-o.height/2}})),Rt(a,{x:a.x-o.x-o.width/2,y:a.y-o.y-o.height/2})}),this._modeling.createElements(e,r,n,Rt({},i))};Tg.prototype._createElements=function(e){var n=this,r=this._eventBus,i={},o=[];return ht(e,function(a,s){a=$m(a,"priority"),ht(a,function(l){var c=Rt({},iv(l,["priority"]));i[l.parent]?c.parent=i[l.parent]:delete c.parent,r.fire("copyPaste.pasteElement",{cache:i,descriptor:c});var u;if(wo(c)){c.source=i[l.source],c.target=i[l.target],u=i[l.id]=n.createConnection(c),o.push(u);return}if(Ni(c)){c.labelTarget=i[c.labelTarget],u=i[l.id]=n.createLabel(c),o.push(u);return}c.host&&(c.host=i[c.host]),u=i[l.id]=n.createShape(c),o.push(u)})}),o};Tg.prototype.createConnection=function(e){var n=this._elementFactory.createConnection(iv(e,["id"]));return n};Tg.prototype.createLabel=function(e){var n=this._elementFactory.createLabel(iv(e,["id"]));return n};Tg.prototype.createShape=function(e){var n=this._elementFactory.createShape(iv(e,["id"]));return n};Tg.prototype.hasRelations=function(e,n){var r,i,o;return!(wo(e)&&(i=ki(n,qh({id:e.source.id})),o=ki(n,qh({id:e.target.id})),!i||!o)||Ni(e)&&(r=ki(n,qh({id:e.labelTarget.id})),!r))};Tg.prototype.createTree=function(e){var n=this._rules,r=this,i={},o=[],a=Tz(e);function s(u,d){return n.allowed("element.copy",{element:u,elements:d})}function l(u,d){var f=ki(o,function(p){return u===p.element});if(!f){o.push({element:u,depth:d});return}f.depth<d&&(o=c(f,o),o.push({element:f.element,depth:d}))}function c(u,d){var f=d.indexOf(u);return f!==-1&&d.splice(f,1),d}return Ew(a,function(u,d,f){if(Ni(u))return;ht(u.labels,function(g){l(g,f)});function p(g){g&&g.length&&ht(g,function(v){ht(v.labels,function(y){l(y,f)}),l(v,f)})}ht([u.attachers,u.incoming,u.outgoing],p),l(u,f);var h=[];return u.children&&(h=u.children.slice()),r._eventBus.fire("copyPaste.createTree",{element:u,children:h}),h}),e=vc(o,function(u){return u.element}),o=vc(o,function(u){return u.descriptor={},r._eventBus.fire("copyPaste.copyElement",{descriptor:u.descriptor,element:u.element,elements:e}),u}),o=$m(o,function(u){return u.descriptor.priority}),e=vc(o,function(u){return u.element}),ht(o,function(u){var d=u.depth;if(!r.hasRelations(u.element,e)){TDe(u.element,e);return}if(!s(u.element,e)){TDe(u.element,e);return}i[d]||(i[d]=[]),i[d].push(u.descriptor)}),i};function JVn(e){return!!e.host}function eGn(e){return vc(e.waypoints,function(n){return n=xDe(n),n.original&&(n.original=xDe(n.original)),n})}function xDe(e){return Rt({},e)}function TDe(e,n){var r=n.indexOf(e);return r===-1?n:n.splice(r,1)}const tGn={__depends__:[qVn,eV,AL,sv],__init__:["copyPaste"],copyPaste:["type",Tg]};function hJ(e,n,r){zr(r)||(r=[r]),ht(r,function(i){SC(e[i])||(n[i]=e[i])})}var gJ=750;function nnt(e,n,r){function i(c,u){var d=e.create(c.$type);return r.copyElement(c,d,null,u)}n.on("copyPaste.copyElement",gJ,function(c){var u=c.descriptor,d=c.element,f=In(d);if(Ni(d))return u;var p=u.businessObject=i(f,!0),h=u.di=i(Ii(d),!0);h.bpmnElement=p,hJ(p,u,"name"),hJ(h,u,"isExpanded"),f.default&&(u.default=f.default.id)});var o="-bpmn-js-refs";function a(c){return c[o]=c[o]||{}}function s(c,u){c[o]=u}function l(c,u,d){var f=In(c);return c.default&&(d[c.default]={element:f,property:"default"}),c.host&&(In(c).attachedToRef=In(u[c.host])),iv(d,vd(d,function(p,h,g){var v=h.element,y=h.property;return g===c.id&&(v.set(y,f),p.push(c.id)),p},[]))}n.on("copyPaste.pasteElement",function(c){var u=c.cache,d=c.descriptor,f=d.businessObject,p=d.di;if(Ni(d)){d.businessObject=In(u[d.labelTarget]),d.di=Ii(u[d.labelTarget]);return}f=d.businessObject=i(f),p=d.di=i(p),p.bpmnElement=f,hJ(d,f,["isExpanded","name"]),d.type=f.$type}),n.on("copyPaste.copyElement",gJ,function(c){var u=c.descriptor,d=c.element;if(Fe(d,"bpmn:Participant")){var f=In(d);f.processRef&&(u.processRef=i(f.processRef,!0))}}),n.on("copyPaste.pasteElement",function(c){var u=c.descriptor,d=u.processRef;d&&(u.processRef=i(d))}),n.on("copyPaste.pasteElement",gJ,function(c){var u=c.cache,d=c.descriptor;s(u,l(d,u,a(u)))})}nnt.$inject=["bpmnFactory","eventBus","moddleCopy"];var nGn=["artifacts","dataInputAssociations","dataOutputAssociations","default","flowElements","lanes","incoming","outgoing","categoryValue"];function DL(e,n,r){this._bpmnFactory=n,this._eventBus=e,this._moddle=r,e.on("moddleCopy.canCopyProperties",function(i){var o=i.propertyNames;if(!(!o||!o.length))return $m(o,function(a){return a==="extensionElements"})}),e.on("moddleCopy.canCopyProperty",function(i){var o=i.parent,a=Rl(o)&&o.$descriptor,s=i.propertyName;if(s&&nGn.indexOf(s)!==-1||s&&a&&!ki(a.properties,qh({name:s})))return!1}),e.on("moddleCopy.canSetCopiedProperty",function(i){var o=i.property;if(rGn(o,"bpmn:ExtensionElements")&&(!o.values||!o.values.length))return!1})}DL.$inject=["eventBus","bpmnFactory","moddle"];DL.prototype.copyElement=function(e,n,r,i=!1){var o=this;r&&!zr(r)&&(r=[r]),r=r||Wae(e.$descriptor);var a=this._eventBus.fire("moddleCopy.canCopyProperties",{propertyNames:r,sourceElement:e,targetElement:n,clone:i});return a===!1||(zr(a)&&(r=a),ht(r,function(s){var l;gu(e,s)&&(l=e.get(s));var c=o.copyProperty(l,n,s,i);if(bl(c)){var u=o._eventBus.fire("moddleCopy.canSetCopiedProperty",{parent:n,property:c,propertyName:s});u!==!1&&n.set(s,c)}})),n};DL.prototype.copyProperty=function(e,n,r,i=!1){var o=this,a=this._eventBus.fire("moddleCopy.canCopyProperty",{parent:n,property:e,propertyName:r,clone:i});if(a!==!1){if(a)return Rl(a)&&a.$type&&!a.$parent&&(a.$parent=n),a;var s=this._moddle.getPropertyDescriptor(n,r);if(!s.isReference)return s.isId?e&&this._copyId(e,n,i):zr(e)?vd(e,function(l,c){return a=o.copyProperty(c,n,r,i),a?l.concat(a):l},[]):Rl(e)&&e.$type?this._moddle.getElementDescriptor(e).isGeneric?void 0:(a=o._bpmnFactory.create(e.$type),a.$parent=n,a=o.copyElement(e,a,null,i),a):e}};DL.prototype._copyId=function(e,n,r=!1){if(r)return e;if(!this._moddle.ids.assigned(e))return this._moddle.ids.claim(e,n),e};function Wae(e,n){return vd(e.properties,function(r,i){return n&&i.default?r:r.concat(i.name)},[])}function rGn(e,n){return e&&zs(e.$instanceOf)&&e.$instanceOf(n)}const rnt={__depends__:[tGn],__init__:["bpmnCopyPaste","moddleCopy"],bpmnCopyPaste:["type",nnt],moddleCopy:["type",DL]};var ODe=Math.round;function Uge(e,n){this._modeling=e,this._eventBus=n}Uge.$inject=["modeling","eventBus"];Uge.prototype.replaceElement=function(e,n,r){if(e.waypoints)return null;var i=this._modeling,o=this._eventBus;o.fire("replace.start",{element:e,attrs:n,hints:r});var a=n.width||e.width,s=n.height||e.height,l=n.x||e.x,c=n.y||e.y,u=ODe(l+a/2),d=ODe(c+s/2),f=i.replaceShape(e,Rt({},n,{x:u,y:d,width:a,height:s}),r);return o.fire("replace.end",{element:e,newElement:f,hints:r}),f};function int(e,n){n.on("replace.end",500,function(r){const{newElement:i,hints:o={}}=r;o.select!==!1&&e.select(i)})}int.$inject=["selection","eventBus"];const iGn={__init__:["replace","replaceSelectionBehavior"],replaceSelectionBehavior:["type",int],replace:["type",Uge]};function oGn(e,n,r){zr(r)||(r=[r]),ht(r,function(i){SC(e[i])||(n[i]=e[i])})}var aGn=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];function sGn(e,n){var r=e&&gu(e,"collapsed")?e.collapsed:!pi(e),i;return n&&(gu(n,"collapsed")||gu(n,"isExpanded"))?i=gu(n,"collapsed")?n.collapsed:!n.isExpanded:i=r,r!==i}function ont(e,n,r,i,o,a){function s(l,c,u){u=u||{};var d=c.type,f=l.businessObject;if(Q4(f)&&(d==="bpmn:SubProcess"||d==="bpmn:AdHocSubProcess")&&sGn(l,c))return i.toggleCollapse(l),l;var p=e.create(d),h={type:d,businessObject:p};h.di={},d==="bpmn:ExclusiveGateway"&&(h.di.isMarkerVisible=!0),oGn(l.di,h.di,["fill","stroke","background-color","border-color","color"]);var g=Wae(f.$descriptor),v=Wae(p.$descriptor,!0),y=lGn(g,v);Rt(p,ag(c,aGn));var _=si(y,function(E){return E==="eventDefinitions"?RDe(l,c.eventDefinitionType):E==="loopCharacteristics"?!zc(p):gu(p,E)||E==="processRef"&&c.isExpanded===!1||E==="triggeredByEvent"?!1:E==="isForCompensation"?!zc(p):!0});if(p=r.copyElement(f,p,_),c.eventDefinitionType&&(RDe(p,c.eventDefinitionType)||(h.eventDefinitionType=c.eventDefinitionType,h.eventDefinitionAttrs=c.eventDefinitionAttrs)),Fe(f,"bpmn:Activity")){if(Q4(f))h.isExpanded=pi(l);else if(c&&gu(c,"isExpanded")){h.isExpanded=c.isExpanded;var S=n.getDefaultSize(p,{isExpanded:h.isExpanded});h.width=S.width,h.height=S.height,h.x=l.x-(h.width-l.width)/2,h.y=l.y-(h.height-l.height)/2}pi(l)&&!Fe(f,"bpmn:Task")&&h.isExpanded&&(h.width=l.width,h.height=l.height)}if(Q4(f)&&!Q4(p)&&(u.moveChildren=!1),Fe(f,"bpmn:Participant")){c.isExpanded===!0?p.processRef=e.create("bpmn:Process"):u.moveChildren=!1;var b=cl(l);Ii(l).isHorizontal||(Ii(h).isHorizontal=b),h.width=b?l.width:n.getDefaultSize(h).width,h.height=b?n.getDefaultSize(h).height:l.height}return a.allowed("shape.resize",{shape:p})||(h.height=n.getDefaultSize(h).height,h.width=n.getDefaultSize(h).width),p.name=f.name,ii(f,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&ii(p,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(p.default=f.default),c.host&&!Fe(f,"bpmn:BoundaryEvent")&&Fe(p,"bpmn:BoundaryEvent")&&(h.host=c.host),(h.type==="bpmn:DataStoreReference"||h.type==="bpmn:DataObjectReference")&&(h.x=l.x+(l.width-h.width)/2),o.replaceElement(l,h,{...u,targetElement:c})}this.replaceElement=s}ont.$inject=["bpmnFactory","elementFactory","moddleCopy","modeling","replace","rules"];function Q4(e){return Fe(e,"bpmn:SubProcess")}function RDe(e,n){var r=In(e);return n&&r.get("eventDefinitions").some(function(i){return Fe(i,n)})}function lGn(e,n){return e.filter(function(r){return n.includes(r)})}const ant={__depends__:[rnt,iGn,xg],bpmnReplace:["type",ont]};var cGn=250;function Tw(e){this._eventBus=e,this._tools=[],this._active=null}Tw.$inject=["eventBus"];Tw.prototype.registerTool=function(e,n){var r=this._tools;if(!n)throw new Error(`A tool has to be registered with it's "events"`);r.push(e),this.bindEvents(e,n)};Tw.prototype.isActive=function(e){return e&&this._active===e};Tw.prototype.length=function(e){return this._tools.length};Tw.prototype.setActive=function(e){var n=this._eventBus;this._active!==e&&(this._active=e,n.fire("tool-manager.update",{tool:e}))};Tw.prototype.bindEvents=function(e,n){var r=this._eventBus,i=[];r.on(n.tool+".init",function(o){var a=o.context;if(!a.reactivate&&this.isActive(e)){this.setActive(null);return}this.setActive(e)},this),ht(n,function(o){i.push(o+".ended"),i.push(o+".canceled")}),r.on(i,cGn,function(o){this._active&&(uGn(o)||this.setActive(null))},this)};function uGn(e){var n=e.originalEvent&&e.originalEvent.target;return n&&zI(n,'.group[data-group="tools"]')}const tV={__depends__:[y_],__init__:["toolManager"],toolManager:["type",Tw]};function dGn(e,n){if(e==="x"){if(n>0)return"e";if(n<0)return"w"}if(e==="y"){if(n>0)return"s";if(n<0)return"n"}return null}function fGn(e,n){var r=[];return ht(e.concat(n),function(i){var o=i.incoming,a=i.outgoing;ht(o.concat(a),function(s){var l=s.source,c=s.target;(AM(e,l)||AM(e,c)||AM(n,l)||AM(n,c))&&(AM(r,s)||r.push(s))})}),r}function AM(e,n){return e.indexOf(n)!==-1}function pGn(e,n,r){var i=e.x,o=e.y,a=e.width,s=e.height,l=r.x,c=r.y;switch(n){case"n":return{x:i,y:o+c,width:a,height:s-c};case"s":return{x:i,y:o,width:a,height:s+c};case"w":return{x:i+l,y:o,width:a-l,height:s};case"e":return{x:i,y:o,width:a+l,height:s};default:throw new Error("unknown direction: "+n)}}var mJ=Math.abs,hGn=Math.round,Dv={x:"width",y:"height"},snt="crosshair",X_={n:"top",w:"left",s:"bottom",e:"right"},gGn=1500,Z4={n:"s",w:"e",s:"n",e:"w"},J4=20;function Yp(e,n,r,i,o,a,s){this._canvas=e,this._dragging=n,this._eventBus=r,this._modeling=i,this._rules=o,this._toolManager=a,this._mouse=s;var l=this;a.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),r.on("spaceTool.selection.end",function(c){r.once("spaceTool.selection.ended",function(){l.activateMakeSpace(c.originalEvent)})}),r.on("spaceTool.move",gGn,function(c){var u=c.context,d=u.initialized;d||(d=u.initialized=l.init(c,u)),d&&NDe(c)}),r.on("spaceTool.end",function(c){var u=c.context,d=u.axis,f=u.direction,p=u.movingShapes,h=u.resizingShapes,g=u.start;if(u.initialized){NDe(c);var v={x:0,y:0};v[d]=hGn(c["d"+d]),l.makeSpace(p,h,v,f,g),r.once("spaceTool.ended",function(y){l.activateSelection(y.originalEvent,!0,!0)})}})}Yp.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"];Yp.prototype.activateSelection=function(e,n,r){this._dragging.init(e,"spaceTool.selection",{autoActivate:n,cursor:snt,data:{context:{reactivate:r}},trapClick:!1})};Yp.prototype.activateMakeSpace=function(e){this._dragging.init(e,"spaceTool",{autoActivate:!0,cursor:snt,data:{context:{}}})};Yp.prototype.makeSpace=function(e,n,r,i,o){return this._modeling.createSpace(e,n,r,i,o)};Yp.prototype.init=function(e,n){var r=mJ(e.dx)>mJ(e.dy)?"x":"y",i=e["d"+r],o=e[r]-i;if(mJ(i)<5)return!1;i<0&&(i*=-1),iD(e)&&(i*=-1);var a=dGn(r,i),s=this._canvas.getRootElement();!JB(e)&&e.hover&&(s=e.hover);var l=[...bL(s,!0),...s.attachers||[]],c=this.calculateAdjustments(l,r,i,o),u=this._eventBus.fire("spaceTool.getMinDimensions",{axis:r,direction:a,shapes:c.resizingShapes,start:o}),d=mGn(c,r,a,o,u);return Rt(n,c,{axis:r,direction:a,spaceToolConstraints:d,start:o}),Fz("resize-"+(r==="x"?"ew":"ns")),!0};Yp.prototype.calculateAdjustments=function(e,n,r,i){var o=this._rules,a=[],s=[],l=[],c=[];function u(p){a.includes(p)||a.push(p);var h=p.label;h&&!a.includes(h)&&a.push(h)}function d(p){s.includes(p)||s.push(p)}ht(e,function(p){if(!(!p.parent||Ni(p))){if(wo(p)){c.push(p);return}var h=p[n],g=h+p[Dv[n]];if(vGn(p)&&(r>0&&Mr(p)[n]>i||r<0&&Mr(p)[n]<i)){l.push(p);return}if(r>0&&h>i||r<0&&g<i){u(p);return}if(h<i&&g>i&&o.allowed("shape.resize",{shape:p})){d(p);return}}}),ht(a,function(p){var h=p.attachers;h&&ht(h,function(g){u(g)})});var f=a.concat(s);return ht(l,function(p){var h=p.host;u1(f,h)&&u(p)}),f=a.concat(s),ht(c,function(p){var h=p.source,g=p.target,v=p.label;u1(f,h)&&u1(f,g)&&v&&u(v)}),{movingShapes:a,resizingShapes:s}};Yp.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)};Yp.prototype.isActive=function(){var e=this._dragging.context();return e?/^spaceTool/.test(e.prefix):!1};function IDe(e){return{top:e.top-J4,right:e.right+J4,bottom:e.bottom+J4,left:e.left-J4}}function NDe(e){var n=e.context,r=n.spaceToolConstraints;if(r){var i,o;Nr(r.left)&&(i=Math.max(e.x,r.left),e.dx=e.dx+i-e.x,e.x=i),Nr(r.right)&&(i=Math.min(e.x,r.right),e.dx=e.dx+i-e.x,e.x=i),Nr(r.top)&&(o=Math.max(e.y,r.top),e.dy=e.dy+o-e.y,e.y=o),Nr(r.bottom)&&(o=Math.min(e.y,r.bottom),e.dy=e.dy+o-e.y,e.y=o)}}function mGn(e,n,r,i,o){var a=e.movingShapes,s=e.resizingShapes;if(s.length){var l={},c,u;return ht(s,function(d){var f=d.attachers,p=d.children,h=br(d),g=si(p,function(O){return!wo(O)&&!Ni(O)&&!u1(a,O)&&!u1(s,O)}),v=si(p,function(O){return!wo(O)&&!Ni(O)&&u1(a,O)}),y,_,S,b=[],E=[],w,C,x,T;g.length&&(_=IDe(br(sl(g))),y=i-h[X_[r]]+_[X_[r]],r==="n"?l.bottom=u=Nr(u)?Math.min(u,y):y:r==="w"?l.right=u=Nr(u)?Math.min(u,y):y:r==="s"?l.top=c=Nr(c)?Math.max(c,y):y:r==="e"&&(l.left=c=Nr(c)?Math.max(c,y):y)),v.length&&(S=IDe(br(sl(v))),y=i-S[X_[Z4[r]]]+h[X_[Z4[r]]],r==="n"?l.bottom=u=Nr(u)?Math.min(u,y):y:r==="w"?l.right=u=Nr(u)?Math.min(u,y):y:r==="s"?l.top=c=Nr(c)?Math.max(c,y):y:r==="e"&&(l.left=c=Nr(c)?Math.max(c,y):y)),f&&f.length&&(f.forEach(function(O){u1(a,O)?b.push(O):E.push(O)}),b.length&&(w=br(sl(b.map(Mr))),C=h[X_[Z4[r]]]-(w[X_[Z4[r]]]-i)),E.length&&(x=br(sl(E.map(Mr))),T=x[X_[r]]-(h[X_[r]]-i)),r==="n"?(y=Math.min(C||1/0,T||1/0),l.bottom=u=Nr(u)?Math.min(u,y):y):r==="w"?(y=Math.min(C||1/0,T||1/0),l.right=u=Nr(u)?Math.min(u,y):y):r==="s"?(y=Math.max(C||-1/0,T||-1/0),l.top=c=Nr(c)?Math.max(c,y):y):r==="e"&&(y=Math.max(C||-1/0,T||-1/0),l.left=c=Nr(c)?Math.max(c,y):y));var R=o&&o[d.id];R&&(r==="n"?(y=i+d[Dv[n]]-R[Dv[n]],l.bottom=u=Nr(u)?Math.min(u,y):y):r==="w"?(y=i+d[Dv[n]]-R[Dv[n]],l.right=u=Nr(u)?Math.min(u,y):y):r==="s"?(y=i-d[Dv[n]]+R[Dv[n]],l.top=c=Nr(c)?Math.max(c,y):y):r==="e"&&(y=i-d[Dv[n]]+R[Dv[n]],l.left=c=Nr(c)?Math.max(c,y):y))}),l}}function u1(e,n){return e.indexOf(n)!==-1}function vGn(e){return!!e.host}var vJ="djs-dragging",MDe="djs-resizing",yGn=250,e5=Math.max;function lnt(e,n,r,i,o){function a(s,l){ht(s,function(c){o.addDragger(c,l),r.addMarker(c,vJ)})}e.on("spaceTool.selection.start",function(s){var l=r.getLayer("space"),c=s.context,u={x:"M 0,-10000 L 0,10000",y:"M -10000,0 L 10000,0"},d=pr("g");Gn(d,i.cls("djs-crosshair-group",["no-events"])),Ar(l,d);var f=pr("path");Gn(f,"d",u.x),Ri(f).add("djs-crosshair"),Ar(d,f);var p=pr("path");Gn(p,"d",u.y),Ri(p).add("djs-crosshair"),Ar(d,p),c.crosshairGroup=d}),e.on("spaceTool.selection.move",function(s){var l=s.context.crosshairGroup;Wl(l,s.x,s.y)}),e.on("spaceTool.selection.cleanup",function(s){var l=s.context,c=l.crosshairGroup;c&&Hs(c)}),e.on("spaceTool.move",yGn,function(s){var l=s.context,c=l.line,u=l.axis,d=l.movingShapes,f=l.resizingShapes;if(l.initialized){if(!l.dragGroup){var p=r.getLayer("space");c=pr("path"),Gn(c,"d","M0,0 L0,0"),Ri(c).add("djs-crosshair"),Ar(p,c),l.line=c;var h=pr("g");Gn(h,i.cls("djs-drag-group",["no-events"])),Ar(r.getActiveLayer(),h),a(d,h);var g=l.movingConnections=n.filter(function(E){var w=!1;ht(d,function(R){ht(R.outgoing,function(O){E===O&&(w=!0)})});var C=!1;ht(d,function(R){ht(R.incoming,function(O){E===O&&(C=!0)})});var x=!1;ht(f,function(R){ht(R.outgoing,function(O){E===O&&(x=!0)})});var T=!1;return ht(f,function(R){ht(R.incoming,function(O){E===O&&(T=!0)})}),wo(E)&&(w||x)&&(C||T)});a(g,h),l.dragGroup=h}if(!l.frameGroup){var v=pr("g");Gn(v,i.cls("djs-frame-group",["no-events"])),Ar(r.getActiveLayer(),v);var y=[];ht(f,function(E){var w=o.addFrame(E,v),C=w.getBBox();y.push({element:w,initialBounds:C}),r.addMarker(E,MDe)}),l.frameGroup=v,l.frames=y}var _={x:"M"+s.x+", -10000 L"+s.x+", 10000",y:"M -10000, "+s.y+" L 10000, "+s.y};Gn(c,{d:_[u]});var S={x:"y",y:"x"},b={x:s.dx,y:s.dy};b[S[l.axis]]=0,Wl(l.dragGroup,b.x,b.y),ht(l.frames,function(E){var w=E.element,C=E.initialBounds,x,T;l.direction==="e"?Gn(w,{width:e5(C.width+b.x,5)}):(x=e5(C.width-b.x,5),Gn(w,{width:x,x:C.x+C.width-x})),l.direction==="s"?Gn(w,{height:e5(C.height+b.y,5)}):(T=e5(C.height-b.y,5),Gn(w,{height:T,y:C.y+C.height-T}))})}}),e.on("spaceTool.cleanup",function(s){var l=s.context,c=l.movingShapes,u=l.movingConnections,d=l.resizingShapes,f=l.line,p=l.dragGroup,h=l.frameGroup;ht(c,function(g){r.removeMarker(g,vJ)}),ht(u,function(g){r.removeMarker(g,vJ)}),p&&(Hs(f),Hs(p)),ht(d,function(g){r.removeMarker(g,MDe)}),h&&Hs(h)})}lnt.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];const _Gn={__init__:["spaceToolPreview"],__depends__:[y_,sv,tV,eN,AL],spaceTool:["type",Yp],spaceToolPreview:["type",lnt]};function nV(e){e.invoke(Yp,this)}nV.$inject=["injector"];Zn(nV,Yp);nV.prototype.calculateAdjustments=function(e,n,r,i){var o=Yp.prototype.calculateAdjustments.call(this,e,n,r,i);return o.resizingShapes=o.resizingShapes.filter(function(a){return!(Fe(a,"bpmn:TextAnnotation")||bGn(a)&&(n==="y"&&cl(a)||n==="x"&&!cl(a)))}),o};function bGn(e){return Fe(e,"bpmn:Participant")&&!In(e).processRef}const cnt={__depends__:[_Gn],spaceTool:["type",nV]};function Ma(e,n){this._handlerMap={},this._stack=[],this._stackIdx=-1,this._currentExecution={actions:[],dirty:[],trigger:null},this._injector=n,this._eventBus=e,this._uid=1,e.on(["diagram.destroy","diagram.clear"],function(){this.clear(!1)},this)}Ma.$inject=["eventBus","injector"];Ma.prototype.execute=function(e,n){if(!e)throw new Error("command required");this._currentExecution.trigger="execute";const r={command:e,context:n};this._pushAction(r),this._internalExecute(r),this._popAction()};Ma.prototype.canExecute=function(e,n){const r={command:e,context:n},i=this._getHandler(e);let o=this._fire(e,"canExecute",r);if(o===void 0){if(!i)return!1;i.canExecute&&(o=i.canExecute(n))}return o};Ma.prototype.clear=function(e){this._stack.length=0,this._stackIdx=-1,e!==!1&&this._fire("changed",{trigger:"clear"})};Ma.prototype.undo=function(){let e=this._getUndoAction(),n;if(e){for(this._currentExecution.trigger="undo",this._pushAction(e);e&&(this._internalUndo(e),n=this._getUndoAction(),!(!n||n.id!==e.id));)e=n;this._popAction()}};Ma.prototype.redo=function(){let e=this._getRedoAction(),n;if(e){for(this._currentExecution.trigger="redo",this._pushAction(e);e&&(this._internalExecute(e,!0),n=this._getRedoAction(),!(!n||n.id!==e.id));)e=n;this._popAction()}};Ma.prototype.register=function(e,n){this._setHandler(e,n)};Ma.prototype.registerHandler=function(e,n){if(!e||!n)throw new Error("command and handlerCls must be defined");const r=this._injector.instantiate(n);this.register(e,r)};Ma.prototype.canUndo=function(){return!!this._getUndoAction()};Ma.prototype.canRedo=function(){return!!this._getRedoAction()};Ma.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]};Ma.prototype._getUndoAction=function(){return this._stack[this._stackIdx]};Ma.prototype._internalUndo=function(e){const n=e.command,r=e.context,i=this._getHandler(n);this._atomicDo(()=>{this._fire(n,"revert",e),i.revert&&this._markDirty(i.revert(r)),this._revertedAction(e),this._fire(n,"reverted",e)})};Ma.prototype._fire=function(e,n,r){arguments.length<3&&(r=n,n=null);const i=n?[e+"."+n,n]:[e];let o;r=this._eventBus.createEvent(r);for(const a of i)if(o=this._eventBus.fire("commandStack."+a,r),r.cancelBubble)break;return o};Ma.prototype._createId=function(){return this._uid++};Ma.prototype._atomicDo=function(e){const n=this._currentExecution;n.atomic=!0;try{e()}finally{n.atomic=!1}};Ma.prototype._internalExecute=function(e,n){const r=e.command,i=e.context,o=this._getHandler(r);if(!o)throw new Error("no command handler registered for <"+r+">");this._pushAction(e),n||(this._fire(r,"preExecute",e),o.preExecute&&o.preExecute(i),this._fire(r,"preExecuted",e)),this._atomicDo(()=>{this._fire(r,"execute",e),o.execute&&this._markDirty(o.execute(i)),this._executedAction(e,n),this._fire(r,"executed",e)}),n||(this._fire(r,"postExecute",e),o.postExecute&&o.postExecute(i),this._fire(r,"postExecuted",e)),this._popAction()};Ma.prototype._pushAction=function(e){const n=this._currentExecution,r=n.actions,i=r[0];if(n.atomic)throw new Error("illegal invocation in <execute> or <revert> phase (action: "+e.command+")");e.id||(e.id=i&&i.id||this._createId()),r.push(e)};Ma.prototype._popAction=function(){const e=this._currentExecution,n=e.trigger,r=e.actions,i=e.dirty;r.pop(),r.length||(this._eventBus.fire("elements.changed",{elements:JZe("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:n}),e.trigger=null)};Ma.prototype._markDirty=function(e){const n=this._currentExecution;e&&(e=zr(e)?e:[e],n.dirty=n.dirty.concat(e))};Ma.prototype._executedAction=function(e,n){const r=++this._stackIdx;n||this._stack.splice(r,this._stack.length,e)};Ma.prototype._revertedAction=function(e){this._stackIdx--};Ma.prototype._getHandler=function(e){return this._handlerMap[e]};Ma.prototype._setHandler=function(e,n){if(!e||!n)throw new Error("command and handler required");if(this._handlerMap[e])throw new Error("overriding handler for command <"+e+">");this._handlerMap[e]=n};const SGn={commandStack:["type",Ma]};function h0(e,n){if(typeof n!="function")throw new Error("removeFn iterator must be a function");if(e){for(var r;r=e[0];)n(r);return e}}var EGn=250,PDe=1400;function Hge(e,n,r){vn.call(this,n);var i=e.get("movePreview",!1);n.on("shape.move.start",PDe,function(o){var a=o.context,s=a.shapes,l=a.validatedShapes;a.shapes=ADe(s),a.validatedShapes=ADe(l)}),i&&n.on("shape.move.start",EGn,function(o){var a=o.context,s=a.shapes,l=[];ht(s,function(c){ht(c.labels,function(u){!u.hidden&&a.shapes.indexOf(u)===-1&&l.push(u),c.labelTarget&&l.push(c)})}),ht(l,function(c){i.makeDraggable(a,c,!0)})}),this.preExecuted("elements.move",PDe,function(o){var a=o.context,s=a.closure,l=s.enclosedElements,c=[];ht(l,function(u){ht(u.labels,function(d){l[d.id]||c.push(d)})}),s.addAll(c)}),this.preExecute(["connection.delete","shape.delete"],function(o){var a=o.context,s=a.connection||a.shape;h0(s.labels,function(l){r.removeShape(l,{nested:!0})})}),this.execute("shape.delete",function(o){var a=o.context,s=a.shape,l=s.labelTarget;l&&(a.labelTargetIndex=She(l.labels,s),a.labelTarget=l,s.labelTarget=null)}),this.revert("shape.delete",function(o){var a=o.context,s=a.shape,l=a.labelTarget,c=a.labelTargetIndex;l&&(Ks(l.labels,s,c),s.labelTarget=l)})}Zn(Hge,vn);Hge.$inject=["injector","eventBus","modeling"];function ADe(e){return si(e,function(n){return e.indexOf(n.labelTarget)===-1})}const CGn={__init__:["labelSupport"],labelSupport:["type",Hge]};var wGn=251,DDe=1401,kDe="attach-ok";function zge(e,n,r,i,o){vn.call(this,n);var a=e.get("movePreview",!1);n.on("shape.move.start",DDe,function(s){var l=s.context,c=l.shapes,u=l.validatedShapes;l.shapes=xGn(c),l.validatedShapes=TGn(u)}),a&&n.on("shape.move.start",wGn,function(s){var l=s.context,c=l.shapes,u=Yae(c);ht(u,function(d){a.makeDraggable(l,d,!0),ht(d.labels,function(f){a.makeDraggable(l,f,!0)})})}),a&&n.on("shape.move.start",function(s){var l=s.context,c=l.shapes;if(c.length===1){var u=c[0],d=u.host;d&&(r.addMarker(d,kDe),n.once(["shape.move.out","shape.move.cleanup"],function(){r.removeMarker(d,kDe)}))}}),this.preExecuted("elements.move",DDe,function(s){var l=s.context,c=l.closure,u=l.shapes,d=Yae(u);ht(d,function(f){c.add(f,c.topLevel[f.host.id])})}),this.postExecuted("elements.move",function(s){var l=s.context,c=l.shapes,u=l.newHost,d;u&&c.length!==1||(u?d=c:d=si(c,function(f){var p=f.host;return OGn(f)&&!RGn(c,p)}),ht(d,function(f){o.updateAttachment(f,u)}))}),this.postExecuted("elements.move",function(s){var l=s.context.shapes;ht(l,function(c){ht(c.attachers,function(u){ht(u.outgoing.slice(),function(d){var f=i.allowed("connection.reconnect",{connection:d,source:d.source,target:d.target});f||o.removeConnection(d)}),ht(u.incoming.slice(),function(d){var f=i.allowed("connection.reconnect",{connection:d,source:d.source,target:d.target});f||o.removeConnection(d)})})})}),this.postExecute("shape.create",function(s){var l=s.context,c=l.shape,u=l.host;u&&o.updateAttachment(c,u)}),this.postExecute("shape.replace",function(s){var l=s.context,c=l.oldShape,u=l.newShape;h0(c.attachers,function(d){var f=i.allowed("elements.move",{target:u,shapes:[d]});f==="attach"?o.updateAttachment(d,u):o.removeShape(d)}),u.attachers.length&&ht(u.attachers,function(d){var f=uDe(d,c,u);o.moveShape(d,f,d.parent)})}),this.postExecute("shape.resize",function(s){var l=s.context,c=l.shape,u=l.oldBounds,d=l.newBounds,f=c.attachers,p=l.hints||{};p.attachSupport!==!1&&ht(f,function(h){var g=uDe(h,u,d);o.moveShape(h,g,h.parent),ht(h.labels,function(v){o.moveShape(v,g,v.parent)})})}),this.preExecute("shape.delete",function(s){var l=s.context.shape;h0(l.attachers,function(c){o.removeShape(c)}),l.host&&o.updateAttachment(l,null)})}Zn(zge,vn);zge.$inject=["injector","eventBus","canvas","rules","modeling"];function Yae(e){return ghe(vc(e,function(n){return n.attachers||[]}))}function xGn(e){var n=Yae(e);return m8n("id",e,n)}function TGn(e){var n=HI(e,"id");return si(e,function(r){for(;r;){if(r.host&&n[r.host.id])return!1;r=r.parent}return!0})}function OGn(e){return!!e.host}function RGn(e,n){return e.indexOf(n)!==-1}const IGn={__depends__:[sv],__init__:["attachSupport"],attachSupport:["type",zge]};function qp(e){this._model=e}qp.$inject=["moddle"];qp.prototype._needsId=function(e){return ii(e,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])};qp.prototype._ensureId=function(e){if(e.id){this._model.ids.claim(e.id,e);return}var n;Fe(e,"bpmn:Activity")?n="Activity":Fe(e,"bpmn:Event")?n="Event":Fe(e,"bpmn:Gateway")?n="Gateway":ii(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?n="Flow":n=(e.$type||"").replace(/^[^:]*:/g,""),n+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(n,e))};qp.prototype.create=function(e,n){var r=this._model.create(e,n||{});return this._ensureId(r),r};qp.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})};qp.prototype.createDiShape=function(e,n){return this.create("bpmndi:BPMNShape",Rt({bpmnElement:e,bounds:this.createDiBounds()},n))};qp.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)};qp.prototype.createDiWaypoints=function(e){var n=this;return vc(e,function(r){return n.createDiWaypoint(r)})};qp.prototype.createDiWaypoint=function(e){return this.create("dc:Point",ag(e,["x","y"]))};qp.prototype.createDiEdge=function(e,n){return this.create("bpmndi:BPMNEdge",Rt({bpmnElement:e,waypoint:this.createDiWaypoints([])},n))};qp.prototype.createDiPlane=function(e,n){return this.create("bpmndi:BPMNPlane",Rt({bpmnElement:e},n))};function Td(e,n,r){vn.call(this,e),this._bpmnFactory=n;var i=this;function o(h){var g=h.context,v=g.hints||{},y;!g.cropped&&v.createElementsBehavior!==!1&&(y=g.connection,y.waypoints=r.getCroppedWaypoints(y),g.cropped=!0)}this.executed(["connection.layout","connection.create"],o),this.reverted(["connection.layout"],function(h){delete h.context.cropped});function a(h){var g=h.context;i.updateParent(g.shape||g.connection,g.oldParent)}function s(h){var g=h.context,v=g.shape||g.connection,y=g.parent||g.newParent;i.updateParent(v,y)}this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Vu(a)),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Vu(s));function l(h){var g=h.context,v=g.oldRoot,y=v.children;ht(y,function(_){Fe(_,"bpmn:BaseElement")&&i.updateParent(_)})}this.executed(["canvas.updateRoot"],l),this.reverted(["canvas.updateRoot"],l);function c(h){var g=h.context.shape;Fe(g,"bpmn:BaseElement")&&i.updateBounds(g)}this.executed(["shape.move","shape.create","shape.resize"],Vu(function(h){h.context.shape.type!=="label"&&c(h)})),this.reverted(["shape.move","shape.create","shape.resize"],Vu(function(h){h.context.shape.type!=="label"&&c(h)})),e.on("shape.changed",function(h){h.element.type==="label"&&c({context:{shape:h.element}})});function u(h){i.updateConnection(h.context)}this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],Vu(u)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],Vu(u));function d(h){i.updateConnectionWaypoints(h.context.connection)}this.executed(["connection.layout","connection.move","connection.updateWaypoints"],Vu(d)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],Vu(d)),this.executed("connection.reconnect",Vu(function(h){var g=h.context,v=g.connection,y=g.oldSource,_=g.newSource,S=In(v),b=In(y),E=In(_);S.conditionExpression&&!ii(E,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(g.oldConditionExpression=S.conditionExpression,delete S.conditionExpression),y!==_&&b.default===S&&(g.oldDefault=b.default,delete b.default)})),this.reverted("connection.reconnect",Vu(function(h){var g=h.context,v=g.connection,y=g.oldSource,_=g.newSource,S=In(v),b=In(y),E=In(_);g.oldConditionExpression&&(S.conditionExpression=g.oldConditionExpression),g.oldDefault&&(b.default=g.oldDefault,delete E.default)}));function f(h){i.updateAttachment(h.context)}this.executed(["element.updateAttachment"],Vu(f)),this.reverted(["element.updateAttachment"],Vu(f)),this.executed("element.updateLabel",Vu(p)),this.reverted("element.updateLabel",Vu(p));function p(h){const{element:g}=h.context,v=sg(g),y=Ii(g),_=y&&y.get("label");CC(g)||V6(g)||(v&&!_?y.set("label",n.create("bpmndi:BPMNLabel")):!v&&_&&y.set("label",void 0))}}Zn(Td,vn);Td.$inject=["eventBus","bpmnFactory","connectionDocking"];Td.prototype.updateAttachment=function(e){var n=e.shape,r=n.businessObject,i=n.host;r.attachedToRef=i&&i.businessObject};Td.prototype.updateParent=function(e,n){if(!Ni(e)&&!(Fe(e,"bpmn:DataStoreReference")&&e.parent&&Fe(e.parent,"bpmn:Collaboration"))){var r=e.parent,i=e.businessObject,o=Ii(e),a=r&&r.businessObject,s=Ii(r);Fe(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,a,n&&n.businessObject),Fe(e,"bpmn:DataOutputAssociation")&&(e.source?a=e.source.businessObject:a=null),Fe(e,"bpmn:DataInputAssociation")&&(e.target?a=e.target.businessObject:a=null),this.updateSemanticParent(i,a),Fe(e,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,a),this.updateDiParent(o,s)}};Td.prototype.updateBounds=function(e){var n=Ii(e),r=MGn(e);if(r){var i=Kh(r,n.get("bounds"));Rt(r,{x:e.x+i.x,y:e.y+i.y})}var o=Ni(e)?this._getLabel(n):n,a=o.bounds;a||(a=this._bpmnFactory.createDiBounds(),o.set("bounds",a)),Rt(a,{x:e.x,y:e.y,width:e.width,height:e.height})};Td.prototype.updateFlowNodeRefs=function(e,n,r){if(r!==n){var i,o;Fe(r,"bpmn:Lane")&&(i=r.get("flowNodeRef"),Cs(i,e)),Fe(n,"bpmn:Lane")&&(o=n.get("flowNodeRef"),Ks(o,e))}};Td.prototype.updateDiConnection=function(e,n,r){var i=Ii(e),o=Ii(n),a=Ii(r);i.sourceElement&&i.sourceElement.bpmnElement!==In(n)&&(i.sourceElement=n&&o),i.targetElement&&i.targetElement.bpmnElement!==In(r)&&(i.targetElement=r&&a)};Td.prototype.updateDiParent=function(e,n){if(n&&!Fe(n,"bpmndi:BPMNPlane")&&(n=n.$parent),e.$parent!==n){var r=(n||e.$parent).get("planeElement");n?(r.push(e),e.$parent=n):(Cs(r,e),e.$parent=null)}};function NGn(e){for(;e&&!Fe(e,"bpmn:Definitions");)e=e.$parent;return e}Td.prototype.getLaneSet=function(e){var n,r;return Fe(e,"bpmn:Lane")?(n=e.childLaneSet,n||(n=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=n,n.$parent=e),n):(Fe(e,"bpmn:Participant")&&(e=e.processRef),r=e.get("laneSets"),n=r[0],n||(n=this._bpmnFactory.create("bpmn:LaneSet"),n.$parent=e,r.push(n)),n)};Td.prototype.updateSemanticParent=function(e,n,r){var i;if(e.$parent!==n&&!((Fe(e,"bpmn:DataInput")||Fe(e,"bpmn:DataOutput"))&&(Fe(n,"bpmn:Participant")&&"processRef"in n&&(n=n.processRef),"ioSpecification"in n&&n.ioSpecification===e.$parent))){if(Fe(e,"bpmn:Lane"))n&&(n=this.getLaneSet(n)),i="lanes";else if(Fe(e,"bpmn:FlowElement")){if(n){if(Fe(n,"bpmn:Participant"))n=n.processRef;else if(Fe(n,"bpmn:Lane"))do n=n.$parent.$parent;while(Fe(n,"bpmn:Lane"))}i="flowElements"}else if(Fe(e,"bpmn:Artifact")){for(;n&&!Fe(n,"bpmn:Process")&&!Fe(n,"bpmn:SubProcess")&&!Fe(n,"bpmn:Collaboration");)if(Fe(n,"bpmn:Participant")){n=n.processRef;break}else n=n.$parent;i="artifacts"}else if(Fe(e,"bpmn:MessageFlow"))i="messageFlows";else if(Fe(e,"bpmn:Participant")){i="participants";var o=e.processRef,a;o&&(a=NGn(e.$parent||n),e.$parent&&(Cs(a.get("rootElements"),o),o.$parent=null),n&&(Ks(a.get("rootElements"),o),o.$parent=a))}else Fe(e,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":Fe(e,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(`no parent for <${e.id}> in <${n.id}>`);var s;if(e.$parent&&(s=e.$parent.get(i),Cs(s,e)),n?(s=n.get(i),s.push(e),e.$parent=n):e.$parent=null,r){var l=r.get(i);Cs(s,e),n&&(l||(l=[],n.set(i,l)),l.push(e))}}};Td.prototype.updateConnectionWaypoints=function(e){var n=Ii(e);n.set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))};Td.prototype.updateConnection=function(e){var n=e.connection,r=In(n),i=n.source,o=In(i),a=n.target,s=In(n.target),l;if(Fe(r,"bpmn:DataAssociation"))Fe(r,"bpmn:DataInputAssociation")?(r.get("sourceRef")[0]=o,l=e.parent||e.newParent||s,this.updateSemanticParent(r,s,l)):Fe(r,"bpmn:DataOutputAssociation")&&(l=e.parent||e.newParent||o,this.updateSemanticParent(r,o,l),r.targetRef=s);else{var c=Fe(r,"bpmn:SequenceFlow");r.sourceRef!==o&&(c&&(Cs(r.sourceRef&&r.sourceRef.get("outgoing"),r),o&&o.get("outgoing")&&o.get("outgoing").push(r)),r.sourceRef=o),r.targetRef!==s&&(c&&(Cs(r.targetRef&&r.targetRef.get("incoming"),r),s&&s.get("incoming")&&s.get("incoming").push(r)),r.targetRef=s)}this.updateConnectionWaypoints(n),this.updateDiConnection(n,i,a)};Td.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label};function Vu(e){return function(n){var r=n.context,i=r.shape||r.connection||r.element;Fe(i,"bpmn:BaseElement")&&e(n)}}function MGn(e){if(Fe(e,"bpmn:Activity")){var n=Ii(e);if(n){var r=n.get("label");if(r)return r.get("bounds")}}}function ES(e,n){h_.call(this),this._bpmnFactory=e,this._moddle=n}Zn(ES,h_);ES.$inject=["bpmnFactory","moddle"];ES.prototype._baseCreate=h_.prototype.create;ES.prototype.create=function(e,n){if(e==="label"){var r=n.di||this._bpmnFactory.createDiLabel();return this._baseCreate(e,Rt({type:"label",di:r},nD,n))}return this.createElement(e,n)};ES.prototype.createElement=function(e,n){n=Rt({},n||{});var r,i=n.businessObject,o=n.di;if(!i){if(!n.type)throw new Error("no shape type specified");i=this._bpmnFactory.create(n.type),GJe(i)}if(!AGn(o)){var a=Rt({},o||{},{id:i.id+"_di"});e==="root"?o=this._bpmnFactory.createDiPlane(i,a):e==="connection"?o=this._bpmnFactory.createDiEdge(i,a):o=this._bpmnFactory.createDiShape(i,a)}Fe(i,"bpmn:Group")&&(n=Rt({isFrame:!0},n)),n=PGn(i,n,["processRef","isInterrupting","associationDirection","isForCompensation"]),n.isExpanded&&(n=qae(o,n,"isExpanded")),ii(i,["bpmn:Lane","bpmn:Participant"])&&(n=qae(o,n,"isHorizontal")),Fe(i,"bpmn:SubProcess")&&(n.collapsed=!pi(i,o)),Fe(i,"bpmn:ExclusiveGateway")&&(gu(o,"isMarkerVisible")?o.isMarkerVisible===void 0&&(o.isMarkerVisible=!1):o.isMarkerVisible=!0),bl(n.triggeredByEvent)&&(i.triggeredByEvent=n.triggeredByEvent,delete n.triggeredByEvent),bl(n.cancelActivity)&&(i.cancelActivity=n.cancelActivity,delete n.cancelActivity);var s,l;return n.eventDefinitionType&&(s=i.get("eventDefinitions")||[],l=this._bpmnFactory.create(n.eventDefinitionType,n.eventDefinitionAttrs),n.eventDefinitionType==="bpmn:ConditionalEventDefinition"&&(l.condition=this._bpmnFactory.create("bpmn:FormalExpression")),s.push(l),l.$parent=i,i.eventDefinitions=s,delete n.eventDefinitionType),r=this.getDefaultSize(i,o),n=Rt({id:i.id},r,n,{businessObject:i,di:o}),this._baseCreate(e,n)};ES.prototype.getDefaultSize=function(e,n){var r=In(e);if(n=n||Ii(e),Fe(r,"bpmn:SubProcess"))return pi(r,n)?{width:350,height:200}:{width:100,height:80};if(Fe(r,"bpmn:Task"))return{width:100,height:80};if(Fe(r,"bpmn:Gateway"))return{width:50,height:50};if(Fe(r,"bpmn:Event"))return{width:36,height:36};if(Fe(r,"bpmn:Participant")){var i=n.isHorizontal===void 0||n.isHorizontal===!0;return pi(r,n)?i?{width:600,height:250}:{width:250,height:600}:i?{width:400,height:60}:{width:60,height:400}}return Fe(r,"bpmn:Lane")?{width:400,height:100}:Fe(r,"bpmn:DataObjectReference")?{width:36,height:50}:Fe(r,"bpmn:DataStoreReference")?{width:50,height:50}:Fe(r,"bpmn:TextAnnotation")?{width:100,height:30}:Fe(r,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}};ES.prototype.createParticipantShape=function(e){return Rl(e)||(e={isExpanded:e}),e=Rt({type:"bpmn:Participant"},e||{}),e.isExpanded!==!1&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)};function PGn(e,n,r){return ht(r,function(i){n=qae(e,n,i)}),n}function qae(e,n,r){return n[r]===void 0?n:(e[r]=n[r],iv(n,[r]))}function AGn(e){return ii(e,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])}function rV(e,n){this._modeling=e,this._canvas=n}rV.$inject=["modeling","canvas"];rV.prototype.preExecute=function(e){var n=this._modeling,r=e.elements,i=e.alignment;ht(r,function(o){var a={x:0,y:0};bl(i.left)?a.x=i.left-o.x:bl(i.right)?a.x=i.right-o.width-o.x:bl(i.center)?a.x=i.center-Math.round(o.width/2)-o.x:bl(i.top)?a.y=i.top-o.y:bl(i.bottom)?a.y=i.bottom-o.height-o.y:bl(i.middle)&&(a.y=i.middle-Math.round(o.height/2)-o.y),n.moveElements([o],a,o.parent)})};rV.prototype.postExecute=function(e){};function iV(e){this._modeling=e}iV.$inject=["modeling"];iV.prototype.preExecute=function(e){var n=e.source;if(!n)throw new Error("source required");var r=e.target||n.parent,i=e.shape,o=e.hints||{};i=e.shape=this._modeling.createShape(i,e.position,r,{attach:o.attach}),e.shape=i};iV.prototype.postExecute=function(e){var n=e.hints||{};DGn(e.source,e.shape)||(n.connectionTarget===e.source?this._modeling.connect(e.shape,e.source,e.connection):this._modeling.connect(e.source,e.shape,e.connection))};function DGn(e,n){return fS(e.outgoing,function(r){return r.target===n})}function oV(e,n){this._canvas=e,this._layouter=n}oV.$inject=["canvas","layouter"];oV.prototype.execute=function(e){var n=e.connection,r=e.source,i=e.target,o=e.parent,a=e.parentIndex,s=e.hints;if(!r||!i)throw new Error("source and target required");if(!o)throw new Error("parent required");return n.source=r,n.target=i,n.waypoints||(n.waypoints=this._layouter.layoutConnection(n,s)),this._canvas.addConnection(n,o,a),n};oV.prototype.revert=function(e){var n=e.connection;return this._canvas.removeConnection(n),n.source=null,n.target=null,n};var t5=Math.round;function Vge(e){this._modeling=e}Vge.$inject=["modeling"];Vge.prototype.preExecute=function(e){var n=e.elements,r=e.parent,i=e.parentIndex,o=e.position,a=e.hints,s=this._modeling;ht(n,function(f){Nr(f.x)||(f.x=0),Nr(f.y)||(f.y=0)});var l=si(n,function(f){return!f.hidden}),c=sl(l);ht(n,function(f){wo(f)&&(f.waypoints=vc(f.waypoints,function(p){return{x:t5(p.x-c.x-c.width/2+o.x),y:t5(p.y-c.y-c.height/2+o.y)}})),Rt(f,{x:t5(f.x-c.x-c.width/2+o.x),y:t5(f.y-c.y-c.height/2+o.y)})});var u=Tz(n),d={};ht(n,function(f){if(wo(f)){d[f.id]=Nr(i)?s.createConnection(d[f.source.id],d[f.target.id],i,f,f.parent||r,a):s.createConnection(d[f.source.id],d[f.target.id],f,f.parent||r,a);return}var p=Rt({},a);u.indexOf(f)===-1&&(p.autoResize=!1),Ni(f)&&(p=iv(p,["attach"])),d[f.id]=Nr(i)?s.createShape(f,ag(f,["x","y","width","height"]),f.parent||r,i,p):s.createShape(f,ag(f,["x","y","width","height"]),f.parent||r,p)}),e.elements=mhe(d)};var LDe=Math.round;function CS(e){this._canvas=e}CS.$inject=["canvas"];CS.prototype.execute=function(e){var n=e.shape,r=e.position,i=e.parent,o=e.parentIndex;if(!i)throw new Error("parent required");if(!r)throw new Error("position required");return r.width!==void 0?Rt(n,r):Rt(n,{x:r.x-LDe(n.width/2),y:r.y-LDe(n.height/2)}),this._canvas.addShape(n,i,o),n};CS.prototype.revert=function(e){var n=e.shape;return this._canvas.removeShape(n),n};function kL(e){CS.call(this,e)}Zn(kL,CS);kL.$inject=["canvas"];var kGn=CS.prototype.execute;kL.prototype.execute=function(e){var n=e.shape;return $Gn(n),n.labelTarget=e.labelTarget,kGn.call(this,e)};var LGn=CS.prototype.revert;kL.prototype.revert=function(e){return e.shape.labelTarget=null,LGn.call(this,e)};function $Gn(e){["width","height"].forEach(function(n){typeof e[n]>"u"&&(e[n]=0)})}function LL(e,n){this._canvas=e,this._modeling=n}LL.$inject=["canvas","modeling"];LL.prototype.preExecute=function(e){var n=this._modeling,r=e.connection;h0(r.incoming,function(i){n.removeConnection(i,{nested:!0})}),h0(r.outgoing,function(i){n.removeConnection(i,{nested:!0})})};LL.prototype.execute=function(e){var n=e.connection,r=n.parent;return e.parent=r,e.parentIndex=She(r.children,n),e.source=n.source,e.target=n.target,this._canvas.removeConnection(n),n.source=null,n.target=null,n};LL.prototype.revert=function(e){var n=e.connection,r=e.parent,i=e.parentIndex;return n.source=e.source,n.target=e.target,Ks(r.children,n,i),this._canvas.addConnection(n,r),n};function Gge(e,n){this._modeling=e,this._elementRegistry=n}Gge.$inject=["modeling","elementRegistry"];Gge.prototype.postExecute=function(e){var n=this._modeling,r=this._elementRegistry,i=e.elements;ht(i,function(o){r.get(o.id)&&(o.waypoints?n.removeConnection(o):n.removeShape(o))})};function $L(e,n){this._canvas=e,this._modeling=n}$L.$inject=["canvas","modeling"];$L.prototype.preExecute=function(e){var n=this._modeling,r=e.shape;h0(r.incoming,function(i){n.removeConnection(i,{nested:!0})}),h0(r.outgoing,function(i){n.removeConnection(i,{nested:!0})}),h0(r.children,function(i){wo(i)?n.removeConnection(i,{nested:!0}):n.removeShape(i,{nested:!0})})};$L.prototype.execute=function(e){var n=this._canvas,r=e.shape,i=r.parent;return e.oldParent=i,e.oldParentIndex=She(i.children,r),n.removeShape(r),r};$L.prototype.revert=function(e){var n=this._canvas,r=e.shape,i=e.oldParent,o=e.oldParentIndex;return Ks(i.children,r,o),n.addShape(r,i),r};function aV(e){this._modeling=e}aV.$inject=["modeling"];var $De={x:"y",y:"x"};aV.prototype.preExecute=function(e){var n=this._modeling,r=e.groups,i=e.axis,o=e.dimension;function a(y,_){y.range.min=Math.min(_[i],y.range.min),y.range.max=Math.max(_[i]+_[o],y.range.max)}function s(y){return y[i]+y[o]/2}function l(y){return y.length-1}function c(y){return y.max-y.min}function u(y,_){var S={y:0};S[i]=y-s(_),S[i]&&(S[$De[i]]=0,n.moveElements([_],S,_.parent))}var d=r[0],f=l(r),p=r[f],h,g,v=0;ht(r,function(y,_){var S,b,E;if(y.elements.length<2){_&&_!==r.length-1&&(a(y,y.elements[0]),v+=c(y.range));return}S=$m(y.elements,i),b=S[0],_===f&&(b=S[l(S)]),E=s(b),y.range=null,ht(S,function(w){if(u(E,w),y.range===null){y.range={min:w[i],max:w[i]+w[o]};return}a(y,w)}),_&&_!==r.length-1&&(v+=c(y.range))}),g=Math.abs(p.range.min-d.range.max),h=Math.round((g-v)/(r.length-1)),!(h<r.length-1)&&ht(r,function(y,_){var S={},b;y===d||y===p||(b=r[_-1],y.range.max=0,ht(y.elements,function(E,w){S[$De[i]]=0,S[i]=b.range.max-E[i]+h,y.range.min!==E[i]&&(S[i]+=E[i]-y.range.min),S[i]&&n.moveElements([E],S,E.parent),y.range.max=Math.max(E[i]+E[o],w?y.range.max:0)}))})};aV.prototype.postExecute=function(e){};function sV(e,n){this._layouter=e,this._canvas=n}sV.$inject=["layouter","canvas"];sV.prototype.execute=function(e){var n=e.connection,r=n.waypoints;return Rt(e,{oldWaypoints:r}),n.waypoints=this._layouter.layoutConnection(n,e.hints),n};sV.prototype.revert=function(e){var n=e.connection;return n.waypoints=e.oldWaypoints,n};function Wge(){}Wge.prototype.execute=function(e){var n=e.connection,r=e.delta,i=e.newParent||n.parent,o=e.newParentIndex,a=n.parent;return e.oldParent=a,e.oldParentIndex=Cs(a.children,n),Ks(i.children,n,o),n.parent=i,ht(n.waypoints,function(s){s.x+=r.x,s.y+=r.y,s.original&&(s.original.x+=r.x,s.original.y+=r.y)}),n};Wge.prototype.revert=function(e){var n=e.connection,r=n.parent,i=e.oldParent,o=e.oldParentIndex,a=e.delta;return Cs(r.children,n),Ks(i.children,n,o),n.parent=i,ht(n.waypoints,function(s){s.x-=a.x,s.y-=a.y,s.original&&(s.original.x-=a.x,s.original.y-=a.y)}),n};function Yge(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}Yge.prototype.add=function(e,n){return this.addAll([e],n)};Yge.prototype.addAll=function(e,n){var r=aBn(e,!!n,this);return Rt(this,r),this};function FL(e){this._modeling=e}FL.prototype.moveRecursive=function(e,n,r){return e?this.moveClosure(this.getClosure(e),n,r):[]};FL.prototype.moveClosure=function(e,n,r,i,o){var a=this._modeling,s=e.allShapes,l=e.allConnections,c=e.enclosedConnections,u=e.topLevel,d=!1;o&&o.parent===r&&(d=!0),ht(s,function(f){a.moveShape(f,n,u[f.id]&&!d&&r,{recurse:!1,layout:!1})}),ht(l,function(f){var p=!!s[f.source.id],h=!!s[f.target.id];c[f.id]&&p&&h?a.moveConnection(f,n,u[f.id]&&!d&&r):a.layoutConnection(f,{connectionStart:p&&vge(f,f.source,n),connectionEnd:h&&yge(f,f.target,n)})})};FL.prototype.getClosure=function(e){return new Yge().addAll(e,!0)};function lV(e){this._helper=new FL(e)}lV.$inject=["modeling"];lV.prototype.preExecute=function(e){e.closure=this._helper.getClosure(e.shapes)};lV.prototype.postExecute=function(e){var n=e.hints,r;n&&n.primaryShape&&(r=n.primaryShape,n.oldParent=r.parent),this._helper.moveClosure(e.closure,e.delta,e.newParent,e.newHost,r)};function Ow(e){this._modeling=e,this._helper=new FL(e)}Ow.$inject=["modeling"];Ow.prototype.execute=function(e){var n=e.shape,r=e.delta,i=e.newParent||n.parent,o=e.newParentIndex,a=n.parent;return e.oldBounds=ag(n,["x","y","width","height"]),e.oldParent=a,e.oldParentIndex=Cs(a.children,n),Ks(i.children,n,o),Rt(n,{parent:i,x:n.x+r.x,y:n.y+r.y}),n};Ow.prototype.postExecute=function(e){var n=e.shape,r=e.delta,i=e.hints,o=this._modeling;i.layout!==!1&&(ht(n.incoming,function(a){o.layoutConnection(a,{connectionEnd:yge(a,n,r)})}),ht(n.outgoing,function(a){o.layoutConnection(a,{connectionStart:vge(a,n,r)})})),i.recurse!==!1&&this.moveChildren(e)};Ow.prototype.revert=function(e){var n=e.shape,r=e.oldParent,i=e.oldParentIndex,o=e.delta;return Ks(r.children,n,i),Rt(n,{parent:r,x:n.x-o.x,y:n.y-o.y}),n};Ow.prototype.moveChildren=function(e){var n=e.delta,r=e.shape;this._helper.moveRecursive(r.children,n,null)};Ow.prototype.getNewParent=function(e){return e.newParent||e.shape.parent};function BL(e){this._modeling=e}BL.$inject=["modeling"];BL.prototype.execute=function(e){var n=e.newSource,r=e.newTarget,i=e.connection,o=e.dockingOrPoints;if(!n&&!r)throw new Error("newSource or newTarget required");return zr(o)&&(e.oldWaypoints=i.waypoints,i.waypoints=o),n&&(e.oldSource=i.source,i.source=n),r&&(e.oldTarget=i.target,i.target=r),i};BL.prototype.postExecute=function(e){var n=e.connection,r=e.newSource,i=e.newTarget,o=e.dockingOrPoints,a=e.hints||{},s={};a.connectionStart&&(s.connectionStart=a.connectionStart),a.connectionEnd&&(s.connectionEnd=a.connectionEnd),a.layoutConnection!==!1&&(r&&(!i||a.docking==="source")&&(s.connectionStart=s.connectionStart||FDe(zr(o)?o[0]:o)),i&&(!r||a.docking==="target")&&(s.connectionEnd=s.connectionEnd||FDe(zr(o)?o[o.length-1]:o)),a.newWaypoints&&(s.waypoints=a.newWaypoints),this._modeling.layoutConnection(n,s))};BL.prototype.revert=function(e){var n=e.oldSource,r=e.oldTarget,i=e.oldWaypoints,o=e.connection;return n&&(o.source=n),r&&(o.target=r),i&&(o.waypoints=i),o};function FDe(e){return e.original||e}function b_(e,n){this._modeling=e,this._rules=n}b_.$inject=["modeling","rules"];b_.prototype.preExecute=function(e){var n=this,r=this._modeling,i=this._rules,o=e.oldShape,a=e.newData,s=e.hints||{},l;function c(g,v,y){return i.allowed("connection.reconnect",{connection:y,source:g,target:v})}var u={x:a.x,y:a.y},d={x:o.x,y:o.y,width:o.width,height:o.height};l=e.newShape=e.newShape||n.createShape(a,u,o.parent,s),o.host&&r.updateAttachment(l,o.host);var f;s.moveChildren!==!1&&(f=o.children.slice(),r.moveElements(f,{x:0,y:0},l,s));var p=o.incoming.slice(),h=o.outgoing.slice();ht(p,function(g){var v=g.source,y=c(v,l,g);y&&n.reconnectEnd(g,l,Kz(g,l,d),s)}),ht(h,function(g){var v=g.target,y=c(l,v,g);y&&n.reconnectStart(g,l,qz(g,l,d),s)})};b_.prototype.postExecute=function(e){var n=e.oldShape;this._modeling.removeShape(n)};b_.prototype.execute=function(e){};b_.prototype.revert=function(e){};b_.prototype.createShape=function(e,n,r,i){return this._modeling.createShape(e,n,r,i)};b_.prototype.reconnectStart=function(e,n,r,i){this._modeling.reconnectStart(e,n,r,i)};b_.prototype.reconnectEnd=function(e,n,r,i){this._modeling.reconnectEnd(e,n,r,i)};function jL(e){this._modeling=e}jL.$inject=["modeling"];jL.prototype.execute=function(e){var n=e.shape,r=e.newBounds,i=e.minBounds;if(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)throw new Error("newBounds must have {x, y, width, height} properties");if(i&&(r.width<i.width||r.height<i.height))throw new Error("width and height cannot be less than minimum height and width");if(!i&&r.width<10||r.height<10)throw new Error("width and height cannot be less than 10px");return e.oldBounds={width:n.width,height:n.height,x:n.x,y:n.y},Rt(n,{width:r.width,height:r.height,x:r.x,y:r.y}),n};jL.prototype.postExecute=function(e){var n=this._modeling,r=e.shape,i=e.oldBounds,o=e.hints||{};o.layout!==!1&&(ht(r.incoming,function(a){n.layoutConnection(a,{connectionEnd:Kz(a,r,i)})}),ht(r.outgoing,function(a){n.layoutConnection(a,{connectionStart:qz(a,r,i)})}))};jL.prototype.revert=function(e){var n=e.shape,r=e.oldBounds;return Rt(n,{width:r.width,height:r.height,x:r.x,y:r.y}),n};function wS(e){this._modeling=e}wS.$inject=["modeling"];wS.prototype.preExecute=function(e){var n=e.delta,r=e.direction,i=e.movingShapes,o=e.resizingShapes,a=e.start,s={};this.moveShapes(i,n),ht(o,function(l){s[l.id]=BGn(l)}),this.resizeShapes(o,n,r),this.updateConnectionWaypoints(fGn(i,o),n,r,a,i,o,s)};wS.prototype.execute=function(){};wS.prototype.revert=function(){};wS.prototype.moveShapes=function(e,n){var r=this;ht(e,function(i){r._modeling.moveShape(i,n,null,{autoResize:!1,layout:!1,recurse:!1})})};wS.prototype.resizeShapes=function(e,n,r){var i=this;ht(e,function(o){var a=pGn(o,r,n);i._modeling.resizeShape(o,a,null,{attachSupport:!1,autoResize:!1,layout:!1})})};wS.prototype.updateConnectionWaypoints=function(e,n,r,i,o,a,s){var l=this,c=o.concat(a);ht(e,function(u){var d=u.source,f=u.target,p=FGn(u),h=unt(r),g={};Q_(c,d)&&Q_(c,f)?(p=vc(p,function(v){return jDe(v,i,r)&&(v[h]=v[h]+n[h]),v.original&&jDe(v.original,i,r)&&(v.original[h]=v.original[h]+n[h]),v}),l._modeling.updateWaypoints(u,p,{labelBehavior:!1})):(Q_(c,d)||Q_(c,f))&&(Q_(o,d)?g.connectionStart=vge(u,d,n):Q_(o,f)?g.connectionEnd=yge(u,f,n):Q_(a,d)?g.connectionStart=qz(u,d,s[d.id]):Q_(a,f)&&(g.connectionEnd=Kz(u,f,s[f.id])),l._modeling.layoutConnection(u,g))})};function BDe(e){return Rt({},e)}function FGn(e){return vc(e.waypoints,function(n){return n=BDe(n),n.original&&(n.original=BDe(n.original)),n})}function unt(e){switch(e){case"n":return"y";case"w":return"x";case"s":return"y";case"e":return"x"}}function jDe(e,n,r){var i=unt(r);if(/e|s/.test(r))return e[i]>n;if(/n|w/.test(r))return e[i]<n}function Q_(e,n){return e.indexOf(n)!==-1}function BGn(e){return{x:e.x,y:e.y,height:e.height,width:e.width}}function cV(e){this._modeling=e}cV.$inject=["modeling"];cV.prototype.execute=function(e){var n=e.shape,r=n.children;e.oldChildrenVisibility=dnt(r),n.collapsed=!n.collapsed;var i=fnt(r,n.collapsed);return[n].concat(i)};cV.prototype.revert=function(e){var n=e.shape,r=e.oldChildrenVisibility,i=n.children,o=pnt(i,r);return n.collapsed=!n.collapsed,[n].concat(o)};function dnt(e){var n={};return ht(e,function(r){n[r.id]=r.hidden,r.children&&(n=Rt({},n,dnt(r.children)))}),n}function fnt(e,n){var r=[];return ht(e,function(i){i.hidden=n,r=r.concat(i),i.children&&(r=r.concat(fnt(i.children,i.collapsed||n)))}),r}function pnt(e,n){var r=[];return ht(e,function(i){i.hidden=n[i.id],r=r.concat(i),i.children&&(r=r.concat(pnt(i.children,n)))}),r}function uV(e){this._modeling=e}uV.$inject=["modeling"];uV.prototype.execute=function(e){var n=e.shape,r=e.newHost,i=n.host;return e.oldHost=i,e.attacherIdx=hnt(i,n),gnt(r,n),n.host=r,n};uV.prototype.revert=function(e){var n=e.shape,r=e.newHost,i=e.oldHost,o=e.attacherIdx;return n.host=i,hnt(r,n),gnt(i,n,o),n};function hnt(e,n){return Cs(e&&e.attachers,n)}function gnt(e,n,r){if(e){var i=e.attachers;i||(e.attachers=i=[]),Ks(i,n,r)}}function qge(){}qge.prototype.execute=function(e){var n=e.connection,r=e.newWaypoints;return e.oldWaypoints=n.waypoints,n.waypoints=r,n};qge.prototype.revert=function(e){var n=e.connection,r=e.oldWaypoints;return n.waypoints=r,n};function To(e,n,r){this._eventBus=e,this._elementFactory=n,this._commandStack=r;var i=this;e.on("diagram.init",function(){i.registerHandlers(r)})}To.$inject=["eventBus","elementFactory","commandStack"];To.prototype.getHandlers=function(){return{"shape.append":iV,"shape.create":CS,"shape.delete":$L,"shape.move":Ow,"shape.resize":jL,"shape.replace":b_,"shape.toggleCollapse":cV,spaceTool:wS,"label.create":kL,"connection.create":oV,"connection.delete":LL,"connection.move":Wge,"connection.layout":sV,"connection.updateWaypoints":qge,"connection.reconnect":BL,"elements.create":Vge,"elements.move":lV,"elements.delete":Gge,"elements.distribute":aV,"elements.align":rV,"element.updateAttachment":uV}};To.prototype.registerHandlers=function(e){ht(this.getHandlers(),function(n,r){e.registerHandler(r,n)})};To.prototype.moveShape=function(e,n,r,i,o){typeof i=="object"&&(o=i,i=null);var a={shape:e,delta:n,newParent:r,newParentIndex:i,hints:o||{}};this._commandStack.execute("shape.move",a)};To.prototype.updateAttachment=function(e,n){var r={shape:e,newHost:n};this._commandStack.execute("element.updateAttachment",r)};To.prototype.moveElements=function(e,n,r,i){i=i||{};var o=i.attach,a=r,s;o===!0?(s=r,a=r.parent):o===!1&&(s=null);var l={shapes:e,delta:n,newParent:a,newHost:s,hints:i};this._commandStack.execute("elements.move",l)};To.prototype.moveConnection=function(e,n,r,i,o){typeof i=="object"&&(o=i,i=void 0);var a={connection:e,delta:n,newParent:r,newParentIndex:i,hints:o||{}};this._commandStack.execute("connection.move",a)};To.prototype.layoutConnection=function(e,n){var r={connection:e,hints:n||{}};this._commandStack.execute("connection.layout",r)};To.prototype.createConnection=function(e,n,r,i,o,a){typeof r=="object"&&(a=o,o=i,i=r,r=void 0),i=this._create("connection",i);var s={source:e,target:n,parent:o,parentIndex:r,connection:i,hints:a};return this._commandStack.execute("connection.create",s),s.connection};To.prototype.createShape=function(e,n,r,i,o){typeof i!="number"&&(o=i,i=void 0),o=o||{};var a=o.attach,s,l;e=this._create("shape",e),a?(s=r.parent,l=r):s=r;var c={position:n,shape:e,parent:s,parentIndex:i,host:l,hints:o};return this._commandStack.execute("shape.create",c),c.shape};To.prototype.createElements=function(e,n,r,i,o){zr(e)||(e=[e]),typeof i!="number"&&(o=i,i=void 0),o=o||{};var a={position:n,elements:e,parent:r,parentIndex:i,hints:o};return this._commandStack.execute("elements.create",a),a.elements};To.prototype.createLabel=function(e,n,r,i){r=this._create("label",r);var o={labelTarget:e,position:n,parent:i||e.parent,shape:r};return this._commandStack.execute("label.create",o),o.shape};To.prototype.appendShape=function(e,n,r,i,o){o=o||{},n=this._create("shape",n);var a={source:e,position:r,target:i,shape:n,connection:o.connection,connectionParent:o.connectionParent,hints:o};return this._commandStack.execute("shape.append",a),a.shape};To.prototype.removeElements=function(e){var n={elements:e};this._commandStack.execute("elements.delete",n)};To.prototype.distributeElements=function(e,n,r){var i={groups:e,axis:n,dimension:r};this._commandStack.execute("elements.distribute",i)};To.prototype.removeShape=function(e,n){var r={shape:e,hints:n||{}};this._commandStack.execute("shape.delete",r)};To.prototype.removeConnection=function(e,n){var r={connection:e,hints:n||{}};this._commandStack.execute("connection.delete",r)};To.prototype.replaceShape=function(e,n,r){var i={oldShape:e,newData:n,hints:r||{}};return this._commandStack.execute("shape.replace",i),i.newShape};To.prototype.alignElements=function(e,n){var r={elements:e,alignment:n};this._commandStack.execute("elements.align",r)};To.prototype.resizeShape=function(e,n,r,i){var o={shape:e,newBounds:n,minBounds:r,hints:i};this._commandStack.execute("shape.resize",o)};To.prototype.createSpace=function(e,n,r,i,o){var a={delta:r,direction:i,movingShapes:e,resizingShapes:n,start:o};this._commandStack.execute("spaceTool",a)};To.prototype.updateWaypoints=function(e,n,r){var i={connection:e,newWaypoints:n,hints:r||{}};this._commandStack.execute("connection.updateWaypoints",i)};To.prototype.reconnect=function(e,n,r,i,o){var a={connection:e,newSource:n,newTarget:r,dockingOrPoints:i,hints:o||{}};this._commandStack.execute("connection.reconnect",a)};To.prototype.reconnectStart=function(e,n,r,i){i||(i={}),this.reconnect(e,n,e.target,r,Rt(i,{docking:"source"}))};To.prototype.reconnectEnd=function(e,n,r,i){i||(i={}),this.reconnect(e,e.source,n,r,Rt(i,{docking:"target"}))};To.prototype.connect=function(e,n,r,i){return this.createConnection(e,n,r||{},e.parent,i)};To.prototype._create=function(e,n){return jBn(n)?n:this._elementFactory.create(e,n)};To.prototype.toggleCollapse=function(e,n){var r={shape:e,hints:n||{}};this._commandStack.execute("shape.toggleCollapse",r)};function UL(e){this._elementRegistry=e}UL.$inject=["elementRegistry"];UL.prototype.execute=function(e){var n=e.element,r=e.moddleElement,i=e.properties;if(!r)throw new Error("<moddleElement> required");var o=e.changed||this._getVisualReferences(r).concat(n),a=e.oldProperties||jGn(r,WB(i));return mnt(r,i),e.oldProperties=a,e.changed=o,o};UL.prototype.revert=function(e){var n=e.oldProperties,r=e.moddleElement,i=e.changed;return mnt(r,n),i};UL.prototype._getVisualReferences=function(e){var n=this._elementRegistry;return Fe(e,"bpmn:DataObject")?UGn(e,n):[]};function jGn(e,n){return vd(n,function(r,i){return r[i]=e.get(i),r},{})}function mnt(e,n){ht(n,function(r,i){e.set(i,r)})}function UGn(e,n){return n.filter(function(r){return Fe(r,"bpmn:DataObjectReference")&&In(r).dataObjectRef===e})}var DM="default",_y="id",vnt="di",HGn={width:0,height:0};function HL(e,n,r,i){this._elementRegistry=e,this._moddle=n,this._modeling=r,this._textRenderer=i}HL.$inject=["elementRegistry","moddle","modeling","textRenderer"];HL.prototype.execute=function(e){var n=e.element,r=[n];if(!n)throw new Error("element required");var i=this._elementRegistry,o=this._moddle.ids,a=n.businessObject,s=YGn(e.properties),l=e.oldProperties||zGn(n,s);return ynt(s,a)&&(o.unclaim(a[_y]),i.updateId(n,s[_y]),o.claim(s[_y],a)),DM in s&&(s[DM]&&r.push(i.get(s[DM].id)),a[DM]&&r.push(i.get(a[DM].id))),_nt(n,s),e.oldProperties=l,e.changed=r,r};HL.prototype.postExecute=function(e){var n=e.element,r=n.label,i=r&&In(r).name;if(i){var o=this._textRenderer.getExternalLabelBounds(r,i);this._modeling.resizeShape(r,o,HGn)}};HL.prototype.revert=function(e){var n=e.element,r=e.properties,i=e.oldProperties,o=n.businessObject,a=this._elementRegistry,s=this._moddle.ids;return _nt(n,i),ynt(r,o)&&(s.unclaim(r[_y]),a.updateId(n,i[_y]),s.claim(i[_y],o)),e.changed};function ynt(e,n){return _y in e&&e[_y]!==n[_y]}function zGn(e,n){var r=WB(n),i=e.businessObject,o=Ii(e);return vd(r,function(a,s){return s!==vnt?a[s]=i.get(s):a[s]=VGn(o,WB(n.di)),a},{})}function VGn(e,n){return vd(n,function(r,i){return r[i]=e&&e.get(i),r},{})}function _nt(e,n){var r=e.businessObject,i=Ii(e);ht(n,function(o,a){a!==vnt?r.set(a,o):i&&GGn(i,o)})}function GGn(e,n){ht(n,function(r,i){e.set(i,r)})}var WGn=["default"];function YGn(e){var n=Rt({},e);return WGn.forEach(function(r){r in e&&(n[r]=In(n[r]))}),n}function dV(e,n){this._canvas=e,this._modeling=n}dV.$inject=["canvas","modeling"];dV.prototype.execute=function(e){var n=this._canvas,r=e.newRoot,i=r.businessObject,o=n.getRootElement(),a=o.businessObject,s=a.$parent,l=Ii(o);return n.setRootElement(r),n.removeRootElement(o),Ks(s.rootElements,i),i.$parent=s,Cs(s.rootElements,a),a.$parent=null,o.di=null,l.bpmnElement=i,r.di=l,e.oldRoot=o,[]};dV.prototype.revert=function(e){var n=this._canvas,r=e.newRoot,i=r.businessObject,o=e.oldRoot,a=o.businessObject,s=i.$parent,l=Ii(r);return n.setRootElement(o),n.removeRootElement(r),Cs(s.rootElements,i),i.$parent=null,Ks(s.rootElements,a),a.$parent=s,r.di=null,l.bpmnElement=a,o.di=l,[]};function Kge(e,n){this._modeling=e,this._spaceTool=n}Kge.$inject=["modeling","spaceTool"];Kge.prototype.preExecute=function(e){var n=this._spaceTool,r=this._modeling,i=e.shape,o=e.location,a=cp(i),s=a===i,l=s?i:i.parent,c=bS(l),u=cl(i);if(u?o==="left"?o="top":o==="right"&&(o="bottom"):o==="top"?o="left":o==="bottom"&&(o="right"),!c.length){var d=u?{x:i.x+rp,y:i.y,width:i.width-rp,height:i.height}:{x:i.x,y:i.y+rp,width:i.width,height:i.height-rp};r.createShape({type:"bpmn:Lane",isHorizontal:u},d,l)}var f=[];Ew(a,function(E){return f.push(E),E.label&&f.push(E.label),E===i?[]:si(E.children,function(w){return w!==i})});var p,h,g,v,y;o==="top"?(p=-120,h=i.y,g=h+10,v="n",y="y"):o==="left"?(p=-120,h=i.x,g=h+10,v="w",y="x"):o==="bottom"?(p=120,h=i.y+i.height,g=h-10,v="s",y="y"):o==="right"&&(p=120,h=i.x+i.width,g=h-10,v="e",y="x");var _=n.calculateAdjustments(f,y,p,g),S=u?{x:0,y:p}:{x:p,y:0};n.makeSpace(_.movingShapes,_.resizingShapes,S,v,g);var b=u?{x:i.x+(s?rp:0),y:h-(o==="top"?120:0),width:i.width-(s?rp:0),height:120}:{x:h-(o==="left"?120:0),y:i.y+(s?rp:0),width:120,height:i.height-(s?rp:0)};e.newLane=r.createShape({type:"bpmn:Lane",isHorizontal:u},b,l)};function Xge(e){this._modeling=e}Xge.$inject=["modeling"];Xge.prototype.preExecute=function(e){var n=this._modeling,r=e.shape,i=e.count,o=bS(r),a=o.length;if(a>i)throw new Error(`more than <${i}> child lanes`);var s=cl(r),l=s?r.height:r.width,c=Math.round(l/i),u,d,f,p;for(p=0;p<i;p++)p===i-1?u=l-c*p:u=c,d=s?{x:r.x+rp,y:r.y+p*c,width:r.width-rp,height:u}:{x:r.x+p*c,y:r.y+rp,width:u,height:r.height-rp},p<a?n.resizeShape(o[p],d):(f={type:"bpmn:Lane",isHorizontal:s},n.createShape(f,d,r))};function zL(e,n){this._modeling=e,this._spaceTool=n}zL.$inject=["modeling","spaceTool"];zL.prototype.preExecute=function(e){var n=e.shape,r=e.newBounds,i=e.balanced;i!==!1?this.resizeBalanced(n,r):this.resizeSpace(n,r)};zL.prototype.resizeBalanced=function(e,n){var r=this._modeling,i=Szn(e,n);r.resizeShape(e,n),i.forEach(function(o){r.resizeShape(o.shape,o.newBounds)})};zL.prototype.resizeSpace=function(e,n){var r=this._spaceTool,i=br(e),o=br(n),a=_tt(o,i),s=cp(e),l=[],c=[];Ew(s,function(g){return l.push(g),(Fe(g,"bpmn:Lane")||Fe(g,"bpmn:Participant"))&&c.push(g),g.children});var u,d,f,p,h;(a.bottom||a.top)&&(u=a.bottom||a.top,d=e.y+(a.bottom?e.height:0)+(a.bottom?-10:10),f=a.bottom?"s":"n",p=a.top>0||a.bottom<0?-u:u,h=r.calculateAdjustments(l,"y",p,d),r.makeSpace(h.movingShapes,h.resizingShapes,{x:0,y:u},f)),(a.left||a.right)&&(u=a.right||a.left,d=e.x+(a.right?e.width:0)+(a.right?-10:100),f=a.right?"e":"w",p=a.left>0||a.right<0?-u:u,h=r.calculateAdjustments(c,"x",p,d),r.makeSpace(h.movingShapes,h.resizingShapes,{x:u,y:0},f))};var lD="flowNodeRef",Qge="lanes";function VL(e){this._elementRegistry=e}VL.$inject=["elementRegistry"];VL.prototype._computeUpdates=function(e,n){var r=[],i=[],o={},a=[];function s(d,f){var p=br(f),h={x:d.x+d.width/2,y:d.y+d.height/2};return h.x>p.left&&h.x<p.right&&h.y>p.top&&h.y<p.bottom}function l(d){r.indexOf(d)===-1&&(a.push(d),r.push(d))}function c(d){var f=cp(d);return o[f.id]||(o[f.id]=Wz(f)),o[f.id]}function u(d){if(!d.parent)return[];var f=c(d);return f.filter(function(p){return s(d,p)}).map(function(p){return p.businessObject})}return n.forEach(function(d){var f=cp(d);if(!(!f||r.indexOf(f)!==-1)){var p=f.children.filter(function(h){return Fe(h,"bpmn:FlowNode")});p.forEach(l),r.push(f)}}),e.forEach(l),a.forEach(function(d){var f=d.businessObject,p=f.get(Qge),h=p.slice(),g=u(d);i.push({flowNode:f,remove:h,add:g})}),n.forEach(function(d){var f=d.businessObject;d.parent||f.get(lD).forEach(function(p){i.push({flowNode:p,remove:[f],add:[]})})}),i};VL.prototype.execute=function(e){var n=e.updates;return n||(n=e.updates=this._computeUpdates(e.flowNodeShapes,e.laneShapes)),n.forEach(function(r){var i=r.flowNode,o=i.get(Qge);r.remove.forEach(function(a){Cs(o,a),Cs(a.get(lD),i)}),r.add.forEach(function(a){Ks(o,a),Ks(a.get(lD),i)})}),[]};VL.prototype.revert=function(e){var n=e.updates;return n.forEach(function(r){var i=r.flowNode,o=i.get(Qge);r.add.forEach(function(a){Cs(o,a),Cs(a.get(lD),i)}),r.remove.forEach(function(a){Ks(o,a),Ks(a.get(lD),i)})}),[]};function fV(e){this._moddle=e}fV.$inject=["moddle"];fV.prototype.execute=function(e){var n=this._moddle.ids,r=e.id,i=e.element,o=e.claiming;return o?n.claim(r,i):n.unclaim(r),[]};fV.prototype.revert=function(e){var n=this._moddle.ids,r=e.id,i=e.element,o=e.claiming;return o?n.unclaim(r):n.claim(r,i),[]};var qGn={fill:void 0,stroke:void 0};function Zge(e){this._commandStack=e,this._normalizeColor=function(n){if(n){if(md(n)){var r=KGn(n);if(r)return r}throw new Error(`invalid color value: ${n}`)}}}Zge.$inject=["commandStack"];Zge.prototype.postExecute=function(e){var n=e.elements,r=e.colors||qGn,i=this,o={};"fill"in r&&Rt(o,{"background-color":this._normalizeColor(r.fill)}),"stroke"in r&&Rt(o,{"border-color":this._normalizeColor(r.stroke)}),ht(n,function(a){var s=wo(a)?ag(o,["border-color"]):o,l=Ii(a);if(XGn(s),Ni(a))i._commandStack.execute("element.updateModdleProperties",{element:a,moddleElement:l.label,properties:{color:o["border-color"]}});else{if(!ii(l,["bpmndi:BPMNEdge","bpmndi:BPMNShape"]))return;i._commandStack.execute("element.updateProperties",{element:a,properties:{di:s}})}})};function KGn(e){var n=document.createElement("canvas").getContext("2d");return n.fillStyle="transparent",n.fillStyle=e,/^#[0-9a-fA-F]{6}$/.test(n.fillStyle)?n.fillStyle:null}function XGn(e){"border-color"in e&&(e.stroke=e["border-color"]),"background-color"in e&&(e.fill=e["background-color"])}var QGn={width:0,height:0};function bnt(e,n,r){function i(c,u){var d=c.label||c,f=c.labelTarget||c;return j7n(d,u),[d,f]}function o(c){var u=c.element,d=u.businessObject,f=c.newLabel;if(!Ni(u)&&CC(u)&&!Mz(u)&&!UDe(f)){var p=7,h=Ahe(u);h={x:h.x,y:h.y+p},e.createLabel(u,h,{id:d.id+"_label",businessObject:d,di:u.di})}}function a(c){return c.oldLabel=sg(c.element),i(c.element,c.newLabel)}function s(c){return i(c.element,c.oldLabel)}function l(c){var u=c.element,d=u.label||u,f=c.newLabel,p=c.newBounds,h=c.hints||{};if(!(!Ni(d)&&!Fe(d,"bpmn:TextAnnotation"))){if(Ni(d)&&UDe(f)){h.removeShape!==!1&&e.removeShape(d,{unsetLabel:!1});return}var g=sg(u);typeof p>"u"&&(p=n.getExternalLabelBounds(d,g)),p&&e.resizeShape(d,p,QGn)}}this.preExecute=o,this.execute=a,this.revert=s,this.postExecute=l}bnt.$inject=["modeling","textRenderer","bpmnFactory"];function UDe(e){return!e||!e.trim()}function Cc(e,n,r,i){To.call(this,e,n,r),this._bpmnRules=i}Zn(Cc,To);Cc.$inject=["eventBus","elementFactory","commandStack","bpmnRules"];Cc.prototype.getHandlers=function(){var e=To.prototype.getHandlers.call(this);return e["element.updateModdleProperties"]=UL,e["element.updateProperties"]=HL,e["canvas.updateRoot"]=dV,e["lane.add"]=Kge,e["lane.resize"]=zL,e["lane.split"]=Xge,e["lane.updateRefs"]=VL,e["id.updateClaim"]=fV,e["element.setColor"]=Zge,e["element.updateLabel"]=bnt,e};Cc.prototype.updateLabel=function(e,n,r,i){this._commandStack.execute("element.updateLabel",{element:e,newLabel:n,newBounds:r,hints:i||{}})};Cc.prototype.connect=function(e,n,r,i){var o=this._bpmnRules;if(r||(r=o.canConnect(e,n)),!!r)return this.createConnection(e,n,r,e.parent,i)};Cc.prototype.updateModdleProperties=function(e,n,r){this._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:n,properties:r})};Cc.prototype.updateProperties=function(e,n){this._commandStack.execute("element.updateProperties",{element:e,properties:n})};Cc.prototype.resizeLane=function(e,n,r){this._commandStack.execute("lane.resize",{shape:e,newBounds:n,balanced:r})};Cc.prototype.addLane=function(e,n){var r={shape:e,location:n};return this._commandStack.execute("lane.add",r),r.newLane};Cc.prototype.splitLane=function(e,n){this._commandStack.execute("lane.split",{shape:e,count:n})};Cc.prototype.makeCollaboration=function(){var e=this._create("root",{type:"bpmn:Collaboration"}),n={newRoot:e};return this._commandStack.execute("canvas.updateRoot",n),e};Cc.prototype.makeProcess=function(){var e=this._create("root",{type:"bpmn:Process"}),n={newRoot:e};return this._commandStack.execute("canvas.updateRoot",n),e};Cc.prototype.updateLaneRefs=function(e,n){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:e,laneShapes:n})};Cc.prototype.claimId=function(e,n){this._commandStack.execute("id.updateClaim",{id:e,element:n,claiming:!0})};Cc.prototype.unclaimId=function(e,n){this._commandStack.execute("id.updateClaim",{id:e,element:n})};Cc.prototype.setColor=function(e,n){e.length||(e=[e]),this._commandStack.execute("element.setColor",{elements:e,colors:n})};function Snt(){}Snt.prototype.layoutConnection=function(e,n){return n=n||{},[n.connectionStart||Mr(n.source||e.source),n.connectionEnd||Mr(n.target||e.target)]};var n5=20,ZGn=5,lj=Math.round,HDe=20,JGn={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};function eWn(e,n){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[n].test(e)}function tWn(e,n){return{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[e].test(n)}function Ent(e,n,r){var i=_c(n,e,ZGn),o=r.split(":")[0],a=lj((n.x-e.x)/2+e.x),s=lj((n.y-e.y)/2+e.y),l,c,u=tWn(o,i),d=/h|r|l/.test(o),f=!1,p=!1;return u?(l=d?{x:a,y:e.y}:{x:e.x,y:s},c=d?"h:h":"v:v"):(f=eWn(i,o),c=d?"h:v":"v:h",f?d?(p=s===e.y,l={x:e.x+n5*(/l/.test(o)?-1:1),y:p?s+n5:s}):(p=a===e.x,l={x:p?a+n5:a,y:e.y+n5*(/t/.test(o)?-1:1)}):l={x:a,y:s}),{waypoints:Jge(e,l,c).concat(l),directions:c,turnNextDirections:p}}function nWn(e,n,r){return Ent(e,n,r)}function rWn(e,n,r){var i=Ent(n,e,zDe(r));return{waypoints:i.waypoints.slice().reverse(),directions:zDe(i.directions),turnNextDirections:i.turnNextDirections}}function iWn(e,n){var r=e.directions.split(":")[1],i=n.directions.split(":")[0];e.turnNextDirections&&(r=r=="h"?"v":"h"),n.turnNextDirections&&(i=i=="h"?"v":"h");var o=r+":"+i,a=Jge(e.waypoints[e.waypoints.length-1],n.waypoints[0],o);return{waypoints:a,directions:o}}function zDe(e){return e.split(":").reverse().join(":")}function oWn(e,n,r){var i=lj((n.x-e.x)/2+e.x),o=lj((n.y-e.y)/2+e.y);if(r==="h:v")return[{x:n.x,y:e.y}];if(r==="v:h")return[{x:e.x,y:n.y}];if(r==="h:h")return[{x:i,y:e.y},{x:i,y:n.y}];if(r==="v:v")return[{x:e.x,y:o},{x:n.x,y:o}];throw new Error("invalid directions: can only handle varians of [hv]:[hv]")}function Jge(e,n,r){if(r=r||"h:h",!hWn(r))throw new Error("unknown directions: <"+r+">: must be specified as <start>:<end> with start/end in { h,v,t,r,b,l }");if(Cnt(r)){var i=nWn(e,n,r),o=rWn(e,n,r),a=iWn(i,o);return[].concat(i.waypoints,a.waypoints,o.waypoints)}return oWn(e,n,r)}function aWn(e,n,r){var i=Jge(e,n,r);return i.unshift(e),i.push(n),wnt(i)}function sWn(e,n,r,i,o){var a=o&&o.preferredLayouts||[],s=h8n(a,"straight")[0]||"h:h",l=JGn[s]||0,c=_c(e,n,l),u=pWn(c,s);r=r||Mr(e),i=i||Mr(n);var d=u.split(":"),f=GDe(r,e,d[0],gWn(c)),p=GDe(i,n,d[1],c);return aWn(f,p,u)}function lWn(e,n,r,i,o,a){zr(r)&&(o=r,a=i,r=Mr(e),i=Mr(n)),a=Rt({preferredLayouts:[]},a),o=o||[];var s=a.preferredLayouts,l=s.indexOf("straight")!==-1,c;return c=l&&uWn(e,n,r,i,a),c||(c=a.connectionEnd&&fWn(n,e,i,o),c)||(c=a.connectionStart&&dWn(e,n,r,o),c)?c:!a.connectionStart&&!a.connectionEnd&&o&&o.length?o:sWn(e,n,r,i,a)}function cWn(e,n,r){return e>=n&&e<=r}function VDe(e,n,r){var i={x:"width",y:"height"};return cWn(n[e],r[e],r[e]+r[i[e]])}function uWn(e,n,r,i,o){var a={},s,l;return l=_c(e,n),/^(top|bottom|left|right)$/.test(l)?(/top|bottom/.test(l)&&(s="x"),/left|right/.test(l)&&(s="y"),o.preserveDocking==="target"?VDe(s,i,e)?(a[s]=i[s],[{x:a.x!==void 0?a.x:r.x,y:a.y!==void 0?a.y:r.y,original:{x:a.x!==void 0?a.x:r.x,y:a.y!==void 0?a.y:r.y}},{x:i.x,y:i.y}]):null:VDe(s,r,n)?(a[s]=r[s],[{x:r.x,y:r.y},{x:a.x!==void 0?a.x:i.x,y:a.y!==void 0?a.y:i.y,original:{x:a.x!==void 0?a.x:i.x,y:a.y!==void 0?a.y:i.y}}]):null):null}function dWn(e,n,r,i){return eme(e,n,r,i)}function fWn(e,n,r,i){var o=i.slice().reverse();return o=eme(e,n,r,o),o?o.reverse():null}function eme(e,n,r,i){function o(d){return d.length<3?!0:d.length>4?!1:!!ki(d,function(f,p){var h=d[p-1];return h&&SL(f,h)<3})}function a(d,f,p){var h=ny(f,d);switch(h){case"v":return{x:p.x,y:d.y};case"h":return{x:d.x,y:p.y}}return{x:d.x,y:d.y}}function s(d,f,p){var h;for(h=d.length-2;h!==0;h--)if(jPe(d[h],f,HDe)||jPe(d[h],p,HDe))return d.slice(h);return d}if(o(i))return null;var l=i[0],c=i.slice(),u;return c[0]=r,c[1]=a(c[1],l,r),u=s(c,e,n),u!==c&&(c=eme(e,n,r,u)),c&&ny(c)?null:c}function pWn(e,n){if(Cnt(n))return n;switch(e){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return n}}function hWn(e){return e&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e)}function Cnt(e){return e&&/t|r|b|l/.test(e)}function gWn(e){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[e]}function GDe(e,n,r,i){if(r==="h"&&(r=/left/.test(i)?"l":"r"),r==="v"&&(r=/top/.test(i)?"t":"b"),r==="t")return{original:e,x:e.x,y:n.y};if(r==="r")return{original:e,x:n.x+n.width,y:e.y};if(r==="b")return{original:e,x:e.x,y:n.y+n.height};if(r==="l")return{original:e,x:n.x,y:e.y};throw new Error("unexpected dockingDirection: <"+r+">")}function wnt(e){return e.reduce(function(n,r,i){var o=n[n.length-1],a=e[i+1];return Ehe(o,a,r,0)||n.push(r),n},[])}var mWn=-10,vWn=40,yWn={default:["h:h"],fromGateway:["v:h"],toGateway:["h:v"],loop:{fromTop:["t:r"],fromRight:["r:b"],fromLeft:["l:t"],fromBottom:["b:l"]},boundaryLoop:{alternateHorizontalSide:"b",alternateVerticalSide:"l",default:"v"},messageFlow:["straight","v:v"],subProcess:["straight","h:h"],isHorizontal:!0},_Wn={default:["v:v"],fromGateway:["h:v"],toGateway:["v:h"],loop:{fromTop:["t:l"],fromRight:["r:t"],fromLeft:["l:b"],fromBottom:["b:r"]},boundaryLoop:{alternateHorizontalSide:"t",alternateVerticalSide:"r",default:"h"},messageFlow:["straight","h:h"],subProcess:["straight","v:v"],isHorizontal:!1},tme={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},_2={top:"t",right:"r",bottom:"b",left:"l"};function pV(e){this._elementRegistry=e}Zn(pV,Snt);pV.prototype.layoutConnection=function(e,n){n||(n={});var r=n.source||e.source,i=n.target||e.target,o=n.waypoints||e.waypoints,a=n.connectionStart,s=n.connectionEnd,l=this._elementRegistry,c,u;if(a||(a=WDe(o&&o[0],r)),s||(s=WDe(o&&o[o.length-1],i)),(Fe(e,"bpmn:Association")||Fe(e,"bpmn:DataAssociation"))&&o&&!YDe(r,i))return[].concat([a],o.slice(1,-1),[s]);var d=Ket(r,l)?yWn:_Wn;return Fe(e,"bpmn:MessageFlow")?c=SWn(r,i,d):(Fe(e,"bpmn:SequenceFlow")||YDe(r,i))&&(r===i?c={preferredLayouts:OWn(r,e,d)}:Fe(r,"bpmn:BoundaryEvent")?c={preferredLayouts:RWn(r,i,s,d)}:cD(r)||cD(i)?c={preferredLayouts:d.subProcess,preserveDocking:CWn(r)}:Fe(r,"bpmn:Gateway")?c={preferredLayouts:d.fromGateway}:Fe(i,"bpmn:Gateway")?c={preferredLayouts:d.toGateway}:c={preferredLayouts:d.default}),c&&(c=Rt(c,n),u=wnt(lWn(r,i,a,s,o,c))),u||[a,s]};function bWn(e){var n=e.host;return _c(Mr(e),n,mWn)}function SWn(e,n,r){return{preferredLayouts:r.messageFlow,preserveDocking:EWn(e,n)}}function EWn(e,n){return Fe(n,"bpmn:Participant")?"source":Fe(e,"bpmn:Participant")?"target":cD(n)?"source":cD(e)||Fe(n,"bpmn:Event")?"target":Fe(e,"bpmn:Event")?"source":null}function CWn(e){return cD(e)?"target":"source"}function WDe(e,n){return e?e.original||e:Mr(n)}function YDe(e,n){return Fe(n,"bpmn:Activity")&&Fe(e,"bpmn:BoundaryEvent")&&n.businessObject.isForCompensation}function cD(e){return Fe(e,"bpmn:SubProcess")&&pi(e)}function d1(e,n){return e===n}function wWn(e,n){return n.indexOf(e)!==-1}function gR(e){var n=/right|left/.exec(e);return n&&n[0]}function mR(e){var n=/top|bottom/.exec(e);return n&&n[0]}function qDe(e,n){return tme[e]===n}function xWn(e,n){var r=gR(e),i=tme[r];return n.indexOf(i)!==-1}function TWn(e,n){var r=mR(e),i=tme[r];return n.indexOf(i)!==-1}function xnt(e){return e==="right"||e==="left"}function OWn(e,n,r){var i=n.waypoints,o=i&&i.length&&_c(i[0],e);return o==="top"?r.loop.fromTop:o==="right"?r.loop.fromRight:o==="left"?r.loop.fromLeft:r.loop.fromBottom}function RWn(e,n,r,i){var o=Mr(e),a=Mr(n),s=bWn(e),l,c,u=d1(e.host,n),d=wWn(s,["top","right","bottom","left"]),f=_c(a,o,{x:e.width/2+n.width/2,y:e.height/2+n.height/2});return u?IWn(s,d,e,n,r,i):(l=NWn(s,f,d,i.isHorizontal),c=MWn(s,f,d,i.isHorizontal),[l+":"+c])}function IWn(e,n,r,i,o,a){var s=n?e:a.isHorizontal?mR(e):gR(e),l=_2[s],c;return n?xnt(e)?c=KDe("y",r,i,o)?"h":a.boundaryLoop.alternateHorizontalSide:c=KDe("x",r,i,o)?"v":a.boundaryLoop.alternateVerticalSide:c=a.boundaryLoop.default,[l+":"+c]}function KDe(e,n,r,i){var o=vWn;return!(yJ(e,i,r,o)||yJ(e,i,{x:r.x+r.width,y:r.y+r.height},o)||yJ(e,i,Mr(n),o))}function yJ(e,n,r,i){return Math.abs(n[e]-r[e])<i}function NWn(e,n,r,i){if(r)return _2[e];var o=mR(e),a=gR(e),s=mR(n),l=gR(n);if(i){if(d1(o,s)||qDe(a,l))return _2[o]}else if(d1(a,l)||qDe(o,s))return _2[a];return _2[i?a:o]}function MWn(e,n,r,i){return r?xnt(e)?xWn(e,n)||d1(e,n)?"h":"v":TWn(e,n)||d1(e,n)?"v":"h":i?d1(mR(e),mR(n))?"h":"v":d1(gR(e),gR(n))?"v":"h"}pV.$inject=["elementRegistry"];function XDe(e){return Rt({original:e.point.original||e.point},e.actual)}function xS(e,n){this._elementRegistry=e,this._graphicsFactory=n}xS.$inject=["elementRegistry","graphicsFactory"];xS.prototype.getCroppedWaypoints=function(e,n,r){n=n||e.source,r=r||e.target;var i=this.getDockingPoint(e,n,!0),o=this.getDockingPoint(e,r),a=e.waypoints.slice(i.idx+1,o.idx);return a.unshift(XDe(i)),a.push(XDe(o)),a};xS.prototype.getDockingPoint=function(e,n,r){var i=e.waypoints,o,a,s;return o=r?0:i.length-1,a=i[o],s=this._getIntersection(n,e,r),{point:a,actual:s||a,idx:o}};xS.prototype._getIntersection=function(e,n,r){var i=this._getShapePath(e),o=this._getConnectionPath(n);return Sae(i,o,r)};xS.prototype._getConnectionPath=function(e){return this._graphicsFactory.getConnectionPath(e)};xS.prototype._getShapePath=function(e){return this._graphicsFactory.getShapePath(e)};xS.prototype._getGfx=function(e){return this._elementRegistry.getGraphics(e)};const Tnt={__init__:["modeling","bpmnUpdater"],__depends__:[TVn,VVn,WVn,YVn,ant,SGn,CGn,IGn,xg,Dhe,cnt],bpmnFactory:["type",qp],bpmnUpdater:["type",Td],elementFactory:["type",ES],modeling:["type",Cc],layouter:["type",pV],connectionDocking:["type",xS]},QDe=Math.round;function hV(e,n,r,i,o,a){this._complexPreview=e,this._connectionDocking=n,this._elementFactory=r,this._eventBus=i,this._layouter=o,this._rules=a}hV.prototype.create=function(e,n,r){const i=this._complexPreview,o=this._connectionDocking,a=this._elementFactory,s=this._eventBus,l=this._layouter,c=this._rules,u=a.createShape(Rt({type:n},r)),d=s.fire("autoPlace",{source:e,shape:u});if(!d)return;Rt(u,{x:d.x-QDe(u.width/2),y:d.y-QDe(u.height/2)});const f=c.allowed("connection.create",{source:e,target:u,hints:{targetParent:e.parent}});let p=null;f&&(p=a.createConnection(f),p.waypoints=l.layoutConnection(p,{source:e,target:u}),p.waypoints=o.getCroppedWaypoints(p,e,u)),i.create({created:[u,p].filter(h=>!eD(h))})};hV.prototype.cleanUp=function(){this._complexPreview.cleanUp()};hV.$inject=["complexPreview","connectionDocking","elementFactory","eventBus","layouter","rules"];const PWn={__depends__:[Yhe,tzn,Tnt],__init__:["appendPreview"],appendPreview:["type",hV]};var ZDe=Math.min,JDe=Math.max;function _J(e){e.preventDefault()}function yP(e){e.stopPropagation()}function AWn(e){return e.nodeType===Node.TEXT_NODE}function DWn(e){return[].slice.call(e)}function Og(e){this.container=e.container,this.parent=Ko('<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'),this.content=Co("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=Su(this.autoResize,this),this.handlePaste=Su(this.handlePaste,this)}Og.prototype.create=function(e,n,r,i){var o=this,a=this.parent,s=this.content,l=this.container;i=this.options=i||{},n=this.style=n||{};var c=ag(n,["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);Rt(a.style,{width:e.width+"px",height:e.height+"px",maxWidth:e.maxWidth+"px",maxHeight:e.maxHeight+"px",minWidth:e.minWidth+"px",minHeight:e.minHeight+"px",left:e.x+"px",top:e.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},c);var u=ag(n,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return Rt(s.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},u),i.centerVertically&&Rt(s.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},u),s.innerText=r,Ur.bind(s,"keydown",this.keyHandler),Ur.bind(s,"mousedown",yP),Ur.bind(s,"paste",o.handlePaste),i.autoResize&&Ur.bind(s,"input",this.autoResize),i.resizable&&this.resizable(n),l.appendChild(a),this.setSelection(s.lastChild,s.lastChild&&s.lastChild.length),a};Og.prototype.handlePaste=function(e){var n=this.options,r=this.style;e.preventDefault();var i;if(e.clipboardData?i=e.clipboardData.getData("text/plain"):i=window.clipboardData.getData("Text"),this.insertText(i),n.autoResize){var o=this.autoResize(r);o&&this.resizeHandler(o)}};Og.prototype.insertText=function(e){e=kWn(e);var n=document.execCommand("insertText",!1,e);n||this._insertTextIE(e)};Og.prototype._insertTextIE=function(e){var n=this.getSelection(),r=n.startContainer,i=n.endContainer,o=n.startOffset,a=n.endOffset,s=n.commonAncestorContainer,l=DWn(s.childNodes),c,u;if(AWn(s)){var d=r.textContent;r.textContent=d.substring(0,o)+e+d.substring(a),c=r,u=o+e.length}else if(r===this.content&&i===this.content){var f=document.createTextNode(e);this.content.insertBefore(f,l[o]),c=f,u=f.textContent.length}else{var p=l.indexOf(r),h=l.indexOf(i);l.forEach(function(g,v){v===p?g.textContent=r.textContent.substring(0,o)+e+i.textContent.substring(a):v>p&&v<=h&&Fm(g)}),c=r,u=o+e.length}c&&u!==void 0&&setTimeout(function(){self.setSelection(c,u)})};Og.prototype.autoResize=function(){var e=this.parent,n=this.content,r=parseInt(this.style.fontSize)||12;if(n.scrollHeight>e.offsetHeight||n.scrollHeight<e.offsetHeight-r){var i=e.getBoundingClientRect(),o=n.scrollHeight;e.style.height=o+"px",this.resizeHandler({width:i.width,height:i.height,dx:0,dy:o-i.height})}};Og.prototype.resizable=function(){var e=this,n=this.parent,r=this.resizeHandle,i=parseInt(this.style.minWidth)||0,o=parseInt(this.style.minHeight)||0,a=parseInt(this.style.maxWidth)||1/0,s=parseInt(this.style.maxHeight)||1/0;if(!r){r=this.resizeHandle=Ko('<div class="djs-direct-editing-resize-handle"></div>');var l,c,u,d,f=function(g){_J(g),yP(g),l=g.clientX,c=g.clientY;var v=n.getBoundingClientRect();u=v.width,d=v.height,Ur.bind(document,"mousemove",p),Ur.bind(document,"mouseup",h)},p=function(g){_J(g),yP(g);var v=ZDe(JDe(u+g.clientX-l,i),a),y=ZDe(JDe(d+g.clientY-c,o),s);n.style.width=v+"px",n.style.height=y+"px",e.resizeHandler({width:u,height:d,dx:g.clientX-l,dy:g.clientY-c})},h=function(g){_J(g),yP(g),Ur.unbind(document,"mousemove",p,!1),Ur.unbind(document,"mouseup",h,!1)};Ur.bind(r,"mousedown",f)}Rt(r.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),n.appendChild(r)};Og.prototype.destroy=function(){var e=this.parent,n=this.content,r=this.resizeHandle;n.innerText="",e.removeAttribute("style"),n.removeAttribute("style"),Ur.unbind(n,"keydown",this.keyHandler),Ur.unbind(n,"mousedown",yP),Ur.unbind(n,"input",this.autoResize),Ur.unbind(n,"paste",this.handlePaste),r&&(r.removeAttribute("style"),Fm(r)),Fm(e)};Og.prototype.getValue=function(){return this.content.innerText.trim()};Og.prototype.getSelection=function(){var e=window.getSelection(),n=e.getRangeAt(0);return n};Og.prototype.setSelection=function(e,n){var r=document.createRange();e===null?r.selectNodeContents(this.content):(r.setStart(e,n),r.setEnd(e,n));var i=window.getSelection();i.removeAllRanges(),i.addRange(r)};function kWn(e){return e.replace(/\r\n|\r|\n/g,`
|
||
`)}function Kp(e,n){this._eventBus=e,this._canvas=n,this._providers=[],this._textbox=new Og({container:n.getContainer(),keyHandler:Su(this._handleKey,this),resizeHandler:Su(this._handleResize,this)})}Kp.$inject=["eventBus","canvas"];Kp.prototype.registerProvider=function(e){this._providers.push(e)};Kp.prototype.isActive=function(e){return!!(this._active&&(!e||this._active.element===e))};Kp.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())};Kp.prototype._fire=function(e,n){this._eventBus.fire("directEditing."+e,n||{active:this._active})};Kp.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0,this._canvas.restoreFocus&&this._canvas.restoreFocus()};Kp.prototype.complete=function(){var e=this._active;if(e){var n,r=e.context.bounds,i=this.$textbox.getBoundingClientRect(),o=this.getValue(),a=e.context.text;(o!==a||i.height!==r.height||i.width!==r.width)&&(n=this._textbox.container.getBoundingClientRect(),e.provider.update(e.element,o,e.context.text,{x:i.left-n.left,y:i.top-n.top,width:i.width,height:i.height})),this._fire("complete"),this.close()}};Kp.prototype.getValue=function(){return this._textbox.getValue()};Kp.prototype._handleKey=function(e){e.stopPropagation();var n=e.keyCode||e.charCode;if(n===27)return e.preventDefault(),this.cancel();if(n===13&&!e.shiftKey)return e.preventDefault(),this.complete()};Kp.prototype._handleResize=function(e){this._fire("resize",e)};Kp.prototype.activate=function(e){this.isActive()&&this.cancel();var n,r=ki(this._providers,function(i){return(n=i.activate(e))?i:null});return n&&(this.$textbox=this._textbox.create(n.bounds,n.style,n.text,n.options),this._active={element:e,context:n,provider:r},n.options&&n.options.resizable&&(this.resizable=!0),this._fire("activate")),!!n};const Ont={__depends__:[Lz],__init__:["directEditing"],directEditing:["type",Kp]};function LWn(e){return function(n){var r=n.target,i=In(e),o=i.eventDefinitions&&i.eventDefinitions[0],a=i.$type===r.type,s=(o&&o.$type)===r.eventDefinitionType,l=!!r.triggeredByEvent==!!i.triggeredByEvent,c=r.isExpanded===void 0||r.isExpanded===pi(e);return!a||!s||!l||!c}}var $Wn=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message start event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer start event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional start event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal start event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],FWn=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}}],BWn=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message intermediate catch event",actionName:"replace-with-message-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Message intermediate throw event",actionName:"replace-with-message-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer intermediate catch event",actionName:"replace-with-timer-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation intermediate throw event",actionName:"replace-with-escalation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional intermediate catch event",actionName:"replace-with-conditional-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Link intermediate catch event",actionName:"replace-with-link-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Link intermediate throw event",actionName:"replace-with-link-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Compensation intermediate throw event",actionName:"replace-with-compensation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal intermediate catch event",actionName:"replace-with-signal-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Signal intermediate throw event",actionName:"replace-with-signal-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],jWn=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message end event",actionName:"replace-with-message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation end event",actionName:"replace-with-escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error end event",actionName:"replace-with-error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel end event",actionName:"replace-with-cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation end event",actionName:"replace-with-compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal end event",actionName:"replace-with-signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate end event",actionName:"replace-with-terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}],UWn=[{label:"Exclusive gateway",actionName:"replace-with-exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel gateway",actionName:"replace-with-parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive gateway",actionName:"replace-with-inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},{label:"Complex gateway",actionName:"replace-with-complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},{label:"Event-based gateway",actionName:"replace-with-event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}],HWn=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event sub-process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Ad-hoc sub-process",actionName:"replace-with-ad-hoc-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:AdHocSubProcess",isExpanded:!0}},{label:"Sub-process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}}],zWn=[{label:"Sub-process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event sub-process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Ad-hoc sub-process (collapsed)",actionName:"replace-with-collapsed-ad-hoc-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:AdHocSubProcess",isExpanded:!1}}],Rnt=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Sub-process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Ad-hoc sub-process",actionName:"replace-with-ad-hoc-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:AdHocSubProcess",isExpanded:!0}},{label:"Event sub-process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}}],VWn=Rnt,eke=[{label:"Task",actionName:"replace-with-task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"User task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Service task",actionName:"replace-with-service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Send task",actionName:"replace-with-send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},{label:"Receive task",actionName:"replace-with-receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},{label:"Manual task",actionName:"replace-with-manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},{label:"Business rule task",actionName:"replace-with-rule-task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Script task",actionName:"replace-with-script-task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},{label:"Call activity",actionName:"replace-with-call-activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}},{label:"Sub-process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},{label:"Sub-process (expanded)",actionName:"replace-with-expanded-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Ad-hoc sub-process (collapsed)",actionName:"replace-with-collapsed-ad-hoc-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:AdHocSubProcess",isExpanded:!1}},{label:"Ad-hoc sub-process (expanded)",actionName:"replace-with-ad-hoc-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:AdHocSubProcess",isExpanded:!0}}],GWn=[{label:"Data store reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],WWn=[{label:"Data object reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],YWn=[{label:"Message boundary event",actionName:"replace-with-message-boundary",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!0}},{label:"Timer boundary event",actionName:"replace-with-timer-boundary",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!0}},{label:"Escalation boundary event",actionName:"replace-with-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!0}},{label:"Conditional boundary event",actionName:"replace-with-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!0}},{label:"Error boundary event",actionName:"replace-with-error-boundary",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition",cancelActivity:!0}},{label:"Cancel boundary event",actionName:"replace-with-cancel-boundary",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition",cancelActivity:!0}},{label:"Signal boundary event",actionName:"replace-with-signal-boundary",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!0}},{label:"Compensation boundary event",actionName:"replace-with-compensation-boundary",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition",cancelActivity:!0}},{label:"Message boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-message-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},{label:"Timer boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},{label:"Escalation boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},{label:"Conditional boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},{label:"Signal boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}}],qWn=[{label:"Message start event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!0}},{label:"Timer start event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!0}},{label:"Conditional start event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!0}},{label:"Signal start event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!0}},{label:"Error start event",actionName:"replace-with-error-start",className:"bpmn-icon-start-event-error",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ErrorEventDefinition",isInterrupting:!0}},{label:"Escalation start event",actionName:"replace-with-escalation-start",className:"bpmn-icon-start-event-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!0}},{label:"Compensation start event",actionName:"replace-with-compensation-start",className:"bpmn-icon-start-event-compensation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:CompensateEventDefinition",isInterrupting:!0}},{label:"Message start event (non-interrupting)",actionName:"replace-with-non-interrupting-message-start",className:"bpmn-icon-start-event-non-interrupting-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!1}},{label:"Timer start event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-start",className:"bpmn-icon-start-event-non-interrupting-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!1}},{label:"Conditional start event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-start",className:"bpmn-icon-start-event-non-interrupting-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!1}},{label:"Signal start event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-start",className:"bpmn-icon-start-event-non-interrupting-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!1}},{label:"Escalation start event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-start",className:"bpmn-icon-start-event-non-interrupting-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!1}}],KWn=[{label:"Sequence flow",actionName:"replace-with-sequence-flow",className:"bpmn-icon-connection"},{label:"Default flow",actionName:"replace-with-default-flow",className:"bpmn-icon-default-flow"},{label:"Conditional flow",actionName:"replace-with-conditional-flow",className:"bpmn-icon-conditional-flow"}],XWn=[{label:"Expanded pool/participant",actionName:"replace-with-expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},{label:function(e){var n="Empty pool/participant";return e.children&&e.children.length&&(n+=" (removes content)"),n},actionName:"replace-with-collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}}];const tke={"start-event-non-interrupting":`
|
||
<svg viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg">
|
||
<g transform="translate(0 995.64)">
|
||
<path d="m1899 28.357c21.545 567.43-598.38 1023.5-1133.6 835.92-548.09-147.21-801.57-873.95-463.59-1330 302.62-480.3 1071.7-507.54 1407.6-49.847 122.14 153.12 190.07 348.07 189.59 543.91z" fill="none" stroke="currentColor" stroke-dasharray="418.310422, 361.2328165" stroke-linecap="round" stroke-width="100"/>
|
||
</g>
|
||
</svg>`,"intermediate-event-non-interrupting":`
|
||
<svg viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg">
|
||
<g transform="translate(0 995.64)" fill="none" stroke="currentColor" stroke-linecap="round">
|
||
<circle cx="1024" cy="28.357" r="875" stroke-dasharray="418.310422, 361.2328165" stroke-width="100"/>
|
||
<circle cx="1024" cy="28.357" r="685" stroke-dasharray="348.31044857,261.23283643" stroke-dashoffset="500" stroke-width="100"/>
|
||
</g>
|
||
</svg>`};function Xp(e,n,r,i,o,a,s,l){this._bpmnFactory=e,this._popupMenu=n,this._modeling=r,this._moddle=i,this._bpmnReplace=o,this._rules=a,this._translate=s,this._moddleCopy=l,this._register()}Xp.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate","moddleCopy"];Xp.prototype._register=function(){this._popupMenu.registerProvider("bpmn-replace",this)};Xp.prototype.getPopupMenuEntries=function(e){var n=e.businessObject,r=this._rules,i=[];if(zr(e)||!r.allowed("shape.replace",{element:e}))return{};var o=LWn(e);return Fe(n,"bpmn:DataObjectReference")?this._createEntries(e,GWn):Fe(n,"bpmn:DataStoreReference")&&!Fe(e.parent,"bpmn:Collaboration")?this._createEntries(e,WWn):Fe(n,"bpmn:StartEvent")&&!Fe(n.$parent,"bpmn:SubProcess")?(i=si($Wn,o),this._createEntries(e,i)):Fe(n,"bpmn:Participant")?(i=si(XWn,function(a){return pi(e)!==a.target.isExpanded}),this._createEntries(e,i)):Fe(n,"bpmn:StartEvent")&&zc(n.$parent)?(i=si(qWn,function(a){var s=a.target,l=s.isInterrupting!==!1,c=n.isInterrupting===l;return o(a)||!o(a)&&!c}),this._createEntries(e,i)):Fe(n,"bpmn:StartEvent")&&!zc(n.$parent)&&Fe(n.$parent,"bpmn:SubProcess")?(i=si(FWn,o),this._createEntries(e,i)):Fe(n,"bpmn:EndEvent")?(i=si(jWn,function(a){var s=a.target;return s.eventDefinitionType=="bpmn:CancelEventDefinition"&&!Fe(n.$parent,"bpmn:Transaction")?!1:o(a)}),this._createEntries(e,i)):Fe(n,"bpmn:BoundaryEvent")?(i=si(YWn,function(a){var s=a.target;if(s.eventDefinitionType=="bpmn:CancelEventDefinition"&&!Fe(n.attachedToRef,"bpmn:Transaction"))return!1;var l=s.cancelActivity!==!1,c=n.cancelActivity==l;return o(a)||!o(a)&&!c}),this._createEntries(e,i)):Fe(n,"bpmn:IntermediateCatchEvent")||Fe(n,"bpmn:IntermediateThrowEvent")?(i=si(BWn,o),this._createEntries(e,i)):Fe(n,"bpmn:Gateway")?(i=si(UWn,o),this._createEntries(e,i)):Fe(n,"bpmn:Transaction")?(i=si(Rnt,o),this._createEntries(e,i)):zc(n)&&pi(e)?(i=si(VWn,o),this._createEntries(e,i)):Fe(n,"bpmn:AdHocSubProcess")&&pi(e)?(i=si(zWn,o),this._createEntries(e,i)):Fe(n,"bpmn:SubProcess")&&pi(e)?(i=si(HWn,o),this._createEntries(e,i)):Fe(n,"bpmn:SubProcess")&&!pi(e)?(i=si(eke,function(a){var s=a.target.type===e.type,l=a.target.isExpanded===!0;return s===l}),this._createEntries(e,i)):Fe(n,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(e,KWn):Fe(n,"bpmn:FlowNode")?(i=si(eke,o),this._createEntries(e,i)):{}};Xp.prototype.getPopupMenuHeaderEntries=function(e){var n={};return Fe(e,"bpmn:Activity")&&!zc(e)&&(n={...n,...this._getLoopCharacteristicsHeaderEntries(e)}),Fe(e,"bpmn:DataObjectReference")&&(n={...n,...this._getCollectionHeaderEntries(e)}),Fe(e,"bpmn:Participant")&&(n={...n,...this._getParticipantMultiplicityHeaderEntries(e)}),Itt(e)&&(n={...n,...this._getNonInterruptingHeaderEntries(e)}),n};Xp.prototype._createEntries=function(e,n){var r={},i=this;return ht(n,function(o){r[o.actionName]=i._createEntry(o,e)}),r};Xp.prototype._createSequenceFlowEntries=function(e,n){var r=In(e),i={},o=this._modeling,a=this._moddle,s=this;return ht(n,function(l){switch(l.actionName){case"replace-with-default-flow":r.sourceRef.default!==r&&(Fe(r.sourceRef,"bpmn:ExclusiveGateway")||Fe(r.sourceRef,"bpmn:InclusiveGateway")||Fe(r.sourceRef,"bpmn:ComplexGateway")||Fe(r.sourceRef,"bpmn:Activity"))&&(i={...i,[l.actionName]:s._createEntry(l,e,function(){o.updateProperties(e.source,{default:r})})});break;case"replace-with-conditional-flow":!r.conditionExpression&&Fe(r.sourceRef,"bpmn:Activity")&&(i={...i,[l.actionName]:s._createEntry(l,e,function(){var c=a.create("bpmn:FormalExpression",{body:""});o.updateProperties(e,{conditionExpression:c})})});break;default:Fe(r.sourceRef,"bpmn:Activity")&&r.conditionExpression&&(i={...i,[l.actionName]:s._createEntry(l,e,function(){o.updateProperties(e,{conditionExpression:void 0})})}),(Fe(r.sourceRef,"bpmn:ExclusiveGateway")||Fe(r.sourceRef,"bpmn:InclusiveGateway")||Fe(r.sourceRef,"bpmn:ComplexGateway")||Fe(r.sourceRef,"bpmn:Activity"))&&r.sourceRef.default===r&&(i={...i,[l.actionName]:s._createEntry(l,e,function(){o.updateProperties(e.source,{default:void 0})})})}}),i};Xp.prototype._createEntry=function(e,n,r){var i=this._translate,o=this._bpmnReplace.replaceElement,a=function(){return o(n,e.target)},s=e.label;return s&&typeof s=="function"&&(s=s(n)),r=r||a,{label:i(s),className:e.className,action:r}};Xp.prototype._getLoopCharacteristicsHeaderEntries=function(e){var n=this,r=this._translate;function i(u,d){if(d.active){n._modeling.updateProperties(e,{loopCharacteristics:void 0});return}var f=e.businessObject.get("loopCharacteristics");f&&Fe(f,d.options.loopCharacteristics)?n._modeling.updateModdleProperties(e,f,{isSequential:d.options.isSequential}):(f=n._moddle.create(d.options.loopCharacteristics,{isSequential:d.options.isSequential}),n._modeling.updateProperties(e,{loopCharacteristics:f}))}var o=In(e),a=o.loopCharacteristics,s,l,c;return a&&(s=a.isSequential,l=a.isSequential===void 0,c=a.isSequential!==void 0&&!a.isSequential),{"toggle-parallel-mi":{className:"bpmn-icon-parallel-mi-marker",title:r("Parallel multi-instance"),active:c,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},"toggle-sequential-mi":{className:"bpmn-icon-sequential-mi-marker",title:r("Sequential multi-instance"),active:s,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}},"toggle-loop":{className:"bpmn-icon-loop-marker",title:r("Loop"),active:l,action:i,options:{loopCharacteristics:"bpmn:StandardLoopCharacteristics"}}}};Xp.prototype._getCollectionHeaderEntries=function(e){var n=this,r=this._translate,i=e.businessObject.dataObjectRef;if(!i)return{};function o(s,l){n._modeling.updateModdleProperties(e,i,{isCollection:!l.active})}var a=i.isCollection;return{"toggle-is-collection":{className:"bpmn-icon-parallel-mi-marker",title:r("Collection"),active:a,action:o}}};Xp.prototype._getParticipantMultiplicityHeaderEntries=function(e){var n=this,r=this._bpmnFactory,i=this._translate;function o(s,l){var c=l.active,u;c||(u=r.create("bpmn:ParticipantMultiplicity")),n._modeling.updateProperties(e,{participantMultiplicity:u})}var a=e.businessObject.participantMultiplicity;return{"toggle-participant-multiplicity":{className:"bpmn-icon-parallel-mi-marker",title:i("Participant multiplicity"),active:!!a,action:o}}};Xp.prototype._getNonInterruptingHeaderEntries=function(e){const n=this._translate,r=In(e),i=this,o=Ntt(e),a=Fe(e,"bpmn:BoundaryEvent")?tke["intermediate-event-non-interrupting"]:tke["start-event-non-interrupting"],s=!r[o];return{"toggle-non-interrupting":{imageHtml:a,title:n("Toggle non-interrupting"),active:s,action:function(){i._modeling.updateProperties(e,{[o]:!!s})}}}};const QWn={__depends__:[Vhe,ant,Yhe],__init__:["replaceMenuProvider"],replaceMenuProvider:["type",Xp]};function GL(e,n,r,i,o,a,s,l,c,u,d,f,p){e=e||{},i.registerProvider(this),this._contextPad=i,this._modeling=o,this._elementFactory=a,this._connect=s,this._create=l,this._popupMenu=c,this._canvas=u,this._rules=d,this._translate=f,this._eventBus=r,this._appendPreview=p,e.autoPlace!==!1&&(this._autoPlace=n.get("autoPlace",!1)),r.on("create.end",250,function(h){var g=h.context,v=g.shape;if(!(!iD(h)||!i.isOpen(v))){var y=i.getEntries(v);y.replace&&y.replace.action.click(h,v)}}),r.on("contextPad.close",function(){p.cleanUp()})}GL.$inject=["config.contextPad","injector","eventBus","contextPad","modeling","elementFactory","connect","create","popupMenu","canvas","rules","translate","appendPreview"];GL.prototype.getMultiElementContextPadEntries=function(e){var n=this._modeling,r={};return this._isDeleteAllowed(e)&&Rt(r,{delete:{group:"edit",className:"bpmn-icon-trash",title:this._translate("Delete"),action:{click:function(i,o){n.removeElements(o.slice())}}}}),r};GL.prototype._isDeleteAllowed=function(e){var n=this._rules.allowed("elements.delete",{elements:e});return zr(n)?bw(e,r=>n.includes(r)):n};GL.prototype.getContextPadEntries=function(e){var n=this._contextPad,r=this._modeling,i=this._elementFactory,o=this._connect,a=this._create,s=this._popupMenu,l=this._autoPlace,c=this._translate,u=this._appendPreview,d={};if(e.type==="label")return this._isDeleteAllowed([e])&&Rt(d,g()),d;var f=e.businessObject;function p(b,E){o.start(b,E)}function h(b,E){r.removeElements([E])}function g(){return{delete:{group:"edit",className:"bpmn-icon-trash",title:c("Delete"),action:{click:h}}}}function v(b){var E=5,w=n.getPad(b).html,C=w.getBoundingClientRect(),x={x:C.left,y:C.bottom+E};return x}function y(b,E,w,C){function x(O,M){var P=i.createShape(Rt({type:b},C));a.start(O,P,{source:M})}var T=l?function(O,M){var P=i.createShape(Rt({type:b},C));l.append(M,P)}:x,R=l?function(O,M){return u.create(M,b,C),()=>{u.cleanUp()}}:null;return{group:"model",className:E,title:w,action:{dragstart:x,click:T,hover:R}}}function _(b){return function(E,w){r.splitLane(w,b),n.open(w,!0)}}if(ii(f,["bpmn:Lane","bpmn:Participant"])&&pi(e)){var S=bS(e);Rt(d,{"lane-insert-above":{group:"lane-insert-above",className:"bpmn-icon-lane-insert-above",title:c("Add lane above"),action:{click:function(b,E){r.addLane(E,"top")}}}}),S.length<2&&((cl(e)?e.height>=120:e.width>=120)&&Rt(d,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:c("Divide into two lanes"),action:{click:_(2)}}}),(cl(e)?e.height>=180:e.width>=180)&&Rt(d,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:c("Divide into three lanes"),action:{click:_(3)}}})),Rt(d,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:c("Add lane below"),action:{click:function(b,E){r.addLane(E,"bottom")}}}})}return Fe(f,"bpmn:FlowNode")&&(Fe(f,"bpmn:EventBasedGateway")?Rt(d,{"append.receive-task":y("bpmn:ReceiveTask","bpmn-icon-receive-task",c("Append receive task")),"append.message-intermediate-event":y("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",c("Append message intermediate catch event"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":y("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",c("Append timer intermediate catch event"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":y("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",c("Append conditional intermediate catch event"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":y("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",c("Append signal intermediate catch event"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):nke(f,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?Rt(d,{"append.compensation-activity":y("bpmn:Task","bpmn-icon-task",c("Append compensation activity"),{isForCompensation:!0})}):!Fe(f,"bpmn:EndEvent")&&!f.isForCompensation&&!nke(f,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")&&!zc(f)&&Rt(d,{"append.end-event":y("bpmn:EndEvent","bpmn-icon-end-event-none",c("Append end event")),"append.gateway":y("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",c("Append gateway")),"append.append-task":y("bpmn:Task","bpmn-icon-task",c("Append task")),"append.intermediate-event":y("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",c("Append intermediate/boundary event"))})),s.isEmpty(e,"bpmn-replace")||Rt(d,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:c("Change element"),action:{click:function(b,E){var w=Rt(v(E),{cursor:{x:b.x,y:b.y}});s.open(E,"bpmn-replace",w,{title:c("Change element"),width:300,search:!0})}}}}),Fe(f,"bpmn:SequenceFlow")&&Rt(d,{"append.text-annotation":y("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation"))}),ii(f,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Rt(d,{"append.text-annotation":y("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation")),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect to other element"),action:{click:p,dragstart:p}}}),Fe(f,"bpmn:TextAnnotation")&&Rt(d,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using association"),action:{click:p,dragstart:p}}}),ii(f,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Rt(d,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using data input association"),action:{click:p,dragstart:p}}}),Fe(f,"bpmn:Group")&&Rt(d,{"append.text-annotation":y("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation"))}),this._isDeleteAllowed([e])&&Rt(d,g()),d};function nke(e,n,r){var i=e.$instanceOf(n),o=!1,a=e.eventDefinitions||[];return ht(a,function(s){s.$type===r&&(o=!0)}),i&&o}const ZWn={__depends__:[PWn,Ont,Tet,xg,Zhe,eV,QWn],__init__:["contextPadProvider"],contextPadProvider:["type",GL]};var JWn={horizontal:["x","width"],vertical:["y","height"]},rke=5;function S_(e,n){this._modeling=e,this._filters=[],this.registerFilter(function(r){var i=n.allowed("elements.distribute",{elements:r});return zr(i)?i:i?r:[]})}S_.$inject=["modeling","rules"];S_.prototype.registerFilter=function(e){if(typeof e!="function")throw new Error("the filter has to be a function");this._filters.push(e)};S_.prototype.trigger=function(e,n){var r=this._modeling,i,o;if(!(e.length<3)&&(this._setOrientation(n),o=this._filterElements(e),i=this._createGroups(o),!(i.length<=2)))return r.distributeElements(i,this._axis,this._dimension),i};S_.prototype._filterElements=function(e){var n=this._filters,r=this._axis,i=this._dimension,o=[].concat(e);return n.length?(ht(n,function(a){o=a(o,r,i)}),o):e};S_.prototype._createGroups=function(e){var n=[],r=this,i=this._axis,o=this._dimension;if(!i)throw new Error('must have a defined "axis" and "dimension"');var a=$m(e,i);return ht(a,function(s,l){var c=r._findRange(s,i,o),u,d=n[n.length-1];d&&r._hasIntersection(d.range,c)?n[n.length-1].elements.push(s):(u={range:c,elements:[s]},n.push(u))}),n};S_.prototype._setOrientation=function(e){var n=JWn[e];this._axis=n[0],this._dimension=n[1]};S_.prototype._hasIntersection=function(e,n){return Math.max(e.min,e.max)>=Math.min(n.min,n.max)&&Math.min(e.min,e.max)<=Math.max(n.min,n.max)};S_.prototype._findRange=function(e){var n=e[this._axis],r=e[this._dimension];return{min:n+rke,max:n+r-rke}};const eYn={__init__:["distributeElements"],distributeElements:["type",S_]};function gV(e){Wp.call(this,e)}gV.$inject=["eventBus"];Zn(gV,Wp);gV.prototype.init=function(){this.addRule("elements.distribute",function(e){var n=e.elements;return n=si(n,function(r){var i=ii(r,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(r.labelTarget||i)}),n=Tz(n),n.length<3?!1:n})};var ike={horizontal:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<polyline points="450 400 450 150 1350 150 1350 400" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>
|
||
<rect x="150" y="450" width="600" height="1200" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="1050" y="450" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,vertical:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<polyline points="400 1350 150 1350 150 450 400 450" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>
|
||
<rect x="450" y="150" width="1200" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="450" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`},tYn=900;function WL(e,n,r,i){this._distributeElements=n,this._translate=r,this._popupMenu=e,this._rules=i,e.registerProvider("align-elements",tYn,this)}WL.$inject=["popupMenu","distributeElements","translate","rules"];WL.prototype.getPopupMenuEntries=function(e){var n={};return this._isAllowed(e)&&Rt(n,this._getEntries(e)),n};WL.prototype._isAllowed=function(e){return this._rules.allowed("elements.distribute",{elements:e})};WL.prototype._getEntries=function(e){var n=this._distributeElements,r=this._translate,i=this._popupMenu,o={"distribute-elements-horizontal":{group:"distribute",title:r("Distribute elements horizontally"),className:"bjs-align-elements-menu-entry",imageHtml:ike.horizontal,action:function(a,s){n.trigger(e,"horizontal"),i.close()}},"distribute-elements-vertical":{group:"distribute",title:r("Distribute elements vertically"),imageHtml:ike.vertical,action:function(a,s){n.trigger(e,"vertical"),i.close()}}};return o};const nYn={__depends__:[Vhe,eYn],__init__:["bpmnDistributeElements","distributeElementsMenuProvider"],bpmnDistributeElements:["type",gV],distributeElementsMenuProvider:["type",WL]};var Int="is not a registered action",rYn="is already registered";function Qp(e,n){this._actions={};var r=this;e.on("diagram.init",function(){r._registerDefaultActions(n),e.fire("editorActions.init",{editorActions:r})})}Qp.$inject=["eventBus","injector"];Qp.prototype._registerDefaultActions=function(e){var n=e.get("commandStack",!1),r=e.get("modeling",!1),i=e.get("selection",!1),o=e.get("zoomScroll",!1),a=e.get("copyPaste",!1),s=e.get("canvas",!1),l=e.get("rules",!1),c=e.get("keyboardMove",!1),u=e.get("keyboardMoveSelection",!1);n&&(this.register("undo",function(){n.undo()}),this.register("redo",function(){n.redo()})),a&&i&&this.register("copy",function(){var d=i.get();if(d.length)return a.copy(d)}),a&&this.register("paste",function(){a.paste()}),o&&this.register("stepZoom",function(d){o.stepZoom(d.value)}),s&&this.register("zoom",function(d){s.zoom(d.value)}),r&&i&&l&&this.register("removeSelection",function(){var d=i.get();if(d.length){var f=l.allowed("elements.delete",{elements:d}),p;f!==!1&&(zr(f)?p=f:p=d,p.length&&r.removeElements(p.slice()))}}),c&&this.register("moveCanvas",function(d){c.moveCanvas(d)}),u&&this.register("moveSelection",function(d){u.moveSelection(d.direction,d.accelerated)})};Qp.prototype.trigger=function(e,n){if(!this._actions[e])throw nme(e,Int);return this._actions[e](n)};Qp.prototype.register=function(e,n){var r=this;if(typeof e=="string")return this._registerAction(e,n);ht(e,function(i,o){r._registerAction(o,i)})};Qp.prototype._registerAction=function(e,n){if(this.isRegistered(e))throw nme(e,rYn);this._actions[e]=n};Qp.prototype.unregister=function(e){if(!this.isRegistered(e))throw nme(e,Int);this._actions[e]=void 0};Qp.prototype.getActions=function(){return Object.keys(this._actions)};Qp.prototype.isRegistered=function(e){return!!this._actions[e]};function nme(e,n){return new Error(e+" "+n)}const iYn={__init__:["editorActions"],editorActions:["type",Qp]};function mV(e){e.invoke(Qp,this)}Zn(mV,Qp);mV.$inject=["injector"];mV.prototype._registerDefaultActions=function(e){Qp.prototype._registerDefaultActions.call(this,e);var n=e.get("canvas",!1),r=e.get("elementRegistry",!1),i=e.get("selection",!1),o=e.get("spaceTool",!1),a=e.get("lassoTool",!1),s=e.get("handTool",!1),l=e.get("globalConnect",!1),c=e.get("distributeElements",!1),u=e.get("alignElements",!1),d=e.get("directEditing",!1),f=e.get("searchPad",!1),p=e.get("modeling",!1),h=e.get("contextPad",!1);n&&r&&i&&this._registerAction("selectElements",function(){var g=n.getRootElement(),v=r.filter(function(y){return y!==g});return i.select(v),v}),o&&this._registerAction("spaceTool",function(){o.toggle()}),a&&this._registerAction("lassoTool",function(){a.toggle()}),s&&this._registerAction("handTool",function(){s.toggle()}),l&&this._registerAction("globalConnectTool",function(){l.toggle()}),i&&c&&this._registerAction("distributeElements",function(g){var v=i.get(),y=g.type;v.length&&c.trigger(v,y)}),i&&u&&this._registerAction("alignElements",function(g){var v=i.get(),y=[],_=g.type;v.length&&(y=si(v,function(S){return!Fe(S,"bpmn:Lane")}),u.trigger(y,_))}),i&&p&&this._registerAction("setColor",function(g){var v=i.get();v.length&&p.setColor(v,g)}),i&&d&&this._registerAction("directEditing",function(){var g=i.get();g.length&&d.activate(g[0])}),f&&this._registerAction("find",function(){f.toggle()}),n&&p&&this._registerAction("moveToOrigin",function(){var g=n.getRootElement(),v,y;Fe(g,"bpmn:Collaboration")?y=r.filter(function(_){return Fe(_.parent,"bpmn:Collaboration")}):y=r.filter(function(_){return _!==g&&!Fe(_.parent,"bpmn:SubProcess")}),v=sl(y),p.moveElements(y,{x:-v.x,y:-v.y},g)}),i&&h&&this._registerAction("replaceElement",function(g){h.triggerEntry("replace","click",g)})};const oYn={__depends__:[iYn],editorActions:["type",mV]};function Nnt(e){e.on(["create.init","shape.move.init"],function(n){var r=n.context,i=n.shape;ii(i,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(r.gridSnappingContext||(r.gridSnappingContext={}),r.gridSnappingContext.snapLocation="top-left")})}Nnt.$inject=["eventBus"];var Q6=10;function bJ(e,n,r){return r||(r="round"),Math[r](e/n)*n}var aYn=1200,sYn=800;function TS(e,n,r){var i=!r||r.active!==!1;this._eventBus=n;var o=this;n.on("diagram.init",sYn,function(){o.setActive(i)}),n.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],aYn,function(a){var s=a.originalEvent;if(!(!o.active||s&&Sp(s))){var l=a.context,c=l.gridSnappingContext;c||(c=l.gridSnappingContext={}),["x","y"].forEach(function(u){var d={},f=cYn(a,u,e);f&&(d.offset=f);var p=lYn(a,u);p&&Rt(d,p),pR(a,u)||o.snapEvent(a,u,d)})}})}TS.prototype.snapEvent=function(e,n,r){var i=this.snapValue(e[n],r);_s(e,n,i)};TS.prototype.getGridSpacing=function(){return Q6};TS.prototype.snapValue=function(e,n){var r=0;n&&n.offset&&(r=n.offset),e+=r,e=bJ(e,Q6);var i,o;return n&&n.min&&(i=n.min,Nr(i)&&(i=bJ(i+r,Q6,"ceil"),e=Math.max(e,i))),n&&n.max&&(o=n.max,Nr(o)&&(o=bJ(o+r,Q6,"floor"),e=Math.min(e,o))),e-=r,e};TS.prototype.isActive=function(){return this.active};TS.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})};TS.prototype.toggleActive=function(){this.setActive(!this.active)};TS.$inject=["elementRegistry","eventBus","config.gridSnapping"];function lYn(e,n){var r=e.context,i=r.createConstraints,o=r.resizeConstraints||{},a=r.gridSnappingContext,s=a.snapConstraints;if(s&&s[n])return s[n];s||(s=a.snapConstraints={}),s[n]||(s[n]={});var l=r.direction;i&&(Z6(n)?(s.x.min=i.left,s.x.max=i.right):(s.y.min=i.top,s.y.max=i.bottom));var c=o.min,u=o.max;return c&&(Z6(n)?ake(l)?s.x.max=c.left:s.x.min=c.right:oke(l)?s.y.max=c.top:s.y.min=c.bottom),u&&(Z6(n)?ake(l)?s.x.min=u.left:s.x.max=u.right:oke(l)?s.y.min=u.top:s.y.max=u.bottom),s[n]}function cYn(e,n,r){var i=e.context,o=e.shape,a=i.gridSnappingContext,s=a.snapLocation,l=a.snapOffset;return l&&Nr(l[n])||(l||(l=a.snapOffset={}),Nr(l[n])||(l[n]=0),!o)||(r.get(o.id)||(Z6(n)?l[n]+=o[n]+o.width/2:l[n]+=o[n]+o.height/2),!s)||(n==="x"?/left/.test(s)?l[n]-=o.width/2:/right/.test(s)&&(l[n]+=o.width/2):/top/.test(s)?l[n]-=o.height/2:/bottom/.test(s)&&(l[n]+=o.height/2)),l[n]}function Z6(e){return e==="x"}function oke(e){return e.indexOf("n")!==-1}function ake(e){return e.indexOf("w")!==-1}function Rw(e,n){vn.call(this,e),this._gridSnapping=n;var r=this;this.preExecute("shape.resize",function(i){var o=i.context,a=o.hints||{},s=a.autoResize;if(s){var l=o.shape,c=o.newBounds;md(s)?o.newBounds=r.snapComplex(c,s):o.newBounds=r.snapSimple(l,c)}})}Rw.$inject=["eventBus","gridSnapping","modeling"];Zn(Rw,vn);Rw.prototype.snapSimple=function(e,n){var r=this._gridSnapping;return n.width=r.snapValue(n.width,{min:n.width}),n.height=r.snapValue(n.height,{min:n.height}),n.x=e.x+e.width/2-n.width/2,n.y=e.y+e.height/2-n.height/2,n};Rw.prototype.snapComplex=function(e,n){return/w|e/.test(n)&&(e=this.snapHorizontally(e,n)),/n|s/.test(n)&&(e=this.snapVertically(e,n)),e};Rw.prototype.snapHorizontally=function(e,n){var r=this._gridSnapping,i=/w/.test(n),o=/e/.test(n),a={};return a.width=r.snapValue(e.width,{min:e.width}),o&&(i?(a.x=r.snapValue(e.x,{max:e.x}),a.width+=r.snapValue(e.x-a.x,{min:e.x-a.x})):e.x=e.x+e.width-a.width),Rt(e,a),e};Rw.prototype.snapVertically=function(e,n){var r=this._gridSnapping,i=/n/.test(n),o=/s/.test(n),a={};return a.height=r.snapValue(e.height,{min:e.height}),i&&(o?(a.y=r.snapValue(e.y,{max:e.y}),a.height+=r.snapValue(e.y-a.y,{min:e.y-a.y})):e.y=e.y+e.height-a.height),Rt(e,a),e};var uYn=2e3;function Mnt(e,n){e.on(["spaceTool.move","spaceTool.end"],uYn,function(r){var i=r.context;if(i.initialized){var o=i.axis,a;o==="x"?(a=n.snapValue(r.dx),r.x=r.x+a-r.dx,r.dx=a):(a=n.snapValue(r.dy),r.y=r.y+a-r.dy,r.dy=a)}})}Mnt.$inject=["eventBus","gridSnapping"];const dYn={__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",Rw],gridSnappingSpaceToolBehavior:["type",Mnt]},fYn={__depends__:[dYn],__init__:["gridSnapping"],gridSnapping:["type",TS]};var pYn=2e3;function Pnt(e,n,r){e.on("autoPlace",pYn,function(i){var o=i.source,a=Mr(o),s=i.shape,l=Xet(o,s,r);return["x","y"].forEach(function(c){var u={};l[c]!==a[c]&&(l[c]>a[c]?u.min=l[c]:u.max=l[c],Fe(s,"bpmn:TextAnnotation")&&(hYn(c)?u.offset=-s.width/2:u.offset=-s.height/2),l[c]=n.snapValue(l[c],u))}),l})}Pnt.$inject=["eventBus","gridSnapping","elementRegistry"];function hYn(e){return e==="x"}var gYn=1750;function Ant(e,n,r){n.on(["create.start","shape.move.start"],gYn,function(i){var o=i.context,a=o.shape,s=e.getRootElement();if(!(!Fe(a,"bpmn:Participant")||!Fe(s,"bpmn:Process")||!s.children.length)){var l=o.createConstraints;l&&(a.width=r.snapValue(a.width,{min:a.width}),a.height=r.snapValue(a.height,{min:a.height}))}})}Ant.$inject=["canvas","eventBus","gridSnapping"];var mYn=3e3;function vV(e,n,r){vn.call(this,e),this._gridSnapping=n;var i=this;this.postExecuted(["connection.create","connection.layout"],mYn,function(o){var a=o.context,s=a.connection,l=a.hints||{},c=s.waypoints;l.connectionStart||l.connectionEnd||l.createElementsBehavior===!1||vYn(c)&&r.updateWaypoints(s,i.snapMiddleSegments(c))})}vV.$inject=["eventBus","gridSnapping","modeling"];Zn(vV,vn);vV.prototype.snapMiddleSegments=function(e){var n=this._gridSnapping,r;e=e.slice();for(var i=1;i<e.length-2;i++)r=bYn(n,e[i],e[i+1]),e[i]=r[0],e[i+1]=r[1];return e};function vYn(e){return e.length>3}function yYn(e){return e==="h"}function _Yn(e){return e==="v"}function bYn(e,n,r){var i=ny(n,r),o={};return yYn(i)&&(o.y=e.snapValue(n.y)),_Yn(i)&&(o.x=e.snapValue(n.x)),("x"in o||"y"in o)&&(n=Rt({},n,o),r=Rt({},r,o)),[n,r]}const SYn={__init__:["gridSnappingAutoPlaceBehavior","gridSnappingParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",Pnt],gridSnappingParticipantBehavior:["type",Ant],gridSnappingLayoutConnectionBehavior:["type",vV]},EYn={__depends__:[fYn,SYn],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",Nnt]};var CYn=30,Dnt=30;function YL(e,n){this._interactionEvents=n;var r=this;e.on(["interactionEvents.createHit","interactionEvents.updateHit"],function(i){var o=i.element,a=i.gfx;if(Fe(o,"bpmn:Lane"))return r._createParticipantHit(o,a);if(Fe(o,"bpmn:Participant"))return pi(o)?r._createParticipantHit(o,a):r._createDefaultHit(o,a);if(Fe(o,"bpmn:SubProcess"))return pi(o)?r._createSubProcessHit(o,a):r._createDefaultHit(o,a)})}YL.$inject=["eventBus","interactionEvents"];YL.prototype._createDefaultHit=function(e,n){return this._interactionEvents.removeHits(n),this._interactionEvents.createDefaultHit(e,n),!0};YL.prototype._createParticipantHit=function(e,n){this._interactionEvents.removeHits(n),this._interactionEvents.createBoxHit(n,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(n,"click-stroke",{width:e.width,height:e.height});var r=cl(e)?{width:CYn,height:e.height}:{width:e.width,height:Dnt};return this._interactionEvents.createBoxHit(n,"all",r),!0};YL.prototype._createSubProcessHit=function(e,n){return this._interactionEvents.removeHits(n),this._interactionEvents.createBoxHit(n,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(n,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(n,"all",{width:e.width,height:Dnt}),!0};const wYn={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",YL]};function yV(e){e.invoke(KI,this)}Zn(yV,KI);yV.$inject=["injector"];yV.prototype.registerBindings=function(e,n){KI.prototype.registerBindings.call(this,e,n);function r(i,o){n.isRegistered(i)&&e.addListener(o)}r("selectElements",function(i){var o=i.keyEvent;if(e.isKey(["a","A"],o)&&e.isCmd(o))return n.trigger("selectElements"),!0}),r("find",function(i){var o=i.keyEvent;if(e.isKey(["f","F"],o)&&e.isCmd(o))return n.trigger("find"),!0}),r("spaceTool",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["s","S"],o))return n.trigger("spaceTool"),!0}),r("lassoTool",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["l","L"],o))return n.trigger("lassoTool"),!0}),r("handTool",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["h","H"],o))return n.trigger("handTool"),!0}),r("globalConnectTool",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["c","C"],o))return n.trigger("globalConnectTool"),!0}),r("directEditing",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["e","E"],o))return n.trigger("directEditing"),!0}),r("replaceElement",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["r","R"],o))return n.trigger("replaceElement",o),!0})};const xYn={__depends__:[$he],__init__:["keyboardBindings"],keyboardBindings:["type",yV]};var TYn={moveSpeed:1,moveSpeedAccelerated:10},OYn=1500,ske="left",lke="up",cke="right",uke="down",RYn={ArrowLeft:ske,Left:ske,ArrowUp:lke,Up:lke,ArrowRight:cke,Right:cke,ArrowDown:uke,Down:uke},IYn={left:function(e){return{x:-e,y:0}},up:function(e){return{x:0,y:-e}},right:function(e){return{x:e,y:0}},down:function(e){return{x:0,y:e}}};function knt(e,n,r,i,o){var a=this;this._config=Rt({},TYn,e||{}),n.addListener(OYn,function(s){var l=s.keyEvent,c=RYn[l.key];if(c&&!n.isCmd(l)){var u=n.isShift(l);return a.moveSelection(c,u),!0}}),this.moveSelection=function(s,l){var c=o.get();if(c.length){var u=this._config[l?"moveSpeedAccelerated":"moveSpeed"],d=IYn[s](u),f=i.allowed("elements.move",{shapes:c});f&&r.moveElements(c,d)}}}knt.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];const NYn={__depends__:[$he,xg],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",knt]};var dke=10;function qL(e,n,r,i){this._dragging=i,this._rules=n;var o=this;function a(c,u){var d=c.shape,f=c.direction,p=c.resizeConstraints,h;c.delta=u,h=pzn(d,f,u),c.newBounds=gzn(h,p),c.canExecute=o.canResize(c)}function s(c){var u=c.resizeConstraints,d=c.minBounds;u===void 0&&(d===void 0&&(d=o.computeMinResizeBox(c)),c.resizeConstraints={min:br(d)})}function l(c){var u=c.shape,d=c.canExecute,f=c.newBounds;if(d){if(f=yJe(f),!MYn(u,f))return;r.resizeShape(u,f)}}e.on("resize.start",function(c){s(c.context)}),e.on("resize.move",function(c){var u={x:c.dx,y:c.dy};a(c.context,u)}),e.on("resize.end",function(c){l(c.context)})}qL.prototype.canResize=function(e){var n=this._rules,r=ag(e,["newBounds","shape","delta","direction"]);return n.allowed("shape.resize",r)};qL.prototype.activate=function(e,n,r){var i=this._dragging,o,a;if(typeof r=="string"&&(r={direction:r}),o=Rt({shape:n},r),a=o.direction,!a)throw new Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");i.init(e,Lnt(n,a),"resize",{autoActivate:!0,cursor:PYn(a),data:{shape:n,context:o}})};qL.prototype.computeMinResizeBox=function(e){var n=e.shape,r=e.direction,i,o;return i=e.minDimensions||{width:dke,height:dke},o=btt(n,e.childrenBoxPadding),mzn(r,n,i,o)};qL.$inject=["eventBus","rules","modeling","dragging"];function MYn(e,n){return e.x!==n.x||e.y!==n.y||e.width!==n.width||e.height!==n.height}function Lnt(e,n){var r=Mr(e),i=br(e),o={x:r.x,y:r.y};return n.indexOf("n")!==-1?o.y=i.top:n.indexOf("s")!==-1&&(o.y=i.bottom),n.indexOf("e")!==-1?o.x=i.right:n.indexOf("w")!==-1&&(o.x=i.left),o}function PYn(e){var n="resize-";return e==="n"||e==="s"?n+"ns":e==="e"||e==="w"?n+"ew":e==="nw"||e==="se"?n+"nwse":n+"nesw"}var fke="djs-resizing",pke="resize-not-ok",AYn=500;function $nt(e,n,r){function i(a){var s=a.shape,l=a.newBounds,c=a.frame;c||(c=a.frame=r.addFrame(s,n.getActiveLayer()),n.addMarker(s,fke)),l.width>5&&Gn(c,{x:l.x,width:l.width}),l.height>5&&Gn(c,{y:l.y,height:l.height}),a.canExecute?Ri(c).remove(pke):Ri(c).add(pke)}function o(a){var s=a.shape,l=a.frame;l&&Hs(a.frame),n.removeMarker(s,fke)}e.on("resize.move",AYn,function(a){i(a.context)}),e.on("resize.cleanup",function(a){o(a.context)})}$nt.$inject=["eventBus","canvas","previewSupport"];var r5=-6,i5=8,o5=20,kM="djs-resizer",DYn=["n","w","s","e","nw","ne","se","sw"];function OS(e,n,r,i){this._resize=i,this._canvas=n;var o=this;e.on("selection.changed",function(a){var s=a.newSelection;o.removeResizers(),s.length===1&&ht(s,Su(o.addResizer,o))}),e.on("shape.changed",function(a){var s=a.element;r.isSelected(s)&&(o.removeResizers(),o.addResizer(s))})}OS.prototype.makeDraggable=function(e,n,r){var i=this._resize;function o(a){vS(a)&&i.activate(a,e,r)}Ur.bind(n,"mousedown",o),Ur.bind(n,"touchstart",o)};OS.prototype._createResizer=function(e,n,r,i){var o=this._getResizersParent(),a=kYn(i),s=pr("g");Ri(s).add(kM),Ri(s).add(kM+"-"+e.id),Ri(s).add(kM+"-"+i),Ar(o,s);var l=pr("rect");Gn(l,{x:-i5/2+a.x,y:-i5/2+a.y,width:i5,height:i5}),Ri(l).add(kM+"-visual"),Ar(s,l);var c=pr("rect");return Gn(c,{x:-o5/2+a.x,y:-o5/2+a.y,width:o5,height:o5}),Ri(c).add(kM+"-hit"),Ar(s,c),j6(s,n,r),s};OS.prototype.createResizer=function(e,n){var r=Lnt(e,n),i=this._createResizer(e,r.x,r.y,n);this.makeDraggable(e,i,n)};OS.prototype.addResizer=function(e){var n=this;wo(e)||!this._resize.canResize({shape:e})||ht(DYn,function(r){n.createResizer(e,r)})};OS.prototype.removeResizers=function(){var e=this._getResizersParent();wz(e)};OS.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")};OS.$inject=["eventBus","canvas","selection","resize"];function kYn(e){var n={x:0,y:0};return e.indexOf("e")!==-1?n.x=-r5:e.indexOf("w")!==-1&&(n.x=r5),e.indexOf("s")!==-1?n.y=-r5:e.indexOf("n")!==-1&&(n.y=r5),n}const Fnt={__depends__:[sv,y_,eN],__init__:["resize","resizePreview","resizeHandles"],resize:["type",qL],resizePreview:["type",$nt],resizeHandles:["type",OS]};var LYn=2e3;function KL(e,n,r,i,o,a,s){this._bpmnFactory=n,this._canvas=r,this._modeling=o,this._textRenderer=s,i.registerProvider(this),e.on("element.dblclick",function(c){l(c.element,!0)}),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set","selection.changed"],function(){i.isActive()&&i.complete()}),e.on(["shape.remove","connection.remove"],LYn,function(c){i.isActive(c.element)&&i.cancel()}),e.on(["commandStack.changed"],function(c){i.isActive()&&i.cancel()}),e.on("directEditing.activate",function(c){a.removeResizers()}),e.on("create.end",500,function(c){var u=c.context,d=u.shape,f=c.context.canExecute,p=c.isTouch;p||f&&(u.hints&&u.hints.createElementsBehavior===!1||l(d))}),e.on("autoPlace.end",500,function(c){l(c.shape)});function l(c,u){(u||ii(c,["bpmn:Task","bpmn:TextAnnotation","bpmn:Participant"])||rme(c))&&i.activate(c)}}KL.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"];KL.prototype.activate=function(e){var n=sg(e);if(n!==void 0){var r={text:n},i=this.getEditingBBox(e);Rt(r,i);var o={},a=r.style||{};return Rt(a,{backgroundColor:null,border:null}),(ii(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||rme(e))&&Rt(o,{centerVertically:!0}),CC(e)&&(Rt(o,{autoResize:!0}),Rt(a,{backgroundColor:"#ffffff",border:"1px solid #ccc"})),Fe(e,"bpmn:TextAnnotation")&&(Rt(o,{resizable:!0,autoResize:!0}),Rt(a,{backgroundColor:"#ffffff",border:"1px solid #ccc"})),Rt(r,{options:o,style:a}),r}};KL.prototype.getEditingBBox=function(e){var n=this._canvas,r=e.label||e,i=n.getAbsoluteBBox(r),o={x:i.x+i.width/2,y:i.y+i.height/2},a={x:i.x,y:i.y},s=n.zoom(),l=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),u=c.fontSize*s,d=c.lineHeight,f=l.fontSize*s,p=l.lineHeight,h={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};if(Fe(e,"bpmn:Lane")||BYn(e)){var g=cl(e),v=g?{width:i.height,height:30*s,x:i.x-i.height/2+15*s,y:o.y-30*s/2}:{width:i.width,height:30*s};Rt(a,v),Rt(h,{fontSize:f+"px",lineHeight:p,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px",transform:g?"rotate(-90deg)":null})}if(FYn(e)){var y=cl(e),_=y?{width:i.width,height:i.height}:{width:i.height,height:i.width,x:o.x-i.height/2,y:o.y-i.width/2};Rt(a,_),Rt(h,{fontSize:f+"px",lineHeight:p,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px",transform:y?null:"rotate(-90deg)"})}(ii(e,["bpmn:Task","bpmn:CallActivity"])||rme(e))&&(Rt(a,{width:i.width,height:i.height}),Rt(h,{fontSize:f+"px",lineHeight:p,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"})),$Yn(e)&&(Rt(a,{width:i.width,x:i.x}),Rt(h,{fontSize:f+"px",lineHeight:p,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"}));var S=90*s,b=7*s,E=4*s;if(r.labelTarget&&(Rt(a,{width:S,height:i.height+b+E,x:o.x-S/2,y:i.y-b}),Rt(h,{fontSize:u+"px",lineHeight:d,paddingTop:b+"px",paddingBottom:E+"px"})),CC(r)&&!Mz(r)&&!Ni(r)){var w=Ahe(e),C=n.getAbsoluteBBox({x:w.x,y:w.y,width:0,height:0}),x=u+b+E;Rt(a,{width:S,height:x,x:C.x-S/2,y:C.y-x/2}),Rt(h,{fontSize:u+"px",lineHeight:d,paddingTop:b+"px",paddingBottom:E+"px"})}return Fe(e,"bpmn:TextAnnotation")&&(Rt(a,{width:i.width,height:i.height,minWidth:30*s,minHeight:10*s}),Rt(h,{textAlign:"left",paddingTop:5*s+"px",paddingBottom:7*s+"px",paddingLeft:7*s+"px",paddingRight:5*s+"px",fontSize:f+"px",lineHeight:p})),{bounds:a,style:h}};KL.prototype.update=function(e,n,r,i){var o,a;Fe(e,"bpmn:TextAnnotation")&&(a=this._canvas.getAbsoluteBBox(e),o={x:e.x,y:e.y,width:e.width/a.width*i.width,height:e.height/a.height*i.height}),jYn(n)&&(n=null),this._modeling.updateLabel(e,n,o)};function rme(e){return Fe(e,"bpmn:SubProcess")&&!pi(e)}function $Yn(e){return Fe(e,"bpmn:SubProcess")&&pi(e)}function FYn(e){return Fe(e,"bpmn:Participant")&&!pi(e)}function BYn(e){return Fe(e,"bpmn:Participant")&&pi(e)}function jYn(e){return!e||!e.trim()}var hke="djs-element-hidden",gke="djs-label-hidden";function Bnt(e,n,r){var i=this,o=n.getDefaultLayer(),a,s,l;e.on("directEditing.activate",function(c){var u=c.active;if(a=u.element.label||u.element,Fe(a,"bpmn:TextAnnotation")){s=n.getAbsoluteBBox(a),l=pr("g");var d=r.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:a.width,containerHeight:a.height,position:{mx:0,my:0}}),f=i.path=pr("path");Gn(f,{d,strokeWidth:2,stroke:UYn(a)}),Ar(l,f),Ar(o,l),Wl(l,a.x,a.y)}Fe(a,"bpmn:TextAnnotation")||a.labelTarget?n.addMarker(a,hke):(Fe(a,"bpmn:Task")||Fe(a,"bpmn:CallActivity")||Fe(a,"bpmn:SubProcess")||Fe(a,"bpmn:Participant")||Fe(a,"bpmn:Lane"))&&n.addMarker(a,gke)}),e.on("directEditing.resize",function(c){if(Fe(a,"bpmn:TextAnnotation")){var u=c.height,d=c.dy,f=Math.max(a.height/s.height*(u+d),0),p=r.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:a.width,containerHeight:f,position:{mx:0,my:0}});Gn(i.path,{d:p})}}),e.on(["directEditing.complete","directEditing.cancel"],function(c){var u=c.active;u&&(n.removeMarker(u.element.label||u.element,hke),n.removeMarker(a,gke)),a=void 0,s=void 0,l&&(Hs(l),l=void 0)})}Bnt.$inject=["eventBus","canvas","pathMap"];function UYn(e,n){var r=Ii(e);return r.get("stroke")||n||"black"}const HYn={__depends__:[Dhe,Fnt,Ont],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",KL],labelEditingPreview:["type",Bnt]};var zYn=new OL("tt");function VYn(e){var n=Ko('<div class="djs-tooltip-container" />');return dc(n,{position:"absolute",width:"0",height:"0"}),e.insertBefore(n,e.firstChild),n}function GYn(e,n,r){dc(e,{left:n+"px",top:r+"px"})}function ime(e,n){e.style.display=n===!1?"none":""}var jnt="djs-tooltip",SJ="."+jnt;function Au(e,n){this._eventBus=e,this._canvas=n,this._ids=zYn,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=VYn(n.getContainer());var r=this;sd.bind(this._tooltipRoot,SJ,"mousedown",function(i){i.stopPropagation()}),sd.bind(this._tooltipRoot,SJ,"mouseover",function(i){r.trigger("mouseover",i)}),sd.bind(this._tooltipRoot,SJ,"mouseout",function(i){r.trigger("mouseout",i)}),this._init()}Au.$inject=["eventBus","canvas"];Au.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var n=this._ids.next();return e=Rt({},this._tooltipDefaults,e,{id:n}),this._addTooltip(e),e.timeout&&this.setTimeout(e),n};Au.prototype.trigger=function(e,n){var r=n.delegateTarget||n.target,i=this.get(fc(r,"data-tooltip-id"));i&&(e==="mouseover"&&i.timeout&&this.clearTimeout(i),e==="mouseout"&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))};Au.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]};Au.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}};Au.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var n=this;e.removeTimer=setTimeout(function(){n.remove(e)},e.timeout)}};Au.prototype.remove=function(e){var n=this.get(e);n&&(Fm(n.html),Fm(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])};Au.prototype.show=function(){ime(this._tooltipRoot)};Au.prototype.hide=function(){ime(this._tooltipRoot,!1)};Au.prototype._updateRoot=function(e){var n=e.scale||1,r=e.scale||1,i="matrix("+n+",0,0,"+r+","+-1*e.x*n+","+-1*e.y*r+")";this._tooltipRoot.style.transform=i,this._tooltipRoot.style["-ms-transform"]=i};Au.prototype._addTooltip=function(e){var n=e.id,r=e.html,i,o=this._tooltipRoot;r.get&&r.constructor.prototype.jquery&&(r=r.get(0)),md(r)&&(r=Ko(r)),i=Ko('<div data-tooltip-id="'+n+'" class="'+jnt+'">'),dc(i,{position:"absolute"}),i.appendChild(r),e.type&&Ga(i).add("djs-tooltip-"+e.type),e.className&&Ga(i).add(e.className),e.htmlContainer=i,o.appendChild(i),this._tooltips[n]=e,this._updateTooltip(e)};Au.prototype._updateTooltip=function(e){var n=e.position,r=e.htmlContainer;GYn(r,n.x,n.y)};Au.prototype._updateTooltipVisibilty=function(e){ht(this._tooltips,function(n){var r=n.show,i=n.htmlContainer,o=!0;r&&((r.minZoom>e.scale||r.maxZoom<e.scale)&&(o=!1),ime(i,o))})};Au.prototype._init=function(){var e=this;function n(r){e._updateRoot(r),e._updateTooltipVisibilty(r),e.show()}this._eventBus.on("canvas.viewbox.changing",function(r){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(r){n(r.viewbox)})};const WYn={__init__:["tooltips"],tooltips:["type",Au]};var YYn="flow elements must be children of pools/participants";function Unt(e,n,r){function i(o,a,s){n.add({position:{x:o.x+5,y:o.y+5},type:"error",timeout:2e3,html:"<div>"+a+"</div>"})}e.on(["shape.move.rejected","create.rejected"],function(o){var a=o.context,s=a.shape,l=a.target;Fe(l,"bpmn:Collaboration")&&Fe(s,"bpmn:FlowNode")&&i(o,r(YYn))})}Unt.$inject=["eventBus","tooltips","translate"];const qYn={__depends__:[WYn],__init__:["modelingFeedback"],modelingFeedback:["type",Unt]};var KYn=500,XYn=1e3;function Iw(e,n){this._eventBus=e,this.offset=5;var r=n.cls("djs-outline",["no-fill"]),i=this;function o(a){var s=pr("rect");return Gn(s,Rt({x:0,y:0,rx:4,width:100,height:100},r)),s}e.on(["shape.added","shape.changed"],KYn,function(a){var s=a.element,l=a.gfx,c=Co(".djs-outline",l);c||(c=i.getOutline(s)||o(),Ar(l,c)),i.updateShapeOutline(c,s)}),e.on(["connection.added","connection.changed"],function(a){var s=a.element,l=a.gfx,c=Co(".djs-outline",l);c||(c=o(),Ar(l,c)),i.updateConnectionOutline(c,s)})}Iw.prototype.updateShapeOutline=function(e,n){var r=!1,i=this._getProviders();i.length&&ht(i,function(o){r=r||o.updateOutline(n,e)}),r||Gn(e,{x:-this.offset,y:-this.offset,width:n.width+this.offset*2,height:n.height+this.offset*2})};Iw.prototype.updateConnectionOutline=function(e,n){var r=sl(n);Gn(e,{x:r.x-this.offset,y:r.y-this.offset,width:r.width+this.offset*2,height:r.height+this.offset*2})};Iw.prototype.registerProvider=function(e,n){n||(n=e,e=XYn),this._eventBus.on("outline.getProviders",e,function(r){r.providers.push(n)})};Iw.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(e),e.providers};Iw.prototype.getOutline=function(e){var n,r=this._getProviders();return ht(r,function(i){zs(i.getOutline)&&(n=n||i.getOutline(e))}),n};Iw.$inject=["eventBus","styles","elementRegistry"];var a5=6;function ome(e,n,r){this._canvas=n;var i=this;e.on("element.changed",function(o){r.isSelected(o.element)&&i._updateMultiSelectionOutline(r.get())}),e.on("selection.changed",function(o){var a=o.newSelection;i._updateMultiSelectionOutline(a)})}ome.prototype._updateMultiSelectionOutline=function(e){var n=this._canvas.getLayer("selectionOutline");wz(n);var r=e.length>1,i=this._canvas.getContainer();if(Ri(i)[r?"add":"remove"]("djs-multi-select"),!!r){var o=QYn(sl(e)),a=pr("rect");Gn(a,Rt({rx:3},o)),Ri(a).add("djs-selection-outline"),Ar(n,a)}};ome.$inject=["eventBus","canvas","selection"];function QYn(e){return{x:e.x-a5,y:e.y-a5,width:e.width+a5*2,height:e.height+a5*2}}const Hnt={__depends__:[xg],__init__:["outline","multiSelectionOutline"],outline:["type",Iw],multiSelectionOutline:["type",ome]};var ZYn=500,JYn=1250,eqn=1500,cj=Math.round;function tqn(e){return{x:e.x+cj(e.width/2),y:e.y+cj(e.height/2)}}function znt(e,n,r,i,o){function a(l,c,u,d){return o.allowed("elements.move",{shapes:l,delta:c,position:u,target:d})}e.on("shape.move.start",eqn,function(l){var c=l.context,u=l.shape,d=i.get().slice();d.indexOf(u)===-1&&(d=[u]),d=nqn(d),Rt(c,{shapes:d,validatedShapes:d,shape:u})}),e.on("shape.move.start",JYn,function(l){var c=l.context,u=c.validatedShapes,d;if(d=c.canExecute=a(u),!d)return!1}),e.on("shape.move.move",ZYn,function(l){var c=l.context,u=c.validatedShapes,d=l.hover,f={x:l.dx,y:l.dy},p={x:l.x,y:l.y},h;if(h=a(u,f,p,d),c.delta=f,c.canExecute=h,h===null){c.target=null;return}c.target=d}),e.on("shape.move.end",function(l){var c=l.context,u=c.delta,d=c.canExecute,f=d==="attach",p=c.shapes;if(d===!1)return!1;u.x=cj(u.x),u.y=cj(u.y),!(u.x===0&&u.y===0)&&r.moveElements(p,u,c.target,{primaryShape:c.shape,attach:f})}),e.on("element.mousedown",function(l){if(vS(l)){var c=YI(l);if(!c)throw new Error("must supply DOM mousedown event");return s(c,l.element)}});function s(l,c,u,d){if(Rl(u)&&(d=u,u=!1),!(c.waypoints||!c.parent)&&!Ri(l.target).has("djs-hit-no-move")){var f=tqn(c);return n.init(l,f,"shape.move",{cursor:"grabbing",autoActivate:u,data:{shape:c,context:d||{}}}),!0}}this.start=s}znt.$inject=["eventBus","dragging","modeling","selection","rules"];function nqn(e){var n=HI(e,"id");return si(e,function(r){for(;r=r.parent;)if(n[r.id])return!1;return!0})}var mke=499,EJ="djs-dragging",vke="drop-ok",yke="drop-not-ok",_ke="new-parent",bke="attach-ok";function Vnt(e,n,r,i){function o(c){var u=a(c),d=rqn(u);return d}function a(c){var u=bL(c,!0),d=u.flatMap(h=>(h.incoming||[]).concat(h.outgoing||[])),f=u.concat(d),p=[...new Set(f)];return p}function s(c,u){[bke,vke,yke,_ke].forEach(function(d){d===u?n.addMarker(c,d):n.removeMarker(c,d)})}function l(c,u,d){i.addDragger(u,c.dragGroup),d&&n.addMarker(u,EJ),c.allDraggedElements?c.allDraggedElements.push(u):c.allDraggedElements=[u]}e.on("shape.move.start",mke,function(c){var u=c.context,d=u.shapes,f=u.allDraggedElements,p=o(d);if(!u.dragGroup){var h=pr("g");Gn(h,r.cls("djs-drag-group",["no-events"]));var g=n.getActiveLayer();Ar(g,h),u.dragGroup=h}p.forEach(function(v){i.addDragger(v,u.dragGroup)}),f?f=ghe([f,a(d)]):f=a(d),ht(f,function(v){n.addMarker(v,EJ)}),u.allDraggedElements=f,u.differentParents=iqn(d)}),e.on("shape.move.move",mke,function(c){var u=c.context,d=u.dragGroup,f=u.target,p=u.shape.parent,h=u.canExecute;f&&(h==="attach"?s(f,bke):u.canExecute&&p&&f.id!==p.id?s(f,_ke):s(f,u.canExecute?vke:yke)),Wl(d,c.dx,c.dy)}),e.on(["shape.move.out","shape.move.cleanup"],function(c){var u=c.context,d=u.target;d&&s(d,null)}),e.on("shape.move.cleanup",function(c){var u=c.context,d=u.allDraggedElements,f=u.dragGroup;ht(d,function(p){n.removeMarker(p,EJ)}),f&&Hs(f)}),this.makeDraggable=l}Vnt.$inject=["eventBus","canvas","styles","previewSupport"];function rqn(e){var n=si(e,function(r){return wo(r)?ki(e,qh({id:r.source.id}))&&ki(e,qh({id:r.target.id})):!0});return n}function iqn(e){return g8n(HI(e,function(n){return n.parent&&n.parent.id}))!==1}const oqn={__depends__:[Lz,xg,Hnt,sv,y_,eN],__init__:["move","movePreview"],move:["type",znt],movePreview:["type",Vnt]};var Gnt=".djs-palette-toggle",Wnt=".entry",aqn=Gnt+", "+Wnt,Kae="djs-palette-",sqn="shown",Xae="open",Ske="two-column",lqn=1e3;function Os(e,n){this._eventBus=e,this._canvas=n;var r=this;e.on("tool-manager.update",function(i){var o=i.tool;r.updateToolHighlight(o)}),e.on("i18n.changed",function(){r._update()}),e.on("diagram.init",function(){r._diagramInitialized=!0,r._rebuild()})}Os.$inject=["eventBus","canvas"];Os.prototype.registerProvider=function(e,n){n||(n=e,e=lqn),this._eventBus.on("palette.getProviders",e,function(r){r.providers.push(n)}),this._rebuild()};Os.prototype.getEntries=function(){var e=this._getProviders();return e.reduce(uqn,{})};Os.prototype._rebuild=function(){if(this._diagramInitialized){var e=this._getProviders();e.length&&(this._container||this._init(),this._update())}};Os.prototype._init=function(){var e=this,n=this._eventBus,r=this._getParentContainer(),i=this._container=Ko(Os.HTML_MARKUP);r.appendChild(i),Ga(r).add(Kae+sqn),sd.bind(i,aqn,"click",function(o){var a=o.delegateTarget;if(iJe(a,Gnt))return e.toggle();e.trigger("click",o)}),Ur.bind(i,"mousedown",function(o){o.stopPropagation()}),sd.bind(i,Wnt,"dragstart",function(o){e.trigger("dragstart",o)}),n.on("canvas.resized",this._layoutChanged,this),n.fire("palette.create",{container:i})};Os.prototype._getProviders=function(e){var n=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(n),n.providers};Os.prototype._toggleState=function(e){e=e||{};var n=this._getParentContainer(),r=this._container,i=this._eventBus,o,a=Ga(r),s=Ga(n);"twoColumn"in e?o=e.twoColumn:o=this._needsCollapse(n.clientHeight,this._entries||{}),a.toggle(Ske,o),s.toggle(Kae+Ske,o),"open"in e&&(a.toggle(Xae,e.open),s.toggle(Kae+Xae,e.open)),i.fire("palette.changed",{twoColumn:o,open:this.isOpen()})};Os.prototype._update=function(){var e=Co(".djs-palette-entries",this._container),n=this._entries=this.getEntries();Cz(e),ht(n,function(r,i){var o=r.group||"default",a=Co("[data-group="+rD(o)+"]",e);a||(a=Ko('<div class="group"></div>'),fc(a,"data-group",o),e.appendChild(a));var s=r.html||(r.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),l=Ko(s);if(a.appendChild(l),!r.separator&&(fc(l,"data-action",i),r.title&&fc(l,"title",r.title),r.className&&cqn(l,r.className),r.imageUrl)){var c=Ko("<img>");fc(c,"src",r.imageUrl),l.appendChild(c)}}),this.open()};Os.prototype.trigger=function(e,n,r){var i,o,a=n.delegateTarget||n.target;return a?(i=fc(a,"data-action"),o=n.originalEvent||n,this.triggerEntry(i,e,o,r)):n.preventDefault()};Os.prototype.triggerEntry=function(e,n,r,i){var o=this._entries,a,s;if(a=o[e],!!a&&(s=a.action,this._eventBus.fire("palette.trigger",{entry:a,event:r})!==!1)){if(zs(s)){if(n==="click")return s(r,i)}else if(s[n])return s[n](r,i);r.preventDefault()}};Os.prototype._layoutChanged=function(){this._toggleState({})};Os.prototype._needsCollapse=function(e,n){var r=50,i=Object.keys(n).length*46;return e<i+r};Os.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})};Os.prototype.open=function(){this._toggleState({open:!0})};Os.prototype.toggle=function(){this.isOpen()?this.close():this.open()};Os.prototype.isActiveTool=function(e){return e&&this._activeTool===e};Os.prototype.updateToolHighlight=function(e){var n,r;this._toolsContainer||(n=Co(".djs-palette-entries",this._container),this._toolsContainer=Co("[data-group=tools]",n)),r=this._toolsContainer,ht(r.children,function(i){var o=i.getAttribute("data-action");if(o){var a=Ga(i);o=o.replace("-tool",""),a.contains("entry")&&o===e?a.add("highlighted-entry"):a.remove("highlighted-entry")}})};Os.prototype.isOpen=function(){return Ga(this._container).has(Xae)};Os.prototype._getParentContainer=function(){return this._canvas.getContainer()};Os.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';function cqn(e,n){var r=Ga(e),i=zr(n)?n:n.split(/\s+/g);i.forEach(function(o){r.add(o)})}function uqn(e,n){var r=n.getPaletteEntries();return zs(r)?r(e):(ht(r,function(i,o){e[o]=i}),e)}const dqn={__init__:["palette"],palette:["type",Os]};var Ynt="crosshair";function Nw(e,n,r,i,o,a,s){this._selection=o,this._dragging=r,this._mouse=s;var l=this,c={create:function(u){var d=n.getActiveLayer(),f;f=u.frame=pr("rect"),Gn(f,{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),Ar(d,f)},update:function(u){var d=u.frame,f=u.bbox;Gn(d,{x:f.x,y:f.y,width:f.width,height:f.height})},remove:function(u){u.frame&&Hs(u.frame)}};a.registerTool("lasso",{tool:"lasso.selection",dragging:"lasso"}),e.on("lasso.selection.end",function(u){var d=u.originalEvent.target;!u.hover&&!(d instanceof SVGElement)||e.once("lasso.selection.ended",function(){l.activateLasso(u.originalEvent,!0)})}),e.on("lasso.end",0,function(u){var d=u.context,f=CJ(u),p=i.filter(function(g){return g}),h=JB(u);l.select(p,f,h?d.selection:[])}),e.on("lasso.start",function(u){var d=u.context;d.bbox=CJ(u),c.create(d),d.selection=o.get()}),e.on("lasso.move",function(u){var d=u.context;d.bbox=CJ(u),c.update(d)}),e.on("lasso.cleanup",function(u){var d=u.context;c.remove(d)}),e.on("element.mousedown",1500,function(u){if(JB(u))return l.activateLasso(u.originalEvent),!0})}Nw.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"];Nw.prototype.activateLasso=function(e,n){this._dragging.init(e,"lasso",{autoActivate:n,cursor:Ynt,data:{context:{}}})};Nw.prototype.activateSelection=function(e,n){this._dragging.init(e,"lasso.selection",{trapClick:!1,autoActivate:n,cursor:Ynt,data:{context:{}},keepSelection:!0})};Nw.prototype.select=function(e,n,r=[]){var i=sBn(e,n);this._selection.select([...r,...mhe(i)])};Nw.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)};Nw.prototype.isActive=function(){var e=this._dragging.context();return e&&/^lasso/.test(e.prefix)};function CJ(e){var n={x:e.x-e.dx,y:e.y-e.dy},r={x:e.x,y:e.y},i;return n.x<=r.x&&n.y<r.y||n.x<r.x&&n.y<=r.y?i={x:n.x,y:n.y,width:r.x-n.x,height:r.y-n.y}:n.x>=r.x&&n.y<r.y||n.x>r.x&&n.y<=r.y?i={x:r.x,y:n.y,width:n.x-r.x,height:r.y-n.y}:n.x<=r.x&&n.y>r.y||n.x<r.x&&n.y>=r.y?i={x:n.x,y:r.y,width:r.x-n.x,height:n.y-r.y}:n.x>=r.x&&n.y>r.y||n.x>r.x&&n.y>=r.y?i={x:r.x,y:r.y,width:n.x-r.x,height:n.y-r.y}:i={x:r.x,y:r.y,width:0,height:0},i}const fqn={__depends__:[tV,AL],__init__:["lassoTool"],lassoTool:["type",Nw]};var wJ=1500,qnt="grab";function tN(e,n,r,i,o,a){this._dragging=r,this._mouse=a;var s=this,l=i.get("keyboard",!1);o.registerTool("hand",{tool:"hand",dragging:"hand.move"}),e.on("element.mousedown",wJ,function(c){if(iD(c))return s.activateMove(c.originalEvent,!0),!1}),l&&l.addListener(wJ,function(c){if(!(!Eke(c.keyEvent)||s.isActive())){var u=s._mouse.getLastMoveEvent();s.activateMove(u,!!u)}},"keyboard.keydown"),l&&l.addListener(wJ,function(c){!Eke(c.keyEvent)||!s.isActive()||s.toggle()},"keyboard.keyup"),e.on("hand.end",function(c){var u=c.originalEvent.target;if(!c.hover&&!(u instanceof SVGElement))return!1;e.once("hand.ended",function(){s.activateMove(c.originalEvent,{reactivate:!0})})}),e.on("hand.move.move",function(c){var u=n.viewbox().scale;n.scroll({dx:c.dx*u,dy:c.dy*u})}),e.on("hand.move.end",function(c){var u=c.context,d=u.reactivate;return!iD(c)&&d&&e.once("hand.move.ended",function(f){s.activateHand(f.originalEvent,!0,!0)}),!1})}tN.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"];tN.prototype.activateMove=function(e,n,r){typeof n=="object"&&(r=n,n=!1),this._dragging.init(e,"hand.move",{autoActivate:n,cursor:qnt,data:{context:r||{}}})};tN.prototype.activateHand=function(e,n,r){this._dragging.init(e,"hand",{trapClick:!1,autoActivate:n,cursor:qnt,data:{context:{reactivate:r}}})};tN.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateHand(e,!!e)};tN.prototype.isActive=function(){var e=this._dragging.context();return e?/^(hand|hand\.move)$/.test(e.prefix):!1};function Eke(e){return _l("Space",e)}const pqn={__depends__:[tV,AL],__init__:["handTool"],handTool:["type",tN]};var Cke="connect-ok",wke="connect-not-ok";function nN(e,n,r,i,o,a,s){var l=this;this._dragging=n,this._rules=a,this._mouse=s,o.registerTool("global-connect",{tool:"global-connect",dragging:"global-connect.drag"}),e.on("global-connect.hover",function(c){var u=c.context,d=c.hover,f=u.canStartConnect=l.canStartConnect(d);f!==null&&(u.startTarget=d,i.addMarker(d,f?Cke:wke))}),e.on(["global-connect.out","global-connect.cleanup"],function(c){var u=c.context.startTarget,d=c.context.canStartConnect;u&&i.removeMarker(u,d?Cke:wke)}),e.on(["global-connect.ended"],function(c){var u=c.context,d=u.startTarget,f={x:c.x,y:c.y},p=l.canStartConnect(d);if(p)return e.once("element.out",function(){e.once(["connect.ended","connect.canceled"],function(){e.fire("global-connect.drag.ended")}),r.start(null,d,f)}),!1})}nN.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"];nN.prototype.start=function(e,n){this._dragging.init(e,"global-connect",{autoActivate:n,trapClick:!1,data:{context:{}}})};nN.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();return this.start(e,!!e)};nN.prototype.isActive=function(){var e=this._dragging.context();return e&&/^global-connect/.test(e.prefix)};nN.prototype.canStartConnect=function(e){return this._rules.allowed("connection.start",{source:e})};const hqn={__depends__:[Zhe,sv,y_,tV,AL],globalConnect:["type",nN]};function ame(e,n,r,i,o,a,s,l){this._palette=e,this._create=n,this._elementFactory=r,this._spaceTool=i,this._lassoTool=o,this._handTool=a,this._globalConnect=s,this._translate=l,e.registerProvider(this)}ame.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"];ame.prototype.getPaletteEntries=function(){var e={},n=this._create,r=this._elementFactory,i=this._spaceTool,o=this._lassoTool,a=this._handTool,s=this._globalConnect,l=this._translate;function c(f,p,h,g,v){function y(_){var S=r.createShape(Rt({type:f},v));n.start(_,S)}return{group:p,className:h,title:g,action:{dragstart:y,click:y}}}function u(f){var p=r.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),h=r.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:p});n.start(f,[p,h],{hints:{autoSelect:[p]}})}function d(f){n.start(f,r.createParticipantShape())}return Rt(e,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:l("Activate hand tool"),action:{click:function(f){a.activateHand(f)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:l("Activate lasso tool"),action:{click:function(f){o.activateSelection(f)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:l("Activate create/remove space tool"),action:{click:function(f){i.activateSelection(f)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:l("Activate global connect tool"),action:{click:function(f){s.start(f)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":c("bpmn:StartEvent","event","bpmn-icon-start-event-none",l("Create start event")),"create.intermediate-event":c("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",l("Create intermediate/boundary event")),"create.end-event":c("bpmn:EndEvent","event","bpmn-icon-end-event-none",l("Create end event")),"create.exclusive-gateway":c("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",l("Create gateway")),"create.task":c("bpmn:Task","activity","bpmn-icon-task",l("Create task")),"create.data-object":c("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",l("Create data object reference")),"create.data-store":c("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",l("Create data store reference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:l("Create expanded sub-process"),action:{dragstart:u,click:u}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:l("Create pool/participant"),action:{dragstart:d,click:d}},"create.group":c("bpmn:Group","artifact","bpmn-icon-group",l("Create group"))}),e};const gqn={__depends__:[dqn,eV,cnt,fqn,pqn,hqn,Az],__init__:["paletteProvider"],paletteProvider:["type",ame]};var mqn=250;function sme(e,n,r,i,o){vn.call(this,e);function a(l){var c=l.canExecute.replacements;ht(c,function(u){var d=u.oldElementId,f={type:u.newElementType};if(!l.visualReplacements[d]){var p=n.get(d);Rt(f,{x:p.x,y:p.y});var h=r.createShape(f);i.addShape(h,p.parent);var g=Co('[data-element-id="'+rD(p.id)+'"]',l.dragGroup);g&&Gn(g,{display:"none"});var v=o.addDragger(h,l.dragGroup);l.visualReplacements[d]=v,i.removeShape(h)}})}function s(l){var c=l.visualReplacements;ht(c,function(u,d){var f=Co('[data-element-id="'+rD(d)+'"]',l.dragGroup);f&&Gn(f,{display:"inline"}),u.remove(),c[d]&&delete c[d]})}e.on("shape.move.move",mqn,function(l){var c=l.context,u=c.canExecute;c.visualReplacements||(c.visualReplacements={}),u&&u.replacements?a(c):s(c)})}sme.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"];Zn(sme,vn);const vqn={__depends__:[eN],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",sme]};var yqn=1250,xJ=40,_qn=20,bqn=10,xke=20,Knt=["x","y"],Sqn=Math.abs;function Xnt(e){e.on(["connect.hover","connect.move","connect.end"],yqn,function(n){var r=n.context,i=r.canExecute,o=r.start,a=r.hover,s=r.source,l=r.target;n.originalEvent&&Sp(n.originalEvent)||(r.initialConnectionStart||(r.initialConnectionStart=r.connectionStart),i&&a&&Eqn(n,a,Tqn(a)),a&&xqn(i,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(r.connectionStart=mp(o),ii(a,["bpmn:Event","bpmn:Gateway"])&&Tke(n,mp(a)),ii(a,["bpmn:Task","bpmn:SubProcess"])&&Cqn(n,a),Fe(s,"bpmn:BoundaryEvent")&&l===s.host&&wqn(n)):Qnt(i,"bpmn:MessageFlow")?(Fe(o,"bpmn:Event")&&(r.connectionStart=mp(o)),Fe(a,"bpmn:Event")&&Tke(n,mp(a))):r.connectionStart=r.initialConnectionStart)})}Xnt.$inject=["eventBus"];function Eqn(e,n,r){Knt.forEach(function(i){var o=Znt(i,n);e[i]<n[i]+r?_s(e,i,n[i]+r):e[i]>n[i]+o-r&&_s(e,i,n[i]+o-r)})}function Cqn(e,n){var r=mp(n);Knt.forEach(function(i){Oqn(e,n,i)&&_s(e,i,r[i])})}function wqn(e){var n=e.context,r=n.source,i=n.target;if(!Rqn(n)){var o=mp(r),a=_c(o,i,-10),s=[];/top|bottom/.test(a)&&s.push("x"),/left|right/.test(a)&&s.push("y"),s.forEach(function(l){var c=e[l],u;Sqn(c-o[l])<xJ&&(c>o[l]?u=o[l]+xJ:u=o[l]-xJ,_s(e,l,u))})}}function Tke(e,n){_s(e,"x",n.x),_s(e,"y",n.y)}function Qnt(e,n){return e&&e.type===n}function xqn(e,n){return fS(n,function(r){return Qnt(e,r)})}function Znt(e,n){return e==="x"?n.width:n.height}function Tqn(e){return Fe(e,"bpmn:Task")?bqn:_qn}function Oqn(e,n,r){return e[r]>n[r]+xke&&e[r]<n[r]+Znt(r,n)-xke}function Rqn(e){var n=e.hover,r=e.source;return n&&r&&n===r}function RS(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}RS.prototype.getSnapOrigin=function(e){return this._snapOrigins[e]};RS.prototype.setSnapOrigin=function(e,n){this._snapOrigins[e]=n,this._snapLocations.indexOf(e)===-1&&this._snapLocations.push(e)};RS.prototype.addDefaultSnap=function(e,n){var r=this._defaultSnaps[e];r||(r=this._defaultSnaps[e]=[]),r.push(n)};RS.prototype.getSnapLocations=function(){return this._snapLocations};RS.prototype.setSnapLocations=function(e){this._snapLocations=e};RS.prototype.pointsForTarget=function(e){var n=e.id||e,r=this._targets[n];return r||(r=this._targets[n]=new _V,r.initDefaults(this._defaultSnaps)),r};function _V(){this._snapValues={}}_V.prototype.add=function(e,n){var r=this._snapValues[e];r||(r=this._snapValues[e]={x:[],y:[]}),r.x.indexOf(n.x)===-1&&r.x.push(n.x),r.y.indexOf(n.y)===-1&&r.y.push(n.y)};_V.prototype.snap=function(e,n,r,i){var o=this._snapValues[n];return o&&FHn(e[r],o[r],i)};_V.prototype.initDefaults=function(e){var n=this;ht(e||{},function(r,i){ht(r,function(o){n.add(i,o)})})};var Iqn=1250;function lv(e,n,r){var i=this;this._elementRegistry=e,n.on(["create.start","shape.move.start"],function(o){i.initSnap(o)}),n.on(["create.move","create.end","shape.move.move","shape.move.end"],Iqn,function(o){var a=o.context,s=a.shape,l=a.snapContext,c=a.target;if(!(o.originalEvent&&Sp(o.originalEvent))&&!(pR(o)||!c)){var u=l.pointsForTarget(c);u.initialized||(u=i.addSnapTargetPoints(u,s,c),u.initialized=!0),r.snap(o,u)}}),n.on(["create.cleanup","shape.move.cleanup"],function(){r.hide()})}lv.$inject=["elementRegistry","eventBus","snapping"];lv.prototype.initSnap=function(e){var n=this._elementRegistry,r=e.context,i=r.shape,o=r.snapContext;o||(o=r.snapContext=new RS);var a;n.get(i.id)?a=mp(i,e):a={x:e.x+mp(i).x,y:e.y+mp(i).y};var s={x:a.x-i.width/2,y:a.y-i.height/2},l={x:a.x+i.width/2,y:a.y+i.height/2};return o.setSnapOrigin("mid",{x:a.x-e.x,y:a.y-e.y}),Ni(i)||(o.setSnapOrigin("top-left",{x:s.x-e.x,y:s.y-e.y}),o.setSnapOrigin("bottom-right",{x:l.x-e.x,y:l.y-e.y})),o};lv.prototype.addSnapTargetPoints=function(e,n,r){var i=this.getSnapTargets(n,r);return ht(i,function(o){if(Ni(o)){Ni(n)&&e.add("mid",mp(o));return}if(wo(o)){if(o.waypoints.length<3)return;var a=o.waypoints.slice(1,-1);ht(a,function(s){e.add("mid",s)});return}e.add("mid",mp(o))}),!Nr(n.x)||!Nr(n.y)||this._elementRegistry.get(n.id)&&e.add("mid",mp(n)),e};lv.prototype.getSnapTargets=function(e,n){return ftt(n).filter(function(r){return!Nqn(r)})};function Nqn(e){return!!e.hidden}var Oke=1500;function rN(e,n){n.invoke(lv,this),e.on(["create.move","create.end"],Oke,Dqn),e.on(["create.move","create.end","shape.move.move","shape.move.end"],Oke,function(r){var i=r.context,o=i.canExecute,a=i.target,s=o&&(o==="attach"||o.attach);s&&!pR(r)&&Mqn(r,a)})}Zn(rN,lv);rN.$inject=["eventBus","injector"];rN.prototype.initSnap=function(e){var n=lv.prototype.initSnap.call(this,e),r=e.shape,i=!!this._elementRegistry.get(r.id);return ht(r.outgoing,function(o){var a=o.waypoints[0];a=a.original||a,n.setSnapOrigin(o.id+"-docking",Ike(a,i,e))}),ht(r.incoming,function(o){var a=o.waypoints[o.waypoints.length-1];a=a.original||a,n.setSnapOrigin(o.id+"-docking",Ike(a,i,e))}),Fe(r,"bpmn:Participant")&&n.setSnapLocations(["top-left","bottom-right","mid"]),n};rN.prototype.addSnapTargetPoints=function(e,n,r){lv.prototype.addSnapTargetPoints.call(this,e,n,r);var i=this.getSnapTargets(n,r);ht(i,function(a){(Aqn(a)||Pqn([n,a],"bpmn:TextAnnotation"))&&(e.add("top-left",utt(a)),e.add("bottom-right",dtt(a)))});var o=this._elementRegistry;return ht(n.incoming,function(a){if(o.get(n.id)){Rke(i,a.source)||e.add("mid",Mr(a.source));var s=a.waypoints[0];e.add(a.id+"-docking",s.original||s)}}),ht(n.outgoing,function(a){if(o.get(n.id)){Rke(i,a.target)||e.add("mid",Mr(a.target));var s=a.waypoints[a.waypoints.length-1];e.add(a.id+"-docking",s.original||s)}}),Fe(r,"bpmn:SequenceFlow")&&(e=this.addSnapTargetPoints(e,n,r.parent)),e};rN.prototype.getSnapTargets=function(e,n){return lv.prototype.getSnapTargets.call(this,e,n).filter(function(r){return!Fe(r,"bpmn:Lane")})};function Mqn(e,n){var r=br(n),i=Ftt(e,n),o=e.context,a=o.shape,s;a.parent?s={x:0,y:0}:s=Mr(a),/top/.test(i)?_s(e,"y",r.top-s.y):/bottom/.test(i)&&_s(e,"y",r.bottom-s.y),/left/.test(i)?_s(e,"x",r.left-s.x):/right/.test(i)&&_s(e,"x",r.right-s.x)}function Pqn(e,n){return e.every(function(r){return Fe(r,n)})}function Aqn(e){return Fe(e,"bpmn:SubProcess")&&pi(e)?!0:Fe(e,"bpmn:Participant")}function Dqn(e){var n=e.context,r=n.createConstraints;if(r){var i=r.top,o=r.right,a=r.bottom,s=r.left;(s&&s>=e.x||o&&o<=e.x)&&_s(e,"x",e.x),(i&&i>=e.y||a&&a<=e.y)&&_s(e,"y",e.y)}}function Rke(e,n){return e.indexOf(n)!==-1}function Ike(e,n,r){return n?{x:e.x-r.x,y:e.y-r.y}:{x:e.x,y:e.y}}var kqn=1250;function XL(e,n){var r=this;e.on(["resize.start"],function(i){r.initSnap(i)}),e.on(["resize.move","resize.end"],kqn,function(i){var o=i.context,a=o.shape,s=a.parent,l=o.direction,c=o.snapContext;if(!(i.originalEvent&&Sp(i.originalEvent))&&!pR(i)){var u=c.pointsForTarget(s);u.initialized||(u=r.addSnapTargetPoints(u,a,s,l),u.initialized=!0),Fqn(l)&&_s(i,"x",i.x),Bqn(l)&&_s(i,"y",i.y),n.snap(i,u)}}),e.on(["resize.cleanup"],function(){n.hide()})}XL.prototype.initSnap=function(e){var n=e.context,r=n.shape,i=n.direction,o=n.snapContext;o||(o=n.snapContext=new RS);var a=Jnt(r,i);return o.setSnapOrigin("corner",{x:a.x-e.x,y:a.y-e.y}),o};XL.prototype.addSnapTargetPoints=function(e,n,r,i){var o=this.getSnapTargets(n,r);return ht(o,function(a){e.add("corner",dtt(a)),e.add("corner",utt(a))}),e.add("corner",Jnt(n,i)),e};XL.$inject=["eventBus","snapping"];XL.prototype.getSnapTargets=function(e,n){return ftt(n).filter(function(r){return!Lqn(r,e)&&!wo(r)&&!$qn(r)&&!Ni(r)})};function Jnt(e,n){var r=Mr(e),i=br(e),o={x:r.x,y:r.y};return n.indexOf("n")!==-1?o.y=i.top:n.indexOf("s")!==-1&&(o.y=i.bottom),n.indexOf("e")!==-1?o.x=i.right:n.indexOf("w")!==-1&&(o.x=i.left),o}function Lqn(e,n){return e.host===n}function $qn(e){return!!e.hidden}function Fqn(e){return e==="n"||e==="s"}function Bqn(e){return e==="e"||e==="w"}var jqn=7,Uqn=1e3;function IS(e){this._canvas=e,this._asyncHide=eJe(Su(this.hide,this),Uqn)}IS.$inject=["canvas"];IS.prototype.snap=function(e,n){var r=e.context,i=r.snapContext,o=i.getSnapLocations(),a={x:pR(e,"x"),y:pR(e,"y")};ht(o,function(s){var l=i.getSnapOrigin(s),c={x:e.x+l.x,y:e.y+l.y};if(ht(["x","y"],function(u){var d;a[u]||(d=n.snap(c,s,u,jqn),d!==void 0&&(a[u]={value:d,originValue:d-l[u]}))}),a.x&&a.y)return!1}),this.showSnapLine("vertical",a.x&&a.x.value),this.showSnapLine("horizontal",a.y&&a.y.value),ht(["x","y"],function(s){var l=a[s];Rl(l)&&_s(e,s,l.originValue)})};IS.prototype._createLine=function(e){var n=this._canvas.getLayer("snap"),r=pr("path");return Gn(r,{d:"M0,0 L0,0"}),Ri(r).add("djs-snap-line"),Ar(n,r),{update:function(i){Nr(i)?e==="horizontal"?Gn(r,{d:"M-100000,"+i+" L+100000,"+i,display:""}):Gn(r,{d:"M "+i+",-100000 L "+i+", +100000",display:""}):Gn(r,{display:"none"})}}};IS.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}};IS.prototype.showSnapLine=function(e,n){var r=this.getSnapLine(e);r&&r.update(n),this._asyncHide()};IS.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]};IS.prototype.hide=function(){ht(this._snapLines,function(e){e.update()})};const Hqn={__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",lv],resizeSnapping:["type",XL],snapping:["type",IS]},zqn={__depends__:[Hqn],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",Xnt],createMoveSnapping:["type",rN]};var ert=300;function $r(e,n,r,i){this._open=!1,this._results={},this._eventMaps=[],this._cachedRootElement=null,this._cachedSelection=null,this._cachedViewbox=null,this._canvas=e,this._eventBus=n,this._selection=r,this._translate=i,this._container=this._getBoxHtml(),this._searchInput=Co($r.INPUT_SELECTOR,this._container),this._resultsContainer=Co($r.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),n.on(["canvas.destroy","diagram.destroy","drag.init","elements.changed"],this.close,this)}$r.$inject=["canvas","eventBus","selection","translate"];$r.prototype._bindEvents=function(){var e=this;function n(r,i,o,a){e._eventMaps.push({el:r,type:o,listener:sd.bind(r,i,o,a)})}n(document,"html","click",function(r){e.close(!1)}),n(this._container,$r.INPUT_SELECTOR,"click",function(r){r.stopPropagation(),r.delegateTarget.focus()}),n(this._container,$r.RESULT_SELECTOR,"mouseover",function(r){r.stopPropagation(),e._scrollToNode(r.delegateTarget),e._preselect(r.delegateTarget)}),n(this._container,$r.RESULT_SELECTOR,"click",function(r){r.stopPropagation(),e._select(r.delegateTarget)}),n(this._container,$r.INPUT_SELECTOR,"keydown",function(r){_l("ArrowUp",r)&&r.preventDefault(),_l("ArrowDown",r)&&r.preventDefault()}),n(this._container,$r.INPUT_SELECTOR,"keyup",function(r){if(_l("Escape",r))return e.close();if(_l("Enter",r)){var i=e._getCurrentResult();return i?e._select(i):e.close(!1)}if(_l("ArrowUp",r))return e._scrollToDirection(!0);if(_l("ArrowDown",r))return e._scrollToDirection();_l(["ArrowLeft","ArrowRight"],r)||e._search(r.delegateTarget.value)})};$r.prototype._unbindEvents=function(){this._eventMaps.forEach(function(e){sd.unbind(e.el,e.type,e.listener)})};$r.prototype._search=function(e){var n=this;if(this._clearResults(),!!e.trim()){var r=this._searchProvider.find(e);if(r=r.filter(function(o){return!n._canvas.getRootElements().includes(o.element)}),!r.length){this._selection.select(null);return}r.forEach(function(o){var a=o.element.id,s=n._createResultNode(o,a);n._results[a]={element:o.element,node:s}});var i=Co($r.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}};$r.prototype._scrollToDirection=function(e){var n=this._getCurrentResult();if(n){var r=e?n.previousElementSibling:n.nextElementSibling;r&&(this._scrollToNode(r),this._preselect(r))}};$r.prototype._scrollToNode=function(e){if(!(!e||e===this._getCurrentResult())){var n=e.offsetTop,r=this._resultsContainer.scrollTop,i=n-this._resultsContainer.clientHeight+e.clientHeight;n<r?this._resultsContainer.scrollTop=n:r<i&&(this._resultsContainer.scrollTop=i)}};$r.prototype._clearResults=function(){Cz(this._resultsContainer),this._results={},this._eventBus.fire("searchPad.cleared")};$r.prototype._getCurrentResult=function(){return Co($r.RESULT_SELECTED_SELECTOR,this._resultsContainer)};$r.prototype._createResultNode=function(e,n){var r=Ko($r.RESULT_HTML);return e.primaryTokens.length>0&&Nke(r,e.primaryTokens,$r.RESULT_PRIMARY_HTML),Nke(r,e.secondaryTokens,$r.RESULT_SECONDARY_HTML),fc(r,$r.RESULT_ID_ATTRIBUTE,n),this._resultsContainer.appendChild(r),r};$r.prototype.registerProvider=function(e){this._searchProvider=e};$r.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._cachedRootElement=this._canvas.getRootElement(),this._cachedSelection=this._selection.get(),this._cachedViewbox=this._canvas.viewbox(),this._selection.select(null),this._bindEvents(),this._open=!0,Ga(this._canvas.getContainer()).add("djs-search-open"),Ga(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))};$r.prototype.close=function(e=!0){this.isOpen()&&(e&&(this._cachedRootElement&&this._canvas.setRootElement(this._cachedRootElement),this._cachedSelection&&this._selection.select(this._cachedSelection),this._cachedViewbox&&this._canvas.viewbox(this._cachedViewbox),this._eventBus.fire("searchPad.restored")),this._cachedRootElement=null,this._cachedSelection=null,this._cachedViewbox=null,this._unbindEvents(),this._open=!1,Ga(this._canvas.getContainer()).remove("djs-search-open"),Ga(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._eventBus.fire("searchPad.closed"),this._canvas.restoreFocus())};$r.prototype.toggle=function(){this.isOpen()?this.close():this.open()};$r.prototype.isOpen=function(){return this._open};$r.prototype._preselect=function(e){var n=this._getCurrentResult();if(e!==n){n&&Ga(n).remove($r.RESULT_SELECTED_CLASS);var r=fc(e,$r.RESULT_ID_ATTRIBUTE),i=this._results[r].element;Ga(e).add($r.RESULT_SELECTED_CLASS),this._canvas.scrollToElement(i,{top:ert}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}};$r.prototype._select=function(e){var n=fc(e,$r.RESULT_ID_ATTRIBUTE),r=this._results[n].element;this._cachedSelection=null,this._cachedViewbox=null,this.close(!1),this._canvas.scrollToElement(r,{top:ert}),this._selection.select(r),this._eventBus.fire("searchPad.selected",r)};$r.prototype._getBoxHtml=function(){const e=Ko($r.BOX_HTML),n=Co($r.INPUT_SELECTOR,e);return n&&n.setAttribute("aria-label",this._translate("Search in diagram")),e};function Nke(e,n,r){var i=Vqn(n),o=Ko(r);o.innerHTML=i,e.appendChild(o)}function Vqn(e){var n="";return e.forEach(function(r){var i=net(r.value||r.matched||r.normal),o=r.match||r.matched;o?n+='<b class="'+$r.RESULT_HIGHLIGHT_CLASS+'">'+i+"</b>":n+=i}),n!==""?n:null}$r.CONTAINER_SELECTOR=".djs-search-container";$r.INPUT_SELECTOR=".djs-search-input input";$r.RESULTS_CONTAINER_SELECTOR=".djs-search-results";$r.RESULT_SELECTOR=".djs-search-result";$r.RESULT_SELECTED_CLASS="djs-search-result-selected";$r.RESULT_SELECTED_SELECTOR="."+$r.RESULT_SELECTED_CLASS;$r.RESULT_ID_ATTRIBUTE="data-result-id";$r.RESULT_HIGHLIGHT_CLASS="djs-search-highlight";$r.BOX_HTML=`<div class="djs-search-container djs-scrollable">
|
||
<div class="djs-search-input">
|
||
<svg class="djs-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>
|
||
</svg>
|
||
<input type="text" spellcheck="false" />
|
||
</div>
|
||
<div class="djs-search-results" />
|
||
</div>`;$r.RESULT_HTML='<div class="djs-search-result"></div>';$r.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>';$r.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';const Gqn={__depends__:[Az,kz,xg],searchPad:["type",$r]};function lme(e,n,r,i){this._elementRegistry=e,this._canvas=r,this._search=i,n.registerProvider(this)}lme.$inject=["elementRegistry","searchPad","canvas","search"];lme.prototype.find=function(e){var n=this._canvas.getRootElements(),r=this._elementRegistry.filter(function(i){return!Ni(i)&&!n.includes(i)});return this._search(r.map(i=>({element:i,label:sg(i),id:i.id})),e,{keys:["label","id"]}).map(Wqn)};function Wqn(e){const{item:{element:n},tokens:r}=e;return{element:n,primaryTokens:r.label,secondaryTokens:r.id}}const Yqn={__depends__:[Gqn,Vet],__init__:["bpmnSearch"],bpmnSearch:["type",lme]},qqn="M44.7648 11.3263L36.9892 2.64074C36.0451 1.58628 34.5651 0.988708 33.1904 0.988708H5.98667C3.22688 0.988708 0.989624 3.34892 0.989624 6.26039V55.0235C0.989624 57.9349 3.22688 60.2952 5.98667 60.2952H40.966C43.7257 60.2952 45.963 57.9349 45.963 55.0235V14.9459C45.963 13.5998 45.6407 12.3048 44.7648 11.3263Z",Kqn="M1.03845 48.1347C1.03845 49.3511 1.07295 50.758 1.38342 52.064C1.69949 53.3938 2.32428 54.7154 3.56383 55.6428C6.02533 57.4841 10.1161 58.7685 14.8212 59.6067C19.5772 60.4538 25.1388 60.8738 30.6831 60.8738C36.2276 60.8738 41.7891 60.4538 46.545 59.6067C51.2504 58.7687 55.3412 57.4842 57.8028 55.6429C59.0424 54.7156 59.6673 53.3938 59.9834 52.064C60.2938 50.7579 60.3285 49.351 60.3285 48.1344V13.8415C60.3285 12.6249 60.2938 11.218 59.9834 9.91171C59.6673 8.58194 59.0423 7.2602 57.8027 6.33294C55.341 4.49168 51.2503 3.20723 46.545 2.36914C41.7891 1.522 36.2276 1.10204 30.6831 1.10205C25.1388 1.10206 19.5772 1.52206 14.8213 2.36923C10.1162 3.20734 6.02543 4.49183 3.5639 6.33314C2.32433 7.26038 1.69951 8.58206 1.38343 9.91181C1.07295 11.2179 1.03845 12.6247 1.03845 13.8411V48.1347Z",Xqn={width:36,height:50},Qqn={width:50,height:50};function Mke(e,n,r){return pr("path",{d:e,strokeWidth:2,transform:`translate(${n.x}, ${n.y})`,...r})}const bb=5;function bV(e,n){this._styles=n,e.registerProvider(this)}bV.$inject=["outline","styles"];bV.prototype.getOutline=function(e){const n=this._styles.cls("djs-outline",["no-fill"]);var r;if(!Ni(e))return Fe(e,"bpmn:Gateway")?(r=pr("rect"),Rt(r.style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),Gn(r,Rt({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},n))):ii(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?(r=pr("rect"),Gn(r,Rt({x:-bb,y:-bb,rx:14,width:e.width+bb*2,height:e.height+bb*2},n))):Fe(e,"bpmn:EndEvent")?(r=pr("circle"),Gn(r,Rt({cx:e.width/2,cy:e.height/2,r:e.width/2+bb+1},n))):Fe(e,"bpmn:Event")?(r=pr("circle"),Gn(r,Rt({cx:e.width/2,cy:e.height/2,r:e.width/2+bb},n))):Fe(e,"bpmn:DataObjectReference")&&Pke(e,"bpmn:DataObjectReference")?r=Mke(qqn,{x:-6,y:-6},n):Fe(e,"bpmn:DataStoreReference")&&Pke(e,"bpmn:DataStoreReference")&&(r=Mke(Kqn,{x:-6,y:-6},n)),r};bV.prototype.updateOutline=function(e,n){if(!Ni(e))return ii(e,["bpmn:SubProcess","bpmn:Group"])?(Gn(n,{width:e.width+bb*2,height:e.height+bb*2}),!0):!!ii(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};function Pke(e,n){var r;return n==="bpmn:DataObjectReference"?r=Xqn:n==="bpmn:DataStoreReference"&&(r=Qqn),e.width===r.width&&e.height===r.height}const Zqn={__depends__:[Hnt],__init__:["outlineProvider"],outlineProvider:["type",bV]};var Jqn='<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>';function _m(e){TL.call(this,e)}Zn(_m,TL);_m.Viewer=yS;_m.NavigatedViewer=oD;_m.prototype.createDiagram=function(){return this.importXML(Jqn)};_m.prototype._interactionModules=[vet,Eet,xet];_m.prototype._modelingModules=[QUn,Yhe,bHn,hHn,jHn,Zhe,WHn,ZWn,rnt,eV,nYn,oYn,EYn,wYn,xYn,NYn,HYn,Tnt,qYn,oqn,gqn,vqn,Fnt,zqn,Yqn,Zqn];_m.prototype._modules=[].concat(yS.prototype._modules,_m.prototype._interactionModules,_m.prototype._modelingModules);const eKn=({isEdit:e=!1,showCreateModal:n,handleCreate:r,handleCancel:i})=>{const o=Fr();console.log("isEdit",e);const[a]=mi.useForm(),s=()=>Math.random().toString(36).substring(2,15);m.useEffect(()=>{e||a.setFieldsValue({key:s(),type:xF})},[e,a]);const l=()=>{a.validateFields().then(async c=>{console.log("handleSaveDep:",c),r(c)}).catch(c=>{console.log("Failed:",c),Nt.error("请检查输入内容")})};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:o.formatMessage({id:"ticket.create.modal.title"}),open:n,onOk:l,onCancel:i,children:N.jsxs(mi,{form:a,name:"ticketCreateForm",submitter:!1,children:[N.jsx(eo,{name:"name",label:o.formatMessage({id:"ticket.create.name"}),rules:[{required:!0}]}),N.jsx(eo,{name:"key",label:o.formatMessage({id:"ticket.create.key"}),rules:[{required:!0,message:"请输入流程key"},{pattern:/^[a-z0-9_]+$/,message:"流程key只能包含小写字母、数字和下划线"}]}),N.jsx(hC,{name:"type",label:o.formatMessage({id:"ticket.create.type"}),options:[{label:o.formatMessage({id:"ticket.type.ticket"}),value:xF}],rules:[{required:!0}]}),N.jsx(Qk,{name:"description",label:o.formatMessage({id:"ticket.create.description"})})]})})})},tKn=({element:e,modeler:n})=>{var f,p,h;const r=Fr(),i=m.useCallback(async g=>{if(!(!n||!e))try{const v=n.get("modeling"),y=n.get("bpmnFactory"),_=n.get("elementRegistry"),S={};if(Object.entries(g).forEach(([b,E])=>{switch(b){case"id":E&&E!==e.id&&v.updateProperties(e,{id:E});break;case"name":S.name=E;break;case"documentation":if(E){const w=y.create("bpmn:Documentation",{text:E});S.documentation=[w]}else S.documentation=[];break;case"assignee":e.type==="bpmn:UserTask"&&(S.assignee=E);break;case"priority":e.type==="bpmn:UserTask"&&(S.priority=E);break}}),Object.keys(S).length>0){v.updateProperties(e,S);const b=_.get(e.id);console.log("Updated element:",b);const{xml:E}=await n.saveXML({format:!0});console.log("Updated XML:",E)}}catch(v){console.error("Error updating properties:",v)}},[e,n]);if(!e||!n)return N.jsx(_u,{title:r.formatMessage({id:"ticket.properties.title"}),children:r.formatMessage({id:"ticket.properties.noSelection"})});const o=e.businessObject||{},a=e.id||"",s=o.name||"",l=((p=(f=o.documentation)==null?void 0:f[0])==null?void 0:p.text)||"",c=((h=e.type)==null?void 0:h.replace("bpmn:",""))||"",u=o.assignee||"",d=o.priority||"";return console.log("Rendering properties for element:",{id:a,name:s,documentation:l,type:c,assignee:u,priority:d,businessObject:o}),N.jsx(_u,{title:r.formatMessage({id:"ticket.properties.title"}),style:{height:"100%",overflowY:"auto"},children:N.jsxs(mi,{submitter:!1,onValuesChange:i,initialValues:{id:a,name:s,documentation:l,type:c,assignee:u,priority:d},children:[N.jsx(eo,{name:"id",label:r.formatMessage({id:"ticket.properties.id"}),disabled:!0}),N.jsx(eo,{name:"name",label:r.formatMessage({id:"ticket.properties.name"})}),N.jsx(hC,{name:"type",label:r.formatMessage({id:"ticket.properties.type"}),disabled:!0,options:[{label:c,value:c}]}),N.jsx(Qk,{name:"documentation",label:r.formatMessage({id:"ticket.properties.documentation"})}),e.type==="bpmn:UserTask"&&N.jsxs(N.Fragment,{children:[N.jsx(eo,{name:"assignee",label:r.formatMessage({id:"ticket.properties.assignee"})}),N.jsx(hC,{name:"priority",label:r.formatMessage({id:"ticket.properties.priority"}),options:[{label:"Low",value:"50"},{label:"Medium",value:"100"},{label:"High",value:"150"}]})]})]},a)})},nKn=V.memo(tKn);async function rKn(e){return so("/api/v1/ticket/process/query/org",{method:"GET",params:{...e}})}async function iKn(e){return so("/api/v1/ticket/process/create",{method:"POST",data:{...e}})}async function oKn(e){return so("/api/v1/ticket/process/update",{method:"POST",data:{...e}})}async function aKn(e){return so("/api/v1/ticket/process/delete",{method:"POST",data:{...e}})}async function sKn(e){return so("/api/v1/ticket/process/query/deployments",{method:"GET",params:{...e}})}async function lKn(e){return so("/api/v1/ticket/process/deploy",{method:"POST",data:{...e}})}async function cKn(e){return so("/api/v1/ticket/process/undeploy",{method:"POST",data:{...e}})}const uKn=({file:e,onDelete:n,showDelete:r=!0})=>{var o,a;const i=Fr();return N.jsxs("div",{style:{position:"relative",width:"50px",height:"50px",border:"1px solid #f0f0f0",borderRadius:"4px",overflow:"hidden"},title:i.formatMessage({id:(o=e==null?void 0:e.fileType)!=null&&o.startsWith("image/")?"upload.preview.image":"upload.preview.file"}),children:[r&&N.jsx(qn,{type:"text",size:"small",icon:N.jsx(sw,{}),onClick:()=>n(e.uid),style:{position:"absolute",top:0,right:0,padding:"2px",background:"rgba(255, 255, 255, 0.8)",border:"none",borderRadius:"0 4px 0 4px",zIndex:1}}),N.jsx("div",{onClick:()=>window.open(e.fileUrl,"_blank"),style:{width:"100%",height:"100%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(a=e==null?void 0:e.fileType)!=null&&a.startsWith("image/")?N.jsx("img",{src:e==null?void 0:e.fileUrl,alt:e==null?void 0:e.fileName,style:{width:"100%",height:"100%",objectFit:"cover"}}):N.jsx("div",{style:{fontSize:"12px",padding:"4px",textAlign:"center",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.fileName})}),N.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"rgba(0, 0, 0, 0.5)",color:"#fff",fontSize:"10px",padding:"2px",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.fileName})]},e.uid)},{Dragger:dKn}=ig,trt=({type:e,acceptType:n,isModalOpen:r,attachments:i,handleSubmit:o,handleCancel:a})=>{const s=Fr(),[l,c]=m.useState([]),u=Jm(C=>C.currentOrg),[d,f]=m.useState([]),[p,h]=m.useState({file:null,fileName:"test.pdf",fileType:"application/pdf",isAvatar:"false",kbType:e,categoryUid:"",kbUid:"",orgUid:u==null?void 0:u.uid,client:xo,extra:{autoGenerateLlmQa:"false",autoLlmSplit:"false"}}),[g,v]=m.useState([]),[y,_]=m.useState(!1),S=m.useMemo(()=>({name:"file",multiple:!0,accept:n,action:RF(),headers:{Authorization:"Bearer "+localStorage.getItem(G1)},data:{...p},fileList:g,showUploadList:!0,beforeUpload(C){var T;if(C.size>10485760)return Nt.error(s.formatMessage({id:"upload.size.limit",defaultMessage:"文件大小不能超过10MB"})),ig.LIST_IGNORE;if(c(R=>[...R,C]),n&&n!=="*"){const R=n.split(","),O="."+((T=C.name.split(".").pop())==null?void 0:T.toLowerCase());if(!R.some(M=>M==="*"?!0:M.startsWith(".")?O===M:C.type===M))return Nt.error(s.formatMessage({id:"upload.type.invalid",defaultMessage:"不支持的文件类型: {fileType},请选择 {acceptTypes} 格式的文件"},{fileType:C.type||O,acceptTypes:n})),ig.LIST_IGNORE}return v(R=>[...R,{...C,status:"done",name:C.name,uid:C.uid,originFileObj:C}]),!1},onRemove:C=>{v(x=>x.filter(T=>T.uid!==C.uid))},onChange(C){var x;C.file.status==="uploading"&&Nt.loading(s.formatMessage({id:"upload.uploading"},{filename:C.file.name})),C.file.status==="done"?((x=C.file.response)==null?void 0:x.code)===200?(Nt.destroy(),Nt.success(s.formatMessage({id:"upload.success"},{filename:C.file.name})),f(T=>[...T,C.file.response.data])):(Nt.destroy(),Nt.error(s.formatMessage({id:"upload.failed"},{filename:C.file.name}))):C.file.status==="error"&&Nt.error(s.formatMessage({id:"upload.failed"},{filename:C.file.name}))},onDrop(C){if(console.log("Dropped files",C.dataTransfer.files),n&&n!=="*"&&C.dataTransfer.files.length>0){const x=n.split(","),T=Array.from(C.dataTransfer.files).filter(R=>{var M;const O="."+((M=R.name.split(".").pop())==null?void 0:M.toLowerCase());return!x.some(P=>P==="*"?!0:P.startsWith(".")?O===P:R.type===P)});if(T.length>0){const R=T.map(O=>O.name).join(", ");Nt.error(s.formatMessage({id:"upload.drop.type.invalid",defaultMessage:"拖入的文件包含不支持的类型: {fileNames},请选择 {acceptTypes} 格式的文件"},{fileNames:R,acceptTypes:n}))}}}}),[p,g,s,n]);m.useEffect(()=>{h(C=>({...C,kbType:e,categoryUid:""})),i&&f(i.map(C=>C.upload)),v([])},[e,i]);const b=()=>{o(l,d)},E=C=>{console.log("handleDelete",C);const x=d.find(R=>R.uid===C);if(!x)return;const T=x.fileName.split("_").slice(1).join("_");c(R=>R.filter(O=>O.name!==T)),f(R=>R.filter(O=>O.uid!==C))},w=async()=>{if(g.length===0){Nt.warning(s.formatMessage({id:"upload.nofiles",defaultMessage:"请先选择文件"}));return}_(!0);const C=g.map(x=>{const T=new FormData;if(x.originFileObj)T.append("file",x.originFileObj);else if(console.error("originFileObj is missing for file:",x),x instanceof File)T.append("file",x),console.log("Used file directly as it is a File instance");else return x.url?(console.error("File has URL but no originFileObj:",x.url),Promise.reject(new Error("No file object available"))):Promise.reject(new Error("Invalid file object and no alternatives"));const R=zn(new Date).format("YYYYMMDDHHmmss")+"_"+x.name;return T.append("fileName",R),T.append("fileType",x.type||"application/octet-stream"),T.append("isAvatar","false"),T.append("kbType",e),T.append("categoryUid",p.categoryUid||""),T.append("kbUid",""),T.append("orgUid",(u==null?void 0:u.uid)||""),T.append("client",xo),fetch(RF(),{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(G1)},body:T}).then(O=>{if(!O.ok)throw new Error(`HTTP error! status: ${O.status}`);return O.json()}).catch(O=>{throw console.error("Upload error for file:",x.name,O),O})});try{Nt.loading(s.formatMessage({id:"upload.batch.uploading",defaultMessage:"正在上传文件..."}));const x=await Promise.allSettled(C),T=x.filter(O=>{var M;return O.status==="fulfilled"&&((M=O.value)==null?void 0:M.code)===200}).map(O=>O.value.data),R=x.filter(O=>{var M;return O.status==="rejected"||O.status==="fulfilled"&&((M=O.value)==null?void 0:M.code)!==200}).length;f(O=>[...O,...T]),v([]),Nt.destroy(),R===0?Nt.success(s.formatMessage({id:"upload.batch.success",defaultMessage:"成功上传 {count} 个文件"},{count:T.length})):Nt.warning(s.formatMessage({id:"upload.batch.partial",defaultMessage:"成功上传 {success} 个文件,{failed} 个文件上传失败"},{success:T.length,failed:R}))}catch(x){console.error("上传错误:",x),Nt.destroy(),Nt.error(s.formatMessage({id:"upload.batch.error",defaultMessage:"上传过程发生错误"}))}finally{_(!1)}};return N.jsxs(fa,{title:s.formatMessage({id:"upload.modal.title"}),open:r,onOk:b,onCancel:a,children:[N.jsxs(dKn,{...S,children:[N.jsx("p",{className:"ant-upload-drag-icon",children:N.jsx(cVt,{})}),N.jsx("p",{className:"ant-upload-text",children:s.formatMessage({id:"upload.drag.text"})}),N.jsx("p",{className:"ant-upload-hint",children:n?s.formatMessage({id:"upload.drag.hint.withtype.size",defaultMessage:"支持单个或批量上传 {acceptTypes} 格式的文件,文件大小不超过10MB"},{acceptTypes:n.replace(/\./g,"")}):s.formatMessage({id:"upload.drag.hint.size"})})]}),N.jsx("div",{style:{marginTop:"16px",textAlign:"center"},children:N.jsxs(qn,{type:"primary",onClick:w,disabled:g.length===0,loading:y,icon:N.jsx(Lzt,{}),children:[s.formatMessage({id:"upload.start",defaultMessage:"开始上传"}),g.length>0&&` (${g.length})`]})}),d.length>0&&N.jsxs("div",{style:{marginTop:"16px",maxHeight:"200px",overflowY:"auto"},children:[N.jsx("h4",{children:s.formatMessage({id:"upload.uploaded.files",defaultMessage:"已上传文件"})}),N.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:d.map(C=>N.jsx(uKn,{file:C,onDelete:E},C.uid))})]})]})},{Header:fKn,Content:pKn}=bo,Ake=`<?xml version="1.0" encoding="UTF-8"?>
|
||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||
xmlns:flowable="http://flowable.org/bpmn"
|
||
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
|
||
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
|
||
xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
|
||
typeLanguage="http://www.w3.org/2001/XMLSchema"
|
||
expressionLanguage="http://www.w3.org/1999/XPath"
|
||
targetNamespace="BytedeskTicket"
|
||
exporter="Flowable Open Source Modeler"
|
||
exporterVersion="6.8.0">
|
||
<process id="Process_1" name="Empty Process" isExecutable="true">
|
||
<documentation>Empty process for ticket workflow</documentation>
|
||
<startEvent id="StartEvent_1" name="Start" flowable:formFieldValidation="true">
|
||
<documentation>Start of the process</documentation>
|
||
</startEvent>
|
||
</process>
|
||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
|
||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
||
<omgdc:Bounds x="152" y="102" width="36" height="36"/>
|
||
<bpmndi:BPMNLabel>
|
||
<omgdc:Bounds x="158" y="145" width="24" height="14"/>
|
||
</bpmndi:BPMNLabel>
|
||
</bpmndi:BPMNShape>
|
||
</bpmndi:BPMNPlane>
|
||
</bpmndi:BPMNDiagram>
|
||
</definitions>`,nrt=()=>{const e=Fr(),{isDarkMode:n}=Mu(),{translateString:r}=Vp(),i=m.useRef(null),o=m.useRef(null),[a,s]=m.useState(!1),[l,c]=m.useState(!1),[u,d]=m.useState(!1),[f,p]=m.useState(null),{headerStyle:h}=c_(),[g,v]=m.useState([]),y=ws(G=>G.userInfo),_=ws(G=>G.setUserInfo),{currentOrg:S,setCurrentOrg:b}=Jm(G=>({currentOrg:G.currentOrg,setCurrentOrg:G.setCurrentOrg})),E=m2(G=>G.currentProcess),w=m2(G=>G.setCurrentProcess),C=m2(G=>G.processResult),x=m2(G=>G.setProcessResult),T={color:n?"#fff":"#000",display:"flex",alignItems:"center",margin:0,"& .title-text":{marginRight:16},"& .title-actions":{display:"flex",alignItems:"center",gap:8}},R=async G=>{console.log("Menu clicked:",G);const Q=C.data.content.find(le=>le.uid===G.key);if(Q){if(console.log("Selected process:",Q),u)try{const{xml:le}=await o.current.saveXML({format:!0});await U(le)}catch(le){console.error("Error saving current process:",le)}w(Q),d(!1),p(null)}},O={items:g,selectedKeys:E?[E.uid]:[],onClick:R},M=async()=>{const G=await oz();console.log("initProfile response:",G.data),G.data.code===200?(_(G.data.data),b(G.data.data.currentOrganization)):Nt.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))},P=async()=>{const G=await sKn({pageNumber:0,pageSize:100,orgUid:S==null?void 0:S.uid});console.log("Fetch process deployments response:",G.data),G.data.code===200||Nt.error(e.formatMessage({id:"ticket.fetch.processes.error"}))},k=async()=>{if(Nt.loading(e.formatMessage({id:"ticket.fetch.processes.loading"})),!(S!=null&&S.uid)){await M();return}const G=await rKn({pageNumber:0,pageSize:100,orgUid:S==null?void 0:S.uid,type:xF});console.log("Fetch processes response:",G.data),G.data.code===200?(G.data.data.content.length===0&&(Nt.warning(e.formatMessage({id:"ticket.fetch.processes.empty"})),c(!0)),x(G.data),Nt.destroy()):(Nt.destroy(),Nt.error(e.formatMessage({id:"ticket.fetch.processes.error"})))};m.useEffect(()=>{k(),P()},[]),m.useEffect(()=>{console.log("currentOrg changed:",S),k()},[S]),m.useEffect(()=>{var G,Q,le;if(console.log("processResult changed:",C),console.log("currentProcess:",E),(G=C==null?void 0:C.data)!=null&&G.content){const Z=C.data.content.map(F=>({key:F.uid,label:r(F.name)}));console.log("New dropdown items:",Z),v(Z);const j=C.data.content.find(F=>F.uid===(E==null?void 0:E.uid));j&&w(j)}!E&&((le=(Q=C==null?void 0:C.data)==null?void 0:Q.content)==null?void 0:le.length)>0&&(console.log("Setting initial process"),w(C.data.content[0]))},[C,E]),m.useEffect(()=>{E?(console.log("initBpmnModeler currentProcess:",E),$(E==null?void 0:E.content)):$(Ake)},[E]);const $=async G=>{if(i.current){o.current&&o.current.destroy(),i.current.innerHTML="";const Q=new _m({container:i.current,additionalModules:[],...n?{propertiesPanel:{parent:"#properties",style:{background:"#141414",color:"#fff"}},canvas:{drdBackgroundColor:"#141414",gridColor:"#2a2a2a"}}:{}});try{await Q.importXML(G),Q.get("canvas").zoom("fit-viewport");const Z=Q.get("eventBus"),j=oe=>{console.log("Selection changed:",oe),oe.newSelection&&oe.newSelection.length?p(oe.newSelection[0]):oe.element?p(oe.element):p(null)},F=()=>{console.log("Diagram changed"),d(!0)};Z.on("selection.changed",j),Z.on("element.click",j),["commandStack.changed","element.changed","shape.added","shape.removed","connect.end"].forEach(oe=>{Z.on(oe,F)}),o.current=Q}catch(le){console.error("Error initializing modeler:",le),Nt.error(e.formatMessage({id:"ticket.create.error"}))}}};m.useEffect(()=>(E?(console.log("initBpmnModeler Current process:",E),$(E==null?void 0:E.content)):(console.log("initBpmnModeler No current process, initializing empty process"),$(Ake)),()=>{o.current&&o.current.destroy()}),[]);const U=async G=>{try{if(!E){console.warn("No current process to save");return}const Q=G.includes("xmlns:flowable")?G:G.replace('xmlns:modeler="http://camunda.org/schema/modeler/1.0"','xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:flowable="http://flowable.org/bpmn"'),le={...E,content:Q};console.log("Update process:",{processUid:le.uid,processName:le.name,currentProcessUid:E.uid});const Z=await oKn({uid:le.uid,name:le.name,key:le.key,description:le.description,content:Q,orgUid:S==null?void 0:S.uid});console.log("Update response:",Z.data),Z.data.code===200?(w(Z.data.data),d(!1),Nt.success(e.formatMessage({id:"ticket.autosave.success"})),k()):Nt.error(e.formatMessage({id:"ticket.save.error"}))}catch(Q){console.error("Error auto-saving diagram:",Q),Nt.error(e.formatMessage({id:"ticket.autosave.error"}))}};m.useEffect(()=>{if(!u||!o.current||!E)return;const G=setTimeout(async()=>{},2e3);return()=>{clearTimeout(G)}},[u,E]);const z=async()=>{try{const{xml:G}=await o.current.saveXML({format:!0}),Q=G.includes("xmlns:flowable")?G:G.replace('xmlns:modeler="http://camunda.org/schema/modeler/1.0"','xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:flowable="http://flowable.org/bpmn"'),le=new Blob([Q],{type:"text/xml"}),Z=URL.createObjectURL(le),j=document.createElement("a");j.href=Z;const F=new Date().toISOString().replace(/[^0-9]/g,"").slice(0,14);j.download=`${F}_workflow.bpmn20.xml`,j.click(),URL.revokeObjectURL(Z),Nt.success(e.formatMessage({id:"ticket.export.success"}))}catch(G){console.error("Error exporting BPMN:",G),Nt.error(e.formatMessage({id:"ticket.export.error"}))}},D=async(G,Q)=>{if(console.log("handleUploadDragSubmit files:",G,"uploads:",Q),s(!1),!G.length){Nt.error(e.formatMessage({id:"ticket.import.no.file"}));return}const le=G[0],Z=new FileReader;Z.onload=async j=>{var F;try{const te=(F=j.target)==null?void 0:F.result;if(!te||typeof te!="string")throw new Error("Invalid XML content");console.log("Importing XML:",te),await $(te),Nt.success(e.formatMessage({id:"ticket.import.success"}))}catch(te){console.error("Error importing BPMN:",te),Nt.error(e.formatMessage({id:"ticket.import.error"},{error:te.message}))}},Z.onerror=j=>{console.error("Error reading file:",j),Nt.error(e.formatMessage({id:"ticket.import.read.error"}))},Z.readAsText(le)},B=(E==null?void 0:E.userUid)===null,Y=async G=>{console.log("Create values:",G);try{Nt.loading(e.formatMessage({id:"ticket.create.loading"}));const Q=`<?xml version="1.0" encoding="UTF-8"?>
|
||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||
xmlns:flowable="http://flowable.org/bpmn"
|
||
xmlns:activiti="http://activiti.org/bpmn"
|
||
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
|
||
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
|
||
xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
|
||
typeLanguage="http://www.w3.org/2001/XMLSchema"
|
||
expressionLanguage="http://www.w3.org/1999/XPath"
|
||
targetNamespace="http://flowable.org/test"
|
||
exporter="Flowable Open Source Modeler"
|
||
exporterVersion="6.8.0">
|
||
<process id="Process_${G.key}" name="${G.name}" isExecutable="true">
|
||
<documentation>${G.description||""}</documentation>
|
||
<startEvent id="StartEvent_1" name="Start" flowable:formFieldValidation="true">
|
||
<documentation>Start of the process</documentation>
|
||
</startEvent>
|
||
<sequenceFlow id="Flow_1" sourceRef="StartEvent_1" targetRef="UserTask_1" />
|
||
<userTask id="UserTask_1" name="First Task" flowable:assignee="\${initiator}">
|
||
<documentation>First task in the process</documentation>
|
||
</userTask>
|
||
</process>
|
||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_${G.key}">
|
||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
||
<omgdc:Bounds x="152" y="102" width="36" height="36"/>
|
||
<bpmndi:BPMNLabel>
|
||
<omgdc:Bounds x="158" y="145" width="24" height="14"/>
|
||
</bpmndi:BPMNLabel>
|
||
</bpmndi:BPMNShape>
|
||
<bpmndi:BPMNShape id="UserTask_1_di" bpmnElement="UserTask_1">
|
||
<omgdc:Bounds x="270" y="80" width="100" height="80"/>
|
||
</bpmndi:BPMNShape>
|
||
<bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1">
|
||
<omgdi:waypoint x="188" y="120"/>
|
||
<omgdi:waypoint x="270" y="120"/>
|
||
</bpmndi:BPMNEdge>
|
||
</bpmndi:BPMNPlane>
|
||
</bpmndi:BPMNDiagram>
|
||
</definitions>`;console.log("Generated XML:",Q);try{await o.current.importXML(Q);const{xml:le}=await o.current.saveXML({format:!0});console.log("Validated XML:",le);const Z=await iKn({name:G.name,key:G.key,description:G.description,content:le,type:xF,orgUid:S==null?void 0:S.uid,userUid:y==null?void 0:y.uid});console.log("Create process response:",Z),Z.data.code===200?(w(Z.data.data),await $(le),c(!1),Nt.destroy(),Nt.success(e.formatMessage({id:"ticket.create.success"})),k()):(Nt.destroy(),Nt.error(e.formatMessage({id:"ticket.create.error"})))}catch(le){console.error("Error importing or validating BPMN:",le),console.error("Invalid XML:",Q),Nt.destroy(),Nt.error(e.formatMessage({id:"ticket.create.error.invalid",defaultMessage:"Invalid BPMN structure"}))}}catch(Q){console.error("Error creating new process:",Q),Nt.destroy(),Nt.error(e.formatMessage({id:"ticket.create.error"}))}},q=async()=>{if(console.log("handleSave"),E){const{xml:G}=await o.current.saveXML({format:!0});await U(G)}},K=async()=>{if(console.log("handleDeploy",E),E)if(E!=null&&E.deployed)fa.confirm({title:e.formatMessage({id:"ticket.undeploy.confirm.title"}),content:e.formatMessage({id:"ticket.undeploy.confirm.content"}),okText:e.formatMessage({id:"common.yes"}),cancelText:e.formatMessage({id:"common.no"}),onOk:async()=>{Nt.loading(e.formatMessage({id:"ticket.undeploy.loading"}));const G={uid:E==null?void 0:E.uid,orgUid:S==null?void 0:S.uid},Q=await cKn(G);console.log("Undeploy process response:",G,Q.data),Q.data.code===200?(Nt.destroy(),Nt.success(e.formatMessage({id:"ticket.undeploy.success"})),k()):(Nt.destroy(),Nt.error(Q.data.message))}});else{Nt.loading(e.formatMessage({id:"ticket.deploy.loading"}));const G={uid:E==null?void 0:E.uid,orgUid:S==null?void 0:S.uid},Q=await lKn(G);console.log("Deploy process response:",G,Q.data),Q.data.code===200?(Nt.destroy(),Nt.success(e.formatMessage({id:"ticket.deploy.success"})),k()):(Nt.destroy(),Nt.error(Q.data.message))}},H=async()=>{console.log("handleDelete"),fa.confirm({title:e.formatMessage({id:"ticket.delete.confirm"}),onOk:async()=>{if(E){const G=await aKn({uid:E.uid,orgUid:S==null?void 0:S.uid});console.log("Delete process response:",G),G.data.code===200?(Nt.success(e.formatMessage({id:"ticket.delete.success"})),k(),w(null)):Nt.error(e.formatMessage({id:"ticket.delete.failed"}))}}})};return m.useEffect(()=>{const G=document.createElement("style");G.textContent=`
|
||
/* 基础文本样式 */
|
||
.djs-label {
|
||
font-family: 'Arial', sans-serif !important;
|
||
font-size: 12px !important;
|
||
font-weight: normal !important;
|
||
}
|
||
|
||
/* 深色模式工具栏 */
|
||
.dark-mode .djs-palette {
|
||
background-color: #262626 !important;
|
||
border-color: #434343 !important;
|
||
}
|
||
|
||
.dark-mode .djs-palette .entry {
|
||
color: rgba(255, 255, 255, 0.85) !important;
|
||
background-color: #262626 !important;
|
||
}
|
||
|
||
.dark-mode .djs-palette .entry:hover {
|
||
background-color: #1f1f1f !important;
|
||
}
|
||
|
||
.dark-mode .djs-palette .separator {
|
||
border-color: #434343 !important;
|
||
}
|
||
|
||
/* 浅色模式工具栏 */
|
||
.light-mode .djs-palette {
|
||
background-color: #fff !important;
|
||
border-color: #d9d9d9 !important;
|
||
}
|
||
|
||
.light-mode .djs-palette .entry {
|
||
color: rgba(0, 0, 0, 0.85) !important;
|
||
background-color: #fff !important;
|
||
}
|
||
|
||
.light-mode .djs-palette .entry:hover {
|
||
background-color: #f5f5f5 !important;
|
||
}
|
||
|
||
.light-mode .djs-palette .separator {
|
||
border-color: #d9d9d9 !important;
|
||
}
|
||
|
||
/* 其他深色模式样式保持不变... */
|
||
.dark-mode .djs-container {
|
||
background-color: #141414 !important;
|
||
}
|
||
|
||
.dark-mode .djs-shape {
|
||
fill: #262626 !important;
|
||
}
|
||
|
||
.dark-mode .djs-shape .djs-visual > :nth-child(1) {
|
||
fill: #262626 !important;
|
||
stroke: #434343 !important;
|
||
}
|
||
|
||
.dark-mode .djs-shape .djs-visual > :nth-child(2) {
|
||
fill: rgba(255, 255, 255, 0.85) !important;
|
||
}
|
||
|
||
.dark-mode .djs-connection .djs-visual path {
|
||
stroke: rgba(255, 255, 255, 0.85) !important;
|
||
}
|
||
|
||
.dark-mode .djs-connection .djs-visual text,
|
||
.dark-mode .djs-connection-label text {
|
||
font-family: 'Arial', sans-serif !important;
|
||
font-size: 11px !重要;
|
||
font-weight: 300 !important;
|
||
fill: rgba(255, 255, 255, 0.85) !important;
|
||
stroke: none !important;
|
||
}
|
||
|
||
.dark-mode .djs-connection .djs-label rect {
|
||
fill: #262626 !important;
|
||
stroke: none !important;
|
||
}
|
||
|
||
.dark-mode .djs-context-pad {
|
||
background-color: #262626 !important;
|
||
border-color: #434343 !important;
|
||
}
|
||
|
||
.dark-mode .djs-context-pad .entry {
|
||
background-color: #262626 !important;
|
||
color: rgba(255, 255, 255, 0.85) !important;
|
||
border-color: #434343 !important;
|
||
}
|
||
|
||
.dark-mode .djs-context-pad .entry:hover {
|
||
background-color: #1f1f1f !important;
|
||
}
|
||
|
||
.dark-mode .djs-selection {
|
||
stroke: #177ddc !important;
|
||
stroke-width: 2px !important;
|
||
}
|
||
|
||
.dark-mode .djs-selected .djs-visual > * {
|
||
stroke: #177ddc !important;
|
||
stroke-width: 2px !important;
|
||
}
|
||
|
||
.dark-mode .djs-grid {
|
||
stroke: #262626 !important;
|
||
}
|
||
`,document.head.appendChild(G);const Q=i.current;return Q&&(Q.classList.remove("dark-mode","light-mode"),Q.classList.add(n?"dark-mode":"light-mode")),()=>{document.head.removeChild(G)}},[n]),N.jsxs(bo,{style:{height:"100%"},children:[N.jsx(fKn,{style:h,children:N.jsxs("div",{className:"header-content",children:[N.jsxs("h1",{style:T,children:[N.jsx("span",{className:"title-text",style:{color:n?"#fff":"#000"},children:e.formatMessage({id:"ticket.title"})}),N.jsxs("span",{className:"title-actions",style:{marginLeft:16},children:[N.jsx(qn,{type:"primary",icon:N.jsx(bA,{}),onClick:()=>{q(),c(!0)},style:{marginRight:8},children:e.formatMessage({id:"ticket.create"})}),N.jsx(kde,{menu:O,trigger:["click"],children:N.jsx("a",{onClick:G=>G.preventDefault(),style:{color:n?"#fff":"#000",opacity:.85},children:N.jsx(Ef,{children:C.data.content.length>0?N.jsxs("span",{children:[r(E==null?void 0:E.name)||e.formatMessage({id:"ticket.select.process"}),N.jsx(cI,{})]}):N.jsx("span",{children:e.formatMessage({id:"ticket.no.process"})})})})})]})]}),N.jsxs("div",{className:"header-actions",children:[N.jsx(qn,{type:"primary",icon:N.jsx(iS,{}),onClick:()=>s(!0),children:e.formatMessage({id:"ticket.import"})}),N.jsx(qn,{type:"primary",icon:N.jsx(Rk,{}),onClick:z,children:e.formatMessage({id:"ticket.export"})}),N.jsx(qn,{type:"primary",icon:N.jsx(jde,{}),onClick:q,children:e.formatMessage({id:"ticket.save"})}),N.jsx(qn,{type:"primary",icon:N.jsx(aVt,{}),onClick:K,children:E!=null&&E.deployed?e.formatMessage({id:"ticket.undeploy"}):e.formatMessage({id:"ticket.deploy"})}),!B&&N.jsx(qn,{type:"primary",icon:N.jsx(sw,{}),onClick:H,children:e.formatMessage({id:"ticket.delete"})})]})]})}),N.jsx(bo,{children:N.jsx(pKn,{style:{background:n?"#141414":"#fff",position:"relative",height:"calc(100vh - 64px)",display:"flex"},children:N.jsxs(v6,{children:[N.jsx(v6.Panel,{children:N.jsx("div",{ref:i,className:"bpmn-container",style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,background:n?"#141414":"#fff"}})}),N.jsx(v6.Panel,{defaultSize:"300",children:N.jsx(nKn,{element:f,modeler:o.current})})]})})}),a&&N.jsx(trt,{type:u_t,isModalOpen:a,handleSubmit:D,handleCancel:()=>s(!1)}),l&&N.jsx(eKn,{isEdit:!1,showCreateModal:l,handleCreate:Y,handleCancel:()=>c(!1)})]})};async function hKn(e){return so("/api/v1/org/create",{method:"POST",data:{...e,client:xo}})}const gKn=({open:e,onClose:n,onSuccess:r})=>{const i=Fr(),{userInfo:o}=qde(),[a,s]=m.useState(!1),[l,c]=m.useState(""),[u,d]=m.useState(!1),f=()=>{n()},p=()=>{Nt.error(i.formatMessage({id:"welcome.message.org.required"}))},h=async()=>{if(l===""){Nt.error(i.formatMessage({id:"welcome.message.org.name.required"}));return}s(!0),Nt.loading(i.formatMessage({id:"welcome.message.org.creating"}));const v=o!=null&&o.mobile?o==null?void 0:o.mobile:o==null?void 0:o.email,y={name:l,code:v,logo:"https://www.weiyuai.cn/logo.png",description:l+"description"};try{const _=await hKn(y);_.data.code===200?(s(!1),Nt.destroy(),Nt.success(i.formatMessage({id:"welcome.message.create.success"})),r(_.data.data),n()):(s(!1),Nt.destroy(),Nt.error(i.formatMessage({id:"welcome.message.create.failed"})))}catch{s(!1),Nt.destroy(),Nt.error(i.formatMessage({id:"welcome.message.create.failed"}))}},g=()=>{u?h():(d(!0),s(!1))};return N.jsxs(fa,{title:i.formatMessage({id:"welcome.modal.title"}),closable:!1,open:e,onCancel:p,maskClosable:!1,footer:[N.jsx(qn,{type:"primary",onClick:f,disabled:!0,children:i.formatMessage({id:"welcome.modal.join"})},"join"),N.jsx(qn,{type:"primary",loading:a,onClick:g,children:i.formatMessage({id:"welcome.modal.create"})},"create")],children:[N.jsx("p",{children:i.formatMessage({id:"welcome.modal.description"})}),u&&N.jsx(Oi,{placeholder:i.formatMessage({id:"welcome.modal.input.placeholder"}),value:l,onChange:v=>c(v.target.value),onPressEnter:h,autoFocus:!0})]})},mKn=({open:e,onClose:n})=>{const r=Fr(),i=Af(),o=()=>{n(),i("/setting/certification")},a=()=>{localStorage.setItem("skipVerification","true"),n()};return N.jsx(fa,{title:r.formatMessage({id:"welcome.verify.modal.title",defaultMessage:"账号验证提示"}),open:e,onCancel:a,footer:[N.jsx(qn,{onClick:a,children:r.formatMessage({id:"welcome.verify.later",defaultMessage:"稍后验证"})},"later"),N.jsx(qn,{type:"primary",onClick:o,children:r.formatMessage({id:"welcome.verify.now",defaultMessage:"立即验证"})},"now")],children:N.jsx("p",{children:r.formatMessage({id:"welcome.verify.modal.description",defaultMessage:"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。"})})})};/*! *****************************************************************************
|
||
Copyright (C) Microsoft. 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 Dke;(function(e){(function(n){var r=typeof globalThis=="object"?globalThis:typeof oo=="object"?oo:typeof self=="object"?self:typeof this=="object"?this:l(),i=o(e);typeof r.Reflect<"u"&&(i=o(r.Reflect,i)),n(i,r),typeof r.Reflect>"u"&&(r.Reflect=e);function o(c,u){return function(d,f){Object.defineProperty(c,d,{configurable:!0,writable:!0,value:f}),u&&u(d,f)}}function a(){try{return Function("return this;")()}catch{}}function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}function l(){return a()||s()}})(function(n,r){var i=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",a=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!l&&!c,d={create:l?function(){return xe(Object.create(null))}:c?function(){return xe({__proto__:null})}:function(){return xe({})},has:u?function(ue,Me){return i.call(ue,Me)}:function(ue,Me){return Me in ue},get:u?function(ue,Me){return i.call(ue,Me)?ue[Me]:void 0}:function(ue,Me){return ue[Me]}},f=Object.getPrototypeOf(Function),p=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:J(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ae(),g=typeof WeakMap=="function"?WeakMap:Se(),v=o?Symbol.for("@reflect-metadata:registry"):void 0,y=Oe(),_=Ne(y);function S(ue,Me,$e,ge){if(H($e)){if(!de(ue))throw new TypeError;if(!me(Me))throw new TypeError;return P(ue,Me)}else{if(!de(ue))throw new TypeError;if(!le(Me))throw new TypeError;if(!le(ge)&&!H(ge)&&!G(ge))throw new TypeError;return G(ge)&&(ge=void 0),$e=oe($e),k(ue,Me,$e,ge)}}n("decorate",S);function b(ue,Me){function $e(ge,Ve){if(!le(ge))throw new TypeError;if(!H(Ve)&&!ve(Ve))throw new TypeError;B(ue,Me,ge,Ve)}return $e}n("metadata",b);function E(ue,Me,$e,ge){if(!le($e))throw new TypeError;return H(ge)||(ge=oe(ge)),B(ue,Me,$e,ge)}n("defineMetadata",E);function w(ue,Me,$e){if(!le(Me))throw new TypeError;return H($e)||($e=oe($e)),$(ue,Me,$e)}n("hasMetadata",w);function C(ue,Me,$e){if(!le(Me))throw new TypeError;return H($e)||($e=oe($e)),U(ue,Me,$e)}n("hasOwnMetadata",C);function x(ue,Me,$e){if(!le(Me))throw new TypeError;return H($e)||($e=oe($e)),z(ue,Me,$e)}n("getMetadata",x);function T(ue,Me,$e){if(!le(Me))throw new TypeError;return H($e)||($e=oe($e)),D(ue,Me,$e)}n("getOwnMetadata",T);function R(ue,Me){if(!le(ue))throw new TypeError;return H(Me)||(Me=oe(Me)),Y(ue,Me)}n("getMetadataKeys",R);function O(ue,Me){if(!le(ue))throw new TypeError;return H(Me)||(Me=oe(Me)),q(ue,Me)}n("getOwnMetadataKeys",O);function M(ue,Me,$e){if(!le(Me))throw new TypeError;if(H($e)||($e=oe($e)),!le(Me))throw new TypeError;H($e)||($e=oe($e));var ge=ne(Me,$e,!1);return H(ge)?!1:ge.OrdinaryDeleteMetadata(ue,Me,$e)}n("deleteMetadata",M);function P(ue,Me){for(var $e=ue.length-1;$e>=0;--$e){var ge=ue[$e],Ve=ge(Me);if(!H(Ve)&&!G(Ve)){if(!me(Ve))throw new TypeError;Me=Ve}}return Me}function k(ue,Me,$e,ge){for(var Ve=ue.length-1;Ve>=0;--Ve){var st=ue[Ve],Je=st(Me,$e,ge);if(!H(Je)&&!G(Je)){if(!le(Je))throw new TypeError;ge=Je}}return ge}function $(ue,Me,$e){var ge=U(ue,Me,$e);if(ge)return!0;var Ve=Re(Me);return G(Ve)?!1:$(ue,Ve,$e)}function U(ue,Me,$e){var ge=ne(Me,$e,!1);return H(ge)?!1:F(ge.OrdinaryHasOwnMetadata(ue,Me,$e))}function z(ue,Me,$e){var ge=U(ue,Me,$e);if(ge)return D(ue,Me,$e);var Ve=Re(Me);if(!G(Ve))return z(ue,Ve,$e)}function D(ue,Me,$e){var ge=ne(Me,$e,!1);if(!H(ge))return ge.OrdinaryGetOwnMetadata(ue,Me,$e)}function B(ue,Me,$e,ge){var Ve=ne($e,ge,!0);Ve.OrdinaryDefineOwnMetadata(ue,Me,$e,ge)}function Y(ue,Me){var $e=q(ue,Me),ge=Re(ue);if(ge===null)return $e;var Ve=Y(ge,Me);if(Ve.length<=0)return $e;if($e.length<=0)return Ve;for(var st=new h,Je=[],ot=0,Xe=$e;ot<Xe.length;ot++){var Ze=Xe[ot],bt=st.has(Ze);bt||(st.add(Ze),Je.push(Ze))}for(var at=0,pt=Ve;at<pt.length;at++){var Ze=pt[at],bt=st.has(Ze);bt||(st.add(Ze),Je.push(Ze))}return Je}function q(ue,Me){var $e=ne(ue,Me,!1);return $e?$e.OrdinaryOwnMetadataKeys(ue,Me):[]}function K(ue){if(ue===null)return 1;switch(typeof ue){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return ue===null?1:6;default:return 6}}function H(ue){return ue===void 0}function G(ue){return ue===null}function Q(ue){return typeof ue=="symbol"}function le(ue){return typeof ue=="object"?ue!==null:typeof ue=="function"}function Z(ue,Me){switch(K(ue)){case 0:return ue;case 1:return ue;case 2:return ue;case 3:return ue;case 4:return ue;case 5:return ue}var $e="string",ge=be(ue,a);if(ge!==void 0){var Ve=ge.call(ue,$e);if(le(Ve))throw new TypeError;return Ve}return j(ue)}function j(ue,Me){var $e,ge;{var Ve=ue.toString;if(pe(Ve)){var ge=Ve.call(ue);if(!le(ge))return ge}var $e=ue.valueOf;if(pe($e)){var ge=$e.call(ue);if(!le(ge))return ge}}throw new TypeError}function F(ue){return!!ue}function te(ue){return""+ue}function oe(ue){var Me=Z(ue);return Q(Me)?Me:te(Me)}function de(ue){return Array.isArray?Array.isArray(ue):ue instanceof Object?ue instanceof Array:Object.prototype.toString.call(ue)==="[object Array]"}function pe(ue){return typeof ue=="function"}function me(ue){return typeof ue=="function"}function ve(ue){switch(K(ue)){case 3:return!0;case 4:return!0;default:return!1}}function he(ue,Me){return ue===Me||ue!==ue&&Me!==Me}function be(ue,Me){var $e=ue[Me];if($e!=null){if(!pe($e))throw new TypeError;return $e}}function we(ue){var Me=be(ue,s);if(!pe(Me))throw new TypeError;var $e=Me.call(ue);if(!le($e))throw new TypeError;return $e}function De(ue){return ue.value}function Ae(ue){var Me=ue.next();return Me.done?!1:Me}function Ee(ue){var Me=ue.return;Me&&Me.call(ue)}function Re(ue){var Me=Object.getPrototypeOf(ue);if(typeof ue!="function"||ue===f||Me!==f)return Me;var $e=ue.prototype,ge=$e&&Object.getPrototypeOf($e);if(ge==null||ge===Object.prototype)return Me;var Ve=ge.constructor;return typeof Ve!="function"||Ve===ue?Me:Ve}function Te(){var ue;!H(v)&&typeof r.Reflect<"u"&&!(v in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(ue=je(r.Reflect));var Me,$e,ge,Ve=new g,st={registerProvider:Je,getProvider:Xe,setProvider:bt};return st;function Je(at){if(!Object.isExtensible(st))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case ue===at:break;case H(Me):Me=at;break;case Me===at:break;case H($e):$e=at;break;case $e===at:break;default:ge===void 0&&(ge=new h),ge.add(at);break}}function ot(at,pt){if(!H(Me)){if(Me.isProviderFor(at,pt))return Me;if(!H($e)){if($e.isProviderFor(at,pt))return Me;if(!H(ge))for(var Ct=we(ge);;){var It=Ae(Ct);if(!It)return;var Wt=De(It);if(Wt.isProviderFor(at,pt))return Ee(Ct),Wt}}}if(!H(ue)&&ue.isProviderFor(at,pt))return ue}function Xe(at,pt){var Ct=Ve.get(at),It;return H(Ct)||(It=Ct.get(pt)),H(It)&&(It=ot(at,pt),H(It)||(H(Ct)&&(Ct=new p,Ve.set(at,Ct)),Ct.set(pt,It))),It}function Ze(at){if(H(at))throw new TypeError;return Me===at||$e===at||!H(ge)&&ge.has(at)}function bt(at,pt,Ct){if(!Ze(Ct))throw new Error("Metadata provider not registered.");var It=Xe(at,pt);if(It!==Ct){if(!H(It))return!1;var Wt=Ve.get(at);H(Wt)&&(Wt=new p,Ve.set(at,Wt)),Wt.set(pt,Ct)}return!0}}function Oe(){var ue;return!H(v)&&le(r.Reflect)&&Object.isExtensible(r.Reflect)&&(ue=r.Reflect[v]),H(ue)&&(ue=Te()),!H(v)&&le(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:ue}),ue}function Ne(ue){var Me=new g,$e={isProviderFor:function(Ze,bt){var at=Me.get(Ze);return H(at)?!1:at.has(bt)},OrdinaryDefineOwnMetadata:Je,OrdinaryHasOwnMetadata:Ve,OrdinaryGetOwnMetadata:st,OrdinaryOwnMetadataKeys:ot,OrdinaryDeleteMetadata:Xe};return y.registerProvider($e),$e;function ge(Ze,bt,at){var pt=Me.get(Ze),Ct=!1;if(H(pt)){if(!at)return;pt=new p,Me.set(Ze,pt),Ct=!0}var It=pt.get(bt);if(H(It)){if(!at)return;if(It=new p,pt.set(bt,It),!ue.setProvider(Ze,bt,$e))throw pt.delete(bt),Ct&&Me.delete(Ze),new Error("Wrong provider for target.")}return It}function Ve(Ze,bt,at){var pt=ge(bt,at,!1);return H(pt)?!1:F(pt.has(Ze))}function st(Ze,bt,at){var pt=ge(bt,at,!1);if(!H(pt))return pt.get(Ze)}function Je(Ze,bt,at,pt){var Ct=ge(at,pt,!0);Ct.set(Ze,bt)}function ot(Ze,bt){var at=[],pt=ge(Ze,bt,!1);if(H(pt))return at;for(var Ct=pt.keys(),It=we(Ct),Wt=0;;){var Bt=Ae(It);if(!Bt)return at.length=Wt,at;var Vt=De(Bt);try{at[Wt]=Vt}catch(rn){try{Ee(It)}finally{throw rn}}Wt++}}function Xe(Ze,bt,at){var pt=ge(bt,at,!1);if(H(pt)||!pt.delete(Ze))return!1;if(pt.size===0){var Ct=Me.get(bt);H(Ct)||(Ct.delete(at),Ct.size===0&&Me.delete(Ct))}return!0}}function je(ue){var Me=ue.defineMetadata,$e=ue.hasOwnMetadata,ge=ue.getOwnMetadata,Ve=ue.getOwnMetadataKeys,st=ue.deleteMetadata,Je=new g,ot={isProviderFor:function(Xe,Ze){var bt=Je.get(Xe);return!H(bt)&&bt.has(Ze)?!0:Ve(Xe,Ze).length?(H(bt)&&(bt=new h,Je.set(Xe,bt)),bt.add(Ze),!0):!1},OrdinaryDefineOwnMetadata:Me,OrdinaryHasOwnMetadata:$e,OrdinaryGetOwnMetadata:ge,OrdinaryOwnMetadataKeys:Ve,OrdinaryDeleteMetadata:st};return ot}function ne(ue,Me,$e){var ge=y.getProvider(ue,Me);if(!H(ge))return ge;if($e){if(y.setProvider(ue,Me,_))return _;throw new Error("Illegal state.")}}function J(){var ue={},Me=[],$e=function(){function ot(Xe,Ze,bt){this._index=0,this._keys=Xe,this._values=Ze,this._selector=bt}return ot.prototype["@@iterator"]=function(){return this},ot.prototype[s]=function(){return this},ot.prototype.next=function(){var Xe=this._index;if(Xe>=0&&Xe<this._keys.length){var Ze=this._selector(this._keys[Xe],this._values[Xe]);return Xe+1>=this._keys.length?(this._index=-1,this._keys=Me,this._values=Me):this._index++,{value:Ze,done:!1}}return{value:void 0,done:!0}},ot.prototype.throw=function(Xe){throw this._index>=0&&(this._index=-1,this._keys=Me,this._values=Me),Xe},ot.prototype.return=function(Xe){return this._index>=0&&(this._index=-1,this._keys=Me,this._values=Me),{value:Xe,done:!0}},ot}(),ge=function(){function ot(){this._keys=[],this._values=[],this._cacheKey=ue,this._cacheIndex=-2}return Object.defineProperty(ot.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ot.prototype.has=function(Xe){return this._find(Xe,!1)>=0},ot.prototype.get=function(Xe){var Ze=this._find(Xe,!1);return Ze>=0?this._values[Ze]:void 0},ot.prototype.set=function(Xe,Ze){var bt=this._find(Xe,!0);return this._values[bt]=Ze,this},ot.prototype.delete=function(Xe){var Ze=this._find(Xe,!1);if(Ze>=0){for(var bt=this._keys.length,at=Ze+1;at<bt;at++)this._keys[at-1]=this._keys[at],this._values[at-1]=this._values[at];return this._keys.length--,this._values.length--,he(Xe,this._cacheKey)&&(this._cacheKey=ue,this._cacheIndex=-2),!0}return!1},ot.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=ue,this._cacheIndex=-2},ot.prototype.keys=function(){return new $e(this._keys,this._values,Ve)},ot.prototype.values=function(){return new $e(this._keys,this._values,st)},ot.prototype.entries=function(){return new $e(this._keys,this._values,Je)},ot.prototype["@@iterator"]=function(){return this.entries()},ot.prototype[s]=function(){return this.entries()},ot.prototype._find=function(Xe,Ze){if(!he(this._cacheKey,Xe)){this._cacheIndex=-1;for(var bt=0;bt<this._keys.length;bt++)if(he(this._keys[bt],Xe)){this._cacheIndex=bt;break}}return this._cacheIndex<0&&Ze&&(this._cacheIndex=this._keys.length,this._keys.push(Xe),this._values.push(void 0)),this._cacheIndex},ot}();return ge;function Ve(ot,Xe){return ot}function st(ot,Xe){return Xe}function Je(ot,Xe){return[ot,Xe]}}function ae(){var ue=function(){function Me(){this._map=new p}return Object.defineProperty(Me.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Me.prototype.has=function($e){return this._map.has($e)},Me.prototype.add=function($e){return this._map.set($e,$e),this},Me.prototype.delete=function($e){return this._map.delete($e)},Me.prototype.clear=function(){this._map.clear()},Me.prototype.keys=function(){return this._map.keys()},Me.prototype.values=function(){return this._map.keys()},Me.prototype.entries=function(){return this._map.entries()},Me.prototype["@@iterator"]=function(){return this.keys()},Me.prototype[s]=function(){return this.keys()},Me}();return ue}function Se(){var ue=16,Me=d.create(),$e=ge();return function(){function Xe(){this._key=ge()}return Xe.prototype.has=function(Ze){var bt=Ve(Ze,!1);return bt!==void 0?d.has(bt,this._key):!1},Xe.prototype.get=function(Ze){var bt=Ve(Ze,!1);return bt!==void 0?d.get(bt,this._key):void 0},Xe.prototype.set=function(Ze,bt){var at=Ve(Ze,!0);return at[this._key]=bt,this},Xe.prototype.delete=function(Ze){var bt=Ve(Ze,!1);return bt!==void 0?delete bt[this._key]:!1},Xe.prototype.clear=function(){this._key=ge()},Xe}();function ge(){var Xe;do Xe="@@WeakMap@@"+ot();while(d.has(Me,Xe));return Me[Xe]=!0,Xe}function Ve(Xe,Ze){if(!i.call(Xe,$e)){if(!Ze)return;Object.defineProperty(Xe,$e,{value:d.create()})}return Xe[$e]}function st(Xe,Ze){for(var bt=0;bt<Ze;++bt)Xe[bt]=Math.random()*255|0;return Xe}function Je(Xe){if(typeof Uint8Array=="function"){var Ze=new Uint8Array(Xe);return typeof crypto<"u"?crypto.getRandomValues(Ze):typeof msCrypto<"u"?msCrypto.getRandomValues(Ze):st(Ze,Xe),Ze}return st(new Array(Xe),Xe)}function ot(){var Xe=Je(ue);Xe[6]=Xe[6]&79|64,Xe[8]=Xe[8]&191|128;for(var Ze="",bt=0;bt<ue;++bt){var at=Xe[bt];(bt===4||bt===6||bt===8)&&(Ze+="-"),at<16&&(Ze+="0"),Ze+=at.toString(16).toLowerCase()}return Ze}}function xe(ue){return ue.__=void 0,delete ue.__,ue}})})(Dke||(Dke={}));var uj={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
|
||
*/uj.exports;(function(e,n){(function(){var r,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,p=2,h=4,g=1,v=2,y=1,_=2,S=4,b=8,E=16,w=32,C=64,x=128,T=256,R=512,O=30,M="...",P=800,k=16,$=1,U=2,z=3,D=1/0,B=9007199254740991,Y=17976931348623157e292,q=NaN,K=4294967295,H=K-1,G=K>>>1,Q=[["ary",x],["bind",y],["bindKey",_],["curry",b],["curryRight",E],["flip",R],["partial",w],["partialRight",C],["rearg",T]],le="[object Arguments]",Z="[object Array]",j="[object AsyncFunction]",F="[object Boolean]",te="[object Date]",oe="[object DOMException]",de="[object Error]",pe="[object Function]",me="[object GeneratorFunction]",ve="[object Map]",he="[object Number]",be="[object Null]",we="[object Object]",De="[object Promise]",Ae="[object Proxy]",Ee="[object RegExp]",Re="[object Set]",Te="[object String]",Oe="[object Symbol]",Ne="[object Undefined]",je="[object WeakMap]",ne="[object WeakSet]",J="[object ArrayBuffer]",ae="[object DataView]",Se="[object Float32Array]",xe="[object Float64Array]",ue="[object Int8Array]",Me="[object Int16Array]",$e="[object Int32Array]",ge="[object Uint8Array]",Ve="[object Uint8ClampedArray]",st="[object Uint16Array]",Je="[object Uint32Array]",ot=/\b__p \+= '';/g,Xe=/\b(__p \+=) '' \+/g,Ze=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,at=/[&<>"']/g,pt=RegExp(bt.source),Ct=RegExp(at.source),It=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,Bt=/<%=([\s\S]+?)%>/g,Vt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(it.source),vt=/^\s+/,kt=/\s/,Dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ht=/,? & /,tn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,on=/[()=,{}\[\]\/\s]/,sn=/\\(\\)?/g,Jt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,En=/\w*$/,Pt=/^[-+]0x[0-9a-f]+$/i,Qt=/^0b[01]+$/i,ln=/^\[object .+?Constructor\]$/,jt=/^0o[0-7]+$/i,Lt=/^(?:0|[1-9]\d*)$/,en=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ue=/($^)/,Zt=/['\n\r\u2028\u2029\\]/g,Et="\\ud800-\\udfff",Gt="\\u0300-\\u036f",zt="\\ufe20-\\ufe2f",Vn="\\u20d0-\\u20ff",sr=Gt+zt+Vn,A="\\u2700-\\u27bf",W="a-z\\xdf-\\xf6\\xf8-\\xff",ce="\\xac\\xb1\\xd7\\xf7",Pe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qe="\\u2000-\\u206f",gt=" \\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",Yt="A-Z\\xc0-\\xd6\\xd8-\\xde",Nn="\\ufe0e\\ufe0f",Jn=ce+Pe+qe+gt,Ci="['’]",wi="["+Et+"]",to="["+Jn+"]",Vr="["+sr+"]",wn="\\d+",Bn="["+A+"]",ni="["+W+"]",yn="[^"+Et+Jn+wn+A+W+Yt+"]",Sn="\\ud83c[\\udffb-\\udfff]",ur="(?:"+Vr+"|"+Sn+")",qr="[^"+Et+"]",zi="(?:\\ud83c[\\udde6-\\uddff]){2}",Qo="[\\ud800-\\udbff][\\udc00-\\udfff]",gr="["+Yt+"]",Oo="\\u200d",Pa="(?:"+ni+"|"+yn+")",Er="(?:"+gr+"|"+yn+")",nr="(?:"+Ci+"(?:d|ll|m|re|s|t|ve))?",lr="(?:"+Ci+"(?:D|LL|M|RE|S|T|VE))?",Kr=ur+"?",Pi="["+Nn+"]?",Dl="(?:"+Oo+"(?:"+[qr,zi,Qo].join("|")+")"+Pi+Kr+")*",kl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ro="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Is=Pi+Kr+Dl,Du="(?:"+[Bn,zi,Qo].join("|")+")"+Is,ku="(?:"+[qr+Vr+"?",Vr,zi,Qo,wi].join("|")+")",Ng=RegExp(Ci,"g"),Wn=RegExp(Vr,"g"),Ir=RegExp(Sn+"(?="+Sn+")|"+ku+Is,"g"),Li=RegExp([gr+"?"+ni+"+"+nr+"(?="+[to,gr,"$"].join("|")+")",Er+"+"+lr+"(?="+[to,gr+Pa,"$"].join("|")+")",gr+"?"+Pa+"+"+nr,gr+"+"+lr,Ro,kl,wn,Du].join("|"),"g"),ha=RegExp("["+Oo+Et+sr+Nn+"]"),Zo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mg=["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"],Jp=-1,go={};go[Se]=go[xe]=go[ue]=go[Me]=go[$e]=go[ge]=go[Ve]=go[st]=go[Je]=!0,go[le]=go[Z]=go[J]=go[F]=go[ae]=go[te]=go[de]=go[pe]=go[ve]=go[he]=go[we]=go[Ee]=go[Re]=go[Te]=go[je]=!1;var no={};no[le]=no[Z]=no[J]=no[ae]=no[F]=no[te]=no[Se]=no[xe]=no[ue]=no[Me]=no[$e]=no[ve]=no[he]=no[we]=no[Ee]=no[Re]=no[Te]=no[Oe]=no[ge]=no[Ve]=no[st]=no[Je]=!0,no[de]=no[pe]=no[je]=!1;var bG={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},US={"&":"&","<":"<",">":">",'"':""","'":"'"},SG={"&":"&","<":"<",">":">",""":'"',"'":"'"},EG={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gw=parseFloat,Ww=parseInt,Yw=typeof oo=="object"&&oo&&oo.Object===Object&&oo,CG=typeof self=="object"&&self&&self.Object===Object&&self,pl=Yw||CG||Function("return this")(),yN=n&&!n.nodeType&&n,eh=yN&&!0&&e&&!e.nodeType&&e,qw=eh&&eh.exports===yN,Kw=qw&&Yw.process,nc=function(){try{var ze=eh&&eh.require&&eh.require("util").types;return ze||Kw&&Kw.binding&&Kw.binding("util")}catch{}}(),HS=nc&&nc.isArrayBuffer,zS=nc&&nc.isDate,_N=nc&&nc.isMap,x$=nc&&nc.isRegExp,VS=nc&&nc.isSet,Xw=nc&&nc.isTypedArray;function rc(ze,et,Ge){switch(Ge.length){case 0:return ze.call(et);case 1:return ze.call(et,Ge[0]);case 2:return ze.call(et,Ge[0],Ge[1]);case 3:return ze.call(et,Ge[0],Ge[1],Ge[2])}return ze.apply(et,Ge)}function bN(ze,et,Ge,dt){for(var lt=-1,yt=ze==null?0:ze.length;++lt<yt;){var xt=ze[lt];et(dt,xt,Ge(xt),ze)}return dt}function wc(ze,et){for(var Ge=-1,dt=ze==null?0:ze.length;++Ge<dt&&et(ze[Ge],Ge,ze)!==!1;);return ze}function Ll(ze,et){for(var Ge=ze==null?0:ze.length;Ge--&&et(ze[Ge],Ge,ze)!==!1;);return ze}function O_(ze,et){for(var Ge=-1,dt=ze==null?0:ze.length;++Ge<dt;)if(!et(ze[Ge],Ge,ze))return!1;return!0}function Lu(ze,et){for(var Ge=-1,dt=ze==null?0:ze.length,lt=0,yt=[];++Ge<dt;){var xt=ze[Ge];et(xt,Ge,ze)&&(yt[lt++]=xt)}return yt}function GS(ze,et){var Ge=ze==null?0:ze.length;return!!Ge&&N_(ze,et,0)>-1}function R_(ze,et,Ge){for(var dt=-1,lt=ze==null?0:ze.length;++dt<lt;)if(Ge(et,ze[dt]))return!0;return!1}function Jo(ze,et){for(var Ge=-1,dt=ze==null?0:ze.length,lt=Array(dt);++Ge<dt;)lt[Ge]=et(ze[Ge],Ge,ze);return lt}function th(ze,et){for(var Ge=-1,dt=et.length,lt=ze.length;++Ge<dt;)ze[lt+Ge]=et[Ge];return ze}function I_(ze,et,Ge,dt){var lt=-1,yt=ze==null?0:ze.length;for(dt&&yt&&(Ge=ze[++lt]);++lt<yt;)Ge=et(Ge,ze[lt],lt,ze);return Ge}function SN(ze,et,Ge,dt){var lt=ze==null?0:ze.length;for(dt&<&&(Ge=ze[--lt]);lt--;)Ge=et(Ge,ze[lt],lt,ze);return Ge}function nh(ze,et){for(var Ge=-1,dt=ze==null?0:ze.length;++Ge<dt;)if(et(ze[Ge],Ge,ze))return!0;return!1}var EN=qS("length");function CN(ze){return ze.split("")}function Qw(ze){return ze.match(tn)||[]}function Zw(ze,et,Ge){var dt;return Ge(ze,function(lt,yt,xt){if(et(lt,yt,xt))return dt=yt,!1}),dt}function WS(ze,et,Ge,dt){for(var lt=ze.length,yt=Ge+(dt?1:-1);dt?yt--:++yt<lt;)if(et(ze[yt],yt,ze))return yt;return-1}function N_(ze,et,Ge){return et===et?Pg(ze,et,Ge):WS(ze,YS,Ge)}function wN(ze,et,Ge,dt){for(var lt=Ge-1,yt=ze.length;++lt<yt;)if(dt(ze[lt],et))return lt;return-1}function YS(ze){return ze!==ze}function T$(ze,et){var Ge=ze==null?0:ze.length;return Ge?xN(ze,et)/Ge:q}function qS(ze){return function(et){return et==null?r:et[ze]}}function KS(ze){return function(et){return ze==null?r:ze[et]}}function O$(ze,et,Ge,dt,lt){return lt(ze,function(yt,xt,mt){Ge=dt?(dt=!1,yt):et(Ge,yt,xt,mt)}),Ge}function R$(ze,et){var Ge=ze.length;for(ze.sort(et);Ge--;)ze[Ge]=ze[Ge].value;return ze}function xN(ze,et){for(var Ge,dt=-1,lt=ze.length;++dt<lt;){var yt=et(ze[dt]);yt!==r&&(Ge=Ge===r?yt:Ge+yt)}return Ge}function Jw(ze,et){for(var Ge=-1,dt=Array(ze);++Ge<ze;)dt[Ge]=et(Ge);return dt}function I$(ze,et){return Jo(et,function(Ge){return[Ge,ze[Ge]]})}function N$(ze){return ze&&ze.slice(0,ye(ze)+1).replace(vt,"")}function xc(ze){return function(et){return ze(et)}}function XS(ze,et){return Jo(et,function(Ge){return ze[Ge]})}function M_(ze,et){return ze.has(et)}function TN(ze,et){for(var Ge=-1,dt=ze.length;++Ge<dt&&N_(et,ze[Ge],0)>-1;);return Ge}function M$(ze,et){for(var Ge=ze.length;Ge--&&N_(et,ze[Ge],0)>-1;);return Ge}function wG(ze,et){for(var Ge=ze.length,dt=0;Ge--;)ze[Ge]===et&&++dt;return dt}var xG=KS(bG),ex=KS(US);function rh(ze){return"\\"+EG[ze]}function Za(ze,et){return ze==null?r:ze[et]}function ih(ze){return ha.test(ze)}function $u(ze){return Zo.test(ze)}function TG(ze){for(var et,Ge=[];!(et=ze.next()).done;)Ge.push(et.value);return Ge}function QS(ze){var et=-1,Ge=Array(ze.size);return ze.forEach(function(dt,lt){Ge[++et]=[lt,dt]}),Ge}function ON(ze,et){return function(Ge){return ze(et(Ge))}}function Tc(ze,et){for(var Ge=-1,dt=ze.length,lt=0,yt=[];++Ge<dt;){var xt=ze[Ge];(xt===et||xt===d)&&(ze[Ge]=d,yt[lt++]=Ge)}return yt}function P_(ze){var et=-1,Ge=Array(ze.size);return ze.forEach(function(dt){Ge[++et]=dt}),Ge}function A_(ze){var et=-1,Ge=Array(ze.size);return ze.forEach(function(dt){Ge[++et]=[dt,dt]}),Ge}function Pg(ze,et,Ge){for(var dt=Ge-1,lt=ze.length;++dt<lt;)if(ze[dt]===et)return dt;return-1}function P$(ze,et,Ge){for(var dt=Ge+1;dt--;)if(ze[dt]===et)return dt;return dt}function X(ze){return ih(ze)?Le(ze):EN(ze)}function se(ze){return ih(ze)?We(ze):CN(ze)}function ye(ze){for(var et=ze.length;et--&&kt.test(ze.charAt(et)););return et}var Ie=KS(SG);function Le(ze){for(var et=Ir.lastIndex=0;Ir.test(ze);)++et;return et}function We(ze){return ze.match(Ir)||[]}function rt(ze){return ze.match(Li)||[]}var ut=function ze(et){et=et==null?pl:St.defaults(pl.Object(),et,St.pick(pl,Mg));var Ge=et.Array,dt=et.Date,lt=et.Error,yt=et.Function,xt=et.Math,mt=et.Object,Ft=et.RegExp,qt=et.String,Ut=et.TypeError,an=Ge.prototype,An=yt.prototype,Fn=mt.prototype,Rn=et["__core-js_shared__"],Ln=An.toString,mn=Fn.hasOwnProperty,jn=0,rr=function(){var I=/[^.]+$/.exec(Rn&&Rn.keys&&Rn.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),Jr=Fn.toString,yi=Ln.call(mt),_i=pl._,Jc=Ft("^"+Ln.call(mn).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xr=qw?et.Buffer:r,ga=et.Symbol,Ns=et.Uint8Array,ZS=Xr?Xr.allocUnsafe:r,Js=ON(mt.getPrototypeOf,mt),Ag=mt.create,tx=Fn.propertyIsEnumerable,A$=an.splice,pye=ga?ga.isConcatSpreadable:r,RN=ga?ga.iterator:r,JS=ga?ga.toStringTag:r,D$=function(){try{var I=iE(mt,"defineProperty");return I({},"",{}),I}catch{}}(),Xut=et.clearTimeout!==pl.clearTimeout&&et.clearTimeout,Qut=dt&&dt.now!==pl.Date.now&&dt.now,Zut=et.setTimeout!==pl.setTimeout&&et.setTimeout,k$=xt.ceil,L$=xt.floor,OG=mt.getOwnPropertySymbols,Jut=Xr?Xr.isBuffer:r,hye=et.isFinite,edt=an.join,tdt=ON(mt.keys,mt),hl=xt.max,Oc=xt.min,ndt=dt.now,rdt=et.parseInt,gye=xt.random,idt=an.reverse,RG=iE(et,"DataView"),IN=iE(et,"Map"),IG=iE(et,"Promise"),nx=iE(et,"Set"),NN=iE(et,"WeakMap"),MN=iE(mt,"create"),$$=NN&&new NN,rx={},odt=oE(RG),adt=oE(IN),sdt=oE(IG),ldt=oE(nx),cdt=oE(NN),F$=ga?ga.prototype:r,PN=F$?F$.valueOf:r,mye=F$?F$.toString:r;function Ke(I){if(ds(I)&&!ci(I)&&!(I instanceof Vi)){if(I instanceof Ff)return I;if(mn.call(I,"__wrapped__"))return v_e(I)}return new Ff(I)}var ix=function(){function I(){}return function(L){if(!Ja(L))return{};if(Ag)return Ag(L);I.prototype=L;var re=new I;return I.prototype=r,re}}();function B$(){}function Ff(I,L){this.__wrapped__=I,this.__actions__=[],this.__chain__=!!L,this.__index__=0,this.__values__=r}Ke.templateSettings={escape:It,evaluate:Wt,interpolate:Bt,variable:"",imports:{_:Ke}},Ke.prototype=B$.prototype,Ke.prototype.constructor=Ke,Ff.prototype=ix(B$.prototype),Ff.prototype.constructor=Ff;function Vi(I){this.__wrapped__=I,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function udt(){var I=new Vi(this.__wrapped__);return I.__actions__=Fu(this.__actions__),I.__dir__=this.__dir__,I.__filtered__=this.__filtered__,I.__iteratees__=Fu(this.__iteratees__),I.__takeCount__=this.__takeCount__,I.__views__=Fu(this.__views__),I}function ddt(){if(this.__filtered__){var I=new Vi(this);I.__dir__=-1,I.__filtered__=!0}else I=this.clone(),I.__dir__*=-1;return I}function fdt(){var I=this.__wrapped__.value(),L=this.__dir__,re=ci(I),_e=L<0,Be=re?I.length:0,Qe=wft(0,Be,this.__views__),ct=Qe.start,_t=Qe.end,Mt=_t-ct,un=_e?_t:ct-1,dn=this.__iteratees__,bn=dn.length,Kn=0,_r=Oc(Mt,this.__takeCount__);if(!re||!_e&&Be==Mt&&_r==Mt)return jye(I,this.__actions__);var Br=[];e:for(;Mt--&&Kn<_r;){un+=L;for(var bi=-1,jr=I[un];++bi<bn;){var $i=dn[bi],Qi=$i.iteratee,Nd=$i.type,nu=Qi(jr);if(Nd==U)jr=nu;else if(!nu){if(Nd==$)continue e;break e}}Br[Kn++]=jr}return Br}Vi.prototype=ix(B$.prototype),Vi.prototype.constructor=Vi;function eE(I){var L=-1,re=I==null?0:I.length;for(this.clear();++L<re;){var _e=I[L];this.set(_e[0],_e[1])}}function pdt(){this.__data__=MN?MN(null):{},this.size=0}function hdt(I){var L=this.has(I)&&delete this.__data__[I];return this.size-=L?1:0,L}function gdt(I){var L=this.__data__;if(MN){var re=L[I];return re===c?r:re}return mn.call(L,I)?L[I]:r}function mdt(I){var L=this.__data__;return MN?L[I]!==r:mn.call(L,I)}function vdt(I,L){var re=this.__data__;return this.size+=this.has(I)?0:1,re[I]=MN&&L===r?c:L,this}eE.prototype.clear=pdt,eE.prototype.delete=hdt,eE.prototype.get=gdt,eE.prototype.has=mdt,eE.prototype.set=vdt;function pv(I){var L=-1,re=I==null?0:I.length;for(this.clear();++L<re;){var _e=I[L];this.set(_e[0],_e[1])}}function ydt(){this.__data__=[],this.size=0}function _dt(I){var L=this.__data__,re=j$(L,I);if(re<0)return!1;var _e=L.length-1;return re==_e?L.pop():A$.call(L,re,1),--this.size,!0}function bdt(I){var L=this.__data__,re=j$(L,I);return re<0?r:L[re][1]}function Sdt(I){return j$(this.__data__,I)>-1}function Edt(I,L){var re=this.__data__,_e=j$(re,I);return _e<0?(++this.size,re.push([I,L])):re[_e][1]=L,this}pv.prototype.clear=ydt,pv.prototype.delete=_dt,pv.prototype.get=bdt,pv.prototype.has=Sdt,pv.prototype.set=Edt;function hv(I){var L=-1,re=I==null?0:I.length;for(this.clear();++L<re;){var _e=I[L];this.set(_e[0],_e[1])}}function Cdt(){this.size=0,this.__data__={hash:new eE,map:new(IN||pv),string:new eE}}function wdt(I){var L=Z$(this,I).delete(I);return this.size-=L?1:0,L}function xdt(I){return Z$(this,I).get(I)}function Tdt(I){return Z$(this,I).has(I)}function Odt(I,L){var re=Z$(this,I),_e=re.size;return re.set(I,L),this.size+=re.size==_e?0:1,this}hv.prototype.clear=Cdt,hv.prototype.delete=wdt,hv.prototype.get=xdt,hv.prototype.has=Tdt,hv.prototype.set=Odt;function tE(I){var L=-1,re=I==null?0:I.length;for(this.__data__=new hv;++L<re;)this.add(I[L])}function Rdt(I){return this.__data__.set(I,c),this}function Idt(I){return this.__data__.has(I)}tE.prototype.add=tE.prototype.push=Rdt,tE.prototype.has=Idt;function oh(I){var L=this.__data__=new pv(I);this.size=L.size}function Ndt(){this.__data__=new pv,this.size=0}function Mdt(I){var L=this.__data__,re=L.delete(I);return this.size=L.size,re}function Pdt(I){return this.__data__.get(I)}function Adt(I){return this.__data__.has(I)}function Ddt(I,L){var re=this.__data__;if(re instanceof pv){var _e=re.__data__;if(!IN||_e.length<o-1)return _e.push([I,L]),this.size=++re.size,this;re=this.__data__=new hv(_e)}return re.set(I,L),this.size=re.size,this}oh.prototype.clear=Ndt,oh.prototype.delete=Mdt,oh.prototype.get=Pdt,oh.prototype.has=Adt,oh.prototype.set=Ddt;function vye(I,L){var re=ci(I),_e=!re&&aE(I),Be=!re&&!_e&&F_(I),Qe=!re&&!_e&&!Be&&lx(I),ct=re||_e||Be||Qe,_t=ct?Jw(I.length,qt):[],Mt=_t.length;for(var un in I)(L||mn.call(I,un))&&!(ct&&(un=="length"||Be&&(un=="offset"||un=="parent")||Qe&&(un=="buffer"||un=="byteLength"||un=="byteOffset")||yv(un,Mt)))&&_t.push(un);return _t}function yye(I){var L=I.length;return L?I[jG(0,L-1)]:r}function kdt(I,L){return J$(Fu(I),nE(L,0,I.length))}function Ldt(I){return J$(Fu(I))}function NG(I,L,re){(re!==r&&!ah(I[L],re)||re===r&&!(L in I))&&gv(I,L,re)}function AN(I,L,re){var _e=I[L];(!(mn.call(I,L)&&ah(_e,re))||re===r&&!(L in I))&&gv(I,L,re)}function j$(I,L){for(var re=I.length;re--;)if(ah(I[re][0],L))return re;return-1}function $dt(I,L,re,_e){return D_(I,function(Be,Qe,ct){L(_e,Be,re(Be),ct)}),_e}function _ye(I,L){return I&&kg(L,$l(L),I)}function Fdt(I,L){return I&&kg(L,ju(L),I)}function gv(I,L,re){L=="__proto__"&&D$?D$(I,L,{configurable:!0,enumerable:!0,value:re,writable:!0}):I[L]=re}function MG(I,L){for(var re=-1,_e=L.length,Be=Ge(_e),Qe=I==null;++re<_e;)Be[re]=Qe?r:dW(I,L[re]);return Be}function nE(I,L,re){return I===I&&(re!==r&&(I=I<=re?I:re),L!==r&&(I=I>=L?I:L)),I}function Bf(I,L,re,_e,Be,Qe){var ct,_t=L&f,Mt=L&p,un=L&h;if(re&&(ct=Be?re(I,_e,Be,Qe):re(I)),ct!==r)return ct;if(!Ja(I))return I;var dn=ci(I);if(dn){if(ct=Tft(I),!_t)return Fu(I,ct)}else{var bn=Rc(I),Kn=bn==pe||bn==me;if(F_(I))return zye(I,_t);if(bn==we||bn==le||Kn&&!Be){if(ct=Mt||Kn?{}:l_e(I),!_t)return Mt?gft(I,Fdt(ct,I)):hft(I,_ye(ct,I))}else{if(!no[bn])return Be?I:{};ct=Oft(I,bn,_t)}}Qe||(Qe=new oh);var _r=Qe.get(I);if(_r)return _r;Qe.set(I,ct),$_e(I)?I.forEach(function(jr){ct.add(Bf(jr,L,re,jr,I,Qe))}):k_e(I)&&I.forEach(function(jr,$i){ct.set($i,Bf(jr,L,re,$i,I,Qe))});var Br=un?Mt?QG:XG:Mt?ju:$l,bi=dn?r:Br(I);return wc(bi||I,function(jr,$i){bi&&($i=jr,jr=I[$i]),AN(ct,$i,Bf(jr,L,re,$i,I,Qe))}),ct}function Bdt(I){var L=$l(I);return function(re){return bye(re,I,L)}}function bye(I,L,re){var _e=re.length;if(I==null)return!_e;for(I=mt(I);_e--;){var Be=re[_e],Qe=L[Be],ct=I[Be];if(ct===r&&!(Be in I)||!Qe(ct))return!1}return!0}function Sye(I,L,re){if(typeof I!="function")throw new Ut(s);return jN(function(){I.apply(r,re)},L)}function DN(I,L,re,_e){var Be=-1,Qe=GS,ct=!0,_t=I.length,Mt=[],un=L.length;if(!_t)return Mt;re&&(L=Jo(L,xc(re))),_e?(Qe=R_,ct=!1):L.length>=o&&(Qe=M_,ct=!1,L=new tE(L));e:for(;++Be<_t;){var dn=I[Be],bn=re==null?dn:re(dn);if(dn=_e||dn!==0?dn:0,ct&&bn===bn){for(var Kn=un;Kn--;)if(L[Kn]===bn)continue e;Mt.push(dn)}else Qe(L,bn,_e)||Mt.push(dn)}return Mt}var D_=qye(Dg),Eye=qye(AG,!0);function jdt(I,L){var re=!0;return D_(I,function(_e,Be,Qe){return re=!!L(_e,Be,Qe),re}),re}function U$(I,L,re){for(var _e=-1,Be=I.length;++_e<Be;){var Qe=I[_e],ct=L(Qe);if(ct!=null&&(_t===r?ct===ct&&!Id(ct):re(ct,_t)))var _t=ct,Mt=Qe}return Mt}function Udt(I,L,re,_e){var Be=I.length;for(re=hi(re),re<0&&(re=-re>Be?0:Be+re),_e=_e===r||_e>Be?Be:hi(_e),_e<0&&(_e+=Be),_e=re>_e?0:B_e(_e);re<_e;)I[re++]=L;return I}function Cye(I,L){var re=[];return D_(I,function(_e,Be,Qe){L(_e,Be,Qe)&&re.push(_e)}),re}function ic(I,L,re,_e,Be){var Qe=-1,ct=I.length;for(re||(re=Ift),Be||(Be=[]);++Qe<ct;){var _t=I[Qe];L>0&&re(_t)?L>1?ic(_t,L-1,re,_e,Be):th(Be,_t):_e||(Be[Be.length]=_t)}return Be}var PG=Kye(),wye=Kye(!0);function Dg(I,L){return I&&PG(I,L,$l)}function AG(I,L){return I&&wye(I,L,$l)}function H$(I,L){return Lu(L,function(re){return _v(I[re])})}function rE(I,L){L=L_(L,I);for(var re=0,_e=L.length;I!=null&&re<_e;)I=I[Lg(L[re++])];return re&&re==_e?I:r}function xye(I,L,re){var _e=L(I);return ci(I)?_e:th(_e,re(I))}function eu(I){return I==null?I===r?Ne:be:JS&&JS in mt(I)?Cft(I):Lft(I)}function DG(I,L){return I>L}function Hdt(I,L){return I!=null&&mn.call(I,L)}function zdt(I,L){return I!=null&&L in mt(I)}function Vdt(I,L,re){return I>=Oc(L,re)&&I<hl(L,re)}function kG(I,L,re){for(var _e=re?R_:GS,Be=I[0].length,Qe=I.length,ct=Qe,_t=Ge(Qe),Mt=1/0,un=[];ct--;){var dn=I[ct];ct&&L&&(dn=Jo(dn,xc(L))),Mt=Oc(dn.length,Mt),_t[ct]=!re&&(L||Be>=120&&dn.length>=120)?new tE(ct&&dn):r}dn=I[0];var bn=-1,Kn=_t[0];e:for(;++bn<Be&&un.length<Mt;){var _r=dn[bn],Br=L?L(_r):_r;if(_r=re||_r!==0?_r:0,!(Kn?M_(Kn,Br):_e(un,Br,re))){for(ct=Qe;--ct;){var bi=_t[ct];if(!(bi?M_(bi,Br):_e(I[ct],Br,re)))continue e}Kn&&Kn.push(Br),un.push(_r)}}return un}function Gdt(I,L,re,_e){return Dg(I,function(Be,Qe,ct){L(_e,re(Be),Qe,ct)}),_e}function kN(I,L,re){L=L_(L,I),I=f_e(I,L);var _e=I==null?I:I[Lg(Uf(L))];return _e==null?r:rc(_e,I,re)}function Tye(I){return ds(I)&&eu(I)==le}function Wdt(I){return ds(I)&&eu(I)==J}function Ydt(I){return ds(I)&&eu(I)==te}function LN(I,L,re,_e,Be){return I===L?!0:I==null||L==null||!ds(I)&&!ds(L)?I!==I&&L!==L:qdt(I,L,re,_e,LN,Be)}function qdt(I,L,re,_e,Be,Qe){var ct=ci(I),_t=ci(L),Mt=ct?Z:Rc(I),un=_t?Z:Rc(L);Mt=Mt==le?we:Mt,un=un==le?we:un;var dn=Mt==we,bn=un==we,Kn=Mt==un;if(Kn&&F_(I)){if(!F_(L))return!1;ct=!0,dn=!1}if(Kn&&!dn)return Qe||(Qe=new oh),ct||lx(I)?o_e(I,L,re,_e,Be,Qe):Sft(I,L,Mt,re,_e,Be,Qe);if(!(re&g)){var _r=dn&&mn.call(I,"__wrapped__"),Br=bn&&mn.call(L,"__wrapped__");if(_r||Br){var bi=_r?I.value():I,jr=Br?L.value():L;return Qe||(Qe=new oh),Be(bi,jr,re,_e,Qe)}}return Kn?(Qe||(Qe=new oh),Eft(I,L,re,_e,Be,Qe)):!1}function Kdt(I){return ds(I)&&Rc(I)==ve}function LG(I,L,re,_e){var Be=re.length,Qe=Be,ct=!_e;if(I==null)return!Qe;for(I=mt(I);Be--;){var _t=re[Be];if(ct&&_t[2]?_t[1]!==I[_t[0]]:!(_t[0]in I))return!1}for(;++Be<Qe;){_t=re[Be];var Mt=_t[0],un=I[Mt],dn=_t[1];if(ct&&_t[2]){if(un===r&&!(Mt in I))return!1}else{var bn=new oh;if(_e)var Kn=_e(un,dn,Mt,I,L,bn);if(!(Kn===r?LN(dn,un,g|v,_e,bn):Kn))return!1}}return!0}function Oye(I){if(!Ja(I)||Mft(I))return!1;var L=_v(I)?Jc:ln;return L.test(oE(I))}function Xdt(I){return ds(I)&&eu(I)==Ee}function Qdt(I){return ds(I)&&Rc(I)==Re}function Zdt(I){return ds(I)&&o3(I.length)&&!!go[eu(I)]}function Rye(I){return typeof I=="function"?I:I==null?Uu:typeof I=="object"?ci(I)?Mye(I[0],I[1]):Nye(I):X_e(I)}function $G(I){if(!BN(I))return tdt(I);var L=[];for(var re in mt(I))mn.call(I,re)&&re!="constructor"&&L.push(re);return L}function Jdt(I){if(!Ja(I))return kft(I);var L=BN(I),re=[];for(var _e in I)_e=="constructor"&&(L||!mn.call(I,_e))||re.push(_e);return re}function FG(I,L){return I<L}function Iye(I,L){var re=-1,_e=Bu(I)?Ge(I.length):[];return D_(I,function(Be,Qe,ct){_e[++re]=L(Be,Qe,ct)}),_e}function Nye(I){var L=JG(I);return L.length==1&&L[0][2]?u_e(L[0][0],L[0][1]):function(re){return re===I||LG(re,I,L)}}function Mye(I,L){return tW(I)&&c_e(L)?u_e(Lg(I),L):function(re){var _e=dW(re,I);return _e===r&&_e===L?fW(re,I):LN(L,_e,g|v)}}function z$(I,L,re,_e,Be){I!==L&&PG(L,function(Qe,ct){if(Be||(Be=new oh),Ja(Qe))eft(I,L,ct,re,z$,_e,Be);else{var _t=_e?_e(rW(I,ct),Qe,ct+"",I,L,Be):r;_t===r&&(_t=Qe),NG(I,ct,_t)}},ju)}function eft(I,L,re,_e,Be,Qe,ct){var _t=rW(I,re),Mt=rW(L,re),un=ct.get(Mt);if(un){NG(I,re,un);return}var dn=Qe?Qe(_t,Mt,re+"",I,L,ct):r,bn=dn===r;if(bn){var Kn=ci(Mt),_r=!Kn&&F_(Mt),Br=!Kn&&!_r&&lx(Mt);dn=Mt,Kn||_r||Br?ci(_t)?dn=_t:Ms(_t)?dn=Fu(_t):_r?(bn=!1,dn=zye(Mt,!0)):Br?(bn=!1,dn=Vye(Mt,!0)):dn=[]:UN(Mt)||aE(Mt)?(dn=_t,aE(_t)?dn=j_e(_t):(!Ja(_t)||_v(_t))&&(dn=l_e(Mt))):bn=!1}bn&&(ct.set(Mt,dn),Be(dn,Mt,_e,Qe,ct),ct.delete(Mt)),NG(I,re,dn)}function Pye(I,L){var re=I.length;if(re)return L+=L<0?re:0,yv(L,re)?I[L]:r}function Aye(I,L,re){L.length?L=Jo(L,function(Qe){return ci(Qe)?function(ct){return rE(ct,Qe.length===1?Qe[0]:Qe)}:Qe}):L=[Uu];var _e=-1;L=Jo(L,xc(Lr()));var Be=Iye(I,function(Qe,ct,_t){var Mt=Jo(L,function(un){return un(Qe)});return{criteria:Mt,index:++_e,value:Qe}});return R$(Be,function(Qe,ct){return pft(Qe,ct,re)})}function tft(I,L){return Dye(I,L,function(re,_e){return fW(I,_e)})}function Dye(I,L,re){for(var _e=-1,Be=L.length,Qe={};++_e<Be;){var ct=L[_e],_t=rE(I,ct);re(_t,ct)&&$N(Qe,L_(ct,I),_t)}return Qe}function nft(I){return function(L){return rE(L,I)}}function BG(I,L,re,_e){var Be=_e?wN:N_,Qe=-1,ct=L.length,_t=I;for(I===L&&(L=Fu(L)),re&&(_t=Jo(I,xc(re)));++Qe<ct;)for(var Mt=0,un=L[Qe],dn=re?re(un):un;(Mt=Be(_t,dn,Mt,_e))>-1;)_t!==I&&A$.call(_t,Mt,1),A$.call(I,Mt,1);return I}function kye(I,L){for(var re=I?L.length:0,_e=re-1;re--;){var Be=L[re];if(re==_e||Be!==Qe){var Qe=Be;yv(Be)?A$.call(I,Be,1):zG(I,Be)}}return I}function jG(I,L){return I+L$(gye()*(L-I+1))}function rft(I,L,re,_e){for(var Be=-1,Qe=hl(k$((L-I)/(re||1)),0),ct=Ge(Qe);Qe--;)ct[_e?Qe:++Be]=I,I+=re;return ct}function UG(I,L){var re="";if(!I||L<1||L>B)return re;do L%2&&(re+=I),L=L$(L/2),L&&(I+=I);while(L);return re}function xi(I,L){return iW(d_e(I,L,Uu),I+"")}function ift(I){return yye(cx(I))}function oft(I,L){var re=cx(I);return J$(re,nE(L,0,re.length))}function $N(I,L,re,_e){if(!Ja(I))return I;L=L_(L,I);for(var Be=-1,Qe=L.length,ct=Qe-1,_t=I;_t!=null&&++Be<Qe;){var Mt=Lg(L[Be]),un=re;if(Mt==="__proto__"||Mt==="constructor"||Mt==="prototype")return I;if(Be!=ct){var dn=_t[Mt];un=_e?_e(dn,Mt,_t):r,un===r&&(un=Ja(dn)?dn:yv(L[Be+1])?[]:{})}AN(_t,Mt,un),_t=_t[Mt]}return I}var Lye=$$?function(I,L){return $$.set(I,L),I}:Uu,aft=D$?function(I,L){return D$(I,"toString",{configurable:!0,enumerable:!1,value:hW(L),writable:!0})}:Uu;function sft(I){return J$(cx(I))}function jf(I,L,re){var _e=-1,Be=I.length;L<0&&(L=-L>Be?0:Be+L),re=re>Be?Be:re,re<0&&(re+=Be),Be=L>re?0:re-L>>>0,L>>>=0;for(var Qe=Ge(Be);++_e<Be;)Qe[_e]=I[_e+L];return Qe}function lft(I,L){var re;return D_(I,function(_e,Be,Qe){return re=L(_e,Be,Qe),!re}),!!re}function V$(I,L,re){var _e=0,Be=I==null?_e:I.length;if(typeof L=="number"&&L===L&&Be<=G){for(;_e<Be;){var Qe=_e+Be>>>1,ct=I[Qe];ct!==null&&!Id(ct)&&(re?ct<=L:ct<L)?_e=Qe+1:Be=Qe}return Be}return HG(I,L,Uu,re)}function HG(I,L,re,_e){var Be=0,Qe=I==null?0:I.length;if(Qe===0)return 0;L=re(L);for(var ct=L!==L,_t=L===null,Mt=Id(L),un=L===r;Be<Qe;){var dn=L$((Be+Qe)/2),bn=re(I[dn]),Kn=bn!==r,_r=bn===null,Br=bn===bn,bi=Id(bn);if(ct)var jr=_e||Br;else un?jr=Br&&(_e||Kn):_t?jr=Br&&Kn&&(_e||!_r):Mt?jr=Br&&Kn&&!_r&&(_e||!bi):_r||bi?jr=!1:jr=_e?bn<=L:bn<L;jr?Be=dn+1:Qe=dn}return Oc(Qe,H)}function $ye(I,L){for(var re=-1,_e=I.length,Be=0,Qe=[];++re<_e;){var ct=I[re],_t=L?L(ct):ct;if(!re||!ah(_t,Mt)){var Mt=_t;Qe[Be++]=ct===0?0:ct}}return Qe}function Fye(I){return typeof I=="number"?I:Id(I)?q:+I}function Rd(I){if(typeof I=="string")return I;if(ci(I))return Jo(I,Rd)+"";if(Id(I))return mye?mye.call(I):"";var L=I+"";return L=="0"&&1/I==-D?"-0":L}function k_(I,L,re){var _e=-1,Be=GS,Qe=I.length,ct=!0,_t=[],Mt=_t;if(re)ct=!1,Be=R_;else if(Qe>=o){var un=L?null:_ft(I);if(un)return P_(un);ct=!1,Be=M_,Mt=new tE}else Mt=L?[]:_t;e:for(;++_e<Qe;){var dn=I[_e],bn=L?L(dn):dn;if(dn=re||dn!==0?dn:0,ct&&bn===bn){for(var Kn=Mt.length;Kn--;)if(Mt[Kn]===bn)continue e;L&&Mt.push(bn),_t.push(dn)}else Be(Mt,bn,re)||(Mt!==_t&&Mt.push(bn),_t.push(dn))}return _t}function zG(I,L){return L=L_(L,I),I=f_e(I,L),I==null||delete I[Lg(Uf(L))]}function Bye(I,L,re,_e){return $N(I,L,re(rE(I,L)),_e)}function G$(I,L,re,_e){for(var Be=I.length,Qe=_e?Be:-1;(_e?Qe--:++Qe<Be)&&L(I[Qe],Qe,I););return re?jf(I,_e?0:Qe,_e?Qe+1:Be):jf(I,_e?Qe+1:0,_e?Be:Qe)}function jye(I,L){var re=I;return re instanceof Vi&&(re=re.value()),I_(L,function(_e,Be){return Be.func.apply(Be.thisArg,th([_e],Be.args))},re)}function VG(I,L,re){var _e=I.length;if(_e<2)return _e?k_(I[0]):[];for(var Be=-1,Qe=Ge(_e);++Be<_e;)for(var ct=I[Be],_t=-1;++_t<_e;)_t!=Be&&(Qe[Be]=DN(Qe[Be]||ct,I[_t],L,re));return k_(ic(Qe,1),L,re)}function Uye(I,L,re){for(var _e=-1,Be=I.length,Qe=L.length,ct={};++_e<Be;){var _t=_e<Qe?L[_e]:r;re(ct,I[_e],_t)}return ct}function GG(I){return Ms(I)?I:[]}function WG(I){return typeof I=="function"?I:Uu}function L_(I,L){return ci(I)?I:tW(I,L)?[I]:m_e(Io(I))}var cft=xi;function $_(I,L,re){var _e=I.length;return re=re===r?_e:re,!L&&re>=_e?I:jf(I,L,re)}var Hye=Xut||function(I){return pl.clearTimeout(I)};function zye(I,L){if(L)return I.slice();var re=I.length,_e=ZS?ZS(re):new I.constructor(re);return I.copy(_e),_e}function YG(I){var L=new I.constructor(I.byteLength);return new Ns(L).set(new Ns(I)),L}function uft(I,L){var re=L?YG(I.buffer):I.buffer;return new I.constructor(re,I.byteOffset,I.byteLength)}function dft(I){var L=new I.constructor(I.source,En.exec(I));return L.lastIndex=I.lastIndex,L}function fft(I){return PN?mt(PN.call(I)):{}}function Vye(I,L){var re=L?YG(I.buffer):I.buffer;return new I.constructor(re,I.byteOffset,I.length)}function Gye(I,L){if(I!==L){var re=I!==r,_e=I===null,Be=I===I,Qe=Id(I),ct=L!==r,_t=L===null,Mt=L===L,un=Id(L);if(!_t&&!un&&!Qe&&I>L||Qe&&ct&&Mt&&!_t&&!un||_e&&ct&&Mt||!re&&Mt||!Be)return 1;if(!_e&&!Qe&&!un&&I<L||un&&re&&Be&&!_e&&!Qe||_t&&re&&Be||!ct&&Be||!Mt)return-1}return 0}function pft(I,L,re){for(var _e=-1,Be=I.criteria,Qe=L.criteria,ct=Be.length,_t=re.length;++_e<ct;){var Mt=Gye(Be[_e],Qe[_e]);if(Mt){if(_e>=_t)return Mt;var un=re[_e];return Mt*(un=="desc"?-1:1)}}return I.index-L.index}function Wye(I,L,re,_e){for(var Be=-1,Qe=I.length,ct=re.length,_t=-1,Mt=L.length,un=hl(Qe-ct,0),dn=Ge(Mt+un),bn=!_e;++_t<Mt;)dn[_t]=L[_t];for(;++Be<ct;)(bn||Be<Qe)&&(dn[re[Be]]=I[Be]);for(;un--;)dn[_t++]=I[Be++];return dn}function Yye(I,L,re,_e){for(var Be=-1,Qe=I.length,ct=-1,_t=re.length,Mt=-1,un=L.length,dn=hl(Qe-_t,0),bn=Ge(dn+un),Kn=!_e;++Be<dn;)bn[Be]=I[Be];for(var _r=Be;++Mt<un;)bn[_r+Mt]=L[Mt];for(;++ct<_t;)(Kn||Be<Qe)&&(bn[_r+re[ct]]=I[Be++]);return bn}function Fu(I,L){var re=-1,_e=I.length;for(L||(L=Ge(_e));++re<_e;)L[re]=I[re];return L}function kg(I,L,re,_e){var Be=!re;re||(re={});for(var Qe=-1,ct=L.length;++Qe<ct;){var _t=L[Qe],Mt=_e?_e(re[_t],I[_t],_t,re,I):r;Mt===r&&(Mt=I[_t]),Be?gv(re,_t,Mt):AN(re,_t,Mt)}return re}function hft(I,L){return kg(I,eW(I),L)}function gft(I,L){return kg(I,a_e(I),L)}function W$(I,L){return function(re,_e){var Be=ci(re)?bN:$dt,Qe=L?L():{};return Be(re,I,Lr(_e,2),Qe)}}function ox(I){return xi(function(L,re){var _e=-1,Be=re.length,Qe=Be>1?re[Be-1]:r,ct=Be>2?re[2]:r;for(Qe=I.length>3&&typeof Qe=="function"?(Be--,Qe):r,ct&&tu(re[0],re[1],ct)&&(Qe=Be<3?r:Qe,Be=1),L=mt(L);++_e<Be;){var _t=re[_e];_t&&I(L,_t,_e,Qe)}return L})}function qye(I,L){return function(re,_e){if(re==null)return re;if(!Bu(re))return I(re,_e);for(var Be=re.length,Qe=L?Be:-1,ct=mt(re);(L?Qe--:++Qe<Be)&&_e(ct[Qe],Qe,ct)!==!1;);return re}}function Kye(I){return function(L,re,_e){for(var Be=-1,Qe=mt(L),ct=_e(L),_t=ct.length;_t--;){var Mt=ct[I?_t:++Be];if(re(Qe[Mt],Mt,Qe)===!1)break}return L}}function mft(I,L,re){var _e=L&y,Be=FN(I);function Qe(){var ct=this&&this!==pl&&this instanceof Qe?Be:I;return ct.apply(_e?re:this,arguments)}return Qe}function Xye(I){return function(L){L=Io(L);var re=ih(L)?se(L):r,_e=re?re[0]:L.charAt(0),Be=re?$_(re,1).join(""):L.slice(1);return _e[I]()+Be}}function ax(I){return function(L){return I_(q_e(Y_e(L).replace(Ng,"")),I,"")}}function FN(I){return function(){var L=arguments;switch(L.length){case 0:return new I;case 1:return new I(L[0]);case 2:return new I(L[0],L[1]);case 3:return new I(L[0],L[1],L[2]);case 4:return new I(L[0],L[1],L[2],L[3]);case 5:return new I(L[0],L[1],L[2],L[3],L[4]);case 6:return new I(L[0],L[1],L[2],L[3],L[4],L[5]);case 7:return new I(L[0],L[1],L[2],L[3],L[4],L[5],L[6])}var re=ix(I.prototype),_e=I.apply(re,L);return Ja(_e)?_e:re}}function vft(I,L,re){var _e=FN(I);function Be(){for(var Qe=arguments.length,ct=Ge(Qe),_t=Qe,Mt=sx(Be);_t--;)ct[_t]=arguments[_t];var un=Qe<3&&ct[0]!==Mt&&ct[Qe-1]!==Mt?[]:Tc(ct,Mt);if(Qe-=un.length,Qe<re)return t_e(I,L,Y$,Be.placeholder,r,ct,un,r,r,re-Qe);var dn=this&&this!==pl&&this instanceof Be?_e:I;return rc(dn,this,ct)}return Be}function Qye(I){return function(L,re,_e){var Be=mt(L);if(!Bu(L)){var Qe=Lr(re,3);L=$l(L),re=function(_t){return Qe(Be[_t],_t,Be)}}var ct=I(L,re,_e);return ct>-1?Be[Qe?L[ct]:ct]:r}}function Zye(I){return vv(function(L){var re=L.length,_e=re,Be=Ff.prototype.thru;for(I&&L.reverse();_e--;){var Qe=L[_e];if(typeof Qe!="function")throw new Ut(s);if(Be&&!ct&&Q$(Qe)=="wrapper")var ct=new Ff([],!0)}for(_e=ct?_e:re;++_e<re;){Qe=L[_e];var _t=Q$(Qe),Mt=_t=="wrapper"?ZG(Qe):r;Mt&&nW(Mt[0])&&Mt[1]==(x|b|w|T)&&!Mt[4].length&&Mt[9]==1?ct=ct[Q$(Mt[0])].apply(ct,Mt[3]):ct=Qe.length==1&&nW(Qe)?ct[_t]():ct.thru(Qe)}return function(){var un=arguments,dn=un[0];if(ct&&un.length==1&&ci(dn))return ct.plant(dn).value();for(var bn=0,Kn=re?L[bn].apply(this,un):dn;++bn<re;)Kn=L[bn].call(this,Kn);return Kn}})}function Y$(I,L,re,_e,Be,Qe,ct,_t,Mt,un){var dn=L&x,bn=L&y,Kn=L&_,_r=L&(b|E),Br=L&R,bi=Kn?r:FN(I);function jr(){for(var $i=arguments.length,Qi=Ge($i),Nd=$i;Nd--;)Qi[Nd]=arguments[Nd];if(_r)var nu=sx(jr),Md=wG(Qi,nu);if(_e&&(Qi=Wye(Qi,_e,Be,_r)),Qe&&(Qi=Yye(Qi,Qe,ct,_r)),$i-=Md,_r&&$i<un){var Ps=Tc(Qi,nu);return t_e(I,L,Y$,jr.placeholder,re,Qi,Ps,_t,Mt,un-$i)}var sh=bn?re:this,Sv=Kn?sh[I]:I;return $i=Qi.length,_t?Qi=$ft(Qi,_t):Br&&$i>1&&Qi.reverse(),dn&&Mt<$i&&(Qi.length=Mt),this&&this!==pl&&this instanceof jr&&(Sv=bi||FN(Sv)),Sv.apply(sh,Qi)}return jr}function Jye(I,L){return function(re,_e){return Gdt(re,I,L(_e),{})}}function q$(I,L){return function(re,_e){var Be;if(re===r&&_e===r)return L;if(re!==r&&(Be=re),_e!==r){if(Be===r)return _e;typeof re=="string"||typeof _e=="string"?(re=Rd(re),_e=Rd(_e)):(re=Fye(re),_e=Fye(_e)),Be=I(re,_e)}return Be}}function qG(I){return vv(function(L){return L=Jo(L,xc(Lr())),xi(function(re){var _e=this;return I(L,function(Be){return rc(Be,_e,re)})})})}function K$(I,L){L=L===r?" ":Rd(L);var re=L.length;if(re<2)return re?UG(L,I):L;var _e=UG(L,k$(I/X(L)));return ih(L)?$_(se(_e),0,I).join(""):_e.slice(0,I)}function yft(I,L,re,_e){var Be=L&y,Qe=FN(I);function ct(){for(var _t=-1,Mt=arguments.length,un=-1,dn=_e.length,bn=Ge(dn+Mt),Kn=this&&this!==pl&&this instanceof ct?Qe:I;++un<dn;)bn[un]=_e[un];for(;Mt--;)bn[un++]=arguments[++_t];return rc(Kn,Be?re:this,bn)}return ct}function e_e(I){return function(L,re,_e){return _e&&typeof _e!="number"&&tu(L,re,_e)&&(re=_e=r),L=bv(L),re===r?(re=L,L=0):re=bv(re),_e=_e===r?L<re?1:-1:bv(_e),rft(L,re,_e,I)}}function X$(I){return function(L,re){return typeof L=="string"&&typeof re=="string"||(L=Hf(L),re=Hf(re)),I(L,re)}}function t_e(I,L,re,_e,Be,Qe,ct,_t,Mt,un){var dn=L&b,bn=dn?ct:r,Kn=dn?r:ct,_r=dn?Qe:r,Br=dn?r:Qe;L|=dn?w:C,L&=~(dn?C:w),L&S||(L&=~(y|_));var bi=[I,L,Be,_r,bn,Br,Kn,_t,Mt,un],jr=re.apply(r,bi);return nW(I)&&p_e(jr,bi),jr.placeholder=_e,h_e(jr,I,L)}function KG(I){var L=xt[I];return function(re,_e){if(re=Hf(re),_e=_e==null?0:Oc(hi(_e),292),_e&&hye(re)){var Be=(Io(re)+"e").split("e"),Qe=L(Be[0]+"e"+(+Be[1]+_e));return Be=(Io(Qe)+"e").split("e"),+(Be[0]+"e"+(+Be[1]-_e))}return L(re)}}var _ft=nx&&1/P_(new nx([,-0]))[1]==D?function(I){return new nx(I)}:vW;function n_e(I){return function(L){var re=Rc(L);return re==ve?QS(L):re==Re?A_(L):I$(L,I(L))}}function mv(I,L,re,_e,Be,Qe,ct,_t){var Mt=L&_;if(!Mt&&typeof I!="function")throw new Ut(s);var un=_e?_e.length:0;if(un||(L&=~(w|C),_e=Be=r),ct=ct===r?ct:hl(hi(ct),0),_t=_t===r?_t:hi(_t),un-=Be?Be.length:0,L&C){var dn=_e,bn=Be;_e=Be=r}var Kn=Mt?r:ZG(I),_r=[I,L,re,_e,Be,dn,bn,Qe,ct,_t];if(Kn&&Dft(_r,Kn),I=_r[0],L=_r[1],re=_r[2],_e=_r[3],Be=_r[4],_t=_r[9]=_r[9]===r?Mt?0:I.length:hl(_r[9]-un,0),!_t&&L&(b|E)&&(L&=~(b|E)),!L||L==y)var Br=mft(I,L,re);else L==b||L==E?Br=vft(I,L,_t):(L==w||L==(y|w))&&!Be.length?Br=yft(I,L,re,_e):Br=Y$.apply(r,_r);var bi=Kn?Lye:p_e;return h_e(bi(Br,_r),I,L)}function r_e(I,L,re,_e){return I===r||ah(I,Fn[re])&&!mn.call(_e,re)?L:I}function i_e(I,L,re,_e,Be,Qe){return Ja(I)&&Ja(L)&&(Qe.set(L,I),z$(I,L,r,i_e,Qe),Qe.delete(L)),I}function bft(I){return UN(I)?r:I}function o_e(I,L,re,_e,Be,Qe){var ct=re&g,_t=I.length,Mt=L.length;if(_t!=Mt&&!(ct&&Mt>_t))return!1;var un=Qe.get(I),dn=Qe.get(L);if(un&&dn)return un==L&&dn==I;var bn=-1,Kn=!0,_r=re&v?new tE:r;for(Qe.set(I,L),Qe.set(L,I);++bn<_t;){var Br=I[bn],bi=L[bn];if(_e)var jr=ct?_e(bi,Br,bn,L,I,Qe):_e(Br,bi,bn,I,L,Qe);if(jr!==r){if(jr)continue;Kn=!1;break}if(_r){if(!nh(L,function($i,Qi){if(!M_(_r,Qi)&&(Br===$i||Be(Br,$i,re,_e,Qe)))return _r.push(Qi)})){Kn=!1;break}}else if(!(Br===bi||Be(Br,bi,re,_e,Qe))){Kn=!1;break}}return Qe.delete(I),Qe.delete(L),Kn}function Sft(I,L,re,_e,Be,Qe,ct){switch(re){case ae:if(I.byteLength!=L.byteLength||I.byteOffset!=L.byteOffset)return!1;I=I.buffer,L=L.buffer;case J:return!(I.byteLength!=L.byteLength||!Qe(new Ns(I),new Ns(L)));case F:case te:case he:return ah(+I,+L);case de:return I.name==L.name&&I.message==L.message;case Ee:case Te:return I==L+"";case ve:var _t=QS;case Re:var Mt=_e&g;if(_t||(_t=P_),I.size!=L.size&&!Mt)return!1;var un=ct.get(I);if(un)return un==L;_e|=v,ct.set(I,L);var dn=o_e(_t(I),_t(L),_e,Be,Qe,ct);return ct.delete(I),dn;case Oe:if(PN)return PN.call(I)==PN.call(L)}return!1}function Eft(I,L,re,_e,Be,Qe){var ct=re&g,_t=XG(I),Mt=_t.length,un=XG(L),dn=un.length;if(Mt!=dn&&!ct)return!1;for(var bn=Mt;bn--;){var Kn=_t[bn];if(!(ct?Kn in L:mn.call(L,Kn)))return!1}var _r=Qe.get(I),Br=Qe.get(L);if(_r&&Br)return _r==L&&Br==I;var bi=!0;Qe.set(I,L),Qe.set(L,I);for(var jr=ct;++bn<Mt;){Kn=_t[bn];var $i=I[Kn],Qi=L[Kn];if(_e)var Nd=ct?_e(Qi,$i,Kn,L,I,Qe):_e($i,Qi,Kn,I,L,Qe);if(!(Nd===r?$i===Qi||Be($i,Qi,re,_e,Qe):Nd)){bi=!1;break}jr||(jr=Kn=="constructor")}if(bi&&!jr){var nu=I.constructor,Md=L.constructor;nu!=Md&&"constructor"in I&&"constructor"in L&&!(typeof nu=="function"&&nu instanceof nu&&typeof Md=="function"&&Md instanceof Md)&&(bi=!1)}return Qe.delete(I),Qe.delete(L),bi}function vv(I){return iW(d_e(I,r,b_e),I+"")}function XG(I){return xye(I,$l,eW)}function QG(I){return xye(I,ju,a_e)}var ZG=$$?function(I){return $$.get(I)}:vW;function Q$(I){for(var L=I.name+"",re=rx[L],_e=mn.call(rx,L)?re.length:0;_e--;){var Be=re[_e],Qe=Be.func;if(Qe==null||Qe==I)return Be.name}return L}function sx(I){var L=mn.call(Ke,"placeholder")?Ke:I;return L.placeholder}function Lr(){var I=Ke.iteratee||gW;return I=I===gW?Rye:I,arguments.length?I(arguments[0],arguments[1]):I}function Z$(I,L){var re=I.__data__;return Nft(L)?re[typeof L=="string"?"string":"hash"]:re.map}function JG(I){for(var L=$l(I),re=L.length;re--;){var _e=L[re],Be=I[_e];L[re]=[_e,Be,c_e(Be)]}return L}function iE(I,L){var re=Za(I,L);return Oye(re)?re:r}function Cft(I){var L=mn.call(I,JS),re=I[JS];try{I[JS]=r;var _e=!0}catch{}var Be=Jr.call(I);return _e&&(L?I[JS]=re:delete I[JS]),Be}var eW=OG?function(I){return I==null?[]:(I=mt(I),Lu(OG(I),function(L){return tx.call(I,L)}))}:yW,a_e=OG?function(I){for(var L=[];I;)th(L,eW(I)),I=Js(I);return L}:yW,Rc=eu;(RG&&Rc(new RG(new ArrayBuffer(1)))!=ae||IN&&Rc(new IN)!=ve||IG&&Rc(IG.resolve())!=De||nx&&Rc(new nx)!=Re||NN&&Rc(new NN)!=je)&&(Rc=function(I){var L=eu(I),re=L==we?I.constructor:r,_e=re?oE(re):"";if(_e)switch(_e){case odt:return ae;case adt:return ve;case sdt:return De;case ldt:return Re;case cdt:return je}return L});function wft(I,L,re){for(var _e=-1,Be=re.length;++_e<Be;){var Qe=re[_e],ct=Qe.size;switch(Qe.type){case"drop":I+=ct;break;case"dropRight":L-=ct;break;case"take":L=Oc(L,I+ct);break;case"takeRight":I=hl(I,L-ct);break}}return{start:I,end:L}}function xft(I){var L=I.match(Kt);return L?L[1].split(Ht):[]}function s_e(I,L,re){L=L_(L,I);for(var _e=-1,Be=L.length,Qe=!1;++_e<Be;){var ct=Lg(L[_e]);if(!(Qe=I!=null&&re(I,ct)))break;I=I[ct]}return Qe||++_e!=Be?Qe:(Be=I==null?0:I.length,!!Be&&o3(Be)&&yv(ct,Be)&&(ci(I)||aE(I)))}function Tft(I){var L=I.length,re=new I.constructor(L);return L&&typeof I[0]=="string"&&mn.call(I,"index")&&(re.index=I.index,re.input=I.input),re}function l_e(I){return typeof I.constructor=="function"&&!BN(I)?ix(Js(I)):{}}function Oft(I,L,re){var _e=I.constructor;switch(L){case J:return YG(I);case F:case te:return new _e(+I);case ae:return uft(I,re);case Se:case xe:case ue:case Me:case $e:case ge:case Ve:case st:case Je:return Vye(I,re);case ve:return new _e;case he:case Te:return new _e(I);case Ee:return dft(I);case Re:return new _e;case Oe:return fft(I)}}function Rft(I,L){var re=L.length;if(!re)return I;var _e=re-1;return L[_e]=(re>1?"& ":"")+L[_e],L=L.join(re>2?", ":" "),I.replace(Dt,`{
|
||
/* [wrapped with `+L+`] */
|
||
`)}function Ift(I){return ci(I)||aE(I)||!!(pye&&I&&I[pye])}function yv(I,L){var re=typeof I;return L=L??B,!!L&&(re=="number"||re!="symbol"&&Lt.test(I))&&I>-1&&I%1==0&&I<L}function tu(I,L,re){if(!Ja(re))return!1;var _e=typeof L;return(_e=="number"?Bu(re)&&yv(L,re.length):_e=="string"&&L in re)?ah(re[L],I):!1}function tW(I,L){if(ci(I))return!1;var re=typeof I;return re=="number"||re=="symbol"||re=="boolean"||I==null||Id(I)?!0:rn.test(I)||!Vt.test(I)||L!=null&&I in mt(L)}function Nft(I){var L=typeof I;return L=="string"||L=="number"||L=="symbol"||L=="boolean"?I!=="__proto__":I===null}function nW(I){var L=Q$(I),re=Ke[L];if(typeof re!="function"||!(L in Vi.prototype))return!1;if(I===re)return!0;var _e=ZG(re);return!!_e&&I===_e[0]}function Mft(I){return!!rr&&rr in I}var Pft=Rn?_v:_W;function BN(I){var L=I&&I.constructor,re=typeof L=="function"&&L.prototype||Fn;return I===re}function c_e(I){return I===I&&!Ja(I)}function u_e(I,L){return function(re){return re==null?!1:re[I]===L&&(L!==r||I in mt(re))}}function Aft(I){var L=r3(I,function(_e){return re.size===u&&re.clear(),_e}),re=L.cache;return L}function Dft(I,L){var re=I[1],_e=L[1],Be=re|_e,Qe=Be<(y|_|x),ct=_e==x&&re==b||_e==x&&re==T&&I[7].length<=L[8]||_e==(x|T)&&L[7].length<=L[8]&&re==b;if(!(Qe||ct))return I;_e&y&&(I[2]=L[2],Be|=re&y?0:S);var _t=L[3];if(_t){var Mt=I[3];I[3]=Mt?Wye(Mt,_t,L[4]):_t,I[4]=Mt?Tc(I[3],d):L[4]}return _t=L[5],_t&&(Mt=I[5],I[5]=Mt?Yye(Mt,_t,L[6]):_t,I[6]=Mt?Tc(I[5],d):L[6]),_t=L[7],_t&&(I[7]=_t),_e&x&&(I[8]=I[8]==null?L[8]:Oc(I[8],L[8])),I[9]==null&&(I[9]=L[9]),I[0]=L[0],I[1]=Be,I}function kft(I){var L=[];if(I!=null)for(var re in mt(I))L.push(re);return L}function Lft(I){return Jr.call(I)}function d_e(I,L,re){return L=hl(L===r?I.length-1:L,0),function(){for(var _e=arguments,Be=-1,Qe=hl(_e.length-L,0),ct=Ge(Qe);++Be<Qe;)ct[Be]=_e[L+Be];Be=-1;for(var _t=Ge(L+1);++Be<L;)_t[Be]=_e[Be];return _t[L]=re(ct),rc(I,this,_t)}}function f_e(I,L){return L.length<2?I:rE(I,jf(L,0,-1))}function $ft(I,L){for(var re=I.length,_e=Oc(L.length,re),Be=Fu(I);_e--;){var Qe=L[_e];I[_e]=yv(Qe,re)?Be[Qe]:r}return I}function rW(I,L){if(!(L==="constructor"&&typeof I[L]=="function")&&L!="__proto__")return I[L]}var p_e=g_e(Lye),jN=Zut||function(I,L){return pl.setTimeout(I,L)},iW=g_e(aft);function h_e(I,L,re){var _e=L+"";return iW(I,Rft(_e,Fft(xft(_e),re)))}function g_e(I){var L=0,re=0;return function(){var _e=ndt(),Be=k-(_e-re);if(re=_e,Be>0){if(++L>=P)return arguments[0]}else L=0;return I.apply(r,arguments)}}function J$(I,L){var re=-1,_e=I.length,Be=_e-1;for(L=L===r?_e:L;++re<L;){var Qe=jG(re,Be),ct=I[Qe];I[Qe]=I[re],I[re]=ct}return I.length=L,I}var m_e=Aft(function(I){var L=[];return I.charCodeAt(0)===46&&L.push(""),I.replace(tt,function(re,_e,Be,Qe){L.push(Be?Qe.replace(sn,"$1"):_e||re)}),L});function Lg(I){if(typeof I=="string"||Id(I))return I;var L=I+"";return L=="0"&&1/I==-D?"-0":L}function oE(I){if(I!=null){try{return Ln.call(I)}catch{}try{return I+""}catch{}}return""}function Fft(I,L){return wc(Q,function(re){var _e="_."+re[0];L&re[1]&&!GS(I,_e)&&I.push(_e)}),I.sort()}function v_e(I){if(I instanceof Vi)return I.clone();var L=new Ff(I.__wrapped__,I.__chain__);return L.__actions__=Fu(I.__actions__),L.__index__=I.__index__,L.__values__=I.__values__,L}function Bft(I,L,re){(re?tu(I,L,re):L===r)?L=1:L=hl(hi(L),0);var _e=I==null?0:I.length;if(!_e||L<1)return[];for(var Be=0,Qe=0,ct=Ge(k$(_e/L));Be<_e;)ct[Qe++]=jf(I,Be,Be+=L);return ct}function jft(I){for(var L=-1,re=I==null?0:I.length,_e=0,Be=[];++L<re;){var Qe=I[L];Qe&&(Be[_e++]=Qe)}return Be}function Uft(){var I=arguments.length;if(!I)return[];for(var L=Ge(I-1),re=arguments[0],_e=I;_e--;)L[_e-1]=arguments[_e];return th(ci(re)?Fu(re):[re],ic(L,1))}var Hft=xi(function(I,L){return Ms(I)?DN(I,ic(L,1,Ms,!0)):[]}),zft=xi(function(I,L){var re=Uf(L);return Ms(re)&&(re=r),Ms(I)?DN(I,ic(L,1,Ms,!0),Lr(re,2)):[]}),Vft=xi(function(I,L){var re=Uf(L);return Ms(re)&&(re=r),Ms(I)?DN(I,ic(L,1,Ms,!0),r,re):[]});function Gft(I,L,re){var _e=I==null?0:I.length;return _e?(L=re||L===r?1:hi(L),jf(I,L<0?0:L,_e)):[]}function Wft(I,L,re){var _e=I==null?0:I.length;return _e?(L=re||L===r?1:hi(L),L=_e-L,jf(I,0,L<0?0:L)):[]}function Yft(I,L){return I&&I.length?G$(I,Lr(L,3),!0,!0):[]}function qft(I,L){return I&&I.length?G$(I,Lr(L,3),!0):[]}function Kft(I,L,re,_e){var Be=I==null?0:I.length;return Be?(re&&typeof re!="number"&&tu(I,L,re)&&(re=0,_e=Be),Udt(I,L,re,_e)):[]}function y_e(I,L,re){var _e=I==null?0:I.length;if(!_e)return-1;var Be=re==null?0:hi(re);return Be<0&&(Be=hl(_e+Be,0)),WS(I,Lr(L,3),Be)}function __e(I,L,re){var _e=I==null?0:I.length;if(!_e)return-1;var Be=_e-1;return re!==r&&(Be=hi(re),Be=re<0?hl(_e+Be,0):Oc(Be,_e-1)),WS(I,Lr(L,3),Be,!0)}function b_e(I){var L=I==null?0:I.length;return L?ic(I,1):[]}function Xft(I){var L=I==null?0:I.length;return L?ic(I,D):[]}function Qft(I,L){var re=I==null?0:I.length;return re?(L=L===r?1:hi(L),ic(I,L)):[]}function Zft(I){for(var L=-1,re=I==null?0:I.length,_e={};++L<re;){var Be=I[L];_e[Be[0]]=Be[1]}return _e}function S_e(I){return I&&I.length?I[0]:r}function Jft(I,L,re){var _e=I==null?0:I.length;if(!_e)return-1;var Be=re==null?0:hi(re);return Be<0&&(Be=hl(_e+Be,0)),N_(I,L,Be)}function ept(I){var L=I==null?0:I.length;return L?jf(I,0,-1):[]}var tpt=xi(function(I){var L=Jo(I,GG);return L.length&&L[0]===I[0]?kG(L):[]}),npt=xi(function(I){var L=Uf(I),re=Jo(I,GG);return L===Uf(re)?L=r:re.pop(),re.length&&re[0]===I[0]?kG(re,Lr(L,2)):[]}),rpt=xi(function(I){var L=Uf(I),re=Jo(I,GG);return L=typeof L=="function"?L:r,L&&re.pop(),re.length&&re[0]===I[0]?kG(re,r,L):[]});function ipt(I,L){return I==null?"":edt.call(I,L)}function Uf(I){var L=I==null?0:I.length;return L?I[L-1]:r}function opt(I,L,re){var _e=I==null?0:I.length;if(!_e)return-1;var Be=_e;return re!==r&&(Be=hi(re),Be=Be<0?hl(_e+Be,0):Oc(Be,_e-1)),L===L?P$(I,L,Be):WS(I,YS,Be,!0)}function apt(I,L){return I&&I.length?Pye(I,hi(L)):r}var spt=xi(E_e);function E_e(I,L){return I&&I.length&&L&&L.length?BG(I,L):I}function lpt(I,L,re){return I&&I.length&&L&&L.length?BG(I,L,Lr(re,2)):I}function cpt(I,L,re){return I&&I.length&&L&&L.length?BG(I,L,r,re):I}var upt=vv(function(I,L){var re=I==null?0:I.length,_e=MG(I,L);return kye(I,Jo(L,function(Be){return yv(Be,re)?+Be:Be}).sort(Gye)),_e});function dpt(I,L){var re=[];if(!(I&&I.length))return re;var _e=-1,Be=[],Qe=I.length;for(L=Lr(L,3);++_e<Qe;){var ct=I[_e];L(ct,_e,I)&&(re.push(ct),Be.push(_e))}return kye(I,Be),re}function oW(I){return I==null?I:idt.call(I)}function fpt(I,L,re){var _e=I==null?0:I.length;return _e?(re&&typeof re!="number"&&tu(I,L,re)?(L=0,re=_e):(L=L==null?0:hi(L),re=re===r?_e:hi(re)),jf(I,L,re)):[]}function ppt(I,L){return V$(I,L)}function hpt(I,L,re){return HG(I,L,Lr(re,2))}function gpt(I,L){var re=I==null?0:I.length;if(re){var _e=V$(I,L);if(_e<re&&ah(I[_e],L))return _e}return-1}function mpt(I,L){return V$(I,L,!0)}function vpt(I,L,re){return HG(I,L,Lr(re,2),!0)}function ypt(I,L){var re=I==null?0:I.length;if(re){var _e=V$(I,L,!0)-1;if(ah(I[_e],L))return _e}return-1}function _pt(I){return I&&I.length?$ye(I):[]}function bpt(I,L){return I&&I.length?$ye(I,Lr(L,2)):[]}function Spt(I){var L=I==null?0:I.length;return L?jf(I,1,L):[]}function Ept(I,L,re){return I&&I.length?(L=re||L===r?1:hi(L),jf(I,0,L<0?0:L)):[]}function Cpt(I,L,re){var _e=I==null?0:I.length;return _e?(L=re||L===r?1:hi(L),L=_e-L,jf(I,L<0?0:L,_e)):[]}function wpt(I,L){return I&&I.length?G$(I,Lr(L,3),!1,!0):[]}function xpt(I,L){return I&&I.length?G$(I,Lr(L,3)):[]}var Tpt=xi(function(I){return k_(ic(I,1,Ms,!0))}),Opt=xi(function(I){var L=Uf(I);return Ms(L)&&(L=r),k_(ic(I,1,Ms,!0),Lr(L,2))}),Rpt=xi(function(I){var L=Uf(I);return L=typeof L=="function"?L:r,k_(ic(I,1,Ms,!0),r,L)});function Ipt(I){return I&&I.length?k_(I):[]}function Npt(I,L){return I&&I.length?k_(I,Lr(L,2)):[]}function Mpt(I,L){return L=typeof L=="function"?L:r,I&&I.length?k_(I,r,L):[]}function aW(I){if(!(I&&I.length))return[];var L=0;return I=Lu(I,function(re){if(Ms(re))return L=hl(re.length,L),!0}),Jw(L,function(re){return Jo(I,qS(re))})}function C_e(I,L){if(!(I&&I.length))return[];var re=aW(I);return L==null?re:Jo(re,function(_e){return rc(L,r,_e)})}var Ppt=xi(function(I,L){return Ms(I)?DN(I,L):[]}),Apt=xi(function(I){return VG(Lu(I,Ms))}),Dpt=xi(function(I){var L=Uf(I);return Ms(L)&&(L=r),VG(Lu(I,Ms),Lr(L,2))}),kpt=xi(function(I){var L=Uf(I);return L=typeof L=="function"?L:r,VG(Lu(I,Ms),r,L)}),Lpt=xi(aW);function $pt(I,L){return Uye(I||[],L||[],AN)}function Fpt(I,L){return Uye(I||[],L||[],$N)}var Bpt=xi(function(I){var L=I.length,re=L>1?I[L-1]:r;return re=typeof re=="function"?(I.pop(),re):r,C_e(I,re)});function w_e(I){var L=Ke(I);return L.__chain__=!0,L}function jpt(I,L){return L(I),I}function e3(I,L){return L(I)}var Upt=vv(function(I){var L=I.length,re=L?I[0]:0,_e=this.__wrapped__,Be=function(Qe){return MG(Qe,I)};return L>1||this.__actions__.length||!(_e instanceof Vi)||!yv(re)?this.thru(Be):(_e=_e.slice(re,+re+(L?1:0)),_e.__actions__.push({func:e3,args:[Be],thisArg:r}),new Ff(_e,this.__chain__).thru(function(Qe){return L&&!Qe.length&&Qe.push(r),Qe}))});function Hpt(){return w_e(this)}function zpt(){return new Ff(this.value(),this.__chain__)}function Vpt(){this.__values__===r&&(this.__values__=F_e(this.value()));var I=this.__index__>=this.__values__.length,L=I?r:this.__values__[this.__index__++];return{done:I,value:L}}function Gpt(){return this}function Wpt(I){for(var L,re=this;re instanceof B$;){var _e=v_e(re);_e.__index__=0,_e.__values__=r,L?Be.__wrapped__=_e:L=_e;var Be=_e;re=re.__wrapped__}return Be.__wrapped__=I,L}function Ypt(){var I=this.__wrapped__;if(I instanceof Vi){var L=I;return this.__actions__.length&&(L=new Vi(this)),L=L.reverse(),L.__actions__.push({func:e3,args:[oW],thisArg:r}),new Ff(L,this.__chain__)}return this.thru(oW)}function qpt(){return jye(this.__wrapped__,this.__actions__)}var Kpt=W$(function(I,L,re){mn.call(I,re)?++I[re]:gv(I,re,1)});function Xpt(I,L,re){var _e=ci(I)?O_:jdt;return re&&tu(I,L,re)&&(L=r),_e(I,Lr(L,3))}function Qpt(I,L){var re=ci(I)?Lu:Cye;return re(I,Lr(L,3))}var Zpt=Qye(y_e),Jpt=Qye(__e);function eht(I,L){return ic(t3(I,L),1)}function tht(I,L){return ic(t3(I,L),D)}function nht(I,L,re){return re=re===r?1:hi(re),ic(t3(I,L),re)}function x_e(I,L){var re=ci(I)?wc:D_;return re(I,Lr(L,3))}function T_e(I,L){var re=ci(I)?Ll:Eye;return re(I,Lr(L,3))}var rht=W$(function(I,L,re){mn.call(I,re)?I[re].push(L):gv(I,re,[L])});function iht(I,L,re,_e){I=Bu(I)?I:cx(I),re=re&&!_e?hi(re):0;var Be=I.length;return re<0&&(re=hl(Be+re,0)),a3(I)?re<=Be&&I.indexOf(L,re)>-1:!!Be&&N_(I,L,re)>-1}var oht=xi(function(I,L,re){var _e=-1,Be=typeof L=="function",Qe=Bu(I)?Ge(I.length):[];return D_(I,function(ct){Qe[++_e]=Be?rc(L,ct,re):kN(ct,L,re)}),Qe}),aht=W$(function(I,L,re){gv(I,re,L)});function t3(I,L){var re=ci(I)?Jo:Iye;return re(I,Lr(L,3))}function sht(I,L,re,_e){return I==null?[]:(ci(L)||(L=L==null?[]:[L]),re=_e?r:re,ci(re)||(re=re==null?[]:[re]),Aye(I,L,re))}var lht=W$(function(I,L,re){I[re?0:1].push(L)},function(){return[[],[]]});function cht(I,L,re){var _e=ci(I)?I_:O$,Be=arguments.length<3;return _e(I,Lr(L,4),re,Be,D_)}function uht(I,L,re){var _e=ci(I)?SN:O$,Be=arguments.length<3;return _e(I,Lr(L,4),re,Be,Eye)}function dht(I,L){var re=ci(I)?Lu:Cye;return re(I,i3(Lr(L,3)))}function fht(I){var L=ci(I)?yye:ift;return L(I)}function pht(I,L,re){(re?tu(I,L,re):L===r)?L=1:L=hi(L);var _e=ci(I)?kdt:oft;return _e(I,L)}function hht(I){var L=ci(I)?Ldt:sft;return L(I)}function ght(I){if(I==null)return 0;if(Bu(I))return a3(I)?X(I):I.length;var L=Rc(I);return L==ve||L==Re?I.size:$G(I).length}function mht(I,L,re){var _e=ci(I)?nh:lft;return re&&tu(I,L,re)&&(L=r),_e(I,Lr(L,3))}var vht=xi(function(I,L){if(I==null)return[];var re=L.length;return re>1&&tu(I,L[0],L[1])?L=[]:re>2&&tu(L[0],L[1],L[2])&&(L=[L[0]]),Aye(I,ic(L,1),[])}),n3=Qut||function(){return pl.Date.now()};function yht(I,L){if(typeof L!="function")throw new Ut(s);return I=hi(I),function(){if(--I<1)return L.apply(this,arguments)}}function O_e(I,L,re){return L=re?r:L,L=I&&L==null?I.length:L,mv(I,x,r,r,r,r,L)}function R_e(I,L){var re;if(typeof L!="function")throw new Ut(s);return I=hi(I),function(){return--I>0&&(re=L.apply(this,arguments)),I<=1&&(L=r),re}}var sW=xi(function(I,L,re){var _e=y;if(re.length){var Be=Tc(re,sx(sW));_e|=w}return mv(I,_e,L,re,Be)}),I_e=xi(function(I,L,re){var _e=y|_;if(re.length){var Be=Tc(re,sx(I_e));_e|=w}return mv(L,_e,I,re,Be)});function N_e(I,L,re){L=re?r:L;var _e=mv(I,b,r,r,r,r,r,L);return _e.placeholder=N_e.placeholder,_e}function M_e(I,L,re){L=re?r:L;var _e=mv(I,E,r,r,r,r,r,L);return _e.placeholder=M_e.placeholder,_e}function P_e(I,L,re){var _e,Be,Qe,ct,_t,Mt,un=0,dn=!1,bn=!1,Kn=!0;if(typeof I!="function")throw new Ut(s);L=Hf(L)||0,Ja(re)&&(dn=!!re.leading,bn="maxWait"in re,Qe=bn?hl(Hf(re.maxWait)||0,L):Qe,Kn="trailing"in re?!!re.trailing:Kn);function _r(Ps){var sh=_e,Sv=Be;return _e=Be=r,un=Ps,ct=I.apply(Sv,sh),ct}function Br(Ps){return un=Ps,_t=jN($i,L),dn?_r(Ps):ct}function bi(Ps){var sh=Ps-Mt,Sv=Ps-un,Q_e=L-sh;return bn?Oc(Q_e,Qe-Sv):Q_e}function jr(Ps){var sh=Ps-Mt,Sv=Ps-un;return Mt===r||sh>=L||sh<0||bn&&Sv>=Qe}function $i(){var Ps=n3();if(jr(Ps))return Qi(Ps);_t=jN($i,bi(Ps))}function Qi(Ps){return _t=r,Kn&&_e?_r(Ps):(_e=Be=r,ct)}function Nd(){_t!==r&&Hye(_t),un=0,_e=Mt=Be=_t=r}function nu(){return _t===r?ct:Qi(n3())}function Md(){var Ps=n3(),sh=jr(Ps);if(_e=arguments,Be=this,Mt=Ps,sh){if(_t===r)return Br(Mt);if(bn)return Hye(_t),_t=jN($i,L),_r(Mt)}return _t===r&&(_t=jN($i,L)),ct}return Md.cancel=Nd,Md.flush=nu,Md}var _ht=xi(function(I,L){return Sye(I,1,L)}),bht=xi(function(I,L,re){return Sye(I,Hf(L)||0,re)});function Sht(I){return mv(I,R)}function r3(I,L){if(typeof I!="function"||L!=null&&typeof L!="function")throw new Ut(s);var re=function(){var _e=arguments,Be=L?L.apply(this,_e):_e[0],Qe=re.cache;if(Qe.has(Be))return Qe.get(Be);var ct=I.apply(this,_e);return re.cache=Qe.set(Be,ct)||Qe,ct};return re.cache=new(r3.Cache||hv),re}r3.Cache=hv;function i3(I){if(typeof I!="function")throw new Ut(s);return function(){var L=arguments;switch(L.length){case 0:return!I.call(this);case 1:return!I.call(this,L[0]);case 2:return!I.call(this,L[0],L[1]);case 3:return!I.call(this,L[0],L[1],L[2])}return!I.apply(this,L)}}function Eht(I){return R_e(2,I)}var Cht=cft(function(I,L){L=L.length==1&&ci(L[0])?Jo(L[0],xc(Lr())):Jo(ic(L,1),xc(Lr()));var re=L.length;return xi(function(_e){for(var Be=-1,Qe=Oc(_e.length,re);++Be<Qe;)_e[Be]=L[Be].call(this,_e[Be]);return rc(I,this,_e)})}),lW=xi(function(I,L){var re=Tc(L,sx(lW));return mv(I,w,r,L,re)}),A_e=xi(function(I,L){var re=Tc(L,sx(A_e));return mv(I,C,r,L,re)}),wht=vv(function(I,L){return mv(I,T,r,r,r,L)});function xht(I,L){if(typeof I!="function")throw new Ut(s);return L=L===r?L:hi(L),xi(I,L)}function Tht(I,L){if(typeof I!="function")throw new Ut(s);return L=L==null?0:hl(hi(L),0),xi(function(re){var _e=re[L],Be=$_(re,0,L);return _e&&th(Be,_e),rc(I,this,Be)})}function Oht(I,L,re){var _e=!0,Be=!0;if(typeof I!="function")throw new Ut(s);return Ja(re)&&(_e="leading"in re?!!re.leading:_e,Be="trailing"in re?!!re.trailing:Be),P_e(I,L,{leading:_e,maxWait:L,trailing:Be})}function Rht(I){return O_e(I,1)}function Iht(I,L){return lW(WG(L),I)}function Nht(){if(!arguments.length)return[];var I=arguments[0];return ci(I)?I:[I]}function Mht(I){return Bf(I,h)}function Pht(I,L){return L=typeof L=="function"?L:r,Bf(I,h,L)}function Aht(I){return Bf(I,f|h)}function Dht(I,L){return L=typeof L=="function"?L:r,Bf(I,f|h,L)}function kht(I,L){return L==null||bye(I,L,$l(L))}function ah(I,L){return I===L||I!==I&&L!==L}var Lht=X$(DG),$ht=X$(function(I,L){return I>=L}),aE=Tye(function(){return arguments}())?Tye:function(I){return ds(I)&&mn.call(I,"callee")&&!tx.call(I,"callee")},ci=Ge.isArray,Fht=HS?xc(HS):Wdt;function Bu(I){return I!=null&&o3(I.length)&&!_v(I)}function Ms(I){return ds(I)&&Bu(I)}function Bht(I){return I===!0||I===!1||ds(I)&&eu(I)==F}var F_=Jut||_W,jht=zS?xc(zS):Ydt;function Uht(I){return ds(I)&&I.nodeType===1&&!UN(I)}function Hht(I){if(I==null)return!0;if(Bu(I)&&(ci(I)||typeof I=="string"||typeof I.splice=="function"||F_(I)||lx(I)||aE(I)))return!I.length;var L=Rc(I);if(L==ve||L==Re)return!I.size;if(BN(I))return!$G(I).length;for(var re in I)if(mn.call(I,re))return!1;return!0}function zht(I,L){return LN(I,L)}function Vht(I,L,re){re=typeof re=="function"?re:r;var _e=re?re(I,L):r;return _e===r?LN(I,L,r,re):!!_e}function cW(I){if(!ds(I))return!1;var L=eu(I);return L==de||L==oe||typeof I.message=="string"&&typeof I.name=="string"&&!UN(I)}function Ght(I){return typeof I=="number"&&hye(I)}function _v(I){if(!Ja(I))return!1;var L=eu(I);return L==pe||L==me||L==j||L==Ae}function D_e(I){return typeof I=="number"&&I==hi(I)}function o3(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=B}function Ja(I){var L=typeof I;return I!=null&&(L=="object"||L=="function")}function ds(I){return I!=null&&typeof I=="object"}var k_e=_N?xc(_N):Kdt;function Wht(I,L){return I===L||LG(I,L,JG(L))}function Yht(I,L,re){return re=typeof re=="function"?re:r,LG(I,L,JG(L),re)}function qht(I){return L_e(I)&&I!=+I}function Kht(I){if(Pft(I))throw new lt(a);return Oye(I)}function Xht(I){return I===null}function Qht(I){return I==null}function L_e(I){return typeof I=="number"||ds(I)&&eu(I)==he}function UN(I){if(!ds(I)||eu(I)!=we)return!1;var L=Js(I);if(L===null)return!0;var re=mn.call(L,"constructor")&&L.constructor;return typeof re=="function"&&re instanceof re&&Ln.call(re)==yi}var uW=x$?xc(x$):Xdt;function Zht(I){return D_e(I)&&I>=-B&&I<=B}var $_e=VS?xc(VS):Qdt;function a3(I){return typeof I=="string"||!ci(I)&&ds(I)&&eu(I)==Te}function Id(I){return typeof I=="symbol"||ds(I)&&eu(I)==Oe}var lx=Xw?xc(Xw):Zdt;function Jht(I){return I===r}function egt(I){return ds(I)&&Rc(I)==je}function tgt(I){return ds(I)&&eu(I)==ne}var ngt=X$(FG),rgt=X$(function(I,L){return I<=L});function F_e(I){if(!I)return[];if(Bu(I))return a3(I)?se(I):Fu(I);if(RN&&I[RN])return TG(I[RN]());var L=Rc(I),re=L==ve?QS:L==Re?P_:cx;return re(I)}function bv(I){if(!I)return I===0?I:0;if(I=Hf(I),I===D||I===-D){var L=I<0?-1:1;return L*Y}return I===I?I:0}function hi(I){var L=bv(I),re=L%1;return L===L?re?L-re:L:0}function B_e(I){return I?nE(hi(I),0,K):0}function Hf(I){if(typeof I=="number")return I;if(Id(I))return q;if(Ja(I)){var L=typeof I.valueOf=="function"?I.valueOf():I;I=Ja(L)?L+"":L}if(typeof I!="string")return I===0?I:+I;I=N$(I);var re=Qt.test(I);return re||jt.test(I)?Ww(I.slice(2),re?2:8):Pt.test(I)?q:+I}function j_e(I){return kg(I,ju(I))}function igt(I){return I?nE(hi(I),-B,B):I===0?I:0}function Io(I){return I==null?"":Rd(I)}var ogt=ox(function(I,L){if(BN(L)||Bu(L)){kg(L,$l(L),I);return}for(var re in L)mn.call(L,re)&&AN(I,re,L[re])}),U_e=ox(function(I,L){kg(L,ju(L),I)}),s3=ox(function(I,L,re,_e){kg(L,ju(L),I,_e)}),agt=ox(function(I,L,re,_e){kg(L,$l(L),I,_e)}),sgt=vv(MG);function lgt(I,L){var re=ix(I);return L==null?re:_ye(re,L)}var cgt=xi(function(I,L){I=mt(I);var re=-1,_e=L.length,Be=_e>2?L[2]:r;for(Be&&tu(L[0],L[1],Be)&&(_e=1);++re<_e;)for(var Qe=L[re],ct=ju(Qe),_t=-1,Mt=ct.length;++_t<Mt;){var un=ct[_t],dn=I[un];(dn===r||ah(dn,Fn[un])&&!mn.call(I,un))&&(I[un]=Qe[un])}return I}),ugt=xi(function(I){return I.push(r,i_e),rc(H_e,r,I)});function dgt(I,L){return Zw(I,Lr(L,3),Dg)}function fgt(I,L){return Zw(I,Lr(L,3),AG)}function pgt(I,L){return I==null?I:PG(I,Lr(L,3),ju)}function hgt(I,L){return I==null?I:wye(I,Lr(L,3),ju)}function ggt(I,L){return I&&Dg(I,Lr(L,3))}function mgt(I,L){return I&&AG(I,Lr(L,3))}function vgt(I){return I==null?[]:H$(I,$l(I))}function ygt(I){return I==null?[]:H$(I,ju(I))}function dW(I,L,re){var _e=I==null?r:rE(I,L);return _e===r?re:_e}function _gt(I,L){return I!=null&&s_e(I,L,Hdt)}function fW(I,L){return I!=null&&s_e(I,L,zdt)}var bgt=Jye(function(I,L,re){L!=null&&typeof L.toString!="function"&&(L=Jr.call(L)),I[L]=re},hW(Uu)),Sgt=Jye(function(I,L,re){L!=null&&typeof L.toString!="function"&&(L=Jr.call(L)),mn.call(I,L)?I[L].push(re):I[L]=[re]},Lr),Egt=xi(kN);function $l(I){return Bu(I)?vye(I):$G(I)}function ju(I){return Bu(I)?vye(I,!0):Jdt(I)}function Cgt(I,L){var re={};return L=Lr(L,3),Dg(I,function(_e,Be,Qe){gv(re,L(_e,Be,Qe),_e)}),re}function wgt(I,L){var re={};return L=Lr(L,3),Dg(I,function(_e,Be,Qe){gv(re,Be,L(_e,Be,Qe))}),re}var xgt=ox(function(I,L,re){z$(I,L,re)}),H_e=ox(function(I,L,re,_e){z$(I,L,re,_e)}),Tgt=vv(function(I,L){var re={};if(I==null)return re;var _e=!1;L=Jo(L,function(Qe){return Qe=L_(Qe,I),_e||(_e=Qe.length>1),Qe}),kg(I,QG(I),re),_e&&(re=Bf(re,f|p|h,bft));for(var Be=L.length;Be--;)zG(re,L[Be]);return re});function Ogt(I,L){return z_e(I,i3(Lr(L)))}var Rgt=vv(function(I,L){return I==null?{}:tft(I,L)});function z_e(I,L){if(I==null)return{};var re=Jo(QG(I),function(_e){return[_e]});return L=Lr(L),Dye(I,re,function(_e,Be){return L(_e,Be[0])})}function Igt(I,L,re){L=L_(L,I);var _e=-1,Be=L.length;for(Be||(Be=1,I=r);++_e<Be;){var Qe=I==null?r:I[Lg(L[_e])];Qe===r&&(_e=Be,Qe=re),I=_v(Qe)?Qe.call(I):Qe}return I}function Ngt(I,L,re){return I==null?I:$N(I,L,re)}function Mgt(I,L,re,_e){return _e=typeof _e=="function"?_e:r,I==null?I:$N(I,L,re,_e)}var V_e=n_e($l),G_e=n_e(ju);function Pgt(I,L,re){var _e=ci(I),Be=_e||F_(I)||lx(I);if(L=Lr(L,4),re==null){var Qe=I&&I.constructor;Be?re=_e?new Qe:[]:Ja(I)?re=_v(Qe)?ix(Js(I)):{}:re={}}return(Be?wc:Dg)(I,function(ct,_t,Mt){return L(re,ct,_t,Mt)}),re}function Agt(I,L){return I==null?!0:zG(I,L)}function Dgt(I,L,re){return I==null?I:Bye(I,L,WG(re))}function kgt(I,L,re,_e){return _e=typeof _e=="function"?_e:r,I==null?I:Bye(I,L,WG(re),_e)}function cx(I){return I==null?[]:XS(I,$l(I))}function Lgt(I){return I==null?[]:XS(I,ju(I))}function $gt(I,L,re){return re===r&&(re=L,L=r),re!==r&&(re=Hf(re),re=re===re?re:0),L!==r&&(L=Hf(L),L=L===L?L:0),nE(Hf(I),L,re)}function Fgt(I,L,re){return L=bv(L),re===r?(re=L,L=0):re=bv(re),I=Hf(I),Vdt(I,L,re)}function Bgt(I,L,re){if(re&&typeof re!="boolean"&&tu(I,L,re)&&(L=re=r),re===r&&(typeof L=="boolean"?(re=L,L=r):typeof I=="boolean"&&(re=I,I=r)),I===r&&L===r?(I=0,L=1):(I=bv(I),L===r?(L=I,I=0):L=bv(L)),I>L){var _e=I;I=L,L=_e}if(re||I%1||L%1){var Be=gye();return Oc(I+Be*(L-I+Gw("1e-"+((Be+"").length-1))),L)}return jG(I,L)}var jgt=ax(function(I,L,re){return L=L.toLowerCase(),I+(re?W_e(L):L)});function W_e(I){return pW(Io(I).toLowerCase())}function Y_e(I){return I=Io(I),I&&I.replace(en,xG).replace(Wn,"")}function Ugt(I,L,re){I=Io(I),L=Rd(L);var _e=I.length;re=re===r?_e:nE(hi(re),0,_e);var Be=re;return re-=L.length,re>=0&&I.slice(re,Be)==L}function Hgt(I){return I=Io(I),I&&Ct.test(I)?I.replace(at,ex):I}function zgt(I){return I=Io(I),I&&nt.test(I)?I.replace(it,"\\$&"):I}var Vgt=ax(function(I,L,re){return I+(re?"-":"")+L.toLowerCase()}),Ggt=ax(function(I,L,re){return I+(re?" ":"")+L.toLowerCase()}),Wgt=Xye("toLowerCase");function Ygt(I,L,re){I=Io(I),L=hi(L);var _e=L?X(I):0;if(!L||_e>=L)return I;var Be=(L-_e)/2;return K$(L$(Be),re)+I+K$(k$(Be),re)}function qgt(I,L,re){I=Io(I),L=hi(L);var _e=L?X(I):0;return L&&_e<L?I+K$(L-_e,re):I}function Kgt(I,L,re){I=Io(I),L=hi(L);var _e=L?X(I):0;return L&&_e<L?K$(L-_e,re)+I:I}function Xgt(I,L,re){return re||L==null?L=0:L&&(L=+L),rdt(Io(I).replace(vt,""),L||0)}function Qgt(I,L,re){return(re?tu(I,L,re):L===r)?L=1:L=hi(L),UG(Io(I),L)}function Zgt(){var I=arguments,L=Io(I[0]);return I.length<3?L:L.replace(I[1],I[2])}var Jgt=ax(function(I,L,re){return I+(re?"_":"")+L.toLowerCase()});function emt(I,L,re){return re&&typeof re!="number"&&tu(I,L,re)&&(L=re=r),re=re===r?K:re>>>0,re?(I=Io(I),I&&(typeof L=="string"||L!=null&&!uW(L))&&(L=Rd(L),!L&&ih(I))?$_(se(I),0,re):I.split(L,re)):[]}var tmt=ax(function(I,L,re){return I+(re?" ":"")+pW(L)});function nmt(I,L,re){return I=Io(I),re=re==null?0:nE(hi(re),0,I.length),L=Rd(L),I.slice(re,re+L.length)==L}function rmt(I,L,re){var _e=Ke.templateSettings;re&&tu(I,L,re)&&(L=r),I=Io(I),L=s3({},L,_e,r_e);var Be=s3({},L.imports,_e.imports,r_e),Qe=$l(Be),ct=XS(Be,Qe),_t,Mt,un=0,dn=L.interpolate||Ue,bn="__p += '",Kn=Ft((L.escape||Ue).source+"|"+dn.source+"|"+(dn===Bt?Jt:Ue).source+"|"+(L.evaluate||Ue).source+"|$","g"),_r="//# sourceURL="+(mn.call(L,"sourceURL")?(L.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jp+"]")+`
|
||
`;I.replace(Kn,function(jr,$i,Qi,Nd,nu,Md){return Qi||(Qi=Nd),bn+=I.slice(un,Md).replace(Zt,rh),$i&&(_t=!0,bn+=`' +
|
||
__e(`+$i+`) +
|
||
'`),nu&&(Mt=!0,bn+=`';
|
||
`+nu+`;
|
||
__p += '`),Qi&&(bn+=`' +
|
||
((__t = (`+Qi+`)) == null ? '' : __t) +
|
||
'`),un=Md+jr.length,jr}),bn+=`';
|
||
`;var Br=mn.call(L,"variable")&&L.variable;if(!Br)bn=`with (obj) {
|
||
`+bn+`
|
||
}
|
||
`;else if(on.test(Br))throw new lt(l);bn=(Mt?bn.replace(ot,""):bn).replace(Xe,"$1").replace(Ze,"$1;"),bn="function("+(Br||"obj")+`) {
|
||
`+(Br?"":`obj || (obj = {});
|
||
`)+"var __t, __p = ''"+(_t?", __e = _.escape":"")+(Mt?`, __j = Array.prototype.join;
|
||
function print() { __p += __j.call(arguments, '') }
|
||
`:`;
|
||
`)+bn+`return __p
|
||
}`;var bi=K_e(function(){return yt(Qe,_r+"return "+bn).apply(r,ct)});if(bi.source=bn,cW(bi))throw bi;return bi}function imt(I){return Io(I).toLowerCase()}function omt(I){return Io(I).toUpperCase()}function amt(I,L,re){if(I=Io(I),I&&(re||L===r))return N$(I);if(!I||!(L=Rd(L)))return I;var _e=se(I),Be=se(L),Qe=TN(_e,Be),ct=M$(_e,Be)+1;return $_(_e,Qe,ct).join("")}function smt(I,L,re){if(I=Io(I),I&&(re||L===r))return I.slice(0,ye(I)+1);if(!I||!(L=Rd(L)))return I;var _e=se(I),Be=M$(_e,se(L))+1;return $_(_e,0,Be).join("")}function lmt(I,L,re){if(I=Io(I),I&&(re||L===r))return I.replace(vt,"");if(!I||!(L=Rd(L)))return I;var _e=se(I),Be=TN(_e,se(L));return $_(_e,Be).join("")}function cmt(I,L){var re=O,_e=M;if(Ja(L)){var Be="separator"in L?L.separator:Be;re="length"in L?hi(L.length):re,_e="omission"in L?Rd(L.omission):_e}I=Io(I);var Qe=I.length;if(ih(I)){var ct=se(I);Qe=ct.length}if(re>=Qe)return I;var _t=re-X(_e);if(_t<1)return _e;var Mt=ct?$_(ct,0,_t).join(""):I.slice(0,_t);if(Be===r)return Mt+_e;if(ct&&(_t+=Mt.length-_t),uW(Be)){if(I.slice(_t).search(Be)){var un,dn=Mt;for(Be.global||(Be=Ft(Be.source,Io(En.exec(Be))+"g")),Be.lastIndex=0;un=Be.exec(dn);)var bn=un.index;Mt=Mt.slice(0,bn===r?_t:bn)}}else if(I.indexOf(Rd(Be),_t)!=_t){var Kn=Mt.lastIndexOf(Be);Kn>-1&&(Mt=Mt.slice(0,Kn))}return Mt+_e}function umt(I){return I=Io(I),I&&pt.test(I)?I.replace(bt,Ie):I}var dmt=ax(function(I,L,re){return I+(re?" ":"")+L.toUpperCase()}),pW=Xye("toUpperCase");function q_e(I,L,re){return I=Io(I),L=re?r:L,L===r?$u(I)?rt(I):Qw(I):I.match(L)||[]}var K_e=xi(function(I,L){try{return rc(I,r,L)}catch(re){return cW(re)?re:new lt(re)}}),fmt=vv(function(I,L){return wc(L,function(re){re=Lg(re),gv(I,re,sW(I[re],I))}),I});function pmt(I){var L=I==null?0:I.length,re=Lr();return I=L?Jo(I,function(_e){if(typeof _e[1]!="function")throw new Ut(s);return[re(_e[0]),_e[1]]}):[],xi(function(_e){for(var Be=-1;++Be<L;){var Qe=I[Be];if(rc(Qe[0],this,_e))return rc(Qe[1],this,_e)}})}function hmt(I){return Bdt(Bf(I,f))}function hW(I){return function(){return I}}function gmt(I,L){return I==null||I!==I?L:I}var mmt=Zye(),vmt=Zye(!0);function Uu(I){return I}function gW(I){return Rye(typeof I=="function"?I:Bf(I,f))}function ymt(I){return Nye(Bf(I,f))}function _mt(I,L){return Mye(I,Bf(L,f))}var bmt=xi(function(I,L){return function(re){return kN(re,I,L)}}),Smt=xi(function(I,L){return function(re){return kN(I,re,L)}});function mW(I,L,re){var _e=$l(L),Be=H$(L,_e);re==null&&!(Ja(L)&&(Be.length||!_e.length))&&(re=L,L=I,I=this,Be=H$(L,$l(L)));var Qe=!(Ja(re)&&"chain"in re)||!!re.chain,ct=_v(I);return wc(Be,function(_t){var Mt=L[_t];I[_t]=Mt,ct&&(I.prototype[_t]=function(){var un=this.__chain__;if(Qe||un){var dn=I(this.__wrapped__),bn=dn.__actions__=Fu(this.__actions__);return bn.push({func:Mt,args:arguments,thisArg:I}),dn.__chain__=un,dn}return Mt.apply(I,th([this.value()],arguments))})}),I}function Emt(){return pl._===this&&(pl._=_i),this}function vW(){}function Cmt(I){return I=hi(I),xi(function(L){return Pye(L,I)})}var wmt=qG(Jo),xmt=qG(O_),Tmt=qG(nh);function X_e(I){return tW(I)?qS(Lg(I)):nft(I)}function Omt(I){return function(L){return I==null?r:rE(I,L)}}var Rmt=e_e(),Imt=e_e(!0);function yW(){return[]}function _W(){return!1}function Nmt(){return{}}function Mmt(){return""}function Pmt(){return!0}function Amt(I,L){if(I=hi(I),I<1||I>B)return[];var re=K,_e=Oc(I,K);L=Lr(L),I-=K;for(var Be=Jw(_e,L);++re<I;)L(re);return Be}function Dmt(I){return ci(I)?Jo(I,Lg):Id(I)?[I]:Fu(m_e(Io(I)))}function kmt(I){var L=++jn;return Io(I)+L}var Lmt=q$(function(I,L){return I+L},0),$mt=KG("ceil"),Fmt=q$(function(I,L){return I/L},1),Bmt=KG("floor");function jmt(I){return I&&I.length?U$(I,Uu,DG):r}function Umt(I,L){return I&&I.length?U$(I,Lr(L,2),DG):r}function Hmt(I){return T$(I,Uu)}function zmt(I,L){return T$(I,Lr(L,2))}function Vmt(I){return I&&I.length?U$(I,Uu,FG):r}function Gmt(I,L){return I&&I.length?U$(I,Lr(L,2),FG):r}var Wmt=q$(function(I,L){return I*L},1),Ymt=KG("round"),qmt=q$(function(I,L){return I-L},0);function Kmt(I){return I&&I.length?xN(I,Uu):0}function Xmt(I,L){return I&&I.length?xN(I,Lr(L,2)):0}return Ke.after=yht,Ke.ary=O_e,Ke.assign=ogt,Ke.assignIn=U_e,Ke.assignInWith=s3,Ke.assignWith=agt,Ke.at=sgt,Ke.before=R_e,Ke.bind=sW,Ke.bindAll=fmt,Ke.bindKey=I_e,Ke.castArray=Nht,Ke.chain=w_e,Ke.chunk=Bft,Ke.compact=jft,Ke.concat=Uft,Ke.cond=pmt,Ke.conforms=hmt,Ke.constant=hW,Ke.countBy=Kpt,Ke.create=lgt,Ke.curry=N_e,Ke.curryRight=M_e,Ke.debounce=P_e,Ke.defaults=cgt,Ke.defaultsDeep=ugt,Ke.defer=_ht,Ke.delay=bht,Ke.difference=Hft,Ke.differenceBy=zft,Ke.differenceWith=Vft,Ke.drop=Gft,Ke.dropRight=Wft,Ke.dropRightWhile=Yft,Ke.dropWhile=qft,Ke.fill=Kft,Ke.filter=Qpt,Ke.flatMap=eht,Ke.flatMapDeep=tht,Ke.flatMapDepth=nht,Ke.flatten=b_e,Ke.flattenDeep=Xft,Ke.flattenDepth=Qft,Ke.flip=Sht,Ke.flow=mmt,Ke.flowRight=vmt,Ke.fromPairs=Zft,Ke.functions=vgt,Ke.functionsIn=ygt,Ke.groupBy=rht,Ke.initial=ept,Ke.intersection=tpt,Ke.intersectionBy=npt,Ke.intersectionWith=rpt,Ke.invert=bgt,Ke.invertBy=Sgt,Ke.invokeMap=oht,Ke.iteratee=gW,Ke.keyBy=aht,Ke.keys=$l,Ke.keysIn=ju,Ke.map=t3,Ke.mapKeys=Cgt,Ke.mapValues=wgt,Ke.matches=ymt,Ke.matchesProperty=_mt,Ke.memoize=r3,Ke.merge=xgt,Ke.mergeWith=H_e,Ke.method=bmt,Ke.methodOf=Smt,Ke.mixin=mW,Ke.negate=i3,Ke.nthArg=Cmt,Ke.omit=Tgt,Ke.omitBy=Ogt,Ke.once=Eht,Ke.orderBy=sht,Ke.over=wmt,Ke.overArgs=Cht,Ke.overEvery=xmt,Ke.overSome=Tmt,Ke.partial=lW,Ke.partialRight=A_e,Ke.partition=lht,Ke.pick=Rgt,Ke.pickBy=z_e,Ke.property=X_e,Ke.propertyOf=Omt,Ke.pull=spt,Ke.pullAll=E_e,Ke.pullAllBy=lpt,Ke.pullAllWith=cpt,Ke.pullAt=upt,Ke.range=Rmt,Ke.rangeRight=Imt,Ke.rearg=wht,Ke.reject=dht,Ke.remove=dpt,Ke.rest=xht,Ke.reverse=oW,Ke.sampleSize=pht,Ke.set=Ngt,Ke.setWith=Mgt,Ke.shuffle=hht,Ke.slice=fpt,Ke.sortBy=vht,Ke.sortedUniq=_pt,Ke.sortedUniqBy=bpt,Ke.split=emt,Ke.spread=Tht,Ke.tail=Spt,Ke.take=Ept,Ke.takeRight=Cpt,Ke.takeRightWhile=wpt,Ke.takeWhile=xpt,Ke.tap=jpt,Ke.throttle=Oht,Ke.thru=e3,Ke.toArray=F_e,Ke.toPairs=V_e,Ke.toPairsIn=G_e,Ke.toPath=Dmt,Ke.toPlainObject=j_e,Ke.transform=Pgt,Ke.unary=Rht,Ke.union=Tpt,Ke.unionBy=Opt,Ke.unionWith=Rpt,Ke.uniq=Ipt,Ke.uniqBy=Npt,Ke.uniqWith=Mpt,Ke.unset=Agt,Ke.unzip=aW,Ke.unzipWith=C_e,Ke.update=Dgt,Ke.updateWith=kgt,Ke.values=cx,Ke.valuesIn=Lgt,Ke.without=Ppt,Ke.words=q_e,Ke.wrap=Iht,Ke.xor=Apt,Ke.xorBy=Dpt,Ke.xorWith=kpt,Ke.zip=Lpt,Ke.zipObject=$pt,Ke.zipObjectDeep=Fpt,Ke.zipWith=Bpt,Ke.entries=V_e,Ke.entriesIn=G_e,Ke.extend=U_e,Ke.extendWith=s3,mW(Ke,Ke),Ke.add=Lmt,Ke.attempt=K_e,Ke.camelCase=jgt,Ke.capitalize=W_e,Ke.ceil=$mt,Ke.clamp=$gt,Ke.clone=Mht,Ke.cloneDeep=Aht,Ke.cloneDeepWith=Dht,Ke.cloneWith=Pht,Ke.conformsTo=kht,Ke.deburr=Y_e,Ke.defaultTo=gmt,Ke.divide=Fmt,Ke.endsWith=Ugt,Ke.eq=ah,Ke.escape=Hgt,Ke.escapeRegExp=zgt,Ke.every=Xpt,Ke.find=Zpt,Ke.findIndex=y_e,Ke.findKey=dgt,Ke.findLast=Jpt,Ke.findLastIndex=__e,Ke.findLastKey=fgt,Ke.floor=Bmt,Ke.forEach=x_e,Ke.forEachRight=T_e,Ke.forIn=pgt,Ke.forInRight=hgt,Ke.forOwn=ggt,Ke.forOwnRight=mgt,Ke.get=dW,Ke.gt=Lht,Ke.gte=$ht,Ke.has=_gt,Ke.hasIn=fW,Ke.head=S_e,Ke.identity=Uu,Ke.includes=iht,Ke.indexOf=Jft,Ke.inRange=Fgt,Ke.invoke=Egt,Ke.isArguments=aE,Ke.isArray=ci,Ke.isArrayBuffer=Fht,Ke.isArrayLike=Bu,Ke.isArrayLikeObject=Ms,Ke.isBoolean=Bht,Ke.isBuffer=F_,Ke.isDate=jht,Ke.isElement=Uht,Ke.isEmpty=Hht,Ke.isEqual=zht,Ke.isEqualWith=Vht,Ke.isError=cW,Ke.isFinite=Ght,Ke.isFunction=_v,Ke.isInteger=D_e,Ke.isLength=o3,Ke.isMap=k_e,Ke.isMatch=Wht,Ke.isMatchWith=Yht,Ke.isNaN=qht,Ke.isNative=Kht,Ke.isNil=Qht,Ke.isNull=Xht,Ke.isNumber=L_e,Ke.isObject=Ja,Ke.isObjectLike=ds,Ke.isPlainObject=UN,Ke.isRegExp=uW,Ke.isSafeInteger=Zht,Ke.isSet=$_e,Ke.isString=a3,Ke.isSymbol=Id,Ke.isTypedArray=lx,Ke.isUndefined=Jht,Ke.isWeakMap=egt,Ke.isWeakSet=tgt,Ke.join=ipt,Ke.kebabCase=Vgt,Ke.last=Uf,Ke.lastIndexOf=opt,Ke.lowerCase=Ggt,Ke.lowerFirst=Wgt,Ke.lt=ngt,Ke.lte=rgt,Ke.max=jmt,Ke.maxBy=Umt,Ke.mean=Hmt,Ke.meanBy=zmt,Ke.min=Vmt,Ke.minBy=Gmt,Ke.stubArray=yW,Ke.stubFalse=_W,Ke.stubObject=Nmt,Ke.stubString=Mmt,Ke.stubTrue=Pmt,Ke.multiply=Wmt,Ke.nth=apt,Ke.noConflict=Emt,Ke.noop=vW,Ke.now=n3,Ke.pad=Ygt,Ke.padEnd=qgt,Ke.padStart=Kgt,Ke.parseInt=Xgt,Ke.random=Bgt,Ke.reduce=cht,Ke.reduceRight=uht,Ke.repeat=Qgt,Ke.replace=Zgt,Ke.result=Igt,Ke.round=Ymt,Ke.runInContext=ze,Ke.sample=fht,Ke.size=ght,Ke.snakeCase=Jgt,Ke.some=mht,Ke.sortedIndex=ppt,Ke.sortedIndexBy=hpt,Ke.sortedIndexOf=gpt,Ke.sortedLastIndex=mpt,Ke.sortedLastIndexBy=vpt,Ke.sortedLastIndexOf=ypt,Ke.startCase=tmt,Ke.startsWith=nmt,Ke.subtract=qmt,Ke.sum=Kmt,Ke.sumBy=Xmt,Ke.template=rmt,Ke.times=Amt,Ke.toFinite=bv,Ke.toInteger=hi,Ke.toLength=B_e,Ke.toLower=imt,Ke.toNumber=Hf,Ke.toSafeInteger=igt,Ke.toString=Io,Ke.toUpper=omt,Ke.trim=amt,Ke.trimEnd=smt,Ke.trimStart=lmt,Ke.truncate=cmt,Ke.unescape=umt,Ke.uniqueId=kmt,Ke.upperCase=dmt,Ke.upperFirst=pW,Ke.each=x_e,Ke.eachRight=T_e,Ke.first=S_e,mW(Ke,function(){var I={};return Dg(Ke,function(L,re){mn.call(Ke.prototype,re)||(I[re]=L)}),I}(),{chain:!1}),Ke.VERSION=i,wc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(I){Ke[I].placeholder=Ke}),wc(["drop","take"],function(I,L){Vi.prototype[I]=function(re){re=re===r?1:hl(hi(re),0);var _e=this.__filtered__&&!L?new Vi(this):this.clone();return _e.__filtered__?_e.__takeCount__=Oc(re,_e.__takeCount__):_e.__views__.push({size:Oc(re,K),type:I+(_e.__dir__<0?"Right":"")}),_e},Vi.prototype[I+"Right"]=function(re){return this.reverse()[I](re).reverse()}}),wc(["filter","map","takeWhile"],function(I,L){var re=L+1,_e=re==$||re==z;Vi.prototype[I]=function(Be){var Qe=this.clone();return Qe.__iteratees__.push({iteratee:Lr(Be,3),type:re}),Qe.__filtered__=Qe.__filtered__||_e,Qe}}),wc(["head","last"],function(I,L){var re="take"+(L?"Right":"");Vi.prototype[I]=function(){return this[re](1).value()[0]}}),wc(["initial","tail"],function(I,L){var re="drop"+(L?"":"Right");Vi.prototype[I]=function(){return this.__filtered__?new Vi(this):this[re](1)}}),Vi.prototype.compact=function(){return this.filter(Uu)},Vi.prototype.find=function(I){return this.filter(I).head()},Vi.prototype.findLast=function(I){return this.reverse().find(I)},Vi.prototype.invokeMap=xi(function(I,L){return typeof I=="function"?new Vi(this):this.map(function(re){return kN(re,I,L)})}),Vi.prototype.reject=function(I){return this.filter(i3(Lr(I)))},Vi.prototype.slice=function(I,L){I=hi(I);var re=this;return re.__filtered__&&(I>0||L<0)?new Vi(re):(I<0?re=re.takeRight(-I):I&&(re=re.drop(I)),L!==r&&(L=hi(L),re=L<0?re.dropRight(-L):re.take(L-I)),re)},Vi.prototype.takeRightWhile=function(I){return this.reverse().takeWhile(I).reverse()},Vi.prototype.toArray=function(){return this.take(K)},Dg(Vi.prototype,function(I,L){var re=/^(?:filter|find|map|reject)|While$/.test(L),_e=/^(?:head|last)$/.test(L),Be=Ke[_e?"take"+(L=="last"?"Right":""):L],Qe=_e||/^find/.test(L);Be&&(Ke.prototype[L]=function(){var ct=this.__wrapped__,_t=_e?[1]:arguments,Mt=ct instanceof Vi,un=_t[0],dn=Mt||ci(ct),bn=function($i){var Qi=Be.apply(Ke,th([$i],_t));return _e&&Kn?Qi[0]:Qi};dn&&re&&typeof un=="function"&&un.length!=1&&(Mt=dn=!1);var Kn=this.__chain__,_r=!!this.__actions__.length,Br=Qe&&!Kn,bi=Mt&&!_r;if(!Qe&&dn){ct=bi?ct:new Vi(this);var jr=I.apply(ct,_t);return jr.__actions__.push({func:e3,args:[bn],thisArg:r}),new Ff(jr,Kn)}return Br&&bi?I.apply(this,_t):(jr=this.thru(bn),Br?_e?jr.value()[0]:jr.value():jr)})}),wc(["pop","push","shift","sort","splice","unshift"],function(I){var L=an[I],re=/^(?:push|sort|unshift)$/.test(I)?"tap":"thru",_e=/^(?:pop|shift)$/.test(I);Ke.prototype[I]=function(){var Be=arguments;if(_e&&!this.__chain__){var Qe=this.value();return L.apply(ci(Qe)?Qe:[],Be)}return this[re](function(ct){return L.apply(ci(ct)?ct:[],Be)})}}),Dg(Vi.prototype,function(I,L){var re=Ke[L];if(re){var _e=re.name+"";mn.call(rx,_e)||(rx[_e]=[]),rx[_e].push({name:L,func:re})}}),rx[Y$(r,_).name]=[{name:"wrapper",func:r}],Vi.prototype.clone=udt,Vi.prototype.reverse=ddt,Vi.prototype.value=fdt,Ke.prototype.at=Upt,Ke.prototype.chain=Hpt,Ke.prototype.commit=zpt,Ke.prototype.next=Vpt,Ke.prototype.plant=Wpt,Ke.prototype.reverse=Ypt,Ke.prototype.toJSON=Ke.prototype.valueOf=Ke.prototype.value=qpt,Ke.prototype.first=Ke.prototype.head,RN&&(Ke.prototype[RN]=Gpt),Ke},St=ut();eh?((eh.exports=St)._=St,yN._=St):pl._=St}).call(oo)})(uj,uj.exports);var Mn=uj.exports;function rrt(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(r=rrt(e[n]))&&(i&&(i+=" "),i+=r);else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function ry(){for(var e,n,r=0,i="";r<arguments.length;)(e=arguments[r++])&&(n=rrt(e))&&(i&&(i+=" "),i+=n);return i}var{PI:irt}=Math,ort=irt*2,vKn=180/irt,TJ=class art{constructor(n=0,r=0){this.x=n,this.y=r}sub(n){return new art(this.x-n.x,this.y-n.y)}dot(n){return this.x*n.x+this.y*n.y}},hf=class srt{constructor(n=0,r=0){this.x=n,this.y=r}clone(){return new srt(this.x,this.y)}copyFrom(n){return this.set(n.x,n.y),this}copyTo(n){return n.x=this.x,n.y=this.y,n}equals(n){return n.x===this.x&&n.y===this.y}set(n=0,r=n){return this.x=n,this.y=r,this}};(e=>{e.EMPTY={x:0,y:0};function n(l,c){return Math.sqrt((l.x-c.x)**2+(l.y-c.y)**2)}e.getDistance=n;function r(l,c){return i(l,c,.5)}e.getMiddlePoint=r;function i(l,c,u){return{x:l.x+u*(c.x-l.x),y:l.y+u*(c.y-l.y)}}e.getRatioPoint=i;function o(l){return l.x===0&&(l.x=0),l.y===0&&(l.y=0),l}e.fixZero=o;function a(l,c){return{x:l.x+(c.x||0),y:l.y+(c.y||0)}}e.move=a;function s(l,c,u){const d=c.x-l.x,f=c.y-l.y,p=d===0?0:Math.sqrt(u**2/(1+f**2/d**2)),h=d>0?p:-p,g=d===0?u:Math.abs(p*f/d),v=f>0?g:-g;return{x:l.x+h,y:l.y+v}}e.moveDistanceToDirection=s})(hf||(hf={}));var Qn=class Qae{constructor(n=0,r=0,i=0,o=0){this.x=n,this.y=r,this.width=i,this.height=o,this.type=1}static get EMPTY(){return new Qae(0,0,0,0)}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}clone(){return new Qae(this.x,this.y,this.width,this.height)}copyFrom(n){return this.x=n.x,this.y=n.y,this.width=n.width,this.height=n.height,this}copyTo(n){return n.x=this.x,n.y=this.y,n.width=this.width,n.height=this.height,n}contains(n,r){return this.width<=0||this.height<=0?!1:n>=this.x&&n<=this.right&&r>=this.y&&r<=this.bottom}isEqual(n){return this.x===n.x&&this.y===n.y&&this.width===n.width&&this.height===n.height}containsRectangle(n){return n.left>=this.left&&n.right<=this.right&&n.top>=this.top&&n.bottom<=this.bottom}pad(n=0,r=n){return this.x-=n,this.y-=r,this.width+=n*2,this.height+=r*2,this}fit(n){const r=Math.max(this.x,n.x),i=Math.min(this.x+this.width,n.x+n.width),o=Math.max(this.y,n.y),a=Math.min(this.y+this.height,n.y+n.height);return this.x=r,this.width=Math.max(i-r,0),this.y=o,this.height=Math.max(a-o,0),this}ceil(n=1,r=.001){const i=Math.ceil((this.x+this.width-r)*n)/n,o=Math.ceil((this.y+this.height-r)*n)/n;return this.x=Math.floor((this.x+r)*n)/n,this.y=Math.floor((this.y+r)*n)/n,this.width=i-this.x,this.height=o-this.y,this}enlarge(n){const r=Math.min(this.x,n.x),i=Math.max(this.x+this.width,n.x+n.width),o=Math.min(this.y,n.y),a=Math.max(this.y+this.height,n.y+n.height);return this.x=r,this.width=i-r,this.y=o,this.height=a-o,this}get center(){return{x:this.x+this.width/2,y:this.y+this.height/2}}get rightBottom(){return{x:this.right,y:this.bottom}}get leftBottom(){return{x:this.left,y:this.bottom}}get rightTop(){return{x:this.right,y:this.top}}get leftTop(){return{x:this.left,y:this.top}}get bottomCenter(){return{x:this.x+this.width/2,y:this.bottom}}get topCenter(){return{x:this.x+this.width/2,y:this.top}}get rightCenter(){return{x:this.right,y:this.y+this.height/2}}get leftCenter(){return{x:this.left,y:this.y+this.height/2}}update(n){return n(this)}get crossDistance(){return hf.getDistance(this.leftTop,this.rightBottom)}toStyleStr(){return`left: ${this.x}px; top: ${this.y}px; width: ${this.width}px; height: ${this.height}px;`}withPadding(n){return this.x-=n.left,this.y-=n.top,this.width+=n.left+n.right,this.height+=n.top+n.bottom,this}withoutPadding(n){return this.x+=n.left,this.y+=n.top,this.width=this.width-n.left-n.right,this.height=this.height-n.top-n.bottom,this}withHeight(n){return this.height=n,this}clearSpace(){return this.width=0,this.height=0,this}};(e=>{function n(c,u){if(c.length<=1)return c;switch(u){case"align-bottom":const d=Math.max(...c.map(C=>C.bottom));c.forEach(C=>{C.y=d-C.height});break;case"align-center":const f=r(c).center.x;c.forEach(C=>{C.x=f-C.width/2});break;case"align-left":const p=Math.min(...c.map(C=>C.left));c.forEach(C=>{C.x=p});break;case"align-middle":const h=r(c).center.y;c.forEach(C=>{C.y=h-C.height/2});break;case"align-right":const g=Math.max(...c.map(C=>C.right));c.forEach(C=>{C.x=g-C.width});break;case"align-top":const v=Math.min(...c.map(C=>C.top));c.forEach(C=>{C.y=v});break;case"distribute-horizontal":if(c.length<=2)break;const y=c.slice().sort((C,x)=>C.left-x.left),_=r(c),S=c.reduce((C,x)=>C-x.width,_.width)/(c.length-1);y.reduce((C,x)=>(x.x=C,C+x.width+S),_.x);break;case"distribute-vertical":if(c.length<=2)break;const b=c.slice().sort((C,x)=>C.top-x.top),E=r(c),w=c.reduce((C,x)=>C-x.height,E.height)/(c.length-1);b.reduce((C,x)=>(x.y=C,C+x.height+w),E.y);break}return c}e.align=n;function r(c){const u=e.EMPTY.clone();if(!c.length)return u;const d=[],f=[],p=[],h=[];c.forEach(S=>{d.push(S.left),p.push(S.right),h.push(S.bottom),f.push(S.top)});const g=Math.min.apply(Math,d),v=Math.max.apply(Math,p),y=Math.min.apply(Math,f),_=Math.max.apply(Math,h);return u.x=g,u.width=v-g,u.y=y,u.height=_-y,u}e.enlarge=r;function i(c,u,d){const f=c.left,p=c.top,h=c.right,g=c.bottom,v=u.left,y=u.top,_=u.right,S=u.bottom;return d==="horizontal"?h>v&&f<_:d==="vertical"?g>y&&p<S:h>v&&f<_&&g>y&&p<S}e.intersects=i;function o(c,u,d,f){const p=new kke(c.center,c.width,c.height,u),h=new kke(d.center,d.width,d.height,f),g=p.centerPoint.sub(h.centerPoint),v=p.axesX;if(p.getProjectionRadius(v)+h.getProjectionRadius(v)<=Math.abs(g.dot(v)))return!1;const y=p.axesY;if(p.getProjectionRadius(y)+h.getProjectionRadius(y)<=Math.abs(g.dot(y)))return!1;const _=h.axesX;if(p.getProjectionRadius(_)+h.getProjectionRadius(_)<=Math.abs(g.dot(_)))return!1;const S=h.axesY;return!(p.getProjectionRadius(S)+h.getProjectionRadius(S)<=Math.abs(g.dot(S)))}e.intersectsWithRotation=o;function a(c,u,d=0,f=!1){return f?u.containsRectangle(c):d===0?e.intersects(c,u):e.intersectsWithRotation(c,d,u,0)}e.isViewportVisible=a;function s(c,u,d=0){const{left:f,right:p,top:h,bottom:g,width:v,height:y}=c,{left:_,right:S,top:b,bottom:E}=u;return f<=_?c.x=_+d:p>=S&&(c.x=S-d-v),h<=b?c.y=b+d:g>=E&&(c.y=E-d-y),c}e.setViewportVisible=s;function l(c,u){const d=c.x<u.x?c.x:u.x,f=c.y<u.y?c.y:u.y,p=Math.abs(c.x-u.x),h=Math.abs(c.y-u.y);return new e(d,f,p,h)}e.createRectangleWithTwoPoints=l})(Qn||(Qn={}));var kke=class{constructor(e,n,r,i){this.width=n,this.height=r,this.centerPoint=new TJ(e.x,e.y),this.axesX=new TJ(Math.cos(i),Math.sin(i)),this.axesY=new TJ(-1*this.axesX.y,this.axesX.x)}getProjectionRadius(e){return this.width/2*Math.abs(e.dot(this.axesX))+this.height/2*Math.abs(e.dot(this.axesY))}},yKn=class lrt{constructor(n=0,r=0,i=0){this.x=n,this.y=r,this.radius=i,this.type=2}clone(){return new lrt(this.x,this.y,this.radius)}contains(n,r){if(this.radius<=0)return!1;const i=this.radius*this.radius;let o=this.x-n,a=this.y-r;return o*=o,a*=a,o+a<=i}getBounds(){return new Qn(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)}},_P=class J6{constructor(n=1,r=0,i=0,o=1,a=0,s=0){this.a=n,this.b=r,this.c=i,this.d=o,this.tx=a,this.ty=s,this.array=null}static get IDENTITY(){return new J6}static get TEMP_MATRIX(){return new J6}fromArray(n){return n.length<6?this:(this.a=n[0],this.b=n[1],this.c=n[3],this.d=n[4],this.tx=n[2],this.ty=n[5],this)}set(n,r,i,o,a,s){return this.a=n,this.b=r,this.c=i,this.d=o,this.tx=a,this.ty=s,this}toArray(n,r){this.array||(this.array=new Float32Array(9));const i=r||this.array;return n?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i}apply(n,r){r=r||{x:0,y:0};const{x:i,y:o}=n;return r.x=this.a*i+this.c*o+this.tx,r.y=this.b*i+this.d*o+this.ty,r}applyInverse(n,r){r=r||{x:0,y:0};const i=1/(this.a*this.d+this.c*-this.b),{x:o}=n,{y:a}=n;return r.x=this.d*i*o+-this.c*i*a+(this.ty*this.c-this.tx*this.d)*i,r.y=this.a*i*a+-this.b*i*o+(-this.ty*this.a+this.tx*this.b)*i,r}translate(n,r){return this.tx+=n,this.ty+=r,this}scale(n,r){return this.a*=n,this.d*=r,this.c*=n,this.b*=r,this.tx*=n,this.ty*=r,this}rotate(n){const r=Math.cos(n),i=Math.sin(n),o=this.a,a=this.c,s=this.tx;return this.a=o*r-this.b*i,this.b=o*i+this.b*r,this.c=a*r-this.d*i,this.d=a*i+this.d*r,this.tx=s*r-this.ty*i,this.ty=s*i+this.ty*r,this}append(n){const r=this.a,i=this.b,o=this.c,a=this.d;return this.a=n.a*r+n.b*o,this.b=n.a*i+n.b*a,this.c=n.c*r+n.d*o,this.d=n.c*i+n.d*a,this.tx=n.tx*r+n.ty*o+this.tx,this.ty=n.tx*i+n.ty*a+this.ty,this}setTransform(n,r,i,o,a,s,l,c,u){return this.a=Math.cos(l+u)*a,this.b=Math.sin(l+u)*a,this.c=-Math.sin(l-c)*s,this.d=Math.cos(l-c)*s,this.tx=n-(i*this.a+o*this.c),this.ty=r-(i*this.b+o*this.d),this}prepend(n){const r=this.tx;if(n.a!==1||n.b!==0||n.c!==0||n.d!==1){const i=this.a,o=this.c;this.a=i*n.a+this.b*n.c,this.b=i*n.b+this.b*n.d,this.c=o*n.a+this.d*n.c,this.d=o*n.b+this.d*n.d}return this.tx=r*n.a+this.ty*n.c+n.tx,this.ty=r*n.b+this.ty*n.d+n.ty,this}decompose(n){const{a:r}=this,{b:i}=this,{c:o}=this,{d:a}=this,s=-Math.atan2(-o,a),l=Math.atan2(i,r),c=Math.abs(s+l);return c<1e-5||Math.abs(ort-c)<1e-5?(n.rotation=l,n.skew.x=0,n.skew.y=0):(n.rotation=0,n.skew.x=s,n.skew.y=l),n.scale.x=Math.sqrt(r*r+i*i),n.scale.y=Math.sqrt(o*o+a*a),n.position.x=this.tx,n.position.y=this.ty,n}invert(){const n=this.a,r=this.b,i=this.c,o=this.d,a=this.tx,s=n*o-r*i;return this.a=o/s,this.b=-r/s,this.c=-i/s,this.d=n/s,this.tx=(i*this.ty-o*a)/s,this.ty=-(n*this.ty-r*a)/s,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}isSimple(){return this.a===1&&this.b===0&&this.c===0&&this.d===1}clone(){const n=new J6;return n.a=this.a,n.b=this.b,n.c=this.c,n.d=this.d,n.tx=this.tx,n.ty=this.ty,n}copyTo(n){return n.a=this.a,n.b=this.b,n.c=this.c,n.d=this.d,n.tx=this.tx,n.ty=this.ty,n}copyFrom(n){return this.a=n.a,this.b=n.b,this.c=n.c,this.d=n.d,this.tx=n.tx,this.ty=n.ty,this}},s5=class crt{constructor(n,r,i=0,o=0){this._x=i,this._y=o,this.cb=n,this.scope=r}get x(){return this._x}set x(n){this._x!==n&&(this._x=n,this.cb.call(this.scope))}get y(){return this._y}set y(n){this._y!==n&&(this._y=n,this.cb.call(this.scope))}clone(n=this.cb,r=this.scope){return new crt(n,r,this._x,this._y)}set(n=0,r=n){return(this._x!==n||this._y!==r)&&(this._x=n,this._y=r,this.cb.call(this.scope)),this}copyFrom(n){return(this._x!==n.x||this._y!==n.y)&&(this._x=n.x,this._y=n.y,this.cb.call(this.scope)),this}copyTo(n){return n.x=this._x,n.y=this._y,n}equals(n){return n.x===this._x&&n.y===this._y}},Lke=class{constructor(){this.worldTransform=new _P,this.localTransform=new _P,this.position=new s5(this.onChange,this,0,0),this.scale=new s5(this.onChange,this,1,1),this.pivot=new s5(this.onChange,this,0,0),this.skew=new s5(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}updateLocalTransform(){const n=this.localTransform;this._localID!==this._currentLocalID&&(n.a=this._cx*this.scale.x,n.b=this._sx*this.scale.x,n.c=this._cy*this.scale.y,n.d=this._sy*this.scale.y,n.tx=this.position.x-(this.pivot.x*n.a+this.pivot.y*n.c),n.ty=this.position.y-(this.pivot.x*n.b+this.pivot.y*n.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(n){const r=this.localTransform;if(this._localID!==this._currentLocalID&&(r.a=this._cx*this.scale.x,r.b=this._sx*this.scale.x,r.c=this._cy*this.scale.y,r.d=this._sy*this.scale.y,r.tx=this.position.x-(this.pivot.x*r.a+this.pivot.y*r.c),r.ty=this.position.y-(this.pivot.x*r.b+this.pivot.y*r.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==n._worldID){const i=n.worldTransform,o=this.worldTransform;o.a=r.a*i.a+r.b*i.c,o.b=r.a*i.b+r.b*i.d,o.c=r.c*i.a+r.d*i.c,o.d=r.c*i.b+r.d*i.d,o.tx=r.tx*i.a+r.ty*i.c+i.tx,o.ty=r.tx*i.b+r.ty*i.d+i.ty,this._parentID=n._worldID,this._worldID++}}setFromMatrix(n){n.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(n){this._rotation!==n&&(this._rotation=n,this.updateSkew())}};Lke.IDENTITY=new Lke;function $ke(e,n,r){const i=r-n;return n+((e-n)%i+i)%i}var dj;(e=>{function n(o){return $ke(o,-Math.PI,Math.PI)}e.wrap=n;function r(o){return $ke(o,-180,180)}e.wrapDegrees=r;function i(o,a,s={x:0,y:0}){const l={x:o.x-s.x,y:o.y-s.y},c={x:a.x-s.x,y:a.y-s.y};return Math.atan2(l.x*c.y-l.y*c.x,l.x*c.x+l.y*c.y)}e.betweenPoints=i})(dj||(dj={}));var{keys:urt}=Object,_Kn=(e,n)=>urt(e).forEach(r=>n(e[r],r)),bKn=(e,n,r={})=>urt(e).reduce((i,o)=>n(i,e[o],o),r),SKn=(e,n)=>bKn(e,(r,i,o)=>Object.assign(r,{[o]:n(i,o)})),fj=()=>{},drt=Object.freeze({dispose:fj}),Zae;(e=>{e.None=()=>drt})(Zae||(Zae={}));var frt=class Jae{constructor(){this._disposed=!1}get event(){return this._event||(this._event=(n,r)=>{if(this._disposed)return drt;this._listeners||(this._listeners=[]);const i=r?n.bind(r):n;this._listeners.length>=Jae.LEAK_WARNING_THRESHHOLD&&console.warn(`[Emitter] Listeners length >= ${Jae.LEAK_WARNING_THRESHHOLD}`),this._listeners.push(i);const o={dispose:()=>{if(o.dispose=fj,!this._disposed){const a=this._listeners.indexOf(i);a!==-1&&this._listeners.splice(a,1)}}};return o}),this._event}fire(n){this._listeners&&this._listeners.forEach(r=>r(n))}get disposed(){return this._disposed}dispose(){this._listeners&&(this._listeners=void 0),this._disposed=!0}};frt.LEAK_WARNING_THRESHHOLD=175;var Hn=frt,ao;(e=>{function n(i){return typeof i=="object"&&i!==null&&typeof i.dispose=="function"}e.is=n;function r(i){return{dispose:i}}e.create=r,e.NULL=Object.freeze(r(()=>{}))})(ao||(ao={}));var prt=class{constructor(){this.toDispose=new Ei}dispose(){this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}get onDispose(){return this.toDispose.onDispose}},Ei=class{constructor(...e){this.disposables=[],this.onDisposeEmitter=new Hn,this._disposed=!1,e.forEach(n=>this.push(n))}get onDispose(){return this.onDisposeEmitter.event}get disposed(){return this._disposed}dispose(){this.disposed||(this._disposed=!0,this.disposables.slice().reverse().forEach(e=>{try{e.dispose()}catch(n){console.error(n)}}),this.onDisposeEmitter.fire(void 0),this.onDisposeEmitter.dispose())}push(e){if(this.disposed)return ao.NULL;const{disposables:n}=this;if(n.find(o=>o._origin===e))return ao.NULL;let r;const i=ao.create(()=>{const o=n.indexOf(r);o!==-1&&n.splice(o,1)});return r={dispose:()=>{i.dispose(),e.dispose()},_origin:e},n.push(r),i}pushAll(e){return e.map(n=>this.push(n))}},hrt=Object.freeze(function(e,n){const r=setTimeout(e.bind(n),0);return{dispose(){clearTimeout(r)}}}),ese;(e=>{function n(r){return r===e.None||r===e.Cancelled||r instanceof EKn?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=n,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Zae.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:hrt})})(ese||(ese={}));var EKn=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?hrt:(this._emitter||(this._emitter=new Hn),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},CKn="Cancelled";function wKn(){return new Error(CKn)}var pj=class{constructor(){this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}};function NS(e,n=ese.None){const r=new pj,i=setTimeout(()=>r.resolve(),e);return n.onCancellationRequested(()=>{clearTimeout(i),r.reject(wKn())}),r.promise}var k0;(e=>{function n(o,a,s=1,l=!0){if(o===a)return!1;if(s===0||typeof o!="object"||typeof a!="object")return o!==a;const c=Object.keys(a);if(!l){const u=Object.keys(o);if(c.length!==u.length)return!0}for(let u=0,d=c.length;u<d;u++){const f=c[u];if(n(o[f],a[f],s-1,l))return!0}return!1}e.isChanged=n;function r(o,a,s){return n(o,a,1/0,s)}e.isDeepChanged=r;function i(o,a){if(o.length!==a.length)return!0;for(let s=0,l=o.length;s<l;s++)if(o[s]!==a[s])return!0;return!1}e.isArrayShallowChanged=i})(k0||(k0={}));var uD;(e=>{function n(a,s={}){let l=[];return{getFromCache(){return l},getMore(c,u=!0){if(c!==l.length){if(c>l.length){let d=c-l.length;for(;d>0;)l.push(a()),d--}else if(u){const d=s.deleteLimit??0;l.length-c>d&&l.splice(c).forEach(p=>p.dispose&&p.dispose())}}return l.slice(0,c)},getMoreByItemKeys(c){const u=[],d=new Map;return l.forEach(f=>{var h;c.find(g=>g.key===f.key)?d.set(f.key,f):(h=f.dispose)==null||h.call(f)}),c.forEach(f=>{if(!f.key)throw new Error("getMoreByItemKeys need a key");const p=d.get(f.key);p?u.push(p):u.push(a(f))}),l=u,l},getMoreByItems(c){const u=[],d=new Map;return l.forEach(f=>{var h;c.find(g=>g===f.key)?d.set(f.key,f):(h=f.dispose)==null||h.call(f)}),c.forEach(f=>{const p=d.get(f);p?u.push(p):u.push({...a(f),key:f})}),l=u,l},get(){return l.length>0||l.push(a()),l[0]},getFromCacheByKey(c){return l.find(u=>u.key===c)},dispose(){l.forEach(c=>c.dispose&&c.dispose()),l.length=0},clear(){this.dispose()}}}e.create=n;function r(a,s){return Object.assign(a,s)}e.assign=r;function i(a=1e3){let s,l;function c(){l&&clearTimeout(l),l=setTimeout(()=>{l=void 0,s=void 0},a)}return{get(u){return s?(c(),s):(s=u(),c(),s)}}}e.createShortCache=i;function o(){const a=new WeakMap;return{get:s=>a.get(s),save:(s,l)=>a.set(s,l),isChanged:(s,l)=>k0.isChanged(a.get(s),l)}}e.createWeakCache=o})(uD||(uD={}));var Fke;(e=>{function n(r,i,o){return{type:"object",properties:{...i==null?void 0:i.properties,...r},mixinDefaults:{...i==null?void 0:i.mixinDefaults,...o}}}e.create=n})(Fke||(Fke={}));var lg;(e=>{function n(i,o,a){o={...i.mixinDefaults,...o};const s=a?`${a}.`:"";return i.properties?SKn(i.properties,(l,c)=>{const u=s+c;return o&&o[u]!==void 0?o[u]:n(l,o,u)}):typeof i.default=="function"?i.default():i.default}e.createDefault=n;function r(i){return i.type==="string"||i.type==="float"||i.type==="integer"||i.type==="boolean"||i.type==="enum"||i.type==="color"||i.type==="range"}e.isBaseType=r})(lg||(lg={}));var grt={label:"大小",properties:{width:{label:"宽",default:0,type:"float"},height:{label:"高",default:0,type:"float"},locked:{label:"等比锁",default:!1,type:"boolean"}},type:"object"},mrt={label:"原点",description:"用于设置旋转的中心位置",properties:{x:{label:"x",default:.5,type:"float"},y:{label:"y",default:.5,type:"float"}},type:"object"},vrt={label:"位置",properties:{x:{label:"x",default:0,type:"float"},y:{label:"y",default:0,type:"float"}},type:"object"},yrt={label:"旋转",type:"float",default:0},_rt={label:"缩放",properties:{x:{label:"x",default:1,type:"float"},y:{label:"y",default:1,type:"float"}},type:"object"},brt={label:"倾斜",properties:{x:{label:"x",default:0,type:"float"},y:{label:"y",default:0,type:"float"}},type:"object"},Srt={properties:{position:vrt,size:grt,origin:mrt,scale:_rt,skew:brt,rotation:yrt},type:"object"},tse;(e=>{function n(){return lg.createDefault(Srt)}e.createDefault=n;function r(s){return{position:{x:s.position.x,y:s.position.y},size:{width:s.size.width,height:s.size.height,locked:s.size.locked},origin:{x:s.origin.x,y:s.origin.y},scale:{x:s.scale.x,y:s.scale.y},skew:{x:s.skew.x,y:s.skew.y},rotation:s.rotation}}e.toJSON=r;function i(s,l){return{position:{x:l.position.x-s.position.x,y:l.position.y-s.position.y},size:{width:l.size.width-s.size.width,height:l.size.height-s.size.height},origin:{x:l.origin.x-s.origin.x,y:l.origin.y-s.origin.y},scale:{x:l.scale.x-s.scale.x,y:l.scale.y-s.scale.y},skew:{x:l.skew.x-s.skew.x,y:l.skew.y-s.skew.y},rotation:l.rotation-s.rotation}}e.getDelta=i;function o(s,l,c){const u=c!==void 0?d=>Math.round(d*100)/100:d=>d;return{position:{x:u(l.position.x+s.position.x),y:u(l.position.y+s.position.y)},size:{width:u(l.size.width+s.size.width),height:u(l.size.height+s.size.height),locked:s.size.locked},origin:{x:u(l.origin.x+s.origin.x),y:u(l.origin.y+s.origin.y)},scale:{x:u(l.scale.x+s.scale.x),y:u(l.scale.y+s.scale.y)},skew:{x:u(l.skew.x+s.skew.x),y:u(l.skew.y+s.skew.y)},rotation:l.rotation+s.rotation}}e.mergeDelta=o;function a(s){return s&&s.position&&s.size&&typeof s.position.x=="number"&&typeof s.size.width=="number"}e.is=a})(tse||(tse={}));var vR;(e=>{function n(o,a){if(o.width<=a.width&&o.height<=a.height)return 1;const s=o.width/a.width,l=o.height/a.height;return 1/(s>l?s:l)}e.fixSize=n;function r(o,a){const s=o.width/a.width,l=o.height/a.height;return 1/(s<l?s:l)}e.coverSize=r;function i(){return{width:0,height:0}}e.empty=i})(vR||(vR={}));var nse;(e=>{e.empty=()=>({left:0,right:0,top:0,bottom:0})})(nse||(nse={}));var Bke;(e=>{function n(r){return r?r.topLeft===void 0&&r.topRight===void 0&&r.bottomLeft===void 0&&r.bottomRight===void 0:!0}e.isEmpty=n})(Bke||(Bke={}));var xKn={label:"透明度",type:"float",min:0,max:1,default:1},TKn=e=>e.replace(/([A-Z])/,n=>`-${n.toLowerCase()}`),Tr;(e=>{function n(b){return`${b}px`}e.toPixel=n;function r(b){return parseFloat(b.substring(0,b.length-1))}e.fromPercent=r;function i(b){return`${b}%`}e.toPercent=i;function o(b){b.style.pointerEvents="all"}e.enableEvent=o;function a(b){b.style.pointerEvents="none"}e.disableEvent=a;function s(b,...E){const w=document.createElement(b);return E.length>0&&(w.className=ry(E)),w}e.createElement=s;function l(...b){return s("div",...b)}e.createDivWithClass=l;function c(b,...E){b.className=ry(E.concat(b.className.split(" ")))}e.addClass=c;function u(b,...E){E.forEach(w=>{b.classList.remove(w)}),b.className=b.classList.toString()}e.delClass=u;function d(b,...E){b.className=ry(E)}e.coverClass=d;function f(b){b.innerHTML=""}e.clearChildren=f;function p(b,E,w){b.style.transform=`translate(${E}%, ${w}%)`}e.translatePercent=p;function h(b,E){b.style.transform=`translateX(${E}%)`}e.translateXPercent=h;function g(b,E){b.style.transform=`translateY(${E}%)`}e.translateYPercent=g;function v(b,E){const w=[];_Kn(E,(T,R)=>{T!==void 0&&(typeof T=="number"&&R!=="opacity"&&R!=="zIndex"&&R!=="scale"&&(T=n(T)),w.push(`${TKn(R)}:${T}`))});const C=b.getAttribute("style"),x=w.join(";");C!==x&&b.setAttribute("style",x)}e.setStyle=v;function y(b){return(E,w)=>ry(E.split(/\s+/).map(C=>`${b}-${C}`).join(" "),w)}e.classNameWithPrefix=y;function _(b,E,w,C){return b.addEventListener(E,w,C),ao.create(()=>{b.removeEventListener(E,w)})}e.addStandardDisposableListener=_;function S(b,E,w){return uD.create(()=>{const C=typeof E=="string"?e.createDivWithClass(E):E();return w&&(C.innerHTML=w),b.appendChild(C),Object.assign(C,{dispose:()=>{const{parentNode:x}=C;x&&x.removeChild(C)},setStyle:x=>{e.setStyle(C,x)}})})}e.createDOMCache=S})(Tr||(Tr={}));var OJ=0;function OKn(){return OJ===Number.MAX_SAFE_INTEGER&&(OJ=0),OJ++}function QL(e,n,r){e(n).toSelf().inSingletonScope(),r.forEach(i=>e(i).toService(n))}var cme=Symbol("ContributionProvider"),RKn=class{constructor(e,n){this.container=e,this.identifier=n}forEach(e){this.getContributions().forEach(e)}getContributions(){if(!this.services){const e=[];let{container:n}=this;if(n.isBound(this.identifier))try{e.push(...n.getAll(this.identifier))}catch(r){console.error(r)}this.services=e}return this.services}};function ume(e,n){e(cme).toDynamicValue(r=>new RKn(r.container,n)).inSingletonScope().whenTargetNamed(n)}function Od(e){const[,n]=m.useState(e);return m.useCallback(r=>n(r!==void 0?r:{}),[])}const RJ=Symbol.for("@inversifyjs/common/islazyServiceIdentifier");var J3e,$D,e4e;let IKn=(J3e=RJ,e4e=class{constructor(n){$t(this,J3e);Xn(this,$D);xn(this,$D,n),this[RJ]=!0}static is(n){return typeof n=="object"&&n!==null&&n[RJ]===!0}unwrap(){return He(this,$D).call(this)}},$D=new WeakMap,e4e);function Ly(e,n){return Reflect.getMetadata(n,e)}function jke(e,n,r,i){const o=i(Ly(e,n)??r);Reflect.defineMetadata(n,o,e)}const SV="named",dme="name",fme="unmanaged",pme="optional",hme="inject",gme="multi_inject",Ert="post_construct",Crt="pre_destroy",NKn=[hme,gme,dme,fme,SV,pme],IJ=Symbol.for("@inversifyjs/core/InversifyCoreError");var t4e,n4e;let xC=class wrt extends(n4e=Error,t4e=IJ,n4e){constructor(r,i,o){super(i,o);$t(this,t4e);$t(this,"kind");this[IJ]=!0,this.kind=r}static is(r){return typeof r=="object"&&r!==null&&r[IJ]===!0}static isErrorOfKind(r,i){return wrt.is(r)&&r.kind===i}};var $y,hd;function xrt(e,n){const r=[];for(let i=0;i<n.length;++i)n[i]===void 0&&r.push(i);if(r.length>0)throw new xC($y.missingInjectionDecorator,`Found unexpected missing metadata on type "${e.name}" at constructor indexes "${r.join('", "')}".
|
||
|
||
Are you using @inject, @multiInject or @unmanaged decorators at those indexes?
|
||
|
||
If you're using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true`)}function Trt(e){return{kind:hd.singleInjection,name:void 0,optional:!1,tags:new Map,targetName:void 0,value:e}}function EV(e){const n=e.find(s=>s.key===hme),r=e.find(s=>s.key===gme);if(e.find(s=>s.key===fme)!==void 0)return function(s,l){if(l!==void 0||s!==void 0)throw new xC($y.missingInjectionDecorator,"Expected a single @inject, @multiInject or @unmanaged metadata");return{kind:hd.unmanaged}}(n,r);if(r===void 0&&n===void 0)throw new xC($y.missingInjectionDecorator,"Expected @inject, @multiInject or @unmanaged metadata");const i=e.find(s=>s.key===SV),o=e.find(s=>s.key===pme),a=e.find(s=>s.key===dme);return{kind:n===void 0?hd.multipleInjection:hd.singleInjection,name:i==null?void 0:i.value,optional:o!==void 0,tags:new Map(e.filter(s=>NKn.every(l=>s.key!==l)).map(s=>[s.key,s.value])),targetName:a==null?void 0:a.value,value:n===void 0?r==null?void 0:r.value:n.value}}function Ort(e,n,r){try{return EV(r)}catch(i){throw xC.isErrorOfKind(i,$y.missingInjectionDecorator)?new xC($y.missingInjectionDecorator,`Expected a single @inject, @multiInject or @unmanaged decorator at type "${e.name}" at constructor arguments at index "${n.toString()}"`,{cause:i}):i}}function MKn(e){const n=Ly(e,"design:paramtypes"),r=Ly(e,"inversify:tagged"),i=[];if(r!==void 0)for(const[o,a]of Object.entries(r)){const s=parseInt(o);i[s]=Ort(e,s,a)}if(n!==void 0){for(let o=0;o<n.length;++o)if(i[o]===void 0){const a=n[o];i[o]=Trt(a)}}return xrt(e,i),i}function Rrt(e,n,r){try{return EV(r)}catch(i){throw xC.isErrorOfKind(i,$y.missingInjectionDecorator)?new xC($y.missingInjectionDecorator,`Expected a single @inject, @multiInject or @unmanaged decorator at type "${e.name}" at property "${n.toString()}"`,{cause:i}):i}}function Irt(e){const n=Ly(e,"inversify:tagged_props"),r=new Map;if(n!==void 0)for(const i of Reflect.ownKeys(n)){const o=n[i];r.set(i,Rrt(e,i,o))}return r}function PKn(e){const n=Ly(e,Ert),r=Ly(e,Crt);return{constructorArguments:MKn(e),lifecycle:{postConstructMethodName:n==null?void 0:n.value,preDestroyMethodName:r==null?void 0:r.value},properties:Irt(e)}}function AKn(e,n){const r=n.getConstructorMetadata(e),i=[];for(const[o,a]of Object.entries(r.userGeneratedMetadata)){const s=parseInt(o);i[s]=Ort(e,s,a)}if(r.compilerGeneratedMetadata!==void 0){for(let o=0;o<r.compilerGeneratedMetadata.length;++o)if(i[o]===void 0){const a=r.compilerGeneratedMetadata[o];i[o]=Trt(a)}}return xrt(e,i),i}function Nrt(e,n){const r=n.getPropertiesMetadata(e),i=new Map;for(const o of Reflect.ownKeys(r)){const a=r[o];i.set(o,Rrt(e,o,a))}return i}function DKn(e,n){const r=Ly(e,Ert),i=Ly(e,Crt);return{constructorArguments:AKn(e,n),lifecycle:{postConstructMethodName:r==null?void 0:r.value,preDestroyMethodName:i==null?void 0:i.value},properties:Nrt(e,n)}}function Uke(e){const n=Object.getPrototypeOf(e.prototype);return n==null?void 0:n.constructor}function kKn(e){return e.kind===hd.unmanaged?[{key:fme,value:!0}]:function(n){const r=[LKn(n)];n.name!==void 0&&r.push({key:SV,value:n.name}),n.optional&&r.push({key:pme,value:!0});for(const[i,o]of n.tags)r.push({key:i,value:o});return n.targetName!==void 0&&r.push({key:dme,value:n.targetName}),r}(e)}function LKn(e){let n;switch(e.kind){case hd.multipleInjection:n={key:gme,value:e.value};break;case hd.singleInjection:n={key:hme,value:e.value}}return n}(function(e){e[e.injectionDecoratorConflict=0]="injectionDecoratorConflict",e[e.missingInjectionDecorator=1]="missingInjectionDecorator",e[e.planning=2]="planning",e[e.unknown=3]="unknown"})($y||($y={})),function(e){e[e.multipleInjection=0]="multipleInjection",e[e.singleInjection=1]="singleInjection",e[e.unmanaged=2]="unmanaged"}(hd||(hd={}));var Vv,r4e;let $Kn=(r4e=class{constructor(n){Xn(this,Vv);xn(this,Vv,n)}startsWith(n){return He(this,Vv).startsWith(n)}endsWith(n){return He(this,Vv).endsWith(n)}contains(n){return He(this,Vv).includes(n)}equals(n){return He(this,Vv)===n}value(){return He(this,Vv)}},Vv=new WeakMap,r4e);const NJ="@inversifyjs/core/targetId";var lc,FD,BD,y1,jD,UD,i4e;let hj=(i4e=class{constructor(n,r,i){Xn(this,lc);Xn(this,FD);Xn(this,BD);Xn(this,y1);Xn(this,jD);Xn(this,UD);xn(this,FD,function(){const o=Ly(Object,NJ)??0;return o===Number.MAX_SAFE_INTEGER?jke(Object,NJ,o,()=>Number.MIN_SAFE_INTEGER):jke(Object,NJ,o,a=>a+1),o}()),xn(this,BD,n),xn(this,y1,void 0),xn(this,lc,r),xn(this,jD,new $Kn(typeof n=="string"?n:n.toString().slice(7,-1))),xn(this,UD,i)}get id(){return He(this,FD)}get identifier(){return He(this,BD)}get metadata(){return He(this,y1)===void 0&&xn(this,y1,kKn(He(this,lc))),He(this,y1)}get name(){return He(this,jD)}get type(){return He(this,UD)}get serviceIdentifier(){return IKn.is(He(this,lc).value)?He(this,lc).value.unwrap():He(this,lc).value}getCustomTags(){return[...He(this,lc).tags.entries()].map(([n,r])=>({key:n,value:r}))}getNamedTag(){return He(this,lc).name===void 0?null:{key:SV,value:He(this,lc).name}}hasTag(n){return this.metadata.some(r=>r.key===n)}isArray(){return He(this,lc).kind===hd.multipleInjection}isNamed(){return He(this,lc).name!==void 0}isOptional(){return He(this,lc).optional}isTagged(){return He(this,lc).tags.size>0}matchesArray(n){return this.isArray()&&He(this,lc).value===n}matchesNamedTag(n){return He(this,lc).name===n}matchesTag(n){return r=>this.metadata.some(i=>i.key===n&&i.value===r)}},lc=new WeakMap,FD=new WeakMap,BD=new WeakMap,y1=new WeakMap,jD=new WeakMap,UD=new WeakMap,i4e);const Mrt=e=>function(n,r){return function(i){const o=n(i);let a=Uke(i);for(;a!==void 0&&a!==Object;){const l=r(a);for(const[c,u]of l)o.properties.has(c)||o.properties.set(c,u);a=Uke(a)}const s=[];for(const l of o.constructorArguments)if(l.kind!==hd.unmanaged){const c=l.targetName??"";s.push(new hj(c,l,"ConstructorArgument"))}for(const[l,c]of o.properties)if(c.kind!==hd.unmanaged){const u=c.targetName??l;s.push(new hj(u,c,"ClassProperty"))}return s}}(e===void 0?PKn:n=>DKn(n,e),e===void 0?Irt:n=>Nrt(n,e)),Jf="named",FKn="unmanaged",Prt="optional",Art="inject",Drt="multi_inject",krt="inversify:tagged",Lrt="inversify:tagged_props",Hke="inversify:paramtypes",$rt="design:paramtypes",rse="post_construct",gj="pre_destroy",js={Request:"Request",Singleton:"Singleton",Transient:"Transient"},la={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},Frt={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};let BKn=0;function ZL(){return BKn++}let jKn=class Brt{constructor(n,r){$t(this,"id");$t(this,"moduleId");$t(this,"activated");$t(this,"serviceIdentifier");$t(this,"implementationType");$t(this,"cache");$t(this,"dynamicValue");$t(this,"scope");$t(this,"type");$t(this,"factory");$t(this,"provider");$t(this,"constraint");$t(this,"onActivation");$t(this,"onDeactivation");this.id=ZL(),this.activated=!1,this.serviceIdentifier=n,this.scope=r,this.type=la.Invalid,this.constraint=i=>!0,this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.onDeactivation=null,this.dynamicValue=null}clone(){const n=new Brt(this.serviceIdentifier,this.scope);return n.activated=n.scope===js.Singleton&&this.activated,n.implementationType=this.implementationType,n.dynamicValue=this.dynamicValue,n.scope=this.scope,n.type=this.type,n.factory=this.factory,n.provider=this.provider,n.constraint=this.constraint,n.onActivation=this.onActivation,n.onDeactivation=this.onDeactivation,n.cache=this.cache,n}};const jrt="Metadata key was used more than once in a parameter:",zke="NULL argument",Vke="Key Not Found",UKn="Ambiguous match found for serviceIdentifier:",HKn="No matching bindings found for serviceIdentifier:",Urt="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",ise=(e,n)=>`onDeactivation() error in class ${e}: ${n}`;let zKn=class{getConstructorMetadata(n){return{compilerGeneratedMetadata:Reflect.getMetadata($rt,n)??[],userGeneratedMetadata:Reflect.getMetadata(krt,n)??{}}}getPropertiesMetadata(n){return Reflect.getMetadata(Lrt,n)??{}}};var xT;function Hrt(e){return e instanceof RangeError||e.message==="Maximum call stack size exceeded"}(function(e){e[e.MultipleBindingsAvailable=2]="MultipleBindingsAvailable",e[e.NoBindingsAvailable=0]="NoBindingsAvailable",e[e.OnlyOneBindingAvailable=1]="OnlyOneBindingAvailable"})(xT||(xT={}));function g0(e){return typeof e=="function"?e.name:typeof e=="symbol"?e.toString():e}function Gke(e,n,r){let i="";const o=r(e,n);return o.length!==0&&(i=`
|
||
Registered bindings:`,o.forEach(a=>{let s="Object";a.implementationType!==null&&(s=Grt(a.implementationType)),i=`${i}
|
||
${s}`,a.constraint.metaData&&(i=`${i} - ${a.constraint.metaData}`)})),i}function zrt(e,n){return e.parentRequest!==null&&(e.parentRequest.serviceIdentifier===n||zrt(e.parentRequest,n))}function Vrt(e){e.childRequests.forEach(n=>{if(zrt(e,n.serviceIdentifier)){const r=function(i){return function a(s,l=[]){const c=g0(s.serviceIdentifier);return l.push(c),s.parentRequest!==null?a(s.parentRequest,l):l}(i).reverse().join(" --> ")}(n);throw new Error(`Circular dependency found: ${r}`)}Vrt(n)})}function Grt(e){if(e.name!=null&&e.name!=="")return e.name;{const n=e.toString(),r=n.match(/^function\s*([^\s(]+)/);return r===null?`Anonymous function: ${n}`:r[1]}}function Wke(e){return`{"key":"${e.key.toString()}","value":"${e.value.toString()}"}`}let Wrt=class{constructor(n){$t(this,"id");$t(this,"container");$t(this,"plan");$t(this,"currentRequest");this.id=ZL(),this.container=n}addPlan(n){this.plan=n}setCurrentRequest(n){this.currentRequest=n}},m0=class{constructor(n,r){$t(this,"key");$t(this,"value");this.key=n,this.value=r}toString(){return this.key===Jf?`named: ${String(this.value).toString()} `:`tagged: { key:${this.key.toString()}, value: ${String(this.value)} }`}},VKn=class{constructor(n,r){$t(this,"parentContext");$t(this,"rootRequest");this.parentContext=n,this.rootRequest=r}};function Yrt(e,n){const r=function(l){const c=Object.getPrototypeOf(l.prototype);return c==null?void 0:c.constructor}(n);if(r===void 0||r===Object)return 0;const i=Mrt(e)(r),o=i.map(l=>l.metadata.filter(c=>c.key===FKn)),a=[].concat.apply([],o).length,s=i.length-a;return s>0?s:Yrt(e,r)}let mme=class qrt{constructor(n,r,i,o,a){$t(this,"id");$t(this,"serviceIdentifier");$t(this,"parentContext");$t(this,"parentRequest");$t(this,"bindings");$t(this,"childRequests");$t(this,"target");$t(this,"requestScope");this.id=ZL(),this.serviceIdentifier=n,this.parentContext=r,this.parentRequest=i,this.target=a,this.childRequests=[],this.bindings=Array.isArray(o)?o:[o],this.requestScope=i===null?new Map:null}addChildRequest(n,r,i){const o=new qrt(n,this.parentContext,this,r,i);return this.childRequests.push(o),o}};function mj(e){return e._bindingDictionary}function Yke(e,n,r,i,o){let a=b2(r.container,o.serviceIdentifier),s=[];return a.length===xT.NoBindingsAvailable&&r.container.options.autoBindInjectable===!0&&typeof o.serviceIdentifier=="function"&&e.getConstructorMetadata(o.serviceIdentifier).compilerGeneratedMetadata&&(r.container.bind(o.serviceIdentifier).toSelf(),a=b2(r.container,o.serviceIdentifier)),s=n?a:a.filter(l=>{const c=new mme(l.serviceIdentifier,r,i,l,o);return l.constraint(c)}),function(l,c,u,d,f){switch(c.length){case xT.NoBindingsAvailable:if(d.isOptional())return c;{const p=g0(l);let h=HKn;throw h+=function(g,v){if(v.isTagged()||v.isNamed()){let y="";const _=v.getNamedTag(),S=v.getCustomTags();return _!==null&&(y+=Wke(_)+`
|
||
`),S!==null&&S.forEach(b=>{y+=Wke(b)+`
|
||
`}),` ${g}
|
||
${g} - ${y}`}return` ${g}`}(p,d),h+=Gke(f,p,b2),u!==null&&(h+=`
|
||
Trying to resolve bindings for "${g0(u.serviceIdentifier)}"`),new Error(h)}case xT.OnlyOneBindingAvailable:return c;case xT.MultipleBindingsAvailable:default:if(d.isArray())return c;{const p=g0(l);let h=`${UKn} ${p}`;throw h+=Gke(f,p,b2),new Error(h)}}}(o.serviceIdentifier,s,i,o,r.container),s}function Krt(e,n){const r=n.isMultiInject?Drt:Art,i=[new m0(r,e)];return n.customTag!==void 0&&i.push(new m0(n.customTag.key,n.customTag.value)),n.isOptional===!0&&i.push(new m0(Prt,!0)),i}function Xrt(e,n,r,i,o,a){let s,l;if(o===null){s=Yke(e,n,i,null,a),l=new mme(r,i,null,s,a);const c=new VKn(i,l);i.addPlan(c)}else s=Yke(e,n,i,o,a),l=o.addChildRequest(a.serviceIdentifier,s,a);s.forEach(c=>{let u=null;if(a.isArray())u=l.addChildRequest(c.serviceIdentifier,c,a);else{if(c.cache!==null)return;u=l}if(c.type===la.Instance&&c.implementationType!==null){const d=function(f,p){return Mrt(f)(p)}(e,c.implementationType);if(i.container.options.skipBaseClassChecks!==!0){const f=Yrt(e,c.implementationType);if(d.length<f){const p=`The number of constructor arguments in the derived class ${Grt(c.implementationType)} must be >= than the number of constructor arguments of its base class.`;throw new Error(p)}}d.forEach(f=>{Xrt(e,!1,f.serviceIdentifier,i,u,f)})}})}function b2(e,n){let r=[];const i=mj(e);return i.hasKey(n)?r=i.get(n):e.parent!==null&&(r=b2(e.parent,n)),r}function GKn(e,n,r,i,o,a=!1){const s=new Wrt(n),l=function(c,u,d){const f=Krt(u,d),p=EV(f);if(p.kind===hd.unmanaged)throw new Error("Unexpected metadata when creating target");return new hj("",p,c)}(r,i,o);try{return Xrt(e,a,i,s,null,l),s}catch(c){throw Hrt(c)&&Vrt(s.plan.rootRequest),c}}function rd(e){return(typeof e=="object"&&e!==null||typeof e=="function")&&typeof e.then=="function"}function Qrt(e){return!!rd(e)||Array.isArray(e)&&e.some(rd)}const WKn=(e,n,r)=>{e.has(n.id)||e.set(n.id,r)},YKn=(e,n)=>{e.cache=n,e.activated=!0,rd(n)&&qKn(e,n)},qKn=async(e,n)=>{try{const r=await n;e.cache=r}catch(r){throw e.cache=null,e.activated=!1,r}};var bP;(function(e){e.DynamicValue="toDynamicValue",e.Factory="toFactory",e.Provider="toProvider"})(bP||(bP={}));function KKn(e,n,r){let i;if(n.length>0){const o=function(s,l){return s.reduce((c,u)=>{const d=l(u);return u.target.type===Frt.ConstructorArgument?c.constructorInjections.push(d):(c.propertyRequests.push(u),c.propertyInjections.push(d)),c.isAsync||(c.isAsync=Qrt(d)),c},{constructorInjections:[],isAsync:!1,propertyInjections:[],propertyRequests:[]})}(n,r),a={...o,constr:e};i=o.isAsync?async function(s){const l=await Kke(s.constructorInjections),c=await Kke(s.propertyInjections);return qke({...s,constructorInjections:l,propertyInjections:c})}(a):qke(a)}else i=new e;return i}function qke(e){const n=new e.constr(...e.constructorInjections);return e.propertyRequests.forEach((r,i)=>{const o=r.target.identifier,a=e.propertyInjections[i];r.target.isOptional()&&a===void 0||(n[o]=a)}),n}async function Kke(e){const n=[];for(const r of e)Array.isArray(r)?n.push(Promise.all(r)):n.push(r);return Promise.all(n)}function Xke(e,n){const r=function(i,o){var l;if(Reflect.hasMetadata(rse,i)){const c=Reflect.getMetadata(rse,i);try{return(l=o[c.value])==null?void 0:l.call(o)}catch(u){if(u instanceof Error)throw new Error((a=i.name,s=u.message,`@postConstruct error in class ${a}: ${s}`))}}var a,s}(e,n);return rd(r)?r.then(()=>n):n}function XKn(e,n){e.scope!==js.Singleton&&function(r,i){const o=`Class cannot be instantiated in ${r.scope===js.Request?"request":"transient"} scope.`;if(typeof r.onDeactivation=="function")throw new Error(ise(i.name,o));if(Reflect.hasMetadata(gj,i))throw new Error(`@preDestroy error in class ${i.name}: ${o}`)}(e,n)}const vme=e=>n=>{n.parentContext.setCurrentRequest(n);const r=n.bindings,i=n.childRequests,o=n.target&&n.target.isArray(),a=!(n.parentRequest&&n.parentRequest.target&&n.target&&n.parentRequest.target.matchesArray(n.target.serviceIdentifier));if(o&&a)return i.map(s=>vme(e)(s));{if(n.target.isOptional()&&r.length===0)return;const s=r[0];return eXn(e,n,s)}},QKn=(e,n)=>{const r=(i=>{switch(i.type){case la.Factory:return{factory:i.factory,factoryType:bP.Factory};case la.Provider:return{factory:i.provider,factoryType:bP.Provider};case la.DynamicValue:return{factory:i.dynamicValue,factoryType:bP.DynamicValue};default:throw new Error(`Unexpected factory type ${i.type}`)}})(e);return((i,o)=>{try{return i()}catch(a){throw Hrt(a)?o():a}})(()=>r.factory.bind(e)(n),()=>{return new Error((i=r.factoryType,o=n.currentRequest.serviceIdentifier.toString(),`It looks like there is a circular dependency in one of the '${i}' bindings. Please investigate bindings with service identifier '${o}'.`));var i,o})},ZKn=(e,n,r)=>{let i;const o=n.childRequests;switch((a=>{let s=null;switch(a.type){case la.ConstantValue:case la.Function:s=a.cache;break;case la.Constructor:case la.Instance:s=a.implementationType;break;case la.DynamicValue:s=a.dynamicValue;break;case la.Provider:s=a.provider;break;case la.Factory:s=a.factory}if(s===null){const l=g0(a.serviceIdentifier);throw new Error(`Invalid binding type: ${l}`)}})(r),r.type){case la.ConstantValue:case la.Function:i=r.cache;break;case la.Constructor:i=r.implementationType;break;case la.Instance:i=function(a,s,l,c){XKn(a,s);const u=KKn(s,l,c);return rd(u)?u.then(d=>Xke(s,d)):Xke(s,u)}(r,r.implementationType,o,vme(e));break;default:i=QKn(r,n.parentContext)}return i},JKn=(e,n,r)=>{let i=((o,a)=>a.scope===js.Singleton&&a.activated?a.cache:a.scope===js.Request&&o.has(a.id)?o.get(a.id):null)(e,n);return i!==null||(i=r(),((o,a,s)=>{a.scope===js.Singleton&&YKn(a,s),a.scope===js.Request&&WKn(o,a,s)})(e,n,i)),i},eXn=(e,n,r)=>JKn(e,r,()=>{let i=ZKn(e,n,r);return i=rd(i)?i.then(o=>Qke(n,r,o)):Qke(n,r,i),i});function Qke(e,n,r){let i=tXn(e.parentContext,n,r);const o=iXn(e.parentContext.container);let a,s=o.next();do{a=s.value;const l=e.parentContext,c=e.serviceIdentifier,u=rXn(a,c);i=rd(i)?Zrt(u,l,i):nXn(u,l,i),s=o.next()}while(s.done!==!0&&!mj(a).hasKey(e.serviceIdentifier));return i}const tXn=(e,n,r)=>{let i;return i=typeof n.onActivation=="function"?n.onActivation(e,r):r,i},nXn=(e,n,r)=>{let i=e.next();for(;i.done!==!0;){if(rd(r=i.value(n,r)))return Zrt(e,n,r);i=e.next()}return r},Zrt=async(e,n,r)=>{let i=await r,o=e.next();for(;o.done!==!0;)i=await o.value(n,i),o=e.next();return i},rXn=(e,n)=>{const r=e._activations;return r.hasKey(n)?r.get(n).values():[].values()},iXn=e=>{const n=[e];let r=e.parent;for(;r!==null;)n.push(r),r=r.parent;return{next:()=>{const i=n.pop();return i!==void 0?{done:!1,value:i}:{done:!0,value:void 0}}}},kv=(e,n)=>{const r=e.parentRequest;return r!==null&&(!!n(r)||kv(r,n))},S2=e=>n=>{const r=i=>i!==null&&i.target!==null&&i.target.matchesTag(e)(n);return r.metaData=new m0(e,n),r},l5=S2(Jf),MJ=e=>n=>{let r=null;if(n!==null){if(r=n.bindings[0],typeof e=="string")return r.serviceIdentifier===e;{const i=n.bindings[0].implementationType;return e===i}}return!1};class vj{constructor(n){$t(this,"_binding");this._binding=n}when(n){return this._binding.constraint=n,new sc(this._binding)}whenTargetNamed(n){return this._binding.constraint=l5(n),new sc(this._binding)}whenTargetIsDefault(){return this._binding.constraint=n=>n===null?!1:n.target!==null&&!n.target.isNamed()&&!n.target.isTagged(),new sc(this._binding)}whenTargetTagged(n,r){return this._binding.constraint=S2(n)(r),new sc(this._binding)}whenInjectedInto(n){return this._binding.constraint=r=>r!==null&&MJ(n)(r.parentRequest),new sc(this._binding)}whenParentNamed(n){return this._binding.constraint=r=>r!==null&&l5(n)(r.parentRequest),new sc(this._binding)}whenParentTagged(n,r){return this._binding.constraint=i=>i!==null&&S2(n)(r)(i.parentRequest),new sc(this._binding)}whenAnyAncestorIs(n){return this._binding.constraint=r=>r!==null&&kv(r,MJ(n)),new sc(this._binding)}whenNoAncestorIs(n){return this._binding.constraint=r=>r!==null&&!kv(r,MJ(n)),new sc(this._binding)}whenAnyAncestorNamed(n){return this._binding.constraint=r=>r!==null&&kv(r,l5(n)),new sc(this._binding)}whenNoAncestorNamed(n){return this._binding.constraint=r=>r!==null&&!kv(r,l5(n)),new sc(this._binding)}whenAnyAncestorTagged(n,r){return this._binding.constraint=i=>i!==null&&kv(i,S2(n)(r)),new sc(this._binding)}whenNoAncestorTagged(n,r){return this._binding.constraint=i=>i!==null&&!kv(i,S2(n)(r)),new sc(this._binding)}whenAnyAncestorMatches(n){return this._binding.constraint=r=>r!==null&&kv(r,n),new sc(this._binding)}whenNoAncestorMatches(n){return this._binding.constraint=r=>r!==null&&!kv(r,n),new sc(this._binding)}}class sc{constructor(n){$t(this,"_binding");this._binding=n}onActivation(n){return this._binding.onActivation=n,new vj(this._binding)}onDeactivation(n){return this._binding.onDeactivation=n,new vj(this._binding)}}class zv{constructor(n){$t(this,"_bindingWhenSyntax");$t(this,"_bindingOnSyntax");$t(this,"_binding");this._binding=n,this._bindingWhenSyntax=new vj(this._binding),this._bindingOnSyntax=new sc(this._binding)}when(n){return this._bindingWhenSyntax.when(n)}whenTargetNamed(n){return this._bindingWhenSyntax.whenTargetNamed(n)}whenTargetIsDefault(){return this._bindingWhenSyntax.whenTargetIsDefault()}whenTargetTagged(n,r){return this._bindingWhenSyntax.whenTargetTagged(n,r)}whenInjectedInto(n){return this._bindingWhenSyntax.whenInjectedInto(n)}whenParentNamed(n){return this._bindingWhenSyntax.whenParentNamed(n)}whenParentTagged(n,r){return this._bindingWhenSyntax.whenParentTagged(n,r)}whenAnyAncestorIs(n){return this._bindingWhenSyntax.whenAnyAncestorIs(n)}whenNoAncestorIs(n){return this._bindingWhenSyntax.whenNoAncestorIs(n)}whenAnyAncestorNamed(n){return this._bindingWhenSyntax.whenAnyAncestorNamed(n)}whenAnyAncestorTagged(n,r){return this._bindingWhenSyntax.whenAnyAncestorTagged(n,r)}whenNoAncestorNamed(n){return this._bindingWhenSyntax.whenNoAncestorNamed(n)}whenNoAncestorTagged(n,r){return this._bindingWhenSyntax.whenNoAncestorTagged(n,r)}whenAnyAncestorMatches(n){return this._bindingWhenSyntax.whenAnyAncestorMatches(n)}whenNoAncestorMatches(n){return this._bindingWhenSyntax.whenNoAncestorMatches(n)}onActivation(n){return this._bindingOnSyntax.onActivation(n)}onDeactivation(n){return this._bindingOnSyntax.onDeactivation(n)}}class oXn{constructor(n){$t(this,"_binding");this._binding=n}inRequestScope(){return this._binding.scope=js.Request,new zv(this._binding)}inSingletonScope(){return this._binding.scope=js.Singleton,new zv(this._binding)}inTransientScope(){return this._binding.scope=js.Transient,new zv(this._binding)}}class Zke{constructor(n){$t(this,"_bindingInSyntax");$t(this,"_bindingWhenSyntax");$t(this,"_bindingOnSyntax");$t(this,"_binding");this._binding=n,this._bindingWhenSyntax=new vj(this._binding),this._bindingOnSyntax=new sc(this._binding),this._bindingInSyntax=new oXn(n)}inRequestScope(){return this._bindingInSyntax.inRequestScope()}inSingletonScope(){return this._bindingInSyntax.inSingletonScope()}inTransientScope(){return this._bindingInSyntax.inTransientScope()}when(n){return this._bindingWhenSyntax.when(n)}whenTargetNamed(n){return this._bindingWhenSyntax.whenTargetNamed(n)}whenTargetIsDefault(){return this._bindingWhenSyntax.whenTargetIsDefault()}whenTargetTagged(n,r){return this._bindingWhenSyntax.whenTargetTagged(n,r)}whenInjectedInto(n){return this._bindingWhenSyntax.whenInjectedInto(n)}whenParentNamed(n){return this._bindingWhenSyntax.whenParentNamed(n)}whenParentTagged(n,r){return this._bindingWhenSyntax.whenParentTagged(n,r)}whenAnyAncestorIs(n){return this._bindingWhenSyntax.whenAnyAncestorIs(n)}whenNoAncestorIs(n){return this._bindingWhenSyntax.whenNoAncestorIs(n)}whenAnyAncestorNamed(n){return this._bindingWhenSyntax.whenAnyAncestorNamed(n)}whenAnyAncestorTagged(n,r){return this._bindingWhenSyntax.whenAnyAncestorTagged(n,r)}whenNoAncestorNamed(n){return this._bindingWhenSyntax.whenNoAncestorNamed(n)}whenNoAncestorTagged(n,r){return this._bindingWhenSyntax.whenNoAncestorTagged(n,r)}whenAnyAncestorMatches(n){return this._bindingWhenSyntax.whenAnyAncestorMatches(n)}whenNoAncestorMatches(n){return this._bindingWhenSyntax.whenNoAncestorMatches(n)}onActivation(n){return this._bindingOnSyntax.onActivation(n)}onDeactivation(n){return this._bindingOnSyntax.onDeactivation(n)}}class aXn{constructor(n){$t(this,"_binding");this._binding=n}to(n){return this._binding.type=la.Instance,this._binding.implementationType=n,new Zke(this._binding)}toSelf(){if(typeof this._binding.serviceIdentifier!="function")throw new Error("The toSelf function can only be applied when a constructor is used as service identifier");const n=this._binding.serviceIdentifier;return this.to(n)}toConstantValue(n){return this._binding.type=la.ConstantValue,this._binding.cache=n,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=js.Singleton,new zv(this._binding)}toDynamicValue(n){return this._binding.type=la.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=n,this._binding.implementationType=null,new Zke(this._binding)}toConstructor(n){return this._binding.type=la.Constructor,this._binding.implementationType=n,this._binding.scope=js.Singleton,new zv(this._binding)}toFactory(n){return this._binding.type=la.Factory,this._binding.factory=n,this._binding.scope=js.Singleton,new zv(this._binding)}toFunction(n){if(typeof n!="function")throw new Error("Value provided to function binding must be a function!");const r=this.toConstantValue(n);return this._binding.type=la.Function,this._binding.scope=js.Singleton,r}toAutoFactory(n){return this._binding.type=la.Factory,this._binding.factory=r=>()=>r.container.get(n),this._binding.scope=js.Singleton,new zv(this._binding)}toAutoNamedFactory(n){return this._binding.type=la.Factory,this._binding.factory=r=>i=>r.container.getNamed(n,i),new zv(this._binding)}toProvider(n){return this._binding.type=la.Provider,this._binding.provider=n,this._binding.scope=js.Singleton,new zv(this._binding)}toService(n){this._binding.type=la.DynamicValue,Object.defineProperty(this._binding,"cache",{configurable:!0,enumerable:!0,get:()=>null,set(r){}}),this._binding.dynamicValue=r=>{try{return r.container.get(n)}catch{return r.container.getAsync(n)}},this._binding.implementationType=null}}class yme{constructor(){$t(this,"bindings");$t(this,"activations");$t(this,"deactivations");$t(this,"middleware");$t(this,"moduleActivationStore")}static of(n,r,i,o,a){const s=new yme;return s.bindings=n,s.middleware=r,s.deactivations=o,s.activations=i,s.moduleActivationStore=a,s}}class Yv{constructor(){$t(this,"_map");this._map=new Map}getMap(){return this._map}add(n,r){if(this._checkNonNulish(n),r==null)throw new Error(zke);const i=this._map.get(n);i!==void 0?i.push(r):this._map.set(n,[r])}get(n){this._checkNonNulish(n);const r=this._map.get(n);if(r!==void 0)return r;throw new Error(Vke)}remove(n){if(this._checkNonNulish(n),!this._map.delete(n))throw new Error(Vke)}removeIntersection(n){this.traverse((r,i)=>{const o=n.hasKey(r)?n.get(r):void 0;if(o!==void 0){const a=i.filter(s=>!o.some(l=>s===l));this._setValue(r,a)}})}removeByCondition(n){const r=[];return this._map.forEach((i,o)=>{const a=[];for(const s of i)n(s)?r.push(s):a.push(s);this._setValue(o,a)}),r}hasKey(n){return this._checkNonNulish(n),this._map.has(n)}clone(){const n=new Yv;return this._map.forEach((r,i)=>{r.forEach(o=>{var a;n.add(i,typeof(a=o)=="object"&&a!==null&&"clone"in a&&typeof a.clone=="function"?o.clone():o)})}),n}traverse(n){this._map.forEach((r,i)=>{n(i,r)})}_checkNonNulish(n){if(n==null)throw new Error(zke)}_setValue(n,r){r.length>0?this._map.set(n,r):this._map.delete(n)}}class _me{constructor(){$t(this,"_map",new Map)}remove(n){const r=this._map.get(n);return r===void 0?this._getEmptyHandlersStore():(this._map.delete(n),r)}addDeactivation(n,r,i){this._getModuleActivationHandlers(n).onDeactivations.add(r,i)}addActivation(n,r,i){this._getModuleActivationHandlers(n).onActivations.add(r,i)}clone(){const n=new _me;return this._map.forEach((r,i)=>{n._map.set(i,{onActivations:r.onActivations.clone(),onDeactivations:r.onDeactivations.clone()})}),n}_getModuleActivationHandlers(n){let r=this._map.get(n);return r===void 0&&(r=this._getEmptyHandlersStore(),this._map.set(n,r)),r}_getEmptyHandlersStore(){return{onActivations:new Yv,onDeactivations:new Yv}}}class yj{constructor(n){$t(this,"id");$t(this,"parent");$t(this,"options");$t(this,"_middleware");$t(this,"_bindingDictionary");$t(this,"_activations");$t(this,"_deactivations");$t(this,"_snapshots");$t(this,"_metadataReader");$t(this,"_moduleActivationStore");const r=n||{};if(typeof r!="object")throw new Error("Invalid Container constructor argument. Container options must be an object.");if(r.defaultScope===void 0)r.defaultScope=js.Transient;else if(r.defaultScope!==js.Singleton&&r.defaultScope!==js.Transient&&r.defaultScope!==js.Request)throw new Error('Invalid Container option. Default scope must be a string ("singleton" or "transient").');if(r.autoBindInjectable===void 0)r.autoBindInjectable=!1;else if(typeof r.autoBindInjectable!="boolean")throw new Error("Invalid Container option. Auto bind injectable must be a boolean");if(r.skipBaseClassChecks===void 0)r.skipBaseClassChecks=!1;else if(typeof r.skipBaseClassChecks!="boolean")throw new Error("Invalid Container option. Skip base check must be a boolean");this.options={autoBindInjectable:r.autoBindInjectable,defaultScope:r.defaultScope,skipBaseClassChecks:r.skipBaseClassChecks},this.id=ZL(),this._bindingDictionary=new Yv,this._snapshots=[],this._middleware=null,this._activations=new Yv,this._deactivations=new Yv,this.parent=null,this._metadataReader=new zKn,this._moduleActivationStore=new _me}static merge(n,r,...i){const o=new yj,a=[n,r,...i].map(l=>mj(l)),s=mj(o);return a.forEach(l=>{var c;c=s,l.traverse((u,d)=>{d.forEach(f=>{c.add(f.serviceIdentifier,f.clone())})})}),o}load(...n){const r=this._getContainerModuleHelpersFactory();for(const i of n){const o=r(i.id);i.registry(o.bindFunction,o.unbindFunction,o.isboundFunction,o.rebindFunction,o.unbindAsyncFunction,o.onActivationFunction,o.onDeactivationFunction)}}async loadAsync(...n){const r=this._getContainerModuleHelpersFactory();for(const i of n){const o=r(i.id);await i.registry(o.bindFunction,o.unbindFunction,o.isboundFunction,o.rebindFunction,o.unbindAsyncFunction,o.onActivationFunction,o.onDeactivationFunction)}}unload(...n){n.forEach(r=>{const i=this._removeModuleBindings(r.id);this._deactivateSingletons(i),this._removeModuleHandlers(r.id)})}async unloadAsync(...n){for(const r of n){const i=this._removeModuleBindings(r.id);await this._deactivateSingletonsAsync(i),this._removeModuleHandlers(r.id)}}bind(n){return this._bind(this._buildBinding(n))}rebind(n){return this.unbind(n),this.bind(n)}async rebindAsync(n){return await this.unbindAsync(n),this.bind(n)}unbind(n){if(this._bindingDictionary.hasKey(n)){const r=this._bindingDictionary.get(n);this._deactivateSingletons(r)}this._removeServiceFromDictionary(n)}async unbindAsync(n){if(this._bindingDictionary.hasKey(n)){const r=this._bindingDictionary.get(n);await this._deactivateSingletonsAsync(r)}this._removeServiceFromDictionary(n)}unbindAll(){this._bindingDictionary.traverse((n,r)=>{this._deactivateSingletons(r)}),this._bindingDictionary=new Yv}async unbindAllAsync(){const n=[];this._bindingDictionary.traverse((r,i)=>{n.push(this._deactivateSingletonsAsync(i))}),await Promise.all(n),this._bindingDictionary=new Yv}onActivation(n,r){this._activations.add(n,r)}onDeactivation(n,r){this._deactivations.add(n,r)}isBound(n){let r=this._bindingDictionary.hasKey(n);return!r&&this.parent&&(r=this.parent.isBound(n)),r}isCurrentBound(n){return this._bindingDictionary.hasKey(n)}isBoundNamed(n,r){return this.isBoundTagged(n,Jf,r)}isBoundTagged(n,r,i){let o=!1;if(this._bindingDictionary.hasKey(n)){const a=this._bindingDictionary.get(n),s=function(l,c,u){const d=Krt(c,u),f=EV(d);if(f.kind===hd.unmanaged)throw new Error("Unexpected metadata when creating target");const p=new hj("",f,"Variable"),h=new Wrt(l);return new mme(c,h,null,[],p)}(this,n,{customTag:{key:r,value:i},isMultiInject:!1});o=a.some(l=>l.constraint(s))}return!o&&this.parent&&(o=this.parent.isBoundTagged(n,r,i)),o}snapshot(){this._snapshots.push(yme.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))}restore(){const n=this._snapshots.pop();if(n===void 0)throw new Error("No snapshot available to restore.");this._bindingDictionary=n.bindings,this._activations=n.activations,this._deactivations=n.deactivations,this._middleware=n.middleware,this._moduleActivationStore=n.moduleActivationStore}createChild(n){const r=new yj(n||this.options);return r.parent=this,r}applyMiddleware(...n){const r=this._middleware?this._middleware:this._planAndResolve();this._middleware=n.reduce((i,o)=>o(i),r)}applyCustomMetadataReader(n){this._metadataReader=n}get(n){const r=this._getNotAllArgs(n,!1,!1);return this._getButThrowIfAsync(r)}async getAsync(n){const r=this._getNotAllArgs(n,!1,!1);return this._get(r)}getTagged(n,r,i){const o=this._getNotAllArgs(n,!1,!1,r,i);return this._getButThrowIfAsync(o)}async getTaggedAsync(n,r,i){const o=this._getNotAllArgs(n,!1,!1,r,i);return this._get(o)}getNamed(n,r){return this.getTagged(n,Jf,r)}async getNamedAsync(n,r){return this.getTaggedAsync(n,Jf,r)}getAll(n,r){const i=this._getAllArgs(n,r,!1);return this._getButThrowIfAsync(i)}async getAllAsync(n,r){const i=this._getAllArgs(n,r,!1);return this._getAll(i)}getAllTagged(n,r,i){const o=this._getNotAllArgs(n,!0,!1,r,i);return this._getButThrowIfAsync(o)}async getAllTaggedAsync(n,r,i){const o=this._getNotAllArgs(n,!0,!1,r,i);return this._getAll(o)}getAllNamed(n,r){return this.getAllTagged(n,Jf,r)}async getAllNamedAsync(n,r){return this.getAllTaggedAsync(n,Jf,r)}resolve(n){const r=this.isBound(n);r||this.bind(n).toSelf();const i=this.get(n);return r||this.unbind(n),i}tryGet(n){const r=this._getNotAllArgs(n,!1,!0);return this._getButThrowIfAsync(r)}async tryGetAsync(n){const r=this._getNotAllArgs(n,!1,!0);return this._get(r)}tryGetTagged(n,r,i){const o=this._getNotAllArgs(n,!1,!0,r,i);return this._getButThrowIfAsync(o)}async tryGetTaggedAsync(n,r,i){const o=this._getNotAllArgs(n,!1,!0,r,i);return this._get(o)}tryGetNamed(n,r){return this.tryGetTagged(n,Jf,r)}async tryGetNamedAsync(n,r){return this.tryGetTaggedAsync(n,Jf,r)}tryGetAll(n,r){const i=this._getAllArgs(n,r,!0);return this._getButThrowIfAsync(i)}async tryGetAllAsync(n,r){const i=this._getAllArgs(n,r,!0);return this._getAll(i)}tryGetAllTagged(n,r,i){const o=this._getNotAllArgs(n,!0,!0,r,i);return this._getButThrowIfAsync(o)}async tryGetAllTaggedAsync(n,r,i){const o=this._getNotAllArgs(n,!0,!0,r,i);return this._getAll(o)}tryGetAllNamed(n,r){return this.tryGetAllTagged(n,Jf,r)}async tryGetAllNamedAsync(n,r){return this.tryGetAllTaggedAsync(n,Jf,r)}_preDestroy(n,r){var i;if(n!==void 0&&Reflect.hasMetadata(gj,n)){const o=Reflect.getMetadata(gj,n);return(i=r[o.value])==null?void 0:i.call(r)}}_removeModuleHandlers(n){const r=this._moduleActivationStore.remove(n);this._activations.removeIntersection(r.onActivations),this._deactivations.removeIntersection(r.onDeactivations)}_removeModuleBindings(n){return this._bindingDictionary.removeByCondition(r=>r.moduleId===n)}_deactivate(n,r){const i=r==null?void 0:Object.getPrototypeOf(r).constructor;try{if(this._deactivations.hasKey(n.serviceIdentifier)){const a=this._deactivateContainer(r,this._deactivations.get(n.serviceIdentifier).values());if(rd(a))return this._handleDeactivationError(a.then(async()=>this._propagateContainerDeactivationThenBindingAndPreDestroyAsync(n,r,i)),n.serviceIdentifier)}const o=this._propagateContainerDeactivationThenBindingAndPreDestroy(n,r,i);if(rd(o))return this._handleDeactivationError(o,n.serviceIdentifier)}catch(o){if(o instanceof Error)throw new Error(ise(g0(n.serviceIdentifier),o.message))}}async _handleDeactivationError(n,r){try{await n}catch(i){if(i instanceof Error)throw new Error(ise(g0(r),i.message))}}_deactivateContainer(n,r){let i=r.next();for(;typeof i.value=="function";){const o=i.value(n);if(rd(o))return o.then(async()=>this._deactivateContainerAsync(n,r));i=r.next()}}async _deactivateContainerAsync(n,r){let i=r.next();for(;typeof i.value=="function";)await i.value(n),i=r.next()}_getContainerModuleHelpersFactory(){const n=c=>u=>{const d=this._buildBinding(u);return d.moduleId=c,this._bind(d)},r=()=>c=>{this.unbind(c)},i=()=>async c=>this.unbindAsync(c),o=()=>c=>this.isBound(c),a=c=>{const u=n(c);return d=>(this.unbind(d),u(d))},s=c=>(u,d)=>{this._moduleActivationStore.addActivation(c,u,d),this.onActivation(u,d)},l=c=>(u,d)=>{this._moduleActivationStore.addDeactivation(c,u,d),this.onDeactivation(u,d)};return c=>({bindFunction:n(c),isboundFunction:o(),onActivationFunction:s(c),onDeactivationFunction:l(c),rebindFunction:a(c),unbindAsyncFunction:i(),unbindFunction:r()})}_bind(n){return this._bindingDictionary.add(n.serviceIdentifier,n),new aXn(n)}_buildBinding(n){const r=this.options.defaultScope||js.Transient;return new jKn(n,r)}async _getAll(n){return Promise.all(this._get(n))}_get(n){const r={...n,contextInterceptor:i=>i,targetType:Frt.Variable};if(this._middleware){const i=this._middleware(r);if(i==null)throw new Error("Invalid return type in middleware. Middleware must return!");return i}return this._planAndResolve()(r)}_getButThrowIfAsync(n){const r=this._get(n);if(Qrt(r))throw new Error(`You are attempting to construct ${function(i){return typeof i=="function"?`[function/class ${i.name||"<anonymous>"}]`:typeof i=="symbol"?i.toString():`'${i}'`}(n.serviceIdentifier)} in a synchronous way but it has asynchronous dependencies.`);return r}_getAllArgs(n,r,i){return{avoidConstraints:!(r!=null&&r.enforceBindingConstraints),isMultiInject:!0,isOptional:i,serviceIdentifier:n}}_getNotAllArgs(n,r,i,o,a){return{avoidConstraints:!1,isMultiInject:r,isOptional:i,key:o,serviceIdentifier:n,value:a}}_getPlanMetadataFromNextArgs(n){const r={isMultiInject:n.isMultiInject};return n.key!==void 0&&(r.customTag={key:n.key,value:n.value}),n.isOptional===!0&&(r.isOptional=!0),r}_planAndResolve(){return n=>{let r=GKn(this._metadataReader,this,n.targetType,n.serviceIdentifier,this._getPlanMetadataFromNextArgs(n),n.avoidConstraints);return r=n.contextInterceptor(r),function(o){return vme(o.plan.rootRequest.requestScope)(o.plan.rootRequest)}(r)}}_deactivateIfSingleton(n){if(n.activated)return rd(n.cache)?n.cache.then(r=>this._deactivate(n,r)):this._deactivate(n,n.cache)}_deactivateSingletons(n){for(const r of n)if(rd(this._deactivateIfSingleton(r)))throw new Error("Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)")}async _deactivateSingletonsAsync(n){await Promise.all(n.map(async r=>this._deactivateIfSingleton(r)))}_propagateContainerDeactivationThenBindingAndPreDestroy(n,r,i){return this.parent?this._deactivate.bind(this.parent)(n,r):this._bindingDeactivationAndPreDestroy(n,r,i)}async _propagateContainerDeactivationThenBindingAndPreDestroyAsync(n,r,i){this.parent?await this._deactivate.bind(this.parent)(n,r):await this._bindingDeactivationAndPreDestroyAsync(n,r,i)}_removeServiceFromDictionary(n){try{this._bindingDictionary.remove(n)}catch{throw new Error(`Could not unbind serviceIdentifier: ${g0(n)}`)}}_bindingDeactivationAndPreDestroy(n,r,i){if(typeof n.onDeactivation=="function"){const o=n.onDeactivation(r);if(rd(o))return o.then(()=>this._preDestroy(i,r))}return this._preDestroy(i,r)}async _bindingDeactivationAndPreDestroyAsync(n,r,i){typeof n.onDeactivation=="function"&&await n.onDeactivation(r),await this._preDestroy(i,r)}}class Zp{constructor(n){$t(this,"id");$t(this,"registry");this.id=ZL(),this.registry=n}}function sXn(e,n,r,i){(function(o){if(o!==void 0)throw new Error(Urt)})(n),Jrt(krt,e,r.toString(),i)}function lXn(e){let n=[];if(Array.isArray(e)){n=e;const r=function(i){const o=new Set;for(const a of i){if(o.has(a))return a;o.add(a)}}(n.map(i=>i.key));if(r!==void 0)throw new Error(`${jrt} ${r.toString()}`)}else n=[e];return n}function Jrt(e,n,r,i){const o=lXn(i);let a={};Reflect.hasOwnMetadata(e,n)&&(a=Reflect.getMetadata(e,n));let s=a[r];if(s===void 0)s=[];else for(const l of s)if(o.some(c=>c.key===l.key))throw new Error(`${jrt} ${l.key.toString()}`);s.push(...o),a[r]=s,Reflect.defineMetadata(e,a,n)}function bme(e){return(n,r,i)=>{typeof i=="number"?sXn(n,r,i,e):function(o,a,s){if(o.prototype!==void 0)throw new Error(Urt);Jrt(Lrt,o.constructor,a,s)}(n,r,e)}}function Pn(){return function(e){if(Reflect.hasOwnMetadata(Hke,e))throw new Error("Cannot apply @injectable decorator multiple times.");const n=Reflect.getMetadata($rt,e)||[];return Reflect.defineMetadata(Hke,n,e),e}}function eit(e){return bme(new m0(Jf,e))}function tit(e){return n=>(r,i,o)=>{if(n===void 0){const a=typeof r=="function"?r.name:r.constructor.name;throw new Error(`@inject called with undefined this could mean that the class ${a} has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation.`)}bme(new m0(e,n))(r,i,o)}}const Ot=tit(Art);function ss(){return bme(new m0(Prt,!0))}const E_=tit(Drt);function nit(e,n){return()=>(r,i)=>{const o=new m0(e,i);if(Reflect.hasOwnMetadata(e,r.constructor))throw new Error(n);Reflect.defineMetadata(e,o,r.constructor)}}const Zc=nit(rse,"Cannot apply @postConstruct decorator multiple times in the same class"),rit=nit(gj,"Cannot apply @preDestroy decorator multiple times in the same class");let cXn=e=>crypto.getRandomValues(new Uint8Array(e)),uXn=(e,n,r)=>{let i=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*i*n/e.length);return(a=n)=>{let s="";for(;;){let l=r(o),c=o;for(;c--;)if(s+=e[l[c]&i]||"",s.length===a)return s}}},dXn=(e,n=21)=>uXn(e,n,cXn),C_=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((n,r)=>(r&=63,r<36?n+=r.toString(36):r<62?n+=(r-26).toString(36).toUpperCase():r>62?n+="-":n+="_",n),"");var SP={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut: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)}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}},Back:{In:function(e){var n=1.70158;return e*e*((n+1)*e-n)},Out:function(e){var n=1.70158;return--e*e*((n+1)*e+n)+1},InOut:function(e){var n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}},Bounce:{In:function(e){return 1-SP.Bounce.Out(1-e)},Out: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},InOut:function(e){return e<.5?SP.Bounce.In(e*2)*.5:SP.Bounce.Out(e*2-1)*.5+.5}}},E2;typeof self>"u"&&typeof process<"u"&&process.hrtime?E2=function(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?E2=self.performance.now.bind(self.performance):Date.now!==void 0?E2=Date.now:E2=function(){return new Date().getTime()};var GE=E2,iit=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(r){return n._tweens[r]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(n){this._tweens[n.getId()]=n,this._tweensAddedDuringUpdate[n.getId()]=n},e.prototype.remove=function(n){delete this._tweens[n.getId()],delete this._tweensAddedDuringUpdate[n.getId()]},e.prototype.update=function(n,r){n===void 0&&(n=GE()),r===void 0&&(r=!1);var i=Object.keys(this._tweens);if(i.length===0)return!1;for(;i.length>0;){this._tweensAddedDuringUpdate={};for(var o=0;o<i.length;o++){var a=this._tweens[i[o]],s=!r;a&&a.update(n,s)===!1&&!r&&delete this._tweens[i[o]]}i=Object.keys(this._tweensAddedDuringUpdate)}return!0},e}(),TT={Linear:function(e,n){var r=e.length-1,i=r*n,o=Math.floor(i),a=TT.Utils.Linear;return n<0?a(e[0],e[1],i):n>1?a(e[r],e[r-1],r-i):a(e[o],e[o+1>r?r:o+1],i-o)},Bezier:function(e,n){for(var r=0,i=e.length-1,o=Math.pow,a=TT.Utils.Bernstein,s=0;s<=i;s++)r+=o(1-n,i-s)*o(n,s)*e[s]*a(i,s);return r},CatmullRom:function(e,n){var r=e.length-1,i=r*n,o=Math.floor(i),a=TT.Utils.CatmullRom;return e[0]===e[r]?(n<0&&(o=Math.floor(i=r*(1+n))),a(e[(o-1+r)%r],e[o],e[(o+1)%r],e[(o+2)%r],i-o)):n<0?e[0]-(a(e[0],e[0],e[1],e[1],-i)-e[0]):n>1?e[r]-(a(e[r],e[r],e[r-1],e[r-1],i-r)-e[r]):a(e[o?o-1:0],e[o],e[r<o+1?r:o+1],e[r<o+2?r:o+2],i-o)},Utils:{Linear:function(e,n,r){return(n-e)*r+e},Bernstein:function(e,n){var r=TT.Utils.Factorial;return r(e)/r(n)/r(e-n)},Factorial:function(){var e=[1];return function(n){var r=1;if(e[n])return e[n];for(var i=n;i>1;i--)r*=i;return e[n]=r,r}}(),CatmullRom:function(e,n,r,i,o){var a=(r-e)*.5,s=(i-n)*.5,l=o*o,c=o*l;return(2*n-2*r+a+s)*c+(-3*n+3*r-2*a-s)*l+a*o+n}}},Sme=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),oit=new iit,fXn=function(){function e(n,r){r===void 0&&(r=oit),this._object=n,this._group=r,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=SP.Linear.None,this._interpolationFunction=TT.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=Sme.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(n,r){return this._valuesEnd=Object.create(n),r!==void 0&&(this._duration=r),this},e.prototype.duration=function(n){return this._duration=n,this},e.prototype.start=function(n){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var r in this._valuesStartRepeat)this._swapEndStartRepeatValues(r),this._valuesStart[r]=this._valuesStartRepeat[r]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n!==void 0?typeof n=="string"?GE()+parseFloat(n):n:GE(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},e.prototype._setupProperties=function(n,r,i,o){for(var a in i){var s=n[a],l=Array.isArray(s),c=l?"array":typeof s,u=!l&&Array.isArray(i[a]);if(!(c==="undefined"||c==="function")){if(u){var d=i[a];if(d.length===0)continue;d=d.map(this._handleRelativeValue.bind(this,s)),i[a]=[s].concat(d)}if((c==="object"||l)&&s&&!u){r[a]=l?[]:{};for(var f in s)r[a][f]=s[f];o[a]=l?[]:{},this._setupProperties(s,r[a],i[a],o[a])}else typeof r[a]>"u"&&(r[a]=s),l||(r[a]*=1),u?o[a]=i[a].slice().reverse():o[a]=r[a]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},e.prototype.pause=function(n){return n===void 0&&(n=GE()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this._group&&this._group.remove(this),this)},e.prototype.resume=function(n){return n===void 0&&(n=GE()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this)},e.prototype.stopChainedTweens=function(){for(var n=0,r=this._chainedTweens.length;n<r;n++)this._chainedTweens[n].stop();return this},e.prototype.group=function(n){return this._group=n,this},e.prototype.delay=function(n){return this._delayTime=n,this},e.prototype.repeat=function(n){return this._initialRepeat=n,this._repeat=n,this},e.prototype.repeatDelay=function(n){return this._repeatDelayTime=n,this},e.prototype.yoyo=function(n){return this._yoyo=n,this},e.prototype.easing=function(n){return this._easingFunction=n,this},e.prototype.interpolation=function(n){return this._interpolationFunction=n,this},e.prototype.chain=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this._chainedTweens=n,this},e.prototype.onStart=function(n){return this._onStartCallback=n,this},e.prototype.onUpdate=function(n){return this._onUpdateCallback=n,this},e.prototype.onRepeat=function(n){return this._onRepeatCallback=n,this},e.prototype.onComplete=function(n){return this._onCompleteCallback=n,this},e.prototype.onStop=function(n){return this._onStopCallback=n,this},e.prototype.update=function(n,r){if(n===void 0&&(n=GE()),r===void 0&&(r=!0),this._isPaused)return!0;var i,o,a=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(n>a)return!1;r&&this.start(n)}if(this._goToEnd=!1,n<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),o=(n-this._startTime)/this._duration,o=this._duration===0||o>1?1:o;var s=this._easingFunction(o);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,s),this._onUpdateCallback&&this._onUpdateCallback(this._object,o),o===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(i in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[i]=="string"&&(this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(this._valuesEnd[i])),this._yoyo&&this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=n+this._repeatDelayTime:this._startTime=n+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var l=0,c=this._chainedTweens.length;l<c;l++)this._chainedTweens[l].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,r,i,o){for(var a in i)if(r[a]!==void 0){var s=r[a]||0,l=i[a],c=Array.isArray(n[a]),u=Array.isArray(l),d=!c&&u;d?n[a]=this._interpolationFunction(l,o):typeof l=="object"&&l?this._updateProperties(n[a],s,l,o):(l=this._handleRelativeValue(s,l),typeof l=="number"&&(n[a]=s+(l-s)*o))}},e.prototype._handleRelativeValue=function(n,r){return typeof r!="string"?r:r.charAt(0)==="+"||r.charAt(0)==="-"?n+parseFloat(r):parseFloat(r)},e.prototype._swapEndStartRepeatValues=function(n){var r=this._valuesStartRepeat[n],i=this._valuesEnd[n];typeof i=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(i):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=r},e}(),pXn="18.6.4",hXn=Sme.nextId,Bm=oit,gXn=Bm.getAll.bind(Bm),mXn=Bm.removeAll.bind(Bm),vXn=Bm.add.bind(Bm),yXn=Bm.remove.bind(Bm),_Xn=Bm.update.bind(Bm),ose={Easing:SP,Group:iit,Interpolation:TT,now:GE,Sequence:Sme,nextId:hXn,Tween:fXn,VERSION:pXn,getAll:gXn,removeAll:mXn,add:vXn,remove:yXn,update:_Xn},TC={},CV={},ait={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(n){function r(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(P===0)return-1;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);var k;M<O?k=M+1+(P-O):k=M-O+1;for(var $=0;$<k;++$){var U=(O+$)%P;if(T[U]===R)return U}return-1}n.firstIndexOf=r;function i(T,R,O,M){O===void 0&&(O=-1),M===void 0&&(M=0);var P=T.length;if(P===0)return-1;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);var k;O<M?k=O+1+(P-M):k=O-M+1;for(var $=0;$<k;++$){var U=(O-$+P)%P;if(T[U]===R)return U}return-1}n.lastIndexOf=i;function o(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(P===0)return-1;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);var k;M<O?k=M+1+(P-O):k=M-O+1;for(var $=0;$<k;++$){var U=(O+$)%P;if(R(T[U],U))return U}return-1}n.findFirstIndex=o;function a(T,R,O,M){O===void 0&&(O=-1),M===void 0&&(M=0);var P=T.length;if(P===0)return-1;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);var k;O<M?k=O+1+(P-M):k=O-M+1;for(var $=0;$<k;++$){var U=(O-$+P)%P;if(R(T[U],U))return U}return-1}n.findLastIndex=a;function s(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=o(T,R,O,M);return P!==-1?T[P]:void 0}n.findFirstValue=s;function l(T,R,O,M){O===void 0&&(O=-1),M===void 0&&(M=0);var P=a(T,R,O,M);return P!==-1?T[P]:void 0}n.findLastValue=l;function c(T,R,O,M,P){M===void 0&&(M=0),P===void 0&&(P=-1);var k=T.length;if(k===0)return 0;M<0?M=Math.max(0,M+k):M=Math.min(M,k-1),P<0?P=Math.max(0,P+k):P=Math.min(P,k-1);for(var $=M,U=P-M+1;U>0;){var z=U>>1,D=$+z;O(T[D],R)<0?($=D+1,U-=z+1):U=z}return $}n.lowerBound=c;function u(T,R,O,M,P){M===void 0&&(M=0),P===void 0&&(P=-1);var k=T.length;if(k===0)return 0;M<0?M=Math.max(0,M+k):M=Math.min(M,k-1),P<0?P=Math.max(0,P+k):P=Math.min(P,k-1);for(var $=M,U=P-M+1;U>0;){var z=U>>1,D=$+z;O(T[D],R)>0?U=z:($=D+1,U-=z+1)}return $}n.upperBound=u;function d(T,R,O){if(T===R)return!0;if(T.length!==R.length)return!1;for(var M=0,P=T.length;M<P;++M)if(O?!O(T[M],R[M]):T[M]!==R[M])return!1;return!0}n.shallowEqual=d;function f(T,R){R===void 0&&(R={});var O=R.start,M=R.stop,P=R.step;if(P===void 0&&(P=1),P===0)throw new Error("Slice `step` cannot be zero.");var k=T.length;O===void 0?O=P<0?k-1:0:O<0?O=Math.max(O+k,P<0?-1:0):O>=k&&(O=P<0?k-1:k),M===void 0?M=P<0?-1:k:M<0?M=Math.max(M+k,P<0?-1:0):M>=k&&(M=P<0?k-1:k);var $;P<0&&M>=O||P>0&&O>=M?$=0:P<0?$=Math.floor((M-O+1)/P+1):$=Math.floor((M-O-1)/P+1);for(var U=[],z=0;z<$;++z)U[z]=T[O+z*P];return U}n.slice=f;function p(T,R,O){var M=T.length;if(!(M<=1)&&(R<0?R=Math.max(0,R+M):R=Math.min(R,M-1),O<0?O=Math.max(0,O+M):O=Math.min(O,M-1),R!==O)){for(var P=T[R],k=R<O?1:-1,$=R;$!==O;$+=k)T[$]=T[$+k];T[O]=P}}n.move=p;function h(T,R,O){R===void 0&&(R=0),O===void 0&&(O=-1);var M=T.length;if(!(M<=1))for(R<0?R=Math.max(0,R+M):R=Math.min(R,M-1),O<0?O=Math.max(0,O+M):O=Math.min(O,M-1);R<O;){var P=T[R],k=T[O];T[R++]=k,T[O--]=P}}n.reverse=h;function g(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(!(P<=1)&&(O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1),!(O>=M))){var k=M-O+1;if(R>0?R=R%k:R<0&&(R=(R%k+k)%k),R!==0){var $=O+R;h(T,O,$-1),h(T,$,M),h(T,O,M)}}}n.rotate=g;function v(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(P!==0){O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);var k;M<O?k=M+1+(P-O):k=M-O+1;for(var $=0;$<k;++$)T[(O+$)%P]=R}}n.fill=v;function y(T,R,O){var M=T.length;R<0?R=Math.max(0,R+M):R=Math.min(R,M);for(var P=M;P>R;--P)T[P]=T[P-1];T[R]=O}n.insert=y;function _(T,R){var O=T.length;if(R<0&&(R+=O),!(R<0||R>=O)){for(var M=T[R],P=R+1;P<O;++P)T[P-1]=T[P];return T.length=O-1,M}}n.removeAt=_;function S(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=r(T,R,O,M);return P!==-1&&_(T,P),P}n.removeFirstOf=S;function b(T,R,O,M){O===void 0&&(O=-1),M===void 0&&(M=0);var P=i(T,R,O,M);return P!==-1&&_(T,P),P}n.removeLastOf=b;function E(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(P===0)return 0;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);for(var k=0,$=0;$<P;++$)O<=M&&$>=O&&$<=M&&T[$]===R||M<O&&($<=M||$>=O)&&T[$]===R?k++:k>0&&(T[$-k]=T[$]);return k>0&&(T.length=P-k),k}n.removeAllOf=E;function w(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P,k=o(T,R,O,M);return k!==-1&&(P=_(T,k)),{index:k,value:P}}n.removeFirstWhere=w;function C(T,R,O,M){O===void 0&&(O=-1),M===void 0&&(M=0);var P,k=a(T,R,O,M);return k!==-1&&(P=_(T,k)),{index:k,value:P}}n.removeLastWhere=C;function x(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(P===0)return 0;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);for(var k=0,$=0;$<P;++$)O<=M&&$>=O&&$<=M&&R(T[$],$)||M<O&&($<=M||$>=O)&&R(T[$],$)?k++:k>0&&(T[$-k]=T[$]);return k>0&&(T.length=P-k),k}n.removeAllWhere=x}(e.ArrayExt||(e.ArrayExt={}))})(ait);var wV={},oa={};Object.defineProperty(oa,"__esModule",{value:!0});function iN(e){var n;return typeof e.iter=="function"?n=e.iter():n=new sit(e),n}oa.iter=iN;function bXn(e){return new lit(e)}oa.iterKeys=bXn;function SXn(e){return new cit(e)}oa.iterValues=SXn;function EXn(e){return new uit(e)}oa.iterItems=EXn;function CXn(e){return new dit(e)}oa.iterFn=CXn;function wXn(e,n){for(var r=0,i=iN(e),o;(o=i.next())!==void 0;)if(n(o,r++)===!1)return}oa.each=wXn;function xXn(e,n){for(var r=0,i=iN(e),o;(o=i.next())!==void 0;)if(!n(o,r++))return!1;return!0}oa.every=xXn;function TXn(e,n){for(var r=0,i=iN(e),o;(o=i.next())!==void 0;)if(n(o,r++))return!0;return!1}oa.some=TXn;function OXn(e){for(var n=0,r=[],i=iN(e),o;(o=i.next())!==void 0;)r[n++]=o;return r}oa.toArray=OXn;function RXn(e){for(var n=iN(e),r,i={};(r=n.next())!==void 0;)i[r[0]]=r[1];return i}oa.toObject=RXn;var sit=function(){function e(n){this._index=0,this._source=n}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index>=this._source.length))return this._source[this._index++]},e}();oa.ArrayIterator=sit;var lit=function(){function e(n,r){r===void 0&&(r=Object.keys(n)),this._index=0,this._source=n,this._keys=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source,this._keys);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index>=this._keys.length)){var n=this._keys[this._index++];return n in this._source?n:this.next()}},e}();oa.KeyIterator=lit;var cit=function(){function e(n,r){r===void 0&&(r=Object.keys(n)),this._index=0,this._source=n,this._keys=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source,this._keys);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index>=this._keys.length)){var n=this._keys[this._index++];return n in this._source?this._source[n]:this.next()}},e}();oa.ValueIterator=cit;var uit=function(){function e(n,r){r===void 0&&(r=Object.keys(n)),this._index=0,this._source=n,this._keys=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source,this._keys);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index>=this._keys.length)){var n=this._keys[this._index++];return n in this._source?[n,this._source[n]]:this.next()}},e}();oa.ItemIterator=uit;var dit=function(){function e(n){this._fn=n}return e.prototype.iter=function(){return this},e.prototype.clone=function(){throw new Error("An `FnIterator` cannot be cloned.")},e.prototype.next=function(){return this._fn.call(void 0)},e}();oa.FnIterator=dit;Object.defineProperty(wV,"__esModule",{value:!0});var Jke=oa;function IXn(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new fit(Jke.iter(e.map(Jke.iter)))}wV.chain=IXn;var fit=function(){function e(n){this._cloned=!1,this._source=n,this._active=void 0}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source.clone());return n._active=this._active&&this._active.clone(),n._cloned=!0,this._cloned=!0,n},e.prototype.next=function(){if(this._active===void 0){var n=this._source.next();if(n===void 0)return;this._active=this._cloned?n.clone():n}var r=this._active.next();return r!==void 0?r:(this._active=void 0,this.next())},e}();wV.ChainIterator=fit;var xV={};Object.defineProperty(xV,"__esModule",{value:!0});function NXn(){return new pit}xV.empty=NXn;var pit=function(){function e(){}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e},e.prototype.next=function(){},e}();xV.EmptyIterator=pit;var TV={};Object.defineProperty(TV,"__esModule",{value:!0});var MXn=oa;function PXn(e,n){return n===void 0&&(n=0),new hit(MXn.iter(e),n)}TV.enumerate=PXn;var hit=function(){function e(n,r){this._source=n,this._index=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e(this._source.clone(),this._index)},e.prototype.next=function(){var n=this._source.next();if(n!==void 0)return[this._index++,n]},e}();TV.EnumerateIterator=hit;var OV={};Object.defineProperty(OV,"__esModule",{value:!0});var AXn=oa;function DXn(e,n){return new git(AXn.iter(e),n)}OV.filter=DXn;var git=function(){function e(n,r){this._index=0,this._source=n,this._fn=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source.clone(),this._fn);return n._index=this._index,n},e.prototype.next=function(){for(var n=this._fn,r=this._source,i;(i=r.next())!==void 0;)if(n(i,this._index++))return i},e}();OV.FilterIterator=git;var Mw={};Object.defineProperty(Mw,"__esModule",{value:!0});var JL=oa;function kXn(e,n){for(var r=0,i=JL.iter(e),o;(o=i.next())!==void 0;)if(n(o,r++))return o}Mw.find=kXn;function LXn(e,n){for(var r=0,i=JL.iter(e),o;(o=i.next())!==void 0;)if(n(o,r++))return r-1;return-1}Mw.findIndex=LXn;function $Xn(e,n){var r=JL.iter(e),i=r.next();if(i!==void 0){for(var o=i;(i=r.next())!==void 0;)n(i,o)<0&&(o=i);return o}}Mw.min=$Xn;function FXn(e,n){var r=JL.iter(e),i=r.next();if(i!==void 0){for(var o=i;(i=r.next())!==void 0;)n(i,o)>0&&(o=i);return o}}Mw.max=FXn;function BXn(e,n){var r=JL.iter(e),i=r.next();if(i!==void 0){for(var o=i,a=i;(i=r.next())!==void 0;)n(i,o)<0?o=i:n(i,a)>0&&(a=i);return[o,a]}}Mw.minmax=BXn;var RV={};Object.defineProperty(RV,"__esModule",{value:!0});var jXn=oa;function UXn(e,n){return new mit(jXn.iter(e),n)}RV.map=UXn;var mit=function(){function e(n,r){this._index=0,this._source=n,this._fn=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source.clone(),this._fn);return n._index=this._index,n},e.prototype.next=function(){var n=this._source.next();if(n!==void 0)return this._fn.call(void 0,n,this._index++)},e}();RV.MapIterator=mit;var IV={};Object.defineProperty(IV,"__esModule",{value:!0});function HXn(e,n,r){return n===void 0?new eF(0,e,1):r===void 0?new eF(e,n,1):new eF(e,n,r)}IV.range=HXn;var eF=function(){function e(n,r,i){this._index=0,this._start=n,this._stop=r,this._step=i,this._length=ase.rangeLength(n,r,i)}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._start,this._stop,this._step);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index>=this._length))return this._start+this._step*this._index++},e}();IV.RangeIterator=eF;var ase;(function(e){function n(r,i,o){return o===0?1/0:r>i&&o>0||r<i&&o<0?0:Math.ceil((i-r)/o)}e.rangeLength=n})(ase||(ase={}));var Eme={};Object.defineProperty(Eme,"__esModule",{value:!0});var zXn=oa;function VXn(e,n,r){var i=0,o=zXn.iter(e),a=o.next();if(a===void 0&&r===void 0)throw new TypeError("Reduce of empty iterable with no initial value.");if(a===void 0)return r;var s=o.next();if(s===void 0&&r===void 0)return a;if(s===void 0)return n(r,a,i++);var l;r===void 0?l=n(a,s,i++):l=n(n(r,a,i++),s,i++);for(var c;(c=o.next())!==void 0;)l=n(l,c,i++);return l}Eme.reduce=VXn;var e$={};Object.defineProperty(e$,"__esModule",{value:!0});function GXn(e,n){return new Cme(e,n)}e$.repeat=GXn;function WXn(e){return new Cme(e,1)}e$.once=WXn;var Cme=function(){function e(n,r){this._value=n,this._count=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e(this._value,this._count)},e.prototype.next=function(){if(!(this._count<=0))return this._count--,this._value},e}();e$.RepeatIterator=Cme;var NV={};Object.defineProperty(NV,"__esModule",{value:!0});function YXn(e){var n;return typeof e.retro=="function"?n=e.retro():n=new vit(e),n}NV.retro=YXn;var vit=function(){function e(n){this._source=n,this._index=n.length-1}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index<0||this._index>=this._source.length))return this._source[this._index--]},e}();NV.RetroArrayIterator=vit;var wme={};Object.defineProperty(wme,"__esModule",{value:!0});var qXn=oa;function KXn(e){var n=[],r=new Set,i=new Map;return qXn.each(e,o),i.forEach(function(s,l){a(l)}),n;function o(s){var l=s[0],c=s[1],u=i.get(c);u?u.push(l):i.set(c,[l])}function a(s){if(!r.has(s)){r.add(s);var l=i.get(s);l&&l.forEach(a),n.push(s)}}}wme.topologicSort=KXn;var MV={};Object.defineProperty(MV,"__esModule",{value:!0});var XXn=oa;function QXn(e,n){return new yit(XXn.iter(e),n)}MV.stride=QXn;var yit=function(){function e(n,r){this._source=n,this._step=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e(this._source.clone(),this._step)},e.prototype.next=function(){for(var n=this._source.next(),r=this._step-1;r>0;--r)this._source.next();return n},e}();MV.StrideIterator=yit;var _it={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(n){function r(l,c,u){u===void 0&&(u=0);for(var d=new Array(c.length),f=0,p=u,h=c.length;f<h;++f,++p){if(p=l.indexOf(c[f],p),p===-1)return null;d[f]=p}return d}n.findIndices=r;function i(l,c,u){u===void 0&&(u=0);var d=r(l,c,u);if(!d)return null;for(var f=0,p=0,h=d.length;p<h;++p){var g=d[p]-u;f+=g*g}return{score:f,indices:d}}n.matchSumOfSquares=i;function o(l,c,u){u===void 0&&(u=0);var d=r(l,c,u);if(!d)return null;for(var f=0,p=u-1,h=0,g=d.length;h<g;++h){var v=d[h];f+=v-p-1,p=v}return{score:f,indices:d}}n.matchSumOfDeltas=o;function a(l,c,u){for(var d=[],f=0,p=0,h=c.length;f<h;){for(var g=c[f],v=c[f];++f<h&&c[f]===v+1;)v++;p<g&&d.push(l.slice(p,g)),g<v+1&&d.push(u(l.slice(g,v+1))),p=v+1}return p<l.length&&d.push(l.slice(p)),d}n.highlight=a;function s(l,c){return l<c?-1:l>c?1:0}n.cmp=s}(e.StringExt||(e.StringExt={}))})(_it);var PV={};Object.defineProperty(PV,"__esModule",{value:!0});var ZXn=oa;function JXn(e,n){return new bit(ZXn.iter(e),n)}PV.take=JXn;var bit=function(){function e(n,r){this._source=n,this._count=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e(this._source.clone(),this._count)},e.prototype.next=function(){if(!(this._count<=0)){var n=this._source.next();if(n!==void 0)return this._count--,n}},e}();PV.TakeIterator=bit;var AV={};Object.defineProperty(AV,"__esModule",{value:!0});var eQn=oa;function tQn(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Sit(e.map(eQn.iter))}AV.zip=tQn;var Sit=function(){function e(n){this._source=n}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e(this._source.map(function(n){return n.clone()}))},e.prototype.next=function(){for(var n=new Array(this._source.length),r=0,i=this._source.length;r<i;++r){var o=this._source[r].next();if(o===void 0)return;n[r]=o}return n},e}();AV.ZipIterator=Sit;(function(e){function n(r){for(var i in r)e.hasOwnProperty(i)||(e[i]=r[i])}Object.defineProperty(e,"__esModule",{value:!0}),n(ait),n(wV),n(xV),n(TV),n(OV),n(Mw),n(oa),n(RV),n(IV),n(Eme),n(e$),n(NV),n(wme),n(MV),n(_it),n(PV),n(AV)})(CV);var Eit={},Cit={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var n=CV,r=function(){function o(a){this._root=new i.LeafNode,this.cmp=a}return Object.defineProperty(o.prototype,"isEmpty",{get:function(){return this._root.size===0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"size",{get:function(){return this._root.size},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"first",{get:function(){var a=i.firstLeaf(this._root);return a.size>0?a.items[0]:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"last",{get:function(){var a=i.lastLeaf(this._root);return a.size>0?a.items[a.size-1]:void 0},enumerable:!0,configurable:!0}),o.prototype.iter=function(){return i.iterItems(this._root)},o.prototype.retro=function(){return i.retroItems(this._root)},o.prototype.slice=function(a,s){return i.sliceItems(this._root,a,s)},o.prototype.retroSlice=function(a,s){return i.retroSliceItems(this._root,a,s)},o.prototype.at=function(a){return i.itemAt(this._root,a)},o.prototype.has=function(a,s){return i.hasItem(this._root,a,s)},o.prototype.indexOf=function(a,s){return i.indexOf(this._root,a,s)},o.prototype.get=function(a,s){return i.getItem(this._root,a,s)},o.prototype.assign=function(a){this.clear(),this.update(a)},o.prototype.insert=function(a){var s=i.insertItem(this._root,a,this.cmp);return this._root=i.maybeSplitRoot(this._root),s},o.prototype.update=function(a){var s=this;n.each(a,function(l){s.insert(l)})},o.prototype.delete=function(a,s){var l=i.deleteItem(this._root,a,s);return this._root=i.maybeExtractRoot(this._root),l},o.prototype.remove=function(a){var s=i.removeItem(this._root,a);return this._root=i.maybeExtractRoot(this._root),s},o.prototype.clear=function(){i.clear(this._root),this._root=new i.LeafNode},o}();e.BPlusTree=r,function(o){function a(s,l){var c=new o(l);return c.assign(s),c}o.from=a}(r=e.BPlusTree||(e.BPlusTree={})),e.BPlusTree=r;var i;(function(o){var a=function(){function D(){this.items=[],this.sizes=[],this.children=[]}return Object.defineProperty(D.prototype,"type",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"size",{get:function(){return this.sizes[this.sizes.length-1]},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"width",{get:function(){return this.children.length},enumerable:!0,configurable:!0}),D}();o.BranchNode=a;var s=function(){function D(){this.next=null,this.prev=null,this.items=[]}return Object.defineProperty(D.prototype,"type",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"size",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"width",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),D}();o.LeafNode=s;function l(D){for(;D.type===0;)D=D.children[0];return D}o.firstLeaf=l;function c(D){for(;D.type===0;)D=D.children[D.children.length-1];return D}o.lastLeaf=c;function u(D){var B=l(D);return new R(B,0,-1)}o.iterItems=u;function d(D){var B=c(D);return new O(B,B.size-1,-1)}o.retroItems=d;function f(D,B,Y){B===void 0?B=0:B<0?B=Math.max(0,B+D.size):B=Math.min(B,D.size),Y===void 0?Y=D.size:Y<0?Y=Math.max(0,Y+D.size):Y=Math.min(Y,D.size);var q=Math.max(0,Y-B);if(q===0)return n.empty();for(;D.type===0;){var K=M(D.sizes,B);K>0&&(B-=D.sizes[K-1]),D=D.children[K]}return new R(D,B,q)}o.sliceItems=f;function p(D,B,Y){B===void 0?B=D.size-1:B<0?B=Math.max(-1,B+D.size):B=Math.min(B,D.size-1),Y===void 0?Y=-1:Y<0?Y=Math.max(-1,Y+D.size):Y=Math.min(Y,D.size-1);var q=Math.max(0,B-Y);if(q===0)return n.empty();for(;D.type===0;){var K=M(D.sizes,B);K>0&&(B-=D.sizes[K-1]),D=D.children[K]}return new O(D,B,q)}o.retroSliceItems=p;function h(D,B){if(B<0&&(B+=D.size),!(B<0||B>=D.size)){for(;D.type===0;){var Y=M(D.sizes,B);Y>0&&(B-=D.sizes[Y-1]),D=D.children[Y]}return D.items[B]}}o.itemAt=h;function g(D,B,Y){for(;D.type===0;){var q=P(D.items,B,Y);D=D.children[q]}var K=k(D.items,B,Y);return K>=0}o.hasItem=g;function v(D,B,Y){for(var q=0;D.type===0;){var K=P(D.items,B,Y);K>0&&(q+=D.sizes[K-1]),D=D.children[K]}var H=k(D.items,B,Y);return H>=0?q+H:-q+H}o.indexOf=v;function y(D,B,Y){for(;D.type===0;){var q=P(D.items,B,Y);D=D.children[q]}var K=k(D.items,B,Y);return K>=0?D.items[K]:void 0}o.getItem=y;function _(D,B,Y){if(D.type===1){var q=k(D.items,B,Y),K;return q>=0?(K=D.items[q],D.items[q]=B):(K=void 0,n.ArrayExt.insert(D.items,-q-1,B)),K}var H=P(D.items,B,Y),G=D.children[H],Q=G.size,le=_(G,B,Y),Z=G.size;if(D.items[H]=G.items[0],Q===Z)return le;if(G.width>x){var j=U(G);n.ArrayExt.insert(D.children,H+1,j),n.ArrayExt.insert(D.items,H+1,j.items[0])}return $(D,H),le}o.insertItem=_;function S(D,B,Y){if(D.type===1){var q=k(D.items,B,Y);return q<0?void 0:n.ArrayExt.removeAt(D.items,q)}var K=P(D.items,B,Y),H=D.children[K],G=H.size,Q=S(H,B,Y),le=H.size;return G===le||(D.items[K]=H.items[0],H.width<T&&(K=z(D,K)),$(D,K)),Q}o.deleteItem=S;function b(D,B){if(B<0&&(B+=D.size),!(B<0||B>=D.size)){if(D.type===1)return n.ArrayExt.removeAt(D.items,B);var Y=M(D.sizes,B);Y>0&&(B-=D.sizes[Y]);var q=D.children[Y],K=b(q,B);return D.items[Y]=q.items[0],q.width<T&&(Y=z(D,Y)),$(D,Y),K}}o.removeItem=b;function E(D){D.type===0?(n.each(D.children,E),D.children.length=0,D.sizes.length=0,D.items.length=0):(D.items.length=0,D.next=null,D.prev=null)}o.clear=E;function w(D){if(D.width<=x)return D;var B=new a,Y=U(D);return B.sizes[0]=D.size,B.sizes[1]=D.size+Y.size,B.children[0]=D,B.children[1]=Y,B.items[0]=D.items[0],B.items[1]=Y.items[0],B}o.maybeSplitRoot=w;function C(D){if(D.type===1||D.children.length>1)return D;var B=D.children.pop();return E(D),B}o.maybeExtractRoot=C;var x=32,T=x>>1,R=function(){function D(B,Y,q){this._node=B,this._index=Y,this._count=q}return D.prototype.iter=function(){return this},D.prototype.clone=function(){return new D(this._node,this._index,this._count)},D.prototype.next=function(){if(!(this._node===null||this._count===0))return this._index>=this._node.size?(this._node=this._node.next,this._index=0,this.next()):(this._count>0&&this._count--,this._node.items[this._index++])},D}(),O=function(){function D(B,Y,q){this._node=B,this._index=Y,this._count=q}return D.prototype.iter=function(){return this},D.prototype.clone=function(){return new D(this._node,this._index,this._count)},D.prototype.next=function(){if(!(this._node===null||this._count===0))return this._index>=this._node.size&&(this._index=this._node.size-1),this._index<0?(this._node=this._node.prev,this._index=this._node?this._node.size-1:-1,this.next()):(this._count>0&&this._count--,this._node.items[this._index--])},D}();function M(D,B){for(var Y=D.length,q=0;q<Y;++q)if(D[q]>B)return q;return Y-1}function P(D,B,Y){for(var q=D.length,K=1;K<q;++K)if(Y(D[K],B)>0)return K-1;return q-1}function k(D,B,Y){for(var q=D.length,K=0;K<q;++K){var H=Y(D[K],B);if(H===0)return K;if(H>0)return-K-1}return-q-1}function $(D,B){for(var Y=D.sizes,q=D.children,K=B>0?Y[B-1]:0,H=q.length;B<H;++B)K=Y[B]=K+q[B].size;Y.length=q.length}function U(D){if(D.type===1){for(var B=new s,Y=D.items,q=B.items,K=T,H=Y.length;K<H;++K)q.push(Y[K]);return Y.length=T,D.next&&(D.next.prev=B),B.next=D.next,B.prev=D,D.next=B,B}for(var G=new a,Q=D.children,le=G.children,K=T,H=Q.length;K<H;++K)le.push(Q[K]);Q.length=T;for(var Z=D.items,j=G.items,K=T,H=Z.length;K<H;++K)j.push(Z[K]);return Z.length=T,$(D,T),$(G,0),G}function z(D,B){var Y,q,K,H,G,Q,le=D.children[B],Z=B===0?D.children[B+1]:D.children[B-1],j=B===0,F=le.type===1,te=Z.width>T;if(F&&te&&j){var oe=le,de=Z;return oe.items.push(de.items.shift()),D.items[B+1]=de.items[0],B}if(F&&te&&!j){var oe=le,de=Z;return oe.items.unshift(de.items.pop()),D.items[B]=oe.items[0],B-1}if(F&&!te&&j){var oe=le,de=Z;return(Y=de.items).unshift.apply(Y,oe.items),n.ArrayExt.removeAt(D.children,B),n.ArrayExt.removeAt(D.items,B+1),oe.prev&&(oe.prev.next=de),de.prev=oe.prev,E(oe),B}if(F&&!te&&!j){var oe=le,de=Z;return(q=de.items).push.apply(q,oe.items),n.ArrayExt.removeAt(D.children,B),n.ArrayExt.removeAt(D.items,B),oe.next&&(oe.next.prev=de),de.next=oe.next,E(oe),B-1}if(!F&&te&&j){var oe=le,de=Z;return oe.children.push(de.children.shift()),oe.items.push(de.items.shift()),D.items[B+1]=de.items[0],$(oe,oe.width-1),$(de,0),B}if(!F&&te&&!j){var oe=le,de=Z;return oe.children.unshift(de.children.pop()),oe.items.unshift(de.items.pop()),D.items[B]=oe.items[0],$(oe,0),$(de,de.width-1),B-1}if(!F&&!te&&j){var oe=le,de=Z;return(K=de.children).unshift.apply(K,oe.children),(H=de.items).unshift.apply(H,oe.items),n.ArrayExt.removeAt(D.children,B),n.ArrayExt.removeAt(D.items,B+1),$(de,0),oe.children.length=0,E(oe),B}if(!F&&!te&&!j){var oe=le,de=Z;return(G=de.children).push.apply(G,oe.children),(Q=de.items).push.apply(Q,oe.items),n.ArrayExt.removeAt(D.children,B),n.ArrayExt.removeAt(D.items,B),$(de,0),oe.children.length=0,E(oe),B-1}throw"unreachable"}})(i||(i={}))})(Cit);var wit={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var n=CV,r=function(){function o(){this._first=null,this._last=null,this._size=0}return Object.defineProperty(o.prototype,"isEmpty",{get:function(){return this._size===0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"first",{get:function(){return this._first?this._first.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"last",{get:function(){return this._last?this._last.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"firstNode",{get:function(){return this._first},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"lastNode",{get:function(){return this._last},enumerable:!0,configurable:!0}),o.prototype.iter=function(){return new o.ForwardValueIterator(this._first)},o.prototype.retro=function(){return new o.RetroValueIterator(this._last)},o.prototype.nodes=function(){return new o.ForwardNodeIterator(this._first)},o.prototype.retroNodes=function(){return new o.RetroNodeIterator(this._last)},o.prototype.assign=function(a){var s=this;this.clear(),n.each(a,function(l){s.addLast(l)})},o.prototype.push=function(a){this.addLast(a)},o.prototype.pop=function(){return this.removeLast()},o.prototype.shift=function(a){this.addFirst(a)},o.prototype.unshift=function(){return this.removeFirst()},o.prototype.addFirst=function(a){var s=new i.LinkedListNode(this,a);return this._first?(s.next=this._first,this._first.prev=s,this._first=s):(this._first=s,this._last=s),this._size++,s},o.prototype.addLast=function(a){var s=new i.LinkedListNode(this,a);return this._last?(s.prev=this._last,this._last.next=s,this._last=s):(this._first=s,this._last=s),this._size++,s},o.prototype.insertBefore=function(a,s){if(!s||s===this._first)return this.addFirst(a);if(!(s instanceof i.LinkedListNode)||s.list!==this)throw new Error("Reference node is not owned by the list.");var l=new i.LinkedListNode(this,a),c=s,u=c.prev;return l.next=c,l.prev=u,c.prev=l,u.next=l,this._size++,l},o.prototype.insertAfter=function(a,s){if(!s||s===this._last)return this.addLast(a);if(!(s instanceof i.LinkedListNode)||s.list!==this)throw new Error("Reference node is not owned by the list.");var l=new i.LinkedListNode(this,a),c=s,u=c.next;return l.next=u,l.prev=c,c.next=l,u.prev=l,this._size++,l},o.prototype.removeFirst=function(){var a=this._first;if(a)return a===this._last?(this._first=null,this._last=null):(this._first=a.next,this._first.prev=null),a.list=null,a.next=null,a.prev=null,this._size--,a.value},o.prototype.removeLast=function(){var a=this._last;if(a)return a===this._first?(this._first=null,this._last=null):(this._last=a.prev,this._last.next=null),a.list=null,a.next=null,a.prev=null,this._size--,a.value},o.prototype.removeNode=function(a){if(!(a instanceof i.LinkedListNode)||a.list!==this)throw new Error("Node is not owned by the list.");var s=a;s===this._first&&s===this._last?(this._first=null,this._last=null):s===this._first?(this._first=s.next,this._first.prev=null):s===this._last?(this._last=s.prev,this._last.next=null):(s.next.prev=s.prev,s.prev.next=s.next),s.list=null,s.next=null,s.prev=null,this._size--},o.prototype.clear=function(){for(var a=this._first;a;){var s=a.next;a.list=null,a.prev=null,a.next=null,a=s}this._first=null,this._last=null,this._size=0},o}();e.LinkedList=r,function(o){function a(d){var f=new o;return f.assign(d),f}o.from=a;var s=function(){function d(f){this._node=f}return d.prototype.iter=function(){return this},d.prototype.clone=function(){return new d(this._node)},d.prototype.next=function(){if(this._node){var f=this._node;return this._node=f.next,f.value}},d}();o.ForwardValueIterator=s;var l=function(){function d(f){this._node=f}return d.prototype.iter=function(){return this},d.prototype.clone=function(){return new d(this._node)},d.prototype.next=function(){if(this._node){var f=this._node;return this._node=f.prev,f.value}},d}();o.RetroValueIterator=l;var c=function(){function d(f){this._node=f}return d.prototype.iter=function(){return this},d.prototype.clone=function(){return new d(this._node)},d.prototype.next=function(){if(this._node){var f=this._node;return this._node=f.next,f}},d}();o.ForwardNodeIterator=c;var u=function(){function d(f){this._node=f}return d.prototype.iter=function(){return this},d.prototype.clone=function(){return new d(this._node)},d.prototype.next=function(){if(this._node){var f=this._node;return this._node=f.prev,f}},d}();o.RetroNodeIterator=u}(r=e.LinkedList||(e.LinkedList={})),e.LinkedList=r;var i;(function(o){var a=function(){function s(l,c){this.list=null,this.next=null,this.prev=null,this.list=l,this.value=c}return s}();o.LinkedListNode=a})(i||(i={}))})(wit);(function(e){function n(r){for(var i in r)e.hasOwnProperty(i)||(e[i]=r[i])}Object.defineProperty(e,"__esModule",{value:!0}),n(Cit),n(wit)})(Eit);(function(e){var n=oo&&oo.__extends||function(){var s=function(l,c){return s=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])},s(l,c)};return function(l,c){s(l,c);function u(){this.constructor=l}l.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=CV,i=Eit,o=function(){function s(l){this.type=l}return Object.defineProperty(s.prototype,"isConflatable",{get:function(){return!1},enumerable:!0,configurable:!0}),s.prototype.conflate=function(l){return!1},s}();e.Message=o;var a=function(s){n(l,s);function l(){return s!==null&&s.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"isConflatable",{get:function(){return!0},enumerable:!0,configurable:!0}),l.prototype.conflate=function(c){return!0},l}(o);e.ConflatableMessage=a,function(s){function l(U,z){var D=y.get(U);if(!D||D.length===0){T(U,z);return}var B=r.every(r.retro(D),function(Y){return Y?x(Y,U,z):!0});B&&T(U,z)}s.sendMessage=l;function c(U,z){if(!z.isConflatable){R(U,z);return}var D=r.some(v,function(B){return B.handler!==U||!B.msg||B.msg.type!==z.type||!B.msg.isConflatable?!1:B.msg.conflate(z)});D||R(U,z)}s.postMessage=c;function u(U,z){var D=y.get(U);D&&D.indexOf(z)!==-1||(D?D.push(z):y.set(U,[z]))}s.installMessageHook=u;function d(U,z){var D=y.get(U);if(D){var B=D.indexOf(z);B!==-1&&(D[B]=null,M(D))}}s.removeMessageHook=d;function f(U){var z=y.get(U);z&&z.length>0&&(r.ArrayExt.fill(z,null),M(z)),r.each(v,function(D){D.handler===U&&(D.handler=null,D.msg=null)})}s.clearData=f;function p(){E||b===0||(C(b),E=!0,O(),E=!1)}s.flush=p;function h(){return S}s.getExceptionHandler=h;function g(U){var z=S;return S=U,z}s.setExceptionHandler=g;var v=new i.LinkedList,y=new WeakMap,_=new Set,S=function(U){console.error(U)},b=0,E=!1,w=function(){var U=typeof requestAnimationFrame=="function";return U?requestAnimationFrame:setImmediate}(),C=function(){var U=typeof cancelAnimationFrame=="function";return U?cancelAnimationFrame:clearImmediate}();function x(U,z,D){var B=!0;try{typeof U=="function"?B=U(z,D):B=U.messageHook(z,D)}catch(Y){S(Y)}return B}function T(U,z){try{U.processMessage(z)}catch(D){S(D)}}function R(U,z){v.addLast({handler:U,msg:z}),b===0&&(b=w(O))}function O(){if(b=0,!v.isEmpty){var U={handler:null,msg:null};for(v.addLast(U);;){var z=v.removeFirst();if(z===U)return;z.handler&&z.msg&&l(z.handler,z.msg)}}}function M(U){_.size===0&&w(P),_.add(U)}function P(){_.forEach(k),_.clear()}function k(U){r.ArrayExt.removeAllWhere(U,$)}function $(U){return U===null}}(e.MessageLoop||(e.MessageLoop={}))})(TC);var nQn=Object.defineProperty,rQn=Object.getOwnPropertyDescriptor,xit=(e,n,r,i)=>{for(var o=i>1?void 0:i?rQn(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&nQn(n,r,o),o},OC;(e=>{(r=>{r.ZOOM_IN="ZOOM_IN",r.ZOOM_OUT="ZOOM_OUT",r.DELETE="DELETE",r.COPY="COPY",r.PASTE="PASTE",r.UNDO="UNDO",r.REDO="REDO",r.VIEW_CLOSE_ALL_WIDGET="view.closeAllWidget",r.VIEW_CLOSE_CURRENT_WIDGET="view.closeCurrentWidget",r.VIEW_REOPEN_LAST_WIDGET="view.reopenLastWidget",r.VIEW_CLOSE_OTHER_WIDGET="view.closeOtherWidget",r.VIEW_CLOSE_BOTTOM_PANEL="view.closeBottomPannel",r.VIEW_OPEN_NEXT_TAB="view.openNextTab",r.VIEW_OEPN_LAST_TAB="view.openLastTab",r.VIEW_FULL_SCREEN="view.fullScreen",r.VIEW_SAVING_WIDGET_CLOSE_CONFIRM="view.savingWidgetCloseConfirm",r.VIEW_SHORTCUTS="view.shortcuts",r.VIEW_PREFERENCES="view.preferences",r.VIEW_LOG="view.log",r.VIEW_PROBLEMS="view.problems"})(e.Default||(e.Default={}));function n(r){return!!r&&r===Object(r)&&"id"in r}e.is=n})(OC||(OC={}));var Tit=Symbol("CommandContribution"),sse;(e=>{function n(r,i){for(const o of r.values())if(o.id===i.id&&o.args.length===i.args.length&&o.args.every((a,s)=>i[s]===a))return o}e.findSimple=n})(sse||(sse={}));var iQn="CommandRegistryFactory",bm=class{constructor(){this._handlers={},this._commands={},this._commandExecutings=new Set,this.toUnregisterCommands=new Map,this.onDidExecuteCommandEmitter=new Hn,this.onDidExecuteCommand=this.onDidExecuteCommandEmitter.event,this.onWillExecuteCommandEmitter=new Hn,this.onWillExecuteCommand=this.onWillExecuteCommandEmitter.event}init(){for(const e of this.contributions)e.registerCommands(this)}get commands(){const e=[];for(const n of this.commandIds){const r=this.getCommand(n);r&&e.push(r)}return e}get commandIds(){return Object.keys(this._commands)}registerCommand(e,n){const r=typeof e=="string"?{id:e}:e;if(this._commands[r.id])return console.warn(`A command ${r.id} is already registered.`),ao.NULL;const i=new Ei(this.doRegisterCommand(r));return n&&i.push(this.registerHandler(r.id,n)),this.toUnregisterCommands.set(r.id,i),i.push(ao.create(()=>this.toUnregisterCommands.delete(r.id))),i}unregisterCommand(e){const n=OC.is(e)?e.id:e,r=this.toUnregisterCommands.get(n);r&&r.dispose()}registerHandler(e,n){let r=this._handlers[e];return r||(this._handlers[e]=r=[]),r.unshift(n),{dispose:()=>{const i=r.indexOf(n);i>=0&&r.splice(i,1)}}}isVisible(e,...n){return typeof this.getVisibleHandler(e,...n)<"u"}isEnabled(e,...n){return typeof this.getActiveHandler(e,...n)<"u"}isToggled(e,...n){return typeof this.getToggledHandler(e,...n)<"u"}async executeCommand(e,...n){const r=this.getActiveHandler(e,...n),i={id:e,args:n};if(sse.findSimple(this._commandExecutings,i))return i.promise;if(r)try{this._commandExecutings.add(i),this.onWillExecuteCommandEmitter.fire({commandId:e,args:n});const a=r.execute(...n);i.promise=a;const s=await a;return this.onDidExecuteCommandEmitter.fire({commandId:e,args:n}),s}finally{this._commandExecutings.delete(i)}}getVisibleHandler(e,...n){const r=this._handlers[e];if(r)for(const i of r)try{if(!i.isVisible||i.isVisible(...n))return i}catch(o){console.error(o)}}getActiveHandler(e,...n){const r=this._handlers[e];if(r)for(const i of r)try{if(!i.isEnabled||i.isEnabled(...n))return i}catch(o){console.error(o)}}getAllHandlers(e){const n=this._handlers[e];return n?n.slice():[]}getToggledHandler(e,...n){const r=this._handlers[e];if(r)for(const i of r)try{if(i.isToggled&&i.isToggled(...n))return i}catch(o){console.error(o)}}getCommand(e){return this._commands[e]}doRegisterCommand(e){return this._commands[e.id]=e,{dispose:()=>{delete this._commands[e.id]}}}updateCommand(e,n){this._commands[e]&&(this._commands[e]={...this._commands[e],...n})}dispose(){this.onWillExecuteCommandEmitter.dispose(),this.onDidExecuteCommandEmitter.dispose()}};xit([E_(Tit),ss()],bm.prototype,"contributions",2);bm=xit([Pn()],bm);var DV=Symbol("CommandService"),oQn=new Zp(e=>{ume(e,Tit),e(bm).toSelf().inSingletonScope(),e(DV).toService(bm),e(iQn).toFactory(n=>()=>n.container.get(bm))}),aQn=Object.defineProperty,sQn=Object.getOwnPropertyDescriptor,co=(e,n,r,i)=>{for(var o=i>1?void 0:i?sQn(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&aQn(n,r,o),o},qu=(e,n)=>(r,i)=>n(r,i,e),lQn=Object.__proto__,cQn=0,jm=class{constructor(e){this.onEntityChangeEmitter=new Hn,this.onDataChangeEmitter=new Hn,this.initializeDataKeys=[],this.dataManager=new Map,this.toDispose=new Ei,this.preDispose=new Ei,this.onEntityChange=this.onEntityChangeEmitter.event,this.onDataChange=this.onDataChangeEmitter.event,this._changeLockedTimes=0,this.isInitialized=!0,this._version=cQn++,this._savedInManager=!0,this.entityManager=e.entityManager,this._id=e.id||C_(),this._savedInManager=e.savedInManager===void 0?!0:e.savedInManager,this.isInitialized=!0,this.toDispose.push(this.onEntityChangeEmitter),this.toDispose.push(this.onDataChangeEmitter),this.register(),e.datas&&e.datas.forEach(n=>this.addData(n.registry,n.data)),this.isInitialized=!1}getDefaultDataRegistries(){return[]}get changeLocked(){return this._changeLockedTimes>0}set changeLocked(e){this._changeLockedTimes=e?this._changeLockedTimes+1:this._changeLockedTimes-1,this._changeLockedTimes<0&&(this._changeLockedTimes=0)}get type(){if(!this.constructor.type)throw new Error(`Entity Registry need a type: ${this.constructor.name}`);return this.constructor.type}get context(){return this.entityManager.context}addInitializeData(e,n){this.isInitialized=!0,e.forEach(r=>this.addData(r,n)),this.isInitialized=!1}get version(){return this._version}toJSON(){const e=[];for(const n of this.dataManager.values())e.push({type:n.type,data:n.toJSON()});return{type:this.type,id:this.id,dataList:e}}fromJSON(e){!e||!e.id||!e.type||(this.changeLocked=!0,this.reset(),e.dataList&&e.dataList.forEach(n=>{const r=this.entityManager.getDataRegistryByType(n.type);r&&this.addData(r).update(n.data)}),this.changeLocked=!1,this.fireChange())}get id(){return this._id}dispose(){this.preDispose.dispose(),this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}reset(){this.changeLocked=!0;for(const e of this.dataManager.values())this.initializeDataKeys.includes(e.type)||e.dispose();this.register(),this.changeLocked=!1,this.fireChange()}get onDispose(){return this.toDispose.onDispose}fireChange(){this.changeLocked||this.isInitialized||this.disposed||(this._version++,this._version>=Number.MAX_SAFE_INTEGER&&(this._version=0),this.onEntityChangeEmitter.fire(this))}addData(e,n){this.entityManager.registerEntityData(e);let r=this.dataManager.get(e.type);if(r)return n&&this.updateData(e,n),r;const i=this.entityManager.getDataInjector(e);r=new e(this,i==null?void 0:i()),this.isInitialized&&this.initializeDataKeys.push(r.type),this.dataManager.set(e.type,r),this.toDispose.push(r),r.onDataChange(()=>{const a={type:"update",data:r,entity:this};this.onDataChangeEmitter.fire(a),this.fireChange()}),r.toDispose.push(ao.create(()=>{this.initializeDataKeys.includes(e.type)||this.dataManager.delete(e.type);const a={type:"delete",data:r,entity:this};this.onDataChangeEmitter.fire(a),this.fireChange()})),r.changeLocked=!0,this.updateData(e,n||r.getDefaultData()),r.changeLocked=!1;const o={type:"add",data:r,entity:this};return this.onDataChangeEmitter.fire(o),r}get savedInManager(){return this._savedInManager}updateData(e,n){const r=this.dataManager.get(e.type);r&&r.update(n)}getData(e){return this.dataManager.get(e.type)}hasData(e){return this.dataManager.has(e.type)}removeData(e){if(this.initializeDataKeys.includes(e.type))return;const n=this.dataManager.get(e.type);n&&n.dispose()}getService(e){return this.entityManager.getService(e)}register(){this.getDefaultDataRegistries().forEach(e=>this.addData(e))}};jm.type="Entity";(e=>{function n(o){return o.type}e.getType=n;function r(o,a){return k0.isChanged(o,a)}e.checkDataChanged=r;function i(o,a){if(o===a)return!0;let s=o.__proto__;for(;s&&s!==lQn;){if(s.prototype===a.prototype)return!0;s=s.__proto__}return!1}e.isRegistryOf=i})(jm||(jm={}));var Pl=class extends prt{constructor(e,n){super(),this.opts=n,this.onDataChangeEmitter=new Hn,this.onWillChangeEmitter=new Hn,this._changeLocked=!1,this._version=0,this.onDataChange=this.onDataChangeEmitter.event,this.onWillChange=this.onWillChangeEmitter.event,this.entity=e,this._data=this.getDefaultData(),this.toDispose.push(this.onDataChangeEmitter),this.toDispose.push(this.onWillChangeEmitter)}get type(){if(!this.constructor.type)throw new Error(`Entity Data Registry need a type: ${this.constructor.name}`);return this.constructor.type}get data(){return this._data}update(e,n){arguments.length===2?this._data[e]!==n&&(this.fireWillChange(),this._data[e]=n,this.fireChange()):this.checkChanged(e)&&(this.fireWillChange(),typeof e!="object"?this._data=e:this._data={...this._data,...e},this.fireChange())}fullyUpdate(e){k0.isChanged(this._data,e,1,!1)&&(this.fireWillChange(),this._data=e,this.fireChange())}checkChanged(e){return jm.checkDataChanged(this._data,e)}toJSON(){return this.data}fromJSON(e){this.update(e)}get changeLocked(){return this._changeLocked}set changeLocked(e){this._changeLocked=e}fireWillChange(){this.onWillChangeEmitter.fire(this)}fireChange(){this._changeLocked||(this._version++,this._version>=Number.MAX_SAFE_INTEGER&&(this._version=0),this.onDataChangeEmitter.fire(this))}bindChange(e,n){this.toDispose.push(e.onDataChange(()=>{n&&n(),this.fireChange()}))}get version(){return this._version}};Pl.type="EntityData";var C2=class extends Pl{getDefaultData(){return lg.createDefault(mrt)}get x(){return this.data.x}get y(){return this.data.y}set x(e){this.update("x",e)}set y(e){this.update("y",e)}};C2.type="OriginData";var uQn=class extends Pl{getDefaultData(){return lg.createDefault(xKn)}};uQn.type="OpacityData";var qb=class extends Pl{getDefaultData(){return lg.createDefault(vrt)}get x(){return this.data.x}get y(){return this.data.y}set x(e){this.update("x",e)}set y(e){this.update("y",e)}};qb.type="PositionData";var w2=class extends Pl{getDefaultData(){return lg.createDefault(yrt)}};w2.type="RotationData";var x2=class extends Pl{getDefaultData(){return lg.createDefault(_rt)}get x(){return this.data.x}get y(){return this.data.y}set x(e){this.update("x",e)}set y(e){this.update("y",e)}};x2.type="ScaleData";var iy=class extends Pl{getDefaultData(){return lg.createDefault(grt)}get width(){return this.data.width}get height(){return this.data.height}set width(e){this.update("width",e)}set height(e){this.update("height",e)}get locked(){return!!this.data.locked}set locked(e){this.update("locked",e)}};iy.type="SizeData";var T2=class extends Pl{getDefaultData(){return lg.createDefault(brt)}get x(){return this.data.x}get y(){return this.data.y}set x(e){this.update("x",e)}set y(e){this.update("y",e)}};T2.type="SkewData";var{fixZero:PJ}=hf,eO;(e=>{function n(v,y){return y&&y.apply(v,v),PJ(v),v}e.getPointWithMatrix=n;function r(v,y){const _=new Qn;if(!y||y.isSimple()){const{size:S,origin:b}=v;_.x=-(S.width*b.x)+((y==null?void 0:y.tx)||0),_.y=-(S.height*b.y)+((y==null?void 0:y.ty)||0),_.width=S.width,_.height=S.height,PJ(_)}else{const S=l(v,y),b=u(v,y),E=p(v,y),w=g(v,y);_.x=Math.min(S.x,b.x,E.x,w.x),_.y=Math.min(S.y,b.y,E.y,w.y),_.width=Math.max(S.x,b.x,E.x,w.x)-_.x,_.height=Math.max(S.y,b.y,E.y,w.y)-_.y}return _}e.getBounds=r;function i(v,y){const _=new Qn;if(y.isSimple())_.x=v.x+y.tx,_.y=v.y+y.ty,_.width=v.width,_.height=v.height,PJ(_);else{const S=n(v.leftTop,y),b=n(v.rightTop,y),E=n(v.leftBottom,y),w=n(v.rightBottom,y);_.x=Math.min(S.x,b.x,E.x,w.x),_.y=Math.min(S.y,b.y,E.y,w.y),_.width=Math.max(S.x,b.x,E.x,w.x)-_.x,_.height=Math.max(S.y,b.y,E.y,w.y)-_.y}return _}e.applyMatrix=i;function o(v,y){const _=l(v,y),S=u(v,y),b=p(v,y),E=g(v,y);return[_,S,b,E].sort((C,x)=>C.x-x.x)[0]}e.getLeftPointFromBounds=o;function a(v,y){const _=l(v,y),S=u(v,y),b=p(v,y),E=g(v,y);return[_,S,b,E].sort((C,x)=>C.y-x.y)[0]}e.getTopPointFromBounds=a;function s(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width/2,y:-(_.height*S.y)+_.height/2};return n(b,y)}e.getCenter=s;function l(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x),y:-(_.height*S.y)};return n(b,y)}e.getTopLeft=l;function c(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width/2,y:-(_.height*S.y)};return n(b,y)}e.getTopCenter=c;function u(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width,y:-(_.height*S.y)};return n(b,y)}e.getTopRight=u;function d(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x),y:-(_.height*S.y)+_.height/2};return n(b,y)}e.getLeftCenter=d;function f(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width,y:-(_.height*S.y)+_.height/2};return n(b,y)}e.getRightCenter=f;function p(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x),y:-(_.height*S.y)+_.height};return n(b,y)}e.getBottomLeft=p;function h(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width/2,y:-(_.height*S.y)+_.height};return n(b,y)}e.getBottomCenter=h;function g(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width,y:-(_.height*S.y)+_.height};return n(b,y)}e.getBottomRight=g})(eO||(eO={}));var Ui=class extends Pl{constructor(e){super(e),this._worldTransform=new _P,this._localTransform=new _P,this.mutationCache=new Map,this.sizeToScale=!1,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0,this.bindChange(this.entity.addData(qb)),this.bindChange(this.entity.addData(iy)),this.bindChange(this.entity.addData(C2)),this.bindChange(this.entity.addData(x2)),this.bindChange(this.entity.addData(T2),()=>this.updateSkew()),this.bindChange(this.entity.addData(w2),()=>this.updateSkew())}get children(){return this._children||[]}clearChildren(){this._children&&this._children.slice().forEach(e=>{e.setParent(void 0)})}get isContainer(){return!!this._children&&this._children.length>0}fireChange(){this.changeLocked||(this._localID++,this.mutationCache.clear(),super.fireChange())}get localTransform(){return this.updateLocalTransformMatrix(),this._localTransform}get worldTransform(){return this.updateTransformMatrix(),this._worldTransform}getDefaultData(){return lg.createDefault(Srt)}update(e){e.position&&this.entity.updateData(qb,e.position),e.size&&this.entity.updateData(iy,e.size),e.origin&&this.entity.updateData(C2,e.origin),e.scale&&this.entity.updateData(x2,e.scale),e.skew&&this.entity.updateData(T2,e.skew),e.rotation!==void 0&&this.entity.updateData(w2,e.rotation)}get position(){return this.entity.getData(qb)}set position(e){this.entity.updateData(qb,e)}get size(){return this.entity.getData(iy)}set size(e){this.entity.updateData(iy,e)}get origin(){return this.entity.getData(C2)}set origin(e){this.entity.updateData(C2,e)}get scale(){return this.entity.getData(x2)}set scale(e){this.entity.updateData(x2,e)}get skew(){return this.entity.getData(T2)}set skew(e){this.entity.updateData(T2,e)}get rotation(){return this.entity.getData(w2).data}set rotation(e){this.entity.updateData(w2,e)}get data(){return tse.toJSON(this)}updateSkew(){const{rotation:e}=this;this._cx=Math.cos(e+this.skew.y),this._sx=Math.sin(e+this.skew.y),this._cy=-Math.sin(e-this.skew.x),this._sy=Math.cos(e-this.skew.x),this._localID++}updateLocalTransformMatrix(){const e=this._localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x,e.ty=this.position.y,this._currentLocalID=this._localID,this._parentID=-1)}get localID(){return this._localID}get worldID(){return this._worldID}updateTransformMatrix(){const e=this._localTransform;this.updateLocalTransformMatrix();let n=_P.TEMP_MATRIX,r=0;if(this.parent&&(n=this.parent.worldTransform,r=this.parent._worldID),this._parentID!==r){const i=n,o=this._worldTransform;o.a=e.a*i.a+e.b*i.c,o.b=e.a*i.b+e.b*i.d,o.c=e.c*i.a+e.d*i.c,o.d=e.c*i.b+e.d*i.d,o.tx=e.tx*i.a+e.ty*i.c+i.tx,o.ty=e.tx*i.b+e.ty*i.d+i.ty,this._parentID=r,this._worldID++}}setFromMatrix(e){const{a:n,b:r,c:i,d:o}=e,a=-Math.atan2(-i,o),s=Math.atan2(r,n),l=Math.abs(a+s);l<1e-5||Math.abs(ort-l)<1e-5?(this.rotation=s,this.skew.x=this.skew.y=0):(this.rotation=0,this.skew.x=a,this.skew.y=s),this.scale.x=Math.sqrt(n*n+r*r),this.scale.y=Math.sqrt(i*i+o*o),this.position.x=e.tx,this.position.y=e.ty,this.fireChange()}getMutationCache(e,n){if(this.mutationCache.has(e))return this.mutationCache.get(e);const r=n();return this.mutationCache.set(e,r),r}get bounds(){if(this.isContainer){const e=this._children;return Qn.enlarge(e.map(n=>n.bounds))}return eO.getBounds(this,this.worldTransform)}get boundsWithoutRotation(){const{center:e}=this.bounds,{worldScale:n}=this,r=this.localSize,i=n.x*r.width,o=n.y*r.height,a={x:e.x-i/2,y:e.y-o/2};return new Qn(a.x,a.y,i,o)}get localSize(){let{size:e}=this;if(this.isContainer){const n=Qn.enlarge(this.children.map(r=>r.localBounds));e={width:n.width,height:n.height}}return{width:e.width,height:e.height}}get worldSize(){const{localSize:e}=this,{worldScale:n}=this;return{width:e.width*n.x,height:e.height*n.y}}get localBounds(){if(this.isContainer){const e=this._children,n=Qn.enlarge(e.map(r=>r.localBounds));return eO.applyMatrix(n,this.localTransform)}return this.getMutationCache("localBounds",()=>eO.getBounds(this,this.localTransform))}contains(e,n,r){if(this.isContainer)return this.bounds.contains(e,n);const i=this.worldTransform.applyInverse({x:e,y:n}),{width:o,height:a}=this.size;if(o===0||a===0)return!1;const s=-o*this.origin.x,l=-a*this.origin.y;return r?new yKn(s+o/2,l+a/2,Math.min(o/2,a/2)).contains(i.x,i.y):i.x>=s&&i.x<s+o&&i.y>=l&&i.y<l+a}get parent(){return this._parent}isParent(e){let n=this.parent;for(;n;){if(n===e)return!0;n=n.parent}return!1}isParentTransform(e){let n=this.parent;for(;n;){if(n===e)return!0;n=n.parent}return!1}setParent(e,n=!0){this._parent!==e&&(this._parentChangedDispose&&(this._parentChangedDispose.dispose(),this._parentChangedDispose=void 0),this._parentID=-1,e&&n&&(e._children||(e._children=[]),e._children.push(this),this._parentChangedDispose=new Ei,this.toDispose.push(this._parentChangedDispose),this._parentChangedDispose.pushAll([e.onDispose(()=>{this.setParent(void 0)}),ao.create(()=>{const r=e._children.indexOf(this);r!==-1&&e._children.splice(r,1)})])),this._parent=e,this.fireChange())}intersects(e){return!this.isContainer&&(this.size.width===0||this.size.height===0)?!1:Qn.intersectsWithRotation(this.boundsWithoutRotation,this.worldRotation,e,0)}get worldScale(){const{parent:e}=this,n=e?e.worldScale:{x:1,y:1};return{x:this.scale.x*n.x,y:this.scale.y*n.y}}get worldRotation(){const{parent:e}=this;return e?dj.wrap(this.rotation+e.worldRotation):dj.wrap(this.rotation)}get worldDegree(){return Math.round(this.worldRotation*vKn)}get localOrigin(){const e=this.localTransform,n=this.localBounds;return e.apply({x:this.origin.x*n.width,y:this.origin.y*n.height})}get worldOrigin(){const e=this.worldTransform,{bounds:n}=this;return e.apply({x:this.origin.x*n.width,y:this.origin.y*n.height})}widthToScaleX(e,n){const r=n&&this.parent?this.parent.worldScale.x:1;return e/r/this.localSize.width}heightToScaleY(e,n){const r=n&&this.parent?this.parent.worldScale.y:1;return e/r/this.localSize.height}sizeToScaleValue(e,n){return{x:this.widthToScaleX(e.width,n),y:this.heightToScaleY(e.height,n)}}};Ui.type="TransformData";(e=>{function n(r,i){const o=i.getData(e);if(!o)return!1;for(const a of r.values()){const s=a.getData(e);if(s&&(s.isParent(o)||o.isParent(s)))return!0}return!1}e.isParentOrChildrenTransform=n})(Ui||(Ui={}));var dQn=class{constructor(){this.execMap=new Map}push(e,n){const{execMap:r}=this;let i=r.get(e);i||(i=Mn.throttle(n,0),r.set(e,i)),i()}dispose(){this.execMap.clear()}},eLe=4,c5=20,tLe=20;function u5(e,n,r){const i=document.createEvent("MouseEvent");return i.initMouseEvent(e,!0,!0,void 0,0,0,0,n,r,!1,!1,!1,!1,0,null),i}var Sm=class{constructor(e={}){this.onDragStartEmitter=new Hn,this.onDragEndEmitter=new Hn,this.onDragEmitter=new Hn,this._stopGlobalEventNames=["mouseenter","mouseleave","mouseover","mouseout","contextmenu"],this.onDrag=this.onDragEmitter.event,this.onDragStart=this.onDragStartEmitter.event,this.onDragEnd=this.onDragEndEmitter.event,this._lastPos={x:0,y:0},this._updateDragScroll=n=>{if(!this._playgroundConfigEntity)return;const r=this._playgroundConfigEntity.config,i=n.endPos,{scrollX:o,width:a,height:s,scrollY:l}=r;i.x>a+o-c5?this._startScrollX(o,!0):i.x<o+c5?this._startScrollX(o,!1):this._stopScrollX(),i.y>s+l-c5?this._startScrollY(l,!0):i.y<l+c5?this._startScrollY(l,!1):this._stopScrollY()},this._disposed=!1,e.onDragStart&&this.onDragStart(n=>e.onDragStart(n,this.context)),e.onDrag&&this.onDrag(n=>e.onDrag(n,this.context)),e.onDragEnd&&this.onDragEnd(n=>e.onDragEnd(n,this.context)),e.stopGlobalEventNames&&(this._stopGlobalEventNames=e.stopGlobalEventNames)}get isStarted(){return!!this._promise}start(e,n,r,i){if(this._disposed)return Promise.resolve();if(this._promise)return this._promise;this.context=i,this.localId=OKn(),this._addListeners(),this._promise=new Promise(a=>{this._resolve=a}),this._playgroundConfigEntity=r;const o=u5("mousedown",e,n);return this._startPos=this.getRelativePos(o),this.onDragStartEmitter.fire(this.getDragEvent(o)),this._promise}stop(e,n){if(this._disposed||!this._promise)return;const r=u5("mouseup",e,n);this.handleEvent(r)}dispose(){this._disposed||(this._stopScrollX(),this._stopScrollY(),this._disposed=!0,this.onDragEmitter.dispose(),this.onDragStartEmitter.dispose(),this.onDragEndEmitter.dispose(),this._finalize())}handleEvent(e){switch(e.type){case"mousemove":this._evtMouseMove(e);break;case"mouseup":this._stopScrollX(),this._stopScrollY(),this._evtMouseUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":const n=u5("mouseup",e.clientX,e.clientY);this._evtMouseUp(n);break;default:e.preventDefault(),e.stopPropagation();break}}get scale(){return this._playgroundConfigEntity?this._playgroundConfigEntity.finalScale:1}getRelativePos(e){return this._playgroundConfigEntity?this._playgroundConfigEntity.getPosFromMouseEvent(e,!1):{x:e.clientX,y:e.clientY}}getDragEvent(e){const n=this._startPos,{scale:r}=this;switch(e.type){case"mousedown":return this._lastPos=n,Object.assign(e,{id:this.localId,startPos:n,endPos:n,scale:r,movingDelta:{x:0,y:0},isStart:!0,isMoving:!1});case"mousemove":const i=this.getRelativePos(e),o={x:i.x-this._lastPos.x,y:i.y-this._lastPos.y};return this._lastPos=i,Object.assign(e,{id:this.localId,startPos:n,endPos:i,scale:r,isStart:!0,movingDelta:o,isMoving:!0});case"mouseup":return this._lastPos={x:0,y:0},Object.assign(e,{id:this.localId,startPos:n,endPos:this.getRelativePos(e),movingDelta:{x:0,y:0},scale:r,isStart:!1,isMoving:!1});default:throw new Error("unknown event")}}_finalize(){const e=this._resolve;this._removeListeners(),this._startPos=void 0,this._promise=void 0,this._resolve=void 0,e&&e()}_evtMouseMove(e){e.preventDefault(),e.stopPropagation(),this._lastMouseMoveEvent=e;const n=this.getDragEvent(e);this._updateDragScroll(n),this.onDragEmitter.fire(n)}_evtMouseUp(e){this._lastMouseMoveEvent=void 0,e.preventDefault(),e.stopPropagation(),!(e.button!==0&&e.button!==1)&&(this.onDragEndEmitter.fire(this.getDragEvent(e)),this._finalize())}_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&this.stop(NaN,NaN)}_addListeners(){document.addEventListener("mousedown",this,!0),document.addEventListener("mousemove",this,!0),document.addEventListener("mouseup",this,!0),this._stopGlobalEventNames.forEach(e=>{document.addEventListener(e,this,!0)})}_removeListeners(){document.removeEventListener("mousedown",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),this._stopGlobalEventNames.forEach(e=>{document.removeEventListener(e,this,!0)})}_startScrollX(e,n){if(this._scrollXInterval)return;const r=window.setInterval(()=>{this._scrollXInterval&&this.fireScroll("scrollX",n)},tLe);this._scrollXInterval={interval:r,origin:e}}_stopScrollX(){this._scrollXInterval&&(clearInterval(this._scrollXInterval.interval),this._scrollXInterval=void 0)}_startScrollY(e,n){if(this._scrollYInterval)return;const r=window.setInterval(()=>{this.fireScroll("scrollY",n)},tLe);this._scrollYInterval={interval:r,origin:e}}_stopScrollY(){this._scrollYInterval&&(clearInterval(this._scrollYInterval.interval),this._scrollYInterval=void 0)}fireScroll(e,n){const r=e==="scrollY"?this._scrollYInterval:this._scrollXInterval;if(!r)return;const i=r.origin=n?r.origin+eLe:r.origin-eLe,o=this._playgroundConfigEntity.config[e];this._playgroundConfigEntity.updateConfig({[e]:i});const a=this._playgroundConfigEntity.config[e];if(a!==o){const s=this._lastMouseMoveEvent,l={x:e==="scrollX"?a-r.origin:0,y:e==="scrollY"?a-r.origin:0},c=u5("mousemove",s.clientX+l.x,s.clientY+l.y),u=this.getDragEvent(c);this.onDragEmitter.fire(u)}}},EE;(e=>{function n(r,i,o={}){EE&&EE.stop(NaN,NaN);const a=EE=new e({onDragStart(s,l){o.onDragStart&&o.onDragStart(s,l)},onDrag(s,l){o.onDrag&&o.onDrag(s,l)},onDragEnd(s,l){o.onDragEnd&&o.onDragEnd(s,l),a.dispose(),EE===a&&(EE=void 0)}});return a.start(r,i,o.config,o.context),ao.create(()=>{a.stop(0,0),a.dispose(),EE===a&&(EE=void 0)})}e.startDrag=n})(Sm||(Sm={}));var lse=0;function fQn(){lse++;function e(n){lse<=0||(requestAnimationFrame(e),ose.update(n))}requestAnimationFrame(e)}function nLe(){lse--}function xme(e){fQn();let n=!1;const r=new ose.Tween(e.from).to(e.to,e.duration).easing(e.easing||ose.Easing.Quadratic.Out).onUpdate(()=>{n||e.onUpdate&&e.onUpdate(e.from)}).onComplete(()=>{n||(n=!0,nLe(),e.onComplete&&e.onComplete(e.from))}).start();return ao.create(()=>{n||(n=!0,nLe(),r.stop(),e.onDispose&&e.onDispose(e.from))})}function Oit(e){const[n,r]=e.overflow,[i,o]=e._delta,[a,s]=e._direction;(n<0&&i>0&&a<0||n>0&&i<0&&a>0)&&(e._movement[0]=e._movementBound[0]),(r<0&&o>0&&s<0||r>0&&o<0&&s>0)&&(e._movement[1]=e._movementBound[1])}function pQn(e,n,r){return Math.max(n,Math.min(e,r))}var xa={toVector(e,n){return e===void 0&&(e=n),Array.isArray(e)?e:[e,e]},add(e,n){return[e[0]+n[0],e[1]+n[1]]},sub(e,n){return[e[0]-n[0],e[1]-n[1]]},addTo(e,n){e[0]+=n[0],e[1]+=n[1]},subTo(e,n){e[0]-=n[0],e[1]-=n[1]}};function rLe(e,n,r){return n===0||Math.abs(n)===1/0?Math.pow(e,r*5):e*n*r/(n+r*e)}function iLe(e,n,r,i=.15){return i===0?pQn(e,n,r):e<n?-rLe(n-e,r-n,i)+n:e>r?+rLe(e-r,r-n,i)+r:e}function hQn(e,[n,r],[i,o]){const[[a,s],[l,c]]=e;return[iLe(n,a,s,i),iLe(r,l,c,o)]}var Rit={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function oLe(e){return e?e[0].toUpperCase()+e.slice(1):""}var gQn=["enter","leave"];function mQn(e=!1,n){return e&&!gQn.includes(n)}function vQn(e,n="",r=!1){const i=Rit[e],o=i&&i[n]||n;return"on"+oLe(e)+oLe(o)+(mQn(r,o)?"Capture":"")}var yQn=["gotpointercapture","lostpointercapture"];function _Qn(e){let n=e.substring(2).toLowerCase();const r=!!~n.indexOf("passive");r&&(n=n.replace("passive",""));const i=yQn.includes(n)?"capturecapture":"capture",o=!!~n.indexOf(i);return o&&(n=n.replace("capture","")),{device:n,capture:o,passive:r}}function bQn(e,n=""){const r=Rit[e],i=r&&r[n]||n;return e+i}function kV(e){return"touches"in e}function Iit(e){return kV(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function SQn(e){return Array.from(e.touches).filter(n=>{var r,i;return n.target===e.currentTarget||((i=(r=e.currentTarget)==null?void 0:r.contains)==null?void 0:i.call(r,n.target))})}function EQn(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Nit(e){return kV(e)?EQn(e)[0]:e}function cse(e,n){try{const r=n.clientX-e.clientX,i=n.clientY-e.clientY,o=(n.clientX+e.clientX)/2,a=(n.clientY+e.clientY)/2,s=Math.hypot(r,i);return{angle:-(Math.atan2(r,i)*180)/Math.PI,distance:s,origin:[o,a]}}catch{}return null}function CQn(e){return SQn(e).map(n=>n.identifier)}function aLe(e,n){const[r,i]=Array.from(e.touches).filter(o=>n.includes(o.identifier));return cse(r,i)}function AJ(e){const n=Nit(e);return kV(e)?n.identifier:n.pointerId}function yR(e){const n=Nit(e);return[n.clientX,n.clientY]}var sLe=40,lLe=800;function Mit(e){let{deltaX:n,deltaY:r,deltaMode:i}=e;return i===1?(n*=sLe,r*=sLe):i===2&&(n*=lLe,r*=lLe),[n,r]}function wQn(e){const{scrollX:n,scrollY:r,scrollLeft:i,scrollTop:o}=e.currentTarget;return[n??i??0,r??o??0]}function xQn(e){const n={};if("buttons"in e&&(n.buttons=e.buttons),"shiftKey"in e){const{shiftKey:r,altKey:i,metaKey:o,ctrlKey:a}=e;Object.assign(n,{shiftKey:r,altKey:i,metaKey:o,ctrlKey:a})}return n}function _j(e,...n){return typeof e=="function"?e(...n):e}function TQn(){}function OQn(...e){return e.length===0?TQn:e.length===1?e[0]:function(){let n;for(const r of e)n=r.apply(this,arguments)||n;return n}}function cLe(e,n){return Object.assign({},n,e||{})}var RQn=32,Pit=class{constructor(e,n,r){this.ctrl=e,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:r,args:i}=this;n[r]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=i,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=r.from?_j(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=e.timeStamp)}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:r,shared:i}=this;n.args=this.args;let o=0;if(e&&(n.event=e,r.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,xQn(e)),i.down=i.pressed=i.buttons%2===1||i.touches>0,o=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const w=n._delta.map(Math.abs);xa.addTo(n._distance,w)}this.axisIntent&&this.axisIntent(e);const[a,s]=n._movement,[l,c]=r.threshold,{_step:u,values:d}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(a)>=l&&d[0]),u[1]===!1&&(u[1]=Math.abs(s)>=c&&d[1])):(u[0]===!1&&(u[0]=Math.abs(a)>=l&&Math.sign(a)*l),u[1]===!1&&(u[1]=Math.abs(s)>=c&&Math.sign(s)*c)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const f=[0,0];if(r.hasCustomTransform){const[w,C]=d;f[0]=u[0]!==!1?w-u[0]:0,f[1]=u[1]!==!1?C-u[1]:0}else f[0]=u[0]!==!1?a-u[0]:0,f[1]=u[1]!==!1?s-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(f);const p=n.offset,h=n._active&&!n._blocked||n.active;h&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=i[this.ingKey]=n._active,e&&(n.first&&("bounds"in r&&(n._bounds=_j(r.bounds,n)),this.setup&&this.setup()),n.movement=f,this.computeOffset()));const[g,v]=n.offset,[[y,_],[S,b]]=n._bounds;n.overflow=[g<y?-1:g>_?1:0,v<S?-1:v>b?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const E=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=hQn(n._bounds,n.offset,E),n.delta=xa.sub(n.offset,p),this.computeMovement(),h&&(!n.last||o>RQn)){n.delta=xa.sub(n.offset,p);const w=n.delta.map(Math.abs);xa.addTo(n.distance,w),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&o>0&&(n.velocity=[w[0]/o,w[1]/o],n.timeDelta=o)}}emit(){const e=this.state,n=this.shared,r=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!r.triggerAllEvents)return;const i=this.handler({...n,...e,[this.aliasKey]:e.values});i!==void 0&&(e.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}};function IQn([e,n],r){const i=Math.abs(e),o=Math.abs(n);if(i>o&&i>r)return"x";if(o>i&&o>r)return"y"}var t$=class extends Pit{constructor(){super(...arguments),this.aliasKey="xy"}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=xa.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=xa.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,r=this.config;if(!n.axis&&e){const i=typeof r.axisThreshold=="object"?r.axisThreshold[Iit(e)]:r.axisThreshold;n.axis=IQn(n._movement,i)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}},NQn=class extends t${constructor(){super(...arguments),this.ingKey="wheeling"}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const n=this.state;n._delta=Mit(e),xa.addTo(n._movement,n._delta),Oit(n),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}},MQn=class extends t${constructor(){super(...arguments),this.ingKey="scrolling"}scroll(e){this.state._active||this.start(e),this.scrollChange(e),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(e){e.cancelable&&e.preventDefault();const n=this.state,r=wQn(e);n._delta=xa.sub(r,n._values),xa.addTo(n._movement,n._delta),this.computeValues(r),this.compute(e),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("scroll","",this.scroll.bind(this))}},PQn=30,AQn=100,DQn=class extends Pit{constructor(){super(...arguments),this.ingKey="pinching",this.aliasKey="da"}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const e=this.state;e._touchIds=[],e.canceled=!1,e.cancel=this.cancel.bind(this),e.turns=0}computeOffset(){const{type:e,movement:n,lastOffset:r}=this.state;e==="wheel"?this.state.offset=xa.add(n,r):this.state.offset=[(1+n[0])*r[0],n[1]+r[1]]}computeMovement(){const{offset:e,lastOffset:n}=this.state;this.state.movement=[e[0]/n[0],e[1]-n[1]]}axisIntent(){const e=this.state,[n,r]=e._movement;if(!e.axis){const i=Math.abs(n)*PQn-Math.abs(r);i<0?e.axis="angle":i>0&&(e.axis="scale")}}restrictToAxis(e){this.config.lockDirection&&(this.state.axis==="scale"?e[1]=0:this.state.axis==="angle"&&(e[0]=0))}cancel(){const e=this.state;e.canceled||setTimeout(()=>{e.canceled=!0,e._active=!1,this.compute(),this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);const n=this.state,r=this.ctrl.touchIds;if(n._active&&n._touchIds.every(o=>r.has(o))||r.size<2)return;this.start(e),n._touchIds=Array.from(r).slice(0,2);const i=aLe(e,n._touchIds);i&&this.pinchStart(e,i)}pointerStart(e){if(e.buttons!=null&&e.buttons%2!==1)return;this.ctrl.setEventIds(e),e.target.setPointerCapture(e.pointerId);const n=this.state,r=n._pointerEvents,i=this.ctrl.pointerIds;if(n._active&&Array.from(r.keys()).every(a=>i.has(a))||(r.size<2&&r.set(e.pointerId,e),n._pointerEvents.size<2))return;this.start(e);const o=cse(...Array.from(r.values()));o&&this.pinchStart(e,o)}pinchStart(e,n){const r=this.state;r.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(e),this.emit()}touchMove(e){if(!this.state._active)return;const n=aLe(e,this.state._touchIds);n&&this.pinchMove(e,n)}pointerMove(e){const n=this.state._pointerEvents;if(n.has(e.pointerId)&&n.set(e.pointerId,e),!this.state._active)return;const r=cse(...Array.from(n.values()));r&&this.pinchMove(e,r)}pinchMove(e,n){const r=this.state,i=r._values[1],o=n.angle-i;let a=0;Math.abs(o)>270&&(a+=Math.sign(o)),this.computeValues([n.distance,n.angle-360*a]),r.origin=n.origin,r.turns=a,r._movement=[r._values[0]/r._initial[0]-1,r._values[1]-r._initial[1]],this.compute(e),this.emit()}touchEnd(e){this.ctrl.setEventIds(e),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(e),this.emit())}pointerEnd(e){const n=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch{}n._pointerEvents.has(e.pointerId)&&n._pointerEvents.delete(e.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(e),this.emit())}gestureStart(e){e.cancelable&&e.preventDefault();const n=this.state;n._active||(this.start(e),this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY],this.compute(e),this.emit())}gestureMove(e){if(e.cancelable&&e.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY];const r=n._movement;n._movement=[e.scale-1,e.rotation],n._delta=xa.sub(n._movement,r),this.compute(e),this.emit()}gestureEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}wheel(e){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(r=>e[r]):!e[n])||(this.state._active?this.wheelChange(e):this.wheelStart(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(e){this.start(e),this.wheelChange(e)}wheelChange(e){"uv"in e||e.cancelable&&e.preventDefault();const r=this.state;let i=-Mit(e)[1]/AQn*r.offset[0];Math.abs(i)>.1&&(i=.1*Math.sign(i)),r._delta=[i,0],xa.addTo(r._movement,r._delta),Oit(r),this.state.origin=[e.clientX,e.clientY],this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){const n=this.config.device;n&&(e(n,"start",this[n+"Start"].bind(this)),e(n,"change",this[n+"Move"].bind(this)),e(n,"end",this[n+"End"].bind(this)),e(n,"cancel",this[n+"End"].bind(this)),e("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&e("wheel","",this.wheel.bind(this),{passive:!1})}},kQn=class extends t${constructor(){super(...arguments),this.ingKey="moving"}move(e){this.config.mouseOnly&&e.pointerType!=="mouse"||(this.state._active?this.moveChange(e):this.moveStart(e),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(e){this.start(e),this.computeValues(yR(e)),this.compute(e),this.computeInitial(),this.emit()}moveChange(e){if(!this.state._active)return;const n=yR(e),r=this.state;r._delta=xa.sub(n,r._values),xa.addTo(r._movement,r._delta),this.computeValues(n),this.compute(e),this.emit()}moveEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}bind(e){e("pointer","change",this.move.bind(this)),e("pointer","leave",this.moveEnd.bind(this))}},LQn=class extends t${constructor(){super(...arguments),this.ingKey="hovering"}enter(e){this.config.mouseOnly&&e.pointerType!=="mouse"||(this.start(e),this.computeValues(yR(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&e.pointerType!=="mouse")return;const n=this.state;if(!n._active)return;n._active=!1;const r=yR(e);n._movement=n._delta=xa.sub(r,n._values),this.computeValues(r),this.compute(e),n.delta=n.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}},$Qn=e=>e,uLe=.15,Ait={enabled(e=!0){return e},eventOptions(e,n,r){return{...r.shared.eventOptions,...e}},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[uLe,uLe];case!1:return[0,0];default:return xa.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return xa.toVector(e)},transform(e,n,r){const i=e||r.shared.transform;return this.hasCustomTransform=!!i,i||$Qn},threshold(e){return xa.toVector(e,0)}},FQn=0,Pw={...Ait,axis(e,n,{axis:r}){if(this.lockDirection=r==="lock",!this.lockDirection)return r},axisThreshold(e=FQn){return e},bounds(e={}){if(typeof e=="function")return a=>Pw.bounds(e(a));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:n=-1/0,right:r=1/0,top:i=-1/0,bottom:o=1/0}=e;return[[n,r],[i,o]]}},dLe={ArrowRight:(e,n=1)=>[e*n,0],ArrowLeft:(e,n=1)=>[-1*e*n,0],ArrowUp:(e,n=1)=>[0,-1*e*n],ArrowDown:(e,n=1)=>[0,e*n]},BQn=class extends t${constructor(){super(...arguments),this.ingKey="dragging"}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),i={left:n.left-r.left+e.offset[0],right:n.right-r.right+e.offset[0],top:n.top-r.top+e.offset[1],bottom:n.bottom-r.bottom+e.offset[1]};e._bounds=Pw.bounds(i)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,r=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const i=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(i&&i.size>1&&r._pointerActive)&&(this.start(e),this.setupPointer(e),r._pointerId=AJ(e),r._pointerActive=!0,this.computeValues(yR(e)),this.computeInitial(),n.preventScrollAxis&&Iit(e)!=="mouse"?(r._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,r=this.config;if(!n._pointerActive)return;const i=AJ(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;const o=yR(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=xa.sub(o,n._values),this.computeValues(o)),xa.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const i=AJ(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,a]=n._distance;if(n.tap=o<=r.tapsThreshold&&a<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[s,l]=n._delta,[c,u]=n._movement,[d,f]=r.swipe.velocity,[p,h]=r.swipe.distance,g=r.swipe.duration;if(n.elapsedTime<g){const v=Math.abs(s/n.timeDelta),y=Math.abs(l/n.timeDelta);v>d&&Math.abs(c)>p&&(n.swipe[0]=Math.sign(s)),y>f&&Math.abs(u)>h&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,r=n.device;n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,jQn(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=dLe[e.key];if(n){const r=this.state,i=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=n(this.config.keyboardDisplacement,i),r._keyboardActive=!0,xa.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in dLe&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}};function jQn(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}var UQn=Pw,HQn=Pw,n$=typeof window<"u"&&window.document&&window.document.createElement;function Dit(){return n$&&"ontouchstart"in window}function zQn(){return Dit()||n$&&window.navigator.maxTouchPoints>1}function VQn(){return n$&&"onpointerdown"in window}function GQn(){return n$&&"exitPointerLock"in window.document}function WQn(){try{return"constructor"in GestureEvent}catch{return!1}}var up={isBrowser:n$,gesture:WQn(),touch:Dit(),touchscreen:zQn(),pointer:VQn(),pointerLock:GQn()},YQn={...Ait,device(e,n,{shared:r,pointer:{touch:i=!1}={}}){if(r.target&&!up.touch&&up.gesture)return"gesture";if(up.touch&&i)return"touch";if(up.touchscreen){if(up.pointer)return"pointer";if(up.touch)return"touch"}},bounds(e,n,{scaleBounds:r={},angleBounds:i={}}){const o=s=>{const l=cLe(_j(r,s),{min:-1/0,max:1/0});return[l.min,l.max]},a=s=>{const l=cLe(_j(i,s),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof r!="function"&&typeof i!="function"?[o(),a()]:s=>[o(s),a(s)]},threshold(e,n,r){return this.lockDirection=r.axis==="lock",xa.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}},qQn={...Pw,mouseOnly:(e=!0)=>e},KQn={...Pw,mouseOnly:(e=!0)=>e},XQn=250,QQn=180,ZQn=.5,JQn=50,eZn=250,tZn=10,fLe={mouse:0,touch:0,pen:8},nZn={...Pw,device(e,n,{pointer:{touch:r=!1,lock:i=!1,mouse:o=!1}={}}){return this.pointerLock=i&&up.pointerLock,up.touch&&r?"touch":this.pointerLock?"mouse":up.pointer&&!o?"pointer":up.touch?"touch":"mouse"},preventScrollAxis(e,n,{preventScroll:r}){if(this.preventScrollDelay=typeof r=="number"?r:r||r===void 0&&e?XQn:void 0,!(!up.touchscreen||r===!1))return e||(r!==void 0?"y":void 0)},pointerCapture(e,n,{pointer:{capture:r=!0,buttons:i=1,keys:o=!0}={}}){return this.pointerButtons=i,this.keys=o,!this.pointerLock&&this.device==="pointer"&&r},threshold(e,n,{filterTaps:r=!1,tapsThreshold:i=3,axis:o=void 0}){const a=xa.toVector(e,r?i:o?1:0);return this.filterTaps=r,this.tapsThreshold=i,a},swipe({velocity:e=ZQn,distance:n=JQn,duration:r=eZn}={}){return{velocity:this.transform(xa.toVector(e)),distance:this.transform(xa.toVector(n)),duration:r}},delay(e=0){switch(e){case!0:return QQn;case!1:return 0;default:return e}},axisThreshold(e){return e?{...fLe,...e}:fLe},keyboardDisplacement(e=tZn){return e}},Tme=new Map,use=new Map;function rZn(e){Tme.set(e.key,e.engine),use.set(e.key,e.resolver)}var iZn={key:"drag",engine:BQn,resolver:nZn},oZn={key:"hover",engine:LQn,resolver:KQn},aZn={key:"move",engine:kQn,resolver:qQn},sZn={key:"pinch",engine:DQn,resolver:YQn},lZn={key:"scroll",engine:MQn,resolver:HQn},cZn={key:"wheel",engine:NQn,resolver:UQn},uZn=class{constructor(){this._timeouts=new Map}add(e,n,r=140,...i){this.remove(e),this._timeouts.set(e,window.setTimeout(n,r,...i))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}},kit=class{constructor(e,n){this._listeners=new Set,this._ctrl=e,this._gestureKey=n}add(e,n,r,i,o){const a=this._listeners,s=bQn(n,r),c={...this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},...o};e.addEventListener(s,i,c);const u=()=>{e.removeEventListener(s,i,c),a.delete(u)};return a.add(u),u}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}},dZn={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=up.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:n=!1}={}){return{passive:e,capture:n}},transform(e){return e}};function tF(e={},n){const r={};for(const[i,o]of Object.entries(n))switch(typeof o){case"function":r[i]=o.call(r,e[i],i,e);break;case"object":r[i]=tF(e[i],o);break;case"boolean":o&&(r[i]=e[i]);break}return r}function fZn(e,n,r={}){const{target:i,eventOptions:o,window:a,enabled:s,transform:l,...c}=e;if(r.shared=tF({target:i,eventOptions:o,window:a,enabled:s,transform:l},dZn),n){const u=use.get(n);r[n]=tF({shared:r.shared,...c},u)}else for(const u in c){const d=use.get(u);d&&(r[u]=tF({shared:r.shared,...c[u]},d))}return r}var pZn=class{constructor(e){this.gestures=new Set,this._targetEventStore=new kit(this),this.gestureEventStores={},this.gestureTimeoutStores={},this.handlers={},this.config={},this.pointerIds=new Set,this.touchIds=new Set,this.state={shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}},hZn(this,e)}setEventIds(e){if(kV(e))return this.touchIds=new Set(CQn(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=fZn(e,n,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,r={};let i;if(!(n.target&&(i=n.target(),!i))){if(n.enabled){for(const a of this.gestures){const s=this.config[a],l=pLe(r,s.eventOptions,!!i);if(s.enabled){const c=Tme.get(a);new c(this,e,a).bind(l)}}const o=pLe(r,n.eventOptions,!!i);for(const a in this.nativeHandlers)o(a,"",s=>this.nativeHandlers[a]({...this.state.shared,event:s,args:e}),void 0,!0)}for(const o in r)r[o]=OQn(...r[o]);if(!i)return r;for(const o in r){const{device:a,capture:s,passive:l}=_Qn(o);this._targetEventStore.add(i,a,"",r[o],{capture:s,passive:l})}}}};function jx(e,n){e.gestures.add(n),e.gestureEventStores[n]=new kit(e,n),e.gestureTimeoutStores[n]=new uZn}function hZn(e,n){n.drag&&jx(e,"drag"),n.wheel&&jx(e,"wheel"),n.scroll&&jx(e,"scroll"),n.move&&jx(e,"move"),n.pinch&&jx(e,"pinch"),n.hover&&jx(e,"hover")}var pLe=(e,n,r)=>(i,o,a,s={},l=!1)=>{const c=s.capture??n.capture,u=s.passive??n.passive;let d=l?i:vQn(i,o,c);r&&u&&(d+="Passive"),e[d]=e[d]||[],e[d].push(a)},gZn=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function mZn(e){const n={},r={},i=new Set;for(let o in e)gZn.test(o)?(i.add(RegExp.lastMatch),r[o]=e[o]):n[o]=e[o];return[r,n,i]}function Ux(e,n,r,i,o,a){if(!e.has(r)||!Tme.has(i))return;const s=r+"Start",l=r+"End",c=u=>{let d;return u.first&&s in n&&n[s](u),r in n&&(d=n[r](u)),u.last&&l in n&&n[l](u),d};o[i]=c,a[i]=a[i]||{}}function vZn(e,n){const[r,i,o]=mZn(e),a={};return Ux(o,r,"onDrag","drag",a,n),Ux(o,r,"onWheel","wheel",a,n),Ux(o,r,"onScroll","scroll",a,n),Ux(o,r,"onPinch","pinch",a,n),Ux(o,r,"onMove","move",a,n),Ux(o,r,"onHover","hover",a,n),{handlers:a,config:n,nativeHandlers:i}}var yZn=class{constructor(e,n,r,i,o){this._target=e,this._gestureKey=i,this._ctrl=new pZn(n),this._ctrl.applyHandlers(n,o),this._ctrl.applyConfig({...r,target:e},i),this._ctrl.effect()}destroy(){this._ctrl.clean()}setConfig(e){this._ctrl.clean(),this._ctrl.applyConfig({...e,target:this._target},this._gestureKey),this._ctrl.effect()}};function _Zn(e){return e.forEach(rZn),function(n,r,i){const{handlers:o,nativeHandlers:a,config:s}=vZn(r,i||{});return new yZn(n,o,s,void 0,a)}}var Lit=function(e,n,r){return _Zn([iZn,sZn,lZn,cZn,aZn,oZn])(e,n,r||{})},bZn=class extends prt{constructor(e,n){super(),this.target=e,this.config=n,this._pinching=!1,this.preventDefault();const r=new Lit(e,{onPinch:({origin:[i,o],first:a,last:s,movement:[l],offset:[c,u]})=>{this.handlePinch({first:a,last:s,originX:i,originY:o,newScale:c})}},{pinch:{scaleBounds:()=>this.getScaleBounds(),from:()=>[this.config.finalScale,0],modifierKey:["metaKey","ctrlKey"]}});this.toDispose.push(ao.create(()=>{r.destroy()}))}handlePinch(e){const{first:n,last:r,originX:i,originY:o,newScale:a}=e;if(Number.isNaN(e.newScale))return;n&&(this._pinching=!0),r&&(this._pinching=!1);const s=this.config.finalScale,l=this.config.getPosFromMouseEvent({clientX:i,clientY:o},!1),c={x:l.x/s*a,y:l.y/s*a};this.config.updateConfig({scrollX:this.config.config.scrollX+c.x-l.x,scrollY:this.config.config.scrollY+c.y-l.y,zoom:a})}getScaleBounds(){return{min:this.config.config.minZoom,max:this.config.config.maxZoom}}preventDefault(){const e=n=>n.preventDefault();document.addEventListener("gesturestart",e),document.addEventListener("gesturechange",e),this.toDispose.push(ao.create(()=>{document.removeEventListener("gesturestart",e),document.removeEventListener("gesturechange",e)}))}get pinching(){return this._pinching}},SZn=e=>function(n,r){const i=`${r}Provider`;return Ot(e)(n,i),ss()(n,i),{get(){var o;return(o=this[i])==null?void 0:o.call(this)},configurable:!0,enumerable:!0}},EZn=Symbol("LazyInjectContext"),RC=Symbol("PlaygroundContext"),Ome=Symbol("PlaygroundContextProvider"),oN=()=>SZn(Ome),CZn=e=>{e(Ome).toDynamicValue(n=>()=>{if(n.container.isBound(RC))return n.container.get(RC)})},$it=Symbol("PlaygroundContainerFactory"),wZn=Symbol("EntityManagerContribution");function xZn(e){class n extends Pl{getDefaultData(){return e.getDefaultConfig()}checkChanged(i){return e.checkChanged(this.data,i)}toJSON(){return super.toJSON()}}return Object.defineProperty(n,"type",{value:`_${e.type}DataMixin`}),n}var cg=class extends jm{constructor(e){super(e),this.isInitialized=!0,this.ConfigDataRegistry=xZn(this),this.addData(this.ConfigDataRegistry),this.isInitialized=!1}getDefaultConfig(){return{}}checkChanged(e,n){return jm.checkDataChanged(e,n)}get config(){return this.getData(this.ConfigDataRegistry).data}updateConfig(e){this.updateData(this.ConfigDataRegistry,e)}onConfigChanged(e){return this.getData(this.ConfigDataRegistry).onDataChange(n=>e(n.data))}};cg.type="ConfigEntity";function TZn(e,n){e(n).toDynamicValue(r=>r.container.get(Lo).createEntity(n)).inSingletonScope()}var Lo=class{constructor(){this.toDispose=new Ei,this.onEntityChangeEmitter=new Hn,this.onEntityLifeCycleEmitter=new Hn,this.onEntityDataChangeEmitter=new Hn,this.registryMap=new Map,this.dataRegistryMap=new Map,this.dataInjectorMap=new Map,this.entityInstanceMap=new Map,this.entityVersionMap=new Map,this.entityDataVersionMap=new Map,this.entityInstanceMapByType=new Map,this.configEntities=new Map,this.onEntityChange=this.onEntityChangeEmitter.event,this.onEntityDataChange=this.onEntityDataChangeEmitter.event,this.onEntityLifeCycleChange=this.onEntityLifeCycleEmitter.event,this.changeEntityLocked=!1,this.schedule=new dQn,this.fireEntityChanged=e=>{const n=typeof e=="string"?e:e.type;let r=this.entityVersionMap.get(n)||0;r===Number.MAX_SAFE_INTEGER&&(r=0),this.entityVersionMap.set(n,r+1),!this.changeEntityLocked&&this.schedule.push(n,()=>{this.onEntityChangeEmitter.fire(n)})},this.fireEntityDataChanged=(e,n)=>{let r=this.entityDataVersionMap.get(n)||0;r===Number.MAX_SAFE_INTEGER&&(r=0),this.entityDataVersionMap.set(n,r+1),this.schedule.push(`${e}/${n}`,()=>{this.onEntityDataChangeEmitter.fire({entityType:e,entityDataType:n})})},this.fireEntityLifeCycleChanged=({type:e,entity:n})=>{this.schedule.push(`${e}/${n.id}`,()=>{this.onEntityLifeCycleEmitter.fire({type:e,entity:n})})},this.toDispose.pushAll([this.onEntityChangeEmitter,this.schedule])}init(){this.contributions.forEach(e=>{var n;return(n=e.registerEntityManager)==null?void 0:n.call(e,this)})}createEntity(e,n){if(!e.type)throw new Error(`[EntityManager] createEntity need a type: ${e}`);if(this.configEntities.has(e.type))return this.configEntities.get(e.type);const r={entityManager:this,savedInManager:!0,...n},i=new e(r);return r.savedInManager&&this.saveEntity(i),i}isConfigEntity(e){return this.configEntities.has(e)}removeEntities(e){for(const n of this.getEntities(e).values())n.dispose()}removeEntityById(e){const n=this.getEntityById(e);return n?(n.dispose(),!0):!1}resetEntities(e){this.getEntities(e).forEach(r=>{r.reset()})}resetEntity(e,n){const r=this.getEntity(e,n);r==null||r.reset()}updateConfigEntity(e,n){const r=this.configEntities.get(e.type);r&&r.updateConfig(n)}getRegistryByType(e){return this.registryMap.get(e)}registerEntity(e){if(!e.type)throw new Error(`Registry entity need a type: ${e.name}`);const n=this.registryMap.get(e.type);if(n){if(n!==e)throw new Error(`Entity registry ${e.type} need a new type`);return}this.registryMap.set(e.type,e)}registerEntityData(e,n){if(!e.type)throw new Error(`Registry entity data need a type: ${e.name}`);this.dataRegistryMap.get(e.type)||this.dataRegistryMap.set(e.type,e),!this.dataInjectorMap.get(e.type)&&n&&this.dataInjectorMap.set(e.type,n)}getDataRegistryByType(e){return this.dataRegistryMap.get(e)}getEntityById(e){return this.entityInstanceMap.get(e)}getEntity(e,n){const r=this.getEntities(e)[0];return!r&&n?this.createEntity(e):r}getEntities(e){return this.entityInstanceMapByType.get(e.type)||[]}getEntityDatas(e,n){return this.getEntities(e).map(r=>r.getData(n)).filter(r=>!!r)}hasEntity(e){return!!this.getEntity(e)}storeState({configOnly:e=!0}={}){const n=[];for(const r of this.entityInstanceMap.values())if((!e||r instanceof cg)&&r.toJSON&&r.toJSON){const i=r.toJSON();i&&n.push(i)}return n}restoreState(e){!e||!Array.isArray(e)||e.forEach(n=>{if(!n||!n.type||!n.id)return;const r=this.getRegistryByType(n.type);if(!r){console.warn(`Playground entity registry lost: ${n.type}`);return}const i=this.createEntity(r,{id:n.id});i.fromJSON&&i.fromJSON(n)})}saveEntity(e){const{id:n}=e;if(n&&this.entityInstanceMap.has(n)){console.error(`Entity ${e.type} ${n} is created before`);return}this.entityInstanceMap.set(e.id,e);let r=this.entityInstanceMapByType.get(e.type);r||(r=[],this.entityInstanceMapByType.set(e.type,r)),e instanceof cg&&this.configEntities.set(e.type,e),r.push(e),e.onEntityChange(i=>{this.fireEntityChanged(i),this.fireEntityLifeCycleChanged({type:"update",entity:i})}),e.onDataChange(i=>{this.fireEntityDataChanged(e.type,i.data.type)}),e.toDispose.push(ao.create(()=>{this.removeEntity(e),this.fireEntityLifeCycleChanged({type:"delete",entity:e})})),e.getDefaultDataRegistries().forEach(i=>this.fireEntityDataChanged(e.type,i.type)),this.fireEntityChanged(e),this.fireEntityLifeCycleChanged({type:"add",entity:e})}removeEntity(e){if(this.entityInstanceMap.has(e.id)&&this.entityInstanceMapByType.has(e.type)){const n=this.entityInstanceMapByType.get(e.type);n.indexOf(e)!==-1&&(this.entityInstanceMapByType.set(e.type,n.filter(i=>i!==e)),this.entityInstanceMap.delete(e.id),this.configEntities.has(e.type)&&this.configEntities.delete(e.type),this.fireEntityChanged(e))}}reset(){for(const e of this.entityInstanceMap.values())e.reset()}getEntityVersion(e){return this.entityVersionMap.get(typeof e=="string"?e:e.type)||0}getEntityDataVersion(e){return this.entityDataVersionMap.get(typeof e=="string"?e:e.type)||0}dispose(){this.toDispose.dispose()}getDataInjector(e){return this.dataInjectorMap.get(typeof e=="string"?e:e.type)}getService(e){var n;return(n=this.containerFactory)==null?void 0:n.get(e)}};co([E_(wZn),ss()],Lo.prototype,"contributions",2);co([oN()],Lo.prototype,"context",2);co([Ot($it),ss()],Lo.prototype,"containerFactory",2);co([Zc()],Lo.prototype,"init",1);Lo=co([Pn()],Lo);var Rme=Symbol("EntitiesDecorator"),Fit=Symbol("EntitiesByDataDecorator"),Bit=Symbol("PropertiesInjected");function jit(e,n){return Reflect.getMetadata(n,e.prototype)||[]}function Uit(e){return Reflect.getMetadata(Bit,e)||[]}function OZn(e,n){const r=Uit(e);r.push(n),Reflect.defineMetadata(Bit,r,e)}function RZn(e){typeof e=="object"&&Uit(e.constructor.prototype).forEach(r=>{e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r]})}function Ime(e,n,r,i){return(o,a)=>{let s=Reflect.getMetadata(e,o);if(s||(s=[],Reflect.defineMetadata(e,s,o)),Array.isArray(n)||(n=[n]),n.forEach(l=>{s.includes(l)||s.push(l)}),a&&r)return OZn(o,a),{enumerable:!1,configurable:!1,get(){return r(this,a)}}}}function IZn(e){return jit(e,Rme)}function NZn(e){return jit(e,Fit)}function zo(e){return Ime(Rme,e,r=>r.observeManager.get(e))}function Nme(e){return Ime(Rme,e,r=>r.observeManager.getEntities(e))}function cv(e,n){return Ime(Fit,{entity:e,data:n},i=>i.observeManager.getEntityDatas(e,n))}var MZn=Symbol("ProtectWheelArea"),Mme=(e=>(e[e.BASE_LAYER=-2]="BASE_LAYER",e[e.TOOL_LAYER=-1]="TOOL_LAYER",e[e.NORMAL_LAYER=0]="NORMAL_LAYER",e))(Mme||{}),Pme=Symbol("PipelineLayerFactory"),ug=class{constructor(){this.onSelectionChangedEmitter=new Hn,this.onSelectionChanged=this.onSelectionChangedEmitter.event,this.currentSelection=[],this.disposers=[]}get selection(){return this.currentSelection}isEmpty(){return this.currentSelection.length===0}set selection(e){k0.isArrayShallowChanged(this.currentSelection,e)&&(this.disposers.forEach(n=>n.dispose()),this.changeSelection(e),this.disposers=this.currentSelection.map(n=>n.onDispose(()=>{const r=this.currentSelection.filter(i=>i!==n);this.changeSelection(r)})))}changeSelection(e){this.currentSelection=e,this.onSelectionChangedEmitter.fire(this.currentSelection)}dispose(){this.onSelectionChangedEmitter.dispose()}};ug=co([Pn()],ug);var PZn=Symbol("StorageService"),bj=class{constructor(){this._prefix="__gedit:"}setData(e,n){this.storage[this.prefix(e)]=JSON.stringify(n)}getData(e,n){const r=this.storage[this.prefix(e)];return r===void 0?n:JSON.parse(r)}prefix(e){return`${this._prefix}${e}`}setPrefix(e){this._prefix=e}init(){typeof window<"u"&&window.localStorage?this.storage=window.localStorage:this.storage={}}};co([Zc()],bj.prototype,"init",1);bj=co([Pn()],bj);var Hit=Symbol("ClipboardService"),dse=class{constructor(){this.onClipboardChangedEmitter=new Hn,this.onClipboardChanged=this.onClipboardChangedEmitter.event}readText(){return this._currentData}writeText(e){this._currentData!==e&&(this._currentData=e,this.onClipboardChangedEmitter.fire(e))}};dse=co([Pn()],dse);var dD=class{get rightPanelVisible(){return this.isRightPanelVisible}set rightPanelVisible(e){this.isRightPanelVisible=e}};dD=co([Pn()],dD);var Sj=class{constructor(){this.onLoggerEmitter=new Hn,this.onLogger=this.onLoggerEmitter.event}onAllLayersRendered(){this.onLoggerEmitter.fire({event:0})}onFlushRequest(e){if(e<=0)return;const n=1e3/e;this.onLoggerEmitter.fire({event:1,props:{rfi:e,fps:n}})}dispose(){this.onLoggerEmitter.dispose()}};Sj=co([Pn()],Sj);function AZn({originRenderer:e,renderedCb:n}){return m.useEffect(()=>{n()},[]),e()||null}function DZn(e,n,r,i){let o=fj;function a(){const[,s]=m.useState({}),l=m.useCallback(()=>{r(e)},[e]);m.useEffect(()=>(o=()=>s({}),()=>{o=fj}));let c;try{c=i.isReady?V.createElement(AZn,{originRenderer:n,renderedCb:l}):V.createElement(V.Fragment,null)}catch(u){console.error(`Render Layer "${e.constructor.name}" error `,u),c=V.createElement(V.Fragment,null)}return Gl.createPortal(c,e.node)}return{autorun:()=>o(),portal:e.renderWithReactMemo?V.memo(a):a}}var _R=class{constructor(){this.layerEntitiesSelectorMap=new WeakMap,this.entityLayerMap=new Map,this.ableLayerMap=new Map}subscribeEntities(e,n){const r=this.getSelector(e);n.forEach(i=>{r.entities.includes(i)||r.entities.push(i);let o=this.entityLayerMap.get(i.type);o||(o=new Set,this.entityLayerMap.set(i.type,o)),o.add(e)})}subscribleEntityByData(e,n,r){const i=this.getSelector(e);let o=this.entityLayerMap.get(n.type);o||(o=new Set,this.entityLayerMap.set(n.type,o)),o.add(e);const a=[n,r];i.datas.find(s=>s[0]===n&&s[1]===r)||i.datas.push(a)}getSelector(e){let n=this.layerEntitiesSelectorMap.get(e);return n||(n={entities:[],datas:[]},this.layerEntitiesSelectorMap.set(e,n)),n}getLayerEntities(e){const n=this.layerEntitiesSelectorMap.get(e);if(!n)return{entities:[],changed:!1};const r=new Set,i=new Map;let o=!1;n.entities.forEach(s=>{const l=this.entityManager.getEntities(s),c=this.entityManager.getEntityVersion(s);i.set(s.type,c);for(const u of l)r.add(u)});const a=[];for(const s of r.values())a.push(s);return hLe(i,n.lastEntityVersion)&&(n.lastEntityVersion=i,o=!0),{entities:a,changed:o}}getLayerEntityDatas(e){const n=this.layerEntitiesSelectorMap.get(e);if(!n)return{datas:[],changed:!1};const r=[],i=new Map;let o=!1;return n.datas.forEach(a=>{const[s,l]=a,c=this.entityManager.getEntityDatas(s,l),u=this.entityManager.getEntityDataVersion(l);i.set(l.type,u);for(const d of c)r.push(d)}),hLe(i,n.lastDataVersion)&&(n.lastDataVersion=i,o=!0),{datas:r,changed:o}}getLayerData(e){const n=this.getLayerEntities(e),r=this.getLayerEntityDatas(e);return{observeEntities:n.entities,observeDatas:r.datas,changed:r.changed||n.changed}}};co([Ot(Lo)],_R.prototype,"entityManager",2);_R=co([Pn()],_R);function hLe(e=new Map,n=new Map){if(e.size!==n.size)return!0;for(const r of e.keys())if(e.get(r)!==n.get(r))return!0;return!1}var kZn="flush-layer-request",LZn=0,gLe=class extends TC.ConflatableMessage{constructor(e){super(`${kZn}_layer${LZn++}`),this.layer=e}},IC=class{constructor(e,n){this.selector=e,this.isReady=!1,this.onAllLayersRenderedEmitter=new Hn,this.toDispose=new Ei,this.layers=[],this.forceUpdates=new Set,this.layerAutorunMap=new Map,this.layerRenderedMap=new Map,this.layerFlushMessages=new Map,this.reactPortals=[],this.node=Tr.createDivWithClass("gedit-playground-pipeline"),this.onAllLayersRendered=this.onAllLayersRenderedEmitter.event,this.toDispose.push(n.onEntityChange(r=>{const i=this.selector.entityLayerMap.get(r);i&&i.forEach(o=>this.updateLayer(o))})),this.toDispose.push(this.onAllLayersRenderedEmitter)}reportLayerRendered(e){this.layerRenderedMap.set(e,!0),Array.from(this.layerRenderedMap.values()).every(r=>r)&&(this.loggerService.onAllLayersRendered(),this.onAllLayersRenderedEmitter.fire(),window.REPORT_TTI_FOR_E2E&&window.REPORT_TTI_FOR_E2E(performance.now(),performance.getEntriesByType("resource")))}addLayer(e){if(this.layers.push(e),this.toDispose.push(e),this.layerFlushMessages.set(e,new gLe(e)),e.pipelineNode=this.node,e.playgroundNode=this.node.parentElement,(e.autorun||e.render)&&!e.node&&(e.node=document.createElement("div")),e.node&&(this.node.appendChild(e.node),e.node.classList.add("gedit-playground-layer")),e.autorun){const n=e.autorun.bind(e);this.layerAutorunMap.set(e,n),e.autorun=()=>{this.updateLayer(e,!0)}}else if(e.render){this.layerRenderedMap.set(e,!1);const n=e.render.bind(e),r=DZn(e,n,this.reportLayerRendered.bind(this),this);this.reactPortals.push(r.portal),this.layerAutorunMap.set(e,r.autorun),e.render=()=>{this.updateLayer(e,!0)}}}flush(e){this.layers.forEach(n=>{this.updateLayer(n,e)})}ready(){this.layers.forEach(e=>{this.loadLayerEntities(e),e.onReady&&e.onReady()}),this.isReady=!0,this.flush(!0)}dispose(){this.toDispose.dispose(),this.node.remove()}processMessage(e){e instanceof gLe&&this.onFlushRequest(e.layer)}loadLayerEntities(e){const n=this.selector.getLayerData(e);return n.changed&&e.observeManager.load(n.observeEntities,n.observeDatas),n.changed}onFlushRequest(e){if(!this.isReady||this.toDispose.disposed)return!1;const n=performance.now(),r=()=>{const a=performance.now()-n;a<4||this.loggerService.onFlushRequest(a)},i=this.layerAutorunMap.get(e),o=this.loadLayerEntities(e);if(i&&(o||this.forceUpdates.has(e))){this.forceUpdates.delete(e);try{i()}catch(a){console.error(a)}return r(),!0}return r(),!1}updateLayer(e,n){n&&this.forceUpdates.add(e),TC.MessageLoop.postMessage(this,this.layerFlushMessages.get(e))}toReactComponent(){if(this.reactComp)return this.reactComp;const e=this.reactPortals,n=()=>V.createElement(V.Fragment,null,e.map((r,i)=>V.createElement(r,{key:i})));return this.reactComp=n,n}};co([Ot(Sj)],IC.prototype,"loggerService",2);IC=co([Pn(),qu(0,Ot(_R)),qu(1,Ot(Lo))],IC);var ko;(e=>{e.STATE_SELECT={id:"STATE_SELECT",cursor:"",shortcut:"",cancelMode:"hold"},e.STATE_MOUSE_FRIENDLY_SELECT={id:"STATE_MOUSE_FRIENDLY_SELECT",cursor:"grab",shortcut:"",cancelMode:"hold"},e.STATE_GRAB={id:"STATE_GRAB",cursor:"grab",shortcut:"SPACE",shortcutAutoEsc:!0,shortcutWorksOnlyOnStateChanged:!0,cancelMode:"hold"}})(ko||(ko={}));var $Zn=[ko.STATE_SELECT,ko.STATE_MOUSE_FRIENDLY_SELECT,ko.STATE_GRAB],Um=class extends cg{constructor(e){super(e),this._isPressingSpaceBar=!1,this._isPressingShift=!1,this.states=$Zn.slice(),this.selected=ko.STATE_SELECT.id,this.onStateChangeEmitter=new Hn,this.onStateChange=this.onStateChangeEmitter.event,this.toDispose.push(this.onStateChangeEmitter)}get isPressingSpaceBar(){return this._isPressingSpaceBar}set isPressingSpaceBar(e){this._isPressingSpaceBar=e}get isPressingShift(){return this._isPressingShift}set isPressingShift(e){this._isPressingShift=e}onCancel(e,n){return this.onStateChange(r=>{r.lastState&&r.lastState.id===e&&n()})}getCurrentState(){return this.states.find(e=>e.id===this.selected)}is(e){return this.selected===e}changeState(e,n){const r=this.states.find(i=>i.id===e);if(!r)throw new Error(`Unknown editor state ${e}`);if(this.selected!==e){const i=this.getCurrentState();this.selected=e,this.onStateChangeEmitter.fire({state:r,event:n,lastState:i}),this.fireChange()}}toDefaultState(){this.changeState(ko.STATE_SELECT.id)}registerState(e){this.states.push(e),this.fireChange()}getStates(){return this.states}isMouseFriendlyMode(){return this.getCurrentState()===ko.STATE_MOUSE_FRIENDLY_SELECT}getStateFromShortcut(e){return this.states.find(n=>{if((n.shortcut==="SPACE"?" ":(n.shortcut||"").toLowerCase())===e.key.toLowerCase())return n})}};Um.type="EditorStateConfigEntity";var d5=0,zit=.05,da=class extends cg{constructor(e){super(e),this._loading=!1,this._zoomEnable=!0,this._onReadonlyOrDisabledChangeEmitter=new Hn,this._onGrabDisableChangeEmitter=new Hn,this.onGrabDisableChange=this._onGrabDisableChangeEmitter.event,this.onReadonlyOrDisabledChange=this._onReadonlyOrDisabledChangeEmitter.event,this.cursor="default",this.toDispose.push(this._onReadonlyOrDisabledChangeEmitter)}get grabDisable(){return this.config.grabDisable}set grabDisable(e){this.updateConfig({grabDisable:e})}getDefaultConfig(){return{scrollX:0,scrollY:0,originX:0,originY:0,width:0,height:0,minZoom:.1,maxZoom:2,zoom:1,clientX:0,clientY:0,reverseScroll:!0,overflowX:"scroll",overflowY:"scroll",disabled:!1,readonly:!1,grabDisable:!1,mouseScrollDelta:zit}}addScrollLimit(e){this._scrollLimitFn=e}updateConfig(e){e.zoom!==void 0&&(e={...e,zoom:this.normalizeZoom(e.zoom)}),e={...this.config,...e},e.reverseScroll||(e.scrollX<this.config.originX&&(e.scrollX=this.config.originX),e.scrollY<this.config.originY&&(e.scrollY=this.config.originY)),e.scrollLimitX!==void 0&&e.scrollX<e.scrollLimitX&&(e.scrollX=e.scrollLimitX),e.scrollLimitY!==void 0&&e.scrollY<e.scrollLimitY&&(e.scrollY=e.scrollLimitY),e.overflowX==="hidden"&&(e.scrollX=this.config.originX),e.overflowY==="hidden"&&(e.scrollY=this.config.originY);const{readonly:n,disabled:r,grabDisable:i}=this;super.updateConfig(this._scrollLimitFn?{...e,...this._scrollLimitFn({scrollX:e.scrollX,scrollY:e.scrollY})}:e),(n!==this.readonly||r!==this.disabled)&&this._onReadonlyOrDisabledChangeEmitter.fire({readonly:this.readonly,disabled:this.disabled}),i!==this.grabDisable&&this._onGrabDisableChangeEmitter.fire(this.grabDisable)}get finalScale(){return this.zoomEnable?this.config.zoom:1}get zoom(){return this.zoomEnable?this.config.zoom:1}get scrollData(){return{scrollX:this.config.scrollX,scrollY:this.config.scrollY}}normalizeZoom(e){return this.zoomEnable?(e<this.config.minZoom?e=this.config.minZoom:e>this.config.maxZoom&&(e=this.config.maxZoom),e):1}updateCursor(e){this.cursor!==e&&(this.cursor=e,this.fireChange())}getPosFromMouseEvent(e,n=!0){const{config:r}=this,i=n?this.finalScale:1;return{x:(e.clientX+r.scrollX-r.clientX)/i,y:(e.clientY+r.scrollY-r.clientY)/i}}toFixedPos(e){const{config:n}=this;return{x:e.x-n.scrollX+n.clientX,y:e.y-n.scrollY+n.clientY}}getViewport(e=!0){const{config:n}=this,r=e?this.finalScale:1;return new Qn(n.scrollX/r,n.scrollY/r,n.width/r,n.height/r)}isViewportVisible(e,n=0,r=!1){return Qn.isViewportVisible(e,this.getViewport(),n,r)}scrollToView(e={}){const{scrollDelta:n,position:r,easing:i=!0,easingDuration:o=300,entities:a}=e,{config:s}=this,l=e.zoom?e.zoom:this.finalScale;let c;if(a&&a.length>0){const d=a.map(f=>{const p=f.getData(Ui);if(p)return p.bounds;const h=f.getData(qb),g=f.getData(iy)||{width:0,height:0};if(h)return new Qn(h.x,h.y,g.width,g.height||0)}).filter(f=>!!f);d.length>0&&(c=Qn.enlarge(d))}else r?c=new Qn(r.x,r.y,0,0):e.bounds&&(c=e.bounds);if(!c){const d=this.getDefaultConfig();c=new Qn((d.scrollX+s.width/2)/l,(d.scrollY+s.height/2)/l,0,0)}if(!e.scrollToCenter&&this.getViewport().containsRectangle(c))return Promise.resolve();const u={scrollX:(c.x+c.width/2+(n?n.x:0))*l-s.width/2,scrollY:(c.y+c.height/2+(n?n.y:0))*l-s.height/2,zoom:e.zoom};return this.scroll(u,i,o)}setPageBounds(e){this.updateConfig({pageBounds:{x:e.x,y:e.y,width:e.width,height:e.height}})}getPageBounds(){const{pageBounds:e}=this.config;if(e)return new Qn(e.x,e.y,e.width,e.height)}scrollPageBoundsToCenter(e=!0,n=16,r=!0){const i=this.getPageBounds();if(i){let o;const a=n*2;return e&&(o=vR.fixSize({width:i.width,height:i.height},{width:a>this.config.width?a:this.config.width-a,height:a>this.config.height?a:this.config.height-a})),this.scrollToView({bounds:i,zoom:o,scrollToCenter:!0,easing:r})}return this.scrollToView({easing:r})}scroll(e,n=!0,r=300){const i=new pj;if(this.cancelScrollTeeen&&this.cancelScrollTeeen.dispose(),n){const o={scrollX:this.config.scrollX,scrollY:this.config.scrollY,zoom:this.config.zoom};this.cancelScrollTeeen=xme({from:o,to:{...o,...e},onUpdate:a=>{this.updateConfig(a)},onComplete:()=>{this.cancelScrollTeeen=void 0,i.resolve()},onDispose:()=>{i.resolve()},duration:r})}else this.updateConfig(e),i.resolve();return i.promise}fixLayerPosition(e){Tr.setStyle(e,{left:this.config.scrollX,top:this.config.scrollY})}get loading(){return this._loading}set loading(e){this.loading!==e&&(this._loading=e,this.fireChange())}get zoomEnable(){return this._zoomEnable}set zoomEnable(e){this._zoomEnable!==e&&(this._zoomEnable=e,this.fireChange())}zoomin(e,n){const r=this.config.zoom/10,i=Math.ceil((this.config.zoom+r)*10)/10;this.updateZoom(i,e,n)}zoomout(e,n){const r=this.config.zoom/10,i=Math.floor((this.config.zoom-r)*10)/10;this.updateZoom(i,e,n)}updateZoom(e,n=!0,r=200){e=this.normalizeZoom(e);const{center:i}=this.getViewport(),o=this.finalScale,a=this.zoomEnable?e:o;if(a!==o){const s={x:i.x*a-i.x*o,y:i.y*a-i.y*o};this.scroll({scrollX:this.config.scrollX+s.x,scrollY:this.config.scrollY+s.y,zoom:e},n,r)}}get disabled(){return this.config.disabled}get readonly(){return this.config.readonly}get readonlyOrDisabled(){return this.config.readonly||this.config.disabled}set readonly(e){this.updateConfig({readonly:e})}set disabled(e){this.updateConfig({disabled:e})}fitView(e,n=!0,r=0){const i=this.getViewport(!1),o=vR.fixSize(e.pad(r,r),i);return this.scrollToView({bounds:e,zoom:o,easing:n,scrollToCenter:!0})}};da.type="PlaygroundConfigEntity";var Vit=Symbol("LayerOptions"),Oa=class{constructor(){this.toDispose=new Ei,this.renderWithReactMemo=!0}dispose(){this.toDispose.dispose()}createDOMCache(e,n){if(!this.node)throw new Error("DomCache need a parent dom node.");return Tr.createDOMCache(this.node,e,n)}getPosFromMouseEvent(e,n=!0){const r=this.config.getPosFromMouseEvent(e,n);return{x:r.x,y:r.y}}};co([Ot(Vit)],Oa.prototype,"options",2);co([Ot(Lo)],Oa.prototype,"entityManager",2);co([oN()],Oa.prototype,"context",2);Oa=co([Pn()],Oa);var bR=class extends Oa{constructor(){super(...arguments),this.startGrabScroll={scrollX:0,scrollY:0},this.cursorStyle=document.createElement("style"),this.maskNode=document.createElement("div"),this.grabDragger=new Sm({onDragStart:e=>{this.config.grabDisable||(this.config.updateCursor("grabbing"),this.startGrabScroll={scrollX:this.config.config.scrollX,scrollY:this.config.config.scrollY})},onDrag:e=>{this.config.grabDisable||this.config.updateConfig({scrollX:this.startGrabScroll.scrollX-e.endPos.x+e.startPos.x,scrollY:this.startGrabScroll.scrollY-e.endPos.y+e.startPos.y})},onDragEnd:e=>{this.isGrab()&&this.config.updateCursor("grab"),e.button===1&&(this.isMouseMode()?(this.editorStateConfig.changeState(ko.STATE_MOUSE_FRIENDLY_SELECT.id),this.config.updateCursor("grab")):(this.editorStateConfig.toDefaultState(),this.config.updateCursor("")))}})}onReady(){if(this.options={preventGlobalGesture:!1,...this.options},this.options.preventGlobalGesture){const e=new Lit(document.body,{onPinch:()=>{}});document.documentElement&&(document.documentElement.style.overscrollBehaviorX="none"),document.body.style.overscrollBehaviorX="none",this.toDispose.push(ao.create(()=>e.destroy()))}this.toDispose.pushAll([this.config.onGrabDisableChange(e=>{e&&this.grabDragger.stop(0,0)}),Tr.addStandardDisposableListener(this.playgroundNode,"wheel",e=>{this.getScrollParent(e.target)||(e.preventDefault(),e.stopPropagation())}),this.listenPlaygroundEvent("wheel",this.handleWheelEvent.bind(this),-2,{passive:!0}),this.listenPlaygroundEvent("mousedown",e=>{const n=e.button===1;n&&!this.isMouseMode()&&this.editorStateConfig.changeState(ko.STATE_GRAB.id),this.isGrab()&&(this.editorStateConfig.isPressingSpaceBar||n)&&this.grabDragger.start(e.clientX,e.clientY)},-2),this.listenPlaygroundEvent("mousedown",e=>{var r,i;const n=(i=(r=this.options)==null?void 0:r.hoverService)==null?void 0:i.isSomeHovered();this.isMouseMode()&&!n&&!this.editorStateConfig.isPressingShift&&this.grabDragger.start(e.clientX,e.clientY)},0),this.editorStateConfig.onStateChange(this.onStateChanged.bind(this)),this.listenGlobalEvent("keydown",e=>{e.shiftKey&&(this.editorStateConfig.isPressingShift=!0,this.isMouseMode()&&this.config.updateCursor(""))},-2),this.listenGlobalEvent("keypress",e=>{if(!this.isFocused||e.target!==this.playgroundNode||this.isMouseMode())return;const n=this.editorStateConfig.getStateFromShortcut(e);e.key===" "&&(this.editorStateConfig.isPressingSpaceBar=!0),!((n==null?void 0:n.shortcutWorksOnlyOnStateChanged)===!0&&n===this.editorStateConfig.getCurrentState())&&(this.lastShortcutState=n,n&&this.editorStateConfig.changeState(n.id))},-2),this.listenGlobalEvent("keyup",e=>{e.key===" "&&(this.editorStateConfig.isPressingSpaceBar=!1),this.editorStateConfig.isPressingShift=!1,this.lastShortcutState&&this.lastShortcutState.shortcutAutoEsc&&this.editorStateConfig.toDefaultState(),this.lastShortcutState=void 0}),{dispose:()=>{this.maskNode.parentNode&&this.maskNode.parentNode.removeChild(this.maskNode),this.cursorStyle.parentNode&&this.cursorStyle.parentNode.removeChild(this.cursorStyle)}}]),this.options.ineractiveType==="MOUSE"&&this.editorStateConfig.changeState(ko.STATE_MOUSE_FRIENDLY_SELECT.id)}getCursor(e){var n,r,i;return e?((i=(r=(n=this.playgroundConfigEntity).getCursors)==null?void 0:r.call(n))==null?void 0:i[e])??e:""}isMouseMode(){return this.editorStateConfig.isMouseFriendlyMode()}onStateChanged(e){const{state:n}=e;if(this.cancelStateListen&&(this.cancelStateListen.dispose(),this.cancelStateListen=void 0),n.handle&&n.handle(this.config,e),n.cursor?(this.playgroundConfigEntity.updateCursor(n.cursor),this.currentGesture&&this.currentGesture.target.parentNode&&(this.currentGesture.target.parentNode.style.cursor=this.getCursor(n.cursor))):(this.playgroundConfigEntity.updateCursor(""),this.currentGesture&&this.currentGesture.target.parentNode&&(this.currentGesture.target.parentNode.style.cursor="")),n.cursor==="grab"||n.cursor==="grabbing"){if(n===ko.STATE_MOUSE_FRIENDLY_SELECT)return;this.maskNode.style.cssText=`
|
||
position: absolute;
|
||
width: 100%;
|
||
height: 100%;
|
||
z-index: 100;
|
||
`,this.playgroundNode.appendChild(this.maskNode)}else this.maskNode.parentNode&&this.maskNode.parentNode.removeChild(this.maskNode);n.cancelMode==="esc"?this.cancelStateListen=Tr.addStandardDisposableListener(document.body,"keydown",r=>{(r.key==="Escape"||r.key==="Enter")&&this.editorStateConfig.toDefaultState()},!0):n.cancelMode==="once"&&this.editorStateConfig.toDefaultState()}isGrab(){const e=this.editorStateConfig.getCurrentState();return e===ko.STATE_GRAB||e===ko.STATE_MOUSE_FRIENDLY_SELECT}createGesture(){this.currentGesture||(this.currentGesture=new bZn(this.pipelineNode.parentElement,this.config),this.currentGesture.onDispose(()=>{this.currentGesture=void 0}),this.toDispose.push(this.currentGesture))}onResize(e){this.size={...e},this.updateSizeWithRulerConfig()}updateSizeWithRulerConfig(){const{size:e}=this;e&&this.config.updateConfig({width:e.width,height:e.height,clientX:e.clientX,clientY:e.clientY})}handleScrollEvent(e){const{playgroundConfigEntity:n}=this,r=n.config.scrollX+e.deltaX,i=n.config.scrollY+e.deltaY,o={scrollX:r,scrollY:i};n.updateConfig(o)}getMouseScaleDelta(){const{mouseScrollDelta:e,zoom:n}=this.config.config;return typeof e=="function"?e(n):e??zit}handleWheelEvent(e){const n=e;if(!(this.currentGesture&&this.currentGesture.pinching||e.ctrlKey||e.metaKey)&&!this.getScrollParent(e.target)){if(this.isMouseMode()){const{zoom:r,minZoom:i,maxZoom:o,scrollX:a,scrollY:s}=this.playgroundConfigEntity.config,l=this.getMouseScaleDelta(),c=i,u=o,d=b=>b>0?-l:l,f=Math.abs(n.deltaY)>0?n.deltaY:n.deltaX,p=d(f),h=this.config.finalScale,g=e.clientX,v=e.clientY,y=Math.max(c,Math.min(u,r+p)),_=this.config.getPosFromMouseEvent({clientX:g,clientY:v},!1),S={x:_.x/h*y,y:_.y/h*y};this.config.updateConfig({scrollX:a+S.x-_.x,scrollY:s+S.y-_.y,zoom:y});return}this.handleScrollEvent(n)}}getScrollParent(e){var c;if(!e||e===this.pipelineNode.parentElement)return null;const n=e.scrollWidth>e.clientWidth,r=e.scrollHeight>e.clientHeight,i=window.getComputedStyle(e).overflowX,o=window.getComputedStyle(e).overflowY,a=["auto","scroll","overlay"].includes(i),s=["auto","scroll","overlay"].includes(o);return n&&a||r&&s||(c=this.protectWheelArea)!=null&&c.call(this,e)?e:this.getScrollParent(e.parentElement)}autorun(){const e=this.playgroundConfigEntity.config,{cursor:n}=this.playgroundConfigEntity,r=this.getCursor(n);if(this.config.zoomEnable?this.createGesture():this.currentGesture&&this.currentGesture.dispose(),Tr.setStyle(this.pipelineNode,{left:-e.scrollX,top:-e.scrollY,width:e.width,height:e.height}),this.pipelineNode.parentElement.style.cursor=r,n==="grab"||n==="grabbing"){let i="";this.playgroundNode.classList.forEach(o=>{i+=`.${o}`}),this.cursorStyle.innerText=`.${i} * { cursor: ${r} }`,this.cursorStyle.parentNode||document.head.appendChild(this.cursorStyle)}else this.cursorStyle.parentNode&&this.cursorStyle.parentNode.removeChild(this.cursorStyle)}};co([zo(da)],bR.prototype,"playgroundConfigEntity",2);co([zo(Um)],bR.prototype,"editorStateConfig",2);co([ss(),Ot(MZn)],bR.prototype,"protectWheelArea",2);bR=co([Pn()],bR);var FZn=class{constructor(e){this.entityManager=e,this.observeEntities=[],this.observeDatas=[],this.entitiesTypeCache=new Map,this.entitiesAbleCache=new Map,this.entitiyDataCache=new Map}get size(){return this.observeEntities.length}load(e,n){this.observeEntities=e,this.observeDatas=n,this.entitiesTypeCache.clear(),this.entitiesAbleCache.clear(),this.entitiyDataCache.clear()}get(e,n){const r=this.getEntities(e);return n!==void 0?r.find(i=>i.id===n):r[0]}has(e){return!!this.get(e)}getEntities(e){let n=this.entitiesTypeCache.get(e);return n||(n=[],this.observeEntities.forEach(r=>{r.type===e.type&&n.push(r)}),this.entitiesTypeCache.set(e,n)),n.filter(r=>!r.disposed)}getEntityDatas(e,n){const r=`${e.type}:${n.type}`;let i=this.entitiyDataCache.get(r);return i||(i=this.observeDatas.filter(o=>o.type===n.type&&o.entity.type===e.type),this.entitiyDataCache.set(r,i),i)}updateConfig(e,n){const r=this.get(e);r&&r.updateConfig&&r.updateConfig(n)}getConfig(e){const n=this.get(e);if(n)return n.config}createEntity(e,n){return this.entityManager.createEntity(e,n)}removeEntities(e){this.entityManager.removeEntities(e)}[Symbol.iterator](){let e=0;const n=this.observeEntities.length;return{next:()=>{const r=e++,i=r===n;return{value:this.observeEntities[r],done:i}}}}},BZn=new TC.ConflatableMessage("PIPELINE_ZOOM"),jZn=new TC.ConflatableMessage("PIPELINE_SCROLL"),Mp=class{constructor(){this._isFocused=!1,this.toDispose=new Ei,this.allLayersMap=new Map,this.onResizeEmitter=new Hn,this.onFocusEmitter=new Hn,this.onBlurEmitter=new Hn,this.onZoomEmitter=new Hn,this.onScrollEmitter=new Hn,this.onFocus=this.onFocusEmitter.event,this.onBlur=this.onBlurEmitter.event,this.onZoom=this.onZoomEmitter.event,this.onScroll=this.onScrollEmitter.event,this.playgroundEvents={},this.globalEvents={},this.onResize=this.onResizeEmitter.event,this.toDispose.pushAll([this.onResizeEmitter,this.onFocusEmitter,this.onZoomEmitter,this.onBlurEmitter,this.onScrollEmitter]),this.onFocusEmitter.event(()=>{this._isFocused=!0}),this.onBlurEmitter.event(()=>{this._isFocused=!1})}_listenEvent(e,n,r,i=0,o){const a=r?this.globalEvents:this.playgroundEvents,s=r?document:this.renderer.node.parentNode;let l=a[e];if(!l){const f={handleEvent:p=>{const h=l.handlers;for(let g=0,v=h.length;g<v;g++)if(h[g].handle(p))return}};s.addEventListener(e,f,o),l=a[e]={handlers:[],dispose:()=>{s.removeEventListener(e,f),delete a[e]}}}const{handlers:c}=l,u={handle:n,priority:i};c.unshift(u),c.sort((f,p)=>p.priority-f.priority);const d=ao.create(()=>{const f=l.handlers.indexOf(u);f!==-1&&l.handlers.splice(f,1),l.handlers.length===0&&l.dispose()});return this.toDispose.push(d),d}listenPlaygroundEvent(e,n,r,i){return this._listenEvent(e,n,!1,r,i)}listenGlobalEvent(e,n,r,i){return this._listenEvent(e,n,!0,r,i)}registerLayer(e,n){if(this.allLayersMap.has(e))return;const r=this.layerFactory(e,n);this.allLayersMap.set(e,r);const i=IZn(e),o=NZn(e);if(i.forEach(a=>{this.entityManager.registerEntity(a),jm.isRegistryOf(a,cg)&&this.entityManager.createEntity(a)}),o.forEach(a=>{this.entityManager.registerEntity(a.entity),this.entityManager.registerEntityData(a.data)}),this.selector.subscribeEntities(r,i),o.forEach(a=>this.selector.subscribleEntityByData(r,a.entity,a.data)),r.observeManager=new FZn(this.entityManager),r.reloadEntities=()=>{const a=this.selector.getLayerData(r);return a.changed&&r.observeManager.load(a.observeEntities,a.observeDatas),a.changed},r.listenPlaygroundEvent=this.listenPlaygroundEvent.bind(this),r.listenGlobalEvent=this.listenGlobalEvent.bind(this),r.config=this.configEntity,r.getOtherLayer=this.getLayer.bind(this),Object.defineProperty(r,"isFocused",{get:()=>this._isFocused}),r.onResize&&this.onResize(r.onResize.bind(r)),r.onBlur&&this.onBlurEmitter.event(r.onBlur.bind(r)),r.onFocus&&this.onFocusEmitter.event(r.onFocus.bind(r)),r.onZoom&&this.onZoomEmitter.event(r.onZoom.bind(r)),r.onScroll&&this.onScrollEmitter.event(r.onScroll.bind(r)),r.onViewportChange){const a=r.onViewportChange.bind(r);this.onResize(a),this.onZoomEmitter.event(a),this.onScrollEmitter.event(a)}r.onReadonlyOrDisabledChange&&this.configEntity.onReadonlyOrDisabledChange(r.onReadonlyOrDisabledChange.bind(r)),this.renderer.addLayer(r)}getLayer(e){return this.allLayersMap.get(e)}get configEntity(){return this.entityManager.getEntity(da,!0)}ready(){const e=this.configEntity;let n=e.finalScale,r=e.scrollData;e.onConfigChanged(()=>{const i=e.finalScale,o=e.scrollData;i!==n&&(n=i,TC.MessageLoop.postMessage(this,BZn)),(r.scrollX!==o.scrollX||r.scrollY!==o.scrollY)&&(r=o,TC.MessageLoop.postMessage(this,jZn))})}processMessage(e){const n=this.configEntity;switch(e.type){case"PIPELINE_SCROLL":this.onScrollEmitter.fire(n.scrollData);break;case"PIPELINE_ZOOM":this.onZoomEmitter.fire(n.finalScale);break}}dispose(){this.toDispose.dispose()}};co([Ot(IC)],Mp.prototype,"renderer",2);co([Ot(_R)],Mp.prototype,"selector",2);co([Ot(Lo)],Mp.prototype,"entityManager",2);co([oN()],Mp.prototype,"context",2);co([Ot(Pme)],Mp.prototype,"layerFactory",2);Mp=co([Pn()],Mp);var UZn=V.createContext({}),Git=V.createContext({}),Wit=V.createContext({}),LV=V.createContext(void 0),aN=Symbol("PlaygroundConfig");function HZn(){return{autoFocus:!0,autoResize:!0,zoomEnable:!0,layers:[]}}var Ame=Symbol("PlaygroundContribution"),NC=class{config(e){Object.assign(this.playgroundConfig,e)}registerLayer(e){this.pipeline.registerLayer(e)}registerEntity(e){this.entityManager.registerEntity(e)}registerEditorState(e){const n=this.entityManager.getEntity(Um);n==null||n.registerState(e)}};co([Ot(Mp)],NC.prototype,"pipeline",2);co([Ot(Lo)],NC.prototype,"entityManager",2);co([Ot(aN)],NC.prototype,"playgroundConfig",2);NC=co([Pn()],NC);var v0=Symbol("PluginContext");function zZn(e,n){const r=new Set,i=new Set;e.reduceRight((a,s)=>{const l=s.singleton&&i.has(s.pluginId);return s.singleton&&i.add(s.pluginId),l?a:[s,...a]},[]).reduce((a,s)=>{if(r.has(s.pluginId)||(s.initPlugin(),r.add(s.pluginId)),s.containerModules&&s.containerModules.length>0){for(let l of s.containerModules)a.includes(l)||a.push(l);return a}return a},[]).forEach(a=>n.load(a)),e.forEach(a=>{if(a.contributionKeys)for(const s of a.contributionKeys)n.bind(s).toConstantValue(a.options)})}function VZn(e,n){return new Zp(r=>{r(Ame).toDynamicValue(i=>{const o=i.container.get(v0);return{onInit:()=>{var a;(a=e.onInit)==null||a.call(e,o,n)},onReady:()=>{var a;(a=e.onReady)==null||a.call(e,o,n)},onDispose:()=>{var a;(a=e.onDispose)==null||a.call(e,o,n)},onAllLayersRendered:()=>{var a;(a=e.onAllLayersRendered)==null||a.call(e,o,n)}}})})}var mLe=0;function pa(e){const{contributionKeys:n,singleton:r=!1}=e;mLe+=1;const i=`Playground_${mLe}`;return o=>{const a=[];let s=!1;return{pluginId:i,singleton:r,initPlugin:()=>{s||(s=!0,e.containerModules&&a.push(...e.containerModules),e.onBind&&a.push(new Zp((l,c,u,d)=>{e.onBind({bind:l,unbind:c,isBound:u,rebind:d},o)})),(e.onInit||e.onDispose||e.onReady||e.onAllLayersRendered)&&a.push(VZn(e,o)))},options:o,contributionKeys:n,containerModules:a}}}var $V=e=>pa(e)(void 0),DJ=new Set,Yit=new Hn,qit=new Hn,yu=class{constructor(e,n,r,i,o,a,s,l,c){this.entityManager=e,this.registry=n,this.contextProvider=r,this.pipelineRenderer=i,this.pipelineRegistry=o,this.playgroundConfig=a,this.contributionProvider=s,this.commandService=l,this.selectionService=c,this.toDispose=new Ei,this._focused=!1,this.playgroundClassName=C_(),this.isReady=!1,this.toDispose.pushAll([this.pipelineRenderer,this.pipelineRegistry,this.entityManager,this.commandService,this.selectionService,ao.create(()=>{DJ.delete(this),this.node.remove(),qit.fire(this)}),i.onAllLayersRendered(()=>{this.contributions.forEach(d=>{var f;return(f=d.onAllLayersRendered)==null?void 0:f.call(d,this)})})]);const u=this.entityManager.createEntity(Um);if(this.entityManager.createEntity(da),this.node=a.node||document.createElement("div"),this.toDispose.pushAll([Tr.addStandardDisposableListener(this.node,"scroll",d=>{this.node.scrollTop=0,this.node.scrollLeft=0,d.preventDefault(),d.stopPropagation()})]),this.node.classList.add("gedit-playground"),this.node.classList.add(this.playgroundClassName),this.node.dataset.testid="sdk.workflow.canvas",a.layers&&a.layers.forEach(d=>this.registry.registerLayer(d)),a.editorStates&&a.editorStates.forEach(d=>u.registerState(d)),a.zoomEnable!==void 0&&(this.zoomEnable=a.zoomEnable),a.entityConfigs)for(const[d,f]of a.entityConfigs){const p=this.entityManager.getEntity(d,!0);p==null||p.updateConfig(f)}this.node.addEventListener("blur",()=>{this.blur()}),this.node.addEventListener("focus",()=>{this.focus()}),this.node.tabIndex=0,this.node.appendChild(this.pipelineRenderer.node),this.onBlur=this.pipelineRegistry.onBlurEmitter.event,this.onFocus=this.pipelineRegistry.onFocusEmitter.event,this.onZoom=this.pipelineRegistry.onZoomEmitter.event,this.onScroll=this.pipelineRegistry.onScrollEmitter.event,DJ.add(this)}static getLatest(){const e=yu.getAllInstances();return e[e.length-1]}static getAllInstances(){const e=[];for(const n of DJ.values())e.push(n);return e}get context(){var e;return(e=this.contextProvider)==null?void 0:e.call(this)}get contributions(){return this.contributionProvider.getContributions()}init(){const{contributions:e}=this;for(const n of e)n.registerPlayground&&n.registerPlayground(this.registry);for(const n of e)n.onInit&&n.onInit(this);Yit.fire(this)}get pipelineNode(){return this.pipelineRenderer.node}setParent(e){e.appendChild(this.node),this.resize()}get zoomEnable(){return this.config.zoomEnable}set zoomEnable(e){this.config.zoomEnable=e}flush(){this.pipelineRenderer.flush()}ready(){if(this.isReady)return;if(this.isReady=!0,this.playgroundConfig.autoResize){const n=Mn.debounce(()=>{this.disposed||this.resize()},0);if(typeof ResizeObserver<"u"){const r=new ResizeObserver(n);r.observe(this.node),this.toDispose.push(ao.create(()=>{r.disconnect()}))}else this.toDispose.push(Tr.addStandardDisposableListener(window.document.body,"resize",n,{passive:!0}));this.toDispose.push(Tr.addStandardDisposableListener(window.document,"scroll",n,{passive:!0})),this.resize()}this.pipelineRegistry.ready(),this.pipelineRenderer.ready();const{contributions:e}=this;for(const n of e)n.onReady&&n.onReady(this)}scrollToView(e){return this.entityManager.getEntity(da).scrollToView(e)}resize(e,n=!0){if(!e){const s=this.node.getBoundingClientRect();e={clientX:s.left,clientY:s.top,width:s.width,height:s.height}}const{width:r,height:i}=this.config.config;if(e.width===0||e.height===0)return;let{scrollX:o,scrollY:a}=this.config.config;n&&r&&Math.round(e.width)!==r&&(o+=(r-e.width)/2),n&&i&&Math.round(e.height)!==i&&(a+=(i-e.height)/2),this.config.updateConfig({...e,scrollX:o,scrollY:a}),this.pipelineRegistry.onResizeEmitter.fire(e)}focus(){this._focused||(this._focused=!0,this.pipelineRegistry.onFocusEmitter.fire())}blur(){this._focused&&(this._focused=!1,this.pipelineRegistry.onBlurEmitter.fire())}get focused(){return this._focused}get config(){return this.entityManager.getEntity(da)}get editorState(){return this.entityManager.getEntity(Um)}getConfigEntity(e){return this.entityManager.getEntity(e,!0)}dispose(){if(this.disposed)return;const{contributions:e}=this;for(const n of e)n.onDispose&&n.onDispose(this);this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}toReactComponent(){return this.pipelineRenderer.toReactComponent()}registerLayer(e,n){this.pipelineRegistry.registerLayer(e,n)}registerLayers(...e){e.forEach(n=>this.pipelineRegistry.registerLayer(n))}getLayer(e){return this.pipelineRegistry.getLayer(e)}get onAllLayersRendered(){return this.pipelineRenderer.onAllLayersRendered}};yu.onInstanceCreate=Yit.event;yu.onInstanceDispose=qit.event;yu=co([Pn(),qu(0,Ot(Lo)),qu(1,Ot(NC)),qu(2,Ot(Ome)),qu(2,ss()),qu(3,Ot(IC)),qu(4,Ot(Mp)),qu(5,Ot(aN)),qu(6,Ot(cme)),qu(6,eit(Ame)),qu(6,ss()),qu(7,Ot(DV)),qu(8,Ot(ug))],yu);function Kit(e){return{container:e,playground:e.get(yu),get(n){return e.get(n)},getAll(n){return e.getAll(n)}}}function Xit(e,n,r={}){const i=e.createChild();i.bind(n).toSelf().inSingletonScope(),i.bind(Vit).toConstantValue(r);const o=i.get(n);return RZn(o),o}var GZn=new Zp(e=>{e(Lo).toSelf().inSingletonScope(),e(IC).toSelf().inSingletonScope(),e(NC).toSelf().inSingletonScope(),e(yu).toSelf().inSingletonScope(),e(_R).toSelf().inSingletonScope(),e(Pme).toDynamicValue(n=>(r,i)=>Xit(n.container,r,i)).inSingletonScope(),e(Mp).toSelf().inSingletonScope(),e($it).toDynamicValue(n=>n.container).inSingletonScope(),e(aN).toConstantValue(HZn()),e(RC).toConstantValue({}),CZn(e),e(Sj).toSelf().inSingletonScope(),e(dD).toSelf().inSingletonScope(),e(ug).toSelf().inSingletonScope(),e(PZn).to(bj).inSingletonScope(),e(Hit).to(dse).inSingletonScope(),TZn(e,da),ume(e,Ame),e(v0).toDynamicValue(n=>Kit(n.container)).inSingletonScope(),e(EZn).toService(v0)});function Qit(e,n,r){const i=r||new yj({defaultScope:"Singleton"});return n&&(i.parent=n),i.load(GZn),i.isBound(DV)||i.load(oQn),e&&(i.rebind(aN).toConstantValue(e),e.context&&i.rebind(RC).toConstantValue(e.context)),i}var Zit=m.forwardRef(function(n,r){const{containerModules:i,playgroundContext:o,parentContainer:a,playgroundContainer:s,plugins:l,customPluginContext:c,...u}=n,d=m.useMemo(()=>{let p;return s?p=s:(p=Qit({autoFocus:!0,autoResize:!0,zoomEnable:!0,...u},a),o&&p.rebind(RC).toConstantValue(o),i&&i.forEach(h=>p.load(h))),p},[]),f=m.useMemo(()=>{const p=d.get(yu);let h;return c?(h=c(d),d.rebind(v0).toConstantValue(h)):h=d.get(v0),l&&zZn(l(h),d),p.init(),p},[]);return m.useImperativeHandle(r,()=>d.get(v0),[]),V.createElement(Git.Provider,{value:d},V.createElement(Wit.Provider,{value:f},V.createElement(UZn.Provider,{value:o},n.children)))});function ec(){return V.useContext(Wit)}function Dme(){return V.useContext(Git)}function kme(e=!1){const n=Dme().get(Lo),r=m.useContext(LV);if(!r)throw new Error('[useEntityFromContext] Unknown entity from "PlaygroundEntityContext"');const i=Od(r.version);return m.useLayoutEffect(()=>{let o;return e&&(o=r.onEntityChange(()=>i(r.version))),()=>o==null?void 0:o.dispose()},[n,i,r,e]),r}function WZn(...e){const n=Od();m.useLayoutEffect(()=>{const r=new Ei;return r.pushAll(e.map(i=>i(()=>n()))),()=>r.dispose()},[e,n])}function Di(e){return Dme().get(e)}var Lme=e=>{const n=ec(),r=Di(aN),i=m.useRef();m.useEffect(()=>{if(i.current)return n.setParent(i.current),n.ready(),r.autoFocus&&n.node.focus(),()=>{n.dispose()}},[]);const o=n.toReactComponent();return V.createElement(V.Fragment,null,V.createElement("div",{ref:i,className:`gedit-playground-container${e.className?` ${e.className}`:""}`,style:e.style}),V.createElement(o,null),e.children?Gl.createPortal(V.createElement(V.Fragment,null,e.children),n.node):null)},vLe;(e=>{const n=Symbol("LayerStateProvider");class r{constructor(c,u,d){this.instance=c,this.playground=u,this.container=d,this.hijackMethod(c,"autorun"),this.hijackMethod(c,"render"),this.hijackMethod(c,"onReady"),this.hijackMethod(c,"onResize"),this.hijackMethod(c,"onFocus"),this.hijackMethod(c,"onBlur"),this.hijackMethod(c,"onZoom"),this.hijackMethod(c,"onScroll"),this.hijackMethod(c,"onViewportChange"),this.hijackMethod(c,"onReadonlyOrDisabledChange")}hijackMethod(c,u){typeof c[u]=="function"&&(this[u]=vi.spyOn(c,u))}}e.LayerTestState=r;function i(l){const c=Qit();return c.bind(n).toConstantValue(new WeakMap),c.rebind(Pme).toDynamicValue(u=>(d,f)=>{const p=Xit(u.container,d,f);return u.container.get(n).set(d,new r(p,c.get(yu),c)),p}),l&&l.forEach(u=>c.load(u)),c}e.createContainer=i;function o(l){return i(l).get(yu)}e.createPlayground=o;function a(l,c){return l.get(n).get(c)}e.getLayerTestState=a;function s(l,c,u){const d=i(u),f=d.get(yu);return f.registerLayer(l,c),f.init(),f.ready(),a(d,l)}e.createLayerTestState=s})(vLe||(vLe={}));var YZn=Object.defineProperty,qZn=Object.getOwnPropertyDescriptor,Zs=(e,n,r,i)=>{for(var o=i>1?void 0:i?qZn(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&YZn(n,r,o),o},$me=Symbol("NodeContribution"),Hm=class{constructor(){this.materialRenderRegistry=new Map,this.pluginRenderRegistry=new Map,this.nodeRenderHocs=[],this.nodeContributions=[]}registerMaterialRender(e,n){this.materialRenderRegistry.set(e,n)}getMaterialRender(e){return this.materialRenderRegistry.get(e)}registerPluginRender(e,n){this.pluginRenderRegistry.set(e,n)}getPluginRender(e){return this.pluginRenderRegistry.get(e)}registerNodeErrorRender(e){this.registerMaterialRender("Material_CustomNodeError",e)}get nodeRenderHoc(){return Mn.flow(this.nodeRenderHocs)}registerNodeRenderHoc(e){this.nodeRenderHocs.push(e)}get nodeErrorRender(){return this.materialRenderRegistry.get("Material_CustomNodeError")}init(){this.nodeContributions.forEach(e=>{var n;return(n=e.onRegister)==null?void 0:n.call(e,this)})}};Zs([E_($me),ss()],Hm.prototype,"nodeContributions",2);Zs([Zc()],Hm.prototype,"init",1);Hm=Zs([Pn()],Hm);var Tf=class{constructor(){this.onChangeEmitter=new Hn,this.onChange=this.onChangeEmitter.event,this._readonly=Tf.DEFAULT_READONLY,this._json=Tf.DEFAULT_JSON}get json(){return this._json}get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.fireChange()}fireChange(){this.updateJSON(),this.onChangeEmitter.fire(this)}updateJSON(){this._json={readonly:this._readonly}}};Tf.DEFAULT_READONLY=!1;Tf.DEFAULT_JSON={readonly:Tf.DEFAULT_READONLY};Tf=Zs([Pn()],Tf);var fD=class{};Zs([Ot(Hm)],fD.prototype,"nodeManager",2);Zs([Ot(Tf)],fD.prototype,"context",2);fD=Zs([Pn()],fD);var KZn=new Zp((e,n,r,i)=>{e(fD).toSelf().inSingletonScope(),e(Hm).toSelf().inSingletonScope(),e(Tf).toSelf().inSingletonScope()}),Ej={FORM:"Plugin_Form",ERROR:"Plugin_Error"},FV={NODE_ERROR_RENDER:"node_error_render",NODE_PLACEHOLDER_RENDER:"node_placeholder_render"},Aw=class extends Pl{getDefaultData(){return{error:null}}setError(e){this.update({error:e})}getError(){return this.data.error}};Aw.type="FlowNodeErrorData";var XZn={color:"#f54a45"},QZn=({error:e})=>V.createElement("div",{style:XZn},e.message),ZZn=({node:e,playgroundContext:n})=>{const r=Od(),i=e.getData(Aw),o=i.getError(),s=Di(Hm).getMaterialRender(FV.NODE_ERROR_RENDER),l=m.useCallback(()=>s?s({error:o,context:{node:e,playgroundContext:n}}):QZn({error:o,context:{node:e,playgroundContext:n}}),[o,e,n]);return m.useEffect(()=>{const c=i.onDataChange(()=>{r()});return()=>{c.dispose()}},[]),o?l():null},JZn=e=>V.createElement(ZZn,{...e}),fse=class{onRegister(e){e.registerPluginRender(Ej.ERROR,JZn)}};fse=Zs([Pn()],fse);var eJn=new Zp(e=>{QL(e,fse,[$me])});function tJn(e){return e.getData(Aw).getError()}var SR=class{makeFormItemMaterialContext(e,n){return{meta:e.meta,path:e.path,readonly:this.nodeEngineContext.readonly,getFormItemValueByPath:e.formModel.getFormItemValueByPath.bind(e.formModel),onFormValidate:e.formModel.onValidate.bind(e.formModel),form:e.formModel,node:e.formModel.flowNodeEntity,playgroundContext:this.playgroundContext,index:n==null?void 0:n.getIndex()}}};Zs([Ot(Tf)],SR.prototype,"nodeEngineContext",2);Zs([oN()],SR.prototype,"playgroundContext",2);SR=Zs([Pn()],SR);var Sa=class{static normalize(e){return e===Sa.ROOT||e.endsWith(Sa.DIVIDER)&&(e=e.slice(0,-1)),e}static join(e){if(e[1].startsWith(Sa.ROOT))throw new Error(`FormPathService Error: join failed, invalid paths[1], paths[1]= ${e[1]}`);return e[0].endsWith(Sa.DIVIDER)?`${e[0]}${e[1]}`:e.join(Sa.DIVIDER)}static toArrayPath(e){return Sa.join([e,Sa.ARRAY])}static parseArrayItemPath(e){const n=e.split("/");let r=0;for(;r<n.length;){const i=parseInt(n[r]);if(!isNaN(i)){const o=Sa.toArrayPath(n.slice(0,r).join(Sa.DIVIDER)),a=n.slice(r+1).join(Sa.DIVIDER),s=Sa.join([o,a]);return{itemIndex:i,arrayPath:o,itemMetaPath:s}}r=r+1}return null}simplify(e){const n=e.split(Sa.DIVIDER),r=[];for(let i=0;i<n.length;i++){if(!n[i])throw new Error("FormPathService: join failed");n[i]!==Sa.RELATIVE_CURRENT&&(n[i]===Sa.RELATIVE_PARENT&&r.pop(),r.push(n[i]))}return r.join(Sa.DIVIDER)}};Sa.ROOT="/";Sa.DIVIDER="/";Sa.RELATIVE_PARENT="..";Sa.RELATIVE_CURRENT=".";Sa.ARRAY="[]";Sa=Zs([Pn()],Sa);var pse=class{constructor(){this.toDispose=new Ei}};pse=Zs([Pn()],pse);var hse=class{constructor(){this.registry=new Map}register(e){this.registry.set(e.key,e)}get(e){return this.registry.get(e)}get objectMap(){return Object.fromEntries(this.registry)}get collection(){return Array.from(this.registry.values())}};hse=Zs([Pn()],hse);var nJn=Symbol("FormContribution"),Jit=class eot{get type(){return eot.type}};Jit.type="setter";var tot=Jit,not=class rot{get type(){return rot.type}};not.type="decorator";var iot=not,oot=class aot{get type(){return aot.type}};oot.type="effect";var rJn=oot,sot=class lot{get type(){return lot.type}};sot.type="validation";var iJn=sot,Pp=class{constructor(){this.abilityRegistry=new Map,this.setterHocs=[],this.extensionRegistryMap=new Map,this.formContributions=[],this.onFormModelWillInitEmitter=new Hn,this.onFormModelWillInit=this.onFormModelWillInitEmitter.event}get components(){var e;return Mn.mapValues(((e=this.extensionRegistryMap.get(tot.type))==null?void 0:e.objectMap)||{},n=>n.component)}get decorators(){var e;return Mn.mapValues(((e=this.extensionRegistryMap.get(iot.type))==null?void 0:e.objectMap)||{},n=>n.component)}registerAbilityExtension(e,n){this.extensionRegistryMap.get(e)||this.extensionRegistryMap.set(e,new hse);const r=this.extensionRegistryMap.get(e);r&&r.register(n)}getAbilityExtension(e,n){var r;return(r=this.extensionRegistryMap.get(e))==null?void 0:r.get(n)}registerAbility(e){const n=new e;this.abilityRegistry.set(n.type,n)}registerAbilities(e){e.forEach(this.registerAbility.bind(this))}getAbility(e){return this.abilityRegistry.get(e)}registerSetterHoc(e){this.setterHocs.push(e)}fireFormModelWillInit(e,n){this.onFormModelWillInitEmitter.fire({model:e,data:n})}dispose(){this.onFormModelWillInitEmitter.dispose()}init(){this.formContributions.forEach(e=>{var n;return(n=e.onRegister)==null?void 0:n.call(e,this)})}};Zs([Ot(Sa)],Pp.prototype,"pathManager",2);Zs([Ot(SR)],Pp.prototype,"formContextMaker",2);Zs([oN()],Pp.prototype,"playgroundContext",2);Zs([E_(nJn),ss()],Pp.prototype,"formContributions",2);Zs([Zc()],Pp.prototype,"init",1);Pp=Zs([Pn()],Pp);var ls=class extends Pl{constructor(e,n){super(e),this.onDetailChangeEmitter=new Hn,this.onDetailChange=this.onDetailChangeEmitter.event,this.flowNodeEntity=e,this.formModel=n.formModelFactory(e),this.toDispose.push(this.onDetailChangeEmitter),this.toDispose.push(ao.create(()=>{this.formModel.dispose()}))}getFormModel(){return this.formModel}getDefaultData(){return{}}createForm(e,n){const r=this.flowNodeEntity.getData(Aw);r.setError(null);try{this.formModel.init(e,n)}catch(i){r.setError(i)}}recreateForm(e,n){this.createForm(e,n)}toJSON(){return this.formModel.toJSON()}dispose(){super.dispose()}fireDetaiChange(e){this.onDetailChangeEmitter.fire(e)}};ls.type="FlowNodeEntityFormData";function oJn(e){var n;return(n=e.getData(ls))==null?void 0:n.getFormModel()}function aJn({node:e}){const n=Od(),r=oJn(e);return m.useEffect(()=>{const i=r==null?void 0:r.onInitialized(()=>{n()});return()=>{i.dispose()}},[r]),r!=null&&r.initialized?r.render():null}var sJn=e=>V.createElement(aJn,{...e}),gse=class{onRegister(e){e.registerPluginRender(Ej.FORM,sJn)}};gse=Zs([Pn()],gse);var lJn=new Zp(e=>{e(Pp).toSelf().inSingletonScope(),e(Sa).toSelf().inSingletonScope(),e(SR).toSelf().inSingletonScope(),QL(e,gse,[$me])});function cJn(e){return e.getData(ls).getFormModel().initialized}function uJn(e){return e.getData(ls).formModel}function dJn(){return[KZn,lJn,eJn]}var fJn=V.createContext(Tf.DEFAULT_JSON);function pJn(){const e=Od(),n=Di(Tf);return m.useEffect(()=>{const r=n.onChange(()=>{e()});return()=>{r.dispose()}},[]),n}var hJn=({node:e})=>{const n=Od(),r=e.getData(Aw),i=uJn(e),o=!!tJn(e),a=cJn(e),s=Di(RC),l=Di(Hm),c=l.getPluginRender(Ej.FORM),u=l.getPluginRender(Ej.ERROR),d=l.getMaterialRender(FV.NODE_PLACEHOLDER_RENDER),f=pJn();m.useEffect(()=>{const h=r.onDataChange(()=>{n()}),g=i.onInitialized(()=>{n()});return()=>{h.dispose(),g.dispose()}},[]);const p=m.useCallback(()=>o?u({node:e,playgroundContext:s}):i.formMeta?a?c({node:e,playgroundContext:s}):(d==null?void 0:d({node:e,playgroundContext:s}))||null:null,[o,a,u,c,d,e,s]);return V.createElement(fJn.Provider,{value:f.json},l.nodeRenderHoc(p)())},gJn=m.memo(hJn);function mJn(e,n){e.registerMaterialRender(FV.NODE_ERROR_RENDER,n)}function vJn(e,n){e.registerMaterialRender(FV.NODE_PLACEHOLDER_RENDER,n)}function yJn(){return[ls,Aw]}var ER;(e=>{const n=[],r=[];let i=!1,o=!1,a=!1,s,l=!1;function c(C,x){if(l)throw x;console.error(`[Tracker error] ${C}`,x)}function u(C){if(_())throw new Error("Can't call Tracker.flush while flushing");if(a)throw new Error("Can't flush inside Tracker.autorun");C=C||{},o=!0,i=!0,l=!!C.throwFirstError;var x=0,T=!1;try{for(;n.length||r.length;){for(;n.length;){var R=n.shift();if(R._recompute(),R._needsRecompute()&&n.unshift(R),!C.finishSynchronously&&++x>100){T=!0;return}}if(r.length){var O=r.shift();try{O()}catch(M){c("afterFlush",M)}}}T=!0}finally{if(T||(o=!1,u({finishSynchronously:C.finishSynchronously,throwFirstError:!1})),i=!1,o=!1,n.length||r.length){if(C.finishSynchronously)throw new Error("still have more to do?");setTimeout(d,10)}}}function d(){i||(setTimeout(u,0),i=!0)}function f(C,x){let T=s;s=C;try{return x.call(null,C)}finally{s=T}}e.withComputation=f;function p(C){let x=s;s=void 0;try{return C(void 0)}finally{s=x}}e.withoutComputation=p;function h(){return!!s}e.isActive=h;function g(){return s}e.getCurrentComputation=g;function v(C,x){var T=new E(C,s,x==null?void 0:x.onError);return h()&&e.onInvalidate(function(){T.stop()}),T}e.autorun=v;function y(C){if(!s)throw new Error("Tracker.onInvalidate requires a currentComputation");s.onInvalidate(C)}e.onInvalidate=y;function _(){return o}e.inFlush=_;function S(C){u({finishSynchronously:!0,throwFirstError:C&&C.throwFirstError})}e.flush=S;function b(C){r.push(C),d()}e.afterFlush=b;class E{constructor(x,T,R){this._fn=x,this.parent=T,this._onError=R,this._onInvalidateCallbacks=[],this._onStopCallbacks=[],this._recomputing=!1,this.stopped=!1,this.invalidated=!1,this.firstRun=!0;let O=!0;try{this._compute(),O=!1}finally{this.firstRun=!1,O&&this.stop()}}onInvalidate(x){this.invalidated?p(x.bind(null,this)):this._onInvalidateCallbacks.push(x)}invalidate(){if(!this.invalidated){!this._recomputing&&!this.stopped&&(d(),n.push(this)),this.invalidated=!0;for(var x=0,T;T=this._onInvalidateCallbacks[x];x++)p(T.bind(null,this));this._onInvalidateCallbacks=[]}}stop(){if(!this.stopped){this.stopped=!0,this.invalidate();for(let x=0,T;T=this._onStopCallbacks[x];x++)p(T.bind(null,this));this._onStopCallbacks=[]}}onStop(x){this.stopped?p(x.bind(null,this)):this._onStopCallbacks.push(x)}_compute(){this.invalidated=!1;var x=a;a=!0;try{this._result=e.withComputation(this,this._fn)}finally{a=x}}_needsRecompute(){return this.invalidated&&!this.stopped}_recompute(){this._recomputing=!0;try{if(this._needsRecompute())try{this._compute()}catch(x){this._onError?this._onError(x):c("recompute",x)}}finally{this._recomputing=!1}}flush(){this._recomputing||this._recompute()}run(){this.invalidate(),this.flush()}get result(){return this._result}}e.Computation=E;class w{constructor(){this._dependents=new Set}depend(x){if(!x){if(!h())return!1;x=s}return this._dependents.has(x)?!1:(this._dependents.add(x),x.onInvalidate(()=>{this._dependents.delete(x)}),!0)}changed(){for(const x of this._dependents)x.invalidate()}hasDependents(){return this._dependents.size!==0}}e.Dependency=w})(ER||(ER={}));var _Jn=class{constructor(e,n){this._dep=new ER.Dependency,this._isEqual=(r,i)=>r==i,this._value=e,n!=null&&n.isEqual&&(this._isEqual=n.isEqual)}_addDepend(e){ER.isActive()&&e.depend()}hasDependents(){return this._dep.hasDependents()}get value(){return this._addDepend(this._dep),this._value}set value(e){this._isEqual(this._value,e)||(this._value=e,this._dep.changed())}};function mse(e,n){if("Proxy"in window)return new Proxy(e,n);const i={};for(const o in e)Object.defineProperty(i,o,{enumerable:!0,get:n.get?()=>n.get(e,o):void 0,set:n.set?a=>n.set(e,o,a):void 0});return i}var bJn=ER.Dependency,cot=class extends _Jn{constructor(){super(...arguments),this._keyDeps=new Map}set(e,n){this._ensureKey(e);const r=this._value[e];return this._isEqual(r,n)?!1:(this._value[e]=n,this._keyDeps.get(e).changed(),!0)}get(e){return this._ensureKey(e),this._addDepend(this._keyDeps.get(e)),this._value[e]}_ensureKey(e){this._keyDeps.has(e)||this._keyDeps.set(e,new bJn)}hasDependents(){if(this._dep.hasDependents())return!0;for(const e of this._keyDeps.values())if(e.hasDependents())return!0;return!1}keys(){return Object.keys(this._value)}set value(e){this._isEqual(this._value,e)||(this._value=e,this._keyDeps.clear(),this._dep.changed())}get value(){return this._addDepend(this._dep),this._proxyValue||(this._proxyValue=mse(this._value,{get:(e,n)=>this.get(n),set:(e,n,r)=>(this.set(n,r),!0)})),this._proxyValue}get readonlyValue(){return this._addDepend(this._dep),this._proxyReadonlyValue||(this._proxyReadonlyValue=mse(this._value,{get:(e,n)=>this.get(n),set:(e,n)=>{throw new Error(`[ReactiveState] Cannnot set readonly field "${n}"`)}})),this._proxyReadonlyValue}};function uot(e){const n=Od(),r=m.useMemo(()=>new Map,[]),i=m.useCallback(()=>{r.forEach(o=>o.stop()),r.clear()},[]);return m.useEffect(()=>i,[]),i(),m.useMemo(()=>e===void 0?{}:mse(e,{get(o,a){let s=r.get(a);return s||(s=new ER.Computation(l=>{if(!l.firstRun){n();return}return e[a]}),r.set(a,s)),e[a]}}),[e])}function Cj(e){return uot(e.readonlyValue)}var SJn=e=>e!==null&&typeof e=="object",EJn=e=>String(Math.floor(Number(e)))===e;function CJn(e,n,r,i=0){const o=Mn.toPath(n);for(;e&&i<o.length;)e=e[o[i++]];return i!==o.length&&!e||e===void 0?r:e}function wJn(e,n,r){let i=Mn.clone(e),o=i,a=0,s=Mn.toPath(n);for(;a<s.length-1;a++){const l=s[a];let c=CJn(e,s.slice(0,a+1));if(c&&(SJn(c)||Array.isArray(c)))o=o[l]=Mn.clone(c);else{const u=s[a+1];o=o[l]=EJn(u)&&Number(u)>=0?[]:{}}}return(a===0?e:o)[s[a]]===r?e:(o[s[a]]=r,i)}function f5(e,n){const r=new Set(n),i={};return Object.keys(e).forEach(o=>{r.has(o)&&(i[o]=e[o])}),i}function xJn(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"}function TJn(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"&&e.target.type==="checkbox"}var oy;(e=>{e.DIVIDER=".",e.ALL="*";function n(u,d){const f=u.split(e.DIVIDER),p=d.split(e.DIVIDER);return f.length!==p.length?!1:f.every((h,g)=>h===e.ALL?!0:h===p[g])}e.isMatch=n;function r(u,d){if(u==="")return!0;const f=u.split(e.DIVIDER),p=d.split(e.DIVIDER);if(f.length>p.length)return!1;for(let h=0;h<f.length;h++)if(f[h]!==e.ALL&&f[h]!==p[h])return!1;return!0}e.isMatchOrParent=r;function i(u,d){const f=u.split(e.DIVIDER);return d.split(e.DIVIDER).slice(0,f.length).join(e.DIVIDER)}e.getParentPathByPattern=i;function o(u,...d){const f=d.shift();if(f===void 0)return u.toString();let p="";return u===""&&f===""?p="":u!==""&&f===""?p=u.toString():u===""&&f!==""?p=f.toString():p=`${u}${e.DIVIDER}${f}`,d.length>0?o(p,...d):p}function a(u,d){return!d||typeof d!="object"?[]:Mn.flatten(u.map(f=>{const p=f===""?d:Mn.get(d,f);return Mn.isArray(p)?p.map((h,g)=>o(f,g)):Mn.isObject(p)?Object.keys(p).map(h=>o(f,h)):[]}))}e.getSubPaths=a;function s(u){const d=u.split(e.DIVIDER),f=[];let p=0,h=[];for(;p<d.length;)d[p]===e.ALL?(h.length&&f.push(h.join(e.DIVIDER)),f.push(e.ALL),h=[]):h.push(d[p]),p+=1;return h.length&&f.push(h.join(e.DIVIDER)),f}e.splitPattern=s;function l(u,d,f){if(!u||!d)return[];const p=d.split(e.DIVIDER);let h=p.shift(),g=[],v=u;for(;h;){if(!(typeof v=="object"))return[];if(h===e.ALL){const _=g.join(e.DIVIDER);return Mn.flatten(Object.keys(v).map(S=>p.length===0?o(_,S):l(v[S],`${p.join(e.DIVIDER)}`,f).map(b=>o(_,S,b))))}if(!(h in v)&&!f)return[];v=v[h],g.push(h),h=p.shift()}return[d]}e.findMatchPaths=l;function c(u,d){return d.includes("*")?l(u,d,!0):[d]}e.findMatchPathsWithEmptyValue=c})(oy||(oy={}));var r$=(e=>(e.onChange="onChange",e.onBlur="onBlur",e))(r$||{}),id=class $E{constructor(n){this._path=[],this._path=Mn.toPath(n)}get parent(){if(!(this._path.length<2))return new $E(this._path.slice(0,-1))}toString(){return this._path.join(".")}get value(){return this._path}isChild(n){const r=new $E(n).value,i=this.value;if(r.length-i.length!==1)return!1;for(let o=0;o<i.length;o++)if(r[o]!==i[o])return!1;return!0}static compareArrayPath(n,r){let i=0;for(;n.value[i]&&r.value[i];){const o=parseInt(n.value[i]),a=parseInt(r.value[i]);if(!isNaN(o)&&!isNaN(a))return o-a;if(n.value[i]!==r.value[i])throw new Error(`[Form] Path.compareArrayPath invalid input Error: two path should refers to the same array, but got path1: ${n.toString()}, path2: ${r.toString()}`);i++}throw new Error(`[Form] Path.compareArrayPath invalid input Error: got path1: ${n.toString()}, path2: ${r.toString()}`)}isChildOrGrandChild(n){const r=new $E(n).value,i=this.value;if(r.length-i.length<1)return!1;for(let o=0;o<i.length;o++)if(r[o]!==i[o])return!1;return!0}getArrayIndex(n){return parseInt(this._path[n.value.length])}concat(n){if(typeof n=="string"||typeof n=="number")return new $E(this._path.concat(new $E(n.toString())._path));throw new Error(`[Form] Error in Path.concat: invalid param type, require number or string, but got ${typeof n}`)}replaceParent(n,r){if(n.value.length>this.value.length)throw new Error(`[Form] Error in Path.replaceParent: invalid parent param: ${n}, parent length should not greater than current length.`);const i=[];for(let o=0;o<this.value.length;o++){if(o<n.value.length&&n.value[o]!==this.value[o])throw new Error(`[Form] Error in Path.replaceParent: invalid parent param: '${n}' is not a parent of '${this.toString()}'`);o>=n.value.length&&i.push(this.value[o])}return new $E(r.value.concat(i))}};function yLe(e,n){return(e||[]).map(r=>({...r,name:n}))}function OT(e,n){return n?e?Object.keys(n).some(i=>!Mn.isEqual(e[i],n[i]))?{...e,...n}:e:{...n}:e}function p5(e,n){return n&&(e in n&&delete n[e],n)}function dot(e,n){return e===n}function OJn(e){return e?Object.keys(e).every(n=>Mn.isEmpty(e[n])):!0}var wj;(e=>{function n(i,o){var l;const{name:a,options:s}=i;return oy.isMatchOrParent(o,a)?!0:new id(a).isChildOrGrandChild(o)?(s==null?void 0:s.action)==="array-append"?!new id(a).isChildOrGrandChild(o):(s==null?void 0:s.action)==="array-splice"&&((l=s==null?void 0:s.indexes)!=null&&l.length)?id.compareArrayPath(new id(o),new id(a).concat(s.indexes[0]))>=0:!0:!1}e.shouldTriggerFieldChangeEvent=n;function r(i,o){const{name:a,options:s}=i;return(s==null?void 0:s.action)==="array-splice"||(s==null?void 0:s.action)==="array-swap"?o===a:e.shouldTriggerFieldChangeEvent(i,o)}e.shouldTriggerFieldValidateWhenChange=r})(wj||(wj={}));function xj(e){const n={get name(){return e.name},get value(){return e.value},onChange:r=>{xJn(r)?e.value=TJn(r)?r.target.checked:r.target.value:e.value=r},onBlur(){dot("onBlur",e.form.validationTrigger)&&e.validate()},onFocus(){e.state.isTouched=!0}};return Object.defineProperty(n,"key",{enumerable:!1,get(){return e.id}}),Object.defineProperty(n,"_fieldModel",{enumerable:!1,get(){return e}}),n}function fot(e){return{get isTouched(){return e.isTouched},get invalid(){return e.invalid},get isDirty(){return e.isDirty},get isValidating(){return e.isValidating},get errors(){if(e.errors)return Object.values(e.errors).reduce((n,r)=>n.concat(r),[])},get warnings(){if(e.warnings)return Object.values(e.warnings).reduce((n,r)=>n.concat(r),[])}}}function EP(e){const n={initialValues:e.initialValues,get values(){return e.values},set values(r){e.values=r},state:Fme(e.state),getValueIn:r=>e.getValueIn(r),setValueIn:(r,i)=>e.setValueIn(r,i),validate:e.validate.bind(e)};return Object.defineProperty(n,"_formModel",{enumerable:!1,get(){return e}}),n}function Fme(e){return{get isTouched(){return e.isTouched},get invalid(){return e.invalid},get isDirty(){return e.isDirty},get isValidating(){return e.isValidating},get errors(){return e.errors},get warnings(){return e.warnings}}}var pot=V.createContext({}),hot=V.createContext({});function Bme(){return m.useContext(pot)}function zm({name:e,defaultValue:n,render:r,children:i,deps:o}){const a=Bme(),s=a.getField(e)||a.createField(e),l=m.useMemo(()=>xj(s),[s]),c=Cj(s.reactiveState),u=Cj(a.reactiveState),d=m.useMemo(()=>fot(c),[c]),f=Fme(u),p=Od();m.useEffect(()=>{s.renderCount=s.renderCount+1,!a.getValueIn(e)!==void 0&&n!==void 0&&(a.setInitValueIn(e,n),p());const g=new Ei;return g.push(s.onValueChange(()=>{p()})),o&&o.forEach(v=>{var _;const y=(_=a.getField(v))==null?void 0:_.onValueChange(()=>{p()});y&&g.push(y)}),()=>{g.dispose(),s.renderCount>1?s.renderCount=s.renderCount-1:a.getField(s.name)===s&&s.dispose()}},[s]);const h=()=>r?r({field:l,fieldState:d,formState:f}):Mn.isFunction(i)?i({field:l,fieldState:d,formState:f}):m.cloneElement(i,{...l});return m.createElement(hot.Provider,{value:s},h())}function got(e){const n={get key(){return e.id},get name(){return e.path.toString()},get value(){return e.value},onChange:r=>{e.value=r},map:r=>e.map((i,o)=>r(xj(i),o)),append:r=>xj(e.append(r)),delete:r=>e.delete(r),remove:r=>e.delete(r),swap:(r,i)=>e.swap(r,i),move:(r,i)=>e.move(r,i)};return Object.defineProperty(n,"_fieldModel",{enumerable:!1,get(){return e}}),n}function mot(e,n){if(typeof e=="string")return{name:n,message:e,level:"error"};if(e!=null&&e.message)return{...e,name:n}}function _Le(e,n){return{[e]:n?[n]:[]}}var RJn=e=>Object.keys(e).some(n=>{var r;return((r=e[n])==null?void 0:r.length)>0}),O2={invalid:!1,isDirty:!1,isTouched:!1,isValidating:!1},IJn={invalid:!1,isDirty:!1,isTouched:!1,isValidating:!1};function NJn(e){return{...IJn}}function MJn(e){return{...O2}}var PJn=class{get values(){return this._values}set values(e){this._values=e}setInitialValues(e){this._values=e}setIn(e,n){this._values=wJn(this._values||{},e.toString(),n)}getIn(e){return Mn.get(this._values,e.value)}dispose(){}},vot=class{constructor(e,n){this.onValueChangeEmitter=new Hn,this.onValueChange=this.onValueChangeEmitter.event,this.toDispose=new Ei,this._state=new cot(MJn()),this._renderCount=0,this._mount=!1,this._path=e,this.form=n,this.id=C_();const r=this.form.onFormValuesChange(i=>{const{values:o,prevValues:a}=i;wj.shouldTriggerFieldChangeEvent(i,this.name)&&(this.onValueChangeEmitter.fire({value:Mn.get(o,this.name),prevValue:Mn.get(a,this.name),formValues:o,prevFormValues:a}),dot("onChange",this.form.validationTrigger)&&wj.shouldTriggerFieldValidateWhenChange(i,this.name)&&this.validate())});this.toDispose.push(r),this.toDispose.push(this.onValueChangeEmitter),this.initState()}get renderCount(){return this._renderCount}set renderCount(e){this._renderCount=e}initState(){const e=Mn.get(this.form.state.errors,this.name),n=Mn.get(this.form.state.warnings,this.name);e&&(this.state.errors={[this.name]:e}),n&&(this.state.warnings={[this.name]:n})}get path(){return this._path}get name(){return this._path.toString()}set name(e){this._path=new id(e)}get ref(){return this._ref}set ref(e){this._ref=e}get state(){return this._state.value}get reactiveState(){return this._state}get value(){return this.form.getValueIn(this.name)}set value(e){this.form.setValueIn(this.name,e),this.state.isTouched||(this.state.isTouched=!0,this.bubbleState())}updateNameForLeafState(e){var a,s;const{errors:n,warnings:r}=this.state,i=n?(a=Object.keys(n))==null?void 0:a[0]:void 0;i&&(n!=null&&n[i])&&i!==e&&(this.state.errors={[e]:n!=null&&n[i]?yLe(n==null?void 0:n[i],e):n==null?void 0:n[i]});const o=r?(s=Object.keys(r))==null?void 0:s[0]:void 0;o&&(r!=null&&r[o])&&o!==e&&(this.state.warnings={[e]:r!=null&&r[o]?yLe(r==null?void 0:r[o],e):r==null?void 0:r[o]})}updateValidate(e,n){n==="ui"?this.originalValidate||(this.originalValidate=e):this.originalValidate=e}bubbleState(){const{errors:e,warnings:n}=this.state;if(this.parent){this.parent.state.isTouched=Mn.some(this.parent.children.map(r=>r.state.isTouched),Boolean),this.parent.state.invalid=Mn.some(this.parent.children.map(r=>r.state.invalid),Boolean),this.parent.state.isDirty=Mn.some(this.parent.children.map(r=>r.state.isDirty),Boolean),this.parent.state.isValidating=Mn.some(this.parent.children.map(r=>r.state.isValidating),Boolean),this.parent.state.errors=e?OT(this.parent.state.errors,e):p5(this.name,this.parent.state.errors),this.parent.state.warnings=n?OT(this.parent.state.warnings,n):p5(this.name,this.parent.state.warnings),this.parent.bubbleState();return}this.form.state.isTouched=Mn.some(this.form.fields.map(r=>r.state.isTouched),Boolean),this.form.state.invalid=Mn.some(this.form.fields.map(r=>r.state.invalid),Boolean),this.form.state.isDirty=Mn.some(this.form.fields.map(r=>r.state.isDirty),Boolean),this.form.state.isValidating=Mn.some(this.form.fields.map(r=>r.state.isValidating),Boolean),this.form.state.errors=e?OT(this.form.state.errors,e):p5(this.name,this.form.state.errors),this.form.state.warnings=n?OT(this.form.state.warnings,n):p5(this.name,this.form.state.warnings)}clearState(){this.state.errors=O2.errors,this.state.warnings=O2.warnings,this.state.isTouched=O2.isTouched,this.state.isDirty=O2.isDirty,this.bubbleState()}get children(){const e=[];return this.form.fieldMap.forEach((n,r)=>{this.path.isChild(r)&&e.push(n)}),e}get parent(){const e=this.path.parent;if(e)return this.form.fieldMap.get(e.toString())}clear(){this.value&&(this.value=void 0)}async validate(){await this.validateSelf()}async validateSelf(){this.state.isValidating=!0,this.bubbleState();const{errors:e,warnings:n}=await this._runAsyncValidate();e!=null&&e.length?(this.state.errors=Mn.groupBy(e,"name"),this.state.invalid=!0):(this.state.errors={[this.name]:[]},this.state.invalid=!1),n!=null&&n.length?this.state.warnings=Mn.groupBy(n,"name"):this.state.warnings={[this.name]:[]},this.state.isValidating=!1,this.bubbleState(),this.form.onValidateEmitter.fire(this.form.state)}async _runAsyncValidate(){let e=[],n=[];const r=await this.form.validateIn(this.name);if(r!=null&&r.length){const i=r.map(a=>mot(a,this.name)).filter(Boolean);if(!(i!=null&&i.length))return{};const o=Mn.groupBy(i,"level");n=n.concat(o.warning),e=e.concat(o.error)}else return{};return{errors:e,warnings:n}}updateState(e){}dispose(){this.children.map(e=>e.dispose()),this.toDispose.dispose(),this.form.fieldMap.delete(this.path.toString())}onDispose(e){this.toDispose.onDispose(e)}},Tj=class extends vot{constructor(){super(...arguments),this.onAppendEmitter=new Hn,this.onAppend=this.onAppendEmitter.event,this.onDeleteEmitter=new Hn,this.onDelete=this.onDeleteEmitter.event}get children(){const e=[];return this.form.fieldMap.forEach((n,r)=>{this.path.isChild(r)&&e.push(n)}),e.sort((n,r)=>{const i=n.path.value,o=r.path.value,a=parseInt(i[i.length-1]),s=parseInt(i[o.length-1]);return a-s})}map(e){return(this.value||[]).map((r,i)=>{const o=this.path.concat(i).toString();let a=this.form.getField(o);return a||(a=this.form.createField(o)),a}).map(e)}append(e){var s;const n=((s=this.value)==null?void 0:s.length)||0,r=this.path.concat(n).toString(),i=this.form.createField(r),o=this.value?[...this.value,e]:[e],a=this.form.values;return this.form.store.setIn(new id(this.name),o),this.form.fireOnFormValuesChange({values:this.form.values,prevValues:a,name:this.name,options:{action:"array-append",indexes:[n]}}),this.form.fireOnFormValuesInit({values:this.form.values,prevValues:a,name:r}),this.onAppendEmitter.fire({value:e,arrayValue:this.value,index:this.value.length-1}),i}delete(e){this._splice(e,1),this.onDeleteEmitter.fire({arrayValue:this.value,index:e})}_splice(e,n=1){var c;if(e<0||n<0)throw new Error("[Form] Error in FieldArrayModel.splice: Invalid Params, start and deleteCount should > 0");if(!this.value||this.value.length===0||n>this.value.length)throw new Error(`[Form] Error in FieldArrayModel.splice: delete count exceeds array length, tried to delete ${n} elements, but array length is ${((c=this.value)==null?void 0:c.length)||0}`);const r=this.form.values,i=[...this.value];i.splice(e,n),this.form.store.setIn(new id(this.name),i),this.form.fireOnFormValuesChange({values:this.form.values,prevValues:r,name:this.name,options:{action:"array-splice",indexes:Array.from({length:n},(u,d)=>d+e)}});const o=this.children;if(e+n>=o.length)for(let u=e;u<o.length;u++)this.form.disposeField(o[u].name);const a=[],s=new Map(this.form.fieldMap),l=(u,d)=>{var f;if((f=u.children)!=null&&f.length&&u.children.forEach(p=>{l(p,d)}),d<e)s.set(u.name,u);else if(d<e+n)a.push(u);else{const p=u.name,h=u.path.replaceParent(this.path.concat(d),this.path.concat(d-n)).toString();s.set(h,u),u.children.length||(u.updateNameForLeafState(h),u.bubbleState()),u.name=h,d>o.length-n-1&&s.delete(p)}};o.map((u,d)=>{l(u,d)}),a.forEach(u=>{u.dispose()}),this.form.fieldMap=s,this.form.alignStateWithFieldMap()}swap(e,n){if(!this.value)return;if(e<0||n<0||e>this.value.length-1||n>this.value.length-1)throw new Error(`[Form]: FieldArrayModel.swap Error: invalid params 'form' and 'to', form=${e} to=${n}. expect the value between 0 to ${length-1}`);const r=this.form.values,i=[...this.value],o=i[e],a=i[n];i[n]=o,i[e]=a,this.form.store.setIn(this.path,i),this.form.fireOnFormValuesChange({values:this.form.values,prevValues:r,name:this.name,options:{action:"array-swap",indexes:[e,n]}});const s=new Map(this.form.fieldMap),l=this.findAllFieldsAt(e),c=this.findAllFieldsAt(n),u=this.getPathAt(e),d=this.getPathAt(n),f=[];l.forEach(p=>{const h=p.path.replaceParent(u,d).toString();p.name=h,p.children.length||(p.updateNameForLeafState(h),f.push(p)),s.set(h,p)}),c.forEach(p=>{const h=p.path.replaceParent(d,u).toString();p.name=h,p.children.length||p.updateNameForLeafState(h),s.set(h,p),f.push(p)}),this.form.fieldMap=s,f.forEach(p=>p.bubbleState()),this.form.alignStateWithFieldMap()}move(e,n){if(!this.value)return;if(e<0||n<0||e>this.value.length-1||n>this.value.length-1)throw new Error(`[Form]: FieldArrayModel.move Error: invalid params 'form' and 'to', form=${e} to=${n}. expect the value between 0 to ${length-1}`);const r=[...this.value],i=r[e];r.splice(e,1),r.splice(n,0,i),this.form.setValueIn(this.name,r)}insertAt(e,n){if(!this.value)return;if(e<0||e>this.value.length)throw new Error("[Form]: FieldArrayModel.insertAt Error: index exceeds array boundary");const r=[...this.value];r.splice(e,0,n),this.form.setValueIn(this.name,r)}getPathAt(e){return this.path.concat(e)}findAllFieldsAt(e){const n=this.getPathAt(e),r=n.toString(),i=this.form.fieldMap.get(r)?[this.form.fieldMap.get(r)]:[];return this.form.fieldMap.forEach((o,a)=>{n.isChildOrGrandChild(a)&&i.push(o)}),i}},AJn=class{constructor(){this._fieldMap=new Map,this.store=new PJn,this._options={},this.onFieldModelCreateEmitter=new Hn,this.onFieldModelCreate=this.onFieldModelCreateEmitter.event,this.onFormValuesChangeEmitter=new Hn,this.onFormValuesChange=this.onFormValuesChangeEmitter.event,this.onFormValuesInitEmitter=new Hn,this.onFormValuesInit=this.onFormValuesInitEmitter.event,this.onFormValuesUpdatedEmitter=new Hn,this.onFormValuesUpdated=this.onFormValuesUpdatedEmitter.event,this.onValidateEmitter=new Hn,this.onValidate=this.onValidateEmitter.event,this._state=new cot(NJn()),this._initialized=!1}set fieldMap(e){this._fieldMap=e}get fieldMap(){return this._fieldMap}get context(){return this._options.context}get initialValues(){return this._options.initialValues}get values(){return Mn.cloneDeep(this.store.values)||Mn.cloneDeep(this.initialValues)}set values(e){const n=this.values;this.store.values=e,this.fireOnFormValuesChange({values:this.values,prevValues:n,name:""})}get validationTrigger(){return this._options.validateTrigger}get state(){return this._state.value}get reactiveState(){return this._state}get fields(){return Array.from(this.fieldMap.values())}updateState(e){}get initialized(){return this._initialized}fireOnFormValuesChange(e){this.onFormValuesChangeEmitter.fire(e),this.onFormValuesUpdatedEmitter.fire(e)}fireOnFormValuesInit(e){this.onFormValuesInitEmitter.fire(e),this.onFormValuesUpdatedEmitter.fire(e)}init(e){if(this._options=e,e.initialValues){const n=this.store.values;this.store.setInitialValues(e.initialValues),this.fireOnFormValuesInit({values:e.initialValues,prevValues:n,name:""})}this._initialized=!0}createField(e,n){const r=new id(e),i=r.toString();if(this.fieldMap.get(i))return this.fieldMap.get(i);const o=n?new Tj(r,this):new vot(r,this);return this.fieldMap.set(i,o),o.onDispose(()=>{this.fieldMap.delete(i)}),this.onFieldModelCreateEmitter.fire(o),o}createFieldArray(e,n){return this.createField(e,!0)}disposeField(e){const n=this.fieldMap.get(e);n&&n.dispose()}deleteField(e){const n=this.fieldMap.get(e);n&&(n.clear(),n.dispose())}getField(e){return this.fieldMap.get(new id(e).toString())}getValueIn(e){return this.store.getIn(new id(e))}setValueIn(e,n){const r=this.values;this.store.setIn(new id(e),n),this.fireOnFormValuesChange({values:this.values,prevValues:r,name:e})}setInitValueIn(e,n){const r=new id(e);if(this.store.getIn(r)===void 0){const o=this.values;this.store.setIn(new id(e),n),this.fireOnFormValuesInit({values:this.values,prevValues:o,name:e})}}clearValueIn(e){this.setValueIn(e,void 0)}async validateIn(e){if(!this._options.validate)return;const r=Object.keys(this._options.validate).filter(i=>oy.isMatch(i,e)).map(async i=>{const o=this._options.validate[i];return o({value:this.getValueIn(e),formValues:this.values,context:this.context,name:e})});return Promise.all(r)}async validate(){if(!this._options.validate)return[];const e=Object.keys(this._options.validate).map(async r=>{const i=this._options.validate[r],o=oy.findMatchPathsWithEmptyValue(this.values,r);return Promise.all(o.map(async a=>{const s=await i({value:Mn.get(this.values,a),formValues:this.values,context:this.context,name:a}),l=mot(s,a),c=this.getField(a),u=_Le(a,l),d=_Le(a,l);return c&&(c.state.errors=u,c.state.warnings=d,c.state.invalid=RJn(u),c.bubbleState()),this.state.errors=OT(this.state.errors,u),this.state.warnings=OT(this.state.warnings,d),this.state.invalid=!OJn(this.state.errors),l}))});this.state.isValidating=!0;const n=await Promise.all(e);return this.state.isValidating=!1,this.onValidateEmitter.fire(this.state),Mn.flatten(n).filter(Boolean)}alignStateWithFieldMap(){const e=Array.from(this.fieldMap.keys());this.state.errors&&(this.state.errors=f5(this.state.errors,e)),this.state.warnings&&(this.state.warnings=f5(this.state.warnings,e)),this.fieldMap.forEach(n=>{n.state.errors&&(n.state.errors=f5(n.state.errors,e)),n.state.warnings&&(n.state.warnings=f5(n.state.warnings,e))})}dispose(){this.fieldMap.forEach(e=>e.dispose()),this.store.dispose(),this._initialized=!1}};function yot(e){const{disableAutoInit:n=!1,...r}=e||{},i=new AJn;return n||i.init(r||{}),{form:EP(i),control:{_formModel:i,getField:o=>{const a=i.getField(o);if(a)return a instanceof Tj?got(a):xj(a)},init:()=>i.init(r||{})}}}function jme(e){const{children:n,keepModelOnUnMount:r=!1,control:i,...o}=e,{_formModel:a}=m.useMemo(()=>i||yot(o).control,[i]);m.useEffect(()=>()=>{r||a.dispose()},[]);const s=m.useMemo(()=>EP(a),[a]);return V.createElement(pot.Provider,{value:a},n?Mn.isFunction(n)?n({form:s}):m.Children.only(n):null)}function _ot(e){const n=Od(),r=Bme();if(!r)throw new Error("[Form] error in useWatch, formModel not found");const i=r.getValueIn(e);return m.useEffect(()=>{const o=r.onFormValuesUpdated(({name:a})=>{a===e&&n()});return()=>o.dispose()},[e,r]),i}function DJn({name:e,defaultValue:n,deps:r,render:i,children:o}){const a=Bme(),s=m.useMemo(()=>a.getField(e)||a.createFieldArray(e),[e]),l=m.useMemo(()=>got(s),[s]),c=Od(),u=Cj(s.reactiveState),d=Cj(a.reactiveState),f=fot(u),p=m.useMemo(()=>Fme(d),[d]);m.useEffect(()=>{s.renderCount=s.renderCount+1,!a.getValueIn(e)!==void 0&&n!==void 0&&(a.setInitValueIn(e,n),c());const g=new Ei;return g.push(s.onValueChange(()=>{c()})),r&&r.forEach(v=>{var _;const y=(_=a.getField(v))==null?void 0:_.onValueChange(()=>{c()});y&&g.push(y)}),()=>{g.dispose(),s.renderCount>1?s.renderCount=s.renderCount-1:a.getField(s.name)===s&&s.dispose()}},[s]);const h=()=>i&&Mn.isFunction(i)?i({field:l,fieldState:f,formState:p}):Mn.isFunction(o)?o({field:l,fieldState:f,formState:p}):m.createElement(m.Fragment,null,"Invalid Array render");return m.createElement(hot.Provider,{value:s},h())}var bot=(e=>(e.onValueChange="onValueChange",e.onValueInit="onValueInit",e.onValueInitOrChange="onValueInitOrChange",e.onArrayAppend="onArrayAppend",e.onArrayDelete="onArrayDelete",e))(bot||{});function kJn(e){return"onFormValuesChange"in e}function LJn(e,n){if(!n)return;if(n[e.name])return n[e.name];const r=Mn.find(Object.keys(n),i=>i.startsWith("regex:")?RegExp(i.split(":")[1]).test(e.name):!1);if(r)return n[r]}function $Jn(e){return e.map(n=>({feedbackStatus:n.level,feedbackText:n.message,path:n.name}))}function LM(e){return e.startsWith("/")?Sa.normalize(e).slice(1).split("/").join("."):e}function FJn(e,n){return Mn.mergeWith(e,n,function(r,i){return(r||[]).concat(i)})}var BJn=({formModel:e})=>e!=null&&e.formControl?V.createElement(V.Fragment,null,V.createElement(jme,{control:e==null?void 0:e.formControl,keepModelOnUnMount:!0},e.formMeta.render)):null;function jJn(e){return V.createElement(BJn,{formModel:e})}var Z_={EFFECT_MAP:{},EFFECT_RETURN_MAP:new Map([["onValueInitOrChange",{}],["onValueChange",{}],["onValueInit",{}],["onArrayAppend",{}],["onArrayDelete",{}]]),FORM_FEEDBACKS:[],VALID:null},UJn=class extends pse{constructor(e){super(),this.effectMap=Z_.EFFECT_MAP,this.effectReturnMap=Z_.EFFECT_RETURN_MAP,this.plugins=[],this.formFeedbacks=Z_.FORM_FEEDBACKS,this.onInitializedEmitter=new Hn,this.onValidateEmitter=new Hn,this.onValidate=this.onValidateEmitter.event,this.onInitialized=this.onInitializedEmitter.event,this.onDisposeEmitter=new Hn,this.onDispose=this.onDisposeEmitter.event,this.toDispose=new Ei,this.onFormValuesChangeEmitter=new Hn,this.onFormValuesChange=this.onFormValuesChangeEmitter.event,this.onValidChangeEmitter=new Hn,this.onValidChange=this.onValidChangeEmitter.event,this.onFeedbacksChangeEmitter=new Hn,this.onFeedbacksChange=this.onFeedbacksChangeEmitter.event,this._valid=Z_.VALID,this._feedbacks=[],this._initialized=!1,this.node=e,this.toDispose.pushAll([this.onInitializedEmitter,this.onValidateEmitter,this.onValidChangeEmitter,this.onFeedbacksChangeEmitter,this.onFormValuesChangeEmitter])}get valid(){return this._valid}set valid(e){this._valid=e,this.onValidChangeEmitter.fire(e)}get flowNodeEntity(){return this.node}get formManager(){return this.node.getService(Pp)}get formControl(){return this._formControl}get formMeta(){return this.node.getNodeRegistry().formMeta}get values(){var e;return(e=this.nativeFormModel)==null?void 0:e.values}get feedbacks(){return this._feedbacks}set feedbacks(e){this._feedbacks=e,this.onFeedbacksChangeEmitter.fire(e)}get formItemPathMap(){return new Map}get initialized(){return this._initialized}get nodeContext(){return{node:this.node,playgroundContext:this.node.getService(RC)}}get nativeFormModel(){var e;return(e=this._formControl)==null?void 0:e._formModel}render(){return jJn(this)}initPlugins(e){e.length&&(this.plugins=e,e.forEach(n=>{var r;n.init(this),(r=n.config)!=null&&r.effect&&FJn(this.effectMap,n.config.effect)}))}init(e,n){const r=this.node.getData(ls);this.onFormValuesChange(()=>{this._valid=null,r.fireChange()});const{validateTrigger:i,validate:o,effect:a}=e;a&&(this.effectMap=a);const s=typeof e.defaultValues=="function"?e.defaultValues(this.nodeContext):e.defaultValues,l=e.formatOnInit?e.formatOnInit(n,this.nodeContext):n,{control:c}=yot({initialValues:l||s,validateTrigger:i,context:this.nodeContext,validate:o,disableAutoInit:!0});this._formControl=c;const u=c._formModel;this.toDispose.push(u),u.onFormValuesChange(d=>{this.onFormValuesChangeEmitter.fire(d)}),e.plugins&&this.initPlugins(e.plugins),u.onFormValuesChange(({values:d,prevValues:f,name:p})=>{Object.keys(this.effectMap).filter(g=>oy.isMatchOrParent(g,p)).forEach(g=>{this.effectMap[g].forEach(({effect:y,event:_})=>{var S;if(_==="onValueChange"||_==="onValueInitOrChange"){const b=oy.getParentPathByPattern(g,p),E=(S=this.effectReturnMap.get(_))==null?void 0:S[b];E&&E();const w=y({name:b,value:Mn.get(d,b),prevValue:Mn.get(f,b),formValues:d,form:EP(this.nativeFormModel),context:this.nodeContext});if(w&&typeof w=="function"&&this.effectReturnMap.has(_)){const C=this.effectReturnMap.get(_);C[b]=w}}})})}),u.onFormValuesInit(({values:d,name:f,prevValues:p})=>{Object.keys(this.effectMap).forEach(h=>{const g=oy.findMatchPaths(d,h);this.effectMap[h].forEach(({event:y,effect:_})=>{(y==="onValueInit"||y==="onValueInitOrChange")&&g.forEach(S=>{var b;if(oy.isMatchOrParent(f,S)||f===S){const E=(b=this.effectReturnMap.get(y))==null?void 0:b[S];E&&E();const w=_({name:S,value:Mn.get(d,S),formValues:d,prevValue:Mn.get(p,S),form:EP(this.nativeFormModel),context:this.nodeContext});if(w&&typeof w=="function"&&this.effectReturnMap.has(y)){const C=this.effectReturnMap.get(y);C[S]=w}}})})})}),u.onFieldModelCreate(d=>{const f=LJn(d,this.effectMap);if(f!=null&&f.length){const p=Mn.groupBy(f,"event");Mn.mapKeys(p,(h,g)=>{const v=y=>{h.forEach(({effect:_})=>_({...y,formValues:u.values,form:EP(this.nativeFormModel),context:this.nodeContext}))};switch(g){case"onArrayAppend":d instanceof Tj&&d.onAppend(v);break;case"onArrayDelete":d instanceof Tj&&d.onDelete(v);break}})}}),this._formControl.init(),this._initialized=!0,this.onInitializedEmitter.fire(this),this.onDispose(()=>{this._initialized=!1,this.effectMap={},u.dispose()})}toJSON(){var e,n;return this.formMeta.formatOnSubmit?this.formMeta.formatOnSubmit((e=this.nativeFormModel)==null?void 0:e.values,this.nodeContext):(n=this.nativeFormModel)==null?void 0:n.values}clearValid(){this.valid!==null&&(this.valid=null)}async validate(){var e,n;return this.formFeedbacks=await((e=this.nativeFormModel)==null?void 0:e.validate()),this.valid=Mn.isEmpty((n=this.formFeedbacks)==null?void 0:n.filter(r=>r.level==="error")),this.onValidateEmitter.fire(this),this.valid}getValues(){var e;return(e=this._formControl)==null?void 0:e._formModel.values}getField(e){var r;let n=e.includes("/")?LM(e):e;return(r=this.formControl)==null?void 0:r.getField(n)}getValueIn(e){var r;let n=e.includes("/")?LM(e):e;return(r=this.nativeFormModel)==null?void 0:r.getValueIn(n)}setValueIn(e,n){var i;let r=e.includes("/")?LM(e):e;(i=this.nativeFormModel)==null||i.setValueIn(r,n)}onFormValueChangeIn(e,n){if(!this._initialized)throw new Error("[NodeEngine] FormModel Error: onFormValueChangeIn can not be called before initialized");return this.formControl._formModel.onFormValuesChange(({name:r,values:i,prevValues:o})=>{r===e&&n({value:Mn.get(i,e),prevValue:Mn.get(o,e),formValues:i,prevFormValues:o})})}getFormItemValueByPath(e){var r;if(!e)return;if(e==="/")return(r=this._formControl)==null?void 0:r._formModel.values;const n=LM(e);return this.getValueIn(n)}async validateWithFeedbacks(){return await this.validate(),$Jn(this.formFeedbacks)}getFormItemByPath(e){if(!this.nativeFormModel)return;const n=this;if(e==="/")return{get value(){return n.nativeFormModel.values},set value(o){n.nativeFormModel.values=o}};const r=LM(e),i=n.getValueIn(r);return{get value(){return i},set value(o){n.setValueIn(r,o)}}}dispose(){this.onDisposeEmitter.fire(),this.effectReturnMap.forEach(e=>{Object.values(e).forEach(n=>{n()})}),this.effectMap=Z_.EFFECT_MAP,this.effectReturnMap=Z_.EFFECT_RETURN_MAP,this.plugins.forEach(e=>{e.dispose()}),this.plugins=[],this.formFeedbacks=Z_.FORM_FEEDBACKS,this._valid=Z_.VALID,this._formControl=void 0,this._initialized=!1,this.toDispose.dispose()}},HJn=class{constructor(e,n,r){this.name=e,this.pluginId=`${e}__${C_()}`,this.config=n,this.opts=r}get formModel(){return this._formModel}get ctx(){return{formModel:this.formModel,node:this.formModel.nodeContext.node,playgroundContext:this.formModel.nodeContext.playgroundContext}}init(e){var n,r;this._formModel=e,(r=(n=this.config)==null?void 0:n.onInit)==null||r.call(n,this.ctx,this.opts)}dispose(){var e,n;(e=this.config)!=null&&e.onDispose&&((n=this.config)==null||n.onDispose(this.ctx,this.opts))}};function zJn(e,n){return function(r){return new HJn(e,n,r)}}function Sot(e){var o;const n=(o=e.getData(ls))==null?void 0:o.getFormModel(),r=n==null?void 0:n.nativeFormModel;if(!n||!r)return;const i={initialValues:r.initialValues,get values(){return r.values},state:r.state,getValueIn:a=>r.getValueIn(a),setValueIn:(a,s)=>r.setValueIn(a,s),render:()=>V.createElement(gJn,{node:e}),onFormValuesChange:n.onFormValuesChange.bind(n),onFormValueChangeIn:n.onFormValueChangeIn.bind(n),onValidate:n.nativeFormModel.onValidate,validate:n.validate.bind(n)};return Object.defineProperty(i,"_formModel",{enumerable:!1,get(){return n}}),i}var VJn=Object.defineProperty,GJn=Object.getOwnPropertyDescriptor,Xa=(e,n,r,i)=>{for(var o=i>1?void 0:i?GJn(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&VJn(n,r,o),o},bLe=(e,n)=>(r,i)=>n(r,i,e),Fo=(e=>(e.START="start",e.DEFAULT="default",e.ROOT="root",e.EMPTY="empty",e.INLINE_BLOCKS="inlineBlocks",e.BLOCK_ICON="blockIcon",e.BLOCK="block",e.BLOCK_ORDER_ICON="blockOrderIcon",e.GROUP="group",e.END="end",e.CONDITION="condition",e.SUB_CANVAS="subCanvas",e))(Fo||{}),WJn=["root","inlineBlocks","block"],Eot=Symbol("FlowLayoutContribution"),Oj=(e=>(e.VERTICAL_FIXED_LAYOUT="vertical-fixed-layout",e.HORIZONTAL_FIXED_LAYOUT="horizontal-fixed-layout",e))(Oj||{});(e=>{function n(r){return r.name==="vertical-fixed-layout"}e.isVertical=n})(Oj||(Oj={}));var lu=(e=>(e[e.STRAIGHT_LINE=0]="STRAIGHT_LINE",e[e.DIVERGE_LINE=1]="DIVERGE_LINE",e[e.MERGE_LINE=2]="MERGE_LINE",e[e.ROUNDED_LINE=3]="ROUNDED_LINE",e[e.CUSTOM_LINE=4]="CUSTOM_LINE",e[e.DRAGGING_LINE=5]="DRAGGING_LINE",e))(lu||{}),em=(e=>(e[e.ADDER_LABEL=0]="ADDER_LABEL",e[e.TEXT_LABEL=1]="TEXT_LABEL",e[e.COLLAPSE_LABEL=2]="COLLAPSE_LABEL",e[e.COLLAPSE_ADDER_LABEL=3]="COLLAPSE_ADDER_LABEL",e[e.CUSTOM_LABEL=4]="CUSTOM_LABEL",e[e.BRANCH_DRAGGING_LABEL=5]="BRANCH_DRAGGING_LABEL",e))(em||{}),tm={NODE_SPACING:"SPACING",ROUNDED_LINE_X_RADIUS:"ROUNDED_LINE_X_RADIUS",ROUNDED_LINE_Y_RADIUS:"ROUNDED_LINE_Y_RADIUS",INLINE_BLOCKS_PADDING_BOTTOM:"INLINE_BLOCKS_PADDING_BOTTOM",COLLAPSED_SPACING:"COLLAPSED_SPACING",HOVER_AREA_WIDTH:"HOVER_AREA_WIDTH"},CP={NULL:0,[tm.NODE_SPACING]:32,MARGIN_RIGHT:20,INLINE_BLOCK_PADDING_BOTTOM:16,INLINE_BLOCKS_PADDING_TOP:30,[tm.INLINE_BLOCKS_PADDING_BOTTOM]:40,MIN_INLINE_BLOCK_SPACING:200,MIN_INLINE_BLOCK_SPACING_HORIZONTAL:80,[tm.COLLAPSED_SPACING]:12,[tm.ROUNDED_LINE_X_RADIUS]:16,[tm.ROUNDED_LINE_Y_RADIUS]:20,[tm.HOVER_AREA_WIDTH]:20},Cot=(e=>(e.PRE_BRANCH="pre_branch",e.NORMAL_BRANCH="normal_branch",e))(Cot||{}),YJn={width:280,height:60},qJn=(e,n)=>{const r=WJn.includes(e);return{isStart:e==="start",hidden:r,defaultExpanded:n.options.allNodesDefaultExpanded,expandedSize:{width:520,height:300},size:YJn,origin:n.layout.getDefaultNodeOrigin(),isInlineBlocks:e==="inlineBlocks",spacing:CP.SPACING,inlineSpacingPre:0,inlineSpacingAfter:0,expandable:!0,draggable:!0,selectable:!0,renderKey:"",minInlineBlockSpacing:()=>Oj.isVertical(n.layout)?CP.MIN_INLINE_BLOCK_SPACING:CP.MIN_INLINE_BLOCK_SPACING_HORIZONTAL}},Rj;(e=>{function n(i,o,a){return{...i,...o,meta:{...i.meta,...o.meta},extend:void 0,type:a}}e.merge=n;function r(i,o){return o.length?o.reduce((a,s)=>n(a,s,i.type),i):i}e.extend=r})(Rj||(Rj={}));var Ume=(e=>(e.addFromNode="addFromNode",e.deleteFromNode="deleteFromNode",e.addBlock="addBlock",e.deleteBlock="deleteBlock",e.createGroup="createGroup",e.ungroup="ungroup",e.moveNodes="moveNodes",e.moveBlock="moveBlock",e.moveChildNodes="moveChildNodes",e.addNodes="addNodes",e.deleteNodes="deleteNodes",e.changeNode="changeNode",e.addChildNode="addChildNode",e.deleteChildNode="deleteChildNode",e.addNode="addNode",e.deleteNode="deleteNode",e))(Ume||{}),BV=Symbol("FlowOperationBaseService"),wot=class R2 extends Pl{constructor(n){super(n),this.onExtInfoChangeEmitter=new Hn,this.onExtInfoChange=this.onExtInfoChangeEmitter.event,this.toDispose.push(ao.create(()=>{this._node&&this._node.remove()}))}get key(){return this.entity.id}getDefaultData(){const{addable:n,expandable:r,defaultExpanded:i}=this.entity.getNodeMeta();return{addable:n,expandable:r,expanded:i||!1,activated:!1,hovered:!1,dragging:!1,stackIndex:0}}updateExtInfo(n){if(k0.isChanged(this.data.extInfo,n)){const r=this.data.extInfo;this.update({extInfo:n}),this.onExtInfoChangeEmitter.fire({oldInfo:r,newInfo:n})}}getExtInfo(){return this.data.extInfo}get addable(){return this.data.addable}get expandable(){return this.data.expandable}get draggable(){const{draggable:n}=this.entity.getNodeMeta();return typeof n=="function"?n(this.entity):n}get expanded(){return this.data.expanded}set expanded(n){this.expandable&&this.data.expanded!==n&&(this.data.expanded=n,this.fireChange())}toggleExpand(){this.expanded=!this.expanded}toggleMouseEnter(n=!1){var i;if(this.entity.document.renderState.setNodeHovered(this.entity),n)return;const r=this.entity.getData(hr);r.renderState.hidden||(this.mouseLeaveTimeout&&(clearTimeout(this.mouseLeaveTimeout),this.mouseLeaveTimeout=void 0),r.renderState.hovered=!0,this.entity.isFirst&&((i=this.entity.parent)==null?void 0:i.id)!=="root"?r.parent.renderState.activated=!0:r.renderState.activated=!0)}toggleMouseLeave(n=!1){if(this.entity.document.renderState.setNodeHovered(void 0),n)return;const r=this.entity.getData(hr);this.mouseLeaveTimeout=setTimeout(()=>{var i;r.renderState.hovered=!1,this.entity.isFirst&&((i=this.entity.parent)==null?void 0:i.id)!=="root"&&(r.parent.renderState.activated=!1),r.renderState.activated=!1},200)}get hidden(){return this.entity.hidden}set hovered(n){this.data.hovered=n,this.fireChange()}get hovered(){return this.data.hovered}get dragging(){return this.data.dragging}set dragging(n){this.data.dragging!==n&&(this.data.dragging=n,this.fireChange())}set activated(n){if(this.entity.flowNodeType==="blockIcon"&&this.entity.parent){this.entity.parent.getData(R2).activated=n;return}this.data.activated!==n&&(this.data.activated=n,this.fireChange())}get activated(){const{entity:n}=this;return n.parent&&n.parent.getData(R2).activated?!0:this.data.activated}get stackIndex(){return this.data.stackIndex}set stackIndex(n){this.data.stackIndex=n}get lineActivated(){var r,i,o;const{activated:n}=this;return n?!!((i=(r=this.entity.parent)==null?void 0:r.getData(R2))!=null&&i.activated||this.entity.isInlineBlock||(o=this.entity.next)!=null&&o.getData(R2).activated):!1}get node(){return this._node?this._node:(this._node=Tr.createDivWithClass("gedit-flow-activity-node"),this._node.dataset.testid="sdk.workflow.canvas.node",this._node.dataset.nodeId=this.entity.id,this._node)}dispose(){super.dispose(),this.onExtInfoChangeEmitter.dispose()}};wot.type="FlowNodeRenderData";var ra=wot,xot=class mh extends Pl{constructor(n){super(n),this.localDirty=!0;const{origin:r}=this.entity.getNodeMeta();this.transform=this.entity.addData(Ui),this.transform.changeLocked=!0,this.transform.update({origin:{...r}}),this.transform.changeLocked=!1,this.renderState=this.entity.addData(ra),this.bindChange(this.transform),this.toDispose.push(ao.create(()=>{const{next:i,parent:o}=this;i&&(i.localDirty=!0),o&&(o.localDirty=!0)}))}get origin(){return this.transform.origin}get key(){return this.entity.id}getDefaultData(){const{size:n,defaultExpanded:r,expandedSize:i,hidden:o}=this.entity.getNodeMeta();return{size:o?{width:0,height:0}:{...r?i:n}}}get collapsed(){return this.entity.collapsed}set collapsed(n){this.entity.collapsed=n,this.localDirty=!0,this.firstChild&&(this.firstChild.localDirty=!0),this.fireChange()}get size(){return this.entity.memoGlobal("size",()=>this.isContainer?this.transform.localSize:this.data.size)}get position(){const{position:n}=this.transform;return{x:n.x,y:n.y}}set size(n){const{width:r,height:i}=this.data.size;this.isContainer||(n.width!==r||n.height!==i)&&(this._data.size={...n},this.localDirty=!0,this.fireChange())}get inputPoint(){return this.entity.memoGlobal("inputPoint",()=>{const{getInputPoint:n}=this.entity.getNodeRegistry();return n?n(this,this.entity.document.layout):this.defaultInputPoint})}get defaultInputPoint(){return this.entity.memoGlobal("defaultInputPoint",()=>this.entity.document.layout.getDefaultInputPoint(this.entity))}get defaultOutputPoint(){return this.entity.memoGlobal("defaultOutputPoint",()=>this.entity.document.layout.getDefaultOutputPoint(this.entity))}get outputPoint(){return this.entity.memoGlobal("outputPoint",()=>{const{getOutputPoint:n}=this.entity.getNodeRegistry();return n?n(this,this.entity.document.layout):this.defaultOutputPoint})}get originDeltaX(){return this.entity.memoLocal("originDeltaX",()=>{const{children:n}=this,{getOriginDeltaX:r}=this.entity.getNodeRegistry();return r?r(this,this.entity.document.layout):n.length===0?-this.size.width*this.origin.x:n.length===1?n[0].originDeltaX:this.entity.isInlineBlocks&&n.length>1?n[0].originDeltaX+this.transform.position.x:n.reduce((i,o)=>{const a=o.originDeltaX;return i===void 0||a<i?a:i},void 0)})}get originDeltaY(){return this.entity.memoLocal("originDeltaY",()=>{const{children:n}=this,{getOriginDeltaY:r}=this.entity.getNodeRegistry();return r?r(this,this.entity.document.layout):n.length===0?-this.size.height*this.origin.y:n.length===1?n[0].originDeltaY:this.entity.isInlineBlocks&&n.length>1?n[0].originDeltaY+this.transform.position.y:n.reduce((i,o)=>{const a=o.originDeltaY;return i===void 0||a<i?a:i},void 0)})}get bounds(){return this.entity.memoGlobal("bounds",()=>{const{transform:n}=this;if(this.isContainer){const r=n.children.map(i=>i.entity.getData(mh).boundsWithPadding);return Qn.enlarge(r).withPadding(this.padding)}return n.bounds})}get boundsWithPadding(){return this.entity.memoGlobal("boundsWithPadding",()=>{const{transform:n}=this;if(this.isContainer){const r=n.children.map(i=>i.entity.getData(mh).boundsWithPadding);return Qn.enlarge(r).withPadding(this.padding)}return n.bounds.clone().withPadding(this.padding)})}get isContainer(){return this.transform.isContainer}get localBounds(){return this.entity.memoLocal("localBounds",()=>{const{transform:n}=this;if(this.isContainer){const r=n.children.map(o=>o.entity.getData(mh).localBounds),i=Qn.enlarge(r).withPadding(this.padding);return eO.applyMatrix(i,n.localTransform)}return n.localBounds.clone().withPadding(this.padding)})}get padding(){return this.entity.document.layout.getPadding(this.entity)}setParentTransform(n){this.transform.parent!==(n==null?void 0:n.transform)&&(this.localDirty=!0),this.transform.setParent(n==null?void 0:n.transform)}get spacing(){const{spacing:n}=this.entity.getNodeMeta();return typeof n=="function"?n(this):n}get inlineSpacingPre(){const{inlineSpacingPre:n}=this.entity.getNodeMeta();return typeof n=="function"?n(this):n}get inlineSpacingAfter(){const{inlineSpacingAfter:n}=this.entity.getNodeMeta();return typeof n=="function"?n(this):n}get minInlineBlockSpacing(){const{minInlineBlockSpacing:n}=this.entity.getNodeMeta();return typeof n=="function"?n(this):n}get children(){return this.entity.children.map(n=>n.getData(mh))}get pre(){var n;return(n=this.entity.pre)==null?void 0:n.getData(mh)}get originParent(){var n;return(n=this.entity.originParent)==null?void 0:n.getData(mh)}get isFirst(){return this.entity.isFirst}get isLast(){return this.entity.isLast}get lastChild(){var n;return(n=this.entity.lastChild)==null?void 0:n.getData(mh)}get firstChild(){var n;return(n=this.entity.firstChild)==null?void 0:n.getData(mh)}get next(){var n;return(n=this.entity.next)==null?void 0:n.getData(mh)}get parent(){var n;return(n=this.entity.parent)==null?void 0:n.getData(mh)}};xot.type="FlowNodeTransformData";var hr=xot,KJn=e=>{const{transform:n}=e,r=n.outputPoint;return n.next?[{type:0,from:r,to:n.next.inputPoint}]:[]},XJn=e=>{var o;const{transform:n}=e,r=n.outputPoint,i=(o=n.parent)==null?void 0:o.outputPoint;return!n.next&&i&&!new hf().copyFrom(r).equals(i)&&!e.isNodeEnd?[{type:0,from:r,to:i}]:[]},sN=class extends Pl{getDefaultData(){return{}}formatLines(e){var n,r,i;return(n=this.entity.document.options)!=null&&n.formatNodeLines?(i=(r=this.entity.document.options)==null?void 0:r.formatNodeLines)==null?void 0:i.call(r,this.entity,e):e}formatLabels(e){var n,r;return this.entity.document.options.formatNodeLabels?(r=(n=this.entity.document.options)==null?void 0:n.formatNodeLabels)==null?void 0:r.call(n,this.entity,e):e}get lines(){return this.entity.memoGlobal("lines",()=>{var r;const{getChildLines:e}=((r=this.entity.parent)==null?void 0:r.getNodeRegistry())||{};if(e)return this.formatLines(e(this,this.entity.document.layout));const{getLines:n}=this.entity.getNodeRegistry();return n?this.formatLines(n(this,this.entity.document.layout)):this.transform.entity.isInlineBlock?[]:this.formatLines([...KJn(this),...XJn(this)])})}get labels(){return this.entity.memoGlobal("labels",()=>{var o,a;const{getChildLabels:e}=((o=this.entity.parent)==null?void 0:o.getNodeRegistry())||{};if(e)return this.formatLabels(e(this,this.entity.document.layout));const{getLabels:n}=this.entity.getNodeRegistry();if(n)return this.formatLabels(n(this,this.entity.document.layout));if(this.transform.entity.isInlineBlock)return[];const r=this.transform.outputPoint;if(this.transform.next)return this.formatLabels([{offset:hf.getMiddlePoint(r,this.transform.next.inputPoint),type:0}]);const i=(a=this.transform.parent)==null?void 0:a.outputPoint;return i&&!new hf().copyFrom(r).equals(i)&&!this.isNodeEnd?this.formatLabels([{offset:i,type:0}]):[]})}constructor(e){super(e),this.transform=this.entity.addData(hr),this.renderData=this.entity.addData(ra),this.bindChange(this.transform),this.bindChange(this.renderData)}get collapsed(){return this.entity.collapsed}get isNodeEnd(){return this.entity.isNodeEnd}};sN.type="FlowNodeTransitionData";var Sl=class extends jm{constructor(e){super(e),this._memoLocalCache=new Map,this._memoGlobalCache=new Map,this.flowNodeType="unknown",this._hidden=!1,this.index=-1,this.document=e.document,this.flowNodeType=e.flowNodeType,this.originParent=e.originParent,this.metaFromJSON=e.meta,this.onDispose(()=>{this.document.originTree.getChildren(this).slice().forEach(n=>{n.dispose()}),this.document.originTree.remove(this,!1),this.originParent=void 0})}initData(e){e.originParent!==this.originParent&&(this.originParent=e.originParent,this._registerCache=void 0),e.parent&&e.parent.addChild(this,e.index),e.meta!==this.metaFromJSON&&(this._metaCache=void 0,this.metaFromJSON=e.meta),this._hidden=!!(this.getNodeMeta().hidden||e.hidden)}get isStart(){return this.getNodeMeta().isStart}get isFirst(){return!this.pre}get isLast(){return!this.next}get isInlineBlocks(){const e=this.getNodeMeta().isInlineBlocks;return typeof e=="function"?e(this):e}get isInlineBlock(){const e=this.document.renderTree.getParent(this);return!!(e&&e.isInlineBlocks)}get isNodeEnd(){return this.memoLocal("isNodeEnd",()=>this.getNodeMeta().isNodeEnd?!0:this.isInlineBlocks&&this.collapsedChildren.length?this.collapsedChildren.every(e=>e.isNodeEnd):this.lastCollapsedChild?this.lastCollapsedChild.isNodeEnd:!1)}addChild(e,n){e.parent!==this&&this.document.originTree.addChild(this,e,n)}get hasChild(){return this.children.length>0}get pre(){return this.document.renderTree.getPre(this)}get next(){return this.document.renderTree.getNext(this)}get parent(){return this.document.renderTree.getParent(this)}getNodeRegistry(){return this._registerCache?this._registerCache:(this._registerCache=this.document.getNodeRegistry(this.flowNodeType,this.originParent),this._registerCache)}getNodeRegister(){return this.getNodeRegistry()}getNodeMeta(){return this._metaCache?this._metaCache:(this.metaFromJSON?this._metaCache={...this.getNodeRegistry().meta,...this.metaFromJSON}:this._metaCache=this.getNodeRegistry().meta,this._metaCache)}get allChildren(){const e=[];for(const n of this.children)e.push(n),e.push(...n.allChildren);return e}get allCollapsedChildren(){const e=[];for(const n of this.collapsedChildren)e.push(n),e.push(...n.allCollapsedChildren);return e}get collapsedChildren(){return this.document.renderTree.getCollapsedChildren(this)}get blocks(){return this.collapsedChildren}get lastBlock(){return this.lastCollapsedChild}get lastCollapsedChild(){const{collapsedChildren:e}=this;return e[e.length-1]}get children(){return this.document.renderTree.getChildren(this)}get lastChild(){const{children:e}=this;return e[e.length-1]}get firstChild(){return this.children[0]}memoLocal(e,n){if(this._memoLocalCache.has(e))return this._memoLocalCache.get(e);const r=n();return this._memoLocalCache.set(e,r),r}memoGlobal(e,n){if(this._memoGlobalCache.has(e))return this._memoGlobalCache.get(e);const r=n();return this._memoGlobalCache.set(e,r),r}clearMemoGlobal(){this._memoGlobalCache.clear()}clearMemoLocal(){this._memoLocalCache.clear()}get childrenLength(){return this.children.length}get collapsed(){var e;return this.document.renderTree.isCollapsed(this)?!0:!!((e=this.parent)!=null&&e.collapsed)}set collapsed(e){this.document.renderTree.setCollapsed(this,e),this.clearMemoGlobal(),this.clearMemoLocal()}get hidden(){return this._hidden}openInsideCollapsed(){this.document.renderTree.openNodeInsideCollapsed(this)}getJSONData(){return this.getExtInfo()}toJSON(){if(this.document.options.toNodeJSON)return this.document.options.toNodeJSON(this);const e={};let n;return this.document.traverse(r=>{if(r.id.startsWith("$"))return;const o=this.getJSONData(),a={id:r.id,type:r.flowNodeType};o!==void 0&&(a.data=o),n||(n=a);let{parent:s}=r;s&&s.id.startsWith("$")&&(s=s.originParent);const l=s?e[s.id]:void 0;l&&(l.blocks||(l.blocks=[]),l.blocks.push(a)),e[r.id]=a},this),n}get isVertical(){return this.document.layout.name==="vertical-fixed-layout"}updateExtInfo(e){this.getData(ra).updateExtInfo(e)}getExtInfo(){return this.getData(ra).getExtInfo()}get onExtInfoChange(){return this.renderData.onExtInfoChange}get renderData(){return this.getData(ra)}get transform(){return this.getData(hr)}get bounds(){return this.transform.bounds}};Sl.type="FlowNodeEntity";(e=>{function n(r){return r instanceof e}e.is=n})(Sl||(Sl={}));var L0=class extends cg{constructor(e){super(e),this.onRefreshEmitter=new Hn,this.lastTransformVersion=-1,this.lastTreeVersion=-1,this.onRefresh=this.onRefreshEmitter.event,this.document=e.document,this.toDispose.push(this.document.originTree.onTreeChange(()=>{this.config.treeVersion+=1,this.fireChange()})),this.toDispose.push(this.onRefreshEmitter)}getDefaultConfig(){return{loading:!0,treeVersion:0}}get loading(){return this.config.loading}set loading(e){this.config.loading!==e&&(this.config.loading=e,this.fireChange())}updateTransformsTree(){this.document.renderTree.traverse((e,n,r)=>{const i=e.getData(hr);i.collapsed&&i.transform.clearChildren(),e.parent&&i.setParentTransform(e.parent.getData(hr)),e.index=r})}clear(){this.lastTreeVersion=-1,this.lastTransformVersion=-1}isTreeDirty(){const e=this.entityManager.getEntityDataVersion(hr),n=this.lastTreeVersion!==this.config.treeVersion,r=this.lastTransformVersion!==e;return n||r}refresh(){const e=this.entityManager.getEntityDataVersion(hr),n=this.lastTreeVersion!==this.config.treeVersion,r=this.lastTransformVersion!==e;this.entityManager.changeEntityLocked=!0,n&&(this.document.renderTree.updateRenderStruct(),this.updateTransformsTree(),this.lastTreeVersion=this.config.treeVersion),(n||r)&&(this.document.layout.update(),this.lastTransformVersion=this.entityManager.getEntityDataVersion(hr),this.lastTreeVersion=this.config.treeVersion,this.onRefreshEmitter.fire()),this.entityManager.changeEntityLocked=!1}};L0.type="FlowDocumentTransformerEntity";var i$=class extends cg{getDefaultConfig(){return{}}constructor(e){super(e)}getNodeHovered(){return this.config.nodeHoveredId?this.entityManager.getEntityById(this.config.nodeHoveredId):void 0}setNodeHovered(e){this.updateConfig({nodeHoveredId:e==null?void 0:e.id})}getDragLabelSide(){return this.config.dragLabelSide}setDragLabelSide(e){this.updateConfig({dragLabelSide:e})}getNodeDroppingId(){return this.config.nodeDroppingId}setNodeDroppingId(e){this.updateConfig({nodeDroppingId:e})}getDragStartEntity(){const{nodeDragStartId:e}=this.config;return this.entityManager.getEntityById(e)}setDragStartEntity(e){this.updateConfig({nodeDragStartId:e==null?void 0:e.id})}getDragEntities(){const{nodeDragIds:e}=this.config;return(e||[]).map(n=>this.entityManager.getEntityById(n))}setDragEntities(e){this.updateConfig({nodeDragIds:e.map(n=>n.id),nodeDragIdsWithChildren:e.map(n=>[n.id,...n.allCollapsedChildren.map(r=>r.id)]).flat()})}onNodeHoveredChange(e,n=100){return this.onConfigChanged(Mn.debounce(()=>e(this.getNodeHovered()),n))}};i$.type="FlowRendererStateEntity";var Tot=class Oot{constructor(n){this.root=n,this.onTreeChangeEmitter=new Hn,this.onTreeChange=this.onTreeChangeEmitter.event,this.map=new Map}dispose(){this.map.clear(),this.onTreeChangeEmitter.dispose()}getInfo(n){let r=this.map.get(n);return r||(r={children:[]},this.map.set(n,r)),r}clear(){this.map.clear()}cloneMap(){const n=new Map;for(const[r,i]of this.map)n.set(r,{...i,children:i.children.slice()});return n}clone(){const n=new Oot(this.root);return n.map=this.cloneMap(),n}remove(n,r=!0){this.removeParent(n),r&&this._removeChildren(n),this.map.delete(n),this.fireTreeChange()}addChild(n,r,i){const o=this.getInfo(n),a=this.getInfo(r);if(a.parent){if(a.parent===n)return r;a.parent!==n&&this.removeParent(r)}const s=o.children.length,l=typeof i>"u"?s-1:i-1,c=o.children[l],u=o.children[l+1];return c&&(this.getInfo(c).next=r),u&&(this.getInfo(u).pre=r),a.pre=c,a.next=u,o.children.splice(l+1,0,r),a.parent=n,this.fireTreeChange(),r}moveChilds(n,r,i){const o=this.getInfo(n),a=o.children.length;let s=i??a;return r.forEach(l=>{this.getInfo(l).parent&&this.removeParent(l)}),r.forEach(l=>{const c=this.getInfo(l);let u=o.children[s-1],d=o.children[s];u&&(this.getInfo(u).next=l),d&&(this.getInfo(d).pre=l),c.pre=u,c.next=d,o.children.splice(s,0,l),c.parent=n,s++}),this.fireTreeChange(),r}getById(n){for(const r of this.map.keys())if(r.id===n)return r}insertAfter(n,r){const i=this.getInfo(n),o=this.getInfo(r);if(this.removeParent(r),i.parent){const a=this.getInfo(i.parent);a.children.splice(a.children.indexOf(n)+1,0,r);const{next:s}=i;s&&(this.getInfo(s).pre=r),o.next=s,i.next=r,o.pre=n,o.parent=i.parent}this.fireTreeChange()}removeParent(n){const r=this.getInfo(n);if(!r.parent)return;const i=this.getInfo(r.parent),o=i.children.indexOf(n);i.children.splice(o,1);const{pre:a,next:s}=r;a&&(this.getInfo(a).next=s),s&&(this.getInfo(s).pre=a),this.fireTreeChange()}_removeChildren(n){const r=this.getChildren(n);r.length>0&&r.forEach(i=>{this._removeChildren(i),this.map.delete(i)})}getParent(n){return this.getInfo(n).parent}getPre(n){return this.getInfo(n).pre}getNext(n){return this.getInfo(n).next}getChildren(n){return this.getInfo(n).children}traverse(n,r=this.root,i=0,o=0){if(n(r,i,o)||this.getInfo(r).children.find((c,u)=>this.traverse(n,c,i+1,u)))return!0}fireTreeChange(){this.onTreeChangeEmitter.fire()}get size(){return this.map.size}toString(){const n=[];return this.traverse((r,i)=>{i===0?n.push(r.id):n.push(`|${new Array(i).fill("--").join("")} ${r.id}`)}),`${n.join(`
|
||
`)}`}},QJn=class extends Tot{constructor(e,n,r){super(e),this.root=e,this.nodesCollapsed=new Set,this.originTree=n,this.onTreeChange=this.originTree.onTreeChange,this.document=r}isCollapsed(e){return this.nodesCollapsed.has(e)}get collapsedNodeList(){return Array.from(this.nodesCollapsed)}setCollapsed(e,n){n?this.nodesCollapsed.add(e):this.nodesCollapsed.delete(e),this.originTree.fireTreeChange()}openNodeInsideCollapsed(e){var r;let n=(r=this.originTree.getInfo(e))==null?void 0:r.parent;for(;n;){this.nodesCollapsed.has(n)&&this.nodesCollapsed.delete(n);const{parent:i}=this.originTree.getInfo(n)||{};n=i}this.originTree.fireTreeChange()}updateRenderStruct(){this.map=this.originTree.cloneMap(),this.document.config.get("END_NODES_REFINE_BRANCH")&&this.refineBranch(this.root),this.hideCollapsed()}hideCollapsed(){this.nodesCollapsed.forEach(e=>{const n=this.getInfo(e);if(!n){this.nodesCollapsed.delete(e);return}const r=n.children.find(i=>i.flowNodeType==="blockIcon"||i.flowNodeType==="blockOrderIcon");if(r){const i=this.getInfo(r);i.next=void 0,i.pre=void 0,n.children=[r];return}n.children=[]})}isNodeEnd(e){if(e.getNodeMeta().isNodeEnd)return!0;const{children:n}=this.getInfo(e);return n.length>0&&e.isInlineBlocks?n.every(r=>this.isNodeEnd(r)):e.isInlineBlock?this.isNodeEnd(n[n.length-1]):!1}refineBranch(e){let n=this.getInfo(e).children[0];for(;n;){if(n.flowNodeType==="dynamicSplit"||n.flowNodeType==="staticSplit"){const{next:r,children:i}=this.getInfo(n),{children:o}=this.getInfo(i[1]),a=(o||[]).filter(l=>!this.isNodeEnd(l)),s=a.length===1;if(s&&r&&this.dragNextNodesToBlock(a[0],r),o==null||o.forEach(l=>{this.refineBranch(l)}),s)break}n=n.next}}dragNextNodesToBlock(e,n){const r=this.getInfo(e),i=this.getInfo(n),o=r.children[e.children.length-1];if(i.parent){const a=this.getInfo(i.parent);if(i.pre&&(this.getInfo(i.pre).next=void 0),o){const c=this.getInfo(o);c.next=n,i.pre=o}const s=a.children.indexOf(n),l=a.children.slice(s);a.children=a.children.slice(0,s);for(const c of l){const u=this.getInfo(c);r.children.push(c),u.parent=e}}}getInfo(e){return this.map.get(e)||this.originTree.getInfo(e)}getOriginInfo(e){return this.originTree.getInfo(e)}getCollapsedChildren(e){return this.getOriginInfo(e).children||[]}remove(){throw new Error("Render Tree cannot use remove node")}addChild(){throw new Error("Render tree cannot use add child")}insertAfter(){throw new Error("Render tree cannot use insert after")}removeParent(){throw new Error("Render tree cannot use remove parent")}},Hme=Symbol("FlowDocumentOptions"),ZJn={allNodesDefaultExpanded:!1},vse={...tm,INLINE_SPACING_BOTTOM:"INLINE_SPACING_BOTTOM",INLINE_BLOCKS_INLINE_SPACING_TOP:"INLINE_BLOCKS_INLINE_SPACING_TOP",INLINE_BLOCKS_INLINE_SPACING_BOTTOM:"INLINE_BLOCKS_INLINE_SPACING_BOTTOM",BASE_COLOR:"BASE_COLOR",BASE_ACTIVATED_COLOR:"BASE_ACTIVATED_COLOR",INLINE_BLOCKS_PADDING_TOP:"INLINE_BLOCKS_PADDING_TOP"},zme=Symbol("FlowDocumentContribution"),JJn=Symbol("FlowDocumentConfigDefaultData"),Ij=class{constructor(e={}){this._data=e,this.onDataChangeEmitter=new Hn,this.onChange=this.onDataChangeEmitter.event}get(e){return this._data[e]}set(e,n){this.get(e)!==n&&(this._data[e]=n,this.onDataChangeEmitter.fire(e))}registerConfigs(e){Object.keys(e).forEach(n=>{this.set(n,e[n])})}};Ij=Xa([Pn(),bLe(0,Ot(JJn)),bLe(0,ss())],Ij);var jV=Symbol("FlowDocumentProvider"),jo=class{constructor(){this.contributions=[],this.registers=new Map,this.nodeRegistryCache=new Map,this.nodeDataRegistries=[],this.layouts=[],this.currentLayoutKey="",this.onNodeUpdateEmitter=new Hn,this.onNodeCreateEmitter=new Hn,this.onNodeDisposeEmitter=new Hn,this.onLayoutChangeEmitter=new Hn,this.onNodeUpdate=this.onNodeUpdateEmitter.event,this.onNodeCreate=this.onNodeCreateEmitter.event,this.onNodeDispose=this.onNodeDisposeEmitter.event,this.onLayoutChange=this.onLayoutChangeEmitter.event}init(){var e,n;this.options||(this.options=ZJn),this.currentLayoutKey=this.options.defaultLayout||"vertical-fixed-layout",this.contributions.forEach(r=>{var i;return(i=r.registerDocument)==null?void 0:i.call(r,this)}),this.root=this.addNode({id:"root",type:"root"}),this.originTree=new Tot(this.root),this.transformer=this.entityManager.createEntity(L0,{document:this}),this.renderState=this.entityManager.createEntity(i$),this.renderTree=new QJn(this.root,this.originTree,this),(n=(e=this.layout).reload)==null||n.call(e)}fromJSON(e,n=!0){this.originTree.clear(),this.renderTree.clear(),this.entityManager.changeEntityLocked=!0;const r=this.entityManager.getEntities(Sl),i=[this.root];this.addBlocksAsChildren(this.root,e.nodes||[],i),r.forEach(o=>{i.includes(o)||o.dispose()}),this.entityManager.changeEntityLocked=!1,this.transformer.loading=!1,n&&this.fireRender()}get layout(){const e=this.layouts.find(n=>n.name==this.currentLayoutKey);if(!e)throw new Error(`Unknown flow layout: ${this.currentLayoutKey}`);return e}async load(){await Promise.all(this.contributions.map(e=>{var n;return(n=e.loadDocument)==null?void 0:n.call(e,this)}))}get loading(){return this.transformer.loading}fireRender(){this.transformer.isTreeDirty()&&(this.entityManager.fireEntityChanged(Sl.type),this.entityManager.fireEntityChanged(L0.type))}addFromNode(e,n){const r=typeof e=="string"?this.getNode(e):e;this.entityManager.changeEntityLocked=!0;const{parent:i}=r,o=this.addNode({...n,parent:i});return this.originTree.insertAfter(r,o),this.entityManager.changeEntityLocked=!1,this.entityManager.fireEntityChanged(Sl.type),o}removeNode(e){var n;typeof e=="string"?(n=this.getNode(e))==null||n.dispose():e.dispose()}addNode(e,n,r){const{id:i,type:o="block",originParent:a,parent:s,meta:l,hidden:c,index:u}=e;let d=this.getNode(i),f=!1;const p=this.getNodeRegistry(o,e.originParent);if(d&&d.flowNodeType!==e.type&&(d.dispose(),d=void 0),!d){const{dataRegistries:h}=p;d=this.entityManager.createEntity(Sl,{id:i,document:this,flowNodeType:o,originParent:a,meta:l});const g=h?this.nodeDataRegistries.concat(...h):this.nodeDataRegistries;d.addInitializeData(g),d.onDispose(()=>this.onNodeDisposeEmitter.fire({node:d})),this.options.fromNodeJSON&&this.options.fromNodeJSON(d,e),f=!0}if(d.initData({originParent:a,parent:s,meta:l,hidden:c,index:u}),d.isStart&&this.root.addChild(d),this.onNodeUpdateEmitter.fire({node:d,data:e}),n==null||n.push(d),p.onCreate){const h=p.onCreate(d,e);h&&n&&n.push(...h)}else e.blocks&&e.blocks.length>0&&(e.blocks[0].type?this.addBlocksAsChildren(d,e.blocks,n):this.addInlineBlocks(d,e.blocks,n));return f&&!r&&this.onNodeCreateEmitter.fire({node:d,data:e}),d}addBlocksAsChildren(e,n,r){for(const i of n)this.addNode({...i,parent:e},r)}addInlineBlocks(e,n,r=[]){const i=this.addNode({id:`$blockIcon$${e.id}`,type:"blockIcon",originParent:e,parent:e});if(r.push(i),n.length>0){const o=this.addNode({id:`$inlineBlocks$${e.id}`,type:"inlineBlocks",originParent:e,parent:e});r.push(o),n.forEach(a=>{this.addBlock(e,a,r)})}return r}addBlock(e,n,r,i,o){var u;const a=typeof e=="string"?this.getNode(e):e,{onBlockChildCreate:s}=a.getNodeRegistry();if(s)return s(a,n,r);i=i||this.getNode(`$inlineBlocks$${a.id}`);const l=this.addNode({...Mn.omit(n,"blocks"),type:n.type||"block",originParent:a,parent:i,index:o});(u=n.meta)!=null&&u.defaultCollapsed&&(l.collapsed=!0);const c=this.addNode({id:`$blockOrderIcon$${n.id}`,type:"blockOrderIcon",originParent:a,meta:n.meta,data:n.data,parent:l});return r==null||r.push(l,c),n.blocks&&this.addBlocksAsChildren(l,n.blocks,r),l}getNode(e){if(e)return this.entityManager.getEntityById(e)}registerFlowNodes(...e){e.forEach(n=>{if(!n)throw new Error("[FlowDocument] registerFlowNodes parameters get undefined registry.");const r=this.registers.get(n.type);this.registers.set(n.type,{...r,...n,meta:{...r==null?void 0:r.meta,...n==null?void 0:n.meta}})})}toJSON(){return{nodes:this.root.toJSON().blocks}}getNodeRegister(e,n){return this.getNodeRegistry(e,n)}getNodeRegistry(e,n){var c,u,d,f,p;const r=`${e}_${(n==null?void 0:n.flowNodeType)||""}`;if(this.nodeRegistryCache.has(r))return this.nodeRegistryCache.get(r);const i=(u=(c=this.options).getNodeDefaultRegistry)==null?void 0:u.call(c,e);let o=this.registers.get(e)||{type:e};const a=[];if(o.extend&&this.registers.has(o.extend)&&(o=Rj.merge(this.getNodeRegistry(o.extend),o,o.type)),n){const h=(d=this.getNodeRegistry(n.flowNodeType).extendChildRegistries)==null?void 0:d.find(g=>g.type===e);h&&(h.extend&&this.registers.has(h.extend)&&a.push(this.registers.get(h.extend)),a.push(h))}o=Rj.extend(o,a);const s=qJn(e,this);s.spacing=((p=(f=this.options)==null?void 0:f.constants)==null?void 0:p[vse.NODE_SPACING])||s.spacing;const l={...i,...o,meta:{...s,...i==null?void 0:i.meta,...o.meta}};return this.nodeRegistryCache.set(r,l),l}registerNodeDatas(...e){this.nodeDataRegistries.push(...e)}traverse(e,n=this.root,r=0){return this.originTree.traverse(e,n,r)}get size(){return this.getAllNodes().length}hasNode(e){return!!this.entityManager.getEntityById(e)}getAllNodes(){return this.entityManager.getEntities(Sl)}toString(){return this.originTree.toString()}getRenderDatas(e,n=!0){const r=[];return this.renderTree.traverse(i=>{!n&&i.hidden||r.push(i.getData(e))}),r}moveNodes({dropNodeId:e,sortNodeIds:n,inside:r=!1}){const i=this.getNode(e);if(!i)return;const o=n.map(a=>this.getNode(a));this.entityManager.changeEntityLocked=!0;for(const a of o.reverse())r?this.originTree.addChild(i,a,0):this.originTree.insertAfter(i,a);this.entityManager.changeEntityLocked=!1,this.fireRender()}moveChildNodes({toParentId:e,toIndex:n,nodeIds:r}){if(r.length===0)return;const i=this.getNode(e);i&&(this.entityManager.changeEntityLocked=!0,this.originTree.moveChilds(i,r.map(o=>this.getNode(o)),n),this.entityManager.changeEntityLocked=!1,this.fireRender())}registerLayout(e){this.layouts.push(e)}setLayout(e){var r;if(this.currentLayoutKey===e)return;const n=this.layouts.find(i=>i.name===e);n&&(this.currentLayoutKey=e,this.transformer.clear(),(r=n.reload)==null||r.call(n),this.fireRender(),this.onLayoutChangeEmitter.fire(this.layout))}toggleFixedLayout(){this.setLayout(this.layout.name==="horizontal-fixed-layout"?"vertical-fixed-layout":"horizontal-fixed-layout")}dispose(){this.registers.clear(),this.nodeRegistryCache.clear(),this.originTree.dispose(),this.renderTree.dispose(),this.onNodeUpdateEmitter.dispose(),this.onNodeCreateEmitter.dispose(),this.onNodeDisposeEmitter.dispose(),this.onLayoutChangeEmitter.dispose()}};Xa([Ot(Lo)],jo.prototype,"entityManager",2);Xa([Ot(Ij)],jo.prototype,"config",2);Xa([Ot(Hme),ss()],jo.prototype,"options",2);Xa([E_(zme),ss()],jo.prototype,"contributions",2);Xa([Zc()],jo.prototype,"init",1);jo=Xa([Pn()],jo);var Rot=class Iot{constructor(n){this.groupNode=n}get nodes(){return this.groupNode.collapsedChildren||[]}get collapsed(){return this.groupNode.getData(hr).collapsed}collapse(){this.collapsed=!0}expand(){this.collapsed=!1}get bounds(){return this.groupNode.getData(hr).bounds}isStartNode(n){if(!n)return!1;const r=this.nodes;return r[0]?n.id===r[0].id:!1}isEndNode(n){if(!n)return!1;const r=this.nodes;return r[r.length-1]?n.id===r[r.length-1].id:!1}set note(n){this.groupNode.getNodeMeta().note=n}get note(){return this.groupNode.getNodeMeta().note||""}set noteHeight(n){this.groupNode.getNodeMeta().noteHeight=n}get noteHeight(){return this.groupNode.getNodeMeta().noteHeight||0}get positionConfig(){return this.groupNode.getNodeMeta().positionConfig}set collapsed(n){var i;const r=this.groupNode.getData(hr);r.collapsed=n,r.localDirty=!0,r.parent&&(r.parent.localDirty=!0),(i=r.parent)!=null&&i.firstChild&&(r.parent.firstChild.localDirty=!0)}set hovered(n){const r=this.groupNode.getData(ra);n?r.toggleMouseEnter():r.toggleMouseLeave(),r.hovered!==n&&(r.hovered=n)}get hovered(){return this.groupNode.getData(ra).hovered}static create(n){if(n&&CR.isGroupNode(n))return new Iot(n)}},CR;(e=>{const n=i=>{const o=[];let a=i.parent;for(;a;)o.push(a),a=a.parent;return o},r=i=>{var o;return((o=i==null?void 0:i.parent)==null?void 0:o.flowNodeType)==="group"};e.validate=i=>{if(!i||!Array.isArray(i)||i.length===0||i.some(p=>(0,e.isGroupNode)(p))||i.some(p=>p&&r(p)))return!1;const s=i[0].parent;return!(!i.every(p=>p.parent===s)||!i.map(p=>p.index).sort((p,h)=>p-h).every((p,h,g)=>h===0?!0:p===g[h-1]+1)||n(i[0]).some(p=>r(p)))},e.getNodeGroupController=i=>{if(!i||!r(i))return;const o=i==null?void 0:i.parent;return Rot.create(o)},e.getNodeRecursionGroupController=i=>{if(!i)return;const o=(0,e.getNodeGroupController)(i);if(o)return o;if(i.parent)return(0,e.getNodeRecursionGroupController)(i.parent)},e.isGroupNode=i=>i.flowNodeType==="group"})(CR||(CR={}));var Vm=class{constructor(){this.onDropEmitter=new Hn,this.onDrop=this.onDropEmitter.event}get renderState(){return this.document.renderState}get dragStartNode(){return this.renderState.getDragStartEntity()}get dragNodes(){return this.renderState.getDragEntities()}get dropNodeId(){return this.renderState.getNodeDroppingId()}get isDragBranch(){var e;return(e=this.dragStartNode)==null?void 0:e.isInlineBlock}get nodeDragIdsWithChildren(){return this.renderState.config.nodeDragIdsWithChildren||[]}get dragging(){var n;const e=(n=this.dragStartNode)==null?void 0:n.getData(ra);return!!(e!=null&&e.dragging)}get labelSide(){return this.renderState.config.dragLabelSide}dropBranch(){this.dropNode()}dropNode(){const e=this.document.getNode(this.dropNodeId);if(!e)return;const n=[];let r=this.dragStartNode;for(;r&&this.dragNodes.includes(r);)n.push(r),r=r.next;this.operationService.dragNodes({dropNode:e,nodes:n}),n.length>0&&this.onDropEmitter.fire({dropNode:e,dragNodes:n})}isDroppableNode(e){return!(!this.dragging||this.isDragBranch||this.nodeDragIdsWithChildren.includes(e.id)||e.next&&this.nodeDragIdsWithChildren.includes(e.next.id)||e.isInlineBlocks||e.isInlineBlock||this.dragNodes.some(r=>r.flowNodeType==="group")&&CR.getNodeRecursionGroupController(e))}isDroppableBranch(e,n="normal_branch"){if(this.isDragBranch){if(!e.isInlineBlock||e.parent!==this.dragStartNode.parent||e===this.dragStartNode)return!1;if(n==="normal_branch"&&e.next!==this.dragStartNode||n==="pre_branch"&&e.pre!==this.dragStartNode)return!0}return!1}};Xa([Ot(jo)],Vm.prototype,"document",2);Xa([Ot(BV)],Vm.prototype,"operationService",2);Xa([Ot(Lo)],Vm.prototype,"entityManager",2);Vm=Xa([Pn()],Vm);var MC=class{constructor(){this.onNodeAddEmitter=new Hn,this.onNodeAdd=this.onNodeAddEmitter.event,this.toDispose=new Ei,this.onNodeMoveEmitter=new Hn,this.onNodeMove=this.onNodeMoveEmitter.event}init(){this.toDispose.pushAll([this.onNodeAddEmitter,this.onNodeMoveEmitter])}addNode(e,n={}){const{parent:r,index:i,hidden:o}=n;let a;r&&(a=this.toNodeEntity(r));let s;a&&(s=a.getNodeRegistry());const l={...e,type:e.type||"block"},c={...l,parent:a,index:i,hidden:o};let u;return a&&(s!=null&&s.addChild)?u=s.addChild(a,l,{index:i,hidden:o}):u=this.document.addNode(c),this.onNodeAddEmitter.fire({node:u,data:c}),u}addFromNode(e,n){return this.document.addFromNode(e,n)}deleteNode(e){this.document.removeNode(e)}deleteNodes(e){(e||[]).forEach(n=>{this.deleteNode(n)})}addBlock(e,n,r={}){const{parent:i,index:o}=r;return this.document.addBlock(e,n,void 0,i,o)}moveNode(e,n={}){const{parent:r,index:i}=n,o=this.toNodeEntity(e),a=o==null?void 0:o.parent;if(!a)return;const s=r?this.toNodeEntity(r):a;if(!s){console.warn("no new parent found",r);return}let l=typeof i>"u"?s.collapsedChildren.length:i;return this.doMoveNode(o,s,l)}dragNodes({dropNode:e,nodes:n}){if(n.length===0)return;const r=n[0],i=r.parent,o=e.parent;if(!i||!o)return;const a=i.children.findIndex(u=>u===r),s=o.children.findIndex(u=>u===e);let l=s+1;i===o&&a<s&&(l=l-n.length);const c={nodeIds:n.map(u=>u.id),fromParentId:i.id,toParentId:o.id,fromIndex:a,toIndex:l};return this.apply({type:"moveChildNodes",value:c})}apply(e){var r,i,o,a,s,l;const n=this.document;switch(e.type){case"addFromNode":return n.addFromNode(e.value.fromId,e.value.data);case"deleteFromNode":return(o=n.getNode((i=(r=e.value)==null?void 0:r.data)==null?void 0:i.id))==null?void 0:o.dispose();case"addBlock":{let c;return e.value.parentId&&(c=n.getNode(e.value.parentId)),n.addBlock(e.value.targetId,e.value.blockData,void 0,c,e.value.index)}case"deleteBlock":{const c=n.getNode((a=e.value)==null?void 0:a.blockData.id);return c==null?void 0:c.dispose()}case"createGroup":{const c=n.addFromNode(e.value.targetId,{id:e.value.groupId,type:"group"});return n.moveNodes({dropNodeId:e.value.groupId,sortNodeIds:e.value.nodeIds,inside:!0}),c}case"ungroup":return n.moveNodes({dropNodeId:e.value.groupId,sortNodeIds:e.value.nodeIds}),(s=n.getNode(e.value.groupId))==null?void 0:s.dispose();case"moveNodes":return n.moveNodes({dropNodeId:e.value.toId,sortNodeIds:e.value.nodeIds});case"moveBlock":return n.moveChildNodes({...e.value,nodeIds:[e.value.nodeId]});case"addNodes":{let c=e.value.fromId;(e.value.nodes||[]).forEach(u=>{c=n.addFromNode(c,u).id});break}case"deleteNodes":{(e.value.nodes||[]).forEach(c=>{const u=n.getNode(c.id);u==null||u.dispose()});break}case"addChildNode":return n.addNode({...e.value.data,parent:e.value.parentId?n.getNode(e.value.parentId):void 0,originParent:e.value.originParentId?n.getNode(e.value.originParentId):void 0,index:e.value.index,hidden:e.value.hidden});case"deleteChildNode":return(l=n.getNode(e.value.data.id))==null?void 0:l.dispose();case"moveChildNodes":return n.moveChildNodes(e.value);default:throw new Error("unknown operation type")}}transact(e){e()}dispose(){this.toDispose.dispose()}toId(e){return typeof e=="string"?e:e.id}toNodeEntity(e){return typeof e=="string"?this.document.getNode(e):e}getNodeIndex(e){const n=this.toNodeEntity(e),r=n==null?void 0:n.parent;return r?r.children.findIndex(i=>i===n):-1}doMoveNode(e,n,r){if(!e.parent)throw new Error("root node cannot move");const i={node:e,fromParent:e.parent,toParent:n,fromIndex:this.getNodeIndex(e),toIndex:r};this.document.moveChildNodes({nodeIds:[this.toId(e)],toParentId:this.toId(n),toIndex:r}),this.onNodeMoveEmitter.fire(i)}};Xa([Ot(Lo)],MC.prototype,"entityManager",2);Xa([Ot(jo)],MC.prototype,"document",2);Xa([Zc()],MC.prototype,"init",1);MC=Xa([Pn()],MC);var PC=class{createGroup(e){if(!e||!Array.isArray(e)||e.length===0||!CR.validate(e))return;const r=e.sort((s,l)=>s.index-l.index)[0],i=`group_${C_(5)}`;this.operationService.apply({type:"createGroup",value:{targetId:r.id,groupId:i,nodeIds:e.map(s=>s.id)}});const o=this.entityManager.getEntityById(i);if(!o)return;const a=this.groupController(o);if(a)return a.expand(),o}deleteGroup(e){const n=e.toJSON();!e.pre||!n||this.operationService.apply({type:"deleteNodes",value:{fromId:e.pre.id,nodes:[n]}})}ungroup(e){const n=this.groupController(e);if(!n)return;const r=n.nodes;e.pre&&(n.collapse(),this.operationService.apply({type:"ungroup",value:{groupId:e.id,targetId:e.pre.id,nodeIds:r.map(i=>i.id)}}))}getAllGroups(){return this.entityManager.getEntities(Sl).filter(r=>r.flowNodeType==="group").map(r=>this.groupController(r)).filter(Boolean)}groupController(e){return Rot.create(e)}static validate(e){return CR.validate(e)}};Xa([Ot(Lo)],PC.prototype,"entityManager",2);Xa([Ot(BV)],PC.prototype,"operationService",2);PC=Xa([Pn()],PC);var eer=-36;function ter(e,n){return e.childrenLength===n.childrenLength&&e.index===n.index}var wR=class{constructor(){this.name="vertical-fixed-layout",this.structDataMap=new WeakMap}get document(){return this.documentProvider()}reload(){this.structDataMap=new WeakMap}update(){this.updateLocalTransform(this.document.root)}updateLocalTransform(e,n=!1){var _,S,b,E;const{children:r,parent:i,isInlineBlock:o}=e,a=e.getData(hr),{getDelta:s,getOrigin:l}=e.getNodeRegistry(),c=this.structDataMap.get(e)||{childrenLength:0,index:-1};e.clearMemoGlobal();let u=a.localDirty||n;const d={index:e.index,childrenLength:e.children.length};ter(c,d)||(u=!0,this.structDataMap.set(e,d));let f=!1;if(r.length>0)for(const w of r)this.updateLocalTransform(w,f)&&(f=!0,u=!0);if(!u)return!1;e.clearMemoLocal(),a.transform.update({origin:l?l(a,this):this.getDefaultNodeOrigin()});const p=a.pre,h=(s==null?void 0:s(a,this))||{x:0,y:0},g=o&&((_=a.parent)!=null&&_.inlineSpacingPre)?(S=a.parent)==null?void 0:S.inlineSpacingPre:0,v=((E=i==null?void 0:(b=i.getNodeRegistry()).getChildDelta)==null?void 0:E.call(b,a,this))||{x:0,y:0};h.x+=v.x,h.y+=v.y;const y={x:h.x,y:h.y};return o?y.y+=g:(y.y+=(p==null?void 0:p.localBounds.bottom)||0,y.y+=(p==null?void 0:p.spacing)||0),a.transform.update({size:a.data.size,position:y}),this.onAfterUpdateLocalTransform(a),a.localDirty=!1,!0}onAfterUpdateLocalTransform(e){var r;const{onAfterUpdateLocalTransform:n}=e.entity.getNodeRegistry();n==null||n(e,this),(r=this.contribs)==null||r.forEach(i=>{var o;(o=i==null?void 0:i.onAfterUpdateLocalTransform)==null||o.call(i,e,this)})}getNodeTransform(e){return e.getData(hr)}getPadding(e){const{inlineSpacingPre:n,inlineSpacingAfter:r,padding:i}=e.getNodeMeta(),o=this.getNodeTransform(e);if(i)return typeof i=="function"?i(o):i;const a=typeof n=="function"?n(o):n,s=typeof r=="function"?r(o):r;return{left:0,top:a,right:0,bottom:s}}getInitScroll(e){return{scrollX:-e.width/2,scrollY:eer}}getDefaultInputPoint(e){return this.getNodeTransform(e).bounds.topCenter}getDefaultOutputPoint(e){return this.getNodeTransform(e).bounds.bottomCenter}getDefaultNodeOrigin(){return{x:.5,y:0}}};Xa([Ot(jV)],wR.prototype,"documentProvider",2);Xa([E_(Eot),ss()],wR.prototype,"contribs",2);wR=Xa([Pn()],wR);var ner=-36;function rer(e,n){return e.childrenLength===n.childrenLength&&e.index===n.index}var xR=class{constructor(){this.name="horizontal-fixed-layout",this.structDataMap=new WeakMap}get document(){return this.documentProvider()}reload(){this.structDataMap=new WeakMap}update(){this.updateLocalTransform(this.document.root)}updateLocalTransform(e,n=!1){var _,S,b,E;const{children:r,parent:i,isInlineBlock:o}=e,a=e.getData(hr),{getDelta:s,getOrigin:l}=e.getNodeRegistry(),c=this.structDataMap.get(e)||{childrenLength:0,index:-1};e.clearMemoGlobal();let u=a.localDirty||n;const d={index:e.index,childrenLength:e.children.length};rer(c,d)||(u=!0,this.structDataMap.set(e,d));let f=!1;if(r.length>0)for(const w of r)this.updateLocalTransform(w,f)&&(f=!0,u=!0);if(!u)return!1;e.clearMemoLocal(),a.transform.update({origin:l?l(a,this):this.getDefaultNodeOrigin()});const p=a.pre,h=(s==null?void 0:s(a,this))||{x:0,y:0},g=o&&((_=a.parent)!=null&&_.inlineSpacingPre)?(S=a.parent)==null?void 0:S.inlineSpacingPre:0,v=((E=i==null?void 0:(b=i.getNodeRegistry()).getChildDelta)==null?void 0:E.call(b,a,this))||{x:0,y:0};h.x+=v.x,h.y+=v.y;const y={x:h.x,y:h.y};return o?y.x+=g:(y.x+=(p==null?void 0:p.localBounds.right)||0,y.x+=(p==null?void 0:p.spacing)||0),a.transform.update({size:a.data.size,position:y}),this.onAfterUpdateLocalTransform(a),a.localDirty=!1,!0}onAfterUpdateLocalTransform(e){var r;const{onAfterUpdateLocalTransform:n}=e.entity.getNodeRegistry();n==null||n(e,this),(r=this.contribs)==null||r.forEach(i=>{var o;(o=i==null?void 0:i.onAfterUpdateLocalTransform)==null||o.call(i,e,this)})}getNodeTransform(e){return e.getData(hr)}getPadding(e){const{inlineSpacingPre:n,inlineSpacingAfter:r,padding:i}=e.getNodeMeta(),o=this.getNodeTransform(e);if(i)return typeof i=="function"?i(o):i;const a=typeof n=="function"?n(o):n,s=typeof r=="function"?r(o):r;return{left:a,top:0,right:s,bottom:0}}getInitScroll(e){return{scrollX:ner,scrollY:-e.height/2}}getDefaultInputPoint(e){return this.getNodeTransform(e).bounds.leftCenter}getDefaultOutputPoint(e){return this.getNodeTransform(e).bounds.rightCenter}getDefaultNodeOrigin(){return{x:0,y:.5}}};Xa([Ot(jV)],xR.prototype,"documentProvider",2);Xa([E_(Eot),ss()],xR.prototype,"contribs",2);xR=Xa([Pn()],xR);var ier=new Zp(e=>{e(jo).toSelf().inSingletonScope(),e(jV).toDynamicValue(n=>()=>n.container.get(jo)).inSingletonScope(),e(Ij).toSelf().inSingletonScope(),e(wR).toSelf().inSingletonScope(),e(xR).toSelf().inSingletonScope(),e(Vm).toSelf().inSingletonScope(),e(BV).to(MC).inSingletonScope(),e(PC).toSelf().inSingletonScope(),e(zme).toDynamicValue(n=>({registerDocument:r=>{r.registerLayout(n.container.get(wR)),r.registerLayout(n.container.get(xR))}}))}),SLe=(e,n,r)=>{var a;const i=e.getService(Hme);return((a=i==null?void 0:i.constants)==null?void 0:a[n])||r||CP[n]},oer={languageId:"zh-CN",languageName:"Chinese",localizedLanguageName:"中文(中国)",contents:{Yes:"是",No:"否"}},aer={languageId:"en-US",languageName:"English",localizedLanguageName:"English",contents:{Yes:"Yes",No:"No"}},ser=class{constructor(e){this._languages=new Map,this._localLanguage="en-US",this._onLanguageChangeEmitter=new Hn,this.onLanguageChange=this._onLanguageChangeEmitter.event,e.forEach(n=>this.addLanguage(n))}t(e,n){var i;const r=((i=this._languages.get(this._localLanguage))==null?void 0:i.contents)||{};return r[e]?r[e]:n!=null&&n.disableReturnKey?"":e}getLocalLanguage(){return this._localLanguage}setLocalLanguage(e){e!==this._localLanguage&&(this._localLanguage=e,this._onLanguageChangeEmitter.fire(e))}getLangauges(){return this._languages}addLanguage(e){let n=this._languages.get(e.languageId);n?this._languages.set(e.languageId,{...n,...e,contents:{...n.contents,...e.contents}}):this._languages.set(e.languageId,e)}},nF=new ser([aer,oer]),ler=Object.defineProperty,cer=Object.getOwnPropertyDescriptor,tr=(e,n,r,i)=>{for(var o=i>1?void 0:i?cer(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&ler(n,r,o),o},Not="#BBBFC4",uer="#82A7FC";function o$(){var n,r;const e=Di(Hme);return{baseColor:((n=e.constants)==null?void 0:n[vse.BASE_COLOR])||Not,baseActivatedColor:((r=e.constants)==null?void 0:r[vse.BASE_ACTIVATED_COLOR])||uer}}var Mot={stroke:Not,fill:"transparent",strokeLinecap:"round",strokeLinejoin:"round"},der=16,Nj=32;function fer(e,n=16,r=20){const{from:i,to:o,type:a}=e||{},s=Math.abs(o.y-i.y),l=Math.abs(o.x-i.x),c=l/n,u=s/r;let d=[];if(c<1)return[];switch(a){case lu.DIVERGE_LINE:case lu.DRAGGING_LINE:if(c<=1)return[{x:o.x,y:i.y,radiusX:l}];if(d=[{x:i.x+r,y:i.y},{x:i.x+r,y:o.y}],c<2){const f=l-r;d=[{x:i.x+f,y:i.y,radiusX:f},{x:i.x+f,y:o.y}]}return u<2&&(d[0].moveY=s/2,d[1].moveY=s/2),d;case lu.MERGE_LINE:return c<2?[{x:o.x,y:i.y}]:(d=[{x:o.x-r,y:i.y},{x:o.x-r,y:o.y}],u<2&&(d[0].moveY=s/2,d[1].moveY=s/2),d)}return[]}function per(e,n=16,r=20){const{from:i,to:o,type:a}=e||{},s=Math.abs(o.y-i.y),l=Math.abs(o.x-i.x),c=s/r,u=l/n;let d=[];if(c<1)return[];switch(a){case lu.DIVERGE_LINE:case lu.DRAGGING_LINE:if(c<=1)return[{x:o.x,y:i.y,radiusY:s}];if(d=[{x:i.x,y:i.y+r},{x:o.x,y:i.y+r}],c<2){const f=s-r;d=[{x:i.x,y:i.y+f,radiusY:f},{x:o.x,y:i.y+f}]}return u<2&&(d[0].moveX=l/2,d[1].moveX=l/2),d;case lu.MERGE_LINE:return c<2?[{x:i.x,y:o.y}]:(d=[{x:i.x,y:o.y-r},{x:o.x,y:o.y-r}],u<2&&(d[0].moveX=l/2,d[1].moveX=l/2),d)}return[]}function Pot(e){var r,i,o;const{isVertical:n}=e.entity;if(n){const a=(r=e.entity.next)!=null&&r.firstChild&&!e.entity.next.isInlineBlocks?e.entity.next.firstChild.getData(hr).size.width:(i=e.entity.next)==null?void 0:i.getData(hr).size.width;return Math.max(((o=e.entity.getData(hr))==null?void 0:o.size.width)??CP[tm.HOVER_AREA_WIDTH],a||0)}return e.transform.next?e.transform.next.inputPoint.x-e.transform.outputPoint.x:Nj}function Aot(e){var o,a,s;const{isVertical:n}=e.entity;if(n)return e.transform.next?e.transform.next.inputPoint.y-e.transform.outputPoint.y:Nj;const r=(o=e.entity.next)!=null&&o.firstChild&&!e.entity.next.isInlineBlocks?e.entity.next.firstChild.getData(hr).size.height:(a=e.entity.next)==null?void 0:a.getData(hr).size.height;return Math.max(((s=e.entity.getData(hr))==null?void 0:s.size.height)||280,r||0)}var ELe=64,J_=4,CLe=20,h5=20,her=60,Dot=class extends cg{constructor(e){super(e),this.containerX=0,this.containerY=0,this.playgroundConfigEntity=this.entityManager.getEntity(da,!0)}get hasScroll(){return!!(this._scrollXInterval||this._scrollYInterval)}isCollision(e,n,r){const i=this.playgroundConfigEntity.finalScale||0;return r?this.isBranchCollision(e,n,i):this.isNodeCollision(e,n,i)}isNodeCollision(e,n,r){const{labels:i}=e,{isVertical:o}=e.entity;return{hasCollision:i.some(s=>{if(!s||![em.ADDER_LABEL,em.COLLAPSE_ADDER_LABEL].includes(s.type))return!1;const l=o?e.transform.bounds.width:Nj,c=o?Nj:e.transform.bounds.height,u=new Qn((s.offset.x-l/2)*r,(s.offset.y-c/2)*r,l*r,c*r);return Qn.intersects(u,n)}),labelOffsetType:void 0}}isBranchCollision(e,n,r){const{labels:i}=e,{isVertical:o}=e.entity;let a=Cot.NORMAL_BRANCH;return{hasCollision:i.some(l=>{if(!l||l.type!==em.BRANCH_DRAGGING_LABEL)return!1;const c=o?ELe:l.width||0,u=o?l.width||0:ELe,d=new Qn((l.offset.x-u/2)*r,(l.offset.y-c/2)*r,u*r,c*r),f=Qn.intersects(d,n);return f&&(a=l.props.side),f}),labelOffsetType:a}}_startScrollX(e,n){if(this._scrollXInterval)return;const r=window.setInterval(()=>{const i=this._scrollXInterval;if(!i)return;const o=i.origin=n?i.origin+J_:i.origin-J_;this.playgroundConfigEntity.updateConfig({scrollX:o});const a=this.playgroundConfigEntity.config;(a==null?void 0:a.scrollX)===o&&(n?this.containerX+=J_:this.containerX-=J_,this.setDomStyle())},CLe);this._scrollXInterval={interval:r,origin:e}}_stopScrollX(){this._scrollXInterval&&(clearInterval(this._scrollXInterval.interval),this._scrollXInterval=void 0)}_startScrollY(e,n){if(this._scrollYInterval)return;const r=window.setInterval(()=>{const i=this._scrollYInterval;if(!i)return;const o=i.origin=n?i.origin+J_:i.origin-J_;this.playgroundConfigEntity.updateConfig({scrollY:o});const a=this.playgroundConfigEntity.config;(a==null?void 0:a.scrollY)===o&&(n?this.containerY+=J_:this.containerY-=J_,this.setDomStyle())},CLe);this._scrollYInterval={interval:r,origin:e}}_stopScrollY(){this._scrollYInterval&&(clearInterval(this._scrollYInterval.interval),this._scrollYInterval=void 0)}stopAllScroll(){this._stopScrollX(),this._stopScrollY()}setDomStyle(){this.containerDom.style.left=`${this.containerX}px`,this.containerDom.style.top=`${this.containerY}px`}scrollDirection(e,n,r,i){const o=this.playgroundConfigEntity.config,a=o.scrollX,s=o.scrollY;if(this.containerDom=n,this.containerX=r,this.containerY=i,o.height+o.clientY-e.clientY<h5)return this._startScrollY(s,!0),1;if(e.clientY-o.clientY<h5)return this._startScrollY(s,!1),0;if(this._stopScrollY(),o.width+o.clientX-e.clientX<h5)return this._startScrollX(a,!0),3;if(e.clientX-o.clientX<h5+her)return this._startScrollX(a,!1),2;this._stopScrollX()}dispose(){this.toDispose.dispose()}};Dot.type="FlowDragEntity";function ger(e){const n=[e];for(e=e.parent;e;)n.push(e),e=e.parent;return n.reverse()}function mer(e){for(;e.originParent;)e=e.originParent;return e}function ver(e){if(e.length===0)return[];const n=e.map(a=>ger(a)),r=Math.min(...n.map(a=>a.length));let i=0,o=[];for(;i<r&&(o=Mn.uniq(n.map(a=>a[i])),!(o.length>1));)i+=1;return Mn.uniq(o.map(a=>mer(a)))}var yer=10,a$=class extends cg{constructor(){super(...arguments),this.boundsPadding=yer}getDefaultConfig(){return{selectedNodes:[]}}get selectedNodes(){return this.config.selectedNodes}set selectedNodes(e){e=ver(e),(e.length!==this.config.selectedNodes.length||e.some(n=>!this.config.selectedNodes.includes(n)))&&(this.config.selectedNodes.forEach(n=>{e.includes(n)||(n.getData(ra).activated=!1)}),e.forEach(n=>{n.getData(ra).activated=!0}),k0.isArrayShallowChanged(this.config.selectedNodes,e)&&this.updateConfig({selectedNodes:e}))}clearSelectedNodes(){this.config.selectedNodes.length!==0&&(this.config.selectedNodes.forEach(e=>{e.getData(ra).activated=!1}),this.updateConfig({selectedNodes:[]}))}selectFromBounds(e,n){const r=[];n.forEach(i=>{Qn.intersects(e,i.bounds)&&(i.entity.originParent?r.push(i.entity.originParent):r.push(i.entity))}),this.selectedNodes=r}getSelectedBounds(){const e=this.selectedNodes;return e.length===0?Qn.EMPTY:Qn.enlarge(e.map(n=>n.getData(hr).bounds)).pad(this.boundsPadding)}};a$.type="FlowSelectConfigEntity";var s$=class extends cg{get dragInfo(){return this.config}setDragInfo(e){this.updateConfig(e)}get disabled(){return this.config&&!!this.config.disabled}set disabled(e){this.updateConfig({disabled:e})}get isStart(){return this.dragInfo.isStart}get isMoving(){return this.dragInfo.isMoving}get position(){const{dragInfo:e}=this;return{x:e.startPos.x<e.endPos.x?e.startPos.x:e.endPos.x,y:e.startPos.y<e.endPos.y?e.startPos.y:e.endPos.y}}get size(){const{dragInfo:e}=this;return{width:Math.abs(e.startPos.x-e.endPos.x),height:Math.abs(e.startPos.y-e.endPos.y)}}get collapsed(){const{size:e}=this;return e.width===0&&e.height===0}collapse(){this.setDragInfo({...this.dragInfo,isMoving:!1,isStart:!1})}toRectangle(e){const{position:n,size:r}=this;return new Qn(n.x/e,n.y/e,r.width/e,r.height/e)}};s$.type="SelectorBoxConfigEntity";var _er=e=>{if(!e||Mn.isNil(e==null?void 0:e.offsetParent))return!0;const n=window.getComputedStyle(e);return(n==null?void 0:n.display)==="none"},ber=e=>!(!e||e.bottom===0&&e.height===0&&e.left===0&&e.right===0&&e.top===0&&e.width===0&&e.x===0&&e.y===0),Mj=class{observe(e,n){const r=new ResizeObserver(i=>{window.requestAnimationFrame(()=>{if(!Array.isArray(i)||!i.length)return;const o=i[0],{contentRect:a,target:s}=o,l=ber(a),c=!s.parentNode,u=_er(s.parentNode);l&&!c&&!u&&(n.size={width:Math.round(a.width*10)/10,height:Math.round(a.height*10)/10})})});return r.observe(e),ao.create(()=>{r.unobserve(e)})}};Mj=tr([Pn()],Mj);var AC=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-flow-nodes-layer"),this.renderCache=uD.create(e=>{const{renderState:n}=e,{node:r}=n,{entity:i}=e;r.id=i.id;let o;const a=()=>{o||(this.renderElement.appendChild(r),o=this.resizeObserver.observe(r,e))},s=()=>{o&&(r.parentElement&&this.renderElement.removeChild(r),o.dispose(),o=void 0)};return a(),{dispose:s,updateBounds:()=>{const{bounds:l}=e,c=parseFloat(r.style.left),u=parseFloat(r.style.top);(!this.isCoordEqual(c,l.x)||!this.isCoordEqual(u,l.y))&&(r.style.left=`${l.x}px`,r.style.top=`${l.y}px`)}}})}get transformVisibles(){return this.document.getRenderDatas(hr,!1)}onZoom(e){this.node.style.transform=`scale(${e})`}dispose(){this.renderCache.dispose(),super.dispose()}isCoordEqual(e,n){return Math.abs(e-n)<.05}onReady(){this.node.style.zIndex="10"}get visibeBounds(){return this.transformVisibles.map(e=>e.bounds)}updateNodesBounds(){this.renderCache.getMoreByItems(this.transformVisibles).forEach(e=>e.updateBounds())}autorun(){this.documentTransformer.loading||(this.documentTransformer.refresh(),this.updateNodesBounds())}get renderElement(){if(typeof this.options.renderElement=="function"){const e=this.options.renderElement();if(e)return e}else if(typeof this.options.renderElement<"u")return this.options.renderElement;return this.node}};tr([Ot(jo)],AC.prototype,"document",2);tr([Ot(Mj)],AC.prototype,"resizeObserver",2);tr([zo(L0)],AC.prototype,"documentTransformer",2);tr([cv(Sl,hr)],AC.prototype,"_transforms",2);AC=tr([Pn()],AC);var Ser=Symbol("FlowRendererContribution"),kot=(e=>(e.NODE_RENDER="node-render",e.ADDER="adder",e.COLLAPSE="collapse",e.BRANCH_ADDER="branch-adder",e.TRY_CATCH_COLLAPSE="try-catch-collapse",e.DRAG_NODE="drag-node",e.DRAGGABLE_ADDER="draggable-adder",e.DRAG_HIGHLIGHT_ADDER="drag-highlight-adder",e.DRAG_BRANCH_HIGHLIGHT_ADDER="drag-branch-highlight-adder",e.SELECTOR_BOX_POPOVER="selector-box-popover",e.CONTEXT_MENU_POPOVER="context-menu-popover",e.SUB_CANVAS="sub-canvas",e.MARKER_ARROW="marker-arrow",e.MARKER_ACTIVATE_ARROW="marker-active-arrow",e))(kot||{}),yd=class{constructor(){this.componentsMap=new Map,this.textMap=new Map,this.contribs=[]}init(){this.contribs.forEach(e=>{var n;return(n=e.registerRenderer)==null?void 0:n.call(e,this)})}registerRendererComponents(e,n){this.componentsMap.set(e,n)}registerReactComponent(e,n){this.componentsMap.set(e,{type:0,renderer:n})}registerText(e){Object.entries(e).forEach(([n,r])=>{this.textMap.set(n,r)})}getText(e){return nF.t(e,{disableReturnKey:!0})||this.textMap.get(e)}getRendererComponent(e){const n=this.componentsMap.get(e);if(!n)throw new Error(`Unknown render key ${e}`);return n}tryToGetRendererComponent(e){return this.componentsMap.get(e)}registerLayers(...e){e.forEach(n=>this.pipeline.registerLayer(n))}registerLayer(e,n){this.pipeline.registerLayer(e,n)}};tr([E_(Ser),ss()],yd.prototype,"contribs",2);tr([Ot(Mp)],yd.prototype,"pipeline",2);yd=tr([Pn()],yd);var DC=class extends Oa{constructor(){super(...arguments),this.renderMemoCache=new WeakMap,this.node=Tr.createDivWithClass("gedit-flow-nodes-layer"),this.reactPortals=uD.create(e=>{const{node:n,entity:r}=e,{config:i}=this,o=this.getPortalRenderer(e);function a(){return V.useEffect(()=>{if(n.clientWidth&&n.clientHeight){const s=r.getData(hr);s&&(s.size={width:n.clientWidth,height:n.clientHeight})}},[]),Gl.createPortal(V.createElement(LV.Provider,{value:r},V.createElement(o,{node:r,version:e==null?void 0:e.version,activated:e==null?void 0:e.activated,readonly:i.readonly,disabled:i.disabled})),n)}return{id:n.id||r.id,dispose:()=>{},Portal:a}})}get renderStatesVisible(){return this.document.getRenderDatas(ra,!1)}getPortalRenderer(e){const n=e.entity.getNodeMeta(),i=this.rendererRegistry.getRendererComponent(n.renderKey||"node-render").renderer;let o=this.renderMemoCache.get(i);return o||(o=V.memo(i),this.renderMemoCache.set(i,o)),o}onZoom(e){this.node.style.transform=`scale(${e})`}dispose(){this.reactPortals.dispose(),super.dispose()}onReady(){this.node.style.zIndex="10"}onReadonlyOrDisabledChange(){this.render()}getPortals(){return this.reactPortals.getMoreByItems(this.renderStatesVisible)}render(){return this.documentTransformer.loading?V.createElement(V.Fragment,null):(this.documentTransformer.refresh(),V.createElement(V.Fragment,null,this.getPortals().map(e=>V.createElement(e.Portal,{key:e.id}))))}};tr([Ot(jo)],DC.prototype,"document",2);tr([Ot(yd)],DC.prototype,"rendererRegistry",2);tr([zo(L0)],DC.prototype,"documentTransformer",2);tr([cv(Sl,ra)],DC.prototype,"_renderStates",2);DC=tr([Pn()],DC);var Lot="line-marker-arrow",Eer=`url(#${Lot})`;function Cer(){const{baseColor:e}=o$();return V.createElement("marker",{id:Lot,markerWidth:"11",markerHeight:"14",refX:"10",refY:"7",orient:"auto"},V.createElement("path",{d:"M9.6 5.2C10.8 6.1 10.8 7.9 9.6 8.8L3.6 13.3C2.11672 14.4125 0 13.3541 0 11.5L0 2.5C0 0.645898 2.11672 -0.412461 3.6 0.7L9.6 5.2Z",fill:e}))}var wer=Cer,$ot="line-marker-arrow-activated",xer=`url(#${$ot})`;function Ter(){const{baseActivatedColor:e}=o$();return V.createElement("marker",{id:$ot,markerWidth:"11",markerHeight:"14",refX:"10",refY:"7",orient:"auto"},V.createElement("path",{d:"M9.6 5.2C10.8 6.1 10.8 7.9 9.6 8.8L3.6 13.3C2.11672 14.4125 0 13.3541 0 11.5L0 2.5C0 0.645898 2.11672 -0.412461 3.6 0.7L9.6 5.2Z",fill:e}))}var Oer=Ter;function Rer(e){const{from:n,to:r,activated:i,style:o}=e,{baseColor:a,baseActivatedColor:s}=o$();return V.createElement("path",{d:`M ${n.x} ${n.y} L ${r.x} ${r.y}`,...Mot,stroke:i?s:a,style:o})}var Ier=Rer;function Ner(e){const{vertices:n,radius:r=der,hide:i,xRadius:o,yRadius:a,...s}=e,{from:l,to:c,arrow:u,activated:d,style:f}=s||{},{baseActivatedColor:p,baseColor:h}=o$(),g=n||(e.isHorizontal?fer(s,o,a):per(s,o,a)),v=m.useMemo(()=>g.map((_,S)=>{const b=g[S-1]||l,E=g[S+1]||c,w={x:Math.abs(b.x-_.x),y:Math.abs(b.y-_.y)},C={x:Math.abs(E.x-_.x),y:Math.abs(E.y-_.y)},x=w.x===0&&C.y===0,T=w.y===0&&C.x===0;x||T||console.error(`vertex ${_.x},${_.y} is not right angle`);const O=new hf().copyFrom(_),M=new hf().copyFrom(_),P=Mn.isNil(_.radiusX)?r:_.radiusX,k=Mn.isNil(_.radiusY)?r:_.radiusY;let $=P,U=k;if(x){U=Math.min(w.y,k);const B=Mn.isNil(_.moveY)?U:_.moveY;O.y+=l.y<_.y?-B:+B,$=Math.min(C.x,P);const Y=Mn.isNil(_.moveX)?$:_.moveX;M.x+=c.x<_.x?-Y:+Y}if(T){$=Math.min(w.x,P);const B=Mn.isNil(_.moveX)?$:_.moveX;O.x+=l.x<_.x?-B:+B,U=Math.min(C.y,k);const Y=Mn.isNil(_.moveY)?U:_.moveY;M.y+=c.y<_.y?-Y:+Y}const D=(_.x-O.x)*(M.y-O.y)-(_.y-O.y)*(M.x-O.x)>0;return`L ${O.x} ${O.y} A ${$} ${U} 0 0 ${D?1:0} ${M.x} ${M.y}`}).join(" "),[g]);if(i)return null;const y=`M ${l.x} ${l.y} ${v} L ${c.x} ${c.y}`;return V.createElement("path",{d:y,...Mot,stroke:d?p:h,...u?{markerEnd:d?xer:Eer}:{},style:f})}var Mer=Ner;function Per(e){const{renderKey:n,rendererRegistry:r,...i}=e;if(!n)return V.createElement(V.Fragment,null);const o=r.getRendererComponent(n);if(!o)return V.createElement(V.Fragment,null);const a=o.renderer;return V.createElement(a,{...i})}var Aer=Per;function Der(e){const{data:n,rendererRegistry:r,linesSave:i,dragService:o}=e,{lines:a,entity:s}=n||{},l=SLe(s,tm.ROUNDED_LINE_X_RADIUS),c=SLe(s,tm.ROUNDED_LINE_Y_RADIUS),u=(d,f)=>{var _;const{renderData:p}=n,{isVertical:h}=n.entity,{lineActivated:g}=p||{},v=d.type===lu.DRAGGING_LINE&&!o.isDroppableBranch(n.entity,d.side),y=d.type===lu.DRAGGING_LINE&&((_=n.entity)==null?void 0:_.id)===o.dropNodeId&&d.side===o.labelSide;switch(d.type){case lu.STRAIGHT_LINE:return V.createElement(Ier,{key:`${n.entity.id}${f}`,activated:g,...d});case lu.DIVERGE_LINE:case lu.DRAGGING_LINE:case lu.MERGE_LINE:case lu.ROUNDED_LINE:return V.createElement(Mer,{key:`${n.entity.id}${f}`,isHorizontal:!h,activated:g||y,...d,xRadius:l,yRadius:c,hide:v});case lu.CUSTOM_LINE:return V.createElement(Aer,{key:`${n.entity.id}${f}`,...d,rendererRegistry:r})}};a.forEach((d,f)=>{const p=Qn.createRectangleWithTwoPoints(d.from,d.to).pad(10);if(e.isViewportVisible(p)){const h=u(d,f);h&&i.push(h)}})}var $0=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-flow-lines-layer"),this.onViewportChange=Mn.throttle(()=>{this.render()},100)}get transitions(){return this.document.getRenderDatas(sN)}onZoom(){var n;const e=this.node.querySelector("svg.flow-lines-container");(n=e==null?void 0:e.setAttribute)==null||n.call(e,"viewBox",this.viewBox)}onReady(){this.node.style.zIndex="1"}get viewBox(){const e=1e3/this.config.finalScale;return`0 0 ${e} ${e}`}render(){const e=[],n=this.config.isViewportVisible.bind(this.config);if(this.documentTransformer.loading)return V.createElement(V.Fragment,null);this.documentTransformer.refresh(),this.transitions.forEach(u=>{Der({data:u,rendererRegistry:this.rendererRegistry,isViewportVisible:n,linesSave:e,dragService:this.dragService})});const{activateLines:r=[],normalLines:i=[]}=Mn.groupBy(e,u=>u.props.activated?"activateLines":"normalLines"),o=[...i,...r],a=this.rendererRegistry.tryToGetRendererComponent("marker-arrow"),s=this.rendererRegistry.tryToGetRendererComponent("marker-active-arrow"),l=a?V.createElement(a.renderer):null,c=s?V.createElement(s.renderer):null;return V.createElement("svg",{className:"flow-lines-container",width:"1000",height:"1000",overflow:"visible",viewBox:this.viewBox,xmlns:"http://www.w3.org/2000/svg"},V.createElement("defs",null,a?l:V.createElement(wer,null),c||V.createElement(Oer,null)),o)}};tr([Ot(jo)],$0.prototype,"document",2);tr([Ot(Vm)],$0.prototype,"dragService",2);tr([Ot(yd)],$0.prototype,"rendererRegistry",2);tr([zo(L0)],$0.prototype,"documentTransformer",2);tr([zo(i$)],$0.prototype,"flowRenderState",2);tr([cv(Sl,sN)],$0.prototype,"_transitions",2);$0=tr([Pn()],$0);function yse(e){const{data:n,rendererRegistry:r,forceVisible:i,hoverHeight:o=Aot(n),hoverWidth:a=Pot(n),wrapperStyle:s,...l}=e,{activateNode:c}=l,[u,d]=m.useState(!1),f=c==null?void 0:c.getData(ra),p=m.useCallback(()=>{d(!0),f==null||f.toggleMouseEnter()},[]),h=m.useCallback(()=>{d(!1),f==null||f.toggleMouseLeave()},[]),g=r.getRendererComponent("collapse"),v=n.entity,y=V.createElement(g.renderer,{node:v,collapseNode:v,...l,hoverActivated:u}),_=n.collapsed||(f==null?void 0:f.hovered)||u||i;return V.createElement("div",{className:"flow-canvas-collapse",onMouseEnter:p,onMouseLeave:h,style:{width:a,height:o,display:"flex",justifyContent:"center",alignItems:"center",...s}},_?y:null)}var ker=(e,{dragService:n})=>n&&n.dragging&&n.isDroppableNode(e)?n.dropNodeId===e.id?"drag-highlight-adder":"draggable-adder":"adder";function _se(e){const{data:n,rendererRegistry:r,hoverHeight:i=Aot(n),hoverWidth:o=Pot(n),...a}=e,[s,l]=m.useState(!1),c=m.useCallback(()=>l(!0),[]),u=m.useCallback(()=>l(!1),[]),d=n.entity,f=Di(Vm),p=ker(d,{dragService:f}),h=r.getRendererComponent(p),g=d,v=n.entity.document.renderTree.getOriginInfo(d).next,y=d.next,_=V.createElement(h.renderer,{node:d,from:g,to:v,renderTo:y,hoverActivated:s,setHoverActivated:l,hoverWidth:o,hoverHeight:i,...a});return V.createElement("div",{className:"flow-canvas-adder","data-testid":"sdk.flowcanvas.line.adder","data-from":g.id,"data-to":(v==null?void 0:v.id)??"",onMouseEnter:c,onMouseLeave:u,style:{width:o,height:i,display:"flex",justifyContent:"center",alignItems:"center"}},_)}function Ler(e){const{data:n,rendererRegistry:r,...i}=e,{activateNode:o}=i,[a,s]=m.useState(!1),l=o==null?void 0:o.getData(ra),c=m.useCallback(()=>{s(!0)},[]),u=m.useCallback(()=>{s(!1)},[]),d=o==null?void 0:o.isVertical,f=(l==null?void 0:l.hovered)||a;return d?V.createElement("div",{className:"flow-canvas-collapse-adder",onMouseEnter:c,onMouseLeave:u},(f||n.collapsed)&&V.createElement(yse,{forceVisible:!0,...e,wrapperStyle:{alignItems:"flex-end"},hoverHeight:20}),!n.collapsed&&V.createElement(_se,{...e,hoverHeight:f?20:40,hoverActivated:f})):V.createElement("div",{className:"flow-canvas-collapse-adder",onMouseEnter:c,onMouseLeave:u,style:{display:n.collapsed?"block":"flex"}},(f||n.collapsed)&&V.createElement(yse,{forceVisible:!0,...e,wrapperStyle:{justifyContent:"flex-end"},hoverWidth:20}),!n.collapsed&&V.createElement(_se,{...e,hoverWidth:f?20:40,hoverActivated:f}))}var $er=(e,{dragService:n,side:r})=>n.isDragBranch&&r&&n.labelSide===r&&n.isDroppableBranch(e,r)?n.dropNodeId===e.id?"drag-branch-highlight-adder":"draggable-adder":"";function Fer(e){const{data:n,rendererRegistry:r,side:i,...o}=e,a=n.entity,s=Di(Vm),l=$er(a,{side:i,dragService:s});if(!l)return null;const c=r.getRendererComponent(l),u=a,d=n.entity.document.renderTree.getOriginInfo(a).next,f=a.next,p=V.createElement(c.renderer,{node:a,from:u,to:d,renderTo:f,...o});return V.createElement("div",{className:"flow-canvas-branch-draggable-adder"},p)}var Ber={fontSize:12,color:"#8F959E",textAlign:"center",whiteSpace:"nowrap",backgroundColor:"var(--g-editor-background)",lineHeight:"20px"},wLe=150,xLe=60;function jer(e){return new Qn(e.x-wLe/2,e.y-xLe/2,wLe,xLe)}function Uer(e){const{data:n,rendererRegistry:r,labelsSave:i,getLabelColor:o}=e,{labels:a,renderData:s}=n||{},{activated:l}=s||{},c=(u,d)=>{const{offset:f,renderKey:p,props:h,rotate:g,type:v}=u||{},y=f.x,_=f.y;let S=null;switch(v){case em.BRANCH_DRAGGING_LABEL:S=V.createElement(Fer,{rendererRegistry:r,data:n,...h});break;case em.ADDER_LABEL:S=V.createElement(_se,{rendererRegistry:r,data:n,...h});break;case em.COLLAPSE_LABEL:S=V.createElement(yse,{rendererRegistry:r,data:n,...h});break;case em.COLLAPSE_ADDER_LABEL:S=V.createElement(Ler,{rendererRegistry:r,data:n,...h});break;case em.TEXT_LABEL:if(!p)return null;const b=r.getText(p)||p;S=V.createElement("div",{style:{...Ber,...h==null?void 0:h.style,color:o(l),transform:g?`rotate(${g})`:void 0}},b);break;case em.CUSTOM_LABEL:if(!p)return null;try{const E=r.getRendererComponent(p);S=V.createElement(E.renderer,{node:n.entity,...h})}catch(E){console.error(E),S=p}break}return V.createElement("div",{key:`${n.entity.id}${d}`,style:{position:"absolute",left:y,top:_,transform:"translate(-50%, -50%)"}},S)};a.forEach((u,d)=>{e.isViewportVisible(jer(u.offset))&&i.push(c(u,d))})}var kC=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-flow-labels-layer"),this.onViewportChange=Mn.throttle(()=>{this.render()},100)}get transitions(){return this.document.getRenderDatas(sN)}onZoom(e){this.node.style.transform=`scale(${e})`}onReady(){this.node.style.zIndex="9"}onReadonlyOrDisabledChange(){this.render()}render(){var o,a,s;const e=[];if((o=this.documentTransformer)!=null&&o.loading)return V.createElement(V.Fragment,null);(s=(a=this.documentTransformer)==null?void 0:a.refresh)==null||s.call(a);const{baseActivatedColor:n,baseColor:r}=o$(),i=this.config.isViewportVisible.bind(this.config);return this.transitions.forEach(l=>{Uer({data:l,rendererRegistry:this.rendererRegistry,isViewportVisible:i,labelsSave:e,getLabelColor:c=>c?n:r})}),V.createElement(V.Fragment,null,e)}};tr([Ot(jo)],kC.prototype,"document",2);tr([Ot(yd)],kC.prototype,"rendererRegistry",2);tr([zo(L0)],kC.prototype,"documentTransformer",2);tr([zo(i$)],kC.prototype,"flowRenderState",2);tr([cv(Sl,sN)],kC.prototype,"_transitions",2);kC=tr([Pn()],kC);var TLe=-120;function Pj(e,n){const r=n.finalScale;return new Qn(e.scrollX/r,e.scrollY/r,n.config.width/r,n.config.height/r).pad(TLe/r,TLe/r)}function Her(e,n,r,i){e={...e};const o=r.config,a={scrollX:o.scrollX,scrollY:o.scrollY};if(n.length===0||o.width===0||o.height===0)return e;const s=Pj(e,r);if(!n.find(c=>Qn.isViewportVisible(c,s))){const c=Pj(a,r);return n.find(d=>Qn.isViewportVisible(d,c))?a:i()}return e}var zer=Symbol("ScrollBarEvents"),OLe=0;function RLe(e){const n=Math.min(e/10*255,255);OLe+=1;const r=OLe%3,i=()=>Math.floor(Math.random()*n);return`rgb(${r===0?i():0}, ${r===1?i():0}, ${r===2?i():0})`}var pD=class extends Oa{constructor(){var e;super(...arguments),this.node=document.createElement("div"),this.viewport=Tr.createDivWithClass("gedit-flow-debug-bounds"),this.boundsNodes=Tr.createDivWithClass("gedit-flow-debug-bounds"),this.pointsNodes=Tr.createDivWithClass("gedit-flow-debug-points"),this.versionNodes=Tr.createDivWithClass("gedit-flow-debug-versions gedit-hidden"),this.filterKey=((e=window.location.search.match(/debug=([^&]+)/))==null?void 0:e[1])||"",this.originLine=document.createElement("div"),this.domCache=new WeakMap}get transforms(){return this.document.getRenderDatas(hr)}onReady(){this.node.style.zIndex="20",Tr.setStyle(this.originLine,{position:"absolute",width:1,height:"100%",left:this.pipelineNode.style.left,top:0,borderLeft:"1px dashed rgba(255, 0, 0, 0.5)"}),this.pipelineNode.parentElement.appendChild(this.originLine),this.node.appendChild(this.viewport),this.node.appendChild(this.versionNodes),this.node.appendChild(this.boundsNodes),this.node.appendChild(this.pointsNodes),this.renderScrollViewportBounds()}onScroll(){this.originLine.style.left=this.pipelineNode.style.left,this.renderScrollViewportBounds()}onResize(){this.renderScrollViewportBounds()}onZoom(e){this.node.style.transform=`scale(${e})`,this.renderScrollViewportBounds()}createBounds(e,n,r){if(this.filterKey&&e.key.indexOf(this.filterKey)===-1)return;let i=this.domCache.get(e);const{bounds:o,inputPoint:a,outputPoint:s}=e;if(!i){const l=Tr.createDivWithClass(""),c=Tr.createDivWithClass(""),u=Tr.createDivWithClass(""),d=Tr.createDivWithClass("");l.title=e.key,c.title=e.key+"(input)",u.title=e.key+"(output)",d.title=e.key,this.boundsNodes.appendChild(l),this.pointsNodes.appendChild(c),this.pointsNodes.appendChild(u),this.versionNodes.appendChild(d),e.onDispose(()=>{l.remove(),c.remove(),u.remove()}),i={bbox:l,input:c,output:u,version:d,color:n},this.domCache.set(e,i)}Tr.setStyle(i.version,{position:"absolute",marginLeft:"-9px",marginTop:"-10px",borderRadius:12,background:"#f54a45",padding:4,color:"navajowhite",display:e.renderState.hidden?"none":"block",zIndex:r+1e3,left:o.center.x,top:o.center.y}),i.version.innerHTML=e.version.toString(),Tr.setStyle(i.input,{position:"absolute",width:10,height:10,marginLeft:-5,marginTop:-5,borderRadius:5,left:a.x,top:a.y,opacity:.4,zIndex:r,backgroundColor:i.color,whiteSpace:"nowrap",overflow:"visible"}),i.input.innerHTML=`${a.x},${a.y}`,Tr.setStyle(i.output,{position:"absolute",width:10,height:10,marginLeft:-5,marginTop:-5,borderRadius:5,left:s.x,top:s.y,opacity:.4,zIndex:r,backgroundColor:i.color,whiteSpace:"nowrap",overflow:"visible"}),i.output.innerHTML=`${s.x},${s.y}`,Tr.setStyle(i.bbox,{position:"absolute",width:o.width,height:o.height,left:o.left,top:o.top,opacity:`${r/30}`,backgroundColor:i.color})}renderScrollViewportBounds(){const e=Pj({scrollX:this.config.config.scrollX,scrollY:this.config.config.scrollY},this.config);Tr.setStyle(this.viewport,{position:"absolute",width:e.width-2,height:e.height-2,left:e.left+1,top:e.top+1,border:"1px solid rgba(200, 200, 255, 0.5)"})}autorun(){if(this.documentTransformer.loading)return;this.documentTransformer.refresh();let e=RLe(0);this.document.traverse((n,r)=>{const i=n.getData(hr);e=RLe(r),this.createBounds(i,e,r)}),this.renderScrollViewportBounds()}};tr([Ot(jo)],pD.prototype,"document",2);tr([zo(L0)],pD.prototype,"documentTransformer",2);tr([cv(Sl,hr)],pD.prototype,"_transforms",2);pD=tr([Pn()],pD);var ILe=2,NLe=11,MLe="7px",TR=class extends Oa{constructor(){super(...arguments),this.rightScrollBar=Tr.createDivWithClass("gedit-playground-scroll-right"),this.rightScrollBarBlock=Tr.createDivWithClass("gedit-playground-scroll-right-block"),this.bottomScrollBar=Tr.createDivWithClass("gedit-playground-scroll-bottom"),this.bottomScrollBarBlock=Tr.createDivWithClass("gedit-playground-scroll-bottom-block"),this.sum=0,this.initialScrollX=0,this.initialScrollY=0,this.bottomGrabDragger=new Sm({onDragStart:e=>{this.config.updateCursor("grabbing"),this.sum=0,this.initialScrollX=this.config.getViewport().x,this.onBoardingToast()},onDrag:e=>{this.sum+=e.movingDelta.x,this.playgroundConfigEntity.scroll({scrollX:(this.initialScrollX+this.sum*this.viewportFullWidth/(this.clientViewportWidth-this.scrollBottomWidth))*this.scale},!1)},onDragEnd:e=>{this.config.updateCursor("default")}}),this.rightGrabDragger=new Sm({onDragStart:e=>{this.config.updateCursor("grabbing"),this.sum=0,this.initialScrollY=this.config.getViewport().y,this.onBoardingToast()},onDrag:e=>{this.sum+=e.movingDelta.y,this.playgroundConfigEntity.scroll({scrollY:(this.initialScrollY+this.sum*this.viewportFullHeight/(this.clientViewportHeight-this.scrollRightHeight))*this.scale},!1)},onDragEnd:e=>{this.config.updateCursor("default")}})}get clientViewportWidth(){return this.viewportWidth*this.scale-NLe}get clientViewportHeight(){return this.viewportHeight*this.scale-NLe}get viewportFullWidth(){return this.mostLeft-this.mostRight}get viewportFullHeight(){return this.mostTop-this.mostBottom}get viewportMoveWidth(){return this.mostLeft-this.mostRight+this.width}get viewportMoveHeight(){return this.mostTop-this.mostBottom+this.height}getToLeft(e){return(e-this.mostRight)/this.viewportMoveWidth*this.clientViewportWidth}getToTop(e){return(e-this.mostBottom)/this.viewportMoveHeight*this.clientViewportHeight}clickRightScrollBar(e){e.preventDefault(),e.stopPropagation();const n=1-((e==null?void 0:e.y)||0)/this.clientViewportHeight,r=(this.mostTop-this.viewportFullHeight*n)*this.scale;this.playgroundConfigEntity.scroll({scrollY:r},!1)}clickBottomScrollBar(e){e.preventDefault(),e.stopPropagation();const n=1-((e==null?void 0:e.x)||0)/this.clientViewportWidth,r=(this.mostLeft-this.viewportFullWidth*n)*this.scale;this.playgroundConfigEntity.scroll({scrollX:r},!1)}onBoardingToast(){var e;(e=this.events)==null||e.dragStart()}changeScrollBarVisibility(e,n){const r=n==="show"?"gedit-playground-scroll-show":"gedit-playground-scroll-hidden",i=n==="show"?"gedit-playground-scroll-hidden":"gedit-playground-scroll-show";Tr.addClass(e,r),Tr.delClass(e,i)}onReady(){this.options.getBounds||(this.options={getBounds:()=>{const e=this.flowDocument;return e?(e.transformer.refresh(),e.root.getData(hr).bounds):Qn.EMPTY},showScrollBars:"whenScrolling"}),this.pipelineNode.parentNode.appendChild(this.rightScrollBar),this.pipelineNode.parentNode.appendChild(this.rightScrollBarBlock),this.pipelineNode.parentNode.appendChild(this.bottomScrollBar),this.pipelineNode.parentNode.appendChild(this.bottomScrollBarBlock),this.rightScrollBar.onclick=this.clickRightScrollBar.bind(this),this.bottomScrollBar.onclick=this.clickBottomScrollBar.bind(this),this.options.showScrollBars==="whenScrolling"&&(this.rightScrollBar.addEventListener("mouseenter",e=>{this.changeScrollBarVisibility(this.rightScrollBarBlock,"show")}),this.rightScrollBar.addEventListener("mouseleave",e=>{this.changeScrollBarVisibility(this.rightScrollBarBlock,"hidden")}),this.bottomScrollBar.addEventListener("mouseenter",e=>{this.changeScrollBarVisibility(this.bottomScrollBarBlock,"show")}),this.bottomScrollBar.addEventListener("mouseleave",e=>{this.changeScrollBarVisibility(this.bottomScrollBarBlock,"hidden")})),this.bottomScrollBarBlock.addEventListener("mousedown",e=>{this.bottomGrabDragger.start(e.clientX,e.clientY),e.stopPropagation()}),this.rightScrollBarBlock.addEventListener("mousedown",e=>{this.rightGrabDragger.start(e.clientX,e.clientY),e.stopPropagation()})}autorun(){this.hideTimeout&&clearTimeout(this.hideTimeout);const e=Pj({scrollX:this.config.config.scrollX,scrollY:this.config.config.scrollY},this.config),n=this.config.getViewport();this.viewportWidth=n.width,this.viewportHeight=n.height;const r=this.options.getBounds();this.width=(r==null?void 0:r.width)||0,this.height=(r==null?void 0:r.height)||0;const i=(this.viewportWidth-e.width)/2-ILe,o=(this.viewportHeight-e.height)/2-ILe,a=this.width+e.width,s=this.height+e.height,l=r.x,c=r.y;this.mostLeft=this.width+l-i,this.mostRight=this.mostLeft-a,this.mostTop=this.height+c-o,this.mostBottom=this.mostTop-s,this.scale=this.config.finalScale;const u=this.clientViewportWidth,d=this.clientViewportHeight;this.scrollBottomWidth=u-u*(this.mostLeft-this.mostRight)/this.viewportMoveWidth,this.scrollRightHeight=d-d*(this.mostTop-this.mostBottom)/this.viewportMoveHeight;const f=this.getToLeft(n.x),p=this.getToTop(n.y);Tr.setStyle(this.rightScrollBarBlock,{right:2,top:p,background:"#1F2329",zIndex:10,height:this.scrollRightHeight,width:MLe}),Tr.setStyle(this.bottomScrollBarBlock,{left:f,bottom:2,background:"#1F2329",zIndex:10,height:MLe,width:this.scrollBottomWidth}),this.changeScrollBarVisibility(this.rightScrollBarBlock,"show"),this.changeScrollBarVisibility(this.bottomScrollBarBlock,"show"),this.options.showScrollBars==="whenScrolling"&&(this.hideTimeout=window.setTimeout(()=>{this.changeScrollBarVisibility(this.rightScrollBarBlock,"hidden"),this.changeScrollBarVisibility(this.bottomScrollBarBlock,"hidden"),this.hideTimeout=void 0},1e3))}};tr([ss(),Ot(zer)],TR.prototype,"events",2);tr([Ot(jo),ss()],TR.prototype,"flowDocument",2);tr([zo(da)],TR.prototype,"playgroundConfigEntity",2);TR=tr([Pn()],TR);var PLe=10,ALe=8,DLe=8,dg=class extends Oa{constructor(){super(...arguments),this.dragOffset={x:ALe,y:DLe},this.containerRef=V.createRef(),this.draggingNodeMask=document.createElement("div"),this._dragger=new Sm({onDrag:e=>{this.handleMouseMove(e)},onDragEnd:()=>{this.handleMouseUp()},stopGlobalEventNames:["contextmenu"]})}get transitions(){const e=[];return this.document.traverse(n=>{e.push(n.getData(sN))}),e}get dragStartEntity(){return this.flowRenderStateEntity.getDragStartEntity()}set dragStartEntity(e){this.flowRenderStateEntity.setDragStartEntity(e)}get dragEntities(){return this.flowRenderStateEntity.getDragEntities()}set dragEntities(e){this.flowRenderStateEntity.setDragEntities(e)}isGrab(){return this.editorStateConfig.getCurrentState()===ko.STATE_GRAB}setDraggingStatus(e){this.service.nodeDragIdsWithChildren.length&&this.service.nodeDragIdsWithChildren.forEach(n=>{const r=this.entityManager.getEntityById(n),i=r==null?void 0:r.getData(ra);i.dragging=e})}dragEnable(e){return Math.abs(e.clientX-this.initialPosition.x)>PLe||Math.abs(e.clientY-this.initialPosition.y)>PLe}handleMouseMove(e){var n;if(this.dragStartEntity&&this.dragEnable(e)){this.setDraggingStatus(!0);const r=this.playgroundConfigEntity.finalScale;if(this.containerRef.current){const i=(n=this.containerRef.current.children)==null?void 0:n[0],o=e.clientX-(this.pipelineNode.offsetLeft||0)-this.playgroundConfigEntity.config.clientX-(i.clientWidth-this.dragOffset.x)*r,a=e.clientY-(this.pipelineNode.offsetTop||0)-this.playgroundConfigEntity.config.clientY-(i.clientHeight-this.dragOffset.y)*r,s=this.service.isDragBranch,l=new Qn(o,a,i.clientWidth*r,i.clientHeight*r);let c;const u=this.transitions.find(d=>{var h,g;if((g=(h=d==null?void 0:d.entity)==null?void 0:h.parent)!=null&&g.collapsed)return!1;const{hasCollision:f,labelOffsetType:p}=this.flowDragConfigEntity.isCollision(d,l,s);return c=p,f});u&&(s?this.service.isDroppableBranch(u.entity,c):this.service.isDroppableNode(u.entity))&&(!this.options.canDrop||this.options.canDrop({dragNodes:this.dragEntities,dropNode:u.entity,isBranch:s}))?this.flowRenderStateEntity.setNodeDroppingId(u.entity.id):this.flowRenderStateEntity.setNodeDroppingId(""),this.flowRenderStateEntity.setDragLabelSide(c),this.containerRef.current.style.visibility="visible",this.pipelineNode.parentElement.appendChild(this.draggingNodeMask),this.containerRef.current.style.left=`${o}px`,this.containerRef.current.style.top=`${a}px`,this.containerRef.current.style.transformOrigin="top left",this.containerRef.current.style.transform=`scale(${r})`,this.flowDragConfigEntity.scrollDirection(e,this.containerRef.current,o,a)}}}handleMouseUp(){this.setDraggingStatus(!1),this.dragStartEntity&&(this.service.dropNodeId&&(this.service.isDragBranch?this.service.dropBranch():(this.service.dropNode(),this.selectConfigEntity.clearSelectedNodes())),this.flowRenderStateEntity.setNodeDroppingId(""),this.flowRenderStateEntity.setDragLabelSide(),this.dragStartEntity=void 0,this.dragEntities=[],this.flowDragConfigEntity.stopAllScroll()),this.containerRef.current&&(this.containerRef.current.style.visibility="hidden",this.pipelineNode.parentElement.contains(this.draggingNodeMask)&&this.pipelineNode.parentElement.removeChild(this.draggingNodeMask))}async startDrag(e,{dragStartEntity:n,dragEntities:r},i){if(this.isGrab()||this.config.disabled||this.config.readonly)return;this.dragOffset.x=(i==null?void 0:i.dragOffsetX)||ALe,this.dragOffset.y=(i==null?void 0:i.dragOffsetY)||DLe;const o=n.flowNodeType===Fo.BLOCK_ICON,a=n.flowNodeType===Fo.BLOCK_ORDER_ICON,s=o||a?n.parent:n;if(s.getData(ra).draggable)return this.initialPosition={x:e.clientX,y:e.clientY},this.dragStartEntity=s,this.dragEntities=r||[this.dragStartEntity],this._dragger.start(e.clientX,e.clientY)}onReady(){this.draggingNodeMask.style.width="100%",this.draggingNodeMask.style.height="100%",this.draggingNodeMask.style.position="absolute",this.draggingNodeMask.classList.add("dragging-node"),this.draggingNodeMask.style.zIndex="99",this.draggingNodeMask.style.cursor="pointer",this.dragNodeComp=this.rendererRegistry.getRendererComponent("drag-node"),this.options.onDrop&&this.toDispose.push(this.service.onDrop(this.options.onDrop))}render(){const e=this.dragNodeComp.renderer;return V.createElement("div",{ref:this.containerRef,style:{position:"absolute",zIndex:99999,visibility:"hidden"},onMouseEnter:n=>n.stopPropagation()},V.createElement(e,{dragStart:this.dragStartEntity,dragNodes:this.dragEntities}))}};tr([Ot(jo)],dg.prototype,"document",2);tr([Ot(Vm)],dg.prototype,"service",2);tr([cv(Sl,hr)],dg.prototype,"transforms",2);tr([zo(Um)],dg.prototype,"editorStateConfig",2);tr([zo(da)],dg.prototype,"playgroundConfigEntity",2);tr([zo(Dot)],dg.prototype,"flowDragConfigEntity",2);tr([zo(i$)],dg.prototype,"flowRenderStateEntity",2);tr([zo(a$)],dg.prototype,"selectConfigEntity",2);tr([Ot(yd)],dg.prototype,"rendererRegistry",2);dg=tr([Pn()],dg);var Gm=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-selector-box-layer"),this.selectorBox=this.createDOMCache("gedit-selector-box"),this.selectorBoxBlock=this.createDOMCache("gedit-selector-box-block"),this.selectboxDragger=new Sm({onDragStart:e=>{this.selectConfigEntity.clearSelectedNodes();const n=this.playgroundConfigEntity.getPosFromMouseEvent(e);this.transformVisibles=this.flowDocument.getRenderDatas(hr,!1).filter(r=>{const{entity:i}=r;return i.originParent?this.nodeSelectable(i,n)&&this.nodeSelectable(i.originParent,n):this.nodeSelectable(i,n)}),this.selectorBoxConfigEntity.setDragInfo(e),this.updateSelectorBox(this.selectorBoxConfigEntity)},onDrag:e=>{this.selectorBoxConfigEntity.setDragInfo(e),this.selectConfigEntity.selectFromBounds(this.selectorBoxConfigEntity.toRectangle(this.playgroundConfigEntity.finalScale),this.transformVisibles),this.updateSelectorBox(this.selectorBoxConfigEntity)},onDragEnd:e=>{this.selectorBoxConfigEntity.setDragInfo(e),this.transformVisibles.length=0,this.updateSelectorBox(this.selectorBoxConfigEntity)}})}onReady(){this.options.canSelect||(this.options.canSelect=e=>{const n=e.target;return n===this.pipelineNode||n===this.playgroundNode}),this.toDispose.pushAll([this.selectConfigEntity.onConfigChanged(()=>{this.selectionService.selection=this.selectConfigEntity.selectedNodes}),this.selectionService.onSelectionChanged(()=>{const e=this.selectionService.selection.filter(n=>n instanceof Sl);this.selectConfigEntity.selectedNodes=e})]),this.listenPlaygroundEvent("mousedown",e=>!this.isEnabled()||this.options.canSelect&&!this.options.canSelect(e,this.selectorBoxConfigEntity)?void 0:(this.editorStateConfig.getCurrentState()===ko.STATE_MOUSE_FRIENDLY_SELECT&&this.selectConfigEntity.clearSelectedNodes(),this.selectboxDragger.start(e.clientX,e.clientY,this.config),!0),Mme.BASE_LAYER)}isEnabled(){const e=this.editorStateConfig.getCurrentState(),n=e===ko.STATE_MOUSE_FRIENDLY_SELECT;return!this.config.disabled&&!this.config.readonly&&(n&&this.editorStateConfig.isPressingShift||e===ko.STATE_SELECT)&&!this.selectorBoxConfigEntity.disabled}dispose(){this.selectorBox.dispose(),this.selectorBoxBlock.dispose(),super.dispose()}updateSelectorBox(e){const n=this.selectorBox.get(),r=this.selectorBoxBlock.get();!this.isEnabled()&&e.isMoving&&this.selectorBoxConfigEntity.collapse(),!this.isEnabled()||!e.isMoving?(n.setStyle({display:"none"}),r.setStyle({display:"none"})):(n.setStyle({display:"block",left:e.position.x,top:e.position.y,width:e.size.width,height:e.size.height}),r.setStyle({display:"block",left:e.position.x-10,top:e.position.y-10,width:e.size.width+20,height:e.size.height+20}))}nodeSelectable(e,n){const r=e.getNodeMeta().selectable;return typeof r=="function"?r(e,n):r}};tr([Ot(jo)],Gm.prototype,"flowDocument",2);tr([Ot(dD)],Gm.prototype,"contextMenuService",2);tr([zo(da)],Gm.prototype,"playgroundConfigEntity",2);tr([Ot(ug)],Gm.prototype,"selectionService",2);tr([zo(s$)],Gm.prototype,"selectorBoxConfigEntity",2);tr([zo(a$)],Gm.prototype,"selectConfigEntity",2);tr([zo(Um)],Gm.prototype,"editorStateConfig",2);Gm=tr([Pn()],Gm);var Wm=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-selector-bounds-layer"),this.selectBoundsBackground=Tr.createDivWithClass("gedit-selector-bounds-background")}onReady(){this.node.style.zIndex="20";const{firstChild:e}=this.pipelineNode;this.options.boundsPadding!==void 0&&(this.flowSelectConfigEntity.boundsPadding=this.options.boundsPadding),this.options.backgroundClassName&&this.selectBoundsBackground.classList.add(this.options.backgroundClassName);const n=Tr.createDivWithClass("gedit-playground-layer");n.appendChild(this.selectBoundsBackground),this.pipelineNode.insertBefore(n,e)}onZoom(e){this.node.style.transform=`scale(${e})`,this.selectBoundsBackground.parentElement.style.transform=`scale(${e})`}onViewportChange(){this.render()}isEnabled(){return this.editorStateConfig.getCurrentState()===ko.STATE_SELECT}render(){var p;const{ignoreOneSelect:e,ignoreChildrenLength:n,SelectorBoxPopover:r,disableBackground:i,CustomBoundsRenderer:o}=this.options,a=this.flowSelectConfigEntity.getSelectedBounds(),s=this.flowSelectConfigEntity.selectedNodes,l=this.selectBoundsBackground,c=!this.selectorBoxConfigEntity.isStart;if(a.width===0||a.height===0||e&&s.length===1&&(n||s[0].childrenLength<=1))return Tr.setStyle(l,{display:"none"}),V.createElement(V.Fragment,null);if(o)return V.createElement(o,{bounds:a,config:this.config,flowSelectConfig:this.flowSelectConfigEntity,commandRegistry:this.commandRegistry});const u={display:"block",left:a.left,top:a.top,width:a.width,height:a.height};i||Tr.setStyle(l,u);let d="gedit-selector-bounds-foreground";this.options.foregroundClassName&&(d+=" "+this.options.foregroundClassName);const f=r||((p=this.rendererRegistry.tryToGetRendererComponent("selector-box-popover"))==null?void 0:p.renderer);return!c||!f?V.createElement("div",{className:d,style:u}):V.createElement(f,{bounds:a,config:this.config,flowSelectConfig:this.flowSelectConfigEntity,commandRegistry:this.commandRegistry},V.createElement("div",{className:d,style:u}))}};tr([Ot(yd)],Wm.prototype,"rendererRegistry",2);tr([Ot(bm)],Wm.prototype,"commandRegistry",2);tr([zo(a$)],Wm.prototype,"flowSelectConfigEntity",2);tr([zo(Um)],Wm.prototype,"editorStateConfig",2);tr([zo(s$)],Wm.prototype,"selectorBoxConfigEntity",2);tr([cv(Sl,ra)],Wm.prototype,"renderStates",2);tr([cv(Sl,hr)],Wm.prototype,"_transforms",2);Wm=tr([Pn()],Wm);var Ym=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-context-menu-layer"),this.nodeRef=V.createRef()}isEnabled(){const e=this.editorStateConfig.getCurrentState();return!this.config.disabled&&!this.config.readonly&&e===ko.STATE_SELECT&&!this.selectorBoxConfigEntity.disabled}onReady(){this.node.style.zIndex="30",this.node.style.display="block",this.toDispose.pushAll([this.listenPlaygroundEvent("contextmenu",e=>{var o;if(!this.isEnabled())return;this.contextMenuService.rightPanelVisible=!0;const n=this.flowSelectConfigEntity.getSelectedBounds();if(n.width===0||n.height===0)return;e.stopPropagation(),e.preventDefault(),(o=this.nodeRef.current)==null||o.setVisible(!0);const r=e.clientX-(this.pipelineNode.offsetLeft||0)-this.playgroundConfigEntity.config.clientX,i=e.clientY-(this.pipelineNode.offsetTop||0)-this.playgroundConfigEntity.config.clientY;this.node.style.left=`${r}px`,this.node.style.top=`${i}px`},Mme.BASE_LAYER),this.listenPlaygroundEvent("mousedown",()=>{var e;(e=this.nodeRef.current)==null||e.setVisible(!1),this.contextMenuService.rightPanelVisible=!1})])}onScroll(){var e;(e=this.nodeRef.current)==null||e.setVisible(!1)}onZoom(){var e;(e=this.nodeRef.current)==null||e.setVisible(!1)}dispose(){super.dispose()}renderCommandMenus(){return this.commandRegistry.commands.filter(e=>e.category==="SELECTOR_BOX").map(e=>{var r;const n=(r=this.rendererRegistry.getRendererComponent(e.icon||e.id))==null?void 0:r.renderer;return V.createElement(n,{key:e.id,command:e,isContextMenu:!0,disabled:!this.commandRegistry.isEnabled(e.id),onClick:i=>this.commandRegistry.executeCommand(e.id,i)})}).filter(e=>e)}render(){const e=this.rendererRegistry.getRendererComponent("context-menu-popover").renderer;return V.createElement(e,{ref:this.nodeRef,content:this.renderCommandMenus()})}};tr([Ot(bm)],Ym.prototype,"commandRegistry",2);tr([Ot(yd)],Ym.prototype,"rendererRegistry",2);tr([Ot(dD)],Ym.prototype,"contextMenuService",2);tr([zo(a$)],Ym.prototype,"flowSelectConfigEntity",2);tr([Ot(ug)],Ym.prototype,"selectionService",2);tr([zo(da)],Ym.prototype,"playgroundConfigEntity",2);tr([zo(Um)],Ym.prototype,"editorStateConfig",2);tr([zo(s$)],Ym.prototype,"selectorBoxConfigEntity",2);Ym=tr([Pn()],Ym);var Aj=class extends Oa{getInitScroll(){return this.document.layout.getInitScroll(this.pipelineNode.getBoundingClientRect())}onReady(){const e=()=>this.getInitScroll();this.config.updateConfig(e()),this.config.addScrollLimit(n=>Her(n,[this.document.root.getData(hr).bounds],this.config,e))}};tr([Ot(jo)],Aj.prototype,"document",2);Aj=tr([Pn()],Aj);var Ver=new Zp(e=>{e(yd).toSelf().inSingletonScope(),e(Mj).toSelf().inSingletonScope()});function Vs(e){return typeof e=="function"}function Fot(e){var n=function(i){Error.call(i),i.stack=new Error().stack},r=e(n);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var kJ=Fot(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
||
`+r.map(function(i,o){return o+1+") "+i.toString()}).join(`
|
||
`):"",this.name="UnsubscriptionError",this.errors=r}});function Dj(e,n){if(e){var r=e.indexOf(n);0<=r&&e.splice(r,1)}}var lN=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,r,i,o,a;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=KO(s),c=l.next();!c.done;c=l.next()){var u=c.value;u.remove(this)}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}else s.remove(this);var d=this.initialTeardown;if(Vs(d))try{d()}catch(v){a=v instanceof kJ?v.errors:[v]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=KO(f),h=p.next();!h.done;h=p.next()){var g=h.value;try{kLe(g)}catch(v){a=a??[],v instanceof kJ?a=rs(rs([],M0(a)),M0(v.errors)):a.push(v)}}}catch(v){i={error:v}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}if(a)throw new kJ(a)}},e.prototype.add=function(n){var r;if(n&&n!==this)if(this.closed)kLe(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(n)}},e.prototype._hasParent=function(n){var r=this._parentage;return r===n||Array.isArray(r)&&r.includes(n)},e.prototype._addParent=function(n){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(n),r):r?[r,n]:n},e.prototype._removeParent=function(n){var r=this._parentage;r===n?this._parentage=null:Array.isArray(r)&&Dj(r,n)},e.prototype.remove=function(n){var r=this._finalizers;r&&Dj(r,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}(),Bot=lN.EMPTY;function jot(e){return e instanceof lN||e&&"closed"in e&&Vs(e.remove)&&Vs(e.add)&&Vs(e.unsubscribe)}function kLe(e){Vs(e)?e():e.unsubscribe()}var Uot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Hot={setTimeout:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,rs([e,n],M0(r)))},clearTimeout:function(e){var n=Hot.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function zot(e){Hot.setTimeout(function(){throw e})}function LLe(){}function rF(e){e()}var Vme=function(e){us(n,e);function n(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,jot(r)&&r.add(i)):i.destination=qer,i}return n.create=function(r,i,o){return new hD(r,i,o)},n.prototype.next=function(r){this.isStopped||this._next(r)},n.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(r){this.destination.next(r)},n.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(lN),Ger=Function.prototype.bind;function LJ(e,n){return Ger.call(e,n)}var Wer=function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var r=this.partialObserver;if(r.next)try{r.next(n)}catch(i){g5(i)}},e.prototype.error=function(n){var r=this.partialObserver;if(r.error)try{r.error(n)}catch(i){g5(i)}else g5(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(r){g5(r)}},e}(),hD=function(e){us(n,e);function n(r,i,o){var a=e.call(this)||this,s;if(Vs(r)||!r)s={next:r??void 0,error:i??void 0,complete:o??void 0};else{var l;a&&Uot.useDeprecatedNextContext?(l=Object.create(r),l.unsubscribe=function(){return a.unsubscribe()},s={next:r.next&&LJ(r.next,l),error:r.error&&LJ(r.error,l),complete:r.complete&&LJ(r.complete,l)}):s=r}return a.destination=new Wer(s),a}return n}(Vme);function g5(e){zot(e)}function Yer(e){throw e}var qer={closed:!0,next:LLe,error:Yer,complete:LLe},Gme=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function cN(e){return e}function Ker(e){return e.length===0?cN:e.length===1?e[0]:function(r){return e.reduce(function(i,o){return o(i)},r)}}var Of=function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var r=new e;return r.source=this,r.operator=n,r},e.prototype.subscribe=function(n,r,i){var o=this,a=Qer(n)?n:new hD(n,r,i);return rF(function(){var s=o,l=s.operator,c=s.source;a.add(l?l.call(a,c):c?o._subscribe(a):o._trySubscribe(a))}),a},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(r){n.error(r)}},e.prototype.forEach=function(n,r){var i=this;return r=$Le(r),new r(function(o,a){var s=new hD({next:function(l){try{n(l)}catch(c){a(c),s.unsubscribe()}},error:a,complete:o});i.subscribe(s)})},e.prototype._subscribe=function(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)},e.prototype[Gme]=function(){return this},e.prototype.pipe=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Ker(n)(this)},e.prototype.toPromise=function(n){var r=this;return n=$Le(n),new n(function(i,o){var a;r.subscribe(function(s){return a=s},function(s){return o(s)},function(){return i(a)})})},e.create=function(n){return new e(n)},e}();function $Le(e){var n;return(n=e??Uot.Promise)!==null&&n!==void 0?n:Promise}function Xer(e){return e&&Vs(e.next)&&Vs(e.error)&&Vs(e.complete)}function Qer(e){return e&&e instanceof Vme||Xer(e)&&jot(e)}function Zer(e){return Vs(e==null?void 0:e.lift)}function uv(e){return function(n){if(Zer(n))return n.lift(function(r){try{return e(r,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function fg(e,n,r,i,o){return new Jer(e,n,r,i,o)}var Jer=function(e){us(n,e);function n(r,i,o,a,s,l){var c=e.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=l,c._next=i?function(u){try{i(u)}catch(d){r.error(d)}}:e.prototype._next,c._error=a?function(u){try{a(u)}catch(d){r.error(d)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=o?function(){try{o()}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,c}return n.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},n}(Vme),bse={schedule:function(e){var n=requestAnimationFrame,r=cancelAnimationFrame,i=bse.delegate;i&&(n=i.requestAnimationFrame,r=i.cancelAnimationFrame);var o=n(function(a){r=void 0,e(a)});return new lN(function(){return r==null?void 0:r(o)})},requestAnimationFrame:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return requestAnimationFrame.apply(void 0,rs([],M0(e)))},cancelAnimationFrame:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return cancelAnimationFrame.apply(void 0,rs([],M0(e)))},delegate:void 0},etr=Fot(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),MS=function(e){us(n,e);function n(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return n.prototype.lift=function(r){var i=new FLe(this,this);return i.operator=r,i},n.prototype._throwIfClosed=function(){if(this.closed)throw new etr},n.prototype.next=function(r){var i=this;rF(function(){var o,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=KO(i.currentObservers),l=s.next();!l.done;l=s.next()){var c=l.value;c.next(r)}}catch(u){o={error:u}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}}})},n.prototype.error=function(r){var i=this;rF(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var o=i.observers;o.length;)o.shift().error(r)}})},n.prototype.complete=function(){var r=this;rF(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},n.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},n.prototype._innerSubscribe=function(r){var i=this,o=this,a=o.hasError,s=o.isStopped,l=o.observers;return a||s?Bot:(this.currentObservers=null,l.push(r),new lN(function(){i.currentObservers=null,Dj(l,r)}))},n.prototype._checkFinalizedStatuses=function(r){var i=this,o=i.hasError,a=i.thrownError,s=i.isStopped;o?r.error(a):s&&r.complete()},n.prototype.asObservable=function(){var r=new Of;return r.source=this,r},n.create=function(r,i){return new FLe(r,i)},n}(Of),FLe=function(e){us(n,e);function n(r,i){var o=e.call(this)||this;return o.destination=r,o.source=i,o}return n.prototype.next=function(r){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,r)},n.prototype.error=function(r){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,r)},n.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},n.prototype._subscribe=function(r){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&o!==void 0?o:Bot},n}(MS),ttr=function(e){us(n,e);function n(r){var i=e.call(this)||this;return i._value=r,i}return Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(r){var i=e.prototype._subscribe.call(this,r);return!i.closed&&r.next(this._value),i},n.prototype.getValue=function(){var r=this,i=r.hasError,o=r.thrownError,a=r._value;if(i)throw o;return this._throwIfClosed(),a},n.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},n}(MS),ntr={now:function(){return Date.now()},delegate:void 0},rtr=function(e){us(n,e);function n(r,i){return e.call(this)||this}return n.prototype.schedule=function(r,i){return this},n}(lN),BLe={setInterval:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setInterval.apply(void 0,rs([e,n],M0(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},Vot=function(e){us(n,e);function n(r,i){var o=e.call(this,r,i)||this;return o.scheduler=r,o.work=i,o.pending=!1,o}return n.prototype.schedule=function(r,i){var o;if(i===void 0&&(i=0),this.closed)return this;this.state=r;var a=this.id,s=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(s,a,i)),this.pending=!0,this.delay=i,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,i),this},n.prototype.requestAsyncId=function(r,i,o){return o===void 0&&(o=0),BLe.setInterval(r.flush.bind(r,this),o)},n.prototype.recycleAsyncId=function(r,i,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return i;i!=null&&BLe.clearInterval(i)},n.prototype.execute=function(r,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,i);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(r,i){var o=!1,a;try{this.work(r)}catch(s){o=!0,a=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),a},n.prototype.unsubscribe=function(){if(!this.closed){var r=this,i=r.id,o=r.scheduler,a=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Dj(a,this),i!=null&&(this.id=this.recycleAsyncId(o,i,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(rtr),jLe=function(){function e(n,r){r===void 0&&(r=e.now),this.schedulerActionCtor=n,this.now=r}return e.prototype.schedule=function(n,r,i){return r===void 0&&(r=0),new this.schedulerActionCtor(this,n).schedule(i,r)},e.now=ntr.now,e}(),Got=function(e){us(n,e);function n(r,i){i===void 0&&(i=jLe.now);var o=e.call(this,r,i)||this;return o.actions=[],o._active=!1,o}return n.prototype.flush=function(r){var i=this.actions;if(this._active){i.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=i.shift());if(this._active=!1,o){for(;r=i.shift();)r.unsubscribe();throw o}},n}(jLe),itr=new Got(Vot),otr=function(e){us(n,e);function n(r,i){var o=e.call(this,r,i)||this;return o.scheduler=r,o.work=i,o}return n.prototype.requestAsyncId=function(r,i,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,i,o):(r.actions.push(this),r._scheduled||(r._scheduled=bse.requestAnimationFrame(function(){return r.flush(void 0)})))},n.prototype.recycleAsyncId=function(r,i,o){var a;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,i,o);var s=r.actions;i!=null&&((a=s[s.length-1])===null||a===void 0?void 0:a.id)!==i&&(bse.cancelAnimationFrame(i),r._scheduled=void 0)},n}(Vot),atr=function(e){us(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(r){this._active=!0;var i=this._scheduled;this._scheduled=void 0;var o=this.actions,a;r=r||o.shift();do if(a=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===i&&o.shift());if(this._active=!1,a){for(;(r=o[0])&&r.id===i&&o.shift();)r.unsubscribe();throw a}},n}(Got),str=new atr(otr),ltr=new Of(function(e){return e.complete()});function ctr(e){return e&&Vs(e.schedule)}function Wme(e){return e[e.length-1]}function utr(e){return Vs(Wme(e))?e.pop():void 0}function Yme(e){return ctr(Wme(e))?e.pop():void 0}function dtr(e,n){return typeof Wme(e)=="number"?e.pop():n}var Wot=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Yot(e){return Vs(e==null?void 0:e.then)}function qot(e){return Vs(e[Gme])}function Kot(e){return Symbol.asyncIterator&&Vs(e==null?void 0:e[Symbol.asyncIterator])}function Xot(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ftr(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qot=ftr();function Zot(e){return Vs(e==null?void 0:e[Qot])}function Jot(e){return bTn(this,arguments,function(){var r,i,o,a;return pKe(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,XT(r.read())];case 3:return i=s.sent(),o=i.value,a=i.done,a?[4,XT(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,XT(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function eat(e){return Vs(e==null?void 0:e.getReader)}function w_(e){if(e instanceof Of)return e;if(e!=null){if(qot(e))return ptr(e);if(Wot(e))return htr(e);if(Yot(e))return gtr(e);if(Kot(e))return tat(e);if(Zot(e))return mtr(e);if(eat(e))return vtr(e)}throw Xot(e)}function ptr(e){return new Of(function(n){var r=e[Gme]();if(Vs(r.subscribe))return r.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function htr(e){return new Of(function(n){for(var r=0;r<e.length&&!n.closed;r++)n.next(e[r]);n.complete()})}function gtr(e){return new Of(function(n){e.then(function(r){n.closed||(n.next(r),n.complete())},function(r){return n.error(r)}).then(null,zot)})}function mtr(e){return new Of(function(n){var r,i;try{for(var o=KO(e),a=o.next();!a.done;a=o.next()){var s=a.value;if(n.next(s),n.closed)return}}catch(l){r={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}n.complete()})}function tat(e){return new Of(function(n){ytr(e,n).catch(function(r){return n.error(r)})})}function vtr(e){return tat(Jot(e))}function ytr(e,n){var r,i,o,a;return _Tn(this,void 0,void 0,function(){var s,l;return pKe(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=STn(e),c.label=1;case 1:return[4,r.next()];case 2:if(i=c.sent(),!!i.done)return[3,4];if(s=i.value,n.next(s),n.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=c.sent(),o={error:l},[3,11];case 6:return c.trys.push([6,,9,10]),i&&!i.done&&(a=r.return)?[4,a.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})}function y0(e,n,r,i,o){i===void 0&&(i=0),o===void 0&&(o=!1);var a=n.schedule(function(){r(),o?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(a),!o)return a}function nat(e,n){return n===void 0&&(n=0),uv(function(r,i){r.subscribe(fg(i,function(o){return y0(i,e,function(){return i.next(o)},n)},function(){return y0(i,e,function(){return i.complete()},n)},function(o){return y0(i,e,function(){return i.error(o)},n)}))})}function rat(e,n){return n===void 0&&(n=0),uv(function(r,i){i.add(e.schedule(function(){return r.subscribe(i)},n))})}function _tr(e,n){return w_(e).pipe(rat(n),nat(n))}function btr(e,n){return w_(e).pipe(rat(n),nat(n))}function Str(e,n){return new Of(function(r){var i=0;return n.schedule(function(){i===e.length?r.complete():(r.next(e[i++]),r.closed||this.schedule())})})}function Etr(e,n){return new Of(function(r){var i;return y0(r,n,function(){i=e[Qot](),y0(r,n,function(){var o,a,s;try{o=i.next(),a=o.value,s=o.done}catch(l){r.error(l);return}s?r.complete():r.next(a)},0,!0)}),function(){return Vs(i==null?void 0:i.return)&&i.return()}})}function iat(e,n){if(!e)throw new Error("Iterable cannot be null");return new Of(function(r){y0(r,n,function(){var i=e[Symbol.asyncIterator]();y0(r,n,function(){i.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Ctr(e,n){return iat(Jot(e),n)}function wtr(e,n){if(e!=null){if(qot(e))return _tr(e,n);if(Wot(e))return Str(e,n);if(Yot(e))return btr(e,n);if(Kot(e))return iat(e,n);if(Zot(e))return Etr(e,n);if(eat(e))return Ctr(e,n)}throw Xot(e)}function UV(e,n){return n?wtr(e,n):w_(e)}function ULe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Yme(e);return UV(e,r)}function l$(e,n){return uv(function(r,i){var o=0;r.subscribe(fg(i,function(a){i.next(e.call(n,a,o++))}))})}var xtr=Array.isArray;function Ttr(e,n){return xtr(n)?e.apply(void 0,rs([],M0(n))):e(n)}function Otr(e){return l$(function(n){return Ttr(e,n)})}var Rtr=Array.isArray,Itr=Object.getPrototypeOf,Ntr=Object.prototype,Mtr=Object.keys;function Ptr(e){if(e.length===1){var n=e[0];if(Rtr(n))return{args:n,keys:null};if(Atr(n)){var r=Mtr(n);return{args:r.map(function(i){return n[i]}),keys:r}}}return{args:e,keys:null}}function Atr(e){return e&&typeof e=="object"&&Itr(e)===Ntr}function Dtr(e,n){return e.reduce(function(r,i,o){return r[i]=n[o],r},{})}function ktr(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Yme(e),i=utr(e),o=Ptr(e),a=o.args,s=o.keys;if(a.length===0)return UV([],r);var l=new Of(Ltr(a,r,s?function(c){return Dtr(s,c)}:cN));return i?l.pipe(Otr(i)):l}function Ltr(e,n,r){return r===void 0&&(r=cN),function(i){HLe(n,function(){for(var o=e.length,a=new Array(o),s=o,l=o,c=function(d){HLe(n,function(){var f=UV(e[d],n),p=!1;f.subscribe(fg(i,function(h){a[d]=h,p||(p=!0,l--),l||i.next(r(a.slice()))},function(){--s||i.complete()}))},i)},u=0;u<o;u++)c(u)},i)}}function HLe(e,n,r){e?y0(r,e,n):n()}function $tr(e,n,r,i,o,a,s,l){var c=[],u=0,d=0,f=!1,p=function(){f&&!c.length&&!u&&n.complete()},h=function(v){return u<i?g(v):c.push(v)},g=function(v){u++;var y=!1;w_(r(v,d++)).subscribe(fg(n,function(_){n.next(_)},function(){y=!0},void 0,function(){if(y)try{u--;for(var _=function(){var S=c.shift();s||g(S)};c.length&&u<i;)_();p()}catch(S){n.error(S)}}))};return e.subscribe(fg(n,h,function(){f=!0,p()})),function(){}}function oat(e,n,r){return r===void 0&&(r=1/0),Vs(n)?oat(function(i,o){return l$(function(a,s){return n(i,a,o,s)})(w_(e(i,o)))},r):(typeof n=="number"&&(r=n),uv(function(i,o){return $tr(i,o,e,r)}))}function Ftr(e){return e===void 0&&(e=1/0),oat(cN,e)}function aat(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Yme(e),i=dtr(e,1/0),o=e;return o.length?o.length===1?w_(o[0]):Ftr(i)(UV(o,r)):ltr}function sat(e,n){return uv(function(r,i){var o=0;r.subscribe(fg(i,function(a){return e.call(n,a,o++)&&i.next(a)}))})}function Btr(e,n){return n===void 0&&(n=itr),uv(function(r,i){var o=null,a=null,s=null,l=function(){if(o){o.unsubscribe(),o=null;var u=a;a=null,i.next(u)}};function c(){var u=s+e,d=n.now();if(d<u){o=this.schedule(void 0,u-d),i.add(o);return}l()}r.subscribe(fg(i,function(u){a=u,s=n.now(),o||(o=n.schedule(c,e),i.add(o))},function(){l(),i.complete()},void 0,function(){a=o=null}))})}function qme(e,n){return n===void 0&&(n=cN),e=e??jtr,uv(function(r,i){var o,a=!0;r.subscribe(fg(i,function(s){var l=n(s);(a||!e(o,l))&&(a=!1,o=l,i.next(s))}))})}function jtr(e,n){return e===n}function kj(e){e===void 0&&(e={});var n=e.connector,r=n===void 0?function(){return new MS}:n,i=e.resetOnError,o=i===void 0?!0:i,a=e.resetOnComplete,s=a===void 0?!0:a,l=e.resetOnRefCountZero,c=l===void 0?!0:l;return function(u){var d,f,p,h=0,g=!1,v=!1,y=function(){f==null||f.unsubscribe(),f=void 0},_=function(){y(),d=p=void 0,g=v=!1},S=function(){var b=d;_(),b==null||b.unsubscribe()};return uv(function(b,E){h++,!v&&!g&&y();var w=p=p??r();E.add(function(){h--,h===0&&!v&&!g&&(f=$J(S,c))}),w.subscribe(E),!d&&h>0&&(d=new hD({next:function(C){return w.next(C)},error:function(C){v=!0,y(),f=$J(_,o,C),w.error(C)},complete:function(){g=!0,y(),f=$J(_,s),w.complete()}}),w_(b).subscribe(d))})(u)}}function $J(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(n===!0){e();return}if(n!==!1){var o=new hD({next:function(){o.unsubscribe(),e()}});return w_(n.apply(void 0,rs([],M0(r)))).subscribe(o)}}function Kme(e){return sat(function(n,r){return e<=r})}function Xme(e,n){return uv(function(r,i){var o=null,a=0,s=!1,l=function(){return s&&!o&&i.complete()};r.subscribe(fg(i,function(c){o==null||o.unsubscribe();var u=0,d=a++;w_(e(c,d)).subscribe(o=fg(i,function(f){return i.next(n?n(c,f,d,u++):f)},function(){o=null,l()}))},function(){s=!0,l()}))})}function zLe(e,n,r){var i=Vs(e)||n||r?{next:e,error:n,complete:r}:e;return i?uv(function(o,a){var s;(s=i.subscribe)===null||s===void 0||s.call(i);var l=!0;o.subscribe(fg(a,function(c){var u;(u=i.next)===null||u===void 0||u.call(i,c),a.next(c)},function(){var c;l=!1,(c=i.complete)===null||c===void 0||c.call(i),a.complete()},function(c){var u;l=!1,(u=i.error)===null||u===void 0||u.call(i,c),a.error(c)},function(){var c,u;l&&((c=i.unsubscribe)===null||c===void 0||c.call(i)),(u=i.finalize)===null||u===void 0||u.call(i)}))}):cN}var Utr=typeof WeakSet=="function",VLe=Object.keys;function Qme(e,n){return e===n||e!==e&&n!==n}function GLe(e){return e.constructor===Object||e.constructor==null}function WLe(e){return!!e&&typeof e.then=="function"}function YLe(e){return!!(e&&e.$$typeof)}function Htr(){var e=[];return{add:function(n){e.push(n)},has:function(n){return e.indexOf(n)!==-1}}}var ztr=function(e){return e?function(){return new WeakSet}:Htr}(Utr);function lat(e){return function(r){var i=e||r;return function(a,s,l){l===void 0&&(l=ztr());var c=!!a&&typeof a=="object",u=!!s&&typeof s=="object";if(c||u){var d=c&&l.has(a),f=u&&l.has(s);if(d||f)return d&&f;c&&l.add(a),u&&l.add(s)}return i(a,s,l)}}}function Vtr(e,n,r,i){var o=e.length;if(n.length!==o)return!1;for(;o-- >0;)if(!r(e[o],n[o],i))return!1;return!0}function Gtr(e,n,r,i){var o=e.size===n.size;if(o&&e.size){var a={};e.forEach(function(s,l){if(o){var c=!1,u=0;n.forEach(function(d,f){!c&&!a[u]&&(c=r(l,f,i)&&r(s,d,i),c&&(a[u]=!0)),u++}),o=c}})}return o}var Wtr="_owner",Ytr=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function qLe(e,n,r,i){var o=VLe(e),a=o.length;if(VLe(n).length!==a)return!1;if(a)for(var s=void 0;a-- >0;){if(s=o[a],s===Wtr){var l=YLe(e),c=YLe(n);if((l||c)&&l!==c)return!1}if(!Ytr(n,s)||!r(e[s],n[s],i))return!1}return!0}function qtr(e,n){return e.source===n.source&&e.global===n.global&&e.ignoreCase===n.ignoreCase&&e.multiline===n.multiline&&e.unicode===n.unicode&&e.sticky===n.sticky&&e.lastIndex===n.lastIndex}function Ktr(e,n,r,i){var o=e.size===n.size;if(o&&e.size){var a={};e.forEach(function(s){if(o){var l=!1,c=0;n.forEach(function(u){!l&&!a[c]&&(l=r(s,u,i),l&&(a[c]=!0)),c++}),o=l}})}return o}var Xtr=typeof Map=="function",Qtr=typeof Set=="function";function HV(e){var n=typeof e=="function"?e(r):r;function r(i,o,a){if(i===o)return!0;if(i&&o&&typeof i=="object"&&typeof o=="object"){if(GLe(i)&&GLe(o))return qLe(i,o,n,a);var s=Array.isArray(i),l=Array.isArray(o);return s||l?s===l&&Vtr(i,o,n,a):(s=i instanceof Date,l=o instanceof Date,s||l?s===l&&Qme(i.getTime(),o.getTime()):(s=i instanceof RegExp,l=o instanceof RegExp,s||l?s===l&&qtr(i,o):WLe(i)||WLe(o)?i===o:Xtr&&(s=i instanceof Map,l=o instanceof Map,s||l)?s===l&&Gtr(i,o,n,a):Qtr&&(s=i instanceof Set,l=o instanceof Set,s||l)?s===l&&Ktr(i,o,n,a):qLe(i,o,n,a)))}return i!==i&&o!==o}return r}HV();var F0=HV(function(){return Qme});HV(lat());HV(lat(Qme));var Ztr=Object.defineProperty,Jtr=Object.getOwnPropertyDescriptor,dv=(e,n,r,i)=>{for(var o=i>1?void 0:i?Jtr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Ztr(n,r,o),o},KLe=(e,n)=>(r,i)=>n(r,i,e);function Fy(e){return ao.create(()=>e.unsubscribe())}var zV=()=>{const e=new Map,n=(i,o)=>{if(e.has(i))return e.get(i);const a=o();return e.set(i,a),a},r=i=>{i?e.delete(i):e.clear()};return n.clear=r,n},cat=class{constructor(e){this.parentTable=e,this.table=new Map,this.onDataChangeEmitter=new Hn,this.variables$=new MS,this.anyVariableChange$=this.variables$.pipe(Xme(n=>aat(...n.map(r=>r.value$.pipe(Kme(1))))),kj()),this.onDataChange=this.onDataChangeEmitter.event,this._version=0}onAnyVariableChange(e){return Fy(this.anyVariableChange$.subscribe(e))}onAnyChange(e){const n=new Ei;return n.pushAll([this.onDataChange(e),this.onAnyVariableChange(e)]),n}fireChange(){var e;this._version++,this.onDataChangeEmitter.fire(),(e=this.parentTable)==null||e.fireChange()}get version(){return this._version}get variables(){return Array.from(this.table.values())}get variableKeys(){return Array.from(this.table.keys())}getByKeyPath(e){const[n,...r]=e||[];if(!n)return;const i=this.getVariableByKey(n);return r.length?i==null?void 0:i.getByKeyPath(r):i}getVariableByKey(e){return this.table.get(e)}addVariableToTable(e){this.table.set(e.key,e),this.parentTable&&this.parentTable.addVariableToTable(e),this.variables$.next(this.variables)}removeVariableFromTable(e){this.table.delete(e),this.parentTable&&this.parentTable.removeVariableFromTable(e),this.variables$.next(this.variables)}dispose(){this.variableKeys.forEach(e=>{var n;return(n=this.parentTable)==null?void 0:n.removeVariableFromTable(e)}),this.onDataChangeEmitter.dispose()}},uat=Symbol("DynamicVariableEngine"),dat=Symbol("ContainerProvider"),B0=class{constructor(){this.toDispose=new Ei}get variableEngine(){return this.variableEngineProvider()}refreshAllChange(){this.variableEngine.getAllScopes().forEach(e=>{e.refreshCovers(),e.refreshDeps()})}dispose(){this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}get onDispose(){return this.toDispose.onDispose}};dv([Ot(uat)],B0.prototype,"variableEngineProvider",2);B0=dv([Pn()],B0);var XLe=Symbol("post_construct_ast"),wP;(e=>{e.isString=r=>(r==null?void 0:r.kind)==="String",e.isNumber=r=>(r==null?void 0:r.kind)==="Number",e.isBoolean=r=>(r==null?void 0:r.kind)==="Boolean",e.isInteger=r=>(r==null?void 0:r.kind)==="Integer",e.isObject=r=>(r==null?void 0:r.kind)==="Object",e.isArray=r=>(r==null?void 0:r.kind)==="Array",e.isMap=r=>(r==null?void 0:r.kind)==="Map",e.isCustomType=r=>(r==null?void 0:r.kind)==="CustomType",e.isVariableDeclaration=r=>(r==null?void 0:r.kind)==="VariableDeclaration",e.isProperty=r=>(r==null?void 0:r.kind)==="Property",e.isVariableDeclarationList=r=>(r==null?void 0:r.kind)==="VariableDeclarationList",e.isEnumerateExpression=r=>(r==null?void 0:r.kind)==="EnumerateExpression",e.isKeyPathExpression=r=>(r==null?void 0:r.kind)==="KeyPathExpression";function n(r,i){return(r==null?void 0:r.kind)===(i==null?void 0:i.kind)}e.is=n})(wP||(wP={}));function fat({getChildNode:e,updateChildNode:n,removeChildNode:r,nextJSON:i}){const o=e(),a=(o==null?void 0:o.kind)!==(i==null?void 0:i.kind),s=(i==null?void 0:i.key)&&(i==null?void 0:i.key)!==(o==null?void 0:o.key);if(a||s)if(o&&(o.dispose(),r()),i){const l=this.createChildNode(i);return n(l),this.fireChange(),l}else this.fireChange();else i&&(o==null||o.fromJSON(i));return o}function _0(e){return typeof e=="string"?{kind:e}:e}function pat(e){return[...e.children,...e.children.map(n=>pat(n)).flat()]}var PS=class hat{constructor({key:n,parent:r,scope:i},o){this.flags=0,this._version=0,this.changeLocked=!1,this._batch={batching:!1,hasChangesInBatch:!1},this.value$=new ttr(this),this._children=new Set,this.toDispose=new Ei(ao.create(()=>{var a;(a=this.parent)==null||a.fireChange(),this.children.forEach(s=>s.dispose())})),this.onDispose=this.toDispose.onDispose,this.scope=i,this.parent=r,this.opts=o,this.key=n||C_(),this.fromJSON=this.withBatchUpdate(this.fromJSON.bind(this)),this.dispatchGlobalEvent({type:"NewAST"})}get kind(){if(!this.constructor.kind)throw new Error(`ASTNode Registry need a kind: ${this.constructor.name}`);return this.constructor.kind}get children(){return Array.from(this._children)}toJSON(){return console.warn("[VariableEngine] Please Implement toJSON method for "+this.kind),{kind:this.kind}}createChildNode(n){const i=this.scope.variableEngine.astRegisters.createAST(n,{parent:this,scope:this.scope});return this._children.add(i),i.toDispose.push(ao.create(()=>{this._children.delete(i)})),i}updateChildNodeByKey(n,r){this.withBatchUpdate(fat).call(this,{getChildNode:()=>this[n],updateChildNode:i=>this[n]=i,removeChildNode:()=>this[n]=void 0,nextJSON:r})}withBatchUpdate(n){return(...r)=>{if(this._batch.batching)return n.call(this,...r);this._batch.hasChangesInBatch=!1,this._batch.batching=!0;const i=n.call(this,...r);return this._batch.batching=!1,this._batch.hasChangesInBatch&&this.fireChange(),this._batch.hasChangesInBatch=!1,i}}fireChange(){var n;if(!(this.changeLocked||this.disposed)){if(this._batch.batching){this._batch.hasChangesInBatch=!0;return}this._version++,this.value$.next(this),this.dispatchGlobalEvent({type:"UpdateAST"}),(n=this.parent)==null||n.fireChange()}}get version(){return this._version}get hash(){return`${this._version}${this.kind}${this.key}`}subscribe(n,{selector:r,debounceAnimation:i,triggerOnInit:o}={}){return Fy(this.value$.pipe(l$(()=>r?r(this):this),qme((a,s)=>F0(a,s),a=>a instanceof hat?a.hash:a),o?zLe(()=>null):Kme(1),i?Btr(0,str):zLe(()=>null)).subscribe(n))}dispatchGlobalEvent(n){this.scope.event.dispatch({...n,ast:this})}dispose(){this.toDispose.disposed||(this.toDispose.dispose(),this.dispatchGlobalEvent({type:"DisposeAST"}),this.value$.complete(),this.value$.unsubscribe())}get disposed(){return this.toDispose.disposed}},AS=class extends PS{constructor(){super(...arguments),this.flags=8}isTypeEqual(e){var r;const n=_0(e);return(n==null?void 0:n.kind)==="Union"?(r=(n==null?void 0:n.types)||[])==null?void 0:r.some(i=>this.isTypeEqual(i)):this.kind===(n==null?void 0:n.kind)}getByKeyPath(e=[]){throw new Error(`Get By Key Path is not implemented for Type: ${this.kind}`)}toJSON(){return{kind:this.kind}}},gat=class extends AS{constructor(){super(...arguments),this.flags=48}fromJSON({items:e}){this.updateChildNodeByKey("items",_0(e))}get canDrilldownItems(){var e;return!!(((e=this.items)==null?void 0:e.flags)&16)}getByKeyPath(e){const[n,...r]=e||[];if(n==="0"&&this.canDrilldownItems)return this.items.getByKeyPath(r)}isTypeEqual(e){const n=_0(e),r=super.isTypeEqual(e);return n!=null&&n.weak||(n==null?void 0:n.kind)==="Union"?r:n&&r&&((n==null?void 0:n.weak)||this.customStrongEqual(n))}customStrongEqual(e){var n;return this.items?(n=this.items)==null?void 0:n.isTypeEqual(e.items):!(e!=null&&e.items)}toJSON(){var e;return{kind:"Array",items:(e=this.items)==null?void 0:e.toJSON()}}};gat.kind="Array";var mat=class extends AS{constructor(){super(...arguments),this.flags=8}fromJSON(){}};mat.kind="String";var vat=class extends AS{constructor(){super(...arguments),this.flags=8}fromJSON(){}};vat.kind="Integer";var yat=class extends AS{fromJSON(){}};yat.kind="Boolean";var _at=class extends AS{fromJSON(){}};_at.kind="Number";var bat=class extends AS{fromJSON({keyType:e="String",valueType:n}){this.updateChildNodeByKey("keyType",_0(e)),this.updateChildNodeByKey("valueType",_0(n))}isTypeEqual(e){const n=_0(e),r=super.isTypeEqual(e);return n!=null&&n.weak||(n==null?void 0:n.kind)==="Union"?r:n&&r&&((n==null?void 0:n.weak)||this.customStrongEqual(n))}customStrongEqual(e){var o,a;const{keyType:n="String",valueType:r}=e;return(!r&&!this.valueType||((o=this.valueType)==null?void 0:o.isTypeEqual(r)))&&((a=this.keyType)==null?void 0:a.isTypeEqual(n))}toJSON(){var e,n;return{kind:"Map",keyType:(e=this.keyType)==null?void 0:e.toJSON(),valueType:(n=this.valueType)==null?void 0:n.toJSON()}}};bat.kind="Map";var Sat=class extends AS{constructor(){super(...arguments),this.flags=16,this.propertyTable=new Map}fromJSON({properties:e}){const n=new Set(this.propertyTable.keys()),r=[...this.properties||[]];this.properties=(e||[]).map(i=>{const o=this.propertyTable.get(i.key);if(n.delete(i.key),o)return o.fromJSON(i),o;{const a=this.createChildNode({...i,kind:"Property"});return this.fireChange(),this.propertyTable.set(i.key,a),a}}),n.forEach(i=>{const o=this.propertyTable.get(i);o==null||o.dispose(),this.propertyTable.delete(i),this.fireChange()}),this.dispatchGlobalEvent({type:"ObjectPropertiesChange",payload:{prev:r,next:[...this.properties]}})}toJSON(){return{kind:"Object",properties:this.properties.map(e=>e.toJSON())}}getByKeyPath(e){var o;const[n,...r]=e,i=this.propertyTable.get(n);if(!r.length)return i;if(i!=null&&i.type&&((o=i==null?void 0:i.type)==null?void 0:o.flags)&16)return i.type.getByKeyPath(r)}isTypeEqual(e){const n=_0(e),r=super.isTypeEqual(e);return n!=null&&n.weak||(n==null?void 0:n.kind)==="Union"?r:n&&r&&((n==null?void 0:n.weak)||this.customStrongEqual(n))}customStrongEqual(e){const n=e.properties||[],r=Array.from(this.propertyTable.keys()),i=n.map(a=>a.key);return!Mn.xor(r,i).length&&n.every(a=>{var l;const s=this.propertyTable.get(a.key);return s&&s.key===a.key&&((l=s.type)==null?void 0:l.isTypeEqual(a==null?void 0:a.type))})}};Sat.kind="Object";var Eat=class extends AS{get typeName(){return this._typeName}fromJSON(e){this._typeName!==e.typeName&&(this._typeName=e.typeName,this.fireChange())}isTypeEqual(e){var r;const n=_0(e);return(n==null?void 0:n.kind)==="Union"?(r=(n==null?void 0:n.types)||[])==null?void 0:r.some(i=>this.isTypeEqual(i)):(n==null?void 0:n.kind)===this.kind&&(n==null?void 0:n.typeName)===this.typeName}};Eat.kind="CustomType";function Zme(e){let n=e.parent;const r=[];for(;n;)n.flags&1&&r.push(n),n=n.parent;return r}var Jme=class extends PS{constructor(e,n){super(e,n),this.flags=4,this._refs=[],this.refreshRefs$=new MS,this.refs$=this.refreshRefs$.pipe(l$(()=>this.getRefFields()),qme(F0),Xme(r=>r!=null&&r.length?ktr(r.map(i=>i?i.value$:ULe(void 0))):ULe([])),kj()),this.toDispose.push(Fy(this.refs$.subscribe(r=>{this._refs=r,this.fireChange()})))}get globalVariableTable(){return this.scope.variableEngine.globalVariableTable}get parentFields(){return Zme(this)}get refs(){return this._refs}refreshRefs(){this.refreshRefs$.next()}},Cat=class extends PS{fromJSON({expressions:e}){this.expressions=e.map((n,r)=>{const i=this.expressions[r];return i.kind!==n.kind?(i.dispose(),this.fireChange(),this.createChildNode(n)):(i.fromJSON(n),i)})}toJSON(){return{kind:"ExpressionList",properties:this.expressions.map(e=>e.toJSON())}}};Cat.kind="ExpressionList";var wat=class extends Jme{constructor(e,n){super(e,n),this._keyPath=[],this.toDispose.pushAll([this.scope.available.onVariableListChange(()=>{this.refreshRefs()}),this.scope.available.onAnyVariableChange(r=>{r.key===this._keyPath[0]&&this.refreshRefs()})])}get keyPath(){return this._keyPath}getRefFields(){const e=this.scope.available.getByKeyPath(this._keyPath);return e?[e]:[]}get returnType(){const[e]=this._refs||[];if(e&&e.flags&1)return e.type}parseToKeyPath(e){return e.keyPath}fromJSON(e){const n=this.parseToKeyPath(e);F0(n,this._keyPath)||(this._keyPath=n,this.refreshRefs())}toJSON(){return{kind:"KeyPathExpression",keyPath:this._keyPath}}};wat.kind="KeyPathExpression";var xat=class extends Jme{get enumerateFor(){return this._enumerateFor}get returnType(){var n;const e=(n=this.enumerateFor)==null?void 0:n.returnType;if((e==null?void 0:e.kind)==="Array")return e.items}getRefFields(){return[]}fromJSON({enumerateFor:e}){this.updateChildNodeByKey("_enumerateFor",e)}toJSON(){var e;return{kind:"EnumerateExpression",enumerateFor:(e=this.enumerateFor)==null?void 0:e.toJSON()}}};xat.kind="EnumerateExpression";function enr(e){return pat(e).filter(n=>n.flags&4).map(n=>n.refs).flat().filter(Boolean)}function tnr(e,n){if(Mn.intersection(e.scope.coverScopes,n.map(o=>o==null?void 0:o.scope).filter(Boolean)).length===0)return!1;const r=new Set,i=[...n];for(;i.length;){const o=i.shift();r.add(o);for(const a of enr(o).filter(s=>!r.has(s)))i.push(a)}return Mn.intersection(Array.from(r),Zme(e)).length>0}var nnr=class extends Jme{constructor(e,n){super(e,n),this._keyPath=[],this.toDispose.pushAll([this.scope.available.onVariableListChange(()=>{this.refreshRefs()}),this.scope.available.onAnyVariableChange(r=>{r.key===this._keyPath[0]&&this.refreshRefs()}),Fy(this.refs$.subscribe(r=>{var o,a;const[i]=this._refs;this.prevRefTypeHash!==((o=i==null?void 0:i.type)==null?void 0:o.hash)&&(this.prevRefTypeHash=(a=i==null?void 0:i.type)==null?void 0:a.hash,this.updateChildNodeByKey("_returnType",this.getReturnTypeJSONByRef(i)))}))])}get keyPath(){return this._keyPath}getRefFields(){const e=this.scope.available.getByKeyPath(this._keyPath);return tnr(this,[e])?(console.warn("[CustomKeyPathExpression] checkRefCycle: Reference Cycle Existed",this.parentFields.map(n=>n.key).reverse()),[]):e?[e]:[]}get returnType(){return this._returnType}parseToKeyPath(e){return e.keyPath}fromJSON(e){const n=this.parseToKeyPath(e);F0(n,this._keyPath)||(this._keyPath=n,this.refreshRefs())}getReturnTypeJSONByRef(e){var n;return(n=e==null?void 0:e.type)==null?void 0:n.toJSON()}toJSON(){return{kind:"KeyPathExpression",keyPath:this._keyPath}}};nnr.kind="KeyPathExpression";var Tat=class extends PS{constructor(){super(...arguments),this.flags=1,this._meta={}}get parentFields(){return Zme(this)}get meta(){return this._meta}get type(){var e;return((e=this._initializer)==null?void 0:e.returnType)||this._type}get initializer(){return this._initializer}fromJSON({type:e,initializer:n,meta:r}){this.updateType(e),this.updateInitializer(n),this.updateMeta(r)}updateType(e){const n=typeof e=="string"?{kind:e}:e;this.updateChildNodeByKey("_type",n)}updateInitializer(e){this.updateChildNodeByKey("_initializer",e)}updateMeta(e){F0(e,this._meta)||(this._meta=e,this.fireChange())}getByKeyPath(e){var n;if(((n=this.type)==null?void 0:n.flags)&16)return this.type.getByKeyPath(e)}onTypeChange(e){return this.subscribe(e,{selector:n=>n.type})}toJSON(){var e,n;return{kind:this.kind,key:this.key,type:(e=this.type)==null?void 0:e.toJSON(),initializer:(n=this.initializer)==null?void 0:n.toJSON(),meta:this._meta}}},Oat=class extends Tat{constructor(e){super(e),this._order=0}get order(){return this._order}fromJSON({order:e,...n}){this.updateOrder(e),super.fromJSON(n)}updateOrder(e=0){e!==this._order&&(this._order=e,this.dispatchGlobalEvent({type:"ReSortVariableDeclarations"}),this.fireChange())}onTypeChange(e){return this.subscribe(e,{selector:n=>n.type})}};Oat.kind="VariableDeclaration";var Rat=class extends PS{constructor(){super(...arguments),this.declarationTable=new Map}fromJSON({declarations:e,startOrder:n}){const r=new Set(this.declarationTable.keys()),i=[...this.declarations||[]];this.declarations=(e||[]).map((o,a)=>{var u,d;const s=(n||0)+a,l=o.key||((d=(u=this.declarations)==null?void 0:u[a])==null?void 0:d.key),c=this.declarationTable.get(l);if(l&&r.delete(l),c)return c.fromJSON({order:s,...o}),c;{const f=this.createChildNode({order:s,...o,kind:"VariableDeclaration"});return this.fireChange(),this.declarationTable.set(f.key,f),f}}),r.forEach(o=>{const a=this.declarationTable.get(o);a==null||a.dispose(),this.declarationTable.delete(o)}),this.dispatchGlobalEvent({type:"VariableListChange",payload:{prev:i,next:[...this.declarations]}})}toJSON(){return{kind:"VariableDeclarationList",properties:this.declarations.map(e=>e.toJSON())}}};Rat.kind="VariableDeclarationList";var Iat=class extends Tat{};Iat.kind="Property";var Nat=class extends PS{get data(){return this._data}fromJSON(e){const{kind:n,...r}=e;F0(r,this._data)||(this._data=r,this.fireChange())}toJSON(){return{kind:"DataNode",...this._data}}partialUpdate(e){F0(e,this._data)||(this._data={...this._data,...e},this.fireChange())}};Nat.kind="DataNode";var rnr=class extends PS{get list(){return this._list}fromJSON({list:e}){this._list.slice(e.length).forEach(n=>{n.dispose(),this.fireChange()}),this._list=e.map((n,r)=>{const i=this._list[r];return i.kind!==n.kind?(i.dispose(),this.fireChange(),this.createChildNode(n)):(i.fromJSON(n),i)})}toJSON(){return{kind:"ListNode",list:this._list.map(e=>e.toJSON())}}};rnr.kind="ListNode";var Mat=class extends PS{constructor(){super(...arguments),this.map=new Map}fromJSON({map:e}){const n=new Set(this.map.keys());for(const[r,i]of e||[])n.delete(r),this.set(r,i);for(const r of Array.from(n))this.remove(r)}toJSON(){return{kind:"MapNode",map:Array.from(this.map.entries())}}set(e,n){return this.withBatchUpdate(fat).call(this,{getChildNode:()=>this.get(e),removeChildNode:()=>this.map.delete(e),updateChildNode:r=>this.map.set(e,r),nextJSON:n})}remove(e){var n;(n=this.get(e))==null||n.dispose(),this.map.delete(e),this.fireChange()}get(e){return this.map.get(e)}};Mat.kind="MapNode";var gD=class{constructor(){this.injectors=new Map,this.astMap=new Map,this.registerAST(mat),this.registerAST(_at),this.registerAST(yat),this.registerAST(vat),this.registerAST(Sat),this.registerAST(gat),this.registerAST(bat),this.registerAST(Eat),this.registerAST(Iat),this.registerAST(Oat),this.registerAST(Rat),this.registerAST(wat),this.registerAST(xat),this.registerAST(Cat),this.registerAST(Mat),this.registerAST(Nat)}createAST(e,{parent:n,scope:r}){var s;const i=this.astMap.get(e.kind);if(!i)throw Error(`ASTKind: ${String(e.kind)} can not find its ASTNode Registry`);const o=this.injectors.get(e.kind),a=new i({key:e.key,scope:r,parent:n},(o==null?void 0:o())||{});if(a.changeLocked=!0,a.fromJSON(Mn.omit(e,["key","kind"])),a.changeLocked=!1,Reflect.hasMetadata(XLe,a)){const l=Reflect.getMetadata(XLe,a);(s=a[l])==null||s.call(a)}return a}getASTRegistryByKind(e){return this.astMap.get(e)}registerAST(e,n){this.astMap.set(e.kind,e),n&&this.injectors.set(e.kind,n)}};gD=dv([Pn()],gD);var Kg;(e=>{e.createString=()=>({kind:"String"}),e.createNumber=()=>({kind:"Number"}),e.createBoolean=()=>({kind:"Boolean"}),e.createInteger=()=>({kind:"Integer"}),e.createObject=n=>({kind:"Object",...n}),e.createArray=n=>({kind:"Array",...n}),e.createMap=n=>({kind:"Map",...n}),e.createUnion=n=>({kind:"Union",...n}),e.createCustomType=n=>({kind:"CustomType",...n}),e.createVariableDeclaration=n=>({kind:"VariableDeclaration",...n}),e.createProperty=n=>({kind:"Property",...n}),e.createVariableDeclarationList=n=>({kind:"VariableDeclarationList",...n}),e.createEnumerateExpression=n=>({kind:"EnumerateExpression",...n}),e.createKeyPathExpression=n=>({kind:"KeyPathExpression",...n}),e.create=(n,r)=>({kind:n.kind,...r})})(Kg||(Kg={}));var inr=class{constructor(e){this.scope=e,this.memo=zV(),this._hasChanges=!1,this.variableTable=new cat(e.variableEngine.globalVariableTable),this.scope.toDispose.pushAll([this.scope.ast.subscribe(()=>{this._hasChanges&&(this.memo.clear(),this.notifyCoversChange(),this.variableTable.fireChange(),this._hasChanges=!1)}),this.scope.event.on("DisposeAST",n=>{var r;((r=n.ast)==null?void 0:r.kind)==="VariableDeclaration"&&this.removeVariableFromTable(n.ast.key)}),this.scope.event.on("NewAST",n=>{var r;((r=n.ast)==null?void 0:r.kind)==="VariableDeclaration"&&this.addVariableToTable(n.ast)}),this.scope.event.on("ReSortVariableDeclarations",()=>{this._hasChanges=!0}),this.variableTable])}get variableEngine(){return this.scope.variableEngine}get globalVariableTable(){return this.scope.variableEngine.globalVariableTable}get onDataChange(){return this.variableTable.onDataChange.bind(this.variableTable)}get onAnyVariableChange(){return this.variableTable.onAnyVariableChange.bind(this.variableTable)}get variables(){return this.memo("variables",()=>this.variableTable.variables.sort((e,n)=>e.order-n.order))}get variableKeys(){return this.memo("variableKeys",()=>this.variableTable.variableKeys)}addVariableToTable(e){if(e.scope!==this.scope)throw Error("VariableDeclaration must be a ast node in scope");this.variableTable.addVariableToTable(e),this._hasChanges=!0}removeVariableFromTable(e){this.variableTable.removeVariableFromTable(e),this._hasChanges=!0}getVariableByKey(e){return this.variableTable.getVariableByKey(e)}notifyCoversChange(){this.scope.coverScopes.forEach(e=>e.available.refresh())}},onr=class{constructor(e){this.scope=e,this.memo=zV(),this.refresh$=new MS,this._variables=[],this.variables$=this.refresh$.pipe(l$(()=>Mn.flatten(this.depScopes.map(n=>n.output.variables||[]))),qme(F0),kj()),this.anyVariableChange$=this.variables$.pipe(Xme(n=>aat(...n.map(r=>r.value$.pipe(Kme(1))))),kj()),this.onDataChangeEmitter=new Hn,this.onDataChange=this.onDataChangeEmitter.event,this.scope.toDispose.pushAll([this.onVariableListChange(n=>{this._variables=n,this.memo.clear(),this.onDataChangeEmitter.fire(this._variables)}),this.onAnyVariableChange(()=>{this.onDataChangeEmitter.fire(this._variables)}),ao.create(()=>{this.refresh$.complete(),this.refresh$.unsubscribe()})])}get globalVariableTable(){return this.scope.variableEngine.globalVariableTable}refresh(){this.scope.disposed||this.refresh$.next()}onAnyVariableChange(e){return Fy(this.anyVariableChange$.subscribe(e))}onVariableListChange(e){return Fy(this.variables$.subscribe(e))}get variables(){return this._variables}get variableKeys(){return this.memo("availableKeys",()=>this._variables.map(e=>e.key))}get depScopes(){return this.scope.depScopes}getByKeyPath(e=[]){if(this.variableKeys.includes(e[0]))return this.globalVariableTable.getByKeyPath(e)}},anr=class{constructor(e){this.scope=e,this.event$=new MS,e.toDispose.pushAll([this.subscribe(n=>{e.variableEngine.fireGlobalEvent(n)})])}dispatch(e){this.scope.disposed||this.event$.next(e)}subscribe(e){return Fy(this.event$.subscribe(e))}on(e,n){return Fy(this.event$.pipe(sat(r=>r.type===e)).subscribe(n))}},Pat=class{constructor(e){this.memo=zV(),this.toDispose=new Ei,this.onDispose=this.toDispose.onDispose,this.id=e.id,this.meta=e.meta||{},this.variableEngine=e.variableEngine,this.event=new anr(this),this.ast=this.variableEngine.astRegisters.createAST({kind:"MapNode",key:String(this.id)},{scope:this}),this.output=new inr(this),this.available=new onr(this)}refreshCovers(){this.memo.clear("covers")}refreshDeps(){this.memo.clear("deps"),this.available.refresh()}get depScopes(){return this.memo("deps",()=>this.variableEngine.chain.getDeps(this).filter(e=>!!e&&!(e!=null&&e.disposed)))}get coverScopes(){return this.memo("covers",()=>this.variableEngine.chain.getCovers(this).filter(e=>!!e&&!(e!=null&&e.disposed)))}dispose(){this.ast.dispose(),this.toDispose.dispose(),this.coverScopes.forEach(e=>e.refreshDeps()),this.depScopes.forEach(e=>e.refreshCovers())}get disposed(){return this.toDispose.disposed}},qm=class{constructor(e,n){this.chain=e,this.astRegisters=n,this.toDispose=new Ei,this.memo=zV(),this.scopeMap=new Map,this.globalEvent$=new MS,this.onScopeChangeEmitter=new Hn,this.globalVariableTable=new cat,this.onScopeChange=this.onScopeChangeEmitter.event,this.toDispose.pushAll([e,ao.create(()=>{this.getAllScopes().forEach(r=>r.dispose()),this.globalVariableTable.dispose()})])}get container(){return this.containerProvider()}dispose(){this.toDispose.dispose()}getScopeById(e){return this.scopeMap.get(e)}removeScopeById(e){var n;(n=this.getScopeById(e))==null||n.dispose()}createScope(e,n,r={}){const{ScopeConstructor:i=Pat}=r;let o=this.getScopeById(e);return o||(o=new i({variableEngine:this,meta:n,id:e}),this.scopeMap.set(e,o),this.onScopeChangeEmitter.fire({type:"add",scope:o}),o.toDispose.pushAll([o.ast.subscribe(()=>{this.onScopeChangeEmitter.fire({type:"update",scope:o})}),o.available.onDataChange(()=>{this.onScopeChangeEmitter.fire({type:"available",scope:o})})]),o.onDispose(()=>{this.scopeMap.delete(e),this.onScopeChangeEmitter.fire({type:"delete",scope:o})})),o}getAllScopes({sort:e}={}){const n=Array.from(this.scopeMap.values());if(e){const r=this.chain.sortAll(),i=new Set(n);return r.forEach(o=>i.delete(o)),[...r,...Array.from(i)]}return[...n]}fireGlobalEvent(e){this.globalEvent$.next(e)}onGlobalEvent(e,n){return Fy(this.globalEvent$.subscribe(r=>{r.type===e&&n(r)}))}};dv([Ot(dat)],qm.prototype,"containerProvider",2);dv([rit()],qm.prototype,"dispose",1);qm=dv([Pn(),KLe(0,Ot(B0)),KLe(1,Ot(gD))],qm);var OR=class{constructor(){this.toDispose=new Ei,this.renameEmitter=new Hn,this.disposeInListEmitter=new Hn,this.onRename=this.renameEmitter.event,this.onDisposeInList=this.disposeInListEmitter.event}handleFieldListChange(e,n,r){var a,s;if(!e||!(n!=null&&n.length)||!(r!=null&&r.length)){this.notifyFieldsDispose(n,r);return}if(n.length!==r.length){this.notifyFieldsDispose(n,r);return}let i=null,o=!1;for(const[l,c]of n.entries()){const u=r[l];if(c.key!==u.key){if(o){this.notifyFieldsDispose(n,r);return}o=!0,((a=c.type)==null?void 0:a.kind)===((s=u.type)==null?void 0:s.kind)&&(i={before:c,after:u})}}if(!i){this.notifyFieldsDispose(n,r);return}this.renameEmitter.fire(i)}notifyFieldsDispose(e,n){Mn.difference(e||[],n||[]).forEach(i=>this.disposeInListEmitter.fire(i))}init(){this.toDispose.pushAll([this.variableEngine.onGlobalEvent("VariableListChange",e=>{var n,r;this.handleFieldListChange(e.ast,(n=e.payload)==null?void 0:n.prev,(r=e.payload)==null?void 0:r.next)}),this.variableEngine.onGlobalEvent("ObjectPropertiesChange",e=>{var n,r;this.handleFieldListChange(e.ast,(n=e.payload)==null?void 0:n.prev,(r=e.payload)==null?void 0:r.next)})])}dispose(){this.toDispose.dispose()}};dv([Ot(qm)],OR.prototype,"variableEngine",2);dv([Zc()],OR.prototype,"init",1);dv([rit()],OR.prototype,"dispose",1);OR=dv([Pn()],OR);var snr=new Zp(e=>{e(qm).toSelf().inSingletonScope(),e(gD).toSelf().inSingletonScope(),e(OR).toSelf().inSingletonScope(),e(uat).toDynamicValue(n=>()=>n.container.get(qm)),e(dat).toDynamicValue(n=>()=>n.container)}),Aat=m.createContext(null),lnr=Aat.Provider,cnr=()=>{var e;return(e=m.useContext(Aat))==null?void 0:e.scope};function unr(){const e=cnr(),n=Od();return m.useEffect(()=>{const r=e.available.onDataChange(()=>{n()});return()=>r.dispose()},[]),e.available}var dnr=Symbol(""),uN=(e=>(e.ADD_NODE="ADD_NODE",e.DELETE_NODE="DELETE_NODE",e.MOVE_NODE="MOVE_NODE",e.NODE_DATA_CHANGE="NODE_DATA_CHANGE",e.ADD_LINE="ADD_LINE",e.DELETE_LINE="DELETE_LINE",e.META_CHANGE="META_CHANGE",e))(uN||{}),eve=(e=>(e[e.BEZIER=0]="BEZIER",e[e.LINE_CHART=1]="LINE_CHART",e))(eve||{}),VV=Symbol("WorkflowOperationBaseService"),fnr=Object.defineProperty,pnr=Object.getOwnPropertyDescriptor,Mi=(e,n,r,i)=>{for(var o=i>1?void 0:i?pnr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&fnr(n,r,o),o},hnr="[object Symbol]";function GV(e){return typeof e=="symbol"||N0(e)&&uw(e)==hnr}function gnr(e,n){for(var r=-1,i=e==null?0:e.length,o=Array(i);++r<i;)o[r]=n(e[r],r,e);return o}var mnr=1/0,QLe=I0?I0.prototype:void 0,ZLe=QLe?QLe.toString:void 0;function Dat(e){if(typeof e=="string")return e;if(Dy(e))return gnr(e,Dat)+"";if(GV(e))return ZLe?ZLe.call(e):"";var n=e+"";return n=="0"&&1/e==-mnr?"-0":n}var vnr=/\s/;function ynr(e){for(var n=e.length;n--&&vnr.test(e.charAt(n)););return n}var _nr=/^\s+/;function bnr(e){return e&&e.slice(0,ynr(e)+1).replace(_nr,"")}var JLe=NaN,Snr=/^[-+]0x[0-9a-f]+$/i,Enr=/^0b[01]+$/i,Cnr=/^0o[0-7]+$/i,wnr=parseInt;function e$e(e){if(typeof e=="number")return e;if(GV(e))return JLe;if(Am(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Am(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=bnr(e);var r=Enr.test(e);return r||Cnr.test(e)?wnr(e.slice(2),r?2:8):Snr.test(e)?JLe:+e}var xnr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tnr=/^\w*$/;function Onr(e,n){if(Dy(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||GV(e)?!0:Tnr.test(e)||!xnr.test(e)||n!=null&&e in Object(n)}var Rnr="Expected a function";function tve(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(Rnr);var r=function(){var i=arguments,o=n?n.apply(this,i):i[0],a=r.cache;if(a.has(o))return a.get(o);var s=e.apply(this,i);return r.cache=a.set(o,s)||a,s};return r.cache=new(tve.Cache||a_),r}tve.Cache=a_;var Inr=500;function Nnr(e){var n=tve(e,function(i){return r.size===Inr&&r.clear(),i}),r=n.cache;return n}var Mnr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pnr=/\\(\\)?/g,Anr=Nnr(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Mnr,function(r,i,o,a){n.push(o?a.replace(Pnr,"$1"):i||r)}),n});function Dnr(e){return e==null?"":Dat(e)}function knr(e,n){return Dy(e)?e:Onr(e,n)?[e]:Anr(Dnr(e))}var Lnr=1/0;function $nr(e){if(typeof e=="string"||GV(e))return e;var n=e+"";return n=="0"&&1/e==-Lnr?"-0":n}function Fnr(e,n){n=knr(n,e);for(var r=0,i=n.length;e!=null&&r<i;)e=e[$nr(n[r++])];return r&&r==i?e:void 0}function t$e(e,n,r){var i=e==null?void 0:Fnr(e,n);return i===void 0?r:i}var FJ=function(){return Sg.Date.now()},Bnr="Expected a function",jnr=Math.max,Unr=Math.min;function Hnr(e,n,r){var i,o,a,s,l,c,u=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(Bnr);n=e$e(n)||0,Am(r)&&(d=!!r.leading,f="maxWait"in r,a=f?jnr(e$e(r.maxWait)||0,n):a,p="trailing"in r?!!r.trailing:p);function h(C){var x=i,T=o;return i=o=void 0,u=C,s=e.apply(T,x),s}function g(C){return u=C,l=setTimeout(_,n),d?h(C):s}function v(C){var x=C-c,T=C-u,R=n-x;return f?Unr(R,a-T):R}function y(C){var x=C-c,T=C-u;return c===void 0||x>=n||x<0||f&&T>=a}function _(){var C=FJ();if(y(C))return S(C);l=setTimeout(_,v(C))}function S(C){return l=void 0,p&&i?h(C):(i=o=void 0,s)}function b(){l!==void 0&&clearTimeout(l),u=0,i=c=o=l=void 0}function E(){return l===void 0?s:S(FJ())}function w(){var C=FJ(),x=y(C);if(i=arguments,o=this,c=C,x){if(l===void 0)return g(c);if(f)return clearTimeout(l),l=setTimeout(_,n),h(c)}return l===void 0&&(l=setTimeout(_,n)),s}return w.cancel=b,w.flush=E,w}function n$e(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}var kat=(e=>(e.DELETE_NODES="DELETE_NODES",e.COPY_NODES="COPY_NODES",e.PASTE_NODES="PASTE_NODES",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.UNDO="UNDO",e.REDO="REDO",e))(kat||{});function nve(e){return C_(e)}var WV=(e,n,r=!0)=>{const i=Qn.enlarge(e.getAllNodes().map(o=>o.getData(Ui).bounds));return n.fitView(i,r,30)};function znr(e,n,r){let{x:i,y:o}=n;const s=e.getAllNodes().map(c=>{const u=c.getData(Ui);return{x:u.position.x,y:u.position.y}}).sort((c,u)=>c.y-u.y),l=3;for(const c of s){const{x:u,y:d}=c;if(o-d<-l)break;const f=Math.abs(i-u),p=Math.abs(o-d);f<=l&&p<=l&&(i+=30,o+=30)}return{x:i,y:o}}var Lat=(e,n,r="")=>`port_${n}_${e.id}_${r}`,$at="WorkflowLineEntity";function Vnr(e){return new Qn(e.x,e.y,e.width,e.height)}var Ap=Sl,BJ=24,LC=class extends jm{constructor(e){super(e),this.portID="",this._disabled=!1,this._hasError=!1,this._onErrorChangedEmitter=new Hn,this.onErrorChanged=this._onErrorChangedEmitter.event,this.portID=e.portID||"",this.portType=e.type,this._disabled=e.disabled??!1,this.node=e.node,this.updateTargetElement(e.targetElement),this.toDispose.push(this.node.getData(Ui).onDataChange(()=>this.fireChange())),this.toDispose.push(this.node.onDispose(this.dispose.bind(this)))}static getPortEntityId(e,n,r=""){return Lat(e,n,r)}get hasError(){return this._hasError}set hasError(e){this._hasError=e,this._onErrorChangedEmitter.fire()}validate(){const e=this.allLines.some(r=>r.disposed||r.isHidden?!1:(r.validateSelf(),r.hasError)),n=this.node.document.isErrorPort(this);this.hasError=e||n}isErrorPort(){return this.node.document.isErrorPort(this)}get point(){const{targetElement:e}=this,{bounds:n}=this.node.getData(hr);if(e){const r=Vnr(e.getBoundingClientRect()).center;return this.entityManager.getEntity(da).getPosFromMouseEvent({clientX:r.x,clientY:r.y})}return this.portType==="input"?n.leftCenter:n.rightCenter}get bounds(){const{point:e}=this,n=BJ/2;return new Qn(e.x-n,e.y-n,BJ,BJ)}isHovered(e,n){return this.bounds.contains(e,n)}get relativePosition(){const{point:e}=this,{bounds:n}=this.node.getData(hr);return{x:e.x-n.x,y:e.y-n.y}}updateTargetElement(e){e!==this.targetElement&&(this.targetElement=e,this.fireChange())}get disabled(){const e=this.node.document;if(typeof e.options.isDisabledPort=="function")return e.options.isDisabledPort(this);if(this._disabled)return!0;const n=this.node.getNodeMeta();return this.portType==="input"?!!n.inputDisable:!!n.outputDisable}get lines(){return this.allLines.filter(e=>!e.isDrawing)}get availableLines(){return this.allLines.filter(e=>!e.isDrawing&&!e.isHidden)}get allLines(){const e=[];return this.entityManager.getEntities({type:$at}).forEach(r=>{(r.toPort===this||r.fromPort===this)&&e.push(r)}),e}dispose(){this.lines.forEach(e=>e.dispose()),super.dispose()}};LC.type="WorkflowPortEntity";var Km=class extends Pl{constructor(e){var i;super(e),this._staticPorts=[],this._portIDSet=new Set,this.entity=e;const n=e.getNodeMeta(),r=n.useDynamicPort?[]:[{type:"input"},{type:"output"}];this._staticPorts=((i=n.defaultPorts)==null?void 0:i.slice())||r,this.updatePorts(this._staticPorts),n.useDynamicPort&&this.toDispose.push(e.getData(iy).onDataChange(()=>{e.getData(iy).width&&e.getData(iy).height&&this.updateDynamicPorts()})),this.onDispose(()=>{this.allPorts.forEach(o=>o.dispose())})}getDefaultData(){return{}}updateStaticPorts(e){const n=this.entity.getNodeMeta();this._staticPorts=e,n.useDynamicPort?this.updateDynamicPorts():this.updatePorts(this._staticPorts)}updateDynamicPorts(){const n=this.entity.getData(ra).node.querySelectorAll("[data-port-id]"),r=this._staticPorts,i=[];n.length>0&&i.push(...Array.from(n).map(o=>({portID:o.getAttribute("data-port-id"),type:o.getAttribute("data-port-type"),targetElement:o}))),this.updatePorts(r.concat(i))}getPortEntityByKey(e,n){return this.getOrCreatePortEntity({type:e,portID:n})}updatePorts(e){if(!kqe(this._prePorts,e)){const n=e.map(r=>this.getPortId(r.type,r.portID));this._portIDSet.forEach(r=>{var i;n.includes(r)||(i=this.getPortEntity(r))==null||i.dispose()}),e.forEach(r=>this.updatePortEntity(r)),this._prePorts=e,this.fireChange()}this.allPorts.forEach(n=>{n.allLines.forEach(r=>{r.validate()}),n.validate()})}get allPorts(){return Array.from(this._portIDSet).map(e=>this.getPortEntity(e)).filter(Boolean)}get inputPorts(){return this.allPorts.filter(e=>e.portType==="input")}get outputPorts(){return this.allPorts.filter(e=>e.portType==="output")}get inputPoints(){return this.inputPorts.map(e=>e.point)}get outputPoints(){return this.inputPorts.map(e=>e.point)}getInputPoint(e){return this.getPortEntityByKey("input",e).point}getOutputPoint(e){return this.getPortEntityByKey("output",e).point}getPortEntity(e){if(this._portIDSet.has(e))return this.entity.entityManager.getEntityById(e)}getPortId(e,n=""){return Lat(this.entity,e,n)}createPortEntity(e){const n=this.getPortId(e.type,e.portID);let r=this.entity.entityManager.getEntityById(n);return r||(r=this.entity.entityManager.createEntity(LC,{id:n,node:this.entity,...e})),r.onDispose(()=>{this._portIDSet.delete(n)}),this._portIDSet.add(n),r}getOrCreatePortEntity(e){const n=this.getPortId(e.type,e.portID);return this.getPortEntity(n)??this.createPortEntity(e)}updatePortEntity(e){const n=this.getOrCreatePortEntity(e);return e.targetElement&&n.updateTargetElement(e.targetElement),n}};Km.type="WorkflowNodePortsData";var Fat=class Sse extends Pl{getDefaultData(){return{inputLines:[],outputLines:[]}}constructor(n){super(n),this.entity=n,this.entity.preDispose.push(ao.create(()=>{this.inputLines.slice().forEach(r=>r.dispose()),this.outputLines.slice().forEach(r=>r.dispose())}))}get inputLines(){return this.data.inputLines}get outputLines(){return this.data.outputLines}get inputNodes(){return this.inputLines.map(n=>n.from).filter(Boolean)}get allInputNodes(){const n=new Set,r=i=>{if(n.has(i))return;n.add(i);const{inputNodes:o}=i.getData(Sse);!o||!o.length||o.forEach(a=>{(a==null?void 0:a.parent)===i||(i==null?void 0:i.parent)===a||r(a)})};return r(this.entity),n.delete(this.entity),Array.from(n)}get outputNodes(){return this.outputLines.map(n=>n.to).filter(Boolean)}get allOutputNodes(){const n=new Set,r=i=>{if(n.has(i))return;n.add(i);const{outputNodes:o}=i.getData(Sse);!o||!o.length||o.forEach(a=>{(a==null?void 0:a.parent)===i||(i==null?void 0:i.parent)===a||r(a)})};return r(this.entity),n.delete(this.entity),Array.from(n)}addLine(n){n.from===this.entity?this.outputLines.push(n):this.inputLines.push(n),this.fireChange()}removeLine(n){const{inputLines:r,outputLines:i}=this,o=r.indexOf(n),a=i.indexOf(n);o!==-1&&(r.splice(o,1),this.fireChange()),a!==-1&&(i.splice(a,1),this.fireChange())}};Fat.type="WorkflowNodeLinesData";var Em=Fat,by=class extends Pl{constructor(e){super(e),this.syncContributions()}getDefaultData(){return{version:"",contributions:new Map,position:{from:{x:0,y:0},to:{x:0,y:0}}}}get renderVersion(){return this.data.version}get position(){return this.data.position}get path(){var e;return((e=this.currentLine)==null?void 0:e.path)??""}calcDistance(e){var n;return((n=this.currentLine)==null?void 0:n.calcDistance(e))??Number.MAX_SAFE_INTEGER}get bounds(){var e;return((e=this.currentLine)==null?void 0:e.bounds)??new Qn}update(){var r;this.syncContributions();const e=this.data.version;this.updatePosition();const n=this.data.version;e!==n&&(this.data.version=n,(r=this.currentLine)==null||r.update({fromPos:this.data.position.from,toPos:this.data.position.to}))}get lineType(){return this.entity.renderType??this.entity.linesManager.lineType}updatePosition(){var e,n;this.data.position.from=this.entity.from.getData(Km).getOutputPoint(this.entity.info.fromPort),this.data.position.to=this.entity.info.drawingTo??((n=(e=this.entity.to)==null?void 0:e.getData(Km))==null?void 0:n.getInputPoint(this.entity.info.toPort))??{x:this.data.position.from.x,y:this.data.position.from.y},this.data.version=[this.lineType,this.data.position.from.x,this.data.position.from.y,this.data.position.to.x,this.data.position.to.y].join("-")}get currentLine(){return this.data.contributions.get(this.lineType)}syncContributions(){this.entity.linesManager.contributionFactories.length!==this.data.contributions.size&&this.entity.linesManager.contributionFactories.forEach(e=>{this.registerContribution(e)})}registerContribution(e){if(this.data.contributions.has(e.type))return;const n=new e(this.entity);this.data.contributions.set(e.type,n)}};by.type="WorkflowLineRenderData";var Gnr=8,vp=10,Bat=class Ese extends jm{constructor(n){super(n),this._processing=!1,this._hasError=!1,this.info={from:""},this.document=n.document,this.linesManager=n.linesManager,this.initInfo({from:n.from,to:n.to,drawingTo:n.drawingTo,fromPort:n.fromPort,toPort:n.toPort}),n.drawingTo&&(this.isDrawing=!0)}static portInfoToLineId(n){const{from:r,to:i,fromPort:o,toPort:a}=n;return`${r}_${o||""}-${i||""}_${a||""}`}get from(){return this._from}get to(){return this._to}get isHidden(){return this.highlightColor===this.linesManager.lineColor.hidden}get inContainer(){const n=r=>!!(r!=null&&r.parent)&&r.parent.flowNodeType!=="root";return n(this.from)||n(this.to)}get processing(){return this._processing}set processing(n){this._processing!==n&&(this._processing=n,this.fireChange())}get hasError(){return this._hasError}set hasError(n){this._hasError!==n&&(this._hasError=n,this.fireChange()),this._node&&(this._node.dataset.hasError=this.hasError?"true":"false")}setToPort(n){if(!this.isDrawing)throw new Error("[setToPort] only support drawing line.");if(this.toPort!==n){if(n&&n.portType==="input"&&this.linesManager.canAddLine(this.fromPort,n,!0)){const{node:r,portID:i}=n;this._to=r,this.info.drawingTo=void 0,this.info.isDefaultLine=!1,this.info.to=r.id,this.info.toPort=i}else this._to=void 0,this.info.to=void 0,this.info.toPort="";this.fireChange()}}set drawingTo(n){const r=this.info.drawingTo;if(!n){this.info.drawingTo=void 0,this.fireChange();return}(!r||n.x!==r.x||n.y!==r.y)&&(this.info.to=void 0,this.info.isDefaultLine=!1,this.info.drawingTo=n,this.fireChange())}get drawingTo(){return this.info.drawingTo}get highlightColor(){return this.info.highlightColor||""}set highlightColor(n){this.info.highlightColor!==n&&(this.info.highlightColor=n,this.fireChange())}get bounds(){return this.getData(by).bounds}getHoverDist(n){return this.getData(by).calcDistance(n)}get fromPort(){return this.from.getData(Km).getPortEntityByKey("output",this.info.fromPort)}get toPort(){if(this.to)return this.to.getData(Km).getPortEntityByKey("input",this.info.toPort)}get position(){return this.getData(by).position}get reverse(){return this.linesManager.isReverseLine(this)}get hideArrow(){return this.linesManager.isHideArrowLine(this)}get flowing(){return this.linesManager.isFlowingLine(this)}get disabled(){return this.linesManager.isDisabledLine(this)}get vertical(){return this.linesManager.isVerticalLine(this)}get renderType(){return this.linesManager.setLineRenderType(this)}get className(){return this.linesManager.setLineClassName(this)??""}get color(){return this.linesManager.getLineColor(this)}initInfo(n){kqe(n,this.info)||(this.info=n,this._from=this.document.getNode(n.from),this._to=n.to?this.document.getNode(n.to):void 0,this.fireChange())}validate(){const{fromPort:n,toPort:r}=this;this.validateSelf(),n==null||n.validate(),r==null||r.validate()}validateSelf(){const{fromPort:n,toPort:r}=this;n&&(this.hasError=this.linesManager.isErrorLine(n,r))}is(n){return n instanceof Ese?this===n:Ese.portInfoToLineId(n)===this.id}canRemove(n){return this.linesManager.canRemove(this,n)}get node(){var n,r,i;return this._node?this._node:(this._node=Tr.createDivWithClass("gedit-flow-activity-line"),this._node.dataset.testid="sdk.workflow.canvas.line",this._node.dataset.lineId=this.id,this._node.dataset.fromNodeId=this.from.id,this._node.dataset.fromPortId=((n=this.fromPort)==null?void 0:n.id)??"",this._node.dataset.toNodeId=((r=this.to)==null?void 0:r.id)??"",this._node.dataset.toPortId=((i=this.toPort)==null?void 0:i.id)??"",this._node.dataset.hasError=this.hasError?"true":"false",this._node)}toJSON(){const n={sourceNodeID:this.info.from,targetNodeID:this.info.to,sourcePortID:this.info.fromPort,targetPortID:this.info.toPort};return n.sourcePortID||delete n.sourcePortID,n.targetPortID||delete n.targetPortID,n}fireRender(){this.fireChange()}};Bat.type=$at;var Qd=Bat,Wa=class{get onSelectionChanged(){return this.selectionService.onSelectionChanged}get selection(){return this.selectionService.selection}set selection(e){this.selectionService.selection=e}get activatedNode(){const{selectedNodes:e}=this;if(e.length===1)return e[0]}isSelected(e){return this.selectionService.selection.some(n=>n.id===e)}isActivated(e){var n;return((n=this.activatedNode)==null?void 0:n.id)===e}get selectedNodes(){return this.selectionService.selection.filter(e=>e instanceof Ap)}selectNode(e){this.selectionService.selection=[e]}toggleSelect(e){this.selectionService.selection.includes(e)?this.selectionService.selection=this.selectionService.selection.filter(n=>n!==e):this.selectionService.selection=this.selectionService.selection.concat(e)}select(e){this.selectionService.selection=[e]}clear(){this.selectionService.selection=[]}async selectNodeAndScrollToView(e,n){this.selectNodeAndFocus(e),await NS(30);const i={entities:[e]};if(n){const o=Qn.enlarge([e.getData(Ui).bounds]).pad(30,30),a=this.playground.config.getViewport(!1),s=vR.fixSize(o,a);i.zoom=s,i.scrollToCenter=!0,i.easing=!0}return this.playground.config.scrollToView(i)}selectNodeAndFocus(e){this.select(e),this.playground.node.focus()}};Mi([Ot(ug)],Wa.prototype,"selectionService",2);Mi([Ot(yu)],Wa.prototype,"playground",2);Wa=Mi([Pn()],Wa);var Rf=class{constructor(){this.onHoveredChangeEmitter=new Hn,this.onHoveredChange=this.onHoveredChangeEmitter.event,this.hoveredPos={x:0,y:0},this.hoveredKey=""}updateHoveredKey(e){this.hoveredKey!==e&&(this.hoveredKey=e,this.onHoveredChangeEmitter.fire(e))}clearHovered(){this.updateHoveredKey("")}isHovered(e){return e===this.hoveredKey}isSomeHovered(){return!!this.hoveredKey}get hoveredNode(){return this.entityManager.getEntityById(this.hoveredKey)}};Mi([Ot(Lo)],Rf.prototype,"entityManager",2);Rf=Mi([Pn()],Rf);function Wnr(e){return e.getData(ls)}function Ynr(e){const n=e.getData(ls);if(!(!n||!e.getNodeRegistry().formMeta))return n.toJSON()}function qnr(e,n){const r=e.getData(ls),i=e.getNodeRegistry(),{formMeta:o}=i;r&&o&&(r.createForm(o,n.data),r.onDataChange(()=>{e.document.fireContentChange({type:"NODE_DATA_CHANGE",toJSON:()=>r.toJSON(),entity:e})}))}var c$=Symbol("WorkflowDocumentOptions"),Kb={cursors:{grab:'url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC40ODczIDIuNjIzNzhDOS45MDczMSAyLjYyMzc4IDkuNDM3MTMgMy4wOTM5NiA5LjQzNzEzIDMuNjczOTZWNS4xNDM3NkM5LjM5NDI4IDQuNDAyNzQgOC43Nzk3OCAzLjgxNTA0IDguMDI4MDIgMy44MTUwNEM3LjI0ODQ4IDMuODE1MDQgNi42MTY1MyA0LjQ0Njk5IDYuNjE2NTMgNS4yMjY1M1YxMS44Mjg5TDUuNjc0MTggMTEuMDA0OUM1LjE1NDg3IDEwLjU1MDkgNC40MDk1IDEwLjQ2MzYgMy43OTkzOCAxMC43ODU1TDMuNjk2OTQgMTAuODM5NkMzLjA2MjE3IDExLjE3NDUgMi45MjI2IDEyLjAyMjggMy40MTY2MiAxMi41NDM0TDcuMzM5NTkgMTYuNjc3NVYxNy4zMjU5QzcuMzM5NTkgMTcuNzg2MiA3LjcxMjY5IDE4LjE1OTMgOC4xNzI5MiAxOC4xNTkzSDEzLjgwODRDMTQuMjY4NyAxOC4xNTkzIDE0LjY0MTcgMTcuNzg2MiAxNC42NDE3IDE3LjMyNTlWMTYuNzkzNUMxNS44MDk0IDE1LjY0ODUgMTYuNDY3MyAxNC4wODE5IDE2LjQ2NzMgMTIuNDQ2NVYxMS40OTY3TDE2LjQ2NzEgNi42MzY4NUMxNi40NjcxIDUuOTU2MyAxNS45MTU0IDUuNDA0NjEgMTUuMjM0OCA1LjQwNDYxQzE0LjU1NDMgNS40MDQ2MSAxNC4wMDI2IDUuOTU2MyAxNC4wMDI2IDYuNjM2ODVMMTQuMDAyMSA1LjA0NzI4QzE0LjAwMjEgNC4zNjY3MyAxMy40NTA0IDMuODE1MDQgMTIuNzY5OCAzLjgxNTA0QzEyLjA4OTMgMy44MTUwNCAxMS41Mzc2IDQuMzY2NzMgMTEuNTM3NiA1LjA0NzI4TDExLjUzNzUgMy42NzM5NUMxMS41Mzc1IDMuMDkzOTYgMTEuMDY3MyAyLjYyMzc4IDEwLjQ4NzMgMi42MjM3OFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNDg3NCAxLjM3NDAyQzExLjM2MTIgMS4zNzQwMiAxMi4xMjExIDEuODYxMTggMTIuNTEwNSAyLjU3ODY4QzEyLjU5NTggMi41Njk4MyAxMi42ODIzIDIuNTY1MjggMTIuNzcgMi41NjUyOEMxMy44Mjc4IDIuNTY1MjggMTQuNzMxMSAzLjIyNzAxIDE1LjA4ODUgNC4xNTkxMUMxNS4xMzcgNC4xNTYyOSAxNS4xODU4IDQuMTU0ODYgMTUuMjM1IDQuMTU0ODZDMTYuNjA1OSA0LjE1NDg2IDE3LjcxNzIgNS4yNjYxOSAxNy43MTcyIDYuNjM3MDlMMTcuNzE3NCAxMi40NDY3QzE3LjcxNzQgMTQuMjM1NSAxNy4wNjQ0IDE1Ljk1NTkgMTUuODkxOSAxNy4yOTA0VjE3LjMyNjJDMTUuODkxOSAxOC40NzY4IDE0Ljk1OTEgMTkuNDA5NSAxMy44MDg1IDE5LjQwOTVIOC4xNzMwNkM3LjAyMjQ3IDE5LjQwOTUgNi4wODk3MyAxOC40NzY4IDYuMDg5NzMgMTcuMzI2MlYxNy4xNzY0TDIuNTEwMDMgMTMuNDA0MUMxLjQ0NTk5IDEyLjI4MjggMS43NDY2IDEwLjQ1NTUgMy4xMTM3OSA5LjczNDI0TDMuMjE2MjQgOS42ODAxOUMzLjg5MTY4IDkuMzIzODMgNC42NjE4NSA5LjI1NDAxIDUuMzY2NjYgOS40NTE5OFY1LjIyNjc4QzUuMzY2NjYgMy43NTY4NyA2LjU1ODI2IDIuNTY1MjggOC4wMjgxNiAyLjU2NTI4QzguMTcyOTMgMi41NjUyOCA4LjMxNDk5IDIuNTc2ODQgOC40NTM0NyAyLjU5OTA3QzguODM5NDMgMS44NzA0MiA5LjYwNTQ2IDEuMzc0MDIgMTAuNDg3NCAxLjM3NDAyWk0xMi40NDc2IDMuODU3ODdWOS40NzY0NkMxMi40NDc2IDkuNzI4NTIgMTIuMjQzMyA5LjkzMjg1IDExLjk5MTMgOS45MzI4NUMxMS43MzkyIDkuOTMyODUgMTEuNTM0OSA5LjcyODUyIDExLjUzNDkgOS40NzY0NlYzLjc5NjU1QzExLjUzNDkgMy43Nzk1NiAxMS41MzU4IDMuNzYyNzcgMTEuNTM3NiAzLjc0NjI2VjMuNjc0MkMxMS41Mzc2IDMuNDMyODIgMTEuNDU2MiAzLjIxMDQ2IDExLjMxOTMgMy4wMzMwOUMxMS4xMjcyIDIuNzg0MjggMTAuODI2MSAyLjYyNDAyIDEwLjQ4NzQgMi42MjQwMkMxMC4xMjM4IDIuNjI0MDIgOS44MDMzMiAyLjgwODg2IDkuNjE0ODMgMy4wODk3QzkuNTAyNjkgMy4yNTY3OSA5LjQzNzI2IDMuNDU3ODUgOS40MzcyNiAzLjY3NDJWMy43ODU3M0M5LjQzNzM1IDMuNzg5MzMgOS40MzczOSAzLjc5Mjk0IDkuNDM3MzkgMy43OTY1NVY5LjkwMTdDOS40MzczOSAxMC4xNTM3IDkuMjMzMDYgMTAuMzU4MSA4Ljk4MTAxIDEwLjM1ODFDOC43Mjg5NSAxMC4zNTgxIDguNTI0NjIgMTAuMTUzNyA4LjUyNDYyIDkuOTAxN1YzLjkwNTA3QzguNDE3NzMgMy44NjQ5IDguMzA0NjggMy44MzczMiA4LjE4NzI2IDMuODI0MTVDOC4xMzUwNCAzLjgxODI5IDguMDgxOTUgMy44MTUyOCA4LjAyODE2IDMuODE1MjhDNy4yNDg2MSAzLjgxNTI4IDYuNjE2NjYgNC40NDcyMyA2LjYxNjY2IDUuMjI2NzhWMTEuODI5Mkw1LjY3NDMxIDExLjAwNTJDNS41Nzg2OCAxMC45MjE2IDUuNDc1MzcgMTAuODUwNCA1LjM2NjY2IDEwLjc5MTlDNC44ODUwNiAxMC41MzI5IDQuMjk3MjggMTAuNTIzMSAzLjc5OTUyIDEwLjc4NThMMy42OTcwNyAxMC44Mzk4QzMuMDYyMzEgMTEuMTc0NyAyLjkyMjczIDEyLjAyMzEgMy40MTY3NSAxMi41NDM3TDcuMzM5NzMgMTYuNjc3N1YxNy4zMjYyQzcuMzM5NzMgMTcuNzg2NCA3LjcxMjgyIDE4LjE1OTUgOC4xNzMwNiAxOC4xNTk1SDEzLjgwODVDMTQuMjY4OCAxOC4xNTk1IDE0LjY0MTkgMTcuNzg2NCAxNC42NDE5IDE3LjMyNjJWMTYuNzkzOEMxNS43Mzc5IDE1LjcxOSAxNi4zODQ3IDE0LjI3MjggMTYuNDYgMTIuNzQ3QzE2LjQ2NDEgMTIuNjY0MSAxNi40NjY1IDEyLjU4MDkgMTYuNDY3MiAxMi40OTc1TDE2LjQ2NzQgMTIuNDQ2N0wxNi40NjcyIDYuNjM3MDlDMTYuNDY3MiA1Ljk2MjMgMTUuOTI0OCA1LjQxNDE5IDE1LjI1MjIgNS40MDQ5N0wxNS4yMzUgNS40MDQ4NkMxNS4xMjQ2IDUuNDA0ODYgMTUuMDE3NyA1LjQxOTM2IDE0LjkxNTkgNS40NDY1NlY5LjYwMjI2QzE0LjkxNTkgOS44NTQzMSAxNC43MTE2IDEwLjA1ODYgMTQuNDU5NSAxMC4wNTg2QzE0LjIwNzUgMTAuMDU4NiAxNC4wMDMxIDkuODU0MzEgMTQuMDAzMSA5LjYwMjI2VjYuNjA1MTRDMTQuMDAyOSA2LjYxNTc2IDE0LjAwMjcgNi42MjY0MSAxNC4wMDI3IDYuNjM3MDlWOS4yNzcwNUwxNC4wMDIyIDUuMDQ3NTJDMTQuMDAyMiA0Ljg2OTEzIDEzLjk2NDMgNC42OTk2IDEzLjg5NjEgNC41NDY1M0MxMy43MDY0IDQuMTIwNzIgMTMuMjgyMiAzLjgyMjM1IDEyLjc4NzYgMy44MTU0MUwxMi43NyAzLjgxNTI4QzEyLjY1ODQgMy44MTUyOCAxMi41NTA0IDMuODMwMSAxMi40NDc2IDMuODU3ODdaIiBmaWxsPSIjMUQxQzIzIi8+Cjwvc3ZnPg=="), auto',grabbing:'url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjYxODE3IDUuNTk4NzVDNi42MTgxNyA0LjgxOTIgNy4yNTAxMiA0LjE4NzI2IDguMDI5NjcgNC4xODcyNkM4Ljc3ODczIDQuMTg3MjYgOS4zOTE1MiA0Ljc3MDc1IDkuNDM4MjkgNS41MDgwMUM5LjQ1OTkyIDQuOTQ3MSA5LjkyMTQ3IDQuNDk5MDIgMTAuNDg3NyA0LjQ5OTAyQzExLjA2NzcgNC40OTkwMiAxMS41Mzc4IDQuOTY5MiAxMS41Mzc4IDUuNTQ5MTlWOC43NjI0NkwxMS41Mzc5IDYuNzExNUMxMS41Mzc5IDYuMDMwOTUgMTIuMDg5NiA1LjQ3OTI2IDEyLjc3MDIgNS40NzkyNkMxMy40NTA3IDUuNDc5MjYgMTQuMDAyNCA2LjAzMDk1IDE0LjAwMjQgNi43MTE1TDE0LjAwMjQgOC43NjI0NkwxNC4wMDI5IDguMDE5ODNDMTQuMDAyOSA3LjMzOTI5IDE0LjU1NDYgNi43ODc1OSAxNS4yMzUyIDYuNzg3NTlDMTUuOTE1NyA2Ljc4NzU5IDE2LjQ2NzQgNy4zMzkyOCAxNi40Njc0IDguMDE5ODNWMTEuNDk3TDE2LjQ2NzUgMTIuNDQ2N0MxNi40Njc1IDE0LjA4MjEgMTUuODA5NiAxNS42NDg3IDE0LjY0MiAxNi43OTM4VjE3LjMyNjJDMTQuNjQyIDE3Ljc4NjQgMTQuMjY4OSAxOC4xNTk1IDEzLjgwODcgMTguMTU5NUg4LjE3MzE3QzcuNzEyOTMgMTguMTU5NSA3LjMzOTg0IDE3Ljc4NjQgNy4zMzk4NCAxNy4zMjYyVjE1Ljk0MjRMNS4zNDU2MiAxNC43NTM0QzQuNTg5MjQgMTQuMzAyNCA0LjEyNTkxIDEzLjQ4NjcgNC4xMjU4OSAxMi42MDYxTDQuMTI1ODMgOS4yODM4M0M0LjEyNTgyIDguOTU0MjcgNC4zMjAwMyA4LjY1NTY2IDQuNjIxMjkgOC41MjIwNUw2LjYxODE3IDcuNjM2MzRWNS41OTg3NVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNDg3OCAzLjI0OTAyQzExLjI3OTYgMy4yNDkwMiAxMS45Nzc4IDMuNjQ5MDIgMTIuMzkxNyA0LjI1Nzk2QzEyLjUxNTEgNC4yMzkwNiAxMi42NDE2IDQuMjI5MjYgMTIuNzcwMyA0LjIyOTI2QzEzLjcyMjQgNC4yMjkyNiAxNC41NDkzIDQuNzY1MzEgMTQuOTY1NyA1LjU1MjA3QzE1LjA1NDMgNS41NDI1IDE1LjE0NDIgNS41Mzc1OSAxNS4yMzUzIDUuNTM3NTlDMTYuNjA2MiA1LjUzNzU5IDE3LjcxNzYgNi42NDg5MyAxNy43MTc2IDguMDE5ODNMMTcuNzE3NyAxMi40NDY3QzE3LjcxNzcgMTQuMjM1NSAxNy4wNjQ3IDE1Ljk1NTkgMTUuODkyMSAxNy4yOTA0VjE3LjMyNjJDMTUuODkyMSAxOC40NzY4IDE0Ljk1OTQgMTkuNDA5NSAxMy44MDg4IDE5LjQwOTVIOC4xNzMzMkM3LjAyMjczIDE5LjQwOTUgNi4wODk5OCAxOC40NzY4IDYuMDg5OTggMTcuMzI2MlYxNi42NTI0TDQuNzA1NjMgMTUuODI3QzMuNTcxMDYgMTUuMTUwNSAyLjg3NjA3IDEzLjkyNzEgMi44NzYwNCAxMi42MDYxTDIuODc1OTggOS4yODM4NUMyLjg3NTk2IDguNDU5OTYgMy4zNjE0OSA3LjcxMzQ1IDQuMTE0NjIgNy4zNzk0TDUuMzY4MzIgNi44MjMzM1Y1LjU5ODc1QzUuMzY4MzIgNC4xMjg4NSA2LjU1OTkxIDIuOTM3MjYgOC4wMjk4MiAyLjkzNzI2QzguNjA4MzEgMi45MzcyNiA5LjE0MzU1IDMuMTIxNyA5LjU4MDA1IDMuNDM1MDVDOS44NTg1MyAzLjMxNTMyIDEwLjE2NTQgMy4yNDkwMiAxMC40ODc4IDMuMjQ5MDJaTTEyLjQ0NzkgNS41MjE4NlY5LjQ3NTU3QzEyLjQ0NzkgOS43Mjc2MiAxMi4yNDM2IDkuOTMxOTUgMTEuOTkxNiA5LjkzMTk1QzExLjc1NjggOS45MzE5NSAxMS41NjM0IDkuNzU0NjUgMTEuNTM4IDkuNTI2NjNDMTEuNTM2MSA5LjUwOTg3IDExLjUzNTIgOS40OTI4MyAxMS41MzUyIDkuNDc1NTdWNS40NzE1OEMxMS41MTU0IDUuMjAwODMgMTEuMzkzIDQuOTU4NTggMTEuMjA2NiA0Ljc4MzU4QzExLjAxODggNC42MDcxMSAxMC43NjU5IDQuNDk5MDIgMTAuNDg3OCA0LjQ5OTAyQzEwLjQ3NjYgNC40OTkwMiAxMC40NjU0IDQuNDk5MTkgMTAuNDU0MiA0LjQ5OTU0QzkuOTAzNDcgNC41MTY4NCA5LjQ1OTY0IDQuOTU4MjQgOS40Mzg0NCA1LjUwODAxQzkuNDM4MiA1LjUwNDMgOS40Mzc5NSA1LjUwMDU4IDkuNDM3NjkgNS40OTY4OFY5LjkwMjQzQzkuNDM3NjkgMTAuMTU0NSA5LjIzMzM2IDEwLjM1ODggOC45ODEzMSAxMC4zNTg4QzguNzI5MjUgMTAuMzU4OCA4LjUyNDkyIDEwLjE1NDUgOC41MjQ5MiA5LjkwMjQzVjQuMjc2NTNDOC4zNzA4NiA0LjIxODgyIDguMjA0MDIgNC4xODcyNiA4LjAyOTgyIDQuMTg3MjZDNy4yNTAyNyA0LjE4NzI2IDYuNjE4MzIgNC44MTkyIDYuNjE4MzIgNS41OTg3NUw2LjYxODI3IDkuOTc1OTlDNi42MTgyNyAxMC4yMjggNi40MTM5NCAxMC40MzI0IDYuMTYxODkgMTAuNDMyNEM1LjkwOTgzIDEwLjQzMjQgNS43MDU1IDEwLjIyOCA1LjcwNTUgOS45NzU5OVY4LjA0MTIyTDQuNjIxNDQgOC41MjIwNUM0LjMyMDE4IDguNjU1NjYgNC4xMjU5NyA4Ljk1NDI3IDQuMTI1OTggOS4yODM4M0w0LjEyNjA0IDEyLjYwNjFDNC4xMjYwNiAxMy40ODY3IDQuNTg5MzkgMTQuMzAyNCA1LjM0NTc2IDE0Ljc1MzRMNy4zMzk5OCAxNS45NDI0VjE3LjMyNjJDNy4zMzk5OCAxNy43ODY0IDcuNzEzMDggMTguMTU5NSA4LjE3MzMyIDE4LjE1OTVIMTMuODA4OEMxNC4yNjkgMTguMTU5NSAxNC42NDIxIDE3Ljc4NjQgMTQuNjQyMSAxNy4zMjYyVjE2Ljc5MzhDMTUuNzM4MSAxNS43MTkgMTYuMzg1IDE0LjI3MjggMTYuNDYwMyAxMi43NDdDMTYuNDY0NiAxMi42NiAxNi40NjcgMTIuNTcyOCAxNi40Njc2IDEyLjQ4NTRMMTYuNDY3NyAxMi40NDY3TDE2LjQ2NzYgOC4wMTk4M0MxNi40Njc2IDcuMzQ1MDQgMTUuOTI1MiA2Ljc5NjkzIDE1LjI1MjUgNi43ODc3MUwxNS4yMzUzIDYuNzg3NTlDMTUuMTI1IDYuNzg3NTkgMTUuMDE4IDYuODAyMSAxNC45MTYyIDYuODI5MzFWOS42MDEzNkMxNC45MTYyIDkuODUzNDIgMTQuNzExOSAxMC4wNTc3IDE0LjQ1OTggMTAuMDU3N0MxNC4yMDc4IDEwLjA1NzcgMTQuMDAzNCA5Ljg1MzQxIDE0LjAwMzQgOS42MDEzNlY3Ljk4OTg1QzE0LjAwMzIgNy45OTk4MiAxNC4wMDMxIDguMDA5ODEgMTQuMDAzMSA4LjAxOTgzTDE0LjAwMzQgOS42MDEzNkwxNC4wMDI1IDYuNzExNUMxNC4wMDI1IDYuNDQ5NzQgMTMuOTIwOSA2LjIwNzA1IDEzLjc4MTggNi4wMDc0OEMxMy41NjIgNS42OTI0MiAxMy4xOTg5IDUuNDg0ODMgMTIuNzg3IDUuNDc5MzdMMTIuNzcwMyA1LjQ3OTI2QzEyLjY1ODggNS40NzkyNiAxMi41NTA3IDUuNDk0MDggMTIuNDQ3OSA1LjUyMTg2WiIgZmlsbD0iIzFEMUMyMyIvPgo8L3N2Zz4="), auto'},fromNodeJSON(e,n){qnr(e,n)},toNodeJSON(e){var c,u;const n=(c=e.getData(Aw))==null?void 0:c.getError();if(n)throw n;const r=e.getData(Ui);let i=Ynr(e);const o={},a=e.getNodeMeta(),s=(u=a.subCanvas)==null?void 0:u.call(a,e);if((s==null?void 0:s.isCanvas)===!1){const d=s.canvasNode.getData(hr),{x:f,y:p}=d.transform.position;o.canvasPosition={x:f,y:p}}return{id:e.id,type:e.flowNodeType,meta:{position:{x:r.position.x,y:r.position.y},...o},data:i}}},Ql=class{constructor(){this.toDispose=new Ei,this._lineType=0,this.onAvailableLinesChangeEmitter=new Hn,this.onForceUpdateEmitter=new Hn,this.onAvailableLinesChange=this.onAvailableLinesChangeEmitter.event,this.onForceUpdate=this.onForceUpdateEmitter.event,this.contributionFactories=[],this.isDrawing=!1}init(e){this.document=e}forceUpdate(){this.onForceUpdateEmitter.fire()}get lineType(){return this._lineType}get lineColor(){const e={default:"#4d53e8",error:"red",hidden:"transparent",drawing:"#5DD6E3",hovered:"#37d0ff",selected:"#37d0ff"};return this.options.lineColor&&Object.assign(e,this.options.lineColor),e}switchLineType(e){return e===void 0&&(this._lineType===0?e=1:e=0),e!==this._lineType&&(this._lineType=e,this.getAllLines().forEach(n=>{n.getData(by).update()}),window.requestAnimationFrame(()=>{this.entityManager.fireEntityChanged(Qd.type)})),this._lineType}getAllLines(){return this.entityManager.getEntities(Qd)}hasLine(e){return!!this.entityManager.getEntityById(Qd.portInfoToLineId(e))}getLine(e){return this.entityManager.getEntityById(Qd.portInfoToLineId(e))}replaceLine(e,n){const r=this.getLine(e);return r&&r.dispose(),this.createLine(n)}createLine(e){var f;const{from:n,to:r,drawingTo:i,fromPort:o,toPort:a}=e,s=!!(n&&r),l=e.key||Qd.portInfoToLineId(e);let c=this.entityManager.getEntityById(l);if(c)return c.highlightColor="",c.validate(),c;const u=(f=this.entityManager.getEntityById(n))==null?void 0:f.getData(Em),d=r?this.entityManager.getEntityById(r).getData(Em):void 0;if(u)return this.isDrawing=!!i,c=this.entityManager.createEntity(Qd,{id:l,document:this.document,linesManager:this,from:n,fromPort:o,toPort:a,to:r,drawingTo:i}),this.registerData(c),u.addLine(c),d==null||d.addLine(c),c.onDispose(()=>{i&&(this.isDrawing=!1),u.removeLine(c),d==null||d.removeLine(c),c.validate()}),c.toDispose.push(ao.create(()=>{s&&this.onAvailableLinesChangeEmitter.fire({type:"DELETE_LINE",toJSON:()=>c.toJSON(),entity:c})})),s&&this.onAvailableLinesChangeEmitter.fire({type:"ADD_LINE",toJSON:()=>c.toJSON(),entity:c}),c.validate(),c}getCloseInLineFromMousePos(e,n=Gnr){let r,i;return this.getAllLines().forEach(o=>{const a=o.getHoverDist(e);a<=n&&(!i||i>=a)&&(i=a,r=o)}),r}dispose(){this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}isErrorLine(e,n){return this.options.isErrorLine?this.options.isErrorLine(e,n,this):!1}isReverseLine(e){return this.options.isReverseLine?this.options.isReverseLine(e):!1}isHideArrowLine(e){return this.options.isHideArrowLine?this.options.isHideArrowLine(e):!1}isFlowingLine(e){return this.options.isFlowingLine?this.options.isFlowingLine(e):!1}isDisabledLine(e){return this.options.isDisabledLine?this.options.isDisabledLine(e):!1}isVerticalLine(e){return this.options.isVerticalLine?this.options.isVerticalLine(e):!1}setLineRenderType(e){if(this.options.setLineRenderType)return this.options.setLineRenderType(e)}setLineClassName(e){if(this.options.setLineClassName)return this.options.setLineClassName(e)}getLineColor(e){return e.isHidden?this.lineColor.hidden:e.hasError?this.lineColor.error:e.highlightColor?e.highlightColor:e.drawingTo?this.lineColor.drawing:this.hoverService.isHovered(e.id)?this.lineColor.hovered:this.selectService.isSelected(e.id)?this.lineColor.selected:this.lineColor.default}canAddLine(e,n,r){return e===n||e.node===n.node||e.portType!=="output"||n.portType!=="input"||n.disabled?!1:this.options.canAddLine?this.options.canAddLine(e,n,this,r):e.node!==n.node}toJSON(){return this.getAllLines().filter(e=>!e.isDrawing).map(e=>e.toJSON())}getPortById(e){return this.entityManager.getEntityById(e)}canRemove(e,n,r){return!(this.options&&this.options.canDeleteLine&&!this.options.canDeleteLine(e,n,r))}canReset(e,n,r){return!(this.options&&this.options.canResetLine&&!this.options.canResetLine(e,n,r,this))}getPortFromMousePos(e){const r=this.entityManager.getEntities(LC).filter(i=>i.node.flowNodeType!=="root").find(i=>i.isHovered(e.x,e.y));if(r){const i=this.document.getAllNodes().slice().reverse().filter(o=>{var a,s;return((s=(a=r.node)==null?void 0:a.parent)==null?void 0:s.id)!==o.id}).find(o=>o.getData(Ui).contains(e.x,e.y));if(i&&i!==r.node)return}return r}getNodeFromMousePos(e){var a,s;const n=this.document.getAllNodes().sort((l,c)=>this.getNodeIndex(l)-this.getNodeIndex(c)),r=[],{selection:i}=this.selectService,o=((s=(a=this.entityManager.getEntity(da))==null?void 0:a.config)==null?void 0:s.zoom)||1;if(n.forEach(l=>{const{bounds:c}=l.getData(hr);c.clone().pad(4/o).contains(e.x,e.y)&&r.push(l)}),i!=null&&i.length){const l=r.filter(c=>i.some(u=>c.id===u.id));if(l!=null&&l.length)return n$e(l)}return n$e(r)}registerContribution(e){return this.contributionFactories.push(e),this}registerData(e){e.addData(by)}getNodeIndex(e){return e.getData(ra).stackIndex}};Mi([Ot(Rf)],Ql.prototype,"hoverService",2);Mi([Ot(Wa)],Ql.prototype,"selectService",2);Mi([Ot(Lo)],Ql.prototype,"entityManager",2);Mi([Ot(c$)],Ql.prototype,"options",2);Ql=Mi([Pn()],Ql);var jat="free-layout",RR=class{constructor(){this.name=jat}get document(){return this.documentProvider()}update(){var e;(e=this.document.root.getData(hr))!=null&&e.localDirty&&this.document.root.clearMemoGlobal()}syncTransform(e){const n=e.getData(hr);if(!n.localDirty||(e.clearMemoGlobal(),e.clearMemoLocal(),n.transform.update({size:n.data.size}),!e.parent))return;e.parent.clearMemoGlobal(),e.parent.clearMemoLocal(),e.parent.getData(hr).transform.fireChange()}updateAffectedTransform(e){if(!e.transform.localDirty)return;const r=this.getAllParents(e);[...this.getAllBlocks(e).reverse(),...r].forEach(a=>{this.fireChange(a)})}getPadding(e){const{padding:n}=e.getNodeMeta(),r=e.getData(hr);return n?typeof n=="function"?n(r):n:nse.empty()}getInitScroll(e){const n=Qn.enlarge(this.document.getAllNodes().map(o=>o.getData(Ui).bounds)).pad(30,30),r=this.playgroundConfig.getViewport(!1),i=vR.fixSize(n,r);return{scrollX:(n.x+n.width/2)*i-this.playgroundConfig.config.width/2,scrollY:(n.y+n.height/2)*i-this.playgroundConfig.config.height/2}}getDefaultInputPoint(e){return e.getData(Ui).bounds.leftCenter}getDefaultOutputPoint(e){return e.getData(Ui).bounds.rightCenter}getDefaultNodeOrigin(){return{x:.5,y:0}}getAllParents(e){const n=[];let r=e.parent;for(;r;)n.push(r),r=r.parent;return n}getAllBlocks(e){return e.blocks.reduce((n,r)=>[...n,...this.getAllBlocks(r)],[e])}fireChange(e){const n=e==null?void 0:e.transform;!e||!(n!=null&&n.localDirty)||(e.clearMemoGlobal(),e.clearMemoLocal(),n.transform.fireChange())}};Mi([Ot(da)],RR.prototype,"playgroundConfig",2);Mi([Ot(jV)],RR.prototype,"documentProvider",2);RR=Mi([Pn()],RR);var jJ=dXn("1234567890",5),Knr=Symbol("WorkflowDocumentProvider"),ei=class extends jo{constructor(){super(...arguments),this._onContentChangeEmitter=new Hn,this.onLoadedEmitter=new Hn,this.onContentChange=this._onContentChangeEmitter.event,this._onReloadEmitter=new Hn,this.onReload=this._onReloadEmitter.event,this.disposed=!1,this.onLoaded=this.onLoadedEmitter.event,this._loading=!1,this.options={}}get loading(){return this._loading}async fitView(e){return WV(this,this.playgroundConfig,e).then(()=>{this.linesManager.forceUpdate()})}init(){super.init(),this.currentLayoutKey=this.options.defaultLayout||jat,this.linesManager.init(this),this.playgroundConfig.getCursors=()=>this.options.cursors,this.linesManager.onAvailableLinesChange(e=>this.fireContentChange(e)),this.playgroundConfig.onReadonlyOrDisabledChange(({readonly:e})=>{this.nodeEngineContext&&(this.nodeEngineContext.readonly=e)})}async load(){this._loading=!0,await super.load(),this._loading=!1,this.onLoadedEmitter.fire()}async reload(e,n=0){this._loading=!0,this.clear(),this.fromJSON(e),await NS(n),this._loading=!1,this._onReloadEmitter.fire(this)}fromJSON(e,n=!0){const r={nodes:e.nodes??[],edges:e.edges??[]};this.entityManager.changeEntityLocked=!0,this.renderJSON(r),this.entityManager.changeEntityLocked=!1,this.transformer.loading=!1,n&&this.fireRender()}clear(){this.getAllNodes().map(e=>e.dispose()),this.linesManager.getAllLines().map(e=>e.dispose()),this.getAllPorts().map(e=>e.dispose()),this.selectServices.clear()}createWorkflowNode(e,n=!1,r){var v;const i=this.getNode(e.id),o=this.getNode(r??this.root.id)??this.root,a=this.addNode({...e,parent:o},void 0,!0),s=a.getNodeRegistry(),{formMeta:l}=s,c=a.getNodeMeta(),u=Wnr(a),d=a.getData(hr),f=this.layout;d.onDataChange(()=>{f.syncTransform(a)});let{position:p}=c;p||(p=this.getNodeDefaultPosition(e.type)),a.getData(Ui).update({position:p}),l&&u&&!u.formModel.initialized&&(u.createForm(l,e.data),u.onDataChange(()=>{this.fireContentChange({type:"NODE_DATA_CHANGE",toJSON:()=>u.toJSON(),entity:a})}));const h=a.getData(qb);h.onDataChange(()=>{this.fireContentChange({type:"MOVE_NODE",toJSON:()=>h.toJSON(),entity:a})});const g=this.getNodeSubCanvas(a);return!i&&!(g!=null&&g.isCanvas)&&(this.fireContentChange({type:"ADD_NODE",entity:a,toJSON:()=>this.toNodeJSON(a)}),a.toDispose.push(ao.create(()=>{this.fireContentChange({type:"DELETE_NODE",entity:a,toJSON:()=>this.toNodeJSON(a)})})),a.toDispose.push(ao.create(()=>{if(!a.parent||a.parent.flowNodeType===Fo.ROOT)return;const y=a.parent.getData(hr);setTimeout(()=>{y.fireChange()},0)}))),e.blocks&&this.renderJSON({nodes:e.blocks,edges:e.edges??[]},{parent:a,isClone:n}),g&&(g.canvasNode.getData(Ui).update({position:(v=g.parentNode.getNodeMeta())==null?void 0:v.canvasPosition}),g.parentNode.onDispose(()=>{g.canvasNode.dispose()}),g.canvasNode.onDispose(()=>{g.parentNode.dispose()})),this.onNodeCreateEmitter.fire({node:a,data:e}),a}get layout(){const e=this.layouts.find(n=>n.name==this.currentLayoutKey);if(!e)throw new Error(`Unknown flow layout: ${this.currentLayoutKey}`);return e}getNodeDefaultPosition(e){const{size:n}=this.getNodeRegistry(e).meta||{};let r=this.playgroundConfig.getViewport(!0).center;return n&&(r={x:r.x,y:r.y-n.height/2}),znr(this,r)}createWorkflowNodeByType(e,n,r={},i){let o=r.id;if(o===void 0)do o=`1${jJ()}`;while(this.entityManager.getEntityById(o));else if(this.entityManager.getEntityById(o))throw new Error(`[WorkflowDocument.createWorkflowNodeByType] Node Id "${o}" duplicated.`);return this.createWorkflowNode({...r,id:o,type:e,meta:{position:n,...r==null?void 0:r.meta},data:r==null?void 0:r.data,blocks:r==null?void 0:r.blocks,edges:r==null?void 0:r.edges},!1,i)}getAllNodes(){return this.entityManager.getEntities(Ap).filter(e=>e.id!==Fo.ROOT)}getAllPorts(){return this.entityManager.getEntities(LC).filter(e=>e.node.id!==Fo.ROOT)}getAssociatedNodes(){const e=this.getAllNodes(),n=this.linesManager.getAllLines().filter(c=>c.from&&c.to).map(c=>({from:c.from.id,to:c.to.id})),r=e.find(c=>c.isStart).id,i=e.find(c=>c.isNodeEnd).id,o=e.filter(c=>{var u;return(u=c.parent)==null?void 0:u.getNodeMeta().isContainer}).map(c=>c.id),a=new Set([i,...o]),s=c=>{if(a.has(c))return;a.add(c),n.reduce((d,{from:f,to:p})=>(f===c&&!a.has(p)&&d.push(p),d),[]).forEach(s)};return s(r),e.filter(c=>a.has(c.id))}fireRender(){this.entityManager.fireEntityChanged(Ap.type),this.entityManager.fireEntityChanged(Qd.type),this.entityManager.fireEntityChanged(LC.type)}fireContentChange(e){this._loading||this.disposed||this.entityManager.changeEntityLocked||this._onContentChangeEmitter.fire(e)}toNodeJSON(e){const n=this.getNodeSubCanvas(e);if((n==null?void 0:n.isCanvas)===!0)return this.toNodeJSON(n.parentNode);const r=this.toNodeJSONFromOptions(e),i=this.getNodeChildren(e),o=i.map(l=>this.toNodeJSON(l)),a=new Map;i.forEach(l=>{const c=l.getData(Em);[...c.inputLines,...c.outputLines].filter(Boolean).forEach(u=>{const d=this.toLineJSON(u);!d||a.has(u.id)||a.set(u.id,d)})});const s=Array.from(a.values());return o.length>0&&(r.blocks=o),s.length>0&&(r.edges=s),r}toNodeJSONFromOptions(e){return this.options.toNodeJSON?this.options.toNodeJSON(e):Kb.toNodeJSON(e)}copyNode(e,n,r,i){var a;let o=this.toNodeJSON(e);return r&&(o=r(o)),i=i||{x:o.meta.position.x+30,y:o.meta.position.y+30},this.createWorkflowNode({id:n||`1${jJ()}`,type:e.flowNodeType,meta:{...o.meta,position:i},data:o.data,blocks:o.blocks,edges:o.edges},!0,(a=e.parent)==null?void 0:a.id)}copyNodeFromJSON(e,n,r,i,o){return i=i||{x:n.meta.position.x+30,y:n.meta.position.y+30},this.createWorkflowNode({id:r||`1${jJ()}`,type:e,meta:{...n.meta,position:i},data:n.data,blocks:n.blocks,edges:n.edges},!0,o)}canRemove(e,n){return!(e.getNodeMeta().deleteDisable||this.options.canDeleteNode&&!this.options.canDeleteNode(e,n))}isErrorPort(e){return typeof this.options.isErrorPort=="function"?this.options.isErrorPort(e):!1}toJSON(){const e=this.toNodeJSON(this.root);return{nodes:e.blocks??[],edges:e.edges??[]}}dispose(){this.disposed||(super.dispose(),this.disposed=!0,this._onReloadEmitter.dispose())}renderJSON(e,n){var l;const{parent:r=this.root,isClone:i=!1}=n??{},o=((l=this.getNodeSubCanvas(r))==null?void 0:l.canvasNode.id)??r.id,a=e.nodes.map(c=>this.createWorkflowNode(c,i,o)),s=e.edges.map(c=>this.createWorkflowLine(c,o)).filter(Boolean);return{nodes:a,edges:s}}getNodeSubCanvas(e){var i;if(!e)return;const n=e.getNodeMeta();return(i=n.subCanvas)==null?void 0:i.call(n,e)}getNodeChildren(e){if(!e)return[];const n=this.getNodeSubCanvas(e);return(n?n.canvasNode.collapsedChildren:e.collapsedChildren).filter(o=>{var s,l;const a=o.getNodeMeta();return!((l=(s=a.subCanvas)==null?void 0:s.call(a,e))!=null&&l.isCanvas)}).filter(Boolean)}toLineJSON(e){const n=e.toJSON();if(!e.from||!e.info.from||!e.fromPort||!e.to||!e.info.to||!e.toPort)return;const r=this.getNodeSubCanvas(e.from),i=this.getNodeSubCanvas(e.to);if(!(r&&!r.isCanvas&&i&&i.isCanvas))return e.from===e.to.parent&&r?{...n,sourceNodeID:r.parentNode.id}:e.to===e.from.parent&&i?{...n,targetNodeID:i.parentNode.id}:n}createWorkflowLine(e,n){const r=this.getNode(e.sourceNodeID),i=this.getNode(e.targetNodeID);if(!r||!i)return;const o={from:e.sourceNodeID,fromPort:e.sourcePortID,to:e.targetNodeID,toPort:e.targetPortID};if(!n)return this.linesManager.createLine(o);const a=this.getNode(n);if(!a)return this.linesManager.createLine(o);const s=this.getNodeSubCanvas(a);return s?o.from===s.parentNode.id?this.linesManager.createLine({...o,from:s.canvasNode.id}):o.to===s.parentNode.id?this.linesManager.createLine({...o,to:s.canvasNode.id}):this.linesManager.createLine(o):this.linesManager.createLine(o)}};Mi([Ot(Ql)],ei.prototype,"linesManager",2);Mi([Ot(da)],ei.prototype,"playgroundConfig",2);Mi([oN()],ei.prototype,"playgroundContext",2);Mi([Ot(c$)],ei.prototype,"options",2);Mi([Ot(Tf),ss()],ei.prototype,"nodeEngineContext",2);Mi([Ot(Wa)],ei.prototype,"selectServices",2);Mi([Zc()],ei.prototype,"init",1);ei=Mi([Pn()],ei);var Xnr=100,r$e=5;function i$e(e,n,r){return!r||e>Xnr||Math.abs(n.endPos.x-n.startPos.x)>=r$e||Math.abs(n.endPos.y-n.startPos.y)>=r$e}var Ya=class{constructor(){this._onDragLineEventEmitter=new Hn,this.onDragLineEventChange=this._onDragLineEventEmitter.event,this.isDragging=!1,this._nodesDragEmitter=new Hn,this.onNodesDrag=this._nodesDragEmitter.event,this._toDispose=new Ei,this._droppableTransforms=[],this.posAdjusters=new Set,this._onDragLineEndCallbacks=new Map}init(){this._toDispose.pushAll([this._onDragLineEventEmitter,this._nodesDragEmitter]),this.options.onDragLineEnd&&this._toDispose.push(this.onDragLineEnd(this.options.onDragLineEnd))}dispose(){this._toDispose.dispose()}async startDragSelectedNodes(e){var c;let{selectedNodes:n}=this.selectService;if(n.length===0||this.playgroundConfig.readonly||this.playgroundConfig.disabled||this.isDragging)return Promise.resolve(!1);this.isDragging=!0;const r=this.childrenOfContainer(n);r&&r.flowNodeType!==Fo.ROOT&&(n=[r]);let i=this.getNodesPosition(n),o=n.map(u=>{const d=u.getData(Ui);return{x:d.position.x,y:d.position.y}}),a=!1;const s=Date.now(),l=new Sm({onDragStart:u=>{this._nodesDragEmitter.fire({type:"onDragStart",nodes:n,startPositions:o,dragEvent:u,triggerEvent:e,dragger:l})},onDrag:u=>{!a&&i$e(Date.now()-s,u)&&(a=!0);const d=this.getDragPosOffset({event:u,selectedNodes:n,startPosition:i}),f=[];n.forEach((p,h)=>{const g=p.getData(Ui),v=o[h],y={x:v.x+d.x,y:v.y+d.y};g.update({position:y}),this.document.layout.updateAffectedTransform(p),f.push(y)}),this._nodesDragEmitter.fire({type:"onDragging",nodes:n,startPositions:o,positions:f,dragEvent:u,triggerEvent:e,dragger:l})},onDragEnd:u=>{this.isDragging=!1,this._nodesDragEmitter.fire({type:"onDragEnd",nodes:n,startPositions:o,dragEvent:u,triggerEvent:e,dragger:l})}});return(c=l.start(e.clientX,e.clientY,this.playgroundConfig))==null?void 0:c.then(()=>a)}async dropCard(e,n,r,i){const o=this.playgroundConfig.getPosFromMouseEvent(n);if(!this.playgroundConfig.getViewport().contains(o.x,o.y))return;const a=this.adjustSubNodePosition(e,i,o);return await this.document.createWorkflowNodeByType(e,a,r,i==null?void 0:i.id)}async startDragCard(e,n,r,i){let o,a={x:0,y:0};const s=new pj;return await new Sm({onDragStart:c=>{const u=n.currentTarget;o=i?i(c):u.cloneNode(!0);const d=u.getBoundingClientRect();a={x:d.left,y:d.top},Tr.setStyle(o,{zIndex:1e3,position:"absolute",left:a.x,top:a.y,boxShadow:"0 6px 8px 0 rgba(28, 31, 35, .2)"}),document.body.appendChild(o),this.updateDroppableTransforms()},onDrag:c=>{const u=c.endPos.x-c.startPos.x,d=c.endPos.y-c.startPos.y,f=a.x+u,p=a.y+d;o.style.left=`${f}px`,o.style.top=`${p}px`;const{x:h,y:g}=this.playgroundConfig.getPosFromMouseEvent(c),v=new Qn(h,g,170,90),y=this._droppableTransforms.find(_=>{const{bounds:S,entity:b}=_,E=this.document.layout.getPadding(b),w=new Qn(S.x+E.left+E.right,S.y,S.width,S.height);return Qn.intersects(v,w)});this.updateDropNode(y==null?void 0:y.entity)},onDragEnd:async c=>{const u=this._dropNode,{allowDrop:d}=this.canDropToNode({dragNodeType:e,dropNode:u}),f=d?await this.dropCard(e,c,r,u):void 0;this.clearDrop(),f?(o.remove(),s.resolve(f)):(o.style.transition="all ease .2s",o.style.left=`${a.x}px`,o.style.top=`${a.y}px`,await NS(200),o.remove(),s.resolve())}}).start(n.clientX,n.clientY),s.promise}adjustSubNodePosition(e,n,r,i=!0){if(!r)return{x:0,y:0};if(!e||!n||n.flowNodeType===Fo.ROOT)return r;const o=!n.children||n.children.length===0,a=this.document.layout.getPadding(n),s=n.getData(Ui);return o&&i?{x:0,y:a.top}:{x:r.x-s.position.x,y:r.y-s.position.y}}registerPosAdjuster(e){return this.posAdjusters.add(e),{dispose:()=>this.posAdjusters.delete(e)}}canDropToNode(e){const{dragNodeType:n,dropNode:r}=e;return n?{allowDrop:!0,dropNode:r}:{allowDrop:!1,message:"Please select a node to drop"}}getDragPosOffset(e){const{event:n,selectedNodes:r,startPosition:i}=e,{finalScale:o}=this.playgroundConfig,a={x:(n.endPos.x-n.startPos.x)/o,y:(n.endPos.y-n.startPos.y)/o},s={x:i.x+a.x,y:i.y+a.y};return Array.from(this.posAdjusters.values()).map(u=>u({selectedNodes:r,position:s})).reduce((u,d)=>({x:u.x+d.x,y:u.y+d.y}),a)}updateDroppableTransforms(){this._droppableTransforms=this.document.getRenderDatas(hr,!1).filter(e=>{const{entity:n}=e;return n.originParent?this.nodeSelectable(n)&&this.nodeSelectable(n.originParent):this.nodeSelectable(n)}).filter(e=>this.isContainer(e.entity))}isContainer(e){return(e==null?void 0:e.getNodeMeta().isContainer)??!1}getNodesPosition(e){const n=Qn.enlarge(e.map(i=>i.getData(hr).bounds));return{x:n.x,y:n.y}}nodeSelectable(e){const n=e.getNodeMeta().selectable;return typeof n=="function"?n(e):n}updateDropNode(e){if(this._dropNode){if(this._dropNode.id===(e==null?void 0:e.id))return;this.selectService.clear()}e&&this.selectService.selectNode(e),this._dropNode=e}clearDrop(){this._dropNode&&this.selectService.clear(),this._dropNode=void 0,this._droppableTransforms=[]}setLineColor(e,n){e.highlightColor=n,this.hoverService.clearHovered()}handleDragOnNode(e,n,r,i,o){return i&&((o==null?void 0:o.toPort)===i||i.portType==="input"&&this.linesManager.canAddLine(n,i,!0))?(this.hoverService.updateHoveredKey(i.id),r.setToPort(i),this._onDragLineEventEmitter.fire({type:"onDrag",onDragNodeId:e.id}),{hasError:!1}):this.isContainer(e)?{hasError:!1}:(this.setLineColor(r,this.linesManager.lineColor.error),{hasError:!0})}childrenOfContainer(e){var i;if(e.length===0)return;const n=(i=e[0])==null?void 0:i.parent;if(!(!n||n.collapsedChildren.length!==e.length||!e.every(o=>(o==null?void 0:o.parent)===n)))return n}async startDrawingLine(e,n,r){const i=!r&&e.isErrorPort()&&e.disabled;if(r!=null&&r.disabled||i||this.playgroundConfig.readonly||this.playgroundConfig.disabled)return{dragSuccess:!1,newLine:void 0};this.selectService.clear();const o=this.playgroundConfig,a=new pj,s=o.cursor;let l,c,u,d=!1;const f=Date.now();let p=!1;return await new Sm({onDrag:g=>{if(!l&&i$e(Date.now()-f,g,r)){if(r&&(r.highlightColor=this.linesManager.lineColor.hidden),p=!0,l=this.linesManager.createLine({from:e.node.id,fromPort:e.portID,drawingTo:o.getPosFromMouseEvent(n)}),!l)return;o.updateCursor("grab"),l.highlightColor=this.linesManager.lineColor.drawing,this.hoverService.updateHoveredKey("")}if(!l)return;d=!1;const v=o.getPosFromMouseEvent(g);if(u=this.linesManager.getNodeFromMousePos(v),c=this.linesManager.getPortFromMousePos(v),c?this.linesManager.canAddLine(e,c,!0)?l.setToPort(c):(l.highlightColor=this.linesManager.lineColor.error,d=!0,l.setToPort(void 0)):l.setToPort(void 0),this._onDragLineEventEmitter.fire({type:"onDrag"}),this.setLineColor(l,this.linesManager.lineColor.drawing),u&&!this.isContainer(u)){const y=u.getData(Km),{inputPorts:_}=y;_.length===1&&(c=_[0]);const{hasError:S}=this.handleDragOnNode(u,e,l,c,r);d=S}l.toPort?l.drawingTo={x:l.toPort.point.x,y:l.toPort.point.y}:l.drawingTo={x:v.x,y:v.y},r==null||r.validate(),l.validate()},onDragEnd:async g=>{const v=o.getPosFromMouseEvent(g),y=Array.from(this._onDragLineEndCallbacks.values());o.updateCursor(s),await Promise.all(y.map(S=>S({fromPort:e,toPort:c,mousePos:v,line:l,originLine:r,event:g}))),l==null||l.dispose(),this._onDragLineEventEmitter.fire({type:"onDragEnd"}),r&&(r.highlightColor="");const _=()=>{r==null||r.validate(),a.resolve({dragSuccess:p})};if(p){if(r&&r.toPort===c||c&&c.portType!=="input")return _();const S=c?{from:e.node.id,fromPort:e.portID,to:c.node.id,toPort:c.portID}:void 0;if(r&&c&&!this.linesManager.canReset(r.fromPort,r.toPort,c)||r&&(!this.linesManager.canRemove(r,S,!1)||d)||(r==null||r.dispose(),!c||!this.linesManager.canAddLine(e,c,!1)))return _();const E=this.linesManager.createLine(S);E||_(),a.resolve({dragSuccess:p,newLine:E})}else _()}}).start(n.clientX,n.clientY,o),a.promise}async resetLine(e,n){const{fromPort:r}=e,{dragSuccess:i}=await this.startDrawingLine(r,n,e);i||this.selectService.select(e)}onDragLineEnd(e){const n=C_();return this._onDragLineEndCallbacks.set(n,e),{dispose:()=>{this._onDragLineEndCallbacks.delete(n)}}}};Mi([Ot(da)],Ya.prototype,"playgroundConfig",2);Mi([Ot(Rf)],Ya.prototype,"hoverService",2);Mi([Ot(ei)],Ya.prototype,"document",2);Mi([Ot(Ql)],Ya.prototype,"linesManager",2);Mi([Ot(DV)],Ya.prototype,"commandService",2);Mi([Ot(Wa)],Ya.prototype,"selectService",2);Mi([Ot(BV)],Ya.prototype,"operationService",2);Mi([Ot(c$)],Ya.prototype,"options",2);Mi([Zc()],Ya.prototype,"init",1);Ya=Mi([Pn()],Ya);var Qnr=async(e,n)=>{const r={};return e.forEach(i=>{const o=i.getData(Ui),a=i.getData(hr);r[i.id]={x:o.position.x,y:o.position.y+a.bounds.height/2}}),new Promise(i=>{xme({from:{d:0},to:{d:100},duration:300,onUpdate:o=>{e.forEach(a=>{const s=a.getData(Ui),l=(n[a.id].x-s.position.x)*o.d/100,c=(n[a.id].y-s.bounds.height/2-s.position.y)*o.d/100;s.update({position:{x:s.position.x+l,y:s.position.y+c}}),a.document.layout.updateAffectedTransform(a)})},onComplete:()=>{i(r)}})})},By=class{constructor(){this._resetLayoutEmitter=new Hn,this.onResetLayout=this._resetLayoutEmitter.event,this._toDispose=new Ei}init(){this._toDispose.push(this._resetLayoutEmitter)}fireResetLayout(e,n,r){this._resetLayoutEmitter.fire({nodeIds:e,positionMap:n,oldPositionMap:r})}async layoutToPositions(e,n){const r=e.map(o=>this._entityManager.getEntityById(o)).filter(Boolean),i=await Qnr(r,n);return WV(this._document,this._config,!0),i}dispose(){this._toDispose.dispose()}};Mi([Ot(da)],By.prototype,"_config",2);Mi([Ot(ei)],By.prototype,"_document",2);Mi([Ot(Lo)],By.prototype,"_entityManager",2);Mi([Zc()],By.prototype,"init",1);By=Mi([Pn()],By);var Uat=class extends MC{constructor(){super(...arguments),this.onNodePostionUpdateEmitter=new Hn,this.onNodePostionUpdate=this.onNodePostionUpdateEmitter.event}updateNodePosition(e,n){const r=this.toNodeEntity(e);if(!r)return;const i=r.getData(Ui),o={x:i.position.x,y:i.position.y};i.update({position:n}),this.onNodePostionUpdateEmitter.fire({node:r,oldPosition:o,newPosition:n})}};Mi([Ot(ei)],Uat.prototype,"document",2);function Hat(e){const n=ec();return Od(),m.useEffect(()=>{let r;return()=>r==null?void 0:r.dispose()},[e]),n.config.readonly}function o$e(e){return e&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!e.closest(".flow-canvas-not-draggable")}function x_(e){var C,x;const n=m.useContext(LV),r=n.getData(ra),i=n.getData(Km),o=Hat(),a=Di(Ya),s=Di(Wa),l=m.useRef(!1),c=m.useRef(null),[u,d]=m.useState("");m.useEffect(()=>{const T=a.onDragLineEventChange(({type:R,onDragNodeId:O})=>{d(R==="onDrag"&&O||"")});return()=>{T.dispose()}},[]);const f=m.useCallback(T=>{var R;T.preventDefault(),s.isSelected(n.id)||p(T),!(!o$e(T.target)||!o$e(document.activeElement))&&(l.current=!0,(R=a.startDragSelectedNodes(T))==null||R.finally(()=>setTimeout(()=>{l.current=!1})))},[a,n]),p=m.useCallback(T=>{l.current||(T.shiftKey?s.toggleSelect(n):s.selectNode(n),T.target&&T.target.focus())},[n]),h=m.useCallback(()=>n.dispose(),[n]);WZn(i.onDataChange);const g=(x=(C=navigator==null?void 0:navigator.userAgent)==null?void 0:C.includes)==null?void 0:x.call(C,"Firefox"),v=m.useCallback(()=>{var T;g&&((T=c.current)==null||T.setAttribute("draggable","false"))},[]),y=m.useCallback(()=>{var T;g&&((T=c.current)==null||T.setAttribute("draggable","true"))},[]),_=m.useCallback(()=>n.getExtInfo(),[n]),S=m.useCallback(T=>{n.updateExtInfo(T)},[n]),b=m.useMemo(()=>Sot(n),[n]),E=uot(b==null?void 0:b.state),w=m.useCallback(()=>{r.toggleExpand()},[r]);return{node:n,selected:s.isSelected(n.id),activated:s.isActivated(n.id),expanded:r.expanded,startDrag:f,ports:i.allPorts,deleteNode:h,selectNode:p,readonly:o,linkingNodeId:u,nodeRef:c,onFocus:v,onBlur:y,getExtInfo:_,updateExtInfo:S,toggleExpand:w,get form(){if(b)return{...b,get values(){return b.values},get state(){return E}}}}}function Dw(){return kme()}var db=(e=>(e.GRAB="GRAB",e.SELECT="SELECT",e))(db||{}),Zx=(e=>(e.MOUSE="MOUSE",e.PAD="PAD",e))(Zx||{}),Lj=class{registerDocument(e){e.registerNodeDatas(hr,ra,Km,Em),e.registerLayout(this.freeLayout)}};Mi([Ot(RR)],Lj.prototype,"freeLayout",2);Lj=Mi([Pn()],Lj);function Znr(){return location.search.replace(/^\?/,"").split("&").reduce((e,n)=>{const[r,i]=n.split("=");return e[r]=i,e},{})}var Jnr=new Zp((e,n,r,i)=>{e(ei).toSelf().inSingletonScope(),e(Ql).toSelf().inSingletonScope(),e(RR).toSelf().inSingletonScope(),e(Ya).toSelf().inSingletonScope(),e(Wa).toSelf().inSingletonScope(),e(Rf).toSelf().inSingletonScope(),e(By).toSelf().inSingletonScope(),e(VV).to(Uat).inSingletonScope(),e(dnr).toDynamicValue(()=>Znr()).inSingletonScope(),QL(e,Lj,[zme]),e(c$).toConstantValue({...Kb}),i(jo).toService(ei),e(Knr).toDynamicValue(o=>()=>o.container.get(ei)).inSingletonScope()}),err=Object.defineProperty,trr=Object.getOwnPropertyDescriptor,dN=(e,n,r,i)=>{for(var o=i>1?void 0:i?trr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&err(n,r,o),o},UJ=(e,n)=>(r,i)=>n(r,i,e),Lh=class extends Pl{constructor(e,n){super(e),this.opts=n;const{variableEngine:r}=n||{};this.variableEngine=r,this._public=this.variableEngine.createScope(this.entity.id,{node:this.entity,type:"public"}),this.toDispose.push(this._public)}get private(){return this._private}get public(){return this._public}setVar(e,n){if(typeof e=="string"&&n!==void 0)return this.public.ast.set(e,n);if(typeof e=="object"&&n===void 0)return this.public.ast.set("outputs",e);throw new Error("Invalid arguments")}getVar(e="outputs"){return this.public.ast.get(e)}clearVar(e="outputs"){return this.public.ast.remove(e)}setPrivateVar(e,n){if(typeof e=="string"&&n!==void 0)return this.initPrivate().ast.set(e,n);if(typeof e=="object"&&n===void 0)return this.initPrivate().ast.set("outputs",e);throw new Error("Invalid arguments")}getPrivateVar(e="outputs"){var n;return(n=this.private)==null?void 0:n.ast.get(e)}clearPrivateVar(e="outputs"){var n;return(n=this.private)==null?void 0:n.ast.remove(e)}get allScopes(){const e=[];return this._public&&e.push(this._public),this._private&&e.push(this._private),e}getDefaultData(){return{}}initPrivate(){return this._private||(this._private=this.variableEngine.createScope(`${this.entity.id}_private`,{node:this.entity,type:"private"}),this._private.coverScopes.forEach(e=>{e.refreshDeps()}),this._private.depScopes.forEach(e=>{e.refreshCovers()}),this._private.available.refresh(),this.toDispose.push(this._private)),this._private}};Lh.type="FlowNodeVariableData";var rve=Symbol("VariableLayoutConfig"),ld=class extends Pat{static is(e){return e.id===ld.ID}setVar(e,n){if(typeof e=="string"&&n!==void 0)return this.ast.set(e,n);if(typeof e=="object"&&n===void 0)return this.ast.set("outputs",e);throw new Error("Invalid arguments")}getVar(e="outputs"){return this.ast.get(e)}clearVar(e="outputs"){return this.ast.remove(e)}};ld.ID=Symbol("GlobalScope");ld=dN([Pn()],ld);var nrr=e=>{e(ld).toDynamicValue(n=>{const r=n.container.get(qm);let i=r.getScopeById(ld.ID);return i||(i=r.createScope(ld.ID,{},{ScopeConstructor:ld}),r.chain.refreshAllChange()),i})},u$=class extends B0{get tree(){return this.flowDocument.originTree}onInit(){this.toDispose.pushAll([this.entityManager.onEntityDataChange(({entityDataType:e})=>{e===Em.type&&this.refreshAllChange()}),this.tree.onTreeChange(()=>{this.refreshAllChange()})])}getAllInputLayerNodes(e){var n;return(((n=e.getData(Em))==null?void 0:n.allInputNodes)||[]).filter(r=>r.parent===e.parent)}getAllOutputLayerNodes(e){var n;return(((n=e.getData(Em))==null?void 0:n.allOutputNodes)||[]).filter(r=>r.parent===e.parent)}getDeps(e){const{node:n}=e.meta||{};if(!n)return this.transformDeps([],{scope:e});const r=[];let i=n;for(;i;){const s=this.getAllInputLayerNodes(i);r.push(...s.map(c=>c.getData(Lh).public).filter(Boolean));const l=i.getData(Lh);l!=null&&l.private&&e!==l.private&&r.push(l.private),i=this.getParent(i)}const o=this.variableEngine.getScopeById(ld.ID);o&&r.unshift(o);const a=Array.from(new Set(r));return this.transformDeps(a,{scope:e})}getCovers(e){if(ld.is(e))return this.variableEngine.getAllScopes({sort:!0}).filter(l=>!ld.is(l));const{node:n}=e.meta||{};if(!n)return this.transformCovers([],{scope:e});const r=e.meta.type==="private",i=[];r?i.push(...this.getChildren(n)):i.push(...this.getAllOutputLayerNodes(n)||[]);const o=[];for(;i.length;){const l=i.shift(),c=l.getData(Lh);o.push(...c.allScopes);const u=l&&this.getChildren(l);u!=null&&u.length&&i.push(...u)}const a=n.getData(Lh);r&&a.public&&o.push(a.public);const s=Array.from(new Set(o));return this.transformCovers(s,{scope:e})}transformCovers(e,{scope:n}){var r;return(r=this.configs)!=null&&r.transformCovers?this.configs.transformCovers(e,{scope:n,document:this.flowDocument,variableEngine:this.variableEngine}):e}transformDeps(e,{scope:n}){var r;return(r=this.configs)!=null&&r.transformDeps?this.configs.transformDeps(e,{scope:n,document:this.flowDocument,variableEngine:this.variableEngine}):e}getChildren(e){var i,o,a,s;if((i=this.configs)!=null&&i.getFreeChildren)return(a=(o=this.configs).getFreeChildren)==null?void 0:a.call(o,e);const n=e.getNodeMeta(),r=(s=n.subCanvas)==null?void 0:s.call(n,e);return r?r.isCanvas?[]:r.canvasNode.collapsedChildren:this.tree.getChildren(e)}getParent(e){var o,a;if((o=this.configs)!=null&&o.getFreeParent)return this.configs.getFreeParent(e);const n=e.document.originTree.getParent(e);if(!n)return n;const r=n.getNodeMeta(),i=(a=r.subCanvas)==null?void 0:a.call(r,n);return i!=null&&i.isCanvas?i.parentNode:n}sortAll(){return console.warn("FreeLayoutScopeChain.sortAll is not implemented"),[]}};dN([Ot(Lo)],u$.prototype,"entityManager",2);dN([Ot(jo)],u$.prototype,"flowDocument",2);dN([ss(),Ot(rve)],u$.prototype,"configs",2);dN([Zc()],u$.prototype,"onInit",1);var Cse=class extends B0{constructor(e,n){super(),this.flowDocument=e,this.configs=n,this.bindTree(e.originTree),this.toDispose.push(e.originTree.onTreeChange(()=>{this.refreshAllChange()}))}bindTree(e){this.tree=e}getDeps(e){if(!this.tree)return this.transformDeps([],{scope:e});const n=e.meta.node;if(!n)return this.transformDeps([],{scope:e});const r=[];let i=n;for(;i;){const{parent:a,pre:s}=this.tree.getInfo(i),l=this.getVariableData(i);if(i===n?e.meta.type==="public"&&(l!=null&&l.private)&&r.unshift(l.private):this.hasChildren(i)&&!this.isNodeChildrenPrivate(i)&&r.unshift(...this.getAllSortedChildScope(i,{ignoreNodeChildrenPrivate:!0})),l&&i!==n&&r.unshift(l.public),s){i=s;continue}if(a){let c=a,u=this.tree.getPre(c);for(;c;){const d=this.getVariableData(c);if(d&&r.unshift(...d.allScopes),u)break;c=this.tree.getParent(c),u=c?this.tree.getPre(c):void 0}i=u;continue}i=void 0}const o=this.variableEngine.getScopeById(ld.ID);return o&&r.unshift(o),this.transformDeps(r,{scope:e})}getCovers(e){if(!this.tree)return this.transformCovers([],{scope:e});if(ld.is(e))return this.variableEngine.getAllScopes({sort:!0}).filter(o=>!ld.is(o));const n=e.meta.node;if(!n)return this.transformCovers([],{scope:e});const r=[];if(e.meta.type==="private")return r.push(...this.getAllSortedChildScope(n,{addNodePrivateScope:!0})),this.transformCovers(r,{scope:e});let i=n;for(;i;){const{next:o,parent:a}=this.tree.getInfo(i),s=this.getVariableData(i);if(i!==n&&(this.hasChildren(i)?r.push(...this.getAllSortedChildScope(i,{addNodePrivateScope:!0})):s&&r.push(...s.allScopes)),o){i=o;continue}if(a){let l=a,c=this.tree.getNext(l);for(;l;){if(this.isNodeChildrenPrivate(l))return this.transformCovers(r,{scope:e});if(c)break;l=this.tree.getParent(l),c=l?this.tree.getNext(l):void 0}if(!c&&l)break;i=c;continue}i=void 0}return this.transformCovers(r,{scope:e})}transformCovers(e,{scope:n}){var r;return(r=this.configs)!=null&&r.transformCovers?this.configs.transformCovers(e,{scope:n,document:this.flowDocument,variableEngine:this.variableEngine}):e}transformDeps(e,{scope:n}){var r;return(r=this.configs)!=null&&r.transformDeps?this.configs.transformDeps(e,{scope:n,document:this.flowDocument,variableEngine:this.variableEngine}):e}sortAll(){const e=this.flowDocument.getAllNodes().find(a=>a.isStart);if(!e)return[];const r=e.getData(Lh).public,i=this.getDeps(r),o=this.getCovers(r).filter(a=>!i.includes(a)&&a!==r);return[...i,r,...o]}getVariableData(e){if(e.flowNodeType!=="virtualNode"&&!e.id.startsWith("$"))return e.getData(Lh)}isNodeChildrenPrivate(e){var r,i;return(r=this.configs)!=null&&r.isNodeChildrenPrivate?e?(i=this.configs)==null?void 0:i.isNodeChildrenPrivate(e):!1:!(e==null?void 0:e.id.startsWith("$"))&&this.hasChildren(e)}hasChildren(e){return!!(this.tree&&e&&this.tree.getChildren(e).length>0)}getAllSortedChildScope(e,{ignoreNodeChildrenPrivate:n,addNodePrivateScope:r}={}){var s;const i=[],o=this.getVariableData(e);if(o&&i.push(o.public),n&&this.isNodeChildrenPrivate(e))return i;r&&(o!=null&&o.private)&&i.push(o.private);const a=((s=this.tree)==null?void 0:s.getChildren(e))||[];return i.push(...a.map(l=>this.getAllSortedChildScope(l,{ignoreNodeChildrenPrivate:n,addNodePrivateScope:r})).flat()),i}};Cse=dN([UJ(0,Ot(jo)),UJ(1,ss()),UJ(1,Ot(rve))],Cse);var rrr=pa({onBind({bind:e},n){const{layout:r,layoutConfig:i}=n;r==="free"&&e(B0).to(u$).inSingletonScope(),r==="fixed"&&e(B0).to(Cse).inSingletonScope(),i&&e(rve).toConstantValue(i||{}),nrr(e)},onInit(e,n){const{extendASTNodes:r}=n||{},i=e.get(qm),o=e.get(gD),a=e.get(Lo),s=e.get(jo);(r||[]).forEach(l=>{if(Array.isArray(l)){const[c,u]=l;o.registerAST(c,u?()=>u(e):void 0);return}o.registerAST(l)}),a.registerEntityData(Lh,()=>({variableEngine:i})),s.registerNodeDatas(Lh)},containerModules:[snr]}),irr=Object.defineProperty,orr=Object.getOwnPropertyDescriptor,kw=(e,n,r,i)=>{for(var o=i>1?void 0:i?orr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&irr(n,r,o),o},wse=Symbol("ShortcutsContribution"),j0=class{constructor(){this.shortcutsHandlers=[]}addHandlers(...e){e.forEach(n=>{this.commandRegistry.getCommand(n.commandId)?this.commandRegistry.registerHandler(n.commandId,{execute:n.execute,isEnabled:n.isEnabled}):this.commandRegistry.registerCommand({id:n.commandId,...n.commandDetail||{}},{execute:n.execute,isEnabled:n.isEnabled})}),this.shortcutsHandlers.unshift(...e)}addHandlersIfNotFound(...e){e.forEach(n=>{this.has(n.commandId)||this.addHandlers(n)})}has(e){return this.shortcutsHandlers.some(n=>n.commandId===e)}init(){var e;(e=this.contribs)==null||e.forEach(n=>n.registerShortcuts(this))}};kw([Ot(cme),eit(wse),ss()],j0.prototype,"contribs",2);kw([Ot(bm)],j0.prototype,"commandRegistry",2);kw([Zc()],j0.prototype,"init",1);j0=kw([Pn()],j0);var arr=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),zat={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,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,leftwindowkey:91,rightwindowkey:92,meta:arr?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide: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,scrolllock:145,semicolon:186,equalsign:187,"=":187,comma:188,dash:189,"-":189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},xse={ctrl:e=>e.ctrlKey,shift:e=>e.shiftKey,alt:e=>e.altKey,meta:e=>e.type==="keyup"?zat.meta.includes(e.keyCode):e.metaKey};function srr(e){const n=Object.keys(xse).reduce((r,i)=>xse[i](e)?r+1:r,0);return[16,17,18,91,92].includes(e.keyCode)?n:n+1}function lrr(e,n,r=!0){if(!e.key||!n)return!1;const i=n.split(/\s+/);let o=0;for(const a of i){const s=xse[a],l=zat[a.toLowerCase()];(s&&s(e)||l&&l===e.keyCode)&&o++}return r?o===i.length&&srr(e)===i.length:o===i.length}function crr(e,n){return n.some(r=>lrr(e,r))}var IR=class extends Oa{onReady(){this.shortcuts.addHandlersIfNotFound({commandId:OC.Default.ZOOM_IN,shortcuts:["meta =","ctrl ="],execute:()=>{this.config.zoomin()}},{commandId:OC.Default.ZOOM_OUT,shortcuts:["meta -","ctrl -"],execute:()=>{this.config.zoomout()}}),this.toDispose.pushAll([this.listenPlaygroundEvent("keydown",e=>{!this.isFocused||e.target!==this.playgroundNode||this.shortcuts.shortcutsHandlers.some(n=>{if(crr(e,n.shortcuts)&&(!n.isEnabled||n.isEnabled(e)))return n.execute(e),e.preventDefault(),!0})})])}};IR.type="ShortcutsLayer";kw([Ot(j0)],IR.prototype,"shortcuts",2);kw([Ot(ug)],IR.prototype,"selection",2);IR=kw([Pn()],IR);var Vat=pa({onBind:({bind:e})=>{e(j0).toSelf().inSingletonScope(),ume(e,wse)},onInit:e=>{e.playground.registerLayer(IR)},contributionKeys:[wse]});function urr({nodeManager:e,formManager:n,material:r}){const{setters:i=[],decorators:o=[],effects:a=[],validators:s=[],nodeErrorRender:l,nodePlaceholderRender:c}=r;l&&mJn(e,l),c&&vJn(e,c),i.forEach(u=>{n.registerAbilityExtension(tot.type,u)}),o.forEach(u=>{n.registerAbilityExtension(iot.type,u)}),a.forEach(u=>{n.registerAbilityExtension(rJn.type,u)}),s.forEach(u=>{n.registerAbilityExtension(iJn.type,u)})}var drr=pa({onInit(e,n){e.get(jo).registerNodeDatas(...yJn());const r=s=>new UJn(s);if(e.get(Lo).registerEntityData(ls,()=>({formModelFactory:r})),!n.materials)return;const o=e.get(Hm),a=e.get(Pp);if(!o||!a)throw new Error("NodeCorePlugin Error: nodeManager or formManager not found");urr({nodeManager:o,formManager:a,material:n.materials})},onDispose(e){var n;(n=e.get(Pp))==null||n.dispose()},containerModules:dJn()}),frr=pa({onInit:(e,n)=>{n.onLanguageChange&&e.playground.toDispose.push(nF.onLanguageChange(n.onLanguageChange)),n.languages&&n.languages.forEach(r=>nF.addLanguage(r)),n.localLanguage&&nF.setLocalLanguage(n.localLanguage)}}),prr=Object.defineProperty,hrr=Object.getOwnPropertyDescriptor,fN=(e,n,r,i)=>{for(var o=i>1?void 0:i?hrr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&prr(n,r,o),o},mD=class{constructor(){var e;this.devTools=(e=window.__REDUX_DEVTOOLS_EXTENSION__)==null?void 0:e.connect({name:this.getName()})}init(){this.devTools&&(this.devTools.init(this.getState()),this.devTools.subscribe(e=>{var n;((n=e==null?void 0:e.payload)==null?void 0:n.type)==="COMMIT"&&this.devTools.init(this.getState())}),this.onInit())}send(e,n){this.devTools&&this.devTools.send(e,n||this.getState())}};fN([Zc()],mD.prototype,"init",1);mD=fN([Pn()],mD);var vD=class extends mD{getName(){return"@flowgram.ai/EntityManager"}getState(){return this.entityManager.storeState({configOnly:!1})}onInit(){this.entityManager.onEntityLifeCycleChange(e=>{this.send(`${e.type}/${e.entity.type}/${e.entity.id}`)})}};fN([Ot(Lo)],vD.prototype,"entityManager",2);vD=fN([Pn()],vD);var yD=class extends mD{constructor(){super(...arguments),this.scopes={}}getName(){return"@flowgram.ai/VariableEngine"}getState(){return{scopes:this.scopes,variables:this.variableEngine.globalVariableTable.variables}}getScopeState(e){return{ast:e==null?void 0:e.ast.toJSON(),output:e.output.variables,available:e.available.variables}}onInit(){this.variableEngine.onScopeChange(e=>{const{scope:n,type:r}=e;r==="delete"?delete this.scopes[String(n.id)]:this.scopes={...this.scopes,[n.id]:this.getScopeState(n)},this.send(`${r}/${String(n.id)}`)})}};fN([Ot(qm)],yD.prototype,"variableEngine",2);yD=fN([Pn()],yD);var grr=pa({onBind({bind:e},n){const{enable:r}=n;r&&(e(vD).toSelf().inSingletonScope(),e(yD).toSelf().inSingletonScope())},onInit(e,n){const{enable:r,ecs:i=!0,variable:o=!1}=n;r&&(i&&e.get(vD),o&&e.get(yD))}}),mrr=({children:e})=>{const n=kme(),r=m.useMemo(()=>n.getData(Lh).public,[n]);return V.createElement(lnr,{value:{scope:r}},e)},vrr=e=>n=>V.createElement(mrr,null,V.createElement(e,{...n})),yrr=pa({onInit(e){e.get(Hm).registerNodeRenderHoc(vrr)}});zJn("VariableProviderPlugin",{onInit:(e,n)=>{},effect:{arr:[{event:bot.onValueInitOrChange,effect:()=>{}}]},onDispose:(e,n)=>{}});var _rr=pa({onInit(e,n){const r=e.get(yd);r.registerReactComponent(kot.NODE_RENDER,n.renderDefaultNode||(()=>null)),n.renderTexts&&r.registerText(n.renderTexts),n.renderNodes&&Object.keys(n.renderNodes).forEach(i=>r.registerReactComponent(i,n.renderNodes[i]))}}),brr=Object.defineProperty,Srr=Object.getOwnPropertyDescriptor,Qa=(e,n,r,i)=>{for(var o=i>1?void 0:i?Srr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&brr(n,r,o),o},ive=Symbol("OperationContribution"),$C=class{constructor(){this._operationMetas=new Map,this.contributions=[]}init(){var e;for(const n of this.contributions)(e=n.registerOperationMeta)==null||e.call(n,this)}registerOperationMeta(e){return this._operationMetas.has(e.type)?(console.warn(`A operation meta ${e.type} is already registered.`),ao.NULL):new Ei(this._doRegisterOperationMetaMeta(e))}getOperationMeta(e){return this._operationMetas.get(e)}_doRegisterOperationMetaMeta(e){return this._operationMetas.set(e.type,e),{dispose:()=>{this._operationMetas.delete(e.type)}}}};Qa([E_(ive),ss()],$C.prototype,"contributions",2);Qa([Zc()],$C.prototype,"init",1);$C=Qa([Pn()],$C);var _D=class{};_D=Qa([Pn()],_D);var FC=class{constructor(){this.generateId=()=>C_(),this.getSnapshot=()=>""}};FC=Qa([Pn()],FC);var jy=class{constructor(){this.applyEmitter=new Hn,this.onApply=this.applyEmitter.event,this._toDispose=new Ei}init(){this._toDispose.push(this.applyEmitter)}applyOperation(e,n){const r=this.operationRegistry.getOperationMeta(e.type);if(!r)throw new Error(`Operation meta ${e.type} has not registered.`);let i;return n!=null&&n.noApply||(i=r.apply(e,this.context.source)),this.applyEmitter.fire(e),i}getOperationLabel(e){const n=this.operationRegistry.getOperationMeta(e.type);if(n&&n.getLabel)return n.getLabel(e,this.context.source)}getOperationDescription(e){const n=this.operationRegistry.getOperationMeta(e.type);if(n&&n.getDescription)return n.getDescription(e,this.context.source)}inverseOperations(e){return e.map(n=>this.inverseOperation(n)).reverse()}inverseOperation(e){const n=this.operationRegistry.getOperationMeta(e.type);if(!n)throw new Error(`Operation meta ${e.type} has not registered.`);return n.inverse(e)}dispose(){this._toDispose.dispose()}};Qa([Ot($C)],jy.prototype,"operationRegistry",2);Qa([Ot(_D)],jy.prototype,"context",2);Qa([Ot(FC)],jy.prototype,"config",2);Qa([Zc()],jy.prototype,"init",1);jy=Qa([Pn()],jy);var $j=class{constructor(){this._undoing=!1,this._redoing=!1,this._limit=100,this.onChangeEmitter=new Hn,this.onChange=this.onChangeEmitter.event,this._toDispose=new Ei,this._undoStack=[],this._redoStack=[],this._toDispose.push(this.onChangeEmitter)}setLimit(e){this._limit=e}pushElement(e){this._redoStack=[],this._stackPush(this._undoStack,e),this._toDispose.push(e),this._emitChange("push",e)}getUndoStack(){return this._undoStack}getRedoStack(){return this._redoStack}getLastElement(){return this._undoStack[this._undoStack.length-1]}async undo(){if(!this.canUndo()||this._undoing)return;this._undoing=!0;const e=this._undoStack.pop();try{await e.undo()}finally{this._stackPush(this._redoStack,e),this._emitChange("undo",e),this._undoing=!1}}async redo(){if(!this.canRedo()||this._redoing)return;this._redoing=!0;const e=this._redoStack.pop();try{await e.redo()}finally{this._stackPush(this._undoStack,e),this._emitChange("redo",e),this._redoing=!1}}canUndo(){return this._undoStack.length>0}canRedo(){return this._redoStack.length>0}canPush(){return!this._redoing&&!this._undoing}clear(){this.clearRedoStack(),this.clearUndoStack(),this._emitChange("clear")}clearRedoStack(){this._redoStack.forEach(e=>{e.dispose()}),this._redoStack=[]}clearUndoStack(){this._undoStack.forEach(e=>{e.dispose()}),this._undoStack=[]}dispose(){this.clear(),this._toDispose.dispose()}_stackPush(e,n){e.push(n),e.length>this._limit&&e.shift()}_emitChange(e,n){n?this.onChangeEmitter.fire({type:e,element:n}):this.onChangeEmitter.fire({type:e})}};$j=Qa([Pn()],$j);var a$e=class{constructor(e,n=[]){this._toDispose=new Ei,this._timestamp=Date.now(),this._operationService=e,this._operations=n.map(r=>this._operation(r)),this._id=e.config.generateId()}get id(){return this._id}getTimestamp(){return this._timestamp}pushOperation(e){const n=this._operation(e);return this._operations.push(n),n}getOperations(){return this._operations}getChangeOperations(e){return e==="undo"?this._operationService.inverseOperations(this._operations):this._operations}getFirstOperation(){return this._operations[0]}getLastOperation(){return this._operations[this._operations.length-1]}async undo(){const e=this._operationService.inverseOperations(this._operations);for(const n of e)await this._apply(n)}async redo(){for(const e of this._operations)await this._apply(e)}revert(e){let n=this._operations;e!=="undo"&&(n=this._operations.map(r=>this._inverse(r)).reverse());for(const r of n)this._apply(r)}_inverse(e){return this._operationService.inverseOperation(e)}async _apply(e){await this._operationService.applyOperation(e)}_operation(e){return{...e,value:Mn.cloneDeep(e.value),id:this._operationService.config.generateId()}}dispose(){this._toDispose.dispose()}},NR=class{constructor(){this._items=[],this.onChangeEmitter=new Hn,this.onChange=this.onChangeEmitter.event,this._toDispose=new Ei,this.limit=100,this._toDispose.push(this.onChangeEmitter)}get items(){return this._items}add(e,n){const r=this._getHistoryItem(e,n);return this._items.unshift(r),this._items.length>this.limit&&this._items.pop(),this.onChangeEmitter.fire({type:"add",value:r,service:e}),r}findById(e){return this._items.find(n=>n.id===e)}changeByIndex(e,n,r){const i=this._getHistoryItem(n,r);this._items[e]=i,this.onChangeEmitter.fire({type:"update",value:i,service:n})}addOperation(e,n,r){const i=this._items.find(a=>a.id===n);if(!i){console.warn("no history item found");return}const o=this._getHistoryOperation(e,r);i.operations.push(o),this.onChangeEmitter.fire({type:"add_operation",value:{historyItem:i,operation:o},service:e})}updateOperation(e,n,r){const i=this._items.find(s=>s.id===n);if(!i){console.warn("no history item found");return}const o=i.operations.findIndex(s=>s.id===s.id);if(o<0){console.warn("no operation found");return}const a=this._getHistoryOperation(e,r);i.operations.splice(o,1,a),this.onChangeEmitter.fire({type:"update_operation",value:{historyItem:i,operation:a},service:e})}clear(){this._items=[]}dispose(){this._items=[],this._toDispose.dispose()}_getHistoryItem(e,n){return{...n,uri:e.context.uri,time:NR.dateFormat(n.timestamp),operations:n.operations.map(r=>this._getHistoryOperation(e,r,n.type!=="push"))}}_getHistoryOperation(e,n,r=!1){let i;if(r)i=this.historyConfig.generateId();else{const o=n.id;if(!o)throw new Error("no operation id found");i=o}return{...Mn.cloneDeep(n),id:i,label:e.operationService.getOperationLabel(n),description:e.operationService.getOperationDescription(n),timestamp:Date.now()}}static dateFormat(e){return new Date(e).toLocaleString()}};Qa([Ot(FC)],NR.prototype,"historyConfig",2);NR=Qa([Pn()],NR);var ay=class{constructor(){this._historyServices=new Map,this._toDispose=new Ei}registerHistoryService(e){const n=new Ei;n.pushAll([e.undoRedoService.onChange(r=>{if(r.type==="clear")return;const{type:i,element:o}=r,a=o.getChangeOperations(i),s={id:i==="push"?o.id:this.historyConfig.generateId(),type:i,uri:e.context.uri,operations:a,timestamp:Date.now()};this.historyStack.add(e,s)}),e.onMerge(r=>{this._handleMerge(e,r)})]),this._historyServices.set(e,n),this._toDispose.push(e.onWillDispose(()=>{this.unregisterHistoryService(e)}))}unregisterHistoryService(e){const n=this._historyServices.get(e);n&&(n.dispose(),this._historyServices.delete(e))}getHistoryServiceByURI(e){for(const n of this._historyServices.keys())if(n.context.uri===e)return n}getFirstHistoryService(){for(const e of this._historyServices.keys())return e}dispose(){this._toDispose.dispose(),this.historyStack.dispose(),this._historyServices.forEach(e=>e.dispose()),this._historyServices.clear()}_handleMerge(e,n){const{element:r,operation:i}=n.value;if(this.historyStack.findById(r.id)){if(!i.id){console.warn("no operation id found");return}n.type==="UPDATE"&&this.historyStack.updateOperation(e,r.id,i),n.type==="ADD"&&this.historyStack.addOperation(e,r.id,i)}}};Qa([Ot(NR)],ay.prototype,"historyStack",2);Qa([Ot(FC)],ay.prototype,"historyConfig",2);ay=Qa([Pn()],ay);var qa=class{constructor(){this._toDispose=new Ei,this._transacting=!1,this._transactOperation=null,this._locked=!1,this._willDisposeEmitter=new Hn,this._mergeEmitter=new Hn,this.onWillDispose=this._willDisposeEmitter.event,this.onMerge=this._mergeEmitter.event}get onApply(){return this.operationService.onApply}init(){this._toDispose.push(this._willDisposeEmitter),this._toDispose.push(this._mergeEmitter)}start(){this._locked=!1}stop(){this._locked=!0}limit(e){this.undoRedoService.setLimit(e)}startTransaction(){if(this._transacting)return;this._transacting=!0;const e=new a$e(this.operationService,[]);this._transactOperation=e}endTransaction(){const e=this._transactOperation;e&&(e.getOperations().length!==0&&this._pushStackOperation(e),this._transactOperation=null,this._transacting=!1)}transact(e){this._transacting||(this.startTransaction(),e(),this.endTransaction())}pushOperation(e,n){if(!this._canPush())return;const r=this._transactOperation||this.undoRedoService.getLastElement(),i=this.operationRegistry.getOperationMeta(e.type);if(!i)throw new Error(`Operation meta ${e.type} has not registered.`);if(i.shouldSave&&!i.shouldSave(e))return i.apply(e,this.context.source);const o=this.operationService.applyOperation(e,{noApply:n==null?void 0:n.noApply});i.getURI&&!e.uri&&(e.uri=i.getURI(e,this.context.source));const a=this._shouldMerge(e,r,i);if(a)if(typeof a=="object"){const s=r.getLastOperation();s.value=a.value,this._mergeEmitter.fire({type:"UPDATE",value:{element:r,operation:s,value:a.value}})}else{const s=r.pushOperation(e);this._mergeEmitter.fire({type:"ADD",value:{element:r,operation:s}})}else{const s=new a$e(this.operationService,[e]);this._pushStackOperation(s)}return o}getHistoryOperations(){return this.historyManager.historyStack.items.reverse().map(e=>e.operations.map(n=>({...Mn.pick(n,["type","value"]),label:n.label||n.type}))).flat()}async undo(){await this.undoRedoService.undo()}async redo(){await this.undoRedoService.redo()}canUndo(){return this.undoRedoService.canUndo()}canRedo(){return this.undoRedoService.canRedo()}getSnapshot(){return this.config.getSnapshot()}getRecords(){throw new Error("Method not implemented.")}restore(e){throw new Error("Method not implemented.")}clear(){this.undoRedoService.clear()}dispose(){this._willDisposeEmitter.fire(this),this._toDispose.dispose()}_canPush(){return this._locked?!1:this.undoRedoService.canPush()}_pushStackOperation(e){this.undoRedoService.pushElement(e),this.undoRedoService.clearRedoStack()}_shouldMerge(e,n,r){return n?this._transacting?!0:r.shouldMerge&&r.shouldMerge(e,n.getLastOperation(),n):!1}};Qa([Ot($j)],qa.prototype,"undoRedoService",2);Qa([Ot($C)],qa.prototype,"operationRegistry",2);Qa([Ot(jy)],qa.prototype,"operationService",2);Qa([Ot(_D)],qa.prototype,"context",2);Qa([Ot(FC)],qa.prototype,"config",2);Qa([Ot(ay)],qa.prototype,"historyManager",2);Qa([Zc()],qa.prototype,"init",1);qa=Qa([Pn()],qa);var ove=new Zp((e,n,r,i,o,a,s)=>{e($C).toSelf().inSingletonScope(),e(jy).toSelf().inSingletonScope(),e($j).toSelf().inSingletonScope(),e(qa).toSelf().inSingletonScope(),e(_D).toSelf().inSingletonScope(),e(ay).toSelf().inSingletonScope(),e(NR).toSelf().inSingletonScope(),e(FC).toSelf().inSingletonScope(),a(qa,(l,c)=>{var d,f,p,h;let u;return(f=(d=l.container)==null?void 0:d.parent)!=null&&f.isBound(ay)?u=(h=(p=l.container)==null?void 0:p.parent)==null?void 0:h.get(ay):u=l.container.get(ay),u&&(c.historyManager=u,u.registerHistoryService(c)),c})});pa({onInit:(e,n)=>{n.onApply&&e.get(jy).onApply(n.onApply.bind(null,e))},containerModules:[ove]});var Err=Object.defineProperty,Crr=Object.getOwnPropertyDescriptor,wrr=(e,n,r,i)=>{for(var o=i>1?void 0:i?Crr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Err(n,r,o),o};function Gat(e){var r;if(!e)return;const n=(r=e==null?void 0:e.getData(ls))==null?void 0:r.getFormModel();if(!(!n||!kJn(n)))return n}function xrr(e,n,r){var i,o,a,s,l,c;return n&&Date.now()-r.getTimestamp()<500?e.type===n.type&&((i=e.value)==null?void 0:i.id)===((o=n.value)==null?void 0:o.id)&&((a=e.value)==null?void 0:a.path)===((s=n.value)==null?void 0:s.path)?{type:e.type,value:{...e.value,value:(l=e.value)==null?void 0:l.value,oldValue:(c=n.value)==null?void 0:c.oldValue}}:!0:!1}function Trr(e,n,r){e.onFormValuesChange(i=>{r.pushOperation({type:"changeFormValues",value:{id:n.id,path:i.name,value:Mn.get(i.values,i.name),oldValue:Mn.get(i.prevValues,i.name)}},{noApply:!0})})}var Orr={type:"changeFormValues",inverse:e=>({...e,value:{...e.value,value:e.value.oldValue,oldValue:e.value.value}}),apply:({value:{value:e,path:n,id:r}},i)=>{const o=i.get(jo),a=Gat(o.getNode(r));a&&a.setValueIn(n,e)},shouldMerge:xrr},Rrr=[Orr],Tse=class{registerOperationMeta(e){Rrr.forEach(n=>{e.registerOperationMeta(n)})}};Tse=wrr([Pn()],Tse);var Irr=pa({onBind:({bind:e})=>{QL(e,Tse,[ive])},onInit:(e,n)=>{const r=e.get(jo),i=e.get(qa);r.onNodeCreate(({node:o})=>{const a=Gat(o);a&&Trr(a,o,i)})},containerModules:[ove]}),Nrr=Object.defineProperty,Mrr=(e,n,r,i)=>{for(var o=void 0,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=s(n,r,o)||o);return o&&Nrr(n,r,o),o},Prr="gedit-background-pattern-",s$e=20,Arr=1,Drr=0,ave=class extends Oa{constructor(){super(...arguments),this._patternId=`${Prr}${Drr++}`,this.node=Tr.createDivWithClass("gedit-flow-background-layer"),this.grid=document.createElement("div")}get zoom(){return this.config.finalScale}onReady(){const{firstChild:e}=this.pipelineNode;this.pipelineNode.insertBefore(this.node,e),this.playgroundConfigEntity.updateConfig({minZoom:.1,maxZoom:2}),this.grid.style.zIndex="-1",this.grid.style.position="relative",this.node.appendChild(this.grid),this.grid.className="gedit-grid-svg"}getScaleUnit(){const{zoom:e}=this;return{realSize:s$e,renderSize:Math.round(s$e*e*100)/100,zoom:e}}autorun(){const e=this.playgroundConfigEntity.config,n=this.getScaleUnit(),r=n.renderSize*10,i=e.width+r*2,o=e.height+r*2,{scrollX:a}=e,{scrollY:s}=e,l=this.getScrollDelta(a,r),c=this.getScrollDelta(s,r);Tr.setStyle(this.node,{left:a-d5,top:s-d5}),this.drawGrid(n),this.setSVGStyle(this.grid,{width:i,height:o,left:d5-l-r,top:d5-c-r})}drawGrid(e){const n=e.renderSize;if(!this.grid)return;const r=Arr*this.zoom,i=`
|
||
<svg width="100%" height="100%">
|
||
<pattern id="${this._patternId}" width="${n}" height="${n}" patternUnits="userSpaceOnUse">
|
||
<circle
|
||
cx="${r}"
|
||
cy="${r}"
|
||
r="${r}"
|
||
stroke="#eceeef"
|
||
fill-opacity="0.5"
|
||
/>
|
||
</pattern>
|
||
<rect width="100%" height="100%" fill="url(#${this._patternId})"/>
|
||
</svg>`;this.grid.innerHTML=i}setSVGStyle(e,n){e&&(e.style.width=`${n.width}px`,e.style.height=`${n.height}px`,e.style.left=`${n.left}px`,e.style.top=`${n.top}px`)}getScrollDelta(e,n){return e>=0?e%n:n-Math.abs(e)%n}};ave.type="WorkflowBackgroundLayer";Mrr([zo(da)],ave.prototype,"playgroundConfigEntity");var krr=pa({onInit:(e,n)=>{e.playground.registerLayer(ave,n)}}),Lrr=Object.defineProperty,$rr=Object.getOwnPropertyDescriptor,Frr=(e,n,r,i)=>{for(var o=i>1?void 0:i?$rr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Lrr(n,r,o),o};function Wat(e,n=[]){return r=>(n=n.slice(),(e.background||e.background===void 0)&&n.push(krr(e.background||{})),e.shortcuts&&n.push(Vat({registerShortcuts:i=>e.shortcuts(i,r)})),e.plugins&&n.push(...e.plugins(r)),n.push($V({onBind:i=>{var o;(o=e.onBind)==null||o.call(e,i)},onInit:i=>{const o=i.get(aN);e.playground&&(e.playground.autoFocus!==void 0&&(o.autoFocus=e.playground.autoFocus),e.playground.autoResize!==void 0&&(o.autoResize=e.playground.autoResize)),o.autoFocus=!1,i.playground.registerLayer(bR,e.playground),e.layers&&i.playground.registerLayers(...e.layers),e.onInit&&e.onInit(i)},onReady(i){e.onReady&&e.onReady(i)},onAllLayersRendered(){e.onAllLayersRendered&&e.onAllLayersRendered(r)},onDispose(){e.onDispose&&e.onDispose(r)},containerModules:e.containerModules||[]})),n)}var Fj=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-playground-layer gedit-playground-content-layer")}onZoom(e){this.node.style.transform=`scale(${e})`}onReady(){this.node.style.left="0px",this.node.style.top="0px"}updateOptions(e){this.options=e,this.render()}render(){return V.createElement("div",{className:this.options.className,style:{position:"absolute",...this.options.style}},this.options.children)}};Fj.type="PlaygroundContentLayer";Fj=Frr([Pn()],Fj);m.forwardRef(function(n,r){const{parentContainer:i,children:o,...a}=n,s=m.useMemo(()=>$V({onInit(c){c.playground.registerLayer(Fj)}}),[]),l=m.useMemo(()=>Wat(a,[s]),[]);return V.createElement(Zit,{ref:r,plugins:l,parentContainer:i},V.createElement(Lme,null,o))});var Brr=Object.defineProperty,jrr=Object.getOwnPropertyDescriptor,Lw=(e,n,r,i)=>{for(var o=i>1?void 0:i?jrr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Brr(n,r,o),o},Yat=Symbol("EditorOptions"),Bj;(e=>{e.DEFAULT={background:{},fromNodeJSON(n,r){var o,a,s;const i=n.getData(ls);if(!i)r.data&&n.updateExtInfo(r.data);else{const l=(a=(o=n.getService(Yat).nodeEngine)==null?void 0:o.createDefaultFormMeta)==null?void 0:a.call(o,n),c=((s=n.getNodeRegistry())==null?void 0:s.formMeta)||l;c&&i.createForm(c,r.data)}},toNodeJSON(n){const r={};let i;return n.document.traverse(o=>{var f;if(o.id.startsWith("$"))return;const s=o.getData(ls);let l=s&&s.formModel&&s.formModel.initialized?s.toJSON():void 0;const c={id:o.id,type:o.flowNodeType,data:s?l:o.getExtInfo(),blocks:[]};i||(i=c);let{parent:u}=o;u&&u.id.startsWith("$")&&(u=u.originParent);const d=u?r[u.id]:void 0;d&&((f=d.blocks)==null||f.push(c)),r[o.id]=c},n),i}}})(Bj||(Bj={}));var l$e=e=>(n,r)=>{const i=e.filter(Boolean);return i.length?i.reduce((o,a)=>a(n,o),r):r},qat="flowide-highlight",Urr=`
|
||
@keyframes flowide-fade {
|
||
from {
|
||
opacity: 1.0;
|
||
}
|
||
to {
|
||
opacity: 0;
|
||
}
|
||
}
|
||
@-webkit-keyframes flowide-fade {
|
||
from {
|
||
opacity: 1.0;
|
||
}
|
||
to {
|
||
opacity: 0;
|
||
}
|
||
}
|
||
.${qat} {
|
||
background-color: rgba(238, 245, 40, 0.5);
|
||
animation: flowide-fade 2s 1 forwards;
|
||
-webkit-animation: flowide-fade 2s 1 forwards;
|
||
}
|
||
`,Xb;function Hrr(){Xb||(Xb=document.createElement("style"),Xb.innerHTML=Urr,document.head.appendChild(Xb))}function zrr(){Xb==null||Xb.remove(),Xb=void 0}var Vrr=0;function Grr(e,n){const r=e.formModel.flowNodeEntity.getData(ra).node,i=e.domRef.current;if(!i)return;const o=document.createElement("div"),{padding:a=Vrr,overlayClassName:s}=n||{};o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.width="100%",o.style.height="100%",o.style.zIndex="9999",r.appendChild(o);const l=r.getBoundingClientRect(),c=i.getBoundingClientRect();return o.style.top=c.top-l.top-a+"px",o.style.left=c.left-l.left-a+"px",o.style.width=c.width+a*2+"px",o.style.height=c.height+a*2+"px",o.className=s||qat,setTimeout(()=>{o.remove()},2e3),o}var bD=class{highlightNodeFormItem(e,n){this.previousOverlay=Grr(e,n)}focusNodeFormItem(e,n){const r=e.formModel.flowNodeEntity,{canvas:i={},highlight:o}=n||{};this.previousOverlay&&(this.previousOverlay.remove(),this.previousOverlay=void 0);const a=this.playground.scrollToView({entities:[r],scrollToCenter:!0,...i}).then(()=>{!e||!o||this.currentPromise!==a||this.highlightNodeFormItem(e,typeof o=="boolean"?{}:o)});return this.currentPromise=a,this.currentPromise}};Lw([Ot(yu)],bD.prototype,"playground",2);bD=Lw([Pn()],bD);var SD=class{};Lw([Ot(bD)],SD.prototype,"nodeFocusService",2);SD=Lw([Pn()],SD);var Wrr=pa({onInit(){Hrr()},onDispose(){zrr()}}),Yrr=pa({onBind({bind:e}){e(bD).toSelf().inSingletonScope(),e(SD).toSelf().inSingletonScope()}}),qrr=()=>[Wrr({}),Yrr({})],ED=class{focusNodeFormItem(e,n){this.nodeClient.nodeFocusService.focusNodeFormItem(e,n)}focusNode(e,n){this.playground.scrollToView({entities:[e],...n})}};Lw([Ot(SD)],ED.prototype,"nodeClient",2);Lw([Ot(yu)],ED.prototype,"playground",2);ED=Lw([Pn()],ED);var Krr=pa({onBind({bind:e}){e(ED).toSelf().inSingletonScope()}}),Xrr=()=>[...qrr(),Krr({})];function Qrr(e,n=[]){return r=>{var o,a,s;e={...Bj.DEFAULT,...e},r.container.bind(Yat).toConstantValue(e),e.i18n&&n.push(frr(e.i18n)),n.push(...Xrr()),(o=e.reduxDevTool)!=null&&o.enable&&n.push(grr(e.reduxDevTool));const i=[ier,Ver];return n.push(_rr(e.materials||{})),e.nodeEngine&&e.nodeEngine.enable!==!1&&(n.push(drr({materials:e.nodeEngine.materials})),(a=e.variableEngine)!=null&&a.enable&&n.push(yrr({})),(s=e.history)!=null&&s.enable&&n.push(Irr({}))),n.push($V({onInit:l=>{e.nodeRegistries&&l.document.registerFlowNodes(...e.nodeRegistries),e.constants&&(l.document.options.constants=e.constants),e.formatNodeLines&&(l.document.options.formatNodeLines=l$e([l.document.options.formatNodeLines,e.formatNodeLines])),e.formatNodeLabels&&(l.document.options.formatNodeLabels=l$e([l.document.options.formatNodeLabels,e.formatNodeLabels])),e.getNodeDefaultRegistry&&(l.document.options.getNodeDefaultRegistry=e.getNodeDefaultRegistry),l.get(yd).init()},onReady(l){e.initialData&&l.document.fromJSON(e.initialData),e.readonly&&(l.playground.config.readonly=e.readonly),l.document.load().then(()=>{e.onLoad&&e.onLoad(l)})},onDispose(l){l.document.dispose()},containerModules:i})),n}}var Zrr=Object.defineProperty,Jrr=Object.getOwnPropertyDescriptor,Al=(e,n,r,i)=>{for(var o=i>1?void 0:i?Jrr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Zrr(n,r,o),o},MR=class{constructor(){this._entityDataValues=new Map,this._toDispose=new Ei}addEntityData(e){this._entityDataValues.set(e,Mn.cloneDeep(e.toJSON())),this._toDispose.push(e.onWillChange(n=>{const r=n.toJSON(),i=this._entityDataValues.get(e);Mn.isEqual(r,i)||this._entityDataValues.set(e,Mn.cloneDeep(r))}))}getValue(e){return this._entityDataValues.get(e)}setValue(e,n){return this._entityDataValues.set(e,n)}dispose(){this._entityDataValues.clear(),this._toDispose.dispose()}};MR=Al([Pn()],MR);var CD=(e=>(e.addLine="addLine",e.deleteLine="deleteLine",e.moveNode="moveNode",e.addNode="addNode",e.deleteNode="deleteNode",e.changeNodeData="changeNodeData",e.resetLayout="resetLayout",e.dragNodes="dragNodes",e.moveChildNodes="moveChildNodes",e))(CD||{}),wD=class{handle(e){e.type==="onDragEnd"&&this._dragNode(e)}_dragNode(e){this._historyService.pushOperation({type:"dragNodes",value:{ids:e.nodes.map(n=>n.id),value:e.nodes.map(n=>{const{x:r,y:i}=n.getData(Ui).position;return{x:r,y:i}}),oldValue:e.startPositions}},{noApply:!0})}};Al([Ot(qa)],wD.prototype,"_historyService",2);wD=Al([Pn()],wD);var Eu=class{constructor(){this.enable=!1,this.nodeToJSON=e=>e.toJSON(),this.getNodeLabelById=e=>e,this.getNodeLabel=e=>e.id,this.getBlockLabel=e=>e.id,this.getNodeURI=e=>`node:${e}`,this.getLineURI=e=>`line:${e}`}init(e,n){this.enable=!!(n!=null&&n.enable),n.nodeToJSON&&(this.nodeToJSON=n.nodeToJSON(e)),n.getNodeLabelById&&(this.getNodeLabelById=n.getNodeLabelById(e)),n.getNodeLabel&&(this.getNodeLabel=n.getNodeLabel(e)),n.getBlockLabel&&(this.getBlockLabel=n.getBlockLabel(e)),n.getNodeURI&&(this.getNodeURI=n.getNodeURI(e)),n.getLineURI&&(this.getLineURI=n.getLineURI(e))}};Eu=Al([Pn()],Eu);var U0=class{handle(e){const{path:n,value:r,initialized:i,node:o}=e,a=o.getData(ls),s=this._entityManager.getValue(a),l=n.split("/").filter(Boolean).join("."),c=l?Mn.get(s,l):s;if(!Mn.isEqual(r,c)){if(i){let u=n,d=Mn.cloneDeep(r),f=c;if(n!=="/"){const p=Mn.cloneDeep(s);Mn.set(p,l,r),u=n.split("/").filter(Boolean)[0],d=Mn.get(p,u),f=Mn.get(s,u)}this._historyService.pushOperation({type:"changeNodeData",value:{id:o.id,path:u,value:d,oldValue:f},uri:this._config.getNodeURI(o.id)},{noApply:!0})}l?Mn.set(s,l,Mn.cloneDeep(r)):this._entityManager.setValue(a,Mn.cloneDeep(r))}}};Al([Ot(qa)],U0.prototype,"_historyService",2);Al([Ot(ei)],U0.prototype,"document",2);Al([Ot(MR)],U0.prototype,"_entityManager",2);Al([Ot(Eu)],U0.prototype,"_config",2);U0=Al([Pn()],U0);var eir={type:uN.DELETE_NODE,toOperation:(e,n)=>{var l;const r=n.get(Eu),i=n.get(ei),o=e.entity,a=i.toNodeJSON(o),s=(l=o.parent)==null?void 0:l.id;return{type:"deleteNode",value:{node:a,parentID:s},uri:r.getNodeURI(o.id)}}},tir={type:uN.DELETE_LINE,toOperation:(e,n)=>{const r=n.get(Eu),i=e.entity;return{type:"deleteLine",value:{from:i.info.from,to:i.info.to||"",fromPort:i.info.fromPort||"",toPort:i.info.toPort||"",id:i.id},uri:r.getNodeURI(i.id)}}},nir={type:uN.ADD_NODE,toOperation:(e,n)=>{var l;const r=n.get(Eu),i=n.get(ei),o=e.entity,a=(l=o.parent)==null?void 0:l.id;return{type:"addNode",value:{node:i.toNodeJSON(o),parentID:a},uri:r.getNodeURI(o.id)}}},rir={type:uN.ADD_LINE,toOperation:(e,n)=>{const r=n.get(Eu),i=e.entity;return{type:"addLine",value:{from:i.info.from,to:i.info.to||"",fromPort:i.info.fromPort||"",toPort:i.info.toPort||"",id:i.id},uri:r.getLineURI(i.id)}}},iir=[rir,tir,nir,eir],xD=class{handle(e,n){if(!this._historyService.undoRedoService.canPush())return;const r=iir.find(o=>o.type===e.type);if(!r)return;const i=r.toOperation(e,n);i&&this._historyService.pushOperation(i,{noApply:!0})}};Al([Ot(qa)],xD.prototype,"_historyService",2);xD=Al([Pn()],xD);var DS={shouldMerge:(e,n,r)=>n?Date.now()-r.getTimestamp()<500:!1},oir={...DS,type:"resetLayout",inverse:e=>({...e,value:{...e.value,value:e.value.oldValue,oldValue:e.value.value}}),apply:async(e,n)=>{await n.get(By).layoutToPositions(e.value.ids,e.value.value)},shouldMerge:()=>!1},air={...DS,type:Ume.moveChildNodes,inverse:e=>({...e,value:{...e.value,fromIndex:e.value.toIndex,toIndex:e.value.fromIndex,fromParentId:e.value.toParentId,toParentId:e.value.fromParentId}}),apply:(e,n)=>{const r=n.get(ei);r.moveChildNodes(e.value);const i=r.getNode(e.value.fromParentId);requestAnimationFrame(()=>{i&&i.flowNodeType!==Fo.ROOT&&i.getData(Ui).fireChange()})}},sir={...DS,type:"dragNodes",inverse:e=>({...e,value:{...e.value,value:e.value.oldValue,oldValue:e.value.value}}),apply:(e,n)=>{e.value.ids.forEach((r,i)=>{const o=n.get(ei),a=o.getNode(r);if(!a)return;const s=a.getData(Ui),l=e.value.value[i];s.update({position:{x:l.x,y:l.y}}),o.layout.updateAffectedTransform(a)})}},lir={...DS,type:"deleteNode",inverse:e=>({...e,type:"addNode"}),apply:(e,n)=>{const i=n.get(ei).getNode(e.value.node.id);i&&i.dispose()},getLabel:(e,n)=>`Delete Node ${n.get(Eu).getNodeLabel(e.value.node)}`,getDescription:(e,n)=>{var o;let i=`Delete Node ${n.get(Eu).getNodeLabel(e.value.node)}`;return(o=e.value.node.meta)!=null&&o.position&&(i+=` at ${e.value.node.meta.position.x},${e.value.node.meta.position.y}`),i}},cir={...DS,type:"deleteLine",inverse:e=>({...e,type:"addLine"}),apply:(e,n)=>{n.get(ei).removeNode(e.value.id)},getLabel:(e,n)=>"Delete Line",getDescription:(e,n)=>{const r=n.get(Eu),{value:i}=e;if(!i.from||!i.to)return"Delete Line";const o=r.getNodeLabelById(i.from),a=r.getNodeLabelById(i.to);return`Delete Line from ${o} to ${a}`}},uir={...DS,type:"changeNodeData",inverse:e=>({...e,value:{...e.value,value:e.value.oldValue,oldValue:e.value.value}}),apply:(e,n)=>{const i=n.get(ei).getNode(e.value.id);if(!i)return;const o=i.getData(ls);if(!o)return;let{path:a}=e.value;a.endsWith("/")&&a!=="/"&&(a=a.slice(0,-1)),a.startsWith("/")||(a=`/${a}`);const s=o.formModel.getFormItemByPath(a);s&&(s.value=e.value.value)},shouldMerge:(e,n,r)=>{var i,o;return n&&Date.now()-r.getTimestamp()<500?e.type===n.type&&e.value.id===n.value.id&&((i=e.value)==null?void 0:i.path)===((o=n.value)==null?void 0:o.path)?{type:e.type,value:{...e.value,value:e.value.value,oldValue:n.value.oldValue}}:!0:!1}},dir={...DS,type:"addNode",inverse:e=>({...e,type:"deleteNode"}),apply:async(e,n)=>{await n.get(ei).createWorkflowNode(Mn.cloneDeep(e.value.node),!1,e.value.parentID)},getLabel:(e,n)=>`Create Node ${n.get(Eu).getNodeLabel(e.value.node)}`,getDescription:(e,n)=>{var o;let i=`Create Node ${n.get(Eu).getNodeLabel(e.value.node)}`;return(o=e.value.node.meta)!=null&&o.position&&(i+=` at ${e.value.node.meta.position.x},${e.value.node.meta.position.y}`),i}},fir={...DS,type:"addLine",inverse:e=>({...e,type:"deleteLine"}),apply:(e,n)=>{n.get(Ql).createLine({...e.value,key:e.value.id})},getLabel:(e,n)=>"Create Line",getDescription:(e,n)=>{const r=n.get(Eu),{value:i}=e;if(!i.from||!i.to)return"Create Line";const o=r.getNodeLabelById(i.from),a=r.getNodeLabelById(i.to);return`Create Line from ${o} to ${a}`}},pir=[fir,cir,dir,lir,uir,oir,sir,air],Ose=class{registerOperationMeta(e){pir.forEach(n=>{e.registerOperationMeta(n)})}};Ose=Al([Pn()],Ose);var Xm=class{constructor(){this._toDispose=new Ei}onInit(e,n){const r=e.get(ei),i=e.get(qa),o=e.get(Ya),a=e.get(By);n!=null&&n.limit&&i.limit(n.limit),i.context.source=e,this._toDispose.pushAll([o.onNodesDrag(async s=>{s.type==="onDragEnd"&&this._dragNodesHandler.handle(s)}),r.onNodeCreate(({node:s,data:l})=>{const c=s.getData(qb);c&&this._entityManager.addEntityData(c)}),this._formManager?this._formManager.onFormModelWillInit(({model:s,data:l})=>{const c=s.flowNodeEntity,u=c.getData(ls);u&&(this._entityManager.setValue(u,Mn.cloneDeep(l)),this._toDispose.push(u.onDetailChange(d=>{this._changeNodeDataHandler.handle({...d,node:c})})))}):ao.NULL,r.onContentChange(s=>{this._changeContentHandler.handle(s,e)}),r.onReload(s=>{i.clear()}),a.onResetLayout(s=>{i.pushOperation({type:"resetLayout",value:{ids:s.nodeIds,value:s.positionMap,oldValue:s.oldPositionMap}},{noApply:!0})}),this._operationService.onNodeMove(({node:s,fromParent:l,fromIndex:c,toParent:u,toIndex:d})=>{i.pushOperation({type:Ume.moveChildNodes,value:{fromParentId:l.id,fromIndex:c,nodeIds:[s.id],toParentId:u.id,toIndex:d}},{noApply:!0})}),this._operationService.onNodePostionUpdate(s=>{const l={ids:[s.node.id],value:[s.newPosition],oldValue:[s.oldPosition]};i.pushOperation({type:"dragNodes",value:l},{noApply:!0})})])}dispose(){this._entityManager.dispose(),this._toDispose.dispose()}};Al([Ot(wD)],Xm.prototype,"_dragNodesHandler",2);Al([Ot(U0)],Xm.prototype,"_changeNodeDataHandler",2);Al([Ot(xD)],Xm.prototype,"_changeContentHandler",2);Al([Ot(MR)],Xm.prototype,"_entityManager",2);Al([Ot(Pp),ss()],Xm.prototype,"_formManager",2);Al([Ot(VV)],Xm.prototype,"_operationService",2);Xm=Al([Pn()],Xm);var hir=pa({onBind:({bind:e})=>{QL(e,Ose,[ive]),e(Eu).toSelf().inSingletonScope(),e(Xm).toSelf().inSingletonScope(),e(MR).toSelf().inSingletonScope(),e(wD).toSelf().inSingletonScope(),e(U0).toSelf().inSingletonScope(),e(xD).toSelf().inSingletonScope()},onInit(e,n){e.get(Eu).init(e,n),n.enable&&e.get(Xm).onInit(e,n)},onDispose(e){e.get(MR).dispose()},containerModules:[ove]}),gir=pa({onInit(e,n){n.enable!==!1&&(e.playground.registerLayer(Wm,n),e.playground.registerLayer(Gm,{canSelect:n.canSelect}))}}),mir=Object.defineProperty,vir=Object.getOwnPropertyDescriptor,$w=(e,n,r,i)=>{for(var o=i>1?void 0:i?vir(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&mir(n,r,o),o},Kat=class{compute(e){this.clearCache();const{root:n,nodes:r,context:i}=e;return this.context=i,this.nodeIndexes=this.computeNodeIndexesMap(r),this.topLevel=this.computeTopLevel(r),this.maxLevel=this.topLevel*2,this.layerHandler(n.blocks),{nodeLevel:this.nodeLevel,lineLevel:this.lineLevel,topLevel:this.topLevel,maxLevel:this.maxLevel}}clearCache(){this.currentLevel=0,this.topLevel=0,this.maxLevel=0,this.nodeIndexes=new Map,this.nodeLevel=new Map,this.lineLevel=new Map}computeNodeIndexesMap(e){const n=new Map;return e.forEach((r,i)=>{n.set(r.id,i)}),n}computeTopLevel(e){const n=e.filter(i=>i.id!==Fo.ROOT),r=n.reduce((i,o)=>o.blocks.length>0?i+1:i,0);return n.length+r+1}layerHandler(e,n=!1){const r=this.sortNodes(e);this.getNodesAllLines(r).forEach(o=>{o.isDrawing||this.context.hoveredEntityID===o.id||this.context.selectedIDs.includes(o.id)?this.lineLevel.set(o.id,this.maxLevel):this.lineLevel.set(o.id,this.getLevel(n))}),this.levelIncrease(),r.forEach(o=>{const a=this.context.selectedIDs.includes(o.id);a?this.nodeLevel.set(o.id,this.topLevel):this.nodeLevel.set(o.id,this.getLevel(n)),this.levelIncrease(),o.blocks.length>0&&this.layerHandler(o.blocks,n||a)})}sortNodes(e){return e.sort((n,r)=>{const i=this.nodeIndexes.get(n.id),o=this.nodeIndexes.get(r.id);return i===void 0||o===void 0?0:i-o})}getNodesAllLines(e){return e.map(i=>{const o=i.getData(Em),a=o.outputLines.filter(Boolean),s=o.inputLines.filter(Boolean);return[...a,...s]}).flat().filter(i=>this.lineLevel.get(i.id)===void 0||this.isHigherFirstLine(i))}isHigherFirstLine(e){var n,r;return((n=e.to)==null?void 0:n.parent)===e.from||((r=e.from)==null?void 0:r.parent)===e.to}getLevel(e){return e?this.topLevel+this.currentLevel:this.currentLevel}levelIncrease(){this.currentLevel+=1}},Xat=(e=>(e.Line="line",e.Node="node",e))(Xat||{}),sve=(e=>(e.Line="line",e.Node="node",e))(sve||{}),Qat={line:0,node:1},Zat=8,Jat=2,est=Object.keys(sve).length,tst=Jat*2,yir=Zat+tst*est,F1={startIndex:Zat,allowLevel:Jat,levelIndexStep:est,maxLevel:tst,maxIndex:yir},mu=class{constructor(){this.node=Tr.createDivWithClass("gedit-playground-layer gedit-flow-render-layer"),this.disposers=[],this.compute=Mn.debounce(this._compute,10)}init(){this.pipelineRenderer.node.appendChild(this.node),this.mountListener()}ready(){this.compute()}dispose(){this.disposers.forEach(e=>e.dispose())}_compute(){const e=this.context,n=new Kat,{nodeLevel:r,lineLevel:i}=n.compute({root:this.document.root,nodes:this.nodes,context:e});this.nodes.forEach(o=>{const a=r.get(o.id),s=o.getData(ra),l=s.node;if(l.style.position="absolute",a===void 0){l.style.zIndex="auto",s.stackIndex=0;return}const c=F1.startIndex+a;l.style.zIndex=String(c),s.stackIndex=c}),this.lines.forEach(o=>{const a=i.get(o.id),s=o.node;if(s.style.position="absolute",a===void 0){s.style.zIndex="auto";return}s.style.zIndex=String(F1.startIndex+a)})}get nodes(){return this.entityManager.getEntities(Ap)}get lines(){return this.entityManager.getEntities(Qd)}get context(){var e;return{hoveredEntity:this.hoverService.hoveredNode,hoveredEntityID:(e=this.hoverService.hoveredNode)==null?void 0:e.id,selectedEntities:this.selectService.selection,selectedIDs:this.selectService.selection.map(n=>n.id)}}mountListener(){const e=this.onEntityChange(),n=this.onZoom(),r=this.onHover(),i=this.onSelect();this.disposers=[e,n,r,i]}onZoom(){return this.pipelineRegistry.onZoom(e=>{this.node.style.transform=`scale(${e})`})}onHover(){return this.hoverService.onHoveredChange(()=>{this.compute()})}onEntityChange(){return this.entityManager.onEntityChange(()=>{this.compute()})}onSelect(){return this.selectService.onSelectionChanged(()=>{this.compute()})}};$w([Ot(ei)],mu.prototype,"document",2);$w([Ot(Lo)],mu.prototype,"entityManager",2);$w([Ot(IC)],mu.prototype,"pipelineRenderer",2);$w([Ot(Mp)],mu.prototype,"pipelineRegistry",2);$w([Ot(Rf)],mu.prototype,"hoverService",2);$w([Ot(Wa)],mu.prototype,"selectService",2);mu=$w([Pn()],mu);var nst=pa({onBind({bind:e}){e(mu).toSelf().inSingletonScope()},onInit(e){e.get(mu).init()},onReady(e){e.get(mu).ready()},onDispose(e){e.get(mu).dispose()}}),f1;(e=>{e.compute=(i,o)=>{const a=n(i,o),s=r(i);s.style.position="absolute",s.style.zIndex=(0,e.zIndexStringify)(a)},e.stackingIndex=(i,o)=>{if(o<1)return;const a=Qat[i];return F1.startIndex+F1.levelIndexStep*(o-1)+a},e.nodeStackingLevel=(i,o,a=!1)=>{const s=[];let l=i;for(;l;)s.push(l),l=l.parent;const c=s.reverse(),u=c.length-1,d=c.findIndex(p=>!!o.selectedIDs.includes(p.id)),f=F1.allowLevel+(c.length-d);return!a&&d!==-1?f:u},e.zIndexStringify=i=>i===void 0?"auto":i.toString();const n=(i,o)=>{const a=(0,e.nodeStackingLevel)(i,o);return(0,e.stackingIndex)("node",a)},r=i=>i.getData(ra).node})(f1||(f1={}));var Rse;(e=>{e.compute=(i,o)=>{const a=r(i,o),s=i.node;s.style.position="absolute",s.style.zIndex=f1.zIndexStringify(a)};const n=(i,o)=>{if(i.isDrawing||o.hoveredEntityID===i.id||o.selectedIDs.includes(i.id))return F1.maxLevel+1;const a=f1.nodeStackingLevel(i.from,o,!0);if(!i.to)return a;const s=f1.nodeStackingLevel(i.to,o,!0);return Math.min(a,s)},r=(i,o)=>{const a=n(i,o);return f1.stackingIndex("line",a)}})(Rse||(Rse={}));var _ir=e=>{const{nodes:n,lines:r,context:i}=e;n.forEach(o=>{f1.compute(o,i)}),r.forEach(o=>{Rse.compute(o,i)})};const bir=Object.freeze(Object.defineProperty({__proto__:null,StackingBaseIndex:Qat,StackingComputing:Kat,StackingConfig:F1,get StackingContextManager(){return mu},StackingItem:Xat,StackingType:sve,createFreeStackPlugin:nst,layersComputing:_ir},Symbol.toStringTag,{value:"Module"}));var cd=function(){return cd=Object.assign||function(n){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},cd.apply(this,arguments)};function jj(e,n,r){if(r||arguments.length===2)for(var i=0,o=n.length,a;i<o;i++)(a||!(i in n))&&(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return e.concat(a||Array.prototype.slice.call(n))}var Sir=function(n,r,i,o){var a=i?i.call(o,n,r):void 0;if(a!==void 0)return!!a;if(n===r)return!0;if(typeof n!="object"||!n||typeof r!="object"||!r)return!1;var s=Object.keys(n),l=Object.keys(r);if(s.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(r),u=0;u<s.length;u++){var d=s[u];if(!c(d))return!1;var f=n[d],p=r[d];if(a=i?i.call(o,f,p,d):void 0,a===!1||a===void 0&&f!==p)return!1}return!0};const Eir=Or(Sir);var va="-ms-",xP="-moz-",Po="-webkit-",rst="comm",YV="rule",lve="decl",Cir="@import",ist="@keyframes",wir="@layer",ost=Math.abs,cve=String.fromCharCode,Ise=Object.assign;function xir(e,n){return zl(e,0)^45?(((n<<2^zl(e,0))<<2^zl(e,1))<<2^zl(e,2))<<2^zl(e,3):0}function ast(e){return e.trim()}function jv(e,n){return(e=n.exec(e))?e[0]:e}function Si(e,n,r){return e.replace(n,r)}function iF(e,n,r){return e.indexOf(n,r)}function zl(e,n){return e.charCodeAt(n)|0}function PR(e,n,r){return e.slice(n,r)}function nm(e){return e.length}function sst(e){return e.length}function I2(e,n){return n.push(e),e}function Tir(e,n){return e.map(n).join("")}function c$e(e,n){return e.filter(function(r){return!jv(r,n)})}var qV=1,AR=1,lst=0,Dp=0,rl=0,pN="";function KV(e,n,r,i,o,a,s,l){return{value:e,root:n,parent:r,type:i,props:o,children:a,line:qV,column:AR,length:s,return:"",siblings:l}}function fb(e,n){return Ise(KV("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},n)}function Hx(e){for(;e.root;)e=fb(e.root,{children:[e]});I2(e,e.siblings)}function Oir(){return rl}function Rir(){return rl=Dp>0?zl(pN,--Dp):0,AR--,rl===10&&(AR=1,qV--),rl}function Xh(){return rl=Dp<lst?zl(pN,Dp++):0,AR++,rl===10&&(AR=1,qV++),rl}function B1(){return zl(pN,Dp)}function oF(){return Dp}function XV(e,n){return PR(pN,e,n)}function Nse(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 Iir(e){return qV=AR=1,lst=nm(pN=e),Dp=0,[]}function Nir(e){return pN="",e}function HJ(e){return ast(XV(Dp-1,Mse(e===91?e+2:e===40?e+1:e)))}function Mir(e){for(;(rl=B1())&&rl<33;)Xh();return Nse(e)>2||Nse(rl)>3?"":" "}function Pir(e,n){for(;--n&&Xh()&&!(rl<48||rl>102||rl>57&&rl<65||rl>70&&rl<97););return XV(e,oF()+(n<6&&B1()==32&&Xh()==32))}function Mse(e){for(;Xh();)switch(rl){case e:return Dp;case 34:case 39:e!==34&&e!==39&&Mse(rl);break;case 40:e===41&&Mse(e);break;case 92:Xh();break}return Dp}function Air(e,n){for(;Xh()&&e+rl!==57;)if(e+rl===84&&B1()===47)break;return"/*"+XV(n,Dp-1)+"*"+cve(e===47?e:Xh())}function Dir(e){for(;!Nse(B1());)Xh();return XV(e,Dp)}function kir(e){return Nir(aF("",null,null,null,[""],e=Iir(e),0,[0],e))}function aF(e,n,r,i,o,a,s,l,c){for(var u=0,d=0,f=s,p=0,h=0,g=0,v=1,y=1,_=1,S=0,b="",E=o,w=a,C=i,x=b;y;)switch(g=S,S=Xh()){case 40:if(g!=108&&zl(x,f-1)==58){iF(x+=Si(HJ(S),"&","&\f"),"&\f",ost(u?l[u-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:x+=HJ(S);break;case 9:case 10:case 13:case 32:x+=Mir(g);break;case 92:x+=Pir(oF()-1,7);continue;case 47:switch(B1()){case 42:case 47:I2(Lir(Air(Xh(),oF()),n,r,c),c);break;default:x+="/"}break;case 123*v:l[u++]=nm(x)*_;case 125*v:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+d:_==-1&&(x=Si(x,/\f/g,"")),h>0&&nm(x)-f&&I2(h>32?d$e(x+";",i,r,f-1,c):d$e(Si(x," ","")+";",i,r,f-2,c),c);break;case 59:x+=";";default:if(I2(C=u$e(x,n,r,u,d,o,l,b,E=[],w=[],f,a),a),S===123)if(d===0)aF(x,n,C,C,E,a,f,l,w);else switch(p===99&&zl(x,3)===110?100:p){case 100:case 108:case 109:case 115:aF(e,C,C,i&&I2(u$e(e,C,C,0,0,o,l,b,o,E=[],f,w),w),o,w,f,l,i?E:w);break;default:aF(x,C,C,C,[""],w,0,l,w)}}u=d=h=0,v=_=1,b=x="",f=s;break;case 58:f=1+nm(x),h=g;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&Rir()==125)continue}switch(x+=cve(S),S*v){case 38:_=d>0?1:(x+="\f",-1);break;case 44:l[u++]=(nm(x)-1)*_,_=1;break;case 64:B1()===45&&(x+=HJ(Xh())),p=B1(),d=f=nm(b=x+=Dir(oF())),S++;break;case 45:g===45&&nm(x)==2&&(v=0)}}return a}function u$e(e,n,r,i,o,a,s,l,c,u,d,f){for(var p=o-1,h=o===0?a:[""],g=sst(h),v=0,y=0,_=0;v<i;++v)for(var S=0,b=PR(e,p+1,p=ost(y=s[v])),E=e;S<g;++S)(E=ast(y>0?h[S]+" "+b:Si(b,/&\f/g,h[S])))&&(c[_++]=E);return KV(e,n,r,o===0?YV:l,c,u,d,f)}function Lir(e,n,r,i){return KV(e,n,r,rst,cve(Oir()),PR(e,2,-2),0,i)}function d$e(e,n,r,i,o){return KV(e,n,r,lve,PR(e,0,i),PR(e,i+1,-1),i,o)}function cst(e,n,r){switch(xir(e,n)){case 5103:return Po+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Po+e+e;case 4789:return xP+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Po+e+xP+e+va+e+e;case 5936:switch(zl(e,n+11)){case 114:return Po+e+va+Si(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Po+e+va+Si(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Po+e+va+Si(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Po+e+va+e+e;case 6165:return Po+e+va+"flex-"+e+e;case 5187:return Po+e+Si(e,/(\w+).+(:[^]+)/,Po+"box-$1$2"+va+"flex-$1$2")+e;case 5443:return Po+e+va+"flex-item-"+Si(e,/flex-|-self/g,"")+(jv(e,/flex-|baseline/)?"":va+"grid-row-"+Si(e,/flex-|-self/g,""))+e;case 4675:return Po+e+va+"flex-line-pack"+Si(e,/align-content|flex-|-self/g,"")+e;case 5548:return Po+e+va+Si(e,"shrink","negative")+e;case 5292:return Po+e+va+Si(e,"basis","preferred-size")+e;case 6060:return Po+"box-"+Si(e,"-grow","")+Po+e+va+Si(e,"grow","positive")+e;case 4554:return Po+Si(e,/([^-])(transform)/g,"$1"+Po+"$2")+e;case 6187:return Si(Si(Si(e,/(zoom-|grab)/,Po+"$1"),/(image-set)/,Po+"$1"),e,"")+e;case 5495:case 3959:return Si(e,/(image-set\([^]*)/,Po+"$1$`$1");case 4968:return Si(Si(e,/(.+:)(flex-)?(.*)/,Po+"box-pack:$3"+va+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Po+e+e;case 4200:if(!jv(e,/flex-|baseline/))return va+"grid-column-align"+PR(e,n)+e;break;case 2592:case 3360:return va+Si(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(i,o){return n=o,jv(i.props,/grid-\w+-end/)})?~iF(e+(r=r[n].value),"span",0)?e:va+Si(e,"-start","")+e+va+"grid-row-span:"+(~iF(r,"span",0)?jv(r,/\d+/):+jv(r,/\d+/)-+jv(e,/\d+/))+";":va+Si(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(i){return jv(i.props,/grid-\w+-start/)})?e:va+Si(Si(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Si(e,/(.+)-inline(.+)/,Po+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nm(e)-1-n>6)switch(zl(e,n+1)){case 109:if(zl(e,n+4)!==45)break;case 102:return Si(e,/(.+:)(.+)-([^]+)/,"$1"+Po+"$2-$3$1"+xP+(zl(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~iF(e,"stretch",0)?cst(Si(e,"stretch","fill-available"),n,r)+e:e}break;case 5152:case 5920:return Si(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,s,l,c,u){return va+o+":"+a+u+(s?va+o+"-span:"+(l?c:+c-+a)+u:"")+e});case 4949:if(zl(e,n+6)===121)return Si(e,":",":"+Po)+e;break;case 6444:switch(zl(e,zl(e,14)===45?18:11)){case 120:return Si(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Po+(zl(e,14)===45?"inline-":"")+"box$3$1"+Po+"$2$3$1"+va+"$2box$3")+e;case 100:return Si(e,":",":"+va)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Si(e,"scroll-","scroll-snap-")+e}return e}function Uj(e,n){for(var r="",i=0;i<e.length;i++)r+=n(e[i],i,e,n)||"";return r}function $ir(e,n,r,i){switch(e.type){case wir:if(e.children.length)break;case Cir:case lve:return e.return=e.return||e.value;case rst:return"";case ist:return e.return=e.value+"{"+Uj(e.children,i)+"}";case YV:if(!nm(e.value=e.props.join(",")))return""}return nm(r=Uj(e.children,i))?e.return=e.value+"{"+r+"}":""}function Fir(e){var n=sst(e);return function(r,i,o,a){for(var s="",l=0;l<n;l++)s+=e[l](r,i,o,a)||"";return s}}function Bir(e){return function(n){n.root||(n=n.return)&&e(n)}}function jir(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case lve:e.return=cst(e.value,e.length,r);return;case ist:return Uj([fb(e,{value:Si(e.value,"@","@"+Po)})],i);case YV:if(e.length)return Tir(r=e.props,function(o){switch(jv(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Hx(fb(e,{props:[Si(o,/:(read-\w+)/,":"+xP+"$1")]})),Hx(fb(e,{props:[o]})),Ise(e,{props:c$e(r,i)});break;case"::placeholder":Hx(fb(e,{props:[Si(o,/:(plac\w+)/,":"+Po+"input-$1")]})),Hx(fb(e,{props:[Si(o,/:(plac\w+)/,":"+xP+"$1")]})),Hx(fb(e,{props:[Si(o,/:(plac\w+)/,va+"input-$1")]})),Hx(fb(e,{props:[o]})),Ise(e,{props:c$e(r,i)});break}return""})}}var Uir={animationIterationCount:1,aspectRatio: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},Gd={npm_package_dependencies__flowgram_ai_form_materials:"0.1.26",npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",npm_package_devDependencies_prettier:"3.2.5",npm_package_devDependencies_electron_builder:"24.13.3",npm_package_scripts_build_mac_dmg:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-dmg.yml",npm_package_dependencies__flowgram_ai_free_container_plugin:"0.1.26",npm_package_dependencies_ts_protoc_gen:"^0.15.0",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",TERM_PROGRAM:"vscode",npm_package_dependencies__flowgram_ai_free_snap_plugin:"0.1.26",npm_package_dependencies_cheerio:"^1.0.0",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",npm_config_version_git_tag:"true",npm_package_homepage:"https://github.com/bytedesk/bytedesk#readme",npm_package_scripts_release_mac:"sh cicd/scripts/build-upload-mac.sh",npm_package_dependencies_axios:"^1.6.5",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.1.6",npm_package_devDependencies_vite_plugin_pwa:"^0.20.1",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",NVM_CD_FLAGS:"-q",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/agenticflow",npm_package_scripts_build_mac_mas:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-mas.yml",npm_package_devDependencies_jest:"^29.7.0",npm_package_devDependencies_vite:"^5.0.10",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shamefully_hoist:"true",npm_package_dependencies__emotion_styled:"11.11.5",npm_package_dependencies_react_infinite_scroll_component:"^6.1.0",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",npm_package_dependencies__ant_design_pro_provider:"^2.15.2",HOMEBREW_REPOSITORY:"/opt/homebrew",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",npm_config_init_license:"MIT",npm_package_dependencies__ant_design_x:"^1.1.0",npm_package_dependencies__langchain_community:"^0.2.28",npm_package_dependencies_socket_io:"^4.7.5",npm_package_locales_en_productName:"ByteDesk",npm_package_dependencies_debug:"^4.3.7",npm_package_dependencies_dompurify:"^3.0.9",npm_package_devDependencies__vitejs_plugin_react:"^4.0.4",TERM_PROGRAM_VERSION:"1.100.2",npm_package_scripts_dev:"vite --host --mode dev",npm_package_dependencies_express_rate_limit:"^7.2.0",npm_package_dependencies_uuid:"^9.0.1",MallocNanoZone:"0",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",ZDOTDIR:"/Users/ningjinpeng",npm_package_scripts_build_linux:"tsc && vite build --mode prod && electron-builder --linux --config electron-builder-linux.yml",npm_config_registry:"https://registry.npmmirror.com/",npm_package_private:"true",npm_package_devDependencies__flowgram_ai_eslint_config:"0.1.26",npm_package_devDependencies__flowgram_ai_ts_config:"0.1.26",npm_package_repository_url:"git+https://github.com/bytedesk/bytedesk.git",npm_package_dependencies__ant_design_icons:"^5.6.1",npm_package_dependencies__tanstack_react_query_devtools:"^5.21.0",npm_package_dependencies_bowser:"^2.11.0",npm_package_dependencies_react_dom:"^18.2.0",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies__ant_design_cssinjs:"^1.22.0",npm_package_dependencies_dayjs:"^1.11.11",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_readmeFilename:"README.md",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_description:"重复工作自动化",npm_package_debug_env_VITE_DEV_SERVER_URL:"http://127.0.0.1:9005/",npm_package_devDependencies__testing_library_react:"^14.2.2",npm_package_devDependencies_ajv:"^8.17.1",NVM_DIR:"/Users/ningjinpeng/.nvm",USER:"ningjinpeng",npm_package_license:"GNU",npm_package_devDependencies__types_react:"^18.2.20",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.4",COMMAND_MODE:"unix2003",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",npm_package_dependencies_bpmn_js:"^18.2.0",npm_package_scripts_release_mas:"sh cicd/scripts/build-mac-mas.sh",npm_package_dependencies_xgplayer:"^3.0.13",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/.pyenv/versions/3.11.4/bin:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/.pyenv/versions/3.11.4/bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",HOMEBREW_INSTALL_FROM_API:"1",rvm_path:"/Users/ningjinpeng/.rvm",npm_package_dependencies_react_virtuoso:"^4.7.1",npm_package_dependencies_zustand:"^4.4.7",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.VErDkzVDLf/Listeners",npm_package_devDependencies__types_express:"^4.17.21",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies_postcss:"^8.4.31",PUB_HOSTED_URL:"https://pub.flutter-io.cn",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",VSCODE_PROFILE_INITIALIZED:"1",npm_package_scripts_e2e:"playwright test",npm_execpath:"/usr/local/lib/node_modules/yarn/bin/yarn.js",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_author_name:"weiyuai.cn",npm_package_dependencies_react_use:"^17.5.0",npm_package_devDependencies__electron_osx_sign:"^1.3.1",npm_package_devDependencies__types_react_dom:"^18.2.7",npm_package_dependencies_peerjs:"^1.5.2",npm_package_devDependencies_styled_components:"^6.1.13",rvm_prefix:"/Users/ningjinpeng",npm_package_scripts_build_web:"tsc && vite build --mode web",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_config_argv:'{"remain":[],"cooked":["run","build:open"],"original":["build:open"]}',PATH:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/yarn--1748428796034-0.7032981089361436:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/agenticflow/node_modules/.bin:/Users/ningjinpeng/.config/yarn/link/node_modules/.bin:/Users/ningjinpeng/.yarn/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.pyenv/versions/3.11.4/bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/versions/3.11.4/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/.pyenv/versions/3.11.4/bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_scripts_release_web:"sh cicd/scripts/build-upload.sh",npm_package_dependencies__ant_design_use_emotion_css:"1.0.4",npm_package_dependencies_electron_context_menu:"^3.6.1",npm_config_auto_install_peers:"true",npm_package_dependencies__flowgram_ai_free_layout_editor:"0.1.26",npm_package_dependencies_react_contexify:"^6.0.0",npm_package_dependencies_react_syntax_highlighter:"^15.6.1",npm_package_dependencies_systeminformation:"^5.22.3",npm_package_devDependencies_ts_jest:"^29.1.2",__CFBundleIdentifier:"com.microsoft.VSCode",USER_ZDOTDIR:"/Users/ningjinpeng",npm_package_dependencies_electron_screenshots:"^0.5.26",npm_package_devDependencies_tailwindcss:"^3.3.3",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/agenticflow",npm_config_nodeLinker:"node-modules",npm_package_bugs_url:"https://github.com/bytedesk/bytedesk/issues",npm_package_scripts_preview:"vite preview --host",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",npm_package_dependencies__dnd_kit_core:"^6.2.0",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",npm_package_name:"agenticflow",npm_package_repository_type:"git",npm_package_dependencies_react_intl:"^6.8.9",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",LANG:"zh_CN.UTF-8",npm_package_scripts_build_win:"tsc && vite build --mode prod && electron-builder --win --config electron-builder-windows.yml",npm_package_scripts_release_quanjing:"sh cicd/scripts/build-quanjing.sh",npm_package_scripts_pree2e:"vite build --mode=test",npm_package_dependencies_file_saver:"^2.0.5",npm_package_devDependencies_vite_plugin_electron_renderer:"^0.14.5",npm_config_version_commit_hooks:"true",npm_package_scripts_start:"vite --host --mode dev",npm_package_scripts_build:"tsc && vite build --mode prod && electron-builder",npm_package_scripts_release_win:"sh cicd/scripts/build-upload-win.sh",npm_package_dependencies__dnd_kit_utilities:"^3.2.2",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_dependencies_menubar:"^9.4.0",npm_package_dependencies_react_router_dom:"^6.21.2",XPC_FLAGS:"0x0",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",npm_config_bin_links:"true",npm_package_dependencies__types_ua_parser_js:"^0.7.39",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_package_engines_node:">=20",npm_package_main:"dist-electron/main/index.js",npm_package_dependencies__tanstack_react_query:"^5.20.5",npm_package_dependencies_dexie:"^4.0.7",npm_package_version:"1.3.1",npm_package_dependencies__emotion_react:"11.11.4",npm_package_dependencies__flowgram_ai_free_lines_plugin:"0.1.26",npm_package_dependencies_node_json_db:"^2.3.1",npm_package_dependencies_ws:"^8.16.0",XPC_SERVICE_NAME:"0",npm_package_devDependencies_autoprefixer:"^10.4.16",rvm_version:"1.29.12 (latest)",VSCODE_INJECTION:"1",npm_package_type:"module",HOME:"/Users/ningjinpeng",PYENV_SHELL:"zsh",SHLVL:"3",npm_package_dependencies__dnd_kit_sortable:"^8.0.0",npm_package_dependencies_react_markdown:"^9.0.1",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",npm_config_strict_ssl:"true",npm_config_save_prefix:"^",npm_package_dependencies_bpmn_js_properties_panel:"^5.31.1",npm_package_dependencies_dotenv:"^16.4.5",npm_package_dependencies_mitt:"^3.0.1",npm_package_dependencies_openai:"^4.56.0",npm_config_version_git_message:"v%s",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_dependencies__flowgram_ai_minimap_plugin:"0.1.26",npm_package_devDependencies_cross_env:"^7.0.3",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__flowgram_ai_free_node_panel_plugin:"0.1.26",npm_package_dependencies_react_photo_view:"^1.2.6",npm_package_devDependencies__types_web_bluetooth:"^0.0.20",npm_package_dependencies_bytedesk_web:"^1.4.1",npm_package_dependencies_unique_names_generator:"^4.7.1",YARN_WRAP_OUTPUT:"false",LOGNAME:"ningjinpeng",npm_package_locales_zh_CN_productName:"微语",npm_lifecycle_script:"tsc && vite build --mode open",npm_package_author_email:"270580156@qq.com",npm_package_dependencies__douyinfe_semi_ui:"^2.79.0",npm_package_dependencies__xyflow_react:"^12.2.0",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-7f4d23a467.sock",npm_package_scripts_release_linux:"sh cicd/scripts/build-upload-linux.sh",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_mqtt:"^5.2.0",BUN_INSTALL:"/Users/ningjinpeng/.bun",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",npm_config_user_agent:"yarn/1.22.17 npm/? node/v20.0.0 darwin arm64",npm_config_ignore_scripts:"",npm_config_version_git_sign:"",npm_package_dependencies__dnd_kit_modifiers:"^7.0.0",npm_package_dependencies_node_cmd:"^5.0.0",npm_package_dependencies_text_search_engine:"^1.1.0",npm_package_devDependencies__electron_notarize:"^2.5.0",npm_package_dependencies_socket_io_client:"^4.7.5",npm_package_devDependencies__playwright_test:"^1.37.1",npm_package_devDependencies__types_node:"^20.12.3",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",npm_package_dependencies_express:"^4.18.3",npm_config_ignore_optional:"",npm_config_init_version:"1.0.0",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies_antd:"^5.23.2",npm_package_dependencies_langchain:"^0.2.16",npm_package_dependencies_antd_img_crop:"^4.23.0",npm_package_dependencies_electron_updater:"^6.1.1",npm_package_devDependencies_vite_plugin_electron:"^0.28.0",npm_package_dependencies__dicebear_collection:"^8.0.1",npm_package_dependencies__types_file_saver:"^2.0.7",npm_package_devDependencies_electron:"^33.2.0",npm_package_locales_zh_CN_description:"重复工作自动化",npm_config_version_tag_prefix:"v",npm_package_dependencies__ant_design_pro_components:"^2.6.28",npm_package_dependencies__dicebear_core:"^8.0.1",npm_package_dependencies__douyinfe_semi_icons:"^2.79.0",npm_package_dependencies__flowgram_ai_free_group_plugin:"0.1.26",npm_package_dependencies_dexie_react_hooks:"^1.1.7",npm_package_devDependencies__testing_library_jest_dom:"^6.4.2",npm_package_locales_en_description:"Chat as a Service",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",COLORTERM:"truecolor",NODE_ENV:"production"},DR=typeof process<"u"&&Gd!==void 0&&(Gd.REACT_APP_SC_ATTR||Gd.SC_ATTR)||"data-styled",ust="active",dst="data-styled-version",QV="6.1.13",uve=`/*!sc*/
|
||
`,Hj=typeof window<"u"&&"HTMLElement"in window,Hir=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Gd!==void 0&&Gd.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Gd.REACT_APP_SC_DISABLE_SPEEDY!==""?Gd.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Gd.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Gd!==void 0&&Gd.SC_DISABLE_SPEEDY!==void 0&&Gd.SC_DISABLE_SPEEDY!==""&&Gd.SC_DISABLE_SPEEDY!=="false"&&Gd.SC_DISABLE_SPEEDY),ZV=Object.freeze([]),kR=Object.freeze({});function zir(e,n,r){return r===void 0&&(r=kR),e.theme!==r.theme&&e.theme||n||r.theme}var fst=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Vir=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Gir=/(^-|-$)/g;function f$e(e){return e.replace(Vir,"-").replace(Gir,"")}var Wir=/(a)(d)/gi,m5=52,p$e=function(e){return String.fromCharCode(e+(e>25?39:97))};function Pse(e){var n,r="";for(n=Math.abs(e);n>m5;n=n/m5|0)r=p$e(n%m5)+r;return(p$e(n%m5)+r).replace(Wir,"$1-$2")}var zJ,pst=5381,RT=function(e,n){for(var r=n.length;r;)e=33*e^n.charCodeAt(--r);return e},hst=function(e){return RT(pst,e)};function Yir(e){return Pse(hst(e)>>>0)}function qir(e){return e.displayName||e.name||"Component"}function VJ(e){return typeof e=="string"&&!0}var gst=typeof Symbol=="function"&&Symbol.for,mst=gst?Symbol.for("react.memo"):60115,Kir=gst?Symbol.for("react.forward_ref"):60112,Xir={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qir={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vst={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zir=((zJ={})[Kir]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zJ[mst]=vst,zJ);function h$e(e){return("type"in(n=e)&&n.type.$$typeof)===mst?vst:"$$typeof"in e?Zir[e.$$typeof]:Xir;var n}var Jir=Object.defineProperty,eor=Object.getOwnPropertyNames,g$e=Object.getOwnPropertySymbols,tor=Object.getOwnPropertyDescriptor,nor=Object.getPrototypeOf,m$e=Object.prototype;function yst(e,n,r){if(typeof n!="string"){if(m$e){var i=nor(n);i&&i!==m$e&&yst(e,i,r)}var o=eor(n);g$e&&(o=o.concat(g$e(n)));for(var a=h$e(e),s=h$e(n),l=0;l<o.length;++l){var c=o[l];if(!(c in Qir||r&&r[c]||s&&c in s||a&&c in a)){var u=tor(n,c);try{Jir(e,c,u)}catch{}}}}return e}function LR(e){return typeof e=="function"}function dve(e){return typeof e=="object"&&"styledComponentId"in e}function p1(e,n){return e&&n?"".concat(e," ").concat(n):e||n||""}function v$e(e,n){if(e.length===0)return"";for(var r=e[0],i=1;i<e.length;i++)r+=e[i];return r}function TD(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ase(e,n,r){if(r===void 0&&(r=!1),!r&&!TD(e)&&!Array.isArray(e))return n;if(Array.isArray(n))for(var i=0;i<n.length;i++)e[i]=Ase(e[i],n[i]);else if(TD(n))for(var i in n)e[i]=Ase(e[i],n[i]);return e}function fve(e,n){Object.defineProperty(e,"toString",{value:n})}function d$(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):""))}var ror=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}return e.prototype.indexOfGroup=function(n){for(var r=0,i=0;i<n;i++)r+=this.groupSizes[i];return r},e.prototype.insertRules=function(n,r){if(n>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;n>=a;)if((a<<=1)<0)throw d$(16,"".concat(n));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var s=o;s<a;s++)this.groupSizes[s]=0}for(var l=this.indexOfGroup(n+1),c=(s=0,r.length);s<c;s++)this.tag.insertRule(l,r[s])&&(this.groupSizes[n]++,l++)},e.prototype.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],i=this.indexOfGroup(n),o=i+r;this.groupSizes[n]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],o=this.indexOfGroup(n),a=o+i,s=o;s<a;s++)r+="".concat(this.tag.getRule(s)).concat(uve);return r},e}(),sF=new Map,zj=new Map,lF=1,v5=function(e){if(sF.has(e))return sF.get(e);for(;zj.has(lF);)lF++;var n=lF++;return sF.set(e,n),zj.set(n,e),n},ior=function(e,n){lF=n+1,sF.set(e,n),zj.set(n,e)},oor="style[".concat(DR,"][").concat(dst,'="').concat(QV,'"]'),aor=new RegExp("^".concat(DR,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),sor=function(e,n,r){for(var i,o=r.split(","),a=0,s=o.length;a<s;a++)(i=o[a])&&e.registerName(n,i)},lor=function(e,n){for(var r,i=((r=n.textContent)!==null&&r!==void 0?r:"").split(uve),o=[],a=0,s=i.length;a<s;a++){var l=i[a].trim();if(l){var c=l.match(aor);if(c){var u=0|parseInt(c[1],10),d=c[2];u!==0&&(ior(d,u),sor(e,d,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},y$e=function(e){for(var n=document.querySelectorAll(oor),r=0,i=n.length;r<i;r++){var o=n[r];o&&o.getAttribute(DR)!==ust&&(lor(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function cor(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var _st=function(e){var n=document.head,r=e||n,i=document.createElement("style"),o=function(l){var c=Array.from(l.querySelectorAll("style[".concat(DR,"]")));return c[c.length-1]}(r),a=o!==void 0?o.nextSibling:null;i.setAttribute(DR,ust),i.setAttribute(dst,QV);var s=cor();return s&&i.setAttribute("nonce",s),r.insertBefore(i,a),i},uor=function(){function e(n){this.element=_st(n),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var i=document.styleSheets,o=0,a=i.length;o<a;o++){var s=i[o];if(s.ownerNode===r)return s}throw d$(17)}(this.element),this.length=0}return e.prototype.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},e.prototype.getRule=function(n){var r=this.sheet.cssRules[n];return r&&r.cssText?r.cssText:""},e}(),dor=function(){function e(n){this.element=_st(n),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(n,r){if(n<=this.length&&n>=0){var i=document.createTextNode(r);return this.element.insertBefore(i,this.nodes[n]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.prototype.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},e}(),por=function(){function e(n){this.rules=[],this.length=0}return e.prototype.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},e.prototype.deleteRule=function(n){this.rules.splice(n,1),this.length--},e.prototype.getRule=function(n){return n<this.length?this.rules[n]:""},e}(),_$e=Hj,hor={isServer:!Hj,useCSSOMInjection:!Hir},bst=function(){function e(n,r,i){n===void 0&&(n=kR),r===void 0&&(r={});var o=this;this.options=cd(cd({},hor),n),this.gs=r,this.names=new Map(i),this.server=!!n.isServer,!this.server&&Hj&&_$e&&(_$e=!1,y$e(this)),fve(this,function(){return function(a){for(var s=a.getTag(),l=s.length,c="",u=function(f){var p=function(_){return zj.get(_)}(f);if(p===void 0)return"continue";var h=a.names.get(p),g=s.getGroup(f);if(h===void 0||!h.size||g.length===0)return"continue";var v="".concat(DR,".g").concat(f,'[id="').concat(p,'"]'),y="";h!==void 0&&h.forEach(function(_){_.length>0&&(y+="".concat(_,","))}),c+="".concat(g).concat(v,'{content:"').concat(y,'"}').concat(uve)},d=0;d<l;d++)u(d);return c}(o)})}return e.registerId=function(n){return v5(n)},e.prototype.rehydrate=function(){!this.server&&Hj&&y$e(this)},e.prototype.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new e(cd(cd({},this.options),n),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(n=function(r){var i=r.useCSSOMInjection,o=r.target;return r.isServer?new por(o):i?new uor(o):new dor(o)}(this.options),new ror(n)));var n},e.prototype.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},e.prototype.registerName=function(n,r){if(v5(n),this.names.has(n))this.names.get(n).add(r);else{var i=new Set;i.add(r),this.names.set(n,i)}},e.prototype.insertRules=function(n,r,i){this.registerName(n,r),this.getTag().insertRules(v5(n),i)},e.prototype.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},e.prototype.clearRules=function(n){this.getTag().clearGroup(v5(n)),this.clearNames(n)},e.prototype.clearTag=function(){this.tag=void 0},e}(),gor=/&/g,mor=/^\s*\/\/.*$/gm;function Sst(e,n){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(n," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(n," ")),r.props=r.props.map(function(i){return"".concat(n," ").concat(i)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Sst(r.children,n)),r})}function vor(e){var n,r,i,o=kR,a=o.options,s=a===void 0?kR:a,l=o.plugins,c=l===void 0?ZV:l,u=function(p,h,g){return g.startsWith(r)&&g.endsWith(r)&&g.replaceAll(r,"").length>0?".".concat(n):p},d=c.slice();d.push(function(p){p.type===YV&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(gor,r).replace(i,u))}),s.prefix&&d.push(jir),d.push($ir);var f=function(p,h,g,v){h===void 0&&(h=""),g===void 0&&(g=""),v===void 0&&(v="&"),n=v,r=h,i=new RegExp("\\".concat(r,"\\b"),"g");var y=p.replace(mor,""),_=kir(g||h?"".concat(g," ").concat(h," { ").concat(y," }"):y);s.namespace&&(_=Sst(_,s.namespace));var S=[];return Uj(_,Fir(d.concat(Bir(function(b){return S.push(b)})))),S};return f.hash=c.length?c.reduce(function(p,h){return h.name||d$(15),RT(p,h.name)},pst).toString():"",f}var yor=new bst,Dse=vor(),Est=V.createContext({shouldForwardProp:void 0,styleSheet:yor,stylis:Dse});Est.Consumer;V.createContext(void 0);function b$e(){return m.useContext(Est)}var _or=function(){function e(n,r){var i=this;this.inject=function(o,a){a===void 0&&(a=Dse);var s=i.name+a.hash;o.hasNameForId(i.id,s)||o.insertRules(i.id,s,a(i.rules,s,"@keyframes"))},this.name=n,this.id="sc-keyframes-".concat(n),this.rules=r,fve(this,function(){throw d$(12,String(i.name))})}return e.prototype.getName=function(n){return n===void 0&&(n=Dse),this.name+n.hash},e}(),bor=function(e){return e>="A"&&e<="Z"};function S$e(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(r===1&&i==="-"&&e[0]==="-")return e;bor(i)?n+="-"+i.toLowerCase():n+=i}return n.startsWith("ms-")?"-"+n:n}var Cst=function(e){return e==null||e===!1||e===""},wst=function(e){var n,r,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Cst(a)&&(Array.isArray(a)&&a.isCss||LR(a)?i.push("".concat(S$e(o),":"),a,";"):TD(a)?i.push.apply(i,jj(jj(["".concat(o," {")],wst(a),!1),["}"],!1)):i.push("".concat(S$e(o),": ").concat((n=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||n in Uir||n.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return i};function j1(e,n,r,i){if(Cst(e))return[];if(dve(e))return[".".concat(e.styledComponentId)];if(LR(e)){if(!LR(a=e)||a.prototype&&a.prototype.isReactComponent||!n)return[e];var o=e(n);return j1(o,n,r,i)}var a;return e instanceof _or?r?(e.inject(r,i),[e.getName(i)]):[e]:TD(e)?wst(e):Array.isArray(e)?Array.prototype.concat.apply(ZV,e.map(function(s){return j1(s,n,r,i)})):[e.toString()]}function Sor(e){for(var n=0;n<e.length;n+=1){var r=e[n];if(LR(r)&&!dve(r))return!1}return!0}var Eor=hst(QV),Cor=function(){function e(n,r,i){this.rules=n,this.staticRulesId="",this.isStatic=(i===void 0||i.isStatic)&&Sor(n),this.componentId=r,this.baseHash=RT(Eor,r),this.baseStyle=i,bst.registerId(r)}return e.prototype.generateAndInjectStyles=function(n,r,i){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(n,r,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=p1(o,this.staticRulesId);else{var a=v$e(j1(this.rules,n,r,i)),s=Pse(RT(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,s)){var l=i(a,".".concat(s),void 0,this.componentId);r.insertRules(this.componentId,s,l)}o=p1(o,s),this.staticRulesId=s}else{for(var c=RT(this.baseHash,i.hash),u="",d=0;d<this.rules.length;d++){var f=this.rules[d];if(typeof f=="string")u+=f;else if(f){var p=v$e(j1(f,n,r,i));c=RT(c,p+d),u+=p}}if(u){var h=Pse(c>>>0);r.hasNameForId(this.componentId,h)||r.insertRules(this.componentId,h,i(u,".".concat(h),void 0,this.componentId)),o=p1(o,h)}}return o},e}(),xst=V.createContext(void 0);xst.Consumer;var GJ={};function wor(e,n,r){var i=dve(e),o=e,a=!VJ(e),s=n.attrs,l=s===void 0?ZV:s,c=n.componentId,u=c===void 0?function(E,w){var C=typeof E!="string"?"sc":f$e(E);GJ[C]=(GJ[C]||0)+1;var x="".concat(C,"-").concat(Yir(QV+C+GJ[C]));return w?"".concat(w,"-").concat(x):x}(n.displayName,n.parentComponentId):c,d=n.displayName,f=d===void 0?function(E){return VJ(E)?"styled.".concat(E):"Styled(".concat(qir(E),")")}(e):d,p=n.displayName&&n.componentId?"".concat(f$e(n.displayName),"-").concat(n.componentId):n.componentId||u,h=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,g=n.shouldForwardProp;if(i&&o.shouldForwardProp){var v=o.shouldForwardProp;if(n.shouldForwardProp){var y=n.shouldForwardProp;g=function(E,w){return v(E,w)&&y(E,w)}}else g=v}var _=new Cor(r,p,i?o.componentStyle:void 0);function S(E,w){return function(C,x,T){var R=C.attrs,O=C.componentStyle,M=C.defaultProps,P=C.foldedComponentIds,k=C.styledComponentId,$=C.target,U=V.useContext(xst),z=b$e(),D=C.shouldForwardProp||z.shouldForwardProp,B=zir(x,U,M)||kR,Y=function(le,Z,j){for(var F,te=cd(cd({},Z),{className:void 0,theme:j}),oe=0;oe<le.length;oe+=1){var de=LR(F=le[oe])?F(te):F;for(var pe in de)te[pe]=pe==="className"?p1(te[pe],de[pe]):pe==="style"?cd(cd({},te[pe]),de[pe]):de[pe]}return Z.className&&(te.className=p1(te.className,Z.className)),te}(R,x,B),q=Y.as||$,K={};for(var H in Y)Y[H]===void 0||H[0]==="$"||H==="as"||H==="theme"&&Y.theme===B||(H==="forwardedAs"?K.as=Y.forwardedAs:D&&!D(H,q)||(K[H]=Y[H]));var G=function(le,Z){var j=b$e(),F=le.generateAndInjectStyles(Z,j.styleSheet,j.stylis);return F}(O,Y),Q=p1(P,k);return G&&(Q+=" "+G),Y.className&&(Q+=" "+Y.className),K[VJ(q)&&!fst.has(q)?"class":"className"]=Q,K.ref=T,m.createElement(q,K)}(b,E,w)}S.displayName=f;var b=V.forwardRef(S);return b.attrs=h,b.componentStyle=_,b.displayName=f,b.shouldForwardProp=g,b.foldedComponentIds=i?p1(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=p,b.target=i?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=i?function(w){for(var C=[],x=1;x<arguments.length;x++)C[x-1]=arguments[x];for(var T=0,R=C;T<R.length;T++)Ase(w,R[T],!0);return w}({},o.defaultProps,E):E}}),fve(b,function(){return".".concat(b.styledComponentId)}),a&&yst(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function E$e(e,n){for(var r=[e[0]],i=0,o=n.length;i<o;i+=1)r.push(n[i],e[i+1]);return r}var C$e=function(e){return Object.assign(e,{isCss:!0})};function f$(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(LR(e)||TD(e))return C$e(j1(E$e(ZV,jj([e],n,!0))));var i=e;return n.length===0&&i.length===1&&typeof i[0]=="string"?j1(i):C$e(j1(E$e(i,n)))}function kse(e,n,r){if(r===void 0&&(r=kR),!n)throw d$(1,n);var i=function(o){for(var a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];return e(n,r,f$.apply(void 0,jj([o],a,!1)))};return i.attrs=function(o){return kse(e,n,cd(cd({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return kse(e,n,cd(cd({},r),o))},i}var Tst=function(e){return kse(wor,e)},oi=Tst;fst.forEach(function(e){oi[e]=Tst(e)});const{abs:$M,cos:Iv,sin:zx,acos:xor,atan2:FM,sqrt:eb,pow:Zf}=Math;function BM(e){return e<0?-Zf(-e,1/3):Zf(e,1/3)}const Ost=Math.PI,y5=2*Ost,tb=Ost/2,Tor=1e-6,WJ=Number.MAX_SAFE_INTEGER||9007199254740991,YJ=Number.MIN_SAFE_INTEGER||-9007199254740991,Oor={x:0,y:0,z:0},$n={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,n){const r=n(e);let i=r.x*r.x+r.y*r.y;return typeof r.z<"u"&&(i+=r.z*r.z),eb(i)},compute:function(e,n,r){if(e===0)return n[0].t=0,n[0];const i=n.length-1;if(e===1)return n[i].t=1,n[i];const o=1-e;let a=n;if(i===0)return n[0].t=e,n[0];if(i===1){const l={x:o*a[0].x+e*a[1].x,y:o*a[0].y+e*a[1].y,t:e};return r&&(l.z=o*a[0].z+e*a[1].z),l}if(i<4){let l=o*o,c=e*e,u,d,f,p=0;i===2?(a=[a[0],a[1],a[2],Oor],u=l,d=o*e*2,f=c):i===3&&(u=l*o,d=l*e*3,f=o*c*3,p=e*c);const h={x:u*a[0].x+d*a[1].x+f*a[2].x+p*a[3].x,y:u*a[0].y+d*a[1].y+f*a[2].y+p*a[3].y,t:e};return r&&(h.z=u*a[0].z+d*a[1].z+f*a[2].z+p*a[3].z),h}const s=JSON.parse(JSON.stringify(n));for(;s.length>1;){for(let l=0;l<s.length-1;l++)s[l]={x:s[l].x+(s[l+1].x-s[l].x)*e,y:s[l].y+(s[l+1].y-s[l].y)*e},typeof s[l].z<"u"&&(s[l].z=s[l].z+(s[l+1].z-s[l].z)*e);s.splice(s.length-1,1)}return s[0].t=e,s[0]},computeWithRatios:function(e,n,r,i){const o=1-e,a=r,s=n;let l=a[0],c=a[1],u=a[2],d=a[3],f;if(l*=o,c*=e,s.length===2)return f=l+c,{x:(l*s[0].x+c*s[1].x)/f,y:(l*s[0].y+c*s[1].y)/f,z:i?(l*s[0].z+c*s[1].z)/f:!1,t:e};if(l*=o,c*=2*o,u*=e*e,s.length===3)return f=l+c+u,{x:(l*s[0].x+c*s[1].x+u*s[2].x)/f,y:(l*s[0].y+c*s[1].y+u*s[2].y)/f,z:i?(l*s[0].z+c*s[1].z+u*s[2].z)/f:!1,t:e};if(l*=o,c*=1.5*o,u*=3*o,d*=e*e*e,s.length===4)return f=l+c+u+d,{x:(l*s[0].x+c*s[1].x+u*s[2].x+d*s[3].x)/f,y:(l*s[0].y+c*s[1].y+u*s[2].y+d*s[3].y)/f,z:i?(l*s[0].z+c*s[1].z+u*s[2].z+d*s[3].z)/f:!1,t:e}},derive:function(e,n){const r=[];for(let i=e,o=i.length,a=o-1;o>1;o--,a--){const s=[];for(let l=0,c;l<a;l++)c={x:a*(i[l+1].x-i[l].x),y:a*(i[l+1].y-i[l].y)},n&&(c.z=a*(i[l+1].z-i[l].z)),s.push(c);r.push(s),i=s}return r},between:function(e,n,r){return n<=e&&e<=r||$n.approximately(e,n)||$n.approximately(e,r)},approximately:function(e,n,r){return $M(e-n)<=(r||Tor)},length:function(e){const r=$n.Tvalues.length;let i=0;for(let o=0,a;o<r;o++)a=.5*$n.Tvalues[o]+.5,i+=$n.Cvalues[o]*$n.arcfn(a,e);return .5*i},map:function(e,n,r,i,o){const a=r-n,s=o-i,l=e-n,c=l/a;return i+s*c},lerp:function(e,n,r){const i={x:n.x+e*(r.x-n.x),y:n.y+e*(r.y-n.y)};return n.z!==void 0&&r.z!==void 0&&(i.z=n.z+e*(r.z-n.z)),i},pointToString:function(e){let n=e.x+"/"+e.y;return typeof e.z<"u"&&(n+="/"+e.z),n},pointsToString:function(e){return"["+e.map($n.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,n,r){const i=n.x-e.x,o=n.y-e.y,a=r.x-e.x,s=r.y-e.y,l=i*s-o*a,c=i*a+o*s;return FM(l,c)},round:function(e,n){const r=""+e,i=r.indexOf(".");return parseFloat(r.substring(0,i+1+n))},dist:function(e,n){const r=e.x-n.x,i=e.y-n.y;return eb(r*r+i*i)},closest:function(e,n){let r=Zf(2,63),i,o;return e.forEach(function(a,s){o=$n.dist(n,a),o<r&&(r=o,i=s)}),{mdist:r,mpos:i}},abcratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const r=Zf(e,n)+Zf(1-e,n),i=r-1;return $M(i/r)},projectionratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const r=Zf(1-e,n),i=Zf(e,n)+r;return r/i},lli8:function(e,n,r,i,o,a,s,l){const c=(e*i-n*r)*(o-s)-(e-r)*(o*l-a*s),u=(e*i-n*r)*(a-l)-(n-i)*(o*l-a*s),d=(e-r)*(a-l)-(n-i)*(o-s);return d==0?!1:{x:c/d,y:u/d}},lli4:function(e,n,r,i){const o=e.x,a=e.y,s=n.x,l=n.y,c=r.x,u=r.y,d=i.x,f=i.y;return $n.lli8(o,a,s,l,c,u,d,f)},lli:function(e,n){return $n.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new La(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=WJ,r=WJ,i=YJ,o=YJ;return e.forEach(function(a){const s=a.bbox();n>s.x.min&&(n=s.x.min),r>s.y.min&&(r=s.y.min),i<s.x.max&&(i=s.x.max),o<s.y.max&&(o=s.y.max)}),{x:{min:n,mid:(n+i)/2,max:i,size:i-n},y:{min:r,mid:(r+o)/2,max:o,size:o-r}}},shapeintersections:function(e,n,r,i,o){if(!$n.bboxoverlap(n,i))return[];const a=[],s=[e.startcap,e.forward,e.back,e.endcap],l=[r.startcap,r.forward,r.back,r.endcap];return s.forEach(function(c){c.virtual||l.forEach(function(u){if(u.virtual)return;const d=c.intersects(u,o);d.length>0&&(d.c1=c,d.c2=u,d.s1=e,d.s2=r,a.push(d))})}),a},makeshape:function(e,n,r){const i=n.points.length,o=e.points.length,a=$n.makeline(n.points[i-1],e.points[0]),s=$n.makeline(e.points[o-1],n.points[0]),l={startcap:a,forward:e,back:n,endcap:s,bbox:$n.findbbox([a,e,n,s])};return l.intersections=function(c){return $n.shapeintersections(l,l.bbox,c,c.bbox,r)},l},getminmax:function(e,n,r){if(!r)return{min:0,max:0};let i=WJ,o=YJ,a,s;r.indexOf(0)===-1&&(r=[0].concat(r)),r.indexOf(1)===-1&&r.push(1);for(let l=0,c=r.length;l<c;l++)a=r[l],s=e.get(a),s[n]<i&&(i=s[n]),s[n]>o&&(o=s[n]);return{min:i,mid:(i+o)/2,max:o,size:o-i}},align:function(e,n){const r=n.p1.x,i=n.p1.y,o=-FM(n.p2.y-i,n.p2.x-r),a=function(s){return{x:(s.x-r)*Iv(o)-(s.y-i)*zx(o),y:(s.x-r)*zx(o)+(s.y-i)*Iv(o)}};return e.map(a)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};const r=e.length-1,i=$n.align(e,n),o=function(x){return 0<=x&&x<=1};if(r===2){const x=i[0].y,T=i[1].y,R=i[2].y,O=x-2*T+R;if(O!==0){const M=-eb(T*T-x*R),P=-x+T,k=-(M+P)/O,$=-(-M+P)/O;return[k,$].filter(o)}else if(T!==R&&O===0)return[(2*T-R)/(2*T-2*R)].filter(o);return[]}const a=i[0].y,s=i[1].y,l=i[2].y,c=i[3].y;let u=-a+3*s-3*l+c,d=3*a-6*s+3*l,f=-3*a+3*s,p=a;if($n.approximately(u,0)){if($n.approximately(d,0))return $n.approximately(f,0)?[]:[-p/f].filter(o);const x=eb(f*f-4*d*p),T=2*d;return[(x-f)/T,(-f-x)/T].filter(o)}d/=u,f/=u,p/=u;const h=(3*f-d*d)/3,g=h/3,v=(2*d*d*d-9*d*f+27*p)/27,y=v/2,_=y*y+g*g*g;let S,b,E,w,C;if(_<0){const x=-h/3,T=x*x*x,R=eb(T),O=-v/(2*R),M=O<-1?-1:O>1?1:O,P=xor(M),k=BM(R),$=2*k;return E=$*Iv(P/3)-d/3,w=$*Iv((P+y5)/3)-d/3,C=$*Iv((P+2*y5)/3)-d/3,[E,w,C].filter(o)}else{if(_===0)return S=y<0?BM(-y):-BM(y),E=2*S-d/3,w=-S-d/3,[E,w].filter(o);{const x=eb(_);return S=BM(-y+x),b=BM(y+x),[S-b-d/3].filter(o)}}},droots:function(e){if(e.length===3){const n=e[0],r=e[1],i=e[2],o=n-2*r+i;if(o!==0){const a=-eb(r*r-n*i),s=-n+r,l=-(a+s)/o,c=-(-a+s)/o;return[l,c]}else if(r!==i&&o===0)return[(2*r-i)/(2*(r-i))];return[]}if(e.length===2){const n=e[0],r=e[1];return n!==r?[n/(n-r)]:[]}return[]},curvature:function(e,n,r,i,o){let a,s,l,c,u=0,d=0;const f=$n.compute(e,n),p=$n.compute(e,r),h=f.x*f.x+f.y*f.y;if(i?(a=eb(Zf(f.y*p.z-p.y*f.z,2)+Zf(f.z*p.x-p.z*f.x,2)+Zf(f.x*p.y-p.x*f.y,2)),s=Zf(h+f.z*f.z,3/2)):(a=f.x*p.y-f.y*p.x,s=Zf(h,3/2)),a===0||s===0)return{k:0,r:0};if(u=a/s,d=s/a,!o){const g=$n.curvature(e-.001,n,r,i,!0).k,v=$n.curvature(e+.001,n,r,i,!0).k;c=(v-u+(u-g))/2,l=($M(v-u)+$M(u-g))/2}return{k:u,r:d,dk:c,adk:l}},inflections:function(e){if(e.length<4)return[];const n=$n.align(e,{p1:e[0],p2:e.slice(-1)[0]}),r=n[2].x*n[1].y,i=n[3].x*n[1].y,o=n[1].x*n[2].y,a=n[3].x*n[2].y,s=18*(-3*r+2*i+3*o-a),l=18*(3*r-i-3*o),c=18*(o-r);if($n.approximately(s,0)){if(!$n.approximately(l,0)){let p=-c/l;if(0<=p&&p<=1)return[p]}return[]}const u=2*s;if($n.approximately(u,0))return[];const d=l*l-4*s*c;if(d<0)return[];const f=Math.sqrt(d);return[(f-l)/u,-(l+f)/u].filter(function(p){return 0<=p&&p<=1})},bboxoverlap:function(e,n){const r=["x","y"],i=r.length;for(let o=0,a,s,l,c;o<i;o++)if(a=r[o],s=e[a].mid,l=n[a].mid,c=(e[a].size+n[a].size)/2,$M(s-l)>=c)return!1;return!0},expandbox:function(e,n){n.x.min<e.x.min&&(e.x.min=n.x.min),n.y.min<e.y.min&&(e.y.min=n.y.min),n.z&&n.z.min<e.z.min&&(e.z.min=n.z.min),n.x.max>e.x.max&&(e.x.max=n.x.max),n.y.max>e.y.max&&(e.y.max=n.y.max),n.z&&n.z.max>e.z.max&&(e.z.max=n.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,n,r){const i=e.bbox(),o=n.bbox(),a=1e5,s=r||.5;if(i.x.size+i.y.size<s&&o.x.size+o.y.size<s)return[(a*(e._t1+e._t2)/2|0)/a+"/"+(a*(n._t1+n._t2)/2|0)/a];let l=e.split(.5),c=n.split(.5),u=[{left:l.left,right:c.left},{left:l.left,right:c.right},{left:l.right,right:c.right},{left:l.right,right:c.left}];u=u.filter(function(f){return $n.bboxoverlap(f.left.bbox(),f.right.bbox())});let d=[];return u.length===0||(u.forEach(function(f){d=d.concat($n.pairiteration(f.left,f.right,s))}),d=d.filter(function(f,p){return d.indexOf(f)===p})),d},getccenter:function(e,n,r){const i=n.x-e.x,o=n.y-e.y,a=r.x-n.x,s=r.y-n.y,l=i*Iv(tb)-o*zx(tb),c=i*zx(tb)+o*Iv(tb),u=a*Iv(tb)-s*zx(tb),d=a*zx(tb)+s*Iv(tb),f=(e.x+n.x)/2,p=(e.y+n.y)/2,h=(n.x+r.x)/2,g=(n.y+r.y)/2,v=f+l,y=p+c,_=h+u,S=g+d,b=$n.lli8(f,p,v,y,h,g,_,S),E=$n.dist(b,e);let w=FM(e.y-b.y,e.x-b.x),C=FM(n.y-b.y,n.x-b.x),x=FM(r.y-b.y,r.x-b.x),T;return w<x?((w>C||C>x)&&(w+=y5),w>x&&(T=x,x=w,w=T)):x<C&&C<w?(T=x,x=w,w=T):x+=y5,b.s=w,b.e=x,b.r=E,b},numberSort:function(e,n){return e-n}};class TP{constructor(n){this.curves=[],this._3d=!1,n&&(this.curves=n,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map(function(n){return $n.pointsToString(n.points)}).join(", ")+"]"}addCurve(n){this.curves.push(n),this._3d=this._3d||n._3d}length(){return this.curves.map(function(n){return n.length()}).reduce(function(n,r){return n+r})}curve(n){return this.curves[n]}bbox(){const n=this.curves;for(var r=n[0].bbox(),i=1;i<n.length;i++)$n.expandbox(r,n[i].bbox());return r}offset(n){const r=[];return this.curves.forEach(function(i){r.push(...i.offset(n))}),new TP(r)}}const{abs:jM,min:w$e,max:x$e,cos:Ror,sin:Ior,acos:Nor,sqrt:UM}=Math,Mor=Math.PI;class La{constructor(n){let r=n&&n.forEach?n:Array.from(arguments).slice(),i=!1;if(typeof r[0]=="object"){i=r.length;const h=[];r.forEach(function(g){["x","y","z"].forEach(function(v){typeof g[v]<"u"&&h.push(g[v])})}),r=h}let o=!1;const a=r.length;if(i){if(i>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");o=!0}}else if(a!==6&&a!==8&&a!==9&&a!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const s=this._3d=!o&&(a===9||a===12)||n&&n[0]&&typeof n[0].z<"u",l=this.points=[];for(let h=0,g=s?3:2;h<a;h+=g){var c={x:r[h],y:r[h+1]};s&&(c.z=r[h+2]),l.push(c)}const u=this.order=l.length-1,d=this.dims=["x","y"];s&&d.push("z"),this.dimlen=d.length;const f=$n.align(l,{p1:l[0],p2:l[u]}),p=$n.dist(l[0],l[u]);this._linear=f.reduce((h,g)=>h+jM(g.y),0)<p/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(n,r,i,o){if(typeof o>"u"&&(o=.5),o===0)return new La(r,r,i);if(o===1)return new La(n,r,r);const a=La.getABC(2,n,r,i,o);return new La(n,a.A,i)}static cubicFromPoints(n,r,i,o,a){typeof o>"u"&&(o=.5);const s=La.getABC(3,n,r,i,o);typeof a>"u"&&(a=$n.dist(r,s.C));const l=a*(1-o)/o,c=$n.dist(n,i),u=(i.x-n.x)/c,d=(i.y-n.y)/c,f=a*u,p=a*d,h=l*u,g=l*d,v={x:r.x-f,y:r.y-p},y={x:r.x+h,y:r.y+g},_=s.A,S={x:_.x+(v.x-_.x)/(1-o),y:_.y+(v.y-_.y)/(1-o)},b={x:_.x+(y.x-_.x)/o,y:_.y+(y.y-_.y)/o},E={x:n.x+(S.x-n.x)/o,y:n.y+(S.y-n.y)/o},w={x:i.x+(b.x-i.x)/(1-o),y:i.y+(b.y-i.y)/(1-o)};return new La(n,E,w,i)}static getUtils(){return $n}getUtils(){return La.getUtils()}static get PolyBezier(){return TP}valueOf(){return this.toString()}toString(){return $n.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const n=this.points,r=n[0].x,i=n[0].y,o=["M",r,i,this.order===2?"Q":"C"];for(let a=1,s=n.length;a<s;a++)o.push(n[a].x),o.push(n[a].y);return o.join(" ")}setRatios(n){if(n.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=n,this._lut=[]}verify(){const n=this.coordDigest();n!==this._print&&(this._print=n,this.update())}coordDigest(){return this.points.map(function(n,r){return""+r+n.x+n.y+(n.z?n.z:0)}).join("")}update(){this._lut=[],this.dpoints=$n.derive(this.points,this._3d),this.computedirection()}computedirection(){const n=this.points,r=$n.angle(n[0],n[this.order],n[1]);this.clockwise=r>0}length(){return $n.length(this.derivative.bind(this))}static getABC(n=2,r,i,o,a=.5){const s=$n.projectionratio(a,n),l=1-s,c={x:s*r.x+l*o.x,y:s*r.y+l*o.y},u=$n.abcratio(a,n);return{A:{x:i.x+(i.x-c.x)/u,y:i.y+(i.y-c.y)/u},B:i,C:c,S:r,E:o}}getABC(n,r){r=r||this.get(n);let i=this.points[0],o=this.points[this.order];return La.getABC(this.order,i,r,o,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n+1)return this._lut;this._lut=[],n++,this._lut=[];for(let r=0,i,o;r<n;r++)o=r/(n-1),i=this.compute(o),i.t=o,this._lut.push(i);return this._lut}on(n,r){r=r||5;const i=this.getLUT(),o=[];for(let a=0,s,l=0;a<i.length;a++)s=i[a],$n.dist(s,n)<r&&(o.push(s),l+=a/i.length);return o.length?t/=o.length:!1}project(n){const r=this.getLUT(),i=r.length-1,o=$n.closest(r,n),a=o.mpos,s=(a-1)/i,l=(a+1)/i,c=.1/i;let u=o.mdist,d=s,f=d,p;u+=1;for(let h;d<l+c;d+=c)p=this.compute(d),h=$n.dist(n,p),h<u&&(u=h,f=d);return f=f<0?0:f>1?1:f,p=this.compute(f),p.t=f,p.d=u,p}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?$n.computeWithRatios(n,this.points,this.ratios,this._3d):$n.compute(n,this.points,this._3d,this.ratios)}raise(){const n=this.points,r=[n[0]],i=n.length;for(let o=1,a,s;o<i;o++)a=n[o],s=n[o-1],r[o]={x:(i-o)/i*a.x+o/i*s.x,y:(i-o)/i*a.y+o/i*s.y};return r[i]=n[i-1],new La(r)}derivative(n){return $n.compute(n,this.dpoints[0],this._3d)}dderivative(n){return $n.compute(n,this.dpoints[1],this._3d)}align(){let n=this.points;return new La($n.align(n,{p1:n[0],p2:n[n.length-1]}))}curvature(n){return $n.curvature(n,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return $n.inflections(this.points)}normal(n){return this._3d?this.__normal3(n):this.__normal2(n)}__normal2(n){const r=this.derivative(n),i=UM(r.x*r.x+r.y*r.y);return{t:n,x:-r.y/i,y:r.x/i}}__normal3(n){const r=this.derivative(n),i=this.derivative(n+.01),o=UM(r.x*r.x+r.y*r.y+r.z*r.z),a=UM(i.x*i.x+i.y*i.y+i.z*i.z);r.x/=o,r.y/=o,r.z/=o,i.x/=a,i.y/=a,i.z/=a;const s={x:i.y*r.z-i.z*r.y,y:i.z*r.x-i.x*r.z,z:i.x*r.y-i.y*r.x},l=UM(s.x*s.x+s.y*s.y+s.z*s.z);s.x/=l,s.y/=l,s.z/=l;const c=[s.x*s.x,s.x*s.y-s.z,s.x*s.z+s.y,s.x*s.y+s.z,s.y*s.y,s.y*s.z-s.x,s.x*s.z-s.y,s.y*s.z+s.x,s.z*s.z];return{t:n,x:c[0]*r.x+c[1]*r.y+c[2]*r.z,y:c[3]*r.x+c[4]*r.y+c[5]*r.z,z:c[6]*r.x+c[7]*r.y+c[8]*r.z}}hull(n){let r=this.points,i=[],o=[],a=0;for(o[a++]=r[0],o[a++]=r[1],o[a++]=r[2],this.order===3&&(o[a++]=r[3]);r.length>1;){i=[];for(let s=0,l,c=r.length-1;s<c;s++)l=$n.lerp(n,r[s],r[s+1]),o[a++]=l,i.push(l);r=i}return o}split(n,r){if(n===0&&r)return this.split(r).left;if(r===1)return this.split(n).right;const i=this.hull(n),o={left:this.order===2?new La([i[0],i[3],i[5]]):new La([i[0],i[4],i[7],i[9]]),right:this.order===2?new La([i[5],i[4],i[2]]):new La([i[9],i[8],i[6],i[3]]),span:i};return o.left._t1=$n.map(0,0,1,this._t1,this._t2),o.left._t2=$n.map(n,0,1,this._t1,this._t2),o.right._t1=$n.map(n,0,1,this._t1,this._t2),o.right._t2=$n.map(1,0,1,this._t1,this._t2),r?(r=$n.map(r,n,1,0,1),o.right.split(r).left):o}extrema(){const n={};let r=[];return this.dims.forEach((function(i){let o=function(s){return s[i]},a=this.dpoints[0].map(o);n[i]=$n.droots(a),this.order===3&&(a=this.dpoints[1].map(o),n[i]=n[i].concat($n.droots(a))),n[i]=n[i].filter(function(s){return s>=0&&s<=1}),r=r.concat(n[i].sort($n.numberSort))}).bind(this)),n.values=r.sort($n.numberSort).filter(function(i,o){return r.indexOf(i)===o}),n}bbox(){const n=this.extrema(),r={};return this.dims.forEach((function(i){r[i]=$n.getminmax(this,i,n[i])}).bind(this)),r}overlaps(n){const r=this.bbox(),i=n.bbox();return $n.bboxoverlap(r,i)}offset(n,r){if(typeof r<"u"){const i=this.get(n),o=this.normal(n),a={c:i,n:o,x:i.x+o.x*r,y:i.y+o.y*r};return this._3d&&(a.z=i.z+o.z*r),a}if(this._linear){const i=this.normal(0),o=this.points.map(function(a){const s={x:a.x+n*i.x,y:a.y+n*i.y};return a.z&&i.z&&(s.z=a.z+n*i.z),s});return[new La(o)]}return this.reduce().map(function(i){return i._linear?i.offset(n)[0]:i.scale(n)})}simple(){if(this.order===3){const o=$n.angle(this.points[0],this.points[3],this.points[1]),a=$n.angle(this.points[0],this.points[3],this.points[2]);if(o>0&&a<0||o<0&&a>0)return!1}const n=this.normal(0),r=this.normal(1);let i=n.x*r.x+n.y*r.y;return this._3d&&(i+=n.z*r.z),jM(Nor(i))<Mor/3}reduce(){let n,r=0,i=0,o=.01,a,s=[],l=[],c=this.extrema().values;for(c.indexOf(0)===-1&&(c=[0].concat(c)),c.indexOf(1)===-1&&c.push(1),r=c[0],n=1;n<c.length;n++)i=c[n],a=this.split(r,i),a._t1=r,a._t2=i,s.push(a),r=i;return s.forEach(function(u){for(r=0,i=0;i<=1;)for(i=r+o;i<=1+o;i+=o)if(a=u.split(r,i),!a.simple()){if(i-=o,jM(r-i)<o)return[];a=u.split(r,i),a._t1=$n.map(r,0,1,u._t1,u._t2),a._t2=$n.map(i,0,1,u._t1,u._t2),l.push(a),r=i;break}r<1&&(a=u.split(r,1),a._t1=$n.map(r,0,1,u._t1,u._t2),a._t2=u._t2,l.push(a))}),l}translate(n,r,i){i=typeof i=="number"?i:r;const o=this.order;let a=this.points.map((s,l)=>(1-l/o)*r+l/o*i);return new La(this.points.map((s,l)=>({x:s.x+n.x*a[l],y:s.y+n.y*a[l]})))}scale(n){const r=this.order;let i=!1;if(typeof n=="function"&&(i=n),i&&r===2)return this.raise().scale(i);const o=this.clockwise,a=this.points;if(this._linear)return this.translate(this.normal(0),i?i(0):n,i?i(1):n);const s=i?i(0):n,l=i?i(1):n,c=[this.offset(0,10),this.offset(1,10)],u=[],d=$n.lli4(c[0],c[0].c,c[1],c[1].c);if(!d)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(f){const p=u[f*r]=$n.copy(a[f*r]);p.x+=(f?l:s)*c[f].n.x,p.y+=(f?l:s)*c[f].n.y}),i?([0,1].forEach(function(f){if(!(r===2&&f)){var p=a[f+1],h={x:p.x-d.x,y:p.y-d.y},g=i?i((f+1)/r):n;i&&!o&&(g=-g);var v=UM(h.x*h.x+h.y*h.y);h.x/=v,h.y/=v,u[f+1]={x:p.x+g*h.x,y:p.y+g*h.y}}}),new La(u)):([0,1].forEach(f=>{if(r===2&&f)return;const p=u[f*r],h=this.derivative(f),g={x:p.x+h.x,y:p.y+h.y};u[f+1]=$n.lli4(p,g,d,a[f+1])}),new La(u))}outline(n,r,i,o){if(r=r===void 0?n:r,this._linear){const w=this.normal(0),C=this.points[0],x=this.points[this.points.length-1];let T,R,O;i===void 0&&(i=n,o=r),T={x:C.x+w.x*n,y:C.y+w.y*n},O={x:x.x+w.x*i,y:x.y+w.y*i},R={x:(T.x+O.x)/2,y:(T.y+O.y)/2};const M=[T,R,O];T={x:C.x-w.x*r,y:C.y-w.y*r},O={x:x.x-w.x*o,y:x.y-w.y*o},R={x:(T.x+O.x)/2,y:(T.y+O.y)/2};const P=[O,R,T],k=$n.makeline(P[2],M[0]),$=$n.makeline(M[2],P[0]),U=[k,new La(M),$,new La(P)];return new TP(U)}const a=this.reduce(),s=a.length,l=[];let c=[],u,d=0,f=this.length();const p=typeof i<"u"&&typeof o<"u";function h(w,C,x,T,R){return function(O){const M=T/x,P=(T+R)/x,k=C-w;return $n.map(O,0,1,w+M*k,w+P*k)}}a.forEach(function(w){const C=w.length();p?(l.push(w.scale(h(n,i,f,d,C))),c.push(w.scale(h(-r,-o,f,d,C)))):(l.push(w.scale(n)),c.push(w.scale(-r))),d+=C}),c=c.map(function(w){return u=w.points,u[3]?w.points=[u[3],u[2],u[1],u[0]]:w.points=[u[2],u[1],u[0]],w}).reverse();const g=l[0].points[0],v=l[s-1].points[l[s-1].points.length-1],y=c[s-1].points[c[s-1].points.length-1],_=c[0].points[0],S=$n.makeline(y,g),b=$n.makeline(v,_),E=[S].concat(l).concat([b]).concat(c);return new TP(E)}outlineshapes(n,r,i){r=r||n;const o=this.outline(n,r).curves,a=[];for(let s=1,l=o.length;s<l/2;s++){const c=$n.makeshape(o[s],o[l-s],i);c.startcap.virtual=s>1,c.endcap.virtual=s<l/2-1,a.push(c)}return a}intersects(n,r){return n?n.p1&&n.p2?this.lineIntersects(n):(n instanceof La&&(n=n.reduce()),this.curveintersects(this.reduce(),n,r)):this.selfintersects(r)}lineIntersects(n){const r=w$e(n.p1.x,n.p2.x),i=w$e(n.p1.y,n.p2.y),o=x$e(n.p1.x,n.p2.x),a=x$e(n.p1.y,n.p2.y);return $n.roots(this.points,n).filter(s=>{var l=this.get(s);return $n.between(l.x,r,o)&&$n.between(l.y,i,a)})}selfintersects(n){const r=this.reduce(),i=r.length-2,o=[];for(let a=0,s,l,c;a<i;a++)l=r.slice(a,a+1),c=r.slice(a+2),s=this.curveintersects(l,c,n),o.push(...s);return o}curveintersects(n,r,i){const o=[];n.forEach(function(s){r.forEach(function(l){s.overlaps(l)&&o.push({left:s,right:l})})});let a=[];return o.forEach(function(s){const l=$n.pairiteration(s.left,s.right,i);l.length>0&&(a=a.concat(l))}),a}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,r,i,o){const a=(o-i)/4,s=this.get(i+a),l=this.get(o-a),c=$n.dist(n,r),u=$n.dist(n,s),d=$n.dist(n,l);return jM(u-c)+jM(d-c)}_iterate(n,r){let i=0,o=1,a;do{a=0,o=1;let s=this.get(i),l,c,u,d,f=!1,p=!1,h,g=o,v=1;do if(p=f,d=u,g=(i+o)/2,l=this.get(g),c=this.get(o),u=$n.getccenter(s,l,c),u.interval={start:i,end:o},f=this._error(u,s,i,o)<=n,h=p&&!f,h||(v=o),f){if(o>=1){if(u.interval.end=v=1,d=u,o>1){let _={x:u.x+u.r*Ror(u.e),y:u.y+u.r*Ior(u.e)};u.e+=$n.angle({x:u.x,y:u.y},_,this.get(1))}break}o=o+(o-i)/2}else o=g;while(!h&&a++<100);if(a>=100)break;d=d||u,r.push(d),i=v}while(o<1);return r}}var Por=Object.defineProperty,Aor=Object.getOwnPropertyDescriptor,kS=(e,n,r,i)=>{for(var o=i>1?void 0:i?Aor(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Por(n,r,o),o},Dor=3,kor=2,Lor="workflow-port-bg",$or=oi.div`
|
||
width: 20px;
|
||
height: 20px;
|
||
border-radius: 50%;
|
||
margin-top: -10px;
|
||
margin-left: -10px;
|
||
left: 50%;
|
||
top: 50%;
|
||
position: absolute;
|
||
// 非 hover 状态下的样式
|
||
border: none;
|
||
|
||
& > .symbol {
|
||
opacity: 0;
|
||
}
|
||
|
||
.bg-circle {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: absolute;
|
||
border-radius: 50%;
|
||
width: 20px;
|
||
height: 20px;
|
||
background-color: #fff;
|
||
transform: scale(0.5);
|
||
transition: all 0.2s linear 0s;
|
||
}
|
||
|
||
.bg {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: relative;
|
||
width: 100%;
|
||
height: 100%;
|
||
border-radius: 50%;
|
||
background: #9197F1;
|
||
transform: scale(0.4, 0.4);
|
||
transition: all 0.2s linear 0s;
|
||
|
||
&.hasError {
|
||
background: red;
|
||
}
|
||
|
||
.symbol {
|
||
position: absolute;
|
||
width: 14px;
|
||
height: 14px;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
color: #fff;
|
||
transition: opacity 0.2s linear 0s;
|
||
|
||
& > svg {
|
||
width: 14px;
|
||
height: 14px;
|
||
}
|
||
}
|
||
|
||
.focus-circle {
|
||
position: absolute;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
width: 8px;
|
||
height: 8px;
|
||
opacity: 0;
|
||
background: #9197f1;
|
||
border-radius: 50%;
|
||
transition: opacity 0.2s linear 0s;
|
||
}
|
||
}
|
||
|
||
&.linked .bg:not(.hasError) {
|
||
background: #4d53e8;
|
||
}
|
||
|
||
&.hovered .bg:not(.hasError) {
|
||
border: none;
|
||
cursor: crosshair;
|
||
transform: scale(1, 1);
|
||
background: #4d53e8;
|
||
|
||
& > .symbol {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
.cross-hair {
|
||
position: relative;
|
||
left: 2px;
|
||
top: 2px;
|
||
|
||
&::after,
|
||
&::before {
|
||
content: '';
|
||
background: #fff;
|
||
border-radius: 2px;
|
||
position: absolute;
|
||
}
|
||
|
||
&::after {
|
||
left: 4px;
|
||
width: 2px;
|
||
height: 6px;
|
||
box-shadow: 0 4px #fff;
|
||
}
|
||
|
||
&::before {
|
||
top: 4px;
|
||
width: 6px;
|
||
height: 2px;
|
||
box-shadow: 4px 0 #fff;
|
||
}
|
||
`;function For(){return V.createElement("div",{className:"symbol"},V.createElement("div",{className:"cross-hair"}))}var JV=V.memo(e=>{var x;const n=Di(Rf),r=Di(Ql),{entity:i,onClick:o}=e,{portType:a,relativePosition:s,disabled:l}=i,[c,u]=m.useState(i.targetElement),[d,f]=m.useState(s.x),[p,h]=m.useState(s.y),[g,v]=m.useState(!1),[y,_]=m.useState(!!((x=i==null?void 0:i.lines)!=null&&x.length)),[S,b]=m.useState(e.entity.hasError),E=Hat();m.useEffect(()=>{i.validate(),b(i.hasError);const T=i.onEntityChange(()=>{if(i.targetElement){i.targetElement!==c&&u(i.targetElement);return}const P=i.relativePosition;f(Math.round(P.x)),h(Math.round(P.y))}),R=n.onHoveredChange(P=>{v(n.isHovered(i.id))}),O=i.onErrorChanged(()=>{b(i.hasError)}),M=r.onAvailableLinesChange(()=>{setTimeout(()=>{r.disposed||i.disposed||_(!!i.lines.length)},0)});return()=>{T.dispose(),R.dispose(),O.dispose(),M.dispose()}},[n,i,c]);const w=ry(e.className||"",{hovered:!E&&g&&!l&&a!=="input",linked:y}),C=V.createElement($or,{className:w,style:c?e.style:{...e.style,left:d,top:p},onClick:o,"data-port-entity-id":i.id,"data-port-entity-type":i.portType,"data-testid":"sdk.workflow.canvas.node.port"},V.createElement("div",{className:ry("bg-circle","workflow-bg-circle")}),V.createElement("div",{className:ry({bg:!0,[Lor]:!0,"workflow-point-bg":!0,hasError:S})},V.createElement(For,null)),V.createElement("div",{className:"focus-circle"}));return c?Gl.createPortal(C,c):C}),Ac=6,Vj=12,Bor=oi.div.attrs({className:"gedit-flow-activity-edge"})`
|
||
position: absolute;
|
||
|
||
@keyframes flowingDash {
|
||
to {
|
||
stroke-dashoffset: -13;
|
||
}
|
||
}
|
||
|
||
.dashed-line {
|
||
stroke-dasharray: 8, 5;
|
||
}
|
||
|
||
.flowing-line {
|
||
animation: flowingDash 0.5s linear infinite;
|
||
}
|
||
`;function jor({id:e,pos:n,reverseArrow:r,strokeWidth:i,vertical:o,hide:a}){if(a)return null;const s=o?r?`M ${n.x-Ac},${n.y} L ${n.x},${n.y-Ac} L ${n.x+Ac},${n.y}`:`M ${n.x-Ac},${n.y-Ac} L ${n.x},${n.y} L ${n.x+Ac},${n.y-Ac}`:r?`M ${n.x},${n.y+Ac} L ${n.x-Ac},${n.y} L ${n.x},${n.y-Ac}`:`M ${n.x-Ac},${n.y-Ac} L ${n.x},${n.y} L ${n.x-Ac},${n.y+Ac}`;return V.createElement("path",{d:s,strokeLinecap:"round",stroke:`url(#${e})`,fill:"none",strokeWidth:i})}var Vx=12,Uor=e=>{const{line:n,color:r,selected:i,children:o,strokePrefix:a}=e,{position:s,reverse:l,vertical:c,hideArrow:u}=n,d=n.getData(by),{bounds:f,path:p}=d,h=w=>({x:w.x-f.x+Vx,y:w.y-f.y+Vx}),g=h(s.from),v=h(s.to),y=c?{x:v.x,y:v.y-vp}:{x:v.x-vp,y:v.y},_=c?{x:g.x,y:g.y+vp+Ac}:{x:g.x+vp+Ac,y:g.y},S=i?Dor:kor,b=a?`${a}-${n.id}`:n.id,E=V.createElement("path",{d:p,fill:"none",stroke:`url(#${b})`,strokeWidth:S,className:ry(n.className,!n.className&&(n.processing||n.flowing?"dashed-line flowing-line":""))});return V.createElement(Bor,{style:{left:f.x-Vx,top:f.y-Vx,position:"absolute"}},o,V.createElement("svg",{width:f.width+Vx*2,height:f.height+Vx*2},V.createElement("defs",null,V.createElement("linearGradient",{x1:c?"100%":"0%",y1:c?"0%":"100%",x2:"100%",y2:"100%",id:b,gradientUnits:"userSpaceOnUse"},V.createElement("stop",{stopColor:r,offset:"0%"}),V.createElement("stop",{stopColor:r,offset:"100%"}))),V.createElement("g",null,E,V.createElement(jor,{id:b,reverseArrow:l,pos:l?_:y,strokeWidth:S,vertical:c,hide:u}))))},Hor=m.memo(Uor,(e,n)=>e.version===n.version),pg=class extends Oa{constructor(){super(...arguments),this.layerID=nve(),this.mountedLines=new Map,this._version=0,this.node=Tr.createDivWithClass("gedit-playground-layer gedit-flow-lines-layer")}onZoom(e){this.node.style.transform=`scale(${e})`}onReady(){this.pipelineNode.appendChild(this.node),this.toDispose.pushAll([this.selectService.onSelectionChanged(()=>this.render()),this.hoverService.onHoveredChange(()=>this.render()),this.workflowDocument.linesManager.onForceUpdate(()=>{this.mountedLines.clear(),this.bumpVersion(),this.render()})])}dispose(){this.mountedLines.clear()}render(){const[,e]=m.useState({});m.useLayoutEffect(()=>{const i=requestAnimationFrame(()=>{let o=!1;this.lines.forEach(a=>{const s=a.getData(by),l=s.renderVersion;s.update(),s.renderVersion!==l&&(o=!0)}),o&&e({})});return()=>cancelAnimationFrame(i)},[this.lines]);const n=this.lines.map(r=>this.renderLine(r));return V.createElement(V.Fragment,null,n)}bumpVersion(){this._version=this._version+1,this._version===Number.MAX_SAFE_INTEGER&&(this._version=0)}lineProps(e){const{lineType:n}=this.workflowDocument.linesManager,r=this.selectService.isSelected(e.id),i=this.hoverService.isHovered(e.id),o=this.lineVersion(e);return{key:e.id,color:e.color,selected:r,hovered:i,line:e,lineType:n,version:o,strokePrefix:this.layerID}}lineVersion(e){const n=e.getData(by),{renderVersion:r}=n,i=this.selectService.isSelected(e.id),o=this.hoverService.isHovered(e.id),{version:a,color:s}=e;return`v:${this._version},lv:${a},rv:${r},c:${s},s:${i?"T":"F"},h:${o?"T":"F"}`}lineComponent(e){const n=this.options.renderInsideLine??(()=>V.createElement(V.Fragment,null));return V.createElement(Hor,{...e},V.createElement(n,{...e}))}renderLine(e){const n=this.lineProps(e),r=this.mountedLines.get(e.id),i=r!==void 0,{portal:o,version:a}=r??{};if(i&&a===n.version)return o;i||(this.renderElement.appendChild(e.node),e.onDispose(()=>{this.mountedLines.delete(e.id),e.node.remove()}));const s=Gl.createPortal(this.lineComponent(n),e.node);return this.mountedLines.set(e.id,{line:e,portal:s,version:n.version}),s}get renderElement(){return this.stackContext.node}};pg.type="WorkflowLinesLayer";kS([Ot(Rf)],pg.prototype,"hoverService",2);kS([Ot(Wa)],pg.prototype,"selectService",2);kS([Ot(mu)],pg.prototype,"stackContext",2);kS([Nme(Qd)],pg.prototype,"lines",2);kS([Nme(LC)],pg.prototype,"ports",2);kS([cv(Ap,Ui)],pg.prototype,"trans",2);kS([Ot(ei)],pg.prototype,"workflowDocument",2);pg=kS([Pn()],pg);var Qb=300;function zor(e,n){const r=Qn.createRectangleWithTwoPoints(e,n);let i;e.x<=n.x?i=e.y<=n.y?1:0:i=e.y<=n.y?3:2;let o;switch(i){case 0:o=[{x:r.rightBottom.x-r.width/2,y:r.rightBottom.y},{x:r.leftTop.x+r.width/2,y:r.leftTop.y}];break;case 1:o=[{x:r.rightTop.x-r.width/2,y:r.rightTop.y},{x:r.leftBottom.x+r.width/2,y:r.leftBottom.y}];break;case 2:o=[{x:r.rightBottom.x+Math.min(r.width,Qb),y:r.rightBottom.y},{x:r.leftTop.x-Math.min(r.width,Qb),y:r.leftTop.y}];break;case 3:o=[{x:r.rightTop.x+Math.min(r.width,Qb),y:r.rightTop.y},{x:r.leftBottom.x-Math.min(r.width,Qb),y:r.leftBottom.y}]}return o}function Vor(e,n){const r=Qn.createRectangleWithTwoPoints(e,n);let i;e.y<=n.y?i=e.x<=n.x?1:3:i=e.x<=n.x?0:2;let o;switch(i){case 1:o=[{x:r.leftTop.x,y:r.leftTop.y+r.height/2},{x:r.rightBottom.x,y:r.rightBottom.y-r.height/2}];break;case 3:o=[{x:r.rightTop.x,y:r.rightTop.y+r.height/2},{x:r.leftBottom.x,y:r.leftBottom.y-r.height/2}];break;case 0:o=[{x:r.leftBottom.x,y:r.leftBottom.y+Math.min(r.height,Qb)},{x:r.rightTop.x,y:r.rightTop.y-Math.min(r.height,Qb)}];break;case 2:o=[{x:r.rightBottom.x,y:r.rightBottom.y+Math.min(r.height,Qb)},{x:r.leftTop.x,y:r.leftTop.y-Math.min(r.height,Qb)}];break}return o}var Rst=class{constructor(e){this.entity=e}get path(){var e;return((e=this.data)==null?void 0:e.path)??""}calcDistance(e){return this.data?hf.getDistance(e,this.data.bezier.project(e)):Number.MAX_SAFE_INTEGER}get bounds(){return this.data?this.data.bbox:new Qn}update(e){this.data=this.calcBezier(e.fromPos,e.toPos)}calcBezier(e,n){const r=this.entity.vertical?Vor(e,n):zor(e,n),i=new La([e,...r,n]),o=i.bbox(),a=new Qn(o.x.min,o.y.min,o.x.max-o.x.min,o.y.max-o.y.min),s=this.getPath({bbox:a,fromPos:e,toPos:n,controls:r});return this.data={fromPos:e,toPos:n,bezier:i,bbox:a,controls:r,path:s},this.data}getPath(e){const{bbox:n}=e,r=u=>({x:u.x-n.x+Vj,y:u.y-n.y+Vj}),i=r(e.fromPos),o=r(e.toPos),a=e.controls.map(u=>r(u)),s=this.entity.vertical?{x:o.x,y:o.y-vp}:{x:o.x-vp,y:o.y};return(()=>{const u=a.map(f=>`${f.x} ${f.y}`).join(","),d=a.length===1?"S":"C";return this.entity.vertical?`M${i.x} ${i.y+vp} ${d} ${u}, ${s.x} ${s.y}`:`M${i.x+vp} ${i.y} ${d} ${u}, ${s.x} ${s.y}`})()}};Rst.type=eve.BEZIER;var Gor=(e,n,r)=>{const{x:i,y:o}=e,{x:a,y:s}=n,{x:l,y:c}=r,u=i-a,d=o-s,f=l-a,p=c-s,h=u*f+d*p,g=f*f+p*p,v=g===0?-1:h/g;let y,_;v<0?(y=a,_=s):v>1?(y=l,_=c):(y=a+v*f,_=s+v*p);const S=i-y,b=o-_;return Math.sqrt(S*S+b*b)},IT;(e=>{function i({source:u,target:d}){const f=Math.abs(d.x-u.x)/2,p=d.x<u.x?d.x+f:d.x-f,h=Math.abs(d.y-u.y)/2,g=d.y<u.y?d.y+h:d.y-h;return[p,g]}const o=({source:u,target:d})=>u.x<d.x?{x:1,y:0}:{x:-1,y:0};function a({source:u,target:d,vertical:f=!1}){const p=f?{x:0,y:1}:{x:1,y:0},h=f?{x:0,y:-1}:{x:-1,y:0},g={x:u.x+p.x*20,y:u.y+p.y*20},v={x:d.x+h.x*20,y:d.y+h.y*20},y=f?{x:0,y:g.y<v.y?1:-1}:o({source:g,target:v}),_=y.x!==0?"x":"y",S=y[_];let b=[],E,w;const[C,x]=i({source:u,target:d});if(p[_]*h[_]===-1){E=C,w=x;const R=[{x:E,y:g.y},{x:E,y:v.y}],O=[{x:g.x,y:w},{x:v.x,y:w}];p[_]===S?b=_==="x"?R:O:b=_==="x"?O:R}else{const R=[{x:g.x,y:v.y}],O=[{x:v.x,y:g.y}];_==="x"?b=p.x===S?O:R:b=p.y===S?R:O;const M=_==="x"?"y":"x",P=p[_]===h[M],k=g[M]>v[M],$=g[M]<v[M];(p[_]===1&&(!P&&k||P&&$)||p[_]!==1&&(!P&&$||P&&k))&&(b=_==="x"?R:O);const z={x:g.x,y:g.y},D={x:v.x,y:v.y},B=Math.max(Math.abs(z.x-b[0].x),Math.abs(D.x-b[0].x)),Y=Math.max(Math.abs(z.y-b[0].y),Math.abs(D.y-b[0].y));B>=Y?(E=(z.x+D.x)/2,w=b[0].y):(E=b[0].x,w=(z.y+D.y)/2)}return[u,{x:g.x,y:g.y},...b,{x:v.x,y:v.y},d]}e.getPoints=a;function s(u,d,f){const p=Math.min(hf.getDistance(u,d)/2,hf.getDistance(d,f)/2,5),{x:h,y:g}=d;if(u.x===h&&h===f.x||u.y===g&&g===f.y)return`L${h} ${g}`;if(u.y===g){const _=u.x<f.x?-1:1,S=u.y<f.y?1:-1;return`L ${h+p*_},${g}Q ${h},${g} ${h},${g+p*S}`}const v=u.x<f.x?1:-1,y=u.y<f.y?-1:1;return`L ${h},${g+p*y}Q ${h},${g} ${h+p*v},${g}`}function l(u){return u.reduce((f,p,h)=>{let g="";return h>0&&h<u.length-1?g=s(u[h-1],p,u[h+1]):g=`${h===0?"M":"L"}${p.x} ${p.y}`,f+=g,f},"")}e.getSmoothStepPath=l;function c(u){const d=u.map(y=>y.x),f=u.map(y=>y.y),p=Math.min(...d),h=Math.max(...d),g=Math.min(...f),v=Math.max(...f);return Qn.createRectangleWithTwoPoints({x:p,y:g},{x:h,y:v})}e.getBounds=c,e.getFoldLineToPointDistance=(u,d)=>{if(u.length===0)return 1/0;if(u.length===1)return hf.getDistance(u[0],d);const f=[];for(let h=0;h<u.length-1;h++)f.push([u[h],u[h+1]]);const p=f.map(h=>{const[g,v]=h;return Gor(d,g,v)});return Math.min(...p)}})(IT||(IT={}));var Ist=class{constructor(e){this.entity=e}get path(){var e;return((e=this.data)==null?void 0:e.path)??""}calcDistance(e){return this.data?IT.getFoldLineToPointDistance(this.data.points,e):Number.MAX_SAFE_INTEGER}get bounds(){return this.data?this.data.bbox:new Qn}update(e){const{fromPos:n,toPos:r}=e,{vertical:i}=this.entity,o={x:i?0:vp,y:i?vp:0},a={x:i?0:-vp,y:i?-vp:0},s=IT.getPoints({source:{x:n.x+o.x,y:n.y+o.y},target:{x:r.x+a.x,y:r.y+a.y},vertical:i}),l=IT.getBounds(s),c=s.map(d=>({x:d.x-l.x+Vj,y:d.y-l.y+Vj})),u=IT.getSmoothStepPath(c);this.data={points:s,path:u,bbox:l}}};Ist.type=eve.LINE_CHART;var Nst=pa({singleton:!0,onInit:(e,n)=>{e.playground.registerLayer(pg,{...n})},onReady:(e,n)=>{const r=e.container.get(Ql);r.registerContribution(Rst).registerContribution(Ist),n.contributions&&n.contributions.forEach(i=>{r.registerContribution(i)}),n.defaultLineType&&r.switchLineType(n.defaultLineType)}}),Wor=Object.defineProperty,Yor=Object.getOwnPropertyDescriptor,Rg=(e,n,r,i)=>{for(var o=i>1?void 0:i?Yor(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Wor(n,r,o),o},qor=2;function Kor(e,n=!0){const r=e.filter(i=>i instanceof Ap);return r.length>(n?1:0)?Qn.enlarge(r.map(i=>i.getData(hr).bounds)).pad(qor):Qn.EMPTY}var Xor="workflow-port-bg",Lse;(e=>{e.DEFAULT={canHovered:()=>!0}})(Lse||(Lse={}));var Qor=".gedit-flow-activity-line",Zor=".gedit-flow-activity-node",_d=class extends Oa{constructor(){super(...arguments),this.nodeTransformsWithSort=[]}autorun(){const{activatedNode:e}=this.selectionService;this.nodeTransformsWithSort=this.nodeTransforms.filter(n=>n.entity.id!=="root").reverse().sort(n=>n.entity===e?-1:0)}get isDrawing(){return this.linesManager.isDrawing}onReady(){this.options={...Lse.DEFAULT,...this.options},this.toDispose.pushAll([this.listenPlaygroundEvent("mousemove",e=>{if(this.hoverService.hoveredPos=this.config.getPosFromMouseEvent(e),!this.isEnabled()||!this.options.canHovered(e,this.hoverService))return;const n=this.config.getPosFromMouseEvent(e);this.updateHoveredState(n,e==null?void 0:e.target)}),this.selectionService.onSelectionChanged(()=>this.autorun()),this.listenPlaygroundEvent("mousedown",e=>{var o;if(!this.isEnabled()||this.isDrawing)return;const{hoveredNode:n}=this.hoverService;if(n&&n instanceof Qd)return this.dragService.resetLine(n,e),!0;if(n&&n instanceof LC&&n.portType!=="input"&&!n.disabled&&e.button!==1)return e.stopPropagation(),e.preventDefault(),this.dragService.startDrawingLine(n,e),!0;const r=this.config.getPosFromMouseEvent(e),i=Kor(this.selectionService.selection,!0);if(i.width>0&&i.contains(r.x,r.y))return(o=this.dragService.startDragSelectedNodes(e))==null||o.then(a=>{a||(n&&n instanceof Ap?e.shiftKey?this.selectionService.toggleSelect(n):this.selectionService.selectNode(n):this.selectionService.clear())}),!0;n||this.selectionService.clear()})])}updateHoveredState(e,n){var v,y,_;const{hoverService:r}=this,i=this.nodeTransformsWithSort,o=this.linesManager.getPortFromMousePos(e),s=[...this.playgroundNode.querySelectorAll(Qor)].some(S=>S.contains(n));if(o){if(o.portType==="output")r.updateHoveredKey(o.id);else if(s||(y=(v=n==null?void 0:n.className)==null?void 0:v.includes)!=null&&y.call(v,Xor)){const S=this.linesManager.getCloseInLineFromMousePos(e);S&&this.updateHoveredKey(S.id)}return}if(this.isDrawing)return;const l=(_=i.find(S=>S.bounds.contains(e.x,e.y)))==null?void 0:_.entity,u=[...this.playgroundNode.querySelectorAll(Zor)].some(S=>S.contains(n));(l||u)&&l!=null&&l.id&&this.updateHoveredKey(l.id);const d=!!(l!=null&&l.parent&&l.parent.flowNodeType!=="root"),f=s?this.linesManager.getCloseInLineFromMousePos(e):void 0,p=!!(f!=null&&f.inContainer);if(l&&d){this.updateHoveredKey(l.id);return}if(f&&p){this.updateHoveredKey(f.id);return}if(l){this.updateHoveredKey(l.id);return}if(f){this.hoverService.updateHoveredKey(f.id);return}r.clearHovered(),this.editorStateConfig.getCurrentState()===ko.STATE_MOUSE_FRIENDLY_SELECT&&!this.editorStateConfig.isPressingShift&&this.configEntity.updateCursor("grab")}updateHoveredKey(e){this.configEntity.updateCursor("default"),this.hoverService.updateHoveredKey(e)}isEnabled(){const e=this.editorStateConfig.getCurrentState();return(e===ko.STATE_SELECT||e===ko.STATE_MOUSE_FRIENDLY_SELECT)&&!this.selectorBoxConfigEntity.isStart&&!this.dragService.isDragging}};_d.type="HoverLayer";Rg([Ot(ei)],_d.prototype,"document",2);Rg([Ot(Wa)],_d.prototype,"selectionService",2);Rg([Ot(Ya)],_d.prototype,"dragService",2);Rg([Ot(Rf)],_d.prototype,"hoverService",2);Rg([Ot(Ql)],_d.prototype,"linesManager",2);Rg([zo(Um)],_d.prototype,"editorStateConfig",2);Rg([zo(s$)],_d.prototype,"selectorBoxConfigEntity",2);Rg([Ot(da)],_d.prototype,"configEntity",2);Rg([cv(Ap,hr)],_d.prototype,"nodeTransforms",2);Rg([Nme(Qd)],_d.prototype,"lines",2);_d=Rg([Pn()],_d);var Jor=pa({onInit(e){e.playground.registerLayer(_d)}}),ear="\0",CE="\0",T$e="";let tar=class{constructor(n){$t(this,"_isDirected",!0);$t(this,"_isMultigraph",!1);$t(this,"_isCompound",!1);$t(this,"_label");$t(this,"_defaultNodeLabelFn",()=>{});$t(this,"_defaultEdgeLabelFn",()=>{});$t(this,"_nodes",{});$t(this,"_in",{});$t(this,"_preds",{});$t(this,"_out",{});$t(this,"_sucs",{});$t(this,"_edgeObjs",{});$t(this,"_edgeLabels",{});$t(this,"_nodeCount",0);$t(this,"_edgeCount",0);$t(this,"_parent");$t(this,"_children");n&&(this._isDirected=n.hasOwnProperty("directed")?n.directed:!0,this._isMultigraph=n.hasOwnProperty("multigraph")?n.multigraph:!1,this._isCompound=n.hasOwnProperty("compound")?n.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[CE]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(n){return this._label=n,this}graph(){return this._label}setDefaultNodeLabel(n){return this._defaultNodeLabelFn=n,typeof n!="function"&&(this._defaultNodeLabelFn=()=>n),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var n=this;return this.nodes().filter(r=>Object.keys(n._in[r]).length===0)}sinks(){var n=this;return this.nodes().filter(r=>Object.keys(n._out[r]).length===0)}setNodes(n,r){var i=arguments,o=this;return n.forEach(function(a){i.length>1?o.setNode(a,r):o.setNode(a)}),this}setNode(n,r){return this._nodes.hasOwnProperty(n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=CE,this._children[n]={},this._children[CE][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return this._nodes.hasOwnProperty(n)}removeNode(n){var r=this;if(this._nodes.hasOwnProperty(n)){var i=o=>r.removeEdge(r._edgeObjs[o]);delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],this.children(n).forEach(function(o){r.setParent(o)}),delete this._children[n]),Object.keys(this._in[n]).forEach(i),delete this._in[n],delete this._preds[n],Object.keys(this._out[n]).forEach(i),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r===void 0)r=CE;else{r+="";for(var i=r;i!==void 0;i=this.parent(i))if(i===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==CE)return r}}children(n=CE){if(this._isCompound){var r=this._children[n];if(r)return Object.keys(r)}else{if(n===CE)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return Object.keys(r)}successors(n){var r=this._sucs[n];if(r)return Object.keys(r)}neighbors(n){var r=this.predecessors(n);if(r){const o=new Set(r);for(var i of this.successors(n))o.add(i);return Array.from(o.values())}}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;Object.entries(this._nodes).forEach(function([s,l]){n(s)&&r.setNode(s,l)}),Object.values(this._edgeObjs).forEach(function(s){r.hasNode(s.v)&&r.hasNode(s.w)&&r.setEdge(s,i.edge(s))});var o={};function a(s){var l=i.parent(s);return l===void 0||r.hasNode(l)?(o[s]=l,l):l in o?o[l]:a(l)}return this._isCompound&&r.nodes().forEach(s=>r.setParent(s,a(s))),r}setDefaultEdgeLabel(n){return this._defaultEdgeLabelFn=n,typeof n!="function"&&(this._defaultEdgeLabelFn=()=>n),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(n,r){var i=this,o=arguments;return n.reduce(function(a,s){return o.length>1?i.setEdge(a,s,r):i.setEdge(a,s),s}),this}setEdge(){var n,r,i,o,a=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(n=s.v,r=s.w,i=s.name,arguments.length===2&&(o=arguments[1],a=!0)):(n=s,r=arguments[1],i=arguments[3],arguments.length>2&&(o=arguments[2],a=!0)),n=""+n,r=""+r,i!==void 0&&(i=""+i);var l=N2(this._isDirected,n,r,i);if(this._edgeLabels.hasOwnProperty(l))return a&&(this._edgeLabels[l]=o),this;if(i!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[l]=a?o:this._defaultEdgeLabelFn(n,r,i);var c=nar(this._isDirected,n,r,i);return n=c.v,r=c.w,Object.freeze(c),this._edgeObjs[l]=c,O$e(this._preds[r],n),O$e(this._sucs[n],r),this._in[r][l]=c,this._out[n][l]=c,this._edgeCount++,this}edge(n,r,i){var o=arguments.length===1?qJ(this._isDirected,arguments[0]):N2(this._isDirected,n,r,i);return this._edgeLabels[o]}edgeAsObj(){const n=this.edge(...arguments);return typeof n!="object"?{label:n}:n}hasEdge(n,r,i){var o=arguments.length===1?qJ(this._isDirected,arguments[0]):N2(this._isDirected,n,r,i);return this._edgeLabels.hasOwnProperty(o)}removeEdge(n,r,i){var o=arguments.length===1?qJ(this._isDirected,arguments[0]):N2(this._isDirected,n,r,i),a=this._edgeObjs[o];return a&&(n=a.v,r=a.w,delete this._edgeLabels[o],delete this._edgeObjs[o],R$e(this._preds[r],n),R$e(this._sucs[n],r),delete this._in[r][o],delete this._out[n][o],this._edgeCount--),this}inEdges(n,r){var i=this._in[n];if(i){var o=Object.values(i);return r?o.filter(a=>a.v===r):o}}outEdges(n,r){var i=this._out[n];if(i){var o=Object.values(i);return r?o.filter(a=>a.w===r):o}}nodeEdges(n,r){var i=this.inEdges(n,r);if(i)return i.concat(this.outEdges(n,r))}};function O$e(e,n){e[n]?e[n]++:e[n]=1}function R$e(e,n){--e[n]||delete e[n]}function N2(e,n,r,i){var o=""+n,a=""+r;if(!e&&o>a){var s=o;o=a,a=s}return o+T$e+a+T$e+(i===void 0?ear:i)}function nar(e,n,r,i){var o=""+n,a=""+r;if(!e&&o>a){var s=o;o=a,a=s}var l={v:o,w:a};return i&&(l.name=i),l}function qJ(e,n){return N2(e,n.v,n.w,n.name)}var pve=tar,rar="2.2.2",iar={Graph:pve,version:rar},oar=pve,aar={write:sar,read:uar};function sar(e){var n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:lar(e),edges:car(e)};return e.graph()!==void 0&&(n.value=structuredClone(e.graph())),n}function lar(e){return e.nodes().map(function(n){var r=e.node(n),i=e.parent(n),o={v:n};return r!==void 0&&(o.value=r),i!==void 0&&(o.parent=i),o})}function car(e){return e.edges().map(function(n){var r=e.edge(n),i={v:n.v,w:n.w};return n.name!==void 0&&(i.name=n.name),r!==void 0&&(i.value=r),i})}function uar(e){var n=new oar(e.options).setGraph(e.value);return e.nodes.forEach(function(r){n.setNode(r.v,r.value),r.parent&&n.setParent(r.v,r.parent)}),e.edges.forEach(function(r){n.setEdge({v:r.v,w:r.w,name:r.name},r.value)}),n}var dar=far;function far(e){var n={},r=[],i;function o(a){n.hasOwnProperty(a)||(n[a]=!0,i.push(a),e.successors(a).forEach(o),e.predecessors(a).forEach(o))}return e.nodes().forEach(function(a){i=[],o(a),i.length&&r.push(i)}),r}let par=class{constructor(){$t(this,"_arr",[]);$t(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(n){return n.key})}has(n){return this._keyIndices.hasOwnProperty(n)}priority(n){var r=this._keyIndices[n];if(r!==void 0)return this._arr[r].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(n,r){var i=this._keyIndices;if(n=String(n),!i.hasOwnProperty(n)){var o=this._arr,a=o.length;return i[n]=a,o.push({key:n,priority:r}),this._decrease(a),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key}decrease(n,r){var i=this._keyIndices[n];if(r>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[i].priority+" New: "+r);this._arr[i].priority=r,this._decrease(i)}_heapify(n){var r=this._arr,i=2*n,o=i+1,a=n;i<r.length&&(a=r[i].priority<r[a].priority?i:a,o<r.length&&(a=r[o].priority<r[a].priority?o:a),a!==n&&(this._swap(n,a),this._heapify(a)))}_decrease(n){for(var r=this._arr,i=r[n].priority,o;n!==0&&(o=n>>1,!(r[o].priority<i));)this._swap(n,o),n=o}_swap(n,r){var i=this._arr,o=this._keyIndices,a=i[n],s=i[r];i[n]=s,i[r]=a,o[s.key]=n,o[a.key]=r}};var Mst=par,har=Mst,Pst=mar,gar=()=>1;function mar(e,n,r,i){return yar(e,String(n),r||gar,i||function(o){return e.outEdges(o)})}function yar(e,n,r,i){var o={},a=new har,s,l,c=function(u){var d=u.v!==s?u.v:u.w,f=o[d],p=r(u),h=l.distance+p;if(p<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+u+" Weight: "+p);h<f.distance&&(f.distance=h,f.predecessor=s,a.decrease(d,h))};for(e.nodes().forEach(function(u){var d=u===n?0:Number.POSITIVE_INFINITY;o[u]={distance:d},a.add(u,d)});a.size()>0&&(s=a.removeMin(),l=o[s],l.distance!==Number.POSITIVE_INFINITY);)i(s).forEach(c);return o}var _ar=Pst,bar=Sar;function Sar(e,n,r){return e.nodes().reduce(function(i,o){return i[o]=_ar(e,o,n,r),i},{})}var Ast=Ear;function Ear(e){var n=0,r=[],i={},o=[];function a(s){var l=i[s]={onStack:!0,lowlink:n,index:n++};if(r.push(s),e.successors(s).forEach(function(d){i.hasOwnProperty(d)?i[d].onStack&&(l.lowlink=Math.min(l.lowlink,i[d].index)):(a(d),l.lowlink=Math.min(l.lowlink,i[d].lowlink))}),l.lowlink===l.index){var c=[],u;do u=r.pop(),i[u].onStack=!1,c.push(u);while(s!==u);o.push(c)}}return e.nodes().forEach(function(s){i.hasOwnProperty(s)||a(s)}),o}var Car=Ast,war=xar;function xar(e){return Car(e).filter(function(n){return n.length>1||n.length===1&&e.hasEdge(n[0],n[0])})}var Tar=Rar,Oar=()=>1;function Rar(e,n,r){return Iar(e,n||Oar,r||function(i){return e.outEdges(i)})}function Iar(e,n,r){var i={},o=e.nodes();return o.forEach(function(a){i[a]={},i[a][a]={distance:0},o.forEach(function(s){a!==s&&(i[a][s]={distance:Number.POSITIVE_INFINITY})}),r(a).forEach(function(s){var l=s.v===a?s.w:s.v,c=n(s);i[a][l]={distance:c,predecessor:a}})}),o.forEach(function(a){var s=i[a];o.forEach(function(l){var c=i[l];o.forEach(function(u){var d=c[a],f=s[u],p=c[u],h=d.distance+f.distance;h<p.distance&&(p.distance=h,p.predecessor=f.predecessor)})})}),i}function Dst(e){var n={},r={},i=[];function o(a){if(r.hasOwnProperty(a))throw new $se;n.hasOwnProperty(a)||(r[a]=!0,n[a]=!0,e.predecessors(a).forEach(o),delete r[a],i.push(a))}if(e.sinks().forEach(o),Object.keys(n).length!==e.nodeCount())throw new $se;return i}class $se extends Error{constructor(){super(...arguments)}}var kst=Dst;Dst.CycleException=$se;var I$e=kst,Nar=Mar;function Mar(e){try{I$e(e)}catch(n){if(n instanceof I$e.CycleException)return!1;throw n}return!0}var Lst=Par;function Par(e,n,r){Array.isArray(n)||(n=[n]);var i=e.isDirected()?l=>e.successors(l):l=>e.neighbors(l),o=r==="post"?Aar:Dar,a=[],s={};return n.forEach(l=>{if(!e.hasNode(l))throw new Error("Graph does not have node: "+l);o(l,i,s,a)}),a}function Aar(e,n,r,i){for(var o=[[e,!1]];o.length>0;){var a=o.pop();a[1]?i.push(a[0]):r.hasOwnProperty(a[0])||(r[a[0]]=!0,o.push([a[0],!0]),$st(n(a[0]),s=>o.push([s,!1])))}}function Dar(e,n,r,i){for(var o=[e];o.length>0;){var a=o.pop();r.hasOwnProperty(a)||(r[a]=!0,i.push(a),$st(n(a),s=>o.push(s)))}}function $st(e,n){for(var r=e.length;r--;)n(e[r],r,e);return e}var kar=Lst,Lar=$ar;function $ar(e,n){return kar(e,n,"post")}var Far=Lst,Bar=jar;function jar(e,n){return Far(e,n,"pre")}var Uar=pve,Har=Mst,zar=Var;function Var(e,n){var r=new Uar,i={},o=new Har,a;function s(c){var u=c.v===a?c.w:c.v,d=o.priority(u);if(d!==void 0){var f=n(c);f<d&&(i[u]=a,o.decrease(u,f))}}if(e.nodeCount()===0)return r;e.nodes().forEach(function(c){o.add(c,Number.POSITIVE_INFINITY),r.setNode(c)}),o.decrease(e.nodes()[0],0);for(var l=!1;o.size()>0;){if(a=o.removeMin(),i.hasOwnProperty(a))r.setEdge(a,i[a]);else{if(l)throw new Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(a).forEach(s)}return r}var Gar={components:dar,dijkstra:Pst,dijkstraAll:bar,findCycles:war,floydWarshall:Tar,isAcyclic:Nar,postorder:Lar,preorder:Bar,prim:zar,tarjan:Ast,topsort:kst},N$e=iar,fv={Graph:N$e.Graph,json:aar,alg:Gar,version:N$e.version},War=Object.defineProperty,Yar=Object.getOwnPropertyDescriptor,Fst=(e,n,r,i)=>{for(var o=i>1?void 0:i?Yar(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&War(n,r,o),o},qar=class{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,n=e._prev;if(n!==e)return M$e(n),n}enqueue(e){let n=this._sentinel;e._prev&&e._next&&M$e(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){let e=[],n=this._sentinel,r=n._prev;for(;r!==n;)e.push(JSON.stringify(r,Kar)),r=r._prev;return"["+e.join(", ")+"]"}};function M$e(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Kar(e,n){if(e!=="_next"&&e!=="_prev")return n}var Xar=qar,Qar=Jar,Zar=()=>1;function Jar(e,n){if(e.nodeCount()<=1)return[];let r=tsr(e,n||Zar);return esr(r.graph,r.buckets,r.zeroIdx).flatMap(o=>e.outEdges(o.v,o.w))}function esr(e,n,r){let i=[],o=n[n.length-1],a=n[0],s;for(;e.nodeCount();){for(;s=a.dequeue();)KJ(e,n,r,s);for(;s=o.dequeue();)KJ(e,n,r,s);if(e.nodeCount()){for(let l=n.length-2;l>0;--l)if(s=n[l].dequeue(),s){i=i.concat(KJ(e,n,r,s,!0));break}}}return i}function KJ(e,n,r,i,o){let a=o?[]:void 0;return e.inEdges(i.v).forEach(s=>{let l=e.edge(s),c=e.node(s.v);o&&a.push({v:s.v,w:s.w}),c.out-=l,Fse(n,r,c)}),e.outEdges(i.v).forEach(s=>{let l=e.edge(s),c=s.w,u=e.node(c);u.in-=l,Fse(n,r,u)}),e.removeNode(i.v),a}function tsr(e,n){let r=new fv.Graph,i=0,o=0;e.nodes().forEach(l=>{r.setNode(l,{v:l,in:0,out:0})}),e.edges().forEach(l=>{let c=r.edge(l.v,l.w)||0,u=n(l),d=c+u;r.setEdge(l.v,l.w,d),o=Math.max(o,r.node(l.v).out+=u),i=Math.max(i,r.node(l.w).in+=u)});let a=nsr(o+i+3).map(()=>new Xar),s=i+1;return r.nodes().forEach(l=>{Fse(a,s,r.node(l))}),{graph:r,buckets:a,zeroIdx:s}}function Fse(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function nsr(e){const n=[];for(let r=0;r<e;r++)n.push(r);return n}var Yi={addBorderNode:lsr,addDummyNode:Bst,applyWithChunking:p$,asNonCompoundGraph:rsr,buildLayerMatrix:ssr,intersectRect:asr,mapValues:gsr,maxRank:Hst,normalizeRanks:hve,notime:fsr,partition:usr,pick:hsr,predecessorWeights:osr,range:zst,removeEmptyRanks:gve,simplify:jst,successorWeights:isr,time:dsr,uniqueId:mve,zipObject:tG},eG=Yi;function Bst(e,n,r,i){let o;do o=mve(i);while(e.hasNode(o));return r.dummy=n,e.setNode(o,r),o}function jst(e){let n=new fv.Graph().setGraph(e.graph());return e.nodes().forEach(r=>n.setNode(r,e.node(r))),e.edges().forEach(r=>{let i=n.edge(r.v,r.w)||{weight:0,minlen:1},o=e.edge(r);n.setEdge(r.v,r.w,{weight:i.weight+o.weight,minlen:Math.max(i.minlen,o.minlen)})}),n}function rsr(e){let n=new fv.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(r=>{e.children(r).length||n.setNode(r,e.node(r))}),e.edges().forEach(r=>{n.setEdge(r,e.edge(r))}),n}function isr(e){let n=e.nodes().map(r=>{let i={};return e.outEdges(r).forEach(o=>{i[o.w]=(i[o.w]||0)+e.edge(o).weight}),i});return tG(e.nodes(),n)}function osr(e){let n=e.nodes().map(r=>{let i={};return e.inEdges(r).forEach(o=>{i[o.v]=(i[o.v]||0)+e.edge(o).weight}),i});return tG(e.nodes(),n)}function asr(e,n){let r=e.x,i=e.y,o=n.x-r,a=n.y-i,s=e.width/2,l=e.height/2;if(!o&&!a)throw new Error("Not possible to find intersection inside of the rectangle");let c,u;return Math.abs(a)*s>Math.abs(o)*l?(a<0&&(l=-l),c=l*o/a,u=l):(o<0&&(s=-s),c=s,u=s*a/o),{x:r+c,y:i+u}}function ssr(e){let n=zst(Hst(e)+1).map(()=>[]);return e.nodes().forEach(r=>{let i=e.node(r),o=i.rank;o!==void 0&&(n[o][i.order]=r)}),n}function hve(e){let n=e.nodes().map(i=>{let o=e.node(i).rank;return o===void 0?Number.MAX_VALUE:o}),r=p$(Math.min,n);e.nodes().forEach(i=>{let o=e.node(i);Object.hasOwn(o,"rank")&&(o.rank-=r)})}function gve(e){let n=e.nodes().map(s=>e.node(s).rank),r=p$(Math.min,n),i=[];e.nodes().forEach(s=>{let l=e.node(s).rank-r;i[l]||(i[l]=[]),i[l].push(s)});let o=0,a=e.graph().nodeRankFactor;Array.from(i).forEach((s,l)=>{s===void 0&&l%a!==0?--o:s!==void 0&&o&&s.forEach(c=>e.node(c).rank+=o)})}function lsr(e,n,r,i){let o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=i),Bst(e,"border",o,n)}function csr(e,n=Ust){const r=[];for(let i=0;i<e.length;i+=n){const o=e.slice(i,i+n);r.push(o)}return r}var Ust=65535;function p$(e,n){if(n.length>Ust){const r=csr(n);return e.apply(null,r.map(i=>e.apply(null,i)))}else return e.apply(null,n)}function Hst(e){const r=e.nodes().map(i=>{let o=e.node(i).rank;return o===void 0?Number.MIN_VALUE:o});return p$(Math.max,r)}function usr(e,n){let r={lhs:[],rhs:[]};return e.forEach(i=>{n(i)?r.lhs.push(i):r.rhs.push(i)}),r}function dsr(e,n){let r=Date.now();try{return n()}finally{console.log(e+" time: "+(Date.now()-r)+"ms")}}function fsr(e,n){return n()}var psr=0;function mve(e){var n=++psr;return toString(e)+n}function zst(e,n,r=1){n==null&&(n=e,e=0);let i=a=>a<n;r<0&&(i=a=>n<a);const o=[];for(let a=e;i(a);a+=r)o.push(a);return o}function hsr(e,n){const r={};for(const i of n)e[i]!==void 0&&(r[i]=e[i]);return r}function gsr(e,n){let r=n;return typeof n=="string"&&(r=i=>i[n]),Object.entries(e).reduce((i,[o,a])=>(i[o]=r(a,o),i),{})}function tG(e,n){return e.reduce((r,i,o)=>(r[i]=n[o],r),{})}var msr={run:vsr,undo:_sr},Bse=msr;function vsr(e){(e.graph().acyclicer==="greedy"?Qar(e,r(e)):ysr(e)).forEach(i=>{let o=e.edge(i);e.removeEdge(i),o.forwardName=i.name,o.reversed=!0,e.setEdge(i.w,i.v,o,mve("rev"))});function r(i){return o=>i.edge(o).weight}}function ysr(e){let n=[],r={},i={};function o(a){Object.hasOwn(i,a)||(i[a]=!0,r[a]=!0,e.outEdges(a).forEach(s=>{Object.hasOwn(r,s.w)?n.push(s):o(s.w)}),delete r[a])}return e.nodes().forEach(o),n}function _sr(e){e.edges().forEach(n=>{let r=e.edge(n);if(r.reversed){e.removeEdge(n);let i=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,i)}})}var bsr={run:Ssr,undo:Csr},jse=bsr;function Ssr(e){e.graph().dummyChains=[],e.edges().forEach(n=>Esr(e,n))}function Esr(e,n){let r=n.v,i=e.node(r).rank,o=n.w,a=e.node(o).rank,s=n.name,l=e.edge(n),c=l.labelRank;if(a===i+1)return;e.removeEdge(n);let u,d,f;for(f=0,++i;i<a;++f,++i)l.points=[],d={width:0,height:0,edgeLabel:l,edgeObj:n,rank:i},u=Yi.addDummyNode(e,"edge",d,"_d"),i===c&&(d.width=l.width,d.height=l.height,d.dummy="edge-label",d.labelpos=l.labelpos),e.setEdge(r,u,{weight:l.weight},s),f===0&&e.graph().dummyChains.push(u),r=u;e.setEdge(r,o,{weight:l.weight},s)}function Csr(e){e.graph().dummyChains.forEach(n=>{let r=e.node(n),i=r.edgeLabel,o;for(e.setEdge(r.edgeObj,i);r.dummy;)o=e.successors(n)[0],e.removeNode(n),i.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),n=o,r=e.node(n)})}function vve(e){var n={};function r(i){var o=e.node(i);if(Object.hasOwn(n,i))return o.rank;n[i]=!0;let a=e.outEdges(i).map(l=>l==null?Number.POSITIVE_INFINITY:r(l.w)-e.edge(l).minlen);var s=p$(Math.min,a);return s===Number.POSITIVE_INFINITY&&(s=0),o.rank=s}e.sources().forEach(r)}function $R(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}var wsr=Vst;function Vst(e){var n=new fv.Graph({directed:!1}),r=e.nodes()[0],i=e.nodeCount();n.setNode(r,{});for(var o,a;xsr(n,e)<i;)o=Tsr(n,e),a=n.hasNode(o.v)?$R(e,o):-$R(e,o),Osr(n,e,a);return n}function xsr(e,n){function r(i){n.nodeEdges(i).forEach(o=>{var a=o.v,s=i===a?o.w:a;!e.hasNode(s)&&!$R(n,o)&&(e.setNode(s,{}),e.setEdge(i,s,{}),r(s))})}return e.nodes().forEach(r),e.nodeCount()}function Tsr(e,n){return n.edges().reduce((i,o)=>{let a=Number.POSITIVE_INFINITY;return e.hasNode(o.v)!==e.hasNode(o.w)&&(a=$R(n,o)),a<i[0]?[a,o]:i},[Number.POSITIVE_INFINITY,null])[1]}function Osr(e,n,r){e.nodes().forEach(i=>n.node(i).rank+=r)}var{preorder:Rsr,postorder:Isr}=fv.alg,Nsr=Fw;Fw.initLowLimValues=_ve;Fw.initCutValues=yve;Fw.calcCutValue=Gst;Fw.leaveEdge=Yst;Fw.enterEdge=qst;Fw.exchangeEdges=Kst;function Fw(e){e=jst(e),vve(e);var n=Vst(e);_ve(n),yve(n,e);for(var r,i;r=Yst(n);)i=qst(n,e,r),Kst(n,e,r,i)}function yve(e,n){var r=Isr(e,e.nodes());r=r.slice(0,r.length-1),r.forEach(i=>Msr(e,n,i))}function Msr(e,n,r){var i=e.node(r),o=i.parent;e.edge(r,o).cutvalue=Gst(e,n,r)}function Gst(e,n,r){var i=e.node(r),o=i.parent,a=!0,s=n.edge(r,o),l=0;return s||(a=!1,s=n.edge(o,r)),l=s.weight,n.nodeEdges(r).forEach(c=>{var u=c.v===r,d=u?c.w:c.v;if(d!==o){var f=u===a,p=n.edge(c).weight;if(l+=f?p:-p,Asr(e,r,d)){var h=e.edge(r,d).cutvalue;l+=f?-h:h}}}),l}function _ve(e,n){arguments.length<2&&(n=e.nodes()[0]),Wst(e,{},1,n)}function Wst(e,n,r,i,o){var a=r,s=e.node(i);return n[i]=!0,e.neighbors(i).forEach(l=>{Object.hasOwn(n,l)||(r=Wst(e,n,r,l,i))}),s.low=a,s.lim=r++,o?s.parent=o:delete s.parent,r}function Yst(e){return e.edges().find(n=>e.edge(n).cutvalue<0)}function qst(e,n,r){var i=r.v,o=r.w;n.hasEdge(i,o)||(i=r.w,o=r.v);var a=e.node(i),s=e.node(o),l=a,c=!1;a.lim>s.lim&&(l=s,c=!0);var u=n.edges().filter(d=>c===P$e(e,e.node(d.v),l)&&c!==P$e(e,e.node(d.w),l));return u.reduce((d,f)=>$R(n,f)<$R(n,d)?f:d)}function Kst(e,n,r,i){var o=r.v,a=r.w;e.removeEdge(o,a),e.setEdge(i.v,i.w,{}),_ve(e),yve(e,n),Psr(e,n)}function Psr(e,n){var r=e.nodes().find(o=>!n.node(o).parent),i=Rsr(e,r);i=i.slice(1),i.forEach(o=>{var a=e.node(o).parent,s=n.edge(o,a),l=!1;s||(s=n.edge(a,o),l=!0),n.node(o).rank=n.node(a).rank+(l?s.minlen:-s.minlen)})}function Asr(e,n,r){return e.hasEdge(n,r)}function P$e(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}var Xst=Dsr;function Dsr(e){switch(e.graph().ranker){case"network-simplex":A$e(e);break;case"tight-tree":Lsr(e);break;case"longest-path":ksr(e);break;default:A$e(e)}}var ksr=vve;function Lsr(e){vve(e),wsr(e)}function A$e(e){Nsr(e)}var Qst=$sr;function $sr(e){let n=Bsr(e);e.graph().dummyChains.forEach(r=>{let i=e.node(r),o=i.edgeObj,a=Fsr(e,n,o.v,o.w),s=a.path,l=a.lca,c=0,u=s[c],d=!0;for(;r!==o.w;){if(i=e.node(r),d){for(;(u=s[c])!==l&&e.node(u).maxRank<i.rank;)c++;u===l&&(d=!1)}if(!d){for(;c<s.length-1&&e.node(u=s[c+1]).minRank<=i.rank;)c++;u=s[c]}e.setParent(r,u),r=e.successors(r)[0]}})}function Fsr(e,n,r,i){let o=[],a=[],s=Math.min(n[r].low,n[i].low),l=Math.max(n[r].lim,n[i].lim),c,u;c=r;do c=e.parent(c),o.push(c);while(c&&(n[c].low>s||l>n[c].lim));for(u=c,c=i;(c=e.parent(c))!==u;)a.push(c);return{path:o.concat(a.reverse()),lca:u}}function Bsr(e){let n={},r=0;function i(o){let a=r;e.children(o).forEach(i),n[o]={low:a,lim:r++}}return e.children().forEach(i),n}var jsr={run:Usr,cleanup:Vsr},Use=jsr;function Usr(e){let n=Yi.addDummyNode(e,"root",{},"_root"),r=Hsr(e),i=Object.values(r),o=Yi.applyWithChunking(Math.max,i)-1,a=2*o+1;e.graph().nestingRoot=n,e.edges().forEach(l=>e.edge(l).minlen*=a);let s=zsr(e)+1;e.children().forEach(l=>Zst(e,n,a,s,o,r,l)),e.graph().nodeRankFactor=a}function Zst(e,n,r,i,o,a,s){let l=e.children(s);if(!l.length){s!==n&&e.setEdge(n,s,{weight:0,minlen:r});return}let c=Yi.addBorderNode(e,"_bt"),u=Yi.addBorderNode(e,"_bb"),d=e.node(s);e.setParent(c,s),d.borderTop=c,e.setParent(u,s),d.borderBottom=u,l.forEach(f=>{Zst(e,n,r,i,o,a,f);let p=e.node(f),h=p.borderTop?p.borderTop:f,g=p.borderBottom?p.borderBottom:f,v=p.borderTop?i:2*i,y=h!==g?1:o-a[s]+1;e.setEdge(c,h,{weight:v,minlen:y,nestingEdge:!0}),e.setEdge(g,u,{weight:v,minlen:y,nestingEdge:!0})}),e.parent(s)||e.setEdge(n,c,{weight:0,minlen:o+a[s]})}function Hsr(e){var n={};function r(i,o){var a=e.children(i);a&&a.length&&a.forEach(s=>r(s,o+1)),n[i]=o}return e.children().forEach(i=>r(i,1)),n}function zsr(e){return e.edges().reduce((n,r)=>n+e.edge(r).weight,0)}function Vsr(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,e.edges().forEach(r=>{var i=e.edge(r);i.nestingEdge&&e.removeEdge(r)})}var Jst=Gsr;function Gsr(e){function n(r){let i=e.children(r),o=e.node(r);if(i.length&&i.forEach(n),Object.hasOwn(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(let a=o.minRank,s=o.maxRank+1;a<s;++a)D$e(e,"borderLeft","_bl",r,o,a),D$e(e,"borderRight","_br",r,o,a)}}e.children().forEach(n)}function D$e(e,n,r,i,o,a){let s={width:0,height:0,rank:a,borderType:n},l=o[n][a-1],c=Yi.addDummyNode(e,"border",s,r);o[n][a]=c,e.setParent(c,i),l&&e.setEdge(l,c,{weight:1})}var Wsr={adjust:Ysr,undo:qsr},Hse=Wsr;function Ysr(e){let n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&elt(e)}function qsr(e){let n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&Ksr(e),(n==="lr"||n==="rl")&&(Xsr(e),elt(e))}function elt(e){e.nodes().forEach(n=>k$e(e.node(n))),e.edges().forEach(n=>k$e(e.edge(n)))}function k$e(e){let n=e.width;e.width=e.height,e.height=n}function Ksr(e){e.nodes().forEach(n=>XJ(e.node(n))),e.edges().forEach(n=>{let r=e.edge(n);r.points.forEach(XJ),Object.hasOwn(r,"y")&&XJ(r)})}function XJ(e){e.y=-e.y}function Xsr(e){e.nodes().forEach(n=>QJ(e.node(n))),e.edges().forEach(n=>{let r=e.edge(n);r.points.forEach(QJ),Object.hasOwn(r,"x")&&QJ(r)})}function QJ(e){let n=e.x;e.x=e.y,e.y=n}var Qsr=Zsr;function Zsr(e){let n={},r=e.nodes().filter(c=>!e.children(c).length),i=r.map(c=>e.node(c).rank),o=Yi.applyWithChunking(Math.max,i),a=Yi.range(o+1).map(()=>[]);function s(c){if(n[c])return;n[c]=!0;let u=e.node(c);a[u.rank].push(c),e.successors(c).forEach(s)}return r.sort((c,u)=>e.node(c).rank-e.node(u).rank).forEach(s),a}var Jsr=elr;function elr(e,n){let r=0;for(let i=1;i<n.length;++i)r+=tlr(e,n[i-1],n[i]);return r}function tlr(e,n,r){let i=tG(r,r.map((u,d)=>d)),o=n.flatMap(u=>e.outEdges(u).map(d=>({pos:i[d.w],weight:e.edge(d).weight})).sort((d,f)=>d.pos-f.pos)),a=1;for(;a<r.length;)a<<=1;let s=2*a-1;a-=1;let l=new Array(s).fill(0),c=0;return o.forEach(u=>{let d=u.pos+a;l[d]+=u.weight;let f=0;for(;d>0;)d%2&&(f+=l[d+1]),d=d-1>>1,l[d]+=u.weight;c+=u.weight*f}),c}var nlr=rlr;function rlr(e,n=[]){return n.map(r=>{let i=e.inEdges(r);if(i.length){let o=i.reduce((a,s)=>{let l=e.edge(s),c=e.node(s.v);return{sum:a.sum+l.weight*c.order,weight:a.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:r}})}var ilr=olr;function olr(e,n){let r={};e.forEach((o,a)=>{let s=r[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:a};o.barycenter!==void 0&&(s.barycenter=o.barycenter,s.weight=o.weight)}),n.edges().forEach(o=>{let a=r[o.v],s=r[o.w];a!==void 0&&s!==void 0&&(s.indegree++,a.out.push(r[o.w]))});let i=Object.values(r).filter(o=>!o.indegree);return alr(i)}function alr(e){let n=[];function r(o){return a=>{a.merged||(a.barycenter===void 0||o.barycenter===void 0||a.barycenter>=o.barycenter)&&slr(o,a)}}function i(o){return a=>{a.in.push(o),--a.indegree===0&&e.push(a)}}for(;e.length;){let o=e.pop();n.push(o),o.in.reverse().forEach(r(o)),o.out.forEach(i(o))}return n.filter(o=>!o.merged).map(o=>eG.pick(o,["vs","i","barycenter","weight"]))}function slr(e,n){let r=0,i=0;e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),n.weight&&(r+=n.barycenter*n.weight,i+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/i,e.weight=i,e.i=Math.min(n.i,e.i),n.merged=!0}var llr=clr;function clr(e,n){let r=eG.partition(e,d=>Object.hasOwn(d,"barycenter")),i=r.lhs,o=r.rhs.sort((d,f)=>f.i-d.i),a=[],s=0,l=0,c=0;i.sort(ulr(!!n)),c=L$e(a,o,c),i.forEach(d=>{c+=d.vs.length,a.push(d.vs),s+=d.barycenter*d.weight,l+=d.weight,c=L$e(a,o,c)});let u={vs:a.flat(!0)};return l&&(u.barycenter=s/l,u.weight=l),u}function L$e(e,n,r){let i;for(;n.length&&(i=n[n.length-1]).i<=r;)n.pop(),e.push(i.vs),r++;return r}function ulr(e){return(n,r)=>n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}var dlr=tlt;function tlt(e,n,r,i){let o=e.children(n),a=e.node(n),s=a?a.borderLeft:void 0,l=a?a.borderRight:void 0,c={};s&&(o=o.filter(p=>p!==s&&p!==l));let u=nlr(e,o);u.forEach(p=>{if(e.children(p.v).length){let h=tlt(e,p.v,r,i);c[p.v]=h,Object.hasOwn(h,"barycenter")&&plr(p,h)}});let d=ilr(u,r);flr(d,c);let f=llr(d,i);if(s&&(f.vs=[s,f.vs,l].flat(!0),e.predecessors(s).length)){let p=e.node(e.predecessors(s)[0]),h=e.node(e.predecessors(l)[0]);Object.hasOwn(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+p.order+h.order)/(f.weight+2),f.weight+=2}return f}function flr(e,n){e.forEach(r=>{r.vs=r.vs.flatMap(i=>n[i]?n[i].vs:i)})}function plr(e,n){e.barycenter!==void 0?(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight):(e.barycenter=n.barycenter,e.weight=n.weight)}var hlr=glr;function glr(e,n,r){let i=mlr(e),o=new fv.Graph({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(a=>e.node(a));return e.nodes().forEach(a=>{let s=e.node(a),l=e.parent(a);(s.rank===n||s.minRank<=n&&n<=s.maxRank)&&(o.setNode(a),o.setParent(a,l||i),e[r](a).forEach(c=>{let u=c.v===a?c.w:c.v,d=o.edge(u,a),f=d!==void 0?d.weight:0;o.setEdge(u,a,{weight:e.edge(c).weight+f})}),Object.hasOwn(s,"minRank")&&o.setNode(a,{borderLeft:s.borderLeft[n],borderRight:s.borderRight[n]}))}),o}function mlr(e){for(var n;e.hasNode(n=Yi.uniqueId("_root")););return n}var vlr=ylr;function ylr(e,n,r){let i={},o;r.forEach(a=>{let s=e.parent(a),l,c;for(;s;){if(l=e.parent(s),l?(c=i[l],i[l]=s):(c=o,o=s),c&&c!==s){n.setEdge(c,s);return}s=l}})}var nlt=rlt;function rlt(e,n){if(n&&typeof n.customOrder=="function"){n.customOrder(e,rlt);return}let r=Yi.maxRank(e),i=$$e(e,Yi.range(1,r+1),"inEdges"),o=$$e(e,Yi.range(r-1,-1,-1),"outEdges"),a=Qsr(e);if(F$e(e,a),n&&n.disableOptimalOrderHeuristic)return;let s=Number.POSITIVE_INFINITY,l;for(let c=0,u=0;u<4;++c,++u){_lr(c%2?i:o,c%4>=2),a=Yi.buildLayerMatrix(e);let d=Jsr(e,a);d<s&&(u=0,l=Object.assign({},a),s=d)}F$e(e,l)}function $$e(e,n,r){return n.map(function(i){return hlr(e,i,r)})}function _lr(e,n){let r=new fv.Graph;e.forEach(function(i){let o=i.graph().root,a=dlr(i,o,r,n);a.vs.forEach((s,l)=>i.node(s).order=l),vlr(i,r,a.vs)})}function F$e(e,n){Object.values(n).forEach(r=>r.forEach((i,o)=>e.node(i).order=o))}function blr(e,n){let r={};function i(o,a){let s=0,l=0,c=o.length,u=a[a.length-1];return a.forEach((d,f)=>{let p=Elr(e,d),h=p?e.node(p).order:c;(p||d===u)&&(a.slice(l,f+1).forEach(g=>{e.predecessors(g).forEach(v=>{let y=e.node(v),_=y.order;(_<s||h<_)&&!(y.dummy&&e.node(g).dummy)&&ilt(r,v,g)})}),l=f+1,s=h)}),a}return n.length&&n.reduce(i),r}function Slr(e,n){let r={};function i(a,s,l,c,u){let d;Yi.range(s,l).forEach(f=>{d=a[f],e.node(d).dummy&&e.predecessors(d).forEach(p=>{let h=e.node(p);h.dummy&&(h.order<c||h.order>u)&&ilt(r,p,d)})})}function o(a,s){let l=-1,c,u=0;return s.forEach((d,f)=>{if(e.node(d).dummy==="border"){let p=e.predecessors(d);p.length&&(c=e.node(p[0]).order,i(s,u,f,l,c),u=f,l=c)}i(s,u,s.length,c,a.length)}),s}return n.length&&n.reduce(o),r}function Elr(e,n){if(e.node(n).dummy)return e.predecessors(n).find(r=>e.node(r).dummy)}function ilt(e,n,r){if(n>r){let o=n;n=r,r=o}let i=e[n];i||(e[n]=i={}),i[r]=!0}function Clr(e,n,r){if(n>r){let i=n;n=r,r=i}return!!e[n]&&Object.hasOwn(e[n],r)}function wlr(e,n,r,i){let o={},a={},s={};return n.forEach(l=>{l.forEach((c,u)=>{o[c]=c,a[c]=c,s[c]=u})}),n.forEach(l=>{let c=-1;l.forEach(u=>{let d=i(u);if(d.length){d=d.sort((p,h)=>s[p]-s[h]);let f=(d.length-1)/2;for(let p=Math.floor(f),h=Math.ceil(f);p<=h;++p){let g=d[p];a[u]===u&&c<s[g]&&!Clr(r,u,g)&&(a[g]=u,a[u]=o[u]=o[g],c=s[g])}}})}),{root:o,align:a}}function xlr(e,n,r,i,o){let a={},s=Tlr(e,n,r,o),l=o?"borderLeft":"borderRight";function c(f,p){let h=s.nodes(),g=h.pop(),v={};for(;g;)v[g]?f(g):(v[g]=!0,h.push(g),h=h.concat(p(g))),g=h.pop()}function u(f){a[f]=s.inEdges(f).reduce((p,h)=>Math.max(p,a[h.v]+s.edge(h)),0)}function d(f){let p=s.outEdges(f).reduce((g,v)=>Math.min(g,a[v.w]-s.edge(v)),Number.POSITIVE_INFINITY),h=e.node(f);p!==Number.POSITIVE_INFINITY&&h.borderType!==l&&(a[f]=Math.max(a[f],p))}return c(u,s.predecessors.bind(s)),c(d,s.successors.bind(s)),Object.keys(i).forEach(f=>a[f]=a[r[f]]),a}function Tlr(e,n,r,i){let o=new fv.Graph,a=e.graph(),s=Mlr(a.nodesep,a.edgesep,i);return n.forEach(l=>{let c;l.forEach(u=>{let d=r[u];if(o.setNode(d),c){var f=r[c],p=o.edge(f,d);o.setEdge(f,d,Math.max(s(e,u,c),p||0))}c=u})}),o}function Olr(e,n){return Object.values(n).reduce((r,i)=>{let o=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;Object.entries(i).forEach(([l,c])=>{let u=Plr(e,l)/2;o=Math.max(c+u,o),a=Math.min(c-u,a)});const s=o-a;return s<r[0]&&(r=[s,i]),r},[Number.POSITIVE_INFINITY,null])[1]}function Rlr(e,n){let r=Object.values(n),i=Yi.applyWithChunking(Math.min,r),o=Yi.applyWithChunking(Math.max,r);["u","d"].forEach(a=>{["l","r"].forEach(s=>{let l=a+s,c=e[l];if(c===n)return;let u=Object.values(c),d=i-Yi.applyWithChunking(Math.min,u);s!=="l"&&(d=o-Yi.applyWithChunking(Math.max,u)),d&&(e[l]=Yi.mapValues(c,f=>f+d))})})}function Ilr(e,n){return Yi.mapValues(e.ul,(r,i)=>{if(n)return e[n.toLowerCase()][i];{let o=Object.values(e).map(a=>a[i]).sort((a,s)=>a-s);return(o[1]+o[2])/2}})}function Nlr(e){let n=Yi.buildLayerMatrix(e),r=Object.assign(blr(e,n),Slr(e,n)),i={},o;["u","d"].forEach(s=>{o=s==="u"?n:Object.values(n).reverse(),["l","r"].forEach(l=>{l==="r"&&(o=o.map(f=>Object.values(f).reverse()));let c=(s==="u"?e.predecessors:e.successors).bind(e),u=wlr(e,o,r,c),d=xlr(e,o,u.root,u.align,l==="r");l==="r"&&(d=Yi.mapValues(d,f=>-f)),i[s+l]=d})});let a=Olr(e,i);return Rlr(i,a),Ilr(i,e.graph().align)}function Mlr(e,n,r){return(i,o,a)=>{let s=i.node(o),l=i.node(a),c=0,u;if(c+=s.width/2,Object.hasOwn(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=-s.width/2;break;case"r":u=s.width/2;break}if(u&&(c+=r?u:-u),u=0,c+=(s.dummy?n:e)/2,c+=(l.dummy?n:e)/2,c+=l.width/2,Object.hasOwn(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":u=l.width/2;break;case"r":u=-l.width/2;break}return u&&(c+=r?u:-u),u=0,c}}function Plr(e,n){return e.node(n).width}var olt=Alr;function Alr(e){e=eG.asNonCompoundGraph(e),Dlr(e),Object.entries(Nlr(e)).forEach(([n,r])=>e.node(n).x=r)}function Dlr(e){let n=eG.buildLayerMatrix(e),r=e.graph().ranksep,i=0;n.forEach(o=>{const a=o.reduce((s,l)=>{const c=e.node(l).height;return s>c?s:c},0);o.forEach(s=>e.node(s).y=i+a/2),i+=a+r})}function klr(e,n){let r=n&&n.debugTiming?Yi.time:Yi.notime;r("layout",()=>{let i=r(" buildLayoutGraph",()=>slt(e));r(" runLayout",()=>Llr(i,r,n)),r(" updateInputGraph",()=>alt(e,i))})}function Llr(e,n,r){n(" makeSpaceForEdgeLabels",()=>llt(e)),n(" removeSelfEdges",()=>vlt(e)),n(" acyclic",()=>Bse.run(e)),n(" nestingGraph.run",()=>Use.run(e)),n(" rank",()=>Xst(Yi.asNonCompoundGraph(e))),n(" injectEdgeLabelProxies",()=>clt(e)),n(" removeEmptyRanks",()=>gve(e)),n(" nestingGraph.cleanup",()=>Use.cleanup(e)),n(" normalizeRanks",()=>hve(e)),n(" assignRankMinMax",()=>ult(e)),n(" removeEdgeLabelProxies",()=>dlt(e)),n(" normalize.run",()=>jse.run(e)),n(" parentDummyChains",()=>Qst(e)),n(" addBorderSegments",()=>Jst(e)),n(" order",()=>nlt(e,r)),n(" insertSelfEdges",()=>ylt(e)),n(" adjustCoordinateSystem",()=>Hse.adjust(e)),n(" position",()=>olt(e)),n(" positionSelfEdges",()=>_lt(e)),n(" removeBorderNodes",()=>mlt(e)),n(" normalize.undo",()=>jse.undo(e)),n(" fixupEdgeLabelCoords",()=>hlt(e)),n(" undoCoordinateSystem",()=>Hse.undo(e)),n(" translateGraph",()=>flt(e)),n(" assignNodeIntersects",()=>plt(e)),n(" reversePoints",()=>glt(e)),n(" acyclic.undo",()=>Bse.undo(e))}function alt(e,n){e.nodes().forEach(r=>{let i=e.node(r),o=n.node(r);i&&(i.x=o.x,i.y=o.y,i.rank=o.rank,n.children(r).length&&(i.width=o.width,i.height=o.height))}),e.edges().forEach(r=>{let i=e.edge(r),o=n.edge(r);i.points=o.points,Object.hasOwn(o,"x")&&(i.x=o.x,i.y=o.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var $lr=["nodesep","edgesep","ranksep","marginx","marginy"],Flr={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Blr=["acyclicer","ranker","rankdir","align"],jlr=["width","height"],B$e={width:0,height:0},Ulr=["minlen","weight","width","height","labeloffset"],Hlr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},zlr=["labelpos"];function slt(e){let n=new fv.Graph({multigraph:!0,compound:!0}),r=JJ(e.graph());return n.setGraph(Object.assign({},Flr,ZJ(r,$lr),Yi.pick(r,Blr))),e.nodes().forEach(i=>{let o=JJ(e.node(i));const a=ZJ(o,jlr);Object.keys(B$e).forEach(s=>{a[s]===void 0&&(a[s]=B$e[s])}),n.setNode(i,a),n.setParent(i,e.parent(i))}),e.edges().forEach(i=>{let o=JJ(e.edge(i));n.setEdge(i,Object.assign({},Hlr,ZJ(o,Ulr),Yi.pick(o,zlr)))}),n}function llt(e){let n=e.graph();n.ranksep/=2,e.edges().forEach(r=>{let i=e.edge(r);i.minlen*=2,i.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?i.width+=i.labeloffset:i.height+=i.labeloffset)})}function clt(e){e.edges().forEach(n=>{let r=e.edge(n);if(r.width&&r.height){let i=e.node(n.v),a={rank:(e.node(n.w).rank-i.rank)/2+i.rank,e:n};Yi.addDummyNode(e,"edge-proxy",a,"_ep")}})}function ult(e){let n=0;e.nodes().forEach(r=>{let i=e.node(r);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,n=Math.max(n,i.maxRank))}),e.graph().maxRank=n}function dlt(e){e.nodes().forEach(n=>{let r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function flt(e){let n=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,o=0,a=e.graph(),s=a.marginx||0,l=a.marginy||0;function c(u){let d=u.x,f=u.y,p=u.width,h=u.height;n=Math.min(n,d-p/2),r=Math.max(r,d+p/2),i=Math.min(i,f-h/2),o=Math.max(o,f+h/2)}e.nodes().forEach(u=>c(e.node(u))),e.edges().forEach(u=>{let d=e.edge(u);Object.hasOwn(d,"x")&&c(d)}),n-=s,i-=l,e.nodes().forEach(u=>{let d=e.node(u);d.x-=n,d.y-=i}),e.edges().forEach(u=>{let d=e.edge(u);d.points.forEach(f=>{f.x-=n,f.y-=i}),Object.hasOwn(d,"x")&&(d.x-=n),Object.hasOwn(d,"y")&&(d.y-=i)}),a.width=r-n+s,a.height=o-i+l}function plt(e){e.edges().forEach(n=>{let r=e.edge(n),i=e.node(n.v),o=e.node(n.w),a,s;r.points?(a=r.points[0],s=r.points[r.points.length-1]):(r.points=[],a=o,s=i),r.points.unshift(Yi.intersectRect(i,a)),r.points.push(Yi.intersectRect(o,s))})}function hlt(e){e.edges().forEach(n=>{let r=e.edge(n);if(Object.hasOwn(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function glt(e){e.edges().forEach(n=>{let r=e.edge(n);r.reversed&&r.points.reverse()})}function mlt(e){e.nodes().forEach(n=>{if(e.children(n).length){let r=e.node(n),i=e.node(r.borderTop),o=e.node(r.borderBottom),a=e.node(r.borderLeft[r.borderLeft.length-1]),s=e.node(r.borderRight[r.borderRight.length-1]);r.width=Math.abs(s.x-a.x),r.height=Math.abs(o.y-i.y),r.x=a.x+r.width/2,r.y=i.y+r.height/2}}),e.nodes().forEach(n=>{e.node(n).dummy==="border"&&e.removeNode(n)})}function vlt(e){e.edges().forEach(n=>{if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function ylt(e){var n=Yi.buildLayerMatrix(e);n.forEach(r=>{var i=0;r.forEach((o,a)=>{var s=e.node(o);s.order=a+i,(s.selfEdges||[]).forEach(l=>{Yi.addDummyNode(e,"selfedge",{width:l.label.width,height:l.label.height,rank:s.rank,order:a+ ++i,e:l.e,label:l.label},"_se")}),delete s.selfEdges})})}function _lt(e){e.nodes().forEach(n=>{var r=e.node(n);if(r.dummy==="selfedge"){var i=e.node(r.e.v),o=i.x+i.width/2,a=i.y,s=r.x-o,l=i.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:o+2*s/3,y:a-l},{x:o+5*s/6,y:a-l},{x:o+s,y:a},{x:o+5*s/6,y:a+l},{x:o+2*s/3,y:a+l}],r.label.x=r.x,r.label.y=r.y}})}function ZJ(e,n){return Yi.mapValues(Yi.pick(e,n),Number)}function JJ(e){var n={};return e&&Object.entries(e).forEach(([r,i])=>{typeof r=="string"&&(r=r.toLowerCase()),n[r]=i}),n}var No={layout:klr,buildLayoutGraph:slt,updateInputGraph:alt,makeSpaceForEdgeLabels:llt,removeSelfEdges:vlt,acyclic:Bse,nestingGraph:Use,rank:Xst,util:Yi,injectEdgeLabelProxies:clt,removeEmptyRanks:gve,normalizeRanks:hve,assignRankMinMax:ult,removeEdgeLabelProxies:dlt,normalize:jse,parentDummyChains:Qst,addBorderSegments:Jst,order:nlt,insertSelfEdges:ylt,coordinateSystem:Hse,position:olt,positionSelfEdges:_lt,removeBorderNodes:mlt,fixupEdgeLabelCoords:hlt,translateGraph:flt,assignNodeIntersects:plt,reversePointsForReversedEdges:glt},Vlr=class{constructor(){this.init=!1}get initialized(){return this.init}getNode(e){return this.store.nodes.get(e)}getNodeByIndex(e){const n=this.indexMap.get(e);return n?this.getNode(n):void 0}getEdge(e){return this.store.edges.get(e)}get nodes(){return Array.from(this.store.nodes.values())}get edges(){return Array.from(this.store.edges.values())}create(e){this.store=this.createStore(e),this.indexMap=this.createIndexMap(),this.init=!0}createStore(e){const{nodes:n,edges:r}=e,i={nodes:new Map,edges:new Map};return n.forEach((o,a)=>{var c;const{bounds:s}=o.getData(hr),l={id:o.id,entity:o,index:"",rank:-1,order:-1,position:{x:s.center.x,y:s.center.y},offset:{x:0,y:0},size:{width:s.width,height:s.height},hasChildren:((c=o.collapsedChildren)==null?void 0:c.length)>0};i.nodes.set(l.id,l)}),r.forEach(o=>{const{from:a,to:s}=o.info;if(!a||!s||o.vertical)return;const l={id:o.id,entity:o,from:a,to:s,fromIndex:"",toIndex:"",name:o.id};i.edges.set(l.id,l)}),i}createIndexMap(){const e=this.sortNodes(),n=new Map;e.forEach((i,o)=>{const a=this.getNode(i);if(!a)return;const s=String(1e5+o);n.set(a.id,s),a.index=s}),this.edges.forEach(i=>{const o=n.get(i.from),a=n.get(i.to);if(!o||!a){this.store.edges.delete(i.id);return}i.fromIndex=o,i.toIndex=a});const r=new Map;return n.forEach((i,o)=>{r.set(i,o)}),r}sortNodes(){const e=[];this.nodes.forEach(i=>{e.push(i.id)});const n=new Map;return this.edges.forEach(i=>{if(e.push(i.to),i.entity.info.fromPort){const o=n.get(i.from)||[];n.set(i.from,[...o,i])}}),n.forEach((i,o)=>{i.sort((s,l)=>{const c=s.entity.fromPort,u=l.entity.fromPort;return c&&u?c.point.y-u.point.y:0}).forEach(s=>{e.push(s.to)})}),e.reduceRight((i,o)=>(i.includes(o)||i.unshift(o),i),[])}},Glr=class{constructor(e){this.store=e}async position(){return new Promise(e=>{xme({from:{d:0},to:{d:100},duration:300,onUpdate:n=>{this.store.nodes.forEach(r=>{this.updateNodePosition({layoutNode:r,step:n.d})})},onComplete:()=>{e()}})})}updateNodePosition(e){const{layoutNode:n,step:r}=e,i=n.entity.getData(Ui),o={x:n.position.x+n.offset.x,y:n.position.y+n.offset.y},a=(o.x-i.position.x)*r/100,s=(o.y-i.bounds.height/2-i.position.y)*r/100;i.update({position:{x:i.position.x+a,y:i.position.y+s}}),n.entity.document.layout.updateAffectedTransform(n.entity)}},Wlr={rankdir:"LR",nodesep:100,ranksep:100,ranker:"network-simplex"},Ylr=class{constructor(e){this.store=e,this.graph=this.createGraph()}layout(){this.graphSetData(),this.dagreLayout(),this.layoutSetPosition()}dagreLayout(){let e=No.buildLayoutGraph(this.graph);this.runLayout(e),No.updateInputGraph(this.graph,e)}runLayout(e){No.makeSpaceForEdgeLabels(e),No.removeSelfEdges(e),No.acyclic.run(e),No.nestingGraph.run(e),No.rank(No.util.asNonCompoundGraph(e)),No.injectEdgeLabelProxies(e),No.removeEmptyRanks(e),No.nestingGraph.cleanup(e),No.normalizeRanks(e),No.assignRankMinMax(e),No.removeEdgeLabelProxies(e),No.normalize.run(e),No.parentDummyChains(e),No.addBorderSegments(e),No.order(e),this.setOrderAndRank(e),No.insertSelfEdges(e),No.coordinateSystem.adjust(e),No.position(e),No.positionSelfEdges(e),No.removeBorderNodes(e),No.normalize.undo(e),No.fixupEdgeLabelCoords(e),No.coordinateSystem.undo(e),No.translateGraph(e),No.assignNodeIntersects(e),No.reversePointsForReversedEdges(e),No.acyclic.undo(e)}createGraph(){const e=new fv.Graph({multigraph:!0});return e.setDefaultEdgeLabel(()=>({})),e.setGraph(Wlr),e}graphSetData(){const e=Array.from(this.store.nodes.values()),n=Array.from(this.store.edges.values()).sort((r,i)=>r.fromIndex===i.fromIndex?r.toIndex<i.toIndex?-1:1:r.fromIndex<i.fromIndex?-1:1);e.forEach(r=>{this.graph.setNode(r.index,{originID:r.id,width:r.size.width,height:r.size.height})}),n.forEach(r=>{this.graph.setEdge({v:r.fromIndex,w:r.toIndex,name:r.name})})}layoutSetPosition(){this.store.nodes.forEach(e=>{const n=this.getOffsetX(e),r=this.graph.node(e.index);if(!r){e.rank=-1,e.position={x:e.position.x+n,y:e.position.y};return}e.rank=r.rank??-1,e.position={x:this.normalizeNumber(r.x)+n,y:this.normalizeNumber(r.y)}})}normalizeNumber(e){return Number.isNaN(e)?0:e}getOffsetX(e){if(!e.hasChildren)return 0;const n=e.entity.getData(hr),{bounds:r,padding:i}=n;return-r.width/2+i.left}setOrderAndRank(e){return this.followAdjust(e),this.normalizeOrder(e),e}followAdjust(e){const n=this.rankGroup(e);e.nodes().forEach(r=>{const i=e.node(r),o=this.store.getNodeByIndex(r);if(!i||!(o!=null&&o.followedBy))return;const{followedBy:a}=o,{rank:s,order:l}=i,c=a.map(p=>{var h;return(h=this.store.getNode(p))==null?void 0:h.index}).filter(Boolean),u=new Set(c),d=n.get(s);if(!d)return;Array.from(d).filter(p=>u.has(p)?!1:e.node(p).order>l).forEach(p=>{const h=e.node(p);h.order=h.order+a.length}),c.forEach((p,h)=>{var y,_;const g=e.node(p);g.order=l+h+1;const v=g.rank;g.rank=s,(y=n.get(v))==null||y.delete(p),(_=n.get(s))==null||_.add(p)})})}normalizeOrder(e){this.rankGroup(e).forEach((r,i)=>{const o=Array.from(r).map(a=>e.node(a));o.sort((a,s)=>a.order-s.order),o.forEach((a,s)=>{a.order=s})})}rankGroup(e){const n=new Map;return e.nodes().forEach(r=>{var a;const o=e.node(r).rank;n.has(o)||n.set(o,new Set),(a=n.get(o))==null||a.add(r)}),n}},qlr=class{constructor(){this._store=new Vlr,this._layout=new Ylr(this._store),this._position=new Glr(this._store)}init(e,n={}){this._store.create(e),this.setFollowNode(n.getFollowNode)}layout(){this._store.initialized&&this._layout.layout()}async position(){if(this._store.initialized)return await this._position.position()}setFollowNode(e){if(!e)return;const n={store:this._store};this._store.nodes.forEach(r=>{var a;const i=(a=e(r,n))==null?void 0:a.followTo;if(!i)return;const o=this._store.getNode(i);o&&(o.followedBy||(o.followedBy=[]),o.followedBy.push(r.id),r.followTo=i)})}},OD=class{async layout(e={}){await this.layoutNode(this.document.root,e)}async layoutNode(e,n){const r=this.getAvailableBlocks(e);if(!r||!Array.isArray(r)||!r.length)return;const i=e.blocks.map(a=>a.getData(Em).outputLines.filter(Boolean)).flat();await Promise.all(r.map(async a=>this.layoutNode(a,n)));const o=new qlr;o.init({nodes:r,edges:i},n),o.layout(),await o.position()}getAvailableBlocks(e){const n=e.blocks.filter(i=>!this.shouldFlatNode(i)),r=e.blocks.filter(i=>this.shouldFlatNode(i)).map(i=>i.blocks).flat();return[...n,...r]}shouldFlatNode(e){return e.flowNodeType===Fo.GROUP}};Fst([Ot(ei)],OD.prototype,"document",2);OD=Fst([Pn()],OD);var Klr=pa({onBind:({bind:e})=>{e(OD).toSelf().inSingletonScope()}}),blt=Object.defineProperty,Xlr=Object.getOwnPropertyDescriptor,Qlr=Object.getOwnPropertyNames,Zlr=Object.prototype.hasOwnProperty,Slt=(e,n)=>{for(var r in n)blt(e,r,{get:n[r],enumerable:!0})},Jlr=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Qlr(n))!Zlr.call(e,o)&&o!==r&&blt(e,o,{get:()=>n[o],enumerable:!(i=Xlr(n,o))||i.enumerable});return e},Elt=(e,n,r)=>(Jlr(e,n,"default"),r),Clt={};Slt(Clt,{FreeLayoutEditor:()=>Olt,FreeLayoutEditorProvider:()=>nG,FreeLayoutPluginContext:()=>wlt,FreeLayoutProps:()=>Gj,WorkflowNodeRenderer:()=>Tlt,WorkflowPortRender:()=>JV,createFreeLayoutPreset:()=>xlt,useAutoLayout:()=>Rlt,useClientContext:()=>Bw,usePlaygroundTools:()=>h$});var bve={};Slt(bve,{FreeLayoutEditor:()=>Olt,FreeLayoutEditorProvider:()=>nG,WorkflowNodeRenderer:()=>Tlt,WorkflowPortRender:()=>JV});var wlt=v0,Gj;(e=>{e.DEFAULT={...Bj.DEFAULT,fromNodeJSON(n,r){var o;if(!n.getData(ls)){r.data&&n.updateExtInfo(r.data),n.onExtInfoChange(()=>{n.document.fireContentChange({type:uN.NODE_DATA_CHANGE,toJSON:()=>n.getExtInfo(),entity:n})});return}return(o=Kb.fromNodeJSON)==null?void 0:o.call(Kb,n,r)},toNodeJSON(n){const r=n.getData(ls),i=n.transform.position;return r?Kb.toNodeJSON(n):{id:n.id,type:n.flowNodeType,meta:{position:{x:i.x,y:i.y}},data:n.getExtInfo()}}}})(Gj||(Gj={}));var eee=e=>{const n=e.get(mu);if(n.node)return n.node};function xlt(e){return n=>{var i,o;e={...Gj.DEFAULT,...e,playground:{...e.playground,get hoverService(){return n.get(Rf)}}};let r=[];return r.push(Vat({registerShortcuts(a){var l;const s=n.get(ug);if(a.addHandlers({commandId:kat.DELETE_NODES,shortcuts:["backspace","delete"],isEnabled:()=>s.selection.length>0&&!n.playground.config.readonlyOrDisabled,execute:()=>{s.selection.forEach(c=>{var u;if(c instanceof Ap){if(!n.document.canRemove(c))return;const d=c.getNodeMeta(),f=(u=d.subCanvas)==null?void 0:u.call(d,c);if(f!=null&&f.isCanvas){f.parentNode.dispose();return}c.dispose()}else if(c instanceof Qd){if(!n.document.linesManager.canRemove(c))return;c.dispose()}}),s.selection=s.selection.filter(c=>!c.disposed)}}),(l=e==null?void 0:e.history)!=null&&l.enable){const c=n.get(qa);e.history.disableShortcuts||(a.addHandlers({commandId:OC.Default.UNDO,shortcuts:["meta z","ctrl z"],isEnabled:()=>!0,execute:()=>{c.undo()}}),a.addHandlers({commandId:OC.Default.REDO,shortcuts:["meta shift z","ctrl shift z"],isEnabled:()=>!0,execute:()=>{c.redo()}}))}}})),r=Qrr(e,r)(n),(i=e.variableEngine)!=null&&i.enable&&r.push(rrr({...e.variableEngine,layout:"free"})),(o=e.history)!=null&&o.enable&&r.push(hir(e.history)),r.push($V({onBind:a=>{var s,l,c,u,d,f,p,h,g,v,y,_,S,b,E;a.rebind(c$).toConstantValue({canAddLine:(s=e.canAddLine)==null?void 0:s.bind(null,n),canDeleteLine:(l=e.canDeleteLine)==null?void 0:l.bind(null,n),isErrorLine:(c=e.isErrorLine)==null?void 0:c.bind(null,n),isErrorPort:(u=e.isErrorPort)==null?void 0:u.bind(null,n),isDisabledPort:(d=e.isDisabledPort)==null?void 0:d.bind(null,n),isReverseLine:(f=e.isReverseLine)==null?void 0:f.bind(null,n),isHideArrowLine:(p=e.isHideArrowLine)==null?void 0:p.bind(null,n),isFlowingLine:(h=e.isFlowingLine)==null?void 0:h.bind(null,n),isDisabledLine:(g=e.isDisabledLine)==null?void 0:g.bind(null,n),isVerticalLine:(v=e.isVerticalLine)==null?void 0:v.bind(null,n),onDragLineEnd:(y=e.onDragLineEnd)==null?void 0:y.bind(null,n),setLineRenderType:(_=e.setLineRenderType)==null?void 0:_.bind(null,n),setLineClassName:(S=e.setLineClassName)==null?void 0:S.bind(null,n),canDeleteNode:(b=e.canDeleteNode)==null?void 0:b.bind(null,n),canResetLine:(E=e.canResetLine)==null?void 0:E.bind(null,n),cursors:e.cursors??Kb.cursors,lineColor:e.lineColor??Kb.lineColor,allNodesDefaultExpanded:e.allNodesDefaultExpanded,toNodeJSON:e.toNodeJSON,fromNodeJSON:e.fromNodeJSON})},onInit:a=>{var s,l;a.playground.registerLayer(DC),a.playground.registerLayer(AC,{renderElement:()=>typeof eee=="function"?eee(a):eee}),(s=e.scroll)!=null&&s.disableScrollLimit||a.playground.registerLayer(Aj),(l=e.scroll)!=null&&l.disableScrollBar||a.playground.registerLayer(TR),e.onContentChange&&a.document.onContentChange(c=>e.onContentChange(a,c))},containerModules:[Jnr]}),nst({}),Nst({}),Jor({}),Klr({}),gir({canSelect:a=>{if(a.button!==0)return!1;const s=a.target;if(s){if(s.classList.contains("gedit-flow-background-layer")||s.closest('[data-flow-editor-selectable="true"]'))return!0;if(s.closest('[data-flow-editor-selectable="false"]'))return!1}return!n.get(Rf).isSomeHovered()},ignoreOneSelect:!0,ignoreChildrenLength:!0,...e.selectBox||{}})),Wat(e,r)(n)}}var nG=m.forwardRef(function(n,r){const{children:i,...o}=n,a=m.useMemo(()=>xlt(o),[]),s=m.useCallback(l=>({...Kit(l),get document(){return l.get(ei)},get clipboard(){return l.get(Hit)},get selection(){return l.get(ug)},get history(){return l.get(qa)}}),[]);return V.createElement(Zit,{ref:r,plugins:a,customPluginContext:s},i)}),Tlt=e=>{const{selected:n,activated:r,startDrag:i,ports:o,selectNode:a,nodeRef:s,onFocus:l,onBlur:c}=x_(),u=ry(e.className||"",{activated:r,selected:n});return V.createElement(V.Fragment,null,V.createElement("div",{className:u,style:e.style,ref:s,draggable:!0,onDragStart:i,onClick:a,onFocus:l,onBlur:c,"data-node-selected":String(n)},e.children),o.map(d=>V.createElement(JV,{key:d.id,entity:d,onClick:e.onPortClick?f=>e.onPortClick(d,f):void 0,className:e.portClassName,style:e.portStyle})))},Olt=m.forwardRef(function(n,r){const{children:i,...o}=n;return V.createElement(nG,{ref:r,...o},V.createElement(Lme,null,i))});Elt(bve,bir);Elt(Clt,bve);var j$e=e=>{const n=e.getData(Ui);return{x:n.position.x,y:n.position.y}},ecr=()=>{const e=Dme();try{return e.get(qa)}catch{return{pushOperation:()=>{}}}},tcr=()=>{const e=ecr();return m.useCallback(r=>{const{nodes:i,startPositions:o,endPositions:a}=r,s=i.map(l=>l.id);e.pushOperation({type:CD.dragNodes,value:{ids:s,value:a,oldValue:o}},{noApply:!0})},[e])},ncr=e=>{const{nodes:n,startPositions:r}=e;return()=>{n.forEach((i,o)=>{const a=i.getData(Ui),s=r[o];a.update({position:s})})}},rcr=()=>{const e=Di(ei),n=Di(OD),r=tcr();return m.useCallback(async o=>{const a=e.getAllNodes(),s=a.map(j$e);await n.layout(o);const l=a.map(j$e);return r({nodes:a,startPositions:s,endPositions:l}),ncr({nodes:a,startPositions:s})},[n,e,r])},Rlt=()=>{const e=Di(ei),n=ec(),r=rcr(),i=m.useCallback(a=>{WV(e,n.config,a)},[e,n]);return m.useCallback(async a=>{i();const s=await r(a);return i(),s},[r])};function Bw(){return Di(v0)}function h$(){const e=ec(),n=Di(ei),[r,i]=m.useState(1),[o,a]=m.useState(n.linesManager.lineType),[s,l]=m.useState(db.SELECT),[c,u]=m.useState(Zx.PAD),d=m.useCallback(S=>{r<.1||e==null||e.config.zoomout(S)},[r,e]),f=m.useCallback(S=>{r>1.9||e==null||e.config.zoomin(S)},[r,e]),p=m.useCallback(S=>{const b=n.linesManager.switchLineType(S);return a(b),b},[n]),h=m.useCallback(S=>{WV(n,e.config,S)},[n,e]),g=Rlt();m.useEffect(()=>{let S=null;return e&&(S=e.onZoom(b=>i(b))),()=>{S&&S.dispose()}},[e]),m.useEffect(()=>{const S=e.editorState.onStateChange(b=>{l(b.state===ko.STATE_GRAB||b.state===ko.STATE_MOUSE_FRIENDLY_SELECT?db.GRAB:db.SELECT),u(b.state===ko.STATE_MOUSE_FRIENDLY_SELECT?Zx.MOUSE:Zx.PAD)});return()=>{S.dispose()}},[e]);function v(S){let b;typeof S=="function"?b=S({isPressingSpaceBar:e.editorState.isPressingSpaceBar,cursorState:s}):b=S,!(typeof b>"u")&&(b===db.GRAB?(e.editorState.changeState(ko.STATE_GRAB.id),l(b)):(b=db.SELECT)&&(e.editorState.changeState(ko.STATE_SELECT.id),l(b)))}function y(S){S===Zx.MOUSE?(e.editorState.changeState(ko.STATE_MOUSE_FRIENDLY_SELECT.id),l(db.GRAB)):S===Zx.PAD&&(e.editorState.changeState(ko.STATE_SELECT.id),l(db.SELECT)),u(S)}function _(S){e.config.updateConfig({mouseScrollDelta:S})}return{zoomin:f,zoomout:d,fitView:h,autoLayout:g,switchLineType:p,zoom:r,lineType:o,cursorState:s,setCursorState:v,interactiveType:c,setInteractiveType:y,setMouseScrollDelta:_}}const icr="/agenticflow/assets/icon-start-C8Ct-og-.jpg";function ocr(){}var Ilt=ocr;const vr=Or(Ilt),Nlt=function(e){if(fr(process,"env.NODE_ENV")==="development"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];console.log(e,...r)}};class tc{static get cssClasses(){return{}}static get strings(){return{}}static get numbers(){return{}}static get defaultAdapter(){return{getProp:vr,getProps:vr,getState:vr,getStates:vr,setState:vr,getContext:vr,getContexts:vr,getCache:vr,setCache:vr,getCaches:vr,stopPropagation:vr,persistEvent:vr}}constructor(n){this._adapter=Object.assign(Object.assign({},tc.defaultAdapter),n)}getProp(n){return this._adapter.getProp(n)}getProps(){return this._adapter.getProps()}getState(n){return this._adapter.getState(n)}getStates(){return this._adapter.getStates()}setState(n,r){return this._adapter.setState(Object.assign({},n),r)}getContext(n){return this._adapter.getContext(n)}getContexts(){return this._adapter.getContexts()}getCaches(){return this._adapter.getCaches()}getCache(n){return this._adapter.getCache(n)}setCache(n,r){return n&&this._adapter.setCache(n,r)}stopPropagation(n){this._adapter.stopPropagation(n)}_isControlledComponent(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"value";const r=this.getProps();return n in r}_isInProps(n){const r=this.getProps();return n in r}init(n){}destroy(){}log(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];Nlt(n,...i)}_persistEvent(n){this._adapter.persistEvent(n)}}function Mlt(e){return Object.keys(e).reduce((n,r)=>(r.substr(0,5)==="data-"&&(n[r]=e[r]),n),{})}const{hasOwnProperty:acr}=Object.prototype;class fl extends m.Component{constructor(n){super(n),this.isControlled=r=>!!(r&&this.props&&typeof this.props=="object"&&acr.call(this.props,r)),this.setStateAsync=r=>new Promise(i=>{this.setState(r,i)}),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:n=>{if(this.context&&n)return this.context[n]},getContexts:()=>this.context,getProp:n=>this.props[n],getProps:()=>this.props,getState:n=>this.state[n],getStates:()=>this.state,setState:(n,r)=>this.setState(Object.assign({},n),r),getCache:n=>n&&this.cache[n],getCaches:()=>this.cache,setCache:(n,r)=>n&&(this.cache[n]=r),stopPropagation:n=>{try{n.stopPropagation(),n.nativeEvent&&n.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:n=>{n&&n.persist&&typeof n.persist=="function"&&n.persist()}}}log(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return Nlt(n,...i)}getDataAttr(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return Mlt(n)}}fl.propTypes={};fl.defaultProps={};var Plt={exports:{}},scr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lcr=scr,ccr=lcr;function Alt(){}function Dlt(){}Dlt.resetWarningCache=Alt;var ucr=function(){function e(i,o,a,s,l,c){if(c!==ccr){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function n(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:Dlt,resetWarningCache:Alt};return r.PropTypes=r,r};Plt.exports=ucr();var dcr=Plt.exports;const ie=Or(dcr),ui="semi",fcr=["default","error","warning","success"],rG={PREFIX:`${ui}-typography`},jc={WEIGHT:["light","regular","medium","semibold","bold","default"],TYPE:["primary","secondary","danger","warning","success","tertiary","quaternary"],SIZE:["normal","small","inherit"],SPACING:["normal","extended"],HEADING:[1,2,3,4,5,6],RULE:["text","numbers","bytes-decimal","bytes-binary","percentages","exponential"],TRUNCATE:["ceil","floor","round"]};var pcr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const hcr=rG.PREFIX;let iG=class extends m.PureComponent{render(){const n=this.props,{component:r,className:i,children:o,forwardRef:a}=n,s=pcr(n,["component","className","children","forwardRef"]),l=r,c=Ce(hcr,i);return V.createElement(l,Object.assign({className:c,ref:a},s),o)}};iG.defaultProps={component:"article",style:{},className:""};iG.propTypes={component:ie.string,style:ie.object,className:ie.string};function gcr(e){return e===null}var mcr=gcr;const BC=Or(mcr);function vcr(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}var ycr=vcr;function _cr(e,n,r){var i=-1,o=e.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(o);++i<o;)a[i]=e[i+n];return a}var bcr=_cr,Scr=ZU,Ecr=bcr;function Ccr(e,n){return n.length<2?e:Scr(e,Ecr(n,0,-1))}var wcr=Ccr,xcr=RI,Tcr=ycr,Ocr=wcr,Rcr=II;function Icr(e,n){return n=xcr(n,e),e=Ocr(e,n),e==null||delete e[Rcr(Tcr(n))]}var Ncr=Icr,Mcr=WU;function Pcr(e){return Mcr(e)?void 0:e}var Acr=Pcr,U$e=EI,Dcr=Fk,kcr=Xc,H$e=U$e?U$e.isConcatSpreadable:void 0;function Lcr(e){return kcr(e)||Dcr(e)||!!(H$e&&e&&e[H$e])}var $cr=Lcr,Fcr=wfe,Bcr=$cr;function klt(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=Bcr),o||(o=[]);++a<s;){var l=e[a];n>0&&r(l)?n>1?klt(l,n-1,r,i,o):Fcr(o,l):i||(o[o.length]=l)}return o}var Llt=klt,jcr=Llt;function Ucr(e){var n=e==null?0:e.length;return n?jcr(e,1):[]}var Hcr=Ucr,zcr=Hcr,Vcr=yYe,Gcr=_Ye;function Wcr(e){return Gcr(Vcr(e,void 0,zcr),e+"")}var $lt=Wcr,Ycr=Hk,qcr=Mfe,Kcr=Ncr,Xcr=RI,Qcr=gw,Zcr=Acr,Jcr=$lt,eur=oYe,tur=1,nur=2,rur=4,iur=Jcr(function(e,n){var r={};if(e==null)return r;var i=!1;n=Ycr(n,function(a){return a=Xcr(a,e),i||(i=a.length>1),a}),Qcr(e,eur(e),r),i&&(r=qcr(r,tur|nur|rur,Zcr));for(var o=n.length;o--;)Kcr(r,n[o]);return r}),our=iur;const g$=Or(our);function aur(e){return e===void 0}var sur=aur;const ll=Or(sur);var lur=Tfe;function cur(e,n){return lur(e,n)}var uur=cur;const If=Or(uur);var dur=AWe,fur=Vk,pur=Fk,hur=Xc,gur=l_,mur=Bk,vur=jk,yur=VU,_ur="[object Map]",bur="[object Set]",Sur=Object.prototype,Eur=Sur.hasOwnProperty;function Cur(e){if(e==null)return!0;if(gur(e)&&(hur(e)||typeof e=="string"||typeof e.splice=="function"||mur(e)||yur(e)||pur(e)))return!e.length;var n=fur(e);if(n==_ur||n==bur)return!e.size;if(vur(e))return!dur(e).length;for(var r in e)if(Eur.call(e,r))return!1;return!0}var wur=Cur;const ta=Or(wur);function b0(e,n){e&&console.warn(`Warning: ${n}`)}function Sve(e){return e==null}let xur=class{constructor(){this._eventMap=new Map}on(n,r){return n&&typeof r=="function"&&(this._eventMap.has(n)||this._eventMap.set(n,[]),this._eventMap.get(n).push(r)),this}once(n,r){var i=this;if(n&&typeof r=="function"){const o=function(){r(...arguments),i.off(n,o)};this.on(n,o)}}off(n,r){if(n)if(typeof r=="function"){const i=this._eventMap.get(n);if(Array.isArray(i)&&i.length){let o=-1;for(;(o=i.findIndex(a=>a===r))>-1;)i.splice(o,1)}}else Sve(r)&&this._eventMap.delete(n);return this}emit(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return this._eventMap.has(n)?([...this._eventMap.get(n)].forEach(s=>s(...i)),!0):!1}};function M2(e){try{return e instanceof HTMLElement}catch{return typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}}function Tur(e){if(e&&typeof e=="object")return typeof e.toJSON=="function"?e.toJSON():["left","top","right","bottom","width","height"].reduce((r,i)=>(r[i]=e[i],r),{})}function H0(e){e.stopPropagation(),e.preventDefault()}function Our(e){return e.length===1&&e.match(/\S/)}function m$(e,n){for(let r=0;r<e.length;r++)e[r]===n?(e[r].tabIndex=0,e[r].focus()):e[r].tabIndex=-1}function Rur(e){e.length>0&&m$(e,e[0])}function Iur(e){e.length>0&&m$(e,e[e.length-1])}function Nur(e,n){let r,i;e.length>0&&(n===e[0]?r=e[e.length-1]:(i=e.indexOf(n),r=e[i-1]),m$(e,r))}function Mur(e,n){let r,i;e.length>0&&(n===e[e.length-1]?r=e[0]:(i=e.indexOf(n),r=e[i+1]),m$(e,r))}function Pur(e,n,r,i){let o,a;return!e||!r||!i||i.length>1?-1:(i=i.toLowerCase(),o=e.indexOf(n)+1,o>=e.length&&(o=0),a=r.indexOf(i,o),a===-1&&(a=r.indexOf(i,0)),a>=0?a:-1)}function Aur(e,n){if(!e)return null;for(;e.parentElement&&fr(e.parentElement,"attributes.role.value","")!==n;)e=e.parentElement;return e.parentElement}function Dur(e,n){for(let r=0;r<e.length;r++){const i=e[r].attributes["data-popupid"];if(i&&i.value===n)return e[r]}return null}const _5={TOP:/top/i,RIGHT:/right/i,BOTTOM:/bottom/i,LEFT:/left/i},Gx={left:0,top:0,height:0,width:0,scrollLeft:0,scrollTop:0};let kur=class extends tc{constructor(n){var r;super(Object.assign({},n)),r=this,this.removePortal=()=>{this._adapter.removePortal()},this.setDisplayNone=(i,o)=>{this._adapter.setDisplayNone(i,o)},this.updateStateIfCursorOnTrigger=i=>{var o,a;if(!((o=i==null?void 0:i.matches)===null||o===void 0)&&o.call(i,":hover")){const s=this._adapter.getEventName(),l=this.getState("triggerEventSet");(a=l[s.mouseEnter])===null||a===void 0||a.call(l)}},this.onResize=()=>{this.getState("visible")&&this.calcPosition()},this.delayShow=()=>{const i=this.getProp("mouseEnterDelay");this.clearDelayTimer(),i>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},i):this.show()},this.show=()=>{if(this._adapter.getAnimatingState())return;const i=this.getProp("content"),o=this.getProp("trigger"),a=this.getProp("clickTriggerToHide"),{visible:s,displayNone:l}=this.getStates();if(l&&this.setDisplayNone(!1),!s){if(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),o==="hover"){const c=()=>{var u;const d=this._adapter.getTriggerDOM();o&&!(!((u=d==null?void 0:d.matches)===null||u===void 0)&&u.call(d,":hover"))&&this.hide(),this._adapter.off("portalInserted",c)};this._adapter.on("portalInserted",c)}this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(i,{left:-9999,top:-9999}),o==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(o==="click"||a||o==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent()}},this.calcPosition=function(i,o,a){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;i=(ta(i)?r._adapter.getTriggerBounding():i)||Object.assign({},Gx),a=(ta(a)?r._adapter.getPopupContainerRect():a)||Object.assign({},Gx),o=(ta(o)?r._adapter.getWrapperBounding():o)||Object.assign({},Gx);let l=r.calcPosStyle({triggerRect:i,wrapperRect:o,containerRect:a}),c=r.getProp("position");if(r.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:d,isWidthOverFlow:f}=r.adjustPosIfNeed(c,l,i,o,a);(c!==u||d||f)&&(c=u,l=r.calcPosStyle({triggerRect:i,wrapperRect:o,containerRect:a,position:c,spacing:null,isOverFlow:[d,f]}))}return s&&r._mounted&&r._adapter.setPosition(Object.assign(Object.assign({},l),{position:c})),l},this.delayHide=()=>{const i=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),i>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},i):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=i=>{const{guardFocus:o,closeOnEsc:a}=this.getProps();switch(i&&i.key){case"Escape":a&&this._handleEscKeyDown(i);break;case"Tab":if(o){const s=this._adapter.getContainer(),l=this._adapter.getFocusableElements(s);l.length&&(i.shiftKey?this._handleContainerShiftTabKeyDown(l,i):this._handleContainerTabKeyDown(l,i))}break}},this._timer=null}init(){const{wrapperId:n}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),n||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const n=this.getProp("trigger"),{triggerEventSet:r,portalEventSet:i}=this._generateEvent(n);this._bindTriggerEvent(r),this._bindPortalEvent(i),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(n){this._adapter.registerTriggerEvent(n)}_bindPortalEvent(n){this._adapter.registerPortalEvent(n)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",o=arguments.length>3?arguments[3]:void 0;switch(i){case"reverse":return this._reversePos(n,r);case"expand":return this._expandPos(n,o);case"reduce":return this._reducePos(n);default:return this._reversePos(n,r)}}_reversePos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(_5.TOP.test(n))return n.replace("top","bottom").replace("Top","Bottom");if(_5.BOTTOM.test(n))return n.replace("bottom","top").replace("Bottom","Top")}else{if(_5.LEFT.test(n))return n.replace("left","right").replace("Left","Right");if(_5.RIGHT.test(n))return n.replace("right","left").replace("Right","Left")}return n}_expandPos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return n.concat(r)}_reducePos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const r=["Top","Bottom","Left","Right"].find(i=>n.endsWith(i));return r?n.replace(r,""):n}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(n){const r=this._adapter.getEventName(),i={[r.keydown]:a=>{this._handleTriggerKeydown(a)}};let o={};switch(n){case"focus":i[r.focus]=()=>{this.delayShow()},i[r.blur]=()=>{this.delayHide()},o=i;break;case"click":i[r.click]=()=>{this.show()},o={};break;case"hover":i[r.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},i[r.mouseLeave]=()=>{this.delayHide()},i[r.focus]=()=>{const{disableFocusListener:a}=this.getProps();!a&&this.delayShow()},i[r.blur]=()=>{const{disableFocusListener:a}=this.getProps();!a&&this.delayHide()},o=Object.assign({},i),this.getProp("clickToHide")&&(o[r.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},o[r.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":i[r.contextMenu]=a=>{a.preventDefault(),this.show()};break}return{triggerEventSet:i,portalEventSet:o}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(n){const r=this.getState("visible"),i=this.getState("isInsert");(r!==n||i!==n)&&this._adapter.togglePortalVisible(n,()=>{n&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(n)})}_roundPixel(n){return typeof n=="number"?Math.round(n):n}calcTransformOrigin(n,r,i,o){if(n&&r&&i!=null&&o!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(n))return`${this._roundPixel(r.width/2)}px ${-o*100}%`;if(["topRight","bottomRight"].includes(n))return`calc(100% - ${this._roundPixel(r.width/2)}px) ${-o*100}%`;if(["leftTop","rightTop"].includes(n))return`${-i*100}% ${this._roundPixel(r.height/2)}px`;if(["leftBottom","rightBottom"].includes(n))return`${-i*100}% calc(100% - ${this._roundPixel(r.height/2)}px)`}return`${-i*100}% ${-o*100}%`}return null}calcPosStyle(n){var r;const{spacing:i,isOverFlow:o}=n,{innerWidth:a}=window,s=(ta(n.triggerRect)?n.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},Gx),l=(ta(n.containerRect)?n.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},Gx),c=(ta(n.wrapperRect)?n.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},Gx),u=n.position!=null?n.position:this.getProp("position"),d=i??this.getProp("spacing"),{arrowPointAtCenter:f,showArrow:p,arrowBounding:h}=this.getProps(),g=p&&f;let v=d,y=0;if(typeof d!="number"){const te=u.includes("top")||u.includes("bottom");v=te?d.y:d.x,y=te?d.x:d.y}const _=fr(h,"width",24),S=fr(h,"width",24),b=fr(h,"offsetY",0),E=6,w=6;let C,x,T=0,R=0;const O=s.left+s.width/2,M=s.top+s.height/2,P=E+_/2,k=w+S/2,$=c.height-l.height,U=c.width-l.width,z=$>0?$:0,D=U>0?U:0,B=o&&o[0],Y=o&&o[1],q=O-l.left<l.right-O,K=M-l.top<l.bottom-M,H=c.width>a,G=Math.abs((c==null?void 0:c.width)-((r=this._adapter.getContainer())===null||r===void 0?void 0:r.clientWidth))>1;switch(G&&(v=v*c.width/this._adapter.getContainer().clientWidth),u){case"top":C=Y?q?l.left+c.width/2:l.right-c.width/2+D:O+y,x=B?l.bottom+z:s.top-v,T=-.5,R=-1;break;case"topLeft":C=Y?H?l.left:l.right-c.width:g?O-P+y:s.left+y,x=B?l.bottom+z:s.top-v,R=-1;break;case"topRight":C=Y?l.right+D:g?O+P+y:s.right+y,x=B?l.bottom+z:s.top-v,R=-1,T=-1;break;case"left":C=Y?l.right+D-v+P:s.left-v,x=B?K?l.top+c.height/2:l.bottom-c.height/2+z:M+y,T=-1,R=-.5;break;case"leftTop":C=Y?l.right+D-v+P:s.left-v,x=B?l.top:g?M-k+y:s.top+y,T=-1;break;case"leftBottom":C=Y?l.right+D-v+P:s.left-v,x=B?l.bottom+z:g?M+k+y:s.bottom+y,T=-1,R=-1;break;case"bottom":C=Y?q?l.left+c.width/2:l.right-c.width/2+D:O+y,x=B?l.top+k-v:s.top+s.height+v,T=-.5;break;case"bottomLeft":C=Y?H?l.left:l.right-c.width:g?O-P+y:s.left+y,x=B?l.top+k-v:s.top+s.height+v;break;case"bottomRight":C=Y?l.right+D:g?O+P+y:s.right+y,x=B?l.top+k-v:s.top+s.height+v,T=-1;break;case"right":C=Y?l.left-v+P:s.right+v,x=B?K?l.top+c.height/2:l.bottom-c.height/2+z:M+y,R=-.5;break;case"rightTop":C=Y?l.left-v+P:s.right+v,x=B?l.top:g?M-k+y:s.top+y;break;case"rightBottom":C=Y?l.left-v+P:s.right+v,x=B?l.bottom+z:g?M+k+y:s.bottom+y,R=-1;break;case"leftTopOver":C=s.left-v,x=s.top-v;break;case"rightTopOver":C=s.right+v,x=s.top-v,T=-1;break;case"leftBottomOver":C=s.left-v,x=s.bottom+v,R=-1;break;case"rightBottomOver":C=s.right+v,x=s.bottom+v,T=-1,R=-1;break}const Q=this.calcTransformOrigin(u,s,T,R),le=this._adapter.containerIsBody();if(C=C-l.left,x=x-l.top,G&&(C/=c.width/this._adapter.getContainer().clientWidth),G&&(x/=c.height/this._adapter.getContainer().clientHeight),le&&!this._adapter.containerIsRelativeOrAbsolute()){const te=this._adapter.getDocumentElementBounding();C+=l.left-te.left,x+=l.top-te.top}C=le?C:C+l.scrollLeft,x=le?x:x+l.scrollTop;const Z=s.height;if(this.getProp("showArrow")&&!f&&Z<=(S/2+b)*2){const te=Z/2-(b+S/2);(u.includes("Top")||u.includes("Bottom"))&&!u.includes("Over")&&(x=u.includes("Top")?x+te:x-te)}const j={left:this._roundPixel(C),top:this._roundPixel(x)};let F="";return T!=null&&(F+=`translateX(${T*100}%) `,Object.defineProperty(j,"translateX",{enumerable:!1,value:T})),R!=null&&(F+=`translateY(${R*100}%) `,Object.defineProperty(j,"translateY",{enumerable:!1,value:R})),Q!=null&&(j.transformOrigin=Q),F&&(j.transform=F),j}isLR(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n.includes("left")||n.includes("right")}isTB(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n.includes("top")||n.includes("bottom")}isReverse(n,r,i){return n<i&&r>i}isOverFlow(n,r,i){return n<i&&r<i}isHalfOverFlow(n,r,i){return n<i||r<i}isHalfAllEnough(n,r,i){return n>=i||r>=i}getReverse(n,r,i,o){return n&&o||i}adjustPosIfNeed(n,r,i,o,a){const{innerWidth:s,innerHeight:l}=window,{margin:c}=this.getProps(),u=typeof c=="number"?c:c.marginLeft,d=typeof c=="number"?c:c.marginTop,f=typeof c=="number"?c:c.marginRight,p=typeof c=="number"?c:c.marginBottom;let h=!1,g=!1;const v=this.getProp("spacing");let y=v,_=0;if(typeof v!="number"){const S=n.includes("top")||n.includes("bottom");y=S?v.y:v.x,_=S?v.x:v.y}if(o.width>0&&o.height>0){const S=i.left,b=i.right,E=i.top,w=i.bottom,C=s-S,x=l-E,T=s-b,R=l-w,O=o.width>i.width,M=o.height>i.height,P=E-d<o.height+y&&R-p>o.height+y,k=S-u<o.width+y&&T-f>o.width+y,$=R-p<o.height+y&&E-d>o.height+y,U=T-f<o.width+y&&S-u>o.width+y;x-p<o.height+y&&w-d>o.height+y,w-d<o.height+y&&x-p>o.height+y;const z=x<o.height+_&&w>o.height+_,D=w<o.height+_&&x>o.height+_,B=C<o.width+_&&b>o.width+_,Y=b<o.width+_&&C>o.width+_,q=x<o.height+y&&w>o.height+y,K=w<o.height+y&&x>o.height+y,H=C<o.width&&b>o.width,G=b<o.width&&C>o.width,Q=E-a.top,le=S-a.left,Z=Q+i.height,j=le+i.width,F=a.bottom-w,te=a.right-b,oe=F+i.height,de=te+i.width,pe=this.isReverse(Q-d,F-p,o.height+y),me=this.isReverse(le-u,te-f,o.width+y),ve=this.isReverse(F-p,Q-d,o.height+y),he=this.isReverse(te-f,le-u,o.width+y);this.isReverse(oe-p,Z-d,o.height+y),this.isReverse(Z-d,oe-p,o.height+y);const be=this.isReverse(oe,Z,o.height+_),we=this.isReverse(Z,oe,o.height+_),De=this.isReverse(de,j,o.width+_),Ae=this.isReverse(j,de,o.width+_),Ee=i.height/2,Re=i.width/2,Te=this.isOverFlow(E-d,R-p,o.height+y),Oe=this.isOverFlow(S-u,T-f,o.width+y),Ne=this.isOverFlow(w-d,x-p,o.height+y),je=this.isOverFlow(b-u,C-f,o.width+y),ne=this.isHalfOverFlow(w-Ee,x-Ee,(o.height+_)/2),J=this.isHalfOverFlow(b-Re,C-Re,(o.width+_)/2),ae=this.isHalfAllEnough(w-Ee,x-Ee,(o.height+_)/2),Se=this.isHalfAllEnough(b-Re,C-Re,(o.width+_)/2),xe=this.isOverFlow(Q-d,F-p,o.height+y),ue=this.isOverFlow(le-u,te-f,o.width+y),Me=this.isOverFlow(Z-d,oe-p,o.height+y),$e=this.isOverFlow(j-u,de-f,o.width+y),ge=this.isHalfOverFlow(Z-Ee,oe-Ee,(o.height+_)/2),Ve=this.isHalfOverFlow(j-Re,de-Re,(o.width+_)/2),st=this.isHalfAllEnough(Z-Ee,oe-Ee,(o.height+_)/2),Je=this.isHalfAllEnough(j-Re,de-Re,(o.width+_)/2),ot=this.getReverse(Te,xe,P,pe),Xe=this.getReverse(Oe,ue,k,me),Ze=this.getReverse(Te,xe,$,ve),bt=this.getReverse(Oe,ue,U,he),at=this.getReverse(Ne,Me,z,be),pt=this.getReverse(Ne,Me,D,we),Ct=this.getReverse(je,$e,B,De),It=this.getReverse(je,$e,Y,Ae),Wt=ne&&ge,Bt=J&&Ve;switch(n){case"top":ot&&(n=this._adjustPos(n,!0)),Bt&&(Ct||It)&&(n=this._adjustPos(n,!0,"expand",Ct?"Right":"Left"));break;case"topLeft":ot&&(n=this._adjustPos(n,!0)),Ct&&O&&(n=this._adjustPos(n)),g&&(Se||Je)&&(n=this._adjustPos(n,!0,"reduce"));break;case"topRight":ot&&(n=this._adjustPos(n,!0)),It&&O&&(n=this._adjustPos(n)),g&&(Se||Je)&&(n=this._adjustPos(n,!0,"reduce"));break;case"left":Xe&&(n=this._adjustPos(n)),Wt&&(at||pt)&&(n=this._adjustPos(n,!1,"expand",at?"Bottom":"Top"));break;case"leftTop":Xe&&(n=this._adjustPos(n)),at&&M&&(n=this._adjustPos(n,!0)),h&&(ae||st)&&(n=this._adjustPos(n,!1,"reduce"));break;case"leftBottom":Xe&&(n=this._adjustPos(n)),pt&&M&&(n=this._adjustPos(n,!0)),h&&(ae||st)&&(n=this._adjustPos(n,!1,"reduce"));break;case"bottom":Ze&&(n=this._adjustPos(n,!0)),Bt&&(Ct||It)&&(n=this._adjustPos(n,!0,"expand",Ct?"Right":"Left"));break;case"bottomLeft":Ze&&(n=this._adjustPos(n,!0)),Ct&&O&&(n=this._adjustPos(n)),g&&(Se||Je)&&(n=this._adjustPos(n,!0,"reduce"));break;case"bottomRight":Ze&&(n=this._adjustPos(n,!0)),It&&O&&(n=this._adjustPos(n)),g&&(Se||Je)&&(n=this._adjustPos(n,!0,"reduce"));break;case"right":bt&&(n=this._adjustPos(n)),Wt&&(at||pt)&&(n=this._adjustPos(n,!1,"expand",at?"Bottom":"Top"));break;case"rightTop":bt&&(n=this._adjustPos(n)),at&&M&&(n=this._adjustPos(n,!0)),h&&(ae||st)&&(n=this._adjustPos(n,!1,"reduce"));break;case"rightBottom":bt&&(n=this._adjustPos(n)),pt&&M&&(n=this._adjustPos(n,!0)),h&&(ae||st)&&(n=this._adjustPos(n,!1,"reduce"));break;case"leftTopOver":q&&(n=this._adjustPos(n,!0)),H&&(n=this._adjustPos(n));break;case"leftBottomOver":K&&(n=this._adjustPos(n,!0)),H&&(n=this._adjustPos(n));break;case"rightTopOver":q&&(n=this._adjustPos(n,!0)),G&&(n=this._adjustPos(n));break;case"rightBottomOver":K&&(n=this._adjustPos(n,!0)),G&&(n=this._adjustPos(n));break}this.isTB(n)&&(h=Te&&xe,n==="top"||n==="bottom"?g=J&&Ve||b<0||T<0:g=je&&$e||b<0||T<0),this.isLR(n)&&(g=Oe&&ue,n==="left"||n==="right"?h=ne&&ge||E<0||x<0:h=Ne&&Me||E<0||x<0)}return{position:n,isHeightOverFlow:h,isWidthOverFlow:g}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(n){const{closeOnEsc:r,disableArrowKeyDown:i}=this.getProps(),o=this._adapter.getContainer(),a=this._adapter.getFocusableElements(o),s=a.length;switch(n&&n.key){case"Escape":H0(n),r&&this._handleEscKeyDown(n);break;case"ArrowUp":!i&&s&&this._handleTriggerArrowUpKeydown(a,n);break;case"ArrowDown":!i&&s&&this._handleTriggerArrowDownKeydown(a,n);break}}focusTrigger(){const{trigger:n,returnFocusOnClose:r,preventScroll:i}=this.getProps();if(r&&n!=="custom"){const o=this._adapter.getTriggerNode();o&&"focus"in o&&o.focus({preventScroll:i})}}_handleEscKeyDown(n){const{trigger:r}=this.getProps();r!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(n)}_handleContainerTabKeyDown(n,r){const{preventScroll:i}=this.getProps(),o=this._adapter.getActiveElement();n[n.length-1]===o&&(n[0].focus({preventScroll:i}),r.preventDefault())}_handleContainerShiftTabKeyDown(n,r){const{preventScroll:i}=this.getProps(),o=this._adapter.getActiveElement();n[0]===o&&(n[n.length-1].focus({preventScroll:i}),r.preventDefault())}_handleTriggerArrowDownKeydown(n,r){const{preventScroll:i}=this.getProps();n[0].focus({preventScroll:i}),r.preventDefault()}_handleTriggerArrowUpKeydown(n,r){const{preventScroll:i}=this.getProps();n[n.length-1].focus({preventScroll:i}),r.preventDefault()}};const Lur={PREFIX:`${ui}-tooltip`},tO={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Sb={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function zse(e){return`${e}-${new Date().getTime()}-${Math.random()}`}function Wj(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:n="",length:r=7}=e,i="0123456789abcdefghijklmnopqrstuvwxyz",o=i.length;let a="";for(let s=0;s<r;s++){const l=Math.floor(Math.random()*o);a+=i.charAt(l)}return n?`${n}-${a}`:a}var $ur=eH,Fur=RI,Bur=HU,z$e=Cd,jur=II;function Uur(e,n,r,i){if(!z$e(e))return e;n=Fur(n,e);for(var o=-1,a=n.length,s=a-1,l=e;l!=null&&++o<a;){var c=jur(n[o]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=s){var d=l[c];u=i?i(d,c,l):void 0,u===void 0&&(u=z$e(d)?d:Bur(n[o+1])?[]:{})}$ur(l,c,u),l=l[c]}return e}var Flt=Uur,Hur=Flt;function zur(e,n,r){return e==null?e:Hur(e,n,r)}var Vur=zur;const Gur=Or(Vur);var Wur=Mfe,Yur=1,qur=4;function Kur(e,n){return n=typeof n=="function"?n:void 0,Wur(e,Yur|qur,n)}var Xur=Kur;const Qur=Or(Xur);class Zur{constructor(){this.config={}}}const tee=new Zur;var V$e=function(e,n,r,i){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(d){try{u(i.next(d))}catch(f){s(f)}}function c(d){try{u(i.throw(d))}catch(f){s(f)}}function u(d){d.done?a(d.value):o(d.value).then(l,c)}u((i=i.apply(e,n||[])).next())})};function b5(e,n){e&&typeof e.stopPropagation=="function"&&e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation()}const rf=e=>V.isValidElement(e)&&fr(e.type,"elementType")==="Icon";function Jur(){return document?document.activeElement:null}function edr(e){if(!M2(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}function Eve(e,n){return V$e(this,void 0,void 0,function*(){if(n===0){yield e();return}else{yield new Promise(r=>{setTimeout(()=>V$e(this,void 0,void 0,function*(){yield Eve(e,n-1),r()}),0)});return}})}function tdr(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}function T_(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=()=>{var i,o;return((o=(i=tee==null?void 0:tee.config)===null||i===void 0?void 0:i.overrideDefaultProps)===null||o===void 0?void 0:o[e])||{}};return new Proxy(Object.assign({},n),{get(i,o,a){const s=r();return o in s?s[o]:Reflect.get(i,o,a)},set(i,o,a,s){return Reflect.set(i,o,a,s)},ownKeys(){const i=r();return Array.from(new Set([...Reflect.ownKeys(n),...Object.keys(i)]))},getOwnPropertyDescriptor(i,o){const a=r();return o in a?Reflect.getOwnPropertyDescriptor(a,o):Reflect.getOwnPropertyDescriptor(i,o)}})}const Ig=V.createContext({}),ndr=()=>document.body;class v$ extends m.PureComponent{constructor(n,r){var i;super(n),i=this,this.initContainer=function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var s,l;try{let c;if(!i.el||!(!((s=i.state)===null||s===void 0)&&s.container)||!Array.from(i.state.container.childNodes).includes(i.el)){i.el=document.createElement("div");const d=(i.props.getPopupContainer||o.getPopupContainer||ndr)();return d.appendChild(i.el),i.addStyle(i.props.style),i.addClass(i.props.prefixCls,o,i.props.className),c=d,c}}catch(c){if(!a)throw c}return(l=i.state)===null||l===void 0?void 0:l.container},this.addStyle=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(i.el)for(const a of Object.keys(o))i.el.style[a]=o[a]},this.addClass=function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i.context;const{direction:s}=a;for(var l=arguments.length,c=new Array(l>2?l-2:0),u=2;u<l;u++)c[u-2]=arguments[u];const d=Ce(o,...c,{[`${o}-rtl`]:s==="rtl"});i.el&&(i.el.className=d)},this.state={container:this.initContainer(r,!0)}}componentDidMount(){const n=this.initContainer(this.context);n!==this.state.container&&this.setState({container:n})}componentDidUpdate(n){const{didUpdate:r}=this.props;r&&r(n)}componentWillUnmount(){const{container:n}=this.state;n&&n.removeChild(this.el)}render(){const{state:n,props:r}=this;return n.container?Us.createPortal(r.children,this.el):null}}v$.contextType=Ig;v$.defaultProps={prefixCls:`${ui}-portal`};v$.propTypes={children:ie.node,prefixCls:ie.string,getPopupContainer:ie.func,className:ie.string,didUpdate:ie.func};var rdr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const idr=e=>{const{className:n,style:r}=e,i=rdr(e,["className","style"]);return V.createElement("svg",Object.assign({"aria-hidden":!0,className:n,style:r},i,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),V.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))};var odr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const adr=e=>{const{className:n,style:r}=e,i=odr(e,["className","style"]);return V.createElement("svg",Object.assign({"aria-hidden":!0,className:n,style:r},i,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),V.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},sdr=ie.shape({offsetX:ie.number,offsetY:ie.number,width:ie.number,height:ie.number});class RD extends V.Component{constructor(n){super(n),this.handleAnimationStart=()=>{var r,i;(i=(r=this.props).onAnimationStart)===null||i===void 0||i.call(r)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var r,i;(i=(r=this.props).onAnimationEnd)===null||i===void 0||i.call(r,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var n,r,i,o;(r=(n=this.props).onAnimationStart)===null||r===void 0||r.call(n),this.props.motion||((o=(i=this.props).onAnimationEnd)===null||o===void 0||o.call(i,!1),this.setState({isAnimating:!1}))}componentDidUpdate(n,r,i){const o=Object.keys(this.props).filter(a=>!If(this.props[a],n[a]));o.includes("animationState"),(o.includes("startClassName")||o.includes("replayKey")||o.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var a,s,l,c;(s=(a=this.props).onAnimationStart)===null||s===void 0||s.call(a),this.props.motion||((c=(l=this.props).onAnimationEnd)===null||c===void 0||c.call(l,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var n;return this.props.motion?this.props.children({animationClassName:(n=this.state.currentClassName)!==null&&n!==void 0?n:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}RD.defaultProps={motion:!0,replayKey:""};var G$e=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const cF=Lur.PREFIX,ldr=tO.POSITION_SET,cdr=tO.TRIGGER_SET,udr=["flex","block","table","flow-root","grid"],ddr=()=>document.body;class qo extends fl{constructor(n){super(n),this.isAnimating=!1,this.setContainerEl=r=>this.containerEl={current:r},this.isSpecial=r=>{if(M2(r))return!!r.disabled;if(m.isValidElement(r)){if(fr(r,"props.disabled"))return tO.STATUS_DISABLED;const o=fr(r,"props.loading"),a=!ta(r)&&!ta(r.type)&&(fr(r,"type.elementType")==="Button"||fr(r,"type.elementType")==="IconButton");if(o&&a)return tO.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:r}=this.state,{showArrow:i,prefixCls:o,style:a}=this.props;let s=null;const l=Ce([`${o}-icon-arrow`]),c=fr(a,"backgroundColor"),u=r!=null&&r.includes("left")||r!=null&&r.includes("right")?V.createElement(adr,null):V.createElement(idr,null);return i&&(m.isValidElement(i)?s=i:s=V.cloneElement(u,{className:l,style:{color:c,fill:"currentColor"}})),s},this.handlePortalInnerClick=r=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&b5(r)},this.handlePortalMouseDown=r=>{this.props.stopPropagation&&b5(r)},this.handlePortalFocus=r=>{this.props.stopPropagation&&b5(r)},this.handlePortalBlur=r=>{this.props.stopPropagation&&b5(r)},this.handlePortalInnerKeyDown=r=>{this.foundation.handleContainerKeydown(r)},this.renderContentNode=r=>{const i={initialFocusRef:this.initialFocusRef};return za(r)?r(i):r},this.renderPortal=()=>{const{containerStyle:r={},visible:i,portalEventSet:o,placement:a,displayNone:s,transitionState:l,id:c,isPositionUpdated:u}=this.state,{prefixCls:d,content:f,showArrow:p,style:h,motion:g,role:v,zIndex:y}=this.props,_=this.renderContentNode(f),{className:S}=this.props,b=this.context.direction,E=Ce(S,{[`${d}-wrapper`]:!0,[`${d}-wrapper-show`]:i,[`${d}-with-arrow`]:!!p,[`${d}-rtl`]:b==="rtl"}),w=this.renderIcon(),C=g$(r,g?["transformOrigin"]:void 0),x=fr(r,"transformOrigin"),T=fr(h,"opacity",null),R=T||1,O=V.createElement(RD,{fillMode:"forwards",animationState:l,motion:g&&u,startClassName:l==="enter"?`${cF}-animation-show`:`${cF}-animation-hide`,onAnimationStart:()=>this.isAnimating=!0,onAnimationEnd:()=>{var M,P;l==="leave"&&(this.didLeave(),(P=(M=this.props).afterClose)===null||P===void 0||P.call(M)),this.isAnimating=!1}},M=>{let{animationStyle:P,animationClassName:k,animationEventsNeedBind:$}=M;return V.createElement("div",Object.assign({className:Ce(E,k),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P),s?{display:"none"}:{}),{transformOrigin:x}),h),T?{opacity:u?R:"0"}:{})},o,$,{role:v,"x-placement":a,id:c}),V.createElement("div",{className:`${cF}-content`},_),w)});return V.createElement(v$,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:y}},V.createElement("div",{tabIndex:-1,className:`${ui}-portal-inner`,style:C,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},O))},this.wrapSpan=r=>{const{wrapperClassName:i}=this.props,o=fr(r,"props.style.display"),a=fr(r,"props.block"),s=typeof r=="string",l={};return s||(l.display="inline-block"),(a||udr.includes(o))&&(l.width="100%"),V.createElement("span",{className:i,style:l},r)},this.mergeEvents=(r,i)=>{const o={};return OYe(i,(a,s)=>{typeof a=="function"&&(o[s]=function(){a(...arguments),r&&typeof r[s]=="function"&&r[s](...arguments)})}),o},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:n.position||"top",transitionStyle:{},isPositionUpdated:!1,id:n.wrapperId,displayNone:!1},this.foundation=new kur(this.adapter),this.eventManager=new xur,this.triggerEl=V.createRef(),this.containerEl=V.createRef(),this.initialFocusRef=V.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var n=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return n.eventManager.on(...arguments)},off:function(){return n.eventManager.off(...arguments)},getAnimatingState:()=>this.isAnimating,insertPortal:(r,i)=>{var o=G$e(i,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),o)},()=>{setTimeout(()=>{this.setState(a=>(a.transitionState==="enter"&&this.eventManager.emit("portalInserted"),{}))},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:r=>{this.setState({triggerEventSet:r})},registerPortalEvent:r=>{this.setState({portalEventSet:r})},getTriggerBounding:()=>{const r=this.adapter.getTriggerNode();return this.triggerEl.current=r,r&&r.getBoundingClientRect()},getPopupContainerRect:()=>{const r=this.getPopupContainer();let i=null;if(r&&M2(r)){const o=Tur(r.getBoundingClientRect());i=Object.assign(Object.assign({},o),{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop})}return i},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const r=this.getPopupContainer();return window.getComputedStyle(r).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const r=this.containerEl&&this.containerEl.current;return r&&r.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:r=>{var{position:i}=r,o=G$e(r,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),o),placement:i,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(r,i)=>{this.setState({displayNone:r},i)},updatePlacementAttr:r=>{this.setState({placement:r})},togglePortalVisible:(r,i)=>{const o={};o.transitionState=r?"enter":"leave",o.visible=r,this.mounted&&this.setState(o,()=>{i()})},registerClickOutsideHandler:r=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=i=>{if(!this.mounted)return!1;let o=this.triggerEl&&this.triggerEl.current,a=this.containerEl&&this.containerEl.current;o=Gl.findDOMNode(o),a=Gl.findDOMNode(a);const s=i.target,l=i.composedPath&&i.composedPath()||[s],c=this.props.clickTriggerToHide?o&&o.contains(s)||l.includes(o):!1;(o&&!o.contains(s)&&a&&!a.contains(s)&&!(l.includes(a)||l.includes(o))||c)&&(this.props.onClickOutSide(i),r())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:r=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=noe(i=>{if(!this.mounted)return!1;r(i)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:r=>{this.props.onVisibleChange(r)},registerScrollHandler:r=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=noe(i=>{if(!this.mounted)return!1;const o=this.adapter.getTriggerNode();if(i.target.contains(o)){const s={x:i.target.scrollLeft,y:i.target.scrollTop};r(s)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const r=this.getPopupContainer();if(r&&M2(r)){const o=window.getComputedStyle(r).getPropertyValue("position");this.containerPosition=o}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let r=this.triggerEl.current;return M2(this.triggerEl.current)||(r=Gl.findDOMNode(this.triggerEl.current)),r},getFocusableElements:r=>edr(r),getActiveElement:()=>Jur(),setInitialFocus:()=>{const{preventScroll:r}=this.props,i=fr(this,"initialFocusRef.current");i&&"focus"in i&&i.focus({preventScroll:r})},notifyEscKeydown:r=>{this.props.onEscKeyDown(r)},setId:()=>{this.setState({id:Wj()})},getTriggerDOM:()=>this.triggerEl.current?Gl.findDOMNode(this.triggerEl.current):null})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||ddr,this.foundation.init(),Eve(()=>{let n=this.triggerEl.current;n&&(n instanceof HTMLElement||(n=Us.findDOMNode(n))),this.foundation.updateStateIfCursorOnTrigger(n)},1)}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(n,r){b0(this.props.mouseLeaveDelay<this.props.mouseEnterDelay,"[Semi Tooltip] 'mouseLeaveDelay' cannot be less than 'mouseEnterDelay', which may cause the dropdown layer to not be hidden."),n.visible!==this.props.visible&&(["hover","focus"].includes(this.props.trigger)?this.props.visible?this.foundation.delayShow():this.foundation.delayHide():this.props.visible?this.foundation.show():this.foundation.hide()),If(n.rePosKey,this.props.rePosKey)||this.rePosition()}render(){const{isInsert:n,triggerEventSet:r,visible:i,id:o}=this.state,{wrapWhenSpecial:a,role:s,trigger:l}=this.props;let{children:c}=this.props;const u=Object.assign({},fr(c,"props.style")),d={};if(a){const h=this.isSpecial(c);h?(u.pointerEvents="none",h===tO.STATUS_DISABLED&&(d.cursor="not-allowed"),c=m.cloneElement(c,{style:u}),l!=="custom"&&(c=this.wrapSpan(c)),this.isWrapped=!0):m.isValidElement(c)||(c=this.wrapSpan(c),this.isWrapped=!0)}let f={};s==="dialog"?(f["aria-expanded"]=i?"true":"false",f["aria-haspopup"]="dialog",f["aria-controls"]=o):f["aria-describedby"]=o;const p=V.cloneElement(c,Object.assign(Object.assign(Object.assign(Object.assign({},f),c.props),this.mergeEvents(c.props,r)),{style:Object.assign(Object.assign({},fr(c,"props.style")),d),className:Ce(fr(c,"props.className")),ref:h=>{this.triggerEl.current=h;const{ref:g}=c;typeof g=="function"?g(h):g&&typeof g=="object"&&(g.current=h)},tabIndex:c.props.tabIndex||0,"data-popupid":o}));return V.createElement(V.Fragment,null,n?this.renderPortal():null,p)}}qo.contextType=Ig;qo.propTypes={children:ie.node,motion:ie.bool,autoAdjustOverflow:ie.bool,position:ie.oneOf(ldr),getPopupContainer:ie.func,mouseEnterDelay:ie.number,mouseLeaveDelay:ie.number,trigger:ie.oneOf(cdr).isRequired,className:ie.string,wrapperClassName:ie.string,clickToHide:ie.bool,clickTriggerToHide:ie.bool,visible:ie.bool,style:ie.object,content:ie.oneOfType([ie.node,ie.func]),prefixCls:ie.string,onVisibleChange:ie.func,onClickOutSide:ie.func,spacing:ie.oneOfType([ie.number,ie.object]),margin:ie.oneOfType([ie.number,ie.object]),showArrow:ie.oneOfType([ie.bool,ie.node]),zIndex:ie.number,rePosKey:ie.oneOfType([ie.string,ie.number]),arrowBounding:sdr,transformFromCenter:ie.bool,arrowPointAtCenter:ie.bool,stopPropagation:ie.bool,role:ie.string,wrapWhenSpecial:ie.bool,guardFocus:ie.bool,returnFocusOnClose:ie.bool,preventScroll:ie.bool,keepDOM:ie.bool};qo.__SemiComponentName__="Tooltip";qo.defaultProps=T_(qo.__SemiComponentName__,{arrowBounding:Sb.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:cF,role:"tooltip",mouseEnterDelay:Sb.MOUSE_ENTER_DELAY,mouseLeaveDelay:Sb.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:vr,onClickOutSide:vr,spacing:Sb.SPACING,margin:Sb.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Sb.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:vr,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1});var Cve={exports:{}};const Blt=(e,{target:n=document.body}={})=>{const r=document.createElement("textarea"),i=document.activeElement;r.value=e,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";const o=document.getSelection();let a=!1;o.rangeCount>0&&(a=o.getRangeAt(0)),n.append(r),r.select(),r.selectionStart=0,r.selectionEnd=e.length;let s=!1;try{s=document.execCommand("copy")}catch{}return r.remove(),a&&(o.removeAllRanges(),o.addRange(a)),i&&i.focus(),s};Cve.exports=Blt;Cve.exports.default=Blt;var fdr=Cve.exports;const pdr=Or(fdr);function sy(){}const hdr=V.createContext(null);function nee(e){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.width?String(n.width):e.defaultWidth,i=e.formats[r]||e.formats[e.defaultWidth];return i}}function HM(e){return function(n,r){var i=r!=null&&r.context?String(r.context):"standalone",o;if(i==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,s=r!=null&&r.width?String(r.width):a;o=e.formattingValues[s]||e.formattingValues[a]}else{var l=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[c]||e.values[l]}var u=e.argumentCallback?e.argumentCallback(n):n;return o[u]}}function zM(e){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=n.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?mdr(l,function(f){return f.test(s)}):gdr(l,function(f){return f.test(s)}),u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;var d=n.slice(s.length);return{value:u,rest:d}}}function gdr(e,n){for(var r in e)if(e.hasOwnProperty(r)&&n(e[r]))return r}function mdr(e,n){for(var r=0;r<e.length;r++)if(n(e[r]))return r}function vdr(e){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.match(e.matchPattern);if(!i)return null;var o=i[0],a=n.match(e.parsePattern);if(!a)return null;var s=e.valueCallback?e.valueCallback(a[0]):a[0];s=r.valueCallback?r.valueCallback(s):s;var l=n.slice(o.length);return{value:s,rest:l}}}function ydr(e){if(e===null||e===!0||e===!1)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function wve(e,n){if(n.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}function _dr(e){wve(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||cn(e)==="object"&&n==="[object Date]"?new Date(e.getTime()):typeof e=="number"||n==="[object Number]"?new Date(e):((typeof e=="string"||n==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}var bdr={};function Sdr(){return bdr}function W$e(e,n){var r,i,o,a,s,l,c,u;wve(1,arguments);var d=Sdr(),f=ydr((r=(i=(o=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&i!==void 0?i:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=_dr(e),h=p.getUTCDay(),g=(h<f?7:0)+h-f;return p.setUTCDate(p.getUTCDate()-g),p.setUTCHours(0,0,0,0),p}function Edr(e,n,r){wve(2,arguments);var i=W$e(e,r),o=W$e(n,r);return i.getTime()===o.getTime()}var Cdr={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},wdr=function(n,r,i){var o,a=Cdr[n];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",String(r)),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?o+"内":o+"前":o},xdr={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Tdr={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Odr={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Rdr={date:nee({formats:xdr,defaultWidth:"full"}),time:nee({formats:Tdr,defaultWidth:"full"}),dateTime:nee({formats:Odr,defaultWidth:"full"})};function Y$e(e,n,r){var i="eeee p";return Edr(e,n,r)?i:e.getTime()>n.getTime()?"'下个'"+i:"'上个'"+i}var Idr={lastWeek:Y$e,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Y$e,other:"PP p"},Ndr=function(n,r,i,o){var a=Idr[n];return typeof a=="function"?a(r,i,o):a},Mdr={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},Pdr={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Adr={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Ddr={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},kdr={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ldr={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},$dr=function(n,r){var i=Number(n);switch(r==null?void 0:r.unit){case"date":return i.toString()+"日";case"hour":return i.toString()+"时";case"minute":return i.toString()+"分";case"second":return i.toString()+"秒";default:return"第 "+i.toString()}},Fdr={ordinalNumber:$dr,era:HM({values:Mdr,defaultWidth:"wide"}),quarter:HM({values:Pdr,defaultWidth:"wide",argumentCallback:function(n){return n-1}}),month:HM({values:Adr,defaultWidth:"wide"}),day:HM({values:Ddr,defaultWidth:"wide"}),dayPeriod:HM({values:kdr,defaultWidth:"wide",formattingValues:Ldr,defaultFormattingWidth:"wide"})},Bdr=/^(第\s*)?\d+(日|时|分|秒)?/i,jdr=/\d+/i,Udr={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Hdr={any:[/^(前)/i,/^(公元)/i]},zdr={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Vdr={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Gdr={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Wdr={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Ydr={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},qdr={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Kdr={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Xdr={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Qdr={ordinalNumber:vdr({matchPattern:Bdr,parsePattern:jdr,valueCallback:function(n){return parseInt(n,10)}}),era:zM({matchPatterns:Udr,defaultMatchWidth:"wide",parsePatterns:Hdr,defaultParseWidth:"any"}),quarter:zM({matchPatterns:zdr,defaultMatchWidth:"wide",parsePatterns:Vdr,defaultParseWidth:"any",valueCallback:function(n){return n+1}}),month:zM({matchPatterns:Gdr,defaultMatchWidth:"wide",parsePatterns:Wdr,defaultParseWidth:"any"}),day:zM({matchPatterns:Ydr,defaultMatchWidth:"wide",parsePatterns:qdr,defaultParseWidth:"any"}),dayPeriod:zM({matchPatterns:Kdr,defaultMatchWidth:"any",parsePatterns:Xdr,defaultParseWidth:"any"})},Zdr={code:"zh-CN",formatDistance:wdr,formatLong:Rdr,formatRelative:Ndr,localize:Fdr,match:Qdr,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Vse={code:"zh-CN",currency:"CNY",dateFnsLocale:Zdr,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},Tabs:{more:"更多"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条",descend:"点击降序",ascend:"点击升序",cancelSort:"取消排序"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"},Chat:{deleteConfirm:"确认删除该会话吗?",clearContext:"上下文已清除",copySuccess:"复制成功",stop:"停止",copy:"复制",copied:"复制成功",dropAreaText:"将文件放到这里"},UserGuide:{skip:"跳过",next:"下一步",prev:"上一步",finish:"完成"},InputNumber:{},JsonViewer:{search:"查找",replace:"替换",replaceAll:"全部替换"}};class z0 extends m.Component{renderChildren(n,r){const{componentName:i}=this.props;let o=n;n!=null&&n.code||(o=Vse);const a=fr(Vse,"dateFnsLocale"),s=fr(o,"dateFnsLocale",a),l=fr(o,"currency");return r(o[i],o.code,s,l)}render(){const{children:n}=this.props;return V.createElement(Ig.Consumer,null,r=>{let{locale:i}=r;return V.createElement(hdr.Consumer,null,o=>this.renderChildren(i||o,n))})}}z0.propTypes={componentName:ie.string.isRequired,children:ie.any};z0.defaultProps={componentName:""};const Jdr="semi";var efr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const of=V.forwardRef((e,n)=>{const{svg:r,spin:i=!1,rotate:o,style:a,className:s,prefixCls:l=Jdr,type:c,size:u="default"}=e,d=efr(e,["svg","spin","rotate","style","className","prefixCls","type","size"]),f=Ce(`${l}-icon`,{[`${l}-icon-extra-small`]:u==="extra-small",[`${l}-icon-small`]:u==="small",[`${l}-icon-default`]:u==="default",[`${l}-icon-large`]:u==="large",[`${l}-icon-extra-large`]:u==="extra-large",[`${l}-icon-spinning`]:i===!0,[`${l}-icon-${c}`]:!!c},s),p={};return Number.isSafeInteger(o)&&(p.transform=`rotate(${o}deg)`),Object.assign(p,a),V.createElement("span",Object.assign({role:"img",ref:n,"aria-label":c,className:f,style:p},d),r)});of.elementType="Icon";const ho=(e,n)=>{const r=V.forwardRef((i,o)=>V.createElement(of,Object.assign({svg:V.createElement(e),type:n,ref:o},i)));return r.elementType="Icon",r};function tfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-9.5 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 5a1.9 1.9 0 0 0-1.89 2l.3 5.5a1.59 1.59 0 0 0 3.17 0l.3-5.5c.07-1.09-.8-2-1.88-2Z",fill:"currentColor"}))}const nfr=ho(tfr,"alert_circle");function rfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m10.23 2.4-8.7 16.67A2 2 0 0 0 3.3 22h17.4a2 2 0 0 0 1.77-2.93L13.77 2.4a2 2 0 0 0-3.54 0ZM13.14 14a1.15 1.15 0 0 1-2.28 0l-.58-4.03a1.73 1.73 0 1 1 3.44 0l-.58 4.03Zm.36 4.49a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}))}const ifr=ho(rfr,"alert_triangle");function ofr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M5 12.5c0-.83.67-1.5 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 5 12.5Z",fill:"currentColor"}))}const afr=ho(ofr,"checkbox_indeterminate");function sfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.41 7.3c.66.51.78 1.45.28 2.11l-6.5 8.5a1.5 1.5 0 0 1-2.37.01l-3.5-4.5a1.5 1.5 0 1 1 2.36-1.84L10 14.54l5.32-6.95a1.5 1.5 0 0 1 2.1-.28Z",fill:"currentColor"}))}const lfr=ho(sfr,"checkbox_tick");function cfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08 7.6a1.5 1.5 0 0 1 2.12 0l5.66 5.65 5.66-5.65a1.5 1.5 0 1 1 2.12 2.12l-6.72 6.72a1.5 1.5 0 0 1-2.12 0L4.08 9.72a1.5 1.5 0 0 1 0-2.12Z",fill:"currentColor"}))}const xve=ho(cfr,"chevron_down");function ufr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.44 19.8a1.5 1.5 0 0 1 0-2.13l5.66-5.65-5.66-5.66a1.5 1.5 0 1 1 2.12-2.12l6.72 6.72a1.5 1.5 0 0 1 0 2.12L9.56 19.8a1.5 1.5 0 0 1-2.12 0Z",fill:"currentColor"}))}const jlt=ho(ufr,"chevron_right");function dfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.04-6.14a1.5 1.5 0 0 1-2.13.04l-2.87-2.78L9.26 17A1.5 1.5 0 0 1 7.1 14.9l2.78-2.87L7 9.26A1.5 1.5 0 1 1 9.1 7.1l2.87 2.78L14.74 7A1.5 1.5 0 0 1 16.9 9.1l-2.78 2.87L17 14.74c.6.58.61 1.53.04 2.12Z",fill:"currentColor"}))}const oG=ho(dfr,"clear");function ffr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M17.66 19.78a1.5 1.5 0 0 0 2.12-2.12L14.12 12l5.66-5.66a1.5 1.5 0 0 0-2.12-2.12L12 9.88 6.34 4.22a1.5 1.5 0 1 0-2.12 2.12L9.88 12l-5.66 5.66a1.5 1.5 0 0 0 2.12 2.12L12 14.12l5.66 5.66Z",fill:"currentColor"}))}const Tve=ho(ffr,"close");function pfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M7 4c0-1.1.9-2 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-1V8c0-2-1-3-3-3H7V4Z",fill:"currentColor"}),m.createElement("path",{d:"M5 7a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H5Z",fill:"currentColor"}))}const Ult=ho(pfr,"copy");function hfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-11 9a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.11 8.11a1 1 0 0 1 1.42 0L12 10.6l2.47-2.48a1 1 0 1 1 1.42 1.42L13.4 12l2.48 2.47a1 1 0 0 1-1.42 1.42L12 13.4 9.53 15.9a1 1 0 0 1-1.42-1.42L10.6 12 8.1 9.53a1 1 0 0 1 0-1.42Z",fill:"currentColor"}))}const Hlt=ho(hfr,"cross_circle_stroked");function gfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 5V4h4v1h-4ZM8 5V3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2h4a1 1 0 1 1 0 2h-1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7H4a1 1 0 0 1 0-2h4Zm7 2H7v13h10V7h-2ZM9 9.5c0-.28.22-.5.5-.5h1c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7Zm4 0c0-.28.22-.5.5-.5h1c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7Z",fill:"currentColor"}))}const mfr=ho(gfr,"delete_stroked");function vfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M10 2a1.5 1.5 0 0 1 0 3H7.12l3.94 3.94a1.5 1.5 0 0 1-2.12 2.12L5 7.12V10a1.5 1.5 0 0 1-3 0V3.5C2 2.67 2.67 2 3.5 2H10Z",fill:"currentColor"}),m.createElement("path",{d:"M19 14a1.5 1.5 0 0 1 3 0v6.5c0 .83-.67 1.5-1.5 1.5H14a1.5 1.5 0 0 1 0-3h2.88l-3.94-3.94a1.5 1.5 0 0 1 2.12-2.12L19 16.88V14Z",fill:"currentColor"}))}const Ove=ho(vfr,"expand");function yfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7 3.7a1 1 0 0 0-1.4-1.4L17.3 5.26A11.59 11.59 0 0 0 12 4C5 4 1 10 1 12c0 1.18 1.38 3.73 3.94 5.64L2.3 20.3a1 1 0 1 0 1.42 1.42l18-18ZM7.84 14.77l1.46-1.47a3 3 0 0 1 4-4l1.47-1.46a5 5 0 0 0-6.93 6.93Z",fill:"currentColor"}),m.createElement("path",{d:"M12 20c-1.22 0-2.35-.18-3.38-.5l2.57-2.57a5 5 0 0 0 5.75-5.75l3.56-3.56C22.13 9.27 23 11.07 23 12c0 2-4 8-11 8Z",fill:"currentColor"}))}const _fr=ho(yfr,"eye_closed_solid");function bfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12s4 8 11 8 11-6 11-8-4-8-11-8Zm5 8a5 5 0 1 1-10 0 5 5 0 0 1 10 0Zm-5 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"}))}const Sfr=ho(bfr,"eye_opened");function Efr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2a1 1 0 0 0-1-1H6a2 2 0 0 0-2 2v18c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V10a1 1 0 0 0-1-1h-5a2 2 0 0 1-2-2V2ZM7 8a1 1 0 0 1 1-1h1a1 1 0 0 1 0 2H8a1 1 0 0 1-1-1Zm0 5a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Zm1 4a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Zm11.07-9.5H14.5a1 1 0 0 1-1-1V1.93a.8.8 0 0 1 1.37-.56l4.76 4.76a.8.8 0 0 1-.56 1.37Z",fill:"currentColor"}))}const Cfr=ho(Efr,"file");function wfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M5 2a3 3 0 0 0-3 3v3h20c0-2-1-4-3-4h-6.45a3 3 0 0 1-1.87-.66l-1.13-.9A2 2 0 0 0 8.3 2H5Z",fill:"currentColor"}),m.createElement("path",{d:"M22 10H2v9a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-9Z",fill:"currentColor"}))}const xfr=ho(wfr,"folder");function Tfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5a3 3 0 0 1 3-3h3.3a2 2 0 0 1 1.25.44l1.13.9a3 3 0 0 0 1.87.66H18c2 0 3 2 3 4H7.53A2 2 0 0 0 5.6 9.48L2.57 20.76C2.21 20.26 2 19.66 2 19V5Zm20.17 5H9.5a2 2 0 0 0-1.92 1.44l-2.7 9.28A1 1 0 0 0 5.82 22H18.5a2 2 0 0 0 1.92-1.44l2.7-9.28a1 1 0 0 0-.95-1.28Z",fill:"currentColor"}))}const Ofr=ho(Tfr,"folder_open");function Rfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M9 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",fill:"currentColor"}),m.createElement("path",{d:"M9 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",fill:"currentColor"}),m.createElement("path",{d:"M11 19a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",fill:"currentColor"}),m.createElement("path",{d:"M15 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",fill:"currentColor"}),m.createElement("path",{d:"M17 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",fill:"currentColor"}),m.createElement("path",{d:"M15 21a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",fill:"currentColor"}))}const zlt=ho(Rfr,"handle");function Ifr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm2-16a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-5 3.75c0-.41.34-.75.75-.75h2.75a1 1 0 0 1 1 1v5.5h.75a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h.75v-5h-.75a.75.75 0 0 1-.75-.75Z",fill:"currentColor"}))}const Vlt=ho(Ifr,"info_circle");function Nfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2a6.5 6.5 0 0 0-6.5 6.5V10H5a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-.5V8.5A6.5 6.5 0 0 0 12 2Zm3.5 8V8.5a3.5 3.5 0 1 0-7 0V10h7Z",fill:"currentColor"}))}const Mfr=ho(Nfr,"lock");function Pfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M2 12c0-.83.67-1.5 1.5-1.5h17a1.5 1.5 0 0 1 0 3h-17A1.5 1.5 0 0 1 2 12Z",fill:"currentColor"}))}const Afr=ho(Pfr,"minus");function Dfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M7 12a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z",fill:"currentColor"}),m.createElement("path",{d:"M14.5 12a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z",fill:"currentColor"}),m.createElement("path",{d:"M19.5 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",fill:"currentColor"}))}const kfr=ho(Dfr,"more");function Lfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M20.5 13.5a1.5 1.5 0 0 0 0-3h-7v-7a1.5 1.5 0 0 0-3 0v7h-7a1.5 1.5 0 0 0 0 3h7v7a1.5 1.5 0 0 0 3 0v-7h7Z",fill:"currentColor"}))}const aG=ho(Lfr,"plus");function $fr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.44 2.44a1.5 1.5 0 0 0 0 2.12L16.88 7H9.25C5.16 7 2 10.58 2 14.5S5.16 22 9.25 22h3.25a1.5 1.5 0 0 0 0-3H9.25C6.98 19 5 16.93 5 14.5S6.98 10 9.25 10h7.63l-2.44 2.44a1.5 1.5 0 0 0 2.12 2.12l5-5a1.5 1.5 0 0 0 0-2.12l-5-5a1.5 1.5 0 0 0-2.12 0Z",fill:"currentColor"}))}const Ffr=ho($fr,"redo");function Bfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2a8.5 8.5 0 1 0 4.86 15.48l4.08 4.08a1.5 1.5 0 1 0 2.12-2.12l-4.08-4.08A8.5 8.5 0 0 0 10.5 2ZM5 10.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z",fill:"currentColor"}))}const jfr=ho(Bfr,"search");function Ufr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M2.44 2.44a1.5 1.5 0 0 0 0 2.12L6.88 9H4a1.5 1.5 0 0 0 0 3h6.5a1.5 1.5 0 0 0 1.5-1.5V4a1.5 1.5 0 0 0-3 0v2.88L4.56 2.44a1.5 1.5 0 0 0-2.12 0Z",fill:"currentColor"}),m.createElement("path",{d:"M20 12a1.5 1.5 0 0 1 0 3h-2.88l4.44 4.44a1.5 1.5 0 1 1-2.12 2.12L15 17.12V20a1.5 1.5 0 1 1-3 0v-6.5a1.5 1.5 0 0 1 1.5-1.5H20Z",fill:"currentColor"}))}const Glt=ho(Ufr,"shrink");function Hfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M6.95 7.72h10.13c.4 0 .64.45.42.78l-5.07 7.6a.5.5 0 0 1-.83 0L6.54 8.5a.5.5 0 0 1 .41-.78Z",fill:"currentColor"}))}const zfr=ho(Hfr,"small_triangle_down");function Vfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M16.32 6.96v10.13a.5.5 0 0 1-.78.41l-7.6-5.06a.5.5 0 0 1 0-.83l7.6-5.07a.5.5 0 0 1 .78.42Z",fill:"currentColor"}))}const Gfr=ho(Vfr,"small_triangle_left");function Wfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.35 4.27c.68.47.86 1.4.38 2.08l-10 14.5a1.5 1.5 0 0 1-2.33.17l-6.5-7a1.5 1.5 0 0 1 2.2-2.04l5.23 5.63 8.94-12.96a1.5 1.5 0 0 1 2.08-.38Z",fill:"currentColor"}))}const Yj=ho(Wfr,"tick");function Yfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.88-13.18-6.2 7.6a1.5 1.5 0 0 1-2.37 0l-3.5-4a1.5 1.5 0 1 1 2.37-1.84l2.3 2.46L15.5 8a1.5 1.5 0 1 1 2.38 1.82Z",fill:"currentColor"}))}const qfr=ho(Yfr,"tick_circle");function Kfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"m20.56 9.66-7.8 8.97a1 1 0 0 1-1.51 0L3.44 9.66A1 1 0 0 1 4.19 8h15.62a1 1 0 0 1 .75 1.66Z",fill:"currentColor"}))}const Xfr=ho(Kfr,"tree_triangle_down");function Qfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.56 2.44a1.5 1.5 0 0 1 0 2.12L7.12 7h7.63C18.84 7 22 10.58 22 14.5S18.84 22 14.75 22H11.5a1.5 1.5 0 0 1 0-3h3.25c2.27 0 4.25-2.07 4.25-4.5S17.02 10 14.75 10H7.12l2.44 2.44a1.5 1.5 0 0 1-2.12 2.12l-5-5a1.5 1.5 0 0 1 0-2.12l5-5a1.5 1.5 0 0 1 2.12 0Z",fill:"currentColor"}))}const Zfr=ho(Qfr,"undo");function Jfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M5.5 7.5A6.5 6.5 0 0 1 18.48 7h-3.02a3.5 3.5 0 0 0-6.96.5V10H19a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h.5V7.5Z",fill:"currentColor"}))}const epr=ho(Jfr,"unlock"),Gse={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},Wlt="Enter",Ylt="Escape";function hg(e){return fr(e,"key")===Wlt}const ree=rG.PREFIX;class Rve extends V.PureComponent{constructor(n){super(n),this.copy=r=>{const{content:i,duration:o,onCopy:a}=this.props,s=pdr(i);a&&a(r,i,s),this.setCopied(i,o)},this.setCopied=(r,i)=>{this.setState({copied:!0,item:r}),this._timeId=setTimeout(()=>{this.resetCopied()},i*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:r}=this.props;return typeof r<"u"?r:V.createElement(z0,{componentName:"Typography"},i=>V.createElement("span",null,V.createElement(Yj,null),i.copied))},this.renderCopyIcon=()=>{const{icon:r}=this.props,i={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:a=>hg(a)&&this.copy(a)},o=V.createElement("a",{className:`${ree}-action-copy-icon`},V.createElement(Ult,Object.assign({onClick:this.copy},i)));return V.isValidElement(r)?V.cloneElement(r,i):o},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:n,className:r,forwardRef:i,copyTip:o,render:a}=this.props,{copied:s}=this.state,l=Ce(r,{[`${ree}-action-copy`]:!s,[`${ree}-action-copied`]:s});return a?a(s,this.copy,this.props):V.createElement(z0,{componentName:"Typography"},c=>V.createElement("span",{style:Object.assign({marginLeft:"4px"},n),className:l,ref:i},s?this.renderSuccessTip():V.createElement(qo,{content:typeof o<"u"?o:c.copy},this.renderCopyIcon())))}}Rve.propTypes={content:ie.string,onCopy:ie.func,successTip:ie.node,copyTip:ie.node,duration:ie.number,style:ie.object,className:ie.string,icon:ie.node};Rve.defaultProps={content:"",onCopy:sy,duration:3,style:{},className:""};const qlt={PREFIX:`${ui}-popover`,ARROW:`${ui}-popover-icon-arrow`},Klt={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},V0={ARROW_BOUNDING:Object.assign(Object.assign({},Sb.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var tpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Xlt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{position:n="",className:r,arrowStyle:i,popStyle:o}=e,a=tpr(e,["position","className","arrowStyle","popStyle"]),s=n.indexOf("top")===0||n.indexOf("bottom")===0,l=Ce(r,qlt.ARROW),c=fr(i,"borderOpacity"),u=fr(i,"backgroundColor",fr(o,"backgroundColor")),d=fr(i,"borderColor",fr(o,"borderColor")),f=Object.assign(Object.assign({},a),{width:V0.ARROW_BOUNDING.width,height:V0.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:l});return s?V.createElement("svg",Object.assign({},f),V.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",style:{fill:d,opacity:c}}),V.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",style:{fill:u}})):V.createElement("svg",Object.assign({},f),V.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",style:{fill:d,opacity:c}}),V.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",style:{fill:u}}))};Xlt.propTypes={position:ie.string,className:ie.string,arrowStyle:ie.object,popStyle:ie.object};var npr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const rpr=Klt.POSITION_SET,ipr=Klt.TRIGGER_SET;class Cu extends V.PureComponent{constructor(n){super(n),this.focusTrigger=()=>{var r;(r=this.tooltipRef.current)===null||r===void 0||r.focusTrigger()},this.renderPopCard=r=>{let{initialFocusRef:i}=r;const{content:o,contentClassName:a,prefixCls:s}=this.props,{direction:l}=this.context,c=Ce(s,a,{[`${s}-rtl`]:l==="rtl"}),u=this.renderContentNode({initialFocusRef:i,content:o});return V.createElement("div",{className:c},V.createElement("div",{className:`${s}-content`},u))},this.renderContentNode=r=>{const{initialFocusRef:i,content:o}=r,a={initialFocusRef:i};return za(o)?o(a):o},this.tooltipRef=V.createRef()}render(){const n=this.props,{children:r,prefixCls:i,showArrow:o,arrowStyle:a={},arrowBounding:s,position:l,style:c,trigger:u}=n,d=npr(n,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:f}=this.props;const p={position:l,className:"",popStyle:c,arrowStyle:a},h=o?V.createElement(Xlt,Object.assign({},p)):!1;Sve(f)&&(f=o?V0.SPACING_WITH_ARROW:V0.SPACING);const g=u==="click"||u==="custom"?"dialog":"tooltip";return V.createElement(qo,Object.assign({guardFocus:!0,ref:this.tooltipRef},d,{trigger:u,position:l,style:c,content:this.renderPopCard,prefixCls:i,spacing:f,showArrow:h,arrowBounding:s,role:g}),r)}}Cu.contextType=Ig;Cu.propTypes={children:ie.node,content:ie.oneOfType([ie.node,ie.func]),visible:ie.bool,autoAdjustOverflow:ie.bool,motion:ie.bool,position:ie.oneOf(rpr),margin:ie.oneOfType([ie.number,ie.object]),mouseEnterDelay:ie.number,mouseLeaveDelay:ie.number,trigger:ie.oneOf(ipr).isRequired,contentClassName:ie.oneOfType([ie.string,ie.array]),onVisibleChange:ie.func,onClickOutSide:ie.func,style:ie.object,spacing:ie.oneOfType([ie.number,ie.object]),zIndex:ie.number,showArrow:ie.bool,arrowStyle:ie.shape({borderColor:ie.string,backgroundColor:ie.string,borderOpacity:ie.oneOfType([ie.string,ie.number])}),arrowPointAtCenter:ie.bool,arrowBounding:ie.object,prefixCls:ie.string,guardFocus:ie.bool,disableArrowKeyDown:ie.bool};Cu.__SemiComponentName__="Popover";Cu.defaultProps=T_(Cu.__SemiComponentName__,{arrowBounding:V0.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:V0.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:qlt.PREFIX,onClickOutSide:vr,onEscKeyDown:vr,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0});let Aa;function iee(e){if(!e)return 0;const n=e.match(/^\d*(\.\d*)?/);return n?Number(n[0]):0}function opr(e){return Array.prototype.slice.apply(e).map(r=>`${r}: ${e.getPropertyValue(r)};`).join("")}const apr=function(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;if(r.length===0)return"";Aa||(Aa=document.createElement("div"),Aa.setAttribute("aria-hidden","true"),document.body.appendChild(Aa));const c=window.getComputedStyle(e),u=opr(c),d=iee(c.lineHeight),f=Math.round(d*(n+1)+iee(c.paddingTop)+iee(c.paddingBottom));Aa.setAttribute("style",u),Aa.style.position="fixed",Aa.style.left="0",c.getPropertyValue("width")==="auto"&&e.offsetWidth&&(Aa.style.width=`${e.offsetWidth}px`),Aa.style.height="auto",Aa.style.top="-999999px",Aa.style.zIndex="-1000",l&&(Aa.style.fontWeight="600"),Aa.style.textOverflow="clip",Aa.style.webkitLineClamp="none",Aa.innerHTML="";function p(){const b=Aa.scrollWidth<=Aa.offsetWidth,E=Aa.scrollHeight<f;return n===1?b&&E:E}const h=document.createElement("span"),g=document.createTextNode(r);if(h.appendChild(g),a.length>0){const b=document.createTextNode(a);h.appendChild(b)}Aa.appendChild(h),Object.values(g$(i,"expand")).map(b=>b&&Aa.appendChild(b.cloneNode(!0)));function v(){Aa.innerHTML="",Aa.appendChild(h),Object.values(i).map(b=>b&&Aa.appendChild(b.cloneNode(!0)))}function y(b,E){const w=b.length;return E?s==="end"?b.slice(0,E)+o:b.slice(0,E)+o+b.slice(w-E,w):o}function _(b,E){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:E.length,x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const T=Math.floor((w+C)/2),R=y(E,T);if(b.textContent=R,w>=C-1&&C>0)for(let O=C;O>=w;O-=1){const M=y(E,O);if(b.textContent=M,p())return M}else if(C===0)return o;return p()?_(b,E,T,C,T):_(b,E,w,T,x)}let S=r;return p()||(v(),S=_(g,r,0,s==="middle"?Math.floor(r.length/2):r.length)),Aa.innerHTML="",S},Qlt=V.createContext("normal");var qj;(function(e){e.Width="width",e.Height="height",e.All="all"})(qj||(qj={}));class sG extends fl{constructor(n){var r;super(n),r=this,this.formerPropertyValue=new Map,this.getElement=()=>{try{return Us.findDOMNode(this.childNode||this)}catch{return null}},this.handleResizeEventTriggered=i=>{var o,a,s,l;if(this.props.observerProperty===qj.All)(a=(o=this.props).onResize)===null||a===void 0||a.call(o,i);else{const c=[];for(const u of i)this.formerPropertyValue.has(u.target)?u.contentRect[this.props.observerProperty]!==this.formerPropertyValue.get(u.target)&&(this.formerPropertyValue.set(u.target,u.contentRect[this.props.observerProperty]),c.push(u)):(this.formerPropertyValue.set(u.target,u.contentRect[this.props.observerProperty]),c.push(u));c.length>0&&((l=(s=this.props).onResize)===null||l===void 0||l.call(s,c))}},this.observeElement=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const o=r.getElement();if(r.observer||(r.observer=new ResizeObserver(r.handleResizeEventTriggered)),!(o&&o instanceof Element)){r.observer.disconnect();return}o===r.element&&!i||(r.observer.disconnect(),r.element=o,r.observer.observe(o),r.props.observeParent&&o.parentNode&&o.parentNode.ownerDocument&&o.parentNode.ownerDocument.defaultView&&o.parentNode instanceof o.parentNode.ownerDocument.defaultView.HTMLElement&&(r._parentNode=o.parentNode,r.observer.observe(r._parentNode)))},this.mergeRef=(i,o)=>{this.childNode=o,typeof i=="function"?i(o):typeof i=="object"&&i&&"current"in i&&(i.current=o)},globalThis.ResizeObserver&&(this.observer=new ResizeObserver(this.handleResizeEventTriggered))}componentDidMount(){var n;(n=this.observeElement)===null||n===void 0||n.call(this)}componentDidUpdate(n){var r;(r=this.observeElement)===null||r===void 0||r.call(this,this.props.observeParent!==n.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}render(){const n=V.Children.only(this.props.children),{ref:r}=n;return V.cloneElement(n,{ref:i=>this.mergeRef(r,i)})}}sG.propTypes={onResize:ie.func,observeParent:ie.bool,observerProperty:ie.string,delayTick:ie.number};sG.defaultProps={onResize:()=>{},observeParent:!1,observerProperty:"all",delayTick:0};var oee=function(e,n,r,i){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(d){try{u(i.next(d))}catch(f){s(f)}}function c(d){try{u(i.throw(d))}catch(f){s(f)}}function u(d){d.done?a(d.value):o(d.value).then(l,c)}u((i=i.apply(e,n||[])).next())})},spr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const jl=rG.PREFIX,lpr="...",cpr=(e,n)=>{const{mark:r,code:i,underline:o,strong:a,link:s,disabled:l}=e;let c=n;const u=(d,f)=>{let p={};d&&(typeof d=="object"&&(p=Object.assign({},d)),c=V.createElement(f,p,c))};return u(r,"mark"),u(i,"code"),u(o&&!s,"u"),u(a,"strong"),u(e.delete,"del"),u(s,l?"span":"a"),c};class jw extends m.Component{constructor(n){super(n),this.observerTakingEffect=!1,this.onResize=r=>oee(this,void 0,void 0,function*(){return this.rafId&&window.cancelAnimationFrame(this.rafId),new Promise(i=>{this.rafId=window.requestAnimationFrame(()=>oee(this,void 0,void 0,function*(){yield this.getEllipsisState(),i()}))})}),this.canUseCSSEllipsis=()=>{const{copyable:r}=this.props,{expandable:i,expandText:o,pos:a,suffix:s}=this.getEllipsisOpt();return!i&&ll(o)&&!r&&a==="end"&&!s.length},this.shouldTruncated=r=>!r||r<1?!1:r<=1?this.compareSingleRow():this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.compareSingleRow=()=>{if(!(document&&document.createRange))return!1;const r=this.wrapperRef.current,i=r.getBoundingClientRect().width,o=Array.from(r.childNodes),a=document.createRange(),s=o.reduce((l,c)=>{var u;return a.selectNodeContents(c),l+((u=a.getBoundingClientRect().width)!==null&&u!==void 0?u:0)},0);return a.detach(),s>i},this.showTooltip=()=>{var r,i;const{isOverflowed:o,isTruncated:a,expanded:s}=this.state,{showTooltip:l,expandable:c,expandText:u}=this.getEllipsisOpt(),d=this.canUseCSSEllipsis(),f=!s&&(d?o:a),h=!c&&ll(u)&&f&&l;if(!h)return h;const g={type:"tooltip"};return typeof l=="object"?l.type&&l.type.toLowerCase()==="popover"?EYe({opts:{showArrow:!0}},l,{opts:{className:Ce({[`${jl}-ellipsis-popover`]:!0,[(r=l==null?void 0:l.opts)===null||r===void 0?void 0:r.className]:!!(!((i=l==null?void 0:l.opts)===null||i===void 0)&&i.className)})}}):Object.assign(Object.assign({},g),l):g},this.onHover=()=>{if(this.canUseCSSEllipsis()){const{rows:i,suffix:o,pos:a}=this.getEllipsisOpt(),s=this.shouldTruncated(i);this.setState({isOverflowed:s,isTruncated:!1});return}},this.getEllipsisState=()=>oee(this,void 0,void 0,function*(){const{rows:r,suffix:i,pos:o}=this.getEllipsisOpt(),{children:a,strong:s}=this.props;if(!this.wrapperRef||!this.wrapperRef.current){yield this.onResize();return}const{expanded:l}=this.state;if(this.canUseCSSEllipsis())return;if(BC(a))return new Promise(p=>{this.setState({isTruncated:!1,isOverflowed:!1},p)});if(b0("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!r||r<0||l)return;const u={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},d=Array.isArray(a)?a.join(""):String(a),f=apr(this.wrapperRef.current,r,d,u,lpr,i,o,s);return new Promise(p=>{this.setState({isOverflowed:!1,ellipsisContent:f,isTruncated:d!==f},p)})}),this.toggleOverflow=r=>{const{onExpand:i,expandable:o,collapsible:a}=this.getEllipsisOpt(),{expanded:s}=this.state;i&&i(!s,r),(o&&!s||a&&s)&&this.setState({expanded:!s})},this.getEllipsisOpt=()=>{const{ellipsis:r}=this.props;return r?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:r.expandable?this.expandStr:void 0,collapseText:r.collapsible?this.collapseStr:void 0},typeof r=="object"?r:null):{}},this.renderExpandable=()=>{const{expanded:r,isTruncated:i}=this.state;if(!i)return null;const{expandText:o,expandable:a,collapseText:s,collapsible:l}=this.getEllipsisOpt(),c=!a&&ll(o),u=!l&&ll(s);let d;return!r&&!c?d=o:r&&!u&&(d=s),!c||!u?V.createElement("a",{role:"button",tabIndex:0,className:`${jl}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":d,onClick:this.toggleOverflow,onKeyPress:f=>hg(f)&&this.toggleOverflow(f)},d):null},this.getEllipsisStyle=()=>{const{ellipsis:r,component:i}=this.props;if(!r)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:o}=this.getEllipsisOpt(),{expanded:a}=this.state,s=!a&&this.canUseCSSEllipsis(),l=Ce({[`${jl}-ellipsis`]:!0,[`${jl}-ellipsis-single-line`]:o===1,[`${jl}-ellipsis-multiple-line`]:o>1,[`${jl}-ellipsis-multiple-line-text`]:o>1&&i==="span",[`${jl}-ellipsis-overflow-ellipsis`]:o===1&&s,[`${jl}-ellipsis-overflow-ellipsis-text`]:o===1&&s&&i==="span"}),c=s&&o>1?{WebkitLineClamp:o}:{};return{ellipsisCls:l,ellipsisStyle:c}},this.renderEllipsisText=r=>{const{suffix:i}=r,{children:o}=this.props,{isTruncated:a,expanded:s,ellipsisContent:l}=this.state;return s||!a?V.createElement("span",{onMouseEnter:this.onHover},o,i&&i.length?i:null):V.createElement("span",{onMouseEnter:this.onHover},l,i)},this.state={editable:!1,copied:!1,isOverflowed:!1,ellipsisContent:n.children,expanded:!1,isTruncated:!1,prevChildren:null},this.wrapperRef=V.createRef(),this.expandRef=V.createRef(),this.copyRef=V.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize().then(()=>Eve(()=>this.observerTakingEffect=!0,1))}static getDerivedStateFromProps(n,r){const{prevChildren:i}=r,o={};return o.prevChildren=n.children,n.ellipsis&&i!==n.children&&(o.isOverflowed=!1,o.ellipsisContent=n.children,o.expanded=!1,o.isTruncated=!0),o}componentDidUpdate(n){this.props.children!==n.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}renderOperations(){return V.createElement(V.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var n;const{copyable:r,children:i}=this.props;if(!r)return null;const o=(n=r==null?void 0:r.content)!==null&&n!==void 0?n:i;let a,s=!1;Array.isArray(o)?(a="",o.forEach(c=>{typeof c=="object"&&(s=!0),a+=String(c)})):(typeof o!="object"||(s=!0),a=String(o)),b0(s,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const l=Object.assign({content:a,duration:3},typeof r=="object"?r:null);return V.createElement(Rve,Object.assign({},l,{forwardRef:this.copyRef}))}renderIcon(){const{icon:n,size:r}=this.props,i=r==="inherit"?this.context:r;if(!n)return null;const o=i==="small"?"small":"default";return V.createElement("span",{className:`${jl}-icon`,"x-semi-prop":"icon"},rf(n)?V.cloneElement(n,{size:o}):n)}renderContent(){const n=this.props,{component:r,children:i,className:o,type:a,spacing:s,disabled:l,style:c,ellipsis:u,icon:d,size:f,link:p,heading:h,weight:g}=n,v=spr(n,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),y=g$(v,["strong","editable","mark","copyable","underline","code","delete"]),_=f==="inherit"?this.context:f,S=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:E,ellipsisStyle:w}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):i;const x=Ce({[`${jl}-link-text`]:p,[`${jl}-link-underline`]:this.props.underline&&p});C=cpr(this.props,V.createElement(V.Fragment,null,S,this.props.link?V.createElement("span",{className:x},C):C));const T=/^h[1-6]$/,R=Es(h)&&T.test(h),O=Ce(o,E,{[`${jl}-${a}`]:a&&!p,[`${jl}-${_}`]:_,[`${jl}-link`]:p,[`${jl}-disabled`]:l,[`${jl}-${s}`]:s,[`${jl}-${h}`]:R,[`${jl}-${h}-weight-${g}`]:R&&g&&isNaN(Number(g))}),M=Object.assign(Object.assign({},isNaN(Number(g))?{}:{fontWeight:g}),c);return V.createElement(iG,Object.assign({className:O,style:Object.assign(Object.assign({},M),w),component:r,forwardRef:this.wrapperRef},y),C,this.renderOperations())}renderTipWrapper(){const{children:n}=this.props,r=this.showTooltip(),i=this.renderContent();if(r){const{type:o,opts:a,renderTooltip:s}=r;return za(s)?s(n,i):o.toLowerCase()==="popover"?V.createElement(Cu,Object.assign({content:n,position:"top"},a),i):V.createElement(qo,Object.assign({content:n,position:"top"},a),i)}else return i}render(){var n=this;const{size:r}=this.props,i=r==="inherit"?this.context:r,o=V.createElement(Qlt.Provider,{value:i},V.createElement(z0,{componentName:"Typography"},a=>(this.expandStr=a.expand,this.collapseStr=a.collapse,this.renderTipWrapper())));return this.props.ellipsis?V.createElement(sG,{onResize:function(){n.observerTakingEffect&&n.onResize(...arguments)},observeParent:!0,observerProperty:qj.Width},o):o}}jw.propTypes={children:ie.node,copyable:ie.oneOfType([ie.shape({text:ie.string,onCopy:ie.func,successTip:ie.node,copyTip:ie.node}),ie.bool]),delete:ie.bool,disabled:ie.bool,ellipsis:ie.oneOfType([ie.shape({rows:ie.number,expandable:ie.bool,expandText:ie.string,onExpand:ie.func,suffix:ie.string,showTooltip:ie.oneOfType([ie.shape({type:ie.string,opts:ie.object}),ie.bool]),collapsible:ie.bool,collapseText:ie.string,pos:ie.oneOf(["end","middle"])}),ie.bool]),mark:ie.bool,underline:ie.bool,link:ie.oneOfType([ie.object,ie.bool]),spacing:ie.oneOf(jc.SPACING),strong:ie.bool,size:ie.oneOf(jc.SIZE),type:ie.oneOf(jc.TYPE),style:ie.object,className:ie.string,icon:ie.oneOfType([ie.node,ie.string]),heading:ie.string,component:ie.string};jw.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};jw.contextType=Qlt;let Ive=class extends m.PureComponent{render(){return V.createElement(jw,Object.assign({component:"span"},this.props))}};Ive.propTypes={copyable:ie.oneOfType([ie.object,ie.bool]),delete:ie.bool,disabled:ie.bool,icon:ie.oneOfType([ie.node,ie.string]),ellipsis:ie.oneOfType([ie.object,ie.bool]),mark:ie.bool,underline:ie.bool,link:ie.oneOfType([ie.object,ie.bool]),strong:ie.bool,type:ie.oneOf(jc.TYPE),size:ie.oneOf(jc.SIZE),style:ie.object,className:ie.string,code:ie.bool,component:ie.string,weight:ie.number};Ive.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var upr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};let Nve=class extends m.PureComponent{render(){const n=this.props,{heading:r}=n,i=upr(n,["heading"]),o=jc.HEADING.indexOf(r)!==-1?`h${r}`:"h1";return V.createElement(jw,Object.assign({component:o,heading:o},i))}};Nve.propTypes={copyable:ie.oneOfType([ie.object,ie.bool]),delete:ie.bool,disabled:ie.bool,ellipsis:ie.oneOfType([ie.object,ie.bool]),mark:ie.bool,link:ie.oneOfType([ie.object,ie.bool]),underline:ie.bool,strong:ie.bool,type:ie.oneOf(jc.TYPE),heading:ie.oneOf(jc.HEADING),style:ie.object,className:ie.string,component:ie.string,weight:ie.oneOfType([ie.oneOf(jc.WEIGHT),ie.number])};Nve.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",heading:1,style:{},className:""};const dpr=rG.PREFIX;let lG=class extends m.PureComponent{render(){const{className:n}=this.props,r=Ce(n,`${dpr}-paragraph`);return V.createElement(jw,Object.assign({component:"p"},this.props,{className:r}))}};lG.propTypes={copyable:ie.oneOfType([ie.object,ie.bool]),delete:ie.bool,disabled:ie.bool,ellipsis:ie.oneOfType([ie.object,ie.bool]),mark:ie.bool,link:ie.oneOfType([ie.object,ie.bool]),underline:ie.bool,strong:ie.bool,type:ie.oneOf(jc.TYPE),size:ie.oneOf(jc.SIZE),spacing:ie.oneOf(jc.SPACING),style:ie.object,className:ie.string,component:ie.string};lG.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",size:"normal",spacing:"normal",style:{},className:""};class fpr{constructor(n,r,i,o,a){this.ruleMethods={"bytes-decimal":s=>{const l=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let c=0;for(;s>=1e3;)s/=1e3,c++;return`${this.truncatePrecision(s)} ${l[c]}`},"bytes-binary":s=>{const l=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let c=0;for(;s>=1024;)s/=1024,c++;return`${this.truncatePrecision(s)} ${l[c]}`},percentages:s=>`${this.truncatePrecision(s*100)}%`,exponential:s=>{const c=s.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(c[0]))}e${c[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof a<"u",this.content=n,this.rule=r,this.precision=i,this.truncate=o,this.parser=a}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?aee(this.content).map(n=>see(n)?this.truncatePrecision(n):n).join(""):this.rule==="numbers"?aee(this.content).filter(n=>see(n)).map(n=>this.truncatePrecision(n)).join(","):aee(this.content).map(n=>see(n)?this.ruleMethods[this.rule](Number(n)):n).join("")}truncatePrecision(n){const r=this.truncateMethods[this.truncate](Number(n)*Math.pow(10,this.precision))/Math.pow(10,this.precision),i=r.toString().split(".");if(i.length===1)return r.toFixed(this.precision);const o=i[1].length;return o<this.precision?`${i[0]}.${i[1]}${"0".repeat(this.precision-o)}`:r.toString()}}function aee(e){const n=/(-?[0-9]*\.?[0-9]+([eE]-?[0-9]+)?)|([^-\d\.]+)/g;return e.match(n)||[]}function see(e){return!(isNaN(Number(e))||e.replace(/\s+/g,"")==="")}class Mve extends m.PureComponent{formatNodeDFS(n){return Array.isArray(n)||(n=[n]),n=n.map(r=>typeof r=="string"||typeof r=="number"?new fpr(String(r),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof r=="function"?this.formatNodeDFS(r()):typeof r=="object"&&"children"in r.props?Object.assign(Object.assign({},r),{props:Object.assign(Object.assign({},r.props),{children:this.formatNodeDFS(r.props.children)})}):r),n.length===1?n[0]:n}render(){const n=Object.assign({},this.props);return delete n.rule,delete n.parser,n.children=this.formatNodeDFS(this.props.children),V.createElement(jw,Object.assign({component:"span"},n))}}Mve.propTypes={rule:ie.oneOf(jc.RULE),precision:ie.number,truncate:ie.oneOf(jc.TRUNCATE),parser:ie.func,copyable:ie.oneOfType([ie.object,ie.bool]),delete:ie.bool,disabled:ie.bool,icon:ie.oneOfType([ie.node,ie.string]),mark:ie.bool,underline:ie.bool,link:ie.oneOfType([ie.object,ie.bool]),strong:ie.bool,type:ie.oneOf(jc.TYPE),size:ie.oneOf(jc.SIZE),style:ie.object,className:ie.string,code:ie.bool,component:ie.string};Mve.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const LS=iG;LS.Text=Ive;LS.Title=Nve;LS.Paragraph=lG;LS.Numeral=Mve;var ppr=s_,hpr=Hp,gpr="[object Number]";function mpr(e){return typeof e=="number"||hpr(e)&&ppr(e)==gpr}var vpr=mpr;const uf=Or(vpr),ypr=`${ui}-spin`,_pr={PREFIX:ypr},bpr={SIZE:["small","middle","large"]};class Pve extends tc{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:n=>{}}}constructor(n){super(Object.assign(Object.assign({},Pve.spinDefaultAdapter),n))}updateLoadingIfNeedDelay(){const{spinning:n,delay:r}=this._adapter.getProps(),{delay:i}=this._adapter.getStates();if(i){const o=this;this._timer=setTimeout(()=>{o._adapter.setState({loading:n,delay:0})},r)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}var Spr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};let q$e=-1;function Zlt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{id:n,className:r}=e,i=Spr(e,["id","className"]);let o=n;Sve(o)&&(q$e++,o=q$e);const a=`linearGradient-${o}`;return V.createElement("svg",Object.assign({},i,{className:r,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),V.createElement("defs",null,V.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:a},V.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),V.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),V.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),V.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},V.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),V.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${a})`,strokeWidth:"4",strokeLinecap:"round"})))}var Epr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const wE=_pr.PREFIX;class cG extends fl{constructor(n){super(n),this.foundation=new Pve(this.adapter),this.state={delay:n.delay,loading:!0}}static getDerivedStateFromProps(n){return n.delay?n.spinning===!1?{delay:0,loading:!1}:{delay:n.delay}:{loading:n.spinning}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setLoading:n=>{this.setState({loading:n})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:n,tip:r}=this.props,{loading:i}=this.state;return i?V.createElement("div",{className:`${wE}-wrapper`},n?V.createElement("div",{className:`${wE}-animate`,"x-semi-prop":"indicator"},n):V.createElement(Zlt,null),r?V.createElement("div",{"x-semi-prop":"tip"},r):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const n=this.props,{children:r,style:i,wrapperClassName:o,childStyle:a,size:s}=n,l=Epr(n,["children","style","wrapperClassName","childStyle","size"]),{loading:c}=this.state,u=Ce(wE,o,{[`${wE}-${s}`]:s,[`${wE}-block`]:r,[`${wE}-hidden`]:!c});return V.createElement("div",Object.assign({className:u,style:i},this.getDataAttr(l)),this.renderSpin(),V.createElement("div",{className:`${wE}-children`,style:a,"x-semi-prop":"children"},r))}}cG.propTypes={size:ie.oneOf(bpr.SIZE),spinning:ie.bool,children:ie.node,indicator:ie.node,delay:ie.number,tip:ie.node,wrapperClassName:ie.string,childStyle:ie.object,style:ie.object};cG.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Cpr={PREFIX:`${ui}-input`},uG={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]};function wpr(e){const{value:n,maxLength:r,getValueLength:i}=e;if(za(i)){let o=0,a=n.length;for(;o<a;){const s=o+Math.floor((a-o)/2),l=n.slice(0,s+1);i(l)>r?a=s:o=s+1}return n.slice(0,o)}else return n.slice(0,r)}class Ave extends tc{static get inputDefaultAdapter(){return{notifyChange:vr,setValue:vr}}constructor(n){super(Object.assign(Object.assign({},Ave.inputDefaultAdapter),n))}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}setValue(n){this._adapter.setValue(n)}handleChange(n,r){const{maxLength:i,minLength:o,getValueLength:a}=this._adapter.getProps();let s=n;i&&za(a)&&(s=this.handleVisibleMaxLength(n)),o&&za(a)&&this.handleVisibleMinLength(s),this._isControlledComponent()?this._adapter.notifyChange(s,r):(this._adapter.setValue(s),this._adapter.notifyChange(s,r))}handleVisibleMinLength(n){const{minLength:r,getValueLength:i}=this._adapter.getProps(),{minLength:o}=this._adapter.getStates();if(uf(r)&&r>=0&&za(i)&&Es(n)){const a=i(n);if(a<r){const s=n.length+(r-a);s!==o&&this._adapter.setMinLength(s)}else o!==r&&this._adapter.setMinLength(r)}}handleVisibleMaxLength(n){const{maxLength:r,getValueLength:i}=this._adapter.getProps();return uf(r)&&r>=0&&za(i)&&Es(n)&&i(n)>r?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(n,r)):n}handleTruncateValue(n,r){const{getValueLength:i}=this._adapter.getProps();return wpr({value:n,maxLength:r,getValueLength:i})}handleClear(n){let r=n;const i="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!r||typeof r!="object")&&(r={}),Gur(r,uG.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(i,r),this._adapter.notifyClear(r),r&&this.stopPropagation(r)}handleClick(n){const{disabled:r}=this._adapter.getProps(),{isFocus:i}=this._adapter.getStates();r||i||this._adapter.isEventTarget(n)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(n){n==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(n){const r=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!r)}handleInputType(n){const r=this._adapter.getProp("mode"),i=this._adapter.getState("eyeClosed");return r==="password"?i?"password":"text":n}handleMouseDown(n){n.preventDefault()}handleMouseUp(n){n.preventDefault()}handleBlur(n){const{value:r}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(r,n)}handleFocus(n){const{value:r}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(r,n)}handleInput(n){this._adapter.notifyInput(n)}handleKeyDown(n){this._adapter.notifyKeyDown(n)}handleKeyUp(n){this._adapter.notifyKeyUp(n)}handleKeyPress(n){this._adapter.notifyKeyPress(n),n.key===Wlt&&this._adapter.notifyEnterPress(n)}isAllowClear(){const{value:n,isFocus:r,isHovering:i}=this._adapter.getStates(),{showClear:o,disabled:a,showClearIgnoreDisabled:s}=this._adapter.getProps();return n&&o&&(!a||s)&&(r||i)}handleClickPrefixOrSuffix(n){const{disabled:r}=this._adapter.getProps(),{isFocus:i}=this._adapter.getStates();!r&&!i&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(n){n&&za(n.preventDefault)&&n.preventDefault()}handleModeEnterPress(n){["Enter"," "].includes(n==null?void 0:n.key)&&(this.handlePreventMouseDown(n),this.handleClickEye(n))}}var xpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const mo=Cpr.PREFIX,Tpr=uG.SIZE,Opr=uG.STATUS,Rpr=uG.MODE;class Dve extends fl{constructor(n){super(n),this.handleClear=i=>{this.foundation.handleClear(i)},this.handleClick=i=>{this.foundation.handleClick(i)},this.handleMouseOver=i=>{this.setState({isHovering:!0})},this.handleMouseLeave=i=>{this.setState({isHovering:!1})},this.handleModeChange=i=>{this.foundation.handleModeChange(i)},this.handleClickEye=i=>{this.foundation.handleClickEye(i)},this.handleMouseDown=i=>{this.foundation.handleMouseDown(i)},this.handleMouseUp=i=>{this.foundation.handleMouseUp(i)},this.handleModeEnterPress=i=>{this.foundation.handleModeEnterPress(i)},this.handleClickPrefixOrSuffix=i=>{this.foundation.handleClickPrefixOrSuffix(i)},this.handlePreventMouseDown=i=>{this.foundation.handlePreventMouseDown(i)};const r="value"in n?n.value:n.defaultValue;this.state={value:r,cachedValue:n.value,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:n.mode==="password",minLength:n.minLength},this.inputRef=V.createRef(),this.prefixRef=V.createRef(),this.suffixRef=V.createRef(),this.foundation=new Ave(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:n=>this.setState({value:n}),setEyeClosed:n=>this.setState({eyeClosed:n}),toggleFocusing:n=>{this.setState({isFocus:n})},focusInput:()=>{const{preventScroll:n}=this.props,r=this.inputRef&&this.inputRef.current;r&&r.focus({preventScroll:n})},toggleHovering:n=>this.setState({isHovering:n}),getIfFocusing:()=>this.state.isFocus,notifyChange:(n,r)=>this.props.onChange(n,r),notifyBlur:(n,r)=>this.props.onBlur(r),notifyFocus:(n,r)=>this.props.onFocus(r),notifyInput:n=>this.props.onInput(n),notifyKeyPress:n=>this.props.onKeyPress(n),notifyKeyDown:n=>this.props.onKeyDown(n),notifyKeyUp:n=>this.props.onKeyUp(n),notifyEnterPress:n=>this.props.onEnterPress(n),notifyClear:n=>this.props.onClear(n),setMinLength:n=>this.setState({minLength:n}),isEventTarget:n=>n&&n.target===n.currentTarget})}static getDerivedStateFromProps(n,r){const i={};return n.value!==r.cachedValue&&(i.value=n.value,i.cachedValue=n.value),i}componentDidUpdate(n){const{mode:r}=this.props;n.mode!==r&&this.handleModeChange(r)}componentDidMount(){const{disabled:n,autoFocus:r,preventScroll:i}=this.props;!n&&(r||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:i})}renderPrepend(){const{addonBefore:n}=this.props;if(n){const r=Ce({[`${mo}-prepend`]:!0,[`${mo}-prepend-text`]:n&&Es(n),[`${mo}-prepend-icon`]:rf(n)});return V.createElement("div",{className:r,"x-semi-prop":"addonBefore"},n)}return null}renderAppend(){const{addonAfter:n}=this.props;if(n){const r=Ce({[`${mo}-append`]:!0,[`${mo}-append-text`]:n&&Es(n),[`${mo}-append-icon`]:rf(n)});return V.createElement("div",{className:r,"x-semi-prop":"addonAfter"},n)}return null}renderClearBtn(){const n=Ce(`${mo}-clearbtn`),{clearIcon:r}=this.props;return this.foundation.isAllowClear()?V.createElement("div",{className:n,onMouseDown:this.handleClear},r||V.createElement(oG,null)):null}renderModeBtn(){const{eyeClosed:n}=this.state,{mode:r,disabled:i}=this.props,o=Ce(`${mo}-modebtn`),a=n?V.createElement(_fr,null):V.createElement(Sfr,null),s=r==="password"&&!i,l=n?"Show password":"Hidden password";return s?V.createElement("div",{role:"button",tabIndex:0,"aria-label":l,className:o,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},a):null}renderPrefix(){const{prefix:n,insetLabel:r,insetLabelId:i}=this.props,o=n||r;if(!o)return null;const a=Ce({[`${mo}-prefix`]:!0,[`${mo}-inset-label`]:r,[`${mo}-prefix-text`]:o&&Es(o),[`${mo}-prefix-icon`]:rf(o)});return V.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:i,"x-semi-prop":"prefix,insetLabel"},o)}renderSuffix(n){const{suffix:r,hideSuffix:i}=this.props;if(!r)return null;const o=Ce({[`${mo}-suffix`]:!0,[`${mo}-suffix-text`]:r&&Es(r),[`${mo}-suffix-icon`]:rf(r),[`${mo}-suffix-hidden`]:n&&!!i});return V.createElement("div",{className:o,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},r)}getInputRef(){const{forwardRef:n}=this.props;if(!ll(n)){if(typeof n=="function")return r=>{n(r),this.inputRef={current:r}};if(Object.prototype.toString.call(n)==="[object Object]")return this.inputRef=n,n}return this.inputRef}render(){const n=this.props,{addonAfter:r,addonBefore:i,autoFocus:o,clearIcon:a,className:s,disabled:l,defaultValue:c,placeholder:u,prefix:d,mode:f,insetLabel:p,insetLabelId:h,validateStatus:g,type:v,readonly:y,size:_,suffix:S,style:b,showClear:E,onEnterPress:w,onClear:C,hideSuffix:x,inputStyle:T,forwardRef:R,maxLength:O,getValueLength:M,preventScroll:P,borderless:k,showClearIgnoreDisabled:$,onlyBorder:U}=n,z=xpr(n,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled","onlyBorder"]),{value:D,isFocus:B,minLength:Y}=this.state,q=this.foundation.isAllowClear(),K=rf(S),H=this.getInputRef(),G=`${mo}-wrapper`,Q=Ce(G,s,{[`${mo}-wrapper__with-prefix`]:d||p,[`${mo}-wrapper__with-suffix`]:S,[`${mo}-wrapper__with-suffix-hidden`]:q&&!!x,[`${mo}-wrapper__with-suffix-icon`]:K,[`${mo}-wrapper__with-append`]:i,[`${mo}-wrapper__with-prepend`]:r,[`${mo}-wrapper__with-append-only`]:i&&!r,[`${mo}-wrapper__with-prepend-only`]:!i&&r,[`${G}-readonly`]:y,[`${G}-disabled`]:l,[`${G}-warning`]:g==="warning",[`${G}-error`]:g==="error",[`${G}-focus`]:B,[`${G}-clearable`]:E,[`${G}-modebtn`]:f==="password",[`${G}-hidden`]:v==="hidden",[`${G}-${_}`]:_,[`${mo}-borderless`]:k,[`${mo}-only_border`]:U!=null}),le=Ce(mo,{[`${mo}-${_}`]:_,[`${mo}-disabled`]:l,[`${mo}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${mo}-sibling-modebtn`]:f==="password"}),Z=D??"",j=Object.assign(Object.assign({},z),{style:T,className:le,disabled:l,readOnly:y,type:this.foundation.handleInputType(v),placeholder:u,onInput:te=>this.foundation.handleInput(te),onChange:te=>this.foundation.handleChange(te.target.value,te),onFocus:te=>this.foundation.handleFocus(te),onBlur:te=>this.foundation.handleBlur(te),onKeyUp:te=>this.foundation.handleKeyUp(te),onKeyDown:te=>this.foundation.handleKeyDown(te),onKeyPress:te=>this.foundation.handleKeyPress(te),value:Z});za(M)||(j.maxLength=O),Y&&(j.minLength=Y),g==="error"&&(j["aria-invalid"]="true");let F=Object.assign({},b);return U!==void 0&&(F=Object.assign({borderWidth:U},b)),V.createElement("div",{className:Q,style:F,onMouseEnter:te=>this.handleMouseOver(te),onMouseLeave:te=>this.handleMouseLeave(te),onClick:te=>this.handleClick(te)},this.renderPrepend(),this.renderPrefix(),V.createElement("input",Object.assign({},j,{ref:H})),this.renderClearBtn(),this.renderSuffix(q),this.renderModeBtn(),this.renderAppend())}}Dve.propTypes={"aria-label":ie.string,"aria-labelledby":ie.string,"aria-invalid":ie.bool,"aria-errormessage":ie.string,"aria-describedby":ie.string,"aria-required":ie.bool,addonBefore:ie.node,addonAfter:ie.node,clearIcon:ie.node,prefix:ie.node,suffix:ie.node,mode:ie.oneOf(Rpr),value:ie.any,defaultValue:ie.any,disabled:ie.bool,readonly:ie.bool,autoFocus:ie.bool,type:ie.string,showClear:ie.bool,hideSuffix:ie.bool,placeholder:ie.any,size:ie.oneOf(Tpr),className:ie.string,style:ie.object,validateStatus:ie.oneOf(Opr),onClear:ie.func,onChange:ie.func,onBlur:ie.func,onFocus:ie.func,onInput:ie.func,onKeyDown:ie.func,onKeyUp:ie.func,onKeyPress:ie.func,onEnterPress:ie.func,insetLabel:ie.node,insetLabelId:ie.string,inputStyle:ie.object,getValueLength:ie.func,preventScroll:ie.bool,borderless:ie.bool};Dve.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:vr,onChange:vr,onBlur:vr,onFocus:vr,onInput:vr,onKeyDown:vr,onKeyUp:vr,onKeyPress:vr,onEnterPress:vr,validateStatus:"default",borderless:!1};const Uy=V.forwardRef((e,n)=>V.createElement(Dve,Object.assign({},e,{forwardRef:n})));var Ipr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};class kve extends V.PureComponent{render(){const n=this.props,{triggerRender:r,componentName:i}=n,o=Ipr(n,["triggerRender","componentName"]);return r(Object.assign({},o))}}kve.propTypes={triggerRender:ie.func.isRequired,componentName:ie.string,componentProps:ie.object,value:ie.any,inputValue:ie.string,placeholder:ie.oneOfType([ie.string,ie.array]),className:ie.string,style:ie.object};const Npr={PREFIX:`${ui}-highlight`},Mpr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");class Ppr extends tc{constructor(n){super(Object.assign({},n)),this.findAll=r=>{let{autoEscape:i=!0,caseSensitive:o=!1,searchWords:a,sourceString:s}=r;Es(a)&&(a=[a]);const l=this.findChunks({autoEscape:i,caseSensitive:o,searchWords:a,sourceString:s}),c=this.combineChunks({chunks:l});return this.fillInChunks({chunksToHighlight:c,totalLength:s?s.length:0})},this.findChunks=r=>{let{autoEscape:i,caseSensitive:o,searchWords:a,sourceString:s}=r;return a.map(l=>typeof l=="string"?{text:l}:l).filter(l=>l.text).reduce((l,c)=>{let u=c.text;i&&(u=Mpr(u));const d=new RegExp(u,o?"g":"gi");let f;for(;f=d.exec(s);){const p=f.index,h=d.lastIndex;h>p&&l.push({highlight:!0,start:p,end:h,className:c.className,style:c.style}),f.index===d.lastIndex&&d.lastIndex++}return l},[])},this.combineChunks=r=>{let{chunks:i}=r;return i.sort((o,a)=>o.start-a.start).reduce((o,a)=>{if(o.length===0)return[a];{const s=o.pop();if(a.start<=s.end){const l=Math.max(s.end,a.end);o.push({highlight:!0,start:s.start,end:l,className:s.className||a.className,style:Object.assign(Object.assign({},s.style),a.style)})}else o.push(s,a);return o}},[])},this.fillInChunks=r=>{let{chunksToHighlight:i,totalLength:o}=r;const a=[],s=(l,c,u,d,f)=>{c-l>0&&a.push({start:l,end:c,highlight:u,className:d,style:f})};if(i.length===0)s(0,o,!1);else{let l=0;i.forEach(c=>{s(l,c.start,!1),s(c.start,c.end,!0,c.className,c.style),l=c.end}),s(l,o,!1)}return a}}}const Apr=Npr.PREFIX;class Lve extends m.PureComponent{constructor(){super(...arguments),this.getHighLightTextHTML=n=>{let{sourceString:r="",searchWords:i=[],option:o={autoEscape:!0,caseSensitive:!1}}=n;const a=new Ppr().findAll(Object.assign({sourceString:r,searchWords:i},o)),s=o.highlightTag||"mark",l=o.highlightClassName||"",c=o.highlightStyle||{};return a.map((u,d)=>{const{end:f,start:p,highlight:h,style:g,className:v}=u,y=r.substr(p,f-p);return h?V.createElement(s,{style:Object.assign(Object.assign({},c),g),className:`${l} ${v||""}`.trim(),key:y+d},y):y})}}render(){const{searchWords:n,sourceString:r,component:i,highlightClassName:o,highlightStyle:a,caseSensitive:s,autoEscape:l}=this.props,c=Ce({[`${Apr}-tag`]:!0},o),u={highlightTag:i,highlightClassName:c,highlightStyle:a,caseSensitive:s,autoEscape:l};return this.getHighLightTextHTML({sourceString:r,searchWords:n,option:u})}}Lve.propTypes={style:ie.object,className:ie.string,autoEscape:ie.bool,caseSensitive:ie.bool,sourceString:ie.string,searchWords:ie.arrayOf(ie.string),highlightStyle:ie.object,highlightClassName:ie.string,component:ie.string};Lve.defaultProps={component:"mark",autoEscape:!0,caseSensitive:!1,sourceString:""};const Dpr={PREFIX:`${ui}-avatar`},hN={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class kpr extends tc{constructor(n){super(Object.assign({},n)),this.handleFocusVisible=r=>{const{target:i}=r;try{i.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{b0(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)},this.changeScale=()=>{const{gap:r}=this.getProps(),i=this._adapter.getAvatarNode(),o=i==null?void 0:i.firstChild,[a,s]=[(i==null?void 0:i.offsetWidth)||0,(o==null?void 0:o.offsetWidth)||0];if(a!==0&&s!==0&&r*2<a){const l=a-r*2>s?1:(a-r*2)/s;this._adapter.setScale(l)}}}init(){const{children:n}=this.getProps();typeof n=="string"&&this.changeScale()}destroy(){}handleImgLoadError(){const{onError:n}=this.getProps();(n?n():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(n){this._adapter.notifyEnter(n)}handleLeave(n){this._adapter.notifyLeave(n)}}const Lpr=e=>{let{gradientStart:n,gradientEnd:r}=e;const i=Wj();return V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"51",height:"52",viewBox:"0 0 51 52",fill:"none"},V.createElement("g",{filter:"url(#filter0_d_6_2)"},V.createElement("path",{d:"M40.4918 46.5592C44.6795 43.176 46.261 34.1333 47.5301 25.6141C49.5854 11.8168 39.6662 1 25.8097 1C11.2857 1 3 11.4279 3 25.3518C3 33.7866 6.29361 43.8947 10.4602 46.5592C12.5868 47.9192 12.5868 47.9051 25.8097 47.9192C38.3651 47.9282 38.5352 48.14 40.4918 46.5592Z",fill:`url(#${i})`})),V.createElement("defs",null,V.createElement("filter",{id:"filter0_d_6_2",x:"0.789215",y:"0.447304",width:"49.2216",height:"51.3549",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},V.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),V.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),V.createElement("feOffset",{dy:"1.65809"}),V.createElement("feGaussianBlur",{stdDeviation:"1.10539"}),V.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),V.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_6_2"}),V.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_6_2",result:"shape"})),V.createElement("linearGradient",{id:i,x1:"17.671",y1:"31.7392",x2:"17.671",y2:"47.9333",gradientUnits:"userSpaceOnUse"},V.createElement("stop",{stopColor:n}),V.createElement("stop",{offset:"1",stopColor:r}))))};var $pr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Fpr=hN.SIZE,Bpr=hN.SHAPE,jpr=hN.COLOR,vo=Dpr.PREFIX;let FR=class extends fl{constructor(n){super(n),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:r,onClick:i,imgAttr:o,src:a,srcSet:s,alt:l}=this.props,{isImgExist:c}=this.state;let u=r;const d=i!==sy,f=a&&c,p={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(f){const h=d?`clickable Avatar: ${l}`:l,g=Object.assign(Object.assign({src:a,srcSet:s,onError:this.handleError},o),{className:Ce({[`${vo}-no-focus-visible`]:d})}),v=d?Object.assign(Object.assign({},g),p):g;u=V.createElement("img",Object.assign({alt:h},v))}else if(typeof r=="string"){const h=l??r,v={role:"img","aria-label":d?`clickable Avatar: ${h}`:h,className:Ce(`${vo}-label`,{[`${vo}-no-focus-visible`]:d})},y=d?Object.assign(Object.assign({},v),p):v,_={transform:`scale(${this.state.scale})`};u=V.createElement("span",{className:`${vo}-content`,style:_},V.createElement("span",Object.assign({},y,{"x-semi-prop":"children"}),r))}return u},this.renderBottomSlot=()=>{var r,i;if(!this.props.bottomSlot)return null;if(this.props.bottomSlot.render)return this.props.bottomSlot.render();const o=(r=this.props.bottomSlot.render)!==null&&r!==void 0?r:()=>{var a;const s={};return this.props.bottomSlot.bgColor&&(s.backgroundColor=this.props.bottomSlot.bgColor),this.props.bottomSlot.textColor&&(s.color=this.props.bottomSlot.textColor),V.createElement("span",{style:s,className:Ce(`${vo}-bottom_slot-shape_${this.props.bottomSlot.shape}`,`${vo}-bottom_slot-shape_${this.props.bottomSlot.shape}-${this.props.size}`,(a=this.props.bottomSlot.className)!==null&&a!==void 0?a:"")},this.props.bottomSlot.text)};return V.createElement("div",{className:Ce([`${vo}-bottom_slot`]),style:(i=this.props.bottomSlot.style)!==null&&i!==void 0?i:{}},o())},this.renderTopSlot=()=>{var r,i,o,a;if(!this.props.topSlot)return null;if(this.props.topSlot.render)return this.props.topSlot.render();const s={};return this.props.topSlot.textColor&&(s.color=this.props.topSlot.textColor),V.createElement("div",{style:(r=this.props.topSlot.style)!==null&&r!==void 0?r:{},className:Ce([`${vo}-top_slot-wrapper`,(i=this.props.topSlot.className)!==null&&i!==void 0?i:"",{[`${vo}-animated`]:this.props.contentMotion}])},V.createElement("div",{className:Ce([`${vo}-top_slot-bg`,`${vo}-top_slot-bg-${this.props.size}`])},V.createElement("div",{className:Ce([`${vo}-top_slot-bg-svg`,`${vo}-top_slot-bg-svg-${this.props.size}`])},V.createElement(Lpr,{gradientStart:(o=this.props.topSlot.gradientStart)!==null&&o!==void 0?o:"var(--semi-color-primary)",gradientEnd:(a=this.props.topSlot.gradientEnd)!==null&&a!==void 0?a:"var(--semi-color-primary)"}))),V.createElement("div",{className:Ce([`${vo}-top_slot`])},V.createElement("div",{style:s,className:Ce([`${vo}-top_slot-content`,`${vo}-top_slot-content-${this.props.size}`])},this.props.topSlot.text)))},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1,scale:1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this),this.avatarRef=V.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:n=>{this.setState({isImgExist:n})},notifyEnter:n=>{const{hoverMask:r}=this.props,i=r;this.setState({hoverContent:i},()=>{const{onMouseEnter:o}=this.props;o&&o(n)})},notifyLeave:n=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:r}=this.props;r&&r(n)})},setFocusVisible:n=>{this.setState({focusVisible:n})},setScale:n=>{this.setState({scale:n})},getAvatarNode:()=>{var n;return(n=this.avatarRef)===null||n===void 0?void 0:n.current}})}componentDidMount(){this.foundation=new kpr(this.adapter),this.foundation.init()}componentDidUpdate(n){if(this.props.src&&this.props.src!==n.src){const r=new Image(0,0);r.src=this.props.src,r.onload=()=>{this.setState({isImgExist:!0})},r.onerror=()=>{this.setState({isImgExist:!1})},r.onabort=()=>{this.setState({isImgExist:!1})}}typeof this.props.children=="string"&&this.props.children!==n.children&&this.foundation.changeScale()}componentWillUnmount(){this.foundation.destroy()}onEnter(n){this.foundation.handleEnter(n)}onLeave(n){this.foundation.handleLeave(n)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(n){const{onClick:r}=this.props;switch(n.key){case"Enter":r(n),H0(n);break;case"Escape":n.target.blur();break}}render(){var n;const r=this.props,{shape:i,children:o,size:a,color:s,className:l,hoverMask:c,onClick:u,imgAttr:d,src:f,srcSet:p,style:h,alt:g,gap:v,bottomSlot:y,topSlot:_,border:S,contentMotion:b}=r,E=$pr(r,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt","gap","bottomSlot","topSlot","border","contentMotion"]),{isImgExist:w,hoverContent:C,focusVisible:x}=this.state;let T={};hN.SIZE.includes(a)||(T={width:a,height:a}),T=Object.assign(Object.assign({},T),h);const R=y||_||S,O={onClick:u,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},M=f&&w,P=Ce(vo,{[`${vo}-${i}`]:i,[`${vo}-${a}`]:a,[`${vo}-${s}`]:s&&!M,[`${vo}-img`]:M,[`${vo}-focus`]:x,[`${vo}-animated`]:b},l),k=C?V.createElement("div",{className:`${vo}-hover`,"x-semi-prop":"hoverContent"},C):null;let $=V.createElement("span",Object.assign({},E,{style:R?{}:T,className:P},R?{}:O,{role:"listitem",ref:this.avatarRef}),this.getContent(),k);if(S){const U={};typeof S=="object"&&(S!=null&&S.color)&&(U.borderColor=S==null?void 0:S.color),$=V.createElement("div",{style:Object.assign({position:"relative"},T)},$,V.createElement("span",{style:U,className:Ce([`${vo}-additionalBorder`,`${vo}-additionalBorder-${a}`,{[`${vo}-${i}`]:i}])}),typeof this.props.border=="object"&&this.props.border.motion&&V.createElement("span",{style:U,className:Ce([`${vo}-additionalBorder`,`${vo}-additionalBorder-${a}`,{[`${vo}-${i}`]:i,[`${vo}-additionalBorder-animated`]:typeof this.props.border=="object"&&((n=this.props.border)===null||n===void 0?void 0:n.motion)}])}))}return R?V.createElement("span",Object.assign({className:Ce([`${vo}-wrapper`]),style:T},O),$,_&&["extra-small","small","default","medium","large","extra-large"].includes(a)&&i==="circle"&&this.renderTopSlot(),y&&["extra-small","small","default","medium","large","extra-large"].includes(a)&&this.renderBottomSlot()):$}};FR.__SemiComponentName__="Avatar";FR.defaultProps=T_(FR.__SemiComponentName__,{size:"medium",color:"grey",shape:"circle",gap:3,onClick:sy,onMouseEnter:sy,onMouseLeave:sy});FR.propTypes={children:ie.node,color:ie.oneOf(jpr),shape:ie.oneOf(Bpr),size:ie.oneOf(Fpr),hoverMask:ie.node,className:ie.string,style:ie.object,gap:ie.number,imgAttr:ie.object,src:ie.string,srcSet:ie.string,alt:ie.string,onError:ie.func,onClick:ie.func,onMouseEnter:ie.func,onMouseLeave:ie.func,bottomSlot:ie.shape({render:ie.func,shape:ie.oneOf(["circle","square"]),text:ie.node,bgColor:ie.string,textColor:ie.string,className:ie.string,style:ie.object}),topSlot:ie.shape({render:ie.func,gradientStart:ie.string,gradientEnd:ie.string,text:ie.node,textColor:ie.string,className:ie.string,style:ie.object}),border:ie.oneOfType([ie.shape({color:ie.string,motion:ie.bool}),ie.bool]),contentMotion:ie.bool};FR.elementType="Avatar";const $ve={PREFIX:`${ui}-button`},Uw={sizes:["default","small","large"],iconPositions:["left","right"],htmlTypes:["button","reset","submit"],btnTypes:["primary","secondary","tertiary","warning","danger"],themes:["solid","borderless","light","outline"],DEFAULT_ICON_SIZE:"default",DEFAULT_ICON_POSITION:"left"},Upr={SIZE:["extra-small","small","default","large","extra-large","custom"],ICON_PREFIX:"semi-icon-"};var Hpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const zpr=Uw.sizes,{htmlTypes:Vpr,btnTypes:Gpr}=Uw;let y$=class extends m.PureComponent{render(){const n=this.props,{children:r,block:i,htmlType:o,loading:a,circle:s,className:l,style:c,disabled:u,size:d,theme:f,type:p,prefixCls:h,iconPosition:g}=n,v=Hpr(n,["children","block","htmlType","loading","circle","className","style","disabled","size","theme","type","prefixCls","iconPosition"]),y=Object.assign(Object.assign({disabled:u},g$(v,["x-semi-children-alias"])),{className:Ce(h,{[`${h}-${p}`]:!u&&p,[`${h}-disabled`]:u,[`${h}-size-large`]:d==="large",[`${h}-size-small`]:d==="small",[`${h}-light`]:f==="light",[`${h}-block`]:i,[`${h}-circle`]:s,[`${h}-borderless`]:f==="borderless",[`${h}-outline`]:f==="outline",[`${h}-${p}-disabled`]:u&&p},l),type:o,"aria-disabled":u}),_={};return l&&l.includes("-with-icon")||(_["x-semi-prop"]=this.props["x-semi-children-alias"]||"children"),V.createElement("button",Object.assign({},y,{onClick:this.props.onClick,onMouseDown:this.props.onMouseDown,style:c}),V.createElement("span",Object.assign({className:Ce(`${h}-content`,this.props.contentClassName),onClick:S=>u&&S.stopPropagation()},_),r))}};y$.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:sy,onClick:sy,onMouseEnter:sy,onMouseLeave:sy,prefixCls:$ve.PREFIX};y$.propTypes={children:ie.node,disabled:ie.bool,prefixCls:ie.string,style:ie.object,size:ie.oneOf(zpr),type:ie.oneOf(Gpr),block:ie.bool,onClick:ie.func,onMouseDown:ie.func,circle:ie.bool,loading:ie.bool,htmlType:ie.oneOf(Vpr),theme:ie.oneOf(Uw.themes),className:ie.string,onMouseEnter:ie.func,onMouseLeave:ie.func,"aria-label":ie.string,contentClassName:ie.string};var Wpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Ypr=Upr.SIZE;class ul extends m.PureComponent{render(){const n=this.props,{children:r,iconPosition:i,iconSize:o,iconStyle:a,style:s,icon:l,noHorizontalPadding:c,theme:u,className:d,prefixCls:f,loading:p}=n,h=Wpr(n,["children","iconPosition","iconSize","iconStyle","style","icon","noHorizontalPadding","theme","className","prefixCls","loading"]),g=Object.assign({},s);Array.isArray(c)?(c.includes("left")&&(g.paddingLeft=0),c.includes("right")&&(g.paddingRight=0)):c===!0?(g.paddingLeft=0,g.paddingRight=0):typeof c=="string"&&(c==="left"&&(g.paddingLeft=0),c==="right"&&(g.paddingRight=0));let v=null,y=null;p&&!h.disabled?y=V.createElement(Zlt,null):V.isValidElement(l)&&(y=l);const _=Ce({[`${f}-content-left`]:i==="right",[`${f}-content-right`]:i==="left"}),S=this.props["x-semi-children-alias"]||"children",b=r!=null?V.createElement("span",{className:_,"x-semi-prop":S},r):null;i==="left"?v=V.createElement(V.Fragment,null,y,b):v=V.createElement(V.Fragment,null,b,y);const E=Ce(d,`${f}-with-icon`,{[`${f}-with-icon-only`]:b==null||b==="",[`${f}-loading`]:p});return V.createElement(y$,Object.assign({},h,{className:E,theme:u,style:g}),v)}}ul.defaultProps={iconPosition:Uw.DEFAULT_ICON_POSITION,prefixCls:$ve.PREFIX,loading:!1,noHorizontalPadding:!1,onMouseEnter:vr,onMouseLeave:vr};ul.elementType="IconButton";ul.propTypes={iconStyle:ie.object,style:ie.object,loading:ie.bool,prefixCls:ie.string,icon:ie.oneOfType([ie.object,ie.string,ie.node]),iconSize:ie.oneOf(Ypr),noHorizontalPadding:ie.oneOfType([ie.bool,ie.string,ie.array]),children:ie.node,theme:ie.string,iconPosition:ie.oneOf(Uw.iconPositions),className:ie.string,onMouseEnter:ie.func,onMouseLeave:ie.func};let ol=class extends V.PureComponent{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(n)}render(){const n=Object.assign({},this.props),r=!!n.icon,i=!!n.loading,o=!!n.disabled;return r||i&&!o?V.createElement(ul,Object.assign({},n)):V.createElement(y$,Object.assign({},n))}};ol.__SemiComponentName__="Button";ol.propTypes=Object.assign(Object.assign({},y$.propTypes),ul.propTypes);ol.defaultProps=T_(ol.__SemiComponentName__);ol.elementType="Button";var qpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const VM=$ve.PREFIX,Kpr=Uw.sizes;class Fve extends fl{getInnerWithLine(n){const r=[];return n.length>1?(n.slice(0,-1).forEach((i,o)=>{const a=fr(i,"type.elementType")==="Button",s=fr(i,"props"),{type:l,theme:c,disabled:u}=s??{};if(a&&c!=="outline"){const d=Ce(`${VM}-group-line`,`${VM}-group-line-${c??"light"}`,`${VM}-group-line-${l??"primary"}`,{[`${VM}-group-line-disabled`]:u});r.push(i,V.createElement("span",{className:d,key:`line-${o}`}))}else r.push(i)}),r.push(n.slice(-1)),r):n}render(){const n=this.props,{children:r,disabled:i,size:o,type:a,className:s,style:l,"aria-label":c}=n,u=qpr(n,["children","disabled","size","type","className","style","aria-label"]);let d,f=[];const p=Ce(`${VM}-group`,s);return r&&(d=(Array.isArray(r)?r:[r]).map((h,g)=>{var v;return m.isValidElement(h)?m.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:i,size:o,type:a},h.props),u),{key:(v=h.key)!==null&&v!==void 0?v:g})):h}),f=this.getInnerWithLine(d)),V.createElement("div",{className:p,style:l,role:"group","aria-label":c},f)}}Fve.propTypes={children:ie.node,disabled:ie.bool,type:ie.string,size:ie.oneOf(Kpr),theme:ie.oneOf(Uw.themes),"aria-label":ie.string};Fve.defaultProps={size:"default"};const Bve={PREFIX:`${ui}-skeleton`};var Xpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Qpr=hN.SIZE,Zpr=hN.SHAPE,dG=e=>n=>r=>V.createElement(n,Object.assign({type:e},r));class gN extends m.PureComponent{render(){const n=this.props,{prefixCls:r,className:i,type:o,size:a,shape:s}=n,l=Xpr(n,["prefixCls","className","type","size","shape"]),c=Ce(i,`${r}-${o}`,{[`${r}-${o}-${a}`]:o.toUpperCase()==="AVATAR"},{[`${r}-${o}-${s}`]:o.toUpperCase()==="AVATAR"});return V.createElement("div",Object.assign({className:c},l))}}gN.propTypes={type:ie.string,prefixCls:ie.string,style:ie.object,className:ie.string,size:ie.oneOf(Qpr),shape:ie.oneOf(Zpr)};gN.defaultProps={prefixCls:Bve.PREFIX,size:"medium",shape:"circle"};const Jpr=dG("avatar")(gN),ehr=dG("image")(gN),thr=dG("title")(gN),nhr=dG("button")(gN);let jve=class extends m.PureComponent{render(){const{prefixCls:n,className:r,style:i,rows:o}=this.props,a=Ce(r,`${n}-paragraph`);return V.createElement("ul",{className:a,style:i},[...Array(o)].map((s,l)=>V.createElement("li",{key:l})))}};jve.propTypes={rows:ie.number,prefixCls:ie.string,style:ie.object,className:ie.string};jve.defaultProps={prefixCls:Bve.PREFIX,rows:4};var rhr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const K$e=Bve.PREFIX;class Zd extends m.PureComponent{render(){const n=this.props,{placeholder:r,active:i,children:o,className:a,loading:s,style:l}=n,c=rhr(n,["placeholder","active","children","className","loading","style"]),u=Ce(K$e,{[`${K$e}-active`]:!!i},a);let d;return s?d=V.createElement("div",Object.assign({className:u,style:l},c,{"x-semi-prop":"placeholder"}),r):d=o,d}}Zd.Avatar=Jpr;Zd.Title=thr;Zd.Button=nhr;Zd.Paragraph=jve;Zd.Image=ehr;Zd.defaultProps={loading:!0};Zd.propTypes={active:ie.bool,placeholder:ie.node,style:ie.object,className:ie.string,loading:ie.bool,children:ie.node};function ihr(e,n,r,i){for(var o=e.length,a=r+(i?1:-1);i?a--:++a<o;)if(n(e[a],a,e))return a;return-1}var ohr=ihr;function ahr(e){return e!==e}var shr=ahr;function lhr(e,n,r){for(var i=r-1,o=e.length;++i<o;)if(e[i]===n)return i;return-1}var chr=lhr,uhr=ohr,dhr=shr,fhr=chr;function phr(e,n,r){return n===n?fhr(e,n,r):uhr(e,dhr,r)}var Jlt=phr,hhr=wYe,X$e=1/0,ghr=17976931348623157e292;function mhr(e){if(!e)return e===0?e:0;if(e=hhr(e),e===X$e||e===-X$e){var n=e<0?-1:1;return n*ghr}return e===e?e:0}var vhr=mhr,yhr=vhr;function _hr(e){var n=yhr(e),r=n%1;return n===n?r?n-r:n:0}var bhr=_hr,Shr=Hk;function Ehr(e,n){return Shr(n,function(r){return e[r]})}var Chr=Ehr,whr=Chr,xhr=pw;function Thr(e){return e==null?[]:whr(e,xhr(e))}var Ohr=Thr,Rhr=Jlt,Ihr=l_,Nhr=hfe,Mhr=bhr,Phr=Ohr,Ahr=Math.max;function Dhr(e,n,r,i){e=Ihr(e)?e:Phr(e),r=r&&!i?Mhr(r):0;var o=e.length;return r<0&&(r=Ahr(o+r,0)),Nhr(e)?r<=o&&e.indexOf(n,r)>-1:!!o&&Rhr(e,n,r)>-1}var khr=Dhr;const ect=Or(khr);var Lhr=eH,$hr=gw,Fhr=SYe,Bhr=l_,jhr=jk,Uhr=pw,Hhr=Object.prototype,zhr=Hhr.hasOwnProperty,Vhr=Fhr(function(e,n){if(jhr(n)||Bhr(n)){$hr(n,Uhr(n),e);return}for(var r in n)zhr.call(n,r)&&Lhr(e,r,n[r])}),Ghr=Vhr;const Whr=Or(Ghr);var Yhr=Jlt;function qhr(e,n){var r=e==null?0:e.length;return!!r&&Yhr(e,n,0)>-1}var tct=qhr;function Khr(e,n,r){for(var i=-1,o=e==null?0:e.length;++i<o;)if(r(n,e[i]))return!0;return!1}var nct=Khr,Xhr=Sfe,Qhr=tct,Zhr=nct,Jhr=Hk,egr=zU,tgr=Efe,ngr=200;function rgr(e,n,r,i){var o=-1,a=Qhr,s=!0,l=e.length,c=[],u=n.length;if(!l)return c;r&&(n=Jhr(n,egr(r))),i?(a=Zhr,s=!1):n.length>=ngr&&(a=tgr,s=!1,n=new Xhr(n));e:for(;++o<l;){var d=e[o],f=r==null?d:r(d);if(d=i||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(n[p]===f)continue e;c.push(d)}else a(n,f,i)||c.push(d)}return c}var igr=rgr,ogr=igr,agr=Llt,sgr=bYe,Q$e=gYe,lgr=sgr(function(e,n){return Q$e(e)?ogr(e,agr(n,1,Q$e,!0)):[]}),cgr=lgr;const Kj=Or(cgr);var ugr=ZU,dgr=Flt,fgr=RI;function pgr(e,n,r){for(var i=-1,o=n.length,a={};++i<o;){var s=n[i],l=ugr(e,s);r(l,s)&&dgr(a,fgr(s,e),l)}return a}var hgr=pgr,ggr=hgr,mgr=ZWe;function vgr(e,n){return ggr(e,n,function(r,i){return mgr(e,i)})}var ygr=vgr,_gr=ygr,bgr=$lt,Sgr=bgr(function(e,n){return e==null?{}:_gr(e,n)}),Egr=Sgr;const Xj=Or(Egr);var Cgr=Gk;function wgr(e,n,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=n(a);if(s!=null&&(l===void 0?s===s&&!Cgr(s):r(s,l)))var l=s,c=a}return c}var xgr=wgr;function Tgr(e,n){return e>n}var Ogr=Tgr,Rgr=xgr,Igr=Ogr,Ngr=Uk;function Mgr(e){return e&&e.length?Rgr(e,Ngr,Igr):void 0}var Pgr=Mgr;const Agr=Or(Pgr);var lee=VWe,Dgr=Ilt,kgr=Cfe,Lgr=1/0,$gr=lee&&1/kgr(new lee([,-0]))[1]==Lgr?function(e){return new lee(e)}:Dgr,Fgr=$gr,Bgr=Sfe,jgr=tct,Ugr=nct,Hgr=Efe,zgr=Fgr,Vgr=Cfe,Ggr=200;function Wgr(e,n,r){var i=-1,o=jgr,a=e.length,s=!0,l=[],c=l;if(r)s=!1,o=Ugr;else if(a>=Ggr){var u=n?null:zgr(e);if(u)return Vgr(u);s=!1,o=Hgr,c=new Bgr}else c=n?[]:l;e:for(;++i<a;){var d=e[i],f=n?n(d):d;if(d=r||d!==0?d:0,s&&f===f){for(var p=c.length;p--;)if(c[p]===f)continue e;n&&c.push(f),l.push(d)}else o(c,f,r)||(c!==l&&c.push(f),l.push(d))}return l}var Ygr=Wgr,qgr=Ygr;function Kgr(e){return e&&e.length?qgr(e):[]}var Xgr=Kgr;const Qgr=Or(Xgr),rct={PREFIX:`${ui}-tree`,PREFIX_OPTION:`${ui}-tree-option`};function ict(e,n){return`${e}-${n}`}function fG(e){return!BC(e)&&!ll(e)}function Ob(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const o=[],a=!!i,s=fr(r,"key","key"),l=fr(r,"children","children");if(ll(e))return[];function c(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((f,p)=>{const h=ict(d?d.pos:"0",p),g=f[s],v={};r&&Object.entries(g$(r,"children")).forEach(S=>{let[b,E]=S;const w=f[E];!ll(w)&&(v[b]=w)});const y=Object.assign(Object.assign(Object.assign({},Xj(f,["key","label","value","icon","disabled","isLeaf"])),v),{parent:d,pos:h,children:null,data:f,_innerDataTag:!0,isEnd:[...d?d.isEnd:[],p===u.length-1]}),_=typeof i=="boolean";return(!a||!_&&i.has(g))&&o.push(y),n.has(g)&&(!a||!_&&i.has(g))?y.children=c(f[l]||[],y):y.children=[],y})}return c(e),o}function Zgr(e,n,r){const i=fr(r,"key","key"),o=fr(r,"children","children"),a=(s,l,c)=>{const u=s?s[o]:e,d=s?ict(c.pos,l):"0";if(s){const f=fr(s,i,null),p={data:Object.assign({},s),ind:l,pos:d,key:f!==null?f:d,parentPos:c.node?c.pos:null,level:Number(c.level)+1};n(p)}u&&u.forEach((f,p)=>{a(f,p,{node:s,pos:d,level:c?Number(c.level)+1:-1})})};a(null)}function Jgr(e,n){const r={},i={},o={},a={posEntities:r,keyEntities:i,valueEntities:o},s=fr(n,"value","value");return Zgr(e,l=>{const{pos:c,key:u,parentPos:d}=l,f=Object.assign({},l),p=fr(f,`data.${s}`,null);p!==null&&(o[p]=u),r[c]=f,i[u]=f,f.parent=r[d],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f))},n),a}function FE(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!fG(e))return[];if(!r&&Array.isArray(e)?e=e.length?[e[0]]:[]:Array.isArray(e)||(e=[e]),ta(n))return e;const i=[];return e.forEach(o=>{o in n?i.push(n[o]):o&&i.push(o)}),i}function Cm(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const i=[],o=a=>{if(!a)return;const{children:s}=a;fG(s)&&s.forEach(c=>{i.push(c.key),o(n[c.key])})};return e.forEach(a=>{r&&i.push(a),o(n[a])}),i}function emr(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const i=[];return e&&e.forEach(o=>{const a=n[o];a&&a.children&&a.children.forEach(s=>{(!r.length||!r.includes(s.key))&&i.push(s.key)})}),i}function Uve(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const i=[];return e.forEach(a=>{n[a]&&n[a].parent&&i.push(n[a].parent.key)}),emr(Qgr(i),n,r?[]:e)}function wm(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const i=[],o=a=>{a.parent&&(i.push(a.parent.key),o(a.parent))};return e.forEach(a=>{n[a]&&o(n[a]),r&&i.push(a)}),i}function tmr(e,n){const r={};return e.forEach(i=>{if(!n[i])return;const{level:o}=n[i];r[o]?r[o].push(i):r[o]=[i]}),r}function _$(e,n){const r=Array.isArray(e)?e:[e],i=Cm(r,n,!0),o=new Set([...i]);let a=new Set([]),s=[];const l=tmr(r,n),c=u=>{const{key:d,parent:f,level:p}=u;if(!f||s.includes(d))return;const h=Uve([d],n);if(s=[...s,...h],h.every(v=>o.has(v)))o.add(f.key),p-1 in l&&p?l[p-1].push(f.key):l[p-1]=[f.key];else{const v=wm([d],n,!1);a=new Set([...a,...v])}};for(;!ta(l);){const u=Agr(Object.keys(l).map(d=>Number(d)));l[u].forEach(d=>c(n[d])),delete l[u]}return{checkedKeys:o,halfCheckedKeys:a}}function cee(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(e)||(e=[e]),r){const i=wm(e,n,!0);return new Set(i)}return new Set(e)}function Z$e(e,n,r,i){const o=FE(e,i,r);return new Set(wm(o,n,!1))}function J$e(e,n,r){let i="show";const o=[...e],a=[...n];if(Math.abs(o.length-a.length)!==1)return{motionType:i,motionKeys:[]};let s=[];return o.length>a.length?(i="hide",s=Kj(o,a)):s=Kj(a,o),{motionType:s.length===1?i:"show",motionKeys:s.length===1?Cm(s,r,!1):[]}}function oct(e,n,r,i){if(!r)return!0;let o=r,a=n;return typeof r=="boolean"&&(o=(s,l)=>{const c=s.toLowerCase();return l.toString().toLowerCase().includes(c)}),i&&(a=n[i]),o(e,a,n)}function $h(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3?arguments[3]:void 0;const o=[],a=new Set(e);return r?e.forEach(s=>{n[s]&&!fG(n[s].children)&&o.push(s),!n[s]&&i&&o.push(s)}):e.forEach(s=>{if(!n[s]){i&&o.push(s);return}const{parent:l}=n[s];l&&a.has(l.key)||o.push(s)}),o}function e3e(e,n,r){const i=[],o=a=>{r[a].children&&r[a].children.forEach(s=>{const{key:l}=s;i.push(l),n.has(l)&&o(l)})};return o(e),i}function act(e,n,r,i){const o=Cm([e],n,!0),a=n[e];r=new Set([...r,e]);const s=l=>{if(!l.parent)return;const{key:c}=l;if(Uve([c],n).every(f=>r.has(f))){const f=l.parent;r.add(f.key),s(f)}else{const f=wm([c],n,!1);i=new Set([...i,...f])}};return s(a),{checkedKeys:new Set([...r,...o]),halfCheckedKeys:i}}function sct(e,n,r,i){const o=Cm([e],n,!0),a=n[e];o.forEach(l=>{r.has(l)&&r.delete(l),i.has(l)&&i.delete(l)});const s=l=>{const c=l.parent;if(!c||!r.has(c.key)&&!i.has(c.key))return;const{key:u}=l,f=Uve([u],n).some(h=>r.has(h)||i.has(h)),p=wm([u],n,!1);f?p.forEach(h=>{r.has(h)&&(r.delete(h),i.add(h))}):(r.has(c.key)&&r.delete(c.key),i.has(c.key)&&i.delete(c.key),s(c))};return a&&s(a),{checkedKeys:r,halfCheckedKeys:i}}function nmr(e){const{showFilteredOnly:n,keyEntities:r,inputValue:i,treeData:o,filterTreeNode:a,filterProps:s,prevExpandedKeys:l,keyMaps:c}=e;let u=[];u=Object.values(r).filter(g=>oct(i,g.data,a,s)).map(g=>g.key);let d=wm(u,r,!1);if(l.length){const g=l.filter(v=>!!r[v]);d=d.concat(g)}const f=Cm(u,r,!0),p=new Set([...f,...d]);return{flattenNodes:Ob(o,new Set(d),c,n&&p),filteredKeys:new Set(u),filteredExpandedKeys:new Set(d),filteredShownKeys:p}}function Qj(e,n){const r=fr(n,"value","value"),i=fr(n,"key","key");return Array.isArray(e)?e.map(o=>fr(o,r,o[i])):fr(e,r,e[i])}function nb(e,n,r){return n&&fG(e)?Qj(e,r):e}function t3e(e,n){return[...e].filter(i=>i in n)}function lct(e,n){const r=fr(n,"disabled","disabled"),i=Object.keys(e).filter(a=>e[a].data[r]),{checkedKeys:o}=_$(i,e);return o}const cct={PREFIX:`${ui}-cascader`,PREFIX_OPTION:`${ui}-cascader-option`},Ua={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none",SEARCH_POSITION_TRIGGER:"trigger",SEARCH_POSITION_CUSTOM:"custom",RELATED:"related",UN_RELATED:"unRelated"},uct="_SEMI_CASCADER_SPLIT_";function rmr(e,n){return`${e}-${n}`}function imr(e){return!BC(e)&&!ll(e)}function omr(e){return Array.isArray(e)?e:[e]}function amr(e,n,r,i){if(!r)return!0;let o=r,a;return typeof r=="boolean"?(o=(s,l)=>{const c=s.toLowerCase();return l.toLowerCase().includes(c)},a=i.join("")):a=i.join(),o(e,a,n)}function smr(e,n){const r=(i,o,a)=>{const s=i?i.children:e;let l=null;if(i){const c=a?`${a.key}${uct}${i.value}`:`${i.value}`,u=a?rmr(a.pos,o):`${o}`;l={data:Object.assign({},i),ind:o,key:c,pos:u,level:a?a.level+1:0,parentKey:a?a.key:null,path:a?[...a.path,c]:[c],valuePath:a?[...a.valuePath,i.value]:[i.value]},n(l)}s&&s.forEach((c,u)=>{r(c,u,l)})};r(null)}function lmr(e){return e!=null&&e.length?Array.isArray(e[0])?e.map(n=>Zj(n)):[Zj(e)]:[]}function Zj(e){return e.join(uct)}function cmr(e,n){const r=e.split("-").map(a=>Number(a));let i=n,o=[];return r.forEach((a,s)=>{var l;i=s===0?i[a]:(l=i==null?void 0:i.children)===null||l===void 0?void 0:l[a],o.push(i==null?void 0:i.value)}),Zj(o)}function dct(e){const n={};return smr(e,r=>{const{key:i,parentKey:o}=r,a=Object.assign({},r);n[i]=a,a.parent=n[o],a.parent&&(a.parent.children=a.parent.children||[],a.parent.children.push(a))}),n}function Wse(e,n){let r;return n?r=Ua.LEAF_ONLY_MERGE_TYPE:e?r=Ua.AUTO_MERGE_VALUE_MERGE_TYPE:r=Ua.NONE_MERGE_TYPE,r}class umr extends tc{constructor(n){super(Object.assign({},n)),this.handleKeyDown=r=>{r.key===Ylt&&this.getState("isOpen")&&this.close(r)},this.updateSearching=r=>{this._adapter.updateStates({isSearching:!1})},this.handleTagRemoveByKey=r=>{var i,o;const{keyEntities:a}=this.getStates(),{disabled:s}=this.getProps();if(s)return;const l=(i=a[r])!==null&&i!==void 0?i:{};!(!((o=l==null?void 0:l.data)===null||o===void 0)&&o.disable)&&this._handleMultipleSelect(l),this._adapter.rePositionDropdown()},this.handleTagRemoveInTrigger=r=>{const{treeData:i}=this.getStates(),o=cmr(r,i);this.handleTagRemoveByKey(o)}}init(){const n=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),n&&!this._isDisabled()&&this.open()}_setEmptyContentMinWidth(){const{style:n}=this.getProps();let r;n&&uf(n.width)||n&&Es(n.width)&&!n.width.includes("%")?r=n.width:r=this._adapter.getTriggerWidth(),this._adapter.setEmptyContentMinWidth(r)}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(n){const{onChangeWithObject:r,multiple:i}=this.getProps(),o=r?[]:"value";if(i){const a=[];n.forEach(s=>{const l=this.getItemPropPath(s,o);a.push(l)}),this._adapter.notifyChange(a)}else{const a=ll(n)||!("key"in n)?[]:this.getItemPropPath(n.key,o);this._adapter.notifyChange(a)}}_isLeaf(n){return this.getProp("loadData")?!!n.isLeaf:!n.children||!n.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(n){this._adapter.notifyBlur(n)}_notifyFocus(n){this._adapter.notifyFocus(n)}_isOptionDisabled(n,r){return wm([n],r,!0).some(o=>r[o].data.disabled)}getItemPropPath(n,r,i){const o=i||this.getState("keyEntities"),a=o[n];let s=[];if(a)if(a._notExist)s=a.path;else{const l=a.path;s=Array.isArray(r)?l.map(c=>o[c].data):l.map(c=>o[c].data[r])}return s}_getCacheValue(n){const{selectedKeys:r}=this.getStates(),i=Array.from(r)[0];let o;if(ta(n[i]))if(ect(i,"not-exist-")){const a=i.match(/not-exist-(\S*)/)[1];ta(n[a])?o=a:o=n[a].valuePath}else o=i;else o=n[i].valuePath;return o}collectOptions(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:r,value:i,defaultValue:o}=this.getProps(),a=dct(r);this._adapter.rePositionDropdown();let s;n?s=o:ta(a)||(s=this._getCacheValue(a));const l=this._isControlledComponent()?ll(i)?[]:i:s;imr(l)?this.updateSelectedKey(l,a):this._adapter.updateStates({keyEntities:a})}handleValueChange(n){const{keyEntities:r}=this.getStates();this.updateSelectedKey(n,r)}_getClearSelectedKey(n){const r={},{searchPlaceholder:i,placeholder:o,multiple:a}=this.getProps();return r.selectedKeys=new Set([]),r.activeKeys=new Set([]),r.filteredKeys=new Set([]),n&&!a&&(r.inputPlaceHolder=i||o||"",r.inputValue=""),r}updateSelectedKey(n,r){const{changeOnSelect:i,onChangeWithObject:o,multiple:a}=this.getProps(),{activeKeys:s,loading:l,keyEntities:c,selectedKeys:u}=this.getStates(),d=this._adapter.getLoadingKeyRefValue(),f=this._isFilterable(),p=[...s].filter(b=>d.has(b)),h=omr(n),g=o&&DWe(h[0])?h.map(b=>b.value):h,v=lmr(g);let y={};const _=v.length>0?v[0]:void 0,S=_?r[_]:void 0;if(S)if(i||this._isLeaf(S.data)){if(y.selectedKeys=new Set([_]),p.length||(y.activeKeys=new Set(S.path)),f&&!a){const b=this.renderDisplayText(_,r);y.inputPlaceHolder=b}}else If(v,Array.from(u))&&(y=this._getClearSelectedKey(f));else if(n&&n.length){const b=g[g.length-1],E=`not-exist-${b}`,w={data:{label:b,value:b},key:E,path:g,_notExist:!0};if(y.selectedKeys=new Set([E]),f&&!a){const C=this._defaultRenderText(g);y.inputPlaceHolder=C}r[E]=w}else if(l){y.keyEntities=Whr(c,r),this._adapter.updateStates(y);return}else y=this._getClearSelectedKey(f);y.keyEntities=r,this._adapter.updateStates(y)}open(){const n=this._isFilterable(),{multiple:r}=this.getProps();this._adapter.openMenu(),n&&(this._clearInput(),!r&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(i=>this.close(i)),this._setEmptyContentMinWidth()}reCalcActiveKeys(){const{selectedKeys:n,activeKeys:r,keyEntities:i}=this.getStates(),o=[...n][0],a=i[o];if(!a)return;const s=new Set(a.path);If(s,r)||this._adapter.updateStates({activeKeys:s})}close(n,r){const{multiple:i}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:o,isSearching:a}=this.getStates();let s="";r&&!i?s=this.renderDisplayText(r):o.size&&!i&&(s=this.renderDisplayText([...o][0])),this._adapter.updateStates({inputValue:s}),!i&&this.toggle2SearchInput(!1),!i&&this._adapter.updateFocusState(!1)}this._notifyBlur(n)}focus(){const{filterTreeNode:n}=this.getProps();n&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:n}=this.getProps();n&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(n){n?this._adapter.toggleInputShow(n,()=>this.focus()):this._adapter.toggleInputShow(n,()=>{})}handleItemClick(n,r){this._isDisabled()||(this.handleSingleSelect(n,r),this._adapter.rePositionDropdown())}handleItemHover(n,r){this._isDisabled()||this.handleShowNextByHover(r)}handleShowNextByHover(n){const{keyEntities:r}=this.getStates(),{data:i,key:o}=n,a=this._isLeaf(i),s=r[o].path;this._adapter.updateStates({activeKeys:new Set(s)}),a||this.notifyIfLoadData(n)}onItemCheckboxClick(n){this._isDisabled()||(this._handleMultipleSelect(n),this._adapter.rePositionDropdown())}handleClick(n){const r=this._isDisabled(),i=this._isFilterable(),{isOpen:o}=this.getStates();r||(o?o&&!i&&this.close(n):(this.open(),this._notifyFocus(n)))}handleSelectionEnterPress(n){hg(n)&&this.handleClick(n)}toggleHoverState(n){this._adapter.toggleHovering(n)}_defaultRenderText(n,r){const i=this.getProp("separator");return r&&typeof r=="function"?r(n):n.join(i)}renderDisplayText(n,r){const i=this.getProp("displayRender"),o=this.getProp("displayProp"),a=this.getItemPropPath(n,o,r);return this._defaultRenderText(a,i)}handleNodeLoad(n){const{data:r,key:i}=n,o=new Set(this._adapter.getLoadingKeyRefValue()),s=new Set(this._adapter.getLoadedKeyRefValue()).add(i),l=new Set([...o]);l.delete(i),this._adapter.notifyOnLoad(s,r),this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateLoadedKeyRefValue(s),this._adapter.updateStates({loadingKeys:l,loadedKeys:s})}notifyIfLoadData(n){const{data:r,key:i}=n;if(this._adapter.updateStates({loading:!1}),!r.isLeaf&&!r.children&&this.getProp("loadData")){const o=this._adapter.getLoadedKeyRefValue(),a=new Set(this._adapter.getLoadingKeyRefValue());if(o.has(i)||a.has(i))return;this._adapter.updateStates({loading:!0});const{keyEntities:s}=this.getStates(),l=this.getItemPropPath(i,[],s),c=a.add(i);this._adapter.updateLoadingKeyRefValue(c),this._adapter.updateStates({loadingKeys:c}),this._adapter.notifyLoadData(l,this.handleNodeLoad.bind(this,n))}}handleSingleSelect(n,r){const{changeOnSelect:i,filterLeafOnly:o,multiple:a,enableLeafClick:s}=this.getProps(),{keyEntities:l,selectedKeys:c,isSearching:u}=this.getStates(),d=this._isFilterable(),{data:f,key:p}=r,h=this._isLeaf(f),g=l[p].path,v=[p],y=p!==[...c][0];if(!h&&!i&&!u){this._adapter.updateStates({activeKeys:new Set(g)}),this.notifyIfLoadData(r);return}if(a)this._adapter.updateStates({activeKeys:new Set(g)}),h&&s&&this.onItemCheckboxClick(r);else if(this._adapter.notifySelect(f.value),y){if(this._notifyChange(r),this.notifyIfLoadData(r),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(g)}),h&&this.close(n);return}this._adapter.updateStates({activeKeys:new Set(g),selectedKeys:new Set(v)});const _=this.renderDisplayText(p);d&&this._adapter.updateInputPlaceHolder(_),h?this.close(n,p):!o&&u&&this.close(n,p)}else this.close(n)}_handleMultipleSelect(n){const{checkRelation:r}=this.getProps();r===Ua.RELATED?this._handleRelatedMultipleSelect(n):r==="unRelated"&&this._handleUnRelatedMultipleSelect(n),this._adapter.updateStates({inputValue:""})}_handleRelatedMultipleSelect(n){const{key:r}=n,{checkedKeys:i,keyEntities:o,resolvedCheckedKeys:a}=this.getStates(),{autoMergeValue:s,max:l,disableStrictly:c,leafOnly:u}=this.getProps(),d=i.has(r),f=c?this.calcCheckedStatus(!d,r):!d,{checkedKeys:p,halfCheckedKeys:h}=c?this.calcNonDisabledCheckedKeys(r,f):this.calcCheckedKeys(r,f),g=Wse(s,u),v=g===Ua.LEAF_ONLY_MERGE_TYPE,y=g===Ua.NONE_MERGE_TYPE,_=new Set($h(p,o,v)),S=y?p:_;if(uf(l)){if(y){if(i.size<p.size&&p.size>l){const b=[];p.forEach(E=>{b.push(o[E])}),this._adapter.notifyOnExceed(b);return}}else if(a.size<_.size&&_.size>l){const b=[];_.forEach(E=>{b.push(o[E])}),this._adapter.notifyOnExceed(b);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:p,halfCheckedKeys:h,resolvedCheckedKeys:_}),this._notifyChange(S),f&&this._notifySelect(S)}_handleUnRelatedMultipleSelect(n){const{key:r}=n,{checkedKeys:i,keyEntities:o}=this.getStates(),{max:a}=this.getProps(),s=new Set(i);let l;if(i.has(r))s.delete(r),l=!1;else{if(uf(a)&&i.size>=a){const u=[];i.forEach(d=>{u.push(o[d])}),this._adapter.notifyOnExceed(u);return}s.add(r),l=!0}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:s}),this._notifyChange(s),l&&this._notifySelect(s)}calcNonDisabledCheckedKeys(n,r){const{keyEntities:i,disabledKeys:o}=this.getStates(),a=new Set(this.getState("checkedKeys")),s=$h(Cm([n],i,!1),i,!0);if(!s.some(d=>o.has(d)))return this.calcCheckedKeys(n,r);const c=s.filter(d=>!o.has(d)),u=r?[...c,...a]:Kj($h([...a],i,!0),c);return _$(u,i)}calcCheckedStatus(n,r){if(!n)return n;const{checkedKeys:i,keyEntities:o,disabledKeys:a}=this.getStates(),s=$h(Cm([r],o,!1),o,!0);return s.some(d=>a.has(d))?!s.filter(d=>!a.has(d)).every(d=>i.has(d)):n}_notifySelect(n){const{keyEntities:r}=this.getStates(),i=[];n.forEach(a=>{var s,l;const c=(l=(s=r[a])===null||s===void 0?void 0:s.data)===null||l===void 0?void 0:l.value;c!==void 0&&i.push(c)});const o=i.length===1?i[0]:i;this._adapter.notifySelect(o)}calcCheckedKeys(n,r){const{keyEntities:i}=this.getStates(),o=new Set(this.getState("checkedKeys")),a=new Set(this.getState("halfCheckedKeys"));return r?act(n,i,o,a):sct(n,i,o,a)}handleInputChange(n){this._adapter.updateInputValue(n);const{keyEntities:r}=this.getStates(),{treeNodeFilterProp:i,filterTreeNode:o,filterLeafOnly:a}=this.getProps();let s=[];n&&(s=Object.values(r).filter(l=>{const{key:c,_notExist:u,data:d}=l;if(u)return!1;const f=this.getItemPropPath(c,i);return amr(n,d,o,f)}).filter(l=>o&&!a||this._isLeaf(l)).map(l=>l.key)),this._adapter.updateStates({isSearching:!!n,filteredKeys:new Set(s)}),this._adapter.notifyOnSearch(n),this._adapter.rePositionDropdown()}handleClear(){const{isSearching:n}=this.getStates(),{searchPlaceholder:r,placeholder:i,multiple:o}=this.getProps(),a=this._isFilterable(),s=this._isControlledComponent(),l={};o?(l.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),l.checkedKeys=new Set([]),l.halfCheckedKeys=new Set([]),l.selectedKeys=new Set([]),l.activeKeys=new Set([]),l.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):a&&n?(l.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(a&&(l.inputValue="",l.inputPlaceHolder=r||i||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),s||(l.selectedKeys=new Set([])),l.activeKeys=new Set([]),l.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(l),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(n){hg(n)&&this.handleClear()}getRenderData(){const{keyEntities:n,isSearching:r}=this.getStates(),i=this._isFilterable();return r&&i?this.getFilteredData():Object.values(n).filter(o=>o.parentKey===null&&!o._notExist).sort((o,a)=>parseInt(o.ind,10)-parseInt(a.ind,10))}getFilteredData(){const{treeNodeFilterProp:n,filterSorter:r}=this.getProps(),{filteredKeys:i,keyEntities:o,inputValue:a}=this.getStates(),s=[];return[...i].forEach(c=>{const u=o[c];if(!u)return;const d=this.getItemPropPath(c,[]),f=d.map(h=>h[n]),p=this._isOptionDisabled(c,o);s.push({data:u.data,pathData:d,key:c,disabled:p,searchText:f})}),za(r)&&s.sort((c,u)=>r(c.pathData,u.pathData,a)),s}handleListScroll(n,r){const{activeKeys:i,keyEntities:o}=this.getStates(),a=[...i][i.size-1],s=a?fr(o,[a,"data"],null):null;this._adapter.notifyListScroll(n,{panelIndex:r,activeNode:s})}}var dmr=s_,fmr=Hp,pmr="[object Boolean]";function hmr(e){return e===!0||e===!1||fmr(e)&&dmr(e)==pmr}var gmr=hmr;const mmr=Or(gmr),uF={PREFIX:`${ui}-checkbox`,INNER:`${ui}-checkbox-inner`,TEXT:`${ui}-checkbox-text`,INPUT:`${ui}-checkbox-input`,CHECKED:`${ui}-checkbox-checked`,DISABLED:`${ui}-checkbox-disabled`,BUTTON:`${ui}-checkbox-button`,WRAPPER:""},vmr={PREFIX:`${ui}-checkboxGroup`,INNER:`${ui}-checkboxGroup-inner`,TEXT:`${ui}-checkboxGroup-text`,INPUT:`${ui}-checkboxGroup-input`,CHECKED:`${ui}-checkboxGroup-checked`,DISABLED:`${ui}-checkboxGroup-disabled`},fm={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class ymr extends tc{constructor(n){super(Object.assign({},n)),this.clickState=!1,this.handleFocusVisible=r=>{const{target:i}=r;try{if(this.clickState){this.clickState=!1;return}i.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{b0(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:n,extra:r,extraId:i,addonId:o}=this.getProps();n&&!o&&this._adapter.setAddonId(),r&&!i&&this._adapter.setExtraId()}notifyChange(n,r){const i=this._adapter.generateEvent(n,r);this._adapter.notifyChange(i)}handleChange(n){if(this.getProp("disabled"))return;if((n==null?void 0:n.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(n);return}const a=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(a,n):(this.setChecked(a),this.notifyChange(a,n))}handleChangeInGroup(n){const{value:r}=this.getProps(),a=!this._adapter.getGroupValue().includes(r),s=this._adapter.generateEvent(a,n);this._adapter.notifyChange(s),this._adapter.notifyGroupChange(s)}handleEnterPress(n){hg(n)&&this.handleChange(n)}setChecked(n){this._adapter.setNativeControlChecked(n)}destroy(){}}const Hve=V.createContext({});class pG extends m.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:n}=this.props;this.inputEntity.focus({preventScroll:n})}render(){const{indeterminate:n,checked:r,disabled:i,prefixCls:o,name:a,isPureCardType:s,addonId:l,extraId:c,focusInner:u,onInputFocus:d,onInputBlur:f}=this.props,p=o||uF.PREFIX,h=Ce({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!r,[`${p}-inner-pureCardType`]:s},uF.WRAPPER),g=Ce({[`${p}-inner-display`]:!0,[`${p}-focus`]:u,[`${p}-focus-border`]:u&&!r}),v=r?V.createElement(lfr,null):n?V.createElement(afr,null):null,y={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":i,"aria-checked":r,"aria-labelledby":l,"aria-describedby":c||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:uF.INPUT,onChange:vr,checked:r,disabled:i,onFocus:d,onBlur:f};return a&&(y.name=a),V.createElement("span",{className:h},V.createElement("input",Object.assign({},y,{ref:_=>{this.inputEntity=_}})),V.createElement("span",{className:g},v))}}pG.contextType=Hve;pG.propTypes={"aria-describedby":ie.string,"aria-errormessage":ie.string,"aria-invalid":ie.bool,"aria-labelledby":ie.string,"aria-required":ie.bool,checked:ie.bool,disabled:ie.bool,onChange:ie.func,children:ie.node,grouped:ie.bool,value:ie.any,isPureCardType:ie.bool,addonId:ie.string,extraId:ie.string,focusInner:ie.bool,onInputFocus:ie.func,onInputBlur:ie.func,preventScroll:ie.bool};pG.defaultProps={onChange:vr};class G0 extends fl{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:n=>{this.setState({checked:n})},notifyChange:n=>{const{onChange:r}=this.props;r&&r(n)},generateEvent:(n,r)=>{const{props:i}=this;return{target:Object.assign(Object.assign({},i),{checked:n}),stopPropagation:()=>{r.stopPropagation()},preventDefault:()=>{r.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{r.nativeEvent&&typeof r.nativeEvent.stopImmediatePropagation=="function"&&r.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:n=>{this.context.checkboxGroup.onChange(n)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Wj({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Wj({prefix:"extra"})})},setFocusVisible:n=>{this.setState({focusVisible:n})},focusCheckboxEntity:()=>{this.focus()}})}constructor(n){super(n),this.handleChange=i=>this.foundation.handleChange(i),this.handleEnterPress=i=>this.foundation.handleEnterPress(i),this.handleFocusVisible=i=>{this.foundation.handleFocusVisible(i)},this.handleBlur=i=>{this.foundation.handleBlur()};const r=!1;this.state={checked:n.checked||n.defaultChecked||r,addonId:n.addonId,extraId:n.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new ymr(this.adapter)}componentDidUpdate(n){this.props.checked!==n.checked&&(ll(this.props.checked)?this.foundation.setChecked(!1):mmr(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:n,style:r,prefixCls:i,className:o,indeterminate:a,children:s,onMouseEnter:l,onMouseLeave:c,extra:u,value:d,role:f,tabIndex:p,id:h,type:g}=this.props,{checked:v,addonId:y,extraId:_,focusVisible:S}=this.state,b={checked:v,disabled:n},E=this.isInGroup();if(E){if(this.context.checkboxGroup.value){const k=(this.context.checkboxGroup.value||[]).includes(d);b.checked=k}this.context.checkboxGroup.disabled&&(b.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:M,isPureCardType:P}=this.context.checkboxGroup;b.isCardType=M,b.isPureCardType=P,b.name=this.context.checkboxGroup.name}else b.isPureCardType=g===fm.TYPE_PURECARD,b.isCardType=g===fm.TYPE_CARD||b.isPureCardType;const w=i||uF.PREFIX,C=b.isCardType||b.isPureCardType,x=Ce(w,{[`${w}-disabled`]:b.disabled,[`${w}-indeterminate`]:a,[`${w}-checked`]:b.checked,[`${w}-unChecked`]:!b.checked,[`${w}-cardType`]:b.isCardType,[`${w}-cardType_disabled`]:b.disabled&&b.isCardType,[`${w}-cardType_enable`]:!(b.disabled&&b.isCardType),[`${w}-cardType_checked`]:b.isCardType&&b.checked&&!b.disabled,[`${w}-cardType_checked_disabled`]:b.isCardType&&b.checked&&b.disabled,[o]:!!o,[`${w}-focus`]:S&&C}),T=Ce(`${w}-extra`,{[`${w}-cardType_extra_noChildren`]:b.isCardType&&!s});E&&this.context.checkboxGroup.name;const R=this.props["x-semi-children-alias"]||"children",O=()=>!s&&!u?null:V.createElement("div",{className:`${w}-content`},s?V.createElement("span",{id:y,className:`${w}-addon`,"x-semi-prop":R},s):null,u?V.createElement("div",{id:_,className:T,"x-semi-prop":"extra"},u):null);return V.createElement("span",Object.assign({role:f,tabIndex:p,style:r,className:x,id:h,onMouseEnter:l,onMouseLeave:c,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),V.createElement(pG,Object.assign({},this.props,b,{addonId:s&&y,extraId:u&&_,isPureCardType:b.isPureCardType,ref:M=>{this.checkboxEntity=M},focusInner:S&&!C,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),O())}}G0.contextType=Hve;G0.propTypes={"aria-describedby":ie.string,"aria-errormessage":ie.string,"aria-invalid":ie.bool,"aria-labelledby":ie.string,"aria-required":ie.bool,checked:ie.bool,defaultChecked:ie.bool,disabled:ie.bool,indeterminate:ie.bool,onChange:ie.func,value:ie.any,style:ie.object,className:ie.string,prefixCls:ie.string,onMouseEnter:ie.func,onMouseLeave:ie.func,extra:ie.node,index:ie.number,"aria-label":ie.string,tabIndex:ie.number,preventScroll:ie.bool,type:ie.string};G0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:vr,onMouseEnter:vr,onMouseLeave:vr,type:"default"};G0.elementType="Checkbox";class zve extends tc{static get checkboxGroupDefaultAdapter(){return{}}constructor(n){super(Object.assign(Object.assign({},zve.checkboxGroupDefaultAdapter),n))}init(){const{defaultValue:n,value:r}=this.getProps();typeof n<"u"&&!Array.isArray(n)&&b0(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof r<"u"&&!Array.isArray(r)&&b0(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(n){this._adapter.notifyChange(n)}handleChange(n){const r=this.getState("value");let i=[];Array.isArray(r)||(i=[r]),n.target.checked?i=[...r,n.target.value]:i=r.filter((a,s)=>a!==n.target.value),"value"in this.getProps()?this.notifyChange(i):(this._adapter.updateGroupValue(i),this.notifyChange(i))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(n){Array.isArray(n)?this._adapter.updateGroupValue(n):(typeof n>"u"&&this._adapter.updateGroupValue([]),b0(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}class hG extends fl{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:n=>{this.setState({value:n})},notifyChange:n=>{this.props.onChange&&this.props.onChange(n)}})}constructor(n){super(n),this.state={value:n.value||n.defaultValue},this.foundation=new zve(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(n){If(n.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(n){this.foundation.handleChange(n)}render(){const{children:n,options:r,prefixCls:i,direction:o,className:a,id:s,style:l,type:c,disabled:u}=this.props,d=c===fm.TYPE_PURECARD,f=c===fm.TYPE_CARD||d,p=i||vmr.PREFIX,h=Ce({[p]:!0,[`${p}-wrapper`]:!0,[`${p}-${o}`]:o,[`${p}-${o}-cardType`]:o&&f,[`${p}-${o}-pureCardType`]:o&&d},a),g=this.state.value.slice();let v;return r?v=(r||[]).map((y,_)=>typeof y=="string"?V.createElement(G0,{role:"listitem",key:_,disabled:this.props.disabled,value:y,prefixCls:i},y):V.createElement(G0,{role:"listitem",key:_,disabled:y.disabled||this.props.disabled,value:y.value,prefixCls:i,extra:y.extra,className:y.className,style:y.style,onChange:y.onChange},y.label)):n&&(v=V.Children.toArray(n).map((y,_)=>V.cloneElement(y,{key:_,role:"listitem"}))),V.createElement("div",Object.assign({id:s,role:"list","aria-label":this.props["aria-label"],className:h,style:l,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),V.createElement(Hve.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:g,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:f,isPureCardType:d}}},v))}}hG.propTypes={"aria-describedby":ie.string,"aria-errormessage":ie.string,"aria-invalid":ie.bool,"aria-labelledby":ie.string,"aria-required":ie.bool,defaultValue:ie.array,disabled:ie.bool,name:ie.string,options:ie.array,value:ie.array,onChange:ie.func,children:ie.node,prefixCls:ie.string,direction:ie.oneOf(fm.DIRECTION_SET),className:ie.string,type:ie.oneOf([fm.TYPE_DEFAULT,fm.TYPE_CARD,fm.TYPE_PURECARD]),style:ie.object};hG.defaultProps={disabled:!1,onChange:()=>{},type:fm.TYPE_DEFAULT,defaultValue:[],direction:fm.DEFAULT_DIRECTION};class Jj extends G0{}Jj.Group=hG;function _mr(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,RO(e,n)}var n3e=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function bmr(e,n){return!!(e===n||n3e(e)&&n3e(n))}function Smr(e,n){if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(!bmr(e[r],n[r]))return!1;return!0}function uee(e,n){n===void 0&&(n=Smr);var r,i=[],o,a=!1;function s(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return a&&r===this&&n(l,i)||(o=e.apply(this,l),a=!0,r=this,i=l),o}return s}var Emr=typeof performance=="object"&&typeof performance.now=="function",r3e=Emr?function(){return performance.now()}:function(){return Date.now()};function i3e(e){cancelAnimationFrame(e.id)}function Cmr(e,n){var r=r3e();function i(){r3e()-r>=n?e.call(null):o.id=requestAnimationFrame(i)}var o={id:requestAnimationFrame(i)};return o}var dee=-1;function o3e(e){if(e===void 0&&(e=!1),dee===-1||e){var n=document.createElement("div"),r=n.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(n),dee=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return dee}var Wx=null;function a3e(e){if(e===void 0&&(e=!1),Wx===null||e){var n=document.createElement("div"),r=n.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",n.appendChild(i),document.body.appendChild(n),n.scrollLeft>0?Wx="positive-descending":(n.scrollLeft=1,n.scrollLeft===0?Wx="negative":Wx="positive-ascending"),document.body.removeChild(n),Wx}return Wx}var wmr=150,xmr=function(n,r){return n};function Tmr(e){var n,r=e.getItemOffset,i=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return n=function(f){_mr(p,f);function p(g){var v;return v=f.call(this,g)||this,v._instanceProps=c(v.props,Tn(v)),v._outerRef=void 0,v._resetIsScrollingTimeoutId=null,v.state={instance:Tn(v),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof v.props.initialScrollOffset=="number"?v.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},v._callOnItemsRendered=void 0,v._callOnItemsRendered=uee(function(y,_,S,b){return v.props.onItemsRendered({overscanStartIndex:y,overscanStopIndex:_,visibleStartIndex:S,visibleStopIndex:b})}),v._callOnScroll=void 0,v._callOnScroll=uee(function(y,_,S){return v.props.onScroll({scrollDirection:y,scrollOffset:_,scrollUpdateWasRequested:S})}),v._getItemStyle=void 0,v._getItemStyle=function(y){var _=v.props,S=_.direction,b=_.itemSize,E=_.layout,w=v._getItemStyleCache(u&&b,u&&E,u&&S),C;if(w.hasOwnProperty(y))C=w[y];else{var x=r(v.props,y,v._instanceProps),T=o(v.props,y,v._instanceProps),R=S==="horizontal"||E==="horizontal",O=S==="rtl",M=R?x:0;w[y]=C={position:"absolute",left:O?void 0:M,right:O?M:void 0,top:R?0:x,height:R?"100%":T,width:R?T:"100%"}}return C},v._getItemStyleCache=void 0,v._getItemStyleCache=uee(function(y,_,S){return{}}),v._onScrollHorizontal=function(y){var _=y.currentTarget,S=_.clientWidth,b=_.scrollLeft,E=_.scrollWidth;v.setState(function(w){if(w.scrollOffset===b)return null;var C=v.props.direction,x=b;if(C==="rtl")switch(a3e()){case"negative":x=-b;break;case"positive-descending":x=E-S-b;break}return x=Math.max(0,Math.min(x,E-S)),{isScrolling:!0,scrollDirection:w.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._onScrollVertical=function(y){var _=y.currentTarget,S=_.clientHeight,b=_.scrollHeight,E=_.scrollTop;v.setState(function(w){if(w.scrollOffset===E)return null;var C=Math.max(0,Math.min(E,b-S));return{isScrolling:!0,scrollDirection:w.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._outerRefSetter=function(y){var _=v.props.outerRef;v._outerRef=y,typeof _=="function"?_(y):_!=null&&typeof _=="object"&&_.hasOwnProperty("current")&&(_.current=y)},v._resetIsScrollingDebounced=function(){v._resetIsScrollingTimeoutId!==null&&i3e(v._resetIsScrollingTimeoutId),v._resetIsScrollingTimeoutId=Cmr(v._resetIsScrolling,wmr)},v._resetIsScrolling=function(){v._resetIsScrollingTimeoutId=null,v.setState({isScrolling:!1},function(){v._getItemStyleCache(-1,null)})},v}p.getDerivedStateFromProps=function(v,y){return Omr(v,y),d(v),null};var h=p.prototype;return h.scrollTo=function(v){v=Math.max(0,v),this.setState(function(y){return y.scrollOffset===v?null:{scrollDirection:y.scrollOffset<v?"forward":"backward",scrollOffset:v,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(v,y){y===void 0&&(y="auto");var _=this.props,S=_.itemCount,b=_.layout,E=this.state.scrollOffset;v=Math.max(0,Math.min(v,S-1));var w=0;if(this._outerRef){var C=this._outerRef;b==="vertical"?w=C.scrollWidth>C.clientWidth?o3e():0:w=C.scrollHeight>C.clientHeight?o3e():0}this.scrollTo(a(this.props,v,y,E,this._instanceProps,w))},h.componentDidMount=function(){var v=this.props,y=v.direction,_=v.initialScrollOffset,S=v.layout;if(typeof _=="number"&&this._outerRef!=null){var b=this._outerRef;y==="horizontal"||S==="horizontal"?b.scrollLeft=_:b.scrollTop=_}this._callPropsCallbacks()},h.componentDidUpdate=function(){var v=this.props,y=v.direction,_=v.layout,S=this.state,b=S.scrollOffset,E=S.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var w=this._outerRef;if(y==="horizontal"||_==="horizontal")if(y==="rtl")switch(a3e()){case"negative":w.scrollLeft=-b;break;case"positive-ascending":w.scrollLeft=b;break;default:var C=w.clientWidth,x=w.scrollWidth;w.scrollLeft=x-C-b;break}else w.scrollLeft=b;else w.scrollTop=b}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&i3e(this._resetIsScrollingTimeoutId)},h.render=function(){var v=this.props,y=v.children,_=v.className,S=v.direction,b=v.height,E=v.innerRef,w=v.innerElementType,C=v.innerTagName,x=v.itemCount,T=v.itemData,R=v.itemKey,O=R===void 0?xmr:R,M=v.layout,P=v.outerElementType,k=v.outerTagName,$=v.style,U=v.useIsScrolling,z=v.width,D=this.state.isScrolling,B=S==="horizontal"||M==="horizontal",Y=B?this._onScrollHorizontal:this._onScrollVertical,q=this._getRangeToRender(),K=q[0],H=q[1],G=[];if(x>0)for(var Q=K;Q<=H;Q++)G.push(m.createElement(y,{data:T,key:O(Q,T),index:Q,isScrolling:U?D:void 0,style:this._getItemStyle(Q)}));var le=i(this.props,this._instanceProps);return m.createElement(P||k||"div",{className:_,onScroll:Y,ref:this._outerRefSetter,style:ft({position:"relative",height:b,width:z,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:S},$)},m.createElement(w||C||"div",{children:G,ref:E,style:{height:B?"100%":le,pointerEvents:D?"none":void 0,width:B?le:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var v=this.props.itemCount;if(v>0){var y=this._getRangeToRender(),_=y[0],S=y[1],b=y[2],E=y[3];this._callOnItemsRendered(_,S,b,E)}}if(typeof this.props.onScroll=="function"){var w=this.state,C=w.scrollDirection,x=w.scrollOffset,T=w.scrollUpdateWasRequested;this._callOnScroll(C,x,T)}},h._getRangeToRender=function(){var v=this.props,y=v.itemCount,_=v.overscanCount,S=this.state,b=S.isScrolling,E=S.scrollDirection,w=S.scrollOffset;if(y===0)return[0,0,0,0];var C=s(this.props,w,this._instanceProps),x=l(this.props,C,w,this._instanceProps),T=!b||E==="backward"?Math.max(1,_):1,R=!b||E==="forward"?Math.max(1,_):1;return[Math.max(0,C-T),Math.max(0,Math.min(y-1,x+R)),C,x]},p}(m.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var Omr=function(n,r){n.children,n.direction,n.height,n.layout,n.innerTagName,n.outerTagName,n.width,r.instance},fct=Tmr({getItemOffset:function(n,r){var i=n.itemSize;return r*i},getItemSize:function(n,r){var i=n.itemSize;return i},getEstimatedTotalSize:function(n){var r=n.itemCount,i=n.itemSize;return i*r},getOffsetForIndexAndAlignment:function(n,r,i,o,a,s){var l=n.direction,c=n.height,u=n.itemCount,d=n.itemSize,f=n.layout,p=n.width,h=l==="horizontal"||f==="horizontal",g=h?p:c,v=Math.max(0,u*d-g),y=Math.min(v,r*d),_=Math.max(0,r*d-g+d+s);switch(i==="smart"&&(o>=_-g&&o<=y+g?i="auto":i="center"),i){case"start":return y;case"end":return _;case"center":{var S=Math.round(_+(y-_)/2);return S<Math.ceil(g/2)?0:S>v+Math.floor(g/2)?v:S}case"auto":default:return o>=_&&o<=y?o:o<_?_:y}},getStartIndexForOffset:function(n,r){var i=n.itemCount,o=n.itemSize;return Math.max(0,Math.min(i-1,Math.floor(r/o)))},getStopIndexForStartIndex:function(n,r,i){var o=n.direction,a=n.height,s=n.itemCount,l=n.itemSize,c=n.layout,u=n.width,d=o==="horizontal"||c==="horizontal",f=r*l,p=d?u:a,h=Math.ceil((p+i-f)/l);return Math.max(0,Math.min(s-1,r+h-1))},initInstanceProps:function(n){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(n){n.itemSize}});const Rmr=e=>{let{index:n,data:r,style:i}=e;const{visibleOptions:o,renderOption:a}=r,s=o[n];return a(s,n,i)},$o=cct.PREFIX_OPTION;class gG extends m.PureComponent{constructor(){var n;super(...arguments),n=this,this.onClick=(r,i)=>{const{onItemClick:o}=this.props;i.data.disabled||"disabled"in i&&i.disabled||o(r,i)},this.handleItemEnterPress=(r,i)=>{hg(r)&&this.onClick(r,i)},this.onHover=(r,i)=>{const{showNext:o,onItemHover:a}=this.props;i.data.disabled||o===Ua.SHOW_NEXT_BY_HOVER&&a(r,i)},this.onCheckboxChange=(r,i)=>{const{onItemCheckboxClick:o}=this.props;r.stopPropagation(),r.nativeEvent&&typeof r.nativeEvent.stopImmediatePropagation=="function"&&r.nativeEvent.stopImmediatePropagation(),o(i)},this.getItemStatus=r=>{const{activeKeys:i,selectedKeys:o,loadedKeys:a,loadingKeys:s}=this.props,l={active:!1,selected:!1,loading:!1};return i.has(r)&&(l.active=!0),o.has(r)&&(l.selected=!0),s.has(r)&&!a.has(r)&&(l.loading=!0),l},this.renderIcon=function(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const o=a=>a+(i?` ${$o}-icon-left`:"");switch(r){case"child":const{expandIcon:a}=n.props;return a||V.createElement(jlt,{className:o(`${$o}-icon ${$o}-icon-expand`)});case"tick":return V.createElement(Yj,{className:o(`${$o}-icon ${$o}-icon-active`)});case"loading":return V.createElement(cG,{wrapperClassName:o(`${$o}-spin-icon`)});case"empty":return V.createElement("span",{"aria-hidden":!0,className:o(`${$o}-icon ${$o}-icon-empty`)});default:return null}},this.highlight=r=>{const i=[],{keyword:o,separator:a}=this.props;return r.forEach((s,l)=>{typeof s=="string"&&ect(s,o)?s.split(o).forEach((c,u)=>{u>0&&i.push(V.createElement("span",{className:`${$o}-label-highlight`,key:`${u}-${l}`},o)),i.push(c)}):i.push(s),l!==r.length-1&&i.push(a)}),i},this.renderFlattenOptionItem=(r,i,o)=>{var a;const{multiple:s,selectedKeys:l,checkedKeys:c,halfCheckedKeys:u,keyword:d,filterRender:f,virtualize:p}=this.props,{searchText:h,key:g,disabled:v,pathData:y}=r,_=l.has(g),S=Ce($o,{[`${$o}-flatten`]:!f,[`${$o}-disabled`]:v,[`${$o}-select`]:_&&!s}),b=C=>{this.onClick(C,r)},E=C=>this.handleItemEnterPress(C,r),w=C=>this.onCheckboxChange(C,r);if(f){const C={className:S,inputValue:d,disabled:v,data:y,checkStatus:{checked:c.has(r.key),halfChecked:u.has(r.key)},selected:_,onClick:b,onCheck:w},x=f(C),T=p?{key:g,style:Object.assign(Object.assign({},(a=x.props.style)!==null&&a!==void 0?a:{}),o)}:{key:g};return V.cloneElement(x,T)}return V.createElement("li",{role:"menuitem",className:S,style:o,key:g,onClick:b,onKeyPress:E},V.createElement("span",{className:`${$o}-label`},!s&&this.renderIcon("empty"),s&&V.createElement(Jj,{onChange:w,disabled:v,indeterminate:u.has(r.key),checked:c.has(r.key),className:`${$o}-label-checkbox`}),this.highlight(h)))},this.renderFlattenOption=r=>{const{virtualize:i}=this.props;return V.createElement("ul",{className:`${$o}-list`,key:"flatten-list"},i?this.renderVirtualizeList(r):r.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=r=>{var i;const{direction:o}=this.context,{virtualize:a}=this.props;return V.createElement(fct,{height:a.height,itemCount:r.length,itemSize:a.itemSize,itemData:{visibleOptions:r,renderOption:this.renderFlattenOptionItem},width:(i=a.width)!==null&&i!==void 0?i:"100%",style:{direction:o}},Rmr)}}renderItem(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:i,checkedKeys:o,halfCheckedKeys:a}=this.props;let s;const l=r.length;return r.push(V.createElement("ul",{role:"menu",className:`${$o}-list`,key:n[0].key,onScroll:c=>this.props.onListScroll(c,l)},n.map(c=>{const{data:u,key:d,parentKey:f}=c,{children:p,label:h,disabled:g,isLeaf:v}=u,{active:y,selected:_,loading:S}=this.getItemStatus(d),b=!!p&&p.length,E=b||this.props.loadData&&!v;y&&b&&(s=c);const w=Ce($o,{[`${$o}-active`]:y&&!_,[`${$o}-select`]:_&&!i,[`${$o}-disabled`]:g}),C=f?{"aria-owns":`cascaderItem-${f}`}:{};return V.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${d}`,"aria-expanded":y,"aria-haspopup":!!E,"aria-disabled":g},C,{className:w,key:d,onClick:x=>{this.onClick(x,c)},onKeyPress:x=>this.handleItemEnterPress(x,c),onMouseEnter:x=>{this.onHover(x,c)}}),V.createElement("span",{className:`${$o}-label`},_&&!i&&this.renderIcon("tick"),!_&&!i&&this.renderIcon("empty"),i&&V.createElement(Jj,{onChange:x=>this.onCheckboxChange(x,c),disabled:g,indeterminate:a.has(c.key),checked:o.has(c.key),className:`${$o}-label-checkbox`}),V.createElement("span",null,h)),E?this.renderIcon(S?"loading":"child",!0):null)}))),s&&r.concat(this.renderItem(s.children,r)),r}renderEmpty(){const{emptyContent:n}=this.props;return n===null?null:V.createElement(z0,{componentName:"Cascader"},r=>V.createElement("ul",{className:`${$o} ${$o}-empty`,key:"empty-list"},V.createElement("span",{className:`${$o}-label`,"x-semi-prop":"emptyContent"},n||r.emptyText)))}render(){const{data:n,searchable:r}=this.props,{direction:i}=this.context,o=!n||!n.length;let a;const s=Ce({[`${$o}-lists`]:!0,[`${$o}-lists-rtl`]:i==="rtl",[`${$o}-lists-empty`]:o});return o?a=this.renderEmpty():a=r?this.renderFlattenOption(n):this.renderItem(n),V.createElement("div",{className:s},a)}}gG.contextType=Ig;gG.propTypes={data:ie.array,emptyContent:ie.node,searchable:ie.bool,onItemClick:ie.func,onItemHover:ie.func,multiple:ie.bool,showNext:ie.oneOf([Ua.SHOW_NEXT_BY_CLICK,Ua.SHOW_NEXT_BY_HOVER]),checkedKeys:ie.object,halfCheckedKeys:ie.object,onItemCheckboxClick:ie.func,separator:ie.string,keyword:ie.string,virtualize:ie.object,expandIcon:ie.node};gG.defaultProps={empty:!1};const pct={PREFIX:`${ui}-tag`},mN={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var Imr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Pc=pct.PREFIX,hct=mN.TAG_COLOR,gct=mN.TAG_SIZE,mct=mN.TAG_TYPE,Nmr=mN.AVATAR_SHAPE;class gf extends m.Component{constructor(n){super(n),this.state={visible:!0},this.close=this.close.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}static getDerivedStateFromProps(n){return"visible"in n?{visible:n.visible}:null}setVisible(n){"visible"in this.props||this.setState({visible:n})}close(n,r,i){const{onClose:o}=this.props;n.stopPropagation(),n.nativeEvent.stopImmediatePropagation(),o&&o(r,n,i),!n.defaultPrevented&&this.setVisible(!1)}handleKeyDown(n){const{closable:r,onClick:i,onKeyDown:o}=this.props;switch(n.key){case"Backspace":case"Delete":r&&this.close(n,this.props.children,this.props.tagKey),H0(n);break;case"Enter":i(n),H0(n);break;case"Escape":n.target.blur();break}o&&o(n)}renderAvatar(){const{avatarShape:n,avatarSrc:r}=this.props;return V.createElement(FR,{src:r,shape:n})}render(){const n=this.props,{tagKey:r,children:i,size:o,color:a,closable:s,visible:l,onClose:c,onClick:u,className:d,type:f,shape:p,avatarSrc:h,avatarShape:g,tabIndex:v,prefixIcon:y,suffixIcon:_}=n,S=Imr(n,["tagKey","children","size","color","closable","visible","onClose","onClick","className","type","shape","avatarSrc","avatarShape","tabIndex","prefixIcon","suffixIcon"]),{visible:b}=this.state,E=u!==gf.defaultProps.onClick||s,w={role:"button",tabIndex:v||0,onKeyDown:this.handleKeyDown},C=Object.assign(Object.assign({},S),{onClick:u,tabIndex:v,className:Ce(Pc,{[`${Pc}-default`]:o==="default",[`${Pc}-small`]:o==="small",[`${Pc}-large`]:o==="large",[`${Pc}-square`]:p==="square",[`${Pc}-circle`]:p==="circle",[`${Pc}-${f}`]:f,[`${Pc}-${a}-${f}`]:a&&f,[`${Pc}-closable`]:s,[`${Pc}-invisible`]:!b,[`${Pc}-avatar-${g}`]:h},d)}),x=E?Object.assign(Object.assign({},C),w):C,T=s?V.createElement("div",{className:`${Pc}-close`,onClick:M=>this.close(M,i,r)},V.createElement(Tve,{size:"small"})):null,R=Es(i),O=Ce(`${Pc}-content`,`${Pc}-content-${R?"ellipsis":"center"}`);return V.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||R?`${s?"Closable ":""}Tag: ${i}`:""},x),y?V.createElement("div",{className:`${Pc}-prefix-icon`},y):null,h?this.renderAvatar():null,V.createElement("div",{className:O},i),_?V.createElement("div",{className:`${Pc}-suffix-icon`},_):null,T)}}gf.defaultProps={size:gct[0],color:hct[0],closable:!1,type:mct[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};gf.propTypes={children:ie.node,tagKey:ie.oneOfType([ie.string,ie.number]),size:ie.oneOf(gct),color:ie.oneOf(hct),type:ie.oneOf(mct),closable:ie.bool,visible:ie.bool,onClose:ie.func,onClick:ie.func,prefixIcon:ie.node,suffixIcon:ie.node,style:ie.object,className:ie.string,avatarSrc:ie.string,avatarShape:ie.oneOf(Nmr),"aria-label":ie.string};const Mmr={PREFIX:`${ui}-tagInput`},s3e={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},S5=(e,n)=>{let r=[];if(Es(n)||uf(n))r=e.split(n);else if(RWe(n)){const i=n[0];r=e;for(let o=1;o<n.length;o++)r=r.split(n[o]).join(i);r=r.split(i)}else r.push(e);return r};function Pmr(e,n,r){const i=e.slice();return i.splice(r<0?i.length+r:r,0,i.splice(n,1)[0]),i}class Amr extends tc{constructor(n){super(Object.assign({},n)),this.handleInputChange=r=>{const{value:i}=r.target,{entering:o}=this.getStates();o?this._onInputChange(i,r):this._checkInputChangeValid(i)&&this._onInputChange(i,r)},this.handleInputCompositionStart=r=>{const{maxLength:i}=this.getProps();uf(i)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=r=>{const{value:i}=r.target,{maxLength:o,onInputExceed:a,separator:s}=this.getProps();if(!uf(o))return;this._adapter.setEntering(!1);let l=!0;const c=S5(i,s);let u=0;for(;u<c.length;u++)if(c[u].length>o){l=!1,za(a)&&a(i);break}if(l)this._adapter.setInputValue(i);else{const d=c.slice(0,u);u<c.length&&d.push(c[u].slice(0,o)),this._adapter.setInputValue(d.join(s))}},this._checkInputChangeValid=r=>{const{maxLength:i,onInputExceed:o,separator:a}=this._adapter.getProps(),{inputValue:s}=this._adapter.getStates();let l=!0;if(uf(i)){const c=S5(r,a),u=S5(s,a),d=Math.max(c.length,u.length);for(let f=0;f<d;f++)if(!ll(c[f])&&(ll(u[f])||c[f].length>u[f].length)&&c[f].length>i){l=!1,za(o)&&o(r);break}}return l},this.handleKeyDown=r=>{const{inputValue:i,tagsArray:o}=this._adapter.getStates(),a=r.keyCode;a===Gse.ENTER&&(r.preventDefault(),i!==""&&this._handleAddTags(r));const{length:s}=o;if(a===Gse.BACKSPACE&&i===""&&s>0){const l=o.slice(0,s-1),c=o[s-1];this._onRemove(l,c,s-1)}this._adapter.notifyKeyDown(r)}}_handleAddTags(n){const{separator:r,max:i,onExceed:o,allowDuplicates:a}=this._adapter.getProps(),{inputValue:s,tagsArray:l}=this._adapter.getStates();let c=S5(s,r);c=c.filter((d,f)=>!a&&(l.includes(d)||c.indexOf(d)!==f)?!1:Es(d)&&d.trim()!=="");let u=l.concat(c);uf(i)&&u.length>i&&(za(o)&&o(u),u=u.slice(0,i),c=c.slice(0,i-l.length)),c.length>0&&this._onAdd(u,c),this._onInputChange("",n)}handleInputBlur(n){const{addOnBlur:r}=this._adapter.getProps();r===!0&&this._handleAddTags(n),this._adapter.setFocusing(!1),this._adapter.notifyBlur(n)}handleInputFocus(n){this._adapter.setFocusing(!0),this._adapter.notifyFocus(n)}handleClearEnterPress(n){hg(n)&&this.handleClearBtn(n)}handleClearBtn(n){const{inputValue:r,tagsArray:i}=this._adapter.getStates();i.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),r.length>0&&this._onInputChange("",n),n.stopPropagation()}handleTagClose(n){const{tagsArray:r}=this._adapter.getStates(),i=[...r];i.splice(n,1);const o=r[n];this._onRemove(i,o,n)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(n){const{disabled:r}=this.getProps();if(r)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(o=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(n){const{disabled:r}=this._adapter.getProps(),{isFocus:i}=this._adapter.getStates();!r&&!i&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(n){n&&za(n.preventDefault)&&n.preventDefault()}_onRemove(n,r,i){this._isControlledComponent()||this._adapter.setTagsArray(n),this._adapter.notifyTagChange(n),this._adapter.notifyTagRemove(r,i)}_onAdd(n,r){this._isControlledComponent()||this._adapter.setTagsArray(n),this._adapter.notifyTagChange(n),this._adapter.notifyTagAdd(r)}_onInputChange(n,r){this._adapter.setInputValue(n),this._adapter.notifyInputChange(n,r)}handleSortEnd(n){const{oldIndex:r,newIndex:i}=n,{tagsArray:o}=this.getStates(),a=Pmr(o,r,i);this._isControlledComponent()||this._adapter.setTagsArray(a),this._adapter.notifyTagChange(a)}}const Dmr="semi-sortable";function kmr(e){return V.createElement("div",Object.assign({style:{overflow:"auto"}},e))}const Lmr={coordinateGetter:gTn};function $mr(e){let{items:n,onSortEnd:r,adjustScale:i,renderItem:o,transition:a,collisionDetection:s=Wwn,strategy:l=ppe,useDragOverlay:c=!0,dragOverlayCls:u,container:d=kmr,prefix:f=Dmr}=e;const[p,h]=m.useState(null),g=jqe(T6(lpe),T6(Jqe),T6(ape,Lmr)),v=m.useCallback(E=>n.indexOf(E),[n]),y=m.useMemo(()=>p?v(p):-1,[v,p]),_=m.useCallback(E=>{let{active:w}=E;w&&h(w.id)},[]),S=m.useCallback(E=>{let{over:w}=E;if(h(null),w){const C=v(w.id);y!==C&&r({oldIndex:y,newIndex:C})}},[y,v,r]),b=m.useCallback(()=>{h(null)},[]);return V.createElement(oKe,{sensors:g,collisionDetection:s,onDragStart:_,onDragEnd:S,onDragCancel:b,autoScroll:{order:jA.ReversedTreeOrder}},V.createElement(oTn,{items:n,strategy:l},V.createElement(d,null,n.map((E,w)=>V.createElement(Fmr,{key:E,id:E,index:w,renderItem:o,useDragOverlay:c,prefix:f,transition:a})))),c?Us.createPortal(V.createElement(sKe,{adjustScale:i,style:{zIndex:void 0},className:u},p?o({id:p,sortableHandle:E=>E}):null),document.body):null)}function Fmr(e){let{animateLayoutChanges:n,id:r,renderItem:i,prefix:o,transition:a}=e;const{listeners:s,setNodeRef:l,transform:c,transition:u,active:d,isOver:f,attributes:p}=fTn({id:r,animateLayoutChanges:n,transition:a}),h=m.useCallback(y=>()=>V.createElement("span",Object.assign({},s,{style:{lineHeight:0},onMouseDown:_=>{s.onMouseDown(_),_.preventDefault(),_.stopPropagation()}}),V.createElement(y,null)),[s]),g=Ce(`${o}-sortable-item`,{[`${o}-sortable-item-over`]:f,[`${o}-sortable-item-active`]:(d==null?void 0:d.id)===r}),v=m.useMemo(()=>BC(a)?void 0:{transform:Ip.Transform.toString(Object.assign(Object.assign({},c),{scaleX:1,scaleY:1})),transition:u},[a,c,u]);return V.createElement("div",Object.assign({ref:l,style:v,className:g},p),i({id:r,sortableHandle:h}))}var Bmr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Zi=Mmr.PREFIX;function jmr(e){return V.createElement("div",Object.assign({className:`${Zi}-sortable-list`},e))}class mG extends fl{constructor(n){super(n),this.handleInputChange=r=>{this.foundation.handleInputChange(r)},this.handleKeyDown=r=>{this.foundation.handleKeyDown(r)},this.handleInputFocus=r=>{this.foundation.handleInputFocus(r)},this.handleInputBlur=r=>{this.foundation.handleInputBlur(r)},this.handleClearBtn=r=>{this.foundation.handleClearBtn(r)},this.handleClearEnterPress=r=>{this.foundation.handleClearEnterPress(r)},this.handleTagClose=r=>{this.foundation.handleTagClose(r)},this.handleInputMouseLeave=r=>{this.foundation.handleInputMouseLeave()},this.handleClick=r=>{this.foundation.handleClick(r)},this.handleInputMouseEnter=r=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=r=>{this.foundation.handleClickPrefixOrSuffix(r)},this.handlePreventMouseDown=r=>{this.foundation.handlePreventMouseDown(r)},this.getAllTags=()=>{const{tagsArray:r}=this.state;return r.map((i,o)=>this.renderTag(i,o))},this.renderTag=(r,i,o)=>{const{size:a,disabled:s,renderTagItem:l,showContentTooltip:c,draggable:u}=this.props,{active:d}=this.state,f=d&&u,p=Ce(`${Zi}-wrapper-tag`,{[`${Zi}-wrapper-tag-size-${a}`]:a,[`${Zi}-wrapper-tag-icon`]:f}),h=Ce(`${Zi}-wrapper-typo`,{[`${Zi}-wrapper-typo-disabled`]:s}),g=Ce({[`${Zi}-drag-item`]:f,[`${Zi}-wrapper-tag-icon`]:f}),v=o&&o(()=>V.createElement(zlt,{className:`${Zi}-drag-handler`})),y=f?r:`${i}${r}`,_=()=>{!s&&this.handleTagClose(i)};return za(l)?V.createElement("div",{className:g,key:y},f&&o?V.createElement(v,null):null,l(r,i,_)):V.createElement(gf,{className:p,color:"white",size:a==="small"?"small":"large",type:"light",onClose:_,closable:!s,key:y,visible:!0,"aria-label":`${s?"":"Closable "}Tag: ${r}`},f&&o?V.createElement(v,null):null,V.createElement(lG,{className:h,ellipsis:{showTooltip:c,rows:1}},r))},this.renderSortTag=r=>{const{id:i,sortableHandle:o}=r,{tagsArray:a}=this.state,s=a.indexOf(i);return this.renderTag(i,s,o)},this.onSortEnd=r=>{this.foundation.handleSortEnd(r)},this.handleInputCompositionStart=r=>{this.foundation.handleInputCompositionStart(r)},this.handleInputCompositionEnd=r=>{this.foundation.handleInputCompositionEnd(r)},this.foundation=new Amr(this.adapter),this.state={tagsArray:n.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=V.createRef(),this.tagInputRef=V.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(n,r){const{value:i,inputValue:o}=n,{tagsArray:a}=r;let s;return RWe(i)?s=i:"value"in n&&!i?s=[]:s=a,{tagsArray:s,inputValue:Es(o)?o:r.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:n=>{this.setState({inputValue:n})},setTagsArray:n=>{this.setState({tagsArray:n})},setFocusing:n=>{this.setState({focusing:n})},toggleFocusing:n=>{const{preventScroll:r}=this.props,i=this.inputRef&&this.inputRef.current;n?i&&i.focus({preventScroll:r}):i&&i.blur(),this.setState({focusing:n})},setHovering:n=>{this.setState({hovering:n})},setActive:n=>{this.setState({active:n})},setEntering:n=>{this.setState({entering:n})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:n=>{this.props.onBlur(n)},notifyFocus:n=>{this.props.onFocus(n)},notifyInputChange:(n,r)=>{this.props.onInputChange(n,r)},notifyTagChange:n=>{this.props.onChange(n)},notifyTagAdd:n=>{this.props.onAdd(n)},notifyTagRemove:(n,r)=>{this.props.onRemove(n,r)},notifyKeyDown:n=>{this.props.onKeyDown(n)},registerClickOutsideHandler:n=>{const r=i=>{const o=this.tagInputRef&&this.tagInputRef.current,a=i.target,s=i.composedPath&&i.composedPath()||[a];o&&!o.contains(a)&&!s.includes(o)&&n(i)};this.clickOutsideHandler=r,document.addEventListener("click",r,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:n,autoFocus:r,preventScroll:i}=this.props;!n&&r&&(this.inputRef.current.focus({preventScroll:i}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:n,tagsArray:r,inputValue:i}=this.state,{showClear:o,disabled:a,clearIcon:s}=this.props,l=Ce(`${Zi}-clearBtn`,{[`${Zi}-clearBtn-invisible`]:!n||i===""&&r.length===0||a});return o?V.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:l,onClick:c=>this.handleClearBtn(c),onKeyPress:c=>this.handleClearEnterPress(c)},s||V.createElement(oG,null)):null}renderPrefix(){const{prefix:n,insetLabel:r,insetLabelId:i}=this.props,o=n||r;if(BC(o)||ll(o))return null;const a=Ce(`${Zi}-prefix`,{[`${Zi}-inset-label`]:r,[`${Zi}-prefix-text`]:o&&Es(o),[`${Zi}-prefix-icon`]:rf(o)});return V.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:i,"x-semi-prop":"prefix"},o)}renderSuffix(){const{suffix:n}=this.props;if(BC(n)||ll(n))return null;const r=Ce(`${Zi}-suffix`,{[`${Zi}-suffix-text`]:n&&Es(n),[`${Zi}-suffix-icon`]:rf(n)});return V.createElement("div",{className:r,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},n)}renderTags(){const{disabled:n,maxTagCount:r,showRestTagsPopover:i,restTagsPopoverProps:o={},draggable:a,expandRestTagsOnClick:s}=this.props,{tagsArray:l,active:c}=this.state,u=Ce(`${Zi}-wrapper-n`,{[`${Zi}-wrapper-n-disabled`]:n}),d=this.getAllTags();let f=[],p=[...d];(!c||!s)&&r&&r<d.length&&(p=d.slice(0,r),f=d.slice(r));const h=V.createElement("span",{className:u},"+",l.length-r),g=d.map((v,y)=>({item:v,key:l[y]}));return c&&a&&g.length>0?V.createElement($mr,{items:l,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:jmr,prefix:Zi,transition:null,dragOverlayCls:`${Zi}-right-item-drag-item-move`}):V.createElement(V.Fragment,null,p,f.length>0&&(i?V.createElement(Cu,Object.assign({content:f,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},o),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:n,disabled:r}=this.props;this.inputRef.current.focus({preventScroll:n}),r||this.foundation.handleClick()}render(){const n=this.props,{size:r,style:i,className:o,disabled:a,placeholder:s,validateStatus:l,prefix:c,insetLabel:u,suffix:d}=n,f=Bmr(n,["size","style","className","disabled","placeholder","validateStatus","prefix","insetLabel","suffix"]),{focusing:p,hovering:h,tagsArray:g,inputValue:v,active:y}=this.state,_=Ce(Zi,o,{[`${Zi}-focus`]:p||y,[`${Zi}-disabled`]:a,[`${Zi}-hover`]:h&&!a,[`${Zi}-error`]:l==="error",[`${Zi}-warning`]:l==="warning",[`${Zi}-small`]:r==="small",[`${Zi}-large`]:r==="large",[`${Zi}-with-prefix`]:!!c||!!u,[`${Zi}-with-suffix`]:!!d}),S=Ce(`${Zi}-wrapper-input`,`${Zi}-wrapper-input-${r}`),b=Ce(`${Zi}-wrapper`);return V.createElement("div",Object.assign({ref:this.tagInputRef,style:i,className:_,"aria-disabled":a,"aria-label":this.props["aria-label"],"aria-invalid":l==="error",onMouseEnter:E=>{this.handleInputMouseEnter(E)},onMouseLeave:E=>{this.handleInputMouseLeave(E)},onClick:E=>{this.handleClick(E)}},this.getDataAttr(f)),this.renderPrefix(),V.createElement("div",{className:b},this.renderTags(),V.createElement(Uy,{"aria-label":"input value",ref:this.inputRef,className:S,disabled:a,value:v,size:r,placeholder:g.length===0?s:"",onKeyDown:E=>{this.handleKeyDown(E)},onChange:(E,w)=>{this.handleInputChange(w)},onBlur:E=>{this.handleInputBlur(E)},onFocus:E=>{this.handleInputFocus(E)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}mG.propTypes={children:ie.node,clearIcon:ie.node,style:ie.object,className:ie.string,disabled:ie.bool,allowDuplicates:ie.bool,max:ie.number,maxTagCount:ie.number,maxLength:ie.number,showRestTagsPopover:ie.bool,restTagsPopoverProps:ie.object,showContentTooltip:ie.oneOfType([ie.shape({type:ie.string,opts:ie.object}),ie.bool]),defaultValue:ie.array,value:ie.array,inputValue:ie.string,placeholder:ie.string,separator:ie.oneOfType([ie.string,ie.array]),showClear:ie.bool,addOnBlur:ie.bool,draggable:ie.bool,expandRestTagsOnClick:ie.bool,autoFocus:ie.bool,renderTagItem:ie.func,onBlur:ie.func,onFocus:ie.func,onChange:ie.func,onInputChange:ie.func,onExceed:ie.func,onInputExceed:ie.func,onAdd:ie.func,onRemove:ie.func,onKeyDown:ie.func,size:ie.oneOf(s3e.SIZE_SET),validateStatus:ie.oneOf(s3e.STATUS),prefix:ie.oneOfType([ie.string,ie.node]),suffix:ie.oneOfType([ie.string,ie.node]),"aria-label":ie.string,preventScroll:ie.bool};mG.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:vr,onFocus:vr,onChange:vr,onInputChange:vr,onExceed:vr,onInputExceed:vr,onAdd:vr,onRemove:vr,onKeyDown:vr};const Fi=cct.PREFIX,Umr=0;class BR extends fl{constructor(n){super(n),this.search=r=>{this.handleInputChange(r)},this.handleInputChange=r=>{this.foundation.handleInputChange(r)},this.handleTagRemoveInTrigger=r=>{this.foundation.handleTagRemoveInTrigger(r)},this.handleTagClose=(r,i,o)=>{i.preventDefault(),this.foundation.handleTagRemoveByKey(o)},this.renderTagItem=(r,i)=>{const{keyEntities:o,disabledKeys:a}=this.state,{size:s,disabled:l,displayProp:c,displayRender:u,disableStrictly:d}=this.props;if(o[r]){const f=l||o[r].data.disabled||d&&a.has(r),p=Ce(`${Fi}-selection-tag`,{[`${Fi}-selection-tag-disabled`]:f});return za(u)?u(o[r],i):V.createElement(gf,{size:s==="default"?"large":s,key:`tag-${r}-${i}`,color:"white",tagKey:r,className:p,closable:!0,onClose:this.handleTagClose},o[r].data[c])}return null},this.onRemoveInTagInput=r=>{this.foundation.handleTagRemoveByKey(r)},this.handleItemClick=(r,i)=>{this.foundation.handleItemClick(r,i)},this.handleItemHover=(r,i)=>{this.foundation.handleItemHover(r,i)},this.onItemCheckboxClick=r=>{this.foundation.onItemCheckboxClick(r)},this.handleListScroll=(r,i)=>{this.foundation.handleListScroll(r,i)},this.renderContent=()=>{const{inputValue:r,isSearching:i,activeKeys:o,selectedKeys:a,checkedKeys:s,halfCheckedKeys:l,loadedKeys:c,loadingKeys:u}=this.state,{filterTreeNode:d,dropdownClassName:f,dropdownStyle:p,loadData:h,emptyContent:g,separator:v,topSlot:y,bottomSlot:_,showNext:S,multiple:b,filterRender:E,virtualizeInSearch:w,expandIcon:C}=this.props,x=!!d&&i,T=Ce(f,`${Fi}-popover`),R=this.foundation.getRenderData(),M=!R||!R.length?Object.assign(Object.assign({},p),{minWidth:this.state.emptyContentMinWidth}):p;return V.createElement("div",{className:T,role:"listbox",style:M,onKeyDown:this.foundation.handleKeyDown},y,V.createElement(gG,{activeKeys:o,selectedKeys:a,separator:v,loadedKeys:c,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:S,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:x,keyword:r,emptyContent:g,loadData:h,data:R,multiple:b,checkedKeys:s,halfCheckedKeys:l,filterRender:E,virtualize:w,expandIcon:C}),_)},this.renderPlusN=r=>{const{disabled:i,showRestTagsPopover:o,restTagsPopoverProps:a}=this.props,s=Ce(`${Fi}-selection-n`,{[`${Fi}-selection-n-disabled`]:i}),l=V.createElement("span",{className:s},"+",r.length);return o?V.createElement(Cu,Object.assign({content:r,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),l):l},this.renderMultipleTags=()=>{const{autoMergeValue:r,maxTagCount:i,checkRelation:o}=this.props,{checkedKeys:a,resolvedCheckedKeys:s}=this.state,l=this.mergeType===Ua.NONE_MERGE_TYPE||o===Ua.UN_RELATED?a:s,c=[],u=[];return[...l].forEach((d,f)=>{const p=!uf(i)||i>=f+1,h=this.renderTagItem(d,f);p?c.push(h):u.push(h)}),V.createElement(V.Fragment,null,c,!ta(u)&&this.renderPlusN(u))},this.renderDisplayText=()=>{const{displayProp:r,separator:i,displayRender:o}=this.props,{selectedKeys:a}=this.state;let s="";if(a.size){const l=this.foundation.getItemPropPath([...a][0],r);o&&typeof o=="function"?s=o(l):s=l.map((c,u)=>V.createElement(m.Fragment,{key:`${c}-${u}`},u<l.length-1?V.createElement(V.Fragment,null,c,i):c))}return s},this.renderSelectContent=()=>{const{placeholder:r,filterTreeNode:i,multiple:o,searchPosition:a}=this.props,{checkedKeys:s}=this.state;if(!(!!i&&a===Ua.SEARCH_POSITION_TRIGGER)){if(o)return s.size===0?V.createElement("span",{className:`${Fi}-selection-placeholder`},r):this.renderMultipleTags();{const u=this.renderDisplayText(),d=Ce({[`${Fi}-selection-placeholder`]:!u});return V.createElement("span",{className:d},u||r)}}return o?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:r}=this.props,i=Ce({[`${Fi}-suffix`]:!0,[`${Fi}-suffix-text`]:r&&Es(r),[`${Fi}-suffix-icon`]:rf(r)});return V.createElement("div",{className:i,"x-semi-prop":"suffix"},r)},this.renderPrefix=()=>{const{prefix:r,insetLabel:i,insetLabelId:o}=this.props,a=r||i,s=Ce({[`${Fi}-prefix`]:!0,[`${Fi}-inset-label`]:i,[`${Fi}-prefix-text`]:a&&Es(a),[`${Fi}-prefix-icon`]:rf(a)});return V.createElement("div",{className:s,id:o,"x-semi-prop":"prefix,insetLabel"},a)},this.renderCustomTrigger=()=>{var r;const{disabled:i,triggerRender:o,multiple:a}=this.props,{selectedKeys:s,inputValue:l,inputPlaceHolder:c,resolvedCheckedKeys:u,checkedKeys:d,keyEntities:f}=this.state;let p;return a?this.mergeType===Ua.NONE_MERGE_TYPE?(p=new Set,d.forEach(h=>{var g;p.add((g=f[h])===null||g===void 0?void 0:g.pos)})):(p=new Set,u.forEach(h=>{var g;p.add((g=f[h])===null||g===void 0?void 0:g.pos)})):p=(r=f[[...s][0]])===null||r===void 0?void 0:r.pos,V.createElement(kve,{value:p,inputValue:l,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:c,disabled:i,triggerRender:o,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleTagRemoveInTrigger})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=r=>{r&&r.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=r=>{r&&r.stopPropagation(),this.foundation.handleClearEnterPress(r)},this.showClearBtn=()=>{const{showClear:r,disabled:i,multiple:o}=this.props,{selectedKeys:a,isOpen:s,isHovering:l,checkedKeys:c,inputValue:u}=this.state,d=a.size,f=o&&c.size;return r&&(u||d||f)&&!i&&(s||l)},this.renderClearBtn=()=>{const r=Ce(`${Fi}-clearbtn`),{clearIcon:i}=this.props;return this.showClearBtn()?V.createElement("div",{className:r,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},i||V.createElement(oG,null)):null},this.renderArrow=()=>{const{arrowIcon:r}=this.props;return this.showClearBtn()?null:r?V.createElement("div",{className:Ce(`${Fi}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderSelection=()=>{const{disabled:r,multiple:i,filterTreeNode:o,style:a,size:s,className:l,validateStatus:c,prefix:u,suffix:d,insetLabel:f,triggerRender:p,showClear:h,id:g,borderless:v}=this.props,{isOpen:y,isFocus:_,isInput:S,checkedKeys:b}=this.state,E=!!o,w=typeof p=="function",C=w?Ce(l):Ce(Fi,l,{[`${Fi}-borderless`]:v,[`${Fi}-focus`]:_||y&&!S,[`${Fi}-disabled`]:r,[`${Fi}-single`]:!0,[`${Fi}-filterable`]:E,[`${Fi}-error`]:c==="error",[`${Fi}-warning`]:c==="warning",[`${Fi}-small`]:s==="small",[`${Fi}-large`]:s==="large",[`${Fi}-with-prefix`]:u||f,[`${Fi}-with-suffix`]:d}),x=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},T=Ce(`${Fi}-selection`,{[`${Fi}-selection-multiple`]:i&&!ta(b)}),R=w?this.renderCustomTrigger():[V.createElement(m.Fragment,{key:"prefix"},u||f?this.renderPrefix():null),V.createElement(m.Fragment,{key:"selection"},V.createElement("div",{className:T},this.renderSelectContent())),V.createElement(m.Fragment,{key:"suffix"},d?this.renderSuffix():null),V.createElement(m.Fragment,{key:"clearbtn"},this.renderClearBtn()),V.createElement(m.Fragment,{key:"arrow"},this.renderArrow())];return V.createElement("div",Object.assign({className:C,style:a,ref:this.triggerRef,onClick:O=>this.foundation.handleClick(O),onKeyPress:O=>this.foundation.handleSelectionEnterPress(O),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:g,onKeyDown:this.foundation.handleKeyDown},x,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),R)},this.state={emptyContentMinWidth:null,disabledKeys:new Set,isOpen:n.defaultOpen,rePosKey:Umr,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:n.searchPlaceholder||n.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=Wse(n.autoMergeValue,n.leafOnly),this.inputRef=V.createRef(),this.triggerRef=V.createRef(),this.optionsRef=V.createRef(),this.clickOutsideHandler=null,this.foundation=new umr(this.adapter),this.loadingKeysRef=V.createRef(),this.loadedKeysRef=V.createRef()}get adapter(){var n=this;const r={updateInputValue:o=>{this.setState({inputValue:o})},updateInputPlaceHolder:o=>{this.setState({inputPlaceHolder:o})},focusInput:()=>{const{preventScroll:o}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:o})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},i={registerClickOutsideHandler:o=>{const a=s=>{const l=this.optionsRef&&this.optionsRef.current,c=this.triggerRef&&this.triggerRef.current,u=Gl.findDOMNode(l),d=s.target,f=s.composedPath&&s.composedPath()||[d];u&&(!u.contains(d)||!u.contains(d.parentNode))&&c&&!c.contains(d)&&!(f.includes(c)||f.includes(u))&&o(s)};this.clickOutsideHandler=a,document.addEventListener("mousedown",a,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:o}=this.state;o=o+1,this.setState({rePosKey:o})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),r),i),{setEmptyContentMinWidth:o=>{this.setState({emptyContentMinWidth:o})},getTriggerWidth:()=>{const o=this.triggerRef.current;return o&&o.getBoundingClientRect().width},updateStates:o=>{this.setState(Object.assign({},o))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:o=>{this.setState({isOpen:!1},()=>{o&&o()})},updateSelection:o=>this.setState({selectedKeys:o}),notifyChange:o=>{this.props.onChange&&this.props.onChange(o)},notifySelect:o=>{this.props.onSelect&&this.props.onSelect(o)},notifyOnSearch:o=>{this.props.onSearch&&this.props.onSearch(o)},notifyFocus:function(){n.props.onFocus&&n.props.onFocus(...arguments)},notifyBlur:function(){n.props.onBlur&&n.props.onBlur(...arguments)},notifyDropdownVisibleChange:o=>{this.props.onDropdownVisibleChange(o)},toggleHovering:o=>{this.setState({isHovering:o})},notifyLoadData:(o,a)=>{const{loadData:s}=this.props;s&&new Promise(l=>{s(o).then(()=>{setTimeout(()=>{a(),this.setState({loading:!1}),l()})})})},notifyOnLoad:(o,a)=>{const{onLoad:s}=this.props;s&&s(o,a)},notifyListScroll:(o,a)=>{let{panelIndex:s,activeNode:l}=a;this.props.onListScroll(o,{panelIndex:s,activeNode:l})},notifyOnExceed:o=>this.props.onExceed(o),notifyClear:()=>this.props.onClear(),toggleInputShow:(o,a)=>{this.setState({showInput:o},()=>{a()})},updateFocusState:o=>{this.setState({isFocus:o})},updateLoadingKeyRefValue:o=>{this.loadingKeysRef.current=o},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:o=>{this.loadedKeysRef.current=o},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(n,r){const{multiple:i,value:o,defaultValue:a,onChangeWithObject:s,leafOnly:l,autoMergeValue:c,checkRelation:u,searchPlaceholder:d,placeholder:f}=n,{prevProps:p}=r;let h=r.keyEntities||{};const g={},v=d||f;v!==r.inputPlaceHolder&&(g.inputPlaceHolder=v);const y=b=>{const E=ta(p)&&b in n,w=p&&!If(p[b],n[b]);return E||w},_=()=>{const b=!p&&"treeData"in n,E=p&&p.treeData!==n.treeData;return b||E},S=(b,E)=>{let w=[];Array.isArray(b)?w=Array.isArray(b[0])?b:[b]:b!==void 0&&(w=[[b]]);const C=[];return w.forEach(T=>{const R=s&&DWe(T[0])?T.map(O=>O==null?void 0:O.value):T;R.length>0&&C.push(R)}),C.reduce((T,R)=>{const O=Zj(R);return E[O]&&T.push(O),T},[])};if(i){const b=y("treeData")||_(),E=y("value")||ta(p)&&a;if(b||E){b&&(g.treeData=n.treeData,h=dct(n.treeData),g.keyEntities=h);let w=r.checkedKeys;if(E){const C=y("value")?o:a;w=S(C,h)}else b&&"value"in n&&(w=S(o,h));if(jpn(w)&&(w=[...w]),u===Ua.RELATED){const C=_$(w,h),x=new Set(C.checkedKeys),T=new Set(C.halfCheckedKeys);n.disableStrictly&&(g.disabledKeys=lct(h));const R=Wse(c,l)===Ua.LEAF_ONLY_MERGE_TYPE;g.checkedKeys=x,g.halfCheckedKeys=T,g.resolvedCheckedKeys=new Set($h(x,h,R))}else g.checkedKeys=new Set(w);g.prevProps=n}}return g}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(n){if(this.props.multiple)return;let r=!1;If(n.treeData,this.props.treeData)||(r=!0,this.foundation.collectOptions()),n.value!==this.props.value&&!r&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:n,disabled:r,placeholder:i,maxTagCount:o,showRestTagsPopover:a,restTagsPopoverProps:s,checkRelation:l}=this.props,{inputValue:c,checkedKeys:u,keyEntities:d,resolvedCheckedKeys:f,inputPlaceHolder:p}=this.state,h=Ce(`${Fi}-tagInput-wrapper`),g=this.mergeType===Ua.NONE_MERGE_TYPE||l===Ua.UN_RELATED?u:f;return V.createElement(mG,{className:h,ref:this.inputRef,disabled:r,size:n,value:[...g],showRestTagsPopover:a,restTagsPopoverProps:s,maxTagCount:o,renderTagItem:this.renderTagItem,inputValue:c,onInputChange:this.handleInputChange,onRemove:this.onRemoveInTagInput,placeholder:p,expandRestTagsOnClick:!1})}renderInput(){const{size:n,disabled:r}=this.props,i=Ce(`${Fi}-input`),{inputValue:o,inputPlaceHolder:a,showInput:s}=this.state,l={disabled:r,value:o,className:i,onChange:this.handleInputChange},c=Ce({[`${Fi}-search-wrapper`]:!0,[`${Fi}-search-wrapper-${n}`]:n!=="default"}),u=this.renderDisplayText(),d=Ce({[`${Fi}-selection-placeholder`]:!u,[`${Fi}-selection-text-hide`]:s&&o,[`${Fi}-selection-text-inactive`]:s&&!o});return V.createElement("div",{className:c},V.createElement("span",{className:d},u||a),s&&V.createElement(Uy,Object.assign({ref:this.inputRef,size:n},l)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:n,getPopupContainer:r,autoAdjustOverflow:i,stopPropagation:o,mouseLeaveDelay:a,mouseEnterDelay:s,position:l,motion:c,dropdownMargin:u}=this.props,{isOpen:d,rePosKey:f}=this.state,{direction:p}=this.context,h=this.renderContent(),g=this.renderSelection(),v=l??(p==="rtl"?"bottomRight":"bottomLeft");return V.createElement(Cu,{getPopupContainer:r,zIndex:n,motion:c,margin:u,ref:this.optionsRef,content:h,visible:d,trigger:"custom",rePosKey:f,position:v,autoAdjustOverflow:i,stopPropagation:o,mouseLeaveDelay:a,mouseEnterDelay:s,afterClose:()=>this.foundation.updateSearching(!1)},g)}}BR.__SemiComponentName__="Cascader";BR.contextType=Ig;BR.propTypes={"aria-labelledby":ie.string,"aria-invalid":ie.bool,"aria-errormessage":ie.string,"aria-describedby":ie.string,"aria-required":ie.bool,"aria-label":ie.string,arrowIcon:ie.node,borderless:ie.bool,clearIcon:ie.node,changeOnSelect:ie.bool,defaultValue:ie.oneOfType([ie.string,ie.array]),disabled:ie.bool,dropdownClassName:ie.string,dropdownStyle:ie.object,dropdownMargin:ie.oneOfType([ie.number,ie.object]),emptyContent:ie.node,motion:ie.bool,filterTreeNode:ie.oneOfType([ie.func,ie.bool]),filterLeafOnly:ie.bool,placeholder:ie.string,searchPlaceholder:ie.string,size:ie.oneOf(Ua.SIZE_SET),style:ie.object,className:ie.string,treeData:ie.arrayOf(ie.shape({value:ie.oneOfType([ie.string,ie.number]),label:ie.any})),treeNodeFilterProp:ie.string,suffix:ie.node,prefix:ie.node,insetLabel:ie.node,insetLabelId:ie.string,id:ie.string,displayProp:ie.string,displayRender:ie.func,onChange:ie.func,onSearch:ie.func,onSelect:ie.func,onBlur:ie.func,onFocus:ie.func,children:ie.node,getPopupContainer:ie.func,zIndex:ie.number,value:ie.oneOfType([ie.string,ie.number,ie.array]),validateStatus:ie.oneOf(Ua.VALIDATE_STATUS),showNext:ie.oneOf([Ua.SHOW_NEXT_BY_CLICK,Ua.SHOW_NEXT_BY_HOVER]),stopPropagation:ie.oneOfType([ie.bool,ie.string]),showClear:ie.bool,defaultOpen:ie.bool,autoAdjustOverflow:ie.bool,onDropdownVisibleChange:ie.func,triggerRender:ie.func,onListScroll:ie.func,onChangeWithObject:ie.bool,bottomSlot:ie.node,topSlot:ie.node,multiple:ie.bool,autoMergeValue:ie.bool,maxTagCount:ie.number,showRestTagsPopover:ie.bool,restTagsPopoverProps:ie.object,max:ie.number,separator:ie.string,onExceed:ie.func,onClear:ie.func,loadData:ie.func,onLoad:ie.func,loadedKeys:ie.array,disableStrictly:ie.bool,leafOnly:ie.bool,enableLeafClick:ie.bool,preventScroll:ie.bool,position:ie.string,searchPosition:ie.string};BR.defaultProps=T_(BR.__SemiComponentName__,{borderless:!1,leafOnly:!1,arrowIcon:V.createElement(xve,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:V0.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:Ua.SHOW_NEXT_BY_CLICK,onExceed:vr,onClear:vr,onDropdownVisibleChange:vr,onListScroll:vr,enableLeafClick:!1,"aria-label":"Cascader",searchPosition:Ua.SEARCH_POSITION_TRIGGER,checkRelation:Ua.RELATED});class Hmr extends tc{constructor(n){super(Object.assign({},n)),this.updateDOMInRenderTree=r=>{this._adapter.setDOMInRenderTree(r)},this.updateDOMHeight=r=>{this._adapter.setDOMHeight(r)},this.updateVisible=r=>{this._adapter.setVisible(r)},this.updateIsTransitioning=r=>{this._adapter.setIsTransitioning(r)}}}const l3e={PREFIX:`${ui}-collapsible`};class W0 extends fl{constructor(n){super(n),this.domRef=V.createRef(),this.hasBeenRendered=!1,this.handleResize=r=>{const i=r[0];if(i){const o=W0.getEntryInfo(i);this.foundation.updateDOMHeight(o.height),this.foundation.updateDOMInRenderTree(o.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new Hmr(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:n=>{this.state.domInRenderTree!==n&&this.setState({domInRenderTree:n})},setDOMHeight:n=>{this.state.domHeight!==n&&this.setState({domHeight:n})},setVisible:n=>{this.state.visible!==n&&this.setState({visible:n})},setIsTransitioning:n=>{this.state.isTransitioning!==n&&this.setState({isTransitioning:n})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const n=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(n),n&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(n,r,i){const o=Object.keys(Xj(this.props,["reCalcKey","isOpen"])).filter(s=>!If(this.props[s],n[s])),a=Object.keys(Xj(this.state,["domInRenderTree"])).filter(s=>!If(this.state[s],r[s]));o.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),o.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&n.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const n=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),r=Ce(`${l3e.PREFIX}-wrapper`,{[`${l3e.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className),i=this.props.keepDOM&&(this.props.lazyRender?this.hasBeenRendered:!0)||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen;return i&&!this.hasBeenRendered&&(this.hasBeenRendered=!0),V.createElement("div",Object.assign({className:r,style:n,onTransitionEnd:()=>{var o,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(o=this.props).onMotionEnd)===null||a===void 0||a.call(o)}},this.getDataAttr(this.props)),V.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},i&&this.props.children))}}W0.__SemiComponentName__="Collapsible";W0.defaultProps=T_(W0.__SemiComponentName__,{isOpen:!1,duration:250,motion:!0,keepDOM:!1,lazyRender:!1,collapseHeight:0,fade:!1});W0.getEntryInfo=e=>{let n;e.borderBoxSize?n=!(e.borderBoxSize[0].blockSize===0&&e.borderBoxSize[0].inlineSize===0):n=!(e.contentRect.height===0&&e.contentRect.width===0);let r=0;return e.borderBoxSize?r=Math.ceil(e.borderBoxSize[0].blockSize):r=e.target.clientHeight,{isShown:n,height:r}};W0.propTypes={motion:ie.bool,children:ie.node,isOpen:ie.bool,duration:ie.number,keepDOM:ie.bool,collapseHeight:ie.number,style:ie.object,className:ie.string,reCalcKey:ie.oneOfType([ie.string,ie.number])};var zmr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};Ig.Consumer;class Vve extends V.Component{constructor(n){super(n)}renderChildren(){const{direction:n,children:r}=this.props;return n==="rtl"?V.createElement("div",{className:`${ui}-rtl`},r):r}render(){const n=this.props,{children:r,direction:i}=n,o=zmr(n,["children","direction"]);return V.createElement(Ig.Provider,{value:Object.assign({direction:i},o)},this.renderChildren())}}Vve.propTypes={locale:ie.object,timeZone:ie.oneOfType([ie.string,ie.number]),getPopupContainer:ie.func,direction:ie.oneOf(["ltr","rtl"])};Vve.defaultProps={locale:Vse,direction:"ltr"};const Vmr={PREFIX:`${ui}`};var Gmr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const xE=Vmr.PREFIX,vct=e=>{const{layout:n="horizontal",dashed:r,align:i="center",className:o,margin:a,style:s,children:l}=e,c=Gmr(e,["layout","dashed","align","className","margin","style","children"]),u=Ce(`${xE}-divider`,o,{[`${xE}-divider-horizontal`]:n==="horizontal",[`${xE}-divider-vertical`]:n==="vertical",[`${xE}-divider-dashed`]:!!r,[`${xE}-divider-with-text`]:l&&n==="horizontal",[`${xE}-divider-with-text-${i}`]:l&&n==="horizontal"});let d={};return a!==void 0&&(n==="vertical"?d={marginLeft:a,marginRight:a}:n==="horizontal"&&(d={marginTop:a,marginBottom:a})),V.createElement("div",Object.assign({},c,{className:u,style:Object.assign(Object.assign({},d),s)}),l&&n==="horizontal"?typeof l=="string"?V.createElement("span",{className:`${xE}-divider_inner-text`,"x-semi-prop":"children"},l):l:null)},b$={PREFIX:`${ui}-dropdown`,SELECTED:`${ui}-dropdown-item-selected`,DISABLED:`${ui}-dropdown-item-disabled`},vG={POSITION_SET:tO.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},c3e={SPACING:4,NESTED_SPACING:2};class Wmr extends tc{handleVisibleChange(n){this._adapter.setPopVisible(n),this._adapter.notifyVisibleChange(n);const{trigger:r}=this.getProps();if(n&&r==="click"){const i=this._adapter.getPopupId();this.setFocusToFirstMenuItem(i)}}getMenuItemNodes(n){const r=document.getElementById(n);return r?Array.from(r.getElementsByTagName("li")).filter(i=>i.ariaDisabled==="false"):null}setFocusToFirstMenuItem(n){const r=this.getMenuItemNodes(n);r&&Rur(r)}setFocusToLastMenuItem(n){const r=this.getMenuItemNodes(n);r&&Iur(r)}handleKeyDown(n){var r,i;const o=(i=(r=n.target)===null||r===void 0?void 0:r.attributes["data-popupid"])===null||i===void 0?void 0:i.value,{visible:a}=this._adapter.getStates();switch(n.key){case" ":case"Enter":n.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(o),a&&H0(n);break;case"ArrowUp":this.setFocusToLastMenuItem(o),a&&H0(n);break}}}class Ymr extends tc{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(n){this._adapter.getContext("trigger")==="custom"&&(n&&Dur(document.querySelectorAll("[data-popupid]"),n.id)).focus()}setFocusByFirstCharacter(n,r){const i=Pur(this.menuItemNodes,n,this.firstChars,r);i>=0&&m$(this.menuItemNodes,this.menuItemNodes[i])}onMenuKeydown(n){const r=Aur(n.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...n.target.parentNode.getElementsByTagName("li")].filter(o=>o.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(o=>{var a;this.firstChars.push((a=o.textContent.trim()[0])===null||a===void 0?void 0:a.toLowerCase())});const i=this.menuItemNodes.find(o=>o.tabIndex===0);switch(n.key){case" ":case"Enter":n.target.click();break;case"Escape":this.handleEscape(r);break;case"ArrowUp":Nur(this.menuItemNodes,i),H0(n);break;case"ArrowDown":Mur(this.menuItemNodes,i),H0(n);break;default:Our(n.key)&&this.setFocusByFirstCharacter(i,n.key);break}}}const jR=V.createContext({level:0});var qmr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Kmr=b$.PREFIX;class Gve extends fl{constructor(n){super(n),this.foundation=new Ymr(this.adapter)}get adapter(){return Object.assign({},super.adapter)}render(){const n=this.props,{children:r,className:i,style:o}=n,a=qmr(n,["children","className","style"]);return V.createElement("ul",Object.assign({role:"menu","aria-orientation":"vertical"},a,{className:Ce(`${Kmr}-menu`,i),style:o,onKeyDown:s=>this.foundation.onMenuKeydown(s)}),r)}}Gve.propTypes={children:ie.node,className:ie.string,style:ie.object};Gve.contextType=jR;const TE=b$.PREFIX;class S$ extends fl{render(){const{children:n,disabled:r,className:i,forwardRef:o,style:a,type:s,active:l,icon:c,onKeyDown:u,showTick:d,hover:f}=this.props,{showTick:p}=this.context,h=p??d,g=Ce(i,{[`${TE}-item`]:!0,[`${TE}-item-disabled`]:r,[`${TE}-item-hover`]:f,[`${TE}-item-withTick`]:h,[`${TE}-item-${s}`]:s,[`${TE}-item-active`]:l}),v={};r||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(S=>{this.context.level!==1&&S==="onClick"?v.onMouseDown=E=>{var w,C;E.button===0&&((C=(w=this.props)[S])===null||C===void 0||C.call(w,E))}:v[S]=this.props[S]});let y=null;switch(!0){case(h&&l):y=V.createElement(Yj,null);break;case(h&&!l):y=V.createElement(Yj,{style:{color:"transparent"}});break;default:y=null;break}let _=null;return c&&(_=V.createElement("div",{className:`${TE}-item-icon`},c)),V.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":r},v,{onKeyDown:u,ref:S=>o(S),className:g,style:a},this.getDataAttr(this.props)),y,_,n)}}S$.propTypes={children:ie.oneOfType([ie.string,ie.node]),name:ie.string,disabled:ie.bool,selected:ie.bool,onClick:ie.func,onMouseEnter:ie.func,onMouseLeave:ie.func,onContextMenu:ie.func,className:ie.string,style:ie.object,forwardRef:ie.func,type:ie.oneOf(vG.ITEM_TYPE),active:ie.bool,icon:ie.node};S$.contextType=jR;S$.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:vr,onMouseLeave:vr,forwardRef:vr};S$.elementType="Dropdown.Item";const Xmr=b$.PREFIX,yct=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:n,className:r}=e;return V.createElement("div",{className:Ce(`${Xmr}-divider`,r),style:n})};yct.propTypes={style:ie.object,className:ie.string};const u3e=b$.PREFIX;class Wve extends m.PureComponent{render(){const{className:n,style:r,children:i}=this.props,{showTick:o}=this.context,a=Ce({[`${u3e}-title`]:!0,[`${u3e}-title-withTick`]:o},n);return V.createElement("div",{className:a,style:r},i)}}Wve.propTypes={children:ie.node,className:ie.string,style:ie.object};Wve.contextType=jR;var fee=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Qmr=vG.POSITION_SET,Zmr=vG.TRIGGER_SET;class Do extends fl{constructor(n){super(n),this.handleVisibleChange=r=>this.foundation.handleVisibleChange(r),this.state={popVisible:n.visible},this.foundation=new Wmr(this.adapter),this.tooltipRef=V.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:n=>this.setState({popVisible:n}),notifyVisibleChange:n=>{var r,i;return(i=(r=this.props).onVisibleChange)===null||i===void 0?void 0:i.call(r,n)},getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:n,menu:r,contentClassName:i,style:o,showTick:a,prefixCls:s,trigger:l}=this.props,c=Ce(s,i),{level:u=0}=this.context,d={showTick:a,level:u+1,trigger:l};let f=null;return V.isValidElement(n)?f=n:Array.isArray(r)&&(f=this.renderMenu()),V.createElement(jR.Provider,{value:d},V.createElement("div",{className:c,style:o},V.createElement("div",{className:`${s}-content`,"x-semi-prop":"render"},f)))}renderMenu(){const{menu:n}=this.props,r=n.map((i,o)=>{switch(i.node){case"title":{const{name:a,node:s}=i,l=fee(i,["name","node"]);return V.createElement(Do.Title,Object.assign({},l,{key:s+a+o}),a)}case"item":{const{node:a,name:s}=i,l=fee(i,["node","name"]);return V.createElement(Do.Item,Object.assign({},l,{key:a+s+o}),s)}case"divider":return V.createElement(Do.Divider,{key:i.node+o});default:return null}});return V.createElement(Do.Menu,null,r)}renderPopCard(){const{render:n,contentClassName:r,style:i,showTick:o,prefixCls:a}=this.props,s=Ce(a,r),{level:l=0}=this.context,c={showTick:o,level:l+1};return V.createElement(jR.Provider,{value:c},V.createElement("div",{className:s,style:i},V.createElement("div",{className:`${a}-content`},n)))}render(){const n=this.props,{children:r,position:i,trigger:o,onVisibleChange:a,zIndex:s,className:l,motion:c,margin:u,style:d,prefixCls:f}=n,p=fee(n,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:g}=this.context,{popVisible:v}=this.state,y=this.renderContent();return g>0?h=typeof h=="number"?h:c3e.NESTED_SPACING:(h===null||typeof h>"u")&&(h=c3e.SPACING),V.createElement(qo,Object.assign({zIndex:s,motion:c,margin:u,content:y,className:l,prefixCls:f,spacing:h,position:i,trigger:o,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},p),V.isValidElement(r)?V.cloneElement(r,{className:Ce(fr(r,"props.className"),{[`${f}-showing`]:v}),"aria-haspopup":!0,"aria-expanded":v,onKeyDown:_=>{this.foundation.handleKeyDown(_);const S=fr(r,"props.onKeyDown");S&&S(_)}}):r)}}Do.Menu=Gve;Do.Item=S$;Do.Divider=yct;Do.Title=Wve;Do.contextType=jR;Do.propTypes={children:ie.node,contentClassName:ie.oneOfType([ie.string,ie.array]),className:ie.string,getPopupContainer:ie.func,margin:ie.oneOfType([ie.number,ie.object]),mouseEnterDelay:ie.number,mouseLeaveDelay:ie.number,menu:ie.array,motion:ie.oneOfType([ie.bool,ie.func,ie.object]),onVisibleChange:ie.func,prefixCls:ie.string,position:ie.oneOf(Qmr),rePosKey:ie.oneOfType([ie.string,ie.number]),render:ie.node,spacing:ie.oneOfType([ie.number,ie.object]),showTick:ie.bool,style:ie.object,trigger:ie.oneOf(Zmr),visible:ie.bool,zIndex:ie.number};Do.__SemiComponentName__="Dropdown";Do.defaultProps=T_(Do.__SemiComponentName__,{onVisibleChange:vr,prefixCls:b$.PREFIX,zIndex:Sb.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:vG.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:vr});const GM=pct.PREFIX,_ct=mN.TAG_SIZE,Jmr=mN.AVATAR_SHAPE;class Yve extends m.PureComponent{renderNTag(n,r){const{size:i,showPopover:o,popoverProps:a,onPlusNMouseEnter:s}=this.props;let l=V.createElement(gf,{closable:!1,size:i,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:s},"+",n);return o&&(l=V.createElement(Cu,Object.assign({showArrow:!0,content:r,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${GM}-rest-group-popover`},a,{key:"_+n_Popover"}),l)),l}renderMergeTags(n){const{maxTagCount:r,tagList:i,restCount:o}=this.props,a=o||i.length-r;let s=n;const l=n.slice(0,r),c=n.slice(r);let u=null;return a>0&&(u=this.renderNTag(a,c),l.push(u),s=l),s}renderAllTags(){const{tagList:n,size:r,mode:i,avatarShape:o,onTagClose:a}=this.props;return n.map(l=>{if(i==="custom")return l;const c=Object.assign({},l);return c.size||(c.size=r),c.avatarShape||(c.avatarShape=o),c.tagKey||(typeof c.children=="string"||typeof c.children=="number"?c.tagKey=c.children:c.tagKey=Math.random()),V.createElement(gf,Object.assign({},c,{key:c.tagKey,onClose:(u,d,f)=>{c.onClose&&c.onClose(u,d,f),a&&a(u,d,f)}}))})}render(){const{style:n,className:r,maxTagCount:i,size:o}=this.props,a=Ce({[`${GM}-group`]:!0,[`${GM}-group-max`]:i,[`${GM}-group-small`]:o==="small",[`${GM}-group-large`]:o==="large"},r),s=this.renderAllTags(),l=typeof i>"u"?s:this.renderMergeTags(s);return V.createElement("div",{style:n,className:a},l)}}Yve.defaultProps={style:{},className:"",size:_ct[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};Yve.propTypes={children:ie.node,style:ie.object,className:ie.string,maxTagCount:ie.number,restCount:ie.number,tagList:ie.array,size:ie.oneOf(_ct),mode:ie.string,onTagClose:ie.func,showPopover:ie.bool,popoverProps:ie.object,avatarShape:ie.oneOf(Jmr)};const evr=e=>{let{index:n,data:r,style:i}=e;const{visibleOptions:o,renderOption:a}=r,s=o[n];return a(s,n,i)},bct={PREFIX:`${ui}-sidesheet`,DIALOG:`${ui}-modal`},Yse={PLACEMENT:["top","right","bottom","left"],SIZE:["small","medium","large"],WIDTH:{small:448,medium:684,large:920},HEIGHT:448};var d3e=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};let tvr=0;const qf=bct.PREFIX;class qve extends V.PureComponent{constructor(){super(...arguments),this.onMaskClick=n=>{n.target===n.currentTarget&&this.close(n)},this.close=n=>{const{onClose:r}=this.props;r&&r(n)}}componentDidMount(){this.sideSheetId=`sidesheet-${tvr++}`}componentWillUnmount(){clearTimeout(this.timeoutId)}getMaskElement(){var n;const{mask:r,maskStyle:i,maskClosable:o}=this.props;return r?V.createElement("div",Object.assign({"aria-hidden":!0,key:"mask",className:Ce(`${qf}-mask`,(n=this.props.maskClassName)!==null&&n!==void 0?n:""),style:i,onClick:o?this.onMaskClick:null},this.props.maskExtraProps)):null}renderHeader(){const{title:n,closable:r,headerStyle:i,closeIcon:o}=this.props;let a,s;if(n&&(a=V.createElement("div",{className:`${qf}-title`,"x-semi-prop":"title"},this.props.title)),r){const l=o||V.createElement(Tve,null);s=V.createElement(ul,{className:`${qf}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:l,theme:"borderless",size:"small"})}return V.createElement("div",{className:`${qf}-header`,role:"heading","aria-level":1,style:Object.assign({},i)},a,s)}getDialogElement(){var n;const r=d3e(this.props,[]),i={};r.width&&(i.width=r.width,r.mask||(i.width="100%")),r.height&&(i.height=r.height);const o=this.renderHeader();return V.createElement("div",Object.assign({key:"dialog-element",role:"dialog",tabIndex:-1,className:Ce(`${qf}-inner`,`${qf}-inner-wrap`,(n=this.props.dialogClassName)!==null&&n!==void 0?n:"",`${qf}-size-${r.size}`),style:Object.assign(Object.assign({},r.style),i)},this.props.wrapperExtraProps),V.createElement("div",{className:`${qf}-content`},o,V.createElement("div",{className:`${qf}-body`,style:r.bodyStyle,"x-semi-prop":"children"},r.children),r.footer?V.createElement("div",{className:`${qf}-footer`,"x-semi-prop":"footer"},r.footer):null))}render(){const n=this.props,{mask:r,className:i,width:o,onClose:a,maskStyle:s,maskClosable:l,maskClassName:c,title:u,closable:d,headerStyle:f,height:p,style:h,size:g,bodyStyle:v,dialogClassName:y,children:_,footer:S,maskExtraProps:b,wrapperExtraProps:E}=n,w=d3e(n,["mask","className","width","onClose","maskStyle","maskClosable","maskClassName","title","closable","headerStyle","height","style","size","bodyStyle","dialogClassName","children","footer","maskExtraProps","wrapperExtraProps"]),C=Ce(i,{[`${qf}-fixed`]:!r,[`${qf}-size-${this.props.size}`]:!r}),x={};!r&&o&&(x.width=o);const T=Mlt(w);return V.createElement("div",Object.assign({className:C,style:x},T),this.getMaskElement(),this.getDialogElement())}}qve.propTypes={onClose:ie.func,closeIcon:ie.node};qve.defaultProps={onClose:vr};class Kve extends tc{constructor(n){super(Object.assign(Object.assign({},Kve.defaultAdapter),n)),this.toggleDisplayNone=r=>{this._adapter.toggleDisplayNone(r)}}get defaultAdapter(){return{handleCancel:vr,beforeShow:vr,afterHide:vr}}destroy(){this.afterHide()}handleCancel(n){this._adapter.notifyCancel(n)}beforeShow(){this.getProp("disableScroll")&&this._adapter.disabledBodyScroll(),this._adapter.setOnKeyDownListener()}afterHide(){this.getProp("disableScroll")&&this._adapter.enabledBodyScroll(),this._adapter.removeKeyDownListener()}handleKeyDown(n){const{closeOnEsc:r}=this.getProps();if(r&&n.keyCode===Gse.ESC){n.stopPropagation(),this.handleCancel(n);return}}onVisibleChange(n){this._adapter.notifyVisibleChange(n)}}var nvr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Hg=bct.PREFIX,rvr=Yse.HEIGHT;class UR extends fl{constructor(n){super(n),this.handleCancel=r=>{this.foundation.handleCancel(r)},this.handleKeyDown=r=>{this.foundation.handleKeyDown(r)},this.updateState=()=>{this.foundation.toggleDisplayNone(!this.props.visible)},this.state={displayNone:!this.props.visible},this.foundation=new Kve(this.adapter),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{disabledBodyScroll:()=>{const{getPopupContainer:n}=this.props;this.bodyOverflow=document.body.style.overflow||"",!n&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:n}=this.props;!n&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:n=>{this.props.onCancel&&this.props.onCancel(n)},notifyVisibleChange:n=>{this.props.afterVisibleChange(n)},setOnKeyDownListener:()=>{window&&window.addEventListener("keydown",this.handleKeyDown)},removeKeyDownListener:()=>{window&&window.removeEventListener("keydown",this.handleKeyDown)},toggleDisplayNone:n=>{n!==this.state.displayNone&&this.setState({displayNone:n})}})}static getDerivedStateFromProps(n,r){const i={};return n.visible&&r.displayNone&&(i.displayNone=!1),!n.visible&&!n.motion&&!r.displayNone&&(i.displayNone=!0),i}componentDidMount(){this.scrollBarWidth=tdr(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(n,r,i){!n.visible&&this.props.visible&&this.foundation.beforeShow(),n.visible&&!this.props.visible&&this.foundation.afterHide(),r.displayNone!==this.state.displayNone&&this.foundation.onVisibleChange(!this.state.displayNone)}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}renderContent(){const n=this.props,{placement:r,className:i,children:o,width:a,height:s,motion:l,visible:c,style:u,maskStyle:d,size:f,zIndex:p,getPopupContainer:h,keepDOM:g}=n,v=nvr(n,["placement","className","children","width","height","motion","visible","style","maskStyle","size","zIndex","getPopupContainer","keepDOM"]);let y={zIndex:p};h&&(y={zIndex:p,position:"static"});const{direction:_}=this.context,S=r==="left"||r==="right",b=r==="top"||r==="bottom",E=b?s||rvr:"100%",w=Ce(Hg,i,{[`${Hg}-${r}`]:r,[`${Hg}-popup`]:h,[`${Hg}-horizontal`]:b,[`${Hg}-rtl`]:_==="rtl",[`${Hg}-hidden`]:g&&this.state.displayNone}),C=Object.assign(Object.assign(Object.assign({},S?a?{width:a}:{}:{width:"100%"}),v),{visible:c,motion:!1,size:f,className:w,height:E,onClose:this.handleCancel}),x=this.props.visible||this.props.keepDOM||this.props.motion&&!this.state.displayNone;return V.createElement(RD,{motion:this.props.motion,animationState:c?"enter":"leave",startClassName:c?`${Hg}-animation-mask_show`:`${Hg}-animation-mask_hide`,onAnimationEnd:this.updateState},T=>{let{animationClassName:R,animationEventsNeedBind:O}=T;return V.createElement(RD,{motion:this.props.motion,animationState:c?"enter":"leave",startClassName:c?`${Hg}-animation-content_show_${this.props.placement}`:`${Hg}-animation-content_hide_${this.props.placement}`,onAnimationEnd:this.updateState},M=>{let{animationClassName:P,animationStyle:k,animationEventsNeedBind:$}=M;return x?V.createElement(v$,{getPopupContainer:h,style:y},V.createElement(qve,Object.assign({},C,{maskExtraProps:O,wrapperExtraProps:$,dialogClassName:P,maskClassName:R,maskStyle:Object.assign({},d),style:Object.assign(Object.assign({},k),u)}),o)):V.createElement(V.Fragment,null)})})}render(){return this.props,this.renderContent()}}UR.contextType=Ig;UR.propTypes={bodyStyle:ie.object,headerStyle:ie.object,children:ie.node,className:ie.string,closable:ie.bool,disableScroll:ie.bool,getPopupContainer:ie.func,height:ie.oneOfType([ie.number,ie.string]),mask:ie.bool,maskClosable:ie.bool,maskStyle:ie.object,motion:ie.oneOfType([ie.bool,ie.object,ie.func]),onCancel:ie.func,placement:ie.oneOf(Yse.PLACEMENT),size:ie.oneOf(Yse.SIZE),style:ie.object,title:ie.node,visible:ie.bool,width:ie.oneOfType([ie.number,ie.string]),zIndex:ie.number,afterVisibleChange:ie.func,closeOnEsc:ie.bool,footer:ie.node,keepDOM:ie.bool,"aria-label":ie.string};UR.__SemiComponentName__="SideSheet";UR.defaultProps=T_(UR.__SemiComponentName__,{visible:!1,motion:!0,mask:!0,placement:"right",closable:!0,footer:null,zIndex:1e3,maskClosable:!0,size:"small",disableScroll:!0,closeOnEsc:!1,afterVisibleChange:vr,keepDOM:!1});class Xve extends tc{constructor(n){super(Object.assign(Object.assign({},Xve.defaultAdapter),n)),this.handleMouseInSideChange=r=>{this._adapter.handleMouseInSideChange(r)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(n){return this._adapter.getState("list").map(i=>{let{id:o}=i;return o}).includes(n)}addToast(n){const r=this._adapter.getState("list");r.push(n),this._adapter.updateToast(r,[],[])}updateToast(n,r){let i=this._adapter.getState("list");i=i.map(a=>a.id===n?Object.assign(Object.assign({},a),r):a);const o=i.filter(a=>a.id===n);this._adapter.updateToast(i,[],o)}removeToast(n){let r=this._adapter.getState("list");const i=[];r=r.filter(o=>o.id===n?(i.push(o),!1):!0),this._adapter.updateToast(r,i,[])}destroyAll(){const n=this._adapter.getState("list");n.length>0&&this._adapter.updateToast([],n,[])}}const pee=`${ui}-toast`,Jx={PREFIX:pee,WRAPPER:`${pee}-wrapper`,LIST:`${pee}-list`},OP={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},ivr={duration:3};class Qve extends tc{constructor(n){super(Object.assign(Object.assign({},Qve.defaultAdapter),n)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const n=this._adapter.getProp("duration");n&&uf(n)&&(this._timer=setTimeout(()=>{this.close()},n*1e3))}close(n){n&&n.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const uh=Jx.PREFIX;let jC=class extends fl{constructor(n){super(n),this.toastEle=V.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new Qve(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:n=>{this.props.close(n)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(n){this.foundation.close(n)}renderIcon(){const{type:n,icon:r}=this.props,o={warning:V.createElement(ifr,null),success:V.createElement(qfr,null),info:V.createElement(Vlt,null),error:V.createElement(nfr,null)}[n],a="large",s=Ce(`${uh}-icon`,`${uh}-icon-${n}`);return r?rf(r)?V.cloneElement(r,{size:a,className:`${uh}-icon`}):r:n&&o?V.cloneElement(o,{size:a,className:s}):null}render(){const{content:n,type:r,theme:i,showClose:o,textMaxWidth:a,className:s,style:l}=this.props,c=this.props.direction||this.context.direction,u=Ce(uh,s,{[`${uh}-${r}`]:!0,[`${uh}-${i}`]:i==="light",[`${uh}-rtl`]:c==="rtl"}),d={};d.maxWidth=a;const f="borderless",p="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,g=V.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${r||"default"} type`,className:u,style:Object.assign(Object.assign({},l),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},V.createElement("div",{className:`${uh}-content`},this.renderIcon(),V.createElement("span",{className:`${uh}-content-text`,style:d,"x-semi-prop":"content"},n),o&&V.createElement("div",{className:`${uh}-close-button`},V.createElement(ul,{onClick:v=>this.close(v),type:"tertiary",icon:V.createElement(Tve,{"x-semi-prop":"icon"}),theme:f,size:p}))));if(this.props.stack){const v=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return V.createElement("div",{className:`${uh}-zero-height-wrapper`,style:{height:v}},g)}else return g}};jC.contextType=Ig;jC.propTypes={onClose:ie.func,content:ie.node,close:ie.func,duration:ie.number,theme:ie.oneOf(OP.themes),type:ie.oneOf(OP.types),textMaxWidth:ie.oneOfType([ie.string,ie.number]),style:ie.object,className:ie.string,showClose:ie.bool,stack:ie.bool,stackExpanded:ie.bool,icon:ie.node,direction:ie.oneOf(OP.directions)};jC.__SemiComponentName__="Toast";jC.defaultProps=T_(jC.__SemiComponentName__,{onClose:vr,content:"",close:vr,duration:ivr.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"});var ovr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const avr=(e,n)=>{var{afterClose:r}=e,i=ovr(e,["afterClose"]);const[o,a]=m.useState(!0),s=()=>{a(!1)};return V.useImperativeHandle(n,()=>({close:()=>{a(!1)}})),m.useEffect(()=>{o||r(i.id)},[o]),o?V.createElement(jC,Object.assign({},i,{close:s})):null},svr=V.forwardRef(avr),WM={motion:!0,zIndex:1010,duration:3};function lvr(){const[e,n]=V.useState([]);function r(i,o){return n(a=>[{element:i,config:o},...a]),a=>{n(s=>s.filter(l=>{let{config:c}=l;return c.id!==a}))}}return[e,r]}function cvr(){const[e,n]=lvr(),r=m.useRef(new Map),i=a=>{const s=zse("semi_toast_"),l=Object.assign(Object.assign({},a),{id:s});let c;const u=V.createElement(svr,Object.assign({},l,{key:s,afterClose:d=>c(d),ref:d=>{var f;r.current.set(s,{close:(f=d==null?void 0:d.close)!==null&&f!==void 0?f:vr})}}));return c=n(u,Object.assign({},l)),s},o=a=>{var s;const{close:l}=(s=r.current.get(a))!==null&&s!==void 0?s:{};l==null||l()};return[{success:a=>i(Object.assign(Object.assign(Object.assign({},WM),a),{type:"success"})),info:a=>i(Object.assign(Object.assign(Object.assign({},WM),a),{type:"info"})),error:a=>i(Object.assign(Object.assign(Object.assign({},WM),a),{type:"error"})),warning:a=>i(Object.assign(Object.assign(Object.assign({},WM),a),{type:"warning"})),open:a=>i(Object.assign(Object.assign(Object.assign({},WM),a),{type:"default"})),close:a=>o(a)},V.createElement(V.Fragment,null,Array.isArray(e)&&e.length?V.createElement(V.Fragment,null,e.map(a=>a.element)):null)]}const uvr=()=>{var e;return e=class Mo extends fl{constructor(r){super(r),this.stack=!1,this.innerWrapperRef=V.createRef(),this.handleMouseEnter=i=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=i=>{var o;this.stack&&(!((o=this.foundation.getInputWrapperRect())===null||o===void 0)&&o.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new Xve(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(r,i,o)=>{this.setState({list:r,removedItems:i,updatedItems:o})},handleMouseInSideChange:r=>{this.setState({mouseInSide:r})},getInputWrapperRect:()=>{var r;return(r=this.innerWrapperRef.current)===null||r===void 0?void 0:r.getBoundingClientRect()}})}static create(r){var i;const o=(i=r.id)!==null&&i!==void 0?i:zse("toast");if(Mo.ref){const a=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(s=>{s in r&&(a.style[s]=typeof r[s]=="number"?`${r[s]}px`:r[s])}),!!r.stack!==Mo.ref.stack&&(Mo.ref.stack=!!r.stack),Mo.ref.has(o)?Mo.ref.update(o,Object.assign(Object.assign({},r),{id:o})):Mo.ref.add(Object.assign(Object.assign({},r),{id:o}))}else{const a=document.createElement("div");this.wrapperId||(this.wrapperId=zse("toast-wrapper").slice(0,26)),a.className=Jx.WRAPPER,a.id=this.wrapperId,a.style.zIndex=String(typeof r.zIndex=="number"?r.zIndex:Mo.defaultOpts.zIndex),["top","left","bottom","right"].map(s=>{if(s in Mo.defaultOpts||s in r){const l=r[s]?r[s]:Mo.defaultOpts[s];a.style[s]=typeof l=="number"?`${l}px`:l}}),Mo.defaultOpts.getPopupContainer?Mo.defaultOpts.getPopupContainer().appendChild(a):document.body.appendChild(a),Gl.render(V.createElement(Mo,{ref:s=>Mo.ref=s}),a,()=>{Mo.ref.add(Object.assign(Object.assign({},r),{id:o})),Mo.ref.stack=!!r.stack})}return o}static close(r){Mo.ref&&Mo.ref.remove(r)}static destroyAll(){if(Mo.ref){Mo.ref.destroyAll();const r=document.querySelector(`#${this.wrapperId}`);Gl.unmountComponentAtNode(r),r&&r.parentNode.removeChild(r),Mo.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(r){return typeof r=="string"&&(r={content:r}),this.create(Object.assign(Object.assign(Object.assign({},Mo.defaultOpts),r),{type:"info"}))}static warning(r){return typeof r=="string"&&(r={content:r}),this.create(Object.assign(Object.assign(Object.assign({},Mo.defaultOpts),r),{type:"warning"}))}static error(r){return typeof r=="string"&&(r={content:r}),this.create(Object.assign(Object.assign(Object.assign({},Mo.defaultOpts),r),{type:"error"}))}static success(r){return typeof r=="string"&&(r={content:r}),this.create(Object.assign(Object.assign(Object.assign({},Mo.defaultOpts),r),{type:"success"}))}static config(r){["top","left","bottom","right"].forEach(i=>{i in r&&(Mo.defaultOpts[i]=r[i])}),typeof r.theme=="string"&&OP.themes.includes(r.theme)&&(Mo.defaultOpts.theme=r.theme),typeof r.zIndex=="number"&&(Mo.defaultOpts.zIndex=r.zIndex),typeof r.duration=="number"&&(Mo.defaultOpts.duration=r.duration),typeof r.getPopupContainer=="function"&&(Mo.defaultOpts.getPopupContainer=r.getPopupContainer)}has(r){return this.foundation.hasToast(r)}add(r){return this.foundation.addToast(r)}update(r,i){return this.foundation.updateToast(r,i)}remove(r){return this.foundation.removeToast(r)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:r}=this.state;const{removedItems:i,updatedItems:o}=this.state;r=Array.from(new Set([...r,...i]));const a=o.map(l=>{let{id:c}=l;return c}),s=l=>{var c;!((c=l==null?void 0:l.foundation)===null||c===void 0)&&c._id&&a.includes(l.foundation._id)&&l.foundation.restartCloseTimer()};return V.createElement(V.Fragment,null,V.createElement("div",{className:Ce({[`${Jx.PREFIX}-innerWrapper`]:!0,[`${Jx.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},r.map((l,c)=>{const u=i.find(d=>d.id===l.id)!==void 0;return V.createElement(RD,{key:l.id,motion:l.motion,animationState:u?"leave":"enter",startClassName:u?`${Jx.PREFIX}-animation-hide`:`${Jx.PREFIX}-animation-show`},d=>{let{animationClassName:f,animationEventsNeedBind:p,isAnimating:h}=d;return u&&!h?null:V.createElement(jC,Object.assign({},l,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:r.length,index:c},className:Ce({[l.className]:!!l.className,[f]:!0})},p,{style:Object.assign({},l.style),close:g=>this.remove(g),ref:s}))})})))}},e.defaultOpts={motion:!0,zIndex:1010,content:""},e.propTypes={content:ie.node,duration:ie.number,onClose:ie.func,icon:ie.node,direction:ie.oneOf(OP.directions),stack:ie.bool},e.defaultProps={},e};class dvr{static create(n){const r=uvr();return r.useToast=cvr,n&&r.config(n),r}}const Zb=dvr.create();function hee(e){return Qur(e,n=>{if(con(n)&&!n._innerDataTag||V.isValidElement(n))return n})}const fvr=rct.PREFIX;class Zve extends m.PureComponent{constructor(n){super(n),this._onResize=r=>{const i=r&&r[1]&&r[1].target;if(i){const o=fr(i,"offsetHeight")||0,a=window.getComputedStyle(i)||{},s=parseInt(fr(a,"paddingTop"),10)||0,l=parseInt(fr(a,"paddingBottom"),10)||0,c=o-s-l;this.state.height!==c&&this.setState({height:o-s-l})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:n}=this.state}render(){const{children:n,defaultWidth:r,defaultHeight:i}=this.props,{height:o}=this.state;let a=!1;return(o===0||typeof o!="number")&&(a=!0),V.createElement(sG,{observeParent:!0,onResize:this._onResize},V.createElement("div",{style:{height:i,overflow:"visible"},className:`${fvr}-auto-wrapper`},!a&&n({height:o,width:r})))}}Zve.propTypes={defaultHeight:ie.oneOfType([ie.number,ie.string]),defaultWidth:ie.oneOfType([ie.number,ie.string])};Zve.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const Jve=V.createContext(null),pvr=e=>{let{prefixcls:n,level:r,isEnd:i,showLine:o}=e;const a=`${n}-indent-unit`,s=[];for(let l=0;l<r;l+=1)s.push(m.createElement("span",{key:l,className:Ce(a,{[`${a}-end`]:i[l]})}));return m.createElement("span",{"aria-hidden":"true",className:Ce(`${n}-indent`,{[`${n}-indent-show-line`]:o})},s)},hvr=m.memo(pvr);var gvr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const io=rct.PREFIX_OPTION;class nO extends m.PureComponent{constructor(n){super(n),this.onSelect=r=>{const{onNodeSelect:i}=this.context;i(r,this.props)},this.onExpand=r=>{const{onNodeExpand:i}=this.context;r&&r.stopPropagation(),r.nativeEvent.stopImmediatePropagation(),i(r,this.props)},this.onCheck=r=>{var i,o;if(this.isDisabled())return;const{onNodeCheck:a}=this.context;r.stopPropagation(),(o=(i=r.nativeEvent)===null||i===void 0?void 0:i.stopImmediatePropagation)===null||o===void 0||o.call(i),a(r,this.props)},this.handleCheckEnterPress=r=>{hg(r)&&this.onCheck(r)},this.onContextMenu=r=>{const{onNodeRightClick:i}=this.context;i(r,this.props)},this.onClick=r=>{const{expandAction:i}=this.context;if(i==="doubleClick"){this.debounceSelect(r);return}this.onSelect(r),i==="click"&&this.onExpand(r)},this.handleliEnterPress=r=>{hg(r)&&this.onClick(r)},this.onDoubleClick=r=>{const{expandAction:i,onNodeDoubleClick:o}=this.context;r.stopPropagation(),r.nativeEvent.stopImmediatePropagation(),za(o)&&o(r,this.props),i==="doubleClick"&&this.onExpand(r)},this.onDragStart=r=>{const{onNodeDragStart:i}=this.context;r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{r.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=r=>{const{onNodeDragEnter:i}=this.context;r.preventDefault(),r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=r=>{const{onNodeDragOver:i}=this.context;r.preventDefault(),r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=r=>{const{onNodeDragLeave:i}=this.context;r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=r=>{const{onNodeDragEnd:i}=this.context;r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=r=>{const{onNodeDrop:i}=this.context;r.preventDefault(),r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:r}=this.props;return r||[]},this.isLeaf=()=>{const{isLeaf:r,loaded:i}=this.props,{loadData:o}=this.context,a=this.getNodeChildren().length!==0;return r===!1?!1:r||!o&&!a||o&&i&&!a},this.isDisabled=()=>{const{disabled:r}=this.props,{treeDisabled:i}=this.context;return r===!1?!1:!!(i||r)},this.renderSwitcher=()=>this.isLeaf()?V.createElement("span",{className:Ce(`${io}-switcher`)},V.createElement("span",{className:`${io}-switcher-leaf-line`})):null,this.renderRealLabel=()=>{const{renderLabel:r}=this.context,{label:i,keyword:o,data:a,filtered:s,treeNodeFilterProp:l}=this.props;return za(r)?r(i,a,o):Es(i)&&s&&o?V.createElement(Lve,{highlightClassName:`${io}-highlight`,component:"span",sourceString:i,searchWords:[o]}):i},this.setRef=r=>{this.refNode=r},this.state={},this.debounceSelect=TYe(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){var n,r;const i=!this.isLeaf(),{loading:o,expanded:a,showLine:s,expandIcon:l}=this.props;if(o)return V.createElement(cG,{wrapperClassName:`${io}-spin-icon`});if(i){if(l){if(typeof l=="function")return l({onClick:this.onExpand,className:`${io}-expand-icon`,expanded:a});if(V.isValidElement(l)){const c=Ce(`${io}-expand-icon`,{[(n=l==null?void 0:l.props)===null||n===void 0?void 0:n.className]:(r=l==null?void 0:l.props)===null||r===void 0?void 0:r.className});return V.cloneElement(l,{onClick:this.onExpand,className:c})}else return l}return V.createElement(Xfr,{role:"button","aria-label":`${a?"Expand":"Collapse"} the tree item`,className:`${io}-expand-icon`,size:"small",onClick:this.onExpand})}return s?this.renderSwitcher():V.createElement("span",{className:`${io}-empty-icon`})}renderCheckbox(){const{checked:n,halfChecked:r,eventKey:i}=this.props,o=this.isDisabled();return V.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},V.createElement(G0,{"aria-label":"Toggle the checked state of checkbox",value:i,indeterminate:r,checked:n,disabled:!!o}))}renderIcon(){const{directory:n,treeIcon:r}=this.context,{expanded:i,icon:o,data:a}=this.props;return o||(r?typeof r=="function"?r(this.props):r:n?this.isLeaf()?V.createElement(Cfr,{className:`${io}-item-icon`}):i?V.createElement(Ofr,{className:`${io}-item-icon`}):V.createElement(xfr,{className:`${io}-item-icon`}):null)}renderEmptyNode(){const{emptyContent:n}=this.props,r=Ce(io,{[`${io}-empty`]:!0});return V.createElement("ul",{className:r},V.createElement("li",{className:`${io}-label ${io}-label-empty`,"x-semi-prop":"emptyContent"},n))}render(){const n=this.props,{eventKey:r,expanded:i,selected:o,checked:a,halfChecked:s,loading:l,active:c,level:u,empty:d,filtered:f,treeNodeFilterProp:p,display:h,style:g,isEnd:v,showLine:y}=n,_=gvr(n,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style","isEnd","showLine"]);if(d)return this.renderEmptyNode();const{multiple:S,draggable:b,renderFullLabel:E,dragOverNodeKey:w,dropPosition:C,labelEllipsis:x}=this.context,T=v[v.length-1],R=this.isDisabled(),O=w===r&&C===0,M=w===r&&C===-1,P=w===r&&C===1,k=Ce(io,{[`${io}-level-${u+1}`]:!0,[`${io}-fullLabel-level-${u+1}`]:E,[`${io}-collapsed`]:!i,[`${io}-disabled`]:!!R,[`${io}-selected`]:o,[`${io}-active`]:!S&&c,[`${io}-ellipsis`]:x,[`${io}-drag-over`]:!R&&O,[`${io}-draggable`]:!R&&b&&!E,[`${io}-fullLabel-draggable`]:!R&&b&&E,[`${io}-fullLabel-drag-over-gap-top`]:!R&&M&&E,[`${io}-fullLabel-drag-over-gap-bottom`]:!R&&P&&E,[`${io}-tree-node-last-leaf`]:T}),$={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:k,onExpand:this.onExpand,data:_.data,level:u,onCheck:this.onCheck,style:g,expandIcon:this.renderArrow(),checkStatus:{checked:a,halfChecked:s},expandStatus:{expanded:i,loading:l},filtered:f,searchWord:_.keyword},U={onDoubleClick:this.onDoubleClick,onDragStart:b?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,draggable:!R&&b||void 0};if(E){const Y=E(Object.assign({},$));return b?V.cloneElement(Y,Object.assign({ref:this.setRef},U)):ta(g)?Y:V.cloneElement(Y,{style:Object.assign(Object.assign({},fr(Y,["props","style"])),g)})}const z=Ce(`${io}-label`,{[`${io}-drag-over-gap-top`]:!R&&M,[`${io}-drag-over-gap-bottom`]:!R&&P}),D=fr(_,["data","children","length"]),B=Es(_.pos)?Number(_.pos.split("-")[u+1])+1:1;return V.createElement("li",Object.assign({className:k,role:"treeitem","aria-disabled":R,"aria-checked":a,"aria-selected":o,"aria-setsize":D,"aria-posinset":B,"aria-expanded":i,"aria-level":u+1,"data-key":r,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:g},U),V.createElement(hvr,{showLine:y,prefixcls:io,level:u,isEnd:v}),this.renderArrow(),V.createElement("span",{className:z},S?this.renderCheckbox():null,this.renderIcon(),V.createElement("span",{className:`${io}-label-text`},this.renderRealLabel())))}}nO.contextType=Jve;nO.propTypes={expanded:ie.bool,selected:ie.bool,checked:ie.bool,halfChecked:ie.bool,active:ie.bool,disabled:ie.bool,loaded:ie.bool,loading:ie.bool,isLeaf:ie.bool,pos:ie.string,children:ie.oneOfType([ie.array,ie.object]),icon:ie.node,directory:ie.bool,keyword:ie.string,treeNodeFilterProp:ie.string,selectedKey:ie.string,motionKey:ie.oneOfType([ie.string,ie.arrayOf(ie.string)]),isEnd:ie.arrayOf(ie.bool),showLine:ie.bool,expandIcon:ie.oneOfType([ie.node,ie.func])};nO.defaultProps={selectedKey:"",motionKey:""};var mvr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function vvr(e){const{open:n,children:r}=e,i=mvr(e,["open","children"]),[o,a]=m.useState(e.open);return m.useEffect(()=>{setTimeout(()=>{a(!e.open)},0)},[]),V.createElement(W0,Object.assign({},i,{isOpen:o}),r)}const f3e=e=>e.key;let Sct=class extends m.PureComponent{constructor(n){super(n),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(n,r){const{flattenNodes:i=[],motionKeys:o,motionType:a,flattenList:s=[]}=n,l=!If(r.cachedMotionKeys,o)||!If(r.cachedData.map(g=>g.key),i.map(g=>g.key)),c=[...o];if(!l||!c.length)return null;const u=[],d=[];let f=0,p={};return(a==="hide"&&s?s:i).forEach((g,v)=>{const y=f3e(g);o.has(y)?(d.push(g),y===c[0]&&(f=v)):u.push(g)}),u.splice(f,0,d),p={transitionNodes:u,cachedData:i,cachedMotionKeys:o,cachedMotionType:a},p}render(){const{flattenNodes:n,motionType:r,searchTargetIsDeep:i,renderTreeNode:o}=this.props,{transitionNodes:a}=this.state;return(a.length&&!i?a:n).map(c=>{const u=Array.isArray(c);if(u&&!c.length)return null;if(u&&c.length){const d=f3e(c[0]);return V.createElement(vvr,{open:r==="hide",duration:200,motion:!!r,key:`motion-${d}`,onMotionEnd:this.onMotionEnd},c.map(f=>o(f)))}return o(c)})}};Sct.contextType=Jve;const Ect={PREFIX:`${ui}-tree-select`,PREFIX_TREE:`${ui}-tree`,PREFIX_OPTION:`${ui}-tree-select-option`},hu={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:fcr};class yvr extends tc{constructor(n){super(Object.assign({},n)),this.handleKeyDown=r=>{r.key===Ylt&&this.getState("isOpen")&&this.close(r)},this._registerClickOutsideHandler=()=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})},this.clearInputValue=()=>{const{inputValue:r}=this.getStates();r&&this._adapter.updateInputValue("")},this.onClickSingleTriggerSearchItem=r=>{this.focusInput(!0)}}init(){const{searchAutoFocus:n,searchPosition:r,filterTreeNode:i}=this.getProps(),o=r===hu.SEARCH_POSITION_TRIGGER&&i,a=n&&o;this._setDropdownWidth();const s=!this._isDisabled();(this.getProp("defaultOpen")||a)&&s&&(this.open(),this._registerClickOutsideHandler()),a&&s&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:n,dropdownMatchSelectWidth:r}=this.getProps();let i;r&&(n&&uf(n.width)||n&&Es(n.width)&&!n.width.includes("%")?i=n.width:i=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(i))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||n.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:n}=this.getStates(),{showFilteredOnly:r}=this.getProps();return!!n&&r}findDataForValue(n){const{value:r,defaultValue:i,keyMaps:o}=this.getProps(),a=fr(o,"value","value"),s=fr(o,"key","key");let l=[];return r?l=Array.isArray(r)?r:[r]:i&&(l=Array.isArray(i)?i:[i]),l.find(c=>c[a]===n||c[s]===n)}constructDataForValue(n){const{treeNodeLabelProp:r,keyMaps:i}=this.getProps(),o=fr(i,"key","key"),a=fr(i,"label",r);return{[o]:n,[a]:n}}getDataForKeyNotInKeyEntities(n){const{onChangeWithObject:r}=this.getProps();return r?this.findDataForValue(n):this.constructDataForValue(n)}getTreeNodeProps(n){const{expandedKeys:r=new Set([]),selectedKeys:i=[],checkedKeys:o=new Set([]),halfCheckedKeys:a=new Set([]),realCheckedKeys:s=new Set([]),keyEntities:l={},filteredKeys:c=new Set([]),inputValue:u="",loadedKeys:d,loadingKeys:f,filteredExpandedKeys:p=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:g,checkRelation:v}=this.getProps(),y=l[n];if(!y)return null;let S=!1,b=!1;v==="related"?(S=o.has(n),b=a.has(n)):v==="unRelated"&&(S=s.has(n),b=!1);const w={eventKey:n,expanded:!!u?p.has(n):r.has(n),selected:i.includes(n),checked:S,halfChecked:b,pos:String(y?y.pos:""),level:y.level,filtered:c.has(n),keyword:u,treeNodeFilterProp:g,loading:f.has(n)&&!d.has(n),loaded:d.has(n)};return this.getProp("disableStrictly")&&h.has(n)&&(w.disabled=!0),w}handleNodeLoad(n,r,i,o){const{loadData:a}=this.getProps(),{key:s}=i;return!a||n.has(s)||r.has(s)?{}:(a(i).then(()=>{const l=new Set(this.getState("loadedKeys")),c=new Set(this.getState("loadingKeys")),u=l.add(s),d=new Set([...c]);d.delete(s),this._adapter.notifyLoad(u,i),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:d}),o()}),{loadingKeys:r.add(s)})}focusInput(n){this._adapter.updateInputFocus(n)}_notifyMultipleChange(n,r){const{keyEntities:i}=this.getStates(),{leafOnly:o,checkRelation:a,keyMaps:s,autoMergeValue:l}=this.getProps();let c=[];a==="related"?c=l?$h(n,i,o,!0):n:a==="unRelated"&&(c=n);const u=c.map(d=>i[d]&&i[d].key===d?i[d].data:this.getDataForKeyNotInKeyEntities(d));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(u,r);else{const d=Qj(u,s);this._adapter.notifyChange(d,u,r)}}_notifyChange(n,r){const{keyEntities:i}=this.getStates(),{keyMaps:o}=this.getProps();if(this._isMultiple()&&Array.isArray(n))this._notifyMultipleChange(n,r);else{const a=ll(n)?n:i[n].data,s=ll(n)?n:Qj(a,o);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(a,r):this._adapter.notifyChange(s,a,r)}}_notifyFocus(n){this._adapter.notifyFocus(n)}handleTriggerFocus(n){this._adapter.updateIsFocus(!0),this._notifyFocus(n),this._registerClickOutsideHandler()}_notifyBlur(n){this._adapter.notifyBlur(n)}handlerTriggerBlur(n){this.getState("isFocus")&&(this._adapter.updateIsFocus(!1),this._notifyBlur(n),this._adapter.unregisterClickOutsideHandler())}toggleHoverState(n){this._adapter.toggleHovering(n)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(n){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(n){const r=this._isDisabled(),{isOpen:i,inputValue:o,isFocus:a}=this.getStates(),{searchPosition:s,clickTriggerToHide:l}=this.getProps();if(!r)if(a||this.handleTriggerFocus(n),i){if(s==="trigger"&&o)return;l&&this.close(n)}else this.open()}handleSelectionEnterPress(n){hg(n)&&this.handleClick(n)}handleClear(n){const{searchPosition:r,filterTreeNode:i}=this.getProps(),{inputValue:o,selectedKeys:a}=this.getStates(),s=this._isMultiple(),l=this._isControlledComponent(),c=s?[]:void 0;this._notifyChange(c,n),l||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),i&&r===hu.SEARCH_POSITION_TRIGGER&&o!==""&&(ta(a)?this.handleInputChange(""):this.clearInput()),this._adapter.notifyClear(n)}handleClearEnterPress(n){hg(n)&&this.handleClear(n)}removeTag(n){const{disableStrictly:r,checkRelation:i,keyMaps:o}=this.getProps(),{keyEntities:a,disabledKeys:s,realCheckedKeys:l}=this.getStates(),c=a[n]&&a[n].key===n?a[n].data:this.getDataForKeyNotInKeyEntities(n),u=fr(o,"disabled","disabled");if(!(c[u]||r&&s.has(n))){if(i==="unRelated"){const d=new Set(l);d.delete(n),this._notifyChange([...d],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}else if(i==="related"){const{checkedKeys:d,halfCheckedKeys:f}=this.calcCheckedKeys(n,!1);this._notifyChange([...d],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:d,halfCheckedKeys:f}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(n,!1,c),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:n,expandedKeys:r,selectedKeys:i,keyEntities:o,treeData:a}=this.getStates(),{keyMaps:s}=this.getProps(),l=new Set(r);this._isExpandControlled();const c=wm(i,o,!1);c.forEach(d=>l.add(d));const u=Ob(a,l,s);this._adapter.updateState({expandedKeys:l,flattenNodes:u,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(c),filteredShownKeys:new Set([])}),this._adapter.rePositionDropdown()}handleInputChange(n){this._adapter.updateInputValue(n);const{flattenNodes:r,expandedKeys:i,selectedKeys:o,keyEntities:a,treeData:s}=this.getStates(),{showFilteredOnly:l,filterTreeNode:c,treeNodeFilterProp:u,keyMaps:d}=this.getProps(),f=u!=="label"?u:fr(d,"label","label"),p=new Set(i);let h=[],g=[],v=[],y=[],_=new Set([]);if(!n)v=wm(o,a,!1),v.forEach(b=>p.add(b)),y=Ob(s,p,d);else{const b=Object.values(a).filter(w=>{const{data:C}=w;return oct(n,C,c,f)});h=b.map(w=>w.data),g=b.map(w=>w.key),v=wm(g,a,!1);const E=Cm(g,a,!0);_=new Set([...E,...v]),y=Ob(s,new Set(v),d,l&&_)}const S=new Set(v);this._adapter.notifySearch(n,Array.from(S),h),this._adapter.updateState({expandedKeys:p,flattenNodes:y,motionKeys:new Set([]),filteredKeys:new Set(g),filteredExpandedKeys:S,filteredShownKeys:_}),this._adapter.rePositionDropdown()}handleNodeSelect(n,r){this._isDisabled(r)||(this._isMultiple()?this.handleMultipleSelect(n,r):this.handleSingleSelect(n,r))}handleSingleSelect(n,r){let i=[...this.getState("selectedKeys")];const{clickToHide:o}=this.getProps(),{selected:a,eventKey:s,data:l}=r;this._adapter.notifySelect(s,!0,l),!i.includes(s)&&!a&&(i=[s],this._notifyChange(s,n),this._isControlledComponent()||this._adapter.updateState({selectedKeys:i})),o&&(this._isSelectToClose()||!l.children)&&(this.close(n),this.handlerTriggerBlur(n))}calcCheckedKeys(n,r){const{keyEntities:i}=this.getStates(),o=new Set(this.getState("checkedKeys")),a=new Set(this.getState("halfCheckedKeys"));return r?act(n,i,o,a):sct(n,i,o,a)}handleMultipleSelect(n,r){const{searchPosition:i,disableStrictly:o,checkRelation:a}=this.getProps(),{inputValue:s,realCheckedKeys:l}=this.getStates(),{checked:c,eventKey:u,data:d}=r;if(a==="related"){const f=o?this.calcCheckedStatus(!c,u):!c,{checkedKeys:p,halfCheckedKeys:h}=o?this.calcNonDisabledCheckedKeys(u,f):this.calcCheckedKeys(u,f);this._adapter.notifySelect(u,f,d),this._notifyChange([...p],n),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:p,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(a==="unRelated"){const f=new Set(l);let p;l.has(u)?(f.delete(u),p=!1):(f.add(u),p=!0),this._adapter.notifySelect(u,p,d),this._notifyChange([...f],n),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:f}),this._adapter.rePositionDropdown())}i===hu.SEARCH_POSITION_TRIGGER&&s!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(n,r){const{keyEntities:i,disabledKeys:o}=this.getStates(),a=new Set(this.getState("checkedKeys")),s=$h(Cm([n],i,!1),i,!0);if(!s.some(d=>o.has(d)))return this.calcCheckedKeys(n,r);const c=s.filter(d=>!o.has(d)),u=r?[...c,...a]:Kj($h([...a],i,!0,!0),c);return _$(u,i)}calcCheckedStatus(n,r){if(!n)return n;const{checkedKeys:i,keyEntities:o,disabledKeys:a}=this.getStates(),s=$h(Cm([r],o,!1),o,!0);return s.some(d=>a.has(d))?!s.filter(d=>!a.has(d)).every(d=>i.has(d)):n}handleNodeExpandInSearch(n,r){const{treeData:i,filteredShownKeys:o,keyEntities:a}=this.getStates(),{keyMaps:s}=this.getProps(),l=this._showFilteredOnly(),c=new Set(this.getState("filteredExpandedKeys"));let u="show";const{eventKey:d,expanded:f,data:p}=r;if(f?c.has(d)&&(c.delete(d),u="hide"):c.add(d),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Ob(i,c,s,l&&o),g=this._isAnimated()?e3e(d,c,a):[],v={filteredExpandedKeys:c,flattenNodes:h,motionKeys:new Set(g),motionType:u};this._adapter.updateState(v)}this._adapter.notifyExpand(c,{expanded:!f,node:p})}handleNodeExpand(n,r){const{loadData:i,keyMaps:o}=this.getProps(),{inputValue:a,keyEntities:s}=this.getStates(),l=!!a;if(!i&&(!r.children||!r.children.length))return;const c=this._isExpandControlled();if(l){this.handleNodeExpandInSearch(n,r);return}const{treeData:u}=this.getStates(),d=new Set(this.getState("expandedKeys"));let f="show";const{eventKey:p,expanded:h,data:g}=r;if(h?d.has(p)&&(d.delete(p),f="hide"):d.add(p),this._adapter.cacheFlattenNodes(f==="hide"&&this._isAnimated()),!c){const v=Ob(u,d,o),y=this._isAnimated()?e3e(p,d,s):[],_={expandedKeys:d,flattenNodes:v,motionKeys:new Set(y),motionType:f};this._adapter.updateState(_)}this._adapter.notifyExpand(d,{expanded:!h,node:g})}getRenderTextInSingle(){const{renderSelectedItem:n,treeNodeLabelProp:r,keyMaps:i}=this.getProps(),{selectedKeys:o,keyEntities:a}=this.getStates(),s=fr(i,"label",r),l=za(n)?n:d=>fr(d,s,null);let c;if(o.length){const d=o[0];c=a[d]&&a[d].key===d?a[d].data:this.getDataForKeyNotInKeyEntities(d)}return c?l(c):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(n,r){this._adapter.updateLoadKeys(n,r)}handlePopoverVisibleChange(n){const{filterTreeNode:r,searchAutoFocus:i,searchPosition:o}=this.getProps();n===!1&&r&&this.clearInputValue(),r&&o===hu.SEARCH_POSITION_DROPDOWN&&n&&i&&this.focusInput(!0)}handleAfterClose(){const{filterTreeNode:n}=this.getProps();n&&this.clearInput()}}var _vr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Bi=Ect.PREFIX,OE=Ect.PREFIX_TREE,bvr=0;class yG extends fl{constructor(n){super(n),this.renderSuffix=()=>{const{suffix:r}=this.props,i=Ce({[`${Bi}-suffix`]:!0,[`${Bi}-suffix-text`]:r&&Es(r),[`${Bi}-suffix-icon`]:rf(r)});return V.createElement("div",{className:i,"x-semi-prop":"suffix"},r)},this.renderPrefix=()=>{const{prefix:r,insetLabel:i,insetLabelId:o}=this.props,a=r||i,s=Ce({[`${Bi}-prefix`]:!0,[`${Bi}-inset-label`]:i,[`${Bi}-prefix-text`]:a&&Es(a),[`${Bi}-prefix-icon`]:rf(a)});return V.createElement("div",{className:s,id:o,"x-semi-prop":"prefix,insetLabel"},a)},this.renderContent=()=>{const{dropdownMinWidth:r}=this.state,{dropdownStyle:i,dropdownClassName:o}=this.props,a=Object.assign({minWidth:r},i),s=Ce(o,`${Bi}-popover`);return V.createElement("div",{className:s,style:a,onKeyDown:this.foundation.handleKeyDown},this.renderTree())},this.removeTag=r=>{this.foundation.removeTag(r)},this.handleClick=r=>{this.foundation.handleClick(r)},this.getDataForKeyNotInKeyEntities=r=>this.foundation.getDataForKeyNotInKeyEntities(r),this.handleSelectionEnterPress=r=>{this.foundation.handleSelectionEnterPress(r)},this.hasValue=()=>{const{multiple:r,checkRelation:i}=this.props,{realCheckedKeys:o,checkedKeys:a,selectedKeys:s}=this.state;let l=!1;return r?i==="related"?l=!!a.size:i==="unRelated"&&(l=!!o.size):l=!!s.length,l},this.showClearBtn=()=>{const{showClear:r,disabled:i,searchPosition:o}=this.props,{inputValue:a,isOpen:s,isHovering:l}=this.state,c=o===hu.SEARCH_POSITION_TRIGGER&&a;return r&&(this.hasValue()||c)&&!i&&(s||l)},this.renderTagList=r=>{const{keyEntities:i,disabledKeys:o}=this.state,{treeNodeLabelProp:a,leafOnly:s,disabled:l,disableStrictly:c,size:u,renderSelectedItem:d,keyMaps:f}=this.props,p=fr(f,"label",a),h=za(d)?d:v=>({isRenderInTag:!0,content:fr(v,p,null)}),g=[];return r.forEach((v,y)=>{const _=i[v]&&i[v].key===v?i[v].data:this.getDataForKeyNotInKeyEntities(v),S=(x,T)=>{T&&typeof T.preventDefault=="function"&&T.preventDefault(),this.removeTag(v)},{content:b,isRenderInTag:E}=_?h(_,{index:y,onClose:S}):{};if(BC(b)||ll(b))return;const C={closable:!(l||_.disabled||c&&o.has(_.key)),color:"white",visible:!0,onClose:S,key:`tag-${v}-${y}`,size:u==="small"?"small":"large"};E?g.push(V.createElement(gf,Object.assign({},C),b)):g.push(b)}),g},this.renderSingleTriggerSearchItem=()=>{const{placeholder:r,disabled:i}=this.props,{inputTriggerFocus:o}=this.state,a=this.foundation.getRenderTextInSingle(),s=Ce(`${Bi}-selection-TriggerSearchItem`,{[`${Bi}-selection-TriggerSearchItem-placeholder`]:(o||!a)&&!i,[`${Bi}-selection-TriggerSearchItem-disabled`]:i});return V.createElement("span",{className:s,onClick:this.foundation.onClickSingleTriggerSearchItem},a||r)},this.renderSingleTriggerSearch=()=>{const{inputValue:r}=this.state;return V.createElement(V.Fragment,null,this.renderInput(),!r&&this.renderSingleTriggerSearchItem())},this.renderSelectContent=r=>{const{multiple:i,placeholder:o,maxTagCount:a,searchPosition:s,filterTreeNode:l,showRestTagsPopover:c,restTagsPopoverProps:u}=this.props;if(l&&s===hu.SEARCH_POSITION_TRIGGER)return i?this.renderTagInput(r):this.renderSingleTriggerSearch();if(!i||!this.hasValue()){const p=this.foundation.getRenderTextInSingle(),h=Ce(`${Bi}-selection-content`,{[`${Bi}-selection-placeholder`]:!p});return V.createElement("span",{className:h},p||o)}const f=this.renderTagList(r);return V.createElement(Yve,{maxTagCount:a,tagList:f,size:"large",mode:"custom",showPopover:c,popoverProps:u})},this.handleClear=r=>{r&&r.stopPropagation(),this.foundation.handleClear(r)},this.handleClearEnterPress=r=>{r&&r.stopPropagation(),this.foundation.handleClearEnterPress(r)},this.handleMouseOver=r=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=r=>{this.foundation.toggleHoverState(!1)},this.search=r=>{const{isOpen:i}=this.state;i||this.foundation.open(),this.foundation.handleInputChange(r)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const r=this.showClearBtn(),{arrowIcon:i}=this.props;return r?null:i?V.createElement("div",{className:Ce(`${Bi}-arrow`),"x-semi-prop":"arrowIcon"},i):null},this.renderClearBtn=()=>{const r=this.showClearBtn(),{clearIcon:i}=this.props,o=Ce(`${Bi}-clearbtn`);return r?V.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:o,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},i||V.createElement(oG,null)):null},this.renderSelection=()=>{const r=this.props,{disabled:i,multiple:o,filterTreeNode:a,validateStatus:s,prefix:l,suffix:c,style:u,size:d,insetLabel:f,className:p,placeholder:h,showClear:g,leafOnly:v,searchPosition:y,triggerRender:_,borderless:S,autoMergeValue:b,checkRelation:E}=r,w=_vr(r,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless","autoMergeValue","checkRelation"]),{inputValue:C,selectedKeys:x,checkedKeys:T,keyEntities:R,isFocus:O,realCheckedKeys:M}=this.state,P=!!a,k=typeof _=="function",$=g?{onMouseEnter:H=>this.handleMouseOver(H),onMouseLeave:H=>this.handleMouseLeave(H)}:{},U=y===hu.SEARCH_POSITION_TRIGGER&&P,z=U&&ta(T),D=U&&!ta(T),B=k?Ce(p):Ce(Bi,{[`${Bi}-borderless`]:S,[`${Bi}-focus`]:O,[`${Bi}-disabled`]:i,[`${Bi}-single`]:!o,[`${Bi}-multiple`]:o,[`${Bi}-multiple-tagInput-empty`]:o&&z,[`${Bi}-multiple-tagInput-notEmpty`]:o&&D,[`${Bi}-filterable`]:P,[`${Bi}-error`]:s==="error",[`${Bi}-warning`]:s==="warning",[`${Bi}-small`]:d==="small",[`${Bi}-large`]:d==="large",[`${Bi}-with-prefix`]:l||f,[`${Bi}-with-suffix`]:c,[`${Bi}-with-suffix`]:c},p);let Y,q=[];o?b?E==="related"?q=$h([...T],R,v,!0):E==="unRelated"&&(q=[...M]):q=[...T]:q=x,k?Y=V.createElement(kve,{inputValue:C,value:q.map(H=>fr(R,[H,"data"])),disabled:i,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:_,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):Y=[V.createElement(m.Fragment,{key:"prefix"},l||f?this.renderPrefix():null),V.createElement(m.Fragment,{key:"selection"},V.createElement("div",{className:`${Bi}-selection`},this.renderSelectContent(q))),V.createElement(m.Fragment,{key:"suffix"},c?this.renderSuffix():null),V.createElement(m.Fragment,{key:"clearBtn"},g||U&&C?this.renderClearBtn():null),V.createElement(m.Fragment,{key:"arrow"},this.renderArrow())];const K=i?null:0;return V.createElement("div",Object.assign({role:"combobox","aria-disabled":i,"aria-haspopup":"tree",tabIndex:K,className:B,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,onKeyDown:this.foundation.handleKeyDown,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},$,this.getDataAttr(w)),Y)},this.renderTagItem=(r,i)=>{const{keyEntities:o,disabledKeys:a}=this.state,{size:s,leafOnly:l,disabled:c,disableStrictly:u,renderSelectedItem:d,treeNodeLabelProp:f,keyMaps:p}=this.props,h=fr(p,"label",f),v=$h([r],o,l,!0).map(R=>o[r]&&o[r].key===r?o[r].data:this.getDataForKeyNotInKeyEntities(r)),y=Qj(v,p),_=Ce(`${Bi}-selection-tag`,{[`${Bi}-selection-tag-disabled`]:c}),S=!ta(v)&&!ta(v[0]),b=u&&S&&a.has(v[0].key),E=S&&!v[0].disabled&&!c&&!b,w=(R,O)=>{O.preventDefault(),this.removeTag(r)},C={size:s==="small"?"small":"large",key:`tag-${y}-${i}`,color:"white",className:_,closable:E,onClose:w},x=v[0],T=za(d)?d:R=>({isRenderInTag:!0,content:fr(R,h,null)});if(za(T)){const{content:R,isRenderInTag:O}=x?T(x,{index:i,onClose:w}):{};return O?V.createElement(gf,Object.assign({},C),R):R}return V.createElement(gf,Object.assign({},C),y)},this.renderTagInput=r=>{const{disabled:i,size:o,searchAutoFocus:a,placeholder:s,maxTagCount:l,showRestTagsPopover:c,restTagsPopoverProps:u,searchPosition:d,filterTreeNode:f,preventScroll:p}=this.props,{inputValue:h}=this.state,g=f&&d===hu.SEARCH_POSITION_TRIGGER?a:void 0;return V.createElement(mG,{maxTagCount:l,disabled:i,onInputChange:v=>this.search(v),ref:this.tagInputRef,placeholder:s,value:r,inputValue:h,size:o,showRestTagsPopover:c,restTagsPopoverProps:u,autoFocus:g,renderTagItem:(v,y)=>this.renderTagItem(v,y),onRemove:v=>this.removeTag(v),expandRestTagsOnClick:!1,preventScroll:p})},this.renderInput=()=>{const{searchPlaceholder:r,searchRender:i,showSearchClear:o,searchPosition:a,searchAutoFocus:s,multiple:l,disabled:c,preventScroll:u}=this.props,{inputValue:d,inputTriggerFocus:f}=this.state,p=a===hu.SEARCH_POSITION_DROPDOWN,h=Ce({[`${OE}-input`]:p,[`${Bi}-inputTrigger`]:!p}),g={value:d,className:h,preventScroll:u,onChange:E=>this.search(E)},_=p?{showClear:o,prefix:V.createElement(jfr,null)}:{autofocus:s,onFocus:E=>this.foundation.handleInputTriggerFocus(),onBlur:E=>this.foundation.handleInputTriggerBlur(),disabled:c},S=Ce({[`${OE}-search-wrapper`]:p,[`${Bi}-triggerSingleSearch-wrapper`]:!p&&!l,[`${Bi}-triggerSingleSearch-upper`]:!p&&f}),b=typeof i=="function"||typeof i=="boolean";return b&&!i?null:V.createElement("div",{className:S},V.createElement(z0,{componentName:"TreeSelect"},E=>{const w=p?r||E.searchPlaceholder:"";return b?i(Object.assign(Object.assign(Object.assign({},_),g),{placeholder:w})):V.createElement(Uy,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:w},g,_))}))},this.renderEmpty=()=>{const{emptyContent:r}=this.props;return r===null?null:r?V.createElement(nO,{empty:!0,emptyContent:this.props.emptyContent}):V.createElement(z0,{componentName:"Tree"},i=>V.createElement(nO,{empty:!0,emptyContent:i.emptyText}))},this.onNodeLoad=r=>new Promise(i=>this.foundation.setLoadKeys(r,i)),this.onNodeSelect=(r,i)=>{this.foundation.handleNodeSelect(r,i)},this.onNodeCheck=(r,i)=>{this.foundation.handleNodeSelect(r,i)},this.onNodeExpand=(r,i)=>{this.foundation.handleNodeExpand(r,i)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:r,selectedKeys:i,checkedKeys:o,halfCheckedKeys:a,keyEntities:s,filteredKeys:l}=this.state;return{expandedKeys:r||new Set,selectedKeys:i||[],checkedKeys:o||new Set,halfCheckedKeys:a||new Set,filteredKeys:l||new Set,keyEntities:s}},this.getTreeNodeKey=r=>{const{data:i}=r,{key:o}=i;return o},this.handlePopoverVisibleChange=r=>{this.foundation.handlePopoverVisibleChange(r)},this.afterClose=()=>{this.foundation.handleAfterClose()},this.renderTreeNode=(r,i,o)=>{const{data:a,key:s}=r,l=this.foundation.getTreeNodeProps(s),{showLine:c}=this.props;if(!l)return null;const u=Xj(r,["key","label","disabled","isLeaf","icon","isEnd"]),{keyMaps:d,expandIcon:f}=this.props,p=a[fr(d,"children","children")];return!ll(p)&&(u.children=p),V.createElement(nO,Object.assign({},l,a,u,{data:a,style:o,showLine:c,expandIcon:f}))},this.itemKey=(r,i)=>{const{visibleOptions:o}=i;return o[r].key},this.renderNodeList=()=>{const{flattenNodes:r,cachedFlattenNodes:i,motionKeys:o,motionType:a,filteredKeys:s}=this.state,{direction:l}=this.context,{virtualize:c,motionExpand:u}=this.props,d="expandedKeys"in this.props;if(!c||ta(c))return V.createElement(Sct,{flattenNodes:r,flattenList:i,motionKeys:u?o:new Set([]),motionType:a,searchTargetIsDeep:d&&u&&ta(o)&&!ta(s),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const f={visibleOptions:r,renderOption:this.renderTreeNode};return V.createElement(Zve,{defaultHeight:c.height,defaultWidth:c.width},p=>{let{height:h,width:g}=p;return V.createElement(fct,{itemCount:r.length,itemSize:c.itemSize,height:h,width:g,itemKey:this.itemKey,itemData:f,className:`${OE}-virtual-list`,style:{direction:l}},evr)})},this.renderTree=()=>{const{keyEntities:r,motionKeys:i,motionType:o,inputValue:a,filteredKeys:s,flattenNodes:l,checkedKeys:c,realCheckedKeys:u}=this.state,{loadData:d,filterTreeNode:f,disabled:p,multiple:h,showFilteredOnly:g,motionExpand:v,outerBottomSlot:y,outerTopSlot:_,expandAction:S,labelEllipsis:b,virtualize:E,optionListStyle:w,searchPosition:C,renderLabel:x,renderFullLabel:T,checkRelation:R,emptyContent:O}=this.props,M=Ce(`${OE}-wrapper`),P=!!a&&!s.size,k=ta(l)||g&&P,$=C===hu.SEARCH_POSITION_DROPDOWN,U=Ce(`${OE}-option-list ${OE}-option-list-block`,{[`${OE}-option-list-hidden`]:O===null&&k});return V.createElement(Jve.Provider,{value:{loadData:d,treeDisabled:p,motion:v,motionKeys:i,motionType:o,expandAction:S,filterTreeNode:f,keyEntities:r,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:vr,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:g,isSearching:!!a,renderLabel:x,renderFullLabel:T,labelEllipsis:typeof b>"u"?E:b}},V.createElement("div",{className:M},_,!_&&f&&$&&this.renderInput(),V.createElement("div",{className:U,role:"tree","aria-multiselectable":!!h,style:w},k?this.renderEmpty():h?V.createElement(hG,{value:Array.from(R==="related"?c:u)},this.renderNodeList()):this.renderNodeList()),y))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:bvr,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],cachedFlattenNodes:void 0,selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(n.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=V.createRef(),this.tagInputRef=V.createRef(),this.triggerRef=V.createRef(),this.optionsRef=V.createRef(),this.clickOutsideHandler=null,this.foundation=new yvr(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(n,r){const{prevProps:i,rePosKey:o}=r,{keyMaps:a}=n,s=_=>!i&&_ in n||i&&!If(i[_],n[_]);let l;const c=n.onChangeWithObject;let u=r.keyEntities||{},d=r.cachedKeyValuePairs||{};const f={prevProps:n},p=s("treeData"),h=s("expandedKeys"),g=!!(n.filterTreeNode&&r.inputValue&&r.inputValue.length);if(p){l=n.treeData,f.treeData=l;const _=Jgr(l,a);f.keyEntities=Object.assign({},_.keyEntities),u=f.keyEntities,f.cachedKeyValuePairs=Object.assign({},_.valueEntities),d=f.cachedKeyValuePairs}l&&n.motion&&!If(Object.keys(f.keyEntities),Object.keys(r.keyEntities))&&i&&n.motion&&(f.motionKeys=new Set([]),f.motionType=null);const v=p&&n.expandAll;if(g){let _;if(l&&(_=nmr({treeData:l,inputValue:r.inputValue,filterTreeNode:n.filterTreeNode,filterProps:n.treeNodeFilterProp,showFilteredOnly:n.showFilteredOnly,keyEntities:f.keyEntities,prevExpandedKeys:[...r.filteredExpandedKeys],keyMaps:a}),f.flattenNodes=_.flattenNodes,f.motionKeys=new Set([]),f.filteredKeys=_.filteredKeys,f.filteredShownKeys=_.filteredShownKeys,f.filteredExpandedKeys=_.filteredExpandedKeys),n.expandedKeys){if(f.filteredExpandedKeys=cee(n.expandedKeys,u,n.autoExpandParent||!i),i&&n.motion){const S=r?r.filteredExpandedKeys:new Set([]);if(!l){const b=J$e(S,f.filteredExpandedKeys,u);let{motionKeys:E}=b;const{motionType:w}=b;n.showFilteredOnly&&(E=E.filter(C=>r.filteredShownKeys.has(C))),w==="hide"&&(f.cachedFlattenNodes=hee(r.flattenNodes)),f.motionKeys=new Set(E),f.motionType=w}}f.flattenNodes=Ob(l||r.treeData,f.filteredExpandedKeys||r.filteredExpandedKeys,a,n.showFilteredOnly&&r.filteredShownKeys)}}else{if(h||i&&s("autoExpandParent")){if(f.expandedKeys=cee(n.expandedKeys,u,n.autoExpandParent||!i),i&&n.motion&&!l){const{motionKeys:_,motionType:S}=J$e(r.expandedKeys,f.expandedKeys,u);f.motionKeys=new Set(_),f.motionType=S,S==="hide"&&(f.cachedFlattenNodes=hee(r.flattenNodes))}}else!i&&(n.defaultExpandAll||n.expandAll)||v?f.expandedKeys=new Set(Object.keys(u)):!i&&n.defaultExpandedKeys?f.expandedKeys=cee(n.defaultExpandedKeys,u):!i&&n.defaultValue?f.expandedKeys=Z$e(nb(n.defaultValue,c,a),u,n.multiple,d):!i&&n.value&&(f.expandedKeys=Z$e(nb(n.value,c,a),u,n.multiple,d));if(f.expandedKeys||delete f.expandedKeys,l||f.expandedKeys){const _=Ob(l||r.treeData,f.expandedKeys||r.expandedKeys,a);f.flattenNodes=_}}const y=n.multiple;if(!y)s("value")?f.selectedKeys=FE(nb(n.value,c,a),d,y):!i&&n.defaultValue?f.selectedKeys=FE(nb(n.defaultValue,c,a),d,y):l&&(n.value?f.selectedKeys=FE(nb(n.value,c,a)||"",d,y):f.selectedKeys=t3e(r.selectedKeys,u));else{let _;if(s("value")?_=FE(nb(n.value,c,a),d,y):!i&&n.defaultValue?_=FE(nb(n.defaultValue,c,a),d,y):l&&(n.value?_=FE(nb(n.value,c,a)||[],d,y):_=t3e(n.checkRelation==="related"?r.checkedKeys:r.realCheckedKeys,u)),_){if(n.checkRelation==="unRelated")f.realCheckedKeys=new Set(_);else if(n.checkRelation==="related"){const{checkedKeys:S,halfCheckedKeys:b}=_$(_,u);f.checkedKeys=S,f.halfCheckedKeys=b}}}return s("loadedKeys")&&(f.loadedKeys=new Set(n.loadedKeys)),(p||s("value"))&&(f.rePosKey=o+1),l&&n.disableStrictly&&n.checkRelation==="related"&&(f.disabledKeys=lct(u,a)),f}get adapter(){var n=this;const r={updateInputValue:a=>{this.setState({inputValue:a})}},i={registerClickOutsideHandler:a=>{this.adapter.unregisterClickOutsideHandler();const s=l=>{const c=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,d=Gl.findDOMNode(c),f=l.target,p=l.composedPath&&l.composedPath()||[f];d&&(!d.contains(f)||!d.contains(f.parentNode))&&u&&!u.contains(f)&&!(p.includes(u)||p.includes(d))&&a(l)};this.clickOutsideHandler=s,document.addEventListener("mousedown",s,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}},o={updateState:a=>{this.setState(Object.assign({},a))},notifySelect:(a,s,l)=>{this.props.onSelect&&this.props.onSelect(a,s,l)},notifySearch:(a,s,l)=>{this.props.onSearch&&this.props.onSearch(a,s,l)},cacheFlattenNodes:a=>{this.setState({cachedFlattenNodes:a?hee(this.state.flattenNodes):void 0})},notifyLoad:(a,s)=>{const{onLoad:l}=this.props;za(l)&&l(a,s)},notifyClear:a=>{this.props.onClear&&this.props.onClear(a)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),r),i),o),{updateLoadKeys:(a,s)=>{this.setState(l=>{let{loadedKeys:c,loadingKeys:u}=l;return this.foundation.handleNodeLoad(c,u,a,s)})},updateState:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const a=this.triggerRef.current;return a&&a.getBoundingClientRect().width},setOptionWrapperWidth:a=>{this.setState({dropdownMinWidth:a})},notifyChange:(a,s,l)=>{this.props.onChange&&this.props.onChange(a,s,l)},notifyChangeWithObject:(a,s)=>{this.props.onChange&&this.props.onChange(a,s)},notifyExpand:(a,s)=>{let{expanded:l,node:c}=s;this.props.onExpand&&this.props.onExpand([...a],{expanded:l,node:c}),l&&this.props.loadData&&this.onNodeLoad(c)},notifyFocus:function(){n.props.onFocus&&n.props.onFocus(...arguments)},notifyBlur:function(){n.props.onBlur&&n.props.onBlur(...arguments)},toggleHovering:a=>{this.setState({isHovering:a})},updateInputFocus:a=>{if(a){if(this.inputRef&&this.inputRef.current){const{preventScroll:s}=this.props;this.inputRef.current.focus({preventScroll:s})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:a=>{this.setState({isFocus:a})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const n=this.renderContent(),{motion:r,zIndex:i,mouseLeaveDelay:o,mouseEnterDelay:a,autoAdjustOverflow:s,stopPropagation:l,getPopupContainer:c,dropdownMargin:u,position:d}=this.props,{isOpen:f,rePosKey:p}=this.state,h=this.renderSelection(),g=d||"bottomLeft";return V.createElement(Cu,{stopPropagation:l,getPopupContainer:c,zIndex:i,motion:r,margin:u,ref:this.optionsRef,content:n,visible:f,trigger:"custom",rePosKey:p,position:g,autoAdjustOverflow:s,mouseLeaveDelay:o,mouseEnterDelay:a,onVisibleChange:this.handlePopoverVisibleChange,afterClose:this.afterClose},h)}}yG.contextType=Ig;yG.propTypes={"aria-describedby":ie.string,"aria-errormessage":ie.string,"aria-invalid":ie.bool,"aria-labelledby":ie.string,"aria-required":ie.bool,borderless:ie.bool,loadedKeys:ie.arrayOf(ie.string),loadData:ie.func,onLoad:ie.func,arrowIcon:ie.node,clearIcon:ie.node,defaultOpen:ie.bool,defaultValue:ie.oneOfType([ie.string,ie.array,ie.object]),defaultExpandAll:ie.bool,defaultExpandedKeys:ie.array,expandAll:ie.bool,disabled:ie.bool,disableStrictly:ie.bool,filterTreeNode:ie.oneOfType([ie.func,ie.bool]),multiple:ie.bool,searchPlaceholder:ie.string,searchAutoFocus:ie.bool,virtualize:ie.object,treeNodeFilterProp:ie.string,onChange:ie.func,onClear:ie.func,onSearch:ie.func,onSelect:ie.func,onExpand:ie.func,onChangeWithObject:ie.bool,onBlur:ie.func,onFocus:ie.func,value:ie.oneOfType([ie.string,ie.number,ie.array,ie.object]),expandedKeys:ie.array,autoExpandParent:ie.bool,showClear:ie.bool,showSearchClear:ie.bool,autoAdjustOverflow:ie.bool,showFilteredOnly:ie.bool,showLine:ie.bool,motionExpand:ie.bool,emptyContent:ie.node,keyMaps:ie.object,leafOnly:ie.bool,treeData:ie.arrayOf(ie.shape({key:ie.string,value:ie.oneOfType([ie.string,ie.number]),label:ie.any})),dropdownClassName:ie.string,dropdownStyle:ie.object,dropdownMargin:ie.oneOfType([ie.number,ie.object]),motion:ie.bool,placeholder:ie.string,maxTagCount:ie.number,size:ie.oneOf(hu.SIZE_SET),className:ie.string,style:ie.object,treeNodeLabelProp:ie.string,suffix:ie.node,prefix:ie.node,insetLabel:ie.node,insetLabelId:ie.string,zIndex:ie.number,getPopupContainer:ie.func,dropdownMatchSelectWidth:ie.bool,validateStatus:ie.oneOf(hu.STATUS),mouseEnterDelay:ie.number,mouseLeaveDelay:ie.number,triggerRender:ie.func,stopPropagation:ie.oneOfType([ie.bool,ie.string]),outerBottomSlot:ie.node,outerTopSlot:ie.node,onVisibleChange:ie.func,expandAction:ie.oneOf(["click","doubleClick",!1]),searchPosition:ie.oneOf([hu.SEARCH_POSITION_DROPDOWN,hu.SEARCH_POSITION_TRIGGER]),clickToHide:ie.bool,renderLabel:ie.func,renderFullLabel:ie.func,labelEllipsis:ie.bool,optionListStyle:ie.object,searchRender:ie.oneOfType([ie.func,ie.bool]),renderSelectedItem:ie.func,checkRelation:ie.string,"aria-label":ie.string,showRestTagsPopover:ie.bool,restTagsPopoverProps:ie.object,preventScroll:ie.bool,clickTriggerToHide:ie.bool,autoMergeValue:ie.bool};yG.defaultProps={borderless:!1,searchPosition:hu.SEARCH_POSITION_DROPDOWN,arrowIcon:V.createElement(xve,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:V0.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:vr,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0,autoMergeValue:!0};var U1={custom:V.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:"false","aria-hidden":"true"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.1 18L4.5032 20.1702C4.24999 21.0909 4.94281 22 5.89773 22C6.54881 22 7.11964 21.565 7.29227 20.9372L8.1 18H12.1L11.5032 20.1702C11.25 21.0909 11.9428 22 12.8977 22C13.5488 22 14.1196 21.565 14.2923 20.9372L15.1 18H19.5C20.3284 18 21 17.3284 21 16.5C21 15.6716 20.3284 15 19.5 15H15.925L17.575 9H20.5C21.3284 9 22 8.32843 22 7.5C22 6.67157 21.3284 6 20.5 6H18.4L18.9968 3.8298C19.25 2.90906 18.5572 2 17.6023 2C16.9512 2 16.3804 2.43504 16.2077 3.06281L15.4 6H11.4L11.9968 3.8298C12.25 2.90906 11.5572 2 10.6023 2C9.95119 2 9.38036 2.43504 9.20773 3.06281L8.4 6H4.5C3.67157 6 3 6.67157 3 7.5C3 8.32843 3.67157 9 4.5 9H7.575L5.925 15H3.5C2.67157 15 2 15.6716 2 16.5C2 17.3284 2.67157 18 3.5 18H5.1ZM8.925 15L10.575 9H14.575L12.925 15H8.925Z",fill:"currentColor"})),object:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{d:"M5.33893 1.5835C5.66613 1.5835 5.93137 1.88142 5.93137 2.20862C5.93137 2.53582 5.66613 2.76838 5.33893 2.76838H4.9099C4.34717 2.76838 4.08062 3.07557 4.08062 3.71921V6.58633C4.08062 7.30996 3.80723 7.84734 3.26798 8.19105C3.11426 8.28902 3.10884 8.55273 3.26068 8.65359C3.80476 9.01503 4.08062 9.53994 4.08062 10.2434V13.1251C4.08062 13.7395 4.34717 14.0613 4.9099 14.0613H5.33893C5.66613 14.0613 5.93137 14.3435 5.93137 14.6707C5.93137 14.9979 5.66613 15.2462 5.33893 15.2462H4.64335C3.99177 15.2462 3.48828 15.0268 3.13287 14.6172C2.80708 14.2369 2.64419 13.7103 2.64419 13.0666V10.3165C2.64419 9.8923 2.55534 9.58511 2.37764 9.39494C2.26816 9.27135 1.80618 9.17938 1.38154 9.11602C1.02726 9.06315 0.759057 8.76744 0.765747 8.4093C0.772379 8.0543 1.03439 7.7566 1.38545 7.70346C1.80778 7.63952 2.26906 7.54968 2.37764 7.43477C2.55534 7.22997 2.64419 6.92278 2.64419 6.51319V3.77772C2.64419 3.11945 2.80708 2.59284 3.13287 2.21251C3.48828 1.78829 3.99177 1.5835 4.64335 1.5835H5.33893Z",fill:"currentColor"}),V.createElement("path",{d:"M10.962 15.2463C10.6348 15.2463 10.3696 14.9483 10.3696 14.6211C10.3696 14.2939 10.6348 14.0614 10.962 14.0614H11.391C11.9538 14.0614 12.2203 13.7542 12.2203 13.1105V10.2434C12.2203 9.51979 12.4937 8.98241 13.033 8.6387C13.1867 8.54073 13.1921 8.27703 13.0403 8.17616C12.4962 7.81472 12.2203 7.28982 12.2203 6.58638V3.70463C12.2203 3.09024 11.9538 2.76842 11.391 2.76842L10.962 2.76842C10.6348 2.76842 10.3696 2.48627 10.3696 2.15907C10.3696 1.83188 10.6348 1.58354 10.962 1.58354L11.6576 1.58354C12.3092 1.58354 12.8127 1.80296 13.1681 2.21255C13.4939 2.59289 13.6568 3.1195 13.6568 3.76314V6.51324C13.6568 6.93745 13.7456 7.24464 13.9233 7.43481C14.03 7.5553 14.4328 7.64858 14.8186 7.71393C15.1718 7.77376 15.4401 8.06977 15.4334 8.42791C15.4268 8.78291 15.1646 9.08018 14.814 9.13633C14.4306 9.19774 14.0291 9.28303 13.9233 9.39499C13.7456 9.59978 13.6568 9.90697 13.6568 10.3166V13.052C13.6568 13.7103 13.4939 14.2369 13.1681 14.6172C12.8127 15.0415 12.3092 15.2463 11.6576 15.2463H10.962Z",fill:"currentColor"})),boolean:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.668 4.66683H5.33463C3.49369 4.66683 2.0013 6.15921 2.0013 8.00016C2.0013 9.84111 3.49369 11.3335 5.33463 11.3335H10.668C12.5089 11.3335 14.0013 9.84111 14.0013 8.00016C14.0013 6.15921 12.5089 4.66683 10.668 4.66683ZM5.33463 3.3335C2.75731 3.3335 0.667969 5.42283 0.667969 8.00016C0.667969 10.5775 2.75731 12.6668 5.33463 12.6668H10.668C13.2453 12.6668 15.3346 10.5775 15.3346 8.00016C15.3346 5.42283 13.2453 3.3335 10.668 3.3335H5.33463Z",fill:"currentColor"}),V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66797 8.00016C8.66797 6.89559 9.5634 6.00016 10.668 6.00016C11.7725 6.00016 12.668 6.89559 12.668 8.00016C12.668 9.10473 11.7725 10.0002 10.668 10.0002C9.5634 10.0002 8.66797 9.10473 8.66797 8.00016ZM10.668 7.3335C10.2998 7.3335 10.0013 7.63197 10.0013 8.00016C10.0013 8.36835 10.2998 8.66683 10.668 8.66683C11.0362 8.66683 11.3346 8.36835 11.3346 8.00016C11.3346 7.63197 11.0362 7.3335 10.668 7.3335Z",fill:"currentColor"})),string:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{d:"M9.3342 3.33321C8.96601 3.33321 8.66753 3.63169 8.66753 3.99988C8.66753 4.36807 8.96601 4.66655 9.3342 4.66655H14.6675C15.0357 4.66655 15.3342 4.36807 15.3342 3.99988C15.3342 3.63169 15.0357 3.33321 14.6675 3.33321H9.3342Z",fill:"currentColor"}),V.createElement("path",{d:"M10.0009 7.99988C10.0009 7.63169 10.2993 7.33321 10.6675 7.33321H14.6675C15.0357 7.33321 15.3342 7.63169 15.3342 7.99988C15.3342 8.36807 15.0357 8.66655 14.6675 8.66655H10.6675C10.2993 8.66655 10.0009 8.36807 10.0009 7.99988Z",fill:"currentColor"}),V.createElement("path",{d:"M12.0009 11.3332C11.6327 11.3332 11.3342 11.6317 11.3342 11.9999C11.3342 12.3681 11.6327 12.6665 12.0009 12.6665H14.6675C15.0357 12.6665 15.3342 12.3681 15.3342 11.9999C15.3342 11.6317 15.0357 11.3332 14.6675 11.3332H12.0009Z",fill:"currentColor"}),V.createElement("path",{d:"M9.86659 14.1482L8.23444 10.1844H3.18136C3.13868 10.1844 3.09685 10.1808 3.05616 10.1738L1.66589 14.1129C1.53049 14.4965 1.10971 14.6978 0.726058 14.5624C0.342408 14.427 0.141166 14.0062 0.276572 13.6225L4.37566 2.00848C4.71323 1.05202 6.05321 1.01763 6.4394 1.95552L11.2289 13.5872C11.3838 13.9634 11.2044 14.394 10.8282 14.5489C10.452 14.7038 10.0215 14.5244 9.86659 14.1482ZM5.44412 3.40791L3.57241 8.71109H7.62778L5.44412 3.40791Z",fill:"currentColor"})),integer:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{d:"M15.132 11.4601C15.644 11.0121 15.9 10.3921 15.9 9.60007C15.9 8.60807 15.5 7.93607 14.7 7.58407C15.412 7.23207 15.768 6.62407 15.768 5.76007C15.768 5.05607 15.536 4.48007 15.072 4.03207C14.608 3.59207 14.012 3.37207 13.284 3.37207C12.588 3.37207 12.008 3.58007 11.544 3.99607C11.064 4.42007 10.808 4.98807 10.776 5.70007H12C12.064 4.88407 12.492 4.47607 13.284 4.47607C14.124 4.47607 14.544 4.91607 14.544 5.79607C14.544 6.66007 14.112 7.09207 13.248 7.09207H13.044V8.16007H13.248C14.2 8.16007 14.676 8.62807 14.676 9.56407C14.676 10.5081 14.212 10.9801 13.284 10.9801C12.9 10.9801 12.584 10.8761 12.336 10.6681C12.064 10.4441 11.916 10.1161 11.892 9.68407H10.668C10.692 10.4761 10.964 11.0841 11.484 11.5081C11.948 11.8921 12.548 12.0841 13.284 12.0841C14.036 12.0841 14.652 11.8761 15.132 11.4601Z",fill:"currentColor"}),V.createElement("path",{d:"M4.46875 12.0003V10.9083L7.75675 6.91228C8.06075 6.54428 8.21275 6.16428 8.21275 5.77228C8.21275 4.90828 7.79675 4.47628 6.96475 4.47628C6.60475 4.47628 6.31275 4.57628 6.08875 4.77628C5.83275 5.00828 5.70475 5.34828 5.70475 5.79628H4.48075C4.48075 5.07628 4.71275 4.49228 5.17675 4.04428C5.64075 3.60428 6.23675 3.38428 6.96475 3.38428C7.70075 3.38428 8.29675 3.60028 8.75275 4.03228C9.20875 4.47228 9.43675 5.05628 9.43675 5.78428C9.43675 6.13628 9.36875 6.45628 9.23275 6.74428C9.12075 6.97628 8.92075 7.27228 8.63275 7.63228L5.95675 10.9083H9.43675V12.0003H4.46875Z",fill:"currentColor"}),V.createElement("path",{d:"M1.668 12.0001V4.78805L0 6.25205V4.89605L1.668 3.45605H2.892V12.0001H1.668Z",fill:"currentColor"})),number:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{d:"M3.44151 5.3068C3.44151 3.83404 4.71542 2.64014 6.18818 2.64014C7.66094 2.64014 8.93484 3.83404 8.93484 5.3068V10.6135C8.93484 12.0862 7.66094 13.2801 6.18818 13.2801C4.71542 13.2801 3.44151 12.0862 3.44151 10.6135V5.3068ZM7.60151 5.3068C7.60151 4.57042 6.92456 3.97347 6.18818 3.97347C5.4518 3.97347 4.77484 4.57042 4.77484 5.3068V10.6135C4.77484 11.3498 5.4518 11.9468 6.18818 11.9468C6.92456 11.9468 7.60151 11.3498 7.60151 10.6135V5.3068Z",fill:"currentColor"}),V.createElement("path",{d:"M12.9882 2.64014C11.5154 2.64014 10.2415 3.83404 10.2415 5.3068V10.6135C10.2415 12.0862 11.5154 13.2801 12.9882 13.2801C14.4609 13.2801 15.7348 12.0862 15.7348 10.6135V5.3068C15.7348 3.83404 14.4609 2.64014 12.9882 2.64014ZM14.4015 10.6135C14.4015 11.3498 13.7246 11.9468 12.9882 11.9468C12.2518 11.9468 11.5748 11.3498 11.5748 10.6135V5.3068C11.5748 4.57042 12.2518 3.97347 12.9882 3.97347C13.7246 3.97347 14.4015 4.57042 14.4015 5.3068V10.6135Z",fill:"currentColor"}),V.createElement("path",{d:"M1.21484 13.2001C1.76713 13.2001 2.21484 12.7524 2.21484 12.2001C2.21484 11.6479 1.76713 11.2001 1.21484 11.2001C0.662559 11.2001 0.214844 11.6479 0.214844 12.2001C0.214844 12.7524 0.662559 13.2001 1.21484 13.2001Z",fill:"currentColor"})),array:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{d:"M5.23759 1.00342H2.00391V14.997H5.23759V13.6251H3.35127V2.37534H5.23759V1.00342Z",fill:"currentColor"}),V.createElement("path",{d:"M10.7624 1.00342H13.9961V14.997H10.7624V13.6251H12.6487V2.37534H10.7624V1.00342Z",fill:"currentColor"})),stream:V.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},V.createElement("path",{d:"M879.674 544.51l-158.254-0.221c-8.534 2.287-17.305-2.776-19.588-11.307l-23.862-75.877-74.742 350.891c0 0-1.523 18.507-11.518 18.507s-26.9 0.281-26.9 0.281c-8.259 2.213-16.748-2.687-18.961-10.949l-92.741-457.648-70.305 330.634c-2.261 8.291-11.94 15.206-20.385 12.986l-24.876 0.339c-8.723 2.293-17.685-2.789-20.023-11.349L270.629 544.51 143.993 544.51c-8.831 0-15.993-7.159-15.993-15.993l0-31.986c0-8.831 7.162-15.993 15.993-15.993l157.429-0.516c9.565-0.304 17.685 0.788 20.023 9.351l24.386 76.092 68.642-358.907c0 0 3.4-10.894 14.397-10.894 10.994 0 34.107-0.448 34.107-0.448 8.262-2.213 16.751 2.687 18.965 10.949l91.912 454.126 67.948-326.182c2.213-8.262 8.707-15.161 16.965-12.948l27.316-0.333c8.531-2.287 17.301 2.776 19.588 11.31l46.665 148.4 127.337 0c8.835 0 15.993 7.162 15.993 15.993l0 31.986C895.667 537.352 888.508 544.51 879.674 544.51z",fill:"currentColor"})),map:V.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},V.createElement("path",{d:"M877.860571 938.642286h-645.851428c-27.574857 0-54.052571-11.337143-73.508572-31.744a110.957714 110.957714 0 0 1-30.500571-76.8V193.828571c0-28.745143 10.971429-56.32 30.500571-76.726857a101.888 101.888 0 0 1 73.508572-31.817143h574.171428c27.501714 0 53.979429 11.337143 73.508572 31.744 19.529143 20.333714 30.500571 48.054857 30.500571 76.8v522.020572a34.157714 34.157714 0 0 1-6.948571 22.820571c-37.156571 19.382857-57.636571 39.350857-57.636572 72.630857 0 39.716571 19.894857 50.029714 57.636572 72.777143a34.816 34.816 0 0 1-8.045714 49.298286 32.256 32.256 0 0 1-17.334858 5.193143z m-32.256-254.537143V193.828571a40.228571 40.228571 0 0 0-39.497142-41.179428H232.009143a40.301714 40.301714 0 0 0-39.497143 41.252571V699.245714c17.773714-9.874286 37.449143-14.994286 57.417143-14.921143h595.675428v-0.073142z m-595.675428 187.245714h566.198857c-22.893714-11.190857-27.940571-39.497143-28.013714-59.977143 0-20.260571 3.218286-43.885714 28.013714-59.904h-566.125714c-31.670857 0-57.417143 26.843429-57.417143 59.977143 0 33.060571 25.746286 59.904 57.344 59.904z",fill:"currentColor"}),V.createElement("path",{d:"M320 128m32.036571 0l-0.073142 0q32.036571 0 32.036571 32.036571l0 511.926858q0 32.036571-32.036571 32.036571l0.073142 0q-32.036571 0-32.036571-32.036571l0-511.926858q0-32.036571 32.036571-32.036571Z",fill:"currentColor"}))},eye={object:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.58105H3.6139V2.87326H1.36702V13.1264H3.6139V14.4186H0V1.58105ZM3.41656 13.3264V13.3266H1.17155V13.3264H3.41656ZM0.197344 14.2186H0.199219V1.78125H3.41656V1.78105H0.197344V14.2186ZM12.3861 1.58105H16V14.4186H12.3861V13.1264H14.633V2.87326H12.3861V1.58105ZM12.5834 2.67326V1.78105H15.8027V1.78125H12.5853V2.67326H12.5834ZM12.5853 13.3266V14.2186H12.5834V13.3264H14.8303V2.67345H14.8322V13.3266H12.5853ZM3.82031 5.9091C3.82031 5.18535 4.40703 4.59863 5.13078 4.59863C5.85453 4.59863 6.44124 5.18535 6.44124 5.9091C6.44124 6.56485 5.9596 7.1081 5.33078 7.2044V8.70018H5.32877C5.32982 8.75093 5.33078 8.80912 5.33078 8.87034V9.72111C5.33078 10.0195 5.57268 10.2614 5.87109 10.2614H6.24124C6.55613 10.2614 6.8114 10.5167 6.8114 10.8316C6.8114 11.1465 6.55613 11.4017 6.24124 11.4017H5.87109C4.94291 11.4017 4.19047 10.6493 4.19047 9.72111V6.82186C3.96158 6.58607 3.82031 6.26397 3.82031 5.9091ZM7.33679 5.9091C7.33679 5.59421 7.59205 5.33894 7.90694 5.33894H11.6085C11.9234 5.33894 12.1786 5.59421 12.1786 5.9091C12.1786 6.22399 11.9234 6.47925 11.6085 6.47925H7.90694C7.59205 6.47925 7.33679 6.22399 7.33679 5.9091ZM7.33679 9.86846C7.33679 9.55357 7.59205 9.2983 7.90694 9.2983H11.6085C11.9234 9.2983 12.1786 9.55357 12.1786 9.86846C12.1786 10.1833 11.9234 10.4386 11.6085 10.4386H7.90694C7.59205 10.4386 7.33679 10.1833 7.33679 9.86846Z",fill:"currentColor"})),boolean:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.58105H3.6139V2.87326H1.36702V13.1264H3.6139V14.4186H0V1.58105ZM3.41656 13.3264V13.3266H1.17155V13.3264H3.41656ZM0.197344 14.2186H0.199219V1.78125H3.41656V1.78105H0.197344V14.2186ZM12.3861 1.58105H16V14.4186H12.3861V13.1264H14.633V2.87326H12.3861V1.58105ZM12.5834 2.67326V1.78105H15.8027V1.78125H12.5853V2.67326H12.5834ZM12.5853 13.3266V14.2186H12.5834V13.3264H14.8303V2.67345H14.8322V13.3266H12.5853ZM2.75 7.99993C2.75 6.14518 4.25358 4.6416 6.10833 4.6416H9.775C11.6298 4.6416 13.1333 6.14518 13.1333 7.99993C13.1333 9.85469 11.6298 11.3583 9.775 11.3583H6.10833C4.25358 11.3583 2.75 9.85469 2.75 7.99993ZM6.10833 5.85827C4.92552 5.85827 3.96667 6.81713 3.96667 7.99993C3.96667 9.18274 4.92552 10.1416 6.10833 10.1416H9.775C10.9578 10.1416 11.9167 9.18274 11.9167 7.99993C11.9167 6.81713 10.9578 5.85827 9.775 5.85827H6.10833ZM8.25 7.99993C8.25 7.1577 8.93277 6.47493 9.775 6.47493C10.6172 6.47493 11.3 7.1577 11.3 7.99993C11.3 8.84217 10.6172 9.52493 9.775 9.52493C8.93277 9.52493 8.25 8.84217 8.25 7.99993ZM9.775 7.6916C9.60471 7.6916 9.46667 7.82965 9.46667 7.99993C9.46667 8.17022 9.60471 8.30827 9.775 8.30827C9.94529 8.30827 10.0833 8.17022 10.0833 7.99993C10.0833 7.82965 9.94529 7.6916 9.775 7.6916Z",fill:"currentColor"})),string:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.58105H3.6139V2.87326H1.36702V13.1264H3.6139V14.4186H0V1.58105ZM3.41656 13.3264V13.3266H1.17155V13.3264H3.41656ZM0.197344 14.2186H0.199219V1.78125H3.41656V1.78105H0.197344V14.2186ZM12.3861 1.58105H16V14.4186H12.3861V13.1264H14.633V2.87326H12.3861V1.58105ZM12.5834 2.67326V1.78105H15.8027V1.78125H12.5853V2.67326H12.5834ZM12.5853 13.3266V14.2186H12.5834V13.3264H14.8303V2.67345H14.8322V13.3266H12.5853ZM5.23701 4.07158C5.50364 3.3161 6.56205 3.28894 6.86709 4.02974L10 11.6383C10.1329 11.9609 9.979 12.3302 9.65631 12.4631C9.33363 12.596 8.96434 12.4421 8.83147 12.1194L7.8021 9.61951H4.61903L3.7474 12.0891C3.63126 12.4182 3.27034 12.5908 2.94127 12.4747C2.6122 12.3585 2.43958 11.9976 2.55573 11.6685L5.23701 4.07158ZM6.08814 5.45704L5.06505 8.35579H7.28174L6.08814 5.45704ZM8.81938 6.07534C8.81938 5.75166 9.08177 5.48926 9.40545 5.48926H12.8941C13.2178 5.48926 13.4802 5.75166 13.4802 6.07534C13.4802 6.39902 13.2178 6.66142 12.8941 6.66142H9.40545C9.08177 6.66142 8.81938 6.39902 8.81938 6.07534ZM10.2668 9.69181C10.2668 9.36812 10.5292 9.10573 10.8529 9.10573H12.8941C13.2178 9.10573 13.4802 9.36812 13.4802 9.69181C13.4802 10.0155 13.2178 10.2779 12.8941 10.2779H10.8529C10.5292 10.2779 10.2668 10.0155 10.2668 9.69181Z",fill:"currentColor"})),integer:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.58105H3.6139V2.87326H1.36702V13.1264H3.6139V14.4186H0V1.58105ZM3.41656 13.3264V13.3266H1.17155V13.3264H3.41656ZM0.197344 14.2186H0.199219V1.78125H3.41656V1.78105H0.197344V14.2186ZM12.3861 1.58105H16V14.4186H12.3861V13.1264H14.633V2.87326H12.3861V1.58105ZM12.5834 2.67326V1.78105H15.8027V1.78125H12.5853V2.67326H12.5834ZM12.5853 13.3266V14.2186H12.5834V13.3264H14.8303V2.67345H14.8322V13.3266H12.5853ZM10.3614 5.22374C10.7161 4.90585 11.1581 4.75 11.6762 4.75C12.2173 4.75 12.6723 4.91467 13.0281 5.25207L13.0291 5.253C13.3852 5.59688 13.561 6.03946 13.561 6.56767C13.561 6.89 13.4945 7.17448 13.3539 7.41445C13.2572 7.57972 13.1279 7.71948 12.9685 7.83428C13.1575 7.95643 13.3099 8.11182 13.4225 8.30109C13.5793 8.5644 13.6531 8.88311 13.6531 9.24936C13.6531 9.83787 13.4612 10.3151 13.0656 10.6612C12.6982 10.9795 12.2305 11.1341 11.6762 11.1341C11.1356 11.1341 10.6805 10.9925 10.324 10.6977C9.92124 10.3691 9.71723 9.90026 9.69942 9.31256L9.69473 9.15802H10.846L10.8539 9.2997C10.8689 9.5698 10.9591 9.75553 11.1096 9.87941L11.1106 9.88027C11.2519 9.99882 11.4365 10.0631 11.6762 10.0631C11.9765 10.0631 12.1743 9.98692 12.2984 9.86071C12.4229 9.73404 12.4984 9.53136 12.4984 9.22422C12.4984 8.92116 12.4215 8.72127 12.2939 8.59581C12.1658 8.46989 11.961 8.39373 11.6511 8.39373H11.3586V7.34788H11.6511C11.9297 7.34788 12.111 7.27834 12.2238 7.16555C12.3366 7.05276 12.4062 6.87138 12.4062 6.59281C12.4062 6.30696 12.3378 6.12041 12.2277 6.00501C12.1188 5.89092 11.9446 5.82098 11.6762 5.82098C11.4248 5.82098 11.2539 5.88537 11.1407 5.99325C11.0268 6.10185 10.9497 6.27522 10.9291 6.5375L10.9183 6.67577H9.76788L9.77492 6.51904C9.79886 5.98644 9.99237 5.54989 10.3614 5.22374ZM5.91032 5.26037C6.26612 4.92297 6.72112 4.7583 7.26219 4.7583C7.80751 4.7583 8.26297 4.91938 8.61401 5.25194L8.61501 5.25289C8.96719 5.59272 9.13852 6.04185 9.13852 6.58435C9.13852 6.84997 9.08709 7.09565 8.9817 7.31883L8.98114 7.31999C8.89563 7.49712 8.74775 7.71415 8.54418 7.96862L8.54322 7.96981L6.87446 10.0127H9.13852V11.0753H5.36909V10.1089L7.69946 7.27679C7.89456 7.04062 7.98374 6.80773 7.98374 6.57597C7.98374 6.29602 7.91626 6.11385 7.8078 6.00122C7.70036 5.88964 7.52811 5.8209 7.26219 5.8209C7.04017 5.8209 6.87439 5.88173 6.75075 5.99193C6.61227 6.11766 6.53226 6.30918 6.53226 6.59273V6.74273H5.37747V6.59273C5.37747 6.05443 5.55248 5.60586 5.90934 5.2613L5.91032 5.26037ZM3.50907 4.80865H4.56964V11.0754H3.41486V6.2201L2.25 7.24249V5.89561L3.50907 4.80865Z",fill:"currentColor"})),number:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6139 1.58154H0V14.4191H3.6139V13.1269H1.36702V2.87375H3.6139V1.58154ZM3.41656 13.3271V13.3269H1.17155V13.3271H3.41656ZM0.199219 14.2191H0.197344V1.78154H3.41656V1.78174H0.199219V14.2191ZM16 1.58154H12.3861V2.87375H14.633V13.1269H12.3861V14.4191H16V1.58154ZM12.5834 1.78154V2.67375H12.5853V1.78174H15.8027V1.78154H12.5834ZM12.5853 14.2191V13.3271H14.8322V2.67394H14.8303V13.3269H12.5834V14.2191H12.5853ZM6.86771 4.5C5.87019 4.5 5.00104 5.30767 5.00104 6.31667V9.63333C5.00104 10.6423 5.87019 11.45 6.86771 11.45C7.86523 11.45 8.73438 10.6423 8.73438 9.63333V6.31667C8.73438 5.30767 7.86523 4.5 6.86771 4.5ZM11.1177 4.5C10.1202 4.5 9.25104 5.30767 9.25104 6.31667V9.63333C9.25104 10.6423 10.1202 11.45 11.1177 11.45C12.1152 11.45 12.9844 10.6423 12.9844 9.63333V6.31667C12.9844 5.30767 12.1152 4.5 11.1177 4.5ZM6.13438 6.31667C6.13438 5.9503 6.47884 5.63333 6.86771 5.63333C7.25657 5.63333 7.60104 5.9503 7.60104 6.31667V9.63333C7.60104 9.9997 7.25657 10.3167 6.86771 10.3167C6.47884 10.3167 6.13438 9.9997 6.13438 9.63333V6.31667ZM10.3844 6.31667C10.3844 5.9503 10.7288 5.63333 11.1177 5.63333C11.5066 5.63333 11.851 5.9503 11.851 6.31667V9.63333C11.851 9.9997 11.5066 10.3167 11.1177 10.3167C10.7288 10.3167 10.3844 9.9997 10.3844 9.63333V6.31667ZM3.75938 9.85C3.33135 9.85 2.98438 10.197 2.98438 10.625C2.98438 11.053 3.33135 11.4 3.75938 11.4C4.1874 11.4 4.53438 11.053 4.53438 10.625C4.53438 10.197 4.1874 9.85 3.75938 9.85Z",fill:"currentColor"}))},Rb=e=>{var n;return(e==null?void 0:e.type)==="array"?eye[((n=e.items)==null?void 0:n.type)||"object"]:U1[(e==null?void 0:e.type)||"object"]},WE={display:"flex",alignItems:"center",gap:5},YE=e=>e.charAt(0).toUpperCase()+e.slice(1),p3e=[{label:V.createElement("div",{style:WE},V.createElement(of,{size:"small",svg:Rb({type:"string"})}),YE("string")),value:"string"},{label:V.createElement("div",{style:WE},V.createElement(of,{size:"small",svg:Rb({type:"integer"})}),YE("integer")),value:"integer"},{label:V.createElement("div",{style:WE},V.createElement(of,{size:"small",svg:Rb({type:"number"})}),YE("number")),value:"number"},{label:V.createElement("div",{style:WE},V.createElement(of,{size:"small",svg:Rb({type:"boolean"})}),YE("boolean")),value:"boolean"},{label:V.createElement("div",{style:WE},V.createElement(of,{size:"small",svg:Rb({type:"object"})}),YE("object")),value:"object"}],Svr=[...p3e,{label:V.createElement("div",{style:WE},V.createElement(of,{size:"small",svg:Rb({type:"array"})}),YE("array")),value:"array",children:p3e.map(e=>({...e,value:`${e.value}`,label:V.createElement("div",{style:WE},V.createElement(of,{size:"small",svg:Rb({type:"array",items:{type:e.value}})}),YE(e.value))}))}];function Evr(){const e=unr(),n=m.useCallback(i=>{var a,s;if(i.meta.icon)return typeof i.meta.icon=="string"?V.createElement("img",{style:{marginRight:8},width:12,height:12,src:i.meta.icon}):i.meta.icon;const o=i.type;return wP.isArray(o)?V.createElement(of,{size:"small",svg:eye[(a=o.items)==null?void 0:a.kind.toLowerCase()]||U1.array}):wP.isCustomType(o)?V.createElement(of,{size:"small",svg:U1[o.typeName.toLowerCase()]}):V.createElement(of,{size:"small",svg:U1[(s=i.type)==null?void 0:s.kind.toLowerCase()]})},[]),r=(i,o=[])=>{let a=i==null?void 0:i.type,s;if(wP.isObject(a)&&(s=(a.properties||[]).map(c=>r(c,[...o,i])).filter(Boolean),!(s!=null&&s.length)))return null;const l=[...o.map(c=>c.key),i.key].join(".");return{key:l,label:i.meta.title||i.key,value:l,icon:n(i),children:s}};return[...e.variables.slice(0).reverse()].map(i=>r(i)).filter(Boolean)}var Cct=({value:e,onChange:n,style:r,readonly:i=!1,hasError:o})=>{const a=Evr();return V.createElement(V.Fragment,null,V.createElement(yG,{dropdownMatchSelectWidth:!1,disabled:i,treeData:a,size:"small",value:e,style:{...r,outline:o?"1px solid red":void 0},validateStatus:o?"error":void 0,onChange:s=>{n(s)},showClear:!0,placeholder:"Select Variable..."}))},wct=e=>(e==null?void 0:e.type)==="array"&&(e!=null&&e.items)?[e.type,...wct(e.items)||[]]:e!=null&&e.type?[e.type]:void 0,xct=e=>{const[n,...r]=e||[];return n==="array"?{type:"array",items:xct(r)}:{type:n}};function Cvr(e){const{value:n,onChange:r}=e,i=m.useMemo(()=>wct(n),[n]);return V.createElement(BR,{size:"small",triggerRender:()=>V.createElement(ol,{size:"small",style:{width:50}},Rb(n)),treeData:Svr,value:i,leafOnly:!0,onChange:o=>{r(xct(o))}})}var wvr=oi.div`
|
||
/* & .semi-input {
|
||
background-color: #fff;
|
||
border-radius: 6px;
|
||
height: 24px;
|
||
} */
|
||
`,xvr=oi.div`
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
`,Tvr=oi.div`
|
||
cursor: pointer;
|
||
margin-right: 5px;
|
||
`,Ovr=oi.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
`,Rvr=oi.div`
|
||
font-size: 12px;
|
||
color: #999;
|
||
font-weight: 400;
|
||
margin-bottom: 2px;
|
||
`,Tct=oi.div`
|
||
display: grid;
|
||
grid-template-columns: auto 1fr;
|
||
|
||
${({$shrink:e})=>e&&f$`
|
||
padding-left: 10px;
|
||
margin-top: 10px;
|
||
`}
|
||
`,Ivr=oi.div`
|
||
grid-column: 1;
|
||
position: relative;
|
||
|
||
${({$showLine:e,$isLast:n})=>e&&f$`
|
||
&::before {
|
||
/* 竖线 */
|
||
content: '';
|
||
position: absolute;
|
||
left: -22px;
|
||
top: -18px;
|
||
bottom: ${n?"12px":"0px"};
|
||
width: 1px;
|
||
background: #d9d9d9;
|
||
display: block;
|
||
}
|
||
|
||
&::after {
|
||
/* 横线 */
|
||
content: '';
|
||
position: absolute;
|
||
left: -22px; // 横线起点和竖线对齐
|
||
top: 12px; // 跟随你的行高调整
|
||
width: 22px; // 横线长度
|
||
height: 1px;
|
||
background: #d9d9d9;
|
||
display: block;
|
||
}
|
||
`}
|
||
`,Nvr=oi.div`
|
||
grid-column: 2;
|
||
margin-bottom: 10px;
|
||
|
||
&:last-child {
|
||
margin-bottom: 0px;
|
||
}
|
||
`,Mvr=oi.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
|
||
${({$expand:e})=>e&&f$`
|
||
background-color: #f5f5f5;
|
||
padding: 10px;
|
||
border-radius: 4px;
|
||
`}
|
||
`,Pvr=oi.div`
|
||
display: none;
|
||
|
||
${({$collapse:e})=>e&&f$`
|
||
display: block;
|
||
`}
|
||
`,Avr=oi.div`
|
||
flex-grow: 1;
|
||
`,Dvr=oi.div``,kvr=oi.div``,Lvr=oi.div`
|
||
white-space: nowrap;
|
||
`,$vr=V.createElement("svg",{className:"icon-icon icon-icon-coz_add_node ",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6.49988C11 8.64148 9.50397 10.4337 7.49995 10.8884V15.4998C7.49995 16.0521 7.94767 16.4998 8.49995 16.4998H11.208C11.0742 16.8061 11 17.1443 11 17.4998C11 17.8554 11.0742 18.1936 11.208 18.4998H8.49995C6.8431 18.4998 5.49995 17.1567 5.49995 15.4998V10.8884C3.49599 10.4336 2 8.64145 2 6.49988C2 4.0146 4.01472 1.99988 6.5 1.99988C8.98528 1.99988 11 4.0146 11 6.49988ZM6.5 8.99988C7.88071 8.99988 9 7.88059 9 6.49988C9 5.11917 7.88071 3.99988 6.5 3.99988C5.11929 3.99988 4 5.11917 4 6.49988C4 7.88059 5.11929 8.99988 6.5 8.99988Z"}),V.createElement("path",{d:"M17.5 12.4999C18.0523 12.4999 18.5 12.9476 18.5 13.4999V16.4999H21.5C22.0523 16.4999 22.5 16.9476 22.5 17.4999C22.5 18.0522 22.0523 18.4999 21.5 18.4999H18.5V21.4999C18.5 22.0522 18.0523 22.4999 17.5 22.4999C16.9477 22.4999 16.5 22.0522 16.5 21.4999V18.4999H13.5C12.9477 18.4999 12.5 18.0522 12.5 17.4999C12.5 16.9476 12.9477 16.4999 13.5 16.4999H16.5V13.4999C16.5 12.9476 16.9477 12.4999 17.5 12.4999Z"})),Fvr=()=>V.createElement(of,{size:"small",svg:$vr}),Bvr=0;function h3e(){return Bvr++}function Oct(e,n){return e?e.type==="array"&&e.items?Oct(e.items,[...n||[],"items"]):{schema:e,path:n}:{}}function Rct(e,n){var f;const r=m.useMemo(()=>Oct(e),[e==null?void 0:e.type,e==null?void 0:e.items]),i=((f=r.schema)==null?void 0:f.type)==="object",o=m.useMemo(()=>{var p;return i?Object.entries(((p=r.schema)==null?void 0:p.properties)||{}).map(([h,g])=>{var v;return{key:h3e(),name:h,isPropertyRequired:((v=e==null?void 0:e.required)==null?void 0:v.includes(h))||!1,...g}}):[]},[i]),[a,s]=m.useState(o),l=p=>{s(h=>{const g=p(h),v={},y=[];for(const S of g)S.name&&(v[S.name]=S,S.isPropertyRequired&&y.push(S.name));let _=e||{};return r.path&&(_=r.path.reduce((S,b)=>S[b],e||{})),_.properties=v,_.required=y,n==null||n(e||{}),g})},c=()=>{l(p=>[...p,{key:h3e(),name:"",type:"string"}])},u=p=>{l(h=>h.filter(g=>g.key!==p))},d=(p,h)=>{l(g=>g.map(v=>v.key===p?h:v))};return m.useEffect(()=>{i||s([])},[i]),{propertyList:a,isDrilldownObject:i,onAddProperty:c,onRemoveProperty:u,onEditProperty:d}}function jvr(e){const{value:n={type:"object"},onChange:r}=e,{propertyList:i,onAddProperty:o,onRemoveProperty:a,onEditProperty:s}=Rct(n,r);return V.createElement(wvr,null,V.createElement(Tct,null,i.map(l=>V.createElement(Ict,{key:l.key,value:l,onChange:c=>{s(l.key,c)},onRemove:()=>{a(l.key)}}))),V.createElement(ol,{size:"small",style:{marginTop:10},icon:V.createElement(aG,null),onClick:o},"Add"))}function Ict(e){const{value:n,onChange:r,onRemove:i,$isLast:o,$showLine:a}=e;console.log("isLast",o);const[s,l]=m.useState(!1),[c,u]=m.useState(!1),{name:d,type:f,items:p,description:h,isPropertyRequired:g}=n||{},v=m.useMemo(()=>({type:f,items:p}),[f,p]),{propertyList:y,isDrilldownObject:_,onAddProperty:S,onRemoveProperty:b,onEditProperty:E}=Rct(n,r),w=(x,T)=>{r==null||r({...n||{},[x]:T})},C=_&&y.length>0;return V.createElement(V.Fragment,null,V.createElement(Ivr,{$isLast:o,$showLine:a},C&&V.createElement(Tvr,{onClick:()=>u(x=>!x)},c?V.createElement(xve,{size:"small"}):V.createElement(jlt,{size:"small"}))),V.createElement(Nvr,null,V.createElement(Mvr,{$expand:s},V.createElement(xvr,null,V.createElement(Avr,null,V.createElement(Uy,{placeholder:"Input Variable Name",size:"small",value:d,onChange:x=>w("name",x)})),V.createElement(Dvr,null,V.createElement(Cvr,{value:v,onChange:x=>{r==null||r({...n||{},...x})}})),V.createElement(kvr,null,V.createElement(Jj,{checked:g,onChange:x=>w("isPropertyRequired",x.target.checked)})),V.createElement(Lvr,null,V.createElement(ul,{size:"small",theme:"borderless",icon:s?V.createElement(Glt,{size:"small"}):V.createElement(Ove,{size:"small"}),onClick:()=>l(x=>!x)}),_&&V.createElement(ul,{size:"small",theme:"borderless",icon:V.createElement(Fvr,null),onClick:()=>{S(),u(!0)}}),V.createElement(ul,{size:"small",theme:"borderless",icon:V.createElement(Afr,{size:"small"}),onClick:i}))),s&&V.createElement(Ovr,null,V.createElement(Rvr,null,"Description"),V.createElement(Uy,{size:"small",value:h,onChange:x=>w("description",x),placeholder:"Help LLM to understand the property"}))),C&&V.createElement(Pvr,{$collapse:c},V.createElement(Tct,{$shrink:!0},y.map((x,T)=>V.createElement(Ict,{key:x.key,value:x,onChange:R=>{E(x.key,R)},onRemove:()=>{b(x.key)},$isLast:T===y.length-1,$showLine:!0}))))))}var Uvr=Object.defineProperty,Hvr=Object.getOwnPropertyDescriptor,vN=(e,n,r,i)=>{for(var o=i>1?void 0:i?Hvr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Uvr(n,r,o),o},Nct={canvasWidth:250,canvasHeight:250,canvasPadding:50,canvasBackground:"rgba(242, 243, 245, 1)",canvasBorderRadius:10,viewportBackground:"rgba(255, 255, 255, 1)",viewportBorderRadius:4,viewportBorderColor:"rgba(6, 7, 9, 0.10)",viewportBorderWidth:1,viewportBorderDashLength:void 0,nodeColor:"rgba(0, 0, 0, 0.10)",nodeBorderRadius:2,nodeBorderWidth:.145,nodeBorderColor:"rgba(6, 7, 9, 0.10)",overlayColor:"rgba(255, 255, 255, 0.55)"},zvr={scale:.7,opacity:1,translateX:15,translateY:15},Vvr={canvasStyle:Nct,canvasClassName:"gedit-minimap-canvas",enableActiveDebounce:!1,enableInactiveDebounce:!0,enableDisplayAllNodes:!1,activeDebounceTime:0,inactiveDebounceTime:5},Mct=e=>{const{service:n,panelStyles:r={},containerStyles:i={},inactiveStyle:o={}}=e,a={...zvr,...o},s=m.useRef(null),[l,c]=m.useState(!1);m.useEffect(()=>{const h=s.current;h&&n.canvas&&h.appendChild(n.canvas);const g=n.onActive(v=>{c(v)});return()=>{g.dispose()}},[]);const u=l?1:a.scale,d=l?1:a.opacity,f=l?0:a.translateX,p=l?0:a.translateY;return V.createElement("div",{className:"minimap-container",style:{position:"fixed",right:30,bottom:70,transition:"all 0.3s ease",transform:`scale(${u}) translate(${f}px, ${p}px)`,opacity:d,transformOrigin:"bottom right",...i}},V.createElement("div",{className:"minimap-panel",style:{display:"flex",width:"100%",height:"100%",borderRadius:"10px",backgroundColor:"rgba(255, 255, 255, 1)",border:"0.572px solid rgba(6, 7, 9, 0.10)",overflow:"hidden",boxShadow:"0px 2.289px 6.867px 0px rgba(0, 0, 0, 0.08), 0px 4.578px 13.733px 0px rgba(0, 0, 0, 0.04)",boxSizing:"border-box",padding:8,...r},"data-flow-editor-selectable":"false",ref:s,onMouseEnter:()=>{n.setActivate(!0)},onMouseLeave:()=>{n.setActivate(!1)}}))},Eb;(e=>{const n=r=>r.width>0&&r.height>0;e.clear=r=>{const{canvas:i,context:o}=r;o.clearRect(0,0,i.width,i.height)},e.backgroundColor=r=>{const{canvas:i,context:o,color:a}=r;o.fillStyle=a,o.fillRect(0,0,i.width,i.height)},e.rectangle=r=>{const{context:i,rect:o,color:a}=r;n(o)&&(i.fillStyle=a,i.fillRect(o.x,o.y,o.width,o.height))},e.roundRectangle=r=>{const{context:i,rect:o,color:a,radius:s,borderColor:l,borderDashLength:c,borderWidth:u=0}=r,{x:d,y:f,width:p,height:h}=o;if(!n(o))return;i.beginPath(),(()=>{i.moveTo(d+s,f),i.lineTo(d+p-s,f),i.quadraticCurveTo(d+p,f,d+p,f+s),i.lineTo(d+p,f+h-s),i.quadraticCurveTo(d+p,f+h,d+p-s,f+h),i.lineTo(d+s,f+h),i.quadraticCurveTo(d,f+h,d,f+h-s),i.lineTo(d,f+s),i.quadraticCurveTo(d,f,d+s,f),i.closePath()})(),i.fillStyle=a,i.fill(),l&&u>0&&(i.strokeStyle=l,i.lineWidth=u,c?i.setLineDash([c,c]):i.setLineDash([]),i.stroke(),i.setLineDash([]))},e.overlay=r=>{const{canvas:i,context:o,offset:a,scale:s,rect:l,color:c}=r;n(l)&&(o.fillStyle=c,o.fillRect(0,0,i.width,(l.y+a.y)*s),o.fillRect(0,(l.y+l.height+a.y)*s,i.width,i.height-(l.y+l.height+a.y)*s),o.fillRect(0,(l.y+a.y)*s,(l.x+a.x)*s,l.height*s),o.fillRect((l.x+l.width+a.x)*s,(l.y+a.y)*s,i.width-(l.x+l.width+a.x)*s,l.height*s))}})(Eb||(Eb={}));var xm=class{constructor(){this.onActive=e=>(this.onActiveCallbacks.add(e),{dispose:()=>{this.onActiveCallbacks.delete(e)}}),this.render=this._render,this.handleWheel=e=>{},this.handleStartDrag=e=>{e.preventDefault(),e.stopPropagation();const n=this.createRenderContext(),{viewRect:r,scale:i,offset:o}=n,a=this.canvas.getBoundingClientRect(),s={x:e.clientX-a.left,y:e.clientY-a.top},l=this.rectOnCanvas({rect:r,scale:i,offset:o});this.isPointInRect({point:s,rect:l})&&(this.isDragging=!0,this.dragStart=s,document.addEventListener("mousemove",this.handleDragging),document.addEventListener("mouseup",this.handleEndDrag))},this.handleDragging=e=>{if(!this.isDragging||!this.dragStart)return;e.preventDefault(),e.stopPropagation();const n=this.createRenderContext(),{scale:r}=n,i=this.canvas.getBoundingClientRect(),o=e.clientX-i.left,a=e.clientY-i.top,s=(o-this.dragStart.x)/r,l=(a-this.dragStart.y)/r;this.updateScrollPosition(s,l),this.dragStart={x:o,y:a},this.render()},this.handleEndDrag=e=>{e.preventDefault(),e.stopPropagation(),document.removeEventListener("mousemove",this.handleDragging),document.removeEventListener("mouseup",this.handleEndDrag),this.isDragging=!1,this.dragStart=void 0,this.setActivate(this.isMouseInCanvas(e))},this.handleCursor=e=>{if(!this.activated)return;const n=this.createRenderContext(),{viewRect:r,scale:i,offset:o}=n,a=this.canvas.getBoundingClientRect(),s={x:e.clientX-a.left,y:e.clientY-a.top},l=this.rectOnCanvas({rect:r,scale:i,offset:o});this.isPointInRect({point:s,rect:l})?this.canvas.style.cursor="grab":this.canvas.style.cursor="default"},this.canvas=document.createElement("canvas"),this.context2D=this.canvas.getContext("2d"),this.initialized=!!this.context2D,this.onActiveCallbacks=new Set,this.toDispose=new Ei,this.render=this._render,this.activated=!1,this.isDragging=!1}init(e){this.options=Vvr,Object.assign(this.options,e),this.setDebounce({enableDebounce:this.options.enableInactiveDebounce,debounceTime:this.options.inactiveDebounceTime}),this.initStyle(),this.mountListener()}dispose(){this.toDispose.dispose(),this.initialized=!1,this.activated=!1,this.removeEventListeners()}setActivate(e){e!==this.activated&&(!e&&this.isDragging||(this.activated=e,e?(this.setDebounce({enableDebounce:this.options.enableActiveDebounce,debounceTime:this.options.activeDebounceTime}),this.addEventListeners()):(this.setDebounce({enableDebounce:this.options.enableInactiveDebounce,debounceTime:this.options.inactiveDebounceTime}),this.removeEventListeners()),this.render(),this.onActiveCallbacks.forEach(n=>n(e))))}initStyle(){if(!this.initialized)return;const{canvasClassName:e,canvasStyle:n}=this.options;this.canvas.className=e,this.style={...Nct,...n},this.canvas.width=this.style.canvasWidth,this.canvas.height=this.style.canvasHeight,this.canvas.style.borderRadius=this.style.canvasBorderRadius?`${this.style.canvasBorderRadius}px`:"unset"}setDebounce(e){const{enableDebounce:n,debounceTime:r}=e;n?this.render=Mn.debounce(this._render,r):this.render=this._render}_render(){if(!this.initialized)return;const e=this.createRenderContext();this.renderCanvas(e)}createRenderContext(){const{canvas:e,context2D:n,nodes:r}=this,o=this.nodeTransforms(r).map(d=>d.bounds),a=this.viewRect(),s=this.renderRect(o).withPadding({top:this.style.canvasPadding,bottom:this.style.canvasPadding,left:this.style.canvasPadding,right:this.style.canvasPadding}),l=Qn.enlarge([a,s]),{scale:c,offset:u}=this.calculateScaleAndOffset({canvasRect:l});return{canvas:e,context2D:n,nodeRects:o,canvasRect:l,viewRect:a,renderRect:s,scale:c,offset:u}}renderCanvas(e){const{canvas:n,context2D:r,nodeRects:i,viewRect:o,scale:a,offset:s}=e;Eb.clear({canvas:n,context:r}),Eb.backgroundColor({canvas:n,context:r,color:this.style.canvasBackground}),Eb.roundRectangle({context:r,rect:this.rectOnCanvas({rect:o,scale:a,offset:s}),color:this.style.viewportBackground,radius:this.style.viewportBorderRadius}),i.forEach(l=>{Eb.roundRectangle({context:r,rect:this.rectOnCanvas({rect:l,scale:a,offset:s}),color:this.style.nodeColor,radius:this.style.nodeBorderRadius,borderWidth:this.style.nodeBorderWidth,borderColor:this.style.nodeBorderColor})}),Eb.roundRectangle({context:r,rect:this.rectOnCanvas({rect:o,scale:a,offset:s}),color:"rgba(255, 255, 255, 0)",radius:this.style.viewportBorderRadius,borderColor:this.style.viewportBorderColor,borderWidth:this.style.viewportBorderWidth,borderDashLength:this.style.viewportBorderDashLength}),Eb.overlay({canvas:n,context:r,offset:s,scale:a,rect:o,color:this.style.overlayColor})}calculateScaleAndOffset(e){const{canvasRect:n}=e,{width:r,height:i}=this.canvas,o=r/n.width,a=i/n.height,s=Math.min(o,a),l=n.width*s,c=n.height*s,u=(r-l)/2,d=(i-c)/2,f={x:u/s-n.x,y:d/s-n.y};return{scale:s,offset:f}}get nodes(){return this.document.getAllNodes().filter(e=>{if(e.hidden)return!1;if(e.flowNodeType!==Fo.ROOT&&!(!this.options.enableDisplayAllNodes&&e.parent&&e.parent.flowNodeType!==Fo.ROOT))return!0})}nodeTransforms(e){return e.map(n=>n.getData(hr)).filter(Boolean)}renderRect(e){return Qn.enlarge(e)}viewRect(){const{width:e,height:n,scrollX:r,scrollY:i,zoom:o}=this.playgroundConfig.config;return new Qn(r/o,i/o,e/o,n/o)}mountListener(){const e=this.entityManager.onEntityChange(()=>this.render());this.toDispose.push(e)}rectOnCanvas(e){const{rect:n,scale:r,offset:i}=e;return new Qn((n.x+i.x)*r,(n.y+i.y)*r,n.width*r,n.height*r)}isPointInRect(e){const{point:n,rect:r}=e;return n.x>=r.x&&n.x<=r.x+r.width&&n.y>=r.y&&n.y<=r.y+r.height}addEventListeners(){this.canvas.addEventListener("wheel",this.handleWheel),this.canvas.addEventListener("mousedown",this.handleStartDrag),this.canvas.addEventListener("mousemove",this.handleCursor)}removeEventListeners(){this.canvas.removeEventListener("wheel",this.handleWheel),this.canvas.removeEventListener("mousedown",this.handleStartDrag),this.canvas.removeEventListener("mousemove",this.handleCursor)}isMouseInCanvas(e){const n=this.canvas.getBoundingClientRect();return e.clientX>=n.left&&e.clientX<=n.right&&e.clientY>=n.top&&e.clientY<=n.bottom}updateScrollPosition(e,n){const{scrollX:r,scrollY:i,zoom:o}=this.playgroundConfig.config;this.playgroundConfig.updateConfig({scrollX:r+e*o,scrollY:i+n*o})}};vN([Ot(jo)],xm.prototype,"document",2);vN([Ot(Lo)],xm.prototype,"entityManager",2);vN([Ot(da)],xm.prototype,"playgroundConfig",2);xm=vN([Pn()],xm);var ID=class extends Oa{constructor(){super(),this.className="gedit-minimap-layer gedit-playground-layer",this.node=Tr.createDivWithClass(this.className),this.node.style.zIndex="9999"}render(){return this.options.disableLayer?V.createElement(V.Fragment,null):V.createElement(Mct,{service:this.service,panelStyles:this.options.panelStyles,containerStyles:this.options.containerStyles,inactiveStyle:this.options.inactiveStyle})}};ID.type="FlowMinimapLayer";vN([Ot(xm)],ID.prototype,"service",2);ID=vN([Pn()],ID);var Gvr=pa({onBind:({bind:e})=>{e(xm).toSelf().inSingletonScope()},onInit:(e,n)=>{e.playground.registerLayer(ID,n),e.get(xm).init(n)},onDispose:e=>{e.get(xm).dispose()}}),Wvr=Object.defineProperty,Yvr=Object.getOwnPropertyDescriptor,$S=(e,n,r,i)=>{for(var o=i>1?void 0:i?Yvr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Wvr(n,r,o),o},Pct={enableEdgeSnapping:!0,edgeThreshold:7,enableGridSnapping:!1,gridSize:20,enableMultiSnapping:!1,enableOnlyViewportSnapping:!0,edgeColor:"#4E40E5",alignColor:"#4E40E5",edgeLineWidth:2,alignLineWidth:2,alignCrossWidth:16},tye=1e-5,dp=(e,n)=>e===void 0||n===void 0?!1:Math.abs(e-n)<tye,dF=(e,n)=>e===void 0||n===void 0?!1:n-e>tye,P2=(e,n)=>e===void 0||n===void 0?!1:e-n>tye,dh=(e,n)=>dp(e,n)||dF(e,n),NT=e=>typeof e=="number"&&!isNaN(e),Tm=class{constructor(){this.disposers=[],this.snapEmitter=new Hn,this.onSnap=this.snapEmitter.event,this._disabled=!1}init(e={}){this.options={...Pct,...e},this.mountListener()}dispose(){this.disposers.forEach(e=>e.dispose())}get disabled(){return this._disabled}disable(){this._disabled||(this._disabled=!0,this.clear())}enable(){this._disabled&&(this._disabled=!1,this.clear())}mountListener(){const e=this.dragService.registerPosAdjuster(r=>{const{selectedNodes:i,position:o}=r,a=this.options.enableMultiSnapping?!1:i.length!==1;return this._disabled||!this.options.enableEdgeSnapping||a?{x:0,y:0}:this.snapping({targetNodes:i,position:o})}),n=this.dragService.onNodesDrag(r=>{r.type!=="onDragEnd"||this._disabled||(this.options.enableGridSnapping&&this.gridSnapping({targetNodes:r.nodes,gridSize:this.options.gridSize}),this.options.enableEdgeSnapping&&this.clear())});this.disposers.push(e,n)}snapping(e){const{targetNodes:n,position:r}=e,i=this.getBounds(n),o=new Qn(r.x,r.y,i.width,i.height),a=this.getSnapNodeRects({targetNodes:n,targetRect:o}),{alignOffset:s,alignRects:l,alignSpacing:c}=this.calcAlignOffset({targetRect:o,alignThreshold:this.options.edgeThreshold,snapNodeRects:a}),{snapOffset:u,snapEdgeLines:d}=this.calcSnapOffset({targetRect:o,edgeThreshold:this.options.edgeThreshold,snapNodeRects:a}),f={x:u.x||s.x,y:u.y||s.y},p=new Qn(r.x+f.x,r.y+f.y,o.width,o.height);return this.snapEmitter.fire({snapRect:p,snapEdgeLines:d,alignRects:l,alignSpacing:c}),f}calcSnapOffset(e){const{snapNodeRects:n,edgeThreshold:r,targetRect:i}=e,o=this.getSnapLines({snapNodeRects:n}),a=o.horizontal.find(E=>dh(Math.abs(E.y-i.top),r)),s=o.horizontal.find(E=>dh(Math.abs(E.y-i.bottom),r)),l=o.vertical.find(E=>dh(Math.abs(E.x-i.left),r)),c=o.vertical.find(E=>dh(Math.abs(E.x-i.right),r)),u=o.midHorizontal.find(E=>dh(Math.abs(E.y-i.center.y),r)),d=o.midVertical.find(E=>dh(Math.abs(E.x-i.center.x),r)),f=a==null?void 0:a.y,p=NT(s==null?void 0:s.y)?s.y-i.height:void 0,h=l==null?void 0:l.x,g=NT(c==null?void 0:c.x)?c.x-i.width:void 0,v=NT(u==null?void 0:u.y)?u.y-i.height/2:void 0,y=NT(d==null?void 0:d.x)?d.x-i.width/2:void 0,_={x:y??h??g??i.x,y:v??f??p??i.y},S={x:_.x-i.x,y:_.y-i.y},b={top:dp(f,_.y)?a:void 0,bottom:dp(p,_.y)?s:void 0,left:dp(h,_.x)?l:void 0,right:dp(g,_.x)?c:void 0,midVertical:dp(y,_.x)?d:void 0,midHorizontal:dp(v,_.y)?u:void 0};return{snapOffset:S,snapEdgeLines:b}}gridSnapping(e){const{gridSize:n,targetNodes:r}=e,i=this.getBounds(r),o=l=>Math.round(l/n)*n,a={x:o(i.x),y:o(i.y)},s={x:a.x-i.x,y:a.y-i.y};r.forEach(l=>this.updateNodePositionWithOffset({node:l,offset:s}))}clear(){this.snapEmitter.fire({snapEdgeLines:{},snapRect:Qn.EMPTY,alignRects:{top:[],bottom:[],left:[],right:[]},alignSpacing:{}})}getSnapLines(e){const{snapNodeRects:n}=e,r=[],i=[],o=[],a=[];return n.forEach(s=>{const l=s.rect,c=l.center,u={y:l.top,sourceNodeId:s.id},d={y:l.bottom,sourceNodeId:s.id},f={x:l.left,sourceNodeId:s.id},p={x:l.right,sourceNodeId:s.id},h={y:c.y,sourceNodeId:s.id},g={x:c.x,sourceNodeId:s.id};r.push(u,d),i.push(f,p),o.push(h),a.push(g)}),{horizontal:r,vertical:i,midHorizontal:o,midVertical:a}}getAvailableNodes(e){var l;const{targetNodes:n,targetRect:r}=e,i=r.center,o=((l=n[0].parent)==null?void 0:l.id)??this.document.root.id,a=n.map(c=>c.id);return a.push(Fo.ROOT),this.nodes.filter(c=>{var u;return((u=c.parent)==null?void 0:u.id)===o}).filter(c=>!a.includes(c.id)).sort((c,u)=>{const d=c.getData(hr).bounds.center,f=u.getData(hr).bounds.center,p=Math.abs(d.x-i.x)+Math.abs(d.y-i.y),h=Math.abs(f.x-i.x)+Math.abs(f.y-i.y);return p-h})}viewRect(){const{width:e,height:n,scrollX:r,scrollY:i,zoom:o}=this.playgroundConfig.config;return new Qn(r/o,i/o,e/o,n/o)}getSnapNodeRects(e){const n=this.getAvailableNodes(e),r=this.viewRect();return n.map(i=>{var a;const o={id:i.id,rect:i.getData(hr).bounds,entity:i};if(!(this.options.enableOnlyViewportSnapping&&((a=i.parent)==null?void 0:a.flowNodeType)===Fo.ROOT&&!Qn.intersects(r,o.rect)))return o}).filter(Boolean)}get nodes(){return this.entityManager.getEntities(Ap)}getBounds(e){return e.length===0?Qn.EMPTY:Qn.enlarge(e.map(n=>n.getData(hr).bounds))}updateNodePositionWithOffset(e){const{node:n,offset:r}=e,i=n.getData(Ui),o={x:i.position.x+r.x,y:i.position.y+r.y};i.update({position:o}),this.document.layout.updateAffectedTransform(n)}calcAlignOffset(e){const{snapNodeRects:n,targetRect:r,alignThreshold:i}=e,o=this.getAlignRects({targetRect:r,snapNodeRects:n}),a=this.calcAlignSpacing({targetRect:r,alignRects:o});let s,l,c,u,d,f;if(a.top){const g=o.top[0].rect.bottom+a.top;dh(Math.abs(r.top-g),i)?s=g:a.top=void 0}if(a.bottom){const g=o.bottom[0].rect.top-a.bottom;dF(Math.abs(r.bottom-g),i)?l=g-r.height:a.bottom=void 0}if(a.left){const g=o.left[0].rect.right+a.left;dh(Math.abs(r.left-g),i)?c=g:a.left=void 0}if(a.right){const g=o.right[0].rect.left-a.right;dh(Math.abs(r.right-g),i)?u=g-r.width:a.right=void 0}if(a.midHorizontal){const g=o.left[0].rect.right+a.midHorizontal;dh(Math.abs(r.left-g),i)?f=g:a.midHorizontal=void 0}if(a.midVertical){const g=o.top[0].rect.bottom+a.midVertical;dh(Math.abs(r.top-g),i)?d=g:a.midVertical=void 0}const p={x:f??c??u??r.x,y:d??s??l??r.y};return{alignOffset:{x:p.x-r.x,y:p.y-r.y},alignRects:o,alignSpacing:a}}calcAlignSpacing(e){var u,d,f,p;const{targetRect:n,alignRects:r}=e,i=this.getDirectionAlignSpacing({rects:r.top,isHorizontal:!1}),o=this.getDirectionAlignSpacing({rects:r.bottom,isHorizontal:!1}),a=this.getDirectionAlignSpacing({rects:r.left,isHorizontal:!0}),s=this.getDirectionAlignSpacing({rects:r.right,isHorizontal:!0}),l=this.getMidAlignSpacing({rectA:(u=r.left[0])==null?void 0:u.rect,rectB:(d=r.right[0])==null?void 0:d.rect,targetRect:n,isHorizontal:!0}),c=this.getMidAlignSpacing({rectA:(f=r.top[0])==null?void 0:f.rect,rectB:(p=r.bottom[0])==null?void 0:p.rect,targetRect:n,isHorizontal:!1});return{top:i,bottom:o,left:a,right:s,midHorizontal:l,midVertical:c}}getAlignRects(e){const{targetRect:n,snapNodeRects:r}=e,i=[],o=[],a=[],s=[];return r.forEach(l=>{const c=l.rect,{isVerticalIntersection:u,isHorizontalIntersection:d,isIntersection:f}=this.intersection(c,n);f||(u?P2(c.center.y,n.center.y)?o.push({rect:c,sourceNodeId:l.id}):i.push({rect:c,sourceNodeId:l.id}):d&&(P2(c.center.x,n.center.x)?s.push({rect:c,sourceNodeId:l.id}):a.push({rect:c,sourceNodeId:l.id})))}),{top:i,bottom:o,left:a,right:s}}getMidAlignSpacing(e){const{rectA:n,rectB:r,targetRect:i,isHorizontal:o}=e;if(!n||!r)return;const{isVerticalIntersection:a,isHorizontalIntersection:s,isIntersection:l}=this.intersection(n,r);if(!l){if(o&&s&&!a)return(Math.min(Math.abs(n.left-r.right),Math.abs(n.right-r.left))-i.width)/2;if(!o&&a&&!s)return(Math.min(Math.abs(n.top-r.bottom),Math.abs(n.bottom-r.top))-i.height)/2}}getDirectionAlignSpacing(e){const{rects:n,isHorizontal:r}=e;if(n.length<2)return;const i=n[0].rect,o=n[1].rect,{isVerticalIntersection:a,isHorizontalIntersection:s,isIntersection:l}=this.intersection(i,o);if(!l){if(r&&s&&!a)return Math.min(Math.abs(i.left-o.right),Math.abs(i.right-o.left));if(!r&&a&&!s)return Math.min(Math.abs(i.top-o.bottom),Math.abs(i.bottom-o.top))}}intersection(e,n){const r=dF(e.left,n.right)&&P2(e.right,n.left),i=dF(e.top,n.bottom)&&P2(e.bottom,n.top);return{isHorizontalIntersection:i,isVerticalIntersection:r,isIntersection:i&&r}}};$S([Ot(ei)],Tm.prototype,"document",2);$S([Ot(Lo)],Tm.prototype,"entityManager",2);$S([Ot(Ya)],Tm.prototype,"dragService",2);$S([Ot(da)],Tm.prototype,"playgroundConfig",2);Tm=$S([Pn()],Tm);var HR=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-playground-layer gedit-flow-snap-layer"),this.edgeLines=[],this.alignLines=[]}onReady(){this.node.style.zIndex="9999",this.toDispose.pushAll([this.service.onSnap(e=>{this.edgeLines=this.calcEdgeLines(e),this.alignLines=this.calcAlignLines(e),this.render()})])}render(){return V.createElement(V.Fragment,null,this.alignLines.length>0&&V.createElement("div",{className:"workflow-snap-align-lines"},this.renderAlignLines()),this.edgeLines.length>0&&V.createElement("div",{className:"workflow-snap-edge-lines"},this.renderEdgeLines()))}onZoom(e){this.node.style.transform=`scale(${e})`}renderEdgeLines(){return this.edgeLines.map(e=>{const{className:n,sourceNode:r,top:i,left:o,width:a,height:s,dashed:l}=e,c=`${n}-${r}-${i}-${o}-${a}-${s}`,u=a<s,d=`${this.options.edgeLineWidth}px ${l?"dashed":"solid"} ${this.options.edgeColor}`;return V.createElement("div",{className:`workflow-snap-edge-line ${n}`,"data-testid":"sdk.workflow.canvas.snap.edgeLine","data-snap-line-id":c,"data-snap-line-source-node":r,key:c,style:{top:i,left:o,width:a,height:s,position:"absolute",borderLeft:u?d:"none",borderTop:u?"none":d}})})}renderAlignLines(){return this.alignLines.map(e=>{const n=`${e.className}-${e.sourceNode}-${e.top}-${e.left}-${e.width}-${e.height}`,r=P2(e.width,e.height),i=this.options.alignLineWidth,o=this.options.alignCrossWidth,a=r?e.top-i/2:e.top,s=r?e.left:e.left-i/2;return V.createElement("div",{className:`workflow-snap-align-line ${e.className}`,"data-testid":"sdk.workflow.canvas.snap.alignLine","data-snap-line-id":n,"data-snap-line-source-node":e.sourceNode,key:n,style:{position:"absolute"}},V.createElement("div",{style:{position:"absolute",top:a,left:s,width:r?e.width:i,height:r?i:e.height,backgroundColor:this.options.alignColor}}),V.createElement("div",{style:{position:"absolute",top:r?a-(o-i)/2:a,left:r?s:s-(o-i)/2,width:r?i:o,height:r?o:i,backgroundColor:this.options.alignColor}}),V.createElement("div",{style:{position:"absolute",top:r?a-(o-i)/2:a+e.height-i,left:r?s+e.width-i:s-(o-i)/2,width:r?i:o,height:r?o:i,backgroundColor:this.options.alignColor}}))})}calcEdgeLines(e){const{alignRects:n,snapRect:r,snapEdgeLines:i}=e,o=[],a=this.directionFullAlign({alignRects:n.top,targetRect:r,isVertical:!0}),s=this.directionFullAlign({alignRects:n.bottom,targetRect:r,isVertical:!0}),l=this.directionFullAlign({alignRects:n.left,targetRect:r,isVertical:!1}),c=this.directionFullAlign({alignRects:n.right,targetRect:r,isVertical:!1});if(a){const d=a.rect.top,f=s?r.bottom-r.height/2-d:r.bottom-d,p=this.options.edgeLineWidth,h={top:d,width:p,height:f};o.push({className:"edge-full-top-left",sourceNode:a.sourceNodeId,left:r.left,...h}),o.push({className:"edge-full-top-right",sourceNode:a.sourceNodeId,left:r.right,...h}),o.push({className:"edge-full-top-mid",sourceNode:a.sourceNodeId,left:r.left+r.width/2,dashed:!0,...h})}if(s){const d=a?r.top+r.height/2:r.top,f=s.rect.bottom-d,p=this.options.edgeLineWidth,h={top:d,width:p,height:f};o.push({className:"edge-full-bottom-left",sourceNode:s.sourceNodeId,left:r.left,...h}),o.push({className:"edge-full-bottom-right",sourceNode:s.sourceNodeId,left:r.right,...h}),o.push({className:"edge-full-bottom-mid",sourceNode:s.sourceNodeId,left:r.left+r.width/2,dashed:!0,...h})}if(l){const d=l.rect.left,f=c?r.right-r.width/2-d:r.right-d,p=this.options.edgeLineWidth,h={left:d,width:f,height:p};o.push({className:"edge-full-left-top",sourceNode:l.sourceNodeId,top:r.top,...h}),o.push({className:"edge-full-left-bottom",sourceNode:l.sourceNodeId,top:r.bottom,...h}),o.push({className:"edge-full-left-mid",sourceNode:l.sourceNodeId,top:r.top+r.height/2,dashed:!0,...h})}if(c){const d=l?r.left+r.width/2:r.left,f=c.rect.right-d,p=this.options.edgeLineWidth,h={left:d,width:f,height:p};o.push({className:"edge-full-right-top",sourceNode:c.sourceNodeId,top:r.top,...h}),o.push({className:"edge-full-right-bottom",sourceNode:c.sourceNodeId,top:r.bottom,...h}),o.push({className:"edge-full-right-mid",sourceNode:c.sourceNodeId,top:r.top+r.height/2,dashed:!0,...h})}const u=Object.entries(i).map(([d,f])=>{if(!f)return;const p=this.document.getNode(f.sourceNodeId);if(!p)return;const h=p.getData(hr).bounds;if(NT(f.x)){const g=Math.min(h.top,r.top),y=Math.max(h.bottom,r.bottom)-g,_=f.x,S=this.options.edgeLineWidth,b=d==="midVertical",E={className:`edge-snapped-${d}`,sourceNode:f.sourceNodeId,top:g,left:_,width:S,height:y,dashed:b},w=g===h.top;return w&&a||!w&&s?void 0:E}else if(NT(f.y)){const g=Math.min(h.left,r.left),y=Math.max(h.right,r.right)-g,_=f.y,S=this.options.edgeLineWidth,b=d==="midHorizontal",E={className:`edge-snapped-${d}`,sourceNode:f.sourceNodeId,top:_,left:g,width:y,height:S,dashed:b},w=g===h.left;return w&&l||!w&&c?void 0:E}}).filter(Boolean);return o.push(...u),o}directionFullAlign(e){var s;const{alignRects:n,targetRect:r,isVertical:i}=e;let o=-1;for(let l=0;l<n.length;l++){const c=n[l],u=((s=n[l-1])==null?void 0:s.rect)??r;if(!this.rectFullAlign(c.rect,u,i))break;o=l}return n[o]}rectFullAlign(e,n,r){return r?dp(e.left,n.left)&&dp(e.right,n.right):dp(e.top,n.top)&&dp(e.bottom,n.bottom)}calcAlignLines(e){const{alignRects:n,alignSpacing:r,snapRect:i}=e,o=this.calcDirectionAlignLines({alignRects:n.top,targetRect:i,isVertical:!0,spacing:r.midVertical??r.top}),a=this.calcDirectionAlignLines({alignRects:n.bottom,targetRect:i,isVertical:!0,spacing:r.midVertical??r.bottom}),s=this.calcDirectionAlignLines({alignRects:n.left,targetRect:i,isVertical:!1,spacing:r.midHorizontal??r.left}),l=this.calcDirectionAlignLines({alignRects:n.right,targetRect:i,isVertical:!1,spacing:r.midHorizontal??r.right});return[...o,...a,...s,...l]}calcDirectionAlignLines(e){var s;const{alignRects:n,targetRect:r,isVertical:i,spacing:o}=e,a=[];if(!o)return a;for(let l=0;l<n.length;l++){const c=n[l],u=c.rect,d=((s=n[l-1])==null?void 0:s.rect)??r,f=i?Math.min(Math.abs(d.top-u.bottom),Math.abs(d.bottom-u.top)):Math.min(Math.abs(d.left-u.right),Math.abs(d.right-u.left));if(!dp(f,o))break;if(i){const p=this.calcHorizontalIntersectionCenter(u,r);a.push({className:"align-vertical",sourceNode:c.sourceNodeId,top:Math.min(u.bottom,d.bottom),left:p,width:1,height:o})}else{const p=this.calcVerticalIntersectionCenter(u,r);a.push({className:"align-horizontal",sourceNode:c.sourceNodeId,top:p,left:Math.min(u.right,d.right),width:o,height:1})}}return a}calcVerticalIntersectionCenter(e,n){const r=Math.max(e.top,n.top),i=Math.min(e.bottom,n.bottom);return(r+i)/2}calcHorizontalIntersectionCenter(e,n){const r=Math.max(e.left,n.left),i=Math.min(e.right,n.right);return(r+i)/2}};HR.type="WorkflowSnapLayer";$S([Ot(ei)],HR.prototype,"document",2);$S([Ot(Tm)],HR.prototype,"service",2);HR=$S([Pn()],HR);var qvr=pa({onBind({bind:e}){e(Tm).toSelf().inSingletonScope()},onInit(e,n){const r={...Pct,...n};e.playground.registerLayer(HR,r),e.get(Tm).init(r)},onDispose(e){e.get(Tm).dispose()}}),Kvr=Object.defineProperty,Xvr=Object.getOwnPropertyDescriptor,FS=(e,n,r,i)=>{for(var o=i>1?void 0:i?Xvr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Kvr(n,r,o),o},Qvr=async()=>{await NS(20)},e7=e=>(e==null?void 0:e.getNodeMeta().isContainer)??!1,ND=(e,n={x:0,y:0})=>{const r=e.node;if(e7(r)){const{point:o}=e;return e.portType==="input"?new Qn(o.x+n.x,o.y-50+n.y,300,100):new Qn(o.x-300,o.y-50,300,100)}return r.getData(hr).bounds},Act=e=>{const{node:n,subsequentNodes:r,fromPort:i,toPort:o,containerNode:a,offset:s,historyService:l,dragService:c}=e;if(!s||!o)return;const u=r.map(g=>{const v=g.getData(Ui);return{x:v.position.x,y:v.position.y}});l.pushOperation({type:CD.dragNodes,value:{ids:r.map(g=>g.id),value:u.map(g=>({x:g.x+s.x,y:g.y+s.y})),oldValue:u}});const d=ND(i),f=ND(o,s),p=n.getData(Ui);let h={x:(d.center.x+f.center.x)/2,y:(d.y+f.y)/2};a&&(h=c.adjustSubNodePosition(n.flowNodeType,a,h)),l.pushOperation({type:CD.dragNodes,value:{ids:[n.id],value:[h],oldValue:[{x:p.position.x,y:p.position.y}]}})},Dct=(e,n)=>{const r=Math.abs(Math.min(e.right,n.right)-Math.max(e.left,n.left)),i=Math.abs(Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top));return Qn.intersects(e,n)?{x:-r,y:-i}:{x:r,y:i}},E5=(e,n)=>e===void 0||n===void 0?!1:e-n>1e-5,g3e=(e,n)=>e===void 0||n===void 0?!1:n-e>1e-5,kct=e=>{var v;const{node:n,fromPort:r,toPort:i,padding:o}=e,a=ND(r),s=ND(i),l=n.getData(hr),c=((v=n.getNodeMeta())==null?void 0:v.size)??{width:l.bounds.width,height:l.bounds.height},u={x:c.width+o.x,y:c.height+o.y},d=Dct(a,s),f={x:E5(d.x,u.x)?0:u.x-d.x,y:E5(d.y,u.y)?0:u.y-d.y};if(f.x===0||f.y===0)return;const p={vertical:Qn.intersects(a,s,"horizontal"),horizontal:Qn.intersects(a,s,"vertical")};let h=0,g=0;return p.horizontal||(E5(s.center.y,a.center.y)?g=f.y:g3e(s.center.y,a.center.y)&&(g=-f.y)),p.vertical||(E5(s.center.x,a.center.x)?h=f.x:g3e(s.center.x,a.center.x)&&(h=-f.x)),{x:h,y:g}},Lct=e=>{var c;const{node:n,linesManager:r}=e;if(e7(n))return[];const i=((c=n.parent)==null?void 0:c.blocks)??[],o=new Set,a=new Map;r.getAllLines().forEach(u=>{var d,f;a.has(u.from.id)||a.set(u.from.id,[]),!(!((d=u.to)!=null&&d.id)||e7(u.to))&&((f=a.get(u.from.id))==null||f.push(u.to.id))});const s=u=>{if(o.has(u))return;o.add(u),(a.get(u)??[]).forEach(s)};return s(n.id),i.filter(u=>o.has(u.id))},Zvr=e=>{const{node:n,fromPort:r,toPort:i,linesManager:o,historyService:a,dragService:s,containerNode:l,padding:c={x:100,y:100}}=e,u=kct({node:n,fromPort:r,toPort:i,padding:c}),d=Lct({node:i.node,linesManager:o});Act({node:n,subsequentNodes:d,fromPort:r,toPort:i,containerNode:l,offset:u,historyService:a,dragService:s})},Jvr=e=>{const{fromPort:n,containerNode:r}=e;if(r)return r;const i=n==null?void 0:n.node,o=i==null?void 0:i.parent;return e7(i)?i:o},eyr=e=>{var c,u;const{fromPort:n,node:r,toPort:i,linesManager:o}=e,a=r.getData(Km);if(!a)return;const s=((c=a.inputPorts)==null?void 0:c.length)>0;if(n&&s){const d=a.inputPorts[0],f=a.inputPorts.length===1;o.createLine({from:n.node.id,fromPort:n.portID,to:r.id,toPort:f?void 0:d.id})}const l=((u=a.outputPorts)==null?void 0:u.length)>0;if(i&&l){const d=a.outputPorts[0];o.createLine({from:r.id,fromPort:d.portID,to:i.node.id,toPort:i.portID})}},tyr=e=>{var f;const{nodeType:n,position:r,fromPort:i,toPort:o,containerNode:a,document:s,dragService:l}=e,c=s.getNodeRegistry(n),u=(f=c==null?void 0:c.meta)==null?void 0:f.size;let d=r;return u?i&&o?d={x:r.x,y:r.y-u.height/2}:i&&!o?d={x:r.x+u.width/2,y:r.y-u.height/2}:!i&&o?d={x:r.x-u.width/2,y:r.y-u.height/2}:d=r:d=r,l.adjustSubNodePosition(n,a,d)},Jd={adjustNodePosition:tyr,buildLine:eyr,getPortBox:ND,getSubsequentNodes:Lct,getContainerNode:Jvr,rectDistance:Dct,subNodesAutoOffset:Zvr,subPositionOffset:kct,updateSubSequentNodesPosition:Act,waitNodeRender:Qvr},bd=class{constructor(){this.toDispose=new Ei,this.callNodePanel=async()=>{}}dispose(){this.toDispose.dispose()}setCallNodePanel(e){this.callNodePanel=e}async call(e){const{panelPosition:n,fromPort:r,enableMultiAdd:i=!1,panelProps:o={},containerNode:a,afterAddNode:s}=e;if(!n||this.playgroundConfig.readonly)return;const l=[];return new Promise(c=>{this.callNodePanel({position:n,enableMultiAdd:i,panelProps:o,containerNode:Jd.getContainerNode({fromPort:r,containerNode:a}),onSelect:async u=>{const d=await this.addNode(e,u);s==null||s(d),i?d&&l.push(d):c(d)},onClose:()=>{c(i?l:void 0)}})})}async singleSelectNodePanel(e){return new Promise(n=>{this.callNodePanel({...e,enableMultiAdd:!1,onSelect:async r=>{n(r)},onClose:()=>{n(void 0)}})})}async addNode(e,n){const{panelPosition:r,fromPort:i,toPort:o,canAddNode:a,autoOffsetPadding:s={x:100,y:100},enableBuildLine:l=!1,enableSelectPosition:c=!1,enableAutoOffset:u=!1,enableDragNode:d=!1}=e;if(!r||!n)return;const{nodeType:f,selectEvent:p,nodeJSON:h}=n,g=Jd.getContainerNode({fromPort:i,containerNode:e.containerNode});if(a&&!a({nodeType:f,containerNode:g}))return;const v=this.playgroundConfig.getPosFromMouseEvent(p),y=e.customPosition?e.customPosition({nodeType:f,selectPosition:v}):Jd.adjustNodePosition({nodeType:f,position:c?v:r,fromPort:i,toPort:o,containerNode:g,document:this.document,dragService:this.dragService}),_=this.document.createWorkflowNodeByType(f,y,h??{},g==null?void 0:g.id);if(_)return u&&i&&o&&Jd.subNodesAutoOffset({node:_,fromPort:i,toPort:o,padding:s,containerNode:g,historyService:this.historyService,dragService:this.dragService,linesManager:this.linesManager}),!l&&!d||(await Jd.waitNodeRender(),l&&Jd.buildLine({fromPort:i,node:_,toPort:o,linesManager:this.linesManager}),d&&(this.selectService.selectNode(_),this.dragService.startDragSelectedNodes(p))),_}};FS([Ot(ei)],bd.prototype,"document",2);FS([Ot(Ya)],bd.prototype,"dragService",2);FS([Ot(Wa)],bd.prototype,"selectService",2);FS([Ot(Ql)],bd.prototype,"linesManager",2);FS([Ot(da)],bd.prototype,"playgroundConfig",2);FS([Ot(qa)],bd.prototype,"historyService",2);bd=FS([Pn()],bd);var nye=class extends Oa{constructor(){super(),this.node=Tr.createDivWithClass("gedit-playground-layer gedit-node-panel-layer"),this.node.style.zIndex="9999",this.renderList=new Map}onReady(){this.service.setCallNodePanel(this.call.bind(this))}onZoom(e){this.node.style.transform=`scale(${e})`}render(){const e=this.options.renderer;return V.createElement(V.Fragment,null,Array.from(this.renderList.keys()).map(n=>{const r=this.renderList.get(n);return V.createElement(e,{key:n,...r})}))}async call(e){const n=nve(),{onSelect:r,onClose:i,enableMultiAdd:o=!1,panelProps:a={}}=e;return new Promise(s=>{const l=()=>{this.renderList.delete(n),this.render(),s()},d={...e,panelProps:a,onSelect:f=>{r(f),o||l()},onClose:()=>{l(),i()}};this.renderList.set(n,d),this.render()})}};nye.type="WorkflowNodePanelLayer";FS([Ot(bd)],nye.prototype,"service",2);var nyr=pa({onBind({bind:e}){e(bd).toSelf().inSingletonScope()},onInit:(e,n)=>{e.playground.registerLayer(nye,{renderer:n.renderer})},onDispose:e=>{e.get(bd).dispose()}}),ryr=Object.defineProperty,iyr=Object.getOwnPropertyDescriptor,BS=(e,n,r,i)=>{for(var o=i>1?void 0:i?iyr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&ryr(n,r,o),o},t7=(e=>(e.In="in",e.Out="out",e))(t7||{}),hc=class{constructor(){this.emitter=new Hn,this.toDispose=new Ei,this.on=this.emitter.event}init(){this.initState(),this.toDispose.push(this.emitter)}ready(){this.toDispose.push(this.listenDragToContainer())}dispose(){this.initState(),this.toDispose.dispose()}async moveOutContainer(e){var s;const{node:n}=e,r=n.parent,i=r==null?void 0:r.parent,o=this.document.toNodeJSON(n);if(!r||!i||!this.isContainer(r)||!((s=o.meta)!=null&&s.position))return;this.operationService.moveNode(n,{parent:i});const a=r.getData(Ui);this.operationService.updateNodePosition(n,{x:a.position.x+o.meta.position.x,y:a.position.y+o.meta.position.y}),a.fireChange(),await this.nextFrame(),a.fireChange(),this.emitter.fire({type:"out",node:n,sourceContainer:r,targetContainer:i})}canMoveOutContainer(e){const n=e.parent,r=n==null?void 0:n.parent;return!(!n||!r||!this.isContainer(n)||!this.dragService.canDropToNode({dragNodeType:e.flowNodeType,dropNode:r}).allowDrop)}async clearInvalidLines(e){var i;const{dragNode:n,sourceParent:r}=e;n&&n.parent!==r&&(((i=n.parent)==null?void 0:i.flowNodeType)===Fo.GROUP||(r==null?void 0:r.flowNodeType)===Fo.GROUP||await this.removeNodeLines(n))}initState(){this.state={isDraggingNode:!1,isSkipEvent:!1,transforms:void 0,dragNode:void 0,dropNode:void 0,sourceParent:void 0}}listenDragToContainer(){const e=r=>this.draggingNode(r),n=Mn.throttle(e,200);return this.dragService.onNodesDrag(async r=>{var i;if(this.selectService.selectedNodes.length===1){if(r.type==="onDragStart"){if(this.state.isSkipEvent){this.state.isSkipEvent=!1;return}this.historyService.startTransaction(),this.state.isDraggingNode=!0,this.state.transforms=this.getContainerTransforms(),this.state.dragNode=this.selectService.selectedNodes[0],this.state.dropNode=void 0,this.state.sourceParent=(i=this.state.dragNode)==null?void 0:i.parent,await this.dragOutContainer(r)}if(r.type==="onDragging"&&n(r),r.type==="onDragEnd"){if(this.state.isSkipEvent)return;n.cancel(),e(r),await this.dropNodeToContainer(),await this.clearInvalidLines({dragNode:this.state.dragNode,sourceParent:this.state.sourceParent}),this.setDropNode(void 0),this.initState(),this.historyService.endTransaction()}}})}async dragOutContainer(e){const{dragNode:n}=this.state;!(e.triggerEvent.metaKey||e.triggerEvent.ctrlKey)||!n||!this.canMoveOutContainer(n)||(this.moveOutContainer({node:n}),this.state.isSkipEvent=!0,e.dragger.stop(e.dragEvent.clientX,e.dragEvent.clientY),await this.nextFrame(),this.dragService.startDragSelectedNodes(e.triggerEvent))}async removeNodeLines(e){this.linesManager.getAllLines().forEach(r=>{var i;r.from.id!==e.id&&((i=r.to)==null?void 0:i.id)!==e.id||r.dispose()}),await this.nextFrame()}getCollisionTransform(e){const{targetRect:n,targetPoint:r,transforms:i,withPadding:o=!1}=e;return i.find(s=>{const{bounds:l,entity:c}=s,u=o?this.document.layout.getPadding(c):{left:0,right:0},d=new Qn(l.x+u.left+u.right,l.y,l.width,l.height);return n?this.isRectIntersects(n,d):r?this.isPointInRect(r,d):!1})}setDropNode(e){var i,o,a,s;if(this.state.dropNode===e)return;if(this.state.dropNode){const c=(o=(i=this.state.dropNode.getData(ra).node)==null?void 0:i.children)==null?void 0:o[0];c&&c.classList.remove("selected")}if(this.state.dropNode=e,!e)return;const r=(s=(a=e.getData(ra).node)==null?void 0:a.children)==null?void 0:s[0];r&&r.classList.add("selected")}getContainerTransforms(){return this.document.getAllNodes().filter(e=>e.originParent?e.getNodeMeta().selectable&&e.originParent.getNodeMeta().selectable:e.getNodeMeta().selectable).filter(e=>this.isContainer(e)).sort((e,n)=>{const r=e.renderData.stackIndex;return n.renderData.stackIndex-r}).map(e=>e.transform)}async dropNodeToContainer(){const{dropNode:e,dragNode:n,isDraggingNode:r}=this.state;if(!(!r||!n||!e))return await this.moveIntoContainer({node:n,containerNode:e})}draggingNode(e){const{dragNode:n,isDraggingNode:r,transforms:i=[]}=this.state;if(!r||!n||!(i!=null&&i.length))return this.setDropNode(void 0);const o=this.playgroundConfig.getPosFromMouseEvent(e.dragEvent),a=i.filter(u=>u.entity.id!==n.id),s=this.getCollisionTransform({targetPoint:o,transforms:a}),l=s==null?void 0:s.entity;return this.canDropToContainer({dragNode:n,dropNode:l})?this.setDropNode(l):this.setDropNode(void 0)}canDropToContainer(e){const{dragNode:n,dropNode:r}=e,i=r==null?void 0:r.getNodeMeta().isContainer;return!(!r||!i||this.isParent(n,r)||n.flowNodeType===Fo.GROUP&&r.flowNodeType!==Fo.GROUP||!this.dragService.canDropToNode({dragNodeType:n.flowNodeType,dropNode:r}).allowDrop)}isParent(e,n){let r=e.parent;for(;r;){if(r.id===n.id)return!0;r=r.parent}return!1}async moveIntoContainer(e){const{node:n,containerNode:r}=e,i=n.parent;this.operationService.moveNode(n,{parent:r}),this.operationService.updateNodePosition(n,this.adjustSubNodePosition(n,r)),await this.nextFrame(),this.emitter.fire({type:"in",node:n,sourceContainer:i,targetContainer:r})}adjustSubNodePosition(e,n){if(n.flowNodeType===Fo.ROOT)return e.transform.position;const r=e.transform.transform.worldTransform,i=n.transform.transform.worldTransform,o={x:r.tx,y:r.ty},a=!n.children||n.children.length===0,s=this.document.layout.getPadding(n);return a?{x:0,y:s.top}:{x:o.x-i.tx,y:o.y-i.ty}}isContainer(e){return(e==null?void 0:e.getNodeMeta().isContainer)??!1}isPointInRect(e,n){return e.x>=n.left&&e.x<=n.right&&e.y>=n.top&&e.y<=n.bottom}isRectIntersects(e,n){const r=e.right>n.left&&e.left<n.right,i=e.bottom>n.top&&e.top<n.bottom;return r&&i}async nextFrame(){await new Promise(e=>requestAnimationFrame(e))}};BS([Ot(Ya)],hc.prototype,"dragService",2);BS([Ot(ei)],hc.prototype,"document",2);BS([Ot(da)],hc.prototype,"playgroundConfig",2);BS([Ot(VV)],hc.prototype,"operationService",2);BS([Ot(Ql)],hc.prototype,"linesManager",2);BS([Ot(qa)],hc.prototype,"historyService",2);BS([Ot(Wa)],hc.prototype,"selectService",2);hc=BS([Pn()],hc);var oyr=pa({onBind:({bind:e})=>{e(hc).toSelf().inSingletonScope()},onInit(e,n){e.get(hc).init()},onReady(e,n){n.disableNodeIntoContainer!==!0&&e.get(hc).ready()},onDispose(e){e.get(hc).dispose()}}),$ct=()=>{const e=Dw(),n=e.getNodeMeta(),{size:r={width:300,height:200},isContainer:i}=n,o=e.getData(hr),[a,s]=m.useState(r.width),[l,c]=m.useState(r.height),u=()=>{e.getData(Km).updateDynamicPorts()},d=()=>{if(e.blocks.length===0){s(r.width),c(r.height);return}s(o.bounds.width),c(o.bounds.height)};if(m.useEffect(()=>{const f=o.onDataChange(()=>{d(),u()});return()=>f.dispose()},[o,a,l]),m.useEffect(()=>{d()},[]),!!i)return{width:a,height:l}},ayr=e=>{const n=Dw();m.useLayoutEffect(()=>{e&&(n.renderData.node.style.width=e.width+"px",n.renderData.node.style.height=e.height+"px")},[e==null?void 0:e.width,e==null?void 0:e.height])},syr=oi.div`
|
||
width: 100%;
|
||
height: 100%;
|
||
inset: 56px 18px 18px;
|
||
background-color: #f2f3f5;
|
||
`,lyr=()=>{const e=Dw();return V.createElement(syr,{className:"sub-canvas-background","data-flow-editor-selectable":"true"},V.createElement("svg",{width:"100%",height:"100%"},V.createElement("pattern",{id:"sub-canvas-dot-pattern",width:"20",height:"20",patternUnits:"userSpaceOnUse"},V.createElement("circle",{cx:"1",cy:"1",r:"1",stroke:"#eceeef",fillOpacity:"0.5"})),V.createElement("rect",{width:"100%",height:"100%",fill:"url(#sub-canvas-dot-pattern)","data-node-panel-container":e.id})))},cyr=oi.div`
|
||
pointer-events: none;
|
||
|
||
position: relative;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
|
||
width: 100%;
|
||
height: 100%;
|
||
|
||
background-color: transparent;
|
||
border: 1px solid var(--coz-stroke-plus, rgba(6, 7, 9, 15%));
|
||
border-color: var(--coz-bg-plus, rgb(249, 249, 249));
|
||
border-style: solid;
|
||
border-width: 8px;
|
||
border-radius: 8px;
|
||
|
||
&::before {
|
||
content: '';
|
||
|
||
position: absolute;
|
||
z-index: 0;
|
||
inset: -4px;
|
||
|
||
background-color: transparent;
|
||
border-color: var(--coz-bg-plus, rgb(249, 249, 249));
|
||
border-style: solid;
|
||
border-width: 4px;
|
||
border-radius: 8px;
|
||
}
|
||
`,uyr=({style:e,children:n})=>V.createElement(cyr,{className:"sub-canvas-border",style:{...e}},n),dyr=oi.div`
|
||
width: 100%;
|
||
height: 100%;
|
||
`,m3e="workflow-move-into-sub-canvas-tip-visible",v3e="false",fyr=class Fct{constructor(){this.closed=!1}static get instance(){return this._instance||(this._instance=new Fct),this._instance}isClosed(){return this.isCloseForever()||this.closed}close(){this.closed=!0}isCloseForever(){return localStorage.getItem(m3e)===v3e}closeForever(){localStorage.setItem(m3e,v3e)}},pyr=()=>{const e=Dw(),[n,r]=m.useState(!1),i=fyr.instance,o=Di(hc),a=m.useCallback(()=>{i.isClosed()||r(!0)},[i]),s=m.useCallback(()=>{i.close(),r(!1)},[i]),l=m.useCallback(()=>{i.closeForever(),s()},[s,i]);return m.useEffect(()=>{const c=o.on(d=>{d.type==="in"&&d.targetContainer===e&&a()}),u=o.on(d=>{d.type==="out"&&d.sourceContainer===e&&!e.blocks.length&&r(!1)});return()=>{c.dispose(),u.dispose()}},[o,e,a,s,n]),{visible:n,close:s,closeForever:l}},hyr=oi.div`
|
||
position: absolute;
|
||
top: 0;
|
||
|
||
width: 100%;
|
||
height: 28px;
|
||
|
||
.container {
|
||
height: 100%;
|
||
background-color: #e4e6f5;
|
||
border-radius: 4px 4px 0 0;
|
||
|
||
.content {
|
||
overflow: hidden;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
width: 100%;
|
||
height: 100%;
|
||
|
||
.text {
|
||
font-size: 14px;
|
||
font-weight: 400;
|
||
font-style: normal;
|
||
line-height: 20px;
|
||
color: rgba(15, 21, 40, 82%);
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.space {
|
||
width: 128px;
|
||
}
|
||
}
|
||
|
||
.actions {
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
|
||
height: 28px;
|
||
padding: 0 16px;
|
||
|
||
.close-forever {
|
||
cursor: pointer;
|
||
|
||
padding: 0 3px;
|
||
|
||
font-size: 12px;
|
||
font-weight: 400;
|
||
font-style: normal;
|
||
line-height: 12px;
|
||
color: rgba(32, 41, 69, 62%);
|
||
}
|
||
|
||
.close {
|
||
display: flex;
|
||
cursor: pointer;
|
||
height: 100%;
|
||
align-items: center;
|
||
}
|
||
}
|
||
}
|
||
`,gyr=/(Macintosh|MacIntel|MacPPC|Mac68K|iPad)/.test(navigator.userAgent),myr=()=>V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},V.createElement("path",{fill:"#060709",fillOpacity:"0.5",d:"M12.13 12.128a.5.5 0 0 0 .001-.706L8.71 8l3.422-3.423a.5.5 0 0 0-.001-.705.5.5 0 0 0-.706-.002L8.002 7.293 4.579 3.87a.5.5 0 0 0-.705.002.5.5 0 0 0-.002.705L7.295 8l-3.423 3.422a.5.5 0 0 0 .002.706c.195.195.51.197.705.001l3.423-3.422 3.422 3.422c.196.196.51.194.706-.001"})),vyr=()=>{const{visible:e,close:n,closeForever:r}=pyr();return e?V.createElement(hyr,{className:"sub-canvas-tips"},V.createElement("div",{className:"container"},V.createElement("div",{className:"content"},V.createElement("p",{className:"text"},`Hold ${gyr?"Cmd ⌘":"Ctrl"} to drag node out`),V.createElement("div",{className:"space",style:{width:0}})),V.createElement("div",{className:"actions"},V.createElement("p",{className:"close-forever",onClick:r},"Never Remind"),V.createElement("div",{className:"close",onClick:n},V.createElement(myr,null))))):null},yyr=({className:e,style:n})=>{const r=Dw(),i=$ct(),o=(i==null?void 0:i.height)??0,{padding:a}=r.transform;return ayr(i),V.createElement(dyr,{className:`sub-canvas-render ${e??""}`,style:{height:o-a.top,...n},"data-flow-editor-selectable":"true",onDragStart:s=>{s.stopPropagation()}},V.createElement(uyr,null,V.createElement(lyr,null),V.createElement(vyr,null)))},_yr=Object.defineProperty,byr=Object.getOwnPropertyDescriptor,E$=(e,n,r,i)=>{for(var o=i>1?void 0:i?byr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&_yr(n,r,o),o},qse;(e=>{const n=i=>{var o;return((o=i==null?void 0:i.parent)==null?void 0:o.flowNodeType)===Fo.GROUP},r=i=>i.flowNodeType===Fo.GROUP;e.validate=i=>{if(!i||!Array.isArray(i)||i.length===0||i.some(c=>r(c))||i.some(c=>c&&n(c)))return!1;const s=i[0].parent;return!!i.every(c=>c.parent===s)}})(qse||(qse={}));var yp=class extends PC{constructor(){super(...arguments),this.toDispose=new Ei}ready(){this.toDispose.push(this.listenContainer())}dispose(){this.toDispose.dispose()}createGroup(e){if(!qse.validate(e))return;const n=e[0].parent??this.document.root,r=`group_${nve(5)}`,i={type:Fo.GROUP,id:r,meta:{position:{x:0,y:0}},data:{}};this.historyService.startTransaction(),this.document.createWorkflowNodeByType(Fo.GROUP,{x:0,y:0},i,n.id),e.forEach(o=>{this.freeOperationService.moveNode(o,{parent:r})}),this.historyService.endTransaction()}ungroup(e){const n=e.blocks.slice();if(!e.parent)return;const r=e.transform.position;this.historyService.startTransaction(),n.forEach(i=>{var o;this.freeOperationService.moveNode(i,{parent:(o=e.parent)==null?void 0:o.id})}),e.dispose(),n.forEach(i=>{const o=i.getData(Ui),a={x:o.position.x+r.x,y:o.position.y+r.y};this.freeOperationService.updateNodePosition(i,a)}),this.historyService.endTransaction()}listenContainer(){return this.nodeIntoContainerService.on(e=>{var n,r;e.type!==t7.Out||((n=e.sourceContainer)==null?void 0:n.flowNodeType)!==Fo.GROUP||((r=e.sourceContainer)==null?void 0:r.blocks.length)===0&&e.sourceContainer.dispose()})}};E$([Ot(ei)],yp.prototype,"document",2);E$([Ot(VV)],yp.prototype,"freeOperationService",2);E$([Ot(qa)],yp.prototype,"historyService",2);E$([Ot(hc)],yp.prototype,"nodeIntoContainerService",2);yp=E$([Pn()],yp);var rye=(e=>(e.Group="group",e.Ungroup="ungroup",e))(rye||{}),Syr=class{constructor(e){this.commandId="group",this.commandDetail={label:"Group"},this.shortcuts=["meta g","ctrl g"],this.selectService=e.get(Wa),this.groupService=e.get(yp),this.execute=this.execute.bind(this)}async execute(){this.groupService.createGroup(this.selectService.selectedNodes),this.selectService.clear()}},Eyr=class{constructor(e){this.commandId="ungroup",this.commandDetail={label:"Ungroup"},this.shortcuts=["meta shift g","ctrl shift g"],this.selectService=e.get(Wa),this.groupService=e.get(yp),this.execute=this.execute.bind(this)}async execute(e){const n=e||this.selectService.activatedNode;!n||n.flowNodeType!==Fo.GROUP||(this.groupService.ungroup(n),this.selectService.clear())}},Cyr={type:Fo.GROUP,meta:{renderKey:Fo.GROUP,defaultPorts:[],isContainer:!0,disableSideBar:!0,size:{width:560,height:400},padding:()=>({top:80,bottom:40,left:65,right:65}),selectable(e,n){return n?!e.getData(hr).bounds.contains(n.x,n.y):!0},expandable:!1},formMeta:{render:()=>React.createElement(React.Fragment,null)},onCreate(){}},wyr=pa({onBind({bind:e,rebind:n}){e(yp).toSelf().inSingletonScope(),n(PC).toService(yp)},onInit(e,{groupNodeRender:n,disableGroupShortcuts:r=!1,disableGroupNodeRegister:i=!1}){n&&e.get(yd).registerReactComponent(Fo.GROUP,n),r||e.get(j0).addHandlers(new Syr(e),new Eyr(e)),i||e.get(ei).registerFlowNodes(Cyr)},onReady(e){e.get(yp).ready()},onDispose(e){e.get(yp).dispose()}});const xyr=async(e,n)=>{const r=e.get(bd),i=e.document,o=e.get(Ya),a=e.get(Ql),{fromPort:s,toPort:l,mousePos:c,line:u,originLine:d}=n;if(d||!u||l)return;const f=Jd.getContainerNode({fromPort:s}),p=await r.singleSelectNodePanel({position:c,containerNode:f,panelProps:{enableNodePlaceholder:!0,enableScrollClose:!0}});if(!p)return;const{nodeType:h,nodeJSON:g}=p,v=Jd.adjustNodePosition({nodeType:h,position:c,fromPort:s,toPort:l,containerNode:f,document:i,dragService:o}),y=i.createWorkflowNodeByType(h,v,g??{},f==null?void 0:f.id);await NS(20),Jd.buildLine({fromPort:s,node:y,toPort:l,linesManager:a})},Bct="flowgram-workflow-clipboard-data";var df=(e=>(e.COPY="COPY",e.PASTE="PASTE",e.CUT="CUT",e.GROUP="GROUP",e.UNGROUP="UNGROUP",e.COLLAPSE="COLLAPSE",e.EXPAND="EXPAND",e.DELETE="DELETE",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.RESET_ZOOM="RESET_ZOOM",e.SELECT_ALL="SELECT_ALL",e.CANCEL_SELECT="CANCEL_SELECT",e))(df||{});class Tyr{constructor(n){$t(this,"commandId",df.ZOOM_OUT);$t(this,"shortcuts",["meta -","ctrl -"]);$t(this,"playgroundConfig");this.playgroundConfig=n.get(da),this.execute=this.execute.bind(this)}async execute(){this.playgroundConfig.zoom>1.9||this.playgroundConfig.zoomout()}}class Oyr{constructor(n){$t(this,"commandId",df.ZOOM_IN);$t(this,"shortcuts",["meta =","ctrl ="]);$t(this,"playgroundConfig");this.playgroundConfig=n.get(da),this.execute=this.execute.bind(this)}async execute(){this.playgroundConfig.zoom>1.9||this.playgroundConfig.zoomin()}}class Ryr{constructor(n){$t(this,"commandId",df.SELECT_ALL);$t(this,"shortcuts",["meta a","ctrl a"]);$t(this,"document");$t(this,"playground");this.document=n.get(ei),this.playground=n.playground,this.execute=this.execute.bind(this)}async execute(){const n=this.document.getAllNodes();this.playground.selectionService.selection=n}}const Iyr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Nyr=e=>crypto.getRandomValues(new Uint8Array(e)),Myr=(e,n,r)=>{let i=(2<<Math.log2(e.length-1))-1,o=-~(1.6*i*n/e.length);return(a=n)=>{let s="";for(;;){let l=r(o),c=o|0;for(;c--;)if(s+=e[l[c]&i]||"",s.length>=a)return s}}},Pyr=(e,n=21)=>Myr(e,n|0,Nyr),rO=(e=21)=>{let n="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)n+=Iyr[r[e]&63];return n};const Ayr=(e,n)=>{const r=Array.isArray(n)?i=>{n.forEach(o=>o(i))}:n;return Kse({value:e},r),e},Kse=(e,n)=>{const{value:r}=e;if(!r)return;if(Object.prototype.toString.call(r)==="[object Object]")Object.entries(r).forEach(([o,a])=>Kse({value:a,container:r,key:o,parent:e},n));else if(Array.isArray(r))for(let o=r.length-1;o>=0;o--){const a=r[o];Kse({value:a,container:r,index:o,parent:e},n)}const i=Dyr({node:e});n(i)},Dyr=({node:e})=>({node:e,setValue:n=>kyr(e,n),getParents:()=>jct(e),getPath:()=>Lyr(e),getStringifyPath:()=>$yr(),deleteSelf:()=>Fyr(e)}),kyr=(e,n)=>{if(!n||!e)return;e.value=n;const{container:r,key:i,index:o}=e;i&&r?r[i]=n:typeof o=="number"&&(r[o]=n)},jct=e=>{const n=[];let r=e;for(;r;)n.unshift(r),r=r.parent;return n},Lyr=e=>{const n=[];return jct(e).forEach(i=>{i.key?n.unshift(i.key):i.index&&n.unshift(i.index)}),n},$yr=e=>"",Fyr=e=>{const{container:n,key:r,index:i}=e;r&&n?delete n[r]:typeof i=="number"&&n.splice(i,1)};var RP;(e=>{const n=Pyr("1234567890",6);e.getAllNodeIds=o=>{const a=new Set,s=l=>{var c;a.add(l.id),(c=l.blocks)!=null&&c.length&&l.blocks.forEach(u=>s(u))};return o.nodes.forEach(l=>s(l)),Array.from(a)},e.generateNodeReplaceMap=(o,a)=>{const s=new Map;return o.forEach(l=>{if(a(l))s.set(l,l);else{let c;do c=n();while(!a(c));s.set(l,c)}}),s};const r=o=>o!=null,i=o=>{var s,l,c,u,d,f,p;const{node:a}=o;return!!(a!=null&&a.key&&["sourceNodeID","targetNodeID"].includes(a.key)&&((l=(s=a.parent)==null?void 0:s.parent)==null?void 0:l.key)==="edges"||(a==null?void 0:a.key)==="id"&&r((c=a.container)==null?void 0:c.type)&&r((u=a.container)==null?void 0:u.meta)&&r((d=a.container)==null?void 0:d.data)||(a==null?void 0:a.key)==="blockID"&&r((f=a.container)==null?void 0:f.name)&&((p=a.container)==null?void 0:p.source)==="block-output")};e.replaceNodeId=(o,a)=>(Ayr(o,s=>{if(!i(s))return;const{node:l}=s;a.has(l.value)&&s.setValue(a.get(l.value))}),o)})(RP||(RP={}));const Byr=e=>{const{json:n,isUniqueId:r}=e,i=RP.getAllNodeIds(n),o=RP.generateNodeReplaceMap(i,r);return RP.replaceNodeId(n,o)};class Uct{constructor(n){$t(this,"commandId",df.PASTE);$t(this,"shortcuts",["meta v","ctrl v"]);$t(this,"document");$t(this,"selectService");$t(this,"entityManager");$t(this,"hoverService");$t(this,"dragService");this.document=n.get(ei),this.selectService=n.get(Wa),this.entityManager=n.get(Lo),this.hoverService=n.get(Rf),this.dragService=n.get(Ya),this.execute=this.execute.bind(this)}async execute(){const n=await this.tryReadClipboard();if(!n||!this.isValidData(n))return;const r=this.apply(n);return r.length>0&&(Zb.success({content:"Copy successfully",showClose:!1}),await this.nextTick(),this.scrollNodesToView(r)),r}apply(n){const{json:r}=n,i=Byr({json:r,isUniqueId:l=>!this.entityManager.getEntityById(l)}),o=this.calcPasteOffset(n.bounds),a=this.getSelectedContainer();this.applyOffset({json:i,offset:o,parent:a});const{nodes:s}=this.document.renderJSON(i,{parent:a});return this.selectNodes(s),s}isValidData(n){return(n==null?void 0:n.type)!==Bct?(Zb.error({content:"Invalid clipboard data"}),!1):n.source.host!==window.location.host?(Zb.error({content:"Cannot paste nodes from different host"}),!1):!0}async tryReadClipboard(){try{const n=await navigator.clipboard.readText()||"";return JSON.parse(n)}catch{return}}calcPasteOffset(n){const{x:r,y:i,width:o,height:a}=n,s=new Qn(r,i,o,a),{center:l}=s,c=this.hoverService.hoveredPos;return{x:c.x-l.x,y:c.y-l.y}}applyOffset(n){const{json:r,offset:i,parent:o}=n;r.nodes.forEach(a=>{var l;if(!((l=a.meta)!=null&&l.position))return;let s={x:a.meta.position.x+i.x,y:a.meta.position.y+i.y};o&&(s=this.dragService.adjustSubNodePosition(a.type,o,s)),a.meta.position=s})}getSelectedContainer(){const{activatedNode:n}=this.selectService;return n!=null&&n.getNodeMeta().isContainer?n:void 0}selectNodes(n){this.selectService.selection=n}async scrollNodesToView(n){const r=n.map(i=>i.getData(hr).bounds);await this.document.playgroundConfig.scrollToView({bounds:Qn.enlarge(r)})}async nextTick(){await NS(16),await new Promise(r=>requestAnimationFrame(r))}}class jyr{constructor(n){$t(this,"commandId",df.EXPAND);$t(this,"commandDetail",{label:"Expand"});$t(this,"shortcuts",["meta alt closebracket","ctrl alt openbracket"]);$t(this,"selectService");this.selectService=n.get(Wa),this.execute=this.execute.bind(this)}async execute(){this.selectService.selectedNodes.forEach(n=>{n.renderData.expanded=!0})}}class Uyr{constructor(n){$t(this,"commandId",df.DELETE);$t(this,"shortcuts",["backspace","delete"]);$t(this,"document");$t(this,"selectService");this.document=n.get(ei),this.selectService=n.get(Wa),this.execute=this.execute.bind(this)}async execute(){this.isValid(this.selectService.selectedNodes)&&(this.selectService.selection.forEach(n=>{n instanceof Ap?this.removeNode(n):n instanceof Qd?this.removeLine(n):n.dispose()}),this.selectService.selection=this.selectService.selection.filter(n=>!n.disposed))}isValid(n){return n.some(i=>[wu.Start,wu.End].includes(i.flowNodeType))?(Zb.error({content:"Start or End node cannot be deleted",showClose:!1}),!1):!0}removeNode(n){var o;if(!this.document.canRemove(n))return;const r=n.getNodeMeta(),i=(o=r.subCanvas)==null?void 0:o.call(r,n);if(i!=null&&i.isCanvas){i.parentNode.dispose();return}n.dispose()}removeLine(n){this.document.linesManager.canRemove(n)&&n.dispose()}}class Hct{constructor(n){$t(this,"commandId",df.COPY);$t(this,"shortcuts",["meta c","ctrl c"]);$t(this,"document");$t(this,"selectService");this.document=n.get(ei),this.selectService=n.get(Wa),this.execute=this.execute.bind(this)}async execute(){if(await this.hasSelectedText()||!this.isValid(this.selectedNodes))return;const n=this.toClipboardData();await this.write(n)}async hasSelectedText(){var n,r;return(n=window.getSelection())!=null&&n.toString()?(await navigator.clipboard.writeText(((r=window.getSelection())==null?void 0:r.toString())??""),Zb.success({content:"Text copied"}),!0):!1}get selectedNodes(){return this.selectService.selection.filter(n=>n instanceof Ap)}isValid(n){return n.length===0?(Zb.warning({content:"No nodes selected"}),!1):!0}toClipboardData(n){const r=this.getValidNodes(n||this.selectedNodes),i=this.toSource(),o=this.toJSON(r),a=this.getEntireBounds(r);return{type:Bct,source:i,json:o,bounds:a}}getValidNodes(n){return n.filter(r=>!([wu.Start,wu.End].includes(r.flowNodeType)||r.getNodeMeta().copyDisable))}toSource(){return{host:window.location.host}}toJSON(n){const r=this.getNodeJSONs(n),i=this.getEdgeJSONs(n);return{nodes:r,edges:i}}getNodeJSONs(n){return n.map(i=>{var s;const o=this.document.toNodeJSON(i);if(!((s=o.meta)!=null&&s.position))return o;const{bounds:a}=i.getData(Ui);return o.meta.position={x:a.x,y:a.y},o}).filter(Boolean)}getEdgeJSONs(n){const r=new Set,i=new Set(n.map(o=>o.id));return n.forEach(o=>{const a=o.getData(Em);[...a.inputLines,...a.outputLines].forEach(l=>{var c;i.has(l.from.id)&&((c=l.to)!=null&&c.id)&&i.has(l.to.id)&&r.add(l)})}),Array.from(r).map(o=>o.toJSON())}getEntireBounds(n){const r=n.map(o=>o.getData(Ui).bounds),i=Qn.enlarge(r);return{x:i.x,y:i.y,width:i.width,height:i.height}}async write(n){try{await navigator.clipboard.writeText(JSON.stringify(n)),this.notifySuccess()}catch(r){console.error("Failed to write text: ",r)}}notifySuccess(){const n=this.selectedNodes.map(r=>r.flowNodeType);if(n.includes("start")||n.includes("end")){Zb.warning({content:"The Start/End node cannot be duplicated, other nodes have been copied to the clipboard",showClose:!1});return}Zb.success({content:"Nodes have been copied to the clipboard",showClose:!1})}}class Hyr{constructor(n){$t(this,"commandId",df.COLLAPSE);$t(this,"commandDetail",{label:"Collapse"});$t(this,"shortcuts",["meta alt openbracket","ctrl alt openbracket"]);$t(this,"selectService");this.selectService=n.get(Wa),this.execute=this.execute.bind(this)}async execute(){this.selectService.selectedNodes.forEach(n=>{n.renderData.expanded=!1})}}function zyr(e,n){e.addHandlers(new Hct(n),new Uct(n),new Ryr(n),new Hyr(n),new jyr(n),new Uyr(n),new Oyr(n),new Tyr(n))}var Vyr=Object.defineProperty,Gyr=Object.getOwnPropertyDescriptor,C$=(e,n,r,i)=>{for(var o=i>1?void 0:i?Gyr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Vyr(n,r,o),o};let UC=class{constructor(){$t(this,"ctx");$t(this,"selectionService");$t(this,"playground");$t(this,"document")}save(){console.log(this.document.toJSON())}};C$([Ot(wlt)],UC.prototype,"ctx",2);C$([Ot(ug)],UC.prototype,"selectionService",2);C$([Ot(yu)],UC.prototype,"playground",2);C$([Ot(ei)],UC.prototype,"document",2);UC=C$([Pn()],UC);function Wyr(e){return Object.entries(e).sort((n,r)=>(t$e(n==null?void 0:n[1],"extra.index")||0)-(t$e(r==null?void 0:r[1],"extra.index")||0))}function Xse(e){const{type:n}=e||{};if(n)switch(n){case"object":return Kg.createObject({properties:Wyr(e.properties||{}).map(([r,i])=>({key:r,type:Xse(i),meta:{description:i.description}}))});case"array":return Kg.createArray({items:Xse(e.items)});case"string":return Kg.createString();case"number":return Kg.createNumber();case"boolean":return Kg.createBoolean();case"integer":return Kg.createInteger();default:return Kg.createCustomType({typeName:n})}}const Yyr=pa({onInit(e,n){e.document.onNodeCreate(({node:i})=>{const o=Sot(i),a=i.getData(Lh),s=l=>{var u,d;if(!l){a.clearVar();return}const c=Xse(l);if(c){const f=(o==null?void 0:o.getValueIn("title"))||i.id;a.setVar(Kg.createVariableDeclaration({meta:{title:`${f}`,icon:(d=(u=i.getNodeRegistry())==null?void 0:u.info)==null?void 0:d.icon},key:`${i.id}.outputs`,type:c}))}else a.clearVar()};o&&(s(o.getValueIn("outputs")),o.onFormValuesChange(l=>{(l.name.match(/^outputs/)||l.name.match(/^title/))&&s(o.getValueIn("outputs"))}))})}}),qyr=oi.span`
|
||
font-size: 12px;
|
||
color: red;
|
||
`,Kyr=oi.span`
|
||
font-size: 12px;
|
||
color: orange;
|
||
`,iye=({errors:e,warnings:n,invalid:r})=>{const i=o=>o?o.map(a=>N.jsx("span",{children:a.message},a.name)):null;return N.jsxs("div",{children:[N.jsx("div",{children:N.jsx(qyr,{children:i(e)})}),N.jsx("div",{children:N.jsx(Kyr,{children:i(n)})})]})},Xyr=oi.div`
|
||
box-sizing: border-box;
|
||
width: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
background-color: rgba(0, 0, 0, 0.02);
|
||
padding: 0 12px 12px;
|
||
`,Qyr=oi.div`
|
||
color: var(--semi-color-text-2);
|
||
font-size: 12px;
|
||
line-height: 20px;
|
||
padding: 0px 4px;
|
||
word-break: break-all;
|
||
white-space: break-spaces;
|
||
`;function Y0(e){var a;const{node:n,expanded:r}=_G(),i=jS(),o=n.getNodeRegistry();return N.jsx(Xyr,{children:r?N.jsxs(N.Fragment,{children:[i&&N.jsx(Qyr,{children:(a=o.info)==null?void 0:a.description}),e.children]}):void 0})}const Zyr=oi.div`
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
column-gap: 6px;
|
||
`;function zct({name:e,type:n,isArray:r,className:i}){const o=r?eye[n]:U1[n];return N.jsx(qo,{content:N.jsxs(Zyr,{children:[o," ",n]}),children:N.jsxs(gf,{color:"white",className:i,style:{padding:4,maxWidth:450},children:[o,e&&N.jsxs("span",{style:{display:"inline-block",marginLeft:4,marginTop:-1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",e]})]})})}const Jyr=oi.div`
|
||
display: flex;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
border-top: 1px solid var(--semi-color-border);
|
||
padding: 8px 0 0;
|
||
width: 100%;
|
||
|
||
:global(.semi-tag .semi-tag-content) {
|
||
font-size: 10px;
|
||
}
|
||
`;function zR(){return jS()?null:N.jsx(zm,{name:"outputs",children:({field:n})=>{var i;const r=(i=n.value)==null?void 0:i.properties;if(r){const o=Object.keys(r).map(a=>{const s=r[a];return N.jsx(zct,{name:a,type:s.type},a)});return N.jsx(Jyr,{children:o})}return N.jsx(N.Fragment,{})}})}const e_r=oi.div`
|
||
background-color: var(--semi-color-fill-0);
|
||
border-radius: var(--semi-border-radius-small);
|
||
padding-left: 12px;
|
||
width: 100%;
|
||
min-height: 24px;
|
||
line-height: 24px;
|
||
display: flex;
|
||
align-items: center;
|
||
&.has-error {
|
||
outline: red solid 1px;
|
||
}
|
||
`,t_r=e=>N.jsxs(e_r,{className:e.hasError?"has-error":"",children:[e.value,e.value===void 0||e.value===""?N.jsx("span",{style:{color:"var(--semi-color-text-2)"},children:e.placeholder||"--"}):null]});function n_r(e){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",...e,children:N.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.581 4.49A2.75 2.75 0 0 1 8.319 2h.931a.75.75 0 0 1 0 1.5h-.931a1.25 1.25 0 0 0-1.245 1.131l-.083.869H9.25a.75.75 0 0 1 0 1.5H6.849l-.43 4.51A2.75 2.75 0 0 1 3.681 14H2.75a.75.75 0 0 1 0-1.5h.931a1.25 1.25 0 0 0 1.245-1.132L5.342 7H3.75a.75.75 0 0 1 0-1.5h1.735zM9.22 9.22a.75.75 0 0 1 1.06 0l1.22 1.22l1.22-1.22a.75.75 0 1 1 1.06 1.06l-1.22 1.22l1.22 1.22a.75.75 0 1 1-1.06 1.06l-1.22-1.22l-1.22 1.22a.75.75 0 1 1-1.06-1.06l1.22-1.22l-1.22-1.22a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})})}function y3e({value:e,onChange:n,readonly:r,hasError:i,style:o}){return r?N.jsx(t_r,{value:e,hasError:i}):N.jsx(Uy,{value:e,onChange:n,validateStatus:i?"error":void 0,style:o})}function Vct(e){const{value:n,onChange:r,readonly:i,literal:o,icon:a}=e;if(o)return N.jsx(y3e,{value:n,onChange:r,readonly:i});const s=typeof n=="object"&&n.type==="expression",l=()=>{r(s?n.content:{content:n,type:"expression"})};return N.jsxs("div",{style:{display:"flex",maxWidth:300},children:[s?N.jsx(Cct,{value:n.content,hasError:e.hasError,style:{flexGrow:1},onChange:c=>r({type:"expression",content:c}),readonly:i}):N.jsx(y3e,{value:n,onChange:r,hasError:e.hasError,readonly:i,style:{flexGrow:1,outline:e.hasError?"1px solid red":void 0}}),!i&&(a||N.jsx(ol,{theme:"borderless",icon:N.jsx(n_r,{}),onClick:l}))]})}const{Text:r_r}=LS;function Gct({children:e,name:n,required:r,description:i,type:o,labelWidth:a}){const s=m.useCallback(l=>N.jsxs("div",{style:{width:"0",display:"flex",flex:"1"},children:[N.jsx(r_r,{style:{width:"100%"},ellipsis:{showTooltip:!!l},children:n}),r&&N.jsx("span",{style:{color:"#f93920",paddingLeft:"2px"},children:"*"})]}),[]);return N.jsxs("div",{style:{fontSize:12,marginBottom:6,width:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center",gap:8},children:[N.jsxs("div",{style:{justifyContent:"center",alignItems:"center",color:"var(--semi-color-text-0)",width:a||118,position:"relative",display:"flex",columnGap:4,flexShrink:0},children:[N.jsx(zct,{className:"form-item-type-tag",type:o}),i?N.jsx(qo,{content:i,children:s()}):s(!0)]}),N.jsx("div",{style:{flexGrow:1,minWidth:0},children:e})]})}function Qse(){const e=!jS();return N.jsx(zm,{name:"inputs",children:({field:n})=>{var a,s;const r=((a=n.value)==null?void 0:a.required)||[],i=(s=n.value)==null?void 0:s.properties;if(!i)return N.jsx(N.Fragment,{});const o=Object.keys(i).map(l=>{const c=i[l];return N.jsx(zm,{name:`inputsValues.${l}`,defaultValue:c.default,children:({field:u,fieldState:d})=>N.jsxs(Gct,{name:l,type:c.type,required:r.includes(l),children:[N.jsx(Vct,{value:u.value,onChange:u.onChange,readonly:e,hasError:Object.keys((d==null?void 0:d.errors)||{}).length>0}),N.jsx(iye,{errors:d==null?void 0:d.errors})]})},l)});return N.jsx(N.Fragment,{children:o})}})}const Wct=({node:e,deleteNode:n})=>{var p;const r=Bw(),i=e.getNodeRegistry(),o=Di(hc),a=Di(Wa),s=Di(Ya),l=o.canMoveOutContainer(e),c=m.useRef(null),u=m.useCallback(async h=>{h.stopPropagation();const g=e.parent;o.moveOutContainer({node:e}),await o.clearInvalidLines({dragNode:e,sourceParent:g}),c.current=async v=>{a.selectNode(e),s.startDragSelectedNodes(v),c.current=null},setTimeout(()=>{c.current&&c.current(h)},50)},[o,e,a,s]),d=m.useCallback(h=>{h.stopPropagation();const g=new Hct(r),v=new Uct(r),y=g.toClipboardData([e]);v.apply(y)},[r,e]),f=m.useCallback(h=>{h.stopPropagation(),n()},[n]);return N.jsx(Do,{trigger:"hover",position:"bottomRight",render:N.jsxs(Do.Menu,{children:[l&&N.jsx(Do.Item,{onClick:u,children:"Move out"}),N.jsx(Do.Item,{onClick:d,disabled:i.meta.copyDisable===!0,children:"Create Copy"}),N.jsx(Do.Item,{onClick:f,disabled:!!((p=i.canDelete)!=null&&p.call(i,r,e)||i.meta.deleteDisable),children:"Delete"})]}),children:N.jsx(ul,{color:"secondary",size:"small",theme:"borderless",icon:N.jsx(kfr,{}),onClick:h=>h.stopPropagation()})})},i_r=oi.div`
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
justify-content: flex-start;
|
||
align-items: center;
|
||
width: 100%;
|
||
column-gap: 8px;
|
||
border-radius: 8px 8px 0 0;
|
||
cursor: move;
|
||
|
||
background: linear-gradient(#f2f2ff 0%, rgba(0, 0, 0, 0.02) 100%);
|
||
overflow: hidden;
|
||
|
||
padding: 8px;
|
||
`,o_r=oi.div`
|
||
font-size: 20px;
|
||
flex: 1;
|
||
width: 0;
|
||
`,a_r=oi.img`
|
||
width: 24px;
|
||
height: 24px;
|
||
scale: 0.8;
|
||
border-radius: 4px;
|
||
`,s_r=oi.div`
|
||
display: flex;
|
||
align-items: center;
|
||
column-gap: 4px;
|
||
`,l_r=e=>{var r;const n=(r=e.getNodeRegistry().info)==null?void 0:r.icon;return n?N.jsx(a_r,{src:n}):null},{Text:c_r}=LS;function q0(){const{node:e,expanded:n,toggleExpand:r,readonly:i,deleteNode:o}=_G(),a=jS(),s=l=>{r(),l.stopPropagation()};return N.jsxs(i_r,{children:[l_r(e),N.jsx(o_r,{children:N.jsx(zm,{name:"title",children:({field:{value:l,onChange:c},fieldState:u})=>N.jsxs("div",{style:{height:24},children:[N.jsx(c_r,{ellipsis:{showTooltip:!0},children:l}),N.jsx(iye,{errors:u==null?void 0:u.errors})]})})}),e.renderData.expandable&&!a&&N.jsx(ol,{type:"primary",icon:n?N.jsx(zfr,{}):N.jsx(Gfr,{}),size:"small",theme:"borderless",onClick:s}),i?void 0:N.jsx(s_r,{children:N.jsx(Wct,{node:e,deleteNode:o})})]})}const u_r=["object","boolean","array","string","integer","number"],d_r=e=>{const{value:n,disabled:r}=e,i=U1[n];return N.jsx(Do,{trigger:"hover",position:"bottomRight",disabled:r,render:N.jsx(Do.Menu,{children:u_r.map(o=>N.jsxs(Do.Item,{onClick:()=>{var a;(a=e.onChange)==null||a.call(e,o)},children:[U1[o],N.jsx("span",{style:{paddingLeft:"4px"},children:o})]},o))}),children:N.jsx(gf,{color:"white",style:e.style,onClick:o=>{o.stopPropagation(),o.preventDefault()},children:i})})},f_r=oi.div`
|
||
display: flex;
|
||
justify-content: flex-start;
|
||
align-items: center;
|
||
font-size: 12px;
|
||
margin-bottom: 6px;
|
||
`,p_r=oi.div`
|
||
width: 300px;
|
||
margin-right: 10px;
|
||
position: relative;
|
||
`,_3e=e=>{const{value:n,disabled:r}=e,[i,o]=m.useState(e.propertyKey),a=(s,l)=>{n[s]=l,e.onChange(n,e.propertyKey)};return m.useLayoutEffect(()=>{o(e.propertyKey)},[e.propertyKey]),N.jsxs(f_r,{children:[N.jsxs(p_r,{children:[N.jsx(d_r,{value:n.type,disabled:r,style:{position:"absolute",top:6,left:4,zIndex:1},onChange:s=>a("type",s)}),N.jsx(Uy,{value:i,disabled:r,onChange:s=>o(s.trim()),onBlur:()=>{i!==""?e.onChange(n,e.propertyKey,i):o(e.propertyKey)},style:{paddingLeft:26}})]}),e.useFx?N.jsx(Cct,{value:n.default,readonly:r,onChange:s=>a("default",s),style:{flexGrow:1,height:32}}):N.jsx(Uy,{disabled:r,value:n.default,onChange:s=>a("default",s)}),e.onDelete&&!r&&N.jsx(ol,{theme:"borderless",icon:N.jsx(Hlt,{}),onClick:e.onDelete})]})},h_r=e=>{const n=e.value||{},{readonly:r}=_G(),[i,o]=m.useState({key:"",value:{type:"string"}}),[a,s]=m.useState(),l=()=>{o({key:"",value:{type:"string"}}),s(!1)},c=(d,f,p)=>{const h={...n};p?(delete h[f],h[p]=d):h[f]=d,e.onChange(h)},u=(d,f,p)=>{p?(p in n||c(d,f,p),l()):o({key:p||f,value:d})};return N.jsxs(N.Fragment,{children:[Object.keys(e.value||{}).map(d=>{const f=n[d]||{};return N.jsx(_3e,{propertyKey:d,useFx:e.useFx,value:f,disabled:r,onChange:c,onDelete:()=>{const p={...n};delete p[d],e.onChange(p)}},d)}),a&&N.jsx(_3e,{propertyKey:i.key,value:i.value,useFx:e.useFx,onChange:u,onDelete:()=>{const d=i.key;setTimeout(()=>{const f={...n};delete f[d],e.onChange(f),l()},10)}}),!r&&N.jsx("div",{children:N.jsx(ol,{theme:"borderless",icon:N.jsx(aG,{}),onClick:()=>s(!0),children:"Add"})})]})},g_r=({form:e})=>N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsxs(Y0,{children:[N.jsx(Qse,{}),N.jsx(zR,{})]})]}),Yct={render:g_r,validateTrigger:r$.onChange,validate:{title:({value:e})=>e?void 0:"Title is required","inputsValues.*":({value:e,context:n,formValues:r,name:i})=>{var s;const o=i.replace(/^inputsValues\./,"");if((((s=r.inputs)==null?void 0:s.required)||[]).includes(o)&&(e===""||e===void 0))return`${o} is required`}}},gee=30,b3e=5;var w$=(e=>(e.Title="title",e.Color="color",e))(w$||{});const m_r=({size:e})=>N.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",style:{width:e,height:e},children:N.jsx("path",{id:"group",fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M 0.009766 10 L 0.009766 9.990234 L 0 9.990234 L 0 7.5 L 1 7.5 L 1 9 L 2.5 9 L 2.5 10 L 0.009766 10 Z M 3.710938 10 L 3.710938 9 L 6.199219 9 L 6.199219 10 L 3.710938 10 Z M 7.5 10 L 7.5 9 L 9 9 L 9 7.5 L 10 7.5 L 10 9.990234 L 9.990234 9.990234 L 9.990234 10 L 7.5 10 Z M 0 6.289063 L 0 3.800781 L 1 3.800781 L 1 6.289063 L 0 6.289063 Z M 9 6.289063 L 9 3.800781 L 10 3.800781 L 10 6.289063 L 9 6.289063 Z M 0 2.5 L 0 0.009766 L 0.009766 0.009766 L 0.009766 0 L 2.5 0 L 2.5 1 L 1 1 L 1 2.5 L 0 2.5 Z M 9 2.5 L 9 1 L 7.5 1 L 7.5 0 L 9.990234 0 L 9.990234 0.009766 L 10 0.009766 L 10 2.5 L 9 2.5 Z M 3.710938 1 L 3.710938 0 L 6.199219 0 L 6.199219 1 L 3.710938 1 Z"})}),v_r=({size:e})=>N.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",style:{width:e,height:e},children:N.jsx("path",{id:"ungroup",fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M 9.654297 10.345703 L 8.808594 9.5 L 7.175781 9.5 L 7.175781 8.609375 L 7.917969 8.609375 L 1.390625 2.082031 L 1.390625 2.824219 L 0.5 2.824219 L 0.5 1.191406 L -0.345703 0.345703 L 0.283203 -0.283203 L 1.166016 0.599609 L 2.724609 0.599609 L 2.724609 1.490234 L 2.056641 1.490234 L 8.509766 7.943359 L 8.509766 7.275391 L 9.400391 7.275391 L 9.400391 8.833984 L 10.283203 9.716797 L 9.654297 10.345703 Z M 0.509766 9.5 L 0.509766 9.490234 L 0.5 9.490234 L 0.5 7.275391 L 1.390625 7.275391 L 1.390625 8.609375 L 2.724609 8.609375 L 2.724609 9.5 L 0.509766 9.5 Z M 3.802734 9.5 L 3.802734 8.609375 L 6.017578 8.609375 L 6.017578 9.5 L 3.802734 9.5 Z M 0.5 6.197266 L 0.5 3.982422 L 1.390625 3.982422 L 1.390625 6.197266 L 0.5 6.197266 Z M 8.509766 6.197266 L 8.509766 3.982422 L 9.400391 3.982422 L 9.400391 6.197266 L 8.509766 6.197266 Z M 8.509766 2.824219 L 8.509766 1.490234 L 7.175781 1.490234 L 7.175781 0.599609 L 9.390625 0.599609 L 9.390625 0.609375 L 9.400391 0.609375 L 9.400391 2.824219 L 8.509766 2.824219 Z M 3.802734 1.490234 L 3.802734 0.599609 L 6.017578 0.599609 L 6.017578 1.490234 L 3.802734 1.490234 Z"})}),y_r=({node:e,style:n})=>{const r=Di(bm);return N.jsx(qo,{content:"Ungroup",children:N.jsx("div",{className:"workflow-group-ungroup",style:n,children:N.jsx(ol,{icon:N.jsx(v_r,{size:14}),style:{height:30,width:30},theme:"borderless",type:"tertiary",onClick:()=>{r.executeCommand(rye.Ungroup,e)}})})})},__r=()=>{const[e,n]=m.useState(!1);return N.jsx(zm,{name:w$.Title,children:({field:r})=>e?N.jsx(Uy,{autoFocus:!0,className:"workflow-group-title-input",size:"small",value:r.value,onChange:r.onChange,onMouseDown:i=>i.stopPropagation(),onBlur:()=>n(!1),draggable:!1,onEnterPress:()=>n(!1)}):N.jsx("p",{className:"workflow-group-title",onDoubleClick:()=>n(!0),children:r.value??"Group"})})},oye="Blue",n7={Red:{50:"#fef2f2",300:"#fca5a5",400:"#f87171"},Orange:{50:"#fff7ed",300:"#fdba74",400:"#fb923c"},Amber:{50:"#fffbeb",300:"#fcd34d",400:"#fbbf24"},Yellow:{50:"#fef9c3",300:"#fde047",400:"#facc15"},Lime:{50:"#f7fee7",300:"#bef264",400:"#a3e635"},Green:{50:"#f0fdf4",300:"#86efac",400:"#4ade80"},Emerald:{50:"#ecfdf5",300:"#6ee7b7",400:"#34d399"},Teal:{50:"#f0fdfa",300:"#5eead4",400:"#2dd4bf"},Cyan:{50:"#ecfeff",300:"#67e8f9",400:"#22d3ee"},Sky:{50:"#ecfeff",300:"#7dd3fc",400:"#38bdf8"},Blue:{50:"#eff6ff",300:"#93c5fd",400:"#60a5fa"},Indigo:{50:"#eef2ff",300:"#a5b4fc",400:"#818cf8"},Violet:{50:"#f5f3ff",300:"#c4b5fd",400:"#a78bfa"},Purple:{50:"#faf5ff",300:"#d8b4fe",400:"#c084fc"},Fuchsia:{50:"#fdf4ff",300:"#f0abfc",400:"#e879f9"},Pink:{50:"#fdf2f8",300:"#f9a8d4",400:"#f472b6"},Rose:{50:"#fff1f2",300:"#fda4af",400:"#fb7185"},Gray:{50:"#f9fafb",300:"#d1d5db",400:"#9ca3af"}},b_r=()=>N.jsx(zm,{name:w$.Color,children:({field:e})=>{const n=e.value??oye;return N.jsx(Cu,{position:"top",mouseLeaveDelay:300,content:N.jsx("div",{className:"workflow-group-color-palette",children:Object.entries(n7).map(([r,i])=>N.jsx(qo,{content:r,mouseEnterDelay:300,children:N.jsx("span",{className:"workflow-group-color-item",style:{backgroundColor:i[300],borderColor:r===n?i[400]:"#fff"},onClick:()=>e.onChange(r)},r)},r))}),children:N.jsx("span",{className:"workflow-group-color",style:{backgroundColor:n7[n][300]}})})}}),S_r=()=>N.jsxs("div",{className:"workflow-group-tools",children:[N.jsx(zlt,{className:"workflow-group-tools-drag"}),N.jsx(__r,{}),N.jsx(b_r,{})]}),S3e="workflow-move-into-group-tip-visible",E3e="false",o7=class o7{constructor(){$t(this,"closed",!1)}static get instance(){return this._instance||(this._instance=new o7),this._instance}isClosed(){return this.isCloseForever()||this.closed}close(){this.closed=!0}isCloseForever(){return localStorage.getItem(S3e)===E3e}closeForever(){localStorage.setItem(S3e,E3e)}};$t(o7,"_instance");let Zse=o7;const E_r=()=>{const e=Dw(),[n,r]=m.useState(!1),i=Zse.instance,o=Di(hc),a=m.useCallback(()=>{i.isClosed()||r(!0)},[i]),s=m.useCallback(()=>{i.close(),r(!1)},[i]),l=m.useCallback(()=>{i.closeForever(),s()},[s,i]);return m.useEffect(()=>{const c=o.on(d=>{d.type===t7.In&&d.targetContainer===e&&a()}),u=o.on(d=>{d.type===t7.Out&&d.sourceContainer===e&&!e.blocks.length&&r(!1)});return()=>{c.dispose(),u.dispose()}},[o,e,a,s,n]),{visible:n,close:s,closeForever:l}},C_r=oi.div`
|
||
position: absolute;
|
||
top: 35px;
|
||
|
||
width: 100%;
|
||
height: 28px;
|
||
white-space: nowrap;
|
||
pointer-events: auto;
|
||
|
||
.container {
|
||
display: inline-flex;
|
||
justify-content: center;
|
||
height: 100%;
|
||
width: 100%;
|
||
background-color: rgb(255 255 255);
|
||
border-radius: 8px 8px 0 0;
|
||
|
||
.content {
|
||
overflow: hidden;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: flex-start;
|
||
|
||
width: fit-content;
|
||
height: 100%;
|
||
padding: 0 12px;
|
||
|
||
.text {
|
||
font-size: 14px;
|
||
font-weight: 400;
|
||
font-style: normal;
|
||
line-height: 20px;
|
||
color: rgba(15, 21, 40, 82%);
|
||
text-overflow: ellipsis;
|
||
margin: 0;
|
||
}
|
||
|
||
.space {
|
||
width: 128px;
|
||
}
|
||
}
|
||
|
||
.actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
|
||
height: 28px;
|
||
padding: 0 12px;
|
||
|
||
.close-forever {
|
||
cursor: pointer;
|
||
|
||
padding: 0 3px;
|
||
|
||
font-size: 12px;
|
||
font-weight: 400;
|
||
font-style: normal;
|
||
line-height: 12px;
|
||
color: rgba(32, 41, 69, 62%);
|
||
margin: 0;
|
||
}
|
||
|
||
.close {
|
||
display: flex;
|
||
cursor: pointer;
|
||
height: 100%;
|
||
align-items: center;
|
||
}
|
||
}
|
||
}
|
||
`,w_r=/(Macintosh|MacIntel|MacPPC|Mac68K|iPad)/.test(navigator.userAgent),x_r=()=>N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:N.jsx("path",{fill:"#060709",fillOpacity:"0.5",d:"M12.13 12.128a.5.5 0 0 0 .001-.706L8.71 8l3.422-3.423a.5.5 0 0 0-.001-.705.5.5 0 0 0-.706-.002L8.002 7.293 4.579 3.87a.5.5 0 0 0-.705.002.5.5 0 0 0-.002.705L7.295 8l-3.423 3.422a.5.5 0 0 0 .002.706c.195.195.51.197.705.001l3.423-3.422 3.422 3.422c.196.196.51.194.706-.001"})}),T_r=()=>{const{visible:e,close:n,closeForever:r}=E_r();return e?N.jsx(C_r,{className:"workflow-group-tips",children:N.jsxs("div",{className:"container",children:[N.jsxs("div",{className:"content",children:[N.jsx("p",{className:"text",children:`Hold ${w_r?"Cmd ⌘":"Ctrl"} to drag node out`}),N.jsx("div",{className:"space",style:{width:0}})]}),N.jsxs("div",{className:"actions",children:[N.jsx("p",{className:"close-forever",onClick:r,children:"Never Remind"}),N.jsx("div",{className:"close",onClick:n,children:N.jsx(x_r,{})})]})]})}):null},O_r=({onMouseDown:e,onFocus:n,onBlur:r,children:i,style:o})=>{const a=_ot(w$.Color)??oye,s=n7[a];return N.jsx("div",{className:"workflow-group-header",onMouseDown:e,onFocus:n,onBlur:r,style:{...o,backgroundColor:s[50],borderColor:s[300]},children:i})},R_r=({node:e,style:n})=>{const r=_ot(w$.Color)??oye,i=n7[r];return m.useEffect(()=>{const o=document.createElement("style"),a=`
|
||
.workflow-group-render[data-group-id="${e.id}"] .workflow-group-background {
|
||
border: 1px solid ${i[300]};
|
||
}
|
||
|
||
.workflow-group-render.selected[data-group-id="${e.id}"] .workflow-group-background {
|
||
border: 1px solid ${i[400]};
|
||
}
|
||
`;return o.textContent=a,document.head.appendChild(o),()=>{o.remove()}},[i]),N.jsx("div",{className:"workflow-group-background","data-flow-editor-selectable":"true",style:{...n,backgroundColor:`${i[300]}29`}})},I_r=()=>{const{node:e,selected:n,selectNode:r,nodeRef:i,startDrag:o,onFocus:a,onBlur:s}=x_(),l=$ct(),c=e.getData(ls).getFormModel(),u=c==null?void 0:c.formControl,{height:d,width:f}=l??{},p=d??0;return N.jsx("div",{className:`workflow-group-render ${n?"selected":""}`,ref:i,"data-group-id":e.id,"data-node-selected":String(n),onMouseDown:r,onClick:h=>{r(h)},style:{width:f,height:d},children:N.jsx(jme,{control:u,children:N.jsxs(N.Fragment,{children:[N.jsx(O_r,{onMouseDown:h=>{o(h)},onFocus:a,onBlur:s,style:{height:gee},children:N.jsx(S_r,{})}),N.jsx(T_r,{}),N.jsx(y_r,{node:e}),N.jsx(R_r,{node:e,style:{top:gee+b3e,height:p-gee-b3e}})]})})})},Yx=24,N_r=({bounds:e,children:n,flowSelectConfig:r,commandRegistry:i})=>N.jsxs(N.Fragment,{children:[N.jsx("div",{style:{position:"absolute",left:e.right,top:e.top,transform:"translate(-100%, -100%)"},onMouseDown:o=>{o.stopPropagation()},children:N.jsxs(Fve,{size:"small",style:{display:"flex",flexWrap:"nowrap",height:Yx},children:[N.jsx(qo,{content:"Collapse",children:N.jsx(ol,{icon:N.jsx(Glt,{}),style:{height:Yx},type:"primary",theme:"solid",onMouseDown:o=>{i.executeCommand(df.COLLAPSE)}})}),N.jsx(qo,{content:"Expand",children:N.jsx(ol,{icon:N.jsx(Ove,{}),style:{height:Yx},type:"primary",theme:"solid",onMouseDown:o=>{i.executeCommand(df.EXPAND)}})}),N.jsx(qo,{content:"Create Group",children:N.jsx(ol,{icon:N.jsx(m_r,{size:14}),style:{height:Yx},type:"primary",theme:"solid",onClick:()=>{i.executeCommand(rye.Group)}})}),N.jsx(qo,{content:"Copy",children:N.jsx(ol,{icon:N.jsx(Ult,{}),style:{height:Yx},type:"primary",theme:"solid",onClick:()=>{i.executeCommand(df.COPY)}})}),N.jsx(qo,{content:"Delete",children:N.jsx(ol,{type:"primary",theme:"solid",icon:N.jsx(mfr,{}),style:{height:Yx},onClick:()=>{i.executeCommand(df.DELETE)}})})]})}),N.jsx("div",{children:n})]}),aye=V.createContext({}),sye=V.createContext({visible:!1,setNodeRender:()=>{}}),qct=V.createContext(!1),M_r=oi.div`
|
||
align-items: flex-start;
|
||
background-color: #fff;
|
||
border: 1px solid rgba(6, 7, 9, 0.15);
|
||
border-radius: 8px;
|
||
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.04), 0 4px 12px 0 rgba(0, 0, 0, 0.02);
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
position: relative;
|
||
min-width: 360px;
|
||
width: 100%;
|
||
height: auto;
|
||
|
||
&.selected {
|
||
border: 1px solid #4e40e5;
|
||
}
|
||
`,P_r=()=>N.jsx(Vlt,{style:{position:"absolute",color:"red",left:-6,top:-6,zIndex:1,background:"white",borderRadius:8}});function A_r(e,n,r=448){const i=n.transform.bounds;e.playground.scrollToView({bounds:i,scrollDelta:{x:r/2,y:0},zoom:1,scrollToCenter:!0})}const D_r=e=>{const{children:n,isScrollToView:r=!1}=e,i=_G(),{selected:o,startDrag:a,ports:s,selectNode:l,nodeRef:c,onFocus:u,onBlur:d}=i,[f,p]=m.useState(!1),h=m.useContext(sye),g=i.form,v=Bw(),y=s.map(_=>N.jsx(JV,{entity:_},_.id));return N.jsxs(N.Fragment,{children:[N.jsx(M_r,{className:o?"selected":"",ref:c,draggable:!0,onDragStart:_=>{a(_),p(!0)},onClick:_=>{l(_),f||(h.setNodeRender(i),r&&A_r(v,i.node))},onMouseUp:()=>p(!1),onFocus:u,onBlur:d,"data-node-selected":String(o),style:{outline:g!=null&&g.state.invalid?"1px solid red":"none"},children:n}),y]})},k_r=({node:e})=>{const n=x_(),r=n.form,i=m.useCallback(()=>e.renderData.node||document.body,[]);return N.jsx(Vve,{getPopupContainer:i,children:N.jsx(aye.Provider,{value:n,children:N.jsxs(D_r,{children:[(r==null?void 0:r.state.invalid)&&N.jsx(P_r,{}),r==null?void 0:r.render()]})})})},L_r=e=>{const n=ec(),{line:r,selected:i=!1,hovered:o}=e;return!(r.disposed||n.config.readonly||!i&&!o)},$_r=()=>N.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:N.jsxs("g",{id:"add",children:[N.jsx("path",{id:"background",fill:"#ffffff",fillRule:"evenodd",stroke:"none",d:"M 24 12 C 24 5.372583 18.627417 0 12 0 C 5.372583 0 -0 5.372583 -0 12 C -0 18.627417 5.372583 24 12 24 C 18.627417 24 24 18.627417 24 12 Z"}),N.jsx("path",{id:"content",fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M 22 12.005 C 22 6.482153 17.522848 2.004999 12 2.004999 C 6.477152 2.004999 2 6.482153 2 12.005 C 2 17.527847 6.477152 22.004999 12 22.004999 C 17.522848 22.004999 22 17.527847 22 12.005 Z"}),N.jsx("path",{id:"cross",fill:"#ffffff",stroke:"none",d:"M 11.411996 16.411797 C 11.411996 16.736704 11.675362 17 12.00023 17 C 12.325109 17 12.588474 16.736704 12.588474 16.411797 L 12.588474 12.58826 L 16.41201 12.58826 C 16.736919 12.58826 17.000216 12.324894 17.000216 12.000015 C 17.000216 11.675147 16.736919 11.411781 16.41201 11.411781 L 12.588474 11.411781 L 12.588474 7.588234 C 12.588474 7.263367 12.325109 7 12.00023 7 C 11.675362 7 11.411996 7.263367 11.411996 7.588234 L 11.411996 11.411781 L 7.588449 11.411781 C 7.263581 11.411781 7.000215 11.675147 7.000215 12.000015 C 7.000215 12.324894 7.263581 12.58826 7.588449 12.58826 L 11.411996 12.58826 L 11.411996 16.411797 Z"})]})}),F_r=e=>{const{line:n,selected:r,hovered:i,color:o}=e,a=L_r({line:n,selected:r,hovered:i}),s=Di(bd),l=Di(ei),c=Di(Ya),u=Di(Ql),d=Di(qa),{fromPort:f,toPort:p}=n,h=m.useCallback(async()=>{const g={x:(n.position.from.x+n.position.to.x)/2,y:(n.position.from.y+n.position.to.y)/2},v=Jd.getContainerNode({fromPort:f}),y=await s.singleSelectNodePanel({position:g,containerNode:v,panelProps:{enableScrollClose:!0}});if(!y)return;const{nodeType:_,nodeJSON:S}=y,b=Jd.adjustNodePosition({nodeType:_,position:g,fromPort:f,toPort:p,containerNode:v,document:l,dragService:c}),E=l.createWorkflowNodeByType(_,b,S??{},v==null?void 0:v.id);f&&p&&Jd.subNodesAutoOffset({node:E,fromPort:f,toPort:p,containerNode:v,historyService:d,dragService:c,linesManager:u}),await NS(20),Jd.buildLine({fromPort:f,node:E,toPort:p,linesManager:u}),n.dispose()},[]);return a?N.jsx("div",{className:"line-add-button",style:{left:"50%",top:"50%",color:o},"data-testid":"sdk.workflow.canvas.line.add","data-line-id":n.id,onClick:h,children:N.jsx($_r,{})}):N.jsx(N.Fragment,{})},B_r=()=>N.jsx("div",{className:"node-placeholder","data-testid":"workflow.detail.node-panel.placeholder",children:N.jsx(Zd,{className:"node-placeholder-skeleton",loading:!0,active:!0,placeholder:N.jsxs("div",{className:"",children:[N.jsxs("div",{className:"node-placeholder-hd",children:[N.jsx(Zd.Avatar,{shape:"square",className:"node-placeholder-avatar"}),N.jsx(Zd.Title,{style:{width:141}})]}),N.jsxs("div",{className:"node-placeholder-content",children:[N.jsxs("div",{className:"node-placeholder-footer",children:[N.jsx(Zd.Title,{style:{width:85}}),N.jsx(Zd.Title,{style:{width:241}})]}),N.jsx(Zd.Title,{style:{width:220}})]})]})})}),j_r=oi.div`
|
||
width: 100%;
|
||
height: 32px;
|
||
border-radius: 5px;
|
||
display: flex;
|
||
align-items: center;
|
||
cursor: pointer;
|
||
font-size: 19px;
|
||
padding: 0 15px;
|
||
&:hover {
|
||
background-color: hsl(252deg 62% 55% / 9%);
|
||
color: hsl(252 62% 54.9%);
|
||
}
|
||
`,U_r=oi.div`
|
||
font-size: 12px;
|
||
margin-left: 10px;
|
||
`;function H_r(e){return N.jsxs(j_r,{onClick:e.disabled?void 0:e.onClick,style:e.disabled?{opacity:.3}:{},children:[N.jsx("div",{style:{fontSize:14},children:e.icon}),N.jsx(U_r,{children:e.label})]})}const z_r=oi.div`
|
||
max-height: 500px;
|
||
overflow: auto;
|
||
&::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
`,V_r=e=>{const{onSelect:n}=e,r=Bw(),i=(o,a)=>{var l;const s=(l=a.onAdd)==null?void 0:l.call(a,r);n({nodeType:a.type,selectEvent:o,nodeJSON:s})};return N.jsx(z_r,{style:{width:80*2+20},children:xbr.map(o=>{var a,s;return N.jsx(H_r,{disabled:!(((a=o.canAdd)==null?void 0:a.call(o,r))??!0),icon:N.jsx("img",{style:{width:10,height:10,borderRadius:4},src:(s=o.info)==null?void 0:s.icon}),label:o.type,onClick:l=>i(l,o)},o.type)})})},G_r=e=>{const{onSelect:n,position:r,onClose:i,panelProps:o}=e,{enableNodePlaceholder:a}=o;return N.jsx(Cu,{trigger:"click",visible:!0,onVisibleChange:s=>s?null:i(),content:N.jsx(V_r,{onSelect:n}),placement:"right",popupAlign:{offset:[30,0]},overlayStyle:{padding:0},children:N.jsx("div",{style:a?{position:"absolute",top:r.y-61.5,left:r.x,width:360,height:100}:{position:"absolute",top:r.y,left:r.x,width:0,height:0},children:a&&N.jsx(B_r,{})})})};var Oh=(e=>(e.Size="size",e.Note="note",e))(Oh||{}),MD=(e=>(e.Change="change",e.MultiSelect="multiSelect",e.Select="select",e.Blur="blur",e))(MD||{});const C3e="",W_r=e=>{const{model:n,height:r}=e,i=ec(),[o,a]=m.useState(!1),s=m.useCallback(()=>n.element?n.element.scrollHeight>n.element.clientHeight:!1,[n,r,i]),l=m.useCallback(()=>{a(s())},[s]);return m.useEffect(()=>{l()},[r,l]),m.useEffect(()=>{const c=n.on(u=>{u.type===MD.Change&&l()});return()=>{c.dispose()}},[n,l]),{overflow:o,updateOverflow:l}};class Y_r{constructor(){$t(this,"innerValue",C3e);$t(this,"emitter",new Hn);$t(this,"editor");$t(this,"on",this.emitter.event)}get value(){return this.innerValue}setValue(n=C3e){this.initialized&&n!==this.innerValue&&(this.innerValue=n,this.syncEditorValue(),this.emitter.fire({type:MD.Change,value:this.innerValue}))}set element(n){this.initialized||(this.editor=n)}get element(){return this.editor}setFocus(n){this.initialized&&(n&&!this.focused?this.editor.focus():!n&&this.focused&&(this.editor.blur(),this.deselect(),this.emitter.fire({type:MD.Blur})))}selectEnd(){if(!this.initialized)return;const n=this.editor.value.length;this.editor.setSelectionRange(n,n)}get focused(){return document.activeElement===this.editor}deselect(){const n=window.getSelection();n&&n.removeAllRanges()}get initialized(){return!!this.editor}syncEditorValue(){this.initialized&&(this.editor.value=this.innerValue)}}const q_r=()=>{const e=kme(),{selected:n}=x_(),r=e.getData(ls).getFormModel(),i=m.useMemo(()=>new Y_r,[]);return m.useEffect(()=>{n||i.setFocus(n)},[n,i]),m.useEffect(()=>{const o=r.getValueIn(Oh.Note);i.setValue(o),i.selectEnd()},[r,i]),m.useEffect(()=>{const o=r.onFormValuesChange(({name:a})=>{if(a!==Oh.Note)return;const s=r.getValueIn(Oh.Note);i.setValue(s)});return()=>o.dispose()},[r,i]),i},K_r=()=>{const e=Dw(),n=e.getNodeMeta(),r=ec(),i=Di(qa),{size:o={width:240,height:150}}=n,a=e.getData(Ui),s=e.getData(ls).getFormModel(),l=s.getValueIn(Oh.Size),[c,u]=m.useState((l==null?void 0:l.width)??o.width),[d,f]=m.useState((l==null?void 0:l.height)??o.height);m.useEffect(()=>{s.getValueIn(Oh.Size)||s.setValueIn(Oh.Size,{width:c,height:d})},[s,c,d]),m.useEffect(()=>{const h=s.onFormValuesChange(({name:g})=>{if(g!==Oh.Size)return;const v=s.getValueIn(Oh.Size);v&&(u(v.width),f(v.height))});return()=>h.dispose()},[s]);const p=m.useCallback(()=>{const h={width:c,height:d,originalWidth:c,originalHeight:d,positionX:a.position.x,positionY:a.position.y,offsetX:0,offsetY:0};return{resizing:y=>{if(!h)return;const{zoom:_}=r.config,S=y.top/_,b=y.right/_,E=y.bottom/_,w=y.left/_,C=120,x=80,T=Math.max(C,h.originalWidth+b-w),R=Math.max(x,h.originalHeight+E-S),O=(w>0||b<0)&&T<=C?h.offsetX:w/2+b/2,M=(S>0||E<0)&&R<=x?h.offsetY:S,P=h.positionX+O,k=h.positionY+M;h.width=T,h.height=R,h.offsetX=O,h.offsetY=M,u(T),f(R),a.update({position:{x:P,y:k}})},resizeEnd:()=>{i.transact(()=>{i.pushOperation({type:CD.dragNodes,value:{ids:[e.id],value:[{x:h.positionX+h.offsetX,y:h.positionY+h.offsetY}],oldValue:[{x:h.positionX,y:h.positionY}]}},{noApply:!0}),s.setValueIn(Oh.Size,{width:h.width,height:h.height})})}}},[e,c,d,a,r,s,i]);return{width:c,height:d,onResize:p}},X_r=({node:e,focused:n,deleteNode:r})=>N.jsx("div",{className:`workflow-comment-more-button ${n?"workflow-comment-more-button-focused":""}`,children:N.jsx(Wct,{node:e,deleteNode:r})}),Q_r=e=>{const{model:n,style:r,onChange:i}=e,o=ec(),a=m.useRef(null),s=n.value||n.focused?void 0:"Enter a comment...";return m.useEffect(()=>{const l=n.on(c=>{c.type===MD.Change&&(i==null||i(n.value))});return()=>l.dispose()},[n,i]),m.useEffect(()=>{a.current&&(n.element=a.current)},[a]),N.jsxs("div",{className:"workflow-comment-editor",children:[N.jsx("p",{className:"workflow-comment-editor-placeholder",children:s}),N.jsx("textarea",{className:"workflow-comment-editor-textarea",ref:a,style:r,readOnly:o.config.readonly,onChange:l=>{const{value:c}=l.target;n.setValue(c)},onFocus:()=>{n.setFocus(!0)},onBlur:()=>{n.setFocus(!1)}})]})},MT=e=>{const{model:n,stopEvent:r=!0,style:i}=e,o=ec(),{startDrag:a,onFocus:s,onBlur:l,selectNode:c}=x_();return N.jsx("div",{className:"workflow-comment-drag-area","data-flow-editor-selectable":"false",draggable:!0,style:i,onMouseDown:u=>{r&&(u.preventDefault(),u.stopPropagation()),n.setFocus(!1),a(u),c(u),o.node.focus()},onFocus:s,onBlur:l})},Z_r=e=>{const{model:n,focused:r,overflow:i}=e,o=ec(),{selectNode:a}=x_(),[s,l]=m.useState(!1);m.useEffect(()=>{r||l(!1)},[r]);const c=d=>{const f=n.element;if(s||!i||!f)return;d.stopPropagation();const p=f.scrollHeight-f.clientHeight,h=Math.min(Math.max(f.scrollTop+d.deltaY,0),p);f.scroll(0,h)},u=d=>{if(s)return;d.preventDefault(),d.stopPropagation(),n.setFocus(!1),a(d),o.node.focus();const f=d.clientX,p=d.clientY,h=g=>{const v=g.clientX-f,y=g.clientY-p,_=5;Math.abs(v)<_&&Math.abs(y)<_&&l(!0),document.removeEventListener("mouseup",h),document.removeEventListener("click",h)};document.addEventListener("mouseup",h),document.addEventListener("click",h)};return N.jsx("div",{className:"workflow-comment-content-drag-area",onMouseDown:u,onWheel:c,style:{display:s?"none":void 0},children:N.jsx(MT,{style:{position:"relative",width:"100%",height:"100%"},model:n,stopEvent:!1})})},J_r=e=>{const{focused:n,children:r,style:i}=e,o={scrollbarWidth:"thin",scrollbarColor:"rgb(159 159 158 / 65%) transparent","&:WebkitScrollbar":{width:"4px"},"&::WebkitScrollbarTrack":{background:"transparent"},"&::WebkitScrollbarThumb":{backgroundColor:"rgb(159 159 158 / 65%)",borderRadius:"20px",border:"2px solid transparent"}};return N.jsx("div",{className:"workflow-comment-container","data-flow-editor-selectable":"false",style:{outline:n?"1px solid #FF811A":"1px solid #F2B600",backgroundColor:n?"#FFF3EA":"#FFFBED",...o,...i},children:r})},C5=e=>{const{model:n,onResize:r,getDelta:i,style:o}=e,a=ec(),{selectNode:s}=x_(),l=c=>{if(c.preventDefault(),c.stopPropagation(),!r)return;const{resizing:u,resizeEnd:d}=r();n.setFocus(!1),s(c),a.node.focus();const f=c.clientX,p=c.clientY,h=v=>{const y=v.clientX-f,_=v.clientY-p,S=i==null?void 0:i({x:y,y:_});!S||!u||u(S)},g=()=>{d(),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",g),document.removeEventListener("click",g)};document.addEventListener("mousemove",h),document.addEventListener("mouseup",g),document.addEventListener("click",g)};return N.jsx("div",{className:"workflow-comment-resize-area",style:o,"data-flow-editor-selectable":"false",onMouseDown:l})},ebr=e=>{const{model:n,overflow:r,onResize:i}=e;return N.jsxs("div",{style:{zIndex:999},children:[N.jsx(MT,{style:{position:"absolute",left:-10,top:10,width:20,height:"calc(100% - 20px)"},model:n}),N.jsx(MT,{style:{position:"absolute",right:-10,top:10,height:"calc(100% - 20px)",width:r?10:20},model:n}),N.jsx(MT,{style:{position:"absolute",top:-10,left:10,width:"calc(100% - 20px)",height:20},model:n}),N.jsx(MT,{style:{position:"absolute",bottom:-10,left:10,width:"calc(100% - 20px)",height:20},model:n}),N.jsx(C5,{style:{position:"absolute",left:0,top:0,cursor:"nwse-resize"},model:n,getDelta:({x:o,y:a})=>({top:a,right:0,bottom:0,left:o}),onResize:i}),N.jsx(C5,{style:{position:"absolute",right:0,top:0,cursor:"nesw-resize"},model:n,getDelta:({x:o,y:a})=>({top:a,right:o,bottom:0,left:0}),onResize:i}),N.jsx(C5,{style:{position:"absolute",right:0,bottom:0,cursor:"nwse-resize"},model:n,getDelta:({x:o,y:a})=>({top:0,right:o,bottom:a,left:0}),onResize:i}),N.jsx(C5,{style:{position:"absolute",left:0,bottom:0,cursor:"nesw-resize"},model:n,getDelta:({x:o,y:a})=>({top:0,right:0,bottom:a,left:o}),onResize:i})]})},tbr=e=>{const{model:n}=e,r=ec(),{selectNode:i}=x_();return N.jsx("div",{className:"workflow-comment-blank-area h-full w-full",onMouseDown:o=>{o.preventDefault(),o.stopPropagation(),n.setFocus(!1),i(o),r.node.focus()},onClick:o=>{n.setFocus(!0),n.selectEnd()},children:N.jsx(MT,{style:{position:"relative",width:"100%",height:"100%"},model:n,stopEvent:!1})})},nbr=e=>{const{node:n}=e,r=q_r(),{selected:i,selectNode:o,nodeRef:a,deleteNode:s}=x_(),l=n.getData(ls).getFormModel(),c=l==null?void 0:l.formControl,{width:u,height:d,onResize:f}=K_r(),{overflow:p,updateOverflow:h}=W_r({model:r,height:d});return N.jsx("div",{className:"workflow-comment",style:{width:u,height:d},ref:a,"data-node-selected":String(i),onMouseEnter:h,onMouseDown:g=>{setTimeout(()=>{o(g)},20)},children:N.jsx(jme,{control:c,children:N.jsxs(N.Fragment,{children:[N.jsx(J_r,{focused:i,style:{height:d},children:N.jsx(zm,{name:Oh.Note,children:({field:g})=>N.jsxs(N.Fragment,{children:[N.jsx(Q_r,{model:r,value:g.value,onChange:g.onChange}),N.jsx(tbr,{model:r}),N.jsx(Z_r,{model:r,focused:i,overflow:p}),N.jsx(X_r,{node:n,focused:i,deleteNode:s})]})})}),N.jsx(ebr,{model:r,overflow:p,onResize:f})]})})})};function rbr(e,n){return m.useMemo(()=>({background:!0,readonly:!1,initialData:e,nodeRegistries:n,getNodeDefaultRegistry(r){return{type:r,meta:{defaultExpanded:!0},formMeta:Yct}},lineColor:{hidden:"transparent",default:"#4d53e8",drawing:"#5DD6E3",hovered:"#37d0ff",selected:"#37d0ff",error:"red"},canAddLine(r,i,o){return i.node!==o.node},canDeleteLine(r,i,o,a){return!0},canDeleteNode(r,i){return!0},onDragLineEnd:xyr,selectBox:{SelectorBoxPopover:N_r},materials:{renderDefaultNode:k_r,renderNodes:{[wu.Comment]:nbr}},nodeEngine:{enable:!0},variableEngine:{enable:!0},history:{enable:!0,enableChangeNode:!0},onContentChange:Hnr((r,i)=>{console.log("Auto Save: ",i,r.document.toJSON())},1e3),shortcuts:zyr,onBind:({bind:r})=>{r(UC).toSelf().inSingletonScope()},onInit(){console.log("--- Playground init ---")},onAllLayersRendered(r){r.document.fitView(!1),console.log("--- Playground rendered ---")},onDispose(){console.log("---- Playground Dispose ----")},plugins:()=>[Nst({renderInsideLine:F_r}),Gvr({disableLayer:!0,canvasStyle:{canvasWidth:182,canvasHeight:102,canvasPadding:50,canvasBackground:"rgba(242, 243, 245, 1)",canvasBorderRadius:10,viewportBackground:"rgba(255, 255, 255, 1)",viewportBorderRadius:4,viewportBorderColor:"rgba(6, 7, 9, 0.10)",viewportBorderWidth:1,viewportBorderDashLength:void 0,nodeColor:"rgba(0, 0, 0, 0.10)",nodeBorderRadius:2,nodeBorderWidth:.145,nodeBorderColor:"rgba(6, 7, 9, 0.10)",overlayColor:"rgba(255, 255, 255, 0.55)"},inactiveDebounceTime:1}),Yyr({}),qvr({edgeColor:"#00B2B2",alignColor:"#00B2B2",edgeLineWidth:1,alignLineWidth:1,alignCrossWidth:8}),nyr({renderer:G_r}),oyr({}),wyr({groupNodeRender:I_r})]}),[])}function _G(){return m.useContext(aye)}function jS(){return m.useContext(qct)}const ibr=({form:e})=>jS()?N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsx(Y0,{children:N.jsx(zm,{name:"outputs",render:({field:{value:r,onChange:i}})=>N.jsx(N.Fragment,{children:N.jsx(jvr,{value:r,onChange:o=>i(o)})})})})]}):N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsx(Y0,{children:N.jsx(zR,{})})]}),obr={render:ibr,validateTrigger:r$.onChange,validate:{title:({value:e})=>e?void 0:"Title is required"}};var wu=(e=>(e.Start="start",e.End="end",e.LLM="llm",e.Condition="condition",e.Loop="loop",e.Comment="comment",e))(wu||{});const abr={type:wu.Start,meta:{isStart:!0,deleteDisable:!0,copyDisable:!0,defaultPorts:[{type:"output"}],size:{width:360,height:211}},info:{icon:icr,description:"The starting node of the workflow, used to set the information needed to initiate the workflow."},formMeta:obr,canAdd(){return!1}},sbr="/agenticflow/assets/icon-loop-BOwpxpMz.jpg",lbr=({form:e})=>jS()?N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsxs(Y0,{children:[N.jsx(Qse,{}),N.jsx(zR,{})]})]}):N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsxs(Y0,{children:[N.jsx(Qse,{}),N.jsx(yyr,{}),N.jsx(zR,{})]})]});let cbr=0;const ubr={type:wu.Loop,info:{icon:sbr,description:"Used to repeatedly execute a series of tasks by setting the number of iterations and logic."},meta:{isContainer:!0,size:{width:560,height:400},padding:()=>({top:125,bottom:100,left:100,right:100}),selectable(e,n){return n?!e.getData(hr).bounds.contains(n.x,n.y):!0},expandable:!1},onAdd(){return{id:`loop_${rO(5)}`,type:"loop",data:{title:`Loop_${++cbr}`,inputsValues:{loopTimes:2},inputs:{type:"object",required:["loopTimes"],properties:{loopTimes:{type:"number"}}},outputs:{type:"object",properties:{result:{type:"string"}}}}}},formMeta:{...Yct,render:lbr},onCreate(){}},dbr="/agenticflow/assets/icon-llm-BJkdbjNX.jpg";let fbr=0;const pbr={type:wu.LLM,info:{icon:dbr,description:"Call the large language model and use variables and prompt words to generate responses."},meta:{size:{width:360,height:305}},onAdd(){return{id:`llm_${rO(5)}`,type:"llm",data:{title:`LLM_${++fbr}`,inputsValues:{},inputs:{type:"object",required:["modelType","temperature","prompt"],properties:{modelType:{type:"string"},temperature:{type:"number"},systemPrompt:{type:"string"},prompt:{type:"string"}}},outputs:{type:"object",properties:{result:{type:"string"}}}}}}},hbr="/agenticflow/assets/icon-end-Bb5sqRY8.jpg",gbr=({form:e})=>jS()?N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsxs(Y0,{children:[N.jsx(zm,{name:"outputs.properties",render:({field:{value:r,onChange:i},fieldState:o})=>N.jsx(N.Fragment,{children:N.jsx(h_r,{value:r,onChange:i,useFx:!0})})}),N.jsx(zR,{})]})]}):N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsx(Y0,{children:N.jsx(zR,{})})]}),mbr={render:gbr,validateTrigger:r$.onChange,validate:{title:({value:e})=>e?void 0:"Title is required"}},vbr={type:wu.End,meta:{deleteDisable:!0,copyDisable:!0,defaultPorts:[{type:"input"}],size:{width:360,height:211}},info:{icon:hbr,description:"The final node of the workflow, used to return the result information after the workflow is run."},formMeta:mbr,canAdd(){return!1}},ybr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='44'%20height='45'%20viewBox='0%200%2044%2045'%20fill='none'%20class='injected-svg'%20data-src='https://lf3-static.bytednsdoc.com/obj/eden-cn/uvpahtvabh_lm_zhhwh/ljhwZthlaukjlkulzlp/activity_icons/exclusive-split-0518.svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.4705%2014.0152C15.299%2012.8436%2015.299%2010.944%2016.4705%209.77244L20.7131%205.5297C21.8846%204.3581%2023.784%204.3581%2024.9556%205.5297L29.1981%209.77244C30.3697%2010.944%2030.3697%2012.8436%2029.1981%2014.0152L25.1206%2018.0929H32.6674C36.5334%2018.0929%2039.6674%2021.2269%2039.6674%2025.0929V33.154V33.3271V37.154C39.6674%2038.2585%2038.7719%2039.154%2037.6674%2039.154H33.6674C32.5628%2039.154%2031.6674%2038.2585%2031.6674%2037.154V33.3271V33.154V26.0929H23.5948H15.6674V33.1327L17.2685%2033.1244C18.8397%2033.1163%2019.6322%2035.0156%2018.5212%2036.1266L12.7374%2041.9103C12.0506%2042.5971%2010.9371%2042.5971%2010.2503%2041.9103L4.52588%2036.1859C3.42107%2035.0811%204.19797%2033.1917%205.76038%2033.1837L7.66737%2033.1739V25.0929C7.66737%2021.227%2010.8014%2018.0929%2014.6674%2018.0929H20.5481L16.4705%2014.0152Z'%20fill='url(%23paint0_linear_2752_183702-7)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2752_183702-7'%20x1='38.52'%20y1='43.3915'%20x2='8.09686'%20y2='4.6982'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%233370FF'/%3e%3cstop%20offset='0.997908'%20stop-color='%2333A9FF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",_br=oi.div`
|
||
position: absolute;
|
||
right: -12px;
|
||
top: 50%;
|
||
`;function bbr(){const e=!jS();return N.jsx(DJn,{name:"inputsValues.conditions",children:({field:n})=>N.jsxs(N.Fragment,{children:[n.map((r,i)=>N.jsx(zm,{name:r.name,children:({field:o,fieldState:a})=>N.jsxs(Gct,{name:"if",type:"boolean",required:!0,labelWidth:40,children:[N.jsx(Vct,{value:o.value.value,onChange:s=>o.onChange({key:o.value.key,value:s}),icon:N.jsx(ol,{theme:"borderless",icon:N.jsx(Hlt,{}),onClick:()=>n.delete(i)}),hasError:Object.keys((a==null?void 0:a.errors)||{}).length>0,readonly:e}),N.jsx(iye,{errors:a==null?void 0:a.errors,invalid:a==null?void 0:a.invalid}),N.jsx(_br,{"data-port-id":o.value.key,"data-port-type":"output"})]})},r.name)),!e&&N.jsx("div",{children:N.jsx(ol,{theme:"borderless",icon:N.jsx(aG,{}),onClick:()=>n.append({key:`if_${rO(6)}`,value:{type:"expression",content:""}}),children:"Add"})})]})})}const Sbr=({form:e})=>N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsx(Y0,{children:N.jsx(bbr,{})})]}),Ebr={render:Sbr,validateTrigger:r$.onChange,validate:{title:({value:e})=>e?void 0:"Title is required","inputsValues.conditions.*":({value:e})=>{var n;if(!((n=e==null?void 0:e.value)!=null&&n.content))return"Condition is required"}}},Cbr={type:wu.Condition,info:{icon:ybr,description:"Connect multiple downstream branches. Only the corresponding branch will be executed if the set conditions are met."},meta:{defaultPorts:[{type:"input"}],useDynamicPort:!0,expandable:!1},formMeta:Ebr,onAdd(){return{id:`condition_${rO(5)}`,type:"condition",data:{title:"Condition",inputsValues:{conditions:[{key:`if_${rO(5)}`,value:""},{key:`if_${rO(5)}`,value:""}]},inputs:{type:"object",properties:{conditions:{type:"array",items:{type:"object",properties:{key:{type:"string"},value:{type:"string"}}}}}}}}}},wbr={type:wu.Comment,meta:{disableSideBar:!0,defaultPorts:[],renderKey:wu.Comment,size:{width:240,height:150}},formMeta:{render:()=>N.jsx(N.Fragment,{})},getInputPoints:()=>[],getOutputPoints:()=>[]},Kct=[Cbr,abr,vbr,pbr,ubr,wbr],xbr=Kct.filter(e=>e.type!==wu.Comment),Xct={nodes:[],edges:[]},Tbr=()=>{const e=ec();return m.useCallback(n=>e.config.getPosFromMouseEvent({clientX:n.left+64,clientY:n.top-7}),[e])},Obr=()=>{const e=Di(Wa);return m.useCallback(n=>{n&&e.selectNode(n)},[e])},Rbr=()=>{const e=Di(ei),n=Di(bd),r=ec(),i=Tbr(),o=Obr();return m.useCallback(async a=>{const s=i(a);await new Promise(l=>{n.callNodePanel({position:s,enableMultiAdd:!0,panelProps:{},onSelect:async c=>{if(!c)return;const{nodeType:u,nodeJSON:d}=c,f=e.createWorkflowNodeByType(u,void 0,d??{});o(f)},onClose:()=>{l()}})})},[i,n,r.config.zoom,e,o])},Ibr=e=>{const n=Rbr(),r=Fr();return N.jsx(ol,{icon:N.jsx(aG,{}),color:"highlight",style:{backgroundColor:"rgba(171,181,255,0.3)",borderRadius:"8px"},disabled:e.disabled,onClick:i=>{const o=i.currentTarget.getBoundingClientRect();n(o)},children:r.formatMessage({id:"flowgram.addnode.button",defaultMessage:"添加节点"})})},Nbr=()=>N.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:N.jsxs("g",{id:"g1",children:[N.jsx("path",{id:"path1",fill:"#000000",stroke:"none",d:"M 18.09091 6.883101 L 5.409091 6.883101 L 5.409091 16.746737 L 10.664648 16.746737 C 10.927091 17.116341 11.30353 17.422749 11.792977 17.611004 L 12.664289 17.946156 L 12.744959 18.155828 L 5.409091 18.155828 C 4.630871 18.155828 4 17.524979 4 16.746737 L 4 6.883101 C 4 6.104881 4.630871 5.47401 5.409091 5.47401 L 18.09091 5.47401 C 18.86915 5.47401 19.5 6.104881 19.5 6.883101 L 19.5 12.52348 C 19.247208 11.883823 18.730145 11.365912 18.09091 11.111994 L 18.09091 6.883101 Z M 18.09091 18.155828 L 17.881165 18.155828 L 19.469212 14.368896 C 19.479921 14.343321 19.490206 14.317817 19.5 14.292241 L 19.5 16.746737 C 19.5 17.524979 18.86915 18.155828 18.09091 18.155828 Z"}),N.jsx("path",{id:"path2",fill:"#000000",fillRule:"evenodd",stroke:"none",d:"M 18.494614 13.960189 C 18.982441 12.796985 17.813459 11.628003 16.650255 12.11576 L 12.133272 14.01 C 10.962248 14.501069 10.987188 16.168798 12.172375 16.62464 L 13.482055 17.128389 L 13.985805 18.438068 C 14.441646 19.623184 16.109375 19.648125 16.600443 18.477171 L 18.494614 13.960189 Z M 17.19515 13.415224 L 15.30098 17.932205 L 14.79723 16.622526 C 14.654066 16.250385 14.359989 15.956307 13.987918 15.813213 L 12.678168 15.309464 L 17.19515 13.415224 Z"})]})}),Mbr=oi.div`
|
||
position: absolute;
|
||
bottom: 16px;
|
||
display: flex;
|
||
justify-content: left;
|
||
min-width: 360px;
|
||
pointer-events: none;
|
||
gap: 8px;
|
||
|
||
z-index: 99;
|
||
`,Pbr=oi.div`
|
||
display: flex;
|
||
align-items: center;
|
||
background-color: #fff;
|
||
border: 1px solid rgba(68, 83, 130, 0.25);
|
||
border-radius: 10px;
|
||
box-shadow: rgba(0, 0, 0, 0.04) 0px 2px 6px 0px, rgba(0, 0, 0, 0.02) 0px 4px 12px 0px;
|
||
column-gap: 2px;
|
||
height: 40px;
|
||
padding: 0 4px;
|
||
pointer-events: auto;
|
||
`,Abr=oi.span`
|
||
padding: 4px;
|
||
border-radius: 8px;
|
||
border: 1px solid rgba(68, 83, 130, 0.25);
|
||
font-size: 12px;
|
||
width: 50px;
|
||
cursor: pointer;
|
||
`,Dbr=oi.div`
|
||
position: absolute;
|
||
bottom: 60px;
|
||
width: 198px;
|
||
`,kbr=oi(Nbr)`
|
||
color: ${e=>e.visible?void 0:"#060709cc"};
|
||
`,Lbr=()=>{const e=h$(),n=ec(),[r,i]=m.useState(!1);return N.jsx(Do,{position:"top",trigger:"custom",visible:r,onClickOutSide:()=>i(!1),render:N.jsxs(Do.Menu,{children:[N.jsx(Do.Item,{onClick:()=>e.zoomin(),children:"Zoom in"}),N.jsx(Do.Item,{onClick:()=>e.zoomout(),children:"Zoom out"}),N.jsx(vct,{layout:"horizontal"}),N.jsx(Do.Item,{onClick:()=>n.config.updateZoom(.5),children:"Zoom to 50%"}),N.jsx(Do.Item,{onClick:()=>n.config.updateZoom(1),children:"Zoom to 100%"}),N.jsx(Do.Item,{onClick:()=>n.config.updateZoom(1.5),children:"Zoom to 150%"}),N.jsx(Do.Item,{onClick:()=>n.config.updateZoom(2),children:"Zoom to 200%"})]}),children:N.jsxs(Abr,{onClick:()=>i(!0),children:[Math.floor(e.zoom*100),"%"]})})},$br=N.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{id:"switch-line",fill:"currentColor",stroke:"none",d:"M 12.728118 10.060962 C 13.064282 8.716098 14.272528 7.772551 15.65877 7.772343 L 17.689898 7.772343 C 18.0798 7.772343 18.39588 7.456264 18.39588 7.066362 C 18.39588 6.676458 18.0798 6.36038 17.689898 6.36038 L 15.659616 6.36038 C 13.62515 6.360315 11.851767 7.745007 11.358504 9.718771 C 11.02234 11.063635 9.814095 12.007183 8.427853 12.007389 L 7.101437 12.007389 C 6.711768 12.007389 6.395878 12.323277 6.395878 12.712947 C 6.395878 13.102616 6.711768 13.418506 7.101437 13.418506 L 8.426159 13.418506 C 9.812716 13.418323 11.021417 14.361954 11.357657 15.707124 C 11.850921 17.680887 13.624304 19.065578 15.65877 19.065516 L 17.689049 19.065516 C 18.078953 19.065516 18.395033 18.749435 18.395033 18.359533 C 18.395033 17.969631 18.078953 17.653551 17.689049 17.653551 L 15.65877 17.653551 C 14.272528 17.653345 13.064282 16.709797 12.728118 15.364932 C 12.454905 14.27114 11.774856 13.322707 10.826583 12.712947 C 11.774536 12.10303 12.454268 11.154617 12.727271 10.060962 Z"})}),Fbr=()=>{const e=Di(Ql),n=m.useCallback(()=>{e.switchLineType()},[e]);return N.jsx(qo,{content:"Switch Line",children:N.jsx(ul,{type:"tertiary",theme:"borderless",onClick:n,icon:$br})})},Bbr=()=>{const e=ec(),n=m.useCallback(()=>{e.config.readonly=!e.config.readonly},[e]);return e.config.readonly?N.jsx(qo,{content:"Editable",children:N.jsx(ul,{theme:"borderless",type:"tertiary",icon:N.jsx(Mfr,{size:"default"}),onClick:n})}):N.jsx(qo,{content:"Readonly",children:N.jsx(ul,{theme:"borderless",type:"tertiary",icon:N.jsx(epr,{size:"default"}),onClick:n})})},jbr=e=>{const{minimapVisible:n,setMinimapVisible:r}=e;return N.jsx(qo,{content:"Minimap",children:N.jsx(ul,{type:"tertiary",theme:"borderless",icon:N.jsx(kbr,{visible:n}),onClick:()=>r(!n)})})},Ubr=({visible:e})=>{const n=Di(xm);return e?N.jsx(Dbr,{children:N.jsx(Mct,{service:n,panelStyles:{},containerStyles:{pointerEvents:"auto",position:"relative",top:"unset",right:"unset",bottom:"unset",left:"unset"},inactiveStyle:{opacity:1,scale:1,translateX:0,translateY:0}})}):N.jsx(N.Fragment,{})};function Hbr(e){const{width:n,height:r}=e;return N.jsxs("svg",{width:n||48,height:r||38,viewBox:"0 0 48 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("rect",{x:"1.83317",y:"1.49998",width:"44.3333",height:"35",rx:"3.5",stroke:"currentColor",strokeOpacity:"0.8",strokeWidth:"2.33333"}),N.jsx("path",{d:"M14.6665 30.6667H33.3332",stroke:"currentColor",strokeOpacity:"0.8",strokeWidth:"2.33333",strokeLinecap:"round"})]})}const zbr=()=>N.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8549 5H3.1451C3.06496 5 3 5.06496 3 5.1451V18.8549C3 18.935 3.06496 19 3.1451 19H20.8549C20.935 19 21 18.935 21 18.8549V5.1451C21 5.06496 20.935 5 20.8549 5ZM3.1451 3C1.96039 3 1 3.96039 1 5.1451V18.8549C1 20.0396 1.96039 21 3.1451 21H20.8549C22.0396 21 23 20.0396 23 18.8549V5.1451C23 3.96039 22.0396 3 20.8549 3H3.1451Z"}),N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99991 16C6.99991 15.4477 7.44762 15 7.99991 15H15.9999C16.5522 15 16.9999 15.4477 16.9999 16C16.9999 16.5523 16.5522 17 15.9999 17H7.99991C7.44762 17 6.99991 16.5523 6.99991 16Z"})]});function Vbr(e){const{width:n,height:r}=e;return N.jsx("svg",{width:n||34,height:r||52,viewBox:"0 0 34 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.9998 16.6666V35.3333C30.9998 37.5748 30.9948 38.4695 30.9 39.1895C30.2108 44.4247 26.0912 48.5443 20.856 49.2335C20.1361 49.3283 19.2413 49.3333 16.9998 49.3333C14.7584 49.3333 13.8636 49.3283 13.1437 49.2335C7.90847 48.5443 3.78888 44.4247 3.09965 39.1895C3.00487 38.4695 2.99984 37.5748 2.99984 35.3333V16.6666C2.99984 14.4252 3.00487 13.5304 3.09965 12.8105C3.78888 7.57528 7.90847 3.45569 13.1437 2.76646C13.7232 2.69017 14.4159 2.67202 15.8332 2.66785V9.86573C14.4738 10.3462 13.4998 11.6426 13.4998 13.1666V17.8332C13.4998 19.3571 14.4738 20.6536 15.8332 21.1341V23.6666C15.8332 24.3109 16.3555 24.8333 16.9998 24.8333C17.6442 24.8333 18.1665 24.3109 18.1665 23.6666V21.1341C19.5259 20.6536 20.4998 19.3572 20.4998 17.8332V13.1666C20.4998 11.6426 19.5259 10.3462 18.1665 9.86571V2.66785C19.5837 2.67202 20.2765 2.69017 20.856 2.76646C26.0912 3.45569 30.2108 7.57528 30.9 12.8105C30.9948 13.5304 30.9998 14.4252 30.9998 16.6666ZM0.666504 16.6666C0.666504 14.4993 0.666504 13.4157 0.786276 12.5059C1.61335 6.22368 6.55687 1.28016 12.8391 0.453085C13.7489 0.333313 14.8325 0.333313 16.9998 0.333313C19.1671 0.333313 20.2508 0.333313 21.1605 0.453085C27.4428 1.28016 32.3863 6.22368 33.2134 12.5059C33.3332 13.4157 33.3332 14.4994 33.3332 16.6666V35.3333C33.3332 37.5006 33.3332 38.5843 33.2134 39.494C32.3863 45.7763 27.4428 50.7198 21.1605 51.5469C20.2508 51.6666 19.1671 51.6666 16.9998 51.6666C14.8325 51.6666 13.7489 51.6666 12.8391 51.5469C6.55687 50.7198 1.61335 45.7763 0.786276 39.494C0.666504 38.5843 0.666504 37.5006 0.666504 35.3333V16.6666ZM15.8332 13.1666C15.8332 13.0011 15.8676 12.8437 15.9297 12.7011C15.9886 12.566 16.0722 12.4443 16.1749 12.3416C16.386 12.1305 16.6777 11.9999 16.9998 11.9999C17.6435 11.9999 18.1654 12.5212 18.1665 13.1646L18.1665 13.1666V17.8332L18.1665 17.8353C18.1665 17.8364 18.1665 17.8376 18.1665 17.8387C18.1661 17.9132 18.1588 17.986 18.1452 18.0565C18.0853 18.3656 17.9033 18.6312 17.6515 18.8011C17.4655 18.9266 17.2412 18.9999 16.9998 18.9999C16.3555 18.9999 15.8332 18.4776 15.8332 17.8332V13.1666Z",fill:"currentColor",fillOpacity:"0.8"})})}const Gbr=()=>N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 8C4.5 4.13401 7.63401 1 11.5 1H12.5C16.366 1 19.5 4.13401 19.5 8V17C19.5 20.3137 16.8137 23 13.5 23H10.5C7.18629 23 4.5 20.3137 4.5 17V8ZM11.2517 3.00606C8.60561 3.13547 6.5 5.32184 6.5 8V17C6.5 19.2091 8.29086 21 10.5 21H13.5C15.7091 21 17.5 19.2091 17.5 17V8C17.5 5.32297 15.3962 3.13732 12.7517 3.00622V5.28013C13.2606 5.54331 13.6074 6.06549 13.6074 6.66669V8.75759C13.6074 9.35879 13.2606 9.88097 12.7517 10.1441V11.4091C12.7517 11.8233 12.4159 12.1591 12.0017 12.1591C11.5875 12.1591 11.2517 11.8233 11.2517 11.4091V10.1457C10.7411 9.88298 10.3931 9.35994 10.3931 8.75759V6.66669C10.3931 6.06433 10.7411 5.5413 11.2517 5.27862V3.00606ZM12.0017 6.14397C11.7059 6.14397 11.466 6.38381 11.466 6.67968V8.74462C11.466 9.03907 11.7036 9.27804 11.9975 9.28031L12.0002 9.28032C12.0456 9.28032 12.0896 9.27482 12.1316 9.26447C12.3401 9.21256 12.5002 9.0386 12.5318 8.82287C12.5345 8.80149 12.5359 8.7797 12.5359 8.75759V6.66669C12.5359 6.64463 12.5345 6.62288 12.5318 6.60154C12.4999 6.38354 12.3368 6.20817 12.1252 6.15826C12.0856 6.14891 12.0442 6.14397 12.0017 6.14397Z"})}),{Title:Wbr,Paragraph:Ybr}=LS,w3e=({title:e,subTitle:n,icon:r,onChange:i,value:o,selected:a})=>N.jsxs("div",{className:`mouse-pad-option ${a?"mouse-pad-option-selected":""}`,onClick:()=>i(o),children:[N.jsx("div",{className:`mouse-pad-option-icon ${a?"mouse-pad-option-icon-selected":""}`,children:r}),N.jsx(Wbr,{heading:6,className:`mouse-pad-option-title ${a?"mouse-pad-option-title-selected":""}`,children:e}),N.jsx(Ybr,{type:"tertiary",className:`mouse-pad-option-subTitle ${a?"mouse-pad-option-subTitle-selected":""}`,children:n})]}),qbr=({value:e,onChange:n,onPopupVisibleChange:r,containerStyle:i,iconStyle:o,arrowStyle:a})=>{const s=e==="MOUSE",[l,c]=m.useState(!1);return N.jsx(Cu,{trigger:"custom",position:"topLeft",closeOnEsc:!0,visible:l,onVisibleChange:u=>{r==null||r(u)},onClickOutSide:()=>{c(!1)},spacing:20,content:N.jsxs("div",{className:"ui-mouse-pad-selector-popover",children:[N.jsx(LS.Title,{heading:4,children:"Interaction mode"}),N.jsxs("div",{className:"ui-mouse-pad-selector-popover-options",children:[N.jsx(w3e,{title:"Mouse-Friendly",subTitle:"Drag the canvas with the left mouse button, zoom with the scroll wheel.",value:"MOUSE",selected:e==="MOUSE",icon:N.jsx(Vbr,{}),onChange:n}),N.jsx(w3e,{title:"Touchpad-Friendly",subTitle:"Drag with two fingers moving in the same direction, zoom by pinching or spreading two fingers.",value:"PAD",selected:e==="PAD",icon:N.jsx(Hbr,{}),onChange:n})]})]}),children:N.jsx("div",{className:`ui-mouse-pad-selector ${l?"ui-mouse-pad-selector-active":""}`,onClick:()=>{c(!l)},style:i,children:N.jsx("div",{className:"ui-mouse-pad-selector-icon",style:o,children:s?N.jsx(Gbr,{}):N.jsx(zbr,{})})})})},Qct="workflow_prefer_interactive_type",Kbr=/(Macintosh|MacIntel|MacPPC|Mac68K|iPad)/.test(navigator.userAgent),x3e=()=>{const e=localStorage.getItem(Qct);return e&&["MOUSE","PAD"].includes(e)?e:Kbr?"PAD":"MOUSE"},Xbr=e=>{localStorage.setItem(Qct,e)},Qbr=()=>{const e=h$(),[n,r]=m.useState(!1),[i,o]=m.useState(()=>x3e()),[a,s]=m.useState(!1),l=i==="MOUSE"?"Mouse-Friendly":"Touchpad-Friendly";m.useEffect(()=>{e.setMouseScrollDelta(d=>d/20);const u=x3e();e.setInteractiveType(u)},[]);const c=()=>{r(!1)};return N.jsx(Cu,{trigger:"custom",position:"top",visible:n,onClickOutSide:c,children:N.jsx(qo,{content:l,style:{display:a?"none":"block"},children:N.jsx("div",{className:"workflow-toolbar-interactive",children:N.jsx(qbr,{value:i,onChange:u=>{o(u),Xbr(u),e.setInteractiveType(u)},onPopupVisibleChange:s,containerStyle:{border:"none",height:"32px",width:"32px",justifyContent:"center",alignItems:"center",gap:"2px",padding:"4px",borderRadius:"var(--small, 6px)"},iconStyle:{margin:"0",width:"16px",height:"16px"},arrowStyle:{width:"12px",height:"12px"}})})})})},Zbr=()=>{const e=h$();return N.jsx(qo,{content:"FitView",children:N.jsx(ul,{icon:N.jsx(Ove,{}),type:"tertiary",theme:"borderless",onClick:()=>e.fitView()})})},Jbr=({style:e})=>N.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:e,children:[N.jsx("path",{d:"M6.5 9C5.94772 9 5.5 9.44772 5.5 10V11C5.5 11.5523 5.94772 12 6.5 12H7.5C8.05228 12 8.5 11.5523 8.5 11V10C8.5 9.44772 8.05228 9 7.5 9H6.5zM11.5 9C10.9477 9 10.5 9.44772 10.5 10V11C10.5 11.5523 10.9477 12 11.5 12H12.5C13.0523 12 13.5 11.5523 13.5 11V10C13.5 9.44772 13.0523 9 12.5 9H11.5zM15.5 10C15.5 9.44772 15.9477 9 16.5 9H17.5C18.0523 9 18.5 9.44772 18.5 10V11C18.5 11.5523 18.0523 12 17.5 12H16.5C15.9477 12 15.5 11.5523 15.5 11V10z"}),N.jsx("path",{d:"M23 4C23 2.9 22.1 2 21 2H3C1.9 2 1 2.9 1 4V17.0111C1 18.0211 1.9 19.0111 3 19.0111H7.7586L10.4774 22C10.9822 22.5017 11.3166 22.6311 12 22.7009C12.414 22.707 13.0502 22.5093 13.5 22L16.2414 19.0111H21C22.1 19.0111 23 18.1111 23 17.0111V4ZM3 4H21V17.0111H15.5L12 20.6714L8.5 17.0111H3V4Z"})]}),e0r=()=>{const e=ec(),n=Di(ei),r=Di(Wa),i=Di(Ya),[o,a]=m.useState(!1),s=m.useCallback(c=>{const u=e.config.getPosFromMouseEvent(c);return{x:u.x,y:u.y-75}},[e]),l=m.useCallback(async c=>{a(!1);const u=s(c),d=n.createWorkflowNodeByType(wu.Comment,u);await NS(16),r.selectNode(d),i.startDragSelectedNodes(c)},[r,s,n,i]);return N.jsx(qo,{trigger:"custom",visible:o,onVisibleChange:a,content:"Comment",children:N.jsx(ul,{disabled:e.config.readonly,icon:N.jsx(Jbr,{style:{width:16,height:16}}),type:"tertiary",theme:"borderless",onClick:l,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)})})},t0r=N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{fill:"currentColor",d:"M3 2C2.44772 2 2 2.44771 2 3V12C2 12.5523 2.44772 13 3 13H10C10.5523 13 11 12.5523 11 12V3C11 2.44772 10.5523 2 10 2H3zM4 11V4H9V11H4zM21 22C21.5523 22 22 21.5523 22 21V12C22 11.4477 21.5523 11 21 11H14C13.4477 11 13 11.4477 13 12V21C13 21.5523 13.4477 22 14 22H21zM20 13V20H15V13H20zM2 16C2 15.4477 2.44772 15 3 15H10C10.5523 15 11 15.4477 11 16V21C11 21.5523 10.5523 22 10 22H3C2.44772 22 2 21.5523 2 21V16zM4 20V17H9V20H4zM21 9C21.5523 9 22 8.55228 22 8V3C22 2.44772 21.5523 2 21 2H14C13.4477 2 13 2.44772 13 3V8C13 8.55228 13.4477 9 14 9H21zM20 4V7H15V4H20z"})}),n0r=()=>{const e=h$(),n=ec(),r=m.useCallback(async()=>{await e.autoLayout()},[e]);return N.jsx(qo,{content:"Auto Layout",children:N.jsx(ul,{disabled:n.config.readonly,type:"tertiary",theme:"borderless",onClick:r,icon:t0r})})},r0r=()=>{const{history:e,playground:n}=Bw(),[r,i]=m.useState(!1),[o,a]=m.useState(!1),[s,l]=m.useState(!0);m.useEffect(()=>{const u=e.undoRedoService.onChange(()=>{i(e.canUndo()),a(e.canRedo())});return()=>u.dispose()},[e]);const c=Od();return m.useEffect(()=>{const u=n.config.onReadonlyOrDisabledChange(()=>c());return()=>u.dispose()},[n]),N.jsx(Mbr,{className:"demo-free-layout-tools",children:N.jsxs(Pbr,{children:[N.jsx(Qbr,{}),N.jsx(n0r,{}),N.jsx(Fbr,{}),N.jsx(Lbr,{}),N.jsx(Zbr,{}),N.jsx(jbr,{minimapVisible:s,setMinimapVisible:l}),N.jsx(Ubr,{visible:s}),N.jsx(Bbr,{}),N.jsx(e0r,{}),N.jsx(qo,{content:"Undo",children:N.jsx(ul,{type:"tertiary",theme:"borderless",icon:N.jsx(Zfr,{}),disabled:!r||n.config.readonly,onClick:()=>e.undo()})}),N.jsx(qo,{content:"Redo",children:N.jsx(ul,{type:"tertiary",theme:"borderless",icon:N.jsx(Ffr,{}),disabled:!o||n.config.readonly,onClick:()=>e.redo()})}),N.jsx(vct,{layout:"vertical",style:{height:"16px"},margin:3}),N.jsx(Ibr,{disabled:n.config.readonly})]})})};function i0r({children:e}){const[n,r]=m.useState();return N.jsx(sye.Provider,{value:{visible:!!n,nodeRender:n,setNodeRender:r},children:e})}const o0r=()=>{var c;const{nodeRender:e,setNodeRender:n}=m.useContext(sye),{selection:r,playground:i}=Bw(),o=Od(),a=m.useCallback(()=>{n(void 0)},[]);m.useEffect(()=>{const u=i.config.onReadonlyOrDisabledChange(()=>o());return()=>u.dispose()},[i]),m.useEffect(()=>{const u=r.onSelectionChanged(()=>{(r.selection.length===0||r.selection.length===1&&r.selection[0]!==(e==null?void 0:e.node))&&a()});return()=>u.dispose()},[r,a]),m.useEffect(()=>{if(e){const u=e.node.onDispose(()=>{n(void 0)});return()=>u.dispose()}},[e]);const s=m.useMemo(()=>{if(!e)return!1;const{disableSideBar:u=!1}=e.node.getNodeMeta();return!u},[e]);if(i.config.readonly)return null;const l=e?N.jsx(LV.Provider,{value:e.node,children:N.jsx(aye.Provider,{value:e,children:(c=e.form)==null?void 0:c.render()})},e.node.id):null;return N.jsx(UR,{mask:!1,visible:s,onCancel:a,children:N.jsx(qct.Provider,{value:!0,children:l})})},a0r=[{key:"condition",title:"条件节点",content:"条件判断",icon:"📋",color:"#7B67EE"},{key:"start",title:"开始节点",content:"流程开始",icon:"🔵",color:"#63C6B7"},{key:"end",title:"结束节点",content:"流程结束",icon:"🔴",color:"#F76964"},{key:"llm",title:"LLM节点",content:"大语言模型",icon:"🤖",color:"#000000"},{key:"loop",title:"循环节点",content:"循环处理",icon:"🔄",color:"#30A46C"}],s0r=e=>{const n=Fr(),r=Di(Ya),i=(o,a,s,l)=>{r.startDragCard(o,l,{data:{title:a,content:s,nodeType:o}})};return N.jsxs("div",{className:"demo-free-sidebar",children:[N.jsx("div",{className:"node-panel-title",style:{padding:"8px",fontWeight:"bold"},children:n.formatMessage({id:"flowgram.nodepanel.title",defaultMessage:"节点类型"})}),a0r.map(o=>N.jsxs("div",{className:"demo-free-card",style:{padding:"8px",margin:"4px",border:"1px solid #eee",borderRadius:"4px",cursor:"grab",display:"flex",alignItems:"center",backgroundColor:"rgba(255,255,255,0.8)"},onMouseDown:a=>i(o.key,o.title,o.content,a),children:[N.jsx("span",{style:{marginRight:"8px",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",fontSize:"14px",background:o.color,color:"#fff"},children:o.icon}),o.title]},o.key))]})},l0r=({onReady:e,onChange:n})=>{const r=Bw(),i=m.useRef(!1);return m.useEffect(()=>{if(!i.current&&r){i.current=!0;const o=r.document;if(e&&o&&e(o),n&&o){const a=o;if(typeof a.onDocumentChange=="function"){const s=a.onDocumentChange(()=>{n()});return()=>{typeof(s==null?void 0:s.dispose)=="function"&&s.dispose()}}}}},[r,e,n]),N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"demo-container",children:N.jsxs("div",{className:"demo-layout-horizontal",children:[N.jsx(s0r,{}),N.jsx(Lme,{className:"demo-editor"})]})}),N.jsx(r0r,{}),N.jsx(o0r,{})]})},c0r=({onReady:e,onChange:n})=>{const r=rbr(Xct,Kct);return N.jsx("div",{className:"doc-free-feature-overview",children:N.jsx(nG,{...r,children:N.jsx(i0r,{children:N.jsx(l0r,{onReady:e,onChange:n})})})})},u0r=Ou(e=>({currentFlow:null,flowResult:{data:{content:[]}},hasUnsavedChanges:!1,setCurrentFlow:n=>e({currentFlow:n}),setFlowResult:n=>e({flowResult:n}),setHasUnsavedChanges:n=>e({hasUnsavedChanges:n})}));async function d0r(e){return so("/api/v1/workflow/query/org",{method:"GET",params:{...e,client:xo}})}async function T3e(e){return so("/api/v1/workflow/create",{method:"POST",data:{...e,client:xo}})}async function f0r(e){return so("/api/v1/workflow/update",{method:"POST",data:{...e,client:xo}})}const p0r=({isModalOpen:e,isEdit:n,initialValues:r={},handleSubmit:i,handleCancel:o})=>{const a=Fr(),{isDarkMode:s}=Mu(),[l]=Hr.useForm(),c=u=>{i(u)};return N.jsx(fa,{title:a.formatMessage({id:n?"flowgram.edit.title":"flowgram.create.title",defaultMessage:n?"编辑流程":"创建新流程"}),open:e,onOk:()=>l.submit(),onCancel:o,okText:a.formatMessage({id:n?"common.update":"common.create",defaultMessage:n?"更新":"创建"}),cancelText:a.formatMessage({id:"common.cancel",defaultMessage:"取消"}),maskClosable:!1,destroyOnClose:!0,className:s?"dark-modal":"",children:N.jsxs(Hr,{form:l,layout:"vertical",initialValues:r,onFinish:c,preserve:!1,children:[N.jsx(Hr.Item,{name:"name",label:a.formatMessage({id:"flowgram.name",defaultMessage:"流程名称"}),rules:[{required:!0,message:a.formatMessage({id:"flowgram.name.required",defaultMessage:"请输入流程名称"})}],children:N.jsx(Oi,{placeholder:a.formatMessage({id:"flowgram.name.placeholder",defaultMessage:"请输入流程名称"})})}),N.jsx(Hr.Item,{name:"description",label:a.formatMessage({id:"flowgram.description",defaultMessage:"描述"}),children:N.jsx(Oi.TextArea,{rows:4,placeholder:a.formatMessage({id:"flowgram.description.placeholder",defaultMessage:"请输入流程描述(选填)"})})})]})})},{Header:h0r,Content:g0r}=bo,Zct=()=>{var j;const e=Fr(),{isDarkMode:n}=Mu(),{headerStyle:r}=c_(),{translateString:i}=Vp(),o=ws(F=>F.setUserInfo),{currentOrg:a,setCurrentOrg:s}=Jm(F=>({currentOrg:F.currentOrg,setCurrentOrg:F.setCurrentOrg})),{currentFlow:l,flowResult:c,hasUnsavedChanges:u,setCurrentFlow:d,setFlowResult:f,setHasUnsavedChanges:p}=u0r(),[h,g]=m.useState(!1),[v,y]=m.useState(!1),[_,S]=m.useState(!1),[b,E]=m.useState([]),[w,C]=m.useState(!1),x=m.useRef(null),T=m.useRef(null),R={color:n?"#fff":"#000",display:"flex",alignItems:"center",margin:0},O={marginRight:16},M={display:"flex",alignItems:"center",gap:8},P=async()=>{const F=await oz();console.log("initProfile response:",F.data),F.data.code===200?(o(F.data.data),s(F.data.data.currentOrganization)):Nt.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))},k=async()=>{var te;if(Nt.loading(e.formatMessage({id:"flowgram.fetch.loading",defaultMessage:"正在获取流程列表..."})),!(a!=null&&a.uid)){await P();return}const F=await d0r({pageNumber:0,pageSize:100,orgUid:a==null?void 0:a.uid,type:IW});console.log("Fetch workflows response:",F.data),F.data.code===200?(((te=F.data.data.content)==null?void 0:te.length)===0&&(Nt.warning(e.formatMessage({id:"flowgram.fetch.empty",defaultMessage:"暂无流程,请创建新流程"})),g(!0)),f(F.data),Nt.destroy()):(Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.fetch.error",defaultMessage:"获取流程列表失败"})))},$=()=>{console.log("Editor content changed, setting hasUnsavedChanges to true"),p(!0)},U=F=>{if(console.log("Editor is ready:",F),x.current=F,C(!0),F)try{F.on("change",$)}catch(te){console.error("Failed to register editor change event:",te)}if(l!=null&&l.content&&F)try{const te=JSON.parse(l.content);F.load(te)}catch(te){console.error("Error loading flow data:",te),Nt.error(e.formatMessage({id:"flowgram.load.error",defaultMessage:"加载流程数据失败"}))}},z=()=>{S(!1),g(!0)},D=async F=>{if(console.log("Create values:",F),Nt.loading(e.formatMessage({id:"flowgram.create.loading",defaultMessage:"正在创建流程..."})),T.current)return T.current(F);try{const te=JSON.stringify(Xct),oe=await T3e({name:F.name,description:F.description,content:te,type:IW,orgUid:a==null?void 0:a.uid});console.log("Create workflow response:",oe),oe.data.code===200?(d(oe.data.data),g(!1),Nt.destroy(),Nt.success(e.formatMessage({id:"flowgram.create.success",defaultMessage:"创建成功"})),k()):(Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.create.error",defaultMessage:"创建失败: {error}"},{error:oe.data.message})))}catch(te){Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.create.error",defaultMessage:"创建失败: {error}"},{error:te.message}))}},B=()=>{y(!0)},Y=async(F,te)=>{if(console.log("Upload files:",F,te),y(!1),!F.length){Nt.error(e.formatMessage({id:"flowgram.import.no.file",defaultMessage:"没有选择文件"}));return}const oe=F[0],de=new FileReader;de.onload=async pe=>{var me;try{const ve=(me=pe.target)==null?void 0:me.result;if(!ve||typeof ve!="string")throw new Error("无效的文件内容");let he;try{he=JSON.parse(ve),console.log("Parsed JSON data:",he)}catch{throw new Error("无效的JSON格式")}fa.confirm({title:e.formatMessage({id:"flowgram.import.confirm.title",defaultMessage:"导入流程"}),content:e.formatMessage({id:"flowgram.import.confirm.content",defaultMessage:"请为导入的流程创建一个新的名称"}),onOk:()=>{S(!1),g(!0),T.current=async be=>{Nt.loading(e.formatMessage({id:"flowgram.import.loading",defaultMessage:"正在导入流程..."}));try{const we=await T3e({name:be.name,description:be.description,content:ve,type:IW,orgUid:a==null?void 0:a.uid});we.data.code===200?(d(we.data.data),g(!1),Nt.destroy(),Nt.success(e.formatMessage({id:"flowgram.import.success",defaultMessage:"导入成功"})),k()):(Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.import.error",defaultMessage:"导入失败: {error}"},{error:we.data.message})))}catch(we){Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.import.error",defaultMessage:"导入失败: {error}"},{error:we.message}))}}},okText:e.formatMessage({id:"common.continue",defaultMessage:"继续"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"})})}catch(ve){Nt.error(e.formatMessage({id:"flowgram.import.error",defaultMessage:"导入失败: {error}"},{error:ve.message}))}},de.onerror=()=>{Nt.error(e.formatMessage({id:"flowgram.import.read.error",defaultMessage:"读取文件失败"}))},de.readAsText(oe)},q=()=>{var F;if(!l){Nt.warning(e.formatMessage({id:"flowgram.export.no.flow",defaultMessage:"请先选择或创建流程"}));return}try{if(x.current){const te=x.current.toJSON(),oe=JSON.stringify(te,null,2),de=new Blob([oe],{type:"application/json"}),pe=URL.createObjectURL(de),me=document.createElement("a");me.href=pe;const ve=new Date().toISOString().replace(/[^0-9]/g,"").slice(0,14),he=((F=l.name)==null?void 0:F.replace(/[^a-zA-Z0-9]/g,"_"))||"flowgram";me.download=`${he}_${ve}.flowgram.json`,me.click(),URL.revokeObjectURL(pe),Nt.success(e.formatMessage({id:"flowgram.export.success",defaultMessage:"导出成功"}))}else throw new Error("编辑器未准备好")}catch(te){console.error("Error exporting FlowGram:",te),Nt.error(e.formatMessage({id:"flowgram.export.error",defaultMessage:"导出失败: {error}"},{error:te.message}))}},K=async()=>{if(!l||!x.current)return!0;try{Nt.loading(e.formatMessage({id:"flowgram.save.loading",defaultMessage:"正在保存..."}));const F=x.current.toJSON(),te=JSON.stringify(F),oe=await f0r({uid:l.uid,name:l.name,description:l.description,content:te,orgUid:a==null?void 0:a.uid,type:l.type});return console.log("Update workflow response:",oe),oe.data.code===200?(d(oe.data.data),p(!1),Nt.destroy(),Nt.success(e.formatMessage({id:"flowgram.save.success",defaultMessage:"保存成功"})),!0):(Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.save.error",defaultMessage:"保存失败: {error}"},{error:oe.data.message})),!1)}catch(F){return Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.save.error",defaultMessage:"保存失败: {error}"},{error:F.message})),!1}},H=async()=>{if(!l){Nt.warning(e.formatMessage({id:"flowgram.save.no.flow",defaultMessage:"请先选择或创建流程"}));return}return K()},G=F=>{if(d(F),p(!1),F!=null&&F.content&&x.current)try{const te=JSON.parse(F.content);x.current.load(te),console.log("Flow content loaded successfully")}catch(te){console.error("Error loading flow data:",te),Nt.error(e.formatMessage({id:"flowgram.load.error",defaultMessage:"加载流程数据失败"}))}},Q=async F=>{var oe;console.log("Menu clicked:",F);const te=(oe=c.data.content)==null?void 0:oe.find(de=>de.uid===F.key);te&&te.uid!==(l==null?void 0:l.uid)&&(l?await K()?G(te):fa.confirm({title:e.formatMessage({id:"flowgram.save.failed.title",defaultMessage:"保存失败"}),content:e.formatMessage({id:"flowgram.save.failed.content",defaultMessage:"当前流程保存失败,是否仍然切换到新流程?"}),okText:e.formatMessage({id:"common.continue",defaultMessage:"继续"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),onOk:()=>{G(te)}}):G(te))},le={items:b,selectedKeys:l?[l.uid]:[],onClick:Q};m.useEffect(()=>{k()},[]),m.useEffect(()=>{a!=null&&a.uid&&k()},[a]),m.useEffect(()=>{var F,te,oe,de;if((F=c==null?void 0:c.data)!=null&&F.content){const pe=(te=c.data.content)==null?void 0:te.map(me=>({key:me.uid,label:i(me.name)}));if(E(pe),!l&&((oe=c.data.content)==null?void 0:oe.length)>0&&d(c.data.content[0]),l){const me=(de=c.data.content)==null?void 0:de.find(ve=>ve.uid===l.uid);me&&d(me)}}},[c]),m.useEffect(()=>{if(l!=null&&l.content&&x.current&&w)try{const F=JSON.parse(l.content);console.log("Loading flow content into editor:",F),x.current.load(F),p(!1)}catch(F){console.error("Error loading flow data:",F),Nt.error(e.formatMessage({id:"flowgram.load.error",defaultMessage:"加载流程数据失败"}))}},[l==null?void 0:l.uid,w]),m.useEffect(()=>{if(!u||!w||!l)return;const F=setTimeout(async()=>{await H()},3e4);return()=>{clearTimeout(F)}},[u,l,w]);const Z=()=>{T.current=null,g(!1)};return N.jsxs(bo,{style:{height:"100%"},children:[N.jsx(h0r,{style:r,children:N.jsxs("div",{className:"header-content",children:[N.jsxs("h1",{style:R,children:[N.jsx("span",{className:"title-text",style:{color:n?"#fff":"#000",...O},children:e.formatMessage({id:"flowgram.title",defaultMessage:"FlowGram"})}),N.jsxs("span",{className:"title-actions",style:{marginLeft:16,...M},children:[N.jsx(qn,{type:"primary",icon:N.jsx(bA,{}),onClick:z,style:{marginRight:8},children:e.formatMessage({id:"flowgram.create",defaultMessage:"创建"})}),N.jsx(kde,{menu:le,trigger:["click"],children:N.jsx("a",{onClick:F=>F.preventDefault(),style:{color:n?"#fff":"#000",opacity:.85},children:N.jsx(Ef,{children:((j=c.data.content)==null?void 0:j.length)>0?N.jsxs("span",{children:[i(l==null?void 0:l.name)||e.formatMessage({id:"flowgram.select.flow",defaultMessage:"选择流程"}),N.jsx(cI,{})]}):N.jsx("span",{children:e.formatMessage({id:"flowgram.no.flow",defaultMessage:"暂无流程"})})})})})]})]}),N.jsxs("div",{className:"header-actions",children:[N.jsx(qn,{type:"primary",icon:N.jsx(iS,{}),onClick:B,children:e.formatMessage({id:"flowgram.import",defaultMessage:"导入"})}),N.jsx(qn,{type:"primary",icon:N.jsx(Rk,{}),onClick:q,children:e.formatMessage({id:"flowgram.export",defaultMessage:"导出"})}),N.jsx(qn,{type:"primary",icon:N.jsx(jde,{}),onClick:H,disabled:!u||!l,children:e.formatMessage({id:"flowgram.save",defaultMessage:"保存"})})]})]})}),N.jsx(g0r,{style:{background:n?"#141414":"#fff",position:"relative",height:"calc(100vh - 64px)"},children:N.jsx(c0r,{onReady:U,onChange:$})}),h&&N.jsx(p0r,{isModalOpen:h,isEdit:_,initialValues:_?{name:l==null?void 0:l.name,description:l==null?void 0:l.description}:void 0,handleSubmit:D,handleCancel:Z}),v&&N.jsx(trt,{type:d_t,acceptType:".json,.flowgram",isModalOpen:v,handleSubmit:Y,handleCancel:()=>y(!1)})]})},m0r=()=>{const e=Fr(),{locale:n}=m.useContext(Xl),r=localStorage.getItem(Vee),[i,o]=m.useState(r||"/"),a=Af(),{isLoggedIn:s,hasRoleAgent:l}=m.useContext(Xl),{footerStyle:c}=c_(),{currentOrg:u,setCurrentOrg:d}=Jm(U=>({currentOrg:U.currentOrg,setCurrentOrg:U.setCurrentOrg})),{userInfo:f,setUserInfo:p}=ws(U=>({userInfo:U.userInfo,setUserInfo:U.setUserInfo})),{setAgentInfo:h}=XC(U=>({setAgentInfo:U.setAgentInfo})),g=Ph(U=>U.removeThread),v=PXe(U=>U.setWorkgroupResult),[y,_]=m.useState(!1),S=Ph(U=>U.threads);m.useEffect(()=>{const U=S.some(z=>z.unreadCount>0);_(U)},[S]);const[b,E]=m.useState([]);m.useEffect(()=>{const U=[..._O?[{path:"/formbuilder",name:e.formatMessage({id:"menu.dashboard.form"}),icon:N.jsx(ST,{}),component:N.jsx(Xoe,{})},{path:"/form-view/:formId",element:N.jsx(Xpe,{})},{path:"/flowbuilder",name:e.formatMessage({id:"menu.dashboard.flow"}),icon:N.jsx(ST,{}),component:N.jsx(QZe,{})},{path:"/flowgram",name:e.formatMessage({id:"menu.dashboard.flowgram"}),icon:N.jsx(ST,{}),component:N.jsx(Zct,{})}]:[],{path:"/ticketbuilder",name:e.formatMessage({id:"menu.dashboard.ticket"}),icon:N.jsx(ST,{}),component:N.jsx(nrt,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:N.jsx(Ude,{}),component:N.jsx(NXe,{})}];E(U)},[e,n]),$Xe(),Kpe(),LXe(),Epe();const w=async()=>{if(!s||(u==null?void 0:u.uid)===""||!l)return;const U=await W0t(u==null?void 0:u.uid);console.log("getAgentProfile response:",u==null?void 0:u.uid,U.data),U.data.code===200&&h(U.data.data)},[C,x]=m.useState(!1),[T,R]=m.useState(!1),O=m.useCallback(U=>{d(U)},[d]),M=m.useCallback(()=>{localStorage.getItem("skipVerification")!=="true"&&f&&!f.emailVerified&&!f.mobileVerified&&R(!0)},[f]),P=async()=>{if(s){if(f.currentOrganization===void 0||f.currentOrganization===null){console.log("before initOrganization",f),x(!0);return}console.log("after initOrganization"),d(f==null?void 0:f.currentOrganization),w(),M()}};m.useEffect(()=>(P(),()=>{console.log("un - useEffect")}),[s,f]);const k=async()=>{const U=await oz();console.log("initProfile response:",U.data),U.data.code===200?p(U.data.data):Nt.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))};m.useEffect(()=>{s&&k()},[s]);const $=async()=>{if(!s||(u==null?void 0:u.uid)===""||!l)return;const U={orgUid:u==null?void 0:u.uid,pageNumber:0,pageSize:20},z=await kMn(U);console.log("initWorkgroups",z.data),z.data.code===200?v(z.data):console.log("获取工作组失败")};return m.useEffect(()=>{$()},[s,u]),m.useEffect(()=>{const U=B=>{var q,K;console.log("handleTransfer:",B);const Y=JSON.parse(B);if(console.log("handleTransfer contentObject",Y.message,Y.thread),((K=(q=Y.message)==null?void 0:q.user)==null?void 0:K.uid)===(f==null?void 0:f.uid)){Nt.success("转接会话发送成功,请等待对方响应");return}},z=B=>{var K,H,G;console.log("handleTransferAccept:",B);const Y=JSON.parse(B),q=JSON.parse((K=Y.message)==null?void 0:K.content);g(q==null?void 0:q.thread),Nt.success(`${(G=(H=Y.message)==null?void 0:H.user)==null?void 0:G.nickname} 已接受转接会话`)},D=B=>{var q,K;console.log("handleTransferReject:",B);const Y=JSON.parse(B);Nt.success(`${(K=(q=Y.message)==null?void 0:q.user)==null?void 0:K.nickname} 已拒绝转接会话`)};return Qr.on(kee,U),Qr.on(Lee,z),Qr.on($ee,D),()=>{Qr.off(kee,U),Qr.off(Lee,z),Qr.off($ee,D)}},[]),N.jsxs(Pqe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:b},location:{pathname:i},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:U=>U.isMobile?[]:[N.jsx($Mn,{}),N.jsx(DMn,{})],menuHeaderRender:()=>N.jsx(kXe,{}),menuFooterRender:U=>{U!=null&&U.collapsed},onMenuHeaderClick:U=>{console.log("onMenuHeaderClick",U)},menuItemRender:(U,z)=>N.jsx(N.Fragment,{children:N.jsxs("div",{onClick:()=>{o(U.path),a(U.path),localStorage.setItem(Vee,U.path)},children:[y&&N.jsxs(N.Fragment,{children:[U.path==="/chat"&&N.jsx(Qu,{size:"small",dot:y,offset:[-5,5],children:z}),U.path!=="/chat"&&z]}),!y&&N.jsx(N.Fragment,{children:z})]})}),children:[N.jsx(nz,{children:N.jsx(DU,{},n.locale)}),N.jsx(rz,{style:c,children:N.jsx(DXe,{})}),N.jsx(gKn,{open:C,onClose:()=>x(!1),onSuccess:O}),N.jsx(mKn,{open:T,onClose:()=>R(!1)}),N.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},v0r=()=>N.jsx(N.Fragment,{children:N.jsx(DU,{})}),y0r=({open:e,onClose:n})=>{const r=Fr(),{translateString:i}=Vp(),o=()=>{n()},a=()=>{n()};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:r.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:a,children:N.jsxs(mi,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async s=>{if(console.log("changePassword:",s),s.newPassword.trim().length<6){Nt.error(r.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(s.newPassword!==s.confirmPassword){Nt.error(r.formatMessage({id:"profile.password.mismatch",defaultMessage:"The two passwords do not match"}));return}const l={oldPassword:s.oldPassword,newPassword:s.newPassword},c=await LMn(l);console.log("changePassword response:",c),c.data.code===200?(Nt.success(r.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),o()):Nt.error(i(c.data.message))},children:[N.jsx(eo.Password,{name:"oldPassword",label:r.formatMessage({id:"profile.password.old",defaultMessage:"Old Password"}),extra:r.formatMessage({id:"profile.password.old.empty",defaultMessage:"Old password can be empty for phone login users"})}),N.jsx(eo.Password,{name:"newPassword",label:r.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),N.jsx(eo.Password,{name:"confirmPassword",label:r.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},Jct=({children:e,onSuccess:n,onError:r})=>{const i={file:null,fileName:"test.png",fileType:"image/png",isAvatar:"true",kbType:f_t,categoryUid:"",kbUid:"",client:xo},o={name:"file",accept:"image/*",action:RF(),headers:{Authorization:"Bearer "+localStorage.getItem(G1)},data:i,showUploadList:!1,beforeUpload(a){console.log("beforeUpload",a);const s=zn(new Date).format("YYYYMMDDHHmmss")+"_"+a.name;i.file=a,i.fileName=s,i.fileType=a.type,console.log("beforeUpload",i)},onChange(a){if(a.file.status!=="uploading"&&console.log("not uploading:",a.file),a.file.status==="done")if(console.log("response: ",a.file.response),a.file.response.code===200){const s=a.file.response.data.fileUrl;n(s),Nt.success(`${a.file.name} 上传成功`)}else r(a.file),Nt.error(`${a.file.name} 上传失败`);else a.file.status==="error"&&(Nt.error(`${a.file.name} 上传失败`),r(a.file))}};return N.jsx(ig,{...o,children:e})},_0r=({open:e,onSubmit:n,onClose:r})=>{const i=Fr(),[o]=mi.useForm(),{translateString:a}=Vp(),{userInfo:s,deviceUid:l}=ws(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),c=Jm(C=>C.currentOrg),u=m.useRef(),[d,f]=m.useState(""),[p,h]=m.useState(""),[g,v]=m.useState(!1),y=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),h(x)},_=async C=>{console.log("captcha check result",C),v(C)},S=()=>{r()},b=()=>{r()},E=async()=>{o.validateFields().then(async C=>{if(console.log("changeEmail:",C),s.email===C.email){Nt.error(i.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const x={email:C.email,code:C.code,platform:Ep},T=await BXe(x);console.log("changeEmail response:",T),T.data.code===200?(Nt.success(i.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),n(C.email),S()):Nt.error(a(T.data.message))})},w=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=u.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:i.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:b,children:N.jsxs(mi,{form:o,onFinish:async C=>{console.log("changeEmail:",C),E()},children:[N.jsx(eo,{fieldProps:{size:"large",prefix:N.jsx(Ik,{})},name:"email",placeholder:i.formatMessage({id:"profile.email.placeholder",defaultMessage:"Enter email address"}),rules:[{required:!0,message:i.formatMessage({id:"profile.email.required",defaultMessage:"Please enter email address!"})},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:i.formatMessage({id:"profile.email.format.invalid",defaultMessage:"Invalid email format"})},{max:50,message:i.formatMessage({id:"profile.email.length.limit",defaultMessage:"Email cannot exceed 50 characters"})}]}),N.jsx(mi.Item,{name:"captchaCode",children:N.jsx($I,{onKaptchaChange:y,onKaptchaCheck:_})}),N.jsx(Lk,{fieldProps:{size:"large",prefix:N.jsx(lw,{})},captchaProps:{size:"large",disabled:!g},placeholder:i.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(C,x)=>C?`${x} ${i.formatMessage({id:"profile.email.verification.code.countdown",defaultMessage:"seconds"})}`:i.formatMessage({id:"profile.email.verification.code.get",defaultMessage:"Get Code"}),phoneName:"email",name:"code",rules:[{required:!0,message:i.formatMessage({id:"profile.email.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:u,onGetCaptcha:async C=>{if(C){if(s.email===C){Nt.error(i.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),w();return}const x={email:C,type:jyt,captchaUid:d,captchaCode:p,deviceUid:l,userUid:s.uid,orgUid:c.uid,platform:Ep},T=await YKe(x);if(T.data.code!==200){Nt.error(T.data.message),w();return}Nt.success(T.data.message)}else Nt.error(i.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},b0r=({open:e,onSubmit:n,onClose:r})=>{const i=Fr(),[o]=mi.useForm(),{translateString:a}=Vp(),{userInfo:s,deviceUid:l}=ws(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),c=Jm(C=>C.currentOrg),u=m.useRef(),[d,f]=m.useState(""),[p,h]=m.useState(""),[g,v]=m.useState(!1),y=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),h(x)},_=async C=>{console.log("captcha check result",C),v(C)},S=()=>{r()},b=()=>{r()},E=async()=>{o.validateFields().then(async C=>{if(console.log("changeMobile:",C),s.mobile===C.mobile){Nt.error(i.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const x={mobile:C.mobile,code:C.code,platform:Ep},T=await jXe(x);console.log("changeMobile response:",T),T.data.code===200?(Nt.success(i.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),n(C.mobile),S()):Nt.error(a(T.data.message))})},w=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=u.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:i.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:b,children:N.jsxs(mi,{form:o,onFinish:async C=>{console.log("changeMobile:",C),E()},children:[N.jsx(eo,{fieldProps:{size:"large",prefix:N.jsx(Ik,{})},name:"mobile",placeholder:i.formatMessage({id:"profile.mobile.placeholder",defaultMessage:"Enter mobile number"}),rules:[{required:!0,message:i.formatMessage({id:"profile.mobile.required",defaultMessage:"Please enter mobile number!"})},{pattern:/^1\d{10}$/,message:i.formatMessage({id:"profile.mobile.format.invalid",defaultMessage:"Invalid mobile format"})}]}),N.jsx(mi.Item,{name:"captchaCode",children:N.jsx($I,{onKaptchaChange:y,onKaptchaCheck:_})}),N.jsx(Lk,{fieldProps:{size:"large",prefix:N.jsx(lw,{})},captchaProps:{size:"large",disabled:!g},placeholder:i.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(C,x)=>C?`${x} ${i.formatMessage({id:"profile.mobile.verification.code.countdown",defaultMessage:"seconds"})}`:i.formatMessage({id:"profile.mobile.verification.code.get",defaultMessage:"Get Code"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:i.formatMessage({id:"profile.mobile.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:u,onGetCaptcha:async C=>{if(C&&C.length===11){if(s.mobile===C){Nt.error(i.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),w();return}const x={mobile:C,type:Fyt,captchaUid:d,captchaCode:p,deviceUid:l,userUid:s.uid,orgUid:c.uid,platform:Ep},T=await Spe(x);if(T.data.code!==200){Nt.error(T.data.message),w();return}Nt.success(T.data.message)}else Nt.error(i.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},S0r={labelCol:{span:8},wrapperCol:{span:8}},O3e=()=>{const e=Fr(),[n]=mi.useForm(),{translateString:r}=Vp(),{userInfo:i,setUserInfo:o}=ws(O=>({userInfo:O.userInfo,setUserInfo:O.setUserInfo})),[a,s]=m.useState(""),[l,c]=m.useState(!1),[u,d]=m.useState(!1),[f,p]=m.useState(!1),h=()=>{c(!0)},g=()=>{d(!0)},v=()=>{p(!0)},y=()=>{c(!1)},_=()=>{d(!1)},S=O=>{d(!1),i.email=O,o(i),n.setFieldValue("email",O)},b=()=>{p(!1)},E=O=>{p(!1),i.mobile=O,o(i),n.setFieldValue("mobile",O)},w=O=>{console.log("handleUploadSuccess:",O),s(O)},C=O=>{console.log("handleUploadError:",O)},x=async O=>{const M={...i,...O,avatar:a};console.log(M);const P=await FXe(M);console.log("updateProfile response:",P.data),P.data.code===200?(Nt.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),o(P.data.data)):Nt.error(P.data.message)},T=O=>Array.isArray(O)?O:O==null?void 0:O.fileList;m.useEffect(()=>{i&&s(i.avatar)},[i]);const R=async()=>{const O=await oz();console.log("handleRefreshProfile getProfile response:",O.data),O.data.code===200?(o(O.data.data),n.setFieldsValue({uid:O.data.data.uid,username:O.data.data.username,nickname:r(O.data.data.nickname),email:O.data.data.email,mobile:O.data.data.mobile,description:r(O.data.data.description)})):Nt.error(O.data.message)};return m.useEffect(()=>{R()},[]),N.jsxs("div",{className:"profile-container",children:[N.jsxs(mi,{...S0r,form:n,onFinish:x,children:[N.jsx(eo,{name:"uid",label:"UID",readonly:!0}),N.jsx(mi.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:T,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:N.jsxs(Jct,{onSuccess:w,onError:C,children:[N.jsx(nS,{src:a}),N.jsx(qn,{icon:N.jsx(iS,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(eo,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),N.jsx(qn,{onClick:h,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),N.jsx(eo,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),N.jsx(eo,{name:"email",label:i.emailVerified?e.formatMessage({id:"profile.email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"profile.email.unverified",defaultMessage:"Email Unverified"}),rules:[{type:"email"}],readonly:!0}),N.jsx(qn,{onClick:g,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),N.jsx(eo,{name:"mobile",label:i.mobileVerified?e.formatMessage({id:"profile.mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"profile.mobile.unverified",defaultMessage:"Mobile Unverified"}),readonly:!0}),N.jsx(qn,{onClick:v,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),N.jsx(Qk,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),l&&N.jsx(y0r,{open:l,onClose:y}),u&&N.jsx(_0r,{open:u,onSubmit:S,onClose:_}),f&&N.jsx(b0r,{open:f,onSubmit:E,onClose:b})]})},E0r=()=>{const e=Fr(),n=MH(),{isMqttConnected:r}=Kpe(),[i,o]=m.useState(!0),[a,s]=m.useState(!0),[l,c]=m.useState(!1),u=C=>{console.log("radio checked",C.target.value),c(C.target.value),Yl?window.electronAPI.setOpenAtLogin(C.target.value):console.log("not electron")},d=async()=>{if(Yl){const C=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",C),c(C)}};m.useEffect(()=>{d(),vqt(),gGe(),console.log("isNetworkOnline:",n);const C=localStorage.getItem(R5);C===null?(localStorage.setItem(R5,"true"),o(!0)):o(C==="true");const x=localStorage.getItem(A2);x===null?(localStorage.setItem(A2,"true"),s(!0)):s(x==="true")},[]);const{themeMode:f,setThemeMode:p,mode:h,changeMode:g,locale:v,changeLocale:y}=m.useContext(Xl),_=C=>{console.log("radio checked",C.target.value),p(C.target.value),bqt(C.target.value)},S=C=>{console.log("language change",C.target.value),y(C.target.value)},b=C=>{console.log("play audio switch",C),localStorage.setItem(R5,C?"true":"false"),o(C)},E=C=>{console.log("show network status notification",C),localStorage.setItem(A2,C?"true":"false"),s(C)},w=C=>{console.log("mode change",C.target.value),g(C.target.value)};return N.jsxs("div",{className:"profile-container",children:[N.jsx("p",{children:N.jsx(sC,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:i,onChange:b})}),N.jsx("p",{children:N.jsx(sC,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:a,onChange:E})}),_O&&N.jsxs(N.Fragment,{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),N.jsx("div",{children:r?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),Yl&&N.jsxs(N.Fragment,{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),N.jsxs(ya.Group,{onChange:u,value:l,children:[N.jsx(ya,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),N.jsx(ya,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),N.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),N.jsxs(ya.Group,{onChange:_,value:f,children:[N.jsx(ya,{value:"light",children:N.jsx(Dh,{id:"theme.light"})}),N.jsx(ya,{value:"dark",children:N.jsx(Dh,{id:"theme.dark"})}),N.jsx(ya,{value:"system",children:N.jsx(Dh,{id:"theme.system"})})]}),N.jsxs("div",{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),N.jsxs(ya.Group,{value:v.locale,onChange:S,children:[N.jsx(ya,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),N.jsx(ya,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),N.jsx(ya,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]}),_O&&N.jsxs("div",{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.mode",defaultMessage:"模式设置:"})}),N.jsxs(ya.Group,{value:h,onChange:w,children:[N.jsx(ya,{value:PT,children:e.formatMessage({id:"setting.basic.mode.team",defaultMessage:"团队模式"})},PT),N.jsx(ya,{value:V1,children:e.formatMessage({id:"setting.basic.mode.agent",defaultMessage:"客服模式"})},V1),N.jsx(ya,{value:wF,children:e.formatMessage({id:"setting.basic.mode.personal",defaultMessage:"个人模式"})},wF)]})]})]})},C0r=()=>{const e=ws(r=>r.userInfo),n=()=>{var i;console.log("downloadQRCode");const r=(i=document.getElementById("myqrcode"))==null?void 0:i.querySelector("canvas");if(r){const o=r.toDataURL(),a=document.createElement("a");a.download=e.username+"_profile.png",a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a)}else console.log("canvas is null")};return N.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[N.jsx(ZVe,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),N.jsx(qn,{type:"primary",onClick:n,style:{marginTop:"20px"},children:"下载二维码"})]})},w0r=()=>N.jsx(N.Fragment,{children:N.jsx("div",{children:"ShortcutAdmin"})}),x0r=()=>{const e=Af();return N.jsx(Mk,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:N.jsx(qn,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},T0r={labelCol:{span:8},wrapperCol:{span:8}},O0r=()=>{const e=Fr(),[n]=mi.useForm(),{userInfo:r,setUserInfo:i}=ws(d=>({userInfo:d.userInfo,setUserInfo:d.setUserInfo})),[o,a]=m.useState(""),s={file:null,fileName:"test.png",fileType:"image/png"},l={name:"file",action:RF(),headers:{Authorization:"Bearer "+localStorage.getItem(G1)},showUploadList:!1,data:s,beforeUpload(d){const f=zn(new Date).format("YYYYMMDDHHmmss")+"_"+d.name;s.file=d,s.fileName=f,s.fileType=d.type,console.log("beforeUpload",s)},onChange(d){if(d.file.status!=="uploading"&&console.log(d.file,d.fileList),d.file.status==="done"){const f=d.file.response.data.fileUrl;console.log("url: ",f),a(f),Nt.success(`${d.file.name} file uploaded successfully`)}else d.file.status==="error"&&Nt.error(`${d.file.name} file upload failed.`)}},c=async d=>{const f={...r,...d,avatar:o};console.log(f);const p=await FXe(f);console.log("updateProfile response:",p),p.data.code===200?(Nt.success("修改成功"),i(p.data.data)):Nt.error("修改失败")},u=d=>Array.isArray(d)?d:d==null?void 0:d.fileList;return m.useEffect(()=>{r&&a(r.avatar)},[r]),N.jsxs("div",{className:"profile-container",children:[N.jsx("p",{children:"员工信息"}),N.jsxs(mi,{...T0r,style:{marginLeft:20},form:n,onFinish:c,initialValues:{nickname:r.nickname,email:r.email,mobile:r.mobile,description:r.description},children:[N.jsx(Hr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:N.jsxs(ig,{...l,children:[N.jsx(nS,{src:o}),N.jsx(qn,{icon:N.jsx(iS,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(eo,{name:"nickname",label:"昵称",rules:[{required:!0}],children:N.jsx(Oi,{})}),N.jsx(eo,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:N.jsx(Oi,{})}),N.jsx(eo,{name:"mobile",label:"手机号",disabled:!0,children:N.jsx(Oi,{})}),N.jsx(Qk,{name:"description",label:"描述",children:N.jsx(Oi.TextArea,{})})]})]})},R0r=({open:e,onSubmit:n,onClose:r})=>{const i=Fr(),[o]=mi.useForm(),{translateString:a}=Vp(),{userInfo:s,deviceUid:l}=ws(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),c=Jm(C=>C.currentOrg),u=m.useRef(),[d,f]=m.useState(""),[p,h]=m.useState(""),[g,v]=m.useState(!1);m.useEffect(()=>{e?o.setFieldsValue({email:s==null?void 0:s.email}):(o.resetFields(),w())},[e]);const y=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),h(x)},_=async C=>{console.log("captcha check result",C),v(C)},S=()=>{r()},b=()=>{r()},E=async()=>{o.validateFields().then(async C=>{console.log("changeEmail:",C);const x={email:C.email,code:C.code,platform:Ep},T=await BXe(x);console.log("changeEmail response:",T),T.data.code===200?(Nt.success("Email verify successfully!"),n(C.email),S()):Nt.error(a(T.data.message))})},w=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=u.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:i.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:b,children:N.jsxs(mi,{form:o,onFinish:async C=>{console.log("changeEmail:",C),E()},children:[N.jsx(eo,{fieldProps:{size:"large",prefix:N.jsx(Ik,{})},name:"email",placeholder:i.formatMessage({id:"pages.login.email.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:"邮箱格式不正确"},{max:50,message:"邮箱不得超过50字符"}],readonly:!0}),N.jsx(mi.Item,{name:"captchaCode",rules:[],children:N.jsx($I,{onKaptchaChange:y,onKaptchaCheck:_})}),N.jsx(Lk,{fieldProps:{size:"large",prefix:N.jsx(lw,{}),allowClear:!0},captchaProps:{size:"large",disabled:!g},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(C,x)=>C?`${x} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"email",name:"code",rules:[{required:!0}],fieldRef:u,onGetCaptcha:async C=>{if(console.log("email:",C),C){const x={email:C,type:Uyt,captchaUid:d,captchaCode:p,deviceUid:l,userUid:s==null?void 0:s.uid,orgUid:c.uid,platform:Ep},T=await YKe(x);if(console.log("sendEmailCode",T),T.data.code!==200){Nt.error(a(T.data.message)),w();return}Nt.success(a(T.data.message))}else Nt.error("手机号格式错误")}})]})})})},I0r=({open:e,onSubmit:n,onClose:r})=>{const i=Fr(),[o]=mi.useForm(),{translateString:a}=Vp(),{userInfo:s,deviceUid:l}=ws(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),c=Jm(C=>C.currentOrg),u=m.useRef(),[d,f]=m.useState(""),[p,h]=m.useState(""),[g,v]=m.useState(!1);m.useEffect(()=>{e?o.setFieldsValue({mobile:s==null?void 0:s.mobile}):(o.resetFields(),w())},[e]);const y=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),h(x)},_=async C=>{console.log("captcha check result",C),v(C)},S=()=>{r()},b=()=>{r()},E=async()=>{o.validateFields().then(async C=>{console.log("changeMobile:",C);const x={mobile:C.mobile,code:C.code,platform:Ep},T=await jXe(x);console.log("changeMobile response:",T),T.data.code===200?(Nt.success("Mobile verify successfully!"),n(C.mobile),S()):Nt.error(a(T.data.message))})},w=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=u.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:i.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:b,children:N.jsxs(mi,{form:o,onFinish:async C=>{console.log("changeMobile:",C),E()},children:[N.jsx(eo,{fieldProps:{size:"large",prefix:N.jsx(Ik,{})},name:"mobile",placeholder:i.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),N.jsx(mi.Item,{name:"captchaCode",rules:[],children:N.jsx($I,{onKaptchaChange:y,onKaptchaCheck:_})}),N.jsx(Lk,{fieldProps:{size:"large",prefix:N.jsx(lw,{}),allowClear:!0},captchaProps:{size:"large",disabled:!g},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(C,x)=>C?`${x} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0}],fieldRef:u,onGetCaptcha:async C=>{if(console.log("mobile:",C),C&&C.length===11){const x={mobile:C,type:Byt,captchaUid:d,captchaCode:p,deviceUid:l,userUid:s==null?void 0:s.uid,orgUid:c.uid,platform:Ep},T=await Spe(x);if(console.log("sendMobileCode",T),T.data.code!==200){Nt.error(a(T.data.message)),w();return}Nt.success(a(T.data.message))}else Nt.error("手机号格式错误")}})]})})})},N0r=()=>{const e=Fr(),n=Af(),[r]=mi.useForm(),{userInfo:i,setUserInfo:o}=ws(_=>({userInfo:_.userInfo,setUserInfo:_.setUserInfo})),[a,s]=m.useState(!1),[l,c]=m.useState(!1),u=()=>{s(!0)},d=()=>{c(!0)},f=()=>{s(!1)},p=_=>{s(!1),i.email=_,i.emailVerified=!0,o(i),r.setFieldValue("email",_)},h=()=>{c(!1)},g=_=>{c(!1),i.mobile=_,i.mobileVerified=!0,o(i),r.setFieldValue("mobile",_)};m.useEffect(()=>{r.setFieldsValue({uid:i.uid,username:i.username,nickname:i.nickname,email:i.email,mobile:i.mobile})},[]);const v=()=>{n("/setting/profile")},y=()=>{n("/setting/profile")};return N.jsxs("div",{children:[N.jsxs(mi,{form:r,submitter:!1,children:[N.jsx(eo,{name:"email",label:i!=null&&i.emailVerified?e.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),readonly:!0}),!(i!=null&&i.emailVerified)&&i.email!=null&&N.jsx(qn,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),N.jsx(qn,{type:"link",onClick:v,children:"重置邮箱"}),N.jsx(eo,{name:"mobile",label:i!=null&&i.mobileVerified?e.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),!(i!=null&&i.mobileVerified)&&i.mobile!=null&&N.jsx(qn,{onClick:d,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),N.jsx(qn,{type:"link",onClick:y,children:"重置手机号"})]}),a&&N.jsx(R0r,{open:a,onSubmit:p,onClose:f}),l&&N.jsx(I0r,{open:l,onSubmit:g,onClose:h})]})},M0r=e=>{console.log(e)},P0r=[{key:"personal",label:"个人认证",children:N.jsx(N0r,{})}],A0r=()=>N.jsx("div",{className:"profile-container",children:N.jsx(Ek,{defaultActiveKey:"personal",items:P0r,onChange:M0r})}),D0r=()=>{const[e]=mi.useForm(),n=Fr(),{translateString:r}=Vp(),{agentInfo:i,setAgentInfo:o}=XC(f=>({agentInfo:f.agentInfo,setAgentInfo:f.setAgentInfo})),[a,s]=m.useState("");m.useEffect(()=>{var f;i&&e.setFieldsValue({nickname:r(i==null?void 0:i.nickname),email:i==null?void 0:i.email,mobile:i==null?void 0:i.mobile,description:r(i==null?void 0:i.description),memberUid:(f=i==null?void 0:i.member)==null?void 0:f.uid})},[i]);const l=f=>{console.log("handleUploadSuccess:",f),s(f)},c=f=>{console.log("handleUploadError:",f),Nt.error(f)},u=async f=>{var g,v,y,_,S,b,E,w,C,x,T,R,O,M;console.log("onFinish:",f),Nt.loading(n.formatMessage({id:"updating"}));const p={...i,...f,avatar:a,serviceSettings:{...i.serviceSettings,quickFaqUids:(v=(g=i==null?void 0:i.serviceSettings)==null?void 0:g.quickFaqs)==null?void 0:v.map(P=>P.uid),faqUids:(_=(y=i==null?void 0:i.serviceSettings)==null?void 0:y.faqs)==null?void 0:_.map(P=>P.uid),guessFaqUids:(b=(S=i==null?void 0:i.serviceSettings)==null?void 0:S.guessFaqs)==null?void 0:b.map(P=>P.uid),hotFaqUids:(w=(E=i==null?void 0:i.serviceSettings)==null?void 0:E.hotFaqs)==null?void 0:w.map(P=>P.uid),shortcutFaqUids:(x=(C=i==null?void 0:i.serviceSettings)==null?void 0:C.shortcutFaqs)==null?void 0:x.map(P=>P.uid)},robotSettings:{...i.robotSettings,robotUid:(R=(T=i==null?void 0:i.robotSettings)==null?void 0:T.robot)==null?void 0:R.uid},leaveMsgSettings:{...i.leaveMsgSettings,worktimeUids:(M=(O=i==null?void 0:i.leaveMsgSettings)==null?void 0:O.worktimes)==null?void 0:M.map(P=>P.uid)},autoReplySettings:{...i.autoReplySettings}};console.log("agentObject:",p);const h=await Y0t(p);console.log("updateAgent response:",h),h.data.code===200?(Nt.destroy(),Nt.success(n.formatMessage({id:"update.success"})),o(h.data.data)):(Nt.destroy(),Nt.error(h.data.message))},d=f=>Array.isArray(f)?f:f==null?void 0:f.fileList;return m.useEffect(()=>{var f;i&&(s(i.avatar),e.setFieldsValue({member:(f=i==null?void 0:i.member)==null?void 0:f.nickname}))},[i]),N.jsx(N.Fragment,{children:N.jsxs(mi,{form:e,style:{marginLeft:"20px"},onFinish:u,children:[N.jsx(mi.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:d,label:n.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:N.jsxs(Jct,{onSuccess:l,onError:c,children:[N.jsx(nS,{src:a}),N.jsx(qn,{icon:N.jsx(iS,{}),children:n.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(eo,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),N.jsx(eo,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),N.jsx(eo,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),N.jsx(Qk,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},k0r=()=>{const e=Fr(),[n,r]=m.useState([]),i=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:N.jsx(D0r,{})}];return m.useEffect(()=>{r(i)},[]),N.jsx(N.Fragment,{children:N.jsx(Ek,{style:{marginLeft:20},defaultActiveKey:"basic",items:n})})},{Sider:L0r,Content:$0r}=bo,Jse=()=>{const{leftSiderStyle:e,leftSiderWidth:n,headerStyle:r,contentStyle:i}=c_();return N.jsx(N.Fragment,{children:N.jsxs(bo,{children:[N.jsx(L0r,{style:e,width:n,children:N.jsx(Z8,{style:r,children:"home"})}),N.jsxs(bo,{children:[N.jsx(Z8,{style:r,children:"home"}),N.jsx($0r,{style:i,children:"home"})]})]})})},F0r=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);m.useEffect(()=>{console.log("useMulticast useEffect");const n=e();return()=>{console.log("un - useEffect"),clearInterval(n)}},[])};class B0r{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(n){this.flush(),this._parts.push(n)}append(n){this._pieces.push(n)}flush(){if(this._pieces.length>0){const n=new Uint8Array(this._pieces);this._parts.push(n),this._pieces=[]}}toArrayBuffer(){const n=[];for(const r of this._parts)n.push(r);return j0r(n).buffer}}function j0r(e){let n=0;for(const o of e)n+=o.byteLength;const r=new Uint8Array(n);let i=0;for(const o of e){const a=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);r.set(a,i),i+=o.byteLength}return r}function eut(e){return new U0r(e).unpack()}function tut(e){const n=new H0r,r=n.pack(e);return r instanceof Promise?r.then(()=>n.getBuffer()):n.getBuffer()}class U0r{constructor(n){this.index=0,this.dataBuffer=n,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const n=this.unpack_uint8();if(n<128)return n;if((n^224)<32)return(n^224)-32;let r;if((r=n^160)<=15)return this.unpack_raw(r);if((r=n^176)<=15)return this.unpack_string(r);if((r=n^144)<=15)return this.unpack_array(r);if((r=n^128)<=15)return this.unpack_map(r);switch(n){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return r=this.unpack_uint16(),this.unpack_string(r);case 217:return r=this.unpack_uint32(),this.unpack_string(r);case 218:return r=this.unpack_uint16(),this.unpack_raw(r);case 219:return r=this.unpack_uint32(),this.unpack_raw(r);case 220:return r=this.unpack_uint16(),this.unpack_array(r);case 221:return r=this.unpack_uint32(),this.unpack_array(r);case 222:return r=this.unpack_uint16(),this.unpack_map(r);case 223:return r=this.unpack_uint32(),this.unpack_map(r)}}unpack_uint8(){const n=this.dataView[this.index]&255;return this.index++,n}unpack_uint16(){const n=this.read(2),r=(n[0]&255)*256+(n[1]&255);return this.index+=2,r}unpack_uint32(){const n=this.read(4),r=((n[0]*256+n[1])*256+n[2])*256+n[3];return this.index+=4,r}unpack_uint64(){const n=this.read(8),r=((((((n[0]*256+n[1])*256+n[2])*256+n[3])*256+n[4])*256+n[5])*256+n[6])*256+n[7];return this.index+=8,r}unpack_int8(){const n=this.unpack_uint8();return n<128?n:n-256}unpack_int16(){const n=this.unpack_uint16();return n<32768?n:n-65536}unpack_int32(){const n=this.unpack_uint32();return n<2**31?n:n-2**32}unpack_int64(){const n=this.unpack_uint64();return n<2**63?n:n-2**64}unpack_raw(n){if(this.length<this.index+n)throw new Error(`BinaryPackFailure: index is out of range ${this.index} ${n} ${this.length}`);const r=this.dataBuffer.slice(this.index,this.index+n);return this.index+=n,r}unpack_string(n){const r=this.read(n);let i=0,o="",a,s;for(;i<n;)a=r[i],a<160?(s=a,i++):(a^192)<32?(s=(a&31)<<6|r[i+1]&63,i+=2):(a^224)<16?(s=(a&15)<<12|(r[i+1]&63)<<6|r[i+2]&63,i+=3):(s=(a&7)<<18|(r[i+1]&63)<<12|(r[i+2]&63)<<6|r[i+3]&63,i+=4),o+=String.fromCodePoint(s);return this.index+=n,o}unpack_array(n){const r=new Array(n);for(let i=0;i<n;i++)r[i]=this.unpack();return r}unpack_map(n){const r={};for(let i=0;i<n;i++){const o=this.unpack();r[o]=this.unpack()}return r}unpack_float(){const n=this.unpack_uint32(),r=n>>31,i=(n>>23&255)-127,o=n&8388607|8388608;return(r===0?1:-1)*o*2**(i-23)}unpack_double(){const n=this.unpack_uint32(),r=this.unpack_uint32(),i=n>>31,o=(n>>20&2047)-1023,s=(n&1048575|1048576)*2**(o-20)+r*2**(o-52);return(i===0?1:-1)*s}read(n){const r=this.index;if(r+n<=this.length)return this.dataView.subarray(r,r+n);throw new Error("BinaryPackFailure: read index out of range")}}class H0r{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(n){if(typeof n=="string")this.pack_string(n);else if(typeof n=="number")Math.floor(n)===n?this.pack_integer(n):this.pack_double(n);else if(typeof n=="boolean")n===!0?this._bufferBuilder.append(195):n===!1&&this._bufferBuilder.append(194);else if(n===void 0)this._bufferBuilder.append(192);else if(typeof n=="object")if(n===null)this._bufferBuilder.append(192);else{const r=n.constructor;if(n instanceof Array){const i=this.pack_array(n);if(i instanceof Promise)return i.then(()=>this._bufferBuilder.flush())}else if(n instanceof ArrayBuffer)this.pack_bin(new Uint8Array(n));else if("BYTES_PER_ELEMENT"in n){const i=n;this.pack_bin(new Uint8Array(i.buffer,i.byteOffset,i.byteLength))}else if(n instanceof Date)this.pack_string(n.toString());else{if(n instanceof Blob)return n.arrayBuffer().then(i=>{this.pack_bin(new Uint8Array(i)),this._bufferBuilder.flush()});if(r==Object||r.toString().startsWith("class")){const i=this.pack_object(n);if(i instanceof Promise)return i.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${r.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof n}" not yet supported`);this._bufferBuilder.flush()}pack_bin(n){const r=n.length;if(r<=15)this.pack_uint8(160+r);else if(r<=65535)this._bufferBuilder.append(218),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(n)}pack_string(n){const r=this._textEncoder.encode(n),i=r.length;if(i<=15)this.pack_uint8(176+i);else if(i<=65535)this._bufferBuilder.append(216),this.pack_uint16(i);else if(i<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(i);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(r)}pack_array(n){const r=n.length;if(r<=15)this.pack_uint8(144+r);else if(r<=65535)this._bufferBuilder.append(220),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(r);else throw new Error("Invalid length");const i=o=>{if(o<r){const a=this.pack(n[o]);return a instanceof Promise?a.then(()=>i(o+1)):i(o+1)}};return i(0)}pack_integer(n){if(n>=-32&&n<=127)this._bufferBuilder.append(n&255);else if(n>=0&&n<=255)this._bufferBuilder.append(204),this.pack_uint8(n);else if(n>=-128&&n<=127)this._bufferBuilder.append(208),this.pack_int8(n);else if(n>=0&&n<=65535)this._bufferBuilder.append(205),this.pack_uint16(n);else if(n>=-32768&&n<=32767)this._bufferBuilder.append(209),this.pack_int16(n);else if(n>=0&&n<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(n);else if(n>=-2147483648&&n<=2147483647)this._bufferBuilder.append(210),this.pack_int32(n);else if(n>=-9223372036854776e3&&n<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(n);else if(n>=0&&n<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(n);else throw new Error("Invalid integer")}pack_double(n){let r=0;n<0&&(r=1,n=-n);const i=Math.floor(Math.log(n)/Math.LN2),o=n/2**i-1,a=Math.floor(o*2**52),s=2**32,l=r<<31|i+1023<<20|a/s&1048575,c=a%s;this._bufferBuilder.append(203),this.pack_int32(l),this.pack_int32(c)}pack_object(n){const r=Object.keys(n),i=r.length;if(i<=15)this.pack_uint8(128+i);else if(i<=65535)this._bufferBuilder.append(222),this.pack_uint16(i);else if(i<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(i);else throw new Error("Invalid length");const o=a=>{if(a<r.length){const s=r[a];if(n.hasOwnProperty(s)){this.pack(s);const l=this.pack(n[s]);if(l instanceof Promise)return l.then(()=>o(a+1))}return o(a+1)}};return o(0)}pack_uint8(n){this._bufferBuilder.append(n)}pack_uint16(n){this._bufferBuilder.append(n>>8),this._bufferBuilder.append(n&255)}pack_uint32(n){const r=n&4294967295;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_uint64(n){const r=n/4294967296,i=n%2**32;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255),this._bufferBuilder.append((i&4278190080)>>>24),this._bufferBuilder.append((i&16711680)>>>16),this._bufferBuilder.append((i&65280)>>>8),this._bufferBuilder.append(i&255)}pack_int8(n){this._bufferBuilder.append(n&255)}pack_int16(n){this._bufferBuilder.append((n&65280)>>8),this._bufferBuilder.append(n&255)}pack_int32(n){this._bufferBuilder.append(n>>>24&255),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255)}pack_int64(n){const r=Math.floor(n/4294967296),i=n%2**32;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255),this._bufferBuilder.append((i&4278190080)>>>24),this._bufferBuilder.append((i&16711680)>>>16),this._bufferBuilder.append((i&65280)>>>8),this._bufferBuilder.append(i&255)}constructor(){this._bufferBuilder=new B0r,this._textEncoder=new TextEncoder}}let nut=!0,rut=!0;function fF(e,n,r){const i=e.match(n);return i&&i.length>=r&&parseInt(i[r],10)}function Hw(e,n,r){if(!e.RTCPeerConnection)return;const i=e.RTCPeerConnection.prototype,o=i.addEventListener;i.addEventListener=function(s,l){if(s!==n)return o.apply(this,arguments);const c=u=>{const d=r(u);d&&(l.handleEvent?l.handleEvent(d):l(d))};return this._eventMap=this._eventMap||{},this._eventMap[n]||(this._eventMap[n]=new Map),this._eventMap[n].set(l,c),o.apply(this,[s,c])};const a=i.removeEventListener;i.removeEventListener=function(s,l){if(s!==n||!this._eventMap||!this._eventMap[n])return a.apply(this,arguments);if(!this._eventMap[n].has(l))return a.apply(this,arguments);const c=this._eventMap[n].get(l);return this._eventMap[n].delete(l),this._eventMap[n].size===0&&delete this._eventMap[n],Object.keys(this._eventMap).length===0&&delete this._eventMap,a.apply(this,[s,c])},Object.defineProperty(i,"on"+n,{get(){return this["_on"+n]},set(s){this["_on"+n]&&(this.removeEventListener(n,this["_on"+n]),delete this["_on"+n]),s&&this.addEventListener(n,this["_on"+n]=s)},enumerable:!0,configurable:!0})}function z0r(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(nut=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function V0r(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(rut=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function iut(){if(typeof window=="object"){if(nut)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function lye(e,n){rut&&console.warn(e+" is deprecated, please use "+n+" instead.")}function G0r(e){const n={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return n.browser="Not a browser.",n;const{navigator:r}=e;if(r.userAgentData&&r.userAgentData.brands){const i=r.userAgentData.brands.find(o=>o.brand==="Chromium");if(i)return{browser:"chrome",version:parseInt(i.version,10)}}if(r.mozGetUserMedia)n.browser="firefox",n.version=fF(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)n.browser="chrome",n.version=fF(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&r.userAgent.match(/AppleWebKit\/(\d+)\./))n.browser="safari",n.version=fF(r.userAgent,/AppleWebKit\/(\d+)\./,1),n.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return n.browser="Not a supported browser.",n;return n}function R3e(e){return Object.prototype.toString.call(e)==="[object Object]"}function out(e){return R3e(e)?Object.keys(e).reduce(function(n,r){const i=R3e(e[r]),o=i?out(e[r]):e[r],a=i&&!Object.keys(o).length;return o===void 0||a?n:Object.assign(n,{[r]:o})},{}):e}function ele(e,n,r){!n||r.has(n.id)||(r.set(n.id,n),Object.keys(n).forEach(i=>{i.endsWith("Id")?ele(e,e.get(n[i]),r):i.endsWith("Ids")&&n[i].forEach(o=>{ele(e,e.get(o),r)})}))}function I3e(e,n,r){const i=r?"outbound-rtp":"inbound-rtp",o=new Map;if(n===null)return o;const a=[];return e.forEach(s=>{s.type==="track"&&s.trackIdentifier===n.id&&a.push(s)}),a.forEach(s=>{e.forEach(l=>{l.type===i&&l.trackId===s.id&&ele(e,l,o)})}),o}const N3e=iut;function aut(e,n){const r=e&&e.navigator;if(!r.mediaDevices)return;const i=function(l){if(typeof l!="object"||l.mandatory||l.optional)return l;const c={};return Object.keys(l).forEach(u=>{if(u==="require"||u==="advanced"||u==="mediaSource")return;const d=typeof l[u]=="object"?l[u]:{ideal:l[u]};d.exact!==void 0&&typeof d.exact=="number"&&(d.min=d.max=d.exact);const f=function(p,h){return p?p+h.charAt(0).toUpperCase()+h.slice(1):h==="deviceId"?"sourceId":h};if(d.ideal!==void 0){c.optional=c.optional||[];let p={};typeof d.ideal=="number"?(p[f("min",u)]=d.ideal,c.optional.push(p),p={},p[f("max",u)]=d.ideal,c.optional.push(p)):(p[f("",u)]=d.ideal,c.optional.push(p))}d.exact!==void 0&&typeof d.exact!="number"?(c.mandatory=c.mandatory||{},c.mandatory[f("",u)]=d.exact):["min","max"].forEach(p=>{d[p]!==void 0&&(c.mandatory=c.mandatory||{},c.mandatory[f(p,u)]=d[p])})}),l.advanced&&(c.optional=(c.optional||[]).concat(l.advanced)),c},o=function(l,c){if(n.version>=61)return c(l);if(l=JSON.parse(JSON.stringify(l)),l&&typeof l.audio=="object"){const u=function(d,f,p){f in d&&!(p in d)&&(d[p]=d[f],delete d[f])};l=JSON.parse(JSON.stringify(l)),u(l.audio,"autoGainControl","googAutoGainControl"),u(l.audio,"noiseSuppression","googNoiseSuppression"),l.audio=i(l.audio)}if(l&&typeof l.video=="object"){let u=l.video.facingMode;u=u&&(typeof u=="object"?u:{ideal:u});const d=n.version<66;if(u&&(u.exact==="user"||u.exact==="environment"||u.ideal==="user"||u.ideal==="environment")&&!(r.mediaDevices.getSupportedConstraints&&r.mediaDevices.getSupportedConstraints().facingMode&&!d)){delete l.video.facingMode;let f;if(u.exact==="environment"||u.ideal==="environment"?f=["back","rear"]:(u.exact==="user"||u.ideal==="user")&&(f=["front"]),f)return r.mediaDevices.enumerateDevices().then(p=>{p=p.filter(g=>g.kind==="videoinput");let h=p.find(g=>f.some(v=>g.label.toLowerCase().includes(v)));return!h&&p.length&&f.includes("back")&&(h=p[p.length-1]),h&&(l.video.deviceId=u.exact?{exact:h.deviceId}:{ideal:h.deviceId}),l.video=i(l.video),N3e("chrome: "+JSON.stringify(l)),c(l)})}l.video=i(l.video)}return N3e("chrome: "+JSON.stringify(l)),c(l)},a=function(l){return n.version>=64?l:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[l.name]||l.name,message:l.message,constraint:l.constraint||l.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},s=function(l,c,u){o(l,d=>{r.webkitGetUserMedia(d,c,f=>{u&&u(a(f))})})};if(r.getUserMedia=s.bind(r),r.mediaDevices.getUserMedia){const l=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(c){return o(c,u=>l(u).then(d=>{if(u.audio&&!d.getAudioTracks().length||u.video&&!d.getVideoTracks().length)throw d.getTracks().forEach(f=>{f.stop()}),new DOMException("","NotFoundError");return d},d=>Promise.reject(a(d))))}}}function sut(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function lut(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(r){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=r)},enumerable:!0,configurable:!0});const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=i=>{i.stream.addEventListener("addtrack",o=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(l=>l.track&&l.track.id===o.track.id):a={track:o.track};const s=new Event("track");s.track=o.track,s.receiver=a,s.transceiver={receiver:a},s.streams=[i.stream],this.dispatchEvent(s)}),i.stream.getTracks().forEach(o=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(l=>l.track&&l.track.id===o.id):a={track:o};const s=new Event("track");s.track=o,s.receiver=a,s.transceiver={receiver:a},s.streams=[i.stream],this.dispatchEvent(s)})},this.addEventListener("addstream",this._ontrackpoly)),n.apply(this,arguments)}}else Hw(e,"track",n=>(n.transceiver||Object.defineProperty(n,"transceiver",{value:{receiver:n.receiver}}),n))}function cut(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const n=function(o,a){return{track:a,get dtmf(){return this._dtmf===void 0&&(a.kind==="audio"?this._dtmf=o.createDTMFSender(a):this._dtmf=null),this._dtmf},_pc:o}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const o=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(l,c){let u=o.apply(this,arguments);return u||(u=n(this,l),this._senders.push(u)),u};const a=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(l){a.apply(this,arguments);const c=this._senders.indexOf(l);c!==-1&&this._senders.splice(c,1)}}const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._senders=this._senders||[],r.apply(this,[a]),a.getTracks().forEach(s=>{this._senders.push(n(this,s))})};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){this._senders=this._senders||[],i.apply(this,[a]),a.getTracks().forEach(s=>{const l=this._senders.find(c=>c.track===s);l&&this._senders.splice(this._senders.indexOf(l),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const i=n.apply(this,[]);return i.forEach(o=>o._pc=this),i},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function uut(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const r=e.RTCPeerConnection.prototype.getSenders;r&&(e.RTCPeerConnection.prototype.getSenders=function(){const a=r.apply(this,[]);return a.forEach(s=>s._pc=this),a});const i=e.RTCPeerConnection.prototype.addTrack;i&&(e.RTCPeerConnection.prototype.addTrack=function(){const a=i.apply(this,arguments);return a._pc=this,a}),e.RTCRtpSender.prototype.getStats=function(){const a=this;return this._pc.getStats().then(s=>I3e(s,a.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const r=e.RTCPeerConnection.prototype.getReceivers;r&&(e.RTCPeerConnection.prototype.getReceivers=function(){const o=r.apply(this,[]);return o.forEach(a=>a._pc=this),o}),Hw(e,"track",i=>(i.receiver._pc=i.srcElement,i)),e.RTCRtpReceiver.prototype.getStats=function(){const o=this;return this._pc.getStats().then(a=>I3e(a,o.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const n=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const i=arguments[0];let o,a,s;return this.getSenders().forEach(l=>{l.track===i&&(o?s=!0:o=l)}),this.getReceivers().forEach(l=>(l.track===i&&(a?s=!0:a=l),l.track===i)),s||o&&a?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):o?o.getStats():a?a.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return n.apply(this,arguments)}}function dut(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(s=>this._shimmedLocalStreams[s][0])};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){if(!l)return n.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const c=n.apply(this,arguments);return this._shimmedLocalStreams[l.id]?this._shimmedLocalStreams[l.id].indexOf(c)===-1&&this._shimmedLocalStreams[l.id].push(c):this._shimmedLocalStreams[l.id]=[l,c],c};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(s){this._shimmedLocalStreams=this._shimmedLocalStreams||{},s.getTracks().forEach(u=>{if(this.getSenders().find(f=>f.track===u))throw new DOMException("Track already exists.","InvalidAccessError")});const l=this.getSenders();r.apply(this,arguments);const c=this.getSenders().filter(u=>l.indexOf(u)===-1);this._shimmedLocalStreams[s.id]=[s].concat(c)};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(s){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[s.id],i.apply(this,arguments)};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},s&&Object.keys(this._shimmedLocalStreams).forEach(l=>{const c=this._shimmedLocalStreams[l].indexOf(s);c!==-1&&this._shimmedLocalStreams[l].splice(c,1),this._shimmedLocalStreams[l].length===1&&delete this._shimmedLocalStreams[l]}),o.apply(this,arguments)}}function fut(e,n){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&n.version>=65)return dut(e);const r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const d=r.apply(this);return this._reverseStreams=this._reverseStreams||{},d.map(f=>this._reverseStreams[f.id])};const i=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(d){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},d.getTracks().forEach(f=>{if(this.getSenders().find(h=>h.track===f))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[d.id]){const f=new e.MediaStream(d.getTracks());this._streams[d.id]=f,this._reverseStreams[f.id]=d,d=f}i.apply(this,[d])};const o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(d){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[d.id]||d]),delete this._reverseStreams[this._streams[d.id]?this._streams[d.id].id:d.id],delete this._streams[d.id]},e.RTCPeerConnection.prototype.addTrack=function(d,f){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const p=[].slice.call(arguments,1);if(p.length!==1||!p[0].getTracks().find(v=>v===d))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(v=>v.track===d))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const g=this._streams[f.id];if(g)g.addTrack(d),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const v=new e.MediaStream([d]);this._streams[f.id]=v,this._reverseStreams[v.id]=f,this.addStream(v)}return this.getSenders().find(v=>v.track===d)};function a(u,d){let f=d.sdp;return Object.keys(u._reverseStreams||[]).forEach(p=>{const h=u._reverseStreams[p],g=u._streams[h.id];f=f.replace(new RegExp(g.id,"g"),h.id)}),new RTCSessionDescription({type:d.type,sdp:f})}function s(u,d){let f=d.sdp;return Object.keys(u._reverseStreams||[]).forEach(p=>{const h=u._reverseStreams[p],g=u._streams[h.id];f=f.replace(new RegExp(h.id,"g"),g.id)}),new RTCSessionDescription({type:d.type,sdp:f})}["createOffer","createAnswer"].forEach(function(u){const d=e.RTCPeerConnection.prototype[u],f={[u](){const p=arguments;return arguments.length&&typeof arguments[0]=="function"?d.apply(this,[g=>{const v=a(this,g);p[0].apply(null,[v])},g=>{p[1]&&p[1].apply(null,g)},arguments[2]]):d.apply(this,arguments).then(g=>a(this,g))}};e.RTCPeerConnection.prototype[u]=f[u]});const l=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?l.apply(this,arguments):(arguments[0]=s(this,arguments[0]),l.apply(this,arguments))};const c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const u=c.get.apply(this);return u.type===""?u:a(this,u)}}),e.RTCPeerConnection.prototype.removeTrack=function(d){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!d._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(d._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let p;Object.keys(this._streams).forEach(h=>{this._streams[h].getTracks().find(v=>d.track===v)&&(p=this._streams[h])}),p&&(p.getTracks().length===1?this.removeStream(this._reverseStreams[p.id]):p.removeTrack(d.track),this.dispatchEvent(new Event("negotiationneeded")))}}function tle(e,n){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&n.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(r){const i=e.RTCPeerConnection.prototype[r],o={[r](){return arguments[0]=new(r==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),i.apply(this,arguments)}};e.RTCPeerConnection.prototype[r]=o[r]})}function put(e,n){Hw(e,"negotiationneeded",r=>{const i=r.target;if(!((n.version<72||i.getConfiguration&&i.getConfiguration().sdpSemantics==="plan-b")&&i.signalingState!=="stable"))return r})}const M3e=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:put,shimAddTrackRemoveTrack:fut,shimAddTrackRemoveTrackWithNative:dut,shimGetSendersWithDtmf:cut,shimGetUserMedia:aut,shimMediaStream:sut,shimOnTrack:lut,shimPeerConnection:tle,shimSenderReceiverGetStats:uut},Symbol.toStringTag,{value:"Module"}));function hut(e,n){const r=e&&e.navigator,i=e&&e.MediaStreamTrack;if(r.getUserMedia=function(o,a,s){lye("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(o).then(a,s)},!(n.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){const o=function(s,l,c){l in s&&!(c in s)&&(s[c]=s[l],delete s[l])},a=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(s){return typeof s=="object"&&typeof s.audio=="object"&&(s=JSON.parse(JSON.stringify(s)),o(s.audio,"autoGainControl","mozAutoGainControl"),o(s.audio,"noiseSuppression","mozNoiseSuppression")),a(s)},i&&i.prototype.getSettings){const s=i.prototype.getSettings;i.prototype.getSettings=function(){const l=s.apply(this,arguments);return o(l,"mozAutoGainControl","autoGainControl"),o(l,"mozNoiseSuppression","noiseSuppression"),l}}if(i&&i.prototype.applyConstraints){const s=i.prototype.applyConstraints;i.prototype.applyConstraints=function(l){return this.kind==="audio"&&typeof l=="object"&&(l=JSON.parse(JSON.stringify(l)),o(l,"autoGainControl","mozAutoGainControl"),o(l,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[l])}}}}function W0r(e,n){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(i){if(!(i&&i.video)){const o=new DOMException("getDisplayMedia without video constraints is undefined");return o.name="NotFoundError",o.code=8,Promise.reject(o)}return i.video===!0?i.video={mediaSource:n}:i.video.mediaSource=n,e.navigator.mediaDevices.getUserMedia(i)})}function gut(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function nle(e,n){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),n.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(o){const a=e.RTCPeerConnection.prototype[o],s={[o](){return arguments[0]=new(o==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),a.apply(this,arguments)}};e.RTCPeerConnection.prototype[o]=s[o]});const r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},i=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[a,s,l]=arguments;return i.apply(this,[a||null]).then(c=>{if(n.version<53&&!s)try{c.forEach(u=>{u.type=r[u.type]||u.type})}catch(u){if(u.name!=="TypeError")throw u;c.forEach((d,f)=>{c.set(f,Object.assign({},d,{type:r[d.type]||d.type}))})}return c}).then(s,l)}}function mut(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const o=n.apply(this,[]);return o.forEach(a=>a._pc=this),o});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const o=r.apply(this,arguments);return o._pc=this,o}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function vut(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const i=n.apply(this,[]);return i.forEach(o=>o._pc=this),i}),Hw(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function yut(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(r){lye("removeStream","removeTrack"),this.getSenders().forEach(i=>{i.track&&r.getTracks().includes(i.track)&&this.removeTrack(i)})})}function _ut(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function but(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const n=e.RTCPeerConnection.prototype.addTransceiver;n&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let i=arguments[1]&&arguments[1].sendEncodings;i===void 0&&(i=[]),i=[...i];const o=i.length>0;o&&i.forEach(s=>{if("rid"in s&&!/^[a-z0-9]{0,16}$/i.test(s.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in s&&!(parseFloat(s.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in s&&!(parseFloat(s.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const a=n.apply(this,arguments);if(o){const{sender:s}=a,l=s.getParameters();(!("encodings"in l)||l.encodings.length===1&&Object.keys(l.encodings[0]).length===0)&&(l.encodings=i,s.sendEncodings=i,this.setParametersPromises.push(s.setParameters(l).then(()=>{delete s.sendEncodings}).catch(()=>{delete s.sendEncodings})))}return a})}function Sut(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const n=e.RTCRtpSender.prototype.getParameters;n&&(e.RTCRtpSender.prototype.getParameters=function(){const i=n.apply(this,arguments);return"encodings"in i||(i.encodings=[].concat(this.sendEncodings||[{}])),i})}function Eut(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const n=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>n.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):n.apply(this,arguments)}}function Cut(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const n=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>n.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):n.apply(this,arguments)}}const P3e=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:but,shimCreateAnswer:Cut,shimCreateOffer:Eut,shimGetDisplayMedia:W0r,shimGetParameters:Sut,shimGetUserMedia:hut,shimOnTrack:gut,shimPeerConnection:nle,shimRTCDataChannel:_ut,shimReceiverGetStats:vut,shimRemoveStream:yut,shimSenderGetStats:mut},Symbol.toStringTag,{value:"Module"}));function wut(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(i){this._localStreams||(this._localStreams=[]),this._localStreams.includes(i)||this._localStreams.push(i),i.getAudioTracks().forEach(o=>n.call(this,o,i)),i.getVideoTracks().forEach(o=>n.call(this,o,i))},e.RTCPeerConnection.prototype.addTrack=function(i,...o){return o&&o.forEach(a=>{this._localStreams?this._localStreams.includes(a)||this._localStreams.push(a):this._localStreams=[a]}),n.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(r){this._localStreams||(this._localStreams=[]);const i=this._localStreams.indexOf(r);if(i===-1)return;this._localStreams.splice(i,1);const o=r.getTracks();this.getSenders().forEach(a=>{o.includes(a.track)&&this.removeTrack(a)})})}}function xut(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(r){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=r),this.addEventListener("track",this._onaddstreampoly=i=>{i.streams.forEach(o=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(o))return;this._remoteStreams.push(o);const a=new Event("addstream");a.stream=o,this.dispatchEvent(a)})})}});const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const i=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(o){o.streams.forEach(a=>{if(i._remoteStreams||(i._remoteStreams=[]),i._remoteStreams.indexOf(a)>=0)return;i._remoteStreams.push(a);const s=new Event("addstream");s.stream=a,i.dispatchEvent(s)})}),n.apply(i,arguments)}}}function Tut(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const n=e.RTCPeerConnection.prototype,r=n.createOffer,i=n.createAnswer,o=n.setLocalDescription,a=n.setRemoteDescription,s=n.addIceCandidate;n.createOffer=function(u,d){const f=arguments.length>=2?arguments[2]:arguments[0],p=r.apply(this,[f]);return d?(p.then(u,d),Promise.resolve()):p},n.createAnswer=function(u,d){const f=arguments.length>=2?arguments[2]:arguments[0],p=i.apply(this,[f]);return d?(p.then(u,d),Promise.resolve()):p};let l=function(c,u,d){const f=o.apply(this,[c]);return d?(f.then(u,d),Promise.resolve()):f};n.setLocalDescription=l,l=function(c,u,d){const f=a.apply(this,[c]);return d?(f.then(u,d),Promise.resolve()):f},n.setRemoteDescription=l,l=function(c,u,d){const f=s.apply(this,[c]);return d?(f.then(u,d),Promise.resolve()):f},n.addIceCandidate=l}function Out(e){const n=e&&e.navigator;if(n.mediaDevices&&n.mediaDevices.getUserMedia){const r=n.mediaDevices,i=r.getUserMedia.bind(r);n.mediaDevices.getUserMedia=o=>i(Rut(o))}!n.getUserMedia&&n.mediaDevices&&n.mediaDevices.getUserMedia&&(n.getUserMedia=(function(i,o,a){n.mediaDevices.getUserMedia(i).then(o,a)}).bind(n))}function Rut(e){return e&&e.video!==void 0?Object.assign({},e,{video:out(e.video)}):e}function Iut(e){if(!e.RTCPeerConnection)return;const n=e.RTCPeerConnection;e.RTCPeerConnection=function(i,o){if(i&&i.iceServers){const a=[];for(let s=0;s<i.iceServers.length;s++){let l=i.iceServers[s];l.urls===void 0&&l.url?(lye("RTCIceServer.url","RTCIceServer.urls"),l=JSON.parse(JSON.stringify(l)),l.urls=l.url,delete l.url,a.push(l)):a.push(i.iceServers[s])}i.iceServers=a}return new n(i,o)},e.RTCPeerConnection.prototype=n.prototype,"generateCertificate"in n&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get(){return n.generateCertificate}})}function Nut(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Mut(e){const n=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(i){if(i){typeof i.offerToReceiveAudio<"u"&&(i.offerToReceiveAudio=!!i.offerToReceiveAudio);const o=this.getTransceivers().find(s=>s.receiver.track.kind==="audio");i.offerToReceiveAudio===!1&&o?o.direction==="sendrecv"?o.setDirection?o.setDirection("sendonly"):o.direction="sendonly":o.direction==="recvonly"&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive"):i.offerToReceiveAudio===!0&&!o&&this.addTransceiver("audio",{direction:"recvonly"}),typeof i.offerToReceiveVideo<"u"&&(i.offerToReceiveVideo=!!i.offerToReceiveVideo);const a=this.getTransceivers().find(s=>s.receiver.track.kind==="video");i.offerToReceiveVideo===!1&&a?a.direction==="sendrecv"?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":a.direction==="recvonly"&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):i.offerToReceiveVideo===!0&&!a&&this.addTransceiver("video",{direction:"recvonly"})}return n.apply(this,arguments)}}function Put(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const A3e=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:Put,shimCallbacksAPI:Tut,shimConstraints:Rut,shimCreateOfferLegacy:Mut,shimGetUserMedia:Out,shimLocalStreamsAPI:wut,shimRTCIceServerUrls:Iut,shimRemoteStreamsAPI:xut,shimTrackEventTransceiver:Nut},Symbol.toStringTag,{value:"Module"}));var Aut={exports:{}};(function(e){const n={};n.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},n.localCName=n.generateIdentifier(),n.splitLines=function(r){return r.trim().split(`
|
||
`).map(i=>i.trim())},n.splitSections=function(r){return r.split(`
|
||
m=`).map((o,a)=>(a>0?"m="+o:o).trim()+`\r
|
||
`)},n.getDescription=function(r){const i=n.splitSections(r);return i&&i[0]},n.getMediaSections=function(r){const i=n.splitSections(r);return i.shift(),i},n.matchPrefix=function(r,i){return n.splitLines(r).filter(o=>o.indexOf(i)===0)},n.parseCandidate=function(r){let i;r.indexOf("a=candidate:")===0?i=r.substring(12).split(" "):i=r.substring(10).split(" ");const o={foundation:i[0],component:{1:"rtp",2:"rtcp"}[i[1]]||i[1],protocol:i[2].toLowerCase(),priority:parseInt(i[3],10),ip:i[4],address:i[4],port:parseInt(i[5],10),type:i[7]};for(let a=8;a<i.length;a+=2)switch(i[a]){case"raddr":o.relatedAddress=i[a+1];break;case"rport":o.relatedPort=parseInt(i[a+1],10);break;case"tcptype":o.tcpType=i[a+1];break;case"ufrag":o.ufrag=i[a+1],o.usernameFragment=i[a+1];break;default:o[i[a]]===void 0&&(o[i[a]]=i[a+1]);break}return o},n.writeCandidate=function(r){const i=[];i.push(r.foundation);const o=r.component;o==="rtp"?i.push(1):o==="rtcp"?i.push(2):i.push(o),i.push(r.protocol.toUpperCase()),i.push(r.priority),i.push(r.address||r.ip),i.push(r.port);const a=r.type;return i.push("typ"),i.push(a),a!=="host"&&r.relatedAddress&&r.relatedPort&&(i.push("raddr"),i.push(r.relatedAddress),i.push("rport"),i.push(r.relatedPort)),r.tcpType&&r.protocol.toLowerCase()==="tcp"&&(i.push("tcptype"),i.push(r.tcpType)),(r.usernameFragment||r.ufrag)&&(i.push("ufrag"),i.push(r.usernameFragment||r.ufrag)),"candidate:"+i.join(" ")},n.parseIceOptions=function(r){return r.substring(14).split(" ")},n.parseRtpMap=function(r){let i=r.substring(9).split(" ");const o={payloadType:parseInt(i.shift(),10)};return i=i[0].split("/"),o.name=i[0],o.clockRate=parseInt(i[1],10),o.channels=i.length===3?parseInt(i[2],10):1,o.numChannels=o.channels,o},n.writeRtpMap=function(r){let i=r.payloadType;r.preferredPayloadType!==void 0&&(i=r.preferredPayloadType);const o=r.channels||r.numChannels||1;return"a=rtpmap:"+i+" "+r.name+"/"+r.clockRate+(o!==1?"/"+o:"")+`\r
|
||
`},n.parseExtmap=function(r){const i=r.substring(9).split(" ");return{id:parseInt(i[0],10),direction:i[0].indexOf("/")>0?i[0].split("/")[1]:"sendrecv",uri:i[1],attributes:i.slice(2).join(" ")}},n.writeExtmap=function(r){return"a=extmap:"+(r.id||r.preferredId)+(r.direction&&r.direction!=="sendrecv"?"/"+r.direction:"")+" "+r.uri+(r.attributes?" "+r.attributes:"")+`\r
|
||
`},n.parseFmtp=function(r){const i={};let o;const a=r.substring(r.indexOf(" ")+1).split(";");for(let s=0;s<a.length;s++)o=a[s].trim().split("="),i[o[0].trim()]=o[1];return i},n.writeFmtp=function(r){let i="",o=r.payloadType;if(r.preferredPayloadType!==void 0&&(o=r.preferredPayloadType),r.parameters&&Object.keys(r.parameters).length){const a=[];Object.keys(r.parameters).forEach(s=>{r.parameters[s]!==void 0?a.push(s+"="+r.parameters[s]):a.push(s)}),i+="a=fmtp:"+o+" "+a.join(";")+`\r
|
||
`}return i},n.parseRtcpFb=function(r){const i=r.substring(r.indexOf(" ")+1).split(" ");return{type:i.shift(),parameter:i.join(" ")}},n.writeRtcpFb=function(r){let i="",o=r.payloadType;return r.preferredPayloadType!==void 0&&(o=r.preferredPayloadType),r.rtcpFeedback&&r.rtcpFeedback.length&&r.rtcpFeedback.forEach(a=>{i+="a=rtcp-fb:"+o+" "+a.type+(a.parameter&&a.parameter.length?" "+a.parameter:"")+`\r
|
||
`}),i},n.parseSsrcMedia=function(r){const i=r.indexOf(" "),o={ssrc:parseInt(r.substring(7,i),10)},a=r.indexOf(":",i);return a>-1?(o.attribute=r.substring(i+1,a),o.value=r.substring(a+1)):o.attribute=r.substring(i+1),o},n.parseSsrcGroup=function(r){const i=r.substring(13).split(" ");return{semantics:i.shift(),ssrcs:i.map(o=>parseInt(o,10))}},n.getMid=function(r){const i=n.matchPrefix(r,"a=mid:")[0];if(i)return i.substring(6)},n.parseFingerprint=function(r){const i=r.substring(14).split(" ");return{algorithm:i[0].toLowerCase(),value:i[1].toUpperCase()}},n.getDtlsParameters=function(r,i){return{role:"auto",fingerprints:n.matchPrefix(r+i,"a=fingerprint:").map(n.parseFingerprint)}},n.writeDtlsParameters=function(r,i){let o="a=setup:"+i+`\r
|
||
`;return r.fingerprints.forEach(a=>{o+="a=fingerprint:"+a.algorithm+" "+a.value+`\r
|
||
`}),o},n.parseCryptoLine=function(r){const i=r.substring(9).split(" ");return{tag:parseInt(i[0],10),cryptoSuite:i[1],keyParams:i[2],sessionParams:i.slice(3)}},n.writeCryptoLine=function(r){return"a=crypto:"+r.tag+" "+r.cryptoSuite+" "+(typeof r.keyParams=="object"?n.writeCryptoKeyParams(r.keyParams):r.keyParams)+(r.sessionParams?" "+r.sessionParams.join(" "):"")+`\r
|
||
`},n.parseCryptoKeyParams=function(r){if(r.indexOf("inline:")!==0)return null;const i=r.substring(7).split("|");return{keyMethod:"inline",keySalt:i[0],lifeTime:i[1],mkiValue:i[2]?i[2].split(":")[0]:void 0,mkiLength:i[2]?i[2].split(":")[1]:void 0}},n.writeCryptoKeyParams=function(r){return r.keyMethod+":"+r.keySalt+(r.lifeTime?"|"+r.lifeTime:"")+(r.mkiValue&&r.mkiLength?"|"+r.mkiValue+":"+r.mkiLength:"")},n.getCryptoParameters=function(r,i){return n.matchPrefix(r+i,"a=crypto:").map(n.parseCryptoLine)},n.getIceParameters=function(r,i){const o=n.matchPrefix(r+i,"a=ice-ufrag:")[0],a=n.matchPrefix(r+i,"a=ice-pwd:")[0];return o&&a?{usernameFragment:o.substring(12),password:a.substring(10)}:null},n.writeIceParameters=function(r){let i="a=ice-ufrag:"+r.usernameFragment+`\r
|
||
a=ice-pwd:`+r.password+`\r
|
||
`;return r.iceLite&&(i+=`a=ice-lite\r
|
||
`),i},n.parseRtpParameters=function(r){const i={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},a=n.splitLines(r)[0].split(" ");i.profile=a[2];for(let l=3;l<a.length;l++){const c=a[l],u=n.matchPrefix(r,"a=rtpmap:"+c+" ")[0];if(u){const d=n.parseRtpMap(u),f=n.matchPrefix(r,"a=fmtp:"+c+" ");switch(d.parameters=f.length?n.parseFmtp(f[0]):{},d.rtcpFeedback=n.matchPrefix(r,"a=rtcp-fb:"+c+" ").map(n.parseRtcpFb),i.codecs.push(d),d.name.toUpperCase()){case"RED":case"ULPFEC":i.fecMechanisms.push(d.name.toUpperCase());break}}}n.matchPrefix(r,"a=extmap:").forEach(l=>{i.headerExtensions.push(n.parseExtmap(l))});const s=n.matchPrefix(r,"a=rtcp-fb:* ").map(n.parseRtcpFb);return i.codecs.forEach(l=>{s.forEach(c=>{l.rtcpFeedback.find(d=>d.type===c.type&&d.parameter===c.parameter)||l.rtcpFeedback.push(c)})}),i},n.writeRtpDescription=function(r,i){let o="";o+="m="+r+" ",o+=i.codecs.length>0?"9":"0",o+=" "+(i.profile||"UDP/TLS/RTP/SAVPF")+" ",o+=i.codecs.map(s=>s.preferredPayloadType!==void 0?s.preferredPayloadType:s.payloadType).join(" ")+`\r
|
||
`,o+=`c=IN IP4 0.0.0.0\r
|
||
`,o+=`a=rtcp:9 IN IP4 0.0.0.0\r
|
||
`,i.codecs.forEach(s=>{o+=n.writeRtpMap(s),o+=n.writeFmtp(s),o+=n.writeRtcpFb(s)});let a=0;return i.codecs.forEach(s=>{s.maxptime>a&&(a=s.maxptime)}),a>0&&(o+="a=maxptime:"+a+`\r
|
||
`),i.headerExtensions&&i.headerExtensions.forEach(s=>{o+=n.writeExtmap(s)}),o},n.parseRtpEncodingParameters=function(r){const i=[],o=n.parseRtpParameters(r),a=o.fecMechanisms.indexOf("RED")!==-1,s=o.fecMechanisms.indexOf("ULPFEC")!==-1,l=n.matchPrefix(r,"a=ssrc:").map(p=>n.parseSsrcMedia(p)).filter(p=>p.attribute==="cname"),c=l.length>0&&l[0].ssrc;let u;const d=n.matchPrefix(r,"a=ssrc-group:FID").map(p=>p.substring(17).split(" ").map(g=>parseInt(g,10)));d.length>0&&d[0].length>1&&d[0][0]===c&&(u=d[0][1]),o.codecs.forEach(p=>{if(p.name.toUpperCase()==="RTX"&&p.parameters.apt){let h={ssrc:c,codecPayloadType:parseInt(p.parameters.apt,10)};c&&u&&(h.rtx={ssrc:u}),i.push(h),a&&(h=JSON.parse(JSON.stringify(h)),h.fec={ssrc:c,mechanism:s?"red+ulpfec":"red"},i.push(h))}}),i.length===0&&c&&i.push({ssrc:c});let f=n.matchPrefix(r,"b=");return f.length&&(f[0].indexOf("b=TIAS:")===0?f=parseInt(f[0].substring(7),10):f[0].indexOf("b=AS:")===0?f=parseInt(f[0].substring(5),10)*1e3*.95-50*40*8:f=void 0,i.forEach(p=>{p.maxBitrate=f})),i},n.parseRtcpParameters=function(r){const i={},o=n.matchPrefix(r,"a=ssrc:").map(l=>n.parseSsrcMedia(l)).filter(l=>l.attribute==="cname")[0];o&&(i.cname=o.value,i.ssrc=o.ssrc);const a=n.matchPrefix(r,"a=rtcp-rsize");i.reducedSize=a.length>0,i.compound=a.length===0;const s=n.matchPrefix(r,"a=rtcp-mux");return i.mux=s.length>0,i},n.writeRtcpParameters=function(r){let i="";return r.reducedSize&&(i+=`a=rtcp-rsize\r
|
||
`),r.mux&&(i+=`a=rtcp-mux\r
|
||
`),r.ssrc!==void 0&&r.cname&&(i+="a=ssrc:"+r.ssrc+" cname:"+r.cname+`\r
|
||
`),i},n.parseMsid=function(r){let i;const o=n.matchPrefix(r,"a=msid:");if(o.length===1)return i=o[0].substring(7).split(" "),{stream:i[0],track:i[1]};const a=n.matchPrefix(r,"a=ssrc:").map(s=>n.parseSsrcMedia(s)).filter(s=>s.attribute==="msid");if(a.length>0)return i=a[0].value.split(" "),{stream:i[0],track:i[1]}},n.parseSctpDescription=function(r){const i=n.parseMLine(r),o=n.matchPrefix(r,"a=max-message-size:");let a;o.length>0&&(a=parseInt(o[0].substring(19),10)),isNaN(a)&&(a=65536);const s=n.matchPrefix(r,"a=sctp-port:");if(s.length>0)return{port:parseInt(s[0].substring(12),10),protocol:i.fmt,maxMessageSize:a};const l=n.matchPrefix(r,"a=sctpmap:");if(l.length>0){const c=l[0].substring(10).split(" ");return{port:parseInt(c[0],10),protocol:c[1],maxMessageSize:a}}},n.writeSctpDescription=function(r,i){let o=[];return r.protocol!=="DTLS/SCTP"?o=["m="+r.kind+" 9 "+r.protocol+" "+i.protocol+`\r
|
||
`,`c=IN IP4 0.0.0.0\r
|
||
`,"a=sctp-port:"+i.port+`\r
|
||
`]:o=["m="+r.kind+" 9 "+r.protocol+" "+i.port+`\r
|
||
`,`c=IN IP4 0.0.0.0\r
|
||
`,"a=sctpmap:"+i.port+" "+i.protocol+` 65535\r
|
||
`],i.maxMessageSize!==void 0&&o.push("a=max-message-size:"+i.maxMessageSize+`\r
|
||
`),o.join("")},n.generateSessionId=function(){return Math.random().toString().substr(2,22)},n.writeSessionBoilerplate=function(r,i,o){let a;const s=i!==void 0?i:2;return r?a=r:a=n.generateSessionId(),`v=0\r
|
||
o=`+(o||"thisisadapterortc")+" "+a+" "+s+` IN IP4 127.0.0.1\r
|
||
s=-\r
|
||
t=0 0\r
|
||
`},n.getDirection=function(r,i){const o=n.splitLines(r);for(let a=0;a<o.length;a++)switch(o[a]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return o[a].substring(2)}return i?n.getDirection(i):"sendrecv"},n.getKind=function(r){return n.splitLines(r)[0].split(" ")[0].substring(2)},n.isRejected=function(r){return r.split(" ",2)[1]==="0"},n.parseMLine=function(r){const o=n.splitLines(r)[0].substring(2).split(" ");return{kind:o[0],port:parseInt(o[1],10),protocol:o[2],fmt:o.slice(3).join(" ")}},n.parseOLine=function(r){const o=n.matchPrefix(r,"o=")[0].substring(2).split(" ");return{username:o[0],sessionId:o[1],sessionVersion:parseInt(o[2],10),netType:o[3],addressType:o[4],address:o[5]}},n.isValidSDP=function(r){if(typeof r!="string"||r.length===0)return!1;const i=n.splitLines(r);for(let o=0;o<i.length;o++)if(i[o].length<2||i[o].charAt(1)!=="=")return!1;return!0},e.exports=n})(Aut);var Dut=Aut.exports;const iO=Or(Dut),Y0r=a7({__proto__:null,default:iO},[Dut]);function pF(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const n=e.RTCIceCandidate;e.RTCIceCandidate=function(i){if(typeof i=="object"&&i.candidate&&i.candidate.indexOf("a=")===0&&(i=JSON.parse(JSON.stringify(i)),i.candidate=i.candidate.substring(2)),i.candidate&&i.candidate.length){const o=new n(i),a=iO.parseCandidate(i.candidate);for(const s in a)s in o||Object.defineProperty(o,s,{value:a[s]});return o.toJSON=function(){return{candidate:o.candidate,sdpMid:o.sdpMid,sdpMLineIndex:o.sdpMLineIndex,usernameFragment:o.usernameFragment}},o}return new n(i)},e.RTCIceCandidate.prototype=n.prototype,Hw(e,"icecandidate",r=>(r.candidate&&Object.defineProperty(r,"candidate",{value:new e.RTCIceCandidate(r.candidate),writable:"false"}),r))}function rle(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||Hw(e,"icecandidate",n=>{if(n.candidate){const r=iO.parseCandidate(n.candidate.candidate);r.type==="relay"&&(n.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[r.priority>>24])}return n})}function hF(e,n){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const r=function(l){if(!l||!l.sdp)return!1;const c=iO.splitSections(l.sdp);return c.shift(),c.some(u=>{const d=iO.parseMLine(u);return d&&d.kind==="application"&&d.protocol.indexOf("SCTP")!==-1})},i=function(l){const c=l.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(c===null||c.length<2)return-1;const u=parseInt(c[1],10);return u!==u?-1:u},o=function(l){let c=65536;return n.browser==="firefox"&&(n.version<57?l===-1?c=16384:c=2147483637:n.version<60?c=n.version===57?65535:65536:c=2147483637),c},a=function(l,c){let u=65536;n.browser==="firefox"&&n.version===57&&(u=65535);const d=iO.matchPrefix(l.sdp,"a=max-message-size:");return d.length>0?u=parseInt(d[0].substring(19),10):n.browser==="firefox"&&c!==-1&&(u=2147483637),u},s=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,n.browser==="chrome"&&n.version>=76){const{sdpSemantics:c}=this.getConfiguration();c==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(r(arguments[0])){const c=i(arguments[0]),u=o(c),d=a(arguments[0],c);let f;u===0&&d===0?f=Number.POSITIVE_INFINITY:u===0||d===0?f=Math.max(u,d):f=Math.min(u,d);const p={};Object.defineProperty(p,"maxMessageSize",{get(){return f}}),this._sctp=p}return s.apply(this,arguments)}}function gF(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function n(i,o){const a=i.send;i.send=function(){const l=arguments[0],c=l.length||l.size||l.byteLength;if(i.readyState==="open"&&o.sctp&&c>o.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+o.sctp.maxMessageSize+" bytes)");return a.apply(i,arguments)}}const r=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const o=r.apply(this,arguments);return n(o,this),o},Hw(e,"datachannel",i=>(n(i.channel,i.target),i))}function ile(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype;Object.defineProperty(n,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(n,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(r){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),r&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=r)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(r=>{const i=n[r];n[r]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=o=>{const a=o.target;if(a._lastConnectionState!==a.connectionState){a._lastConnectionState=a.connectionState;const s=new Event("connectionstatechange",o);a.dispatchEvent(s)}return o},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),i.apply(this,arguments)}})}function ole(e,n){if(!e.RTCPeerConnection||n.browser==="chrome"&&n.version>=71||n.browser==="safari"&&n.version>=605)return;const r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(o){if(o&&o.sdp&&o.sdp.indexOf(`
|
||
a=extmap-allow-mixed`)!==-1){const a=o.sdp.split(`
|
||
`).filter(s=>s.trim()!=="a=extmap-allow-mixed").join(`
|
||
`);e.RTCSessionDescription&&o instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:o.type,sdp:a}):o.sdp=a}return r.apply(this,arguments)}}function mF(e,n){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const r=e.RTCPeerConnection.prototype.addIceCandidate;!r||r.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(n.browser==="chrome"&&n.version<78||n.browser==="firefox"&&n.version<68||n.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function vF(e,n){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const r=e.RTCPeerConnection.prototype.setLocalDescription;!r||r.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let o=arguments[0]||{};if(typeof o!="object"||o.type&&o.sdp)return r.apply(this,arguments);if(o={type:o.type,sdp:o.sdp},!o.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":o.type="offer";break;default:o.type="answer";break}return o.sdp||o.type!=="offer"&&o.type!=="answer"?r.apply(this,[o]):(o.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(s=>r.apply(this,[s]))})}const q0r=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:ole,shimAddIceCandidateNullOrEmpty:mF,shimConnectionState:ile,shimMaxMessageSize:hF,shimParameterlessSetLocalDescription:vF,shimRTCIceCandidate:pF,shimRTCIceCandidateRelayProtocol:rle,shimSendThrowTypeError:gF},Symbol.toStringTag,{value:"Module"}));function K0r({window:e}={},n={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const r=iut,i=G0r(e),o={browserDetails:i,commonShim:q0r,extractVersion:fF,disableLog:z0r,disableWarnings:V0r,sdp:Y0r};switch(i.browser){case"chrome":if(!M3e||!tle||!n.shimChrome)return r("Chrome shim is not included in this adapter release."),o;if(i.version===null)return r("Chrome shim can not determine version, not shimming."),o;r("adapter.js shimming chrome."),o.browserShim=M3e,mF(e,i),vF(e),aut(e,i),sut(e),tle(e,i),lut(e),fut(e,i),cut(e),uut(e),put(e,i),pF(e),rle(e),ile(e),hF(e,i),gF(e),ole(e,i);break;case"firefox":if(!P3e||!nle||!n.shimFirefox)return r("Firefox shim is not included in this adapter release."),o;r("adapter.js shimming firefox."),o.browserShim=P3e,mF(e,i),vF(e),hut(e,i),nle(e,i),gut(e),yut(e),mut(e),vut(e),_ut(e),but(e),Sut(e),Eut(e),Cut(e),pF(e),ile(e),hF(e,i),gF(e);break;case"safari":if(!A3e||!n.shimSafari)return r("Safari shim is not included in this adapter release."),o;r("adapter.js shimming safari."),o.browserShim=A3e,mF(e,i),vF(e),Iut(e),Mut(e),Tut(e),wut(e),xut(e),Nut(e),Out(e),Put(e),pF(e),rle(e),hF(e,i),gF(e),ole(e,i);break;default:r("Unsupported browser!");break}return o}const D3e=K0r({window:typeof window>"u"?void 0:window});function zw(e,n,r,i){Object.defineProperty(e,n,{get:r,set:i,enumerable:!0,configurable:!0})}class kut{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=n=>{const r=[],i=n.byteLength,o=Math.ceil(i/this.chunkedMTU);let a=0,s=0;for(;s<i;){const l=Math.min(i,s+this.chunkedMTU),c=n.slice(s,l),u={__peerData:this._dataCount,n:a,data:c,total:o};r.push(u),s=l,a++}return this._dataCount++,r}}}function X0r(e){let n=0;for(const o of e)n+=o.byteLength;const r=new Uint8Array(n);let i=0;for(const o of e)r.set(o,i),i+=o.byteLength;return r}const mee=D3e.default||D3e,YM=new class{isWebRTCSupported(){return typeof RTCPeerConnection<"u"}isBrowserSupported(){const e=this.getBrowser(),n=this.getVersion();return this.supportedBrowsers.includes(e)?e==="chrome"?n>=this.minChromeVersion:e==="firefox"?n>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&n>=this.minSafariVersion:!1:!1}getBrowser(){return mee.browserDetails.browser}getVersion(){return mee.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),n=mee.browserDetails.version||0;if(e==="chrome"&&n<this.minChromeVersion)return!1;if(e==="firefox"&&n>=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let r,i=!1;try{r=new RTCPeerConnection,r.addTransceiver("audio"),i=!0}catch{}finally{r&&r.close()}return i}toString(){return`Supports:
|
||
browser:${this.getBrowser()}
|
||
version:${this.getVersion()}
|
||
isIOS:${this.isIOS}
|
||
isWebRTCSupported:${this.isWebRTCSupported()}
|
||
isBrowserSupported:${this.isBrowserSupported()}
|
||
isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=typeof navigator<"u"?["iPad","iPhone","iPod"].includes(navigator.platform):!1,this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},Q0r=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),Lut=()=>Math.random().toString(36).slice(2),k3e={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"};class Z0r extends kut{noop(){}blobToArrayBuffer(n,r){const i=new FileReader;return i.onload=function(o){o.target&&r(o.target.result)},i.readAsArrayBuffer(n),i}binaryStringToArrayBuffer(n){const r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i)&255;return r.buffer}isSecure(){return location.protocol==="https:"}constructor(...n){super(...n),this.CLOUD_HOST="0.peerjs.com",this.CLOUD_PORT=443,this.chunkedBrowsers={Chrome:1,chrome:1},this.defaultConfig=k3e,this.browser=YM.getBrowser(),this.browserVersion=YM.getVersion(),this.pack=tut,this.unpack=eut,this.supports=function(){const r={browser:YM.isBrowserSupported(),webRTC:YM.isWebRTCSupported(),audioVideo:!1,data:!1,binaryBlob:!1,reliable:!1};if(!r.webRTC)return r;let i;try{i=new RTCPeerConnection(k3e),r.audioVideo=!0;let o;try{o=i.createDataChannel("_PEERJSTEST",{ordered:!0}),r.data=!0,r.reliable=!!o.ordered;try{o.binaryType="blob",r.binaryBlob=!YM.isIOS}catch{}}catch{}finally{o&&o.close()}}catch{}finally{i&&i.close()}return r}(),this.validateId=Q0r,this.randomToken=Lut}}const Ju=new Z0r,J0r="PeerJS: ";var L3e;(function(e){e[e.Disabled=0]="Disabled",e[e.Errors=1]="Errors",e[e.Warnings=2]="Warnings",e[e.All=3]="All"})(L3e||(L3e={}));class eSr{get logLevel(){return this._logLevel}set logLevel(n){this._logLevel=n}log(...n){this._logLevel>=3&&this._print(3,...n)}warn(...n){this._logLevel>=2&&this._print(2,...n)}error(...n){this._logLevel>=1&&this._print(1,...n)}setLogFunction(n){this._print=n}_print(n,...r){const i=[J0r,...r];for(const o in i)i[o]instanceof Error&&(i[o]="("+i[o].name+") "+i[o].message);n>=3?console.log(...i):n>=2?console.warn("WARNING",...i):n>=1&&console.error("ERROR",...i)}constructor(){this._logLevel=0}}var mr=new eSr,cye={},tSr=Object.prototype.hasOwnProperty,xu="~";function PD(){}Object.create&&(PD.prototype=Object.create(null),new PD().__proto__||(xu=!1));function nSr(e,n,r){this.fn=e,this.context=n,this.once=r||!1}function $ut(e,n,r,i,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new nSr(r,i||e,o),s=xu?xu+n:n;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}function yF(e,n){--e._eventsCount===0?e._events=new PD:delete e._events[n]}function qc(){this._events=new PD,this._eventsCount=0}qc.prototype.eventNames=function(){var n=[],r,i;if(this._eventsCount===0)return n;for(i in r=this._events)tSr.call(r,i)&&n.push(xu?i.slice(1):i);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(r)):n};qc.prototype.listeners=function(n){var r=xu?xu+n:n,i=this._events[r];if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s};qc.prototype.listenerCount=function(n){var r=xu?xu+n:n,i=this._events[r];return i?i.fn?1:i.length:0};qc.prototype.emit=function(n,r,i,o,a,s){var l=xu?xu+n:n;if(!this._events[l])return!1;var c=this._events[l],u=arguments.length,d,f;if(c.fn){switch(c.once&&this.removeListener(n,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,r),!0;case 3:return c.fn.call(c.context,r,i),!0;case 4:return c.fn.call(c.context,r,i,o),!0;case 5:return c.fn.call(c.context,r,i,o,a),!0;case 6:return c.fn.call(c.context,r,i,o,a,s),!0}for(f=1,d=new Array(u-1);f<u;f++)d[f-1]=arguments[f];c.fn.apply(c.context,d)}else{var p=c.length,h;for(f=0;f<p;f++)switch(c[f].once&&this.removeListener(n,c[f].fn,void 0,!0),u){case 1:c[f].fn.call(c[f].context);break;case 2:c[f].fn.call(c[f].context,r);break;case 3:c[f].fn.call(c[f].context,r,i);break;case 4:c[f].fn.call(c[f].context,r,i,o);break;default:if(!d)for(h=1,d=new Array(u-1);h<u;h++)d[h-1]=arguments[h];c[f].fn.apply(c[f].context,d)}}return!0};qc.prototype.on=function(n,r,i){return $ut(this,n,r,i,!1)};qc.prototype.once=function(n,r,i){return $ut(this,n,r,i,!0)};qc.prototype.removeListener=function(n,r,i,o){var a=xu?xu+n:n;if(!this._events[a])return this;if(!r)return yF(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!o||s.once)&&(!i||s.context===i)&&yF(this,a);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==r||o&&!s[l].once||i&&s[l].context!==i)&&c.push(s[l]);c.length?this._events[a]=c.length===1?c[0]:c:yF(this,a)}return this};qc.prototype.removeAllListeners=function(n){var r;return n?(r=xu?xu+n:n,this._events[r]&&yF(this,r)):(this._events=new PD,this._eventsCount=0),this};qc.prototype.off=qc.prototype.removeListener;qc.prototype.addListener=qc.prototype.on;qc.prefixed=xu;qc.EventEmitter=qc;cye=qc;var Vw={};zw(Vw,"ConnectionType",()=>Om);zw(Vw,"PeerErrorType",()=>ms);zw(Vw,"BaseConnectionErrorType",()=>AD);zw(Vw,"DataConnectionErrorType",()=>DD);zw(Vw,"SerializationType",()=>VR);zw(Vw,"SocketEventType",()=>pm);zw(Vw,"ServerMessageType",()=>Vl);var Om;(function(e){e.Data="data",e.Media="media"})(Om||(Om={}));var ms;(function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"})(ms||(ms={}));var AD;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(AD||(AD={}));var DD;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(DD||(DD={}));var VR;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(VR||(VR={}));var pm;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(pm||(pm={}));var Vl;(function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"})(Vl||(Vl={}));var uye={};uye=JSON.parse('{"name":"peerjs","version":"1.5.4","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu <michelle@michellebu.com>","afrokick <devbyru@gmail.com>","ericz <really.ez@gmail.com>","Jairo <kidandcat@gmail.com>","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana <jairo@galax.be>","Carlos Caballero <carlos.caballero.gonzalez@gmail.com>","hc <hheennrryy@gmail.com>","Muhammad Asif <capripio@gmail.com>","PrashoonB <prashoonbhattacharjee@gmail.com>","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski <aleksanderkotbury@gmail.com>","lmb <i@lmb.io>","Jairooo <jairocaro@msn.com>","Moritz Stückler <moritz.stueckler@gmail.com>","Simon <crydotsnakegithub@gmail.com>","Denis Lukov <denismassters@gmail.com>","Philipp Hancke <fippo@andyet.net>","Hans Oksendahl <hansoksendahl@gmail.com>","Jess <jessachandler@gmail.com>","khankuan <khankuan@gmail.com>","DUODVK <kurmanov.work@gmail.com>","XiZhao <kwang1imsa@gmail.com>","Matthias Lohr <matthias@lohr.me>","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt <aeckardt@outlook.com>","Chris Cowan <agentme49@gmail.com>","Alex Chuev <alex@chuev.com>","alxnull <alxnull@e.mail.de>","Yemel Jardi <angel.jardi@gmail.com>","Ben Parnell <benjaminparnell.94@gmail.com>","Benny Lichtner <bennlich@gmail.com>","fresheneesz <bitetrudpublic@gmail.com>","bob.barstead@exaptive.com <bob.barstead@exaptive.com>","chandika <chandika@gmail.com>","emersion <contact@emersion.fr>","Christopher Van <cvan@users.noreply.github.com>","eddieherm <edhermoso@gmail.com>","Eduardo Pinho <enet4mikeenet@gmail.com>","Evandro Zanatta <ezanatta@tray.net.br>","Gardner Bickford <gardner@users.noreply.github.com>","Gian Luca <gianluca.cecchi@cynny.com>","PatrickJS <github@gdi2290.com>","jonnyf <github@jonathanfoss.co.uk>","Hizkia Felix <hizkifw@gmail.com>","Hristo Oskov <hristo.oskov@gmail.com>","Isaac Madwed <i.madwed@gmail.com>","Ilya Konanykhin <ilya.konanykhin@gmail.com>","jasonbarry <jasbarry@me.com>","Jonathan Burke <jonathan.burke.1311@googlemail.com>","Josh Hamit <josh.hamit@gmail.com>","Jordan Austin <jrax86@gmail.com>","Joel Wetzell <jwetzell@yahoo.com>","xizhao <kevin.wang@cloudera.com>","Alberto Torres <kungfoobar@gmail.com>","Jonathan Mayol <mayoljonathan@gmail.com>","Jefferson Felix <me@jsfelix.dev>","Rolf Erik Lekang <me@rolflekang.com>","Kevin Mai-Husan Chia <mhchia@users.noreply.github.com>","Pepijn de Vos <pepijndevos@gmail.com>","JooYoung <qkdlql@naver.com>","Tobias Speicher <rootcommander@gmail.com>","Steve Blaurock <sblaurock@gmail.com>","Kyrylo Shegeda <shegeda@ualberta.ca>","Diwank Singh Tomer <singh@diwank.name>","Sören Balko <Soeren.Balko@gmail.com>","Arpit Solanki <solankiarpit1997@gmail.com>","Yuki Ito <yuki@gnnk.net>","Artur Zayats <zag2art@gmail.com>"],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","browser-minified-msgpack":"dist/serializer.msgpack.mjs","types":"dist/types.d.ts","engines":{"node":">= 14"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-minified-msgpack":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/MsgPack.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit && tsc -p e2e/tsconfig.json --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","coverage":"jest --coverage --collectCoverageFrom=\\"./lib/**\\"","format":"prettier --write .","format:check":"prettier --check .","semantic-release":"semantic-release","e2e":"wdio run e2e/wdio.local.conf.ts","e2e:bstack":"wdio run e2e/wdio.bstack.conf.ts"},"devDependencies":{"@parcel/config-default":"^2.9.3","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-tsc":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@swc/core":"^1.3.27","@swc/jest":"^0.2.24","@types/jasmine":"^4.3.4","@wdio/browserstack-service":"^8.11.2","@wdio/cli":"^8.11.2","@wdio/globals":"^8.11.2","@wdio/jasmine-framework":"^8.11.2","@wdio/local-runner":"^8.11.2","@wdio/spec-reporter":"^8.11.2","@wdio/types":"^8.10.4","http-server":"^14.1.1","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","mock-socket":"^9.0.0","parcel":"^2.9.3","prettier":"^3.0.0","semantic-release":"^21.0.0","ts-node":"^10.9.1","typescript":"^5.0.0","wdio-geckodriver-service":"^5.0.1"},"dependencies":{"@msgpack/msgpack":"^2.8.0","eventemitter3":"^4.0.7","peerjs-js-binarypack":"^2.1.0","webrtc-adapter":"^9.0.0"},"alias":{"process":false,"buffer":false}}');class rSr extends cye.EventEmitter{constructor(n,r,i,o,a,s=5e3){super(),this.pingInterval=s,this._disconnected=!0,this._messagesQueue=[];const l=n?"wss://":"ws://";this._baseUrl=l+r+":"+i+o+"peerjs?key="+a}start(n,r){this._id=n;const i=`${this._baseUrl}&id=${n}&token=${r}`;this._socket||!this._disconnected||(this._socket=new WebSocket(i+"&version="+uye.version),this._disconnected=!1,this._socket.onmessage=o=>{let a;try{a=JSON.parse(o.data),mr.log("Server message received:",a)}catch{mr.log("Invalid server message",o.data);return}this.emit(pm.Message,a)},this._socket.onclose=o=>{this._disconnected||(mr.log("Socket closed.",o),this._cleanup(),this._disconnected=!0,this.emit(pm.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),mr.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){mr.log("Cannot send heartbeat, because socket closed");return}const n=JSON.stringify({type:Vl.Heartbeat});this._socket.send(n),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const n=[...this._messagesQueue];this._messagesQueue=[];for(const r of n)this.send(r)}send(n){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(n);return}if(!n.type){this.emit(pm.Error,"Invalid message");return}if(!this._wsOpen())return;const r=JSON.stringify(n);this._socket.send(r)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}}class Fut{constructor(n){this.connection=n}startConnection(n){const r=this._startPeerConnection();if(this.connection.peerConnection=r,this.connection.type===Om.Media&&n._stream&&this._addTracksToConnection(n._stream,r),n.originator){const i=this.connection,o={ordered:!!n.reliable},a=r.createDataChannel(i.label,o);i._initializeDataChannel(a),this._makeOffer()}else this.handleSDP("OFFER",n.sdp)}_startPeerConnection(){mr.log("Creating RTCPeerConnection.");const n=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(n),n}_setupListeners(n){const r=this.connection.peer,i=this.connection.connectionId,o=this.connection.type,a=this.connection.provider;mr.log("Listening for ICE candidates."),n.onicecandidate=s=>{!s.candidate||!s.candidate.candidate||(mr.log(`Received ICE candidates for ${r}:`,s.candidate),a.socket.send({type:Vl.Candidate,payload:{candidate:s.candidate,type:o,connectionId:i},dst:r}))},n.oniceconnectionstatechange=()=>{switch(n.iceConnectionState){case"failed":mr.log("iceConnectionState is failed, closing connections to "+r),this.connection.emitError(AD.NegotiationFailed,"Negotiation of connection to "+r+" failed."),this.connection.close();break;case"closed":mr.log("iceConnectionState is closed, closing connections to "+r),this.connection.emitError(AD.ConnectionClosed,"Connection to "+r+" closed."),this.connection.close();break;case"disconnected":mr.log("iceConnectionState changed to disconnected on the connection with "+r);break;case"completed":n.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",n.iceConnectionState)},mr.log("Listening for data channel"),n.ondatachannel=s=>{mr.log("Received data channel");const l=s.channel;a.getConnection(r,i)._initializeDataChannel(l)},mr.log("Listening for remote stream"),n.ontrack=s=>{mr.log("Received remote stream");const l=s.streams[0],c=a.getConnection(r,i);if(c.type===Om.Media){const u=c;this._addStreamToMediaConnection(l,u)}}}cleanup(){mr.log("Cleaning up PeerConnection to "+this.connection.peer);const n=this.connection.peerConnection;if(!n)return;this.connection.peerConnection=null,n.onicecandidate=n.oniceconnectionstatechange=n.ondatachannel=n.ontrack=()=>{};const r=n.signalingState!=="closed";let i=!1;const o=this.connection.dataChannel;o&&(i=!!o.readyState&&o.readyState!=="closed"),(r||i)&&n.close()}async _makeOffer(){const n=this.connection.peerConnection,r=this.connection.provider;try{const i=await n.createOffer(this.connection.options.constraints);mr.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(i.sdp=this.connection.options.sdpTransform(i.sdp)||i.sdp);try{await n.setLocalDescription(i),mr.log("Set localDescription:",i,`for:${this.connection.peer}`);let o={sdp:i,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===Om.Data){const a=this.connection;o={...o,label:a.label,reliable:a.reliable,serialization:a.serialization}}r.socket.send({type:Vl.Offer,payload:o,dst:this.connection.peer})}catch(o){o!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(r.emitError(ms.WebRTC,o),mr.log("Failed to setLocalDescription, ",o))}}catch(i){r.emitError(ms.WebRTC,i),mr.log("Failed to createOffer, ",i)}}async _makeAnswer(){const n=this.connection.peerConnection,r=this.connection.provider;try{const i=await n.createAnswer();mr.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(i.sdp=this.connection.options.sdpTransform(i.sdp)||i.sdp);try{await n.setLocalDescription(i),mr.log("Set localDescription:",i,`for:${this.connection.peer}`),r.socket.send({type:Vl.Answer,payload:{sdp:i,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(o){r.emitError(ms.WebRTC,o),mr.log("Failed to setLocalDescription, ",o)}}catch(i){r.emitError(ms.WebRTC,i),mr.log("Failed to create answer, ",i)}}async handleSDP(n,r){r=new RTCSessionDescription(r);const i=this.connection.peerConnection,o=this.connection.provider;mr.log("Setting remote description",r);const a=this;try{await i.setRemoteDescription(r),mr.log(`Set remoteDescription:${n} for:${this.connection.peer}`),n==="OFFER"&&await a._makeAnswer()}catch(s){o.emitError(ms.WebRTC,s),mr.log("Failed to setRemoteDescription, ",s)}}async handleCandidate(n){mr.log("handleCandidate:",n);try{await this.connection.peerConnection.addIceCandidate(n),mr.log(`Added ICE candidate for:${this.connection.peer}`)}catch(r){this.connection.provider.emitError(ms.WebRTC,r),mr.log("Failed to handleCandidate, ",r)}}_addTracksToConnection(n,r){if(mr.log(`add tracks from stream ${n.id} to peer connection`),!r.addTrack)return mr.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");n.getTracks().forEach(i=>{r.addTrack(i,n)})}_addStreamToMediaConnection(n,r){mr.log(`add stream ${n.id} to media connection ${r.connectionId}`),r.addStream(n)}}class But extends cye.EventEmitter{emitError(n,r){mr.error("Error:",r),this.emit("error",new iSr(`${n}`,r))}}class iSr extends Error{constructor(n,r){typeof r=="string"?super(r):(super(),Object.assign(this,r)),this.type=n}}class jut extends But{get open(){return this._open}constructor(n,r,i){super(),this.peer=n,this.provider=r,this.options=i,this._open=!1,this.metadata=i.metadata}}var fle;const IP=class IP extends jut{get type(){return Om.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(n,r,i){super(n,r,i),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||IP.ID_PREFIX+Ju.randomToken(),this._negotiator=new Fut(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(n){this.dataChannel=n,this.dataChannel.onopen=()=>{mr.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{mr.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(n){mr.log("Receiving stream",n),this._remoteStream=n,super.emit("stream",n)}handleMessage(n){const r=n.type,i=n.payload;switch(n.type){case Vl.Answer:this._negotiator.handleSDP(r,i.sdp),this._open=!0;break;case Vl.Candidate:this._negotiator.handleCandidate(i.candidate);break;default:mr.warn(`Unrecognized message type:${r} from peer:${this.peer}`);break}}answer(n,r={}){if(this._localStream){mr.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=n,r&&r.sdpTransform&&(this.options.sdpTransform=r.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:n});const i=this.provider._getMessages(this.connectionId);for(const o of i)this.handleMessage(o);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}};fle=new WeakMap,Xn(IP,fle,IP.ID_PREFIX="mc_");let r7=IP;class oSr{constructor(n){this._options=n}_buildRequest(n){const r=this._options.secure?"https":"http",{host:i,port:o,path:a,key:s}=this._options,l=new URL(`${r}://${i}:${o}${a}${s}/${n}`);return l.searchParams.set("ts",`${Date.now()}${Math.random()}`),l.searchParams.set("version",uye.version),fetch(l.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const n=await this._buildRequest("id");if(n.status!==200)throw new Error(`Error. Status:${n.status}`);return n.text()}catch(n){mr.error("Error retrieving ID",n);let r="";throw this._options.path==="/"&&this._options.host!==Ju.CLOUD_HOST&&(r=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+r)}}async listAllPeers(){try{const n=await this._buildRequest("peers");if(n.status!==200){if(n.status===401){let r="";throw this._options.host===Ju.CLOUD_HOST?r="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":r="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+r)}throw new Error(`Error. Status:${n.status}`)}return n.json()}catch(n){throw mr.error("Error retrieving list peers",n),new Error("Could not get list peers from the server."+n)}}}var ple,hle;const qE=class qE extends jut{get type(){return Om.Data}constructor(n,r,i){super(n,r,i),this.connectionId=this.options.connectionId||qE.ID_PREFIX+Lut(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new Fut(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(n){this.dataChannel=n,this.dataChannel.onopen=()=>{mr.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=r=>{mr.log(`DC#${this.connectionId} dc onmessage:`,r.data)},this.dataChannel.onclose=()=>{mr.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(n){if(n!=null&&n.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(n,r=!1){if(!this.open){this.emitError(DD.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(n,r)}async handleMessage(n){const r=n.payload;switch(n.type){case Vl.Answer:await this._negotiator.handleSDP(n.type,r.sdp);break;case Vl.Candidate:await this._negotiator.handleCandidate(r.candidate);break;default:mr.warn("Unrecognized message type:",n.type,"from peer:",this.peer);break}}};ple=new WeakMap,hle=new WeakMap,Xn(qE,ple,qE.ID_PREFIX="dc_"),Xn(qE,hle,qE.MAX_BUFFERED_AMOUNT=8388608);let i7=qE;class dye extends i7{get bufferSize(){return this._bufferSize}_initializeDataChannel(n){super._initializeDataChannel(n),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",r=>this._handleDataMessage(r))}_bufferedSend(n){(this._buffering||!this._trySend(n))&&(this._buffer.push(n),this._bufferSize=this._buffer.length)}_trySend(n){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>i7.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(n)}catch(r){return mr.error(`DC#:${this.connectionId} Error when sending:`,r),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const n=this._buffer[0];this._trySend(n)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(n){if(n!=null&&n.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...n){super(...n),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class vee extends dye{close(n){super.close(n),this._chunkedData={}}constructor(n,r,i){super(n,r,i),this.chunker=new kut,this.serialization=VR.Binary,this._chunkedData={}}_handleDataMessage({data:n}){const r=eut(n),i=r.__peerData;if(i){if(i.type==="close"){this.close();return}this._handleChunk(r);return}this.emit("data",r)}_handleChunk(n){const r=n.__peerData,i=this._chunkedData[r]||{data:[],count:0,total:n.total};if(i.data[n.n]=new Uint8Array(n.data),i.count++,this._chunkedData[r]=i,i.total===i.count){delete this._chunkedData[r];const o=X0r(i.data);this._handleDataMessage({data:o})}}_send(n,r){const i=tut(n);if(i instanceof Promise)return this._send_blob(i);if(!r&&i.byteLength>this.chunker.chunkedMTU){this._sendChunks(i);return}this._bufferedSend(i)}async _send_blob(n){const r=await n;if(r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}_sendChunks(n){const r=this.chunker.chunk(n);mr.log(`DC#${this.connectionId} Try to send ${r.length} chunks...`);for(const i of r)this.send(i,!0)}}class aSr extends dye{_handleDataMessage({data:n}){super.emit("data",n)}_send(n,r){this._bufferedSend(n)}constructor(...n){super(...n),this.serialization=VR.None}}class sSr extends dye{_handleDataMessage({data:n}){const r=this.parse(this.decoder.decode(n)),i=r.__peerData;if(i&&i.type==="close"){this.close();return}this.emit("data",r)}_send(n,r){const i=this.encoder.encode(this.stringify(n));if(i.byteLength>=Ju.chunkedMTU){this.emitError(DD.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(i)}constructor(...n){super(...n),this.serialization=VR.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var gle;const NP=class NP extends But{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const n=Object.create(null);for(const[r,i]of this._connections)n[r]=i;return n}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(n,r){super(),this._serializers={raw:aSr,json:sSr,binary:vee,"binary-utf8":vee,default:vee},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let i;if(n&&n.constructor==Object?r=n:n&&(i=n.toString()),r={debug:0,host:Ju.CLOUD_HOST,port:Ju.CLOUD_PORT,path:"/",key:NP.DEFAULT_KEY,token:Ju.randomToken(),config:Ju.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...r},this._options=r,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==Ju.CLOUD_HOST?this._options.secure=Ju.isSecure():this._options.host==Ju.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&mr.setLogFunction(this._options.logFunction),mr.logLevel=this._options.debug||0,this._api=new oSr(r),this._socket=this._createServerConnection(),!Ju.supports.audioVideo&&!Ju.supports.data){this._delayedAbort(ms.BrowserIncompatible,"The current browser does not support WebRTC");return}if(i&&!Ju.validateId(i)){this._delayedAbort(ms.InvalidID,`ID "${i}" is invalid`);return}i?this._initialize(i):this._api.retrieveId().then(o=>this._initialize(o)).catch(o=>this._abort(ms.ServerError,o))}_createServerConnection(){const n=new rSr(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return n.on(pm.Message,r=>{this._handleMessage(r)}),n.on(pm.Error,r=>{this._abort(ms.SocketError,r)}),n.on(pm.Disconnected,()=>{this.disconnected||(this.emitError(ms.Network,"Lost connection to server."),this.disconnect())}),n.on(pm.Close,()=>{this.disconnected||this._abort(ms.SocketClosed,"Underlying socket is already closed.")}),n}_initialize(n){this._id=n,this.socket.start(n,this._options.token)}_handleMessage(n){const r=n.type,i=n.payload,o=n.src;switch(r){case Vl.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case Vl.Error:this._abort(ms.ServerError,i.msg);break;case Vl.IdTaken:this._abort(ms.UnavailableID,`ID "${this.id}" is taken`);break;case Vl.InvalidKey:this._abort(ms.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case Vl.Leave:mr.log(`Received leave message from ${o}`),this._cleanupPeer(o),this._connections.delete(o);break;case Vl.Expire:this.emitError(ms.PeerUnavailable,`Could not connect to peer ${o}`);break;case Vl.Offer:{const a=i.connectionId;let s=this.getConnection(o,a);if(s&&(s.close(),mr.warn(`Offer received for existing Connection ID:${a}`)),i.type===Om.Media){const c=new r7(o,this,{connectionId:a,_payload:i,metadata:i.metadata});s=c,this._addConnection(o,s),this.emit("call",c)}else if(i.type===Om.Data){const c=new this._serializers[i.serialization](o,this,{connectionId:a,_payload:i,metadata:i.metadata,label:i.label,serialization:i.serialization,reliable:i.reliable});s=c,this._addConnection(o,s),this.emit("connection",c)}else{mr.warn(`Received malformed connection type:${i.type}`);return}const l=this._getMessages(a);for(const c of l)s.handleMessage(c);break}default:{if(!i){mr.warn(`You received a malformed message from ${o} of type ${r}`);return}const a=i.connectionId,s=this.getConnection(o,a);s&&s.peerConnection?s.handleMessage(n):a?this._storeMessage(a,n):mr.warn("You received an unrecognized message:",n);break}}}_storeMessage(n,r){this._lostMessages.has(n)||this._lostMessages.set(n,[]),this._lostMessages.get(n).push(r)}_getMessages(n){const r=this._lostMessages.get(n);return r?(this._lostMessages.delete(n),r):[]}connect(n,r={}){if(r={serialization:"default",...r},this.disconnected){mr.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(ms.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const i=new this._serializers[r.serialization](n,this,r);return this._addConnection(n,i),i}call(n,r,i={}){if(this.disconnected){mr.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(ms.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!r){mr.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const o=new r7(n,this,{...i,_stream:r});return this._addConnection(n,o),o}_addConnection(n,r){mr.log(`add connection ${r.type}:${r.connectionId} to peerId:${n}`),this._connections.has(n)||this._connections.set(n,[]),this._connections.get(n).push(r)}_removeConnection(n){const r=this._connections.get(n.peer);if(r){const i=r.indexOf(n);i!==-1&&r.splice(i,1)}this._lostMessages.delete(n.connectionId)}getConnection(n,r){const i=this._connections.get(n);if(!i)return null;for(const o of i)if(o.connectionId===r)return o;return null}_delayedAbort(n,r){setTimeout(()=>{this._abort(n,r)},0)}_abort(n,r){mr.error("Aborting!"),this.emitError(n,r),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(mr.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const n of this._connections.keys())this._cleanupPeer(n),this._connections.delete(n);this.socket.removeAllListeners()}_cleanupPeer(n){const r=this._connections.get(n);if(r)for(const i of r)i.close()}disconnect(){if(this.disconnected)return;const n=this.id;mr.log(`Disconnect peer with ID:${n}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=n,this._id=null,this.emit("disconnected",n)}reconnect(){if(this.disconnected&&!this.destroyed)mr.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)mr.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(n=r=>{}){this._api.listAllPeers().then(r=>n(r)).catch(r=>this._abort(ms.ServerError,r))}};gle=new WeakMap,Xn(NP,gle,NP.DEFAULT_KEY="peerjs");let ale=NP,lSr="127.0.0.1",cSr=9e3,uSr="/";function dSr(){console.log("usePeer");const e=ws(s=>s.userInfo);let n=null,r=null;const i=s=>{r=n.connect(s),r.on("open",()=>{console.log("Connected to peer with ID:",s),r.send("hi!")})},o=s=>{r?(console.log("sending message:",s),r.send(s)):console.error("no connection to send message")},a=s=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(l=>{n.call(s,l).on("stream",u=>{})}).catch(l=>{console.error("Failed to get local stream",l)})};return m.useEffect(()=>{const s=new ale(e.uid,{host:lSr,port:cSr,path:uSr});console.log("Starting self peer with ID:",e.uid),s.on("open",function(){console.log("self peer opened!")}),s.on("connection",l=>{l.on("data",c=>{console.log("connection data:",c)}),l.on("open",()=>{l.send("connection data open!")})}),s.on("call",l=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(c=>{l.answer(c),l.on("stream",u=>{})}).catch(c=>{console.error("Failed to get local stream",c)})})},[e]),{peer:n,connectOtherPeer:i,sendMessage:o,callOtherPeer:a}}const fSr=()=>{const e=Fr(),[n,r]=m.useState("/chat"),i=Af(),{isLoggedIn:o,mode:a}=m.useContext(Xl),{footerStyle:s}=c_(),[l,c]=m.useState(!1),u=Ph(h=>h.threads);m.useEffect(()=>{const h=u.some(g=>g.unreadCount>0);c(h)},[u]);const d=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:N.jsx(ST,{}),component:N.jsx(Jse,{})}],[f,p]=m.useState(d);return $Xe(),LXe(),F0r(),dSr(),Epe(),m.useEffect(()=>{p(d)},[a]),m.useEffect(()=>(o&&i("/chat"),()=>{console.log("un - useEffect")}),[o]),N.jsxs(Pqe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:f},location:{pathname:n},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:h=>h.isMobile?[]:[N.jsx(WVt,{onClick:mqt},"QuestionCircleFilled")],menuHeaderRender:()=>N.jsx(kXe,{}),menuFooterRender:h=>{h!=null&&h.collapsed},onMenuHeaderClick:h=>{console.log("onMenuHeaderClick",h)},menuItemRender:(h,g)=>N.jsx(N.Fragment,{children:N.jsxs("a",{onClick:()=>{r(h.path),i(h.path)},children:[l&&N.jsxs(N.Fragment,{children:[h.path==="/anonymous/home"&&N.jsx(Qu,{size:"small",dot:l,offset:[-5,5],children:g}),h.path!=="/anonymous/home"&&g]}),!l&&N.jsx(N.Fragment,{children:g})]})}),children:[N.jsx(nz,{children:N.jsx(DU,{})}),N.jsx(rz,{style:s,children:N.jsx(DXe,{})}),N.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:pSr,Content:hSr}=bo,gSr=()=>{const{leftSiderStyle:e,leftSiderWidth:n,headerStyle:r,contentStyle:i}=c_();return N.jsx(N.Fragment,{children:N.jsxs(bo,{children:[N.jsx(pSr,{style:e,width:n}),N.jsxs(bo,{children:[N.jsx(Z8,{style:r,children:"setting"}),N.jsx(hSr,{style:i,children:"setting"})]})]})})};function mSr({children:e}){const{isLoggedIn:n}=m.useContext(Xl),r=_I();return n?e:N.jsx(aXt,{to:"/auth/login",replace:!0,state:{from:r}})}const $3e=[{path:"/",element:N.jsx(N.Fragment,{children:N.jsx(mSr,{children:N.jsx(m0r,{})})}),children:[{path:"/",element:N.jsx(Xoe,{})},{path:"/formbuilder",element:N.jsx(Xoe,{})},{path:"/flowbuilder",element:N.jsx(QZe,{})},{path:"/flowgram",element:N.jsx(Zct,{})},{path:"/form-view/:formId",element:N.jsx(Xpe,{})},{path:"/ticketbuilder",element:N.jsx(nrt,{})},{path:"/setting",element:N.jsx(NXe,{}),children:[{path:"/setting",element:N.jsx(O3e,{})},{path:"/setting/profile",element:N.jsx(O3e,{})},{path:"/setting/agentProfile",element:N.jsx(k0r,{})},{path:"/setting/memberProfile",element:N.jsx(O0r,{})},{path:"/setting/basic",element:N.jsx(E0r,{})},{path:"/setting/certification",element:N.jsx(A0r,{})},{path:"/setting/qrcode",element:N.jsx(C0r,{})},{path:"/setting/shortcut",element:N.jsx(w0r,{})}]}]},{path:"/auth",element:N.jsx(v0r,{}),children:[{path:"/auth",element:N.jsx(Boe,{isModel:!1})},{path:"/auth/login",element:N.jsx(Boe,{isModel:!1})},{path:"/auth/register",element:N.jsx(aRn,{})},{path:"/auth/server",element:N.jsx(qKe,{})}]},{path:"/anonymous",element:N.jsx(fSr,{}),children:[{path:"/anonymous",element:N.jsx(Jse,{})},{path:"/anonymous/home",element:N.jsx(Jse,{})},{path:"/anonymous/setting",element:N.jsx(gSr,{})}]},{path:"*",element:N.jsx(x0r,{})}];let sle;Yl?sle=hXt($3e,{future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}}):sle=pXt($3e,{basename:"/agenticflow",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const vSr=sle;var ySr=typeof Element<"u",_Sr=typeof Map=="function",bSr=typeof Set=="function",SSr=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function _F(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!_F(e[i],n[i]))return!1;return!0}var a;if(_Sr&&e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(a=e.entries();!(i=a.next()).done;)if(!n.has(i.value[0]))return!1;for(a=e.entries();!(i=a.next()).done;)if(!_F(i.value[1],n.get(i.value[0])))return!1;return!0}if(bSr&&e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(a=e.entries();!(i=a.next()).done;)if(!n.has(i.value[0]))return!1;return!0}if(SSr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(e[i]!==n[i])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof n.valueOf=="function")return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof n.toString=="function")return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;if(ySr&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((o[i]==="_owner"||o[i]==="__v"||o[i]==="__o")&&e.$$typeof)&&!_F(e[o[i]],n[o[i]]))return!1;return!0}return e!==e&&n!==n}var ESr=function(n,r){try{return _F(n,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const CSr=Or(ESr);var wSr=function(e,n,r,i,o,a,s,l){if(!e){var c;if(n===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,o,a,s,l],d=0;c=new Error(n.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},xSr=wSr;const F3e=Or(xSr);var Uut=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Uut||{}),yee={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},B3e=Object.values(Uut),fye={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},TSr=Object.entries(fye).reduce((e,[n,r])=>(e[r]=n,e),{}),Fh="data-rh",oO={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},aO=(e,n)=>{for(let r=e.length-1;r>=0;r-=1){const i=e[r];if(Object.prototype.hasOwnProperty.call(i,n))return i[n]}return null},OSr=e=>{let n=aO(e,"title");const r=aO(e,oO.TITLE_TEMPLATE);if(Array.isArray(n)&&(n=n.join("")),r&&n)return r.replace(/%s/g,()=>n);const i=aO(e,oO.DEFAULT_TITLE);return n||i||void 0},RSr=e=>aO(e,oO.ON_CHANGE_CLIENT_STATE)||(()=>{}),_ee=(e,n)=>n.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,i)=>({...r,...i}),{}),ISr=(e,n)=>n.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,i)=>{if(!r.length){const o=Object.keys(i);for(let a=0;a<o.length;a+=1){const l=o[a].toLowerCase();if(e.indexOf(l)!==-1&&i[l])return r.concat(i)}}return r},[]),NSr=e=>console&&typeof console.warn=="function"&&console.warn(e),qM=(e,n,r)=>{const i={};return r.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&NSr(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,a)=>{const s={};a.filter(c=>{let u;const d=Object.keys(c);for(let p=0;p<d.length;p+=1){const h=d[p],g=h.toLowerCase();n.indexOf(g)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(g==="rel"&&c[g].toLowerCase()==="stylesheet")&&(u=g),n.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(u=h)}if(!u||!c[u])return!1;const f=c[u].toLowerCase();return i[u]||(i[u]={}),s[u]||(s[u]={}),i[u][f]?!1:(s[u][f]=!0,!0)}).reverse().forEach(c=>o.push(c));const l=Object.keys(s);for(let c=0;c<l.length;c+=1){const u=l[c],d={...i[u],...s[u]};i[u]=d}return o},[]).reverse()},MSr=(e,n)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][n])return!0}return!1},PSr=e=>({baseTag:ISr(["href"],e),bodyAttributes:_ee("bodyAttributes",e),defer:aO(e,oO.DEFER),encode:aO(e,oO.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:_ee("htmlAttributes",e),linkTags:qM("link",["rel","href"],e),metaTags:qM("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:qM("noscript",["innerHTML"],e),onChangeClientState:RSr(e),scriptTags:qM("script",["src","innerHTML"],e),styleTags:qM("style",["cssText"],e),title:OSr(e),titleAttributes:_ee("titleAttributes",e),prioritizeSeoTags:MSr(e,oO.PRIORITIZE_SEO_TAGS)}),Hut=e=>Array.isArray(e)?e.join(""):e,ASr=(e,n)=>{const r=Object.keys(e);for(let i=0;i<r.length;i+=1)if(n[r[i]]&&n[r[i]].includes(e[r[i]]))return!0;return!1},bee=(e,n)=>Array.isArray(e)?e.reduce((r,i)=>(ASr(i,n)?r.priority.push(i):r.default.push(i),r),{priority:[],default:[]}):{default:e,priority:[]},j3e=(e,n)=>({...e,[n]:void 0}),DSr=["noscript","script","style"],lle=(e,n=!0)=>n===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),zut=e=>Object.keys(e).reduce((n,r)=>{const i=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return n?`${n} ${i}`:i},""),kSr=(e,n,r,i)=>{const o=zut(r),a=Hut(n);return o?`<${e} ${Fh}="true" ${o}>${lle(a,i)}</${e}>`:`<${e} ${Fh}="true">${lle(a,i)}</${e}>`},LSr=(e,n,r=!0)=>n.reduce((i,o)=>{const a=o,s=Object.keys(a).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const f=typeof a[d]>"u"?d:`${d}="${lle(a[d],r)}"`;return u?`${u} ${f}`:f},""),l=a.innerHTML||a.cssText||"",c=DSr.indexOf(e)===-1;return`${i}<${e} ${Fh}="true" ${s}${c?"/>":`>${l}</${e}>`}`},""),Vut=(e,n={})=>Object.keys(e).reduce((r,i)=>{const o=fye[i];return r[o||i]=e[i],r},n),$Sr=(e,n,r)=>{const i={key:n,[Fh]:!0},o=Vut(r,i);return[V.createElement("title",o,n)]},bF=(e,n)=>n.map((r,i)=>{const o={key:i,[Fh]:!0};return Object.keys(r).forEach(a=>{const l=fye[a]||a;if(l==="innerHTML"||l==="cssText"){const c=r.innerHTML||r.cssText;o.dangerouslySetInnerHTML={__html:c}}else o[l]=r[a]}),V.createElement(e,o)}),ep=(e,n,r=!0)=>{switch(e){case"title":return{toComponent:()=>$Sr(e,n.title,n.titleAttributes),toString:()=>kSr(e,n.title,n.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Vut(n),toString:()=>zut(n)};default:return{toComponent:()=>bF(e,n),toString:()=>LSr(e,n,r)}}},FSr=({metaTags:e,linkTags:n,scriptTags:r,encode:i})=>{const o=bee(e,yee.meta),a=bee(n,yee.link),s=bee(r,yee.script);return{priorityMethods:{toComponent:()=>[...bF("meta",o.priority),...bF("link",a.priority),...bF("script",s.priority)],toString:()=>`${ep("meta",o.priority,i)} ${ep("link",a.priority,i)} ${ep("script",s.priority,i)}`},metaTags:o.default,linkTags:a.default,scriptTags:s.default}},BSr=e=>{const{baseTag:n,bodyAttributes:r,encode:i=!0,htmlAttributes:o,noscriptTags:a,styleTags:s,title:l="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:f,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:h,linkTags:d,metaTags:f,scriptTags:p}=FSr(e)),{priority:h,base:ep("base",n,i),bodyAttributes:ep("bodyAttributes",r,i),htmlAttributes:ep("htmlAttributes",o,i),link:ep("link",d,i),meta:ep("meta",f,i),noscript:ep("noscript",a,i),script:ep("script",p,i),style:ep("style",s,i),title:ep("title",{title:l,titleAttributes:c},i)}},cle=BSr,w5=[],Gut=!!(typeof window<"u"&&window.document&&window.document.createElement),ule=class{constructor(e,n){$t(this,"instances",[]);$t(this,"canUseDOM",Gut);$t(this,"context");$t(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?w5:this.instances,add:e=>{(this.canUseDOM?w5:this.instances).push(e)},remove:e=>{const n=(this.canUseDOM?w5:this.instances).indexOf(e);(this.canUseDOM?w5:this.instances).splice(n,1)}}});this.context=e,this.canUseDOM=n||!1,n||(e.helmet=cle({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},jSr={},Wut=V.createContext(jSr),_1,Yut=(_1=class extends m.Component{constructor(r){super(r);$t(this,"helmetData");this.helmetData=new ule(this.props.context||{},_1.canUseDOM)}render(){return V.createElement(Wut.Provider,{value:this.helmetData.value},this.props.children)}},$t(_1,"canUseDOM",Gut),_1),qx=(e,n)=>{const r=document.head||document.querySelector("head"),i=r.querySelectorAll(`${e}[${Fh}]`),o=[].slice.call(i),a=[];let s;return n&&n.length&&n.forEach(l=>{const c=document.createElement(e);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const d=u,f=typeof l[d]>"u"?"":l[d];c.setAttribute(u,f)}c.setAttribute(Fh,"true"),o.some((u,d)=>(s=d,c.isEqualNode(u)))?o.splice(s,1):a.push(c)}),o.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),a.forEach(l=>r.appendChild(l)),{oldTags:o,newTags:a}},dle=(e,n)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const i=r.getAttribute(Fh),o=i?i.split(","):[],a=[...o],s=Object.keys(n);for(const l of s){const c=n[l]||"";r.getAttribute(l)!==c&&r.setAttribute(l,c),o.indexOf(l)===-1&&o.push(l);const u=a.indexOf(l);u!==-1&&a.splice(u,1)}for(let l=a.length-1;l>=0;l-=1)r.removeAttribute(a[l]);o.length===a.length?r.removeAttribute(Fh):r.getAttribute(Fh)!==s.join(",")&&r.setAttribute(Fh,s.join(","))},USr=(e,n)=>{typeof e<"u"&&document.title!==e&&(document.title=Hut(e)),dle("title",n)},U3e=(e,n)=>{const{baseTag:r,bodyAttributes:i,htmlAttributes:o,linkTags:a,metaTags:s,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:d,title:f,titleAttributes:p}=e;dle("body",i),dle("html",o),USr(f,p);const h={baseTag:qx("base",r),linkTags:qx("link",a),metaTags:qx("meta",s),noscriptTags:qx("noscript",l),scriptTags:qx("script",u),styleTags:qx("style",d)},g={},v={};Object.keys(h).forEach(y=>{const{newTags:_,oldTags:S}=h[y];_.length&&(g[y]=_),S.length&&(v[y]=h[y].oldTags)}),n&&n(),c(e,g,v)},KM=null,HSr=e=>{KM&&cancelAnimationFrame(KM),e.defer?KM=requestAnimationFrame(()=>{U3e(e,()=>{KM=null})}):(U3e(e),KM=null)},zSr=HSr,H3e=class extends m.Component{constructor(){super(...arguments);$t(this,"rendered",!1)}shouldComponentUpdate(n){return!Eir(n,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:n}=this.props.context;n.remove(this),this.emitChange()}emitChange(){const{helmetInstances:n,setHelmet:r}=this.props.context;let i=null;const o=PSr(n.get().map(a=>{const s={...a.props};return delete s.context,s}));Yut.canUseDOM?zSr(o):cle&&(i=cle(o)),r(i)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:n}=this.props.context;n.add(this),this.emitChange()}render(){return this.init(),null}},See,VSr=(See=class extends m.Component{shouldComponentUpdate(e){return!CSr(j3e(this.props,"helmetData"),j3e(e,"helmetData"))}mapNestedChildrenToProps(e,n){if(!n)return null;switch(e.type){case"script":case"noscript":return{innerHTML:n};case"style":return{cssText:n};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,n,r,i){return{...n,[e.type]:[...n[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,i)}]}}mapObjectTypeChildren(e,n,r,i){switch(e.type){case"title":return{...n,[e.type]:i,titleAttributes:{...r}};case"body":return{...n,bodyAttributes:{...r}};case"html":return{...n,htmlAttributes:{...r}};default:return{...n,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,n){let r={...n};return Object.keys(e).forEach(i=>{r={...r,[i]:e[i]}}),r}warnOnInvalidChildren(e,n){return F3e(B3e.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${B3e.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),F3e(!n||typeof n=="string"||Array.isArray(n)&&!n.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,n){let r={};return V.Children.forEach(e,i=>{if(!i||!i.props)return;const{children:o,...a}=i.props,s=Object.keys(a).reduce((c,u)=>(c[TSr[u]||u]=a[u],c),{});let{type:l}=i;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(i,o),l){case"Symbol(react.fragment)":n=this.mapChildrenToProps(o,n);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(i,r,s,o);break;default:n=this.mapObjectTypeChildren(i,n,s,o);break}}),this.mapArrayTypeChildrenToProps(r,n)}render(){const{children:e,...n}=this.props;let r={...n},{helmetData:i}=n;if(e&&(r=this.mapChildrenToProps(e,r)),i&&!(i instanceof ule)){const o=i;i=new ule(o.context,!0),delete r.helmetData}return i?V.createElement(H3e,{...r,context:i.value}):V.createElement(Wut.Consumer,null,o=>V.createElement(H3e,{...r,context:o}))}},$t(See,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),See);const GSr={i18_file_assistant:"文件助手",slogan:"重复工作自动化","menu.dashboard.chat":"消息","menu.dashboard.contact":"通讯录","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.mine":"我的","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"Copilot","chat.right.quickreply":"快捷回复","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服机器人(对外)",MARKETING:"营销机器人(对外)",KNOWLEDGEBASE:"知识库机器人(内部)",QA:"问答机器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"加载中",create:"创建",creating:"创建中...","create.success":"创建成功","create.fail":"创建失败",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失败",save:"保存",saving:"正在保存...",email:"邮箱","email.verified":"邮箱(已验证)","email.unverified":"邮箱(待验证)",mobile:"手机号","mobile.verified":"手机号(已验证)","mobile.unverified":"手机号(待验证)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登录用户名(修改用户名之后,需要重新登录)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"导入",export:"导出","download.template":"下载模板",open:"打开",copy:"复制","copy.success":"复制成功",ok:"确定",cancel:"取消",bind:"绑定",edit:"编辑",editing:"修改中...","edit.success":"修改成功","edit.fail":"修改失败",delete:"删除",deleting:"删除中...",deleteTip:"删除提示",deleteAffirm:"确定要删除","delete.success":"删除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"预览",close:"关闭",closing:"关闭中...",closeTip:"关闭提示",closeASure:"确定要关闭","close.success":"关闭成功",choose:"选择","leavemsg.enabled":"留言启用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"暂无客服在线"},WSr={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"聊天","menu.dashboard.contact":"联系人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"笔记","menu.dashboard.kbase":"知识库","menu.dashboard.mine":"设置","menu.dashboard.queue":"排队","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.settings":"设置","menu.settings.logout":"登出","menu.agent.status":"客服状态","menu.agent.status.available":"在线","menu.agent.status.rest":"小休","menu.agent.status.offline":"离线","menu.language":"语言","menu.mode":"模式","menu.mode.team":"团队模式","menu.mode.personal":"个人模式","menu.mode.agent":"客服模式","menu.agent.offline.warning":"请在离线前结束所有正在進行中的会话","menu.mode.personal.coming":"即将推出...","menu.dashboard.form":"表单","menu.dashboard.formbuilder":"表单构建器","menu.dashboard.flow":"流程","menu.dashboard.flowgram":"流程图","menu.dashboard.flowbuilder":"流程构建器","menu.dashboard.ticket":"工单","menu.dashboard.ticketbuilder":"工单构建器"},YSr={"pages.login.title":"登录","pages.login.subtitle":"欢迎使用微语客服系统","pages.login.accountLogin.tab":"账户密码登录","pages.login.accountLogin.errorMessage":"错误的用户名和密码","pages.login.failure":"登录失败,请检查用户名密码!","pages.login.failureCode":"验证错误","pages.login.success":"登录成功!","pages.login.username.placeholder":"请输入用户名","pages.login.username.required":"用户名是必填项!","pages.login.password.placeholder":"请输入密码","pages.login.repassword.placeholder":"确认密码","pages.login.password.required":"密码是必填项!","pages.login.repassword.required":"确认密码是必填项!","pages.login.phoneLogin.tab":"手机号登录","pages.login.phoneLogin.errorMessage":"验证码错误","pages.login.phoneNumber.placeholder":"请输入手机号!","pages.login.phoneNumber.required":"手机号是必填项!","pages.login.phoneNumber.invalid":"不合法的手机号!","pages.login.captcha.placeholder":"请输入验证码!","pages.login.captcha.required":"验证码是必填项!","pages.login.phoneLogin.getVerificationCode":"获取验证码","pages.login.anonymousLogin":"匿名登录","pages.getCaptchaSecondText":"秒后重新获取","pages.login.scanLogin.tab":"扫码登录","pages.login.rememberMe":"自动登录","pages.login.forgotPassword":"忘记密码","pages.login.submit":"登录","pages.login.loginWith":"其他登录方式 :","pages.login.register":"注册账号","pages.login.registerAccount":"注册账户","pages.login.auto.register":"未注册手机号会自动注册","pages.welcome.link":"欢迎使用","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"删除","pages.robot.upload":"上传","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知识库","pages.robot.tab.channel":"渠道对接","pages.robot.tab.statistic":"数据统计","pages.robot.tab.advanced":"高级设置","pages.robot.tab.flow":"流程设计","pages.robot.tab.avatar":"头像","pages.robot.tab.title":"标题","pages.robot.tab.welcomeTip":"欢迎语","pages.robot.tab.description":"简介","pages.robot.tab.preview":"实时预览","pages.robot.tab.website":"官网","pages.robot.tab.helpdesk":"帮助文档","pages.robot.tab.icp":"京ICP备案 17041763号-1","pages.robot.tab.police":"粤公安备案 44030502008688号","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"问答","pages.robot.kb.web":"网站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件类型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"删除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上传中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件内容","pages.setting":"设置","pages.logout":"退出登录","pages.footer.website":"微语官网","pages.footer.helpcenter":"帮助文档","pages.login.remember":"记住密码","pages.agent.tab.basic":"基本信息","pages.agent.robot":"机器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常见问题","pages.advanced.quickButton":"快捷按钮","pages.advanced.faqGuess":"智能推荐","pages.advanced.faqHot":"热门问题","pages.advanced.faqShortcut":"快捷回复","pages.advanced.rate":"满意度评价","pages.advanced.autoreply":"自动回复","pages.advanced.leaveMsg":"留言设置","pages.advanced.survey":"调查问卷","pages.advanced.history":"历史记录","pages.advanced.inputAssociation":"输入联想","pages.advanced.antiHarassment":"验证码设置","pages.advanced.captcha":"验证码设置","pages.advanced.showPreForm":"显示预览","pages.advanced.showHistory":"显示历史","pages.advanced.showInputAssociation":"显示输入联想","pages.advanced.showCaptcha":"显示验证码","pages.login.country.placeholder":"选择国家/地区","pages.login.country.china":"中国大陆","pages.login.country.hongkong":"中国香港","pages.login.country.taiwan":"中国台湾","pages.login.country.macao":"中国澳门","pages.login.country.japan":"日本","pages.login.country.korea":"韩国","pages.login.country.usa":"美国","pages.login.country.canada":"加拿大","pages.login.country.uk":"英国","pages.login.country.germany":"德国","pages.login.country.france":"法国","pages.login.country.australia":"澳大利亚","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"马来西亚","pages.login.country.thailand":"泰国","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律宾","pages.login.country.indonesia":"印度尼西亚","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄罗斯","pages.login.country.newzealand":"新西兰","pages.anonymous.title":"匿名模式","pages.anonymous.home":"首页","pages.anonymous.contact":"联系人","pages.anonymous.robot":"机器人","pages.anonymous.setting":"设置","pages.anonymous.welcome":"欢迎使用匿名模式","pages.anonymous.description":"您可以在此模式下匿名使用系统功能","block.title":"拉黑设置","block.type":"拉黑类型","block.user":"拉黑用户","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"请选择封禁结束时间","pages.register.title":"注册","pages.register.subtitle":"创建您的账号","pages.register.username":"用户名","pages.register.password":"密码","pages.register.confirm":"确认密码","pages.register.email":"邮箱","pages.register.mobile":"手机号","pages.register.code":"验证码","pages.register.agreement":"我已阅读并同意","pages.register.agreement.terms":"服务条款","pages.register.submit":"注册","pages.register.login":"使用已有账号登录","pages.404.title":"404","pages.404.subtitle":"抱歉,您访问的页面不存在","pages.404.description":"您可以尝试以下操作:","pages.404.actions.back":"返回上一页","pages.404.actions.home":"返回首页","pages.403.title":"403","pages.403.subtitle":"抱歉,您没有访问该页面的权限","pages.403.description":"请联系管理员获取权限","pages.403.actions.back":"返回上一页","pages.500.title":"500","pages.500.subtitle":"抱歉,服务器出错了","pages.500.description":"请稍后再试或联系技术支持","pages.500.actions.back":"返回上一页","pages.500.actions.home":"返回首页","pages.welcome.title":"欢迎","pages.welcome.description":"微语客服系统是一个开源的客服系统","pages.welcome.getting-started":"开始使用","pages.welcome.view-docs":"查看文档"},qSr={"app.title":"微语","app.logout":"登出","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取全部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题","app.name":"微语客服","app.description":"新一代智能客服系统","app.welcome":"欢迎使用微语客服系统","app.copyright":"© 2024 微语客服. 保留所有权利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"确认","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"编辑","app.action.delete":"删除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"设置","app.action.help":"帮助","app.tip.loading":"加载中...","app.tip.success":"操作成功","app.tip.error":"操作失败","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"确认要执行此操作吗?","app.tip.nodata":"暂无数据","app.tip.network.error":"网络连接失败","app.tip.server.error":"服务器错误","app.status.online":"在线","app.status.offline":"离线","app.status.busy":"忙碌","app.status.away":"离开","app.status.invisible":"隐身","app.status.disabled":"已禁用","app.status.expired":"已过期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"刚刚","app.time.minutes":"{count} 分钟前","app.time.hours":"{count} 小时前","app.time.days":"{count} 天前","app.file.upload":"上传文件","app.file.download":"下载文件","app.file.preview":"预览文件","app.file.size.limit":"文件大小不能超过 {size}","app.file.type.unsupported":"不支持的文件类型","app.file.upload.success":"上传成功","app.file.upload.failed":"上传失败","app.file.download.success":"下载成功","app.file.download.failed":"下载失败","app.layout.sidebar.collapse":"收起侧边栏","app.layout.sidebar.expand":"展开侧边栏","app.layout.header.profile":"个人中心","app.layout.header.logout":"退出登录","app.layout.footer.copyright":"版权所有","app.layout.footer.terms":"服务条款","app.layout.footer.privacy":"隐私政策"},KSr={"auth.login.title":"登录","auth.login.subtitle":"欢迎使用微语客服系统","auth.login.username":"用户名","auth.login.username.required":"请输入用户名","auth.login.password":"密码","auth.login.password.required":"请输入密码","auth.login.remember":"记住密码","auth.login.forgot":"忘记密码?","auth.login.submit":"登录","auth.login.other":"其他登录方式","auth.login.register":"注册账号","auth.login.success":"登录成功","auth.login.failed":"登录失败","auth.register.title":"注册","auth.register.subtitle":"创建新账号","auth.register.username":"用户名","auth.register.username.required":"请输入用户名","auth.register.email":"邮箱","auth.register.email.required":"请输入邮箱","auth.register.password":"密码","auth.register.password.required":"请输入密码","auth.register.confirm":"确认密码","auth.register.confirm.required":"请确认密码","auth.register.submit":"注册","auth.register.login":"已有账号?登录","auth.register.success":"注册成功","auth.register.failed":"注册失败","auth.forgot.title":"忘记密码","auth.forgot.subtitle":"重置密码","auth.forgot.email":"邮箱","auth.forgot.email.required":"请输入邮箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登录","auth.forgot.success":"重置密码邮件已发送","auth.forgot.failed":"重置密码失败","auth.reset.title":"重置密码","auth.reset.subtitle":"设置新密码","auth.reset.password":"新密码","auth.reset.password.required":"请输入新密码","auth.reset.confirm":"确认密码","auth.reset.confirm.required":"请确认新密码","auth.reset.submit":"提交","auth.reset.success":"密码重置成功","auth.reset.failed":"密码重置失败","auth.verify.code":"验证码","auth.verify.code.required":"请输入验证码","auth.verify.code.send":"发送验证码","auth.verify.code.resend":"重新发送","auth.verify.code.success":"验证码发送成功","auth.verify.code.failed":"验证码发送失败","auth.password.strength.weak":"密码强度:弱","auth.password.strength.medium":"密码强度:中","auth.password.strength.strong":"密码强度:强","auth.agreement.text":"我已阅读并同意","auth.agreement.terms":"服务条款","auth.agreement.privacy":"隐私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"帮助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢复默认云服务器","server.custom.enable":"启用自定义服务器","server.api.url.label":"API服务器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服务器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"请输入正确的服务器地址"},XSr={"chat.title":"会话","chat.empty":"暂无会话","chat.loading":"加载中...","chat.load.error":"加载失败","chat.load.more":"加载更多","chat.no.more":"没有更多了","chat.refresh":"刷新","chat.status.connecting":"连接中...","chat.status.connected":"已连接","chat.status.disconnected":"连接断开","chat.status.reconnecting":"重新连接中...","chat.network.error":"网络连接失败,请检查网络","chat.thread.closing":"结束会话中...","chat.thread.close.success":"结束会话成功","chat.thread.close.failed":"结束会话失败","chat.thread.close.confirm.title":"确定要结束会话?","chat.rate.invite.confirm.title":"确认要邀请评价?","chat.message.send.failed":"发送失败","chat.message.resend":"重新发送","chat.message.recall":"撤回消息","chat.message.copy.success":"复制成功","chat.copy.success":"复制成功","chat.menu.copy":"复制","chat.menu.translate":"翻译","chat.menu.recall":"撤回","chat.menu.enlarge":"放大阅读","chat.menu.quickreply.add":"添加快捷回复...","chat.menu.browser.open":"浏览器打开","chat.menu.forward":"转发...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.input.placeholder":"请输入内容, Ctrl+V 粘贴截图/图片","chat.translation.placeholder":"请输入翻译内容...","chat.input.send":"发送","chat.input.sending":"发送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截图","chat.toolbar.autoreply":"自动回复","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频会话","chat.toolbar.history":"历史","chat.toolbar.block":"拉黑","chat.toolbar.invite.rate":"邀请评价","chat.navbar.transfer":"转接","chat.navbar.close":"结束","chat.navbar.note":"笔记","chat.navbar.kbase":"知识库","chat.right.quickreply":"快捷回复","chat.right.userinfo":"访客信息","chat.right.ai":"AI助手","chat.right.ticket":"工单","chat.right.llm":"大模型","chat.right.group":"群组信息","chat.right.member":"成员信息","chat.right.docview":"文档查看","chat.upload.size.limit":"文件大小不能超过 {size}","chat.upload.type.unsupported":"不支持的文件类型","chat.upload.failed":"上传失败","chat.upload.success":"上传成功","chat.upload.progress":"上传中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"来电...","chat.webrtc.connected":"通话中...","chat.webrtc.ended":"通话结束","chat.webrtc.rejected":"对方拒绝","chat.webrtc.busy":"对方忙","chat.webrtc.failed":"通话失败","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒绝","chat.webrtc.hangup":"挂断","chat.group.notice":"群公告","chat.group.members":"群成员","chat.group.admins":"管理员","chat.group.robots":"机器人","chat.group.qrcode":"二维码","chat.group.uid.error":"群组ID错误"},QSr={"common.confirm":"确认","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"删除","common.edit":"编辑","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加载中...","common.success":"操作成功","common.failed":"操作失败","common.error":"错误","common.warning":"警告","common.info":"提示","common.yes":"是","common.no":"否","common.ok":"确定","common.create":"创建","common.status.online":"在线","common.status.offline":"离线","common.status.busy":"忙碌","common.status.away":"离开","common.status.invisible":"隐身","common.operation.success":"操作成功","common.operation.failed":"操作失败","common.operation.confirm":"确认要执行此操作吗?","common.operation.processing":"处理中...","common.operation.completed":"处理完成","common.operation.error":"处理出错","common.form.required":"此项为必填项","common.form.optional":"选填","common.form.invalid":"输入无效","common.form.validate.error":"表单验证失败","common.form.validate.success":"表单验证通过"},ZSr={"customer.list.title":"客户列表","customer.list.empty":"暂无客户","customer.list.loading":"加载中...","customer.list.load.error":"加载失败","customer.list.load.more":"加载更多","customer.list.no.more":"没有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"昵称","customer.info.gender":"性别","customer.info.age":"年龄","customer.info.birthday":"生日","customer.info.mobile":"手机号","customer.info.email":"邮箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"职位","customer.info.remark":"备注","customer.info.tags":"标签","customer.info.source":"来源","customer.info.created":"创建时间","customer.info.updated":"更新时间","customer.status.online":"在线","customer.status.offline":"离线","customer.status.away":"离开","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"编辑","customer.action.delete":"删除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"转移","customer.action.merge":"合并","customer.action.export":"导出","customer.form.name":"姓名","customer.form.name.required":"请输入姓名","customer.form.nickname":"昵称","customer.form.gender":"性别","customer.form.age":"年龄","customer.form.birthday":"生日","customer.form.mobile":"手机号","customer.form.email":"邮箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"职位","customer.form.remark":"备注","customer.form.tags":"标签","customer.form.source":"来源","customer.create.success":"客户创建成功","customer.create.failed":"客户创建失败","customer.update.success":"客户更新成功","customer.update.failed":"客户更新失败","customer.delete.success":"客户删除成功","customer.delete.failed":"客户删除失败","customer.block.success":"客户拉黑成功","customer.block.failed":"客户拉黑失败","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失败","customer.transfer.success":"客户转移成功","customer.transfer.failed":"客户转移失败","customer.merge.success":"客户合并成功","customer.merge.failed":"客户合并失败","customer.export.success":"客户导出成功","customer.export.failed":"客户导出失败","black.title":"拉黑设置","black.type":"拉黑类型","black.type.required":"请选择至少一种拉黑类型","black.user":"拉黑用户","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"请选择拉黑截至时间","black.reason":"拉黑原因","black.reason.required":"请输入拉黑原因","black.reason.placeholder":"请输入拉黑原因","black.success":"拉黑成功"},JSr={"dashboard.error.message":"获取数据失败","dashboard.init.organization":"初始化组织","dashboard.init.profile":"初始化个人信息","dashboard.init.workgroups":"初始化工作组","dashboard.init.agent":"初始化客服信息","dashboard.transfer.accept":"{nickname} 已接受转接","dashboard.transfer.reject":"{nickname} 已拒绝转接","dashboard.transfer.success":"转接请求已发送,等待对方响应"},eEr={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁体中文","i18n.queue.tip":"排队队列","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.queue.empty":"暂无排队用户","i18n.queue.accept":"接入","i18n.system.notification":"系统通知","i18n.old.password.wrong":"旧密码错误","i18n.change.password":"修改密码","i18n.auth.captcha.send.success":"验证码发送成功","i18n.auth.captcha.error":"验证码错误","i18n.auth.captcha.expired":"验证码过期","i18n.auth.captcha.already.send":"验证码已经发送,请等待","i18n.auth.captcha.validate.failed":"验证码验证失败","i18n.faq":"常见问题","i18n.rate":"评价","i18n.input.placeholder":"请输入内容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在输入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀请评价","i18n.ticket":"[工单]","i18n.notice":"通知","i18n.notice.title":"标题","i18n.notice.content":"内容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理员","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技术部","i18n.DEPT.MONEY":"财务部","i18n.DEPT.MARKETING":"市场部","i18n.DEPT.SALES":"销售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"图片","i18n.thread.content.file":"文件","i18n.top.tip":"默认置顶语","i18n.top.make":"置顶","i18n.top.cancel":"取消置顶","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"无客服在线,请留言","i18n.welcome.tip":"您好,有什么可以帮您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"开发中...","i18n.user.description":"默认用户描述","i18n.robot.nickname":"默认机器人","i18n.robot.description":"默认机器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一个聪明、对人类有帮助的人工智能,你可以对人类提出的问题给出有用、详细、礼貌的回答","i18n.agent.nickname":"默认客服","i18n.agent.description":"默认客服描述","i18n.workgroup.nickname":"默认技能组","i18n.workgroup.description":"默认技能组描述","i18n.contact":"询问联系方式","i18n.thanks":"感谢","i18n.welcome":"问候","i18n.bye":"告别","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开","i18n.tip.network.connected":"网络已连接","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的话请您提供一下您的联系电话","i18n.contact.content":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.thanks.title":"感谢光临","i18n.thanks.content":"感谢光临,欢迎再来","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什么可以帮您的","i18n.bye.title":"您的满意一直是我们的目标","i18n.bye.content":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.vip.api":"VIP接口,暂无权限,请联系:weiyuai.cn","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.online.chat":"在线客服","i18n.JOB":"工作","i18n.LANGUAGE":"语言","i18n.TOOL":"工具","i18n.WRITING":"写作","i18n.RAG":"知识库问答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工单","i18n.black.user.already.exists":"用户已拉黑","i18n.ticket.category.technical_support":"技术支持","i18n.ticket.category.service_request":"服务请求","i18n.ticket.category.consultation":"咨询","i18n.ticket.category.complaint_suggestion":"投诉建议","i18n.ticket.category.operation_maintenance":"运维","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP组件, 联系我们了解更多详情","i18n.vip.contactUs":"联系我们","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name":"工单流程","i18n.thread.process.name":"会话流程","flowgram.title":"流程图表","flowgram.create":"创建","flowgram.import":"导入","flowgram.export":"导出","flowgram.save":"保存","flowgram.create.info":"创建新流程功能开发中","flowgram.import.info":"导入流程功能开发中","flowgram.export.info":"导出流程功能开发中","flowgram.save.info":"保存流程功能开发中","flowgram.select.flow":"选择流程","flowgram.no.flow":"暂无流程"},tEr={"message.type.text":"文本消息","message.type.image":"图片消息","message.type.file":"文件消息","message.type.voice":"语音消息","message.type.video":"视频消息","message.type.location":"位置消息","message.type.link":"链接消息","message.type.card":"卡片消息","message.type.system":"系统消息","message.type.notification":"通知消息","message.type.custom":"自定义消息","message.status.sending":"发送中","message.status.sent":"已发送","message.status.delivered":"已送达","message.status.read":"已读","message.status.failed":"发送失败","message.status.recalled":"已撤回","message.status.deleted":"已删除","message.action.send":"发送","message.action.recall":"撤回","message.action.delete":"删除","message.action.resend":"重新发送","message.action.forward":"转发","message.action.quote":"引用","message.action.copy":"复制","message.action.translate":"翻译","message.action.download":"下载","message.action.preview":"预览","message.tip.sending":"消息发送中...","message.tip.sent":"消息已发送","message.tip.delivered":"消息已送达","message.tip.read":"消息已读","message.tip.failed":"消息发送失败","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已删除","message.tip.copy.success":"复制成功","message.tip.download.start":"开始下载...","message.tip.download.success":"下载成功","message.tip.download.failed":"下载失败","message.input.placeholder":"请输入消息","message.input.send.button":"发送","message.input.emoji.button":"表情","message.input.image.button":"图片","message.input.file.button":"文件","message.input.voice.button":"语音","message.input.video.button":"视频","message.input.location.button":"位置","message.list.load.more":"加载更多","message.list.loading":"加载中...","message.list.no.more":"没有更多消息","message.list.empty":"暂无消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相关消息","message.time.just":"刚刚","message.time.minutes":"{count}分钟前","message.time.hours":"{count}小时前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}个月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超过 {size}","message.file.type.unsupported":"不支持的文件类型","message.file.uploading":"上传中...","message.file.download":"下载文件","message.file.preview":"预览文件","message.image.loading":"图片加载中","message.image.load.error":"图片加载失败","message.image.save":"保存图片","message.image.save.success":"图片保存成功","message.image.save.failed":"图片保存失败","quickreply.search.placeholder":"搜索","quickreply.button.send":"发送","quickreply.button.copy":"复制","quickreply.button.create.category":"创建分类","quickreply.button.create.reply":"创建快捷回复","quickreply.copy.success":"{content} 已复制到剪贴板","category.form.edit.title":"编辑分类","category.form.create.title":"创建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!","category.form.name.placeholder":"输入分类名称","category.create.failed":"创建分类失败","quickreply.drawer.title":"快捷回复","quickreply.form.category":"分类","quickreply.form.category.required":"请选择分类","quickreply.form.category.placeholder":"选择分类","quickreply.form.type":"类型","quickreply.form.type.required":"请选择类型","quickreply.form.type.placeholder":"选择类型","quickreply.form.title":"标题","quickreply.form.title.required":"请输入标题","quickreply.form.content":"内容","quickreply.type.text":"文本","quickreply.type.image":"图片","quickreply.type.video":"视频","quickreply.type.audio":"音频","quickreply.type.file":"文件","quickreply.upload.text":"点击或拖拽文件上传","quickreply.upload.success":"{filename} 上传成功","quickreply.upload.error":"{filename} 上传失败","quickreply.upload.uploading":"{filename} 上传中","quickreply.form.validate.error":"请检查表单"},nEr={"profile.update.success":"个人信息更新成功","profile.form.avatar":"头像","profile.form.upload":"上传","profile.form.username":"用户名","profile.form.nickname":"昵称","profile.form.description":"描述","profile.button.change.password":"修改密码","profile.button.change.email":"修改邮箱","profile.button.change.mobile":"修改手机号","profile.email.verified":"邮箱已验证","profile.email.unverified":"邮箱未验证","profile.mobile.verified":"手机已验证","profile.mobile.unverified":"手机未验证","profile.email.change.title":"修改邮箱","profile.email.placeholder":"请输入邮箱地址","profile.email.required":"请输入邮箱地址!","profile.email.format.invalid":"邮箱格式不正确","profile.email.length.limit":"邮箱不得超过50字符","profile.email.verification.code.placeholder":"请输入验证码","profile.email.verification.code.countdown":"秒后重新获取","profile.email.verification.code.get":"获取验证码","profile.email.verification.code.required":"请输入验证码!","profile.email.not.changed":"邮箱未更改!","profile.email.change.success":"邮箱修改成功!","profile.email.format.error":"邮箱格式错误","profile.mobile.change.title":"修改手机号","profile.mobile.placeholder":"请输入手机号","profile.mobile.required":"请输入手机号!","profile.mobile.format.invalid":"手机号格式错误!","profile.mobile.verification.code.placeholder":"请输入验证码","profile.mobile.verification.code.countdown":"秒后重新获取","profile.mobile.verification.code.get":"获取验证码","profile.mobile.verification.code.required":"请输入验证码!","profile.mobile.not.changed":"手机号未更改!","profile.mobile.change.success":"手机号修改成功!","profile.mobile.format.error":"手机号格式错误","profile.password.change.title":"修改密码","profile.password.old":"原密码","profile.password.old.empty":"手机号直接登录用户,可以留空","profile.password.new":"新密码","profile.password.confirm":"确认密码","profile.password.length.error":"密码最小长度不能小于6","profile.password.mismatch":"两次输入密码不一致","profile.password.change.success":"密码修改成功!"},rEr={"setting.menu.title":"设置","setting.menu.profile":"个人信息","setting.menu.basic":"基本设置","setting.menu.agent":"客服设置","setting.menu.model":"大模型","setting.menu.certification":"实名认证","setting.menu.qrcode":"二维码","setting.menu.shortcut":"快捷键","setting.menu.click":"菜单点击","setting.save.success":"设置保存成功","setting.save.error":"设置保存失败","setting.load.error":"设置加载失败","setting.header.profile":"个人信息","setting.header.basic":"基本设置","setting.header.agent":"客服设置","setting.header.model":"大模型设置","setting.basic.sound.on":"已开启消息提示音","setting.basic.sound.off":"已关闭消息提示音","setting.basic.notification.on":"已开启网络状态通知","setting.basic.notification.off":"已关闭网络状态通知","setting.basic.connection.status":"长链接状态:","setting.basic.connection.connected":"✅连接正常","setting.basic.connection.disconnected":"❌连接断开","setting.basic.startup":"开机启动:","setting.basic.startup.on":"开机启动","setting.basic.startup.off":"不开机启动","setting.basic.theme":"颜色主题:","setting.basic.language":"语言设置:","setting.basic.mode":"模式设置:","setting.basic.mode.team":"团队模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"个人模式"},iEr={"thread.error.message":"获取数据失败","thread.feature.unavailable":"TODO: 该功能暂未开放","thread.menu.top":"置顶","thread.menu.untop":"取消置顶","thread.menu.read":"标记已读","thread.menu.unread":"标记未读","thread.menu.mute":"静音","thread.menu.unmute":"取消静音","thread.menu.transfer":"转接","thread.menu.block":"拉黑","thread.menu.ticket":"创建工单","thread.menu.crm":"查看CRM","thread.menu.summary":"会话总结","thread.status.robot":"[机器人]","thread.status.agent":"[一对一]","thread.status.workgroup":"[工作组]","thread.search.placeholder":"搜索会话...","thread.menu.filter":"会话过滤","thread.menu.groupThread":"群聊会话","thread.menu.robotThread":"机器人会话","thread.menu.workgroupThread":"工作组会话","thread.menu.agentThread":"一对一会话","thread.menu.ticketThread":"工单会话","thread.menu.memberThread":"同事会话","thread.menu.deviceThread":"设备会话","thread.menu.systemThread":"系统会话","thread.dropdown.create.group":"创建群聊","thread.dropdown.create.ai":"创建AI对话","thread.agent.status.online":"😀 - 在线接待","thread.agent.status.offline":"🔻 - 客服下线","thread.agent.status.busy":"🏃♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 松开刷新","thread.list.no.more":"没有更多了","thread.coming.soon":"即将上线,敬请期待","thread.set.success":"设置成功","thread.set.error":"设置失败","thread.menu.star":"星标","thread.menu.star.1":"星标1","thread.menu.star.2":"星标2","thread.menu.star.3":"星标3","thread.menu.star.4":"星标4","thread.menu.hide":"隐藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下线","thread.status.busy":"🏃♀️忙碌","thread.status.loading":"加载中...","thread.status.empty":"暂无会话","thread.status.error":"加载会话失败","thread.status.queue":"排队({count})","thread.status.network.offline":"网络已断开","thread.status.network.online":"网络已连接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暂无消息","thread.status.message.error":"加载消息失败","thread.status.message.end":"没有更多消息","thread.status.message.typing":"正在输入...","thread.status.message.transfer":"转接中...","thread.status.message.transferred":"已转接","thread.status.message.closed":"会话已关闭","thread.menu.star.cancel":"取消星标","thread.loading.more":"加载更多..."},oEr={"ticket.create.title":"创建工单","ticket.edit.title":"编辑工单","ticket.form.uid":"编号","ticket.form.title":"标题","ticket.form.title.required":"请输入工单标题","ticket.form.title.placeholder":"请输入工单标题","ticket.form.description":"描述","ticket.form.description.required":"请输入工单描述","ticket.form.description.placeholder":"请输入工单描述","ticket.form.status":"状态","ticket.form.status.required":"请选择工单状态","ticket.form.priority":"优先级","ticket.form.priority.required":"请选择优先级","ticket.form.category":"分类","ticket.form.category.required":"请选择工单分类","ticket.form.category.placeholder":"请选择工单分类","ticket.form.user":"客户","ticket.form.user.placeholder":"请选择客户","ticket.form.assignee":"处理人","ticket.form.assignee.placeholder":"请选择处理人","ticket.form.reporter":"报告人","ticket.form.reporter.placeholder":"请选择报告人","ticket.form.workgroup":"技能组","ticket.form.workgroup.required":"请选择技能组","ticket.form.workgroup.placeholder":"请选择技能组","ticket.workgroup.load.error":"加载技能组失败","ticket.status.all":"全部状态","ticket.status.new":"新建","ticket.status.assigned":"已分配","ticket.status.in_progress":"处理中","ticket.status.pending":"待处理","ticket.status.on_hold":"挂起","ticket.status.reopened":"重新打开","ticket.status.resolved":"已解决","ticket.status.closed":"已关闭","ticket.status.cancelled":"已取消","ticket.priority.all":"全部优先级","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"紧急","ticket.priority.critical":"严重","ticket.create.success":"工单创建成功","ticket.create.failed":"工单创建失败","ticket.update.success":"工单更新成功","ticket.update.failed":"工单更新失败","ticket.submit.error":"工单提交失败","ticket.delete.success":"工单删除成功","ticket.delete.error":"工单删除失败","ticket.load.error":"工单数据加载失败","ticket.list.title":"工单列表","ticket.list.empty":"暂无工单","ticket.list.search.placeholder":"搜索工单","ticket.list.filter.all":"全部工单","ticket.list.filter.my":"我的工单","ticket.list.filter.unassigned":"未分配","ticket.list.create":"创建工单","ticket.list.total":"工单总数","ticket.action.edit":"编辑","ticket.action.delete":"删除","ticket.action.assign":"分配","ticket.action.close":"关闭","ticket.action.reopen":"重新打开","ticket.delete.confirm":"确定要删除此工单吗?","ticket.category.load.error":"加载工单分类失败","ticket.conversation.title":"工单对话","ticket.conversation.empty":"请选择工单查看对话","ticket.conversation.input.placeholder":"请输入消息...","ticket.details.title":"工单详情","ticket.details.empty":"请选择工单查看详情","ticket.messages.load.error":"加载工单消息失败","ticket.message.send.error":"发送消息失败","ticket.form.thread":"关联会话","ticket.form.thread.placeholder":"选择关联会话","ticket.form.thread.none":"不关联","ticket.form.createdAt":"创建时间","ticket.form.updatedAt":"更新时间","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能组","ticket.assignee":"处理人","ticket.reporter":"报告人","ticket.type":"类型","ticket.category":"分类","ticket.steps.title":"流转过程","ticket.form.upload.button":"上传附件","ticket.upload.success":"文件上传成功","ticket.upload.failed":"文件上传失败","ticket.current.filters":"当前筛选","ticket.filter.by.status":"按状态筛选","ticket.filter.by.priority":"按优先级筛选","ticket.filter.by.assignment":"按分配筛选","ticket.filter.by.time":"按时间筛选","ticket.filter.status_all":"全部状态","ticket.filter.status_new":"新建","ticket.filter.status_assigned":"已分配","ticket.filter.status_in_progress":"处理中","ticket.filter.status_pending":"待处理","ticket.filter.status_on_hold":"挂起","ticket.filter.status_reopened":"重新打开","ticket.filter.status_resolved":"已解决","ticket.filter.status_closed":"已关闭","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部优先级","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"紧急","ticket.filter.priority_critical":"严重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工单","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能组","ticket.filter.assignment_my_created":"我创建的","ticket.filter.assignment_my_assigned":"待我处理","ticket.filter.time_all":"全部时间","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本周","ticket.filter.time_last_week":"上周","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工单","ticket.content.number":"编号","ticket.delete.title":"删除工单","ticket.delete.content":"确定要删除此工单吗?","ticket.delete.failed":"工单删除失败","ticket.loading":"加载工单...","ticket.empty":"暂无工单","ticket.palette.startEvent":"开始事件","ticket.palette.task":"任务","ticket.palette.gateway":"网关","ticket.palette.dataObject":"数据对象","ticket.create.error":"创建流程图失败","ticket.save.success":"流程图保存成功","ticket.autosave.success":"自动保存成功","ticket.autosave.error":"自动保存失败","ticket.select.process":"选择流程","ticket.properties.title":"属性","ticket.properties.noSelection":"未选择元素","ticket.properties.id":"ID","ticket.properties.name":"名称","ticket.properties.type":"类型","ticket.properties.documentation":"文档","ticket.properties.assignee":"处理人","ticket.properties.priority":"优先级","ticket.fetch.processes.error":"加载流程失败","ticket.no.process":"没有流程,请先创建一个流程","ticket.fetch.processes.empty":"没有流程,请先创建一个流程","ticket.create.loading":"创建流程...","ticket.fetch.processes.loading":"加载流程...","ticket.delete":"删除","ticket.save.error":"保存流程失败","ticket.deploy":"部署","ticket.undeploy":"取消部署","ticket.deploy.loading":"部署流程...","ticket.undeploy.loading":"取消部署流程...","ticket.deploy.success":"流程部署成功","ticket.undeploy.success":"流程取消部署成功","ticket.deploy.error":"部署流程失败","ticket.undeploy.error":"取消部署流程失败","ticket.undeploy.confirm.title":"取消部署确认","ticket.undeploy.confirm.content":"确定要取消部署此流程吗?"},aEr={"contact.list.new":"新朋友","contact.list.device":"内网设备","contact.list.group":"群聊","contact.list.channel":"频道","contact.list.company":"企业联系人","contact.list.friend":"联系人","contact.search.placeholder":"搜索联系人...","contact.manager.button":"通讯录管理","contact.manager.coming":"敬请期待","member.detail.nickname":"昵称","member.detail.jobno":"工号","member.detail.seatno":"座位号","member.detail.telephone":"电话","member.detail.loading":"加载中...","member.detail.chat.button":"开始聊天"},sEr={"group.create.title":"发起群聊","group.create.contacts":"好友","group.create.members":"群成员","group.create.members.min":"至少选择2名成员","group.create.creating":"创建群组中...","group.create.org.empty":"未选择组织","group.create.success":"创建群组成功","group.create.failed":"创建群组失败","group.create.loading":"加载成员中...","group.create.error":"加载成员失败"},lEr={"robot.create.title":"创建机器人","robot.create.available":"可选机器人","robot.create.selected":"已选机器人","robot.create.success":"创建机器人成功","robot.create.failed":"创建机器人失败","robot.create.loading":"创建机器人中...","robot.create.error":"加载机器人失败","robot.create.empty":"暂无可用机器人","robot.create.min":"请至少选择一个机器人"},cEr={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},uEr={"upload.modal.title":"上传文件","upload.drag.text":"点击或拖拽文件至此处上传","upload.drag.hint":"支持单个或批量上传","upload.drag.hint.size":"支持单个或批量上传,文件大小不超过10MB","upload.drag.hint.withtype":"支持单个或批量上传 {acceptTypes} 格式的文件","upload.drag.hint.withtype.size":"支持单个或批量上传 {acceptTypes} 格式的文件,文件大小不超过10MB","upload.uploading":"{filename} 上传中...","upload.success":"{filename} 上传成功","upload.failed":"{filename} 上传失败","upload.delete.confirm":"确定要删除此文件吗?","upload.preview.image":"图片预览","upload.preview.file":"文件预览","upload.button.ok":"确定","upload.button.cancel":"取消","upload.maxCount":"最多只能上传 {maxCount} 个文件","upload.maxSize":"文件大小不能超过 {maxSize}MB"},dEr={"flow.title":"流程构建器","flow.new":"新流程","flow.copy":"复制","flow.run":"运行","flow.start":"开始","flow.logic":"逻辑","flow.action":"动作","flow.json":"流程JSON","flow.import":"导入","flow.export":"导出","flow.startChat":"模拟对话","flow.closeChat":"关闭对话","flow.container":"容器组件","flow.form":"表单组件","flow.parentNode":"父节点","flow.textField":"文本框","flow.numberField":"数字框","flow.datePicker":"日期选择","flow.select":"下拉选择","flow.checkbox":"多选框组","flow.radio":"单选按钮","flow.properties":"属性设置","flow.nodeName":"节点名称","flow.nodeDesc":"节点描述","flow.componentType":"组件类型","flow.labelName":"标签名称","flow.options":"选项","flow.preview":"预览","flow.submit":"提交","app.language":"语言","leftPanel.container":"容器组件","leftPanel.form":"表单组件","leftPanel.parentNode":"父节点","leftPanel.textField":"文本框","leftPanel.numberField":"数字框","leftPanel.datePicker":"日期选择","leftPanel.select":"下拉选择","leftPanel.checkbox":"多选框组","leftPanel.radio":"单选按钮","propertyPanel.settings":"属性设置","propertyPanel.nodeId":"节点ID","propertyPanel.nodeType":"节点类型","propertyPanel.nodeName":"节点名称","propertyPanel.nodeDesc":"节点描述","propertyPanel.componentType":"组件类型","propertyPanel.labelName":"标签名称","propertyPanel.options":"选项","propertyPanel.placeholder.name":"请输入节点名称","propertyPanel.placeholder.desc":"请输入节点描述","propertyPanel.placeholder.label":"请输入标签名称","propertyPanel.placeholder.options":"按回车添加选项","nodes.textField.label":"文本框","nodes.numberField.label":"数字框","nodes.datePicker.label":"日期","nodes.select.label":"下拉选择","nodes.checkbox.label":"多选框组","nodes.radio.label":"单选按钮","nodes.unknown":"未知组件","formBuilder.title":"表单构建器","formBuilder.preview":"预览","formBuilder.settings":"设置","formBuilder.addField":"添加字段","formBuilder.delete":"删除","formBuilder.moveUp":"上移","formBuilder.moveDown":"下移","formBuilder.fieldTypes":{text:"文本框",number:"数字框",date:"日期选择",select:"下拉选择",radio:"单选按钮",checkbox:"复选框",textarea:"多行文本"},"formBuilder.placeholder":{formName:"请输入表单名称",fieldName:"请输入字段名称",fieldLabel:"请输入字段标签",options:"按回车添加选项"},"formBuilder.validation":{required:"必填",optional:"选填",unique:"唯一",min:"最小值",max:"最大值"},"formBuilder.import":"导入","formBuilder.export":"导出","formBuilder.import.success":"导入成功","formBuilder.import.error":"导入失败,请检查文件格式","formBuilder.export.success":"导出成功","formBuilder.export.error":"导出失败","formBuilder.export.filename":"表单配置.json","formBuilder.dragStart":"开始拖拽组件","formBuilder.dragEnd":"结束拖拽组件","formBuilder.dropSuccess":"组件添加成功","formBuilder.dropError":"组件添加失败","formBuilder.canvas.empty":"拖拽表单字段到这里","formBuilder.field.delete":"删除","formBuilder.field.moveUp":"上移","formBuilder.field.moveDown":"下移","formBuilder.field.placeholder":{text:"请输入文本",number:"请输入数字",date:"请选择日期",select:"请选择一个选项",radio:"请选择一项",checkbox:"请选择"},"flow.moveUp":"上移","flow.moveDown":"下移","flow.delete":"删除","flow.option.1":"选项1","flow.option.2":"选项2","flow.option.3":"选项3","flow.controls.title":"流程控制","flow.minimap.title":"流程概览","flow.canvas.label":"流程构建画布","flow.background.label":"流程背景","flow.controls.label":"流程控制","flow.minimap.label":"流程概览","flow.container.label":"流程构建器容器","flow.dragover.hint":"放置此处添加组件","flow.drop.hint":"组件已添加","flow.parentNode.default":"父节点","component.panel.title":"表单组件","component.input.title":"单行文本","component.textarea.title":"多行文本","component.select.title":"下拉选择","component.radio.title":"单选框组","component.checkbox.title":"多选框组","component.datePicker.title":"日期选择","component.timePicker.title":"时间选择","component.switch.title":"开关","component.upload.title":"上传","propertyPanel.save":"保存","propertyPanel.reset":"重置","theme.light":"浅色","theme.dark":"深色","theme.system":"跟随系统","dashboard.settings":"设置","flow.startNode":"开始节点","form.submit":"提交","form.submitting":"提交中...","form.submitSuccess":"提交成功","form.submitError":"提交失败","form.required":"必填项","preview.title":"表单预览","preview.minimize":"最小化","preview.close":"关闭","preview.submit":"提交","preview.submitting":"提交中...","preview.submitSuccess":"提交成功","preview.submitError":"提交失败","preview.required":"必填","preview.placeholder.text":"请输入文本","preview.placeholder.number":"请输入数字","preview.placeholder.date":"请选择日期","preview.placeholder.select":"请选择","preview.placeholder.radio":"请选择一项","preview.placeholder.checkbox":"请选择","formBuilder.header.title":"表单构建器","formBuilder.header.import":"导入","formBuilder.header.export":"导出","formBuilder.header.preview":"预览","ticket.title":"工单流程构建器","ticket.create":"创建流程","ticket.save":"保存流程","ticket.import":"导入","ticket.export":"导出","ticket.import.success":"导入成功","ticket.import.error":"导入失败","ticket.export.success":"导出成功","ticket.export.error":"导出失败","ticket.create.modal.title":"创建新流程","ticket.create.name":"流程名称","ticket.create.key":"流程Key","ticket.create.type":"流程类型","ticket.create.description":"流程描述","ticket.create.submit":"创建","ticket.create.cancel":"取消","ticket.type.default":"默认流程","ticket.type.approval":"审批流程","ticket.type.service":"服务流程","ticket.type.ticket":"工单流程"},fEr={"welcome.modal.title":"未发现所在组织","welcome.modal.description":"您需要创建或加入已有组织","welcome.modal.join":"加入已有组织(即将上线)","welcome.modal.create":"创建组织","welcome.modal.input.placeholder":"请输入组织名称","welcome.message.org.required":"请创建或加入组织","welcome.message.create.success":"创建组织成功","welcome.message.create.failed":"创建组织失败","welcome.message.verify.email":"请先验证邮箱","welcome.message.verify.mobile":"请先验证手机号","welcome.message.org.name.required":"请输入组织名称","welcome.message.org.creating":"创建组织中,请稍后...","welcome.verify.modal.title":"账号验证提示","welcome.verify.modal.description":"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。","welcome.verify.now":"立即验证","welcome.verify.later":"稍后验证"},pEr={...qSr,...KSr,...XSr,...QSr,...ZSr,...JSr,...eEr,...WSr,...tEr,...YSr,...nEr,...rEr,...iEr,...oEr,...GSr,...aEr,...sEr,...lEr,...cEr,...uEr,...dEr,...fEr},hEr={i18_file_assistant:"檔案助手",slogan:"重复工作自动化","menu.dashboard.chat":"消息","menu.dashboard.contact":"通讯录","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.mine":"我的","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"Copilot","chat.right.quickreply":"快捷回复","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服機器人",MARKETING:"營銷機器人",KNOWLEDGEBASE:"知識庫機器人(内部)",QA:"問答機器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"載入中",create:"新增",creating:"新增中...","create.success":"新增成功","create.fail":"新增失敗",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失敗",save:"儲存",saving:"正在儲存...",email:"電子郵件","email.verified":"電子郵件(已驗證)","email.unverified":"電子郵件(待驗證)",mobile:"手機號碼","mobile.verified":"手機號碼(已驗證)","mobile.unverified":"手機號碼(待驗證)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登入用戶名(修改用戶名之後,需要重新登入)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"匯入",export:"匯出","download.template":"下载模板",open:"開啟",copy:"複製","copy.success":"複製成功",ok:"確定",cancel:"取消",bind:"綁定",edit:"編輯",editing:"編輯中...","edit.success":"編輯成功","edit.fail":"編輯失敗",delete:"刪除",deleting:"删除中...",deleteTip:"刪除提示",deleteAffirm:"確定要刪除","delete.success":"刪除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"預覽",close:"關閉",closing:"關閉中...",closeTip:"關閉提示",closeASure:"確定要關閉","close.success":"關閉成功",choose:"選擇","leavemsg.enabled":"留言啟用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"无客服在线"},gEr={"menu.anonymous.title":"匿名模式","menu.anonymous.home":"訊息","menu.anonymous.contact":"聯絡人","menu.anonymous.robot":"機器人","menu.anonymous.setting":"設定","menu.anonymous.status":"匿名狀態","menu.anonymous.status.tip":"匿名模式僅支援同一區域網內的在線設備之間的通訊","menu.anonymous.login.tip":"登入以訪問離線訊息和更多功能","menu.anonymous.login":"登入","menu.anonymous.current.users":"當前用戶","menu.dashboard.chat":"聊天","menu.dashboard.contact":"聯絡人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"筆記","menu.dashboard.kbase":"知識庫","menu.dashboard.mine":"設定","menu.dashboard.queue":"排隊","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"訪客","menu.dashboard.monitor":"監控","menu.dashboard.plugins":"插件","menu.settings":"設定","menu.settings.logout":"登出","menu.agent.status":"客服狀態","menu.agent.status.available":"可用","menu.agent.status.rest":"休息","menu.agent.status.offline":"離線","menu.language":"語言","menu.mode":"模式","menu.mode.team":"團隊模式","menu.mode.agent":"一對一模式","menu.mode.personal":"個人模式","menu.agent.offline.warning":"請在離線前結束所有正在進行中的會話","menu.mode.personal.coming":"即將推出...","menu.dashboard.form":"表單","menu.dashboard.formbuilder":"表單構建器","menu.dashboard.flow":"流程","menu.dashboard.flowgram":"流程圖","menu.dashboard.flowbuilder":"流程構建器","menu.dashboard.ticket":"工單","menu.dashboard.ticketbuilder":"工單構建器"},mEr={"pages.login.title":"登錄","pages.login.subtitle":"歡迎使用微語客服系統","pages.layouts.userLayout.title":"對話即服務","pages.login.accountLogin.tab":"帳戶密碼登錄","pages.login.accountLogin.errorMessage":"錯誤的用戶名和密碼","pages.login.failure":"登錄失敗,請檢查用戶名密碼!","pages.login.failureCode":"驗證碼錯誤","pages.login.success":"登錄成功!","pages.login.username.placeholder":"請輸入用戶名","pages.login.username.required":"用戶名是必填項!","pages.login.password.placeholder":"請輸入密碼","pages.login.repassword.placeholder":"確認密碼","pages.login.password.required":"密碼是必填項!","pages.login.repassword.required":"確認密碼是必填項!","pages.login.phoneLogin.tab":"手機號登錄","pages.login.phoneLogin.errorMessage":"驗證碼錯誤","pages.login.phoneNumber.placeholder":"請輸入手機號!","pages.login.phoneNumber.required":"手機號是必填項!","pages.login.phoneNumber.invalid":"不合法的手機號!","pages.login.captcha.placeholder":"請輸入驗證碼!","pages.login.captcha.required":"驗證碼是必填項!","pages.login.phoneLogin.getVerificationCode":"獲取驗證碼","pages.login.anonymousLogin":"匿名登錄","pages.getCaptchaSecondText":"秒後重新獲取","pages.login.scanLogin.tab":"掃碼登錄","pages.login.rememberMe":"自動登錄","pages.login.forgot":"忘記密碼","pages.login.submit":"登錄","pages.login.loginWith":"其他登錄方式 :","pages.login.register":"註冊賬號","pages.login.registerAccount":" 註冊帳戶","pages.login.auto.register":"未註冊手機號會自動註冊","pages.welcome.link":"歡迎使用","pages.welcome.title":"歡迎","pages.welcome.description":"微語客服系統是一個開源的客服系統","pages.welcome.getting-started":"開始使用","pages.welcome.view-docs":"查看文檔","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"刪除","pages.robot.upload":"上傳","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知識庫","pages.robot.tab.channel":"渠道對接","pages.robot.tab.statistic":"數據統計","pages.robot.tab.advanced":"高級設置","pages.robot.tab.flow":"流程設計","pages.robot.tab.avatar":"頭像","pages.robot.tab.title":"標題","pages.robot.tab.welcomeTip":"歡迎語","pages.robot.tab.description":"簡介","pages.robot.tab.preview":"實時預覽","pages.robot.tab.website":"官網","pages.robot.tab.helpdesk":"幫助文檔","pages.robot.tab.icp":"京ICP備案 17041763號-1","pages.robot.tab.police":"粵公安備案 44030502008688號","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"問答","pages.robot.kb.web":"網站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件類型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"刪除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上傳中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件內容","pages.setting":"設置","pages.logout":"退出登錄","pages.footer.website":"微語官網","pages.footer.helpcenter":"帮助文档","pages.login.remember":"記住密碼","pages.agent.tab.basic":"基本信息","pages.agent.robot":"機器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常見問題","pages.advanced.quickButton":"快捷按鈕","pages.advanced.faqGuess":"智能推薦","pages.advanced.faqHot":"熱門問題","pages.advanced.faqShortcut":"快捷回覆","pages.advanced.rate":"滿意度評價","pages.advanced.autoreply":"自動回覆","pages.advanced.leaveMsg":"留言設置","pages.advanced.survey":"調查問卷","pages.advanced.history":"歷史記錄","pages.advanced.inputAssociation":"輸入聯想","pages.advanced.antiHarassment":"驗證碼設置","pages.advanced.captcha":"驗證碼設置","pages.advanced.showPreForm":"顯示預覽","pages.advanced.showHistory":"顯示歷史","pages.advanced.showInputAssociation":"顯示輸入聯想","pages.advanced.showCaptcha":"顯示驗證碼","pages.login.country.placeholder":"選擇國家/地區","pages.login.country.china":"中國大陸","pages.login.country.hongkong":"中國香港","pages.login.country.taiwan":"中國台灣","pages.login.country.macao":"中國澳門","pages.login.country.japan":"日本","pages.login.country.korea":"韓國","pages.login.country.usa":"美國","pages.login.country.canada":"加拿大","pages.login.country.uk":"英國","pages.login.country.germany":"德國","pages.login.country.france":"法國","pages.login.country.australia":"澳大利亞","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"馬來西亞","pages.login.country.thailand":"泰國","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律賓","pages.login.country.indonesia":"印度尼西亞","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄羅斯","pages.login.country.newzealand":"新西蘭","block.title":"拉黑設置","block.type":"拉黑類型","block.user":"拉黑用戶","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"請選擇封禁結束時間","pages.register.title":"註冊","pages.register.subtitle":"創建您的賬號","pages.register.username":"用戶名","pages.register.password":"密碼","pages.register.confirm":"確認密碼","pages.register.email":"郵箱","pages.register.mobile":"手機號","pages.register.code":"驗證碼","pages.register.agreement":"我已閱讀並同意","pages.register.agreement.terms":"服務條款","pages.register.submit":"註冊","pages.register.login":"使用已有賬號登錄","pages.404.title":"404","pages.404.subtitle":"抱歉,您訪問的頁面不存在","pages.404.description":"您可以嘗試以下操作:","pages.404.actions.back":"返回上一頁","pages.404.actions.home":"返回首頁","pages.403.title":"403","pages.403.subtitle":"抱歉,您沒有訪問該頁面的權限","pages.403.description":"請聯繫管理員獲取權限","pages.403.actions.back":"返回上一頁","pages.500.title":"500","pages.500.subtitle":"抱歉,服務器出錯了","pages.500.description":"請稍後再試或聯繫技術支持","pages.500.actions.back":"返回上一頁","pages.500.actions.home":"返回首頁"},vEr={"app.title":"微語","app.logout":"登出","app.copyright.produced":"微語出品","app.preview.down.block":"下載此頁面到本地項目","app.welcome.link.fetch-blocks":"獲取全部區塊","app.welcome.link.block-list":"基於 block 開發,快速構建標準頁面","navBar.lang":"語言","layout.user.link.help":"幫助","layout.user.link.privacy":"隱私","layout.user.link.terms":"條款","theme.light":"淺色","theme.dark":"深色","theme.system":"自動","setting.lang":"Languages","setting.theme":"主題","app.name":"微語客服","app.description":"新一代智能客服系統","app.welcome":"歡迎使用微語客服系統","app.copyright":"© 2024 微語客服. 保留所有權利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"確認","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"編輯","app.action.delete":"刪除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"設置","app.action.help":"幫助","app.tip.loading":"加載中...","app.tip.success":"操作成功","app.tip.error":"操作失敗","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"確認要執行此操作嗎?","app.tip.nodata":"暫無數據","app.tip.network.error":"網絡連接失敗","app.tip.server.error":"服務器錯誤","app.status.online":"在線","app.status.offline":"離線","app.status.busy":"忙碌","app.status.away":"離開","app.status.invisible":"隱身","app.status.disabled":"已禁用","app.status.expired":"已過期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"剛剛","app.time.minutes":"{count} 分鐘前","app.time.hours":"{count} 小時前","app.time.days":"{count} 天前","app.file.upload":"上傳文件","app.file.download":"下載文件","app.file.preview":"預覽文件","app.file.size.limit":"文件大小不能超過 {size}","app.file.type.unsupported":"不支持的文件類型","app.file.upload.success":"上傳成功","app.file.upload.failed":"上傳失敗","app.file.download.success":"下載成功","app.file.download.failed":"下載失敗","app.layout.sidebar.collapse":"收起側邊欄","app.layout.sidebar.expand":"展開側邊欄","app.layout.header.profile":"個人中心","app.layout.header.logout":"退出登錄","app.layout.footer.copyright":"版權所有","app.layout.footer.terms":"服務條款","app.layout.footer.privacy":"隱私政策"},yEr={"auth.login.title":"登錄","auth.login.subtitle":"歡迎使用微語客服系統","auth.login.username":"用戶名","auth.login.username.required":"請輸入用戶名","auth.login.password":"密碼","auth.login.password.required":"請輸入密碼","auth.login.remember":"記住密碼","auth.login.forgot":"忘記密碼?","auth.login.submit":"登錄","auth.login.other":"其他登錄方式","auth.login.register":"註冊賬號","auth.login.success":"登錄成功","auth.login.failed":"登錄失敗","auth.register.title":"註冊","auth.register.subtitle":"創建新賬號","auth.register.username":"用戶名","auth.register.username.required":"請輸入用戶名","auth.register.email":"郵箱","auth.register.email.required":"請輸入郵箱","auth.register.password":"密碼","auth.register.password.required":"請輸入密碼","auth.register.confirm":"確認密碼","auth.register.confirm.required":"請確認密碼","auth.register.submit":"註冊","auth.register.login":"已有賬號?登錄","auth.register.success":"註冊成功","auth.register.failed":"註冊失敗","auth.forgot.title":"忘記密碼","auth.forgot.subtitle":"重置密碼","auth.forgot.email":"郵箱","auth.forgot.email.required":"請輸入郵箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登錄","auth.forgot.success":"重置密碼郵件已發送","auth.forgot.failed":"重置密碼失敗","auth.reset.title":"重置密碼","auth.reset.subtitle":"設置新密碼","auth.reset.password":"新密碼","auth.reset.password.required":"請輸入新密碼","auth.reset.confirm":"確認密碼","auth.reset.confirm.required":"請確認新密碼","auth.reset.submit":"提交","auth.reset.success":"密碼重置成功","auth.reset.failed":"密碼重置失敗","auth.verify.code":"驗證碼","auth.verify.code.required":"請輸入驗證碼","auth.verify.code.send":"發送驗證碼","auth.verify.code.resend":"重新發送","auth.verify.code.success":"驗證碼發送成功","auth.verify.code.failed":"驗證碼發送失敗","auth.password.strength.weak":"密碼強度:弱","auth.password.strength.medium":"密碼強度:中","auth.password.strength.strong":"密碼強度:強","auth.agreement.text":"我已閱讀並同意","auth.agreement.terms":"服務條款","auth.agreement.privacy":"隱私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"幫助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢復默認雲服務器","server.custom.enable":"啟用自定義服務器","server.api.url.label":"API服務器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服務器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"請輸入正確的服務器地址"},_Er={"chat.title":"會話","chat.empty":"暫無會話","chat.loading":"加載中...","chat.load.error":"加載失敗","chat.load.more":"加載更多","chat.no.more":"沒有更多了","chat.refresh":"刷新","chat.status.connecting":"連接中...","chat.status.connected":"已連接","chat.status.disconnected":"連接斷開","chat.status.reconnecting":"重新連接中...","chat.network.error":"網絡連接失敗,請檢查網絡","chat.thread.closing":"結束會話中...","chat.thread.close.success":"結束會話成功","chat.thread.close.failed":"結束會話失敗","chat.thread.close.confirm.title":"確定要結束會話?","chat.rate.invite.confirm.title":"確認要邀請評價?","chat.message.send.failed":"發送失敗","chat.message.resend":"重新發送","chat.message.recall":"撤回消息","chat.message.copy.success":"複製成功","chat.copy.success":"複製成功","chat.menu.copy":"複製","chat.menu.translate":"翻譯","chat.menu.recall":"撤回","chat.menu.enlarge":"放大閱讀","chat.menu.quickreply.add":"添加快捷回復...","chat.menu.browser.open":"瀏覽器打開","chat.menu.forward":"轉發...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.input.placeholder":"請輸入內容, Ctrl+V 粘貼截圖/圖片","chat.translation.placeholder":"請輸入翻譯內容...","chat.input.send":"發送","chat.input.sending":"發送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"圖片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截圖","chat.toolbar.autoreply":"自動回復","chat.toolbar.audio":"錄音","chat.toolbar.webrtc":"視頻會話","chat.upload.size.limit":"文件大小不能超過 {size}","chat.upload.type.unsupported":"不支持的文件類型","chat.upload.failed":"上傳失敗","chat.upload.success":"上傳成功","chat.upload.progress":"上傳中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"來電...","chat.webrtc.connected":"通話中...","chat.webrtc.ended":"通話結束","chat.webrtc.rejected":"對方拒絕","chat.webrtc.busy":"對方忙","chat.webrtc.failed":"通話失敗","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒絕","chat.webrtc.hangup":"掛斷","chat.navbar.transfer":"轉接","chat.navbar.close":"結束","chat.navbar.note":"筆記","chat.navbar.kbase":"知識庫","chat.right.quickreply":"快捷回覆","chat.right.userinfo":"訪客信息","chat.right.ai":"AI助手","chat.right.ticket":"工單","chat.right.llm":"大模型","chat.right.docview":"文檔查看","chat.right.group":"群組信息","chat.right.member":"成員信息","chat.group.notice":"群公告","chat.group.members":"群成員","chat.group.admins":"管理員","chat.group.robots":"機器人","chat.group.qrcode":"二維碼","chat.group.uid.error":"群組ID錯誤"},bEr={"common.yes":"是","common.no":"否","common.ok":"確定","common.cancel":"取消","common.confirm":"確認","common.save":"保存","common.delete":"刪除","common.edit":"編輯","common.create":"創建","common.loading":"加載中...","common.success":"成功","common.error":"錯誤","common.warning":"警告","common.info":"信息","common.back":"返回","common.submit":"提交","common.reset":"重置","common.add":"添加","common.search":"搜索","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.failed":"操作失敗","common.status.online":"在線","common.status.offline":"離線","common.status.busy":"忙碌","common.status.away":"離開","common.status.invisible":"隱身","common.operation.success":"操作成功","common.operation.failed":"操作失敗","common.operation.confirm":"確認要執行此操作嗎?","common.operation.processing":"處理中...","common.operation.completed":"處理完成","common.operation.error":"處理出錯","common.form.required":"此項為必填項","common.form.optional":"選填","common.form.invalid":"輸入無效","common.form.validate.error":"表單驗證失敗","common.form.validate.success":"表單驗證通過"},SEr={"customer.list.title":"客戶列表","customer.list.empty":"暫無客戶","customer.list.loading":"加載中...","customer.list.load.error":"加載失敗","customer.list.load.more":"加載更多","customer.list.no.more":"沒有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"暱稱","customer.info.gender":"性別","customer.info.age":"年齡","customer.info.birthday":"生日","customer.info.mobile":"手機號","customer.info.email":"郵箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"職位","customer.info.remark":"備註","customer.info.tags":"標籤","customer.info.source":"來源","customer.info.created":"創建時間","customer.info.updated":"更新時間","customer.status.online":"在線","customer.status.offline":"離線","customer.status.away":"離開","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"編輯","customer.action.delete":"刪除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"轉移","customer.action.merge":"合併","customer.action.export":"導出","customer.form.name":"姓名","customer.form.name.required":"請輸入姓名","customer.form.nickname":"暱稱","customer.form.gender":"性別","customer.form.age":"年齡","customer.form.birthday":"生日","customer.form.mobile":"手機號","customer.form.email":"郵箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"職位","customer.form.remark":"備註","customer.form.tags":"標籤","customer.form.source":"來源","customer.create.success":"客戶創建成功","customer.create.failed":"客戶創建失敗","customer.update.success":"客戶更新成功","customer.update.failed":"客戶更新失敗","customer.delete.success":"客戶刪除成功","customer.delete.failed":"客戶刪除失敗","customer.block.success":"客戶拉黑成功","customer.block.failed":"客戶拉黑失敗","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失敗","customer.transfer.success":"客戶轉移成功","customer.transfer.failed":"客戶轉移失敗","customer.merge.success":"客戶合併成功","customer.merge.failed":"客戶合併失敗","customer.export.success":"客戶導出成功","customer.export.failed":"客戶導出失敗","black.title":"拉黑設置","black.type":"拉黑類型","black.type.required":"請選擇至少一種拉黑類型","black.user":"拉黑用戶","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"請選擇拉黑截至時間","black.reason":"拉黑原因","black.reason.required":"請輸入拉黑原因","black.reason.placeholder":"請輸入拉黑原因","black.success":"拉黑成功"},EEr={"dashboard.menu.overview":"總覽","dashboard.menu.workbench":"工作台","dashboard.menu.monitor":"監控台","dashboard.menu.workplace":"工作區","dashboard.menu.message":"消息中心","dashboard.menu.settings":"系統設置","dashboard.overview.title":"總覽","dashboard.overview.total.conversations":"總會話數","dashboard.overview.total.customers":"總客戶數","dashboard.overview.total.tickets":"總工單數","dashboard.overview.total.agents":"總客服數","dashboard.overview.online.agents":"在線客服","dashboard.overview.waiting.customers":"排隊訪客","dashboard.overview.avg.response.time":"平均響應時間","dashboard.overview.avg.handle.time":"平均處理時間","dashboard.stats.title":"數據統計","dashboard.stats.realtime":"實時數據","dashboard.stats.today":"今日統計","dashboard.stats.yesterday":"昨日統計","dashboard.stats.week":"本週統計","dashboard.stats.month":"本月統計","dashboard.stats.custom":"自定義時段","dashboard.workbench.online":"在線狀態","dashboard.workbench.offline":"離線狀態","dashboard.workbench.busy":"忙碌狀態","dashboard.workbench.away":"離開狀態","dashboard.workbench.auto.distribution":"自動分配","dashboard.workbench.manual.distribution":"手動分配","dashboard.workbench.max.session":"最大會話數","dashboard.workbench.current.session":"當前會話數","dashboard.monitor.system":"系統監控","dashboard.monitor.performance":"性能監控","dashboard.monitor.network":"網絡監控","dashboard.monitor.server":"服務器狀態","dashboard.monitor.database":"數據庫狀態","dashboard.monitor.cache":"緩存狀態","dashboard.monitor.queue":"隊列狀態","dashboard.workplace.quick.start":"快速開始","dashboard.workplace.recent":"最近訪問","dashboard.workplace.todo":"待辦事項","dashboard.workplace.announcement":"系統公告","dashboard.workplace.calendar":"工作日曆","dashboard.workplace.links":"常用鏈接","dashboard.message.all":"全部消息","dashboard.message.unread":"未讀消息","dashboard.message.system":"系統消息","dashboard.message.business":"業務消息","dashboard.message.operation":"運營消息","dashboard.monitor.title":"實時監控","dashboard.monitor.online.status":"在線狀態","dashboard.monitor.conversation.status":"會話狀態","dashboard.monitor.queue.status":"排隊狀態","dashboard.monitor.system.status":"系統狀態","dashboard.monitor.refresh":"刷新","dashboard.monitor.auto.refresh":"自動刷新","dashboard.analysis.title":"數據分析","dashboard.analysis.conversation.trend":"會話趨勢","dashboard.analysis.customer.trend":"客戶趨勢","dashboard.analysis.ticket.trend":"工單趨勢","dashboard.analysis.satisfaction.trend":"滿意度趨勢","dashboard.analysis.time.range":"時間範圍","dashboard.analysis.export":"導出數據","dashboard.workplace.title":"工作台","dashboard.workplace.my.conversations":"我的會話","dashboard.workplace.my.tickets":"我的工單","dashboard.workplace.my.tasks":"我的任務","dashboard.workplace.my.performance":"我的績效","dashboard.workplace.quick.actions":"快捷操作","dashboard.workplace.announcements":"公告通知","dashboard.report.title":"統計報表","dashboard.report.conversation":"會話報表","dashboard.report.customer":"客戶報表","dashboard.report.ticket":"工單報表","dashboard.report.agent":"客服報表","dashboard.report.satisfaction":"滿意度報表","dashboard.report.export":"導出報表","dashboard.chart.today":"今日","dashboard.chart.yesterday":"昨日","dashboard.chart.last7days":"最近7天","dashboard.chart.last30days":"最近30天","dashboard.chart.thisMonth":"本月","dashboard.chart.lastMonth":"上月","dashboard.chart.custom":"自定義","dashboard.chart.loading":"加載中...","dashboard.chart.no.data":"暫無數據","dashboard.tip.refresh.success":"刷新成功","dashboard.tip.refresh.failed":"刷新失敗","dashboard.tip.export.success":"導出成功","dashboard.tip.export.failed":"導出失敗","dashboard.tip.data.loading":"數據加載中...","dashboard.tip.data.load.failed":"數據加載失敗"},CEr={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.queue.tip":"排隊隊列","i18n.queue.message.template":"當前排隊人數:{0},大約等待時間:{1} 分鐘","i18n.queue.empty":"隊列為空","i18n.queue.accept":"接入","i18n.system.notification":"系統通知","i18n.system.notification.tip":"系統通知","i18n.old.password.wrong":"舊密碼錯誤","i18n.change.password":"修改密碼","i18n.auth.captcha.send.success":"驗證碼發送成功","i18n.auth.captcha.error":"驗證碼錯誤","i18n.auth.captcha.expired":"驗證碼過期","i18n.auth.captcha.already.send":"驗證碼已發送,請等待","i18n.auth.captcha.validate.failed":"驗證碼驗證失敗","i18n.faq":"常見問題","i18n.rate":"評價","i18n.input.placeholder":"請輸入內容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在輸入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀請評價","i18n.ticket":"[工單]","i18n.notice":"通知","i18n.notice.title":"通知標題","i18n.notice.content":"通知內容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理員","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技術部","i18n.DEPT.MONEY":"財務部","i18n.DEPT.MARKETING":"市場部","i18n.DEPT.SALES":"銷售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"圖片","i18n.thread.content.file":"文件","i18n.top.tip":"默認置顶語","i18n.top.make":"置頂","i18n.top.cancel":"取消置頂","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"無客服在線,請留言","i18n.welcome.tip":"您好,有什麼可以幫您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"開發中...","i18n.user.description":"默認用戶描述","i18n.robot.nickname":"默認機器人","i18n.robot.description":"默認機器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一個聰明、對人類有幫助的人工智能,你可以對人類提出的問題給出有用、詳細、禮貌的回答","i18n.agent.nickname":"默認客服","i18n.agent.description":"默認客服描述","i18n.workgroup.nickname":"預設技能組","i18n.workgroup.description":"預設技能組描述","i18n.contact":"詢問聯繫方式","i18n.thanks":"感謝","i18n.welcome":"問候","i18n.bye":"告別","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开","i18n.tip.network.connected":"网络已连接","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的話請您提供一下您的聯繫電話","i18n.contact.content":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.thanks.title":"感謝光臨","i18n.thanks.content":"感謝光臨,歡迎再來","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什麼可以幫您的","i18n.bye.title":"您的滿意一直是我們的目標","i18n.bye.content":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"常見問題分類Demo1","i18n.faq.category.demo.2":"常見問題分類Demo2","i18n.faq.demo.title.1":"常見問題文字Demo1","i18n.faq.demo.content.1":"常見問題文字Demo1","i18n.faq.demo.title.2":"常見問題圖片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.content.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.title.2":"快捷按鈕連結Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"預覽","i18n.cancel":"取消","i18n.confirm":"確定","i18n.send":"發送","i18n.transferToAgent":"轉人工服務","i18n.auto.closed":"會話自動關閉","i18n.agent.closed":"客服關閉會話","i18n.online.chat":"在線客服","i18n.JOB":"工作","i18n.LANGUAGE":"語言","i18n.TOOL":"工具","i18n.WRITING":"寫作","i18n.RAG":"知識庫問答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工單","i18n.black.user.already.exists":"用戶已拉黑","i18n.ticket.category.technical_support":"技術支持","i18n.ticket.category.service_request":"服務請求","i18n.ticket.category.consultation":"咨詢","i18n.ticket.category.complaint_suggestion":"投訴建議","i18n.ticket.category.operation_maintenance":"運維","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP組件, 聯繫我們了解更多詳情","i18n.vip.contactUs":"聯繫我們","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name":"工单流程","i18n.thread.process.name":"會話流程","flowgram.title":"流程圖表","flowgram.create":"創建","flowgram.import":"導入","flowgram.export":"導出","flowgram.save":"保存","flowgram.create.info":"創建新流程功能開發中","flowgram.import.info":"導入流程功能開發中","flowgram.export.info":"導出流程功能開發中","flowgram.save.info":"保存流程功能開發中","flowgram.select.flow":"選擇流程","flowgram.no.flow":"暫無流程"},wEr={"message.type.text":"文本消息","message.type.image":"圖片消息","message.type.file":"文件消息","message.type.voice":"語音消息","message.type.video":"視頻消息","message.type.location":"位置消息","message.type.link":"鏈接消息","message.type.card":"卡片消息","message.type.system":"系統消息","message.type.notification":"通知消息","message.type.custom":"自定義消息","message.status.sending":"發送中","message.status.sent":"已發送","message.status.delivered":"已送達","message.status.read":"已讀","message.status.failed":"發送失敗","message.status.recalled":"已撤回","message.status.deleted":"已刪除","quickreply.search.placeholder":"搜索","quickreply.button.send":"發送","quickreply.button.copy":"複製","quickreply.button.create.category":"創建分類","quickreply.button.create.reply":"創建快捷回復","quickreply.copy.success":"{content} 已複製到剪貼板","category.form.edit.title":"編輯分類","category.form.create.title":"創建分類","category.form.name":"分類名稱","category.form.name.required":"請輸入分類名稱!","category.form.name.placeholder":"輸入分類名稱","category.create.failed":"創建分類失敗","quickreply.drawer.title":"{isEdit, select, true {編輯快捷回復} other {新建快捷回復}}","quickreply.form.category":"分類","quickreply.form.category.required":"請選擇分類","quickreply.form.category.placeholder":"選擇分類","quickreply.form.type":"類型","quickreply.form.type.required":"請選擇類型","quickreply.form.type.placeholder":"選擇類型","quickreply.form.title":"標題","quickreply.form.title.required":"請輸入標題","quickreply.form.content":"內容","quickreply.type.text":"文本","quickreply.type.image":"圖片","quickreply.type.video":"視頻","quickreply.type.audio":"音頻","quickreply.type.file":"文件","quickreply.upload.text":"點擊或拖拽文件上傳","quickreply.upload.success":"{filename} 上傳成功","quickreply.upload.error":"{filename} 上傳失敗","quickreply.upload.uploading":"{filename} 上傳中","quickreply.form.validate.error":"請檢查表單","message.action.send":"發送","message.action.recall":"撤回","message.action.delete":"刪除","message.action.resend":"重新發送","message.action.forward":"轉發","message.action.quote":"引用","message.action.copy":"複製","message.action.translate":"翻譯","message.action.download":"下載","message.action.preview":"預覽","message.tip.sending":"消息發送中...","message.tip.sent":"消息已發送","message.tip.delivered":"消息已送達","message.tip.read":"消息已讀","message.tip.failed":"消息發送失敗","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已刪除","message.tip.copy.success":"複製成功","message.tip.download.start":"開始下載...","message.tip.download.success":"下載成功","message.tip.download.failed":"下載失敗","message.input.placeholder":"請輸入消息","message.input.send.button":"發送","message.input.emoji.button":"表情","message.input.image.button":"圖片","message.input.file.button":"文件","message.input.voice.button":"語音","message.input.video.button":"視頻","message.input.location.button":"位置","message.list.load.more":"加載更多","message.list.loading":"加載中...","message.list.no.more":"沒有更多消息","message.list.empty":"暫無消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相關消息","message.time.just":"剛剛","message.time.minutes":"{count}分鐘前","message.time.hours":"{count}小時前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}個月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超過 {size}","message.file.type.unsupported":"不支持的文件類型","message.file.uploading":"上傳中...","message.file.download":"下載文件","message.file.preview":"預覽文件","message.image.loading":"圖片加載中","message.image.load.error":"圖片加載失敗","message.image.save":"保存圖片","message.image.save.success":"圖片保存成功","message.image.save.failed":"圖片保存失敗"},xEr={"profile.update.success":"個人信息更新成功","profile.form.avatar":"頭像","profile.form.upload":"上傳","profile.form.username":"用戶名","profile.form.nickname":"暱稱","profile.form.description":"描述","profile.button.change.password":"修改密碼","profile.button.change.email":"修改郵箱","profile.button.change.mobile":"修改手機號","profile.email.verified":"郵箱已驗證","profile.email.unverified":"郵箱未驗證","profile.mobile.verified":"手機已驗證","profile.mobile.unverified":"手機未驗證","profile.email.change.title":"修改郵箱","profile.email.placeholder":"請輸入郵箱地址","profile.email.required":"請輸入郵箱地址!","profile.email.format.invalid":"郵箱格式不正確","profile.email.length.limit":"郵箱不得超過50字符","profile.email.verification.code.placeholder":"請輸入驗證碼","profile.email.verification.code.countdown":"秒後重新獲取","profile.email.verification.code.get":"獲取驗證碼","profile.email.verification.code.required":"請輸入驗證碼!","profile.email.not.changed":"郵箱未更改!","profile.email.change.success":"郵箱修改成功!","profile.email.format.error":"郵箱格式錯誤","profile.mobile.change.title":"修改手機號","profile.mobile.placeholder":"請輸入手機號","profile.mobile.required":"請輸入手機號!","profile.mobile.format.invalid":"手機號格式錯誤!","profile.mobile.verification.code.placeholder":"請輸入驗證碼","profile.mobile.verification.code.countdown":"秒後重新獲取","profile.mobile.verification.code.get":"獲取驗證碼","profile.mobile.verification.code.required":"請輸入驗證碼!","profile.mobile.not.changed":"手機號未更改!","profile.mobile.change.success":"手機號修改成功!","profile.mobile.format.error":"手機號格式錯誤","profile.password.change.title":"修改密碼","profile.password.old":"原密碼","profile.password.old.empty":"手機號直接登錄用戶,可以留空","profile.password.new":"新密碼","profile.password.confirm":"確認密碼","profile.password.length.error":"密碼最小長度不能小於6","profile.password.mismatch":"兩次輸入密碼不一致","profile.password.change.success":"密碼修改成功!"},TEr={"setting.menu.title":"設置","setting.menu.profile":"個人信息","setting.menu.basic":"基本設置","setting.menu.agent":"客服設置","setting.menu.model":"大模型","setting.menu.certification":"實名認證","setting.menu.qrcode":"二維碼","setting.menu.shortcut":"快捷鍵","setting.menu.click":"菜單點擊","setting.save.success":"設置保存成功","setting.save.error":"設置保存失敗","setting.load.error":"設置加載失敗","setting.header.profile":"個人信息","setting.header.basic":"基本設置","setting.header.agent":"客服設置","setting.header.model":"大模型設置","setting.basic.sound.on":"已開啟消息提示音","setting.basic.sound.off":"已關閉消息提示音","setting.basic.notification.on":"已開啟網絡狀態通知","setting.basic.notification.off":"已關閉網絡狀態通知","setting.basic.connection.status":"長鏈接狀態:","setting.basic.connection.connected":"✅連接正常","setting.basic.connection.disconnected":"❌連接斷開","setting.basic.startup":"開機啟動:","setting.basic.startup.on":"開機啟動","setting.basic.startup.off":"不開機啟動","setting.basic.theme":"顏色主題:","setting.basic.language":"語言設置:","setting.basic.mode":"模式設置:","setting.basic.mode.team":"團隊模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"個人模式"},OEr={"thread.error.message":"獲取數據失敗","thread.feature.unavailable":"TODO: 該功能暫未開放","thread.menu.top":"置頂","thread.menu.untop":"取消置頂","thread.menu.read":"標記已讀","thread.menu.unread":"標記未讀","thread.menu.mute":"靜音","thread.menu.unmute":"取消靜音","thread.menu.transfer":"轉接","thread.menu.block":"拉黑","thread.menu.ticket":"創建工單","thread.menu.crm":"查看CRM","thread.menu.summary":"會話總結","thread.menu.filter":"會話過濾","thread.menu.groupThread":"群聊會話","thread.menu.robotThread":"機器人會話","thread.menu.workgroupThread":"工作組會話","thread.menu.agentThread":"一對一會話","thread.menu.ticketThread":"工單會話","thread.menu.memberThread":"成員會話","thread.menu.deviceThread":"設備會話","thread.menu.systemThread":"系統會話","thread.status.robot":"[機器人]","thread.status.agent":"[一對一]","thread.status.workgroup":"[工作組]","thread.search.placeholder":"搜索會話...","thread.dropdown.create.group":"創建群聊","thread.dropdown.create.ai":"創建AI對話","thread.agent.status.online":"😀 - 在線接待","thread.agent.status.offline":"🔻 - 客服下線","thread.agent.status.busy":"🏃♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 鬆開刷新","thread.list.no.more":"沒有更多了","thread.coming.soon":"即將上線,敬請期待","thread.set.success":"設置成功","thread.set.error":"設置失敗","thread.menu.star":"星標","thread.menu.star.1":"星標1","thread.menu.star.2":"星標2","thread.menu.star.3":"星標3","thread.menu.star.4":"星標4","thread.menu.hide":"隱藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下線","thread.status.busy":"🏃♀️忙碌","thread.status.loading":"加載中...","thread.status.empty":"暫無會話","thread.status.error":"加載會話失敗","thread.status.queue":"排隊({count})","thread.status.network.offline":"網絡已斷開","thread.status.network.online":"網絡已連接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暫無消息","thread.status.message.error":"加載消息失敗","thread.status.message.end":"沒有更多消息","thread.status.message.typing":"正在輸入...","thread.status.message.transfer":"轉接中...","thread.status.message.transferred":"已轉接","thread.status.message.closed":"會話已關閉","thread.menu.star.cancel":"取消星標","thread.loading.more":"加載更多..."},REr={"ticket.create.title":"創建工單","ticket.edit.title":"編輯工單","ticket.form.uid":"編號","ticket.form.title":"標題","ticket.form.title.required":"請輸入工單標題","ticket.form.title.placeholder":"請輸入工單標題","ticket.form.description":"描述","ticket.form.description.required":"請輸入工單描述","ticket.form.description.placeholder":"請輸入工單描述","ticket.form.status":"狀態","ticket.form.status.required":"請選擇工單狀態","ticket.form.priority":"優先級","ticket.form.priority.required":"請選擇優先級","ticket.form.category":"分類","ticket.form.category.required":"請選擇工單分類","ticket.form.category.placeholder":"請選擇工單分類","ticket.form.user":"客戶","ticket.form.user.placeholder":"請選擇客戶","ticket.form.assignee":"處理人","ticket.form.assignee.placeholder":"請選擇處理人","ticket.form.reporter":"報告人","ticket.form.reporter.placeholder":"請選擇報告人","ticket.form.workgroup":"技能組","ticket.form.workgroup.required":"請選擇技能組","ticket.form.workgroup.placeholder":"請選擇技能組","ticket.workgroup.load.error":"加載技能組失敗","ticket.status.all":"全部狀態","ticket.status.new":"新建","ticket.status.assigned":"已分配","ticket.status.in_progress":"處理中","ticket.status.pending":"待處理","ticket.status.on_hold":"掛起","ticket.status.reopened":"重新打開","ticket.status.resolved":"已解決","ticket.status.closed":"已關閉","ticket.status.cancelled":"已取消","ticket.priority.all":"全部優先級","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"緊急","ticket.priority.critical":"嚴重","ticket.create.success":"工單創建成功","ticket.create.failed":"工單創建失敗","ticket.update.success":"工單更新成功","ticket.update.failed":"工單更新失敗","ticket.submit.error":"工單提交失敗","ticket.delete.success":"工單刪除成功","ticket.delete.error":"工單刪除失敗","ticket.load.error":"工單數據加載失敗","ticket.messages.load.error":"工單消息加載失敗","ticket.message.send.error":"消息發送失敗","ticket.category.load.error":"分類加載失敗","ticket.list.title":"工單列表","ticket.list.empty":"暫無工單","ticket.list.search.placeholder":"搜索工單","ticket.list.create":"創建工單","ticket.list.total":"工單總數","ticket.action.edit":"編輯","ticket.action.delete":"刪除","ticket.action.assign":"分配","ticket.action.close":"關閉","ticket.action.reopen":"重新打開","ticket.delete.confirm":"確定要刪除此工單嗎?","ticket.conversation.title":"工單對話","ticket.conversation.empty":"請選擇工單查看對話","ticket.conversation.input.placeholder":"請輸入消息...","ticket.details.title":"工單詳情","ticket.details.empty":"請選擇工單查看詳情","ticket.category.technical_support":"技術支持","ticket.category.service_request":"服務請求","ticket.category.consultation":"咨詢","ticket.category.complaint_suggestion":"投訴建議","ticket.category.operation_maintenance":"運維","ticket.category.other":"其他","ticket.form.thread":"關聯會話","ticket.form.thread.placeholder":"選擇關聯會話","ticket.form.thread.none":"不關聯","ticket.form.createdAt":"創建時間","ticket.form.updatedAt":"更新時間","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能組","ticket.assignee":"處理人","ticket.reporter":"報告人","ticket.type":"類型","ticket.category":"分類","ticket.steps.title":"轉移過程","ticket.filter.by.status":"按狀態篩選","ticket.filter.by.priority":"按優先級篩選","ticket.filter.by.assignment":"按分配篩選","ticket.filter.by.time":"按時間篩選","ticket.filter.status_all":"全部狀態","ticket.filter.status_new":"新建","ticket.filter.status_assigned":"已分配","ticket.filter.status_in_progress":"處理中","ticket.filter.status_pending":"待處理","ticket.filter.status_on_hold":"掛起","ticket.filter.status_reopened":"重新打開","ticket.filter.status_resolved":"已解決","ticket.filter.status_closed":"已關閉","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部優先級","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"緊急","ticket.filter.priority_critical":"嚴重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工單","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能組","ticket.filter.assignment_my_created":"我創建的","ticket.filter.assignment_my_assigned":"待我處理","ticket.filter.time_all":"全部時間","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本週","ticket.filter.time_last_week":"上週","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工單","ticket.content.number":"編號","ticket.delete.title":"刪除工單","ticket.delete.content":"確定要刪除此工單嗎?","ticket.delete.failed":"工單刪除失敗","ticket.loading":"加載工單...","ticket.empty":"暫無工單","ticket.palette.startEvent":"開始事件","ticket.palette.task":"任務","ticket.palette.gateway":"網關","ticket.palette.dataObject":"數據對象","ticket.create.error":"創建流程圖失敗","ticket.save.success":"流程圖保存成功","ticket.autosave.success":"自動保存成功","ticket.autosave.error":"自動保存失敗","ticket.select.process":"選擇流程","ticket.properties.title":"屬性","ticket.properties.noSelection":"未選擇元素","ticket.properties.id":"ID","ticket.properties.name":"名稱","ticket.properties.type":"類型","ticket.properties.documentation":"文檔","ticket.properties.assignee":"處理人","ticket.properties.priority":"優先級","ticket.fetch.processes.error":"加載流程失敗","ticket.no.process":"沒有流程,請先創建一個流程","ticket.fetch.processes.empty":"沒有流程,請先創建一個流程","ticket.create.loading":"創建流程...","ticket.fetch.processes.loading":"加載流程...","ticket.delete":"刪除","ticket.save.error":"保存流程失敗","ticket.deploy":"部署","ticket.undeploy":"取消部署","ticket.deploy.loading":"部署流程...","ticket.undeploy.loading":"取消部署流程...","ticket.deploy.success":"流程部署成功","ticket.undeploy.success":"流程取消部署成功","ticket.deploy.error":"部署流程失敗","ticket.undeploy.error":"取消部署流程失敗","ticket.undeploy.confirm.title":"取消部署確認","ticket.undeploy.confirm.content":"確定要取消部署此流程嗎?"},IEr={"contact.list.new":"新朋友","contact.list.device":"內網設備","contact.list.group":"群聊","contact.list.channel":"頻道","contact.list.company":"企業聯繫人","contact.list.friend":"聯繫人","contact.search.placeholder":"搜索聯繫人...","contact.manager.button":"通訊錄管理","contact.manager.coming":"敬請期待","member.detail.nickname":"暱稱","member.detail.jobno":"工號","member.detail.seatno":"座位號","member.detail.telephone":"電話","member.detail.loading":"加載中...","member.detail.chat.button":"開始聊天"},NEr={"group.create.title":"發起群聊","group.create.contacts":"好友","group.create.members":"群成員","group.create.members.min":"至少選擇2名成員","group.create.creating":"創建群組中...","group.create.org.empty":"未選擇組織","group.create.success":"創建群組成功","group.create.failed":"創建群組失敗","group.create.loading":"加載成員中...","group.create.error":"加載成員失敗"},MEr={"robot.list.add":"添加智能體","robot.list.loading":"加載中","robot.list.delete.confirm":"刪除【{name}】?","robot.list.deleting":"刪除中","robot.list.delete.success":"刪除成功","robot.list.update.success":"更新成功","robot.list.create.success":"創建成功","robot.list.chat":"對話","robot.list.edit":"編輯","robot.list.delete":"刪除"},PEr={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},AEr={"upload.modal.title":"上傳文件","upload.drag.text":"點擊或拖拽文件至此處上傳","upload.drag.hint":"支持單個或批量上傳","upload.drag.hint.size":"支持单个或批量上传,文件大小不超过10MB","upload.drag.hint.withtype":"支持单个或批量上传 {acceptTypes} 格式的文件","upload.drag.hint.withtype.size":"支持单个或批量上传 {acceptTypes} 格式的文件,文件大小不超过10MB","upload.uploading":"{filename} 上傳中...","upload.success":"{filename} 上傳成功","upload.failed":"{filename} 上傳失敗","upload.delete.confirm":"確定要刪除此文件嗎?","upload.preview.image":"圖片預覽","upload.preview.file":"文件預覽","upload.button.ok":"確定","upload.button.cancel":"取消","upload.maxCount":"最多只能上傳 {maxCount} 個文件","upload.maxSize":"文件大小不能超過 {maxSize}MB"},DEr={"flow.title":"流程構建器","flow.new":"新流程","flow.copy":"複製","flow.run":"運行","flow.start":"開始","flow.logic":"邏輯","flow.action":"動作","flow.import":"導入","flow.export":"導出","flow.startChat":"模擬對話","flow.closeChat":"關閉對話","flow.json":"流程JSON","flow.container":"容器組件","flow.form":"表單組件","flow.parentNode":"父節點","flow.textField":"文本框","flow.numberField":"數字框","flow.datePicker":"日期選擇","flow.select":"下拉選擇","flow.checkbox":"多選框組","flow.radio":"單選按鈕","flow.properties":"屬性設置","flow.nodeName":"節點名稱","flow.nodeDesc":"節點描述","flow.componentType":"組件類型","flow.labelName":"標籤名稱","flow.options":"選項","flow.preview":"預覽","flow.submit":"提交","app.language":"語言","leftPanel.container":"容器組件","leftPanel.form":"表單組件","leftPanel.parentNode":"父節點","leftPanel.textField":"文本框","leftPanel.numberField":"數字框","leftPanel.datePicker":"日期選擇","leftPanel.select":"下拉選擇","leftPanel.checkbox":"多選框組","leftPanel.radio":"單選按鈕","propertyPanel.settings":"屬性設置","propertyPanel.nodeId":"節點ID","propertyPanel.nodeType":"節點類型","propertyPanel.nodeName":"節點名稱","propertyPanel.nodeDesc":"節點描述","propertyPanel.componentType":"組件類型","propertyPanel.labelName":"標籤名稱","propertyPanel.options":"選項","propertyPanel.placeholder.name":"請輸入節點名稱","propertyPanel.placeholder.desc":"請輸入節點描述","propertyPanel.placeholder.label":"請輸入標籤名稱","propertyPanel.placeholder.options":"按回車添加選項","nodes.textField.label":"文本框","nodes.numberField.label":"數字框","nodes.datePicker.label":"日期","nodes.select.label":"下拉選擇","nodes.checkbox.label":"多選框組","nodes.radio.label":"單選按鈕","nodes.unknown":"未知組件","formBuilder.title":"表單構建器","formBuilder.preview":"預覽","formBuilder.settings":"設置","formBuilder.addField":"添加欄位","formBuilder.delete":"刪除","formBuilder.moveUp":"上移","formBuilder.moveDown":"下移","formBuilder.fieldTypes":{text:"文本框",number:"數字框",date:"日期選擇",select:"下拉選擇",radio:"單選按鈕",checkbox:"複選框",textarea:"多行文本"},"formBuilder.placeholder":{formName:"請輸入表單名稱",fieldName:"請輸入欄位名稱",fieldLabel:"請輸入欄位標籤",options:"按回車添加選項"},"formBuilder.validation":{required:"必填",optional:"選填",unique:"唯一",min:"最小值",max:"最大值"},"formBuilder.import":"導入","formBuilder.export":"導出","formBuilder.import.success":"導入成功","formBuilder.import.error":"導入失敗,請檢查文件格式","formBuilder.export.success":"導出成功","formBuilder.export.error":"導出失敗","formBuilder.export.filename":"表單配置.json","formBuilder.canvas.empty":"拖拽表單欄位到這裡","formBuilder.field.delete":"刪除","formBuilder.field.moveUp":"上移","formBuilder.field.moveDown":"下移","formBuilder.field.placeholder":{text:"請輸入文本",number:"請輸入數字",date:"請選擇日期",select:"請選擇一個選項",radio:"請選擇一項",checkbox:"請選擇"},"flow.moveUp":"上移","flow.moveDown":"下移","flow.delete":"刪除","flow.option.1":"選項1","flow.option.2":"選項2","flow.option.3":"選項3","flow.controls.title":"流程控制","flow.minimap.title":"流程概覽","flow.canvas.label":"流程構建畫布","flow.background.label":"流程背景","flow.controls.label":"流程控制","flow.minimap.label":"流程概覽","flow.container.label":"流程構建器容器","flow.dragover.hint":"放置此處添加組件","flow.drop.hint":"組件已添加","flow.parentNode.default":"父節點","component.panel.title":"表單組件","component.input.title":"單行文本","component.textarea.title":"多行文本","component.select.title":"下拉選擇","component.radio.title":"單選框組","component.checkbox.title":"多選框組","component.datePicker.title":"日期選擇","component.timePicker.title":"時間選擇","component.switch.title":"開關","component.upload.title":"上傳","propertyPanel.save":"保存","propertyPanel.reset":"重置","theme.light":"淺色","theme.dark":"深色","theme.system":"跟隨系統","dashboard.settings":"設置","flow.startNode":"開始節點","form.submit":"提交","form.submitting":"提交中...","form.submitSuccess":"提交成功","form.submitError":"提交失敗","form.required":"必填項","preview.title":"表單預覽","preview.minimize":"最小化","preview.close":"關閉","preview.submit":"提交","preview.submitting":"提交中...","preview.submitSuccess":"提交成功","preview.submitError":"提交失敗","preview.required":"必填","preview.placeholder.text":"請輸入文本","preview.placeholder.number":"請輸入數字","preview.placeholder.date":"請選擇日期","preview.placeholder.select":"請選擇","preview.placeholder.radio":"請選擇一項","preview.placeholder.checkbox":"請選擇","formBuilder.header.title":"表單構建器","formBuilder.header.import":"導入","formBuilder.header.export":"導出","formBuilder.header.preview":"預覽","formBuilder.dragStart":"開始拖拽組件","formBuilder.dragEnd":"結束拖拽組件","formBuilder.dropSuccess":"組件添加成功","formBuilder.dropError":"組件添加失敗","ticket.title":"工單構建器","ticket.create":"創建工單","ticket.save":"保存工單","ticket.import":"導入","ticket.export":"導出","ticket.import.success":"導入成功","ticket.import.error":"導入失敗","ticket.export.success":"導出成功","ticket.export.error":"導出失敗","ticket.create.modal.title":"創建新流程","ticket.create.name":"流程名稱","ticket.create.key":"流程Key","ticket.create.type":"流程類型","ticket.create.description":"流程描述","ticket.create.submit":"創建","ticket.create.cancel":"取消","ticket.type.default":"默認流程","ticket.type.approval":"審批流程","ticket.type.service":"服務流程","ticket.type.ticket":"工單流程"},kEr={"welcome.modal.title":"未發現所在組織","welcome.modal.description":"您需要創建或加入已有組織","welcome.modal.join":"加入已有組織(即將上線)","welcome.modal.create":"創建組織","welcome.modal.input.placeholder":"請輸入組織名稱","welcome.message.org.required":"請創建或加入組織","welcome.message.create.success":"創建組織成功","welcome.message.create.failed":"創建組織失敗","welcome.message.verify.email":"請先驗證郵箱","welcome.message.verify.mobile":"請先驗證手機號","welcome.message.org.name.required":"請輸入組織名稱","welcome.message.org.creating":"創建組織中,請稍後...","welcome.verify.modal.title":"賬號驗證提示","welcome.verify.modal.description":"您的郵箱和手機號尚未驗證,為保障賬號安全,建議您儘快完成驗證。","welcome.verify.now":"立即驗證","welcome.verify.later":"稍後驗證"},LEr={...vEr,...yEr,..._Er,...bEr,...SEr,...EEr,...CEr,...gEr,...wEr,...mEr,...xEr,...TEr,...OEr,...REr,...hEr,...IEr,...NEr,...MEr,...PEr,...AEr,...DEr,...kEr},$Er={"app.title":"Bytedesk","app.logout":"Logout","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","footbar.network.normal":"Network Normal","footbar.network.disconnected":"Network Disconnected","footbar.anonymous.tip":"Anonymous mode, only supports communication between online devices in the same LAN","footbar.login.tip":"After login, supports offline messages and more features","footbar.login.skip":"Skip Login","footbar.anonymous.status":"Anonymous","footbar.login":"Login","footbar.logout":"Logout","footbar.logout.title":"Logout","footbar.logout.confirm":"Are you sure to logout?","footbar.serving.count":"Current serving count","footbar.serving.text":"Current serving: 0"},FEr={"common.yes":"Yes","common.no":"No","common.ok":"OK","common.cancel":"Cancel","common.confirm":"Confirm","common.save":"Save","common.delete":"Delete","common.edit":"Edit","common.create":"Create","common.loading":"Loading...","common.success":"Success","common.error":"Error","common.warning":"Warning","common.info":"Info","common.back":"Back","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","theme.light":"Light","theme.dark":"Dark","theme.system":"System"},BEr={"chat.copy.success":"Copy successful","chat.network.error":"Network connection failed, please check network","chat.thread.closing":"Ending conversation...","chat.thread.close.success":"Conversation ended successfully","chat.thread.close.confirm.title":"Are you sure to end the conversation?","chat.rate.invite.confirm.title":"Confirm to invite rating?","chat.menu.copy":"Copy","chat.menu.translate":"Translate","chat.menu.recall":"Recall","chat.menu.enlarge":"Enlarge","chat.menu.quickreply.add":"Add Quick Reply...","chat.menu.browser.open":"Open in Browser","chat.menu.forward":"Forward...","chat.menu.collect":"Collect","chat.menu.quote":"Quote","chat.translation.placeholder":"Please enter translation content...","chat.input.placeholder":"Please enter content, Ctrl+V to paste screenshot/image","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.screenshot":"Screenshot","chat.toolbar.autoreply":"Auto Reply","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Video Call","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.invite.rate":"Invite Rating","chat.navbar.transfer":"Transfer","chat.navbar.close":"End","chat.navbar.note":"Notebase","chat.navbar.kbase":"Knowledge Base","chat.right.quickreply":"Quick Reply","chat.right.userinfo":"User Info","chat.right.ai":"Copilot","chat.right.ticket":"Ticket","chat.right.llm":"LLM","chat.right.group":"Group Info","chat.right.member":"Member Info","chat.right.docview":"Doc View","chat.group.notice":"Notice","chat.group.members":"Members","chat.group.admins":"Admins","chat.group.robots":"Robots","chat.group.qrcode":"QR Code","chat.group.uid.error":"Group ID error"},jEr={"dashboard.error.message":"Failed to get data","dashboard.init.organization":"Initializing organization","dashboard.init.profile":"Initializing profile","dashboard.init.workgroups":"Initializing workgroups","dashboard.init.agent":"Initializing agent profile","dashboard.transfer.accept":"{nickname} has accepted the transfer","dashboard.transfer.reject":"{nickname} has rejected the transfer","dashboard.transfer.success":"Transfer request sent successfully, waiting for response"},UEr={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.ai":"AI Assistant","menu.dashboard.note":"Notebase","menu.dashboard.kbase":"Knowledge Base","menu.dashboard.mine":"Settings","menu.dashboard.queue":"Queue","menu.dashboard.leavemsg":"Messages","menu.dashboard.visitor":"Visitors","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon...","menu.dashboard.form":"Form","menu.dashboard.formbuilder":"Form Builder","menu.dashboard.flow":"Flow","menu.dashboard.flowgram":"Flowgram","menu.dashboard.flowbuilder":"Flow Builder","menu.dashboard.ticket":"Ticket","menu.dashboard.ticketbuilder":"Ticket Builder"},HEr={"profile.update.success":"Profile updated successfully","profile.form.avatar":"Avatar","profile.form.upload":"Upload","profile.form.username":"Username","profile.form.nickname":"Nickname","profile.form.description":"Description","profile.button.change.password":"Change Password","profile.button.change.email":"Change Email","profile.button.change.mobile":"Change Mobile","profile.email.verified":"Email Verified","profile.email.unverified":"Email Unverified","profile.mobile.verified":"Mobile Verified","profile.mobile.unverified":"Mobile Unverified","profile.email.change.title":"Change Email","profile.email.placeholder":"Enter email address","profile.email.required":"Please enter email address!","profile.email.format.invalid":"Invalid email format","profile.email.length.limit":"Email cannot exceed 50 characters","profile.email.verification.code.placeholder":"Enter verification code","profile.email.verification.code.countdown":"seconds","profile.email.verification.code.get":"Get Code","profile.email.verification.code.required":"Please enter verification code!","profile.email.not.changed":"Email is not changed!","profile.email.change.success":"Email changed successfully!","profile.email.format.error":"Invalid email format","profile.mobile.change.title":"Change Mobile","profile.mobile.placeholder":"Enter mobile number","profile.mobile.required":"Please enter mobile number!","profile.mobile.format.invalid":"Invalid mobile format","profile.mobile.verification.code.placeholder":"Enter verification code","profile.mobile.verification.code.countdown":"seconds","profile.mobile.verification.code.get":"Get Code","profile.mobile.verification.code.required":"Please enter verification code!","profile.mobile.not.changed":"Mobile number is not changed!","profile.mobile.change.success":"Mobile number changed successfully!","profile.mobile.format.error":"Invalid mobile format","profile.password.change.title":"Change Password","profile.password.old":"Old Password","profile.password.old.empty":"Old password can be empty for phone login users","profile.password.new":"New Password","profile.password.confirm":"Confirm Password","profile.password.length.error":"Password must be at least 6 characters","profile.password.mismatch":"The two passwords do not match","profile.password.change.success":"Password changed successfully!"},zEr={"setting.menu.title":"Settings","setting.menu.profile":"Profile","setting.menu.basic":"Basic Settings","setting.menu.agent":"Agent Settings","setting.menu.model":"AI Model","setting.menu.certification":"Certification","setting.menu.qrcode":"QR Code","setting.menu.shortcut":"Shortcuts","setting.menu.click":"Menu clicked","setting.save.success":"Settings saved successfully","setting.save.error":"Failed to save settings","setting.load.error":"Failed to load settings","setting.header.profile":"Personal Profile","setting.header.basic":"Basic Settings","setting.header.agent":"Agent Settings","setting.header.model":"AI Model Settings","setting.basic.sound.on":"Message Sound On","setting.basic.sound.off":"Message Sound Off","setting.basic.notification.on":"Network Status Notification On","setting.basic.notification.off":"Network Status Notification Off","setting.basic.connection.status":"Connection Status:","setting.basic.connection.connected":"✅Connected","setting.basic.connection.disconnected":"❌Disconnected","setting.basic.startup":"Start on Boot:","setting.basic.startup.on":"Enable","setting.basic.startup.off":"Disable","setting.basic.theme":"Theme:","setting.basic.language":"Language:","setting.basic.mode":"Mode:","setting.basic.mode.team":"Team Mode","setting.basic.mode.agent":"Agent Mode","setting.basic.mode.personal":"Personal Mode"},VEr={"ticket.create.title":"Create Ticket","ticket.edit.title":"Edit Ticket","ticket.form.uid":"UID","ticket.form.title":"Title","ticket.form.title.required":"Please enter ticket title","ticket.form.title.placeholder":"Enter ticket title","ticket.form.description":"Description","ticket.form.description.required":"Please enter ticket description","ticket.form.description.placeholder":"Enter ticket description","ticket.form.status":"Status","ticket.form.status.required":"Please select ticket status","ticket.form.priority":"Priority","ticket.form.priority.required":"Please select priority","ticket.form.category":"Category","ticket.form.category.required":"Please select category","ticket.form.category.placeholder":"Select category","ticket.form.user":"Customer","ticket.form.user.placeholder":"Select customer","ticket.form.assignee":"Assignee","ticket.form.assignee.placeholder":"Select assignee","ticket.form.reporter":"Reporter","ticket.form.reporter.placeholder":"Select reporter","ticket.form.workgroup":"Workgroup","ticket.form.workgroup.required":"Please select workgroup","ticket.form.workgroup.placeholder":"Select workgroup","ticket.form.thread":"Related Conversation","ticket.form.thread.placeholder":"Select related conversation","ticket.form.thread.none":"No Association","ticket.create.success":"Ticket created successfully","ticket.create.failed":"Failed to create ticket","ticket.update.success":"Ticket updated successfully","ticket.update.failed":"Failed to update ticket","ticket.submit.error":"Failed to submit ticket","ticket.delete.success":"Ticket deleted successfully","ticket.delete.error":"Failed to delete ticket","ticket.load.error":"Failed to load tickets","ticket.messages.load.error":"Failed to load ticket messages","ticket.message.send.error":"Failed to send message","ticket.workgroup.load.error":"Failed to load workgroups","ticket.category.load.error":"Failed to load categories","ticket.list.title":"Tickets","ticket.list.empty":"No tickets found","ticket.list.search.placeholder":"Search tickets","ticket.list.create":"Create Ticket","ticket.list.total":"Total","ticket.action.edit":"Edit","ticket.action.delete":"Delete","ticket.action.assign":"Assign","ticket.action.close":"Close","ticket.action.reopen":"Reopen","ticket.delete.confirm":"Are you sure to delete this ticket?","ticket.conversation.title":"Conversation","ticket.conversation.empty":"Select a ticket to view conversation","ticket.conversation.input.placeholder":"Type your message...","ticket.details.title":"Ticket Details","ticket.details.empty":"Select a ticket to view details","ticket.form.createdAt":"Created At","ticket.form.updatedAt":"Updated At","ticket.type.agent":"Agent","ticket.type.workgroup":"Workgroup","ticket.type":"Type","ticket.assignee":"Assignee","ticket.reporter":"Reporter","ticket.category":"Category","ticket.steps.title":"Processing Steps","ticket.form.upload.button":"Upload Attachments","ticket.upload.success":"File uploaded successfully","ticket.upload.failed":"File upload failed","ticket.current.filters":"Current Filters","ticket.filter.by.status":"Filter by Status","ticket.filter.by.priority":"Filter by Priority","ticket.filter.by.assignment":"Filter by Assignment","ticket.filter.by.time":"Filter by Time","ticket.filter.status_all":"All Status","ticket.filter.status_new":"New","ticket.filter.status_assigned":"Assigned","ticket.filter.status_in_progress":"In Progress","ticket.filter.status_pending":"Pending","ticket.filter.status_on_hold":"On Hold","ticket.filter.status_reopened":"Reopened","ticket.filter.status_resolved":"Resolved","ticket.filter.status_closed":"Closed","ticket.filter.status_cancelled":"Cancelled","ticket.filter.priority_all":"All Priority","ticket.filter.priority_lowest":"Lowest","ticket.filter.priority_low":"Low","ticket.filter.priority_medium":"Medium","ticket.filter.priority_high":"High","ticket.filter.priority_urgent":"Urgent","ticket.filter.priority_critical":"Critical","ticket.filter.assignment_all":"All","ticket.filter.assignment_my_tickets":"My Tickets","ticket.filter.assignment_unassigned":"Unassigned","ticket.filter.assignment_my_workgroup":"My Workgroup","ticket.filter.assignment_my_created":"Created by Me","ticket.filter.assignment_my_assigned":"Assigned to Me","ticket.filter.time_all":"All Time","ticket.filter.time_today":"Today","ticket.filter.time_yesterday":"Yesterday","ticket.filter.time_this_week":"This Week","ticket.filter.time_last_week":"Last Week","ticket.filter.time_this_month":"This Month","ticket.filter.time_last_month":"Last Month","ticket.content.title":"Ticket","ticket.content.number":"No.","ticket.delete.title":"Delete Ticket","ticket.delete.content":"Are you sure you want to delete this ticket?","ticket.delete.failed":"Failed to delete ticket","ticket.loading":"Loading tickets...","ticket.empty":"No tickets found","ticket.palette.startEvent":"Start Event","ticket.palette.task":"Task","ticket.palette.gateway":"Gateway","ticket.palette.dataObject":"Data Object","ticket.select.process":"Select Process","ticket.import.no.file":"No file selected","ticket.import.read.error":"Failed to read file","ticket.import.error":"Failed to import diagram: {error}","ticket.save.success":"BPMN saved successfully","ticket.autosave.success":"Auto-saved successfully","ticket.autosave.error":"Failed to auto-save","ticket.properties.title":"Properties","ticket.properties.noSelection":"No element selected","ticket.properties.id":"ID","ticket.properties.name":"Name","ticket.properties.type":"Type","ticket.properties.documentation":"Documentation","ticket.properties.assignee":"Assignee","ticket.properties.priority":"Priority","ticket.fetch.processes.error":"Failed to fetch processes","ticket.no.process":"No processes found, please create a process first","ticket.save.error":"Failed to save process","ticket.create.loading":"Creating process...","ticket.fetch.processes.loading":"Loading processes...","ticket.fetch.processes.empty":"No processes found","ticket.fetch.processes.success":"Processes fetched successfully","ticket.delete":"Delete","ticket.deploy":"Deploy","ticket.undeploy":"Undeploy","ticket.deploy.loading":"Deploying process...","ticket.undeploy.loading":"Undeploying process...","ticket.deploy.success":"Process deployed successfully","ticket.undeploy.success":"Process undeployed successfully","ticket.deploy.error":"Failed to deploy process","ticket.undeploy.error":"Failed to undeploy process","ticket.undeploy.confirm.title":"Confirm Undeploy","ticket.undeploy.confirm.content":"Are you sure you want to undeploy this process?"},GEr={i18_file_assistant:"File Assistant",slogan:"Chat As A Service","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Ticket","menu.dashboard.leavemsg":"Leave Msg","menu.dashboard.visitor":"Visitor","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.dashboard.mine":"Mine","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Webrtc","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.screenshot":"Screenshot","chat.toolbar.invite.rate":"InviteRate","chat.toolbar.autoreply":"AutoReply","chat.toolbar.autoreply.on":"AutoReply(On)","chat.navbar.transfer":"Transfer","chat.navbar.ticket":"Ticket","chat.navbar.crm":"Crm","chat.navbar.close":"Close","chat.navbar.category":"Category","chat.navbar.ai":"AI","chat.navbar.queue":"Queue","chat.right.ai":"Copilot","chat.right.quickreply":"QuickReply","chat.right.ticket":"Ticket","chat.right.userinfo":"UserInfo","chat.right.llm":"Llm","chat.right.docview":"DocView","chat.right.group":"Group","chat.right.member":"Member","chat.ai.summary":"Thread Summary","chat.ai.switch":"Switch","chat.thread.nomore":"No More","chat.message.loadmore":"Load More","dashboard.footbar.logout":"Logout",SERVICE:"Customer Service Robot",MARKETING:"Marketing Robot",KNOWLEDGEBASE:"Knowledgebase Robot",QA:"QA Robot",AGENT_ASSISTANT:"Agent Asistant",loading:"Loading",create:"Create",creating:"Creating","create.success":"Create success","create.fail":"Create fail",update:"Update",updating:"Updating","update.success":"Update success","update.fail":"Update fail",save:"Save",saving:"Saving",email:"Email","email.verified":"Email Verified","email.unverified":"Email Unverified",mobile:"Mobile","mobile.verified":"Mobile Verified","mobile.unverified":"Mobile Unverified",captcha:"Captcha",logging:"Logging","login.success":"Login Success","login.error":"Login Failed",registering:"Registering","register.success":"Register Success","register.error":"Register Failed","username.change.tip":"Username(should re login after changed)",createKb:"Create Knowledge Base",createDept:"Create Department",upload:"Upload",import:"Import",export:"Export","download.template":"Download Template",open:"Open",copy:"Copy","copy.success":"Copy success",ok:"OK",cancel:"Cancel",bind:"Bind",edit:"Edit",editing:"Editing","edit.success":"Edit success","edit.fail":"Edit fail",delete:"Delete",deleting:"Deleting",deleteTip:"Delete Tip",deleteAffirm:"Are u sure to delete","delete.success":"Delete success","delete.fail":"Delete fail","process.success":"Process success","process.fail":"Process fail",preview:"Preview",close:"Close",closing:"Closing",closeTip:"Close Tip",closeASure:"Are u sure to close","close.success":"Close success",choose:"Choose","leavemsg.enabled":"Leave Message Enabled",transfer:"Transfer","transfer.success":"Transfer success","transfer.fail":"Transfer fail","transfer.reason":"Transfer Reason",refresh:"Refresh",noAgent:"No Agent Available"},WEr={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Chat As A Service","pages.login.accountLogin.tab":"Account Login","pages.login.accountLogin.errorMessage":"Incorrect username/password(admin/ant.design)","pages.login.failure":"Login failed, please try again!","pages.login.success":"Login successful!","pages.login.username.placeholder":"Email","pages.login.username.required":"Please input your username!","pages.login.password.placeholder":"Password","pages.login.repassword.placeholder":"RePassword","pages.login.password.required":"Please input your password!","pages.login.repassword.required":"Please input your password!","pages.login.phoneLogin.tab":"Phone Login","pages.login.phoneLogin.errorMessage":"Verification Code Error","pages.login.phoneNumber.placeholder":"Phone Number","pages.login.phoneNumber.required":"Please input your phone number!","pages.login.phoneNumber.invalid":"Phone number is invalid!","pages.login.captcha.placeholder":"Verification Code","pages.login.captcha.required":"Please input verification code!","pages.login.phoneLogin.getVerificationCode":"Get Code","pages.login.anonymousLogin":"Anonymous Login","pages.getCaptchaSecondText":"sec(s)","pages.login.scanLogin.tab":"Scan Login","pages.login.rememberMe":"Remember me","pages.login.forgotPassword":"Forgot Password ?","pages.login.submit":"Login","pages.login.loginWith":"Login with :","pages.login.register":"Register","pages.login.registerAccount":"Register Account","pages.login.auto.register":"Unregisterd Mobile will auto register","pages.welcome.link":"Welcome","pages.robot.new":"New","pages.robot.chat":"Chat","pages.robot.edit":"Edit","pages.robot.delete":"Delete","pages.robot.upload":"Upload","pages.robot.tab.basic":"Basic","pages.robot.tab.kb":"Knowledge Base","pages.robot.tab.channel":"Channel","pages.robot.tab.statistic":"Statistic","pages.robot.tab.advanced":"Advanced","pages.robot.tab.flow":"Flow","pages.robot.tab.avatar":"Avatar","pages.robot.tab.title":"Title","pages.robot.tab.welcomeTip":"welcomeTip","pages.robot.tab.description":"Description","pages.robot.tab.preview":"Preview","pages.robot.tab.website":"Website","pages.robot.tab.helpdesk":"Helpdesk","pages.robot.tab.icp":"ICP 17041763-1","pages.robot.tab.police":"44030502008688","pages.robot.kb.file":"File","pages.robot.kb.text":"Text","pages.robot.kb.qa":"Q&A","pages.robot.kb.web":"Website","pages.robot.file.title":"Title","pages.robot.file.content":"Content","pages.robot.file.type":"Type","pages.robot.file.size":"Size","pages.robot.file.action":"Action","pages.robot.file.delete":"Delete","pages.robot.file.save":"Save","pages.robot.file.cancel":"Cancel","pages.robot.file.uploading":"Uploading...","pages.robot.file.name_invalid":"File name should not contain _","pages.robot.file.parse":"Parse File Content","pages.setting":"Settings","pages.logout":"Logout","pages.footer.website":"Bytedesk","pages.footer.helpcenter":"help","pages.login.remember":"remember me","pages.agent.tab.basic":"Basic","pages.agent.robot":"Robot","pages.agent.service.settings":"Service Settings","pages.agent.service.settings.topTip":"Top Tip","pages.agent.service.settings.welcomeTip":"Welcome Tip","pages.agent.service.settings.leavemsgTip":"Leavemsg Tip","pages.agent.service.settings.autoCloseMin":"Auto Close Min","pages.agent.service.settings.showLogo":"Show Logo","pages.agent.service.settings.maxThreadCount":"Max Thread Count","pages.advanced.faq":"FAQ","pages.advanced.quickButton":"Quick Buttons","pages.advanced.faqGuess":"Smart Suggestions","pages.advanced.faqHot":"Hot Questions","pages.advanced.faqShortcut":"Quick Replies","pages.advanced.rate":"Satisfaction Rating","pages.advanced.autoreply":"Auto Reply","pages.advanced.leaveMsg":"Leave Message","pages.advanced.survey":"Survey","pages.advanced.history":"History","pages.advanced.inputAssociation":"Input Association","pages.advanced.antiHarassment":"Captcha Settings","pages.advanced.captcha":"Captcha Settings","pages.advanced.showPreForm":"Show PreForm","pages.advanced.showHistory":"Show History","pages.advanced.showInputAssociation":"Show Input Association","pages.advanced.showCaptcha":"Show Captcha","pages.login.country.placeholder":"Select Country/Region","pages.login.country.china":"China","pages.login.country.hongkong":"Hong Kong","pages.login.country.taiwan":"Taiwan","pages.login.country.macao":"Macao","pages.login.country.japan":"Japan","pages.login.country.korea":"Korea","pages.login.country.usa":"United States","pages.login.country.canada":"Canada","pages.login.country.uk":"United Kingdom","pages.login.country.germany":"Germany","pages.login.country.france":"France","pages.login.country.australia":"Australia","pages.login.country.singapore":"Singapore","pages.login.country.malaysia":"Malaysia","pages.login.country.thailand":"Thailand","pages.login.country.vietnam":"Vietnam","pages.login.country.philippines":"Philippines","pages.login.country.indonesia":"Indonesia","pages.login.country.italy":"Italy","pages.login.country.spain":"Spain","pages.login.country.russia":"Russia","pages.login.country.newzealand":"New Zealand","pages.anonymous.title":"Anonymous Mode","pages.anonymous.home":"Home","pages.anonymous.contact":"Contacts","pages.anonymous.robot":"Robot","pages.anonymous.setting":"Settings","pages.anonymous.welcome":"Welcome to Anonymous Mode","pages.anonymous.description":"You can use system features anonymously in this mode","block.title":"Block Settings","block.type":"Block Type","block.user":"Block User","block.ip":"Block IP","block.permanent":"Permanent Block","block.until":"Block Until","block.until.required":"Please select block end time"},YEr={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.queue.tip":"Queue","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.queue.empty":"Queue empty","i18n.queue.accept":"accept","i18n.system.notification":"System Notification","i18n.old.password.wrong":"Old password is incorrect","i18n.change.password":"Change Password","i18n.auth.captcha.send.success":"Captcha Send success","i18n.auth.captcha.error":"Captcha Error","i18n.auth.captcha.expired":"Captcha Expired","i18n.auth.captcha.already.send":"Captcha Already Send","i18n.auth.captcha.validate.failed":"Captcha Validate Failed","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.loading":"Loading","i18n.load.more":"Load more","i18n.load.nomore":"No more","i18n.typing":"Typing","i18n.robot":"Robot","i18n.agent":"Agent","i18n.workgroup":"WorkGroup","i18n.group":"Group","i18n.rate.invite":"Rate Invite","i18n.ticket":"Ticket","i18n.notice":"Notice","i18n.notice.title":"Notice","i18n.notice.content":"Notice Content","i18n.notice.ip":"IP Address","i18n.notice.ipLocation":"IP Location","i18n.notice.parse.file.success":"Parse file success","i18n.notice.parse.file.error":"Parse file error","i18n.DEPT.ALL":"All","i18n.DEPT.ADMIN":"Admin","i18n.DEPT.HR":"HR","i18n.DEPT.ORG":"Org","i18n.DEPT.IT":"IT","i18n.DEPT.MONEY":"Money","i18n.DEPT.MARKETING":"Marketing","i18n.DEPT.SALES":"Sales","i18n.DEPT.CS":"CustomerService","i18n.new.message":"New Message","i18n.file.assistant":"file assistant","i18n.clipboard.assistant":"clipboard assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.top.tip":"Top Tip","i18n.top.make":"Make Top","i18n.top.cancel":"Cancel Top","i18n.unread.make":"Mark as unread","i18n.unread.cancel":"Mark as read","i18n.star.make":"Make Star","i18n.star.cancel":"Cancel Star","i18n.disturb.make":"Make Disturb","i18n.disturb.cancel":"Cancel Disturb","i18n.transfer":"Transfer","i18n.hide":"Hide","i18n.network.disconnected":"Network disconnected","i18n.message.pulling":"Message pulling","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultRobotAgent","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.tip.title":"Tip","i18n.tip.network.disconnected":"Network disconnected","i18n.tip.network.connected":"Network connected","i18n.kb.name":"KbName","i18n.kb.platform.name":"Platform KbName","i18n.kb.helpcenter.name":"Helpdoc KbName","i18n.kb.llm.name":"Llm KbName","i18n.kb.keyword.name":"Keyword KbName","i18n.kb.faq.name":"Faq KbName","i18n.kb.autoreply.name":"AutoReply KbName","i18n.kb.quickreply.name":"QuickReply KbName","i18n.kb.taboo.name":"Taboo KbName","i18n.kb.description":"KbDescription","i18n.agent.nicknameKb":"DefaultAgentKbName","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed","i18n.online.chat":"Online Chat","i18n.JOB":"Job","i18n.LANGUAGE":"Language","i18n.TOOL":"Tool","i18n.WRITING":"Writing","i18n.RAG":"RAG","i18n.module.ai":"AI","i18n.module.void":"Void","i18n.module.service":"Service","i18n.module.ticket":"Ticket","i18n.black.user.already.exists":"User already blocked","i18n.ticket.category.technical_support":"Technical Support","i18n.ticket.category.service_request":"Service Request","i18n.ticket.category.consultation":"Consultation","i18n.ticket.category.complaint_suggestion":"Complaint Suggestion","i18n.ticket.category.operation_maintenance":"Operation Maintenance","i18n.ticket.category.other":"Other","i18n.vip.component":"VIP Component, Contact us for more details","i18n.vip.contactUs":"Contact us","i18n.vip.contactUrl":"https://www.bytedesk.com","i18n.ticket.process.name":"Ticket Process","i18n.thread.process.name":"Thread Process","flowgram.title":"Flow Diagram","flowgram.create":"Create","flowgram.import":"Import","flowgram.export":"Export","flowgram.save":"Save","flowgram.create.info":"Create new flow feature under development","flowgram.import.info":"Import flow feature under development","flowgram.export.info":"Export flow feature under development","flowgram.save.info":"Save flow feature under development","flowgram.select.flow":"Select Flow","flowgram.no.flow":"No Flow Available"},qEr={"login.privacy.required":"Please read and agree to the privacy agreement","login.privacy.agreement":"Agree to Privacy Agreement","login.switch.server":"Switch Server","login.success":"Login successful","login.failed":"Login failed","login.anonymous":"Anonymous Login","login.other.methods":"Other login methods","login.remember":"Remember me","login.forgot":"Forgot password?","login.register":"Register account","server.button.back":"Back","server.button.save":"Save","server.button.reset":"Reset","server.button.help":"Help","server.save.success":"Save successfully","server.reset.success":"Reset successfully, restored to default cloud server","server.custom.enable":"Enable Custom Server","server.api.url.label":"API Server URL (e.g. http://127.0.0.1:9003 or https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket Server URL (e.g. ws://127.0.0.1:9885/websocket or wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"Please enter correct server address"},KEr={"thread.error.message":"Failed to get data","thread.feature.unavailable":"TODO: This feature is not available yet","thread.menu.top":"Pin to Top","thread.menu.untop":"Unpin","thread.menu.read":"Mark as Read","thread.menu.unread":"Mark as Unread","thread.menu.mute":"Mute","thread.menu.unmute":"Unmute","thread.menu.transfer":"Transfer","thread.menu.block":"Block","thread.menu.ticket":"Create Ticket","thread.menu.crm":"View in CRM","thread.menu.summary":"Summary","thread.status.robot":"[Robot]","thread.status.agent":"[1-on-1]","thread.status.workgroup":"[Group]","thread.search.placeholder":"Search conversations...","thread.menu.filter":"Filter Threads","thread.menu.groupThread":"Group Thread","thread.menu.robotThread":"Robot Thread","thread.menu.workgroupThread":"Workgroup Thread","thread.menu.agentThread":"Agent Thread","thread.menu.ticketThread":"Ticket Thread","thread.menu.memberThread":"Member Thread","thread.menu.deviceThread":"Device Thread","thread.menu.systemThread":"System Thread","thread.status.loading":"Loading...","thread.status.empty":"No conversations","thread.status.error":"Failed to load conversations","thread.status.queue":"Queue ({count})","thread.status.network.offline":"Network disconnected","thread.status.network.online":"Network connected","thread.status.message.pulling":"Pulling messages...","thread.status.message.empty":"No messages","thread.status.message.error":"Failed to load messages","thread.status.message.end":"No more messages","thread.status.message.typing":"Typing...","thread.status.message.transfer":"Transferring...","thread.status.message.transferred":"Transferred","thread.status.message.closed":"Conversation closed","thread.dropdown.create.group":"Create Group Chat","thread.dropdown.create.ai":"Create AI Chat","thread.agent.status.online":"Online","thread.agent.status.offline":"Offline","thread.agent.status.busy":"Busy","thread.refresh.pull":"↓ Pull to refresh","thread.refresh.release":"↑ Release to refresh","thread.list.no.more":"No more data","thread.set.success":"Set successfully","thread.set.error":"Set failed","thread.menu.star":"Star","thread.menu.star.1":"Star Level 1","thread.menu.star.2":"Star Level 2","thread.menu.star.3":"Star Level 3","thread.menu.star.4":"Star Level 4","thread.menu.hide":"Hide","thread.status.text":"{status}","thread.status.online":"Online","thread.status.offline":"Offline","thread.status.busy":"🏃♀️Busy","thread.coming.soon":"Coming soon...","thread.menu.star.cancel":"Remove Star","thread.loading.more":"Loading more..."},XEr={"message.status.read":"Read","message.status.delivered":"Delivered","message.status.sending":"Sending","message.status.sent":"Sent","message.status.failed":"Failed to send","message.status.retry":"Retry","quickreply.search.placeholder":"Search","quickreply.button.send":"Send","quickreply.button.copy":"Copy","quickreply.button.create.category":"Create Category","quickreply.button.create.reply":"Create Quick Reply","quickreply.copy.success":"{content} copied to clipboard","category.form.edit.title":"Edit Category","category.form.create.title":"Create Category","category.form.name":"Category Name","category.form.name.required":"Please enter category name!","category.form.name.placeholder":"Enter category name","category.create.failed":"Failed to create category","quickreply.drawer.title":"{isEdit, select, true {Edit Quick Reply} other {New Quick Reply}}","quickreply.form.category":"Category","quickreply.form.category.required":"Please select a category","quickreply.form.category.placeholder":"Select a category","quickreply.form.type":"Type","quickreply.form.type.required":"Please select a type","quickreply.form.type.placeholder":"Select a type","quickreply.form.title":"Title","quickreply.form.title.required":"Please enter a title","quickreply.form.content":"Content","quickreply.type.text":"Text","quickreply.type.image":"Image","quickreply.type.video":"Video","quickreply.type.audio":"Audio","quickreply.type.file":"File","quickreply.upload.text":"Click or drag file to upload","quickreply.upload.success":"{filename} uploaded successfully","quickreply.upload.error":"{filename} upload failed","quickreply.upload.uploading":"{filename} uploading","quickreply.form.validate.error":"Please check the form"},QEr={"customer.info.basic":"Basic Info","customer.info.browser":"Browser Info","customer.info.os":"OS Info","customer.info.device":"Device Info","customer.info.browse.record":"Browse Record","customer.info.tag":"Tag Info","customer.info.load.error":"Failed to load visitor info","customer.info.add.crm":"Add to CRM","customer.info.add.tag":"Add Tag","customer.basic.nickname":"Nickname","customer.basic.location":"IP Location","customer.basic.note":"Note","customer.basic.client":"Client","customer.basic.status":"Status","customer.basic.empty":"N/A","black.title":"Block Settings","black.type":"Block Type","black.type.required":"Please select at least one block type","black.user":"Block User","black.ip":"Block IP","black.permanent":"Permanent Block","black.until":"Block Until","black.until.required":"Please select block end time","black.reason":"Block Reason","black.reason.required":"Please enter block reason","black.reason.placeholder":"Enter reason for blocking","black.success":"Block successfully"},ZEr={"contact.list.new":"New Friends","contact.list.device":"LAN Devices","contact.list.group":"Groups","contact.list.channel":"Channels","contact.list.company":"Company Contacts","contact.list.friend":"Contacts","contact.search.placeholder":"Search contacts...","contact.manager.button":"Contact Manager","contact.manager.coming":"Coming soon...","member.detail.nickname":"Nickname","member.detail.jobno":"Job No.","member.detail.seatno":"Seat No.","member.detail.telephone":"Telephone","member.detail.loading":"Loading...","member.detail.chat.button":"Start Chat"},JEr={"autoreply.title":"Auto Reply","autoreply.enable.label":"Enable Auto Reply","autoreply.type.label":"Auto Reply Type","autoreply.type.fixed":"Fixed Reply","autoreply.type.keyword":"Keyword Match","autoreply.type.llm":"AI Model Reply","autoreply.fixed.add":"Add Fixed Reply","autoreply.fixed.select":"Select Fixed Reply","autoreply.fixed.type":"Fixed Reply Type","autoreply.fixed.content":"Fixed Reply Content","autoreply.content.text":"Text","autoreply.content.image":"Image","autoreply.content.video":"Video","autoreply.content.audio":"Audio","autoreply.content.file":"File","autoreply.save.loading":"Saving...","autoreply.save.success":"Saved successfully","autoreply.save.error":"Failed to save","autoreply.keyword.add":"Add Keyword Knowledge Base","autoreply.keyword.select":"Select Keyword Knowledge Base","autoreply.llm.add":"Add AI Model Knowledge Base","autoreply.llm.select":"Select AI Model Knowledge Base"},e1r={"queue.accepting":"Accepting...","queue.accept.success":"Accepted successfully","queue.accept.failed":"Failed to accept","queue.accept":"Accept","queue.empty":"No queuing visitors","queue.loading":"Loading queue...","queue.error":"Failed to load queue","queue.count":"{count} visitors queuing","queue.wait.time":"Estimated wait time: {minutes} minutes"},t1r={"group.create.title":"Create Group Chat","group.create.contacts":"Contacts","group.create.members":"Members","group.create.members.min":"Please select at least 2 members","group.create.creating":"Creating group...","group.create.org.empty":"No organization selected","group.create.success":"Group created successfully","group.create.failed":"Failed to create group","group.create.loading":"Loading members...","group.create.error":"Failed to load members"},n1r={"upload.modal.title":"Upload Files","upload.drag.text":"Click or drag files here to upload","upload.drag.hint":"Support for single or bulk upload","upload.drag.hint.size":"Support for single or bulk upload, file size should not exceed 10MB","upload.drag.hint.withtype":"Support for single or bulk upload of {acceptTypes} format files","upload.drag.hint.withtype.size":"Support for single or bulk upload of {acceptTypes} format files, file size should not exceed 10MB","upload.uploading":"{filename} uploading...","upload.success":"{filename} uploaded successfully","upload.failed":"{filename} upload failed","upload.delete.confirm":"Are you sure to delete this file?","upload.preview.image":"Image Preview","upload.preview.file":"File Preview","upload.button.ok":"OK","upload.button.cancel":"Cancel","upload.maxCount":"Cannot upload more than {maxCount} files","upload.maxSize":"File size cannot exceed {maxSize}MB"},r1r={"flow.title":"Flow Builder","flow.new":"New Flow","flow.copy":"Copy","flow.run":"Run","flow.start":"Start","flow.logic":"Logic","flow.json":"Flow JSON","flow.action":"Action","flow.import":"Import","flow.export":"Export","flow.startChat":"Start Chat","flow.closeChat":"Close Chat","flow.container":"Container Components","flow.form":"Form Components","flow.parentNode":"Parent Node","flow.textField":"Text Field","flow.numberField":"Number Field","flow.datePicker":"Date Picker","flow.select":"Select","flow.checkbox":"Checkbox Group","flow.radio":"Radio Group","flow.properties":"Properties","flow.nodeName":"Node Name","flow.nodeDesc":"Node Description","flow.componentType":"Component Type","flow.labelName":"Label Name","flow.options":"Options","flow.preview":"Preview","flow.submit":"Submit","app.language":"Language","leftPanel.container":"Container Components","leftPanel.form":"Form Components","leftPanel.parentNode":"Parent Node","leftPanel.textField":"Text Field","leftPanel.numberField":"Number Field","leftPanel.datePicker":"Date Picker","leftPanel.select":"Select","leftPanel.checkbox":"Checkbox Group","leftPanel.radio":"Radio Group","propertyPanel.settings":"Properties","propertyPanel.nodeId":"Node ID","propertyPanel.nodeType":"Node Type","propertyPanel.nodeName":"Node Name","propertyPanel.nodeDesc":"Node Description","propertyPanel.componentType":"Component Type","propertyPanel.labelName":"Label Name","propertyPanel.options":"Options","propertyPanel.placeholder.name":"Please input node name","propertyPanel.placeholder.desc":"Please input node description","propertyPanel.placeholder.label":"Please input label name","propertyPanel.placeholder.options":"Press enter to add option","nodes.textField.label":"Text Field","nodes.numberField.label":"Number Field","nodes.datePicker.label":"Date","nodes.select.label":"Select","nodes.checkbox.label":"Checkbox Group","nodes.radio.label":"Radio Group","nodes.unknown":"Unknown Component","formBuilder.title":"Form Builder","formBuilder.preview":"Preview","formBuilder.settings":"Settings","formBuilder.addField":"Add Field","formBuilder.delete":"Delete","formBuilder.moveUp":"Move Up","formBuilder.moveDown":"Move Down","formBuilder.fieldTypes":{text:"Text Field",number:"Number Field",date:"Date Picker",select:"Select",radio:"Radio",checkbox:"Checkbox",textarea:"Text Area"},"formBuilder.placeholder":{formName:"Please input form name",fieldName:"Please input field name",fieldLabel:"Please input field label",options:"Press enter to add option"},"formBuilder.validation":{required:"Required",optional:"Optional",unique:"Unique",min:"Min",max:"Max"},"formBuilder.import":"Import","formBuilder.export":"Export","formBuilder.import.success":"Import successful","formBuilder.import.error":"Import failed, please check file format","formBuilder.export.success":"Export successful","formBuilder.export.error":"Export failed","formBuilder.export.filename":"form-config.json","formBuilder.dragStart":"Start dragging component","formBuilder.dragEnd":"End dragging component","formBuilder.dropSuccess":"Component added successfully","formBuilder.dropError":"Failed to add component","formBuilder.canvas.empty":"Drag and drop form fields here","formBuilder.field":{delete:"Delete",moveUp:"Move Up",moveDown:"Move Down",placeholder:{text:"Please input text",number:"Please input number",date:"Please select date",select:"Please select an option",radio:"Please select one",checkbox:"Please select"}},"flow.moveUp":"Move Up","flow.moveDown":"Move Down","flow.delete":"Delete","flow.option.1":"Option 1","flow.option.2":"Option 2","flow.option.3":"Option 3","flow.controls.title":"Flow Controls","flow.minimap.title":"Flow Overview","flow.canvas.label":"Flow Builder Canvas","flow.background.label":"Flow Background","flow.controls.label":"Flow Controls","flow.minimap.label":"Flow Overview","flow.container.label":"Flow Builder Container","flow.dragover.hint":"Drop here to add component","flow.drop.hint":"Component added","flow.parentNode.default":"Parent Node","component.panel.title":"Form Components","component.input.title":"Text Input","component.textarea.title":"Text Area","component.select.title":"Select","component.radio.title":"Radio Group","component.checkbox.title":"Checkbox Group","component.datePicker.title":"Date Picker","component.timePicker.title":"Time Picker","component.switch.title":"Switch","component.upload.title":"Upload","propertyPanel.save":"Save","propertyPanel.reset":"Reset","theme.light":"Light","theme.dark":"Dark","theme.system":"System","dashboard.settings":"Settings","flow.startNode":"Start Node","form.submit":"Submit","form.submitting":"Submitting...","form.submitSuccess":"Submit Success","form.submitError":"Submit Failed","form.required":"Required","preview.title":"Form Preview","preview.minimize":"Minimize","preview.close":"Close","preview.submit":"Submit","preview.submitting":"Submitting...","preview.submitSuccess":"Submit Success","preview.submitError":"Submit Failed","preview.required":"Required","preview.placeholder.text":"Please input text","preview.placeholder.number":"Please input number","preview.placeholder.date":"Please select date","preview.placeholder.select":"Please select","preview.placeholder.radio":"Please select one","preview.placeholder.checkbox":"Please select","formBuilder.header.title":"Form Builder","formBuilder.header.import":"Import","formBuilder.header.export":"Export","formBuilder.header.preview":"Preview","ticket.title":"Ticket Builder","ticket.create":"Create Ticket Flow","ticket.save":"Save Ticket Flow","ticket.import":"Import","ticket.export":"Export","ticket.import.success":"Import successful","ticket.import.error":"Import failed","ticket.export.success":"Export successful","ticket.export.error":"Export failed","ticket.create.error":"Failed to create diagram","ticket.create.modal.title":"Create New Process","ticket.create.name":"Process Name","ticket.create.key":"Process Key","ticket.create.type":"Process Type","ticket.create.description":"Description","ticket.create.submit":"Create","ticket.create.cancel":"Cancel","ticket.type.default":"Default Process","ticket.type.approval":"Approval Process","ticket.type.service":"Service Process","ticket.type.ticket":"Ticket Process"},i1r={"welcome.modal.title":"No Organization Found","welcome.modal.description":"You need to create or join an organization","welcome.modal.join":"Join Organization (Coming Soon)","welcome.modal.create":"Create Organization","welcome.modal.input.placeholder":"Please enter organization name","welcome.message.org.required":"Please create or join an organization","welcome.message.create.success":"Organization created successfully","welcome.message.create.failed":"Failed to create organization","welcome.message.verify.email":"Please verify your email first","welcome.message.verify.mobile":"Please verify your mobile number first","welcome.message.org.name.required":"Please enter organization name","welcome.message.org.creating":"Creating organization, please wait...","welcome.verify.modal.title":"Account Verification","welcome.verify.modal.description":"Your email and mobile number have not been verified. For account security, we recommend completing verification as soon as possible.","welcome.verify.now":"Verify Now","welcome.verify.later":"Verify Later"},o1r={...$Er,...FEr,...BEr,...jEr,...UEr,...HEr,...zEr,...VEr,...GEr,...WEr,...YEr,...qEr,...KEr,...XEr,...QEr,...ZEr,...JEr,...e1r,...t1r,...n1r,...r1r,...i1r},a1r={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},qut={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},As={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},ru={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},pb={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class gn{static getFirstMatch(n,r){const i=r.match(n);return i&&i.length>0&&i[1]||""}static getSecondMatch(n,r){const i=r.match(n);return i&&i.length>1&&i[2]||""}static matchAndReturnConst(n,r,i){if(n.test(r))return i}static getWindowsVersionName(n){switch(n){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(n){const r=n.split(".").splice(0,2).map(i=>parseInt(i,10)||0);if(r.push(0),r[0]===10)switch(r[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(n){const r=n.split(".").splice(0,2).map(i=>parseInt(i,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(n){return n.split(".").length}static compareVersions(n,r,i=!1){const o=gn.getVersionPrecision(n),a=gn.getVersionPrecision(r);let s=Math.max(o,a),l=0;const c=gn.map([n,r],u=>{const d=s-gn.getVersionPrecision(u),f=u+new Array(d+1).join(".0");return gn.map(f.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(i&&(l=s-Math.min(o,a)),s-=1;s>=l;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===l)return 0;s-=1}else if(c[0][s]<c[1][s])return-1}}static map(n,r){const i=[];let o;if(Array.prototype.map)return Array.prototype.map.call(n,r);for(o=0;o<n.length;o+=1)i.push(r(n[o]));return i}static find(n,r){let i,o;if(Array.prototype.find)return Array.prototype.find.call(n,r);for(i=0,o=n.length;i<o;i+=1){const a=n[i];if(r(a,i))return a}}static assign(n,...r){const i=n;let o,a;if(Object.assign)return Object.assign(n,...r);for(o=0,a=r.length;o<a;o+=1){const s=r[o];typeof s=="object"&&s!==null&&Object.keys(s).forEach(c=>{i[c]=s[c]})}return n}static getBrowserAlias(n){return a1r[n]}static getBrowserTypeByAlias(n){return qut[n]||""}}const ea=/version\/(\d+(\.?_?\d+)+)/i,s1r=[{test:[/googlebot/i],describe(e){const n={name:"Googlebot"},r=gn.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/opera/i],describe(e){const n={name:"Opera"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/opr\/|opios/i],describe(e){const n={name:"Opera"},r=gn.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/SamsungBrowser/i],describe(e){const n={name:"Samsung Internet for Android"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/Whale/i],describe(e){const n={name:"NAVER Whale Browser"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/MZBrowser/i],describe(e){const n={name:"MZ Browser"},r=gn.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/focus/i],describe(e){const n={name:"Focus"},r=gn.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/swing/i],describe(e){const n={name:"Swing"},r=gn.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/coast/i],describe(e){const n={name:"Opera Coast"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const n={name:"Opera Touch"},r=gn.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/yabrowser/i],describe(e){const n={name:"Yandex Browser"},r=gn.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/ucbrowser/i],describe(e){const n={name:"UC Browser"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/Maxthon|mxios/i],describe(e){const n={name:"Maxthon"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/epiphany/i],describe(e){const n={name:"Epiphany"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/puffin/i],describe(e){const n={name:"Puffin"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/sleipnir/i],describe(e){const n={name:"Sleipnir"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/k-meleon/i],describe(e){const n={name:"K-Meleon"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/micromessenger/i],describe(e){const n={name:"WeChat"},r=gn.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/qqbrowser/i],describe(e){const n={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=gn.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/msie|trident/i],describe(e){const n={name:"Internet Explorer"},r=gn.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/\sedg\//i],describe(e){const n={name:"Microsoft Edge"},r=gn.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/edg([ea]|ios)/i],describe(e){const n={name:"Microsoft Edge"},r=gn.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/vivaldi/i],describe(e){const n={name:"Vivaldi"},r=gn.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/seamonkey/i],describe(e){const n={name:"SeaMonkey"},r=gn.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/sailfish/i],describe(e){const n={name:"Sailfish"},r=gn.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(n.version=r),n}},{test:[/silk/i],describe(e){const n={name:"Amazon Silk"},r=gn.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/phantom/i],describe(e){const n={name:"PhantomJS"},r=gn.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/slimerjs/i],describe(e){const n={name:"SlimerJS"},r=gn.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const n={name:"BlackBerry"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/(web|hpw)[o0]s/i],describe(e){const n={name:"WebOS Browser"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/bada/i],describe(e){const n={name:"Bada"},r=gn.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/tizen/i],describe(e){const n={name:"Tizen"},r=gn.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/qupzilla/i],describe(e){const n={name:"QupZilla"},r=gn.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/firefox|iceweasel|fxios/i],describe(e){const n={name:"Firefox"},r=gn.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/electron/i],describe(e){const n={name:"Electron"},r=gn.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/MiuiBrowser/i],describe(e){const n={name:"Miui"},r=gn.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/chromium/i],describe(e){const n={name:"Chromium"},r=gn.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/chrome|crios|crmo/i],describe(e){const n={name:"Chrome"},r=gn.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/GSA/i],describe(e){const n={name:"Google Search"},r=gn.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test(e){const n=!e.test(/like android/i),r=e.test(/android/i);return n&&r},describe(e){const n={name:"Android Browser"},r=gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/playstation 4/i],describe(e){const n={name:"PlayStation 4"},r=gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/safari|applewebkit/i],describe(e){const n={name:"Safari"},r=gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/.*/i],describe(e){const n=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,o=e.search("\\(")!==-1?r:n;return{name:gn.getFirstMatch(o,e),version:gn.getSecondMatch(o,e)}}}],l1r=[{test:[/Roku\/DVP/],describe(e){const n=gn.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:ru.Roku,version:n}}},{test:[/windows phone/i],describe(e){const n=gn.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:ru.WindowsPhone,version:n}}},{test:[/windows /i],describe(e){const n=gn.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=gn.getWindowsVersionName(n);return{name:ru.Windows,version:n,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const n={name:ru.iOS},r=gn.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(n.version=r),n}},{test:[/macintosh/i],describe(e){const n=gn.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=gn.getMacOSVersionName(n),i={name:ru.MacOS,version:n};return r&&(i.versionName=r),i}},{test:[/(ipod|iphone|ipad)/i],describe(e){const n=gn.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:ru.iOS,version:n}}},{test(e){const n=!e.test(/like android/i),r=e.test(/android/i);return n&&r},describe(e){const n=gn.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=gn.getAndroidVersionName(n),i={name:ru.Android,version:n};return r&&(i.versionName=r),i}},{test:[/(web|hpw)[o0]s/i],describe(e){const n=gn.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:ru.WebOS};return n&&n.length&&(r.version=n),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const n=gn.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||gn.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||gn.getFirstMatch(/\bbb(\d+)/i,e);return{name:ru.BlackBerry,version:n}}},{test:[/bada/i],describe(e){const n=gn.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:ru.Bada,version:n}}},{test:[/tizen/i],describe(e){const n=gn.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:ru.Tizen,version:n}}},{test:[/linux/i],describe(){return{name:ru.Linux}}},{test:[/CrOS/],describe(){return{name:ru.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const n=gn.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:ru.PlayStation4,version:n}}}],c1r=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const n=gn.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:As.mobile,vendor:"Huawei"};return n&&(r.model=n),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:As.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:As.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:As.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:As.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:As.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:As.tablet}}},{test(e){const n=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return n&&!r},describe(e){const n=gn.getFirstMatch(/(ipod|iphone)/i,e);return{type:As.mobile,vendor:"Apple",model:n}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:As.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:As.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:As.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:As.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:As.mobile,vendor:"Microsoft"}}},{test(e){const n=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&n>=3},describe(){return{type:As.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:As.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:As.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:As.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:As.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:As.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:As.tv}}}],u1r=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:pb.Blink};const r=gn.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:pb.EdgeHTML,version:r}}},{test:[/trident/i],describe(e){const n={name:pb.Trident},r=gn.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test(e){return e.test(/presto/i)},describe(e){const n={name:pb.Presto},r=gn.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test(e){const n=e.test(/gecko/i),r=e.test(/like gecko/i);return n&&!r},describe(e){const n={name:pb.Gecko},r=gn.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:pb.Blink}}},{test:[/(apple)?webkit/i],describe(e){const n={name:pb.WebKit},r=gn.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}}];class z3e{constructor(n,r=!1){if(n==null||n==="")throw new Error("UserAgent parameter can't be empty");this._ua=n,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(n){return n.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const n=gn.find(s1r,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.browser=n.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(n){return n?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const n=gn.find(l1r,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.os=n.describe(this.getUA())),this.parsedResult.os}getOSName(n){const{name:r}=this.getOS();return n?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(n=!1){const{type:r}=this.getPlatform();return n?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const n=gn.find(c1r,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.platform=n.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(n){return n?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const n=gn.find(u1r,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.engine=n.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return gn.assign({},this.parsedResult)}satisfies(n){const r={};let i=0;const o={};let a=0;if(Object.keys(n).forEach(l=>{const c=n[l];typeof c=="string"?(o[l]=c,a+=1):typeof c=="object"&&(r[l]=c,i+=1)}),i>0){const l=Object.keys(r),c=gn.find(l,d=>this.isOS(d));if(c){const d=this.satisfies(r[c]);if(d!==void 0)return d}const u=gn.find(l,d=>this.isPlatform(d));if(u){const d=this.satisfies(r[u]);if(d!==void 0)return d}}if(a>0){const l=Object.keys(o),c=gn.find(l,u=>this.isBrowser(u,!0));if(c!==void 0)return this.compareVersion(o[c])}}isBrowser(n,r=!1){const i=this.getBrowserName().toLowerCase();let o=n.toLowerCase();const a=gn.getBrowserTypeByAlias(o);return r&&a&&(o=a.toLowerCase()),o===i}compareVersion(n){let r=[0],i=n,o=!1;const a=this.getBrowserVersion();if(typeof a=="string")return n[0]===">"||n[0]==="<"?(i=n.substr(1),n[1]==="="?(o=!0,i=n.substr(2)):r=[],n[0]===">"?r.push(1):r.push(-1)):n[0]==="="?i=n.substr(1):n[0]==="~"&&(o=!0,i=n.substr(1)),r.indexOf(gn.compareVersions(a,i,o))>-1}isOS(n){return this.getOSName(!0)===String(n).toLowerCase()}isPlatform(n){return this.getPlatformType(!0)===String(n).toLowerCase()}isEngine(n){return this.getEngineName(!0)===String(n).toLowerCase()}is(n,r=!1){return this.isBrowser(n,r)||this.isOS(n)||this.isPlatform(n)}some(n=[]){return n.some(r=>this.is(r))}}/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class d1r{static getParser(n,r=!1){if(typeof n!="string")throw new Error("UserAgent should be a string");return new z3e(n,r)}static parse(n){return new z3e(n).getResult()}static get BROWSER_MAP(){return qut}static get ENGINE_MAP(){return pb}static get OS_MAP(){return ru}static get PLATFORMS_MAP(){return As}}const{defaultAlgorithm:f1r,darkAlgorithm:p1r}=cu,h1r={"zh-cn":pEr,"zh-tw":LEr,en:o1r},g1r=()=>{const{isDarkMode:e,locale:n}=m.useContext(Xl),r=new Vqt({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[i,o]=m.useState(!1),a=()=>{const l=d1r.getParser(window.navigator.userAgent);console.log("browser:",l),Yl?console.log("OsName:",l.getOSName()):console.log("BrowserName:",l.getBrowserName()),l.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&o(!0)},s=async()=>{if(console.log("getConfig"),await b5e(),Yl)console.log("is electron");else{await _5e();const l=A7();console.log("Base URL:",l)}};return m.useEffect(()=>{r8e(),a(),s()},[]),N.jsx(or,{locale:n,theme:{algorithm:e?p1r:f1r},children:N.jsx(Wqt,{client:r,children:N.jsx(Yut,{children:N.jsx(m.Suspense,{fallback:N.jsx("div",{children:"loading..."}),children:N.jsxs(KOn,{messages:h1r[n.locale],locale:n.locale,defaultLocale:"zh-cn",children:[i&&N.jsx(VSr,{children:N.jsx("link",{rel:"stylesheet",type:"text/css",href:Yyt})}),N.jsxs(J9,{children:[N.jsx(oqt,{}),N.jsx(EXt,{router:vSr})]})]})})})})})},m1r=()=>N.jsx("div",{className:"App",children:N.jsx(Eqt,{children:N.jsx(g1r,{})})});var Kut,V3e=Us;Kut=V3e.createRoot,V3e.hydrateRoot;const v1r=Kut(document.getElementById("root"));v1r.render(N.jsx(m1r,{}));export{Jm as a,so as r,Ph as u};
|