From f2a351ae1caf43118b1434c84f064760fcfae5a4 Mon Sep 17 00:00:00 2001 From: anyone-yuren <1003473088@qq.com> Date: Tue, 14 May 2024 15:21:34 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20anyone-y?= =?UTF-8?q?uren/react-antd-admin-pnpm@b167355b776b1d9d81da7a451b42c7060d99?= =?UTF-8?q?ecf8=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...tex-79fd201f.js => Translatex-227cdacd.js} | 2 +- assets/{api-adec7257.js => api-74c8c574.js} | 2 +- ...nt-up-48edea88.js => count-up-e2512a30.js} | 2 +- ...list-7462ea32.js => drag-list-916004ad.js} | 2 +- ...ze-33f7a149.js => drag-resize-d08fdbd2.js} | 2 +- ...646.js => index-3324e23b.1715700059687.js} | 62 +++++++++---------- ...d-87284309.js => image-upload-64969e02.js} | 2 +- .../{index-0e54c7e1.js => index-0a18a3d2.js} | 2 +- .../{index-fa5fcbe6.js => index-12dfe086.js} | 2 +- .../{index-4c932eeb.js => index-12eb48de.js} | 2 +- .../{index-bca57653.js => index-5e07c034.js} | 2 +- assets/index-66bd2c8e.js | 1 - .../{index-14e57f5a.js => index-781865e5.js} | 2 +- .../{index-f6885d90.js => index-7de6860e.js} | 2 +- .../{index-4e2f5616.js => index-9a160d80.js} | 2 +- .../{index-7f59d8be.js => index-c70257b5.js} | 2 +- .../{index-7bd58267.js => index-dad21183.js} | 2 +- .../{index-a3765b7b.js => index-df7dc3bf.js} | 2 +- assets/index-e4a40f17.js | 1 + .../{index-c414dc67.js => index-e62322f7.js} | 2 +- .../{index-ef7ae87b.js => index-f560b6f4.js} | 2 +- ...69561885.js => websiteSetting-da01dae2.js} | 2 +- index.html | 2 +- 23 files changed, 52 insertions(+), 52 deletions(-) rename assets/{Translatex-79fd201f.js => Translatex-227cdacd.js} (93%) rename assets/{api-adec7257.js => api-74c8c574.js} (99%) rename assets/{count-up-48edea88.js => count-up-e2512a30.js} (95%) rename assets/{drag-list-7462ea32.js => drag-list-916004ad.js} (99%) rename assets/{drag-resize-33f7a149.js => drag-resize-d08fdbd2.js} (99%) rename assets/entry/{index-13ba62d4.1715696327646.js => index-3324e23b.1715700059687.js} (91%) rename assets/{image-upload-87284309.js => image-upload-64969e02.js} (93%) rename assets/{index-0e54c7e1.js => index-0a18a3d2.js} (98%) rename assets/{index-fa5fcbe6.js => index-12dfe086.js} (98%) rename assets/{index-4c932eeb.js => index-12eb48de.js} (77%) rename assets/{index-bca57653.js => index-5e07c034.js} (99%) delete mode 100644 assets/index-66bd2c8e.js rename assets/{index-14e57f5a.js => index-781865e5.js} (95%) rename assets/{index-f6885d90.js => index-7de6860e.js} (96%) rename assets/{index-4e2f5616.js => index-9a160d80.js} (99%) rename assets/{index-7f59d8be.js => index-c70257b5.js} (98%) rename assets/{index-7bd58267.js => index-dad21183.js} (76%) rename assets/{index-a3765b7b.js => index-df7dc3bf.js} (91%) create mode 100644 assets/index-e4a40f17.js rename assets/{index-c414dc67.js => index-e62322f7.js} (95%) rename assets/{index-ef7ae87b.js => index-f560b6f4.js} (98%) rename assets/{websiteSetting-69561885.js => websiteSetting-da01dae2.js} (98%) diff --git a/assets/Translatex-79fd201f.js b/assets/Translatex-227cdacd.js similarity index 93% rename from assets/Translatex-79fd201f.js rename to assets/Translatex-227cdacd.js index d9a1f0c..5ff4ae2 100644 --- a/assets/Translatex-79fd201f.js +++ b/assets/Translatex-227cdacd.js @@ -1 +1 @@ -var p=Object.defineProperty;var o=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var i=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,n=(a,e)=>{for(var t in e||(e={}))x.call(e,t)&&i(a,t,e[t]);if(o)for(var t of o(e))u.call(e,t)&&i(a,t,e[t]);return a};import{j as g}from"./antd-66264537.js";import{u as Y,a as y}from"./entry/index-13ba62d4.1715696327646.js";import{a as l}from"./react-f288da4a.js";function E(a){const{children:e,direction:t="left",delay:c=3e3,run:s=!1,config:f={tension:100,friction:26}}=a,[r,m]=l.useState(!1);l.useEffect(()=>{m(s)},[s]);const d=Y({opacity:r?1:0,transform:r?`${t==="left"?"translateX(0px) scale(1) rotateY(0deg)":"translateY(0px) scale(1) rotateY(0deg)"}`:`${t==="left"?"translateX(80px) scale(1) rotateY(10deg)":"translateY(80px) scale(0.9) rotateY(10deg)"}`,delay:c,config:n({},f),onRest:()=>{}});return g.jsx(y.div,{className:a.className,style:n({},d),children:s&&e})}export{E as T}; +var p=Object.defineProperty;var o=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var i=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,n=(a,e)=>{for(var t in e||(e={}))x.call(e,t)&&i(a,t,e[t]);if(o)for(var t of o(e))u.call(e,t)&&i(a,t,e[t]);return a};import{j as g}from"./antd-66264537.js";import{u as Y,a as y}from"./entry/index-3324e23b.1715700059687.js";import{a as l}from"./react-f288da4a.js";function E(a){const{children:e,direction:t="left",delay:c=3e3,run:s=!1,config:f={tension:100,friction:26}}=a,[r,m]=l.useState(!1);l.useEffect(()=>{m(s)},[s]);const d=Y({opacity:r?1:0,transform:r?`${t==="left"?"translateX(0px) scale(1) rotateY(0deg)":"translateY(0px) scale(1) rotateY(0deg)"}`:`${t==="left"?"translateX(80px) scale(1) rotateY(10deg)":"translateY(80px) scale(0.9) rotateY(10deg)"}`,delay:c,config:n({},f),onRest:()=>{}});return g.jsx(y.div,{className:a.className,style:n({},d),children:s&&e})}export{E as T}; diff --git a/assets/api-adec7257.js b/assets/api-74c8c574.js similarity index 99% rename from assets/api-adec7257.js rename to assets/api-74c8c574.js index 4302ae3..24ca7f6 100644 --- a/assets/api-adec7257.js +++ b/assets/api-74c8c574.js @@ -1,2 +1,2 @@ -var k=Object.defineProperty;var S=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var V=(a,e,n)=>e in a?k(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n,G=(a,e)=>{for(var n in e||(e={}))R.call(e,n)&&V(a,n,e[n]);if(S)for(var n of S(e))w.call(e,n)&&V(a,n,e[n]);return a};import{S as z,g as C,aw as _,o as U,aj as D,ab as x,j as y,M as L,ax as F,as as K}from"./antd-66264537.js";import{r as f,a as c}from"./react-f288da4a.js";import{n as $,C as B,q as H,s as j,G as W,v as J,w as X}from"./entry/index-13ba62d4.1715696327646.js";function g(a){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(a)}function q(a,e){return ee(a)||Z(a,e)||Y(a,e)||Q()}function Q(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +var k=Object.defineProperty;var S=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var V=(a,e,n)=>e in a?k(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n,G=(a,e)=>{for(var n in e||(e={}))R.call(e,n)&&V(a,n,e[n]);if(S)for(var n of S(e))w.call(e,n)&&V(a,n,e[n]);return a};import{S as z,g as C,aw as _,o as U,aj as D,ab as x,j as y,M as L,ax as F,as as K}from"./antd-66264537.js";import{r as f,a as c}from"./react-f288da4a.js";import{n as $,C as B,q as H,s as j,G as W,v as J,w as X}from"./entry/index-3324e23b.1715700059687.js";function g(a){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(a)}function q(a,e){return ee(a)||Z(a,e)||Y(a,e)||Q()}function Q(){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 Y(a,e){if(a){if(typeof a=="string")return P(a,e);var n=Object.prototype.toString.call(a).slice(8,-1);if(n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set")return Array.from(a);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(a,e)}}function P(a,e){(e==null||e>a.length)&&(e=a.length);for(var n=0,t=new Array(e);ns+1){for(var p=[],h=s;h{const[e,n]=f.useState(!1),[,t]=f.useState("1"),[s,d]=f.useState([]),l=i=>y.jsx(K,{checkable:!0,treeData:i,fieldNames:{title:"displayName",key:"name"},defaultExpandAll:!0,checkStrictly:!0,defaultCheckedKeys:s,onCheck:(r,o)=>{const u=new Set(s);o.checked?r.checked.forEach(p=>u.add(p)):u.delete(o.node.key),d(Array.from(u))}}),m=f.useMemo(()=>{const i=[],r=re.map(o=>{const u=X(o.permissions).filter(p=>p.isGranted).map(p=>p.name);return i.push(...u),{key:o.name,label:o.displayName,children:l(o.permissions)}});return d(i),r},[e]);return y.jsxs(y.Fragment,{children:[y.jsx(j,{sub:!0,type:"link",onClick:()=>n(!0),children:"授权"}),y.jsx(L,{title:"授权",open:e,onCancel:()=>n(!1),onOk:()=>{},children:e&&y.jsx(F,{tabPosition:"left",defaultActiveKey:"1",items:m,onChange:t})})]})};let b=[];const le=()=>{if(!b.length){const a=localStorage.getItem("CHARA_DATA_1015");a?b=JSON.parse(a):fetch("https://sunflower-assets.oss-cn-hangzhou.aliyuncs.com/data/data.json").then(e=>e.json()).then(e=>{b=e.reverse(),localStorage.setItem("CHARA_DATA_1015",JSON.stringify(b))})}};le();const ye=a=>{const e=G(G({},a.search),a.filters);return new Promise(n=>{setTimeout(()=>{let t=b.filter(l=>{let m=!0;for(const i in e){const r=e[i];l.hasOwnProperty(i)&&l[i]!==void 0&&r!==null&&(Array.isArray(r)&&!r.includes(l[i])||typeof r=="number"&&Number(l[i])===r||typeof r=="string"&&!`${l[i]}`.includes(`${r}`))&&(m=!1)}return m});(a.sorts||[]).forEach(l=>{const{key:m,order:i}=l;t.sort((r,o)=>i==="descend"?r[m]-o[m]:o[m]-r[m])});const d=t.length;t=t.slice(a.pageSize*(a.pageIndex-1),a.pageSize*a.pageIndex),n({content:t,totalCount:d})},300)})};export{pe as A,ue as G,ye as l}; diff --git a/assets/count-up-48edea88.js b/assets/count-up-e2512a30.js similarity index 95% rename from assets/count-up-48edea88.js rename to assets/count-up-e2512a30.js index ee41043..1479182 100644 --- a/assets/count-up-48edea88.js +++ b/assets/count-up-e2512a30.js @@ -1 +1 @@ -var I=Object.defineProperty;var h=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var f=(r,t,s)=>t in r?I(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,l=(r,t)=>{for(var s in t||(t={}))C.call(t,s)&&f(r,s,t[s]);if(h)for(var s of h(t))w.call(t,s)&&f(r,s,t[s]);return r};import{G as a,j as e,J as S,K as x,n as o,t as i,I as d,S as N,i as j}from"./antd-66264537.js";import{t as n}from"./entry/index-13ba62d4.1715696327646.js";import{r as m}from"./react-f288da4a.js";import{u as U,_ as u}from"./index-646dffa4.js";import{P,C as R}from"./websiteSetting-69561885.js";const k=()=>{const[r]=a.useForm(),[t,s]=m.useState({start:0,end:2020,duration:4,decimals:0,separator:",",prefix:"¥ ",suffix:" rmb"}),p=m.useRef(null),{start:y,reset:c}=U(l({ref:p},t));m.useEffect(()=>{c()},[]);const b=g=>{s(l(l({},t),g))};return e.jsx(P,{plugin:R,children:e.jsxs(S,{gutter:12,children:[e.jsx(x,{span:6,children:e.jsx(o,{title:n("正向增加"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:0,end:2020,duration:4,style:{height:"100%",fontSize:"40px",color:"#e65d6e"},className:"flex-center"})})}),e.jsx(x,{span:12,children:e.jsxs(o,{title:n("自定义配置"),bordered:!1,bodyStyle:{height:"300px"},children:[e.jsx("div",{className:"flex-center",style:{marginBottom:"30px"},children:e.jsx("span",{ref:p,style:{fontSize:"40px",color:"#e65d6e"}})}),e.jsxs(a,{form:r,initialValues:l({},t),layout:"inline",labelAlign:"left",labelCol:{style:{width:"80px",marginBottom:"12px"}},onValuesChange:b,children:[e.jsx(a.Item,{label:"startVal:",name:"start",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"endVal:",name:"end",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"duration:",name:"duration",children:e.jsx(i,{min:1,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"decimals:",name:"decimals",children:e.jsx(i,{min:0,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"separator:",name:"separator",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"prefix:",name:"prefix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"suffix:",name:"suffix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{children:e.jsxs(N,{children:[e.jsx(j,{type:"primary",onClick:y,children:n("开始")}),e.jsx(j,{type:"primary",danger:!0,onClick:c,children:n("重置")})]})})]})]})}),e.jsx(x,{span:6,children:e.jsx(o,{title:n("反向减少"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:2020,end:0,duration:4,style:{height:"100%",fontSize:"40px",color:"#30b08f"},className:"flex-center"})})})]})})};export{k as default}; +var I=Object.defineProperty;var h=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var f=(r,t,s)=>t in r?I(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,l=(r,t)=>{for(var s in t||(t={}))C.call(t,s)&&f(r,s,t[s]);if(h)for(var s of h(t))w.call(t,s)&&f(r,s,t[s]);return r};import{G as a,j as e,J as S,K as x,n as o,t as i,I as d,S as N,i as j}from"./antd-66264537.js";import{t as n}from"./entry/index-3324e23b.1715700059687.js";import{r as m}from"./react-f288da4a.js";import{u as U,_ as u}from"./index-646dffa4.js";import{P,C as R}from"./websiteSetting-da01dae2.js";const k=()=>{const[r]=a.useForm(),[t,s]=m.useState({start:0,end:2020,duration:4,decimals:0,separator:",",prefix:"¥ ",suffix:" rmb"}),p=m.useRef(null),{start:y,reset:c}=U(l({ref:p},t));m.useEffect(()=>{c()},[]);const b=g=>{s(l(l({},t),g))};return e.jsx(P,{plugin:R,children:e.jsxs(S,{gutter:12,children:[e.jsx(x,{span:6,children:e.jsx(o,{title:n("正向增加"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:0,end:2020,duration:4,style:{height:"100%",fontSize:"40px",color:"#e65d6e"},className:"flex-center"})})}),e.jsx(x,{span:12,children:e.jsxs(o,{title:n("自定义配置"),bordered:!1,bodyStyle:{height:"300px"},children:[e.jsx("div",{className:"flex-center",style:{marginBottom:"30px"},children:e.jsx("span",{ref:p,style:{fontSize:"40px",color:"#e65d6e"}})}),e.jsxs(a,{form:r,initialValues:l({},t),layout:"inline",labelAlign:"left",labelCol:{style:{width:"80px",marginBottom:"12px"}},onValuesChange:b,children:[e.jsx(a.Item,{label:"startVal:",name:"start",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"endVal:",name:"end",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"duration:",name:"duration",children:e.jsx(i,{min:1,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"decimals:",name:"decimals",children:e.jsx(i,{min:0,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"separator:",name:"separator",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"prefix:",name:"prefix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"suffix:",name:"suffix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{children:e.jsxs(N,{children:[e.jsx(j,{type:"primary",onClick:y,children:n("开始")}),e.jsx(j,{type:"primary",danger:!0,onClick:c,children:n("重置")})]})})]})]})}),e.jsx(x,{span:6,children:e.jsx(o,{title:n("反向减少"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:2020,end:0,duration:4,style:{height:"100%",fontSize:"40px",color:"#30b08f"},className:"flex-center"})})})]})})};export{k as default}; diff --git a/assets/drag-list-7462ea32.js b/assets/drag-list-916004ad.js similarity index 99% rename from assets/drag-list-7462ea32.js rename to assets/drag-list-916004ad.js index b6d5eda..e513e78 100644 --- a/assets/drag-list-7462ea32.js +++ b/assets/drag-list-916004ad.js @@ -1,4 +1,4 @@ -var mn=Object.defineProperty,bn=Object.defineProperties;var vn=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Lt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var gt=(o,e,t)=>e in o?mn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ce=(o,e)=>{for(var t in e||(e={}))Lt.call(e,t)&>(o,t,e[t]);if(Je)for(var t of Je(e))Ft.call(e,t)&>(o,t,e[t]);return o},Me=(o,e)=>bn(o,vn(e));var kt=(o,e)=>{var t={};for(var n in o)Lt.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&Je)for(var n of Je(o))e.indexOf(n)<0&&Ft.call(o,n)&&(t[n]=o[n]);return t};var Ht=(o,e,t)=>(gt(o,typeof e!="symbol"?e+"":e,t),t);import{j as U,J as wn,K as Pe,n as we}from"./antd-66264537.js";import{t as fe,c as yn}from"./entry/index-13ba62d4.1715696327646.js";import{f as Qt,r as ot}from"./react-f288da4a.js";import{P as En,S as Sn}from"./websiteSetting-69561885.js";var en={exports:{}};/**! +var mn=Object.defineProperty,bn=Object.defineProperties;var vn=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Lt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var gt=(o,e,t)=>e in o?mn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ce=(o,e)=>{for(var t in e||(e={}))Lt.call(e,t)&>(o,t,e[t]);if(Je)for(var t of Je(e))Ft.call(e,t)&>(o,t,e[t]);return o},Me=(o,e)=>bn(o,vn(e));var kt=(o,e)=>{var t={};for(var n in o)Lt.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&Je)for(var n of Je(o))e.indexOf(n)<0&&Ft.call(o,n)&&(t[n]=o[n]);return t};var Ht=(o,e,t)=>(gt(o,typeof e!="symbol"?e+"":e,t),t);import{j as U,J as wn,K as Pe,n as we}from"./antd-66264537.js";import{t as fe,c as yn}from"./entry/index-3324e23b.1715700059687.js";import{f as Qt,r as ot}from"./react-f288da4a.js";import{P as En,S as Sn}from"./websiteSetting-da01dae2.js";var en={exports:{}};/**! * Sortable 1.15.2 * @author RubaXa * @author owenm diff --git a/assets/drag-resize-33f7a149.js b/assets/drag-resize-d08fdbd2.js similarity index 99% rename from assets/drag-resize-33f7a149.js rename to assets/drag-resize-d08fdbd2.js index 0a13567..fcbb75e 100644 --- a/assets/drag-resize-33f7a149.js +++ b/assets/drag-resize-d08fdbd2.js @@ -1,4 +1,4 @@ -var _e=Object.defineProperty,Oe=Object.defineProperties;var Re=Object.getOwnPropertyDescriptors;var Kt=Object.getOwnPropertySymbols;var Ee=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable;var Jt=(e,i,r)=>i in e?_e(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,bt=(e,i)=>{for(var r in i||(i={}))Ee.call(i,r)&&Jt(e,r,i[r]);if(Kt)for(var r of Kt(i))Me.call(i,r)&&Jt(e,r,i[r]);return e},Wt=(e,i)=>Oe(e,Re(i));import{j as J,n as Ce}from"./antd-66264537.js";import{r as k,c as ae,g as se}from"./react-f288da4a.js";import{p as le,r as Ne}from"./entry/index-13ba62d4.1715696327646.js";import{P as Te,R as We}from"./websiteSetting-69561885.js";var Ot={exports:{}},ue={},E={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.dontSetMe=Be;Q.findInArray=Ae;Q.int=Le;Q.isFunction=He;Q.isNum=je;function Ae(e,i){for(var r=0,t=e.length;r0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var t=(e=window.document)===null||e===void 0||(i=e.documentElement)===null||i===void 0?void 0:i.style;if(!t||r in t)return"";for(var n=0;ni in e?_e(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,bt=(e,i)=>{for(var r in i||(i={}))Ee.call(i,r)&&Jt(e,r,i[r]);if(Kt)for(var r of Kt(i))Me.call(i,r)&&Jt(e,r,i[r]);return e},Wt=(e,i)=>Oe(e,Re(i));import{j as J,n as Ce}from"./antd-66264537.js";import{r as k,c as ae,g as se}from"./react-f288da4a.js";import{p as le,r as Ne}from"./entry/index-3324e23b.1715700059687.js";import{P as Te,R as We}from"./websiteSetting-da01dae2.js";var Ot={exports:{}},ue={},E={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.dontSetMe=Be;Q.findInArray=Ae;Q.int=Le;Q.isFunction=He;Q.isNum=je;function Ae(e,i){for(var r=0,t=e.length;r0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var t=(e=window.document)===null||e===void 0||(i=e.documentElement)===null||i===void 0?void 0:i.style;if(!t||r in t)return"";for(var n=0;n: Unmounted during event!");return i}var Rt={},Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.default=hr;function hr(){}function Dt(e){"@babel/helpers - typeof";return Dt=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},Dt(e)}Object.defineProperty(Rt,"__esModule",{value:!0});Rt.default=void 0;var Ht=dr(k),I=Xt(le),cr=Xt(ae),W=E,rt=tt,jt=Q,ct=Xt(Et);function Xt(e){return e&&e.__esModule?e:{default:e}}function me(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,r=new WeakMap;return(me=function(n){return n?r:i})(e)}function dr(e,i){if(!i&&e&&e.__esModule)return e;if(e===null||Dt(e)!=="object"&&typeof e!="function")return{default:e};var r=me(i);if(r&&r.has(e))return r.get(e);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(t,o,a):t[o]=e[o]}return t.default=e,r&&r.set(e,t),t}function te(e,i){return mr(e)||yr(e,i)||vr(e,i)||gr()}function gr(){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 vr(e,i){if(e){if(typeof e=="string")return ee(e,i);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 ee(e,i)}}function ee(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,t=new Array(i);r not mounted on DragStart!");var p=f.ownerDocument;if(!(t.props.disabled||!(s.target instanceof p.defaultView.Node)||t.props.handle&&!(0,W.matchesSelectorAndParentsTo)(s.target,t.props.handle,f)||t.props.cancel&&(0,W.matchesSelectorAndParentsTo)(s.target,t.props.cancel,f))){s.type==="touchstart"&&s.preventDefault();var g=(0,W.getTouchIdentifier)(s);t.setState({touchIdentifier:g});var y=(0,rt.getControlPosition)(s,g,A(t));if(y!=null){var v=y.x,m=y.y,w=(0,rt.createCoreData)(A(t),v,m);(0,ct.default)("DraggableCore: handleDragStart: %j",w),(0,ct.default)("calling",t.props.onStart);var S=t.props.onStart(s,w);S===!1||t.mounted===!1||(t.props.enableUserSelectHack&&(0,W.addUserSelectStyles)(p),t.setState({dragging:!0,lastX:v,lastY:m}),(0,W.addEvent)(p,it.move,t.handleDrag),(0,W.addEvent)(p,it.stop,t.handleDragStop))}}}),G(A(t),"handleDrag",function(s){var f=(0,rt.getControlPosition)(s,t.state.touchIdentifier,A(t));if(f!=null){var p=f.x,g=f.y;if(Array.isArray(t.props.grid)){var y=p-t.state.lastX,v=g-t.state.lastY,m=(0,rt.snapToGrid)(t.props.grid,y,v),w=te(m,2);if(y=w[0],v=w[1],!y&&!v)return;p=t.state.lastX+y,g=t.state.lastY+v}var S=(0,rt.createCoreData)(A(t),p,g);(0,ct.default)("DraggableCore: handleDrag: %j",S);var P=t.props.onDrag(s,S);if(P===!1||t.mounted===!1){try{t.handleDragStop(new MouseEvent("mouseup"))}catch(D){var R=document.createEvent("MouseEvents");R.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.handleDragStop(R)}return}t.setState({lastX:p,lastY:g})}}),G(A(t),"handleDragStop",function(s){if(t.state.dragging){var f=(0,rt.getControlPosition)(s,t.state.touchIdentifier,A(t));if(f!=null){var p=f.x,g=f.y;if(Array.isArray(t.props.grid)){var y=p-t.state.lastX||0,v=g-t.state.lastY||0,m=(0,rt.snapToGrid)(t.props.grid,y,v),w=te(m,2);y=w[0],v=w[1],p=t.state.lastX+y,g=t.state.lastY+v}var S=(0,rt.createCoreData)(A(t),p,g),P=t.props.onStop(s,S);if(P===!1||t.mounted===!1)return!1;var R=t.findDOMNode();R&&t.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(R.ownerDocument),(0,ct.default)("DraggableCore: handleDragStop: %j",S),t.setState({dragging:!1,lastX:NaN,lastY:NaN}),R&&((0,ct.default)("DraggableCore: Removing handlers"),(0,W.removeEvent)(R.ownerDocument,it.move,t.handleDrag),(0,W.removeEvent)(R.ownerDocument,it.stop,t.handleDragStop))}}}),G(A(t),"onMouseDown",function(s){return it=V.mouse,t.handleDragStart(s)}),G(A(t),"onMouseUp",function(s){return it=V.mouse,t.handleDragStop(s)}),G(A(t),"onTouchStart",function(s){return it=V.touch,t.handleDragStart(s)}),G(A(t),"onTouchEnd",function(s){return it=V.touch,t.handleDragStop(s)}),t}return wr(r,[{key:"componentDidMount",value:function(){this.mounted=!0;var n=this.findDOMNode();n&&(0,W.addEvent)(n,V.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var n=this.findDOMNode();if(n){var o=n.ownerDocument;(0,W.removeEvent)(o,V.mouse.move,this.handleDrag),(0,W.removeEvent)(o,V.touch.move,this.handleDrag),(0,W.removeEvent)(o,V.mouse.stop,this.handleDragStop),(0,W.removeEvent)(o,V.touch.stop,this.handleDragStop),(0,W.removeEvent)(n,V.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(o)}}},{key:"findDOMNode",value:function(){var n,o,a;return(n=this.props)!==null&&n!==void 0&&n.nodeRef?(o=this.props)===null||o===void 0||(a=o.nodeRef)===null||a===void 0?void 0:a.current:cr.default.findDOMNode(this)}},{key:"render",value:function(){return Ht.cloneElement(Ht.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),r}(Ht.Component);Rt.default=Mt;G(Mt,"displayName","DraggableCore");G(Mt,"propTypes",{allowAnyClick:I.default.bool,disabled:I.default.bool,enableUserSelectHack:I.default.bool,offsetParent:function(i,r){if(i[r]&&i[r].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:I.default.arrayOf(I.default.number),handle:I.default.string,cancel:I.default.string,nodeRef:I.default.object,onStart:I.default.func,onDrag:I.default.func,onStop:I.default.func,onMouseDown:I.default.func,scale:I.default.number,className:jt.dontSetMe,style:jt.dontSetMe,transform:jt.dontSetMe});G(Mt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){function i(l){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i(l)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return p.default}}),e.default=void 0;var r=w(k),t=v(le),n=v(ae),o=v(Ne),a=E,s=tt,f=Q,p=v(Rt),g=v(Et),y=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function v(l){return l&&l.__esModule?l:{default:l}}function m(l){if(typeof WeakMap!="function")return null;var u=new WeakMap,h=new WeakMap;return(m=function(d){return d?h:u})(l)}function w(l,u){if(!u&&l&&l.__esModule)return l;if(l===null||i(l)!=="object"&&typeof l!="function")return{default:l};var h=m(u);if(h&&h.has(l))return h.get(l);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in l)if(b!=="default"&&Object.prototype.hasOwnProperty.call(l,b)){var z=d?Object.getOwnPropertyDescriptor(l,b):null;z&&(z.get||z.set)?Object.defineProperty(c,b,z):c[b]=l[b]}return c.default=l,h&&h.set(l,c),c}function S(){return S=Object.assign||function(l){for(var u=1;u=0)&&Object.prototype.propertyIsEnumerable.call(l,c)&&(h[c]=l[c])}return h}function R(l,u){if(l==null)return{};var h={},c=Object.keys(l),d,b;for(b=0;b=0)&&(h[d]=l[d]);return h}function D(l,u){var h=Object.keys(l);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);u&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(l,d).enumerable})),h.push.apply(h,c)}return h}function x(l){for(var u=1;ua in o?Yu(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,se=(o,a)=>{for(var s in a||(a={}))su.call(a,s)&&Vs(o,s,a[s]);if($o)for(var s of $o(a))lu.call(a,s)&&Vs(o,s,a[s]);return o},$e=(o,a)=>Xu(o,Qu(a));var er=(o,a)=>{var s={};for(var c in o)su.call(o,c)&&a.indexOf(c)<0&&(s[c]=o[c]);if(o!=null&&$o)for(var c of $o(o))a.indexOf(c)<0&&lu.call(o,c)&&(s[c]=o[c]);return s};var tr=(o,a,s)=>(Vs(o,typeof a!="symbol"?a+"":a,s),s),Ws=(o,a,s)=>{if(!a.has(o))throw TypeError("Cannot "+s)};var _e=(o,a,s)=>(Ws(o,a,"read from private field"),s?s.call(o):a.get(o)),We=(o,a,s)=>{if(a.has(o))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(o):a.set(o,s)},Ne=(o,a,s,c)=>(Ws(o,a,"write to private field"),c?c.call(o,s):a.set(o,s),s);var wo=(o,a,s,c)=>({set _(f){Ne(o,a,f,s)},get _(){return _e(o,a,c)}}),st=(o,a,s)=>(Ws(o,a,"access private method"),s);var xt=(o,a,s)=>new Promise((c,f)=>{var d=S=>{try{_(s.next(S))}catch(b){f(b)}},y=S=>{try{_(s.throw(S))}catch(b){f(b)}},_=S=>S.done?c(S.value):Promise.resolve(S.value).then(d,y);_((s=s.apply(o,a)).next())});import{_ as _objectWithoutPropertiesLoose$9,a as _extends$f,h as hoistNonReactStatics,r as reactIsExports,c as createStyles,j as jsxRuntimeExports,C as ConfigProvider,A as App$1,b as classnamesExports,R as ResizeObserver_es,d as json2mq_1,e as _setPrototypeOf$8,f as _assertThisInitialized$6,B as Badge,T as Tag$1,g as classNames,i as Button,k as Tooltip,l as _Popconfirm,M as Modal,m as message,P as PlusOutlined,D as DeleteOutlined,E as ExclamationCircleOutlined,n as Card,o as DownOutlined,S as Space,p as Drawer,q as dayjs_minExports,s as Select,I as Input,t as InputNumber,u as Switch,v as Checkbox,w as Radio,x as DatePicker,y as _Rate,z as Slider$1,F as dayjs,G as Form,H as CopyOutlined,J as Row,K as Col,Q as QuestionCircleOutlined,L as Typography,N as _Popover,O as LoadingOutlined,U as InfoCircleFilled,V as Image$2,W as Table,X as Pagination,Y as useTheme,Z as ReadOutlined,$ as FullscreenExitOutlined,a0 as FullscreenOutlined,a1 as GithubOutlined,a2 as SearchOutlined,a3 as List,a4 as Segmented,a5 as useThemeMode,a6 as ErrorBoundary,a7 as SettingOutlined,a8 as notification,a9 as LockOutlined,aa as PoweroffOutlined,ab as Dropdown,ac as LeftOutlined,ad as RightOutlined,ae as RedoOutlined,af as CloseOutlined,ag as Breadcrumb,ah as Layout,ai as Spin,aj as Menu,ak as Result,al as Alert,am as UserOutlined,an as createGlobalStyle,ao as ThemeProvider}from"../antd-66264537.js";import{r as reactExports,c as reactDomExports,g as getDefaultExportFromCjs,e as commonjsGlobal,a as React$4,f as getAugmentedNamespace,s as schedulerExports,u as useLocation,L as Link,h as useNavigate,m as matchRoutes,O as Outlet,N as Navigate,i as useLoaderData,j as useSearchParams,k as redirect,l as createHashRouter,n as RouterProvider}from"../react-f288da4a.js";function _mergeNamespaces(o,a){for(var s=0;sc[f]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const y of d.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function s(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(f){if(f.ep)return;f.ep=!0;const d=s(f);fetch(f.href,d)}})();var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(o){return this.listeners.add(o),this.onSubscribe(),()=>{this.listeners.delete(o),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},isServer=typeof window=="undefined"||"Deno"in window;function noop$7(){}function functionalUpdate(o,a){return typeof o=="function"?o(a):o}function isValidTimeout(o){return typeof o=="number"&&o>=0&&o!==1/0}function timeUntilStale(o,a){return Math.max(o+(a||0)-Date.now(),0)}function matchQuery(o,a){const{type:s="all",exact:c,fetchStatus:f,predicate:d,queryKey:y,stale:_}=o;if(y){if(c){if(a.queryHash!==hashQueryKeyByOptions(y,a.options))return!1}else if(!partialMatchKey(a.queryKey,y))return!1}if(s!=="all"){const S=a.isActive();if(s==="active"&&!S||s==="inactive"&&S)return!1}return!(typeof _=="boolean"&&a.isStale()!==_||typeof f!="undefined"&&f!==a.state.fetchStatus||d&&!d(a))}function matchMutation(o,a){const{exact:s,status:c,predicate:f,mutationKey:d}=o;if(d){if(!a.options.mutationKey)return!1;if(s){if(hashKey(a.options.mutationKey)!==hashKey(d))return!1}else if(!partialMatchKey(a.options.mutationKey,d))return!1}return!(c&&a.state.status!==c||f&&!f(a))}function hashQueryKeyByOptions(o,a){return((a==null?void 0:a.queryKeyHashFn)||hashKey)(o)}function hashKey(o){return JSON.stringify(o,(a,s)=>isPlainObject$5(s)?Object.keys(s).sort().reduce((c,f)=>(c[f]=s[f],c),{}):s)}function partialMatchKey(o,a){return o===a?!0:typeof o!=typeof a?!1:o&&a&&typeof o=="object"&&typeof a=="object"?!Object.keys(a).some(s=>!partialMatchKey(o[s],a[s])):!1}function replaceEqualDeep(o,a){if(o===a)return o;const s=isPlainArray(o)&&isPlainArray(a);if(s||isPlainObject$5(o)&&isPlainObject$5(a)){const c=s?o:Object.keys(o),f=c.length,d=s?a:Object.keys(a),y=d.length,_=s?[]:{};let S=0;for(let b=0;b{setTimeout(a,o)})}function replaceData(o,a,s){return typeof s.structuralSharing=="function"?s.structuralSharing(o,a):s.structuralSharing!==!1?replaceEqualDeep(o,a):a}function addToEnd(o,a,s=0){const c=[...o,a];return s&&c.length>s?c.slice(1):c}function addToStart(o,a,s=0){const c=[a,...o];return s&&c.length>s?c.slice(0,-1):c}var Bn,dn,xi,cu,FocusManager=(cu=class extends Subscribable{constructor(){super();We(this,Bn,void 0);We(this,dn,void 0);We(this,xi,void 0);Ne(this,xi,a=>{if(!isServer&&window.addEventListener){const s=()=>a();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){_e(this,dn)||this.setEventListener(_e(this,xi))}onUnsubscribe(){var a;this.hasListeners()||((a=_e(this,dn))==null||a.call(this),Ne(this,dn,void 0))}setEventListener(a){var s;Ne(this,xi,a),(s=_e(this,dn))==null||s.call(this),Ne(this,dn,a(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(a){_e(this,Bn)!==a&&(Ne(this,Bn,a),this.onFocus())}onFocus(){this.listeners.forEach(a=>{a()})}isFocused(){var a;return typeof _e(this,Bn)=="boolean"?_e(this,Bn):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Bn=new WeakMap,dn=new WeakMap,xi=new WeakMap,cu),focusManager=new FocusManager,Ei,hn,$i,fu,OnlineManager=(fu=class extends Subscribable{constructor(){super();We(this,Ei,!0);We(this,hn,void 0);We(this,$i,void 0);Ne(this,$i,a=>{if(!isServer&&window.addEventListener){const s=()=>a(!0),c=()=>a(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}})}onSubscribe(){_e(this,hn)||this.setEventListener(_e(this,$i))}onUnsubscribe(){var a;this.hasListeners()||((a=_e(this,hn))==null||a.call(this),Ne(this,hn,void 0))}setEventListener(a){var s;Ne(this,$i,a),(s=_e(this,hn))==null||s.call(this),Ne(this,hn,a(this.setOnline.bind(this)))}setOnline(a){_e(this,Ei)!==a&&(Ne(this,Ei,a),this.listeners.forEach(c=>{c(a)}))}isOnline(){return _e(this,Ei)}},Ei=new WeakMap,hn=new WeakMap,$i=new WeakMap,fu),onlineManager=new OnlineManager;function defaultRetryDelay(o){return Math.min(1e3*uu(2,o),3e4)}function canFetch(o){return(o!=null?o:"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class{constructor(o){this.revert=o==null?void 0:o.revert,this.silent=o==null?void 0:o.silent}};function isCancelledError(o){return o instanceof CancelledError}function createRetryer(o){let a=!1,s=0,c=!1,f,d,y;const _=new Promise((F,j)=>{d=F,y=j}),S=F=>{var j;c||(C(new CancelledError(F)),(j=o.abort)==null||j.call(o))},b=()=>{a=!0},$=()=>{a=!1},P=()=>!focusManager.isFocused()||o.networkMode!=="always"&&!onlineManager.isOnline(),T=F=>{var j;c||(c=!0,(j=o.onSuccess)==null||j.call(o,F),f==null||f(),d(F))},C=F=>{var j;c||(c=!0,(j=o.onError)==null||j.call(o,F),f==null||f(),y(F))},O=()=>new Promise(F=>{var j;f=L=>{const M=c||!P();return M&&F(L),M},(j=o.onPause)==null||j.call(o)}).then(()=>{var F;f=void 0,c||(F=o.onContinue)==null||F.call(o)}),A=()=>{if(c)return;let F;try{F=o.fn()}catch(j){F=Promise.reject(j)}Promise.resolve(F).then(T).catch(j=>{var z,H,G;if(c)return;const L=(z=o.retry)!=null?z:isServer?0:3,M=(H=o.retryDelay)!=null?H:defaultRetryDelay,I=typeof M=="function"?M(s,j):M,U=L===!0||typeof L=="number"&&s{if(P())return O()}).then(()=>{a?C(j):A()})})};return canFetch(o.networkMode)?A():O().then(A),{promise:_,cancel:S,continue:()=>(f==null?void 0:f())?_:Promise.resolve(),cancelRetry:b,continueRetry:$}}function createNotifyManager(){let o=[],a=0,s=T=>{T()},c=T=>{T()},f=T=>setTimeout(T,0);const d=T=>{f=T},y=T=>{let C;a++;try{C=T()}finally{a--,a||b()}return C},_=T=>{a?o.push(T):f(()=>{s(T)})},S=T=>(...C)=>{_(()=>{T(...C)})},b=()=>{const T=o;o=[],T.length&&f(()=>{c(()=>{T.forEach(C=>{s(C)})})})};return{batch:y,batchCalls:S,schedule:_,setNotifyFunction:T=>{s=T},setBatchNotifyFunction:T=>{c=T},setScheduler:d}}var notifyManager=createNotifyManager(),Hn,du,Removable=(du=class{constructor(){We(this,Hn,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Ne(this,Hn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(o){this.gcTime=Math.max(this.gcTime||0,o!=null?o:isServer?1/0:5*60*1e3)}clearGcTimeout(){_e(this,Hn)&&(clearTimeout(_e(this,Hn)),Ne(this,Hn,void 0))}},Hn=new WeakMap,du),wi,Pi,dr,pn,hr,Et,Sa,Gn,Ti,Po,xr,Wr,hu,Query=(hu=class extends Removable{constructor(a){super();We(this,Ti);We(this,xr);We(this,wi,void 0);We(this,Pi,void 0);We(this,dr,void 0);We(this,pn,void 0);We(this,hr,void 0);We(this,Et,void 0);We(this,Sa,void 0);We(this,Gn,void 0);Ne(this,Gn,!1),Ne(this,Sa,a.defaultOptions),st(this,Ti,Po).call(this,a.options),Ne(this,Et,[]),Ne(this,dr,a.cache),this.queryKey=a.queryKey,this.queryHash=a.queryHash,Ne(this,wi,a.state||getDefaultState$1(this.options)),this.state=_e(this,wi),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!_e(this,Et).length&&this.state.fetchStatus==="idle"&&_e(this,dr).remove(this)}setData(a,s){const c=replaceData(this.state.data,a,this.options);return st(this,xr,Wr).call(this,{data:c,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),c}setState(a,s){st(this,xr,Wr).call(this,{type:"setState",state:a,setStateOptions:s})}cancel(a){var c;const s=_e(this,pn);return(c=_e(this,hr))==null||c.cancel(a),s?s.then(noop$7).catch(noop$7):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_e(this,wi))}isActive(){return _e(this,Et).some(a=>a.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||_e(this,Et).some(a=>a.getCurrentResult().isStale)}isStaleByTime(a=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,a)}onFocus(){var s;const a=_e(this,Et).find(c=>c.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(s=_e(this,hr))==null||s.continue()}onOnline(){var s;const a=_e(this,Et).find(c=>c.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(s=_e(this,hr))==null||s.continue()}addObserver(a){_e(this,Et).includes(a)||(_e(this,Et).push(a),this.clearGcTimeout(),_e(this,dr).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){_e(this,Et).includes(a)&&(Ne(this,Et,_e(this,Et).filter(s=>s!==a)),_e(this,Et).length||(_e(this,hr)&&(_e(this,Gn)?_e(this,hr).cancel({revert:!0}):_e(this,hr).cancelRetry()),this.scheduleGc()),_e(this,dr).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return _e(this,Et).length}invalidate(){this.state.isInvalidated||st(this,xr,Wr).call(this,{type:"invalidate"})}fetch(a,s){var b,$,P,T;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(_e(this,pn))return(b=_e(this,hr))==null||b.continueRetry(),_e(this,pn)}if(a&&st(this,Ti,Po).call(this,a),!this.options.queryFn){const C=_e(this,Et).find(O=>O.options.queryFn);C&&st(this,Ti,Po).call(this,C.options)}const c=new AbortController,f={queryKey:this.queryKey,meta:this.meta},d=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(Ne(this,Gn,!0),c.signal)})};d(f);const y=()=>this.options.queryFn?(Ne(this,Gn,!1),this.options.persister?this.options.persister(this.options.queryFn,f,this):this.options.queryFn(f)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),_={fetchOptions:s,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:y};d(_),($=this.options.behavior)==null||$.onFetch(_,this),Ne(this,Pi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((P=_.fetchOptions)==null?void 0:P.meta))&&st(this,xr,Wr).call(this,{type:"fetch",meta:(T=_.fetchOptions)==null?void 0:T.meta});const S=C=>{var O,A,F,j;isCancelledError(C)&&C.silent||st(this,xr,Wr).call(this,{type:"error",error:C}),isCancelledError(C)||((A=(O=_e(this,dr).config).onError)==null||A.call(O,C,this),(j=(F=_e(this,dr).config).onSettled)==null||j.call(F,this.state.data,C,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Ne(this,hr,createRetryer({fn:_.fetchFn,abort:c.abort.bind(c),onSuccess:C=>{var O,A,F,j;if(typeof C=="undefined"){S(new Error(`${this.queryHash} data is undefined`));return}this.setData(C),(A=(O=_e(this,dr).config).onSuccess)==null||A.call(O,C,this),(j=(F=_e(this,dr).config).onSettled)==null||j.call(F,C,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:S,onFail:(C,O)=>{st(this,xr,Wr).call(this,{type:"failed",failureCount:C,error:O})},onPause:()=>{st(this,xr,Wr).call(this,{type:"pause"})},onContinue:()=>{st(this,xr,Wr).call(this,{type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode})),Ne(this,pn,_e(this,hr).promise),_e(this,pn)}},wi=new WeakMap,Pi=new WeakMap,dr=new WeakMap,pn=new WeakMap,hr=new WeakMap,Et=new WeakMap,Sa=new WeakMap,Gn=new WeakMap,Ti=new WeakSet,Po=function(a){this.options=se(se({},_e(this,Sa)),a),this.updateGcTime(this.options.gcTime)},xr=new WeakSet,Wr=function(a){const s=c=>{var f,d;switch(a.type){case"failed":return $e(se({},c),{fetchFailureCount:a.failureCount,fetchFailureReason:a.error});case"pause":return $e(se({},c),{fetchStatus:"paused"});case"continue":return $e(se({},c),{fetchStatus:"fetching"});case"fetch":return se($e(se({},c),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(f=a.meta)!=null?f:null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused"}),!c.dataUpdatedAt&&{error:null,status:"pending"});case"success":return se($e(se({},c),{data:a.data,dataUpdateCount:c.dataUpdateCount+1,dataUpdatedAt:(d=a.dataUpdatedAt)!=null?d:Date.now(),error:null,isInvalidated:!1,status:"success"}),!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const y=a.error;return isCancelledError(y)&&y.revert&&_e(this,Pi)?$e(se({},_e(this,Pi)),{fetchStatus:"idle"}):$e(se({},c),{error:y,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:y,fetchStatus:"idle",status:"error"});case"invalidate":return $e(se({},c),{isInvalidated:!0});case"setState":return se(se({},c),a.state)}};this.state=s(this.state),notifyManager.batch(()=>{_e(this,Et).forEach(c=>{c.onQueryUpdate()}),_e(this,dr).notify({query:this,type:"updated",action:a})})},hu);function getDefaultState$1(o){const a=typeof o.initialData=="function"?o.initialData():o.initialData,s=typeof a!="undefined",c=s?typeof o.initialDataUpdatedAt=="function"?o.initialDataUpdatedAt():o.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:s?c!=null?c:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Ir,pu,QueryCache=(pu=class extends Subscribable{constructor(a={}){super();We(this,Ir,void 0);this.config=a,Ne(this,Ir,new Map)}build(a,s,c){var _;const f=s.queryKey,d=(_=s.queryHash)!=null?_:hashQueryKeyByOptions(f,s);let y=this.get(d);return y||(y=new Query({cache:this,queryKey:f,queryHash:d,options:a.defaultQueryOptions(s),state:c,defaultOptions:a.getQueryDefaults(f)}),this.add(y)),y}add(a){_e(this,Ir).has(a.queryHash)||(_e(this,Ir).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const s=_e(this,Ir).get(a.queryHash);s&&(a.destroy(),s===a&&_e(this,Ir).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return _e(this,Ir).get(a)}getAll(){return[..._e(this,Ir).values()]}find(a){const s=se({exact:!0},a);return this.getAll().find(c=>matchQuery(s,c))}findAll(a={}){const s=this.getAll();return Object.keys(a).length>0?s.filter(c=>matchQuery(a,c)):s}notify(a){notifyManager.batch(()=>{this.listeners.forEach(s=>{s(a)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Ir=new WeakMap,pu),Lr,xa,rr,Oi,Nr,fn,gu,Mutation=(gu=class extends Removable{constructor(a){super();We(this,Nr);We(this,Lr,void 0);We(this,xa,void 0);We(this,rr,void 0);We(this,Oi,void 0);this.mutationId=a.mutationId,Ne(this,xa,a.defaultOptions),Ne(this,rr,a.mutationCache),Ne(this,Lr,[]),this.state=a.state||getDefaultState(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=se(se({},_e(this,xa)),a),this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){_e(this,Lr).includes(a)||(_e(this,Lr).push(a),this.clearGcTimeout(),_e(this,rr).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){Ne(this,Lr,_e(this,Lr).filter(s=>s!==a)),this.scheduleGc(),_e(this,rr).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){_e(this,Lr).length||(this.state.status==="pending"?this.scheduleGc():_e(this,rr).remove(this))}continue(){var a,s;return(s=(a=_e(this,Oi))==null?void 0:a.continue())!=null?s:this.execute(this.state.variables)}execute(a){return xt(this,null,function*(){var f,d,y,_,S,b,$,P,T,C,O,A,F,j,L,M,I,U,z,H;const s=()=>{var G;return Ne(this,Oi,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(X,W)=>{st(this,Nr,fn).call(this,{type:"failed",failureCount:X,error:W})},onPause:()=>{st(this,Nr,fn).call(this,{type:"pause"})},onContinue:()=>{st(this,Nr,fn).call(this,{type:"continue"})},retry:(G=this.options.retry)!=null?G:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),_e(this,Oi).promise},c=this.state.status==="pending";try{if(!c){st(this,Nr,fn).call(this,{type:"pending",variables:a}),yield(d=(f=_e(this,rr).config).onMutate)==null?void 0:d.call(f,a,this);const X=yield(_=(y=this.options).onMutate)==null?void 0:_.call(y,a);X!==this.state.context&&st(this,Nr,fn).call(this,{type:"pending",context:X,variables:a})}const G=yield s();return yield(b=(S=_e(this,rr).config).onSuccess)==null?void 0:b.call(S,G,a,this.state.context,this),yield(P=($=this.options).onSuccess)==null?void 0:P.call($,G,a,this.state.context),yield(C=(T=_e(this,rr).config).onSettled)==null?void 0:C.call(T,G,null,this.state.variables,this.state.context,this),yield(A=(O=this.options).onSettled)==null?void 0:A.call(O,G,null,a,this.state.context),st(this,Nr,fn).call(this,{type:"success",data:G}),G}catch(G){try{throw yield(j=(F=_e(this,rr).config).onError)==null?void 0:j.call(F,G,a,this.state.context,this),yield(M=(L=this.options).onError)==null?void 0:M.call(L,G,a,this.state.context),yield(U=(I=_e(this,rr).config).onSettled)==null?void 0:U.call(I,void 0,G,this.state.variables,this.state.context,this),yield(H=(z=this.options).onSettled)==null?void 0:H.call(z,void 0,G,a,this.state.context),G}finally{st(this,Nr,fn).call(this,{type:"error",error:G})}}})}},Lr=new WeakMap,xa=new WeakMap,rr=new WeakMap,Oi=new WeakMap,Nr=new WeakSet,fn=function(a){const s=c=>{switch(a.type){case"failed":return $e(se({},c),{failureCount:a.failureCount,failureReason:a.error});case"pause":return $e(se({},c),{isPaused:!0});case"continue":return $e(se({},c),{isPaused:!1});case"pending":return $e(se({},c),{context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"pending",variables:a.variables,submittedAt:Date.now()});case"success":return $e(se({},c),{data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return $e(se({},c),{data:void 0,error:a.error,failureCount:c.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"})}};this.state=s(this.state),notifyManager.batch(()=>{_e(this,Lr).forEach(c=>{c.onMutationUpdate(a)}),_e(this,rr).notify({mutation:this,type:"updated",action:a})})},gu);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pr,Ea,Vn,mu,MutationCache=(mu=class extends Subscribable{constructor(a={}){super();We(this,pr,void 0);We(this,Ea,void 0);We(this,Vn,void 0);this.config=a,Ne(this,pr,[]),Ne(this,Ea,0)}build(a,s,c){const f=new Mutation({mutationCache:this,mutationId:++wo(this,Ea)._,options:a.defaultMutationOptions(s),state:c});return this.add(f),f}add(a){_e(this,pr).push(a),this.notify({type:"added",mutation:a})}remove(a){Ne(this,pr,_e(this,pr).filter(s=>s!==a)),this.notify({type:"removed",mutation:a})}clear(){notifyManager.batch(()=>{_e(this,pr).forEach(a=>{this.remove(a)})})}getAll(){return _e(this,pr)}find(a){const s=se({exact:!0},a);return _e(this,pr).find(c=>matchMutation(s,c))}findAll(a={}){return _e(this,pr).filter(s=>matchMutation(a,s))}notify(a){notifyManager.batch(()=>{this.listeners.forEach(s=>{s(a)})})}resumePausedMutations(){var a;return Ne(this,Vn,((a=_e(this,Vn))!=null?a:Promise.resolve()).then(()=>{const s=_e(this,pr).filter(c=>c.state.isPaused);return notifyManager.batch(()=>s.reduce((c,f)=>c.then(()=>f.continue().catch(noop$7)),Promise.resolve()))}).then(()=>{Ne(this,Vn,void 0)})),_e(this,Vn)}},pr=new WeakMap,Ea=new WeakMap,Vn=new WeakMap,mu);function infiniteQueryBehavior(o){return{onFetch:(a,s)=>{const c=()=>xt(this,null,function*(){var O,A,F,j,L,M;const f=a.options,d=(F=(A=(O=a.fetchOptions)==null?void 0:O.meta)==null?void 0:A.fetchMore)==null?void 0:F.direction,y=((j=a.state.data)==null?void 0:j.pages)||[],_=((L=a.state.data)==null?void 0:L.pageParams)||[],S={pages:[],pageParams:[]};let b=!1;const $=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(a.signal.aborted?b=!0:a.signal.addEventListener("abort",()=>{b=!0}),a.signal)})},P=a.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${a.options.queryHash}'`))),T=(I,U,z)=>xt(this,null,function*(){if(b)return Promise.reject();if(U==null&&I.pages.length)return Promise.resolve(I);const H={queryKey:a.queryKey,pageParam:U,direction:z?"backward":"forward",meta:a.options.meta};$(H);const G=yield P(H),{maxPages:X}=a.options,W=z?addToStart:addToEnd;return{pages:W(I.pages,G,X),pageParams:W(I.pageParams,U,X)}});let C;if(d&&y.length){const I=d==="backward",U=I?getPreviousPageParam:getNextPageParam,z={pages:y,pageParams:_},H=U(f,z);C=yield T(z,H,I)}else{C=yield T(S,(M=_[0])!=null?M:f.initialPageParam);const I=o!=null?o:y.length;for(let U=1;U{var f,d;return(d=(f=a.options).persister)==null?void 0:d.call(f,c,{queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},s)}:a.fetchFn=c}}}function getNextPageParam(o,{pages:a,pageParams:s}){const c=a.length-1;return o.getNextPageParam(a[c],a,s[c],s)}function getPreviousPageParam(o,{pages:a,pageParams:s}){var c;return(c=o.getPreviousPageParam)==null?void 0:c.call(o,a[0],a,s[0],s)}var vt,gn,mn,Ci,Ri,yn,Ai,Mi,yu,QueryClient=(yu=class{constructor(o={}){We(this,vt,void 0);We(this,gn,void 0);We(this,mn,void 0);We(this,Ci,void 0);We(this,Ri,void 0);We(this,yn,void 0);We(this,Ai,void 0);We(this,Mi,void 0);Ne(this,vt,o.queryCache||new QueryCache),Ne(this,gn,o.mutationCache||new MutationCache),Ne(this,mn,o.defaultOptions||{}),Ne(this,Ci,new Map),Ne(this,Ri,new Map),Ne(this,yn,0)}mount(){wo(this,yn)._++,_e(this,yn)===1&&(Ne(this,Ai,focusManager.subscribe(()=>{focusManager.isFocused()&&(this.resumePausedMutations(),_e(this,vt).onFocus())})),Ne(this,Mi,onlineManager.subscribe(()=>{onlineManager.isOnline()&&(this.resumePausedMutations(),_e(this,vt).onOnline())})))}unmount(){var o,a;wo(this,yn)._--,_e(this,yn)===0&&((o=_e(this,Ai))==null||o.call(this),Ne(this,Ai,void 0),(a=_e(this,Mi))==null||a.call(this),Ne(this,Mi,void 0))}isFetching(o){return _e(this,vt).findAll($e(se({},o),{fetchStatus:"fetching"})).length}isMutating(o){return _e(this,gn).findAll($e(se({},o),{status:"pending"})).length}getQueryData(o){var a;return(a=_e(this,vt).find({queryKey:o}))==null?void 0:a.state.data}ensureQueryData(o){const a=this.getQueryData(o.queryKey);return a!==void 0?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(o){return this.getQueryCache().findAll(o).map(({queryKey:a,state:s})=>{const c=s.data;return[a,c]})}setQueryData(o,a,s){const c=_e(this,vt).find({queryKey:o}),f=c==null?void 0:c.state.data,d=functionalUpdate(a,f);if(typeof d=="undefined")return;const y=this.defaultQueryOptions({queryKey:o});return _e(this,vt).build(this,y).setData(d,$e(se({},s),{manual:!0}))}setQueriesData(o,a,s){return notifyManager.batch(()=>this.getQueryCache().findAll(o).map(({queryKey:c})=>[c,this.setQueryData(c,a,s)]))}getQueryState(o){var a;return(a=_e(this,vt).find({queryKey:o}))==null?void 0:a.state}removeQueries(o){const a=_e(this,vt);notifyManager.batch(()=>{a.findAll(o).forEach(s=>{a.remove(s)})})}resetQueries(o,a){const s=_e(this,vt),c=se({type:"active"},o);return notifyManager.batch(()=>(s.findAll(o).forEach(f=>{f.reset()}),this.refetchQueries(c,a)))}cancelQueries(o={},a={}){const s=se({revert:!0},a),c=notifyManager.batch(()=>_e(this,vt).findAll(o).map(f=>f.cancel(s)));return Promise.all(c).then(noop$7).catch(noop$7)}invalidateQueries(o={},a={}){return notifyManager.batch(()=>{var c,f;if(_e(this,vt).findAll(o).forEach(d=>{d.invalidate()}),o.refetchType==="none")return Promise.resolve();const s=$e(se({},o),{type:(f=(c=o.refetchType)!=null?c:o.type)!=null?f:"active"});return this.refetchQueries(s,a)})}refetchQueries(o={},a){var f;const s=$e(se({},a),{cancelRefetch:(f=a==null?void 0:a.cancelRefetch)!=null?f:!0}),c=notifyManager.batch(()=>_e(this,vt).findAll(o).filter(d=>!d.isDisabled()).map(d=>{let y=d.fetch(void 0,s);return s.throwOnError||(y=y.catch(noop$7)),d.state.fetchStatus==="paused"?Promise.resolve():y}));return Promise.all(c).then(noop$7)}fetchQuery(o){const a=this.defaultQueryOptions(o);typeof a.retry=="undefined"&&(a.retry=!1);const s=_e(this,vt).build(this,a);return s.isStaleByTime(a.staleTime)?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(o){return this.fetchQuery(o).then(noop$7).catch(noop$7)}fetchInfiniteQuery(o){return o.behavior=infiniteQueryBehavior(o.pages),this.fetchQuery(o)}prefetchInfiniteQuery(o){return this.fetchInfiniteQuery(o).then(noop$7).catch(noop$7)}resumePausedMutations(){return _e(this,gn).resumePausedMutations()}getQueryCache(){return _e(this,vt)}getMutationCache(){return _e(this,gn)}getDefaultOptions(){return _e(this,mn)}setDefaultOptions(o){Ne(this,mn,o)}setQueryDefaults(o,a){_e(this,Ci).set(hashKey(o),{queryKey:o,defaultOptions:a})}getQueryDefaults(o){const a=[..._e(this,Ci).values()];let s={};return a.forEach(c=>{partialMatchKey(o,c.queryKey)&&(s=se(se({},s),c.defaultOptions))}),s}setMutationDefaults(o,a){_e(this,Ri).set(hashKey(o),{mutationKey:o,defaultOptions:a})}getMutationDefaults(o){const a=[..._e(this,Ri).values()];let s={};return a.forEach(c=>{partialMatchKey(o,c.mutationKey)&&(s=se(se({},s),c.defaultOptions))}),s}defaultQueryOptions(o){if(o!=null&&o._defaulted)return o;const a=$e(se(se(se({},_e(this,mn).queries),(o==null?void 0:o.queryKey)&&this.getQueryDefaults(o.queryKey)),o),{_defaulted:!0});return a.queryHash||(a.queryHash=hashQueryKeyByOptions(a.queryKey,a)),typeof a.refetchOnReconnect=="undefined"&&(a.refetchOnReconnect=a.networkMode!=="always"),typeof a.throwOnError=="undefined"&&(a.throwOnError=!!a.suspense),typeof a.networkMode=="undefined"&&a.persister&&(a.networkMode="offlineFirst"),a}defaultMutationOptions(o){return o!=null&&o._defaulted?o:$e(se(se(se({},_e(this,mn).mutations),(o==null?void 0:o.mutationKey)&&this.getMutationDefaults(o.mutationKey)),o),{_defaulted:!0})}clear(){_e(this,vt).clear(),_e(this,gn).clear()}},vt=new WeakMap,gn=new WeakMap,mn=new WeakMap,Ci=new WeakMap,Ri=new WeakMap,yn=new WeakMap,Ai=new WeakMap,Mi=new WeakMap,yu),vn,qr,nr,Kr,Fi,To,$a,Ks,vu,MutationObserver$1=(vu=class extends Subscribable{constructor(s,c){super();We(this,Fi);We(this,$a);We(this,vn,void 0);We(this,qr,void 0);We(this,nr,void 0);We(this,Kr,void 0);Ne(this,qr,void 0),Ne(this,vn,s),this.setOptions(c),this.bindMethods(),st(this,Fi,To).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var f;const c=this.options;this.options=_e(this,vn).defaultMutationOptions(s),shallowEqualObjects(c,this.options)||_e(this,vn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_e(this,nr),observer:this}),(f=_e(this,nr))==null||f.setOptions(this.options),c!=null&&c.mutationKey&&this.options.mutationKey&&hashKey(c.mutationKey)!==hashKey(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var s;this.hasListeners()||(s=_e(this,nr))==null||s.removeObserver(this)}onMutationUpdate(s){st(this,Fi,To).call(this),st(this,$a,Ks).call(this,s)}getCurrentResult(){return _e(this,qr)}reset(){var s;(s=_e(this,nr))==null||s.removeObserver(this),Ne(this,nr,void 0),st(this,Fi,To).call(this),st(this,$a,Ks).call(this)}mutate(s,c){var f;return Ne(this,Kr,c),(f=_e(this,nr))==null||f.removeObserver(this),Ne(this,nr,_e(this,vn).getMutationCache().build(_e(this,vn),this.options)),_e(this,nr).addObserver(this),_e(this,nr).execute(s)}},vn=new WeakMap,qr=new WeakMap,nr=new WeakMap,Kr=new WeakMap,Fi=new WeakSet,To=function(){var c,f;const s=(f=(c=_e(this,nr))==null?void 0:c.state)!=null?f:getDefaultState();Ne(this,qr,$e(se({},s),{isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset}))},$a=new WeakSet,Ks=function(s){notifyManager.batch(()=>{var c,f,d,y,_,S,b,$;if(_e(this,Kr)&&this.hasListeners()){const P=_e(this,qr).variables,T=_e(this,qr).context;(s==null?void 0:s.type)==="success"?((f=(c=_e(this,Kr)).onSuccess)==null||f.call(c,s.data,P,T),(y=(d=_e(this,Kr)).onSettled)==null||y.call(d,s.data,null,P,T)):(s==null?void 0:s.type)==="error"&&((S=(_=_e(this,Kr)).onError)==null||S.call(_,s.error,P,T),($=(b=_e(this,Kr)).onSettled)==null||$.call(b,void 0,s.error,P,T))}this.listeners.forEach(P=>{P(_e(this,qr))})})},vu),QueryClientContext=reactExports.createContext(void 0),useQueryClient=o=>{const a=reactExports.useContext(QueryClientContext);if(o)return o;if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},QueryClientProvider=({client:o,children:a})=>(reactExports.useEffect(()=>(o.mount(),()=>{o.unmount()}),[o]),reactExports.createElement(QueryClientContext.Provider,{value:o},a));function shouldThrowError(o,a){return typeof o=="function"?o(...a):!!o}function useMutation(o,a){const s=useQueryClient(a),[c]=reactExports.useState(()=>new MutationObserver$1(s,o));reactExports.useEffect(()=>{c.setOptions(o)},[c,o]);const f=reactExports.useSyncExternalStore(reactExports.useCallback(y=>c.subscribe(notifyManager.batchCalls(y)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d=reactExports.useCallback((y,_)=>{c.mutate(y,_).catch(noop$6)},[c]);if(f.error&&shouldThrowError(c.options.throwOnError,[f.error]))throw f.error;return $e(se({},f),{mutate:d,mutateAsync:f.mutate})}function noop$6(){}const scriptRel="modulepreload",assetsURL=function(o){return"/react-antd-admin-pnpm/"+o},seen={},__vitePreload=function(a,s,c){if(!s||s.length===0)return a();const f=document.getElementsByTagName("link");return Promise.all(s.map(d=>{if(d=assetsURL(d),d in seen)return;seen[d]=!0;const y=d.endsWith(".css"),_=y?'[rel="stylesheet"]':"";if(!!c)for(let $=f.length-1;$>=0;$--){const P=f[$];if(P.href===d&&(!y||P.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${_}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":scriptRel,y||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),y)return new Promise(($,P)=>{b.addEventListener("load",$),b.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>a()).catch(d=>{const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=d,window.dispatchEvent(y),!y.defaultPrevented)throw d})};var ReactQueryDevtools2=function(){return null},client={},createRoot,m$1=reactDomExports;createRoot=client.createRoot=m$1.createRoot,client.hydrateRoot=m$1.hydrateRoot;var shim={exports:{}},useSyncExternalStoreShim_production_min={};/** +var Yu=Object.defineProperty,Xu=Object.defineProperties;var Qu=Object.getOwnPropertyDescriptors;var $o=Object.getOwnPropertySymbols;var su=Object.prototype.hasOwnProperty,lu=Object.prototype.propertyIsEnumerable;var uu=Math.pow,Vs=(o,a,s)=>a in o?Yu(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,se=(o,a)=>{for(var s in a||(a={}))su.call(a,s)&&Vs(o,s,a[s]);if($o)for(var s of $o(a))lu.call(a,s)&&Vs(o,s,a[s]);return o},$e=(o,a)=>Xu(o,Qu(a));var er=(o,a)=>{var s={};for(var c in o)su.call(o,c)&&a.indexOf(c)<0&&(s[c]=o[c]);if(o!=null&&$o)for(var c of $o(o))a.indexOf(c)<0&&lu.call(o,c)&&(s[c]=o[c]);return s};var tr=(o,a,s)=>(Vs(o,typeof a!="symbol"?a+"":a,s),s),Ws=(o,a,s)=>{if(!a.has(o))throw TypeError("Cannot "+s)};var _e=(o,a,s)=>(Ws(o,a,"read from private field"),s?s.call(o):a.get(o)),We=(o,a,s)=>{if(a.has(o))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(o):a.set(o,s)},ke=(o,a,s,c)=>(Ws(o,a,"write to private field"),c?c.call(o,s):a.set(o,s),s);var wo=(o,a,s,c)=>({set _(f){ke(o,a,f,s)},get _(){return _e(o,a,c)}}),st=(o,a,s)=>(Ws(o,a,"access private method"),s);var xt=(o,a,s)=>new Promise((c,f)=>{var d=S=>{try{_(s.next(S))}catch(b){f(b)}},y=S=>{try{_(s.throw(S))}catch(b){f(b)}},_=S=>S.done?c(S.value):Promise.resolve(S.value).then(d,y);_((s=s.apply(o,a)).next())});import{_ as _objectWithoutPropertiesLoose$9,a as _extends$f,h as hoistNonReactStatics,r as reactIsExports,c as createStyles,j as jsxRuntimeExports,C as ConfigProvider,A as App$1,b as classnamesExports,R as ResizeObserver_es,d as json2mq_1,e as _setPrototypeOf$8,f as _assertThisInitialized$6,B as Badge,T as Tag$1,g as classNames,i as Button,k as Tooltip,l as _Popconfirm,M as Modal,m as message,P as PlusOutlined,D as DeleteOutlined,E as ExclamationCircleOutlined,n as Card,o as DownOutlined,S as Space,p as Drawer,q as dayjs_minExports,s as Select,I as Input,t as InputNumber,u as Switch,v as Checkbox,w as Radio,x as DatePicker,y as _Rate,z as Slider$1,F as dayjs,G as Form,H as CopyOutlined,J as Row,K as Col,Q as QuestionCircleOutlined,L as Typography,N as _Popover,O as LoadingOutlined,U as InfoCircleFilled,V as Image$2,W as Table,X as Pagination,Y as useTheme,Z as ReadOutlined,$ as FullscreenExitOutlined,a0 as FullscreenOutlined,a1 as GithubOutlined,a2 as SearchOutlined,a3 as List,a4 as Segmented,a5 as useThemeMode,a6 as ErrorBoundary,a7 as SettingOutlined,a8 as notification,a9 as LockOutlined,aa as PoweroffOutlined,ab as Dropdown,ac as LeftOutlined,ad as RightOutlined,ae as RedoOutlined,af as CloseOutlined,ag as Breadcrumb,ah as Layout,ai as Spin,aj as Menu,ak as Result,al as Alert,am as UserOutlined,an as createGlobalStyle,ao as ThemeProvider}from"../antd-66264537.js";import{r as reactExports,c as reactDomExports,g as getDefaultExportFromCjs,e as commonjsGlobal,a as React$4,f as getAugmentedNamespace,s as schedulerExports,u as useLocation,L as Link,h as useNavigate,m as matchRoutes,O as Outlet,N as Navigate,i as useLoaderData,j as useSearchParams,k as redirect,l as createHashRouter,n as RouterProvider}from"../react-f288da4a.js";function _mergeNamespaces(o,a){for(var s=0;sc[f]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const y of d.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function s(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(f){if(f.ep)return;f.ep=!0;const d=s(f);fetch(f.href,d)}})();var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(o){return this.listeners.add(o),this.onSubscribe(),()=>{this.listeners.delete(o),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},isServer=typeof window=="undefined"||"Deno"in window;function noop$7(){}function functionalUpdate(o,a){return typeof o=="function"?o(a):o}function isValidTimeout(o){return typeof o=="number"&&o>=0&&o!==1/0}function timeUntilStale(o,a){return Math.max(o+(a||0)-Date.now(),0)}function matchQuery(o,a){const{type:s="all",exact:c,fetchStatus:f,predicate:d,queryKey:y,stale:_}=o;if(y){if(c){if(a.queryHash!==hashQueryKeyByOptions(y,a.options))return!1}else if(!partialMatchKey(a.queryKey,y))return!1}if(s!=="all"){const S=a.isActive();if(s==="active"&&!S||s==="inactive"&&S)return!1}return!(typeof _=="boolean"&&a.isStale()!==_||typeof f!="undefined"&&f!==a.state.fetchStatus||d&&!d(a))}function matchMutation(o,a){const{exact:s,status:c,predicate:f,mutationKey:d}=o;if(d){if(!a.options.mutationKey)return!1;if(s){if(hashKey(a.options.mutationKey)!==hashKey(d))return!1}else if(!partialMatchKey(a.options.mutationKey,d))return!1}return!(c&&a.state.status!==c||f&&!f(a))}function hashQueryKeyByOptions(o,a){return((a==null?void 0:a.queryKeyHashFn)||hashKey)(o)}function hashKey(o){return JSON.stringify(o,(a,s)=>isPlainObject$5(s)?Object.keys(s).sort().reduce((c,f)=>(c[f]=s[f],c),{}):s)}function partialMatchKey(o,a){return o===a?!0:typeof o!=typeof a?!1:o&&a&&typeof o=="object"&&typeof a=="object"?!Object.keys(a).some(s=>!partialMatchKey(o[s],a[s])):!1}function replaceEqualDeep(o,a){if(o===a)return o;const s=isPlainArray(o)&&isPlainArray(a);if(s||isPlainObject$5(o)&&isPlainObject$5(a)){const c=s?o:Object.keys(o),f=c.length,d=s?a:Object.keys(a),y=d.length,_=s?[]:{};let S=0;for(let b=0;b{setTimeout(a,o)})}function replaceData(o,a,s){return typeof s.structuralSharing=="function"?s.structuralSharing(o,a):s.structuralSharing!==!1?replaceEqualDeep(o,a):a}function addToEnd(o,a,s=0){const c=[...o,a];return s&&c.length>s?c.slice(1):c}function addToStart(o,a,s=0){const c=[a,...o];return s&&c.length>s?c.slice(0,-1):c}var Bn,dn,xi,cu,FocusManager=(cu=class extends Subscribable{constructor(){super();We(this,Bn,void 0);We(this,dn,void 0);We(this,xi,void 0);ke(this,xi,a=>{if(!isServer&&window.addEventListener){const s=()=>a();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){_e(this,dn)||this.setEventListener(_e(this,xi))}onUnsubscribe(){var a;this.hasListeners()||((a=_e(this,dn))==null||a.call(this),ke(this,dn,void 0))}setEventListener(a){var s;ke(this,xi,a),(s=_e(this,dn))==null||s.call(this),ke(this,dn,a(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(a){_e(this,Bn)!==a&&(ke(this,Bn,a),this.onFocus())}onFocus(){this.listeners.forEach(a=>{a()})}isFocused(){var a;return typeof _e(this,Bn)=="boolean"?_e(this,Bn):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Bn=new WeakMap,dn=new WeakMap,xi=new WeakMap,cu),focusManager=new FocusManager,Ei,hn,$i,fu,OnlineManager=(fu=class extends Subscribable{constructor(){super();We(this,Ei,!0);We(this,hn,void 0);We(this,$i,void 0);ke(this,$i,a=>{if(!isServer&&window.addEventListener){const s=()=>a(!0),c=()=>a(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}})}onSubscribe(){_e(this,hn)||this.setEventListener(_e(this,$i))}onUnsubscribe(){var a;this.hasListeners()||((a=_e(this,hn))==null||a.call(this),ke(this,hn,void 0))}setEventListener(a){var s;ke(this,$i,a),(s=_e(this,hn))==null||s.call(this),ke(this,hn,a(this.setOnline.bind(this)))}setOnline(a){_e(this,Ei)!==a&&(ke(this,Ei,a),this.listeners.forEach(c=>{c(a)}))}isOnline(){return _e(this,Ei)}},Ei=new WeakMap,hn=new WeakMap,$i=new WeakMap,fu),onlineManager=new OnlineManager;function defaultRetryDelay(o){return Math.min(1e3*uu(2,o),3e4)}function canFetch(o){return(o!=null?o:"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class{constructor(o){this.revert=o==null?void 0:o.revert,this.silent=o==null?void 0:o.silent}};function isCancelledError(o){return o instanceof CancelledError}function createRetryer(o){let a=!1,s=0,c=!1,f,d,y;const _=new Promise((M,j)=>{d=M,y=j}),S=M=>{var j;c||(C(new CancelledError(M)),(j=o.abort)==null||j.call(o))},b=()=>{a=!0},$=()=>{a=!1},P=()=>!focusManager.isFocused()||o.networkMode!=="always"&&!onlineManager.isOnline(),T=M=>{var j;c||(c=!0,(j=o.onSuccess)==null||j.call(o,M),f==null||f(),d(M))},C=M=>{var j;c||(c=!0,(j=o.onError)==null||j.call(o,M),f==null||f(),y(M))},O=()=>new Promise(M=>{var j;f=L=>{const F=c||!P();return F&&M(L),F},(j=o.onPause)==null||j.call(o)}).then(()=>{var M;f=void 0,c||(M=o.onContinue)==null||M.call(o)}),A=()=>{if(c)return;let M;try{M=o.fn()}catch(j){M=Promise.reject(j)}Promise.resolve(M).then(T).catch(j=>{var z,H,G;if(c)return;const L=(z=o.retry)!=null?z:isServer?0:3,F=(H=o.retryDelay)!=null?H:defaultRetryDelay,I=typeof F=="function"?F(s,j):F,U=L===!0||typeof L=="number"&&s{if(P())return O()}).then(()=>{a?C(j):A()})})};return canFetch(o.networkMode)?A():O().then(A),{promise:_,cancel:S,continue:()=>(f==null?void 0:f())?_:Promise.resolve(),cancelRetry:b,continueRetry:$}}function createNotifyManager(){let o=[],a=0,s=T=>{T()},c=T=>{T()},f=T=>setTimeout(T,0);const d=T=>{f=T},y=T=>{let C;a++;try{C=T()}finally{a--,a||b()}return C},_=T=>{a?o.push(T):f(()=>{s(T)})},S=T=>(...C)=>{_(()=>{T(...C)})},b=()=>{const T=o;o=[],T.length&&f(()=>{c(()=>{T.forEach(C=>{s(C)})})})};return{batch:y,batchCalls:S,schedule:_,setNotifyFunction:T=>{s=T},setBatchNotifyFunction:T=>{c=T},setScheduler:d}}var notifyManager=createNotifyManager(),Hn,du,Removable=(du=class{constructor(){We(this,Hn,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&ke(this,Hn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(o){this.gcTime=Math.max(this.gcTime||0,o!=null?o:isServer?1/0:5*60*1e3)}clearGcTimeout(){_e(this,Hn)&&(clearTimeout(_e(this,Hn)),ke(this,Hn,void 0))}},Hn=new WeakMap,du),wi,Pi,dr,pn,hr,Et,Sa,Gn,Ti,Po,xr,Wr,hu,Query=(hu=class extends Removable{constructor(a){super();We(this,Ti);We(this,xr);We(this,wi,void 0);We(this,Pi,void 0);We(this,dr,void 0);We(this,pn,void 0);We(this,hr,void 0);We(this,Et,void 0);We(this,Sa,void 0);We(this,Gn,void 0);ke(this,Gn,!1),ke(this,Sa,a.defaultOptions),st(this,Ti,Po).call(this,a.options),ke(this,Et,[]),ke(this,dr,a.cache),this.queryKey=a.queryKey,this.queryHash=a.queryHash,ke(this,wi,a.state||getDefaultState$1(this.options)),this.state=_e(this,wi),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!_e(this,Et).length&&this.state.fetchStatus==="idle"&&_e(this,dr).remove(this)}setData(a,s){const c=replaceData(this.state.data,a,this.options);return st(this,xr,Wr).call(this,{data:c,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),c}setState(a,s){st(this,xr,Wr).call(this,{type:"setState",state:a,setStateOptions:s})}cancel(a){var c;const s=_e(this,pn);return(c=_e(this,hr))==null||c.cancel(a),s?s.then(noop$7).catch(noop$7):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_e(this,wi))}isActive(){return _e(this,Et).some(a=>a.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||_e(this,Et).some(a=>a.getCurrentResult().isStale)}isStaleByTime(a=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,a)}onFocus(){var s;const a=_e(this,Et).find(c=>c.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(s=_e(this,hr))==null||s.continue()}onOnline(){var s;const a=_e(this,Et).find(c=>c.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(s=_e(this,hr))==null||s.continue()}addObserver(a){_e(this,Et).includes(a)||(_e(this,Et).push(a),this.clearGcTimeout(),_e(this,dr).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){_e(this,Et).includes(a)&&(ke(this,Et,_e(this,Et).filter(s=>s!==a)),_e(this,Et).length||(_e(this,hr)&&(_e(this,Gn)?_e(this,hr).cancel({revert:!0}):_e(this,hr).cancelRetry()),this.scheduleGc()),_e(this,dr).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return _e(this,Et).length}invalidate(){this.state.isInvalidated||st(this,xr,Wr).call(this,{type:"invalidate"})}fetch(a,s){var b,$,P,T;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(_e(this,pn))return(b=_e(this,hr))==null||b.continueRetry(),_e(this,pn)}if(a&&st(this,Ti,Po).call(this,a),!this.options.queryFn){const C=_e(this,Et).find(O=>O.options.queryFn);C&&st(this,Ti,Po).call(this,C.options)}const c=new AbortController,f={queryKey:this.queryKey,meta:this.meta},d=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(ke(this,Gn,!0),c.signal)})};d(f);const y=()=>this.options.queryFn?(ke(this,Gn,!1),this.options.persister?this.options.persister(this.options.queryFn,f,this):this.options.queryFn(f)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),_={fetchOptions:s,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:y};d(_),($=this.options.behavior)==null||$.onFetch(_,this),ke(this,Pi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((P=_.fetchOptions)==null?void 0:P.meta))&&st(this,xr,Wr).call(this,{type:"fetch",meta:(T=_.fetchOptions)==null?void 0:T.meta});const S=C=>{var O,A,M,j;isCancelledError(C)&&C.silent||st(this,xr,Wr).call(this,{type:"error",error:C}),isCancelledError(C)||((A=(O=_e(this,dr).config).onError)==null||A.call(O,C,this),(j=(M=_e(this,dr).config).onSettled)==null||j.call(M,this.state.data,C,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ke(this,hr,createRetryer({fn:_.fetchFn,abort:c.abort.bind(c),onSuccess:C=>{var O,A,M,j;if(typeof C=="undefined"){S(new Error(`${this.queryHash} data is undefined`));return}this.setData(C),(A=(O=_e(this,dr).config).onSuccess)==null||A.call(O,C,this),(j=(M=_e(this,dr).config).onSettled)==null||j.call(M,C,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:S,onFail:(C,O)=>{st(this,xr,Wr).call(this,{type:"failed",failureCount:C,error:O})},onPause:()=>{st(this,xr,Wr).call(this,{type:"pause"})},onContinue:()=>{st(this,xr,Wr).call(this,{type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode})),ke(this,pn,_e(this,hr).promise),_e(this,pn)}},wi=new WeakMap,Pi=new WeakMap,dr=new WeakMap,pn=new WeakMap,hr=new WeakMap,Et=new WeakMap,Sa=new WeakMap,Gn=new WeakMap,Ti=new WeakSet,Po=function(a){this.options=se(se({},_e(this,Sa)),a),this.updateGcTime(this.options.gcTime)},xr=new WeakSet,Wr=function(a){const s=c=>{var f,d;switch(a.type){case"failed":return $e(se({},c),{fetchFailureCount:a.failureCount,fetchFailureReason:a.error});case"pause":return $e(se({},c),{fetchStatus:"paused"});case"continue":return $e(se({},c),{fetchStatus:"fetching"});case"fetch":return se($e(se({},c),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(f=a.meta)!=null?f:null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused"}),!c.dataUpdatedAt&&{error:null,status:"pending"});case"success":return se($e(se({},c),{data:a.data,dataUpdateCount:c.dataUpdateCount+1,dataUpdatedAt:(d=a.dataUpdatedAt)!=null?d:Date.now(),error:null,isInvalidated:!1,status:"success"}),!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const y=a.error;return isCancelledError(y)&&y.revert&&_e(this,Pi)?$e(se({},_e(this,Pi)),{fetchStatus:"idle"}):$e(se({},c),{error:y,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:y,fetchStatus:"idle",status:"error"});case"invalidate":return $e(se({},c),{isInvalidated:!0});case"setState":return se(se({},c),a.state)}};this.state=s(this.state),notifyManager.batch(()=>{_e(this,Et).forEach(c=>{c.onQueryUpdate()}),_e(this,dr).notify({query:this,type:"updated",action:a})})},hu);function getDefaultState$1(o){const a=typeof o.initialData=="function"?o.initialData():o.initialData,s=typeof a!="undefined",c=s?typeof o.initialDataUpdatedAt=="function"?o.initialDataUpdatedAt():o.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:s?c!=null?c:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Ir,pu,QueryCache=(pu=class extends Subscribable{constructor(a={}){super();We(this,Ir,void 0);this.config=a,ke(this,Ir,new Map)}build(a,s,c){var _;const f=s.queryKey,d=(_=s.queryHash)!=null?_:hashQueryKeyByOptions(f,s);let y=this.get(d);return y||(y=new Query({cache:this,queryKey:f,queryHash:d,options:a.defaultQueryOptions(s),state:c,defaultOptions:a.getQueryDefaults(f)}),this.add(y)),y}add(a){_e(this,Ir).has(a.queryHash)||(_e(this,Ir).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const s=_e(this,Ir).get(a.queryHash);s&&(a.destroy(),s===a&&_e(this,Ir).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return _e(this,Ir).get(a)}getAll(){return[..._e(this,Ir).values()]}find(a){const s=se({exact:!0},a);return this.getAll().find(c=>matchQuery(s,c))}findAll(a={}){const s=this.getAll();return Object.keys(a).length>0?s.filter(c=>matchQuery(a,c)):s}notify(a){notifyManager.batch(()=>{this.listeners.forEach(s=>{s(a)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Ir=new WeakMap,pu),Lr,xa,rr,Oi,kr,fn,gu,Mutation=(gu=class extends Removable{constructor(a){super();We(this,kr);We(this,Lr,void 0);We(this,xa,void 0);We(this,rr,void 0);We(this,Oi,void 0);this.mutationId=a.mutationId,ke(this,xa,a.defaultOptions),ke(this,rr,a.mutationCache),ke(this,Lr,[]),this.state=a.state||getDefaultState(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=se(se({},_e(this,xa)),a),this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){_e(this,Lr).includes(a)||(_e(this,Lr).push(a),this.clearGcTimeout(),_e(this,rr).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){ke(this,Lr,_e(this,Lr).filter(s=>s!==a)),this.scheduleGc(),_e(this,rr).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){_e(this,Lr).length||(this.state.status==="pending"?this.scheduleGc():_e(this,rr).remove(this))}continue(){var a,s;return(s=(a=_e(this,Oi))==null?void 0:a.continue())!=null?s:this.execute(this.state.variables)}execute(a){return xt(this,null,function*(){var f,d,y,_,S,b,$,P,T,C,O,A,M,j,L,F,I,U,z,H;const s=()=>{var G;return ke(this,Oi,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(X,W)=>{st(this,kr,fn).call(this,{type:"failed",failureCount:X,error:W})},onPause:()=>{st(this,kr,fn).call(this,{type:"pause"})},onContinue:()=>{st(this,kr,fn).call(this,{type:"continue"})},retry:(G=this.options.retry)!=null?G:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),_e(this,Oi).promise},c=this.state.status==="pending";try{if(!c){st(this,kr,fn).call(this,{type:"pending",variables:a}),yield(d=(f=_e(this,rr).config).onMutate)==null?void 0:d.call(f,a,this);const X=yield(_=(y=this.options).onMutate)==null?void 0:_.call(y,a);X!==this.state.context&&st(this,kr,fn).call(this,{type:"pending",context:X,variables:a})}const G=yield s();return yield(b=(S=_e(this,rr).config).onSuccess)==null?void 0:b.call(S,G,a,this.state.context,this),yield(P=($=this.options).onSuccess)==null?void 0:P.call($,G,a,this.state.context),yield(C=(T=_e(this,rr).config).onSettled)==null?void 0:C.call(T,G,null,this.state.variables,this.state.context,this),yield(A=(O=this.options).onSettled)==null?void 0:A.call(O,G,null,a,this.state.context),st(this,kr,fn).call(this,{type:"success",data:G}),G}catch(G){try{throw yield(j=(M=_e(this,rr).config).onError)==null?void 0:j.call(M,G,a,this.state.context,this),yield(F=(L=this.options).onError)==null?void 0:F.call(L,G,a,this.state.context),yield(U=(I=_e(this,rr).config).onSettled)==null?void 0:U.call(I,void 0,G,this.state.variables,this.state.context,this),yield(H=(z=this.options).onSettled)==null?void 0:H.call(z,void 0,G,a,this.state.context),G}finally{st(this,kr,fn).call(this,{type:"error",error:G})}}})}},Lr=new WeakMap,xa=new WeakMap,rr=new WeakMap,Oi=new WeakMap,kr=new WeakSet,fn=function(a){const s=c=>{switch(a.type){case"failed":return $e(se({},c),{failureCount:a.failureCount,failureReason:a.error});case"pause":return $e(se({},c),{isPaused:!0});case"continue":return $e(se({},c),{isPaused:!1});case"pending":return $e(se({},c),{context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"pending",variables:a.variables,submittedAt:Date.now()});case"success":return $e(se({},c),{data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return $e(se({},c),{data:void 0,error:a.error,failureCount:c.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"})}};this.state=s(this.state),notifyManager.batch(()=>{_e(this,Lr).forEach(c=>{c.onMutationUpdate(a)}),_e(this,rr).notify({mutation:this,type:"updated",action:a})})},gu);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pr,Ea,Vn,mu,MutationCache=(mu=class extends Subscribable{constructor(a={}){super();We(this,pr,void 0);We(this,Ea,void 0);We(this,Vn,void 0);this.config=a,ke(this,pr,[]),ke(this,Ea,0)}build(a,s,c){const f=new Mutation({mutationCache:this,mutationId:++wo(this,Ea)._,options:a.defaultMutationOptions(s),state:c});return this.add(f),f}add(a){_e(this,pr).push(a),this.notify({type:"added",mutation:a})}remove(a){ke(this,pr,_e(this,pr).filter(s=>s!==a)),this.notify({type:"removed",mutation:a})}clear(){notifyManager.batch(()=>{_e(this,pr).forEach(a=>{this.remove(a)})})}getAll(){return _e(this,pr)}find(a){const s=se({exact:!0},a);return _e(this,pr).find(c=>matchMutation(s,c))}findAll(a={}){return _e(this,pr).filter(s=>matchMutation(a,s))}notify(a){notifyManager.batch(()=>{this.listeners.forEach(s=>{s(a)})})}resumePausedMutations(){var a;return ke(this,Vn,((a=_e(this,Vn))!=null?a:Promise.resolve()).then(()=>{const s=_e(this,pr).filter(c=>c.state.isPaused);return notifyManager.batch(()=>s.reduce((c,f)=>c.then(()=>f.continue().catch(noop$7)),Promise.resolve()))}).then(()=>{ke(this,Vn,void 0)})),_e(this,Vn)}},pr=new WeakMap,Ea=new WeakMap,Vn=new WeakMap,mu);function infiniteQueryBehavior(o){return{onFetch:(a,s)=>{const c=()=>xt(this,null,function*(){var O,A,M,j,L,F;const f=a.options,d=(M=(A=(O=a.fetchOptions)==null?void 0:O.meta)==null?void 0:A.fetchMore)==null?void 0:M.direction,y=((j=a.state.data)==null?void 0:j.pages)||[],_=((L=a.state.data)==null?void 0:L.pageParams)||[],S={pages:[],pageParams:[]};let b=!1;const $=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(a.signal.aborted?b=!0:a.signal.addEventListener("abort",()=>{b=!0}),a.signal)})},P=a.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${a.options.queryHash}'`))),T=(I,U,z)=>xt(this,null,function*(){if(b)return Promise.reject();if(U==null&&I.pages.length)return Promise.resolve(I);const H={queryKey:a.queryKey,pageParam:U,direction:z?"backward":"forward",meta:a.options.meta};$(H);const G=yield P(H),{maxPages:X}=a.options,W=z?addToStart:addToEnd;return{pages:W(I.pages,G,X),pageParams:W(I.pageParams,U,X)}});let C;if(d&&y.length){const I=d==="backward",U=I?getPreviousPageParam:getNextPageParam,z={pages:y,pageParams:_},H=U(f,z);C=yield T(z,H,I)}else{C=yield T(S,(F=_[0])!=null?F:f.initialPageParam);const I=o!=null?o:y.length;for(let U=1;U{var f,d;return(d=(f=a.options).persister)==null?void 0:d.call(f,c,{queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},s)}:a.fetchFn=c}}}function getNextPageParam(o,{pages:a,pageParams:s}){const c=a.length-1;return o.getNextPageParam(a[c],a,s[c],s)}function getPreviousPageParam(o,{pages:a,pageParams:s}){var c;return(c=o.getPreviousPageParam)==null?void 0:c.call(o,a[0],a,s[0],s)}var vt,gn,mn,Ci,Ri,yn,Ai,Fi,yu,QueryClient=(yu=class{constructor(o={}){We(this,vt,void 0);We(this,gn,void 0);We(this,mn,void 0);We(this,Ci,void 0);We(this,Ri,void 0);We(this,yn,void 0);We(this,Ai,void 0);We(this,Fi,void 0);ke(this,vt,o.queryCache||new QueryCache),ke(this,gn,o.mutationCache||new MutationCache),ke(this,mn,o.defaultOptions||{}),ke(this,Ci,new Map),ke(this,Ri,new Map),ke(this,yn,0)}mount(){wo(this,yn)._++,_e(this,yn)===1&&(ke(this,Ai,focusManager.subscribe(()=>{focusManager.isFocused()&&(this.resumePausedMutations(),_e(this,vt).onFocus())})),ke(this,Fi,onlineManager.subscribe(()=>{onlineManager.isOnline()&&(this.resumePausedMutations(),_e(this,vt).onOnline())})))}unmount(){var o,a;wo(this,yn)._--,_e(this,yn)===0&&((o=_e(this,Ai))==null||o.call(this),ke(this,Ai,void 0),(a=_e(this,Fi))==null||a.call(this),ke(this,Fi,void 0))}isFetching(o){return _e(this,vt).findAll($e(se({},o),{fetchStatus:"fetching"})).length}isMutating(o){return _e(this,gn).findAll($e(se({},o),{status:"pending"})).length}getQueryData(o){var a;return(a=_e(this,vt).find({queryKey:o}))==null?void 0:a.state.data}ensureQueryData(o){const a=this.getQueryData(o.queryKey);return a!==void 0?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(o){return this.getQueryCache().findAll(o).map(({queryKey:a,state:s})=>{const c=s.data;return[a,c]})}setQueryData(o,a,s){const c=_e(this,vt).find({queryKey:o}),f=c==null?void 0:c.state.data,d=functionalUpdate(a,f);if(typeof d=="undefined")return;const y=this.defaultQueryOptions({queryKey:o});return _e(this,vt).build(this,y).setData(d,$e(se({},s),{manual:!0}))}setQueriesData(o,a,s){return notifyManager.batch(()=>this.getQueryCache().findAll(o).map(({queryKey:c})=>[c,this.setQueryData(c,a,s)]))}getQueryState(o){var a;return(a=_e(this,vt).find({queryKey:o}))==null?void 0:a.state}removeQueries(o){const a=_e(this,vt);notifyManager.batch(()=>{a.findAll(o).forEach(s=>{a.remove(s)})})}resetQueries(o,a){const s=_e(this,vt),c=se({type:"active"},o);return notifyManager.batch(()=>(s.findAll(o).forEach(f=>{f.reset()}),this.refetchQueries(c,a)))}cancelQueries(o={},a={}){const s=se({revert:!0},a),c=notifyManager.batch(()=>_e(this,vt).findAll(o).map(f=>f.cancel(s)));return Promise.all(c).then(noop$7).catch(noop$7)}invalidateQueries(o={},a={}){return notifyManager.batch(()=>{var c,f;if(_e(this,vt).findAll(o).forEach(d=>{d.invalidate()}),o.refetchType==="none")return Promise.resolve();const s=$e(se({},o),{type:(f=(c=o.refetchType)!=null?c:o.type)!=null?f:"active"});return this.refetchQueries(s,a)})}refetchQueries(o={},a){var f;const s=$e(se({},a),{cancelRefetch:(f=a==null?void 0:a.cancelRefetch)!=null?f:!0}),c=notifyManager.batch(()=>_e(this,vt).findAll(o).filter(d=>!d.isDisabled()).map(d=>{let y=d.fetch(void 0,s);return s.throwOnError||(y=y.catch(noop$7)),d.state.fetchStatus==="paused"?Promise.resolve():y}));return Promise.all(c).then(noop$7)}fetchQuery(o){const a=this.defaultQueryOptions(o);typeof a.retry=="undefined"&&(a.retry=!1);const s=_e(this,vt).build(this,a);return s.isStaleByTime(a.staleTime)?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(o){return this.fetchQuery(o).then(noop$7).catch(noop$7)}fetchInfiniteQuery(o){return o.behavior=infiniteQueryBehavior(o.pages),this.fetchQuery(o)}prefetchInfiniteQuery(o){return this.fetchInfiniteQuery(o).then(noop$7).catch(noop$7)}resumePausedMutations(){return _e(this,gn).resumePausedMutations()}getQueryCache(){return _e(this,vt)}getMutationCache(){return _e(this,gn)}getDefaultOptions(){return _e(this,mn)}setDefaultOptions(o){ke(this,mn,o)}setQueryDefaults(o,a){_e(this,Ci).set(hashKey(o),{queryKey:o,defaultOptions:a})}getQueryDefaults(o){const a=[..._e(this,Ci).values()];let s={};return a.forEach(c=>{partialMatchKey(o,c.queryKey)&&(s=se(se({},s),c.defaultOptions))}),s}setMutationDefaults(o,a){_e(this,Ri).set(hashKey(o),{mutationKey:o,defaultOptions:a})}getMutationDefaults(o){const a=[..._e(this,Ri).values()];let s={};return a.forEach(c=>{partialMatchKey(o,c.mutationKey)&&(s=se(se({},s),c.defaultOptions))}),s}defaultQueryOptions(o){if(o!=null&&o._defaulted)return o;const a=$e(se(se(se({},_e(this,mn).queries),(o==null?void 0:o.queryKey)&&this.getQueryDefaults(o.queryKey)),o),{_defaulted:!0});return a.queryHash||(a.queryHash=hashQueryKeyByOptions(a.queryKey,a)),typeof a.refetchOnReconnect=="undefined"&&(a.refetchOnReconnect=a.networkMode!=="always"),typeof a.throwOnError=="undefined"&&(a.throwOnError=!!a.suspense),typeof a.networkMode=="undefined"&&a.persister&&(a.networkMode="offlineFirst"),a}defaultMutationOptions(o){return o!=null&&o._defaulted?o:$e(se(se(se({},_e(this,mn).mutations),(o==null?void 0:o.mutationKey)&&this.getMutationDefaults(o.mutationKey)),o),{_defaulted:!0})}clear(){_e(this,vt).clear(),_e(this,gn).clear()}},vt=new WeakMap,gn=new WeakMap,mn=new WeakMap,Ci=new WeakMap,Ri=new WeakMap,yn=new WeakMap,Ai=new WeakMap,Fi=new WeakMap,yu),vn,qr,nr,Kr,Mi,To,$a,Ks,vu,MutationObserver$1=(vu=class extends Subscribable{constructor(s,c){super();We(this,Mi);We(this,$a);We(this,vn,void 0);We(this,qr,void 0);We(this,nr,void 0);We(this,Kr,void 0);ke(this,qr,void 0),ke(this,vn,s),this.setOptions(c),this.bindMethods(),st(this,Mi,To).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var f;const c=this.options;this.options=_e(this,vn).defaultMutationOptions(s),shallowEqualObjects(c,this.options)||_e(this,vn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_e(this,nr),observer:this}),(f=_e(this,nr))==null||f.setOptions(this.options),c!=null&&c.mutationKey&&this.options.mutationKey&&hashKey(c.mutationKey)!==hashKey(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var s;this.hasListeners()||(s=_e(this,nr))==null||s.removeObserver(this)}onMutationUpdate(s){st(this,Mi,To).call(this),st(this,$a,Ks).call(this,s)}getCurrentResult(){return _e(this,qr)}reset(){var s;(s=_e(this,nr))==null||s.removeObserver(this),ke(this,nr,void 0),st(this,Mi,To).call(this),st(this,$a,Ks).call(this)}mutate(s,c){var f;return ke(this,Kr,c),(f=_e(this,nr))==null||f.removeObserver(this),ke(this,nr,_e(this,vn).getMutationCache().build(_e(this,vn),this.options)),_e(this,nr).addObserver(this),_e(this,nr).execute(s)}},vn=new WeakMap,qr=new WeakMap,nr=new WeakMap,Kr=new WeakMap,Mi=new WeakSet,To=function(){var c,f;const s=(f=(c=_e(this,nr))==null?void 0:c.state)!=null?f:getDefaultState();ke(this,qr,$e(se({},s),{isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset}))},$a=new WeakSet,Ks=function(s){notifyManager.batch(()=>{var c,f,d,y,_,S,b,$;if(_e(this,Kr)&&this.hasListeners()){const P=_e(this,qr).variables,T=_e(this,qr).context;(s==null?void 0:s.type)==="success"?((f=(c=_e(this,Kr)).onSuccess)==null||f.call(c,s.data,P,T),(y=(d=_e(this,Kr)).onSettled)==null||y.call(d,s.data,null,P,T)):(s==null?void 0:s.type)==="error"&&((S=(_=_e(this,Kr)).onError)==null||S.call(_,s.error,P,T),($=(b=_e(this,Kr)).onSettled)==null||$.call(b,void 0,s.error,P,T))}this.listeners.forEach(P=>{P(_e(this,qr))})})},vu),QueryClientContext=reactExports.createContext(void 0),useQueryClient=o=>{const a=reactExports.useContext(QueryClientContext);if(o)return o;if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},QueryClientProvider=({client:o,children:a})=>(reactExports.useEffect(()=>(o.mount(),()=>{o.unmount()}),[o]),reactExports.createElement(QueryClientContext.Provider,{value:o},a));function shouldThrowError(o,a){return typeof o=="function"?o(...a):!!o}function useMutation(o,a){const s=useQueryClient(a),[c]=reactExports.useState(()=>new MutationObserver$1(s,o));reactExports.useEffect(()=>{c.setOptions(o)},[c,o]);const f=reactExports.useSyncExternalStore(reactExports.useCallback(y=>c.subscribe(notifyManager.batchCalls(y)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d=reactExports.useCallback((y,_)=>{c.mutate(y,_).catch(noop$6)},[c]);if(f.error&&shouldThrowError(c.options.throwOnError,[f.error]))throw f.error;return $e(se({},f),{mutate:d,mutateAsync:f.mutate})}function noop$6(){}const scriptRel="modulepreload",assetsURL=function(o){return"/react-antd-admin-pnpm/"+o},seen={},__vitePreload=function(a,s,c){if(!s||s.length===0)return a();const f=document.getElementsByTagName("link");return Promise.all(s.map(d=>{if(d=assetsURL(d),d in seen)return;seen[d]=!0;const y=d.endsWith(".css"),_=y?'[rel="stylesheet"]':"";if(!!c)for(let $=f.length-1;$>=0;$--){const P=f[$];if(P.href===d&&(!y||P.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${_}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":scriptRel,y||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),y)return new Promise(($,P)=>{b.addEventListener("load",$),b.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>a()).catch(d=>{const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=d,window.dispatchEvent(y),!y.defaultPrevented)throw d})};var ReactQueryDevtools2=function(){return null},client={},createRoot,m$1=reactDomExports;createRoot=client.createRoot=m$1.createRoot,client.hydrateRoot=m$1.hydrateRoot;var shim={exports:{}},useSyncExternalStoreShim_production_min={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -14,13 +14,13 @@ var Yu=Object.defineProperty,Xu=Object.defineProperties;var Qu=Object.getOwnProp * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var h=reactExports,n=shimExports;function p(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var q=typeof Object.is=="function"?Object.is:p,r$1=n.useSyncExternalStore,t$1=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(o,a,s,c,f){var d=t$1(null);if(d.current===null){var y={hasValue:!1,value:null};d.current=y}else y=d.current;d=v(function(){function S(C){if(!b){if(b=!0,$=C,C=c(C),f!==void 0&&y.hasValue){var O=y.value;if(f(O,C))return P=O}return P=C}if(O=P,q($,C))return O;var A=c(C);return f!==void 0&&f(O,A)?O:($=C,P=A)}var b=!1,$,P,T=s===void 0?null:s;return[function(){return S(a())},T===null?void 0:function(){return S(T())}]},[a,s,c,f]);var _=r$1(o,d[0],d[1]);return u(function(){y.hasValue=!0,y.value=_},[_]),w(_),_};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports);function defaultNoopBatch(o){o()}let batch=defaultNoopBatch;const setBatch=o=>batch=o,getBatch=()=>batch,ContextKey=Symbol.for("react-redux-context"),gT=typeof globalThis!="undefined"?globalThis:{};function getContext(){var o;if(!reactExports.createContext)return{};const a=(o=gT[ContextKey])!=null?o:gT[ContextKey]=new Map;let s=a.get(reactExports.createContext);return s||(s=reactExports.createContext(null),a.set(reactExports.createContext,s)),s}const ReactReduxContext=getContext();function createReduxContextHook(o=ReactReduxContext){return function(){return reactExports.useContext(o)}}const useReduxContext=createReduxContextHook(),notInitialized=()=>{throw new Error("uSES not initialized!")};let useSyncExternalStoreWithSelector$2=notInitialized;const initializeUseSelector=o=>{useSyncExternalStoreWithSelector$2=o},refEquality=(o,a)=>o===a;function createSelectorHook(o=ReactReduxContext){const a=o===ReactReduxContext?useReduxContext:createReduxContextHook(o);return function(c,f={}){const{equalityFn:d=refEquality,stabilityCheck:y=void 0,noopCheck:_=void 0}=typeof f=="function"?{equalityFn:f}:f,{store:S,subscription:b,getServerState:$,stabilityCheck:P,noopCheck:T}=a();reactExports.useRef(!0);const C=reactExports.useCallback({[c.name](A){return c(A)}}[c.name],[c,P,y]),O=useSyncExternalStoreWithSelector$2(b.addNestedSub,S.getState,$||S.getState,C,d);return reactExports.useDebugValue(O),O}}const useSelector=createSelectorHook(),_excluded$8=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function pureFinalPropsSelectorFactory(o,a,s,c,{areStatesEqual:f,areOwnPropsEqual:d,areStatePropsEqual:y}){let _=!1,S,b,$,P,T;function C(L,M){return S=L,b=M,$=o(S,b),P=a(c,b),T=s($,P,b),_=!0,T}function O(){return $=o(S,b),a.dependsOnOwnProps&&(P=a(c,b)),T=s($,P,b),T}function A(){return o.dependsOnOwnProps&&($=o(S,b)),a.dependsOnOwnProps&&(P=a(c,b)),T=s($,P,b),T}function F(){const L=o(S,b),M=!y(L,$);return $=L,M&&(T=s($,P,b)),T}function j(L,M){const I=!d(M,b),U=!f(L,S,M,b);return S=L,b=M,I&&U?O():I?A():U?F():T}return function(M,I){return _?j(M,I):C(M,I)}}function finalPropsSelectorFactory(o,a){let{initMapStateToProps:s,initMapDispatchToProps:c,initMergeProps:f}=a,d=_objectWithoutPropertiesLoose$9(a,_excluded$8);const y=s(o,d),_=c(o,d),S=f(o,d);return pureFinalPropsSelectorFactory(y,_,S,o,d)}function bindActionCreators(o,a){const s={};for(const c in o){const f=o[c];typeof f=="function"&&(s[c]=(...d)=>a(f(...d)))}return s}function wrapMapToPropsConstant(o){return function(s){const c=o(s);function f(){return c}return f.dependsOnOwnProps=!1,f}}function getDependsOnOwnProps(o){return o.dependsOnOwnProps?!!o.dependsOnOwnProps:o.length!==1}function wrapMapToPropsFunc(o,a){return function(c,{displayName:f}){const d=function(_,S){return d.dependsOnOwnProps?d.mapToProps(_,S):d.mapToProps(_,void 0)};return d.dependsOnOwnProps=!0,d.mapToProps=function(_,S){d.mapToProps=o,d.dependsOnOwnProps=getDependsOnOwnProps(o);let b=d(_,S);return typeof b=="function"&&(d.mapToProps=b,d.dependsOnOwnProps=getDependsOnOwnProps(b),b=d(_,S)),b},d}}function createInvalidArgFactory(o,a){return(s,c)=>{throw new Error(`Invalid value of type ${typeof o} for ${a} argument when connecting component ${c.wrappedComponentName}.`)}}function mapDispatchToPropsFactory(o){return o&&typeof o=="object"?wrapMapToPropsConstant(a=>bindActionCreators(o,a)):o?typeof o=="function"?wrapMapToPropsFunc(o):createInvalidArgFactory(o,"mapDispatchToProps"):wrapMapToPropsConstant(a=>({dispatch:a}))}function mapStateToPropsFactory(o){return o?typeof o=="function"?wrapMapToPropsFunc(o):createInvalidArgFactory(o,"mapStateToProps"):wrapMapToPropsConstant(()=>({}))}function defaultMergeProps(o,a,s){return _extends$f({},s,o,a)}function wrapMergePropsFunc(o){return function(s,{displayName:c,areMergedPropsEqual:f}){let d=!1,y;return function(S,b,$){const P=o(S,b,$);return d?f(P,y)||(y=P):(d=!0,y=P),y}}}function mergePropsFactory(o){return o?typeof o=="function"?wrapMergePropsFunc(o):createInvalidArgFactory(o,"mergeProps"):()=>defaultMergeProps}function createListenerCollection(){const o=getBatch();let a=null,s=null;return{clear(){a=null,s=null},notify(){o(()=>{let c=a;for(;c;)c.callback(),c=c.next})},get(){let c=[],f=a;for(;f;)c.push(f),f=f.next;return c},subscribe(c){let f=!0,d=s={callback:c,next:null,prev:s};return d.prev?d.prev.next=d:a=d,function(){!f||a===null||(f=!1,d.next?d.next.prev=d.prev:s=d.prev,d.prev?d.prev.next=d.next:a=d.next)}}}}const nullListeners={notify(){},get:()=>[]};function createSubscription(o,a){let s,c=nullListeners,f=0,d=!1;function y(A){$();const F=c.subscribe(A);let j=!1;return()=>{j||(j=!0,F(),P())}}function _(){c.notify()}function S(){O.onStateChange&&O.onStateChange()}function b(){return d}function $(){f++,s||(s=a?a.addNestedSub(S):o.subscribe(S),c=createListenerCollection())}function P(){f--,s&&f===0&&(s(),s=void 0,c.clear(),c=nullListeners)}function T(){d||(d=!0,$())}function C(){d&&(d=!1,P())}const O={addNestedSub:y,notifyNestedSubs:_,handleChangeWrapper:S,isSubscribed:b,trySubscribe:T,tryUnsubscribe:C,getListeners:()=>c};return O}const canUseDOM$1=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",useIsomorphicLayoutEffect$2=canUseDOM$1?reactExports.useLayoutEffect:reactExports.useEffect;function is$2(o,a){return o===a?o!==0||a!==0||1/o===1/a:o!==o&&a!==a}function shallowEqual(o,a){if(is$2(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;const s=Object.keys(o),c=Object.keys(a);if(s.length!==c.length)return!1;for(let f=0;f{useSyncExternalStore=o},NO_SUBSCRIPTION_ARRAY=[null,null];function useIsomorphicLayoutEffectWithArgs(o,a,s){useIsomorphicLayoutEffect$2(()=>o(...a),s)}function captureWrapperProps(o,a,s,c,f,d){o.current=c,s.current=!1,f.current&&(f.current=null,d())}function subscribeUpdates(o,a,s,c,f,d,y,_,S,b,$){if(!o)return()=>{};let P=!1,T=null;const C=()=>{if(P||!_.current)return;const A=a.getState();let F,j;try{F=c(A,f.current)}catch(L){j=L,T=L}j||(T=null),F===d.current?y.current||b():(d.current=F,S.current=F,y.current=!0,$())};return s.onStateChange=C,s.trySubscribe(),C(),()=>{if(P=!0,s.tryUnsubscribe(),s.onStateChange=null,T)throw T}}function strictEqual(o,a){return o===a}function connect(o,a,s,{pure:c,areStatesEqual:f=strictEqual,areOwnPropsEqual:d=shallowEqual,areStatePropsEqual:y=shallowEqual,areMergedPropsEqual:_=shallowEqual,forwardRef:S=!1,context:b=ReactReduxContext}={}){const $=b,P=mapStateToPropsFactory(o),T=mapDispatchToPropsFactory(a),C=mergePropsFactory(s),O=!!o;return F=>{const j=F.displayName||F.name||"Component",L=`Connect(${j})`,M={shouldHandleStateChanges:O,displayName:L,wrappedComponentName:j,WrappedComponent:F,initMapStateToProps:P,initMapDispatchToProps:T,initMergeProps:C,areStatesEqual:f,areStatePropsEqual:y,areOwnPropsEqual:d,areMergedPropsEqual:_};function I(H){const[G,X,W]=reactExports.useMemo(()=>{const{reactReduxForwardedRef:ze}=H,Xe=_objectWithoutPropertiesLoose$9(H,_excluded$7);return[H.context,ze,Xe]},[H]),K=reactExports.useMemo(()=>G&&G.Consumer&&reactIsExports.isContextConsumer(reactExports.createElement(G.Consumer,null))?G:$,[G,$]),ie=reactExports.useContext(K),ee=!!H.store&&!!H.store.getState&&!!H.store.dispatch,de=!!ie&&!!ie.store,Z=ee?H.store:ie.store,Q=de?ie.getServerState:Z.getState,J=reactExports.useMemo(()=>finalPropsSelectorFactory(Z.dispatch,M),[Z]),[ne,fe]=reactExports.useMemo(()=>{if(!O)return NO_SUBSCRIPTION_ARRAY;const ze=createSubscription(Z,ee?void 0:ie.subscription),Xe=ze.notifyNestedSubs.bind(ze);return[ze,Xe]},[Z,ee,ie]),le=reactExports.useMemo(()=>ee?ie:_extends$f({},ie,{subscription:ne}),[ee,ie,ne]),ae=reactExports.useRef(),ce=reactExports.useRef(W),ge=reactExports.useRef(),pe=reactExports.useRef(!1);reactExports.useRef(!1);const Ie=reactExports.useRef(!1),Ce=reactExports.useRef();useIsomorphicLayoutEffect$2(()=>(Ie.current=!0,()=>{Ie.current=!1}),[]);const ue=reactExports.useMemo(()=>()=>ge.current&&W===ce.current?ge.current:J(Z.getState(),W),[Z,W]),xe=reactExports.useMemo(()=>Xe=>ne?subscribeUpdates(O,Z,ne,J,ce,ae,pe,Ie,ge,fe,Xe):()=>{},[ne]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[ce,ae,pe,W,ge,fe]);let Pe;try{Pe=useSyncExternalStore(xe,ue,Q?()=>J(Q(),W):ue)}catch(ze){throw Ce.current&&(ze.message+=` + */var h=reactExports,n=shimExports;function p(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var q=typeof Object.is=="function"?Object.is:p,r$1=n.useSyncExternalStore,t$1=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(o,a,s,c,f){var d=t$1(null);if(d.current===null){var y={hasValue:!1,value:null};d.current=y}else y=d.current;d=v(function(){function S(C){if(!b){if(b=!0,$=C,C=c(C),f!==void 0&&y.hasValue){var O=y.value;if(f(O,C))return P=O}return P=C}if(O=P,q($,C))return O;var A=c(C);return f!==void 0&&f(O,A)?O:($=C,P=A)}var b=!1,$,P,T=s===void 0?null:s;return[function(){return S(a())},T===null?void 0:function(){return S(T())}]},[a,s,c,f]);var _=r$1(o,d[0],d[1]);return u(function(){y.hasValue=!0,y.value=_},[_]),w(_),_};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports);function defaultNoopBatch(o){o()}let batch=defaultNoopBatch;const setBatch=o=>batch=o,getBatch=()=>batch,ContextKey=Symbol.for("react-redux-context"),gT=typeof globalThis!="undefined"?globalThis:{};function getContext(){var o;if(!reactExports.createContext)return{};const a=(o=gT[ContextKey])!=null?o:gT[ContextKey]=new Map;let s=a.get(reactExports.createContext);return s||(s=reactExports.createContext(null),a.set(reactExports.createContext,s)),s}const ReactReduxContext=getContext();function createReduxContextHook(o=ReactReduxContext){return function(){return reactExports.useContext(o)}}const useReduxContext=createReduxContextHook(),notInitialized=()=>{throw new Error("uSES not initialized!")};let useSyncExternalStoreWithSelector$2=notInitialized;const initializeUseSelector=o=>{useSyncExternalStoreWithSelector$2=o},refEquality=(o,a)=>o===a;function createSelectorHook(o=ReactReduxContext){const a=o===ReactReduxContext?useReduxContext:createReduxContextHook(o);return function(c,f={}){const{equalityFn:d=refEquality,stabilityCheck:y=void 0,noopCheck:_=void 0}=typeof f=="function"?{equalityFn:f}:f,{store:S,subscription:b,getServerState:$,stabilityCheck:P,noopCheck:T}=a();reactExports.useRef(!0);const C=reactExports.useCallback({[c.name](A){return c(A)}}[c.name],[c,P,y]),O=useSyncExternalStoreWithSelector$2(b.addNestedSub,S.getState,$||S.getState,C,d);return reactExports.useDebugValue(O),O}}const useSelector=createSelectorHook(),_excluded$8=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function pureFinalPropsSelectorFactory(o,a,s,c,{areStatesEqual:f,areOwnPropsEqual:d,areStatePropsEqual:y}){let _=!1,S,b,$,P,T;function C(L,F){return S=L,b=F,$=o(S,b),P=a(c,b),T=s($,P,b),_=!0,T}function O(){return $=o(S,b),a.dependsOnOwnProps&&(P=a(c,b)),T=s($,P,b),T}function A(){return o.dependsOnOwnProps&&($=o(S,b)),a.dependsOnOwnProps&&(P=a(c,b)),T=s($,P,b),T}function M(){const L=o(S,b),F=!y(L,$);return $=L,F&&(T=s($,P,b)),T}function j(L,F){const I=!d(F,b),U=!f(L,S,F,b);return S=L,b=F,I&&U?O():I?A():U?M():T}return function(F,I){return _?j(F,I):C(F,I)}}function finalPropsSelectorFactory(o,a){let{initMapStateToProps:s,initMapDispatchToProps:c,initMergeProps:f}=a,d=_objectWithoutPropertiesLoose$9(a,_excluded$8);const y=s(o,d),_=c(o,d),S=f(o,d);return pureFinalPropsSelectorFactory(y,_,S,o,d)}function bindActionCreators(o,a){const s={};for(const c in o){const f=o[c];typeof f=="function"&&(s[c]=(...d)=>a(f(...d)))}return s}function wrapMapToPropsConstant(o){return function(s){const c=o(s);function f(){return c}return f.dependsOnOwnProps=!1,f}}function getDependsOnOwnProps(o){return o.dependsOnOwnProps?!!o.dependsOnOwnProps:o.length!==1}function wrapMapToPropsFunc(o,a){return function(c,{displayName:f}){const d=function(_,S){return d.dependsOnOwnProps?d.mapToProps(_,S):d.mapToProps(_,void 0)};return d.dependsOnOwnProps=!0,d.mapToProps=function(_,S){d.mapToProps=o,d.dependsOnOwnProps=getDependsOnOwnProps(o);let b=d(_,S);return typeof b=="function"&&(d.mapToProps=b,d.dependsOnOwnProps=getDependsOnOwnProps(b),b=d(_,S)),b},d}}function createInvalidArgFactory(o,a){return(s,c)=>{throw new Error(`Invalid value of type ${typeof o} for ${a} argument when connecting component ${c.wrappedComponentName}.`)}}function mapDispatchToPropsFactory(o){return o&&typeof o=="object"?wrapMapToPropsConstant(a=>bindActionCreators(o,a)):o?typeof o=="function"?wrapMapToPropsFunc(o):createInvalidArgFactory(o,"mapDispatchToProps"):wrapMapToPropsConstant(a=>({dispatch:a}))}function mapStateToPropsFactory(o){return o?typeof o=="function"?wrapMapToPropsFunc(o):createInvalidArgFactory(o,"mapStateToProps"):wrapMapToPropsConstant(()=>({}))}function defaultMergeProps(o,a,s){return _extends$f({},s,o,a)}function wrapMergePropsFunc(o){return function(s,{displayName:c,areMergedPropsEqual:f}){let d=!1,y;return function(S,b,$){const P=o(S,b,$);return d?f(P,y)||(y=P):(d=!0,y=P),y}}}function mergePropsFactory(o){return o?typeof o=="function"?wrapMergePropsFunc(o):createInvalidArgFactory(o,"mergeProps"):()=>defaultMergeProps}function createListenerCollection(){const o=getBatch();let a=null,s=null;return{clear(){a=null,s=null},notify(){o(()=>{let c=a;for(;c;)c.callback(),c=c.next})},get(){let c=[],f=a;for(;f;)c.push(f),f=f.next;return c},subscribe(c){let f=!0,d=s={callback:c,next:null,prev:s};return d.prev?d.prev.next=d:a=d,function(){!f||a===null||(f=!1,d.next?d.next.prev=d.prev:s=d.prev,d.prev?d.prev.next=d.next:a=d.next)}}}}const nullListeners={notify(){},get:()=>[]};function createSubscription(o,a){let s,c=nullListeners,f=0,d=!1;function y(A){$();const M=c.subscribe(A);let j=!1;return()=>{j||(j=!0,M(),P())}}function _(){c.notify()}function S(){O.onStateChange&&O.onStateChange()}function b(){return d}function $(){f++,s||(s=a?a.addNestedSub(S):o.subscribe(S),c=createListenerCollection())}function P(){f--,s&&f===0&&(s(),s=void 0,c.clear(),c=nullListeners)}function T(){d||(d=!0,$())}function C(){d&&(d=!1,P())}const O={addNestedSub:y,notifyNestedSubs:_,handleChangeWrapper:S,isSubscribed:b,trySubscribe:T,tryUnsubscribe:C,getListeners:()=>c};return O}const canUseDOM$1=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",useIsomorphicLayoutEffect$2=canUseDOM$1?reactExports.useLayoutEffect:reactExports.useEffect;function is$2(o,a){return o===a?o!==0||a!==0||1/o===1/a:o!==o&&a!==a}function shallowEqual(o,a){if(is$2(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;const s=Object.keys(o),c=Object.keys(a);if(s.length!==c.length)return!1;for(let f=0;f{useSyncExternalStore=o},NO_SUBSCRIPTION_ARRAY=[null,null];function useIsomorphicLayoutEffectWithArgs(o,a,s){useIsomorphicLayoutEffect$2(()=>o(...a),s)}function captureWrapperProps(o,a,s,c,f,d){o.current=c,s.current=!1,f.current&&(f.current=null,d())}function subscribeUpdates(o,a,s,c,f,d,y,_,S,b,$){if(!o)return()=>{};let P=!1,T=null;const C=()=>{if(P||!_.current)return;const A=a.getState();let M,j;try{M=c(A,f.current)}catch(L){j=L,T=L}j||(T=null),M===d.current?y.current||b():(d.current=M,S.current=M,y.current=!0,$())};return s.onStateChange=C,s.trySubscribe(),C(),()=>{if(P=!0,s.tryUnsubscribe(),s.onStateChange=null,T)throw T}}function strictEqual(o,a){return o===a}function connect(o,a,s,{pure:c,areStatesEqual:f=strictEqual,areOwnPropsEqual:d=shallowEqual,areStatePropsEqual:y=shallowEqual,areMergedPropsEqual:_=shallowEqual,forwardRef:S=!1,context:b=ReactReduxContext}={}){const $=b,P=mapStateToPropsFactory(o),T=mapDispatchToPropsFactory(a),C=mergePropsFactory(s),O=!!o;return M=>{const j=M.displayName||M.name||"Component",L=`Connect(${j})`,F={shouldHandleStateChanges:O,displayName:L,wrappedComponentName:j,WrappedComponent:M,initMapStateToProps:P,initMapDispatchToProps:T,initMergeProps:C,areStatesEqual:f,areStatePropsEqual:y,areOwnPropsEqual:d,areMergedPropsEqual:_};function I(H){const[G,X,W]=reactExports.useMemo(()=>{const{reactReduxForwardedRef:ze}=H,Xe=_objectWithoutPropertiesLoose$9(H,_excluded$7);return[H.context,ze,Xe]},[H]),K=reactExports.useMemo(()=>G&&G.Consumer&&reactIsExports.isContextConsumer(reactExports.createElement(G.Consumer,null))?G:$,[G,$]),ie=reactExports.useContext(K),ee=!!H.store&&!!H.store.getState&&!!H.store.dispatch,de=!!ie&&!!ie.store,Z=ee?H.store:ie.store,Q=de?ie.getServerState:Z.getState,J=reactExports.useMemo(()=>finalPropsSelectorFactory(Z.dispatch,F),[Z]),[ne,fe]=reactExports.useMemo(()=>{if(!O)return NO_SUBSCRIPTION_ARRAY;const ze=createSubscription(Z,ee?void 0:ie.subscription),Xe=ze.notifyNestedSubs.bind(ze);return[ze,Xe]},[Z,ee,ie]),le=reactExports.useMemo(()=>ee?ie:_extends$f({},ie,{subscription:ne}),[ee,ie,ne]),ae=reactExports.useRef(),ce=reactExports.useRef(W),ge=reactExports.useRef(),pe=reactExports.useRef(!1);reactExports.useRef(!1);const Ie=reactExports.useRef(!1),Ce=reactExports.useRef();useIsomorphicLayoutEffect$2(()=>(Ie.current=!0,()=>{Ie.current=!1}),[]);const ue=reactExports.useMemo(()=>()=>ge.current&&W===ce.current?ge.current:J(Z.getState(),W),[Z,W]),xe=reactExports.useMemo(()=>Xe=>ne?subscribeUpdates(O,Z,ne,J,ce,ae,pe,Ie,ge,fe,Xe):()=>{},[ne]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[ce,ae,pe,W,ge,fe]);let Pe;try{Pe=useSyncExternalStore(xe,ue,Q?()=>J(Q(),W):ue)}catch(ze){throw Ce.current&&(ze.message+=` The error may be correlated with this previous error: ${Ce.current.stack} -`),ze}useIsomorphicLayoutEffect$2(()=>{Ce.current=void 0,ge.current=void 0,ae.current=Pe});const Ve=reactExports.useMemo(()=>reactExports.createElement(F,_extends$f({},Pe,{ref:X})),[X,F,Pe]);return reactExports.useMemo(()=>O?reactExports.createElement(K.Provider,{value:le},Ve):Ve,[K,Ve,le])}const z=reactExports.memo(I);if(z.WrappedComponent=F,z.displayName=I.displayName=L,S){const G=reactExports.forwardRef(function(W,K){return reactExports.createElement(z,_extends$f({},W,{reactReduxForwardedRef:K}))});return G.displayName=L,G.WrappedComponent=F,hoistNonReactStatics(G,F)}return hoistNonReactStatics(z,F)}}function Provider({store:o,context:a,children:s,serverState:c,stabilityCheck:f="once",noopCheck:d="once"}){const y=reactExports.useMemo(()=>{const b=createSubscription(o);return{store:o,subscription:b,getServerState:c?()=>c:void 0,stabilityCheck:f,noopCheck:d}},[o,c,f,d]),_=reactExports.useMemo(()=>o.getState(),[o]);useIsomorphicLayoutEffect$2(()=>{const{subscription:b}=y;return b.onStateChange=b.notifyNestedSubs,b.trySubscribe(),_!==o.getState()&&b.notifyNestedSubs(),()=>{b.tryUnsubscribe(),b.onStateChange=void 0}},[y,_]);const S=a||ReactReduxContext;return reactExports.createElement(S.Provider,{value:y},s)}function createStoreHook(o=ReactReduxContext){const a=o===ReactReduxContext?useReduxContext:createReduxContextHook(o);return function(){const{store:c}=a();return c}}const useStore$2=createStoreHook();function createDispatchHook(o=ReactReduxContext){const a=o===ReactReduxContext?useStore$2:createStoreHook(o);return function(){return a().dispatch}}const useDispatch=createDispatchHook();initializeUseSelector(withSelectorExports.useSyncExternalStoreWithSelector);initializeConnect(shimExports.useSyncExternalStore);setBatch(reactDomExports.unstable_batchedUpdates);function _typeof$m(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$m=function(s){return typeof s}:_typeof$m=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$m(o)}function _classCallCheck$6(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(o,a){for(var s=0;s',a.insertBefore(s,a.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",o):o()}const consoleLogger={type:"logger",log(o){this.output("log",o)},warn(o){this.output("warn",o)},error(o){this.output("error",o)},output(o,a){console&&console[o]}};class Logger{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(a,s)}init(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=s.prefix||"i18next:",this.logger=a||consoleLogger,this.options=s,this.debug=s.debug}log(){for(var a=arguments.length,s=new Array(a),c=0;c{this.observers[c]=this.observers[c]||[],this.observers[c].push(s)}),this}off(a,s){if(this.observers[a]){if(!s){delete this.observers[a];return}this.observers[a]=this.observers[a].filter(c=>c!==s)}}emit(a){for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f{y(...c)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(y=>{y.apply(y,[a,...c])})}}function defer(){let o,a;const s=new Promise((c,f)=>{o=c,a=f});return s.resolve=o,s.reject=a,s}function makeString(o){return o==null?"":""+o}function copy$1(o,a,s){o.forEach(c=>{a[c]&&(s[c]=a[c])})}function getLastOfPath(o,a,s){function c(y){return y&&y.indexOf("###")>-1?y.replace(/###/g,"."):y}function f(){return!o||typeof o=="string"}const d=typeof a!="string"?[].concat(a):a.split(".");for(;d.length>1;){if(f())return{};const y=c(d.shift());!o[y]&&s&&(o[y]=new s),Object.prototype.hasOwnProperty.call(o,y)?o=o[y]:o={}}return f()?{}:{obj:o,k:c(d.shift())}}function setPath(o,a,s){const{obj:c,k:f}=getLastOfPath(o,a,Object);c[f]=s}function pushPath(o,a,s,c){const{obj:f,k:d}=getLastOfPath(o,a,Object);f[d]=f[d]||[],c&&(f[d]=f[d].concat(s)),c||f[d].push(s)}function getPath$1(o,a){const{obj:s,k:c}=getLastOfPath(o,a);if(s)return s[c]}function getPathWithDefaults(o,a,s){const c=getPath$1(o,s);return c!==void 0?c:getPath$1(a,s)}function deepExtend(o,a,s){for(const c in a)c!=="__proto__"&&c!=="constructor"&&(c in o?typeof o[c]=="string"||o[c]instanceof String||typeof a[c]=="string"||a[c]instanceof String?s&&(o[c]=a[c]):deepExtend(o[c],a[c],s):o[c]=a[c]);return o}function regexEscape(o){return o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function escape$1(o){return typeof o=="string"?o.replace(/[&<>"'\/]/g,a=>_entityMap[a]):o}const chars=[" ",",","?","!",";"];function looksLikeObjectPath(o,a,s){a=a||"",s=s||"";const c=chars.filter(y=>a.indexOf(y)<0&&s.indexOf(y)<0);if(c.length===0)return!0;const f=new RegExp(`(${c.map(y=>y==="?"?"\\?":y).join("|")})`);let d=!f.test(o);if(!d){const y=o.indexOf(s);y>0&&!f.test(o.substring(0,y))&&(d=!0)}return d}function deepFind(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!o)return;if(o[a])return o[a];const c=a.split(s);let f=o;for(let d=0;dd+y;)y++,_=c.slice(d,d+y).join(s),S=f[_];if(S===void 0)return;if(S===null)return null;if(a.endsWith(_)){if(typeof S=="string")return S;if(_&&typeof S[_]=="string")return S[_]}const b=c.slice(d+y).join(s);return b?deepFind(S,b,s):void 0}f=f[c[d]]}return f}function getCleanedCode(o){return o&&o.indexOf("_")>0?o.replace("_","-"):o}class ResourceStore extends EventEmitter{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=a||{},this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){const s=this.options.ns.indexOf(a);s>-1&&this.options.ns.splice(s,1)}getResource(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,y=f.ignoreJSONStructure!==void 0?f.ignoreJSONStructure:this.options.ignoreJSONStructure;let _=[a,s];c&&typeof c!="string"&&(_=_.concat(c)),c&&typeof c=="string"&&(_=_.concat(d?c.split(d):c)),a.indexOf(".")>-1&&(_=a.split("."));const S=getPath$1(this.data,_);return S||!y||typeof c!="string"?S:deepFind(this.data&&this.data[a]&&this.data[a][s],c,d)}addResource(a,s,c,f){let d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const y=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let _=[a,s];c&&(_=_.concat(y?c.split(y):c)),a.indexOf(".")>-1&&(_=a.split("."),f=s,s=_[1]),this.addNamespaces(s),setPath(this.data,_,f),d.silent||this.emit("added",a,s,c,f)}addResources(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const d in c)(typeof c[d]=="string"||Object.prototype.toString.apply(c[d])==="[object Array]")&&this.addResource(a,s,d,c[d],{silent:!0});f.silent||this.emit("added",a,s,c)}addResourceBundle(a,s,c,f,d){let y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},_=[a,s];a.indexOf(".")>-1&&(_=a.split("."),f=c,c=s,s=_[1]),this.addNamespaces(s);let S=getPath$1(this.data,_)||{};f?deepExtend(S,c,d):S=se(se({},S),c),setPath(this.data,_,S),y.silent||this.emit("added",a,s,c)}removeResourceBundle(a,s){this.hasResourceBundle(a,s)&&delete this.data[a][s],this.removeNamespaces(s),this.emit("removed",a,s)}hasResourceBundle(a,s){return this.getResource(a,s)!==void 0}getResourceBundle(a,s){return s||(s=this.options.defaultNS),this.options.compatibilityAPI==="v1"?se({},this.getResource(a,s)):this.getResource(a,s)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){const s=this.getDataByLanguage(a);return!!(s&&Object.keys(s)||[]).find(f=>s[f]&&Object.keys(s[f]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(o){this.processors[o.name]=o},handle(o,a,s,c,f){return o.forEach(d=>{this.processors[d]&&(a=this.processors[d].process(a,s,c,f))}),a}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy$1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(a==null)return!1;const c=this.resolve(a,s);return c&&c.res!==void 0}extractFromKey(a,s){let c=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const f=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let d=s.ns||this.options.defaultNS||[];const y=c&&a.indexOf(c)>-1,_=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!looksLikeObjectPath(a,c,f);if(y&&!_){const S=a.match(this.interpolator.nestingRegexp);if(S&&S.length>0)return{key:a,namespaces:d};const b=a.split(c);(c!==f||c===f&&this.options.ns.indexOf(b[0])>-1)&&(d=b.shift()),a=b.join(f)}return typeof d=="string"&&(d=[d]),{key:a,namespaces:d}}translate(a,s,c){if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s=se({},s)),s||(s={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);const f=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,d=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:y,namespaces:_}=this.extractFromKey(a[a.length-1],s),S=_[_.length-1],b=s.lng||this.language,$=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b&&b.toLowerCase()==="cimode"){if($){const I=s.nsSeparator||this.options.nsSeparator;return f?{res:`${S}${I}${y}`,usedKey:y,exactUsedKey:y,usedLng:b,usedNS:S,usedParams:this.getUsedParamsDetails(s)}:`${S}${I}${y}`}return f?{res:y,usedKey:y,exactUsedKey:y,usedLng:b,usedNS:S,usedParams:this.getUsedParamsDetails(s)}:y}const P=this.resolve(a,s);let T=P&&P.res;const C=P&&P.usedKey||y,O=P&&P.exactUsedKey||y,A=Object.prototype.toString.apply(T),F=["[object Number]","[object Function]","[object RegExp]"],j=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject;if(L&&T&&(typeof T!="string"&&typeof T!="boolean"&&typeof T!="number")&&F.indexOf(A)<0&&!(typeof j=="string"&&A==="[object Array]")){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,T,$e(se({},s),{ns:_})):`key '${y} (${this.language})' returned an object instead of string.`;return f?(P.res=I,P.usedParams=this.getUsedParamsDetails(s),P):I}if(d){const I=A==="[object Array]",U=I?[]:{},z=I?O:C;for(const H in T)if(Object.prototype.hasOwnProperty.call(T,H)){const G=`${z}${d}${H}`;U[H]=this.translate(G,$e(se({},s),{joinArrays:!1,ns:_})),U[H]===G&&(U[H]=T[H])}T=U}}else if(L&&typeof j=="string"&&A==="[object Array]")T=T.join(j),T&&(T=this.extendTranslation(T,a,s,c));else{let I=!1,U=!1;const z=s.count!==void 0&&typeof s.count!="string",H=Translator.hasDefaultValue(s),G=z?this.pluralResolver.getSuffix(b,s.count,s):"",X=s.ordinal&&z?this.pluralResolver.getSuffix(b,s.count,{ordinal:!1}):"",K=z&&!s.ordinal&&s.count===0&&this.pluralResolver.shouldUseIntlApi()&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${G}`]||s[`defaultValue${X}`]||s.defaultValue;!this.isValidLookup(T)&&H&&(I=!0,T=K),this.isValidLookup(T)||(U=!0,T=y);const ee=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&U?void 0:T,de=H&&K!==T&&this.options.updateMissing;if(U||I||de){if(this.logger.log(de?"updateKey":"missingKey",b,S,y,de?K:T),d){const ne=this.resolve(y,$e(se({},s),{keySeparator:!1}));ne&&ne.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Z=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let ne=0;ne{const ae=H&&le!==T?le:ee;this.options.missingKeyHandler?this.options.missingKeyHandler(ne,S,fe,ae,de,s):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ne,S,fe,ae,de,s),this.emit("missingKey",ne,S,fe,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&z?Z.forEach(ne=>{this.pluralResolver.getSuffixes(ne,s).forEach(fe=>{J([ne],y+fe,s[`defaultValue${fe}`]||K)})}):J(Z,y,K))}T=this.extendTranslation(T,a,s,P,c),U&&T===y&&this.options.appendNamespaceToMissingKey&&(T=`${S}:${y}`),(U||I)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${S}:${y}`:y,I?T:void 0):T=this.options.parseMissingKeyHandler(T))}return f?(P.res=T,P.usedParams=this.getUsedParamsDetails(s),P):T}extendTranslation(a,s,c,f,d){var y=this;if(this.i18nFormat&&this.i18nFormat.parse)a=this.i18nFormat.parse(a,se(se({},this.options.interpolation.defaultVariables),c),c.lng||this.language||f.usedLng,f.usedNS,f.usedKey,{resolved:f});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init($e(se({},c),{interpolation:se(se({},this.options.interpolation),c.interpolation)}));const b=typeof a=="string"&&(c&&c.interpolation&&c.interpolation.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let $;if(b){const T=a.match(this.interpolator.nestingRegexp);$=T&&T.length}let P=c.replace&&typeof c.replace!="string"?c.replace:c;if(this.options.interpolation.defaultVariables&&(P=se(se({},this.options.interpolation.defaultVariables),P)),a=this.interpolator.interpolate(a,P,c.lng||this.language,c),b){const T=a.match(this.interpolator.nestingRegexp),C=T&&T.length;$1&&arguments[1]!==void 0?arguments[1]:{},c,f,d,y,_;return typeof a=="string"&&(a=[a]),a.forEach(S=>{if(this.isValidLookup(c))return;const b=this.extractFromKey(S,s),$=b.key;f=$;let P=b.namespaces;this.options.fallbackNS&&(P=P.concat(this.options.fallbackNS));const T=s.count!==void 0&&typeof s.count!="string",C=T&&!s.ordinal&&s.count===0&&this.pluralResolver.shouldUseIntlApi(),O=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",A=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);P.forEach(F=>{this.isValidLookup(c)||(_=F,!checkedLoadedFor[`${A[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(_)&&(checkedLoadedFor[`${A[0]}-${F}`]=!0,this.logger.warn(`key "${f}" for languages "${A.join(", ")}" won't get resolved as namespace "${_}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),A.forEach(j=>{if(this.isValidLookup(c))return;y=j;const L=[$];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(L,$,j,F,s);else{let I;T&&(I=this.pluralResolver.getSuffix(j,s.count,s));const U=`${this.options.pluralSeparator}zero`,z=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(L.push($+I),s.ordinal&&I.indexOf(z)===0&&L.push($+I.replace(z,this.options.pluralSeparator)),C&&L.push($+U)),O){const H=`${$}${this.options.contextSeparator}${s.context}`;L.push(H),T&&(L.push(H+I),s.ordinal&&I.indexOf(z)===0&&L.push(H+I.replace(z,this.options.pluralSeparator)),C&&L.push(H+U))}}let M;for(;M=L.pop();)this.isValidLookup(c)||(d=M,c=this.getResource(j,F,M,s))}))})}),{res:c,usedKey:f,exactUsedKey:d,usedLng:y,usedNS:_}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(a,s,c,f):this.resourceStore.getResource(a,s,c,f)}getUsedParamsDetails(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=a.replace&&typeof a.replace!="string";let f=c?a.replace:a;if(c&&typeof a.count!="undefined"&&(f.count=a.count),this.options.interpolation.defaultVariables&&(f=se(se({},this.options.interpolation.defaultVariables),f)),!c){f=se({},f);for(const d of s)delete f[d]}return f}static hasDefaultValue(a){const s="defaultValue";for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&s===c.substring(0,s.length)&&a[c]!==void 0)return!0;return!1}}function capitalize(o){return o.charAt(0).toUpperCase()+o.slice(1)}class LanguageUtil{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(a){if(a=getCleanedCode(a),!a||a.indexOf("-")<0)return null;const s=a.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(a){if(a=getCleanedCode(a),!a||a.indexOf("-")<0)return a;const s=a.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(a){if(typeof a=="string"&&a.indexOf("-")>-1){const s=["hans","hant","latn","cyrl","cans","mong","arab"];let c=a.split("-");return this.options.lowerCaseLng?c=c.map(f=>f.toLowerCase()):c.length===2?(c[0]=c[0].toLowerCase(),c[1]=c[1].toUpperCase(),s.indexOf(c[1].toLowerCase())>-1&&(c[1]=capitalize(c[1].toLowerCase()))):c.length===3&&(c[0]=c[0].toLowerCase(),c[1].length===2&&(c[1]=c[1].toUpperCase()),c[0]!=="sgn"&&c[2].length===2&&(c[2]=c[2].toUpperCase()),s.indexOf(c[1].toLowerCase())>-1&&(c[1]=capitalize(c[1].toLowerCase())),s.indexOf(c[2].toLowerCase())>-1&&(c[2]=capitalize(c[2].toLowerCase()))),c.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let s;return a.forEach(c=>{if(s)return;const f=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(f))&&(s=f)}),!s&&this.options.supportedLngs&&a.forEach(c=>{if(s)return;const f=this.getLanguagePartFromCode(c);if(this.isSupportedCode(f))return s=f;s=this.options.supportedLngs.find(d=>{if(d===f)return d;if(!(d.indexOf("-")<0&&f.indexOf("-")<0)&&d.indexOf(f)===0)return d})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(a,s){if(!a)return[];if(typeof a=="function"&&(a=a(s)),typeof a=="string"&&(a=[a]),Object.prototype.toString.apply(a)==="[object Array]")return a;if(!s)return a.default||[];let c=a[s];return c||(c=a[this.getScriptPartFromCode(s)]),c||(c=a[this.formatLanguageCode(s)]),c||(c=a[this.getLanguagePartFromCode(s)]),c||(c=a.default),c||[]}toResolveHierarchy(a,s){const c=this.getFallbackCodes(s||this.options.fallbackLng||[],a),f=[],d=y=>{y&&(this.isSupportedCode(y)?f.push(y):this.logger.warn(`rejecting language code not found in supportedLngs: ${y}`))};return typeof a=="string"&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(a))):typeof a=="string"&&d(this.formatLanguageCode(a)),c.forEach(y=>{f.indexOf(y)<0&&d(this.formatLanguageCode(y))}),f}}let sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function(o){return+(o>1)},2:function(o){return+(o!=1)},3:function(o){return 0},4:function(o){return o%10==1&&o%100!=11?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2},5:function(o){return o==0?0:o==1?1:o==2?2:o%100>=3&&o%100<=10?3:o%100>=11?4:5},6:function(o){return o==1?0:o>=2&&o<=4?1:2},7:function(o){return o==1?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2},8:function(o){return o==1?0:o==2?1:o!=8&&o!=11?2:3},9:function(o){return+(o>=2)},10:function(o){return o==1?0:o==2?1:o<7?2:o<11?3:4},11:function(o){return o==1||o==11?0:o==2||o==12?1:o>2&&o<20?2:3},12:function(o){return+(o%10!=1||o%100==11)},13:function(o){return+(o!==0)},14:function(o){return o==1?0:o==2?1:o==3?2:3},15:function(o){return o%10==1&&o%100!=11?0:o%10>=2&&(o%100<10||o%100>=20)?1:2},16:function(o){return o%10==1&&o%100!=11?0:o!==0?1:2},17:function(o){return o==1||o%10==1&&o%100!=11?0:1},18:function(o){return o==0?0:o==1?1:2},19:function(o){return o==1?0:o==0||o%100>1&&o%100<11?1:o%100>10&&o%100<20?2:3},20:function(o){return o==1?0:o==0||o%100>0&&o%100<20?1:2},21:function(o){return o%100==1?1:o%100==2?2:o%100==3||o%100==4?3:0},22:function(o){return o==1?0:o==2?1:(o<0||o>10)&&o%10==0?2:3}};const nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const o={};return sets.forEach(a=>{a.lngs.forEach(s=>{o[s]={numbers:a.nr,plurals:_rulesPluralsTypes[a.fc]}})}),o}class PluralResolver{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=a,this.options=s,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}addRule(a,s){this.rules[a]=s}getRule(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(a),{type:s.ordinal?"ordinal":"cardinal"})}catch(c){return}return this.rules[a]||this.rules[this.languageUtils.getLanguagePartFromCode(a)]}needsPlural(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const c=this.getRule(a,s);return this.shouldUseIntlApi()?c&&c.resolvedOptions().pluralCategories.length>1:c&&c.numbers.length>1}getPluralFormsOfKey(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(a,c).map(f=>`${s}${f}`)}getSuffixes(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const c=this.getRule(a,s);return c?this.shouldUseIntlApi()?c.resolvedOptions().pluralCategories.sort((f,d)=>suffixesOrder[f]-suffixesOrder[d]).map(f=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${f}`):c.numbers.map(f=>this.getSuffix(a,f,s)):[]}getSuffix(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const f=this.getRule(a,c);return f?this.shouldUseIntlApi()?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${f.select(s)}`:this.getSuffixRetroCompatible(f,s):(this.logger.warn(`no plural rule found for: ${a}`),"")}getSuffixRetroCompatible(a,s){const c=a.noAbs?a.plurals(s):a.plurals(Math.abs(s));let f=a.numbers[c];this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1&&(f===2?f="plural":f===1&&(f=""));const d=()=>this.options.prepend&&f.toString()?this.options.prepend+f.toString():f.toString();return this.options.compatibilityJSON==="v1"?f===1?"":typeof f=="number"?`_plural_${f.toString()}`:d():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1?d():this.options.prepend&&c.toString()?this.options.prepend+c.toString():c.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults(o,a,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,d=getPathWithDefaults(o,a,s);return!d&&f&&typeof s=="string"&&(d=deepFind(o,s,c),d===void 0&&(d=deepFind(a,s,c))),d}class Interpolator{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=a,this.format=a.interpolation&&a.interpolation.format||(s=>s),this.init(a)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};a.interpolation||(a.interpolation={escapeValue:!0});const s=a.interpolation;this.escape=s.escape!==void 0?s.escape:escape$1,this.escapeValue=s.escapeValue!==void 0?s.escapeValue:!0,this.useRawValueToEscape=s.useRawValueToEscape!==void 0?s.useRawValueToEscape:!1,this.prefix=s.prefix?regexEscape(s.prefix):s.prefixEscaped||"{{",this.suffix=s.suffix?regexEscape(s.suffix):s.suffixEscaped||"}}",this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||",",this.unescapePrefix=s.unescapeSuffix?"":s.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":s.unescapeSuffix||"",this.nestingPrefix=s.nestingPrefix?regexEscape(s.nestingPrefix):s.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=s.nestingSuffix?regexEscape(s.nestingSuffix):s.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=s.nestingOptionsSeparator?s.nestingOptionsSeparator:s.nestingOptionsSeparator||",",this.maxReplaces=s.maxReplaces?s.maxReplaces:1e3,this.alwaysFormat=s.alwaysFormat!==void 0?s.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const a=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(a,"g");const s=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(s,"g");const c=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(c,"g")}interpolate(a,s,c,f){let d,y,_;const S=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function b(O){return O.replace(/\$/g,"$$$$")}const $=O=>{if(O.indexOf(this.formatSeparator)<0){const L=deepFindWithDefaults(s,S,O,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(L,void 0,c,$e(se(se({},f),s),{interpolationkey:O})):L}const A=O.split(this.formatSeparator),F=A.shift().trim(),j=A.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(s,S,F,this.options.keySeparator,this.options.ignoreJSONStructure),j,c,$e(se(se({},f),s),{interpolationkey:F}))};this.resetRegExp();const P=f&&f.missingInterpolationHandler||this.options.missingInterpolationHandler,T=f&&f.interpolation&&f.interpolation.skipOnVariables!==void 0?f.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:O=>b(O)},{regex:this.regexp,safeValue:O=>this.escapeValue?b(this.escape(O)):b(O)}].forEach(O=>{for(_=0;d=O.regex.exec(a);){const A=d[1].trim();if(y=$(A),y===void 0)if(typeof P=="function"){const j=P(a,d,f);y=typeof j=="string"?j:""}else if(f&&Object.prototype.hasOwnProperty.call(f,A))y="";else if(T){y=d[0];continue}else this.logger.warn(`missed to pass in variable ${A} for interpolating ${a}`),y="";else typeof y!="string"&&!this.useRawValueToEscape&&(y=makeString(y));const F=O.safeValue(y);if(a=a.replace(d[0],F),T?(O.regex.lastIndex+=y.length,O.regex.lastIndex-=d[0].length):O.regex.lastIndex=0,_++,_>=this.maxReplaces)break}}),a}nest(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f,d,y;function _(S,b){const $=this.nestingOptionsSeparator;if(S.indexOf($)<0)return S;const P=S.split(new RegExp(`${$}[ ]*{`));let T=`{${P[1]}`;S=P[0],T=this.interpolate(T,y);const C=T.match(/'/g),O=T.match(/"/g);(C&&C.length%2===0&&!O||O.length%2!==0)&&(T=T.replace(/'/g,'"'));try{y=JSON.parse(T),b&&(y=se(se({},b),y))}catch(A){return this.logger.warn(`failed parsing options string in nesting for key ${S}`,A),`${S}${$}${T}`}return delete y.defaultValue,S}for(;f=this.nestingRegexp.exec(a);){let S=[];y=se({},c),y=y.replace&&typeof y.replace!="string"?y.replace:y,y.applyPostProcessor=!1,delete y.defaultValue;let b=!1;if(f[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(f[1])){const $=f[1].split(this.formatSeparator).map(P=>P.trim());f[1]=$.shift(),S=$,b=!0}if(d=s(_.call(this,f[1].trim(),y),y),d&&f[0]===a&&typeof d!="string")return d;typeof d!="string"&&(d=makeString(d)),d||(this.logger.warn(`missed to resolve ${f[1]} for nesting ${a}`),d=""),b&&(d=S.reduce(($,P)=>this.format($,P,c.lng,$e(se({},c),{interpolationkey:f[1].trim()})),d.trim())),a=a.replace(f[0],d),this.regexp.lastIndex=0}return a}}function parseFormatStr(o){let a=o.toLowerCase().trim();const s={};if(o.indexOf("(")>-1){const c=o.split("(");a=c[0].toLowerCase().trim();const f=c[1].substring(0,c[1].length-1);a==="currency"&&f.indexOf(":")<0?s.currency||(s.currency=f.trim()):a==="relativetime"&&f.indexOf(":")<0?s.range||(s.range=f.trim()):f.split(";").forEach(y=>{if(!y)return;const[_,...S]=y.split(":"),b=S.join(":").trim().replace(/^'+|'+$/g,"");s[_.trim()]||(s[_.trim()]=b),b==="false"&&(s[_.trim()]=!1),b==="true"&&(s[_.trim()]=!0),isNaN(b)||(s[_.trim()]=parseInt(b,10))})}return{formatName:a,formatOptions:s}}function createCachedFormatter(o){const a={};return function(c,f,d){const y=f+JSON.stringify(d);let _=a[y];return _||(_=o(getCleanedCode(f),d),a[y]=_),_(c)}}class Formatter{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=a,this.formats={number:createCachedFormatter((s,c)=>{const f=new Intl.NumberFormat(s,se({},c));return d=>f.format(d)}),currency:createCachedFormatter((s,c)=>{const f=new Intl.NumberFormat(s,$e(se({},c),{style:"currency"}));return d=>f.format(d)}),datetime:createCachedFormatter((s,c)=>{const f=new Intl.DateTimeFormat(s,se({},c));return d=>f.format(d)}),relativetime:createCachedFormatter((s,c)=>{const f=new Intl.RelativeTimeFormat(s,se({},c));return d=>f.format(d,c.range||"day")}),list:createCachedFormatter((s,c)=>{const f=new Intl.ListFormat(s,se({},c));return d=>f.format(d)})},this.init(a)}init(a){const c=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=c.formatSeparator?c.formatSeparator:c.formatSeparator||","}add(a,s){this.formats[a.toLowerCase().trim()]=s}addCached(a,s){this.formats[a.toLowerCase().trim()]=createCachedFormatter(s)}format(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return s.split(this.formatSeparator).reduce((_,S)=>{const{formatName:b,formatOptions:$}=parseFormatStr(S);if(this.formats[b]){let P=_;try{const T=f&&f.formatParams&&f.formatParams[f.interpolationkey]||{},C=T.locale||T.lng||f.locale||f.lng||c;P=this.formats[b](_,C,se(se(se({},$),f),T))}catch(T){this.logger.warn(T)}return P}else this.logger.warn(`there was no format function for ${b}`);return _},a)}}function removePending(o,a){o.pending[a]!==void 0&&(delete o.pending[a],o.pendingCount--)}class Connector extends EventEmitter{constructor(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=a,this.store=s,this.services=c,this.languageUtils=c.languageUtils,this.options=f,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=f.maxParallelReads||10,this.readingCalls=0,this.maxRetries=f.maxRetries>=0?f.maxRetries:5,this.retryTimeout=f.retryTimeout>=1?f.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(c,f.backend,f)}queueLoad(a,s,c,f){const d={},y={},_={},S={};return a.forEach(b=>{let $=!0;s.forEach(P=>{const T=`${b}|${P}`;!c.reload&&this.store.hasResourceBundle(b,P)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?y[T]===void 0&&(y[T]=!0):(this.state[T]=1,$=!1,y[T]===void 0&&(y[T]=!0),d[T]===void 0&&(d[T]=!0),S[P]===void 0&&(S[P]=!0)))}),$||(_[b]=!0)}),(Object.keys(d).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:f}),{toLoad:Object.keys(d),pending:Object.keys(y),toLoadLanguages:Object.keys(_),toLoadNamespaces:Object.keys(S)}}loaded(a,s,c){const f=a.split("|"),d=f[0],y=f[1];s&&this.emit("failedLoading",d,y,s),c&&this.store.addResourceBundle(d,y,c),this.state[a]=s?-1:2;const _={};this.queue.forEach(S=>{pushPath(S.loaded,[d],y),removePending(S,a),s&&S.errors.push(s),S.pendingCount===0&&!S.done&&(Object.keys(S.loaded).forEach(b=>{_[b]||(_[b]={});const $=S.loaded[b];$.length&&$.forEach(P=>{_[b][P]===void 0&&(_[b][P]=!0)})}),S.done=!0,S.errors.length?S.callback(S.errors):S.callback())}),this.emit("loaded",_),this.queue=this.queue.filter(S=>!S.done)}read(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!a.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:s,fcName:c,tried:f,wait:d,callback:y});return}this.readingCalls++;const _=(b,$)=>{if(this.readingCalls--,this.waitingReads.length>0){const P=this.waitingReads.shift();this.read(P.lng,P.ns,P.fcName,P.tried,P.wait,P.callback)}if(b&&$&&f{this.read.call(this,a,s,c,f+1,d*2,y)},d);return}y(b,$)},S=this.backend[c].bind(this.backend);if(S.length===2){try{const b=S(a,s);b&&typeof b.then=="function"?b.then($=>_(null,$)).catch(_):_(null,b)}catch(b){_(b)}return}return S(a,s,_)}prepareLoading(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();typeof a=="string"&&(a=this.languageUtils.toResolveHierarchy(a)),typeof s=="string"&&(s=[s]);const d=this.queueLoad(a,s,c,f);if(!d.toLoad.length)return d.pending.length||f(),null;d.toLoad.forEach(y=>{this.loadOne(y)})}load(a,s,c){this.prepareLoading(a,s,{},c)}reload(a,s,c){this.prepareLoading(a,s,{reload:!0},c)}loadOne(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const c=a.split("|"),f=c[0],d=c[1];this.read(f,d,"read",void 0,void 0,(y,_)=>{y&&this.logger.warn(`${s}loading namespace ${d} for language ${f} failed`,y),!y&&_&&this.logger.log(`${s}loaded namespace ${d} for language ${f}`,_),this.loaded(a,y,_)})}saveMissing(a,s,c,f,d){let y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},_=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(s)){this.logger.warn(`did not save key "${c}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(c==null||c==="")){if(this.backend&&this.backend.create){const S=$e(se({},y),{isUpdate:d}),b=this.backend.create.bind(this.backend);if(b.length<6)try{let $;b.length===5?$=b(a,s,c,f,S):$=b(a,s,c,f),$&&typeof $.then=="function"?$.then(P=>_(null,P)).catch(_):_(null,$)}catch($){_($)}else b(a,s,c,f,_,S)}!a||!a[0]||this.store.addResource(a[0],s,c,f)}}}function get$1(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(a){let s={};if(typeof a[1]=="object"&&(s=a[1]),typeof a[1]=="string"&&(s.defaultValue=a[1]),typeof a[2]=="string"&&(s.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const c=a[3]||a[2];Object.keys(c).forEach(f=>{s[f]=c[f]})}return s},interpolation:{escapeValue:!0,format:o=>o,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(o){return typeof o.ns=="string"&&(o.ns=[o.ns]),typeof o.fallbackLng=="string"&&(o.fallbackLng=[o.fallbackLng]),typeof o.fallbackNS=="string"&&(o.fallbackNS=[o.fallbackNS]),o.supportedLngs&&o.supportedLngs.indexOf("cimode")<0&&(o.supportedLngs=o.supportedLngs.concat(["cimode"])),o}function noop$5(){}function bindMemberFunctions(o){Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach(s=>{typeof o[s]=="function"&&(o[s]=o[s].bind(o))})}class I18n extends EventEmitter{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(a),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),s&&!this.isInitialized&&!a.isClone){if(!this.options.initImmediate)return this.init(a,s),this;setTimeout(()=>{this.init(a,s)},0)}}init(){var a=this;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;typeof s=="function"&&(c=s,s={}),!s.defaultNS&&s.defaultNS!==!1&&s.ns&&(typeof s.ns=="string"?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));const f=get$1();this.options=se(se(se({},f),this.options),transformOptions(s)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=se(se({},f.interpolation),this.options.interpolation)),s.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=s.keySeparator),s.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=s.nsSeparator);function d($){return $?typeof $=="function"?new $:$:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(d(this.modules.logger),this.options):baseLogger.init(null,this.options);let $;this.modules.formatter?$=this.modules.formatter:typeof Intl!="undefined"&&($=Formatter);const P=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const T=this.services;T.logger=baseLogger,T.resourceStore=this.store,T.languageUtils=P,T.pluralResolver=new PluralResolver(P,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),$&&(!this.options.interpolation.format||this.options.interpolation.format===f.interpolation.format)&&(T.formatter=d($),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new Interpolator(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new Connector(d(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(C){for(var O=arguments.length,A=new Array(O>1?O-1:0),F=1;F1?O-1:0),F=1;F{C.init&&C.init(this)})}if(this.format=this.options.interpolation.format,c||(c=noop$5),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const $=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);$.length>0&&$[0]!=="dev"&&(this.options.lng=$[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach($=>{this[$]=function(){return a.store[$](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach($=>{this[$]=function(){return a.store[$](...arguments),a}});const S=defer(),b=()=>{const $=(P,T)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),S.resolve(T),c(P,T)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return $(null,this.t.bind(this));this.changeLanguage(this.options.lng,$)};return this.options.resources||!this.options.initImmediate?b():setTimeout(b,0),S}loadResources(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$5;const f=typeof a=="string"?a:this.language;if(typeof a=="function"&&(c=a),!this.options.resources||this.options.partialBundledLanguages){if(f&&f.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const d=[],y=_=>{if(!_||_==="cimode")return;this.services.languageUtils.toResolveHierarchy(_).forEach(b=>{b!=="cimode"&&d.indexOf(b)<0&&d.push(b)})};f?y(f):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(S=>y(S)),this.options.preload&&this.options.preload.forEach(_=>y(_)),this.services.backendConnector.load(d,this.options.ns,_=>{!_&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(_)})}else c(null)}reloadResources(a,s,c){const f=defer();return a||(a=this.languages),s||(s=this.options.ns),c||(c=noop$5),this.services.backendConnector.reload(a,s,d=>{f.resolve(),c(d)}),f}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&postProcessor.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1))for(let s=0;s-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}}changeLanguage(a,s){var c=this;this.isLanguageChangingTo=a;const f=defer();this.emit("languageChanging",a);const d=S=>{this.language=S,this.languages=this.services.languageUtils.toResolveHierarchy(S),this.resolvedLanguage=void 0,this.setResolvedLanguage(S)},y=(S,b)=>{b?(d(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,f.resolve(function(){return c.t(...arguments)}),s&&s(S,function(){return c.t(...arguments)})},_=S=>{!a&&!S&&this.services.languageDetector&&(S=[]);const b=typeof S=="string"?S:this.services.languageUtils.getBestMatchFromCodes(S);b&&(this.language||d(b),this.translator.language||this.translator.changeLanguage(b),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(b)),this.loadResources(b,$=>{y($,b)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?_(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(_):this.services.languageDetector.detect(_):_(a),f}getFixedT(a,s,c){var f=this;const d=function(y,_){let S;if(typeof _!="object"){for(var b=arguments.length,$=new Array(b>2?b-2:0),P=2;P`${S.keyPrefix}${T}${O}`):C=S.keyPrefix?`${S.keyPrefix}${T}${y}`:y,f.t(C,S)};return typeof a=="string"?d.lng=a:d.lngs=a,d.ns=s,d.keyPrefix=c,d}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const c=s.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const y=(_,S)=>{const b=this.services.backendConnector.state[`${_}|${S}`];return b===-1||b===2};if(s.precheck){const _=s.precheck(this,y);if(_!==void 0)return _}return!!(this.hasResourceBundle(c,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(c,a)&&(!f||y(d,a)))}loadNamespaces(a,s){const c=defer();return this.options.ns?(typeof a=="string"&&(a=[a]),a.forEach(f=>{this.options.ns.indexOf(f)<0&&this.options.ns.push(f)}),this.loadResources(f=>{c.resolve(),s&&s(f)}),c):(s&&s(),Promise.resolve())}loadLanguages(a,s){const c=defer();typeof a=="string"&&(a=[a]);const f=this.options.preload||[],d=a.filter(y=>f.indexOf(y)<0);return d.length?(this.options.preload=f.concat(d),this.loadResources(y=>{c.resolve(),s&&s(y)}),c):(s&&s(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!a)return"rtl";const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],c=this.services&&this.services.languageUtils||new LanguageUtil(get$1());return s.indexOf(c.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;return new I18n(a,s)}cloneInstance(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$5;const c=a.forkResourceStore;c&&delete a.forkResourceStore;const f=$e(se(se({},this.options),a),{isClone:!0}),d=new I18n(f);return(a.debug!==void 0||a.prefix!==void 0)&&(d.logger=d.logger.clone(a)),["store","services","language"].forEach(_=>{d[_]=this[_]}),d.services=se({},this.services),d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},c&&(d.store=new ResourceStore(this.store.data,f),d.services.resourceStore=d.store),d.translator=new Translator(d.services,f),d.translator.on("*",function(_){for(var S=arguments.length,b=new Array(S>1?S-1:0),$=1;$-1};function T(Z){if(typeof Z!="string"&&(Z=String(Z)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(Z)||Z==="")throw new TypeError('Invalid character in header field name: "'+Z+'"');return Z.toLowerCase()}function C(Z){return typeof Z!="string"&&(Z=String(Z)),Z}function O(Z){var Q={next:function(){var J=Z.shift();return{done:J===void 0,value:J}}};return S.iterable&&(Q[Symbol.iterator]=function(){return Q}),Q}function A(Z){this.map={},Z instanceof A?Z.forEach(function(Q,J){this.append(J,Q)},this):Array.isArray(Z)?Z.forEach(function(Q){this.append(Q[0],Q[1])},this):Z&&Object.getOwnPropertyNames(Z).forEach(function(Q){this.append(Q,Z[Q])},this)}A.prototype.append=function(Z,Q){Z=T(Z),Q=C(Q);var J=this.map[Z];this.map[Z]=J?J+", "+Q:Q},A.prototype.delete=function(Z){delete this.map[T(Z)]},A.prototype.get=function(Z){return Z=T(Z),this.has(Z)?this.map[Z]:null},A.prototype.has=function(Z){return this.map.hasOwnProperty(T(Z))},A.prototype.set=function(Z,Q){this.map[T(Z)]=C(Q)},A.prototype.forEach=function(Z,Q){for(var J in this.map)this.map.hasOwnProperty(J)&&Z.call(Q,this.map[J],J,this)},A.prototype.keys=function(){var Z=[];return this.forEach(function(Q,J){Z.push(J)}),O(Z)},A.prototype.values=function(){var Z=[];return this.forEach(function(Q){Z.push(Q)}),O(Z)},A.prototype.entries=function(){var Z=[];return this.forEach(function(Q,J){Z.push([J,Q])}),O(Z)},S.iterable&&(A.prototype[Symbol.iterator]=A.prototype.entries);function F(Z){if(Z.bodyUsed)return Promise.reject(new TypeError("Already read"));Z.bodyUsed=!0}function j(Z){return new Promise(function(Q,J){Z.onload=function(){Q(Z.result)},Z.onerror=function(){J(Z.error)}})}function L(Z){var Q=new FileReader,J=j(Q);return Q.readAsArrayBuffer(Z),J}function M(Z){var Q=new FileReader,J=j(Q);return Q.readAsText(Z),J}function I(Z){for(var Q=new Uint8Array(Z),J=new Array(Q.length),ne=0;ne-1?Q:Z}function X(Z,Q){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Q=Q||{};var J=Q.body;if(Z instanceof X){if(Z.bodyUsed)throw new TypeError("Already read");this.url=Z.url,this.credentials=Z.credentials,Q.headers||(this.headers=new A(Z.headers)),this.method=Z.method,this.mode=Z.mode,this.signal=Z.signal,!J&&Z._bodyInit!=null&&(J=Z._bodyInit,Z.bodyUsed=!0)}else this.url=String(Z);if(this.credentials=Q.credentials||this.credentials||"same-origin",(Q.headers||!this.headers)&&(this.headers=new A(Q.headers)),this.method=G(Q.method||this.method||"GET"),this.mode=Q.mode||this.mode||null,this.signal=Q.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&J)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(J),(this.method==="GET"||this.method==="HEAD")&&(Q.cache==="no-store"||Q.cache==="no-cache")){var ne=/([?&])_=[^&]*/;if(ne.test(this.url))this.url=this.url.replace(ne,"$1_="+new Date().getTime());else{var fe=/\?/;this.url+=(fe.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}X.prototype.clone=function(){return new X(this,{body:this._bodyInit})};function W(Z){var Q=new FormData;return Z.trim().split("&").forEach(function(J){if(J){var ne=J.split("="),fe=ne.shift().replace(/\+/g," "),le=ne.join("=").replace(/\+/g," ");Q.append(decodeURIComponent(fe),decodeURIComponent(le))}}),Q}function K(Z){var Q=new A,J=Z.replace(/\r?\n[\t ]+/g," ");return J.split("\r").map(function(ne){return ne.indexOf(` -`)===0?ne.substr(1,ne.length):ne}).forEach(function(ne){var fe=ne.split(":"),le=fe.shift().trim();if(le){var ae=fe.join(":").trim();Q.append(le,ae)}}),Q}z.call(X.prototype);function ie(Z,Q){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Q||(Q={}),this.type="default",this.status=Q.status===void 0?200:Q.status,this.ok=this.status>=200&&this.status<300,this.statusText=Q.statusText===void 0?"":""+Q.statusText,this.headers=new A(Q.headers),this.url=Q.url||"",this._initBody(Z)}z.call(ie.prototype),ie.prototype.clone=function(){return new ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},ie.error=function(){var Z=new ie(null,{status:0,statusText:""});return Z.type="error",Z};var ee=[301,302,303,307,308];ie.redirect=function(Z,Q){if(ee.indexOf(Q)===-1)throw new RangeError("Invalid status code");return new ie(null,{status:Q,headers:{location:Z}})},y.DOMException=_.DOMException;try{new y.DOMException}catch(Z){y.DOMException=function(Q,J){this.message=Q,this.name=J;var ne=Error(Q);this.stack=ne.stack},y.DOMException.prototype=Object.create(Error.prototype),y.DOMException.prototype.constructor=y.DOMException}function de(Z,Q){return new Promise(function(J,ne){var fe=new X(Z,Q);if(fe.signal&&fe.signal.aborted)return ne(new y.DOMException("Aborted","AbortError"));var le=new XMLHttpRequest;function ae(){le.abort()}le.onload=function(){var ge={status:le.status,statusText:le.statusText,headers:K(le.getAllResponseHeaders()||"")};ge.url="responseURL"in le?le.responseURL:ge.headers.get("X-Request-URL");var pe="response"in le?le.response:le.responseText;setTimeout(function(){J(new ie(pe,ge))},0)},le.onerror=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},le.ontimeout=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},le.onabort=function(){setTimeout(function(){ne(new y.DOMException("Aborted","AbortError"))},0)};function ce(ge){try{return ge===""&&_.location.href?_.location.href:ge}catch(pe){return ge}}le.open(fe.method,ce(fe.url),!0),fe.credentials==="include"?le.withCredentials=!0:fe.credentials==="omit"&&(le.withCredentials=!1),"responseType"in le&&(S.blob?le.responseType="blob":S.arrayBuffer&&fe.headers.get("Content-Type")&&fe.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(le.responseType="arraybuffer")),Q&&typeof Q.headers=="object"&&!(Q.headers instanceof A)?Object.getOwnPropertyNames(Q.headers).forEach(function(ge){le.setRequestHeader(ge,C(Q.headers[ge]))}):fe.headers.forEach(function(ge,pe){le.setRequestHeader(pe,ge)}),fe.signal&&(fe.signal.addEventListener("abort",ae),le.onreadystatechange=function(){le.readyState===4&&fe.signal.removeEventListener("abort",ae)}),le.send(typeof fe._bodyInit=="undefined"?null:fe._bodyInit)})}return de.polyfill=!0,_.fetch||(_.fetch=de,_.Headers=A,_.Request=X,_.Response=ie),y.Headers=A,y.Request=X,y.Response=ie,y.fetch=de,y})({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var f=s.fetch?s:c;a=f.fetch,a.default=f.fetch,a.fetch=f.fetch,a.Headers=f.Headers,a.Request=f.Request,a.Response=f.Response,o.exports=a}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}(function(o,a){var s;if(typeof fetch=="function"&&(typeof commonjsGlobal!="undefined"&&commonjsGlobal.fetch?s=commonjsGlobal.fetch:typeof window!="undefined"&&window.fetch?s=window.fetch:s=fetch),typeof commonjsRequire!="undefined"&&(typeof window=="undefined"||typeof window.document=="undefined")){var c=s||requireBrowserPonyfill();c.default&&(c=c.default),a.default=c,o.exports=a.default}})(getFetch$1,getFetch$1.exports);var getFetchExports=getFetch$1.exports;const getFetch=getDefaultExportFromCjs(getFetchExports),fetchNode=_mergeNamespaces({__proto__:null,default:getFetch},[getFetchExports]);function _typeof$k(o){"@babel/helpers - typeof";return _typeof$k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$k(o)}var fetchApi;typeof fetch=="function"&&(typeof global!="undefined"&&global.fetch?fetchApi=global.fetch:typeof window!="undefined"&&window.fetch?fetchApi=window.fetch:fetchApi=fetch);var XmlHttpRequestApi;hasXMLHttpRequest()&&(typeof global!="undefined"&&global.XMLHttpRequest?XmlHttpRequestApi=global.XMLHttpRequest:typeof window!="undefined"&&window.XMLHttpRequest&&(XmlHttpRequestApi=window.XMLHttpRequest));var ActiveXObjectApi;typeof ActiveXObject=="function"&&(typeof global!="undefined"&&global.ActiveXObject?ActiveXObjectApi=global.ActiveXObject:typeof window!="undefined"&&window.ActiveXObject&&(ActiveXObjectApi=window.ActiveXObject));!fetchApi&&fetchNode&&!XmlHttpRequestApi&&!ActiveXObjectApi&&(fetchApi=getFetch||fetchNode);typeof fetchApi!="function"&&(fetchApi=void 0);var addQueryString=function(a,s){if(s&&_typeof$k(s)==="object"){var c="";for(var f in s)c+="&"+encodeURIComponent(f)+"="+encodeURIComponent(s[f]);if(!c)return a;a=a+(a.indexOf("?")!==-1?"&":"?")+c.slice(1)}return a},fetchIt=function(a,s,c){var f=function(y){if(!y.ok)return c(y.statusText||"Error",{status:y.status});y.text().then(function(_){c(null,{status:y.status,data:_})}).catch(c)};typeof fetch=="function"?fetch(a,s).then(f).catch(c):fetchApi(a,s).then(f).catch(c)},omitFetchOptions=!1,requestWithFetch=function(a,s,c,f){a.queryStringParams&&(s=addQueryString(s,a.queryStringParams));var d=defaults$5({},typeof a.customHeaders=="function"?a.customHeaders():a.customHeaders);typeof window=="undefined"&&typeof global!="undefined"&&typeof global.process!="undefined"&&global.process.versions&&global.process.versions.node&&(d["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),c&&(d["Content-Type"]="application/json");var y=typeof a.requestOptions=="function"?a.requestOptions(c):a.requestOptions,_=defaults$5({method:c?"POST":"GET",body:c?a.stringify(c):void 0,headers:d},omitFetchOptions?{}:y);try{fetchIt(s,_,f)}catch(S){if(!y||Object.keys(y).length===0||!S.message||S.message.indexOf("not implemented")<0)return f(S);try{Object.keys(y).forEach(function(b){delete _[b]}),fetchIt(s,_,f),omitFetchOptions=!0}catch(b){f(b)}}},requestWithXmlHttpRequest=function(a,s,c,f){c&&_typeof$k(c)==="object"&&(c=addQueryString("",c).slice(1)),a.queryStringParams&&(s=addQueryString(s,a.queryStringParams));try{var d;XmlHttpRequestApi?d=new XmlHttpRequestApi:d=new ActiveXObjectApi("MSXML2.XMLHTTP.3.0"),d.open(c?"POST":"GET",s,1),a.crossDomain||d.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.withCredentials=!!a.withCredentials,c&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.overrideMimeType&&d.overrideMimeType("application/json");var y=a.customHeaders;if(y=typeof y=="function"?y():y,y)for(var _ in y)d.setRequestHeader(_,y[_]);d.onreadystatechange=function(){d.readyState>3&&f(d.status>=400?d.statusText:null,{status:d.status,data:d.responseText})},d.send(c)}catch(S){}},request$1=function(a,s,c,f){if(typeof c=="function"&&(f=c,c=void 0),f=f||function(){},fetchApi&&s.indexOf("file:")!==0)return requestWithFetch(a,s,c,f);if(hasXMLHttpRequest()||typeof ActiveXObject=="function")return requestWithXmlHttpRequest(a,s,c,f);f(new Error("No fetch and no xhr implementation found!"))};function _typeof$j(o){"@babel/helpers - typeof";return _typeof$j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$j(o)}function _classCallCheck$5(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(o,a){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_classCallCheck$5(this,o),this.services=a,this.options=s,this.allOptions=c,this.type="backend",this.init(a,s,c)}return _createClass$5(o,[{key:"init",value:function(s){var c=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=s,this.options=defaults$5(f,this.options||{},getDefaults$1()),this.allOptions=d,this.services&&this.options.reloadInterval&&setInterval(function(){return c.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(s,c,f){this._readAny(s,s,c,c,f)}},{key:"read",value:function(s,c,f){this._readAny([s],s,[c],c,f)}},{key:"_readAny",value:function(s,c,f,d,y){var _=this,S=this.options.loadPath;typeof this.options.loadPath=="function"&&(S=this.options.loadPath(s,f)),S=makePromise(S),S.then(function(b){if(!b)return y(null,{});var $=_.services.interpolator.interpolate(b,{lng:s.join("+"),ns:f.join("+")});_.loadUrl($,y,c,d)})}},{key:"loadUrl",value:function(s,c,f,d){var y=this,_=typeof f=="string"?[f]:f,S=typeof d=="string"?[d]:d,b=this.options.parseLoadPayload(_,S);this.options.request(this.options,s,b,function($,P){if(P&&(P.status>=500&&P.status<600||!P.status))return c("failed loading "+s+"; status code: "+P.status,!0);if(P&&P.status>=400&&P.status<500)return c("failed loading "+s+"; status code: "+P.status,!1);if(!P&&$&&$.message&&$.message.indexOf("Failed to fetch")>-1)return c("failed loading "+s+": "+$.message,!0);if($)return c($,!1);var T,C;try{typeof P.data=="string"?T=y.options.parse(P.data,f,d):T=P.data}catch(O){C="failed parsing "+s+" to json"}if(C)return c(C,!1);c(null,T)})}},{key:"create",value:function(s,c,f,d,y){var _=this;if(this.options.addPath){typeof s=="string"&&(s=[s]);var S=this.options.parsePayload(c,f,d),b=0,$=[],P=[];s.forEach(function(T){var C=_.options.addPath;typeof _.options.addPath=="function"&&(C=_.options.addPath(T,c));var O=_.services.interpolator.interpolate(C,{lng:T,ns:c});_.options.request(_.options,O,S,function(A,F){b+=1,$.push(A),P.push(F),b===s.length&&typeof y=="function"&&y($,P)})})}}},{key:"reload",value:function(){var s=this,c=this.services,f=c.backendConnector,d=c.languageUtils,y=c.logger,_=f.language;if(!(_&&_.toLowerCase()==="cimode")){var S=[],b=function(P){var T=d.toResolveHierarchy(P);T.forEach(function(C){S.indexOf(C)<0&&S.push(C)})};b(_),this.allOptions.preload&&this.allOptions.preload.forEach(function($){return b($)}),S.forEach(function($){s.allOptions.ns.forEach(function(P){f.read($,P,"read",null,null,function(T,C){T&&y.warn("loading namespace ".concat(P," for language ").concat($," failed"),T),!T&&C&&y.log("loaded namespace ".concat(P," for language ").concat($),C),f.loaded("".concat($,"|").concat(P),T,C)})})})}}}]),o}();Backend.type="backend";function warn(){if(console&&console.warn){for(var o=arguments.length,a=new Array(o),s=0;s()=>{if(o.isInitialized)a();else{const s=()=>{setTimeout(()=>{o.off("initialized",s)},0),a()};o.on("initialized",s)}};function loadNamespaces(o,a,s){o.loadNamespaces(a,loadedClb(o,s))}function loadLanguages(o,a,s,c){typeof s=="string"&&(s=[s]),s.forEach(f=>{o.options.ns.indexOf(f)<0&&o.options.ns.push(f)}),o.loadLanguages(a,loadedClb(o,c))}function oldI18nextHasLoadedNamespace(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const c=a.languages[0],f=a.options?a.options.fallbackLng:!1,d=a.languages[a.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const y=(_,S)=>{const b=a.services.backendConnector.state[`${_}|${S}`];return b===-1||b===2};return s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!y(a.isLanguageChangingTo,o)?!1:!!(a.hasResourceBundle(c,o)||!a.services.backendConnector.backend||a.options.resources&&!a.options.partialBundledLanguages||y(c,o)&&(!f||y(d,o)))}function hasLoadedNamespace(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!a.languages||!a.languages.length?(warnOnce("i18n.languages were undefined or empty",a.languages),!0):a.options.ignoreJSONStructure!==void 0?a.hasLoadedNamespace(o,{lng:s.lng,precheck:(f,d)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&f.services.backendConnector.backend&&f.isLanguageChangingTo&&!d(f.isLanguageChangingTo,o))return!1}}):oldI18nextHasLoadedNamespace(o,a,s)}const matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},unescapeHtmlEntity=o=>htmlEntities[o],unescape$1=o=>o.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:unescape$1};function setDefaults(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions=se(se({},defaultOptions),o)}function getDefaults(){return defaultOptions}let i18nInstance;function setI18n(o){i18nInstance=o}function getI18n(){return i18nInstance}const initReactI18next={type:"3rdParty",init(o){setDefaults(o.options.react),setI18n(o)}},I18nContext=reactExports.createContext();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const usePrevious$1=(o,a)=>{const s=reactExports.useRef();return reactExports.useEffect(()=>{s.current=a?s.current:o},[o,a]),s.current};function useTranslation(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:s}=a,{i18n:c,defaultNS:f}=reactExports.useContext(I18nContext)||{},d=s||c||getI18n();if(d&&!d.reportNamespaces&&(d.reportNamespaces=new ReportNamespaces),!d){warnOnce("You will need to pass in an i18next instance by using initReactI18next");const M=(U,z)=>typeof z=="string"?z:z&&typeof z=="object"&&typeof z.defaultValue=="string"?z.defaultValue:Array.isArray(U)?U[U.length-1]:U,I=[M,{},!1];return I.t=M,I.i18n={},I.ready=!1,I}d.options.react&&d.options.react.wait!==void 0&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const y=se(se(se({},getDefaults()),d.options.react),a),{useSuspense:_,keyPrefix:S}=y;let b=o||f||d.options&&d.options.defaultNS;b=typeof b=="string"?[b]:b||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(b);const $=(d.isInitialized||d.initializedStoreOnce)&&b.every(M=>hasLoadedNamespace(M,d,y));function P(){return d.getFixedT(a.lng||null,y.nsMode==="fallback"?b:b[0],S)}const[T,C]=reactExports.useState(P);let O=b.join();a.lng&&(O=`${a.lng}${O}`);const A=usePrevious$1(O),F=reactExports.useRef(!0);reactExports.useEffect(()=>{const{bindI18n:M,bindI18nStore:I}=y;F.current=!0,!$&&!_&&(a.lng?loadLanguages(d,a.lng,b,()=>{F.current&&C(P)}):loadNamespaces(d,b,()=>{F.current&&C(P)})),$&&A&&A!==O&&F.current&&C(P);function U(){F.current&&C(P)}return M&&d&&d.on(M,U),I&&d&&d.store.on(I,U),()=>{F.current=!1,M&&d&&M.split(" ").forEach(z=>d.off(z,U)),I&&d&&I.split(" ").forEach(z=>d.store.off(z,U))}},[d,O]);const j=reactExports.useRef(!0);reactExports.useEffect(()=>{F.current&&!j.current&&C(P),j.current=!1},[d,S]);const L=[T,d,$];if(L.t=T,L.i18n=d,L.ready=$,$||!$&&!_)return L;throw new Promise(M=>{a.lng?loadLanguages(d,a.lng,b,()=>M()):loadNamespaces(d,b,()=>M())})}const currentLanguage=window.location.search.split("=")[1];instance.use(Backend).use(initReactI18next).init({lng:currentLanguage||"zh",fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},partialBundledLanguages:!0,backend:{loadPath:"/react-antd-admin-pnpm//locales/{{lng}}/{{ns}}.json"}});const createStoreImpl$1=o=>{let a;const s=new Set,c=(S,b)=>{const $=typeof S=="function"?S(a):S;if(!Object.is($,a)){const P=a;a=(b!=null?b:typeof $!="object"||$===null)?$:Object.assign({},a,$),s.forEach(T=>T(a,P))}},f=()=>a,_={setState:c,getState:f,subscribe:S=>(s.add(S),()=>s.delete(S)),destroy:()=>{s.clear()}};return a=o(c,f,_),_},createStore$3=o=>o?createStoreImpl$1(o):createStoreImpl$1,{useDebugValue:useDebugValue$1}=React$4,{useSyncExternalStoreWithSelector:useSyncExternalStoreWithSelector$1}=useSyncExternalStoreExports;let didWarnAboutEqualityFn$1=!1;function useStore$1(o,a=o.getState,s){const c=useSyncExternalStoreWithSelector$1(o.subscribe,o.getState,o.getServerState||o.getState,a,s);return useDebugValue$1(c),c}const createImpl$1=o=>{const a=typeof o=="function"?createStore$3(o):o,s=(c,f)=>useStore$1(a,c,f);return Object.assign(s,a),s},create$1=o=>o?createImpl$1(o):createImpl$1;function createJSONStorage(o,a){let s;try{s=o()}catch(f){return}return{getItem:f=>{var d;const y=S=>S===null?null:JSON.parse(S,a==null?void 0:a.reviver),_=(d=s.getItem(f))!=null?d:null;return _ instanceof Promise?_.then(y):y(_)},setItem:(f,d)=>s.setItem(f,JSON.stringify(d,a==null?void 0:a.replacer)),removeItem:f=>s.removeItem(f)}}const toThenable=o=>a=>{try{const s=o(a);return s instanceof Promise?s:{then(c){return toThenable(c)(s)},catch(c){return this}}}catch(s){return{then(c){return this},catch(c){return toThenable(c)(s)}}}},oldImpl=(o,a)=>(s,c,f)=>{let d=se({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:F=>F,version:0,merge:(F,j)=>se(se({},j),F)},a),y=!1;const _=new Set,S=new Set;let b;try{b=d.getStorage()}catch(F){}if(!b)return o((...F)=>{s(...F)},c,f);const $=toThenable(d.serialize),P=()=>{const F=d.partialize(se({},c()));let j;const L=$({state:F,version:d.version}).then(M=>b.setItem(d.name,M)).catch(M=>{j=M});if(j)throw j;return L},T=f.setState;f.setState=(F,j)=>{T(F,j),P()};const C=o((...F)=>{s(...F),P()},c,f);let O;const A=()=>{var F;if(!b)return;y=!1,_.forEach(L=>L(c()));const j=((F=d.onRehydrateStorage)==null?void 0:F.call(d,c()))||void 0;return toThenable(b.getItem.bind(b))(d.name).then(L=>{if(L)return d.deserialize(L)}).then(L=>{if(L)if(typeof L.version=="number"&&L.version!==d.version){if(d.migrate)return d.migrate(L.state,L.version)}else return L.state}).then(L=>{var M;return O=d.merge(L,(M=c())!=null?M:C),s(O,!0),P()}).then(()=>{j==null||j(O,void 0),y=!0,S.forEach(L=>L(O))}).catch(L=>{j==null||j(void 0,L)})};return f.persist={setOptions:F=>{d=se(se({},d),F),F.getStorage&&(b=F.getStorage())},clearStorage:()=>{b==null||b.removeItem(d.name)},getOptions:()=>d,rehydrate:()=>A(),hasHydrated:()=>y,onHydrate:F=>(_.add(F),()=>{_.delete(F)}),onFinishHydration:F=>(S.add(F),()=>{S.delete(F)})},A(),O||C},newImpl=(o,a)=>(s,c,f)=>{let d=se({storage:createJSONStorage(()=>localStorage),partialize:A=>A,version:0,merge:(A,F)=>se(se({},F),A)},a),y=!1;const _=new Set,S=new Set;let b=d.storage;if(!b)return o((...A)=>{s(...A)},c,f);const $=()=>{const A=d.partialize(se({},c()));return b.setItem(d.name,{state:A,version:d.version})},P=f.setState;f.setState=(A,F)=>{P(A,F),$()};const T=o((...A)=>{s(...A),$()},c,f);let C;const O=()=>{var A,F;if(!b)return;y=!1,_.forEach(L=>{var M;return L((M=c())!=null?M:T)});const j=((F=d.onRehydrateStorage)==null?void 0:F.call(d,(A=c())!=null?A:T))||void 0;return toThenable(b.getItem.bind(b))(d.name).then(L=>{if(L)if(typeof L.version=="number"&&L.version!==d.version){if(d.migrate)return d.migrate(L.state,L.version)}else return L.state}).then(L=>{var M;return C=d.merge(L,(M=c())!=null?M:T),s(C,!0),$()}).then(()=>{j==null||j(C,void 0),C=c(),y=!0,S.forEach(L=>L(C))}).catch(L=>{j==null||j(void 0,L)})};return f.persist={setOptions:A=>{d=se(se({},d),A),A.storage&&(b=A.storage)},clearStorage:()=>{b==null||b.removeItem(d.name)},getOptions:()=>d,rehydrate:()=>O(),hasHydrated:()=>y,onHydrate:A=>(_.add(A),()=>{_.delete(A)}),onFinishHydration:A=>(S.add(A),()=>{S.delete(A)})},d.skipHydration||O(),C||T},persistImpl=(o,a)=>"getStorage"in a||"serialize"in a||"deserialize"in a?oldImpl(o,a):newImpl(o,a),persist=persistImpl,useGlobalStore=create$1()(persist((o,a)=>({theme:"light",setTheme:s=>{o({theme:s})},preset:"#00A76F",setPreset:s=>{o({preset:s})},hasTabs:!0,setHasTabs:s=>{o({hasTabs:s})},hasCrumbs:!0,setHasCrumbs:s=>{o({hasCrumbs:s})}}),{name:"adminGlobal"}));var __defProp$2=Object.defineProperty,__export=(o,a)=>{for(var s in a)__defProp$2(o,s,{get:a[s],enumerable:!0})},globals_exports={};__export(globals_exports,{assign:()=>assign$1,colors:()=>colors,createStringInterpolator:()=>createStringInterpolator,skipAnimation:()=>skipAnimation,to:()=>to,willAdvance:()=>willAdvance});var updateQueue=makeQueue(),raf=o=>schedule(o,updateQueue),writeQueue=makeQueue();raf.write=o=>schedule(o,writeQueue);var onStartQueue=makeQueue();raf.onStart=o=>schedule(o,onStartQueue);var onFrameQueue=makeQueue();raf.onFrame=o=>schedule(o,onFrameQueue);var onFinishQueue=makeQueue();raf.onFinish=o=>schedule(o,onFinishQueue);var timeouts=[];raf.setTimeout=(o,a)=>{const s=raf.now()+a,c=()=>{const d=timeouts.findIndex(y=>y.cancel==c);~d&&timeouts.splice(d,1),pendingCount-=~d?1:0},f={time:s,handler:o,cancel:c};return timeouts.splice(findTimeout(s),0,f),pendingCount+=1,start(),f};var findTimeout=o=>~(~timeouts.findIndex(a=>a.time>o)||~timeouts.length);raf.cancel=o=>{onStartQueue.delete(o),onFrameQueue.delete(o),onFinishQueue.delete(o),updateQueue.delete(o),writeQueue.delete(o)};raf.sync=o=>{sync=!0,raf.batchedUpdates(o),sync=!1};raf.throttle=o=>{let a;function s(){try{o(...a)}finally{a=null}}function c(...f){a=f,raf.onStart(s)}return c.handler=o,c.cancel=()=>{onStartQueue.delete(s),a=null},c};var nativeRaf=typeof window!="undefined"?window.requestAnimationFrame:()=>{};raf.use=o=>nativeRaf=o;raf.now=typeof performance!="undefined"?()=>performance.now():Date.now;raf.batchedUpdates=o=>o();raf.catch=console.error;raf.frameLoop="always";raf.advance=()=>{raf.frameLoop!=="demand"||update()};var ts=-1,pendingCount=0,sync=!1;function schedule(o,a){sync?(a.delete(o),o(0)):(a.add(o),start())}function start(){ts<0&&(ts=0,raf.frameLoop!=="demand"&&nativeRaf(loop$1))}function stop(){ts=-1}function loop$1(){~ts&&(nativeRaf(loop$1),raf.batchedUpdates(update))}function update(){const o=ts;ts=raf.now();const a=findTimeout(ts);if(a&&(eachSafely(timeouts.splice(0,a),s=>s.handler()),pendingCount-=a),!pendingCount){stop();return}onStartQueue.flush(),updateQueue.flush(o?Math.min(64,ts-o):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()}function makeQueue(){let o=new Set,a=o;return{add(s){pendingCount+=a==o&&!o.has(s)?1:0,o.add(s)},delete(s){return pendingCount-=a==o&&o.has(s)?1:0,o.delete(s)},flush(s){a.size&&(o=new Set,pendingCount-=a.size,eachSafely(a,c=>c(s)&&o.add(c)),pendingCount+=o.size,a=o)}}}function eachSafely(o,a){o.forEach(s=>{try{a(s)}catch(c){raf.catch(c)}})}function noop$4(){}var defineHidden=(o,a,s)=>Object.defineProperty(o,a,{value:s,writable:!0,configurable:!0}),is$1={arr:Array.isArray,obj:o=>!!o&&o.constructor.name==="Object",fun:o=>typeof o=="function",str:o=>typeof o=="string",num:o=>typeof o=="number",und:o=>o===void 0};function isEqual$1(o,a){if(is$1.arr(o)){if(!is$1.arr(a)||o.length!==a.length)return!1;for(let s=0;so.forEach(a);function eachProp(o,a,s){if(is$1.arr(o)){for(let c=0;cis$1.und(o)?[]:is$1.arr(o)?o:[o];function flush(o,a){if(o.size){const s=Array.from(o);o.clear(),each$1(s,a)}}var flushCalls=(o,...a)=>flush(o,s=>s(...a)),isSSR$1=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),createStringInterpolator,to,colors=null,skipAnimation=!1,willAdvance=noop$4,assign$1=o=>{o.to&&(to=o.to),o.now&&(raf.now=o.now),o.colors!==void 0&&(colors=o.colors),o.skipAnimation!=null&&(skipAnimation=o.skipAnimation),o.createStringInterpolator&&(createStringInterpolator=o.createStringInterpolator),o.requestAnimationFrame&&raf.use(o.requestAnimationFrame),o.batchedUpdates&&(raf.batchedUpdates=o.batchedUpdates),o.willAdvance&&(willAdvance=o.willAdvance),o.frameLoop&&(raf.frameLoop=o.frameLoop)},startQueue=new Set,currentFrame=[],prevFrame=[],priority=0,frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(o){priority>o.priority?(startQueue.add(o),raf.onStart(flushStartQueue)):(startSafely(o),raf(advance))},advance,sort(o){if(priority)raf.onFrame(()=>frameLoop.sort(o));else{const a=currentFrame.indexOf(o);~a&&(currentFrame.splice(a,1),startUnsafely(o))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(o){currentFrame.includes(o)||startUnsafely(o)}function startUnsafely(o){currentFrame.splice(findIndex(currentFrame,a=>a.priority>o.priority),0,o)}function advance(o){const a=prevFrame;for(let s=0;s0}function findIndex(o,a){const s=o.findIndex(a);return s<0?o.length:s}var clamp$1=(o,a,s)=>Math.min(Math.max(s,o),a),colors2={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call$1(...o){return"\\(\\s*("+o.join(")\\s*,\\s*(")+")\\s*\\)"}var rgb=new RegExp("rgb"+call$1(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call$1(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call$1(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call$1(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(o){let a;return typeof o=="number"?o>>>0===o&&o>=0&&o<=4294967295?o:null:(a=hex6.exec(o))?parseInt(a[1]+"ff",16)>>>0:colors&&colors[o]!==void 0?colors[o]:(a=rgb.exec(o))?(parse255(a[1])<<24|parse255(a[2])<<16|parse255(a[3])<<8|255)>>>0:(a=rgba.exec(o))?(parse255(a[1])<<24|parse255(a[2])<<16|parse255(a[3])<<8|parse1(a[4]))>>>0:(a=hex3.exec(o))?parseInt(a[1]+a[1]+a[2]+a[2]+a[3]+a[3]+"ff",16)>>>0:(a=hex8.exec(o))?parseInt(a[1],16)>>>0:(a=hex4.exec(o))?parseInt(a[1]+a[1]+a[2]+a[2]+a[3]+a[3]+a[4]+a[4],16)>>>0:(a=hsl.exec(o))?(hslToRgb(parse360(a[1]),parsePercentage(a[2]),parsePercentage(a[3]))|255)>>>0:(a=hsla.exec(o))?(hslToRgb(parse360(a[1]),parsePercentage(a[2]),parsePercentage(a[3]))|parse1(a[4]))>>>0:null}function hue2rgb(o,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?o+(a-o)*6*s:s<1/2?a:s<2/3?o+(a-o)*(2/3-s)*6:o}function hslToRgb(o,a,s){const c=s<.5?s*(1+a):s+a-s*a,f=2*s-c,d=hue2rgb(f,c,o+1/3),y=hue2rgb(f,c,o),_=hue2rgb(f,c,o-1/3);return Math.round(d*255)<<24|Math.round(y*255)<<16|Math.round(_*255)<<8}function parse255(o){const a=parseInt(o,10);return a<0?0:a>255?255:a}function parse360(o){return(parseFloat(o)%360+360)%360/360}function parse1(o){const a=parseFloat(o);return a<0?0:a>1?255:Math.round(a*255)}function parsePercentage(o){const a=parseFloat(o);return a<0?0:a>100?1:a/100}function colorToRgba(o){let a=normalizeColor(o);if(a===null)return o;a=a||0;const s=(a&4278190080)>>>24,c=(a&16711680)>>>16,f=(a&65280)>>>8,d=(a&255)/255;return`rgba(${s}, ${c}, ${f}, ${d})`}var createInterpolator=(o,a,s)=>{if(is$1.fun(o))return o;if(is$1.arr(o))return createInterpolator({range:o,output:a,extrapolate:s});if(is$1.str(o.output[0]))return createStringInterpolator(o);const c=o,f=c.output,d=c.range||[0,1],y=c.extrapolateLeft||c.extrapolate||"extend",_=c.extrapolateRight||c.extrapolate||"extend",S=c.easing||(b=>b);return b=>{const $=findRange(b,d);return interpolate(b,d[$],d[$+1],f[$],f[$+1],S,y,_,c.map)}};function interpolate(o,a,s,c,f,d,y,_,S){let b=S?S(o):o;if(bs){if(_==="identity")return b;_==="clamp"&&(b=s)}return c===f?c:a===s?o<=a?c:f:(a===-1/0?b=-b:s===1/0?b=b-a:b=(b-a)/(s-a),b=d(b),c===-1/0?b=-b:f===1/0?b=b+c:b=b*(f-c)+c,b)}function findRange(o,a){for(var s=1;s=o);++s);return s-1}var steps=(o,a="end")=>s=>{s=a==="end"?Math.min(s,.999):Math.max(s,.001);const c=s*o,f=a==="end"?Math.floor(c):Math.ceil(c);return clamp$1(0,1,f/o)},c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=o=>o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375,easings={linear:o=>o,easeInQuad:o=>o*o,easeOutQuad:o=>1-(1-o)*(1-o),easeInOutQuad:o=>o<.5?2*o*o:1-Math.pow(-2*o+2,2)/2,easeInCubic:o=>o*o*o,easeOutCubic:o=>1-Math.pow(1-o,3),easeInOutCubic:o=>o<.5?4*o*o*o:1-Math.pow(-2*o+2,3)/2,easeInQuart:o=>o*o*o*o,easeOutQuart:o=>1-Math.pow(1-o,4),easeInOutQuart:o=>o<.5?8*o*o*o*o:1-Math.pow(-2*o+2,4)/2,easeInQuint:o=>o*o*o*o*o,easeOutQuint:o=>1-Math.pow(1-o,5),easeInOutQuint:o=>o<.5?16*o*o*o*o*o:1-Math.pow(-2*o+2,5)/2,easeInSine:o=>1-Math.cos(o*Math.PI/2),easeOutSine:o=>Math.sin(o*Math.PI/2),easeInOutSine:o=>-(Math.cos(Math.PI*o)-1)/2,easeInExpo:o=>o===0?0:Math.pow(2,10*o-10),easeOutExpo:o=>o===1?1:1-Math.pow(2,-10*o),easeInOutExpo:o=>o===0?0:o===1?1:o<.5?Math.pow(2,20*o-10)/2:(2-Math.pow(2,-20*o+10))/2,easeInCirc:o=>1-Math.sqrt(1-Math.pow(o,2)),easeOutCirc:o=>Math.sqrt(1-Math.pow(o-1,2)),easeInOutCirc:o=>o<.5?(1-Math.sqrt(1-Math.pow(2*o,2)))/2:(Math.sqrt(1-Math.pow(-2*o+2,2))+1)/2,easeInBack:o=>c3*o*o*o-c1*o*o,easeOutBack:o=>1+c3*Math.pow(o-1,3)+c1*Math.pow(o-1,2),easeInOutBack:o=>o<.5?Math.pow(2*o,2)*((c2+1)*2*o-c2)/2:(Math.pow(2*o-2,2)*((c2+1)*(o*2-2)+c2)+2)/2,easeInElastic:o=>o===0?0:o===1?1:-Math.pow(2,10*o-10)*Math.sin((o*10-10.75)*c4),easeOutElastic:o=>o===0?0:o===1?1:Math.pow(2,-10*o)*Math.sin((o*10-.75)*c4)+1,easeInOutElastic:o=>o===0?0:o===1?1:o<.5?-(Math.pow(2,20*o-10)*Math.sin((20*o-11.125)*c5))/2:Math.pow(2,-20*o+10)*Math.sin((20*o-11.125)*c5)/2+1,easeInBounce:o=>1-bounceOut(1-o),easeOutBounce:bounceOut,easeInOutBounce:o=>o<.5?(1-bounceOut(1-2*o))/2:(1+bounceOut(2*o-1))/2,steps},$get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=o=>!!(o&&o[$get]),getFluidValue=o=>o&&o[$get]?o[$get]():o,getFluidObservers=o=>o[$observers]||null;function callFluidObserver(o,a){o.eventObserved?o.eventObserved(a):o(a)}function callFluidObservers(o,a){const s=o[$observers];s&&s.forEach(c=>{callFluidObserver(c,a)})}var FluidValue=class{constructor(o){if(!o&&!(o=this.get))throw Error("Unknown getter");setFluidGetter(this,o)}},setFluidGetter=(o,a)=>setHidden(o,$get,a);function addFluidObserver(o,a){if(o[$get]){let s=o[$observers];s||setHidden(o,$observers,s=new Set),s.has(a)||(s.add(a),o.observerAdded&&o.observerAdded(s.size,a))}return a}function removeFluidObserver(o,a){const s=o[$observers];if(s&&s.has(a)){const c=s.size-1;c?s.delete(a):o[$observers]=null,o.observerRemoved&&o.observerRemoved(c,a)}}var setHidden=(o,a,s)=>Object.defineProperty(o,a,{value:s,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=o=>{const[a,s]=parseCSSVariable(o);if(!a||isSSR$1())return o;const c=window.getComputedStyle(document.documentElement).getPropertyValue(a);if(c)return c.trim();if(s&&s.startsWith("--")){const f=window.getComputedStyle(document.documentElement).getPropertyValue(s);return f||o}else{if(s&&cssVariableRegex.test(s))return variableToRgba(s);if(s)return s}return o},parseCSSVariable=o=>{const a=cssVariableRegex.exec(o);if(!a)return[,];const[,s,c]=a;return[s,c]},namedColorRegex,rgbaRound=(o,a,s,c,f)=>`rgba(${Math.round(a)}, ${Math.round(s)}, ${Math.round(c)}, ${f})`,createStringInterpolator2=o=>{namedColorRegex||(namedColorRegex=colors?new RegExp(`(${Object.keys(colors).join("|")})(?!\\w)`,"g"):/^\b$/);const a=o.output.map(d=>getFluidValue(d).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba)),s=a.map(d=>d.match(numberRegex).map(Number)),f=s[0].map((d,y)=>s.map(_=>{if(!(y in _))throw Error('The arity of each "output" value must be equal');return _[y]})).map(d=>createInterpolator($e(se({},o),{output:d})));return d=>{var S;const y=!unitRegex.test(a[0])&&((S=a.find(b=>unitRegex.test(b)))==null?void 0:S.replace(numberRegex,""));let _=0;return a[0].replace(numberRegex,()=>`${f[_++](d)}${y||""}`).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=o=>{const a=o;let s=!1;if(typeof a!="function")throw new TypeError(`${prefix}once requires a function parameter`);return(...c)=>{s||(a(...c),s=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString(o){return is$1.str(o)&&(o[0]=="#"||/\d/.test(o)||!isSSR$1()&&cssVariableRegex.test(o)||o in(colors||{}))}var useIsomorphicLayoutEffect$1=isSSR$1()?reactExports.useEffect:reactExports.useLayoutEffect,useIsMounted=()=>{const o=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>(o.current=!0,()=>{o.current=!1}),[]),o};function useForceUpdate(){const o=reactExports.useState()[1],a=useIsMounted();return()=>{a.current&&o(Math.random())}}function useMemoOne(o,a){const[s]=reactExports.useState(()=>({inputs:a,result:o()})),c=reactExports.useRef(),f=c.current;let d=f;return d?a&&d.inputs&&areInputsEqual(a,d.inputs)||(d={inputs:a,result:o()}):d=s,reactExports.useEffect(()=>{c.current=d,f==s&&(s.inputs=s.result=void 0)},[d]),d.result}function areInputsEqual(o,a){if(o.length!==a.length)return!1;for(let s=0;sreactExports.useEffect(o,emptyDeps),emptyDeps=[];function usePrev(o){const a=reactExports.useRef();return reactExports.useEffect(()=>{a.current=o}),a.current}var $node=Symbol.for("Animated:node"),isAnimated=o=>!!o&&o[$node]===o,getAnimated=o=>o&&o[$node],setAnimated=(o,a)=>defineHidden(o,$node,a),getPayload=o=>o&&o[$node]&&o[$node].getPayload(),Animated=class{constructor(){setAnimated(this,this)}getPayload(){return this.payload||[]}},AnimatedValue=class extends Animated{constructor(o){super(),this._value=o,this.done=!0,this.durationProgress=0,is$1.num(this._value)&&(this.lastPosition=this._value)}static create(o){return new AnimatedValue(o)}getPayload(){return[this]}getValue(){return this._value}setValue(o,a){return is$1.num(o)&&(this.lastPosition=o,a&&(o=Math.round(o/a)*a,this.done&&(this.lastPosition=o))),this._value===o?!1:(this._value=o,!0)}reset(){const{done:o}=this;this.done=!1,is$1.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,o&&(this.lastVelocity=null),this.v0=null)}},AnimatedString=class extends AnimatedValue{constructor(o){super(0),this._string=null,this._toString=createInterpolator({output:[o,o]})}static create(o){return new AnimatedString(o)}getValue(){const o=this._string;return o==null?this._string=this._toString(this._value):o}setValue(o){if(is$1.str(o)){if(o==this._string)return!1;this._string=o,this._value=1}else if(super.setValue(o))this._string=null;else return!1;return!0}reset(o){o&&(this._toString=createInterpolator({output:[this.getValue(),o]})),this._value=0,super.reset()}},TreeContext={dependencies:null},AnimatedObject=class extends Animated{constructor(o){super(),this.source=o,this.setValue(o)}getValue(o){const a={};return eachProp(this.source,(s,c)=>{isAnimated(s)?a[c]=s.getValue(o):hasFluidValue(s)?a[c]=getFluidValue(s):o||(a[c]=s)}),a}setValue(o){this.source=o,this.payload=this._makePayload(o)}reset(){this.payload&&each$1(this.payload,o=>o.reset())}_makePayload(o){if(o){const a=new Set;return eachProp(o,this._addToPayload,a),Array.from(a)}}_addToPayload(o){TreeContext.dependencies&&hasFluidValue(o)&&TreeContext.dependencies.add(o);const a=getPayload(o);a&&each$1(a,s=>this.add(s))}},AnimatedArray=class extends AnimatedObject{constructor(o){super(o)}static create(o){return new AnimatedArray(o)}getValue(){return this.source.map(o=>o.getValue())}setValue(o){const a=this.getPayload();return o.length==a.length?a.map((s,c)=>s.setValue(o[c])).some(Boolean):(super.setValue(o.map(makeAnimated)),!0)}};function makeAnimated(o){return(isAnimatedString(o)?AnimatedString:AnimatedValue).create(o)}function getAnimatedType(o){const a=getAnimated(o);return a?a.constructor:is$1.arr(o)?AnimatedArray:isAnimatedString(o)?AnimatedString:AnimatedValue}var withAnimated=(o,a)=>{const s=!is$1.fun(o)||o.prototype&&o.prototype.isReactComponent;return reactExports.forwardRef((c,f)=>{const d=reactExports.useRef(null),y=s&&reactExports.useCallback(O=>{d.current=updateRef(f,O)},[f]),[_,S]=getAnimatedState(c,a),b=useForceUpdate(),$=()=>{const O=d.current;if(s&&!O)return;(O?a.applyAnimatedValues(O,_.getValue(!0)):!1)===!1&&b()},P=new PropsObserver($,S),T=reactExports.useRef();useIsomorphicLayoutEffect$1(()=>(T.current=P,each$1(S,O=>addFluidObserver(O,P)),()=>{T.current&&(each$1(T.current.deps,O=>removeFluidObserver(O,T.current)),raf.cancel(T.current.update))})),reactExports.useEffect($,[]),useOnce(()=>()=>{const O=T.current;each$1(O.deps,A=>removeFluidObserver(A,O))});const C=a.getComponentProps(_.getValue());return reactExports.createElement(o,$e(se({},C),{ref:y}))})},PropsObserver=class{constructor(o,a){this.update=o,this.deps=a}eventObserved(o){o.type=="change"&&raf.write(this.update)}};function getAnimatedState(o,a){const s=new Set;return TreeContext.dependencies=s,o.style&&(o=$e(se({},o),{style:a.createAnimatedStyle(o.style)})),o=new AnimatedObject(o),TreeContext.dependencies=null,[o,s]}function updateRef(o,a){return o&&(is$1.fun(o)?o(a):o.current=a),a}var cacheKey=Symbol.for("AnimatedComponent"),createHost=(o,{applyAnimatedValues:a=()=>!1,createAnimatedStyle:s=f=>new AnimatedObject(f),getComponentProps:c=f=>f}={})=>{const f={applyAnimatedValues:a,createAnimatedStyle:s,getComponentProps:c},d=y=>{const _=getDisplayName(y)||"Anonymous";return is$1.str(y)?y=d[y]||(d[y]=withAnimated(y,f)):y=y[cacheKey]||(y[cacheKey]=withAnimated(y,f)),y.displayName=`Animated(${_})`,y};return eachProp(o,(y,_)=>{is$1.arr(o)&&(_=getDisplayName(y)),d[_]=d(y)}),{animated:d}},getDisplayName=o=>is$1.str(o)?o:o&&is$1.str(o.displayName)?o.displayName:is$1.fun(o)&&o.name||null;function callProp(o,...a){return is$1.fun(o)?o(...a):o}var matchProp=(o,a)=>o===!0||!!(a&&o&&(is$1.fun(o)?o(a):toArray$1(o).includes(a))),resolveProp=(o,a)=>is$1.obj(o)?a&&o[a]:o,getDefaultProp=(o,a)=>o.default===!0?o[a]:o.default?o.default[a]:void 0,noopTransform=o=>o,getDefaultProps=(o,a=noopTransform)=>{let s=DEFAULT_PROPS;o.default&&o.default!==!0&&(o=o.default,s=Object.keys(o));const c={};for(const f of s){const d=a(o[f],f);is$1.und(d)||(c[f]=d)}return c},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function getForwardProps(o){const a={};let s=0;if(eachProp(o,(c,f)=>{RESERVED_PROPS[f]||(a[f]=c,s++)}),s)return a}function inferTo(o){const a=getForwardProps(o);if(a){const s={to:a};return eachProp(o,(c,f)=>f in a||(s[f]=c)),s}return se({},o)}function computeGoal(o){return o=getFluidValue(o),is$1.arr(o)?o.map(computeGoal):isAnimatedString(o)?globals_exports.createStringInterpolator({range:[0,1],output:[o,o]})(1):o}function hasProps(o){for(const a in o)return!0;return!1}function isAsyncTo(o){return is$1.fun(o)||is$1.arr(o)&&is$1.obj(o[0])}function detachRefs(o,a){var s;(s=o.ref)==null||s.delete(o),a==null||a.delete(o)}function replaceRef(o,a){var s;a&&o.ref!==a&&((s=o.ref)==null||s.delete(o),a.add(o),o.ref=a)}var config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},defaults$4=$e(se({},config.default),{mass:1,damping:1,easing:easings.linear,clamp:!1}),AnimationConfig=class{constructor(){this.velocity=0,Object.assign(this,defaults$4)}};function mergeConfig$1(o,a,s){s&&(s=se({},s),sanitizeConfig(s,a),a=se(se({},s),a)),sanitizeConfig(o,a),Object.assign(o,a);for(const y in defaults$4)o[y]==null&&(o[y]=defaults$4[y]);let{frequency:c,damping:f}=o;const{mass:d}=o;return is$1.und(c)||(c<.01&&(c=.01),f<0&&(f=0),o.tension=Math.pow(2*Math.PI/c,2)*d,o.friction=4*Math.PI*f*d/c),o}function sanitizeConfig(o,a){if(!is$1.und(a.decay))o.duration=void 0;else{const s=!is$1.und(a.tension)||!is$1.und(a.friction);(s||!is$1.und(a.frequency)||!is$1.und(a.damping)||!is$1.und(a.mass))&&(o.duration=void 0,o.decay=void 0),s&&(o.frequency=void 0)}}var emptyArray=[],Animation$2=class{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.config=new AnimationConfig,this.immediate=!1}};function scheduleProps(o,{key:a,props:s,defaultProps:c,state:f,actions:d}){return new Promise((y,_)=>{var O;let S,b,$=matchProp((O=s.cancel)!=null?O:c==null?void 0:c.cancel,a);if($)C();else{is$1.und(s.pause)||(f.paused=matchProp(s.pause,a));let A=c==null?void 0:c.pause;A!==!0&&(A=f.paused||matchProp(A,a)),S=callProp(s.delay||0,a),A?(f.resumeQueue.add(T),d.pause()):(d.resume(),T())}function P(){f.resumeQueue.add(T),f.timeouts.delete(b),b.cancel(),S=b.time-raf.now()}function T(){S>0&&!globals_exports.skipAnimation?(f.delayed=!0,b=raf.setTimeout(C,S),f.pauseQueue.add(P),f.timeouts.add(b)):C()}function C(){f.delayed&&(f.delayed=!1),f.pauseQueue.delete(P),f.timeouts.delete(b),o<=(f.cancelId||0)&&($=!0);try{d.start($e(se({},s),{callId:o,cancel:$}),y)}catch(A){_(A)}}})}var getCombinedResult=(o,a)=>a.length==1?a[0]:a.some(s=>s.cancelled)?getCancelledResult(o.get()):a.every(s=>s.noop)?getNoopResult(o.get()):getFinishedResult(o.get(),a.every(s=>s.finished)),getNoopResult=o=>({value:o,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(o,a,s=!1)=>({value:o,finished:a,cancelled:s}),getCancelledResult=o=>({value:o,cancelled:!0,finished:!1});function runAsync(o,a,s,c){const{callId:f,parentId:d,onRest:y}=a,{asyncTo:_,promise:S}=s;return!d&&o===_&&!a.reset?S:s.promise=(()=>xt(this,null,function*(){s.asyncId=f,s.asyncTo=o;const b=getDefaultProps(a,(F,j)=>j==="onRest"?void 0:F);let $,P;const T=new Promise((F,j)=>($=F,P=j)),C=F=>{const j=f<=(s.cancelId||0)&&getCancelledResult(c)||f!==s.asyncId&&getFinishedResult(c,!1);if(j)throw F.result=j,P(F),F},O=(F,j)=>{const L=new BailSignal,M=new SkipAnimationSignal;return(()=>xt(this,null,function*(){if(globals_exports.skipAnimation)throw stopAsync(s),M.result=getFinishedResult(c,!1),P(M),M;C(L);const I=is$1.obj(F)?se({},F):$e(se({},j),{to:F});I.parentId=f,eachProp(b,(z,H)=>{is$1.und(I[H])&&(I[H]=z)});const U=yield c.start(I);return C(L),s.paused&&(yield new Promise(z=>{s.resumeQueue.add(z)})),U}))()};let A;if(globals_exports.skipAnimation)return stopAsync(s),getFinishedResult(c,!1);try{let F;is$1.arr(o)?F=(j=>xt(this,null,function*(){for(const L of j)yield O(L)}))(o):F=Promise.resolve(o(O,c.stop.bind(c))),yield Promise.all([F.then($),T]),A=getFinishedResult(c.get(),!0,!1)}catch(F){if(F instanceof BailSignal)A=F.result;else if(F instanceof SkipAnimationSignal)A=F.result;else throw F}finally{f==s.asyncId&&(s.asyncId=d,s.asyncTo=d?_:void 0,s.promise=d?S:void 0)}return is$1.fun(y)&&raf.batchedUpdates(()=>{y(A,c,c.item)}),A}))()}function stopAsync(o,a){flush(o.timeouts,s=>s.cancel()),o.pauseQueue.clear(),o.resumeQueue.clear(),o.asyncId=o.asyncTo=o.promise=void 0,a&&(o.cancelId=a)}var BailSignal=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},SkipAnimationSignal=class extends Error{constructor(){super("SkipAnimationSignal")}},isFrameValue=o=>o instanceof FrameValue,nextId=1,FrameValue=class extends FluidValue{constructor(){super(...arguments),this.id=nextId++,this._priority=0}get priority(){return this._priority}set priority(o){this._priority!=o&&(this._priority=o,this._onPriorityChange(o))}get(){const o=getAnimated(this);return o&&o.getValue()}to(...o){return globals_exports.to(this,o)}interpolate(...o){return deprecateInterpolate(),globals_exports.to(this,o)}toJSON(){return this.get()}observerAdded(o){o==1&&this._attach()}observerRemoved(o){o==0&&this._detach()}_attach(){}_detach(){}_onChange(o,a=!1){callFluidObservers(this,{type:"change",parent:this,value:o,idle:a})}_onPriorityChange(o){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:o})}},$P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=o=>(o[$P]&HAS_ANIMATED)>0,isAnimating=o=>(o[$P]&IS_ANIMATING)>0,isPaused=o=>(o[$P]&IS_PAUSED)>0,setActiveBit=(o,a)=>a?o[$P]|=IS_ANIMATING|HAS_ANIMATED:o[$P]&=~IS_ANIMATING,setPausedBit=(o,a)=>a?o[$P]|=IS_PAUSED:o[$P]&=~IS_PAUSED,SpringValue=class extends FrameValue{constructor(o,a){if(super(),this.animation=new Animation$2,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!is$1.und(o)||!is$1.und(a)){const s=is$1.obj(o)?se({},o):$e(se({},a),{from:o});is$1.und(s.default)&&(s.default=!0),this.start(s)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const o=getAnimated(this);return o instanceof AnimatedValue?o.lastVelocity||0:o.getPayload().map(a=>a.lastVelocity||0)}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(o){let a=!0,s=!1;const c=this.animation;let{toValues:f}=c;const{config:d}=c,y=getPayload(c.to);!y&&hasFluidValue(c.to)&&(f=toArray$1(getFluidValue(c.to))),c.values.forEach((b,$)=>{if(b.done)return;const P=b.constructor==AnimatedString?1:y?y[$].lastPosition:f[$];let T=c.immediate,C=P;if(!T){if(C=b.lastPosition,d.tension<=0){b.done=!0;return}let O=b.elapsedTime+=o;const A=c.fromValues[$],F=b.v0!=null?b.v0:b.v0=is$1.arr(d.velocity)?d.velocity[$]:d.velocity;let j;const L=d.precision||(A==P?.005:Math.min(1,Math.abs(P-A)*.001));if(is$1.und(d.duration))if(d.decay){const M=d.decay===!0?.998:d.decay,I=Math.exp(-(1-M)*O);C=A+F/(1-M)*(1-I),T=Math.abs(b.lastPosition-C)<=L,j=F*I}else{j=b.lastVelocity==null?F:b.lastVelocity;const M=d.restVelocity||L/10,I=d.clamp?0:d.bounce,U=!is$1.und(I),z=A==P?b.v0>0:AM,!(!H&&(T=Math.abs(P-C)<=L,T)));++K){U&&(G=C==P||C>P==z,G&&(j=-j*I,C=P));const ie=-d.tension*1e-6*(C-P),ee=-d.friction*.001*j,de=(ie+ee)/d.mass;j=j+de*X,C=C+j*X}}else{let M=1;d.duration>0&&(this._memoizedDuration!==d.duration&&(this._memoizedDuration=d.duration,b.durationProgress>0&&(b.elapsedTime=d.duration*b.durationProgress,O=b.elapsedTime+=o)),M=(d.progress||0)+O/this._memoizedDuration,M=M>1?1:M<0?0:M,b.durationProgress=M),C=A+d.easing(M)*(P-A),j=(C-b.lastPosition)/o,T=M==1}b.lastVelocity=j,Number.isNaN(C)&&(T=!0)}y&&!y[$].done&&(T=!1),T?b.done=!0:a=!1,b.setValue(C,d.round)&&(s=!0)});const _=getAnimated(this),S=_.getValue();if(a){const b=getFluidValue(c.to);(S!==b||s)&&!d.decay?(_.setValue(b),this._onChange(b)):s&&d.decay&&this._onChange(S),this._stop()}else s&&this._onChange(S)}set(o){return raf.batchedUpdates(()=>{this._stop(),this._focus(o),this._set(o)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:o,config:a}=this.animation;raf.batchedUpdates(()=>{this._onStart(),a.decay||this._set(o,!1),this._stop()})}return this}update(o){return(this.queue||(this.queue=[])).push(o),this}start(o,a){let s;return is$1.und(o)?(s=this.queue||[],this.queue=[]):s=[is$1.obj(o)?o:$e(se({},a),{to:o})],Promise.all(s.map(c=>this._update(c))).then(c=>getCombinedResult(this,c))}stop(o){const{to:a}=this.animation;return this._focus(this.get()),stopAsync(this._state,o&&this._lastCallId),raf.batchedUpdates(()=>this._stop(a,o)),this}reset(){this._update({reset:!0})}eventObserved(o){o.type=="change"?this._start():o.type=="priority"&&(this.priority=o.priority+1)}_prepareNode(o){const a=this.key||"";let{to:s,from:c}=o;s=is$1.obj(s)?s[a]:s,(s==null||isAsyncTo(s))&&(s=void 0),c=is$1.obj(c)?c[a]:c,c==null&&(c=void 0);const f={to:s,from:c};return hasAnimated(this)||(o.reverse&&([s,c]=[c,s]),c=getFluidValue(c),is$1.und(c)?getAnimated(this)||this._set(s):this._set(c)),f}_update(s,a){var o=er(s,[]);const{key:c,defaultProps:f}=this;o.default&&Object.assign(f,getDefaultProps(o,(_,S)=>/^on/.test(S)?resolveProp(_,c):_)),mergeActiveFn(this,o,"onProps"),sendEvent(this,"onProps",o,this);const d=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const y=this._state;return scheduleProps(++this._lastCallId,{key:c,props:o,defaultProps:f,state:y,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(y.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(y.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,d)}}).then(_=>{if(o.loop&&_.finished&&!(a&&_.noop)){const S=createLoopUpdate(o);if(S)return this._update(S,!0)}return _})}_merge(o,a,s){if(a.cancel)return this.stop(!0),s(getCancelledResult(this));const c=!is$1.und(o.to),f=!is$1.und(o.from);if(c||f)if(a.callId>this._lastToId)this._lastToId=a.callId;else return s(getCancelledResult(this));const{key:d,defaultProps:y,animation:_}=this,{to:S,from:b}=_;let{to:$=S,from:P=b}=o;f&&!c&&(!a.default||is$1.und($))&&($=P),a.reverse&&([$,P]=[P,$]);const T=!isEqual$1(P,b);T&&(_.from=P),P=getFluidValue(P);const C=!isEqual$1($,S);C&&this._focus($);const O=isAsyncTo(a.to),{config:A}=_,{decay:F,velocity:j}=A;(c||f)&&(A.velocity=0),a.config&&!O&&mergeConfig$1(A,callProp(a.config,d),a.config!==y.config?callProp(y.config,d):void 0);let L=getAnimated(this);if(!L||is$1.und($))return s(getFinishedResult(this,!0));const M=is$1.und(a.reset)?f&&!a.default:!is$1.und(P)&&matchProp(a.reset,d),I=M?P:this.get(),U=computeGoal($),z=is$1.num(U)||is$1.arr(U)||isAnimatedString(U),H=!O&&(!z||matchProp(y.immediate||a.immediate,d));if(C){const K=getAnimatedType($);if(K!==L.constructor)if(H)L=this._set(U);else throw Error(`Cannot animate between ${L.constructor.name} and ${K.name}, as the "to" prop suggests`)}const G=L.constructor;let X=hasFluidValue($),W=!1;if(!X){const K=M||!hasAnimated(this)&&T;(C||K)&&(W=isEqual$1(computeGoal(I),U),X=!W),(!isEqual$1(_.immediate,H)&&!H||!isEqual$1(A.decay,F)||!isEqual$1(A.velocity,j))&&(X=!0)}if(W&&isAnimating(this)&&(_.changed&&!M?X=!0:X||this._stop(S)),!O&&((X||hasFluidValue(S))&&(_.values=L.getPayload(),_.toValues=hasFluidValue($)?null:G==AnimatedString?[1]:toArray$1(U)),_.immediate!=H&&(_.immediate=H,!H&&!M&&this._set(S)),X)){const{onRest:K}=_;each$1(ACTIVE_EVENTS,ee=>mergeActiveFn(this,a,ee));const ie=getFinishedResult(this,checkFinished(this,S));flushCalls(this._pendingCalls,ie),this._pendingCalls.add(s),_.changed&&raf.batchedUpdates(()=>{var ee;_.changed=!M,K==null||K(ie,this),M?callProp(y.onRest,ie):(ee=_.onStart)==null||ee.call(_,ie,this)})}M&&this._set(I),O?s(runAsync(a.to,a,this._state,this)):X?this._start():isAnimating(this)&&!C?this._pendingCalls.add(s):s(getNoopResult(I))}_focus(o){const a=this.animation;o!==a.to&&(getFluidObservers(this)&&this._detach(),a.to=o,getFluidObservers(this)&&this._attach())}_attach(){let o=0;const{to:a}=this.animation;hasFluidValue(a)&&(addFluidObserver(a,this),isFrameValue(a)&&(o=a.priority+1)),this.priority=o}_detach(){const{to:o}=this.animation;hasFluidValue(o)&&removeFluidObserver(o,this)}_set(o,a=!0){const s=getFluidValue(o);if(!is$1.und(s)){const c=getAnimated(this);if(!c||!isEqual$1(s,c.getValue())){const f=getAnimatedType(s);!c||c.constructor!=f?setAnimated(this,f.create(s)):c.setValue(s),c&&raf.batchedUpdates(()=>{this._onChange(s,a)})}}return getAnimated(this)}_onStart(){const o=this.animation;o.changed||(o.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,o.to)),this))}_onChange(o,a){a||(this._onStart(),callProp(this.animation.onChange,o,this)),callProp(this.defaultProps.onChange,o,this),super._onChange(o,a)}_start(){const o=this.animation;getAnimated(this).reset(getFluidValue(o.to)),o.immediate||(o.fromValues=o.values.map(a=>a.lastPosition)),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals_exports.skipAnimation?this.finish():frameLoop.start(this)}_stop(o,a){if(isAnimating(this)){setActiveBit(this,!1);const s=this.animation;each$1(s.values,f=>{f.done=!0}),s.toValues&&(s.onChange=s.onPause=s.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const c=a?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,o!=null?o:s.to));flushCalls(this._pendingCalls,c),s.changed&&(s.changed=!1,sendEvent(this,"onRest",c,this))}}};function checkFinished(o,a){const s=computeGoal(a),c=computeGoal(o.get());return isEqual$1(c,s)}function createLoopUpdate(o,a=o.loop,s=o.to){const c=callProp(a);if(c){const f=c!==!0&&inferTo(c),d=(f||o).reverse,y=!f||f.reset;return createUpdate(se($e(se({},o),{loop:a,default:!1,pause:void 0,to:!d||isAsyncTo(s)?s:void 0,from:y?o.from:void 0,reset:y}),f))}}function createUpdate(o){const{to:a,from:s}=o=inferTo(o),c=new Set;return is$1.obj(a)&&findDefined(a,c),is$1.obj(s)&&findDefined(s,c),o.keys=c.size?Array.from(c):null,o}function declareUpdate(o){const a=createUpdate(o);return is$1.und(a.default)&&(a.default=getDefaultProps(a)),a}function findDefined(o,a){eachProp(o,(s,c)=>s!=null&&a.add(c))}var ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(o,a,s){o.animation[s]=a[s]!==getDefaultProp(a,s)?resolveProp(a[s],o.key):void 0}function sendEvent(o,a,...s){var c,f,d,y;(f=(c=o.animation)[a])==null||f.call(c,...s),(y=(d=o.defaultProps)[a])==null||y.call(d,...s)}var BATCHED_EVENTS=["onStart","onChange","onRest"],nextId2=1,Controller=class{constructor(o,a){this.id=nextId2++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),a&&(this._flush=a),o&&this.start(se({default:!0},o))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(o=>o.idle&&!o.isDelayed&&!o.isPaused)}get item(){return this._item}set item(o){this._item=o}get(){const o={};return this.each((a,s)=>o[s]=a.get()),o}set(o){for(const a in o){const s=o[a];is$1.und(s)||this.springs[a].set(s)}}update(o){return o&&this.queue.push(createUpdate(o)),this}start(o){let{queue:a}=this;return o?a=toArray$1(o).map(createUpdate):this.queue=[],this._flush?this._flush(this,a):(prepareKeys(this,a),flushUpdateQueue(this,a))}stop(o,a){if(o!==!!o&&(a=o),a){const s=this.springs;each$1(toArray$1(a),c=>s[c].stop(!!o))}else stopAsync(this._state,this._lastAsyncId),this.each(s=>s.stop(!!o));return this}pause(o){if(is$1.und(o))this.start({pause:!0});else{const a=this.springs;each$1(toArray$1(o),s=>a[s].pause())}return this}resume(o){if(is$1.und(o))this.start({pause:!1});else{const a=this.springs;each$1(toArray$1(o),s=>a[s].resume())}return this}each(o){eachProp(this.springs,o)}_onFrame(){const{onStart:o,onChange:a,onRest:s}=this._events,c=this._active.size>0,f=this._changed.size>0;(c&&!this._started||f&&!this._started)&&(this._started=!0,flush(o,([_,S])=>{S.value=this.get(),_(S,this,this._item)}));const d=!c&&this._started,y=f||d&&s.size?this.get():null;f&&a.size&&flush(a,([_,S])=>{S.value=y,_(S,this,this._item)}),d&&(this._started=!1,flush(s,([_,S])=>{S.value=y,_(S,this,this._item)}))}eventObserved(o){if(o.type=="change")this._changed.add(o.parent),o.idle||this._active.add(o.parent);else if(o.type=="idle")this._active.delete(o.parent);else return;raf.onFrame(this._onFrame)}};function flushUpdateQueue(o,a){return Promise.all(a.map(s=>flushUpdate(o,s))).then(s=>getCombinedResult(o,s))}function flushUpdate(o,a,s){return xt(this,null,function*(){const{keys:c,to:f,from:d,loop:y,onRest:_,onResolve:S}=a,b=is$1.obj(a.default)&&a.default;y&&(a.loop=!1),f===!1&&(a.to=null),d===!1&&(a.from=null);const $=is$1.arr(f)||is$1.fun(f)?f:void 0;$?(a.to=void 0,a.onRest=void 0,b&&(b.onRest=void 0)):each$1(BATCHED_EVENTS,A=>{const F=a[A];if(is$1.fun(F)){const j=o._events[A];a[A]=({finished:L,cancelled:M})=>{const I=j.get(F);I?(L||(I.finished=!1),M&&(I.cancelled=!0)):j.set(F,{value:null,finished:L||!1,cancelled:M||!1})},b&&(b[A]=a[A])}});const P=o._state;a.pause===!P.paused?(P.paused=a.pause,flushCalls(a.pause?P.pauseQueue:P.resumeQueue)):P.paused&&(a.pause=!0);const T=(c||Object.keys(o.springs)).map(A=>o.springs[A].start(a)),C=a.cancel===!0||getDefaultProp(a,"cancel")===!0;($||C&&P.asyncId)&&T.push(scheduleProps(++o._lastAsyncId,{props:a,state:P,actions:{pause:noop$4,resume:noop$4,start(A,F){C?(stopAsync(P,o._lastAsyncId),F(getCancelledResult(o))):(A.onRest=_,F(runAsync($,A,P,o)))}}})),P.paused&&(yield new Promise(A=>{P.resumeQueue.add(A)}));const O=getCombinedResult(o,yield Promise.all(T));if(y&&O.finished&&!(s&&O.noop)){const A=createLoopUpdate(a,y,f);if(A)return prepareKeys(o,[A]),flushUpdate(o,A,!0)}return S&&raf.batchedUpdates(()=>S(O,o,o.item)),O})}function getSprings(o,a){const s=se({},o.springs);return a&&each$1(toArray$1(a),c=>{is$1.und(c.keys)&&(c=createUpdate(c)),is$1.obj(c.to)||(c=$e(se({},c),{to:void 0})),prepareSprings(s,c,f=>createSpring(f))}),setSprings(o,s),s}function setSprings(o,a){eachProp(a,(s,c)=>{o.springs[c]||(o.springs[c]=s,addFluidObserver(s,o))})}function createSpring(o,a){const s=new SpringValue;return s.key=o,a&&addFluidObserver(s,a),s}function prepareSprings(o,a,s){a.keys&&each$1(a.keys,c=>{(o[c]||(o[c]=s(c)))._prepareNode(a)})}function prepareKeys(o,a){each$1(a,s=>{prepareSprings(o.springs,s,c=>createSpring(c,o))})}var SpringContext=s=>{var c=s,{children:o}=c,a=er(c,["children"]);const f=reactExports.useContext(ctx),d=a.pause||!!f.pause,y=a.immediate||!!f.immediate;a=useMemoOne(()=>({pause:d,immediate:y}),[d,y]);const{Provider:_}=ctx;return reactExports.createElement(_,{value:a},o)},ctx=makeContext(SpringContext,{});SpringContext.Provider=ctx.Provider;SpringContext.Consumer=ctx.Consumer;function makeContext(o,a){return Object.assign(o,reactExports.createContext(a)),o.Provider._context=o,o.Consumer._context=o,o}var SpringRef=()=>{const o=[],a=function(c){deprecateDirectCall();const f=[];return each$1(o,(d,y)=>{if(is$1.und(c))f.push(d.start());else{const _=s(c,d,y);_&&f.push(d.start(_))}}),f};a.current=o,a.add=function(c){o.includes(c)||o.push(c)},a.delete=function(c){const f=o.indexOf(c);~f&&o.splice(f,1)},a.pause=function(){return each$1(o,c=>c.pause(...arguments)),this},a.resume=function(){return each$1(o,c=>c.resume(...arguments)),this},a.set=function(c){each$1(o,(f,d)=>{const y=is$1.fun(c)?c(d,f):c;y&&f.set(y)})},a.start=function(c){const f=[];return each$1(o,(d,y)=>{if(is$1.und(c))f.push(d.start());else{const _=this._getProps(c,d,y);_&&f.push(d.start(_))}}),f},a.stop=function(){return each$1(o,c=>c.stop(...arguments)),this},a.update=function(c){return each$1(o,(f,d)=>f.update(this._getProps(c,f,d))),this};const s=function(c,f,d){return is$1.fun(c)?c(d,f):c};return a._getProps=s,a};function useSprings(o,a,s){const c=is$1.fun(a)&&a;c&&!s&&(s=[]);const f=reactExports.useMemo(()=>c||arguments.length==3?SpringRef():void 0,[]),d=reactExports.useRef(0),y=useForceUpdate(),_=reactExports.useMemo(()=>({ctrls:[],queue:[],flush(j,L){const M=getSprings(j,L);return d.current>0&&!_.queue.length&&!Object.keys(M).some(U=>!j.springs[U])?flushUpdateQueue(j,L):new Promise(U=>{setSprings(j,M),_.queue.push(()=>{U(flushUpdateQueue(j,L))}),y()})}}),[]),S=reactExports.useRef([..._.ctrls]),b=[],$=usePrev(o)||0;reactExports.useMemo(()=>{each$1(S.current.slice(o,$),j=>{detachRefs(j,f),j.stop(!0)}),S.current.length=o,P($,o)},[o]),reactExports.useMemo(()=>{P(0,Math.min($,o))},s);function P(j,L){for(let M=j;MgetSprings(j,b[L])),C=reactExports.useContext(SpringContext),O=usePrev(C),A=C!==O&&hasProps(C);useIsomorphicLayoutEffect$1(()=>{d.current++,_.ctrls=S.current;const{queue:j}=_;j.length&&(_.queue=[],each$1(j,L=>L())),each$1(S.current,(L,M)=>{f==null||f.add(L),A&&L.start({default:C});const I=b[M];I&&(replaceRef(L,I.ref),L.ref?L.queue.push(I):L.start(I))})}),useOnce(()=>()=>{each$1(_.ctrls,j=>j.stop(!0))});const F=T.map(j=>se({},j));return f?[F,f]:F}function useSpring(o,a){const s=is$1.fun(o),[[c],f]=useSprings(1,s?o:[o],s?a||[]:a);return s||arguments.length==2?[c,f]:c}var Interpolation=class extends FrameValue{constructor(o,a){super(),this.source=o,this.idle=!0,this._active=new Set,this.calc=createInterpolator(...a);const s=this._get(),c=getAnimatedType(s);setAnimated(this,c.create(s))}advance(o){const a=this._get(),s=this.get();isEqual$1(a,s)||(getAnimated(this).setValue(a),this._onChange(a,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const o=is$1.arr(this.source)?this.source.map(getFluidValue):toArray$1(getFluidValue(this.source));return this.calc(...o)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each$1(getPayload(this),o=>{o.done=!1}),globals_exports.skipAnimation?(raf.batchedUpdates(()=>this.advance()),becomeIdle(this)):frameLoop.start(this))}_attach(){let o=1;each$1(toArray$1(this.source),a=>{hasFluidValue(a)&&addFluidObserver(a,this),isFrameValue(a)&&(a.idle||this._active.add(a),o=Math.max(o,a.priority+1))}),this.priority=o,this._start()}_detach(){each$1(toArray$1(this.source),o=>{hasFluidValue(o)&&removeFluidObserver(o,this)}),this._active.clear(),becomeIdle(this)}eventObserved(o){o.type=="change"?o.idle?this.advance():(this._active.add(o.parent),this._start()):o.type=="idle"?this._active.delete(o.parent):o.type=="priority"&&(this.priority=toArray$1(this.source).reduce((a,s)=>Math.max(a,(isFrameValue(s)?s.priority:0)+1),0))}};function isIdle(o){return o.idle!==!1}function checkIdle(o){return!o.size||Array.from(o).every(isIdle)}function becomeIdle(o){o.idle||(o.idle=!0,each$1(getPayload(o),a=>{a.done=!0}),callFluidObservers(o,{type:"idle",parent:o}))}globals_exports.assign({createStringInterpolator:createStringInterpolator2,to:(o,a)=>new Interpolation(o,a)});var isCustomPropRE=/^--/;function dangerousStyleValue(o,a){return a==null||typeof a=="boolean"||a===""?"":typeof a=="number"&&a!==0&&!isCustomPropRE.test(o)&&!(isUnitlessNumber.hasOwnProperty(o)&&isUnitlessNumber[o])?a+"px":(""+a).trim()}var attributeCache={};function applyAnimatedValues(o,a){if(!o.nodeType||!o.setAttribute)return!1;const s=o.nodeName==="filter"||o.parentNode&&o.parentNode.nodeName==="filter",P=a,{style:c,children:f,scrollTop:d,scrollLeft:y,viewBox:_}=P,S=er(P,["style","children","scrollTop","scrollLeft","viewBox"]),b=Object.values(S),$=Object.keys(S).map(T=>s||o.hasAttribute(T)?T:attributeCache[T]||(attributeCache[T]=T.replace(/([A-Z])/g,C=>"-"+C.toLowerCase())));f!==void 0&&(o.textContent=f);for(const T in c)if(c.hasOwnProperty(T)){const C=dangerousStyleValue(T,c[T]);isCustomPropRE.test(T)?o.style.setProperty(T,C):o.style[T]=C}$.forEach((T,C)=>{o.setAttribute(T,b[C])}),d!==void 0&&(o.scrollTop=d),y!==void 0&&(o.scrollLeft=y),_!==void 0&&o.setAttribute("viewBox",_)}var isUnitlessNumber={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},prefixKey=(o,a)=>o+a.charAt(0).toUpperCase()+a.substring(1),prefixes$1=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce((o,a)=>(prefixes$1.forEach(s=>o[prefixKey(s,a)]=o[a]),o),isUnitlessNumber);var domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(o,a)=>is$1.num(o)&&o!==0?o+a:o,isValueIdentity=(o,a)=>is$1.arr(o)?o.every(s=>isValueIdentity(s,a)):is$1.num(o)?o===a:parseFloat(o)===a,AnimatedStyle=class extends AnimatedObject{constructor(f){var d=f,{x:o,y:a,z:s}=d,c=er(d,["x","y","z"]);const y=[],_=[];(o||a||s)&&(y.push([o||0,a||0,s||0]),_.push(S=>[`translate3d(${S.map(b=>addUnit(b,"px")).join(",")})`,isValueIdentity(S,0)])),eachProp(c,(S,b)=>{if(b==="transform")y.push([S||""]),_.push($=>[$,$===""]);else if(domTransforms.test(b)){if(delete c[b],is$1.und(S))return;const $=pxTransforms.test(b)?"px":degTransforms.test(b)?"deg":"";y.push(toArray$1(S)),_.push(b==="rotate3d"?([P,T,C,O])=>[`rotate3d(${P},${T},${C},${addUnit(O,$)})`,isValueIdentity(O,0)]:P=>[`${b}(${P.map(T=>addUnit(T,$)).join(",")})`,isValueIdentity(P,b.startsWith("scale")?1:0)])}}),y.length&&(c.transform=new FluidTransform(y,_)),super(c)}},FluidTransform=class extends FluidValue{constructor(o,a){super(),this.inputs=o,this.transforms=a,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let o="",a=!0;return each$1(this.inputs,(s,c)=>{const f=getFluidValue(s[0]),[d,y]=this.transforms[c](is$1.arr(f)?f:s.map(getFluidValue));o+=" "+d,a=a&&y}),a?"none":o}observerAdded(o){o==1&&each$1(this.inputs,a=>each$1(a,s=>hasFluidValue(s)&&addFluidObserver(s,this)))}observerRemoved(o){o==0&&each$1(this.inputs,a=>each$1(a,s=>hasFluidValue(s)&&removeFluidObserver(s,this)))}eventObserved(o){o.type=="change"&&(this._value=null),callFluidObservers(this,o)}},primitives=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];globals_exports.assign({batchedUpdates:reactDomExports.unstable_batchedUpdates,createStringInterpolator:createStringInterpolator2,colors:colors2});var host=createHost(primitives,{applyAnimatedValues,createAnimatedStyle:o=>new AnimatedStyle(o),getComponentProps:c=>{var f=c,{scrollTop:o,scrollLeft:a}=f,s=er(f,["scrollTop","scrollLeft"]);return s}}),animated=host.animated;const useStyles$g=createStyles(()=>({"svg-icon":{display:"inline-block",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}));function SvgIcon$1({name:o,prefix:a="icon",size:s=16,style:c,className:f}){const{styles:d}=useStyles$g(),y=`#${a}-${o}`,_=se({width:`${s}px`,height:`${s}px`},c);return jsxRuntimeExports.jsx("svg",{className:`${d["svg-icon"]} ${f}`,style:_,"aria-hidden":"true",children:jsxRuntimeExports.jsx("use",{href:y})})}const useStyles$f=createStyles(({token:o})=>({"custom-card":{boxShadow:"rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px",transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",".ant-card-body":{padding:o.paddingMD}}})),createDot=(o,a,s,c,f=0)=>{const d=document.createElement("div");return d.style.position="absolute",d.style.left=`${s}px`,d.style.top=`${c}px`,d.style.width=`${f}px`,d.style.height=`${f}px`,d.style.borderRadius="50%",d.style.background=a,d.style.transform="translate(-50%, -50%)",d.style.transition="all 1s ease-out",o.appendChild(d),d},createHolder=o=>{const{borderWidth:a}=getComputedStyle(o),s=parseInt(a,10),c=document.createElement("div");return c.style.position="absolute",c.style.inset=`-${s}px`,c.style.borderRadius="inherit",c.style.background="transparent",c.style.zIndex="999",c.style.pointerEvents="none",c.style.overflow="hidden",o.appendChild(c),c},showInsetEffect=(o,{event:a,component:s})=>{const c=createHolder(o),f=c.getBoundingClientRect(),d=a.clientX-f.left,y=a.clientY-f.top,_=createDot(c,"rgba(255, 255, 255, 0.65)",d,y);requestAnimationFrame(()=>{_.ontransitionend=()=>{c.remove()},_.style.width="400px",_.style.height="400px",_.style.opacity="0"})},GlobalConfig=s=>{var c=s,{children:o}=c,a=er(c,["children"]);const{styles:f}=useStyles$f(),d=()=>jsxRuntimeExports.jsxs("div",{style:{textAlign:"center"},children:[jsxRuntimeExports.jsx(SvgIcon$1,{name:"ic_content",size:120}),jsxRuntimeExports.jsx("p",{children:"Data Not Found"})]});return jsxRuntimeExports.jsx(ConfigProvider,$e(se({wave:{showEffect:showInsetEffect},card:{className:f["custom-card"]},renderEmpty:d},a),{children:jsxRuntimeExports.jsx(App$1,{children:o})}))};var lib$3={},slider={},innerSlider={},initialState$3={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},s=a;o.default=s})(initialState$3);var FUNC_ERROR_TEXT$3="Expected a function",NAN$2=0/0,symbolTag$5="[object Symbol]",reTrim$1=/^\s+|\s+$/g,reIsBadHex$2=/^[-+]0x[0-9a-f]+$/i,reIsBinary$2=/^0b[01]+$/i,reIsOctal$2=/^0o[0-7]+$/i,freeParseInt$2=parseInt,freeGlobal$5=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf$3=typeof self=="object"&&self&&self.Object===Object&&self,root$6=freeGlobal$5||freeSelf$3||Function("return this")(),objectProto$j=Object.prototype,objectToString$5=objectProto$j.toString,nativeMax$3=Math.max,nativeMin$3=Math.min,now$4=function(){return root$6.Date.now()};function debounce$4(o,a,s){var c,f,d,y,_,S,b=0,$=!1,P=!1,T=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT$3);a=toNumber$3(a)||0,isObject$9(s)&&($=!!s.leading,P="maxWait"in s,d=P?nativeMax$3(toNumber$3(s.maxWait)||0,a):d,T="trailing"in s?!!s.trailing:T);function C(z){var H=c,G=f;return c=f=void 0,b=z,y=o.apply(G,H),y}function O(z){return b=z,_=setTimeout(j,a),$?C(z):y}function A(z){var H=z-S,G=z-b,X=a-H;return P?nativeMin$3(X,d-G):X}function F(z){var H=z-S,G=z-b;return S===void 0||H>=a||H<0||P&&G>=d}function j(){var z=now$4();if(F(z))return L(z);_=setTimeout(j,A(z))}function L(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function M(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function I(){return _===void 0?y:L(now$4())}function U(){var z=now$4(),H=F(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return _=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=M,U.flush=I,U}function isObject$9(o){var a=typeof o;return!!o&&(a=="object"||a=="function")}function isObjectLike$5(o){return!!o&&typeof o=="object"}function isSymbol$4(o){return typeof o=="symbol"||isObjectLike$5(o)&&objectToString$5.call(o)==symbolTag$5}function toNumber$3(o){if(typeof o=="number")return o;if(isSymbol$4(o))return NAN$2;if(isObject$9(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=isObject$9(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=o.replace(reTrim$1,"");var s=reIsBinary$2.test(o);return s||reIsOctal$2.test(o)?freeParseInt$2(o.slice(2),s?2:8):reIsBadHex$2.test(o)?NAN$2:+o}var lodash_debounce=debounce$4;const debounce$5=getDefaultExportFromCjs(lodash_debounce);var innerSliderUtils={};Object.defineProperty(innerSliderUtils,"__esModule",{value:!0});innerSliderUtils.checkSpecKeys=innerSliderUtils.checkNavigable=innerSliderUtils.changeSlide=innerSliderUtils.canUseDOM=innerSliderUtils.canGoNext=void 0;innerSliderUtils.clamp=clamp;innerSliderUtils.swipeStart=innerSliderUtils.swipeMove=innerSliderUtils.swipeEnd=innerSliderUtils.slidesOnRight=innerSliderUtils.slidesOnLeft=innerSliderUtils.slideHandler=innerSliderUtils.siblingDirection=innerSliderUtils.safePreventDefault=innerSliderUtils.lazyStartIndex=innerSliderUtils.lazySlidesOnRight=innerSliderUtils.lazySlidesOnLeft=innerSliderUtils.lazyEndIndex=innerSliderUtils.keyHandler=innerSliderUtils.initializedState=innerSliderUtils.getWidth=innerSliderUtils.getTrackLeft=innerSliderUtils.getTrackCSS=innerSliderUtils.getTrackAnimateCSS=innerSliderUtils.getTotalSlides=innerSliderUtils.getSwipeDirection=innerSliderUtils.getSlideCount=innerSliderUtils.getRequiredLazySlides=innerSliderUtils.getPreClones=innerSliderUtils.getPostClones=innerSliderUtils.getOnDemandLazySlides=innerSliderUtils.getNavigableIndexes=innerSliderUtils.getHeight=innerSliderUtils.extractObject=void 0;var _react$5=_interopRequireDefault$a(reactExports);function _interopRequireDefault$a(o){return o&&o.__esModule?o:{default:o}}function ownKeys$n(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$m(o){for(var a=1;a0?1:0):0};innerSliderUtils.lazySlidesOnLeft=lazySlidesOnLeft;var lazySlidesOnRight=function(a){return a.centerMode?Math.floor((a.slidesToShow-1)/2)+1+(parseInt(a.centerPadding)>0?1:0):a.slidesToShow};innerSliderUtils.lazySlidesOnRight=lazySlidesOnRight;var getWidth=function(a){return a&&a.offsetWidth||0};innerSliderUtils.getWidth=getWidth;var getHeight=function(a){return a&&a.offsetHeight||0};innerSliderUtils.getHeight=getHeight;var getSwipeDirection=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c,f,d,y;return c=a.startX-a.curX,f=a.startY-a.curY,d=Math.atan2(f,c),y=Math.round(d*180/Math.PI),y<0&&(y=360-Math.abs(y)),y<=45&&y>=0||y<=360&&y>=315?"left":y>=135&&y<=225?"right":s===!0?y>=35&&y<=135?"up":"down":"vertical"};innerSliderUtils.getSwipeDirection=getSwipeDirection;var canGoNext=function(a){var s=!0;return a.infinite||(a.centerMode&&a.currentSlide>=a.slideCount-1||a.slideCount<=a.slidesToShow||a.currentSlide>=a.slideCount-a.slidesToShow)&&(s=!1),s};innerSliderUtils.canGoNext=canGoNext;var extractObject=function(a,s){var c={};return s.forEach(function(f){return c[f]=a[f]}),c};innerSliderUtils.extractObject=extractObject;var initializedState=function(a){var s=_react$5.default.Children.count(a.children),c=a.listRef,f=Math.ceil(getWidth(c)),d=a.trackRef&&a.trackRef.node,y=Math.ceil(getWidth(d)),_;if(a.vertical)_=f;else{var S=a.centerMode&&parseInt(a.centerPadding)*2;typeof a.centerPadding=="string"&&a.centerPadding.slice(-1)==="%"&&(S*=f/100),_=Math.ceil((f-S)/a.slidesToShow)}var b=c&&getHeight(c.querySelector('[data-index="0"]')),$=b*a.slidesToShow,P=a.currentSlide===void 0?a.initialSlide:a.currentSlide;a.rtl&&a.currentSlide===void 0&&(P=s-1-a.initialSlide);var T=a.lazyLoadedList||[],C=getOnDemandLazySlides(_objectSpread$m(_objectSpread$m({},a),{},{currentSlide:P,lazyLoadedList:T}));T=T.concat(C);var O={slideCount:s,slideWidth:_,listWidth:f,trackWidth:y,currentSlide:P,slideHeight:b,listHeight:$,lazyLoadedList:T};return a.autoplaying===null&&a.autoplay&&(O.autoplaying="playing"),O};innerSliderUtils.initializedState=initializedState;var slideHandler=function(a){var s=a.waitForAnimate,c=a.animating,f=a.fade,d=a.infinite,y=a.index,_=a.slideCount,S=a.lazyLoad,b=a.currentSlide,$=a.centerMode,P=a.slidesToScroll,T=a.slidesToShow,C=a.useCSS,O=a.lazyLoadedList;if(s&&c)return{};var A=y,F,j,L,M={},I={},U=d?y:clamp(y,0,_-1);if(f){if(!d&&(y<0||y>=_))return{};y<0?A=y+_:y>=_&&(A=y-_),S&&O.indexOf(A)<0&&(O=O.concat(A)),M={animating:!0,currentSlide:A,lazyLoadedList:O,targetSlide:A},I={animating:!1,targetSlide:A}}else F=A,A<0?(F=A+_,d?_%P!==0&&(F=_-_%P):F=0):!canGoNext(a)&&A>b?A=F=b:$&&A>=_?(A=d?_:_-1,F=d?0:_-1):A>=_&&(F=A-_,d?_%P!==0&&(F=0):F=_-T),!d&&A+T>=_&&(F=_-T),j=getTrackLeft(_objectSpread$m(_objectSpread$m({},a),{},{slideIndex:A})),L=getTrackLeft(_objectSpread$m(_objectSpread$m({},a),{},{slideIndex:F})),d||(j===L&&(A=F),j=L),S&&(O=O.concat(getOnDemandLazySlides(_objectSpread$m(_objectSpread$m({},a),{},{currentSlide:A})))),C?(M={animating:!0,currentSlide:F,trackStyle:getTrackAnimateCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:j})),lazyLoadedList:O,targetSlide:U},I={animating:!1,currentSlide:F,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:L})),swipeLeft:null,targetSlide:U}):M={currentSlide:F,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:L})),lazyLoadedList:O,targetSlide:U};return{state:M,nextState:I}};innerSliderUtils.slideHandler=slideHandler;var changeSlide=function(a,s){var c,f,d,y,_,S=a.slidesToScroll,b=a.slidesToShow,$=a.slideCount,P=a.currentSlide,T=a.targetSlide,C=a.lazyLoad,O=a.infinite;if(y=$%S!==0,c=y?0:($-P)%S,s.message==="previous")d=c===0?S:b-c,_=P-d,C&&!O&&(f=P-d,_=f===-1?$-1:f),O||(_=T-S);else if(s.message==="next")d=c===0?S:c,_=P+d,C&&!O&&(_=(P+S)%$+c),O||(_=T+S);else if(s.message==="dots")_=s.index*s.slidesToScroll;else if(s.message==="children"){if(_=s.index,O){var A=siblingDirection(_objectSpread$m(_objectSpread$m({},a),{},{targetSlide:_}));_>s.currentSlide&&A==="left"?_=_-$:_10)return{scrolling:!0};_&&(L.swipeLength=X);var W=(S?-1:1)*(L.curX>L.startX?1:-1);_&&(W=L.curY>L.startY?1:-1);var K=Math.ceil(A/F),ie=getSwipeDirection(s.touchObject,_),ee=L.swipeLength;return j||(b===0&&(ie==="right"||ie==="down")||b+1>=K&&(ie==="left"||ie==="up")||!canGoNext(s)&&(ie==="left"||ie==="up"))&&(ee=L.swipeLength*$,P===!1&&T&&(T(ie),H.edgeDragged=!0)),!C&&M&&(M(ie),H.swiped=!0),d?z=G+ee*(I/U)*W:S?z=G-ee*W:z=G+ee*W,_&&(z=G+ee*W),H=_objectSpread$m(_objectSpread$m({},H),{},{touchObject:L,swipeLeft:z,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},s),{},{left:z}))}),Math.abs(L.curX-L.startX)10&&(H.swiping=!0,safePreventDefault(a)),H}};innerSliderUtils.swipeMove=swipeMove;var swipeEnd=function(a,s){var c=s.dragging,f=s.swipe,d=s.touchObject,y=s.listWidth,_=s.touchThreshold,S=s.verticalSwiping,b=s.listHeight,$=s.swipeToSlide,P=s.scrolling,T=s.onSwipe,C=s.targetSlide,O=s.currentSlide,A=s.infinite;if(!c)return f&&safePreventDefault(a),{};var F=S?b/_:y/_,j=getSwipeDirection(d,S),L={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(P||!d.swipeLength)return L;if(d.swipeLength>F){safePreventDefault(a),T&&T(j);var M,I,U=A?O:C;switch(j){case"left":case"up":I=U+getSlideCount(s),M=$?checkNavigable(s,I):I,L.currentDirection=0;break;case"right":case"down":I=U-getSlideCount(s),M=$?checkNavigable(s,I):I,L.currentDirection=1;break;default:M=U}L.triggerSlideHandler=M}else{var z=getTrackLeft(s);L.trackStyle=getTrackAnimateCSS(_objectSpread$m(_objectSpread$m({},s),{},{left:z}))}return L};innerSliderUtils.swipeEnd=swipeEnd;var getNavigableIndexes=function(a){for(var s=a.infinite?a.slideCount*2:a.slideCount,c=a.infinite?a.slidesToShow*-1:0,f=a.infinite?a.slidesToShow*-1:0,d=[];cc[c.length-1])s=c[c.length-1];else for(var d in c){if(sa.swipeLeft*-1)return c=S,!1}else if(S.offsetLeft-s+getWidth(S)/2>a.swipeLeft*-1)return c=S,!1;return!0}),!c)return 0;var y=a.rtl===!0?a.slideCount-a.currentSlide:a.currentSlide,_=Math.abs(c.dataset.index-y)||1;return _}else return a.slidesToScroll};innerSliderUtils.getSlideCount=getSlideCount;var checkSpecKeys=function(a,s){return s.reduce(function(c,f){return c&&a.hasOwnProperty(f)},!0)?null:void 0};innerSliderUtils.checkSpecKeys=checkSpecKeys;var getTrackCSS=function(a){checkSpecKeys(a,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var s,c,f=a.slideCount+2*a.slidesToShow;a.vertical?c=f*a.slideHeight:s=getTotalSlides(a)*a.slideWidth;var d={opacity:1,transition:"",WebkitTransition:""};if(a.useTransform){var y=a.vertical?"translate3d(0px, "+a.left+"px, 0px)":"translate3d("+a.left+"px, 0px, 0px)",_=a.vertical?"translate3d(0px, "+a.left+"px, 0px)":"translate3d("+a.left+"px, 0px, 0px)",S=a.vertical?"translateY("+a.left+"px)":"translateX("+a.left+"px)";d=_objectSpread$m(_objectSpread$m({},d),{},{WebkitTransform:y,transform:_,msTransform:S})}else a.vertical?d.top=a.left:d.left=a.left;return a.fade&&(d={opacity:1}),s&&(d.width=s),c&&(d.height=c),window&&!window.addEventListener&&window.attachEvent&&(a.vertical?d.marginTop=a.left+"px":d.marginLeft=a.left+"px"),d};innerSliderUtils.getTrackCSS=getTrackCSS;var getTrackAnimateCSS=function(a){checkSpecKeys(a,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var s=getTrackCSS(a);return a.useTransform?(s.WebkitTransition="-webkit-transform "+a.speed+"ms "+a.cssEase,s.transition="transform "+a.speed+"ms "+a.cssEase):a.vertical?s.transition="top "+a.speed+"ms "+a.cssEase:s.transition="left "+a.speed+"ms "+a.cssEase,s};innerSliderUtils.getTrackAnimateCSS=getTrackAnimateCSS;var getTrackLeft=function(a){if(a.unslick)return 0;checkSpecKeys(a,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var s=a.slideIndex,c=a.trackRef,f=a.infinite,d=a.centerMode,y=a.slideCount,_=a.slidesToShow,S=a.slidesToScroll,b=a.slideWidth,$=a.listWidth,P=a.variableWidth,T=a.slideHeight,C=a.fade,O=a.vertical,A=0,F,j,L=0;if(C||a.slideCount===1)return 0;var M=0;if(f?(M=-getPreClones(a),y%S!==0&&s+S>y&&(M=-(s>y?_-(s-y):y%S)),d&&(M+=parseInt(_/2))):(y%S!==0&&s+S>y&&(M=_-y%S),d&&(M=parseInt(_/2))),A=M*b,L=M*T,O?F=s*T*-1+L:F=s*b*-1+A,P===!0){var I,U=c&&c.node;if(I=s+getPreClones(a),j=U&&U.childNodes[I],F=j?j.offsetLeft*-1:0,d===!0){I=f?s+getPreClones(a):s,j=U&&U.children[I],F=0;for(var z=0;za.currentSlide?a.targetSlide>a.currentSlide+slidesOnRight(a)?"left":"right":a.targetSlide0&&(y+=1),f&&s%2===0&&(y+=1),y}return f?0:s-1};innerSliderUtils.slidesOnRight=slidesOnRight;var slidesOnLeft=function(a){var s=a.slidesToShow,c=a.centerMode,f=a.rtl,d=a.centerPadding;if(c){var y=(s-1)/2+1;return parseInt(d)>0&&(y+=1),!f&&s%2===0&&(y+=1),y}return f?s-1:0};innerSliderUtils.slidesOnLeft=slidesOnLeft;var canUseDOM=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)};innerSliderUtils.canUseDOM=canUseDOM;var track={};function _typeof$i(o){"@babel/helpers - typeof";return _typeof$i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$i(o)}Object.defineProperty(track,"__esModule",{value:!0});track.Track=void 0;var _react$4=_interopRequireDefault$9(reactExports),_classnames$3=_interopRequireDefault$9(classnamesExports),_innerSliderUtils$3=innerSliderUtils;function _interopRequireDefault$9(o){return o&&o.__esModule?o:{default:o}}function _extends$e(){return _extends$e=Object.assign||function(o){for(var a=1;a=a.slideCount,a.centerMode?(d=Math.floor(a.slidesToShow/2),c=(y-a.currentSlide)%a.slideCount===0,y>a.currentSlide-d-1&&y<=a.currentSlide+d&&(s=!0)):s=a.currentSlide<=y&&y=a.slideCount?_=a.targetSlide-a.slideCount:_=a.targetSlide;var S=y===_;return{"slick-slide":!0,"slick-active":s,"slick-center":c,"slick-cloned":f,"slick-current":S}},getSlideStyle=function(a){var s={};return(a.variableWidth===void 0||a.variableWidth===!1)&&(s.width=a.slideWidth),a.fade&&(s.position="relative",a.vertical?s.top=-a.index*parseInt(a.slideHeight):s.left=-a.index*parseInt(a.slideWidth),s.opacity=a.currentSlide===a.index?1:0,a.useCSS&&(s.transition="opacity "+a.speed+"ms "+a.cssEase+", visibility "+a.speed+"ms "+a.cssEase)),s},getKey$1=function(a,s){return a.key||s},renderSlides=function(a){var s,c=[],f=[],d=[],y=_react$4.default.Children.count(a.children),_=(0,_innerSliderUtils$3.lazyStartIndex)(a),S=(0,_innerSliderUtils$3.lazyEndIndex)(a);return _react$4.default.Children.forEach(a.children,function(b,$){var P,T={message:"children",index:$,slidesToScroll:a.slidesToScroll,currentSlide:a.currentSlide};!a.lazyLoad||a.lazyLoad&&a.lazyLoadedList.indexOf($)>=0?P=b:P=_react$4.default.createElement("div",null);var C=getSlideStyle(_objectSpread$l(_objectSpread$l({},a),{},{index:$})),O=P.props.className||"",A=getSlideClasses(_objectSpread$l(_objectSpread$l({},a),{},{index:$}));if(c.push(_react$4.default.cloneElement(P,{key:"original"+getKey$1(P,$),"data-index":$,className:(0,_classnames$3.default)(A,O),tabIndex:"-1","aria-hidden":!A["slick-active"],style:_objectSpread$l(_objectSpread$l({outline:"none"},P.props.style||{}),C),onClick:function(L){P.props&&P.props.onClick&&P.props.onClick(L),a.focusOnSelect&&a.focusOnSelect(T)}})),a.infinite&&a.fade===!1){var F=y-$;F<=(0,_innerSliderUtils$3.getPreClones)(a)&&y!==a.slidesToShow&&(s=-F,s>=_&&(P=b),A=getSlideClasses(_objectSpread$l(_objectSpread$l({},a),{},{index:s})),f.push(_react$4.default.cloneElement(P,{key:"precloned"+getKey$1(P,s),"data-index":s,tabIndex:"-1",className:(0,_classnames$3.default)(A,O),"aria-hidden":!A["slick-active"],style:_objectSpread$l(_objectSpread$l({},P.props.style||{}),C),onClick:function(L){P.props&&P.props.onClick&&P.props.onClick(L),a.focusOnSelect&&a.focusOnSelect(T)}}))),y!==a.slidesToShow&&(s=y+$,s=I&&T<=L:T===I}),z={message:"dots",index:F,slidesToScroll:b,currentSlide:T},H=this.clickHandler.bind(this,z);A=A.concat(_react$3.default.createElement("li",{key:F,className:U},_react$3.default.cloneElement(this.props.customPaging(F),{onClick:H})))}return _react$3.default.cloneElement(this.props.appendDots(A),_objectSpread$k({className:this.props.dotsClass},O))}}]),s}(_react$3.default.PureComponent);dots.Dots=Dots;var arrows={};function _typeof$g(o){"@babel/helpers - typeof";return _typeof$g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$g(o)}Object.defineProperty(arrows,"__esModule",{value:!0});arrows.PrevArrow=arrows.NextArrow=void 0;var _react$2=_interopRequireDefault$7(reactExports),_classnames$1=_interopRequireDefault$7(classnamesExports),_innerSliderUtils$1=innerSliderUtils;function _interopRequireDefault$7(o){return o&&o.__esModule?o:{default:o}}function _extends$d(){return _extends$d=Object.assign||function(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$8(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function ownKeys$j(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$i(o){for(var a=1;a0&&(f.setState(function(S){return{lazyLoadedList:S.lazyLoadedList.concat(y)}}),f.props.onLazyLoad&&f.props.onLazyLoad(y))}var _=_objectSpread$i({listRef:f.list,trackRef:f.track},f.props);f.updateState(_,!0,function(){f.adaptHeight(),f.props.autoplay&&f.autoPlay("update")}),f.props.lazyLoad==="progressive"&&(f.lazyLoadTimer=setInterval(f.progressiveLazyLoad,1e3)),f.ro=new _resizeObserverPolyfill.default(function(){f.state.animating?(f.onWindowResized(!1),f.callbackTimers.push(setTimeout(function(){return f.onWindowResized()},f.props.speed))):f.onWindowResized()}),f.ro.observe(f.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(S){S.onfocus=f.props.pauseOnFocus?f.onSlideFocus:null,S.onblur=f.props.pauseOnFocus?f.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",f.onWindowResized):window.attachEvent("onresize",f.onWindowResized)}),_defineProperty$k(_assertThisInitialized$1(f),"componentWillUnmount",function(){f.animationEndCallback&&clearTimeout(f.animationEndCallback),f.lazyLoadTimer&&clearInterval(f.lazyLoadTimer),f.callbackTimers.length&&(f.callbackTimers.forEach(function(y){return clearTimeout(y)}),f.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",f.onWindowResized):window.detachEvent("onresize",f.onWindowResized),f.autoplayTimer&&clearInterval(f.autoplayTimer),f.ro.disconnect()}),_defineProperty$k(_assertThisInitialized$1(f),"componentDidUpdate",function(y){if(f.checkImagesLoad(),f.props.onReInit&&f.props.onReInit(),f.props.lazyLoad){var _=(0,_innerSliderUtils.getOnDemandLazySlides)(_objectSpread$i(_objectSpread$i({},f.props),f.state));_.length>0&&(f.setState(function($){return{lazyLoadedList:$.lazyLoadedList.concat(_)}}),f.props.onLazyLoad&&f.props.onLazyLoad(_))}f.adaptHeight();var S=_objectSpread$i(_objectSpread$i({listRef:f.list,trackRef:f.track},f.props),f.state),b=f.didPropsChange(y);b&&f.updateState(S,b,function(){f.state.currentSlide>=_react$1.default.Children.count(f.props.children)&&f.changeSlide({message:"index",index:_react$1.default.Children.count(f.props.children)-f.props.slidesToShow,currentSlide:f.state.currentSlide}),f.props.autoplay?f.autoPlay("update"):f.pause("paused")})}),_defineProperty$k(_assertThisInitialized$1(f),"onWindowResized",function(y){f.debouncedResize&&f.debouncedResize.cancel(),f.debouncedResize=(0,_lodash.default)(function(){return f.resizeWindow(y)},50),f.debouncedResize()}),_defineProperty$k(_assertThisInitialized$1(f),"resizeWindow",function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,_=!!(f.track&&f.track.node);if(_){var S=_objectSpread$i(_objectSpread$i({listRef:f.list,trackRef:f.track},f.props),f.state);f.updateState(S,y,function(){f.props.autoplay?f.autoPlay("update"):f.pause("paused")}),f.setState({animating:!1}),clearTimeout(f.animationEndCallback),delete f.animationEndCallback}}),_defineProperty$k(_assertThisInitialized$1(f),"updateState",function(y,_,S){var b=(0,_innerSliderUtils.initializedState)(y);y=_objectSpread$i(_objectSpread$i(_objectSpread$i({},y),b),{},{slideIndex:b.currentSlide});var $=(0,_innerSliderUtils.getTrackLeft)(y);y=_objectSpread$i(_objectSpread$i({},y),{},{left:$});var P=(0,_innerSliderUtils.getTrackCSS)(y);(_||_react$1.default.Children.count(f.props.children)!==_react$1.default.Children.count(y.children))&&(b.trackStyle=P),f.setState(b,S)}),_defineProperty$k(_assertThisInitialized$1(f),"ssrInit",function(){if(f.props.variableWidth){var y=0,_=0,S=[],b=(0,_innerSliderUtils.getPreClones)(_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{slideCount:f.props.children.length})),$=(0,_innerSliderUtils.getPostClones)(_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{slideCount:f.props.children.length}));f.props.children.forEach(function(H){S.push(H.props.style.width),y+=H.props.style.width});for(var P=0;P=_&&f.onWindowResized()};if(!b.onclick)b.onclick=function(){return b.parentNode.focus()};else{var P=b.onclick;b.onclick=function(){P(),b.parentNode.focus()}}b.onload||(f.props.lazyLoad?b.onload=function(){f.adaptHeight(),f.callbackTimers.push(setTimeout(f.onWindowResized,f.props.speed))}:(b.onload=$,b.onerror=function(){$(),f.props.onLazyLoadError&&f.props.onLazyLoadError()}))})}),_defineProperty$k(_assertThisInitialized$1(f),"progressiveLazyLoad",function(){for(var y=[],_=_objectSpread$i(_objectSpread$i({},f.props),f.state),S=f.state.currentSlide;S=-(0,_innerSliderUtils.getPreClones)(_);b--)if(f.state.lazyLoadedList.indexOf(b)<0){y.push(b);break}y.length>0?(f.setState(function($){return{lazyLoadedList:$.lazyLoadedList.concat(y)}}),f.props.onLazyLoad&&f.props.onLazyLoad(y)):f.lazyLoadTimer&&(clearInterval(f.lazyLoadTimer),delete f.lazyLoadTimer)}),_defineProperty$k(_assertThisInitialized$1(f),"slideHandler",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=f.props,b=S.asNavFor,$=S.beforeChange,P=S.onLazyLoad,T=S.speed,C=S.afterChange,O=f.state.currentSlide,A=(0,_innerSliderUtils.slideHandler)(_objectSpread$i(_objectSpread$i(_objectSpread$i({index:y},f.props),f.state),{},{trackRef:f.track,useCSS:f.props.useCSS&&!_})),F=A.state,j=A.nextState;if(F){$&&$(O,F.currentSlide);var L=F.lazyLoadedList.filter(function(M){return f.state.lazyLoadedList.indexOf(M)<0});P&&L.length>0&&P(L),!f.props.waitForAnimate&&f.animationEndCallback&&(clearTimeout(f.animationEndCallback),C&&C(O),delete f.animationEndCallback),f.setState(F,function(){b&&f.asNavForIndex!==y&&(f.asNavForIndex=y,b.innerSlider.slideHandler(y)),j&&(f.animationEndCallback=setTimeout(function(){var M=j.animating,I=_objectWithoutProperties$6(j,["animating"]);f.setState(I,function(){f.callbackTimers.push(setTimeout(function(){return f.setState({animating:M})},10)),C&&C(F.currentSlide),delete f.animationEndCallback})},T))})}}),_defineProperty$k(_assertThisInitialized$1(f),"changeSlide",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=_objectSpread$i(_objectSpread$i({},f.props),f.state),b=(0,_innerSliderUtils.changeSlide)(S,y);if(!(b!==0&&!b)&&(_===!0?f.slideHandler(b,_):f.slideHandler(b),f.props.autoplay&&f.autoPlay("update"),f.props.focusOnSelect)){var $=f.list.querySelectorAll(".slick-current");$[0]&&$[0].focus()}}),_defineProperty$k(_assertThisInitialized$1(f),"clickHandler",function(y){f.clickable===!1&&(y.stopPropagation(),y.preventDefault()),f.clickable=!0}),_defineProperty$k(_assertThisInitialized$1(f),"keyHandler",function(y){var _=(0,_innerSliderUtils.keyHandler)(y,f.props.accessibility,f.props.rtl);_!==""&&f.changeSlide({message:_})}),_defineProperty$k(_assertThisInitialized$1(f),"selectHandler",function(y){f.changeSlide(y)}),_defineProperty$k(_assertThisInitialized$1(f),"disableBodyScroll",function(){var y=function(S){S=S||window.event,S.preventDefault&&S.preventDefault(),S.returnValue=!1};window.ontouchmove=y}),_defineProperty$k(_assertThisInitialized$1(f),"enableBodyScroll",function(){window.ontouchmove=null}),_defineProperty$k(_assertThisInitialized$1(f),"swipeStart",function(y){f.props.verticalSwiping&&f.disableBodyScroll();var _=(0,_innerSliderUtils.swipeStart)(y,f.props.swipe,f.props.draggable);_!==""&&f.setState(_)}),_defineProperty$k(_assertThisInitialized$1(f),"swipeMove",function(y){var _=(0,_innerSliderUtils.swipeMove)(y,_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{trackRef:f.track,listRef:f.list,slideIndex:f.state.currentSlide}));_&&(_.swiping&&(f.clickable=!1),f.setState(_))}),_defineProperty$k(_assertThisInitialized$1(f),"swipeEnd",function(y){var _=(0,_innerSliderUtils.swipeEnd)(y,_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{trackRef:f.track,listRef:f.list,slideIndex:f.state.currentSlide}));if(_){var S=_.triggerSlideHandler;delete _.triggerSlideHandler,f.setState(_),S!==void 0&&(f.slideHandler(S),f.props.verticalSwiping&&f.enableBodyScroll())}}),_defineProperty$k(_assertThisInitialized$1(f),"touchEnd",function(y){f.swipeEnd(y),f.clickable=!0}),_defineProperty$k(_assertThisInitialized$1(f),"slickPrev",function(){f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"previous"})},0))}),_defineProperty$k(_assertThisInitialized$1(f),"slickNext",function(){f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"next"})},0))}),_defineProperty$k(_assertThisInitialized$1(f),"slickGoTo",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(y=Number(y),isNaN(y))return"";f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"index",index:y,currentSlide:f.state.currentSlide},_)},0))}),_defineProperty$k(_assertThisInitialized$1(f),"play",function(){var y;if(f.props.rtl)y=f.state.currentSlide-f.props.slidesToScroll;else if((0,_innerSliderUtils.canGoNext)(_objectSpread$i(_objectSpread$i({},f.props),f.state)))y=f.state.currentSlide+f.props.slidesToScroll;else return!1;f.slideHandler(y)}),_defineProperty$k(_assertThisInitialized$1(f),"autoPlay",function(y){f.autoplayTimer&&clearInterval(f.autoplayTimer);var _=f.state.autoplaying;if(y==="update"){if(_==="hovered"||_==="focused"||_==="paused")return}else if(y==="leave"){if(_==="paused"||_==="focused")return}else if(y==="blur"&&(_==="paused"||_==="hovered"))return;f.autoplayTimer=setInterval(f.play,f.props.autoplaySpeed+50),f.setState({autoplaying:"playing"})}),_defineProperty$k(_assertThisInitialized$1(f),"pause",function(y){f.autoplayTimer&&(clearInterval(f.autoplayTimer),f.autoplayTimer=null);var _=f.state.autoplaying;y==="paused"?f.setState({autoplaying:"paused"}):y==="focused"?(_==="hovered"||_==="playing")&&f.setState({autoplaying:"focused"}):_==="playing"&&f.setState({autoplaying:"hovered"})}),_defineProperty$k(_assertThisInitialized$1(f),"onDotsOver",function(){return f.props.autoplay&&f.pause("hovered")}),_defineProperty$k(_assertThisInitialized$1(f),"onDotsLeave",function(){return f.props.autoplay&&f.state.autoplaying==="hovered"&&f.autoPlay("leave")}),_defineProperty$k(_assertThisInitialized$1(f),"onTrackOver",function(){return f.props.autoplay&&f.pause("hovered")}),_defineProperty$k(_assertThisInitialized$1(f),"onTrackLeave",function(){return f.props.autoplay&&f.state.autoplaying==="hovered"&&f.autoPlay("leave")}),_defineProperty$k(_assertThisInitialized$1(f),"onSlideFocus",function(){return f.props.autoplay&&f.pause("focused")}),_defineProperty$k(_assertThisInitialized$1(f),"onSlideBlur",function(){return f.props.autoplay&&f.state.autoplaying==="focused"&&f.autoPlay("blur")}),_defineProperty$k(_assertThisInitialized$1(f),"render",function(){var y=(0,_classnames.default)("slick-slider",f.props.className,{"slick-vertical":f.props.vertical,"slick-initialized":!0}),_=_objectSpread$i(_objectSpread$i({},f.props),f.state),S=(0,_innerSliderUtils.extractObject)(_,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),b=f.props.pauseOnHover;S=_objectSpread$i(_objectSpread$i({},S),{},{onMouseEnter:b?f.onTrackOver:null,onMouseLeave:b?f.onTrackLeave:null,onMouseOver:b?f.onTrackOver:null,focusOnSelect:f.props.focusOnSelect&&f.clickable?f.selectHandler:null});var $;if(f.props.dots===!0&&f.state.slideCount>=f.props.slidesToShow){var P=(0,_innerSliderUtils.extractObject)(_,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),T=f.props.pauseOnDotsHover;P=_objectSpread$i(_objectSpread$i({},P),{},{clickHandler:f.changeSlide,onMouseEnter:T?f.onDotsLeave:null,onMouseOver:T?f.onDotsOver:null,onMouseLeave:T?f.onDotsLeave:null}),$=_react$1.default.createElement(_dots.Dots,P)}var C,O,A=(0,_innerSliderUtils.extractObject)(_,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);A.clickHandler=f.changeSlide,f.props.arrows&&(C=_react$1.default.createElement(_arrows.PrevArrow,A),O=_react$1.default.createElement(_arrows.NextArrow,A));var F=null;f.props.vertical&&(F={height:f.state.listHeight});var j=null;f.props.vertical===!1?f.props.centerMode===!0&&(j={padding:"0px "+f.props.centerPadding}):f.props.centerMode===!0&&(j={padding:f.props.centerPadding+" 0px"});var L=_objectSpread$i(_objectSpread$i({},F),j),M=f.props.touchMove,I={className:"slick-list",style:L,onClick:f.clickHandler,onMouseDown:M?f.swipeStart:null,onMouseMove:f.state.dragging&&M?f.swipeMove:null,onMouseUp:M?f.swipeEnd:null,onMouseLeave:f.state.dragging&&M?f.swipeEnd:null,onTouchStart:M?f.swipeStart:null,onTouchMove:f.state.dragging&&M?f.swipeMove:null,onTouchEnd:M?f.touchEnd:null,onTouchCancel:f.state.dragging&&M?f.swipeEnd:null,onKeyDown:f.props.accessibility?f.keyHandler:null},U={className:y,dir:"ltr",style:f.props.style};return f.props.unslick&&(I={className:"slick-list"},U={className:y}),_react$1.default.createElement("div",U,f.props.unslick?"":C,_react$1.default.createElement("div",_extends$c({ref:f.listRefHandler},I),_react$1.default.createElement(_track.Track,_extends$c({ref:f.trackRefHandler},S),f.props.children)),f.props.unslick?"":O,f.props.unslick?"":$)}),f.list=null,f.track=null,f.state=_objectSpread$i(_objectSpread$i({},_initialState.default),{},{currentSlide:f.props.initialSlide,slideCount:_react$1.default.Children.count(f.props.children)}),f.callbackTimers=[],f.clickable=!0,f.debouncedResize=null;var d=f.ssrInit();return f.state=_objectSpread$i(_objectSpread$i({},f.state),d),f}return _createClass$1(s,[{key:"didPropsChange",value:function(f){for(var d=!1,y=0,_=Object.keys(this.props);y<_.length;y++){var S=_[y];if(!f.hasOwnProperty(S)){d=!0;break}if(!(_typeof$f(f[S])==="object"||typeof f[S]=="function")&&f[S]!==this.props[S]){d=!0;break}}return d||_react$1.default.Children.count(this.props.children)!==_react$1.default.Children.count(f.children)}}]),s}(_react$1.default.Component);innerSlider.InnerSlider=InnerSlider;var defaultProps$1={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=s(reactExports);function s(d){return d&&d.__esModule?d:{default:d}}var c={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(y){return a.default.createElement("ul",{style:{display:"block"}},y)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(y){return a.default.createElement("button",null,y+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},f=c;o.default=f})(defaultProps$1);var QueryHandler_1,hasRequiredQueryHandler;function requireQueryHandler(){if(hasRequiredQueryHandler)return QueryHandler_1;hasRequiredQueryHandler=1;function o(a){this.options=a,!a.deferSetup&&this.setup()}return o.prototype={constructor:o,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},QueryHandler_1=o,QueryHandler_1}var Util$1,hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return Util$1;hasRequiredUtil=1;function o(c,f){var d=0,y=c.length,_;for(d;d1&&arguments[1]!==void 0?arguments[1]:!1;return ie.innerSlider.slickGoTo(ee,de)}),U(L(ie),"slickPause",function(){return ie.innerSlider.pause("paused")}),U(L(ie),"slickPlay",function(){return ie.innerSlider.autoPlay("play")}),ie.state={breakpoint:null},ie._responsiveMediaHandlers=[],ie}return C(W,[{key:"media",value:function(ie,ee){z.register(ie,ee),this._responsiveMediaHandlers.push({query:ie,handler:ee})}},{key:"componentDidMount",value:function(){var ie=this;if(this.props.responsive){var ee=this.props.responsive.map(function(Z){return Z.breakpoint});ee.sort(function(Z,Q){return Z-Q}),ee.forEach(function(Z,Q){var J;Q===0?J=(0,f.default)({minWidth:0,maxWidth:Z}):J=(0,f.default)({minWidth:ee[Q-1]+1,maxWidth:Z}),(0,y.canUseDOM)()&&ie.media(J,function(){ie.setState({breakpoint:Z})})});var de=(0,f.default)({minWidth:ee.slice(-1)[0]});(0,y.canUseDOM)()&&this.media(de,function(){ie.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(ie){z.unregister(ie.query,ie.handler)})}},{key:"render",value:function(){var ie=this,ee,de;this.state.breakpoint?(de=this.props.responsive.filter(function(pe){return pe.breakpoint===ie.state.breakpoint}),ee=de[0].settings==="unslick"?"unslick":$($($({},d.default),this.props),de[0].settings)):ee=$($({},d.default),this.props),ee.centerMode&&(ee.slidesToScroll>1,ee.slidesToScroll=1),ee.fade&&(ee.slidesToShow>1,ee.slidesToScroll>1,ee.slidesToShow=1,ee.slidesToScroll=1);var Z=s.default.Children.toArray(this.props.children);Z=Z.filter(function(pe){return typeof pe=="string"?!!pe.trim():!!pe}),ee.variableWidth&&(ee.rows>1||ee.slidesPerRow>1)&&(ee.variableWidth=!1);for(var Q=[],J=null,ne=0;ne=Z.length));ce+=1)ae.push(s.default.cloneElement(Z[ce],{key:100*ne+10*le+ce,tabIndex:-1,style:{width:"".concat(100/ee.slidesPerRow,"%"),display:"inline-block"}}));fe.push(s.default.createElement("div",{key:10*ne+le},ae))}ee.variableWidth?Q.push(s.default.createElement("div",{key:ne,style:{width:J}},fe)):Q.push(s.default.createElement("div",{key:ne},fe))}if(ee==="unslick"){var ge="regular slider "+(this.props.className||"");return s.default.createElement("div",{className:ge},Z)}else Q.length<=ee.slidesToShow&&(ee.unslick=!0);return s.default.createElement(c.InnerSlider,S({style:this.props.style,ref:this.innerSliderRefHandler},ee),Q)}}]),W}(s.default.Component);o.default=H})(slider);(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=s(slider);function s(f){return f&&f.__esModule?f:{default:f}}var c=a.default;o.default=c})(lib$3);const Slider=getDefaultExportFromCjs(lib$3);var lib$2={exports:{}},_FullInternals={},_CoreInternals={},Global={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o._registerNode=o.Konva=o.glob=void 0;const a=Math.PI/180;function s(){return typeof window!="undefined"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}o.glob=typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"?self:{},o.Konva={_global:o.glob,version:"9.3.3",isBrowser:s(),isUnminified:/param/.test(function(f){}.toString()),dblClickWindow:400,getAngle(f){return o.Konva.angleDeg?f*a:f},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window!="undefined"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return o.Konva.DD.isDragging},isDragReady(){return!!o.Konva.DD.node},releaseCanvasOnDestroy:!0,document:o.glob.document,_injectGlobal(f){o.glob.Konva=f}};const c=f=>{o.Konva[f.prototype.getClassName()]=f};o._registerNode=c,o.Konva._injectGlobal(o.Konva)})(Global);var Util={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Util=o.Transform=void 0;const a=Global;class s{constructor(I=[1,0,0,1,0,0]){this.dirty=!1,this.m=I&&I.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new s(this.m)}copyInto(I){I.m[0]=this.m[0],I.m[1]=this.m[1],I.m[2]=this.m[2],I.m[3]=this.m[3],I.m[4]=this.m[4],I.m[5]=this.m[5]}point(I){var U=this.m;return{x:U[0]*I.x+U[2]*I.y+U[4],y:U[1]*I.x+U[3]*I.y+U[5]}}translate(I,U){return this.m[4]+=this.m[0]*I+this.m[2]*U,this.m[5]+=this.m[1]*I+this.m[3]*U,this}scale(I,U){return this.m[0]*=I,this.m[1]*=I,this.m[2]*=U,this.m[3]*=U,this}rotate(I){var U=Math.cos(I),z=Math.sin(I),H=this.m[0]*U+this.m[2]*z,G=this.m[1]*U+this.m[3]*z,X=this.m[0]*-z+this.m[2]*U,W=this.m[1]*-z+this.m[3]*U;return this.m[0]=H,this.m[1]=G,this.m[2]=X,this.m[3]=W,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(I,U){var z=this.m[0]+this.m[2]*U,H=this.m[1]+this.m[3]*U,G=this.m[2]+this.m[0]*I,X=this.m[3]+this.m[1]*I;return this.m[0]=z,this.m[1]=H,this.m[2]=G,this.m[3]=X,this}multiply(I){var U=this.m[0]*I.m[0]+this.m[2]*I.m[1],z=this.m[1]*I.m[0]+this.m[3]*I.m[1],H=this.m[0]*I.m[2]+this.m[2]*I.m[3],G=this.m[1]*I.m[2]+this.m[3]*I.m[3],X=this.m[0]*I.m[4]+this.m[2]*I.m[5]+this.m[4],W=this.m[1]*I.m[4]+this.m[3]*I.m[5]+this.m[5];return this.m[0]=U,this.m[1]=z,this.m[2]=H,this.m[3]=G,this.m[4]=X,this.m[5]=W,this}invert(){var I=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),U=this.m[3]*I,z=-this.m[1]*I,H=-this.m[2]*I,G=this.m[0]*I,X=I*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),W=I*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=U,this.m[1]=z,this.m[2]=H,this.m[3]=G,this.m[4]=X,this.m[5]=W,this}getMatrix(){return this.m}decompose(){var I=this.m[0],U=this.m[1],z=this.m[2],H=this.m[3],G=this.m[4],X=this.m[5],W=I*H-U*z;let K={x:G,y:X,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(I!=0||U!=0){var ie=Math.sqrt(I*I+U*U);K.rotation=U>0?Math.acos(I/ie):-Math.acos(I/ie),K.scaleX=ie,K.scaleY=W/ie,K.skewX=(I*z+U*H)/W,K.skewY=0}else if(z!=0||H!=0){var ee=Math.sqrt(z*z+H*H);K.rotation=Math.PI/2-(H>0?Math.acos(-z/ee):-Math.acos(z/ee)),K.scaleX=W/ee,K.scaleY=ee,K.skewX=0,K.skewY=(I*z+U*H)/W}return K.rotation=o.Util._getRotation(K.rotation),K}}o.Transform=s;var c="[object Array]",f="[object Number]",d="[object String]",y="[object Boolean]",_=Math.PI/180,S=180/Math.PI,b="#",$="",P="0",T="Konva warning: ",C="Konva error: ",O="rgb(",A={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},F=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,j=[];const L=typeof requestAnimationFrame!="undefined"&&requestAnimationFrame||function(M){setTimeout(M,60)};o.Util={_isElement(M){return!!(M&&M.nodeType==1)},_isFunction(M){return!!(M&&M.constructor&&M.call&&M.apply)},_isPlainObject(M){return!!M&&M.constructor===Object},_isArray(M){return Object.prototype.toString.call(M)===c},_isNumber(M){return Object.prototype.toString.call(M)===f&&!isNaN(M)&&isFinite(M)},_isString(M){return Object.prototype.toString.call(M)===d},_isBoolean(M){return Object.prototype.toString.call(M)===y},isObject(M){return M instanceof Object},isValidSelector(M){if(typeof M!="string")return!1;var I=M[0];return I==="#"||I==="."||I===I.toUpperCase()},_sign(M){return M===0||M>0?1:-1},requestAnimFrame(M){j.push(M),j.length===1&&L(function(){const I=j;j=[],I.forEach(function(U){U()})})},createCanvasElement(){var M=document.createElement("canvas");try{M.style=M.style||{}}catch(I){}return M},createImageElement(){return document.createElement("img")},_isInDocument(M){for(;M=M.parentNode;)if(M==document)return!0;return!1},_urlToImage(M,I){var U=o.Util.createImageElement();U.onload=function(){I(U)},U.src=M},_rgbToHex(M,I,U){return((1<<24)+(M<<16)+(I<<8)+U).toString(16).slice(1)},_hexToRgb(M){M=M.replace(b,$);var I=parseInt(M,16);return{r:I>>16&255,g:I>>8&255,b:I&255}},getRandomColor(){for(var M=(Math.random()*16777215<<0).toString(16);M.length<6;)M=P+M;return b+M},getRGB(M){var I;return M in A?(I=A[M],{r:I[0],g:I[1],b:I[2]}):M[0]===b?this._hexToRgb(M.substring(1)):M.substr(0,4)===O?(I=F.exec(M.replace(/ /g,"")),{r:parseInt(I[1],10),g:parseInt(I[2],10),b:parseInt(I[3],10)}):{r:0,g:0,b:0}},colorToRGBA(M){return M=M||"black",o.Util._namedColorToRBA(M)||o.Util._hex3ColorToRGBA(M)||o.Util._hex4ColorToRGBA(M)||o.Util._hex6ColorToRGBA(M)||o.Util._hex8ColorToRGBA(M)||o.Util._rgbColorToRGBA(M)||o.Util._rgbaColorToRGBA(M)||o.Util._hslColorToRGBA(M)},_namedColorToRBA(M){var I=A[M.toLowerCase()];return I?{r:I[0],g:I[1],b:I[2],a:1}:null},_rgbColorToRGBA(M){if(M.indexOf("rgb(")===0){M=M.match(/rgb\(([^)]+)\)/)[1];var I=M.split(/ *, */).map(Number);return{r:I[0],g:I[1],b:I[2],a:1}}},_rgbaColorToRGBA(M){if(M.indexOf("rgba(")===0){M=M.match(/rgba\(([^)]+)\)/)[1];var I=M.split(/ *, */).map((U,z)=>U.slice(-1)==="%"?z===3?parseInt(U)/100:parseInt(U)/100*255:Number(U));return{r:I[0],g:I[1],b:I[2],a:I[3]}}},_hex8ColorToRGBA(M){if(M[0]==="#"&&M.length===9)return{r:parseInt(M.slice(1,3),16),g:parseInt(M.slice(3,5),16),b:parseInt(M.slice(5,7),16),a:parseInt(M.slice(7,9),16)/255}},_hex6ColorToRGBA(M){if(M[0]==="#"&&M.length===7)return{r:parseInt(M.slice(1,3),16),g:parseInt(M.slice(3,5),16),b:parseInt(M.slice(5,7),16),a:1}},_hex4ColorToRGBA(M){if(M[0]==="#"&&M.length===5)return{r:parseInt(M[1]+M[1],16),g:parseInt(M[2]+M[2],16),b:parseInt(M[3]+M[3],16),a:parseInt(M[4]+M[4],16)/255}},_hex3ColorToRGBA(M){if(M[0]==="#"&&M.length===4)return{r:parseInt(M[1]+M[1],16),g:parseInt(M[2]+M[2],16),b:parseInt(M[3]+M[3],16),a:1}},_hslColorToRGBA(M){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(M)){const[I,...U]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(M),z=Number(U[0])/360,H=Number(U[1])/100,G=Number(U[2])/100;let X,W,K;if(H===0)return K=G*255,{r:Math.round(K),g:Math.round(K),b:Math.round(K),a:1};G<.5?X=G*(1+H):X=G+H-G*H;const ie=2*G-X,ee=[0,0,0];for(let de=0;de<3;de++)W=z+1/3*-(de-1),W<0&&W++,W>1&&W--,6*W<1?K=ie+(X-ie)*6*W:2*W<1?K=X:3*W<2?K=ie+(X-ie)*(2/3-W)*6:K=ie,ee[de]=K*255;return{r:Math.round(ee[0]),g:Math.round(ee[1]),b:Math.round(ee[2]),a:1}}},haveIntersection(M,I){return!(I.x>M.x+M.width||I.x+I.widthM.y+M.height||I.y+I.height1?(X=U,W=z,K=(U-H)*(U-H)+(z-G)*(z-G)):(X=M+ee*(U-M),W=I+ee*(z-I),K=(X-H)*(X-H)+(W-G)*(W-G))}return[X,W,K]},_getProjectionToLine(M,I,U){var z=o.Util.cloneObject(M),H=Number.MAX_VALUE;return I.forEach(function(G,X){if(!(!U&&X===I.length-1)){var W=I[(X+1)%I.length],K=o.Util._getProjectionToSegment(G.x,G.y,W.x,W.y,M.x,M.y),ie=K[0],ee=K[1],de=K[2];deI.length){var X=I;I=M,M=X}for(z=0;z{I.width=0,I.height=0})},drawRoundedRectPath(M,I,U,z){let H=0,G=0,X=0,W=0;typeof z=="number"?H=G=X=W=Math.min(z,I/2,U/2):(H=Math.min(z[0]||0,I/2,U/2),G=Math.min(z[1]||0,I/2,U/2),W=Math.min(z[2]||0,I/2,U/2),X=Math.min(z[3]||0,I/2,U/2)),M.moveTo(H,0),M.lineTo(I-G,0),M.arc(I-G,G,G,Math.PI*3/2,0,!1),M.lineTo(I,U-W),M.arc(I-W,U-W,W,0,Math.PI/2,!1),M.lineTo(X,U),M.arc(X,U-X,X,Math.PI/2,Math.PI,!1),M.lineTo(0,H),M.arc(H,H,H,Math.PI,Math.PI*3/2,!1)}}})(Util);var Node$1={},Factory={},Validators={};Object.defineProperty(Validators,"__esModule",{value:!0});Validators.getComponentValidator=Validators.getBooleanValidator=Validators.getNumberArrayValidator=Validators.getFunctionValidator=Validators.getStringOrGradientValidator=Validators.getStringValidator=Validators.getNumberOrAutoValidator=Validators.getNumberOrArrayOfNumbersValidator=Validators.getNumberValidator=Validators.alphaComponent=Validators.RGBComponent=void 0;const Global_1$p=Global,Util_1$f=Util;function _formatValue(o){return Util_1$f.Util._isString(o)?'"'+o+'"':Object.prototype.toString.call(o)==="[object Number]"||Util_1$f.Util._isBoolean(o)?o:Object.prototype.toString.call(o)}function RGBComponent(o){return o>255?255:o<0?0:Math.round(o)}Validators.RGBComponent=RGBComponent;function alphaComponent(o){return o>1?1:o<1e-4?1e-4:o}Validators.alphaComponent=alphaComponent;function getNumberValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isNumber(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a number.'),o}}Validators.getNumberValidator=getNumberValidator;function getNumberOrArrayOfNumbersValidator(o){if(Global_1$p.Konva.isUnminified)return function(a,s){let c=Util_1$f.Util._isNumber(a),f=Util_1$f.Util._isArray(a)&&a.length==o;return!c&&!f&&Util_1$f.Util.warn(_formatValue(a)+' is a not valid value for "'+s+'" attribute. The value should be a number or Array('+o+")"),a}}Validators.getNumberOrArrayOfNumbersValidator=getNumberOrArrayOfNumbersValidator;function getNumberOrAutoValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){var s=Util_1$f.Util._isNumber(o),c=o==="auto";return s||c||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a number or "auto".'),o}}Validators.getNumberOrAutoValidator=getNumberOrAutoValidator;function getStringValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isString(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a string.'),o}}Validators.getStringValidator=getStringValidator;function getStringOrGradientValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){const s=Util_1$f.Util._isString(o),c=Object.prototype.toString.call(o)==="[object CanvasGradient]"||o&&o.addColorStop;return s||c||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a string or a native gradient.'),o}}Validators.getStringOrGradientValidator=getStringOrGradientValidator;function getFunctionValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isFunction(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a function.'),o}}Validators.getFunctionValidator=getFunctionValidator;function getNumberArrayValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){const s=Int8Array?Object.getPrototypeOf(Int8Array):null;return s&&o instanceof s||(Util_1$f.Util._isArray(o)?o.forEach(function(c){Util_1$f.Util._isNumber(c)||Util_1$f.Util.warn('"'+a+'" attribute has non numeric element '+c+". Make sure that all elements are numbers.")}):Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a array of numbers.')),o}}Validators.getNumberArrayValidator=getNumberArrayValidator;function getBooleanValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){var s=o===!0||o===!1;return s||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a boolean.'),o}}Validators.getBooleanValidator=getBooleanValidator;function getComponentValidator(o){if(Global_1$p.Konva.isUnminified)return function(a,s){return a==null||Util_1$f.Util.isObject(a)||Util_1$f.Util.warn(_formatValue(a)+' is a not valid value for "'+s+'" attribute. The value should be an object with properties '+o),a}}Validators.getComponentValidator=getComponentValidator;(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Factory=void 0;const a=Util,s=Validators;var c="get",f="set";o.Factory={addGetterSetter(d,y,_,S,b){o.Factory.addGetter(d,y,_),o.Factory.addSetter(d,y,S,b),o.Factory.addOverloadedGetterSetter(d,y)},addGetter(d,y,_){var S=c+a.Util._capitalize(y);d.prototype[S]=d.prototype[S]||function(){var b=this.attrs[y];return b===void 0?_:b}},addSetter(d,y,_,S){var b=f+a.Util._capitalize(y);d.prototype[b]||o.Factory.overWriteSetter(d,y,_,S)},overWriteSetter(d,y,_,S){var b=f+a.Util._capitalize(y);d.prototype[b]=function($){return _&&$!==void 0&&$!==null&&($=_.call(this,$,y)),this._setAttr(y,$),S&&S.call(this),this}},addComponentsGetterSetter(d,y,_,S,b){var $=_.length,P=a.Util._capitalize,T=c+P(y),C=f+P(y),O,A;d.prototype[T]=function(){var j={};for(O=0;O<$;O++)A=_[O],j[A]=this.getAttr(y+P(A));return j};var F=(0,s.getComponentValidator)(_);d.prototype[C]=function(j){var L=this.attrs[y],M;S&&(j=S.call(this,j)),F&&F.call(this,j,y);for(M in j)j.hasOwnProperty(M)&&this._setAttr(y+P(M),j[M]);return j||_.forEach(I=>{this._setAttr(y+P(I),void 0)}),this._fireChangeEvent(y,L,j),b&&b.call(this),this},o.Factory.addOverloadedGetterSetter(d,y)},addOverloadedGetterSetter(d,y){var _=a.Util._capitalize(y),S=f+_,b=c+_;d.prototype[y]=function(){return arguments.length?(this[S](arguments[0]),this):this[b]()}},addDeprecatedGetterSetter(d,y,_,S){a.Util.error("Adding deprecated "+y);var b=c+a.Util._capitalize(y),$=y+" property is deprecated and will be removed soon. Look at Konva change log for more information.";d.prototype[b]=function(){a.Util.error($);var P=this.attrs[y];return P===void 0?_:P},o.Factory.addSetter(d,y,S,function(){a.Util.error($)}),o.Factory.addOverloadedGetterSetter(d,y)},backCompat(d,y){a.Util.each(y,function(_,S){var b=d.prototype[S],$=c+a.Util._capitalize(_),P=f+a.Util._capitalize(_);function T(){b.apply(this,arguments),a.Util.error('"'+_+'" method is deprecated and will be removed soon. Use ""'+S+'" instead.')}d.prototype[_]=T,d.prototype[$]=T,d.prototype[P]=T})},afterSetFilter(){this._filterUpToDate=!1}}})(Factory);var Canvas$1={},Context$2={};Object.defineProperty(Context$2,"__esModule",{value:!0});Context$2.HitContext=Context$2.SceneContext=Context$2.Context=void 0;const Util_1$e=Util,Global_1$o=Global;function simplifyArray(o){var a=[],s=o.length,c=Util_1$e.Util,f,d;for(f=0;ftypeof $=="number"?Math.floor($):$)),d+=OPEN_PAREN+b.join(COMMA)+CLOSE_PAREN)):(d+=_.property,a||(d+=EQUALS+_.val)),d+=SEMICOLON;return d}clearTrace(){this.traceArr=[]}_trace(a){var s=this.traceArr,c;s.push(a),c=s.length,c>=traceArrMax&&s.shift()}reset(){var a=this.getCanvas().getPixelRatio();this.setTransform(1*a,0,0,1*a,0,0)}getCanvas(){return this.canvas}clear(a){var s=this.getCanvas();a?this.clearRect(a.x||0,a.y||0,a.width||0,a.height||0):this.clearRect(0,0,s.getWidth()/s.pixelRatio,s.getHeight()/s.pixelRatio)}_applyLineCap(a){const s=a.attrs.lineCap;s&&this.setAttr("lineCap",s)}_applyOpacity(a){var s=a.getAbsoluteOpacity();s!==1&&this.setAttr("globalAlpha",s)}_applyLineJoin(a){const s=a.attrs.lineJoin;s&&this.setAttr("lineJoin",s)}setAttr(a,s){this._context[a]=s}arc(a,s,c,f,d,y){this._context.arc(a,s,c,f,d,y)}arcTo(a,s,c,f,d){this._context.arcTo(a,s,c,f,d)}beginPath(){this._context.beginPath()}bezierCurveTo(a,s,c,f,d,y){this._context.bezierCurveTo(a,s,c,f,d,y)}clearRect(a,s,c,f){this._context.clearRect(a,s,c,f)}clip(...a){this._context.clip.apply(this._context,a)}closePath(){this._context.closePath()}createImageData(a,s){var c=arguments;if(c.length===2)return this._context.createImageData(a,s);if(c.length===1)return this._context.createImageData(a)}createLinearGradient(a,s,c,f){return this._context.createLinearGradient(a,s,c,f)}createPattern(a,s){return this._context.createPattern(a,s)}createRadialGradient(a,s,c,f,d,y){return this._context.createRadialGradient(a,s,c,f,d,y)}drawImage(a,s,c,f,d,y,_,S,b){var $=arguments,P=this._context;$.length===3?P.drawImage(a,s,c):$.length===5?P.drawImage(a,s,c,f,d):$.length===9&&P.drawImage(a,s,c,f,d,y,_,S,b)}ellipse(a,s,c,f,d,y,_,S){this._context.ellipse(a,s,c,f,d,y,_,S)}isPointInPath(a,s,c,f){return c?this._context.isPointInPath(c,a,s,f):this._context.isPointInPath(a,s,f)}fill(...a){this._context.fill.apply(this._context,a)}fillRect(a,s,c,f){this._context.fillRect(a,s,c,f)}strokeRect(a,s,c,f){this._context.strokeRect(a,s,c,f)}fillText(a,s,c,f){f?this._context.fillText(a,s,c,f):this._context.fillText(a,s,c)}measureText(a){return this._context.measureText(a)}getImageData(a,s,c,f){return this._context.getImageData(a,s,c,f)}lineTo(a,s){this._context.lineTo(a,s)}moveTo(a,s){this._context.moveTo(a,s)}rect(a,s,c,f){this._context.rect(a,s,c,f)}roundRect(a,s,c,f,d){this._context.roundRect(a,s,c,f,d)}putImageData(a,s,c){this._context.putImageData(a,s,c)}quadraticCurveTo(a,s,c,f){this._context.quadraticCurveTo(a,s,c,f)}restore(){this._context.restore()}rotate(a){this._context.rotate(a)}save(){this._context.save()}scale(a,s){this._context.scale(a,s)}setLineDash(a){this._context.setLineDash?this._context.setLineDash(a):"mozDash"in this._context?this._context.mozDash=a:"webkitLineDash"in this._context&&(this._context.webkitLineDash=a)}getLineDash(){return this._context.getLineDash()}setTransform(a,s,c,f,d,y){this._context.setTransform(a,s,c,f,d,y)}stroke(a){a?this._context.stroke(a):this._context.stroke()}strokeText(a,s,c,f){this._context.strokeText(a,s,c,f)}transform(a,s,c,f,d,y){this._context.transform(a,s,c,f,d,y)}translate(a,s){this._context.translate(a,s)}_enableTrace(){var a=this,s=CONTEXT_METHODS.length,c=this.setAttr,f,d,y=function(_){var S=a[_],b;a[_]=function(){return d=simplifyArray(Array.prototype.slice.call(arguments,0)),b=S.apply(a,arguments),a._trace({method:_,args:d}),b}};for(f=0;f{f.dragStatus==="dragging"&&(c=!0)}),c},justDragged:!1,get node(){var c;return o.DD._dragElements.forEach(f=>{c=f.node}),c},_dragElements:new Map,_drag(c){const f=[];o.DD._dragElements.forEach((d,y)=>{const{node:_}=d,S=_.getStage();S.setPointersPositions(c),d.pointerId===void 0&&(d.pointerId=s.Util._getFirstPointerId(c));const b=S._changedPointerPositions.find(T=>T.id===d.pointerId);if(b){if(d.dragStatus!=="dragging"){var $=_.dragDistance(),P=Math.max(Math.abs(b.x-d.startPointerPos.x),Math.abs(b.y-d.startPointerPos.y));if(P<$||(_.startDrag({evt:c}),!_.isDragging()))return}_._setDragPosition(c,d),f.push(_)}}),f.forEach(d=>{d.fire("dragmove",{type:"dragmove",target:d,evt:c},!0)})},_endDragBefore(c){const f=[];o.DD._dragElements.forEach(d=>{const{node:y}=d,_=y.getStage();if(c&&_.setPointersPositions(c),!_._changedPointerPositions.find($=>$.id===d.pointerId))return;(d.dragStatus==="dragging"||d.dragStatus==="stopped")&&(o.DD.justDragged=!0,a.Konva._mouseListenClick=!1,a.Konva._touchListenClick=!1,a.Konva._pointerListenClick=!1,d.dragStatus="stopped");const b=d.node.getLayer()||d.node instanceof a.Konva.Stage&&d.node;b&&f.indexOf(b)===-1&&f.push(b)}),f.forEach(d=>{d.draw()})},_endDragAfter(c){o.DD._dragElements.forEach((f,d)=>{f.dragStatus==="stopped"&&f.node.fire("dragend",{type:"dragend",target:f.node,evt:c},!0),f.dragStatus!=="dragging"&&o.DD._dragElements.delete(d)})}},a.Konva.isBrowser&&(window.addEventListener("mouseup",o.DD._endDragBefore,!0),window.addEventListener("touchend",o.DD._endDragBefore,!0),window.addEventListener("mousemove",o.DD._drag),window.addEventListener("touchmove",o.DD._drag),window.addEventListener("mouseup",o.DD._endDragAfter,!1),window.addEventListener("touchend",o.DD._endDragAfter,!1))})(DragAndDrop);Object.defineProperty(Node$1,"__esModule",{value:!0});Node$1.Node=void 0;const Util_1$c=Util,Factory_1$y=Factory,Canvas_1$1=Canvas$1,Global_1$m=Global,DragAndDrop_1=DragAndDrop,Validators_1$x=Validators;var ABSOLUTE_OPACITY="absoluteOpacity",ALL_LISTENERS="allEventListeners",ABSOLUTE_TRANSFORM="absoluteTransform",ABSOLUTE_SCALE="absoluteScale",CANVAS="canvas",CHANGE="Change",CHILDREN="children",KONVA="konva",LISTENING="listening",MOUSEENTER="mouseenter",MOUSELEAVE="mouseleave",SET="set",SHAPE="Shape",SPACE$2=" ",STAGE="stage",TRANSFORM="transform",UPPER_STAGE="Stage",VISIBLE="visible",TRANSFORM_CHANGE_STR$1=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(SPACE$2);let idCounter$1=1;class Node{constructor(a){this._id=idCounter$1++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(a),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(a){(a===TRANSFORM||a===ABSOLUTE_TRANSFORM)&&this._cache.get(a)?this._cache.get(a).dirty=!0:a?this._cache.delete(a):this._cache.clear()}_getCache(a,s){var c=this._cache.get(a),f=a===TRANSFORM||a===ABSOLUTE_TRANSFORM,d=c===void 0||f&&c.dirty===!0;return d&&(c=s.call(this),this._cache.set(a,c)),c}_calculate(a,s,c){if(!this._attachedDepsListeners.get(a)){const f=s.map(d=>d+"Change.konva").join(SPACE$2);this.on(f,()=>{this._clearCache(a)}),this._attachedDepsListeners.set(a,!0)}return this._getCache(a,c)}_getCanvasCache(){return this._cache.get(CANVAS)}_clearSelfAndDescendantCache(a){this._clearCache(a),a===ABSOLUTE_TRANSFORM&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(CANVAS)){const{scene:a,filter:s,hit:c}=this._cache.get(CANVAS);Util_1$c.Util.releaseCanvas(a,s,c),this._cache.delete(CANVAS)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(a){var s=a||{},c={};(s.x===void 0||s.y===void 0||s.width===void 0||s.height===void 0)&&(c=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var f=Math.ceil(s.width||c.width),d=Math.ceil(s.height||c.height),y=s.pixelRatio,_=s.x===void 0?Math.floor(c.x):s.x,S=s.y===void 0?Math.floor(c.y):s.y,b=s.offset||0,$=s.drawBorder||!1,P=s.hitCanvasPixelRatio||1;if(!f||!d){Util_1$c.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const T=Math.abs(Math.round(c.x)-_)>.5?1:0,C=Math.abs(Math.round(c.y)-S)>.5?1:0;f+=b*2+T,d+=b*2+C,_-=b,S-=b;var O=new Canvas_1$1.SceneCanvas({pixelRatio:y,width:f,height:d}),A=new Canvas_1$1.SceneCanvas({pixelRatio:y,width:0,height:0,willReadFrequently:!0}),F=new Canvas_1$1.HitCanvas({pixelRatio:P,width:f,height:d}),j=O.getContext(),L=F.getContext();return F.isCache=!0,O.isCache=!0,this._cache.delete(CANVAS),this._filterUpToDate=!1,s.imageSmoothingEnabled===!1&&(O.getContext()._context.imageSmoothingEnabled=!1,A.getContext()._context.imageSmoothingEnabled=!1),j.save(),L.save(),j.translate(-_,-S),L.translate(-_,-S),this._isUnderCache=!0,this._clearSelfAndDescendantCache(ABSOLUTE_OPACITY),this._clearSelfAndDescendantCache(ABSOLUTE_SCALE),this.drawScene(O,this),this.drawHit(F,this),this._isUnderCache=!1,j.restore(),L.restore(),$&&(j.save(),j.beginPath(),j.rect(0,0,f,d),j.closePath(),j.setAttr("strokeStyle","red"),j.setAttr("lineWidth",5),j.stroke(),j.restore()),this._cache.set(CANVAS,{scene:O,filter:A,hit:F,x:_,y:S}),this._requestDraw(),this}isCached(){return this._cache.has(CANVAS)}getClientRect(a){throw new Error('abstract "getClientRect" method call')}_transformedRect(a,s){var c=[{x:a.x,y:a.y},{x:a.x+a.width,y:a.y},{x:a.x+a.width,y:a.y+a.height},{x:a.x,y:a.y+a.height}],f=1/0,d=1/0,y=-1/0,_=-1/0,S=this.getAbsoluteTransform(s);return c.forEach(function(b){var $=S.point(b);f===void 0&&(f=y=$.x,d=_=$.y),f=Math.min(f,$.x),d=Math.min(d,$.y),y=Math.max(y,$.x),_=Math.max(_,$.y)}),{x:f,y:d,width:y-f,height:_-d}}_drawCachedSceneCanvas(a){a.save(),a._applyOpacity(this),a._applyGlobalCompositeOperation(this);const s=this._getCanvasCache();a.translate(s.x,s.y);var c=this._getCachedSceneCanvas(),f=c.pixelRatio;a.drawImage(c._canvas,0,0,c.width/f,c.height/f),a.restore()}_drawCachedHitCanvas(a){var s=this._getCanvasCache(),c=s.hit;a.save(),a.translate(s.x,s.y),a.drawImage(c._canvas,0,0,c.width/c.pixelRatio,c.height/c.pixelRatio),a.restore()}_getCachedSceneCanvas(){var a=this.filters(),s=this._getCanvasCache(),c=s.scene,f=s.filter,d=f.getContext(),y,_,S,b;if(a){if(!this._filterUpToDate){var $=c.pixelRatio;f.setSize(c.width/c.pixelRatio,c.height/c.pixelRatio);try{for(y=a.length,d.clear(),d.drawImage(c._canvas,0,0,c.getWidth()/$,c.getHeight()/$),_=d.getImageData(0,0,f.getWidth(),f.getHeight()),S=0;S{var s,c;if(!a)return this;for(s in a)s!==CHILDREN&&(c=SET+Util_1$c.Util._capitalize(s),Util_1$c.Util._isFunction(this[c])?this[c](a[s]):this._setAttr(s,a[s]))}),this}isListening(){return this._getCache(LISTENING,this._isListening)}_isListening(a){if(!this.listening())return!1;const c=this.getParent();return c&&c!==a&&this!==a?c._isListening(a):!0}isVisible(){return this._getCache(VISIBLE,this._isVisible)}_isVisible(a){if(!this.visible())return!1;const c=this.getParent();return c&&c!==a&&this!==a?c._isVisible(a):!0}shouldDrawHit(a,s=!1){if(a)return this._isVisible(a)&&this._isListening(a);var c=this.getLayer(),f=!1;DragAndDrop_1.DD._dragElements.forEach(y=>{y.dragStatus==="dragging"&&(y.node.nodeType==="Stage"||y.node.getLayer()===c)&&(f=!0)});var d=!s&&!Global_1$m.Konva.hitOnDragEnabled&&f;return this.isListening()&&this.isVisible()&&!d}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var a=this.getDepth(),s=this,c=0,f,d,y,_;function S($){for(f=[],d=$.length,y=0;y0&&f[0].getDepth()<=a&&S(f)}const b=this.getStage();return s.nodeType!==UPPER_STAGE&&b&&S(b.getChildren()),c}getDepth(){for(var a=0,s=this.parent;s;)a++,s=s.parent;return a}_batchTransformChanges(a){this._batchingTransformChange=!0,a(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(TRANSFORM),this._clearSelfAndDescendantCache(ABSOLUTE_TRANSFORM)),this._needClearTransformCache=!1}setPosition(a){return this._batchTransformChanges(()=>{this.x(a.x),this.y(a.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const a=this.getStage();if(!a)return null;var s=a.getPointerPosition();if(!s)return null;var c=this.getAbsoluteTransform().copy();return c.invert(),c.point(s)}getAbsolutePosition(a){let s=!1,c=this.parent;for(;c;){if(c.isCached()){s=!0;break}c=c.parent}s&&!a&&(a=!0);var f=this.getAbsoluteTransform(a).getMatrix(),d=new Util_1$c.Transform,y=this.offset();return d.m=f.slice(),d.translate(y.x,y.y),d.getTranslation()}setAbsolutePosition(a){const y=this._clearTransform(),{x:s,y:c}=y,f=er(y,["x","y"]);this.attrs.x=s,this.attrs.y=c,this._clearCache(TRANSFORM);var d=this._getAbsoluteTransform().copy();return d.invert(),d.translate(a.x,a.y),a={x:this.attrs.x+d.getTranslation().x,y:this.attrs.y+d.getTranslation().y},this._setTransform(f),this.setPosition({x:a.x,y:a.y}),this._clearCache(TRANSFORM),this._clearSelfAndDescendantCache(ABSOLUTE_TRANSFORM),this}_setTransform(a){var s;for(s in a)this.attrs[s]=a[s]}_clearTransform(){var a={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,a}move(a){var s=a.x,c=a.y,f=this.x(),d=this.y();return s!==void 0&&(f+=s),c!==void 0&&(d+=c),this.setPosition({x:f,y:d}),this}_eachAncestorReverse(a,s){var c=[],f=this.getParent(),d,y;if(!(s&&s._id===this._id)){for(c.unshift(this);f&&(!s||f._id!==s._id);)c.unshift(f),f=f.parent;for(d=c.length,y=0;y0?(this.parent.children.splice(a,1),this.parent.children.splice(a-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Util_1$c.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var a=this.index;return a>0?(this.parent.children.splice(a,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(a){if(!this.parent)return Util_1$c.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(a<0||a>=this.parent.children.length)&&Util_1$c.Util.warn("Unexpected value "+a+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var s=this.index;return this.parent.children.splice(s,1),this.parent.children.splice(a,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(ABSOLUTE_OPACITY,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var a=this.opacity(),s=this.getParent();return s&&!s._isUnderCache&&(a*=s.getAbsoluteOpacity()),a}moveTo(a){return this.getParent()!==a&&(this._remove(),a.add(this)),this}toObject(){var a=this.getAttrs(),s,c,f,d,y;const _={attrs:{},className:this.getClassName()};for(s in a)c=a[s],y=Util_1$c.Util.isObject(c)&&!Util_1$c.Util._isPlainObject(c)&&!Util_1$c.Util._isArray(c),!y&&(f=typeof this[s]=="function"&&this[s],delete a[s],d=f?f.call(this):null,a[s]=c,d!==c&&(_.attrs[s]=c));return Util_1$c.Util._prepareToStringify(_)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(a,s,c){var f=[];s&&this._isMatch(a)&&f.push(this);for(var d=this.parent;d;){if(d===c)return f;d._isMatch(a)&&f.push(d),d=d.parent}return f}isAncestorOf(a){return!1}findAncestor(a,s,c){return this.findAncestors(a,s,c)[0]}_isMatch(a){if(!a)return!1;if(typeof a=="function")return a(this);var s=a.replace(/ /g,"").split(","),c=s.length,f,d;for(f=0;f{try{const f=a==null?void 0:a.callback;f&&delete a.callback,Util_1$c.Util._urlToImage(this.toDataURL(a),function(d){s(d),f==null||f(d)})}catch(f){c(f)}})}toBlob(a){return new Promise((s,c)=>{try{const f=a==null?void 0:a.callback;f&&delete a.callback,this.toCanvas(a).toBlob(d=>{s(d),f==null||f(d)},a==null?void 0:a.mimeType,a==null?void 0:a.quality)}catch(f){c(f)}})}setSize(a){return this.width(a.width),this.height(a.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Global_1$m.Konva.dragDistance}_off(a,s,c){var f=this.eventListeners[a],d,y,_;for(d=0;d=0;if(c&&!this.isDragging()){var f=!1;DragAndDrop_1.DD._dragElements.forEach(d=>{this.isAncestorOf(d.node)&&(f=!0)}),f||this._createDragElement(a)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var a=this.getStage();if(!a)return;const s=DragAndDrop_1.DD._dragElements.get(this._id),c=s&&s.dragStatus==="dragging",f=s&&s.dragStatus==="ready";c?this.stopDrag():f&&DragAndDrop_1.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(a={x:0,y:0}){const s=this.getStage();if(!s)return!1;const c={x:-a.x,y:-a.y,width:s.width()+2*a.x,height:s.height()+2*a.y};return Util_1$c.Util.haveIntersection(c,this.getClientRect())}static create(a,s){return Util_1$c.Util._isString(a)&&(a=JSON.parse(a)),this._createNode(a,s)}static _createNode(a,s){var c=Node.prototype.getClassName.call(a),f=a.children,d,y,_;s&&(a.attrs.container=s),Global_1$m.Konva[c]||(Util_1$c.Util.warn('Can not find a node with class name "'+c+'". Fallback to "Shape".'),c="Shape");const S=Global_1$m.Konva[c];if(d=new S(a.attrs),f)for(y=f.length,_=0;_0}removeChildren(){return this.getChildren().forEach(a=>{a.parent=null,a.index=0,a.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(a=>{a.parent=null,a.index=0,a.destroy()}),this.children=[],this._requestDraw(),this}add(...a){if(a.length===0)return this;if(a.length>1){for(var s=0;s0?s[0]:void 0}_generalFind(a,s){var c=[];return this._descendants(f=>{const d=f._isMatch(a);return d&&c.push(f),!!(d&&s)}),c}_descendants(a){let s=!1;const c=this.getChildren();for(const f of c){if(s=a(f),s)return!0;if(f.hasChildren()&&(s=f._descendants(a),s))return!0}return!1}toObject(){var a=Node_1$h.Node.prototype.toObject.call(this);return a.children=[],this.getChildren().forEach(s=>{a.children.push(s.toObject())}),a}isAncestorOf(a){for(var s=a.getParent();s;){if(s._id===this._id)return!0;s=s.getParent()}return!1}clone(a){var s=Node_1$h.Node.prototype.clone.call(this,a);return this.getChildren().forEach(function(c){s.add(c.clone())}),s}getAllIntersections(a){var s=[];return this.find("Shape").forEach(c=>{c.isVisible()&&c.intersects(a)&&s.push(c)}),s}_clearSelfAndDescendantCache(a){var s;super._clearSelfAndDescendantCache(a),!this.isCached()&&((s=this.children)===null||s===void 0||s.forEach(function(c){c._clearSelfAndDescendantCache(a)}))}_setChildrenIndices(){var a;(a=this.children)===null||a===void 0||a.forEach(function(s,c){s.index=c}),this._requestDraw()}drawScene(a,s,c){var f=this.getLayer(),d=a||f&&f.getCanvas(),y=d&&d.getContext(),_=this._getCanvasCache(),S=_&&_.scene,b=d&&d.isCache;if(!this.isVisible()&&!b)return this;if(S){y.save();var $=this.getAbsoluteTransform(s).getMatrix();y.transform($[0],$[1],$[2],$[3],$[4],$[5]),this._drawCachedSceneCanvas(y),y.restore()}else this._drawChildren("drawScene",d,s,c);return this}drawHit(a,s){if(!this.shouldDrawHit(s))return this;var c=this.getLayer(),f=a||c&&c.hitCanvas,d=f&&f.getContext(),y=this._getCanvasCache(),_=y&&y.hit;if(_){d.save();var S=this.getAbsoluteTransform(s).getMatrix();d.transform(S[0],S[1],S[2],S[3],S[4],S[5]),this._drawCachedHitCanvas(d),d.restore()}else this._drawChildren("drawHit",f,s);return this}_drawChildren(a,s,c,f){var d,y=s&&s.getContext(),_=this.clipWidth(),S=this.clipHeight(),b=this.clipFunc(),$=_&&S||b;const P=c===this;if($){y.save();var T=this.getAbsoluteTransform(c),C=T.getMatrix();y.transform(C[0],C[1],C[2],C[3],C[4],C[5]),y.beginPath();let j;if(b)j=b.call(this,y,this);else{var O=this.clipX(),A=this.clipY();y.rect(O,A,_,S)}y.clip.apply(y,j),C=T.copy().invert().getMatrix(),y.transform(C[0],C[1],C[2],C[3],C[4],C[5])}var F=!P&&this.globalCompositeOperation()!=="source-over"&&a==="drawScene";F&&(y.save(),y._applyGlobalCompositeOperation(this)),(d=this.children)===null||d===void 0||d.forEach(function(j){j[a](s,c,f)}),F&&y.restore(),$&&y.restore()}getClientRect(a={}){var s,c=a.skipTransform,f=a.relativeTo,d,y,_,S,b={x:1/0,y:1/0,width:0,height:0},$=this;(s=this.children)===null||s===void 0||s.forEach(function(A){if(A.visible()){var F=A.getClientRect({relativeTo:$,skipShadow:a.skipShadow,skipStroke:a.skipStroke});F.width===0&&F.height===0||(d===void 0?(d=F.x,y=F.y,_=F.x+F.width,S=F.y+F.height):(d=Math.min(d,F.x),y=Math.min(y,F.y),_=Math.max(_,F.x+F.width),S=Math.max(S,F.y+F.height)))}});for(var P=this.find("Shape"),T=!1,C=0;CCe.indexOf("pointer")>=0?"pointer":Ce.indexOf("touch")>=0?"touch":"mouse",ce=Ce=>{const ue=ae(Ce);if(ue==="pointer")return f.Konva.pointerEventsEnabled&&le.pointer;if(ue==="touch")return le.touch;if(ue==="mouse")return le.mouse};function ge(Ce={}){return(Ce.clipFunc||Ce.clipWidth||Ce.clipHeight)&&a.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),Ce}const pe="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";o.stages=[];class Ie extends c.Container{constructor(ue){super(ge(ue)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),o.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{ge(this.attrs)}),this._checkVisibility()}_validateAdd(ue){const xe=ue.getType()==="Layer",Pe=ue.getType()==="FastLayer";xe||Pe||a.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const ue=this.visible()?"":"none";this.content.style.display=ue}setContainer(ue){if(typeof ue===$){if(ue.charAt(0)==="."){var xe=ue.slice(1);ue=document.getElementsByClassName(xe)[0]}else{var Pe;ue.charAt(0)!=="#"?Pe=ue:Pe=ue.slice(1),ue=document.getElementById(Pe)}if(!ue)throw"Can not find container in document with id "+Pe}return this._setAttr("container",ue),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),ue.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var ue=this.children,xe=ue.length,Pe;for(Pe=0;Pe-1&&o.stages.splice(xe,1),a.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const ue=this._pointerPositions[0]||this._changedPointerPositions[0];return ue?{x:ue.x,y:ue.y}:(a.Util.warn(pe),null)}_getPointerById(ue){return this._pointerPositions.find(xe=>xe.id===ue)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(ue){ue=ue||{},ue.x=ue.x||0,ue.y=ue.y||0,ue.width=ue.width||this.width(),ue.height=ue.height||this.height();var xe=new d.SceneCanvas({width:ue.width,height:ue.height,pixelRatio:ue.pixelRatio||1}),Pe=xe.getContext()._context,Ve=this.children;return(ue.x||ue.y)&&Pe.translate(-1*ue.x,-1*ue.y),Ve.forEach(function(je){if(je.isVisible()){var ze=je._toKonvaCanvas(ue);Pe.drawImage(ze._canvas,ue.x,ue.y,ze.getWidth()/ze.getPixelRatio(),ze.getHeight()/ze.getPixelRatio())}}),xe}getIntersection(ue){if(!ue)return null;var xe=this.children,Pe=xe.length,Ve=Pe-1,je;for(je=Ve;je>=0;je--){const ze=xe[je].getIntersection(ue);if(ze)return ze}return null}_resizeDOM(){var ue=this.width(),xe=this.height();this.content&&(this.content.style.width=ue+P,this.content.style.height=xe+P),this.bufferCanvas.setSize(ue,xe),this.bufferHitCanvas.setSize(ue,xe),this.children.forEach(Pe=>{Pe.setSize({width:ue,height:xe}),Pe.draw()})}add(ue,...xe){if(arguments.length>1){for(var Pe=0;Pene&&a.Util.warn("The stage has "+Ve+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),ue.setSize({width:this.width(),height:this.height()}),ue.draw(),f.Konva.isBrowser&&this.content.appendChild(ue.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(ue){return S.hasPointerCapture(ue,this)}setPointerCapture(ue){S.setPointerCapture(ue,this)}releaseCapture(ue){S.releaseCapture(ue,this)}getLayers(){return this.children}_bindContentEvents(){f.Konva.isBrowser&&fe.forEach(([ue,xe])=>{this.content.addEventListener(ue,Pe=>{this[xe](Pe)},{passive:!1})})}_pointerenter(ue){this.setPointersPositions(ue);const xe=ce(ue.type);xe&&this._fire(xe.pointerenter,{evt:ue,target:this,currentTarget:this})}_pointerover(ue){this.setPointersPositions(ue);const xe=ce(ue.type);xe&&this._fire(xe.pointerover,{evt:ue,target:this,currentTarget:this})}_getTargetShape(ue){let xe=this[ue+"targetShape"];return xe&&!xe.getStage()&&(xe=null),xe}_pointerleave(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(xe){this.setPointersPositions(ue);var Ve=this._getTargetShape(Pe),je=!y.DD.isDragging||f.Konva.hitOnDragEnabled;Ve&&je?(Ve._fireAndBubble(xe.pointerout,{evt:ue}),Ve._fireAndBubble(xe.pointerleave,{evt:ue}),this._fire(xe.pointerleave,{evt:ue,target:this,currentTarget:this}),this[Pe+"targetShape"]=null):je&&(this._fire(xe.pointerleave,{evt:ue,target:this,currentTarget:this}),this._fire(xe.pointerout,{evt:ue,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(xe){this.setPointersPositions(ue);var Ve=!1;this._changedPointerPositions.forEach(je=>{var ze=this.getIntersection(je);if(y.DD.justDragged=!1,f.Konva["_"+Pe+"ListenClick"]=!0,!ze||!ze.isListening())return;f.Konva.capturePointerEventsEnabled&&ze.setPointerCapture(je.id),this[Pe+"ClickStartShape"]=ze,ze._fireAndBubble(xe.pointerdown,{evt:ue,pointerId:je.id}),Ve=!0;const Xe=ue.type.indexOf("touch")>=0;ze.preventDefault()&&ue.cancelable&&Xe&&ue.preventDefault()}),Ve||this._fire(xe.pointerdown,{evt:ue,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(!xe)return;y.DD.isDragging&&y.DD.node.preventDefault()&&ue.cancelable&&ue.preventDefault(),this.setPointersPositions(ue);var Ve=!y.DD.isDragging||f.Konva.hitOnDragEnabled;if(!Ve)return;var je={};let ze=!1;var Xe=this._getTargetShape(Pe);this._changedPointerPositions.forEach(Ut=>{const Je=S.getCapturedShape(Ut.id)||this.getIntersection(Ut),Ft=Ut.id,It={evt:ue,pointerId:Ft};var ir=Xe!==Je;if(ir&&Xe&&(Xe._fireAndBubble(xe.pointerout,se({},It),Je),Xe._fireAndBubble(xe.pointerleave,se({},It),Je)),Je){if(je[Je._id])return;je[Je._id]=!0}Je&&Je.isListening()?(ze=!0,ir&&(Je._fireAndBubble(xe.pointerover,se({},It),Xe),Je._fireAndBubble(xe.pointerenter,se({},It),Xe),this[Pe+"targetShape"]=Je),Je._fireAndBubble(xe.pointermove,se({},It))):Xe&&(this._fire(xe.pointerover,{evt:ue,target:this,currentTarget:this,pointerId:Ft}),this[Pe+"targetShape"]=null)}),ze||this._fire(xe.pointermove,{evt:ue,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(!xe)return;this.setPointersPositions(ue);const Ve=this[Pe+"ClickStartShape"],je=this[Pe+"ClickEndShape"];var ze={};let Xe=!1;this._changedPointerPositions.forEach(Ut=>{const Je=S.getCapturedShape(Ut.id)||this.getIntersection(Ut);if(Je){if(Je.releaseCapture(Ut.id),ze[Je._id])return;ze[Je._id]=!0}const Ft=Ut.id,It={evt:ue,pointerId:Ft};let ir=!1;f.Konva["_"+Pe+"InDblClickWindow"]?(ir=!0,clearTimeout(this[Pe+"DblTimeout"])):y.DD.justDragged||(f.Konva["_"+Pe+"InDblClickWindow"]=!0,clearTimeout(this[Pe+"DblTimeout"])),this[Pe+"DblTimeout"]=setTimeout(function(){f.Konva["_"+Pe+"InDblClickWindow"]=!1},f.Konva.dblClickWindow),Je&&Je.isListening()?(Xe=!0,this[Pe+"ClickEndShape"]=Je,Je._fireAndBubble(xe.pointerup,se({},It)),f.Konva["_"+Pe+"ListenClick"]&&Ve&&Ve===Je&&(Je._fireAndBubble(xe.pointerclick,se({},It)),ir&&je&&je===Je&&Je._fireAndBubble(xe.pointerdblclick,se({},It)))):(this[Pe+"ClickEndShape"]=null,f.Konva["_"+Pe+"ListenClick"]&&this._fire(xe.pointerclick,{evt:ue,target:this,currentTarget:this,pointerId:Ft}),ir&&this._fire(xe.pointerdblclick,{evt:ue,target:this,currentTarget:this,pointerId:Ft}))}),Xe||this._fire(xe.pointerup,{evt:ue,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),f.Konva["_"+Pe+"ListenClick"]=!1,ue.cancelable&&Pe!=="touch"&&ue.preventDefault()}_contextmenu(ue){this.setPointersPositions(ue);var xe=this.getIntersection(this.getPointerPosition());xe&&xe.isListening()?xe._fireAndBubble(ie,{evt:ue}):this._fire(ie,{evt:ue,target:this,currentTarget:this})}_wheel(ue){this.setPointersPositions(ue);var xe=this.getIntersection(this.getPointerPosition());xe&&xe.isListening()?xe._fireAndBubble(J,{evt:ue}):this._fire(J,{evt:ue,target:this,currentTarget:this})}_pointercancel(ue){this.setPointersPositions(ue);const xe=S.getCapturedShape(ue.pointerId)||this.getIntersection(this.getPointerPosition());xe&&xe._fireAndBubble(U,S.createEvent(ue)),S.releaseCapture(ue.pointerId)}_lostpointercapture(ue){S.releaseCapture(ue.pointerId)}setPointersPositions(ue){var xe=this._getContentPosition(),Pe=null,Ve=null;ue=ue||window.event,ue.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(ue.touches,je=>{this._pointerPositions.push({id:je.identifier,x:(je.clientX-xe.left)/xe.scaleX,y:(je.clientY-xe.top)/xe.scaleY})}),Array.prototype.forEach.call(ue.changedTouches||ue.touches,je=>{this._changedPointerPositions.push({id:je.identifier,x:(je.clientX-xe.left)/xe.scaleX,y:(je.clientY-xe.top)/xe.scaleY})})):(Pe=(ue.clientX-xe.left)/xe.scaleX,Ve=(ue.clientY-xe.top)/xe.scaleY,this.pointerPos={x:Pe,y:Ve},this._pointerPositions=[{x:Pe,y:Ve,id:a.Util._getFirstPointerId(ue)}],this._changedPointerPositions=[{x:Pe,y:Ve,id:a.Util._getFirstPointerId(ue)}])}_setPointerPosition(ue){a.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(ue)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var ue=this.content.getBoundingClientRect();return{top:ue.top,left:ue.left,scaleX:ue.width/this.content.clientWidth||1,scaleY:ue.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new d.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new d.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!f.Konva.isBrowser){var ue=this.container();if(!ue)throw"Stage has no container. A container is required.";ue.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),ue.appendChild(this.content),this._resizeDOM()}}cache(){return a.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(ue){ue.batchDraw()}),this}}o.Stage=Ie,Ie.prototype.nodeType=b,(0,_._registerNode)(Ie),s.Factory.addGetterSetter(Ie,"container")})(Stage);var Layer$1={},Shape={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Shape=o.shapes=void 0;const a=Global,s=Util,c=Factory,f=Node$1,d=Validators,y=Global,_=PointerEvents;var S="hasShadow",b="shadowRGBA",$="patternImage",P="linearGradient",T="radialGradient";let C;function O(){return C||(C=s.Util.createCanvasElement().getContext("2d"),C)}o.shapes={};function A(X){const W=this.attrs.fillRule;W?X.fill(W):X.fill()}function F(X){X.stroke()}function j(X){X.fill()}function L(X){X.stroke()}function M(){this._clearCache(S)}function I(){this._clearCache(b)}function U(){this._clearCache($)}function z(){this._clearCache(P)}function H(){this._clearCache(T)}class G extends f.Node{constructor(W){super(W);let K;for(;K=s.Util.getRandomColor(),!(K&&!(K in o.shapes)););this.colorKey=K,o.shapes[K]=this}getContext(){return s.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return s.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(S,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache($,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var W=O();const K=W.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(K&&K.setTransform){const ie=new s.Transform;ie.translate(this.fillPatternX(),this.fillPatternY()),ie.rotate(a.Konva.getAngle(this.fillPatternRotation())),ie.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),ie.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const ee=ie.getMatrix(),de=typeof DOMMatrix=="undefined"?{a:ee[0],b:ee[1],c:ee[2],d:ee[3],e:ee[4],f:ee[5]}:new DOMMatrix(ee);K.setTransform(de)}return K}}_getLinearGradient(){return this._getCache(P,this.__getLinearGradient)}__getLinearGradient(){var W=this.fillLinearGradientColorStops();if(W){for(var K=O(),ie=this.fillLinearGradientStartPoint(),ee=this.fillLinearGradientEndPoint(),de=K.createLinearGradient(ie.x,ie.y,ee.x,ee.y),Z=0;Zthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const W=this.hitStrokeWidth();return W==="auto"?this.hasStroke():this.strokeEnabled()&&!!W}intersects(W){var K=this.getStage();if(!K)return!1;const ie=K.bufferHitCanvas;return ie.getContext().clear(),this.drawHit(ie,void 0,!0),ie.context.getImageData(Math.round(W.x),Math.round(W.y),1,1).data[3]>0}destroy(){return f.Node.prototype.destroy.call(this),delete o.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(W){var K;if(!((K=this.attrs.perfectDrawEnabled)!==null&&K!==void 0?K:!0))return!1;const ee=W||this.hasFill(),de=this.hasStroke(),Z=this.getAbsoluteOpacity()!==1;if(ee&&de&&Z)return!0;const Q=this.hasShadow(),J=this.shadowForStrokeEnabled();return!!(ee&&de&&Q&&J)}setStrokeHitEnabled(W){s.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),W?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var W=this.size();return{x:this._centroid?-W.width/2:0,y:this._centroid?-W.height/2:0,width:W.width,height:W.height}}getClientRect(W={}){const K=W.skipTransform,ie=W.relativeTo,ee=this.getSelfRect(),Z=!W.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=ee.width+Z,J=ee.height+Z,ne=!W.skipShadow&&this.hasShadow(),fe=ne?this.shadowOffsetX():0,le=ne?this.shadowOffsetY():0,ae=Q+Math.abs(fe),ce=J+Math.abs(le),ge=ne&&this.shadowBlur()||0,pe=ae+ge*2,Ie=ce+ge*2,Ce={width:pe,height:Ie,x:-(Z/2+ge)+Math.min(fe,0)+ee.x,y:-(Z/2+ge)+Math.min(le,0)+ee.y};return K?Ce:this._transformedRect(Ce,ie)}drawScene(W,K,ie){var ee=this.getLayer(),de=W||ee.getCanvas(),Z=de.getContext(),Q=this._getCanvasCache(),J=this.getSceneFunc(),ne=this.hasShadow(),fe,le,ae=de.isCache,ce=K===this;if(!this.isVisible()&&!ce)return this;if(Q){Z.save();var ge=this.getAbsoluteTransform(K).getMatrix();return Z.transform(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5]),this._drawCachedSceneCanvas(Z),Z.restore(),this}if(!J)return this;if(Z.save(),this._useBufferCanvas()&&!ae){fe=this.getStage();const Ce=ie||fe.bufferCanvas;le=Ce.getContext(),le.clear(),le.save(),le._applyLineJoin(this);var pe=this.getAbsoluteTransform(K).getMatrix();le.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5]),J.call(this,le,this),le.restore();var Ie=Ce.pixelRatio;ne&&Z._applyShadow(this),Z._applyOpacity(this),Z._applyGlobalCompositeOperation(this),Z.drawImage(Ce._canvas,0,0,Ce.width/Ie,Ce.height/Ie)}else{if(Z._applyLineJoin(this),!ce){var pe=this.getAbsoluteTransform(K).getMatrix();Z.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5]),Z._applyOpacity(this),Z._applyGlobalCompositeOperation(this)}ne&&Z._applyShadow(this),J.call(this,Z,this)}return Z.restore(),this}drawHit(W,K,ie=!1){if(!this.shouldDrawHit(K,ie))return this;var ee=this.getLayer(),de=W||ee.hitCanvas,Z=de&&de.getContext(),Q=this.hitFunc()||this.sceneFunc(),J=this._getCanvasCache(),ne=J&&J.hit;if(this.colorKey||s.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),ne){Z.save();var fe=this.getAbsoluteTransform(K).getMatrix();return Z.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5]),this._drawCachedHitCanvas(Z),Z.restore(),this}if(!Q)return this;if(Z.save(),Z._applyLineJoin(this),!(this===K)){var ae=this.getAbsoluteTransform(K).getMatrix();Z.transform(ae[0],ae[1],ae[2],ae[3],ae[4],ae[5])}return Q.call(this,Z,this),Z.restore(),this}drawHitFromCache(W=0){var K=this._getCanvasCache(),ie=this._getCachedSceneCanvas(),ee=K.hit,de=ee.getContext(),Z=ee.getWidth(),Q=ee.getHeight(),J,ne,fe,le,ae,ce;de.clear(),de.drawImage(ie._canvas,0,0,Z,Q);try{for(J=de.getImageData(0,0,Z,Q),ne=J.data,fe=ne.length,le=s.Util._hexToRgb(this.colorKey),ae=0;aeW?(ne[ae]=le.r,ne[ae+1]=le.g,ne[ae+2]=le.b,ne[ae+3]=255):ne[ae+3]=0;de.putImageData(J,0,0)}catch(ge){s.Util.error("Unable to draw hit graph from cached scene canvas. "+ge.message)}return this}hasPointerCapture(W){return _.hasPointerCapture(W,this)}setPointerCapture(W){_.setPointerCapture(W,this)}releaseCapture(W){_.releaseCapture(W,this)}}o.Shape=G,G.prototype._fillFunc=A,G.prototype._strokeFunc=F,G.prototype._fillFuncHit=j,G.prototype._strokeFuncHit=L,G.prototype._centroid=!1,G.prototype.nodeType="Shape",(0,y._registerNode)(G),G.prototype.eventListeners={},G.prototype.on.call(G.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",M),G.prototype.on.call(G.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",I),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",U),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",z),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",H),c.Factory.addGetterSetter(G,"stroke",void 0,(0,d.getStringOrGradientValidator)()),c.Factory.addGetterSetter(G,"strokeWidth",2,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillAfterStrokeEnabled",!1),c.Factory.addGetterSetter(G,"hitStrokeWidth","auto",(0,d.getNumberOrAutoValidator)()),c.Factory.addGetterSetter(G,"strokeHitEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"perfectDrawEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"shadowForStrokeEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"lineJoin"),c.Factory.addGetterSetter(G,"lineCap"),c.Factory.addGetterSetter(G,"sceneFunc"),c.Factory.addGetterSetter(G,"hitFunc"),c.Factory.addGetterSetter(G,"dash"),c.Factory.addGetterSetter(G,"dashOffset",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowColor",void 0,(0,d.getStringValidator)()),c.Factory.addGetterSetter(G,"shadowBlur",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowOpacity",1,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"shadowOffset",["x","y"]),c.Factory.addGetterSetter(G,"shadowOffsetX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowOffsetY",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternImage"),c.Factory.addGetterSetter(G,"fill",void 0,(0,d.getStringOrGradientValidator)()),c.Factory.addGetterSetter(G,"fillPatternX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternY",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillLinearGradientColorStops"),c.Factory.addGetterSetter(G,"strokeLinearGradientColorStops"),c.Factory.addGetterSetter(G,"fillRadialGradientStartRadius",0),c.Factory.addGetterSetter(G,"fillRadialGradientEndRadius",0),c.Factory.addGetterSetter(G,"fillRadialGradientColorStops"),c.Factory.addGetterSetter(G,"fillPatternRepeat","repeat"),c.Factory.addGetterSetter(G,"fillEnabled",!0),c.Factory.addGetterSetter(G,"strokeEnabled",!0),c.Factory.addGetterSetter(G,"shadowEnabled",!0),c.Factory.addGetterSetter(G,"dashEnabled",!0),c.Factory.addGetterSetter(G,"strokeScaleEnabled",!0),c.Factory.addGetterSetter(G,"fillPriority","color"),c.Factory.addComponentsGetterSetter(G,"fillPatternOffset",["x","y"]),c.Factory.addGetterSetter(G,"fillPatternOffsetX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternOffsetY",0,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"fillPatternScale",["x","y"]),c.Factory.addGetterSetter(G,"fillPatternScaleX",1,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternScaleY",1,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"fillLinearGradientStartPoint",["x","y"]),c.Factory.addComponentsGetterSetter(G,"strokeLinearGradientStartPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillLinearGradientStartPointX",0),c.Factory.addGetterSetter(G,"strokeLinearGradientStartPointX",0),c.Factory.addGetterSetter(G,"fillLinearGradientStartPointY",0),c.Factory.addGetterSetter(G,"strokeLinearGradientStartPointY",0),c.Factory.addComponentsGetterSetter(G,"fillLinearGradientEndPoint",["x","y"]),c.Factory.addComponentsGetterSetter(G,"strokeLinearGradientEndPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillLinearGradientEndPointX",0),c.Factory.addGetterSetter(G,"strokeLinearGradientEndPointX",0),c.Factory.addGetterSetter(G,"fillLinearGradientEndPointY",0),c.Factory.addGetterSetter(G,"strokeLinearGradientEndPointY",0),c.Factory.addComponentsGetterSetter(G,"fillRadialGradientStartPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillRadialGradientStartPointX",0),c.Factory.addGetterSetter(G,"fillRadialGradientStartPointY",0),c.Factory.addComponentsGetterSetter(G,"fillRadialGradientEndPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillRadialGradientEndPointX",0),c.Factory.addGetterSetter(G,"fillRadialGradientEndPointY",0),c.Factory.addGetterSetter(G,"fillPatternRotation",0),c.Factory.addGetterSetter(G,"fillRule",void 0,(0,d.getStringValidator)()),c.Factory.backCompat(G,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(Shape);Object.defineProperty(Layer$1,"__esModule",{value:!0});Layer$1.Layer=void 0;const Util_1$b=Util,Container_1$1=Container$1,Node_1$g=Node$1,Factory_1$w=Factory,Canvas_1=Canvas$1,Validators_1$v=Validators,Shape_1$g=Shape,Global_1$k=Global;var HASH="#",BEFORE_DRAW="beforeDraw",DRAW="draw",INTERSECTION_OFFSETS=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],INTERSECTION_OFFSETS_LEN=INTERSECTION_OFFSETS.length;class Layer extends Container_1$1.Container{constructor(a){super(a),this.canvas=new Canvas_1.SceneCanvas,this.hitCanvas=new Canvas_1.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(a){return this.getContext().clear(a),this.getHitCanvas().getContext().clear(a),this}setZIndex(a){super.setZIndex(a);var s=this.getStage();return s&&s.content&&(s.content.removeChild(this.getNativeCanvasElement()),a{this.draw(),this._waitingForDraw=!1})),this}getIntersection(a){if(!this.isListening()||!this.isVisible())return null;for(var s=1,c=!1;;){for(let f=0;f0)return{antialiased:!0};return{}}drawScene(a,s){var c=this.getLayer(),f=a||c&&c.getCanvas();return this._fire(BEFORE_DRAW,{node:this}),this.clearBeforeDraw()&&f.getContext().clear(),Container_1$1.Container.prototype.drawScene.call(this,f,s),this._fire(DRAW,{node:this}),this}drawHit(a,s){var c=this.getLayer(),f=a||c&&c.hitCanvas;return c&&c.clearBeforeDraw()&&c.getHitCanvas().getContext().clear(),Container_1$1.Container.prototype.drawHit.call(this,f,s),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(a){Util_1$b.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(a)}getHitGraphEnabled(a){return Util_1$b.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var a=this.parent,s=!!this.hitCanvas._canvas.parentNode;s?a.content.removeChild(this.hitCanvas._canvas):a.content.appendChild(this.hitCanvas._canvas)}}destroy(){return Util_1$b.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}Layer$1.Layer=Layer;Layer.prototype.nodeType="Layer";(0,Global_1$k._registerNode)(Layer);Factory_1$w.Factory.addGetterSetter(Layer,"imageSmoothingEnabled",!0);Factory_1$w.Factory.addGetterSetter(Layer,"clearBeforeDraw",!0);Factory_1$w.Factory.addGetterSetter(Layer,"hitGraphEnabled",!0,(0,Validators_1$v.getBooleanValidator)());var FastLayer$1={};Object.defineProperty(FastLayer$1,"__esModule",{value:!0});FastLayer$1.FastLayer=void 0;const Util_1$a=Util,Layer_1=Layer$1,Global_1$j=Global;class FastLayer extends Layer_1.Layer{constructor(a){super(a),this.listening(!1),Util_1$a.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}FastLayer$1.FastLayer=FastLayer;FastLayer.prototype.nodeType="FastLayer";(0,Global_1$j._registerNode)(FastLayer);var Group$1={};Object.defineProperty(Group$1,"__esModule",{value:!0});Group$1.Group=void 0;const Util_1$9=Util,Container_1=Container$1,Global_1$i=Global;class Group extends Container_1.Container{_validateAdd(a){var s=a.getType();s!=="Group"&&s!=="Shape"&&Util_1$9.Util.throw("You may only add groups and shapes to groups.")}}Group$1.Group=Group;Group.prototype.nodeType="Group";(0,Global_1$i._registerNode)(Group);var Animation$1={};Object.defineProperty(Animation$1,"__esModule",{value:!0});Animation$1.Animation=void 0;const Global_1$h=Global,Util_1$8=Util,now$3=function(){return Global_1$h.glob.performance&&Global_1$h.glob.performance.now?function(){return Global_1$h.glob.performance.now()}:function(){return new Date().getTime()}}();class Animation{constructor(a,s){this.id=Animation.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:now$3(),frameRate:0},this.func=a,this.setLayers(s)}setLayers(a){let s=[];return a&&(s=Array.isArray(a)?a:[a]),this.layers=s,this}getLayers(){return this.layers}addLayer(a){const s=this.layers,c=s.length;for(let f=0;fthis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():O<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=O,this.update())}getTime(){return this._time}setPosition(O){this.prevPos=this._pos,this.propFunc(O),this._pos=O}getPosition(O){return O===void 0&&(O=this._time),this.func(O,this.begin,this._change,this.duration)}play(){this.state=_,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=S,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(O){this.pause(),this._time=O,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var O=this.getTimer()-this._startTime;this.state===_?this.setTime(O):this.state===S&&this.setTime(this.duration-O)}pause(){this.state=y,this.fire("onPause")}getTimer(){return new Date().getTime()}}class T{constructor(O){var A=this,F=O.node,j=F._id,L,M=O.easing||o.Easings.Linear,I=!!O.yoyo,U;typeof O.duration=="undefined"?L=.3:O.duration===0?L=.001:L=O.duration,this.node=F,this._id=b++;var z=F.getLayer()||(F instanceof f.Konva.Stage?F.getLayers():null);z||a.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new s.Animation(function(){A.tween.onEnterFrame()},z),this.tween=new P(U,function(H){A._tweenFunc(H)},M,0,1,L*1e3,I),this._addListeners(),T.attrs[j]||(T.attrs[j]={}),T.attrs[j][this._id]||(T.attrs[j][this._id]={}),T.tweens[j]||(T.tweens[j]={});for(U in O)d[U]===void 0&&this._addAttr(U,O[U]);this.reset(),this.onFinish=O.onFinish,this.onReset=O.onReset,this.onUpdate=O.onUpdate}_addAttr(O,A){var F=this.node,j=F._id,L,M,I,U,z,H,G,X;if(I=T.tweens[j][O],I&&delete T.attrs[j][I][O],L=F.getAttr(O),a.Util._isArray(A))if(M=[],z=Math.max(A.length,L.length),O==="points"&&A.length!==L.length&&(A.length>L.length?(G=L,L=a.Util._prepareArrayForTween(L,A,F.closed())):(H=A,A=a.Util._prepareArrayForTween(A,L,F.closed()))),O.indexOf("fill")===0)for(U=0;U{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var O=this.node,A=T.attrs[O._id][this._id];A.points&&A.points.trueEnd&&O.setAttr("points",A.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var O=this.node,A=T.attrs[O._id][this._id];A.points&&A.points.trueStart&&O.points(A.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(O){return this.tween.seek(O*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var O=this.node._id,A=this._id,F=T.tweens[O],j;this.pause();for(j in F)delete T.tweens[O][j];delete T.attrs[O][A]}}o.Tween=T,T.attrs={},T.tweens={},c.Node.prototype.to=function(C){var O=C.onFinish;C.node=this,C.onFinish=function(){this.destroy(),O&&O()};var A=new T(C);A.play()},o.Easings={BackEaseIn(C,O,A,F){var j=1.70158;return A*(C/=F)*C*((j+1)*C-j)+O},BackEaseOut(C,O,A,F){var j=1.70158;return A*((C=C/F-1)*C*((j+1)*C+j)+1)+O},BackEaseInOut(C,O,A,F){var j=1.70158;return(C/=F/2)<1?A/2*(C*C*(((j*=1.525)+1)*C-j))+O:A/2*((C-=2)*C*(((j*=1.525)+1)*C+j)+2)+O},ElasticEaseIn(C,O,A,F,j,L){var M=0;return C===0?O:(C/=F)===1?O+A:(L||(L=F*.3),!j||j0?a:s),$=y*s,P=_*(_>0?a:s),T=S*(S>0?s:a);return{x:b,y:c?-1*T:P,width:$-b,height:T-P}}}Arc$1.Arc=Arc;Arc.prototype._centroid=!0;Arc.prototype.className="Arc";Arc.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Global_2$2._registerNode)(Arc);Factory_1$v.Factory.addGetterSetter(Arc,"innerRadius",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"outerRadius",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"angle",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"clockwise",!1,(0,Validators_1$u.getBooleanValidator)());var Arrow$1={},Line$1={};Object.defineProperty(Line$1,"__esModule",{value:!0});Line$1.Line=void 0;const Factory_1$u=Factory,Shape_1$e=Shape,Validators_1$t=Validators,Global_1$f=Global;function getControlPoints(o,a,s,c,f,d,y){var _=Math.sqrt(Math.pow(s-o,2)+Math.pow(c-a,2)),S=Math.sqrt(Math.pow(f-s,2)+Math.pow(d-c,2)),b=y*_/(_+S),$=y*S/(_+S),P=s-b*(f-o),T=c-b*(d-a),C=s+$*(f-o),O=c+$*(d-a);return[P,T,C,O]}function expandPoints(o,a){var s=o.length,c=[],f,d;for(f=2;f4){for(_=this.getTensionPoints(),S=_.length,b=d?0:4,d||a.quadraticCurveTo(_[0],_[1],_[2],_[3]);b{let b,$,P;b=S/2,$=0;for(let C=0;C<20;C++)P=b*o.tValues[20][C]+b,$+=o.cValues[20][C]*c(y,_,P);return b*$};o.getCubicArcLength=a;const s=(y,_,S)=>{S===void 0&&(S=1);const b=y[0]-2*y[1]+y[2],$=_[0]-2*_[1]+_[2],P=2*y[1]-2*y[0],T=2*_[1]-2*_[0],C=4*(b*b+$*$),O=4*(b*P+$*T),A=P*P+T*T;if(C===0)return S*Math.sqrt(Math.pow(y[2]-y[0],2)+Math.pow(_[2]-_[0],2));const F=O/(2*C),j=A/C,L=S+F,M=j-F*F,I=L*L+M>0?Math.sqrt(L*L+M):0,U=F*F+M>0?Math.sqrt(F*F+M):0,z=F+Math.sqrt(F*F+M)!==0?M*Math.log(Math.abs((L+I)/(F+U))):0;return Math.sqrt(C)/2*(L*I-F*U+z)};o.getQuadraticArcLength=s;function c(y,_,S){const b=f(1,S,y),$=f(1,S,_),P=b*b+$*$;return Math.sqrt(P)}const f=(y,_,S)=>{const b=S.length-1;let $,P;if(b===0)return 0;if(y===0){P=0;for(let T=0;T<=b;T++)P+=o.binomialCoefficients[b][T]*Math.pow(1-_,b-T)*Math.pow(_,T)*S[T];return P}else{$=new Array(b);for(let T=0;T{let b=1,$=y/_,P=(y-S($))/_,T=0;for(;b>.001;){const C=S($+P),O=Math.abs(y-C)/_;if(O500)break}return $};o.t2length=d})(BezierFunctions);Object.defineProperty(Path$1,"__esModule",{value:!0});Path$1.Path=void 0;const Factory_1$t=Factory,Shape_1$d=Shape,Global_1$e=Global,BezierFunctions_1=BezierFunctions;class Path extends Shape_1$d.Shape{constructor(a){super(a),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=Path.parsePathData(this.data()),this.pathLength=Path.getPathLength(this.dataArray)}_sceneFunc(a){var s=this.dataArray;a.beginPath();for(var c=!1,f=0;f$?b:$,F=b>$?1:b/$,j=b>$?$/b:1;a.translate(_,S),a.rotate(C),a.scale(F,j),a.arc(0,0,A,P,P+T,1-O),a.scale(1/F,1/j),a.rotate(-C),a.translate(-_,-S);break;case"z":c=!0,a.closePath();break}}!c&&!this.hasFill()?a.strokeShape(this):a.fillStrokeShape(this)}getSelfRect(){var a=[];this.dataArray.forEach(function(b){if(b.command==="A"){var $=b.points[4],P=b.points[5],T=b.points[4]+P,C=Math.PI/180;if(Math.abs($-T)T;O-=C){const A=Path.getPointOnEllipticalArc(b.points[0],b.points[1],b.points[2],b.points[3],O,0);a.push(A.x,A.y)}else for(let O=$+C;Os[f].pathLength;)a-=s[f].pathLength,++f;if(f===d)return c=s[f-1].points.slice(-2),{x:c[0],y:c[1]};if(a<.01)return c=s[f].points.slice(0,2),{x:c[0],y:c[1]};var y=s[f],_=y.points;switch(y.command){case"L":return Path.getPointOnLine(a,y.start.x,y.start.y,_[0],_[1]);case"C":return Path.getPointOnCubicBezier((0,BezierFunctions_1.t2length)(a,Path.getPathLength(s),A=>(0,BezierFunctions_1.getCubicArcLength)([y.start.x,_[0],_[2],_[4]],[y.start.y,_[1],_[3],_[5]],A)),y.start.x,y.start.y,_[0],_[1],_[2],_[3],_[4],_[5]);case"Q":return Path.getPointOnQuadraticBezier((0,BezierFunctions_1.t2length)(a,Path.getPathLength(s),A=>(0,BezierFunctions_1.getQuadraticArcLength)([y.start.x,_[0],_[2]],[y.start.y,_[1],_[3]],A)),y.start.x,y.start.y,_[0],_[1],_[2],_[3]);case"A":var S=_[0],b=_[1],$=_[2],P=_[3],T=_[4],C=_[5],O=_[6];return T+=C*a/y.pathLength,Path.getPointOnEllipticalArc(S,b,$,P,T,O)}return null}static getPointOnLine(a,s,c,f,d,y,_){y===void 0&&(y=s),_===void 0&&(_=c);var S=(d-c)/(f-s+1e-8),b=Math.sqrt(a*a/(1+S*S));f0&&!isNaN(O[0]);){var L="",M=[],I=S,U=b,z,H,G,X,W,K,ie,ee,de,Z;switch(C){case"l":S+=O.shift(),b+=O.shift(),L="L",M.push(S,b);break;case"L":S=O.shift(),b=O.shift(),M.push(S,b);break;case"m":var Q=O.shift(),J=O.shift();if(S+=Q,b+=J,L="M",y.length>2&&y[y.length-1].command==="z"){for(var ne=y.length-2;ne>=0;ne--)if(y[ne].command==="M"){S=y[ne].points[0]+Q,b=y[ne].points[1]+J;break}}M.push(S,b),C="l";break;case"M":S=O.shift(),b=O.shift(),L="M",M.push(S,b),C="L";break;case"h":S+=O.shift(),L="L",M.push(S,b);break;case"H":S=O.shift(),L="L",M.push(S,b);break;case"v":b+=O.shift(),L="L",M.push(S,b);break;case"V":b=O.shift(),L="L",M.push(S,b);break;case"C":M.push(O.shift(),O.shift(),O.shift(),O.shift()),S=O.shift(),b=O.shift(),M.push(S,b);break;case"c":M.push(S+O.shift(),b+O.shift(),S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),L="C",M.push(S,b);break;case"S":H=S,G=b,z=y[y.length-1],z.command==="C"&&(H=S+(S-z.points[2]),G=b+(b-z.points[3])),M.push(H,G,O.shift(),O.shift()),S=O.shift(),b=O.shift(),L="C",M.push(S,b);break;case"s":H=S,G=b,z=y[y.length-1],z.command==="C"&&(H=S+(S-z.points[2]),G=b+(b-z.points[3])),M.push(H,G,S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),L="C",M.push(S,b);break;case"Q":M.push(O.shift(),O.shift()),S=O.shift(),b=O.shift(),M.push(S,b);break;case"q":M.push(S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),L="Q",M.push(S,b);break;case"T":H=S,G=b,z=y[y.length-1],z.command==="Q"&&(H=S+(S-z.points[0]),G=b+(b-z.points[1])),S=O.shift(),b=O.shift(),L="Q",M.push(H,G,S,b);break;case"t":H=S,G=b,z=y[y.length-1],z.command==="Q"&&(H=S+(S-z.points[0]),G=b+(b-z.points[1])),S+=O.shift(),b+=O.shift(),L="Q",M.push(H,G,S,b);break;case"A":X=O.shift(),W=O.shift(),K=O.shift(),ie=O.shift(),ee=O.shift(),de=S,Z=b,S=O.shift(),b=O.shift(),L="A",M=this.convertEndpointToCenterParameterization(de,Z,S,b,ie,ee,X,W,K);break;case"a":X=O.shift(),W=O.shift(),K=O.shift(),ie=O.shift(),ee=O.shift(),de=S,Z=b,S+=O.shift(),b+=O.shift(),L="A",M=this.convertEndpointToCenterParameterization(de,Z,S,b,ie,ee,X,W,K);break}y.push({command:L||C,points:M,start:{x:I,y:U},pathLength:this.calcLength(I,U,L||C,M)})}(C==="z"||C==="Z")&&y.push({command:"z",points:[],start:void 0,pathLength:0})}return y}static calcLength(a,s,c,f){var d,y,_,S,b=Path;switch(c){case"L":return b.getLineLength(a,s,f[0],f[1]);case"C":return(0,BezierFunctions_1.getCubicArcLength)([a,f[0],f[2],f[4]],[s,f[1],f[3],f[5]],1);case"Q":return(0,BezierFunctions_1.getQuadraticArcLength)([a,f[0],f[2]],[s,f[1],f[3]],1);case"A":d=0;var $=f[4],P=f[5],T=f[4]+P,C=Math.PI/180;if(Math.abs($-T)T;S-=C)_=b.getPointOnEllipticalArc(f[0],f[1],f[2],f[3],S,0),d+=b.getLineLength(y.x,y.y,_.x,_.y),y=_;else for(S=$+C;S1&&(_*=Math.sqrt(C),S*=Math.sqrt(C));var O=Math.sqrt((_*_*(S*S)-_*_*(T*T)-S*S*(P*P))/(_*_*(T*T)+S*S*(P*P)));d===y&&(O*=-1),isNaN(O)&&(O=0);var A=O*_*T/S,F=O*-S*P/_,j=(a+c)/2+Math.cos($)*A-Math.sin($)*F,L=(s+f)/2+Math.sin($)*A+Math.cos($)*F,M=function(W){return Math.sqrt(W[0]*W[0]+W[1]*W[1])},I=function(W,K){return(W[0]*K[0]+W[1]*K[1])/(M(W)*M(K))},U=function(W,K){return(W[0]*K[1]=1&&(X=0),y===0&&X>0&&(X=X-2*Math.PI),y===1&&X<0&&(X=X+2*Math.PI),[j,L,_,S,z,X,$,y]}}Path$1.Path=Path;Path.prototype.className="Path";Path.prototype._attrsAffectingSize=["data"];(0,Global_1$e._registerNode)(Path);Factory_1$t.Factory.addGetterSetter(Path,"data");Object.defineProperty(Arrow$1,"__esModule",{value:!0});Arrow$1.Arrow=void 0;const Factory_1$s=Factory,Line_1$1=Line$1,Validators_1$s=Validators,Global_1$d=Global,Path_1$2=Path$1;class Arrow extends Line_1$1.Line{_sceneFunc(a){super._sceneFunc(a);var s=Math.PI*2,c=this.points(),f=c,d=this.tension()!==0&&c.length>4;d&&(f=this.getTensionPoints());var y=this.pointerLength(),_=c.length,S,b;if(d){const T=[f[f.length-4],f[f.length-3],f[f.length-2],f[f.length-1],c[_-2],c[_-1]],C=Path_1$2.Path.calcLength(f[f.length-4],f[f.length-3],"C",T),O=Path_1$2.Path.getPointOnQuadraticBezier(Math.min(1,1-y/C),T[0],T[1],T[2],T[3],T[4],T[5]);S=c[_-2]-O.x,b=c[_-1]-O.y}else S=c[_-2]-c[_-4],b=c[_-1]-c[_-3];var $=(Math.atan2(b,S)+s)%s,P=this.pointerWidth();this.pointerAtEnding()&&(a.save(),a.beginPath(),a.translate(c[_-2],c[_-1]),a.rotate($),a.moveTo(0,0),a.lineTo(-y,P/2),a.lineTo(-y,-P/2),a.closePath(),a.restore(),this.__fillStroke(a)),this.pointerAtBeginning()&&(a.save(),a.beginPath(),a.translate(c[0],c[1]),d?(S=(f[0]+f[2])/2-c[0],b=(f[1]+f[3])/2-c[1]):(S=c[2]-c[0],b=c[3]-c[1]),a.rotate((Math.atan2(-b,-S)+s)%s),a.moveTo(0,0),a.lineTo(-y,P/2),a.lineTo(-y,-P/2),a.closePath(),a.restore(),this.__fillStroke(a))}__fillStroke(a){var s=this.dashEnabled();s&&(this.attrs.dashEnabled=!1,a.setLineDash([])),a.fillStrokeShape(this),s&&(this.attrs.dashEnabled=!0)}getSelfRect(){const a=super.getSelfRect(),s=this.pointerWidth()/2;return{x:a.x-s,y:a.y-s,width:a.width+s*2,height:a.height+s*2}}}Arrow$1.Arrow=Arrow;Arrow.prototype.className="Arrow";(0,Global_1$d._registerNode)(Arrow);Factory_1$s.Factory.addGetterSetter(Arrow,"pointerLength",10,(0,Validators_1$s.getNumberValidator)());Factory_1$s.Factory.addGetterSetter(Arrow,"pointerWidth",10,(0,Validators_1$s.getNumberValidator)());Factory_1$s.Factory.addGetterSetter(Arrow,"pointerAtBeginning",!1);Factory_1$s.Factory.addGetterSetter(Arrow,"pointerAtEnding",!0);var Circle$1={};Object.defineProperty(Circle$1,"__esModule",{value:!0});Circle$1.Circle=void 0;const Factory_1$r=Factory,Shape_1$c=Shape,Validators_1$r=Validators,Global_1$c=Global;class Circle extends Shape_1$c.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius()!==a/2&&this.radius(a/2)}setHeight(a){this.radius()!==a/2&&this.radius(a/2)}}Circle$1.Circle=Circle;Circle.prototype._centroid=!0;Circle.prototype.className="Circle";Circle.prototype._attrsAffectingSize=["radius"];(0,Global_1$c._registerNode)(Circle);Factory_1$r.Factory.addGetterSetter(Circle,"radius",0,(0,Validators_1$r.getNumberValidator)());var Ellipse$1={};Object.defineProperty(Ellipse$1,"__esModule",{value:!0});Ellipse$1.Ellipse=void 0;const Factory_1$q=Factory,Shape_1$b=Shape,Validators_1$q=Validators,Global_1$b=Global;class Ellipse extends Shape_1$b.Shape{_sceneFunc(a){var s=this.radiusX(),c=this.radiusY();a.beginPath(),a.save(),s!==c&&a.scale(1,c/s),a.arc(0,0,s,0,Math.PI*2,!1),a.restore(),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(a){this.radiusX(a/2)}setHeight(a){this.radiusY(a/2)}}Ellipse$1.Ellipse=Ellipse;Ellipse.prototype.className="Ellipse";Ellipse.prototype._centroid=!0;Ellipse.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,Global_1$b._registerNode)(Ellipse);Factory_1$q.Factory.addComponentsGetterSetter(Ellipse,"radius",["x","y"]);Factory_1$q.Factory.addGetterSetter(Ellipse,"radiusX",0,(0,Validators_1$q.getNumberValidator)());Factory_1$q.Factory.addGetterSetter(Ellipse,"radiusY",0,(0,Validators_1$q.getNumberValidator)());var Image$1={};Object.defineProperty(Image$1,"__esModule",{value:!0});Image$1.Image=void 0;const Util_1$7=Util,Factory_1$p=Factory,Shape_1$a=Shape,Global_1$a=Global,Validators_1$p=Validators;class Image extends Shape_1$a.Shape{constructor(a){super(a),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const a=this.image();a&&a.complete||a&&a.readyState===4||a&&a.addEventListener&&a.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(a){const s=this.getWidth(),c=this.getHeight(),f=this.cornerRadius(),d=this.attrs.image;let y;if(d){const _=this.attrs.cropWidth,S=this.attrs.cropHeight;_&&S?y=[d,this.cropX(),this.cropY(),_,S,0,0,s,c]:y=[d,0,0,s,c]}(this.hasFill()||this.hasStroke()||f)&&(a.beginPath(),f?Util_1$7.Util.drawRoundedRectPath(a,s,c,f):a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)),d&&(f&&a.clip(),a.drawImage.apply(a,y))}_hitFunc(a){var s=this.width(),c=this.height(),f=this.cornerRadius();a.beginPath(),f?Util_1$7.Util.drawRoundedRectPath(a,s,c,f):a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)}getWidth(){var a,s;return(a=this.attrs.width)!==null&&a!==void 0?a:(s=this.image())===null||s===void 0?void 0:s.width}getHeight(){var a,s;return(a=this.attrs.height)!==null&&a!==void 0?a:(s=this.image())===null||s===void 0?void 0:s.height}static fromURL(a,s,c=null){var f=Util_1$7.Util.createImageElement();f.onload=function(){var d=new Image({image:f});s(d)},f.onerror=c,f.crossOrigin="Anonymous",f.src=a}}Image$1.Image=Image;Image.prototype.className="Image";(0,Global_1$a._registerNode)(Image);Factory_1$p.Factory.addGetterSetter(Image,"cornerRadius",0,(0,Validators_1$p.getNumberOrArrayOfNumbersValidator)(4));Factory_1$p.Factory.addGetterSetter(Image,"image");Factory_1$p.Factory.addComponentsGetterSetter(Image,"crop",["x","y","width","height"]);Factory_1$p.Factory.addGetterSetter(Image,"cropX",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropY",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropWidth",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropHeight",0,(0,Validators_1$p.getNumberValidator)());var Label$1={};Object.defineProperty(Label$1,"__esModule",{value:!0});Label$1.Tag=Label$1.Label=void 0;const Factory_1$o=Factory,Shape_1$9=Shape,Group_1$1=Group$1,Validators_1$o=Validators,Global_1$9=Global;var ATTR_CHANGE_LIST$2=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],CHANGE_KONVA$1="Change.konva",NONE$1="none",UP="up",RIGHT$1="right",DOWN="down",LEFT$1="left",attrChangeListLen$1=ATTR_CHANGE_LIST$2.length;class Label extends Group_1$1.Group{constructor(a){super(a),this.on("add.konva",function(s){this._addListeners(s.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(a){var s=this,c,f=function(){s._sync()};for(c=0;c{s=Math.min(s,y.x),c=Math.max(c,y.x),f=Math.min(f,y.y),d=Math.max(d,y.y)}),{x:s,y:f,width:c-s,height:d-f}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius(a/2)}setHeight(a){this.radius(a/2)}}RegularPolygon$1.RegularPolygon=RegularPolygon;RegularPolygon.prototype.className="RegularPolygon";RegularPolygon.prototype._centroid=!0;RegularPolygon.prototype._attrsAffectingSize=["radius"];(0,Global_1$7._registerNode)(RegularPolygon);Factory_1$m.Factory.addGetterSetter(RegularPolygon,"radius",0,(0,Validators_1$m.getNumberValidator)());Factory_1$m.Factory.addGetterSetter(RegularPolygon,"sides",0,(0,Validators_1$m.getNumberValidator)());var Ring$1={};Object.defineProperty(Ring$1,"__esModule",{value:!0});Ring$1.Ring=void 0;const Factory_1$l=Factory,Shape_1$6=Shape,Validators_1$l=Validators,Global_1$6=Global;var PIx2=Math.PI*2;class Ring extends Shape_1$6.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.innerRadius(),0,PIx2,!1),a.moveTo(this.outerRadius(),0),a.arc(0,0,this.outerRadius(),PIx2,0,!0),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(a){this.outerRadius(a/2)}setHeight(a){this.outerRadius(a/2)}}Ring$1.Ring=Ring;Ring.prototype.className="Ring";Ring.prototype._centroid=!0;Ring.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Global_1$6._registerNode)(Ring);Factory_1$l.Factory.addGetterSetter(Ring,"innerRadius",0,(0,Validators_1$l.getNumberValidator)());Factory_1$l.Factory.addGetterSetter(Ring,"outerRadius",0,(0,Validators_1$l.getNumberValidator)());var Sprite$1={};Object.defineProperty(Sprite$1,"__esModule",{value:!0});Sprite$1.Sprite=void 0;const Factory_1$k=Factory,Shape_1$5=Shape,Animation_1=Animation$1,Validators_1$k=Validators,Global_1$5=Global;class Sprite extends Shape_1$5.Shape{constructor(a){super(a),this._updated=!0,this.anim=new Animation_1.Animation(()=>{var s=this._updated;return this._updated=!1,s}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(a){var s=this.animation(),c=this.frameIndex(),f=c*4,d=this.animations()[s],y=this.frameOffsets(),_=d[f+0],S=d[f+1],b=d[f+2],$=d[f+3],P=this.image();if((this.hasFill()||this.hasStroke())&&(a.beginPath(),a.rect(0,0,b,$),a.closePath(),a.fillStrokeShape(this)),P)if(y){var T=y[s],C=c*2;a.drawImage(P,_,S,b,$,T[C+0],T[C+1],b,$)}else a.drawImage(P,_,S,b,$,0,0,b,$)}_hitFunc(a){var s=this.animation(),c=this.frameIndex(),f=c*4,d=this.animations()[s],y=this.frameOffsets(),_=d[f+2],S=d[f+3];if(a.beginPath(),y){var b=y[s],$=c*2;a.rect(b[$+0],b[$+1],_,S)}else a.rect(0,0,_,S);a.closePath(),a.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var a=this;this.interval=setInterval(function(){a._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var a=this.getLayer();this.anim.setLayers(a),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var a=this.frameIndex(),s=this.animation(),c=this.animations(),f=c[s],d=f.length/4;a{a=a.trim();const s=a.indexOf(" ")>=0,c=a.indexOf('"')>=0||a.indexOf("'")>=0;return s&&!c&&(a=`"${a}"`),a}).join(", ")}var dummyContext;function getDummyContext(){return dummyContext||(dummyContext=Util_1$5.Util.createCanvasElement().getContext(CONTEXT_2D),dummyContext)}function _fillFunc$1(o){o.fillText(this._partialText,this._partialTextX,this._partialTextY)}function _strokeFunc$1(o){o.setAttr("miterLimit",2),o.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function checkDefaultFill(o){return o=o||{},!o.fillLinearGradientColorStops&&!o.fillRadialGradientColorStops&&!o.fillPatternImage&&(o.fill=o.fill||"black"),o}let Text$3=class extends Shape_1$3.Shape{constructor(a){super(checkDefaultFill(a)),this._partialTextX=0,this._partialTextY=0;for(var s=0;s1&&(L+=y)}}}_hitFunc(a){var s=this.getWidth(),c=this.getHeight();a.beginPath(),a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)}setText(a){var s=Util_1$5.Util._isString(a)?a:a==null?"":a+"";return this._setAttr(TEXT,s),this}getWidth(){var a=this.attrs.width===AUTO||this.attrs.width===void 0;return a?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var a=this.attrs.height===AUTO||this.attrs.height===void 0;return a?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return Util_1$5.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(a){var s=getDummyContext(),c=this.fontSize(),f;return s.save(),s.font=this._getContextFont(),f=s.measureText(a),s.restore(),{width:f.width,height:c}}_getContextFont(){return this.fontStyle()+SPACE$1+this.fontVariant()+SPACE$1+(this.fontSize()+PX_SPACE)+normalizeFontFamily(this.fontFamily())}_addTextLine(a){this.align()===JUSTIFY&&(a=a.trim());var c=this._getTextWidth(a);return this.textArr.push({text:a,width:c,lastInParagraph:!1})}_getTextWidth(a){var s=this.letterSpacing(),c=a.length;return getDummyContext().measureText(a).width+(c?s*(c-1):0)}_setTextData(){var a=this.text().split(` -`),s=+this.fontSize(),c=0,f=this.lineHeight()*s,d=this.attrs.width,y=this.attrs.height,_=d!==AUTO&&d!==void 0,S=y!==AUTO&&y!==void 0,b=this.padding(),$=d-b*2,P=y-b*2,T=0,C=this.wrap(),O=C!==NONE,A=C!==CHAR&&O,F=this.ellipsis();this.textArr=[],getDummyContext().font=this._getContextFont();for(var j=F?this._getTextWidth(ELLIPSIS):0,L=0,M=a.length;L$)for(;I.length>0;){for(var z=0,H=I.length,G="",X=0;z>>1,K=I.slice(0,W+1),ie=this._getTextWidth(K)+j;ie<=$?(z=W+1,G=K,X=ie):H=W}if(G){if(A){var ee,de=I[G.length],Z=de===SPACE$1||de===DASH;Z&&X<=$?ee=G.length:ee=Math.max(G.lastIndexOf(SPACE$1),G.lastIndexOf(DASH))+1,ee>0&&(z=ee,G=G.slice(0,z),X=this._getTextWidth(G))}G=G.trimRight(),this._addTextLine(G),c=Math.max(c,X),T+=f;var Q=this._shouldHandleEllipsis(T);if(Q){this._tryToAddEllipsisToLastLine();break}if(I=I.slice(z),I=I.trimLeft(),I.length>0&&(U=this._getTextWidth(I),U<=$)){this._addTextLine(I),T+=f,c=Math.max(c,U);break}}else break}else this._addTextLine(I),T+=f,c=Math.max(c,U),this._shouldHandleEllipsis(T)&&LP)break}this.textHeight=s,this.textWidth=c}_shouldHandleEllipsis(a){var s=+this.fontSize(),c=this.lineHeight()*s,f=this.attrs.height,d=f!==AUTO&&f!==void 0,y=this.padding(),_=f-y*2,S=this.wrap(),b=S!==NONE;return!b||d&&a+c>_}_tryToAddEllipsisToLastLine(){var a=this.attrs.width,s=a!==AUTO&&a!==void 0,c=this.padding(),f=a-c*2,d=this.ellipsis(),y=this.textArr[this.textArr.length-1];if(!(!y||!d)){if(s){var _=this._getTextWidth(y.text+ELLIPSIS)s?null:Path_1$1.Path.getPointAtLengthOfDataArray(a,this.dataArray)}_readDataAttribute(){this.dataArray=Path_1$1.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(a){a.setAttr("font",this._getContextFont()),a.setAttr("textBaseline",this.textBaseline()),a.setAttr("textAlign","left"),a.save();var s=this.textDecoration(),c=this.fill(),f=this.fontSize(),d=this.glyphInfo;s==="underline"&&a.beginPath();for(var y=0;y=1){var c=s[0].p0;a.moveTo(c.x,c.y)}for(var f=0;fo+`.${EVENTS_NAME}`).join(" "),NODES_RECT="nodesRect",TRANSFORM_CHANGE_STR=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],ANGLES={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const TOUCH_DEVICE="ontouchstart"in Global_1$1.Konva._global;function getCursor(o,a,s){if(o==="rotater")return s;a+=Util_1$3.Util.degToRad(ANGLES[o]||0);var c=(Util_1$3.Util.radToDeg(a)%360+360)%360;return Util_1$3.Util._inRange(c,315+22.5,360)||Util_1$3.Util._inRange(c,0,22.5)?"ns-resize":Util_1$3.Util._inRange(c,45-22.5,45+22.5)?"nesw-resize":Util_1$3.Util._inRange(c,90-22.5,90+22.5)?"ew-resize":Util_1$3.Util._inRange(c,135-22.5,135+22.5)?"nwse-resize":Util_1$3.Util._inRange(c,180-22.5,180+22.5)?"ns-resize":Util_1$3.Util._inRange(c,225-22.5,225+22.5)?"nesw-resize":Util_1$3.Util._inRange(c,270-22.5,270+22.5)?"ew-resize":Util_1$3.Util._inRange(c,315-22.5,315+22.5)?"nwse-resize":(Util_1$3.Util.error("Transformer has unknown angle for cursor detection: "+c),"pointer")}var ANCHORS_NAMES=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],MAX_SAFE_INTEGER$2=1e8;function getCenter(o){return{x:o.x+o.width/2*Math.cos(o.rotation)+o.height/2*Math.sin(-o.rotation),y:o.y+o.height/2*Math.cos(o.rotation)+o.width/2*Math.sin(o.rotation)}}function rotateAroundPoint(o,a,s){const c=s.x+(o.x-s.x)*Math.cos(a)-(o.y-s.y)*Math.sin(a),f=s.y+(o.x-s.x)*Math.sin(a)+(o.y-s.y)*Math.cos(a);return $e(se({},o),{rotation:o.rotation+a,x:c,y:f})}function rotateAroundCenter(o,a){const s=getCenter(o);return rotateAroundPoint(o,a,s)}function getSnap(o,a,s){let c=a;for(let f=0;ff.isAncestorOf(this)?(Util_1$3.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=a=s,a.length===1&&this.useSingleNodeRotation()?this.rotation(a[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(f=>{const d=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},y=f._attrsAffectingSize.map(_=>_+"Change."+this._getEventNamespace()).join(" ");f.on(y,d),f.on(TRANSFORM_CHANGE_STR.map(_=>_+`.${this._getEventNamespace()}`).join(" "),d),f.on(`absoluteTransformChange.${this._getEventNamespace()}`,d),this._proxyDrag(f)}),this._resetTransformCache();var c=!!this.findOne(".top-left");return c&&this.update(),this}_proxyDrag(a){let s;a.on(`dragstart.${this._getEventNamespace()}`,c=>{s=a.getAbsolutePosition(),!this.isDragging()&&a!==this.findOne(".back")&&this.startDrag(c,!1)}),a.on(`dragmove.${this._getEventNamespace()}`,c=>{if(!s)return;const f=a.getAbsolutePosition(),d=f.x-s.x,y=f.y-s.y;this.nodes().forEach(_=>{if(_===a||_.isDragging())return;const S=_.getAbsolutePosition();_.setAbsolutePosition({x:S.x+d,y:S.y+y}),_.startDrag(c)}),s=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(a=>{a.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(NODES_RECT),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(NODES_RECT,this.__getNodeRect)}__getNodeShape(a,s=this.rotation(),c){var f=a.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),d=a.getAbsoluteScale(c),y=a.getAbsolutePosition(c),_=f.x*d.x-a.offsetX()*d.x,S=f.y*d.y-a.offsetY()*d.y;const b=(Global_1$1.Konva.getAngle(a.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),$={x:y.x+_*Math.cos(b)+S*Math.sin(-b),y:y.y+S*Math.cos(b)+_*Math.sin(b),width:f.width*d.x,height:f.height*d.y,rotation:b};return rotateAroundPoint($,-Global_1$1.Konva.getAngle(s),{x:0,y:0})}__getNodeRect(){var a=this.getNode();if(!a)return{x:-MAX_SAFE_INTEGER$2,y:-MAX_SAFE_INTEGER$2,width:0,height:0,rotation:0};const s=[];this.nodes().map(b=>{const $=b.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var P=[{x:$.x,y:$.y},{x:$.x+$.width,y:$.y},{x:$.x+$.width,y:$.y+$.height},{x:$.x,y:$.y+$.height}],T=b.getAbsoluteTransform();P.forEach(function(C){var O=T.point(C);s.push(O)})});const c=new Util_1$3.Transform;c.rotate(-Global_1$1.Konva.getAngle(this.rotation()));var f=1/0,d=1/0,y=-1/0,_=-1/0;s.forEach(function(b){var $=c.point(b);f===void 0&&(f=y=$.x,d=_=$.y),f=Math.min(f,$.x),d=Math.min(d,$.y),y=Math.max(y,$.x),_=Math.max(_,$.y)}),c.invert();const S=c.point({x:f,y:d});return{x:S.x,y:S.y,width:y-f,height:_-d,rotation:Global_1$1.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),ANCHORS_NAMES.forEach(a=>{this._createAnchor(a)}),this._createAnchor("rotater")}_createAnchor(a){var s=new Rect_1$1.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:a+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:TOUCH_DEVICE?10:"auto"}),c=this;s.on("mousedown touchstart",function(f){c._handleMouseDown(f)}),s.on("dragstart",f=>{s.stopDrag(),f.cancelBubble=!0}),s.on("dragend",f=>{f.cancelBubble=!0}),s.on("mouseenter",()=>{var f=Global_1$1.Konva.getAngle(this.rotation()),d=this.rotateAnchorCursor(),y=getCursor(a,f,d);s.getStage().content&&(s.getStage().content.style.cursor=y),this._cursorChange=!0}),s.on("mouseout",()=>{s.getStage().content&&(s.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(s)}_createBack(){var a=new Shape_1$1.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(s,c){var f=c.getParent(),d=f.padding();s.beginPath(),s.rect(-d,-d,c.width()+d*2,c.height()+d*2),s.moveTo(c.width()/2,-d),f.rotateEnabled()&&f.rotateLineVisible()&&s.lineTo(c.width()/2,-f.rotateAnchorOffset()*Util_1$3.Util._sign(c.height())-d),s.fillStrokeShape(c)},hitFunc:(s,c)=>{if(this.shouldOverdrawWholeArea()){var f=this.padding();s.beginPath(),s.rect(-f,-f,c.width()+f*2,c.height()+f*2),s.fillStrokeShape(c)}}});this.add(a),this._proxyDrag(a),a.on("dragstart",s=>{s.cancelBubble=!0}),a.on("dragmove",s=>{s.cancelBubble=!0}),a.on("dragend",s=>{s.cancelBubble=!0}),this.on("dragmove",s=>{this.update()})}_handleMouseDown(a){this._movingAnchorName=a.target.name().split(" ")[0];var s=this._getNodeRect(),c=s.width,f=s.height,d=Math.sqrt(Math.pow(c,2)+Math.pow(f,2));this.sin=Math.abs(f/d),this.cos=Math.abs(c/d),typeof window!="undefined"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var y=a.target.getAbsolutePosition(),_=a.target.getStage().getPointerPosition();this._anchorDragOffset={x:_.x-y.x,y:_.y-y.y},this._fire("transformstart",{evt:a.evt,target:this.getNode()}),this._nodes.forEach(S=>{S._fire("transformstart",{evt:a.evt,target:S})})}_handleMouseMove(a){var s,c,f,d=this.findOne("."+this._movingAnchorName),y=d.getStage();y.setPointersPositions(a);const _=y.getPointerPosition();let S={x:_.x-this._anchorDragOffset.x,y:_.y-this._anchorDragOffset.y};const b=d.getAbsolutePosition();this.anchorDragBoundFunc()&&(S=this.anchorDragBoundFunc()(b,S,a)),d.setAbsolutePosition(S);const $=d.getAbsolutePosition();if(!(b.x===$.x&&b.y===$.y)){if(this._movingAnchorName==="rotater"){var P=this._getNodeRect();s=d.x()-P.width/2,c=-d.y()+P.height/2;let ee=Math.atan2(-c,s)+Math.PI/2;P.height<0&&(ee-=Math.PI);var T=Global_1$1.Konva.getAngle(this.rotation());const de=T+ee,Z=Global_1$1.Konva.getAngle(this.rotationSnapTolerance()),J=getSnap(this.rotationSnaps(),de,Z)-P.rotation,ne=rotateAroundCenter(P,J);this._fitNodesInto(ne,a);return}var C=this.shiftBehavior(),O;C==="inverted"?O=this.keepRatio()&&!a.shiftKey:C==="none"?O=this.keepRatio():O=this.keepRatio()||a.shiftKey;var M=this.centeredScaling()||a.altKey;if(this._movingAnchorName==="top-left"){if(O){var A=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};f=Math.sqrt(Math.pow(A.x-d.x(),2)+Math.pow(A.y-d.y(),2));var F=this.findOne(".top-left").x()>A.x?-1:1,j=this.findOne(".top-left").y()>A.y?-1:1;s=f*this.cos*F,c=f*this.sin*j,this.findOne(".top-left").x(A.x-s),this.findOne(".top-left").y(A.y-c)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(d.y());else if(this._movingAnchorName==="top-right"){if(O){var A=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};f=Math.sqrt(Math.pow(d.x()-A.x,2)+Math.pow(A.y-d.y(),2));var F=this.findOne(".top-right").x()A.y?-1:1;s=f*this.cos*F,c=f*this.sin*j,this.findOne(".top-right").x(A.x+s),this.findOne(".top-right").y(A.y-c)}var L=d.position();this.findOne(".top-left").y(L.y),this.findOne(".bottom-right").x(L.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(d.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(d.x());else if(this._movingAnchorName==="bottom-left"){if(O){var A=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};f=Math.sqrt(Math.pow(A.x-d.x(),2)+Math.pow(d.y()-A.y,2));var F=A.x{c._fire("transformend",{evt:a,target:c})}),this._movingAnchorName=null}}_fitNodesInto(a,s){var c=this._getNodeRect();const f=1;if(Util_1$3.Util._inRange(a.width,-this.padding()*2-f,f)){this.update();return}if(Util_1$3.Util._inRange(a.height,-this.padding()*2-f,f)){this.update();return}var d=new Util_1$3.Transform;if(d.rotate(Global_1$1.Konva.getAngle(this.rotation())),this._movingAnchorName&&a.width<0&&this._movingAnchorName.indexOf("left")>=0){const T=d.point({x:-this.padding()*2,y:0});a.x+=T.x,a.y+=T.y,a.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y}else if(this._movingAnchorName&&a.width<0&&this._movingAnchorName.indexOf("right")>=0){const T=d.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.width+=this.padding()*2}if(this._movingAnchorName&&a.height<0&&this._movingAnchorName.indexOf("top")>=0){const T=d.point({x:0,y:-this.padding()*2});a.x+=T.x,a.y+=T.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.height+=this.padding()*2}else if(this._movingAnchorName&&a.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const T=d.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.height+=this.padding()*2}if(this.boundBoxFunc()){const T=this.boundBoxFunc()(c,a);T?a=T:Util_1$3.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const y=1e7,_=new Util_1$3.Transform;_.translate(c.x,c.y),_.rotate(c.rotation),_.scale(c.width/y,c.height/y);const S=new Util_1$3.Transform,b=a.width/y,$=a.height/y;this.flipEnabled()===!1?(S.translate(a.x,a.y),S.rotate(a.rotation),S.translate(a.width<0?a.width:0,a.height<0?a.height:0),S.scale(Math.abs(b),Math.abs($))):(S.translate(a.x,a.y),S.rotate(a.rotation),S.scale(b,$));const P=S.multiply(_.invert());this._nodes.forEach(T=>{var C;const O=T.getParent().getAbsoluteTransform(),A=T.getTransform().copy();A.translate(T.offsetX(),T.offsetY());const F=new Util_1$3.Transform;F.multiply(O.copy().invert()).multiply(P).multiply(O).multiply(A);const j=F.decompose();T.setAttrs(j),this._fire("transform",{evt:s,target:T}),T._fire("transform",{evt:s,target:T}),(C=T.getLayer())===null||C===void 0||C.batchDraw()}),this.rotation(Util_1$3.Util._getRotation(a.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(a,s){this.findOne(a).setAttrs(s)}update(){var a,s=this._getNodeRect();this.rotation(Util_1$3.Util._getRotation(s.rotation));var c=s.width,f=s.height,d=this.enabledAnchors(),y=this.resizeEnabled(),_=this.padding(),S=this.anchorSize();const b=this.find("._anchor");b.forEach(P=>{P.setAttrs({width:S,height:S,offsetX:S/2,offsetY:S/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:S/2+_,offsetY:S/2+_,visible:y&&d.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:c/2,y:0,offsetY:S/2+_,visible:y&&d.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:c,y:0,offsetX:S/2-_,offsetY:S/2+_,visible:y&&d.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:f/2,offsetX:S/2+_,visible:y&&d.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:c,y:f/2,offsetX:S/2-_,visible:y&&d.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:f,offsetX:S/2+_,offsetY:S/2-_,visible:y&&d.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:c/2,y:f,offsetY:S/2-_,visible:y&&d.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:c,y:f,offsetX:S/2-_,offsetY:S/2-_,visible:y&&d.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:c/2,y:-this.rotateAnchorOffset()*Util_1$3.Util._sign(f)-_,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:c,height:f,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const $=this.anchorStyleFunc();$&&b.forEach(P=>{$(P)}),(a=this.getLayer())===null||a===void 0||a.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var a=this.findOne("."+this._movingAnchorName);a&&a.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),Group_1.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Node_1$f.Node.prototype.toObject.call(this)}clone(a){var s=Node_1$f.Node.prototype.clone.call(this,a);return s}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}Transformer$1.Transformer=Transformer;function validateAnchors(o){return o instanceof Array||Util_1$3.Util.warn("enabledAnchors value should be an array"),o instanceof Array&&o.forEach(function(a){ANCHORS_NAMES.indexOf(a)===-1&&Util_1$3.Util.warn("Unknown anchor name: "+a+". Available names are: "+ANCHORS_NAMES.join(", "))}),o||[]}Transformer.prototype.className="Transformer";(0,Global_2$1._registerNode)(Transformer);Factory_1$g.Factory.addGetterSetter(Transformer,"enabledAnchors",ANCHORS_NAMES,validateAnchors);Factory_1$g.Factory.addGetterSetter(Transformer,"flipEnabled",!0,(0,Validators_1$g.getBooleanValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"resizeEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"anchorSize",10,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"rotateEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"rotateLineVisible",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"rotationSnaps",[]);Factory_1$g.Factory.addGetterSetter(Transformer,"rotateAnchorOffset",50,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"rotateAnchorCursor","crosshair");Factory_1$g.Factory.addGetterSetter(Transformer,"rotationSnapTolerance",5,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStroke","rgb(0, 161, 255)");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStrokeWidth",1,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"anchorFill","white");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorCornerRadius",0,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderStroke","rgb(0, 161, 255)");Factory_1$g.Factory.addGetterSetter(Transformer,"borderStrokeWidth",1,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderDash");Factory_1$g.Factory.addGetterSetter(Transformer,"keepRatio",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"shiftBehavior","default");Factory_1$g.Factory.addGetterSetter(Transformer,"centeredScaling",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"ignoreStroke",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"padding",0,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"node");Factory_1$g.Factory.addGetterSetter(Transformer,"nodes");Factory_1$g.Factory.addGetterSetter(Transformer,"boundBoxFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorDragBoundFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStyleFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"shouldOverdrawWholeArea",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"useSingleNodeRotation",!0);Factory_1$g.Factory.backCompat(Transformer,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var Wedge$1={};Object.defineProperty(Wedge$1,"__esModule",{value:!0});Wedge$1.Wedge=void 0;const Factory_1$f=Factory,Shape_1=Shape,Global_1=Global,Validators_1$f=Validators,Global_2=Global;class Wedge extends Shape_1.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.radius(),0,Global_1.Konva.getAngle(this.angle()),this.clockwise()),a.lineTo(0,0),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius(a/2)}setHeight(a){this.radius(a/2)}}Wedge$1.Wedge=Wedge;Wedge.prototype.className="Wedge";Wedge.prototype._centroid=!0;Wedge.prototype._attrsAffectingSize=["radius"];(0,Global_2._registerNode)(Wedge);Factory_1$f.Factory.addGetterSetter(Wedge,"radius",0,(0,Validators_1$f.getNumberValidator)());Factory_1$f.Factory.addGetterSetter(Wedge,"angle",0,(0,Validators_1$f.getNumberValidator)());Factory_1$f.Factory.addGetterSetter(Wedge,"clockwise",!1);Factory_1$f.Factory.backCompat(Wedge,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var Blur$1={};Object.defineProperty(Blur$1,"__esModule",{value:!0});Blur$1.Blur=void 0;const Factory_1$e=Factory,Node_1$e=Node$1,Validators_1$e=Validators;function BlurStack(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var mul_table=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],shg_table=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function filterGaussBlurRGBA(o,a){var s=o.data,c=o.width,f=o.height,d,y,_,S,b,$,P,T,C,O,A,F,j,L,M,I,U,z,H,G,X,W,K,ie,ee=a+a+1,de=c-1,Z=f-1,Q=a+1,J=Q*(Q+1)/2,ne=new BlurStack,fe=null,le=ne,ae=null,ce=null,ge=mul_table[a],pe=shg_table[a];for(_=1;_>pe,K!==0?(K=255/K,s[$]=(T*ge>>pe)*K,s[$+1]=(C*ge>>pe)*K,s[$+2]=(O*ge>>pe)*K):s[$]=s[$+1]=s[$+2]=0,T-=F,C-=j,O-=L,A-=M,F-=ae.r,j-=ae.g,L-=ae.b,M-=ae.a,S=P+((S=d+a+1)>pe,K>0?(K=255/K,s[S]=(T*ge>>pe)*K,s[S+1]=(C*ge>>pe)*K,s[S+2]=(O*ge>>pe)*K):s[S]=s[S+1]=s[S+2]=0,T-=F,C-=j,O-=L,A-=M,F-=ae.r,j-=ae.g,L-=ae.b,M-=ae.a,S=d+((S=y+Q)0&&filterGaussBlurRGBA(a,s)};Blur$1.Blur=Blur;Factory_1$e.Factory.addGetterSetter(Node_1$e.Node,"blurRadius",0,(0,Validators_1$e.getNumberValidator)(),Factory_1$e.Factory.afterSetFilter);var Brighten$1={};Object.defineProperty(Brighten$1,"__esModule",{value:!0});Brighten$1.Brighten=void 0;const Factory_1$d=Factory,Node_1$d=Node$1,Validators_1$d=Validators,Brighten=function(o){var a=this.brightness()*255,s=o.data,c=s.length,f;for(f=0;f255?255:f,d=d<0?0:d>255?255:d,y=y<0?0:y>255?255:y,s[_]=f,s[_+1]=d,s[_+2]=y};Contrast$1.Contrast=Contrast;Factory_1$c.Factory.addGetterSetter(Node_1$c.Node,"contrast",0,(0,Validators_1$c.getNumberValidator)(),Factory_1$c.Factory.afterSetFilter);var Emboss$1={};Object.defineProperty(Emboss$1,"__esModule",{value:!0});Emboss$1.Emboss=void 0;const Factory_1$b=Factory,Node_1$b=Node$1,Util_1$2=Util,Validators_1$b=Validators,Emboss=function(o){var a=this.embossStrength()*10,s=this.embossWhiteLevel()*255,c=this.embossDirection(),f=this.embossBlend(),d=0,y=0,_=o.data,S=o.width,b=o.height,$=S*4,P=b;switch(c){case"top-left":d=-1,y=-1;break;case"top":d=-1,y=0;break;case"top-right":d=-1,y=1;break;case"right":d=0,y=1;break;case"bottom-right":d=1,y=1;break;case"bottom":d=1,y=0;break;case"bottom-left":d=1,y=-1;break;case"left":d=0,y=-1;break;default:Util_1$2.Util.error("Unknown emboss direction: "+c)}do{var T=(P-1)*$,C=d;P+C<1&&(C=0),P+C>b&&(C=0);var O=(P-1+C)*S*4,A=S;do{var F=T+(A-1)*4,j=y;A+j<1&&(j=0),A+j>S&&(j=0);var L=O+(A-1+j)*4,M=_[F]-_[L],I=_[F+1]-_[L+1],U=_[F+2]-_[L+2],z=M,H=z>0?z:-z,G=I>0?I:-I,X=U>0?U:-U;if(G>H&&(z=I),X>H&&(z=U),z*=a,f){var W=_[F]+z,K=_[F+1]+z,ie=_[F+2]+z;_[F]=W>255?255:W<0?0:W,_[F+1]=K>255?255:K<0?0:K,_[F+2]=ie>255?255:ie<0?0:ie}else{var ee=s-z;ee<0?ee=0:ee>255&&(ee=255),_[F]=_[F+1]=_[F+2]=ee}}while(--A)}while(--P)};Emboss$1.Emboss=Emboss;Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossStrength",.5,(0,Validators_1$b.getNumberValidator)(),Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossWhiteLevel",.5,(0,Validators_1$b.getNumberValidator)(),Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossDirection","top-left",null,Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossBlend",!1,null,Factory_1$b.Factory.afterSetFilter);var Enhance$1={};Object.defineProperty(Enhance$1,"__esModule",{value:!0});Enhance$1.Enhance=void 0;const Factory_1$a=Factory,Node_1$a=Node$1,Validators_1$a=Validators;function remap(o,a,s,c,f){var d=s-a,y=f-c,_;return d===0?c+y/2:y===0?c:(_=(o-a)/d,_=y*_+c,_)}const Enhance=function(o){var a=o.data,s=a.length,c=a[0],f=c,d,y=a[1],_=y,S,b=a[2],$=b,P,T,C=this.enhance();if(C!==0){for(T=0;Tf&&(f=d),S=a[T+1],S_&&(_=S),P=a[T+2],P$&&($=P);f===c&&(f=255,c=0),_===y&&(_=255,y=0),$===b&&($=255,b=0);var O,A,F,j,L,M,I,U,z;for(C>0?(A=f+C*(255-f),F=c-C*(c-0),L=_+C*(255-_),M=y-C*(y-0),U=$+C*(255-$),z=b-C*(b-0)):(O=(f+c)*.5,A=f+C*(f-O),F=c+C*(c-O),j=(_+y)*.5,L=_+C*(_-j),M=y+C*(y-j),I=($+b)*.5,U=$+C*($-I),z=b+C*(b-I)),T=0;Tj?F:j;var L=y,M=d,I,U,z=360/M*Math.PI/180,H,G;for(U=0;UM?L:M;var I=y,U=d,z,H,G=s.polarRotation||0,X,W;for($=0;$a&&(I=M,U=0,z=-1),f=0;f=0&&C=0&&O=0&&C=0&&O=255*4?255:0}return y}function smoothEdgeMask(o,a,s){for(var c=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],f=Math.round(Math.sqrt(c.length)),d=Math.floor(f/2),y=[],_=0;_=0&&C=0&&O=s))for(d=A;d=c||(y=(s*d+f)*4,_+=I[y+0],S+=I[y+1],b+=I[y+2],$+=I[y+3],M+=1);for(_=_/M,S=S/M,b=b/M,$=$/M,f=C;f=s))for(d=A;d=c||(y=(s*d+f)*4,I[y+0]=_,I[y+1]=S,I[y+2]=b,I[y+3]=$)}};Pixelate$1.Pixelate=Pixelate;Factory_1$4.Factory.addGetterSetter(Node_1$4.Node,"pixelSize",8,(0,Validators_1$4.getNumberValidator)(),Factory_1$4.Factory.afterSetFilter);var Posterize$1={};Object.defineProperty(Posterize$1,"__esModule",{value:!0});Posterize$1.Posterize=void 0;const Factory_1$3=Factory,Node_1$3=Node$1,Validators_1$3=Validators,Posterize=function(o){var a=Math.round(this.levels()*254)+1,s=o.data,c=s.length,f=255/a,d;for(d=0;d255?255:o<0?0:Math.round(o)});Factory_1$2.Factory.addGetterSetter(Node_1$2.Node,"green",0,function(o){return this._filterUpToDate=!1,o>255?255:o<0?0:Math.round(o)});Factory_1$2.Factory.addGetterSetter(Node_1$2.Node,"blue",0,Validators_1$2.RGBComponent,Factory_1$2.Factory.afterSetFilter);var RGBA$1={};Object.defineProperty(RGBA$1,"__esModule",{value:!0});RGBA$1.RGBA=void 0;const Factory_1$1=Factory,Node_1$1=Node$1,Validators_1$1=Validators,RGBA=function(o){var a=o.data,s=a.length,c=this.red(),f=this.green(),d=this.blue(),y=this.alpha(),_,S;for(_=0;_255?255:o<0?0:Math.round(o)});Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"green",0,function(o){return this._filterUpToDate=!1,o>255?255:o<0?0:Math.round(o)});Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"blue",0,Validators_1$1.RGBComponent,Factory_1$1.Factory.afterSetFilter);Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"alpha",1,function(o){return this._filterUpToDate=!1,o>1?1:o<0?0:o});var Sepia$1={};Object.defineProperty(Sepia$1,"__esModule",{value:!0});Sepia$1.Sepia=void 0;const Sepia=function(o){var a=o.data,s=a.length,c,f,d,y;for(c=0;c127&&(b=255-b),$>127&&($=255-$),P>127&&(P=255-P),a[S]=b,a[S+1]=$,a[S+2]=P}while(--_)}while(--d)};Solarize$1.Solarize=Solarize;var Threshold$1={};Object.defineProperty(Threshold$1,"__esModule",{value:!0});Threshold$1.Threshold=void 0;const Factory_1=Factory,Node_1=Node$1,Validators_1=Validators,Threshold=function(o){var a=this.threshold()*255,s=o.data,c=s.length,f;for(f=0;f{Ce.current=void 0,ge.current=void 0,ae.current=Pe});const Ve=reactExports.useMemo(()=>reactExports.createElement(M,_extends$f({},Pe,{ref:X})),[X,M,Pe]);return reactExports.useMemo(()=>O?reactExports.createElement(K.Provider,{value:le},Ve):Ve,[K,Ve,le])}const z=reactExports.memo(I);if(z.WrappedComponent=M,z.displayName=I.displayName=L,S){const G=reactExports.forwardRef(function(W,K){return reactExports.createElement(z,_extends$f({},W,{reactReduxForwardedRef:K}))});return G.displayName=L,G.WrappedComponent=M,hoistNonReactStatics(G,M)}return hoistNonReactStatics(z,M)}}function Provider({store:o,context:a,children:s,serverState:c,stabilityCheck:f="once",noopCheck:d="once"}){const y=reactExports.useMemo(()=>{const b=createSubscription(o);return{store:o,subscription:b,getServerState:c?()=>c:void 0,stabilityCheck:f,noopCheck:d}},[o,c,f,d]),_=reactExports.useMemo(()=>o.getState(),[o]);useIsomorphicLayoutEffect$2(()=>{const{subscription:b}=y;return b.onStateChange=b.notifyNestedSubs,b.trySubscribe(),_!==o.getState()&&b.notifyNestedSubs(),()=>{b.tryUnsubscribe(),b.onStateChange=void 0}},[y,_]);const S=a||ReactReduxContext;return reactExports.createElement(S.Provider,{value:y},s)}function createStoreHook(o=ReactReduxContext){const a=o===ReactReduxContext?useReduxContext:createReduxContextHook(o);return function(){const{store:c}=a();return c}}const useStore$2=createStoreHook();function createDispatchHook(o=ReactReduxContext){const a=o===ReactReduxContext?useStore$2:createStoreHook(o);return function(){return a().dispatch}}const useDispatch=createDispatchHook();initializeUseSelector(withSelectorExports.useSyncExternalStoreWithSelector);initializeConnect(shimExports.useSyncExternalStore);setBatch(reactDomExports.unstable_batchedUpdates);function _typeof$m(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$m=function(s){return typeof s}:_typeof$m=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$m(o)}function _classCallCheck$6(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(o,a){for(var s=0;s',a.insertBefore(s,a.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",o):o()}const consoleLogger={type:"logger",log(o){this.output("log",o)},warn(o){this.output("warn",o)},error(o){this.output("error",o)},output(o,a){console&&console[o]}};class Logger{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(a,s)}init(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=s.prefix||"i18next:",this.logger=a||consoleLogger,this.options=s,this.debug=s.debug}log(){for(var a=arguments.length,s=new Array(a),c=0;c{this.observers[c]=this.observers[c]||[],this.observers[c].push(s)}),this}off(a,s){if(this.observers[a]){if(!s){delete this.observers[a];return}this.observers[a]=this.observers[a].filter(c=>c!==s)}}emit(a){for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f{y(...c)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(y=>{y.apply(y,[a,...c])})}}function defer(){let o,a;const s=new Promise((c,f)=>{o=c,a=f});return s.resolve=o,s.reject=a,s}function makeString(o){return o==null?"":""+o}function copy$1(o,a,s){o.forEach(c=>{a[c]&&(s[c]=a[c])})}function getLastOfPath(o,a,s){function c(y){return y&&y.indexOf("###")>-1?y.replace(/###/g,"."):y}function f(){return!o||typeof o=="string"}const d=typeof a!="string"?[].concat(a):a.split(".");for(;d.length>1;){if(f())return{};const y=c(d.shift());!o[y]&&s&&(o[y]=new s),Object.prototype.hasOwnProperty.call(o,y)?o=o[y]:o={}}return f()?{}:{obj:o,k:c(d.shift())}}function setPath(o,a,s){const{obj:c,k:f}=getLastOfPath(o,a,Object);c[f]=s}function pushPath(o,a,s,c){const{obj:f,k:d}=getLastOfPath(o,a,Object);f[d]=f[d]||[],c&&(f[d]=f[d].concat(s)),c||f[d].push(s)}function getPath$1(o,a){const{obj:s,k:c}=getLastOfPath(o,a);if(s)return s[c]}function getPathWithDefaults(o,a,s){const c=getPath$1(o,s);return c!==void 0?c:getPath$1(a,s)}function deepExtend(o,a,s){for(const c in a)c!=="__proto__"&&c!=="constructor"&&(c in o?typeof o[c]=="string"||o[c]instanceof String||typeof a[c]=="string"||a[c]instanceof String?s&&(o[c]=a[c]):deepExtend(o[c],a[c],s):o[c]=a[c]);return o}function regexEscape(o){return o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function escape$1(o){return typeof o=="string"?o.replace(/[&<>"'\/]/g,a=>_entityMap[a]):o}const chars=[" ",",","?","!",";"];function looksLikeObjectPath(o,a,s){a=a||"",s=s||"";const c=chars.filter(y=>a.indexOf(y)<0&&s.indexOf(y)<0);if(c.length===0)return!0;const f=new RegExp(`(${c.map(y=>y==="?"?"\\?":y).join("|")})`);let d=!f.test(o);if(!d){const y=o.indexOf(s);y>0&&!f.test(o.substring(0,y))&&(d=!0)}return d}function deepFind(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!o)return;if(o[a])return o[a];const c=a.split(s);let f=o;for(let d=0;dd+y;)y++,_=c.slice(d,d+y).join(s),S=f[_];if(S===void 0)return;if(S===null)return null;if(a.endsWith(_)){if(typeof S=="string")return S;if(_&&typeof S[_]=="string")return S[_]}const b=c.slice(d+y).join(s);return b?deepFind(S,b,s):void 0}f=f[c[d]]}return f}function getCleanedCode(o){return o&&o.indexOf("_")>0?o.replace("_","-"):o}class ResourceStore extends EventEmitter{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=a||{},this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){const s=this.options.ns.indexOf(a);s>-1&&this.options.ns.splice(s,1)}getResource(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,y=f.ignoreJSONStructure!==void 0?f.ignoreJSONStructure:this.options.ignoreJSONStructure;let _=[a,s];c&&typeof c!="string"&&(_=_.concat(c)),c&&typeof c=="string"&&(_=_.concat(d?c.split(d):c)),a.indexOf(".")>-1&&(_=a.split("."));const S=getPath$1(this.data,_);return S||!y||typeof c!="string"?S:deepFind(this.data&&this.data[a]&&this.data[a][s],c,d)}addResource(a,s,c,f){let d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const y=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let _=[a,s];c&&(_=_.concat(y?c.split(y):c)),a.indexOf(".")>-1&&(_=a.split("."),f=s,s=_[1]),this.addNamespaces(s),setPath(this.data,_,f),d.silent||this.emit("added",a,s,c,f)}addResources(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const d in c)(typeof c[d]=="string"||Object.prototype.toString.apply(c[d])==="[object Array]")&&this.addResource(a,s,d,c[d],{silent:!0});f.silent||this.emit("added",a,s,c)}addResourceBundle(a,s,c,f,d){let y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},_=[a,s];a.indexOf(".")>-1&&(_=a.split("."),f=c,c=s,s=_[1]),this.addNamespaces(s);let S=getPath$1(this.data,_)||{};f?deepExtend(S,c,d):S=se(se({},S),c),setPath(this.data,_,S),y.silent||this.emit("added",a,s,c)}removeResourceBundle(a,s){this.hasResourceBundle(a,s)&&delete this.data[a][s],this.removeNamespaces(s),this.emit("removed",a,s)}hasResourceBundle(a,s){return this.getResource(a,s)!==void 0}getResourceBundle(a,s){return s||(s=this.options.defaultNS),this.options.compatibilityAPI==="v1"?se({},this.getResource(a,s)):this.getResource(a,s)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){const s=this.getDataByLanguage(a);return!!(s&&Object.keys(s)||[]).find(f=>s[f]&&Object.keys(s[f]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(o){this.processors[o.name]=o},handle(o,a,s,c,f){return o.forEach(d=>{this.processors[d]&&(a=this.processors[d].process(a,s,c,f))}),a}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy$1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(a==null)return!1;const c=this.resolve(a,s);return c&&c.res!==void 0}extractFromKey(a,s){let c=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const f=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let d=s.ns||this.options.defaultNS||[];const y=c&&a.indexOf(c)>-1,_=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!looksLikeObjectPath(a,c,f);if(y&&!_){const S=a.match(this.interpolator.nestingRegexp);if(S&&S.length>0)return{key:a,namespaces:d};const b=a.split(c);(c!==f||c===f&&this.options.ns.indexOf(b[0])>-1)&&(d=b.shift()),a=b.join(f)}return typeof d=="string"&&(d=[d]),{key:a,namespaces:d}}translate(a,s,c){if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s=se({},s)),s||(s={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);const f=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,d=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:y,namespaces:_}=this.extractFromKey(a[a.length-1],s),S=_[_.length-1],b=s.lng||this.language,$=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b&&b.toLowerCase()==="cimode"){if($){const I=s.nsSeparator||this.options.nsSeparator;return f?{res:`${S}${I}${y}`,usedKey:y,exactUsedKey:y,usedLng:b,usedNS:S,usedParams:this.getUsedParamsDetails(s)}:`${S}${I}${y}`}return f?{res:y,usedKey:y,exactUsedKey:y,usedLng:b,usedNS:S,usedParams:this.getUsedParamsDetails(s)}:y}const P=this.resolve(a,s);let T=P&&P.res;const C=P&&P.usedKey||y,O=P&&P.exactUsedKey||y,A=Object.prototype.toString.apply(T),M=["[object Number]","[object Function]","[object RegExp]"],j=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject;if(L&&T&&(typeof T!="string"&&typeof T!="boolean"&&typeof T!="number")&&M.indexOf(A)<0&&!(typeof j=="string"&&A==="[object Array]")){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,T,$e(se({},s),{ns:_})):`key '${y} (${this.language})' returned an object instead of string.`;return f?(P.res=I,P.usedParams=this.getUsedParamsDetails(s),P):I}if(d){const I=A==="[object Array]",U=I?[]:{},z=I?O:C;for(const H in T)if(Object.prototype.hasOwnProperty.call(T,H)){const G=`${z}${d}${H}`;U[H]=this.translate(G,$e(se({},s),{joinArrays:!1,ns:_})),U[H]===G&&(U[H]=T[H])}T=U}}else if(L&&typeof j=="string"&&A==="[object Array]")T=T.join(j),T&&(T=this.extendTranslation(T,a,s,c));else{let I=!1,U=!1;const z=s.count!==void 0&&typeof s.count!="string",H=Translator.hasDefaultValue(s),G=z?this.pluralResolver.getSuffix(b,s.count,s):"",X=s.ordinal&&z?this.pluralResolver.getSuffix(b,s.count,{ordinal:!1}):"",K=z&&!s.ordinal&&s.count===0&&this.pluralResolver.shouldUseIntlApi()&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${G}`]||s[`defaultValue${X}`]||s.defaultValue;!this.isValidLookup(T)&&H&&(I=!0,T=K),this.isValidLookup(T)||(U=!0,T=y);const ee=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&U?void 0:T,de=H&&K!==T&&this.options.updateMissing;if(U||I||de){if(this.logger.log(de?"updateKey":"missingKey",b,S,y,de?K:T),d){const ne=this.resolve(y,$e(se({},s),{keySeparator:!1}));ne&&ne.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Z=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let ne=0;ne{const ae=H&&le!==T?le:ee;this.options.missingKeyHandler?this.options.missingKeyHandler(ne,S,fe,ae,de,s):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ne,S,fe,ae,de,s),this.emit("missingKey",ne,S,fe,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&z?Z.forEach(ne=>{this.pluralResolver.getSuffixes(ne,s).forEach(fe=>{J([ne],y+fe,s[`defaultValue${fe}`]||K)})}):J(Z,y,K))}T=this.extendTranslation(T,a,s,P,c),U&&T===y&&this.options.appendNamespaceToMissingKey&&(T=`${S}:${y}`),(U||I)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${S}:${y}`:y,I?T:void 0):T=this.options.parseMissingKeyHandler(T))}return f?(P.res=T,P.usedParams=this.getUsedParamsDetails(s),P):T}extendTranslation(a,s,c,f,d){var y=this;if(this.i18nFormat&&this.i18nFormat.parse)a=this.i18nFormat.parse(a,se(se({},this.options.interpolation.defaultVariables),c),c.lng||this.language||f.usedLng,f.usedNS,f.usedKey,{resolved:f});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init($e(se({},c),{interpolation:se(se({},this.options.interpolation),c.interpolation)}));const b=typeof a=="string"&&(c&&c.interpolation&&c.interpolation.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let $;if(b){const T=a.match(this.interpolator.nestingRegexp);$=T&&T.length}let P=c.replace&&typeof c.replace!="string"?c.replace:c;if(this.options.interpolation.defaultVariables&&(P=se(se({},this.options.interpolation.defaultVariables),P)),a=this.interpolator.interpolate(a,P,c.lng||this.language,c),b){const T=a.match(this.interpolator.nestingRegexp),C=T&&T.length;$1&&arguments[1]!==void 0?arguments[1]:{},c,f,d,y,_;return typeof a=="string"&&(a=[a]),a.forEach(S=>{if(this.isValidLookup(c))return;const b=this.extractFromKey(S,s),$=b.key;f=$;let P=b.namespaces;this.options.fallbackNS&&(P=P.concat(this.options.fallbackNS));const T=s.count!==void 0&&typeof s.count!="string",C=T&&!s.ordinal&&s.count===0&&this.pluralResolver.shouldUseIntlApi(),O=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",A=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);P.forEach(M=>{this.isValidLookup(c)||(_=M,!checkedLoadedFor[`${A[0]}-${M}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(_)&&(checkedLoadedFor[`${A[0]}-${M}`]=!0,this.logger.warn(`key "${f}" for languages "${A.join(", ")}" won't get resolved as namespace "${_}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),A.forEach(j=>{if(this.isValidLookup(c))return;y=j;const L=[$];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(L,$,j,M,s);else{let I;T&&(I=this.pluralResolver.getSuffix(j,s.count,s));const U=`${this.options.pluralSeparator}zero`,z=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(L.push($+I),s.ordinal&&I.indexOf(z)===0&&L.push($+I.replace(z,this.options.pluralSeparator)),C&&L.push($+U)),O){const H=`${$}${this.options.contextSeparator}${s.context}`;L.push(H),T&&(L.push(H+I),s.ordinal&&I.indexOf(z)===0&&L.push(H+I.replace(z,this.options.pluralSeparator)),C&&L.push(H+U))}}let F;for(;F=L.pop();)this.isValidLookup(c)||(d=F,c=this.getResource(j,M,F,s))}))})}),{res:c,usedKey:f,exactUsedKey:d,usedLng:y,usedNS:_}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(a,s,c,f):this.resourceStore.getResource(a,s,c,f)}getUsedParamsDetails(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=a.replace&&typeof a.replace!="string";let f=c?a.replace:a;if(c&&typeof a.count!="undefined"&&(f.count=a.count),this.options.interpolation.defaultVariables&&(f=se(se({},this.options.interpolation.defaultVariables),f)),!c){f=se({},f);for(const d of s)delete f[d]}return f}static hasDefaultValue(a){const s="defaultValue";for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&s===c.substring(0,s.length)&&a[c]!==void 0)return!0;return!1}}function capitalize(o){return o.charAt(0).toUpperCase()+o.slice(1)}class LanguageUtil{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(a){if(a=getCleanedCode(a),!a||a.indexOf("-")<0)return null;const s=a.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(a){if(a=getCleanedCode(a),!a||a.indexOf("-")<0)return a;const s=a.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(a){if(typeof a=="string"&&a.indexOf("-")>-1){const s=["hans","hant","latn","cyrl","cans","mong","arab"];let c=a.split("-");return this.options.lowerCaseLng?c=c.map(f=>f.toLowerCase()):c.length===2?(c[0]=c[0].toLowerCase(),c[1]=c[1].toUpperCase(),s.indexOf(c[1].toLowerCase())>-1&&(c[1]=capitalize(c[1].toLowerCase()))):c.length===3&&(c[0]=c[0].toLowerCase(),c[1].length===2&&(c[1]=c[1].toUpperCase()),c[0]!=="sgn"&&c[2].length===2&&(c[2]=c[2].toUpperCase()),s.indexOf(c[1].toLowerCase())>-1&&(c[1]=capitalize(c[1].toLowerCase())),s.indexOf(c[2].toLowerCase())>-1&&(c[2]=capitalize(c[2].toLowerCase()))),c.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let s;return a.forEach(c=>{if(s)return;const f=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(f))&&(s=f)}),!s&&this.options.supportedLngs&&a.forEach(c=>{if(s)return;const f=this.getLanguagePartFromCode(c);if(this.isSupportedCode(f))return s=f;s=this.options.supportedLngs.find(d=>{if(d===f)return d;if(!(d.indexOf("-")<0&&f.indexOf("-")<0)&&d.indexOf(f)===0)return d})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(a,s){if(!a)return[];if(typeof a=="function"&&(a=a(s)),typeof a=="string"&&(a=[a]),Object.prototype.toString.apply(a)==="[object Array]")return a;if(!s)return a.default||[];let c=a[s];return c||(c=a[this.getScriptPartFromCode(s)]),c||(c=a[this.formatLanguageCode(s)]),c||(c=a[this.getLanguagePartFromCode(s)]),c||(c=a.default),c||[]}toResolveHierarchy(a,s){const c=this.getFallbackCodes(s||this.options.fallbackLng||[],a),f=[],d=y=>{y&&(this.isSupportedCode(y)?f.push(y):this.logger.warn(`rejecting language code not found in supportedLngs: ${y}`))};return typeof a=="string"&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(a))):typeof a=="string"&&d(this.formatLanguageCode(a)),c.forEach(y=>{f.indexOf(y)<0&&d(this.formatLanguageCode(y))}),f}}let sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function(o){return+(o>1)},2:function(o){return+(o!=1)},3:function(o){return 0},4:function(o){return o%10==1&&o%100!=11?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2},5:function(o){return o==0?0:o==1?1:o==2?2:o%100>=3&&o%100<=10?3:o%100>=11?4:5},6:function(o){return o==1?0:o>=2&&o<=4?1:2},7:function(o){return o==1?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2},8:function(o){return o==1?0:o==2?1:o!=8&&o!=11?2:3},9:function(o){return+(o>=2)},10:function(o){return o==1?0:o==2?1:o<7?2:o<11?3:4},11:function(o){return o==1||o==11?0:o==2||o==12?1:o>2&&o<20?2:3},12:function(o){return+(o%10!=1||o%100==11)},13:function(o){return+(o!==0)},14:function(o){return o==1?0:o==2?1:o==3?2:3},15:function(o){return o%10==1&&o%100!=11?0:o%10>=2&&(o%100<10||o%100>=20)?1:2},16:function(o){return o%10==1&&o%100!=11?0:o!==0?1:2},17:function(o){return o==1||o%10==1&&o%100!=11?0:1},18:function(o){return o==0?0:o==1?1:2},19:function(o){return o==1?0:o==0||o%100>1&&o%100<11?1:o%100>10&&o%100<20?2:3},20:function(o){return o==1?0:o==0||o%100>0&&o%100<20?1:2},21:function(o){return o%100==1?1:o%100==2?2:o%100==3||o%100==4?3:0},22:function(o){return o==1?0:o==2?1:(o<0||o>10)&&o%10==0?2:3}};const nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const o={};return sets.forEach(a=>{a.lngs.forEach(s=>{o[s]={numbers:a.nr,plurals:_rulesPluralsTypes[a.fc]}})}),o}class PluralResolver{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=a,this.options=s,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}addRule(a,s){this.rules[a]=s}getRule(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(a),{type:s.ordinal?"ordinal":"cardinal"})}catch(c){return}return this.rules[a]||this.rules[this.languageUtils.getLanguagePartFromCode(a)]}needsPlural(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const c=this.getRule(a,s);return this.shouldUseIntlApi()?c&&c.resolvedOptions().pluralCategories.length>1:c&&c.numbers.length>1}getPluralFormsOfKey(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(a,c).map(f=>`${s}${f}`)}getSuffixes(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const c=this.getRule(a,s);return c?this.shouldUseIntlApi()?c.resolvedOptions().pluralCategories.sort((f,d)=>suffixesOrder[f]-suffixesOrder[d]).map(f=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${f}`):c.numbers.map(f=>this.getSuffix(a,f,s)):[]}getSuffix(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const f=this.getRule(a,c);return f?this.shouldUseIntlApi()?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${f.select(s)}`:this.getSuffixRetroCompatible(f,s):(this.logger.warn(`no plural rule found for: ${a}`),"")}getSuffixRetroCompatible(a,s){const c=a.noAbs?a.plurals(s):a.plurals(Math.abs(s));let f=a.numbers[c];this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1&&(f===2?f="plural":f===1&&(f=""));const d=()=>this.options.prepend&&f.toString()?this.options.prepend+f.toString():f.toString();return this.options.compatibilityJSON==="v1"?f===1?"":typeof f=="number"?`_plural_${f.toString()}`:d():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1?d():this.options.prepend&&c.toString()?this.options.prepend+c.toString():c.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults(o,a,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,d=getPathWithDefaults(o,a,s);return!d&&f&&typeof s=="string"&&(d=deepFind(o,s,c),d===void 0&&(d=deepFind(a,s,c))),d}class Interpolator{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=a,this.format=a.interpolation&&a.interpolation.format||(s=>s),this.init(a)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};a.interpolation||(a.interpolation={escapeValue:!0});const s=a.interpolation;this.escape=s.escape!==void 0?s.escape:escape$1,this.escapeValue=s.escapeValue!==void 0?s.escapeValue:!0,this.useRawValueToEscape=s.useRawValueToEscape!==void 0?s.useRawValueToEscape:!1,this.prefix=s.prefix?regexEscape(s.prefix):s.prefixEscaped||"{{",this.suffix=s.suffix?regexEscape(s.suffix):s.suffixEscaped||"}}",this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||",",this.unescapePrefix=s.unescapeSuffix?"":s.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":s.unescapeSuffix||"",this.nestingPrefix=s.nestingPrefix?regexEscape(s.nestingPrefix):s.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=s.nestingSuffix?regexEscape(s.nestingSuffix):s.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=s.nestingOptionsSeparator?s.nestingOptionsSeparator:s.nestingOptionsSeparator||",",this.maxReplaces=s.maxReplaces?s.maxReplaces:1e3,this.alwaysFormat=s.alwaysFormat!==void 0?s.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const a=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(a,"g");const s=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(s,"g");const c=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(c,"g")}interpolate(a,s,c,f){let d,y,_;const S=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function b(O){return O.replace(/\$/g,"$$$$")}const $=O=>{if(O.indexOf(this.formatSeparator)<0){const L=deepFindWithDefaults(s,S,O,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(L,void 0,c,$e(se(se({},f),s),{interpolationkey:O})):L}const A=O.split(this.formatSeparator),M=A.shift().trim(),j=A.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(s,S,M,this.options.keySeparator,this.options.ignoreJSONStructure),j,c,$e(se(se({},f),s),{interpolationkey:M}))};this.resetRegExp();const P=f&&f.missingInterpolationHandler||this.options.missingInterpolationHandler,T=f&&f.interpolation&&f.interpolation.skipOnVariables!==void 0?f.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:O=>b(O)},{regex:this.regexp,safeValue:O=>this.escapeValue?b(this.escape(O)):b(O)}].forEach(O=>{for(_=0;d=O.regex.exec(a);){const A=d[1].trim();if(y=$(A),y===void 0)if(typeof P=="function"){const j=P(a,d,f);y=typeof j=="string"?j:""}else if(f&&Object.prototype.hasOwnProperty.call(f,A))y="";else if(T){y=d[0];continue}else this.logger.warn(`missed to pass in variable ${A} for interpolating ${a}`),y="";else typeof y!="string"&&!this.useRawValueToEscape&&(y=makeString(y));const M=O.safeValue(y);if(a=a.replace(d[0],M),T?(O.regex.lastIndex+=y.length,O.regex.lastIndex-=d[0].length):O.regex.lastIndex=0,_++,_>=this.maxReplaces)break}}),a}nest(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f,d,y;function _(S,b){const $=this.nestingOptionsSeparator;if(S.indexOf($)<0)return S;const P=S.split(new RegExp(`${$}[ ]*{`));let T=`{${P[1]}`;S=P[0],T=this.interpolate(T,y);const C=T.match(/'/g),O=T.match(/"/g);(C&&C.length%2===0&&!O||O.length%2!==0)&&(T=T.replace(/'/g,'"'));try{y=JSON.parse(T),b&&(y=se(se({},b),y))}catch(A){return this.logger.warn(`failed parsing options string in nesting for key ${S}`,A),`${S}${$}${T}`}return delete y.defaultValue,S}for(;f=this.nestingRegexp.exec(a);){let S=[];y=se({},c),y=y.replace&&typeof y.replace!="string"?y.replace:y,y.applyPostProcessor=!1,delete y.defaultValue;let b=!1;if(f[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(f[1])){const $=f[1].split(this.formatSeparator).map(P=>P.trim());f[1]=$.shift(),S=$,b=!0}if(d=s(_.call(this,f[1].trim(),y),y),d&&f[0]===a&&typeof d!="string")return d;typeof d!="string"&&(d=makeString(d)),d||(this.logger.warn(`missed to resolve ${f[1]} for nesting ${a}`),d=""),b&&(d=S.reduce(($,P)=>this.format($,P,c.lng,$e(se({},c),{interpolationkey:f[1].trim()})),d.trim())),a=a.replace(f[0],d),this.regexp.lastIndex=0}return a}}function parseFormatStr(o){let a=o.toLowerCase().trim();const s={};if(o.indexOf("(")>-1){const c=o.split("(");a=c[0].toLowerCase().trim();const f=c[1].substring(0,c[1].length-1);a==="currency"&&f.indexOf(":")<0?s.currency||(s.currency=f.trim()):a==="relativetime"&&f.indexOf(":")<0?s.range||(s.range=f.trim()):f.split(";").forEach(y=>{if(!y)return;const[_,...S]=y.split(":"),b=S.join(":").trim().replace(/^'+|'+$/g,"");s[_.trim()]||(s[_.trim()]=b),b==="false"&&(s[_.trim()]=!1),b==="true"&&(s[_.trim()]=!0),isNaN(b)||(s[_.trim()]=parseInt(b,10))})}return{formatName:a,formatOptions:s}}function createCachedFormatter(o){const a={};return function(c,f,d){const y=f+JSON.stringify(d);let _=a[y];return _||(_=o(getCleanedCode(f),d),a[y]=_),_(c)}}class Formatter{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=a,this.formats={number:createCachedFormatter((s,c)=>{const f=new Intl.NumberFormat(s,se({},c));return d=>f.format(d)}),currency:createCachedFormatter((s,c)=>{const f=new Intl.NumberFormat(s,$e(se({},c),{style:"currency"}));return d=>f.format(d)}),datetime:createCachedFormatter((s,c)=>{const f=new Intl.DateTimeFormat(s,se({},c));return d=>f.format(d)}),relativetime:createCachedFormatter((s,c)=>{const f=new Intl.RelativeTimeFormat(s,se({},c));return d=>f.format(d,c.range||"day")}),list:createCachedFormatter((s,c)=>{const f=new Intl.ListFormat(s,se({},c));return d=>f.format(d)})},this.init(a)}init(a){const c=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=c.formatSeparator?c.formatSeparator:c.formatSeparator||","}add(a,s){this.formats[a.toLowerCase().trim()]=s}addCached(a,s){this.formats[a.toLowerCase().trim()]=createCachedFormatter(s)}format(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return s.split(this.formatSeparator).reduce((_,S)=>{const{formatName:b,formatOptions:$}=parseFormatStr(S);if(this.formats[b]){let P=_;try{const T=f&&f.formatParams&&f.formatParams[f.interpolationkey]||{},C=T.locale||T.lng||f.locale||f.lng||c;P=this.formats[b](_,C,se(se(se({},$),f),T))}catch(T){this.logger.warn(T)}return P}else this.logger.warn(`there was no format function for ${b}`);return _},a)}}function removePending(o,a){o.pending[a]!==void 0&&(delete o.pending[a],o.pendingCount--)}class Connector extends EventEmitter{constructor(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=a,this.store=s,this.services=c,this.languageUtils=c.languageUtils,this.options=f,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=f.maxParallelReads||10,this.readingCalls=0,this.maxRetries=f.maxRetries>=0?f.maxRetries:5,this.retryTimeout=f.retryTimeout>=1?f.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(c,f.backend,f)}queueLoad(a,s,c,f){const d={},y={},_={},S={};return a.forEach(b=>{let $=!0;s.forEach(P=>{const T=`${b}|${P}`;!c.reload&&this.store.hasResourceBundle(b,P)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?y[T]===void 0&&(y[T]=!0):(this.state[T]=1,$=!1,y[T]===void 0&&(y[T]=!0),d[T]===void 0&&(d[T]=!0),S[P]===void 0&&(S[P]=!0)))}),$||(_[b]=!0)}),(Object.keys(d).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:f}),{toLoad:Object.keys(d),pending:Object.keys(y),toLoadLanguages:Object.keys(_),toLoadNamespaces:Object.keys(S)}}loaded(a,s,c){const f=a.split("|"),d=f[0],y=f[1];s&&this.emit("failedLoading",d,y,s),c&&this.store.addResourceBundle(d,y,c),this.state[a]=s?-1:2;const _={};this.queue.forEach(S=>{pushPath(S.loaded,[d],y),removePending(S,a),s&&S.errors.push(s),S.pendingCount===0&&!S.done&&(Object.keys(S.loaded).forEach(b=>{_[b]||(_[b]={});const $=S.loaded[b];$.length&&$.forEach(P=>{_[b][P]===void 0&&(_[b][P]=!0)})}),S.done=!0,S.errors.length?S.callback(S.errors):S.callback())}),this.emit("loaded",_),this.queue=this.queue.filter(S=>!S.done)}read(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!a.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:s,fcName:c,tried:f,wait:d,callback:y});return}this.readingCalls++;const _=(b,$)=>{if(this.readingCalls--,this.waitingReads.length>0){const P=this.waitingReads.shift();this.read(P.lng,P.ns,P.fcName,P.tried,P.wait,P.callback)}if(b&&$&&f{this.read.call(this,a,s,c,f+1,d*2,y)},d);return}y(b,$)},S=this.backend[c].bind(this.backend);if(S.length===2){try{const b=S(a,s);b&&typeof b.then=="function"?b.then($=>_(null,$)).catch(_):_(null,b)}catch(b){_(b)}return}return S(a,s,_)}prepareLoading(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();typeof a=="string"&&(a=this.languageUtils.toResolveHierarchy(a)),typeof s=="string"&&(s=[s]);const d=this.queueLoad(a,s,c,f);if(!d.toLoad.length)return d.pending.length||f(),null;d.toLoad.forEach(y=>{this.loadOne(y)})}load(a,s,c){this.prepareLoading(a,s,{},c)}reload(a,s,c){this.prepareLoading(a,s,{reload:!0},c)}loadOne(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const c=a.split("|"),f=c[0],d=c[1];this.read(f,d,"read",void 0,void 0,(y,_)=>{y&&this.logger.warn(`${s}loading namespace ${d} for language ${f} failed`,y),!y&&_&&this.logger.log(`${s}loaded namespace ${d} for language ${f}`,_),this.loaded(a,y,_)})}saveMissing(a,s,c,f,d){let y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},_=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(s)){this.logger.warn(`did not save key "${c}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(c==null||c==="")){if(this.backend&&this.backend.create){const S=$e(se({},y),{isUpdate:d}),b=this.backend.create.bind(this.backend);if(b.length<6)try{let $;b.length===5?$=b(a,s,c,f,S):$=b(a,s,c,f),$&&typeof $.then=="function"?$.then(P=>_(null,P)).catch(_):_(null,$)}catch($){_($)}else b(a,s,c,f,_,S)}!a||!a[0]||this.store.addResource(a[0],s,c,f)}}}function get$1(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(a){let s={};if(typeof a[1]=="object"&&(s=a[1]),typeof a[1]=="string"&&(s.defaultValue=a[1]),typeof a[2]=="string"&&(s.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const c=a[3]||a[2];Object.keys(c).forEach(f=>{s[f]=c[f]})}return s},interpolation:{escapeValue:!0,format:o=>o,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(o){return typeof o.ns=="string"&&(o.ns=[o.ns]),typeof o.fallbackLng=="string"&&(o.fallbackLng=[o.fallbackLng]),typeof o.fallbackNS=="string"&&(o.fallbackNS=[o.fallbackNS]),o.supportedLngs&&o.supportedLngs.indexOf("cimode")<0&&(o.supportedLngs=o.supportedLngs.concat(["cimode"])),o}function noop$5(){}function bindMemberFunctions(o){Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach(s=>{typeof o[s]=="function"&&(o[s]=o[s].bind(o))})}class I18n extends EventEmitter{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(a),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),s&&!this.isInitialized&&!a.isClone){if(!this.options.initImmediate)return this.init(a,s),this;setTimeout(()=>{this.init(a,s)},0)}}init(){var a=this;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;typeof s=="function"&&(c=s,s={}),!s.defaultNS&&s.defaultNS!==!1&&s.ns&&(typeof s.ns=="string"?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));const f=get$1();this.options=se(se(se({},f),this.options),transformOptions(s)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=se(se({},f.interpolation),this.options.interpolation)),s.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=s.keySeparator),s.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=s.nsSeparator);function d($){return $?typeof $=="function"?new $:$:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(d(this.modules.logger),this.options):baseLogger.init(null,this.options);let $;this.modules.formatter?$=this.modules.formatter:typeof Intl!="undefined"&&($=Formatter);const P=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const T=this.services;T.logger=baseLogger,T.resourceStore=this.store,T.languageUtils=P,T.pluralResolver=new PluralResolver(P,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),$&&(!this.options.interpolation.format||this.options.interpolation.format===f.interpolation.format)&&(T.formatter=d($),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new Interpolator(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new Connector(d(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(C){for(var O=arguments.length,A=new Array(O>1?O-1:0),M=1;M1?O-1:0),M=1;M{C.init&&C.init(this)})}if(this.format=this.options.interpolation.format,c||(c=noop$5),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const $=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);$.length>0&&$[0]!=="dev"&&(this.options.lng=$[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach($=>{this[$]=function(){return a.store[$](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach($=>{this[$]=function(){return a.store[$](...arguments),a}});const S=defer(),b=()=>{const $=(P,T)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),S.resolve(T),c(P,T)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return $(null,this.t.bind(this));this.changeLanguage(this.options.lng,$)};return this.options.resources||!this.options.initImmediate?b():setTimeout(b,0),S}loadResources(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$5;const f=typeof a=="string"?a:this.language;if(typeof a=="function"&&(c=a),!this.options.resources||this.options.partialBundledLanguages){if(f&&f.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const d=[],y=_=>{if(!_||_==="cimode")return;this.services.languageUtils.toResolveHierarchy(_).forEach(b=>{b!=="cimode"&&d.indexOf(b)<0&&d.push(b)})};f?y(f):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(S=>y(S)),this.options.preload&&this.options.preload.forEach(_=>y(_)),this.services.backendConnector.load(d,this.options.ns,_=>{!_&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(_)})}else c(null)}reloadResources(a,s,c){const f=defer();return a||(a=this.languages),s||(s=this.options.ns),c||(c=noop$5),this.services.backendConnector.reload(a,s,d=>{f.resolve(),c(d)}),f}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&postProcessor.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1))for(let s=0;s-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}}changeLanguage(a,s){var c=this;this.isLanguageChangingTo=a;const f=defer();this.emit("languageChanging",a);const d=S=>{this.language=S,this.languages=this.services.languageUtils.toResolveHierarchy(S),this.resolvedLanguage=void 0,this.setResolvedLanguage(S)},y=(S,b)=>{b?(d(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,f.resolve(function(){return c.t(...arguments)}),s&&s(S,function(){return c.t(...arguments)})},_=S=>{!a&&!S&&this.services.languageDetector&&(S=[]);const b=typeof S=="string"?S:this.services.languageUtils.getBestMatchFromCodes(S);b&&(this.language||d(b),this.translator.language||this.translator.changeLanguage(b),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(b)),this.loadResources(b,$=>{y($,b)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?_(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(_):this.services.languageDetector.detect(_):_(a),f}getFixedT(a,s,c){var f=this;const d=function(y,_){let S;if(typeof _!="object"){for(var b=arguments.length,$=new Array(b>2?b-2:0),P=2;P`${S.keyPrefix}${T}${O}`):C=S.keyPrefix?`${S.keyPrefix}${T}${y}`:y,f.t(C,S)};return typeof a=="string"?d.lng=a:d.lngs=a,d.ns=s,d.keyPrefix=c,d}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const c=s.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const y=(_,S)=>{const b=this.services.backendConnector.state[`${_}|${S}`];return b===-1||b===2};if(s.precheck){const _=s.precheck(this,y);if(_!==void 0)return _}return!!(this.hasResourceBundle(c,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(c,a)&&(!f||y(d,a)))}loadNamespaces(a,s){const c=defer();return this.options.ns?(typeof a=="string"&&(a=[a]),a.forEach(f=>{this.options.ns.indexOf(f)<0&&this.options.ns.push(f)}),this.loadResources(f=>{c.resolve(),s&&s(f)}),c):(s&&s(),Promise.resolve())}loadLanguages(a,s){const c=defer();typeof a=="string"&&(a=[a]);const f=this.options.preload||[],d=a.filter(y=>f.indexOf(y)<0);return d.length?(this.options.preload=f.concat(d),this.loadResources(y=>{c.resolve(),s&&s(y)}),c):(s&&s(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!a)return"rtl";const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],c=this.services&&this.services.languageUtils||new LanguageUtil(get$1());return s.indexOf(c.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;return new I18n(a,s)}cloneInstance(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$5;const c=a.forkResourceStore;c&&delete a.forkResourceStore;const f=$e(se(se({},this.options),a),{isClone:!0}),d=new I18n(f);return(a.debug!==void 0||a.prefix!==void 0)&&(d.logger=d.logger.clone(a)),["store","services","language"].forEach(_=>{d[_]=this[_]}),d.services=se({},this.services),d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},c&&(d.store=new ResourceStore(this.store.data,f),d.services.resourceStore=d.store),d.translator=new Translator(d.services,f),d.translator.on("*",function(_){for(var S=arguments.length,b=new Array(S>1?S-1:0),$=1;$-1};function T(Z){if(typeof Z!="string"&&(Z=String(Z)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(Z)||Z==="")throw new TypeError('Invalid character in header field name: "'+Z+'"');return Z.toLowerCase()}function C(Z){return typeof Z!="string"&&(Z=String(Z)),Z}function O(Z){var Q={next:function(){var J=Z.shift();return{done:J===void 0,value:J}}};return S.iterable&&(Q[Symbol.iterator]=function(){return Q}),Q}function A(Z){this.map={},Z instanceof A?Z.forEach(function(Q,J){this.append(J,Q)},this):Array.isArray(Z)?Z.forEach(function(Q){this.append(Q[0],Q[1])},this):Z&&Object.getOwnPropertyNames(Z).forEach(function(Q){this.append(Q,Z[Q])},this)}A.prototype.append=function(Z,Q){Z=T(Z),Q=C(Q);var J=this.map[Z];this.map[Z]=J?J+", "+Q:Q},A.prototype.delete=function(Z){delete this.map[T(Z)]},A.prototype.get=function(Z){return Z=T(Z),this.has(Z)?this.map[Z]:null},A.prototype.has=function(Z){return this.map.hasOwnProperty(T(Z))},A.prototype.set=function(Z,Q){this.map[T(Z)]=C(Q)},A.prototype.forEach=function(Z,Q){for(var J in this.map)this.map.hasOwnProperty(J)&&Z.call(Q,this.map[J],J,this)},A.prototype.keys=function(){var Z=[];return this.forEach(function(Q,J){Z.push(J)}),O(Z)},A.prototype.values=function(){var Z=[];return this.forEach(function(Q){Z.push(Q)}),O(Z)},A.prototype.entries=function(){var Z=[];return this.forEach(function(Q,J){Z.push([J,Q])}),O(Z)},S.iterable&&(A.prototype[Symbol.iterator]=A.prototype.entries);function M(Z){if(Z.bodyUsed)return Promise.reject(new TypeError("Already read"));Z.bodyUsed=!0}function j(Z){return new Promise(function(Q,J){Z.onload=function(){Q(Z.result)},Z.onerror=function(){J(Z.error)}})}function L(Z){var Q=new FileReader,J=j(Q);return Q.readAsArrayBuffer(Z),J}function F(Z){var Q=new FileReader,J=j(Q);return Q.readAsText(Z),J}function I(Z){for(var Q=new Uint8Array(Z),J=new Array(Q.length),ne=0;ne-1?Q:Z}function X(Z,Q){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Q=Q||{};var J=Q.body;if(Z instanceof X){if(Z.bodyUsed)throw new TypeError("Already read");this.url=Z.url,this.credentials=Z.credentials,Q.headers||(this.headers=new A(Z.headers)),this.method=Z.method,this.mode=Z.mode,this.signal=Z.signal,!J&&Z._bodyInit!=null&&(J=Z._bodyInit,Z.bodyUsed=!0)}else this.url=String(Z);if(this.credentials=Q.credentials||this.credentials||"same-origin",(Q.headers||!this.headers)&&(this.headers=new A(Q.headers)),this.method=G(Q.method||this.method||"GET"),this.mode=Q.mode||this.mode||null,this.signal=Q.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&J)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(J),(this.method==="GET"||this.method==="HEAD")&&(Q.cache==="no-store"||Q.cache==="no-cache")){var ne=/([?&])_=[^&]*/;if(ne.test(this.url))this.url=this.url.replace(ne,"$1_="+new Date().getTime());else{var fe=/\?/;this.url+=(fe.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}X.prototype.clone=function(){return new X(this,{body:this._bodyInit})};function W(Z){var Q=new FormData;return Z.trim().split("&").forEach(function(J){if(J){var ne=J.split("="),fe=ne.shift().replace(/\+/g," "),le=ne.join("=").replace(/\+/g," ");Q.append(decodeURIComponent(fe),decodeURIComponent(le))}}),Q}function K(Z){var Q=new A,J=Z.replace(/\r?\n[\t ]+/g," ");return J.split("\r").map(function(ne){return ne.indexOf(` +`)===0?ne.substr(1,ne.length):ne}).forEach(function(ne){var fe=ne.split(":"),le=fe.shift().trim();if(le){var ae=fe.join(":").trim();Q.append(le,ae)}}),Q}z.call(X.prototype);function ie(Z,Q){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Q||(Q={}),this.type="default",this.status=Q.status===void 0?200:Q.status,this.ok=this.status>=200&&this.status<300,this.statusText=Q.statusText===void 0?"":""+Q.statusText,this.headers=new A(Q.headers),this.url=Q.url||"",this._initBody(Z)}z.call(ie.prototype),ie.prototype.clone=function(){return new ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},ie.error=function(){var Z=new ie(null,{status:0,statusText:""});return Z.type="error",Z};var ee=[301,302,303,307,308];ie.redirect=function(Z,Q){if(ee.indexOf(Q)===-1)throw new RangeError("Invalid status code");return new ie(null,{status:Q,headers:{location:Z}})},y.DOMException=_.DOMException;try{new y.DOMException}catch(Z){y.DOMException=function(Q,J){this.message=Q,this.name=J;var ne=Error(Q);this.stack=ne.stack},y.DOMException.prototype=Object.create(Error.prototype),y.DOMException.prototype.constructor=y.DOMException}function de(Z,Q){return new Promise(function(J,ne){var fe=new X(Z,Q);if(fe.signal&&fe.signal.aborted)return ne(new y.DOMException("Aborted","AbortError"));var le=new XMLHttpRequest;function ae(){le.abort()}le.onload=function(){var ge={status:le.status,statusText:le.statusText,headers:K(le.getAllResponseHeaders()||"")};ge.url="responseURL"in le?le.responseURL:ge.headers.get("X-Request-URL");var pe="response"in le?le.response:le.responseText;setTimeout(function(){J(new ie(pe,ge))},0)},le.onerror=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},le.ontimeout=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},le.onabort=function(){setTimeout(function(){ne(new y.DOMException("Aborted","AbortError"))},0)};function ce(ge){try{return ge===""&&_.location.href?_.location.href:ge}catch(pe){return ge}}le.open(fe.method,ce(fe.url),!0),fe.credentials==="include"?le.withCredentials=!0:fe.credentials==="omit"&&(le.withCredentials=!1),"responseType"in le&&(S.blob?le.responseType="blob":S.arrayBuffer&&fe.headers.get("Content-Type")&&fe.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(le.responseType="arraybuffer")),Q&&typeof Q.headers=="object"&&!(Q.headers instanceof A)?Object.getOwnPropertyNames(Q.headers).forEach(function(ge){le.setRequestHeader(ge,C(Q.headers[ge]))}):fe.headers.forEach(function(ge,pe){le.setRequestHeader(pe,ge)}),fe.signal&&(fe.signal.addEventListener("abort",ae),le.onreadystatechange=function(){le.readyState===4&&fe.signal.removeEventListener("abort",ae)}),le.send(typeof fe._bodyInit=="undefined"?null:fe._bodyInit)})}return de.polyfill=!0,_.fetch||(_.fetch=de,_.Headers=A,_.Request=X,_.Response=ie),y.Headers=A,y.Request=X,y.Response=ie,y.fetch=de,y})({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var f=s.fetch?s:c;a=f.fetch,a.default=f.fetch,a.fetch=f.fetch,a.Headers=f.Headers,a.Request=f.Request,a.Response=f.Response,o.exports=a}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}(function(o,a){var s;if(typeof fetch=="function"&&(typeof commonjsGlobal!="undefined"&&commonjsGlobal.fetch?s=commonjsGlobal.fetch:typeof window!="undefined"&&window.fetch?s=window.fetch:s=fetch),typeof commonjsRequire!="undefined"&&(typeof window=="undefined"||typeof window.document=="undefined")){var c=s||requireBrowserPonyfill();c.default&&(c=c.default),a.default=c,o.exports=a.default}})(getFetch$1,getFetch$1.exports);var getFetchExports=getFetch$1.exports;const getFetch=getDefaultExportFromCjs(getFetchExports),fetchNode=_mergeNamespaces({__proto__:null,default:getFetch},[getFetchExports]);function _typeof$k(o){"@babel/helpers - typeof";return _typeof$k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$k(o)}var fetchApi;typeof fetch=="function"&&(typeof global!="undefined"&&global.fetch?fetchApi=global.fetch:typeof window!="undefined"&&window.fetch?fetchApi=window.fetch:fetchApi=fetch);var XmlHttpRequestApi;hasXMLHttpRequest()&&(typeof global!="undefined"&&global.XMLHttpRequest?XmlHttpRequestApi=global.XMLHttpRequest:typeof window!="undefined"&&window.XMLHttpRequest&&(XmlHttpRequestApi=window.XMLHttpRequest));var ActiveXObjectApi;typeof ActiveXObject=="function"&&(typeof global!="undefined"&&global.ActiveXObject?ActiveXObjectApi=global.ActiveXObject:typeof window!="undefined"&&window.ActiveXObject&&(ActiveXObjectApi=window.ActiveXObject));!fetchApi&&fetchNode&&!XmlHttpRequestApi&&!ActiveXObjectApi&&(fetchApi=getFetch||fetchNode);typeof fetchApi!="function"&&(fetchApi=void 0);var addQueryString=function(a,s){if(s&&_typeof$k(s)==="object"){var c="";for(var f in s)c+="&"+encodeURIComponent(f)+"="+encodeURIComponent(s[f]);if(!c)return a;a=a+(a.indexOf("?")!==-1?"&":"?")+c.slice(1)}return a},fetchIt=function(a,s,c){var f=function(y){if(!y.ok)return c(y.statusText||"Error",{status:y.status});y.text().then(function(_){c(null,{status:y.status,data:_})}).catch(c)};typeof fetch=="function"?fetch(a,s).then(f).catch(c):fetchApi(a,s).then(f).catch(c)},omitFetchOptions=!1,requestWithFetch=function(a,s,c,f){a.queryStringParams&&(s=addQueryString(s,a.queryStringParams));var d=defaults$5({},typeof a.customHeaders=="function"?a.customHeaders():a.customHeaders);typeof window=="undefined"&&typeof global!="undefined"&&typeof global.process!="undefined"&&global.process.versions&&global.process.versions.node&&(d["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),c&&(d["Content-Type"]="application/json");var y=typeof a.requestOptions=="function"?a.requestOptions(c):a.requestOptions,_=defaults$5({method:c?"POST":"GET",body:c?a.stringify(c):void 0,headers:d},omitFetchOptions?{}:y);try{fetchIt(s,_,f)}catch(S){if(!y||Object.keys(y).length===0||!S.message||S.message.indexOf("not implemented")<0)return f(S);try{Object.keys(y).forEach(function(b){delete _[b]}),fetchIt(s,_,f),omitFetchOptions=!0}catch(b){f(b)}}},requestWithXmlHttpRequest=function(a,s,c,f){c&&_typeof$k(c)==="object"&&(c=addQueryString("",c).slice(1)),a.queryStringParams&&(s=addQueryString(s,a.queryStringParams));try{var d;XmlHttpRequestApi?d=new XmlHttpRequestApi:d=new ActiveXObjectApi("MSXML2.XMLHTTP.3.0"),d.open(c?"POST":"GET",s,1),a.crossDomain||d.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.withCredentials=!!a.withCredentials,c&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.overrideMimeType&&d.overrideMimeType("application/json");var y=a.customHeaders;if(y=typeof y=="function"?y():y,y)for(var _ in y)d.setRequestHeader(_,y[_]);d.onreadystatechange=function(){d.readyState>3&&f(d.status>=400?d.statusText:null,{status:d.status,data:d.responseText})},d.send(c)}catch(S){}},request$1=function(a,s,c,f){if(typeof c=="function"&&(f=c,c=void 0),f=f||function(){},fetchApi&&s.indexOf("file:")!==0)return requestWithFetch(a,s,c,f);if(hasXMLHttpRequest()||typeof ActiveXObject=="function")return requestWithXmlHttpRequest(a,s,c,f);f(new Error("No fetch and no xhr implementation found!"))};function _typeof$j(o){"@babel/helpers - typeof";return _typeof$j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$j(o)}function _classCallCheck$5(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(o,a){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_classCallCheck$5(this,o),this.services=a,this.options=s,this.allOptions=c,this.type="backend",this.init(a,s,c)}return _createClass$5(o,[{key:"init",value:function(s){var c=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=s,this.options=defaults$5(f,this.options||{},getDefaults$1()),this.allOptions=d,this.services&&this.options.reloadInterval&&setInterval(function(){return c.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(s,c,f){this._readAny(s,s,c,c,f)}},{key:"read",value:function(s,c,f){this._readAny([s],s,[c],c,f)}},{key:"_readAny",value:function(s,c,f,d,y){var _=this,S=this.options.loadPath;typeof this.options.loadPath=="function"&&(S=this.options.loadPath(s,f)),S=makePromise(S),S.then(function(b){if(!b)return y(null,{});var $=_.services.interpolator.interpolate(b,{lng:s.join("+"),ns:f.join("+")});_.loadUrl($,y,c,d)})}},{key:"loadUrl",value:function(s,c,f,d){var y=this,_=typeof f=="string"?[f]:f,S=typeof d=="string"?[d]:d,b=this.options.parseLoadPayload(_,S);this.options.request(this.options,s,b,function($,P){if(P&&(P.status>=500&&P.status<600||!P.status))return c("failed loading "+s+"; status code: "+P.status,!0);if(P&&P.status>=400&&P.status<500)return c("failed loading "+s+"; status code: "+P.status,!1);if(!P&&$&&$.message&&$.message.indexOf("Failed to fetch")>-1)return c("failed loading "+s+": "+$.message,!0);if($)return c($,!1);var T,C;try{typeof P.data=="string"?T=y.options.parse(P.data,f,d):T=P.data}catch(O){C="failed parsing "+s+" to json"}if(C)return c(C,!1);c(null,T)})}},{key:"create",value:function(s,c,f,d,y){var _=this;if(this.options.addPath){typeof s=="string"&&(s=[s]);var S=this.options.parsePayload(c,f,d),b=0,$=[],P=[];s.forEach(function(T){var C=_.options.addPath;typeof _.options.addPath=="function"&&(C=_.options.addPath(T,c));var O=_.services.interpolator.interpolate(C,{lng:T,ns:c});_.options.request(_.options,O,S,function(A,M){b+=1,$.push(A),P.push(M),b===s.length&&typeof y=="function"&&y($,P)})})}}},{key:"reload",value:function(){var s=this,c=this.services,f=c.backendConnector,d=c.languageUtils,y=c.logger,_=f.language;if(!(_&&_.toLowerCase()==="cimode")){var S=[],b=function(P){var T=d.toResolveHierarchy(P);T.forEach(function(C){S.indexOf(C)<0&&S.push(C)})};b(_),this.allOptions.preload&&this.allOptions.preload.forEach(function($){return b($)}),S.forEach(function($){s.allOptions.ns.forEach(function(P){f.read($,P,"read",null,null,function(T,C){T&&y.warn("loading namespace ".concat(P," for language ").concat($," failed"),T),!T&&C&&y.log("loaded namespace ".concat(P," for language ").concat($),C),f.loaded("".concat($,"|").concat(P),T,C)})})})}}}]),o}();Backend.type="backend";function warn(){if(console&&console.warn){for(var o=arguments.length,a=new Array(o),s=0;s()=>{if(o.isInitialized)a();else{const s=()=>{setTimeout(()=>{o.off("initialized",s)},0),a()};o.on("initialized",s)}};function loadNamespaces(o,a,s){o.loadNamespaces(a,loadedClb(o,s))}function loadLanguages(o,a,s,c){typeof s=="string"&&(s=[s]),s.forEach(f=>{o.options.ns.indexOf(f)<0&&o.options.ns.push(f)}),o.loadLanguages(a,loadedClb(o,c))}function oldI18nextHasLoadedNamespace(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const c=a.languages[0],f=a.options?a.options.fallbackLng:!1,d=a.languages[a.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const y=(_,S)=>{const b=a.services.backendConnector.state[`${_}|${S}`];return b===-1||b===2};return s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!y(a.isLanguageChangingTo,o)?!1:!!(a.hasResourceBundle(c,o)||!a.services.backendConnector.backend||a.options.resources&&!a.options.partialBundledLanguages||y(c,o)&&(!f||y(d,o)))}function hasLoadedNamespace(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!a.languages||!a.languages.length?(warnOnce("i18n.languages were undefined or empty",a.languages),!0):a.options.ignoreJSONStructure!==void 0?a.hasLoadedNamespace(o,{lng:s.lng,precheck:(f,d)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&f.services.backendConnector.backend&&f.isLanguageChangingTo&&!d(f.isLanguageChangingTo,o))return!1}}):oldI18nextHasLoadedNamespace(o,a,s)}const matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},unescapeHtmlEntity=o=>htmlEntities[o],unescape$1=o=>o.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:unescape$1};function setDefaults(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions=se(se({},defaultOptions),o)}function getDefaults(){return defaultOptions}let i18nInstance;function setI18n(o){i18nInstance=o}function getI18n(){return i18nInstance}const initReactI18next={type:"3rdParty",init(o){setDefaults(o.options.react),setI18n(o)}},I18nContext=reactExports.createContext();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const usePrevious$1=(o,a)=>{const s=reactExports.useRef();return reactExports.useEffect(()=>{s.current=a?s.current:o},[o,a]),s.current};function useTranslation(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:s}=a,{i18n:c,defaultNS:f}=reactExports.useContext(I18nContext)||{},d=s||c||getI18n();if(d&&!d.reportNamespaces&&(d.reportNamespaces=new ReportNamespaces),!d){warnOnce("You will need to pass in an i18next instance by using initReactI18next");const F=(U,z)=>typeof z=="string"?z:z&&typeof z=="object"&&typeof z.defaultValue=="string"?z.defaultValue:Array.isArray(U)?U[U.length-1]:U,I=[F,{},!1];return I.t=F,I.i18n={},I.ready=!1,I}d.options.react&&d.options.react.wait!==void 0&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const y=se(se(se({},getDefaults()),d.options.react),a),{useSuspense:_,keyPrefix:S}=y;let b=o||f||d.options&&d.options.defaultNS;b=typeof b=="string"?[b]:b||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(b);const $=(d.isInitialized||d.initializedStoreOnce)&&b.every(F=>hasLoadedNamespace(F,d,y));function P(){return d.getFixedT(a.lng||null,y.nsMode==="fallback"?b:b[0],S)}const[T,C]=reactExports.useState(P);let O=b.join();a.lng&&(O=`${a.lng}${O}`);const A=usePrevious$1(O),M=reactExports.useRef(!0);reactExports.useEffect(()=>{const{bindI18n:F,bindI18nStore:I}=y;M.current=!0,!$&&!_&&(a.lng?loadLanguages(d,a.lng,b,()=>{M.current&&C(P)}):loadNamespaces(d,b,()=>{M.current&&C(P)})),$&&A&&A!==O&&M.current&&C(P);function U(){M.current&&C(P)}return F&&d&&d.on(F,U),I&&d&&d.store.on(I,U),()=>{M.current=!1,F&&d&&F.split(" ").forEach(z=>d.off(z,U)),I&&d&&I.split(" ").forEach(z=>d.store.off(z,U))}},[d,O]);const j=reactExports.useRef(!0);reactExports.useEffect(()=>{M.current&&!j.current&&C(P),j.current=!1},[d,S]);const L=[T,d,$];if(L.t=T,L.i18n=d,L.ready=$,$||!$&&!_)return L;throw new Promise(F=>{a.lng?loadLanguages(d,a.lng,b,()=>F()):loadNamespaces(d,b,()=>F())})}const currentLanguage=window.location.search.split("=")[1];instance.use(Backend).use(initReactI18next).init({lng:currentLanguage||"zh",fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},partialBundledLanguages:!0,backend:{loadPath:"/react-antd-admin-pnpm//locales/{{lng}}/{{ns}}.json"}});const createStoreImpl$1=o=>{let a;const s=new Set,c=(S,b)=>{const $=typeof S=="function"?S(a):S;if(!Object.is($,a)){const P=a;a=(b!=null?b:typeof $!="object"||$===null)?$:Object.assign({},a,$),s.forEach(T=>T(a,P))}},f=()=>a,_={setState:c,getState:f,subscribe:S=>(s.add(S),()=>s.delete(S)),destroy:()=>{s.clear()}};return a=o(c,f,_),_},createStore$3=o=>o?createStoreImpl$1(o):createStoreImpl$1,{useDebugValue:useDebugValue$1}=React$4,{useSyncExternalStoreWithSelector:useSyncExternalStoreWithSelector$1}=useSyncExternalStoreExports;let didWarnAboutEqualityFn$1=!1;function useStore$1(o,a=o.getState,s){const c=useSyncExternalStoreWithSelector$1(o.subscribe,o.getState,o.getServerState||o.getState,a,s);return useDebugValue$1(c),c}const createImpl$1=o=>{const a=typeof o=="function"?createStore$3(o):o,s=(c,f)=>useStore$1(a,c,f);return Object.assign(s,a),s},create$1=o=>o?createImpl$1(o):createImpl$1;function createJSONStorage(o,a){let s;try{s=o()}catch(f){return}return{getItem:f=>{var d;const y=S=>S===null?null:JSON.parse(S,a==null?void 0:a.reviver),_=(d=s.getItem(f))!=null?d:null;return _ instanceof Promise?_.then(y):y(_)},setItem:(f,d)=>s.setItem(f,JSON.stringify(d,a==null?void 0:a.replacer)),removeItem:f=>s.removeItem(f)}}const toThenable=o=>a=>{try{const s=o(a);return s instanceof Promise?s:{then(c){return toThenable(c)(s)},catch(c){return this}}}catch(s){return{then(c){return this},catch(c){return toThenable(c)(s)}}}},oldImpl=(o,a)=>(s,c,f)=>{let d=se({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:M=>M,version:0,merge:(M,j)=>se(se({},j),M)},a),y=!1;const _=new Set,S=new Set;let b;try{b=d.getStorage()}catch(M){}if(!b)return o((...M)=>{s(...M)},c,f);const $=toThenable(d.serialize),P=()=>{const M=d.partialize(se({},c()));let j;const L=$({state:M,version:d.version}).then(F=>b.setItem(d.name,F)).catch(F=>{j=F});if(j)throw j;return L},T=f.setState;f.setState=(M,j)=>{T(M,j),P()};const C=o((...M)=>{s(...M),P()},c,f);let O;const A=()=>{var M;if(!b)return;y=!1,_.forEach(L=>L(c()));const j=((M=d.onRehydrateStorage)==null?void 0:M.call(d,c()))||void 0;return toThenable(b.getItem.bind(b))(d.name).then(L=>{if(L)return d.deserialize(L)}).then(L=>{if(L)if(typeof L.version=="number"&&L.version!==d.version){if(d.migrate)return d.migrate(L.state,L.version)}else return L.state}).then(L=>{var F;return O=d.merge(L,(F=c())!=null?F:C),s(O,!0),P()}).then(()=>{j==null||j(O,void 0),y=!0,S.forEach(L=>L(O))}).catch(L=>{j==null||j(void 0,L)})};return f.persist={setOptions:M=>{d=se(se({},d),M),M.getStorage&&(b=M.getStorage())},clearStorage:()=>{b==null||b.removeItem(d.name)},getOptions:()=>d,rehydrate:()=>A(),hasHydrated:()=>y,onHydrate:M=>(_.add(M),()=>{_.delete(M)}),onFinishHydration:M=>(S.add(M),()=>{S.delete(M)})},A(),O||C},newImpl=(o,a)=>(s,c,f)=>{let d=se({storage:createJSONStorage(()=>localStorage),partialize:A=>A,version:0,merge:(A,M)=>se(se({},M),A)},a),y=!1;const _=new Set,S=new Set;let b=d.storage;if(!b)return o((...A)=>{s(...A)},c,f);const $=()=>{const A=d.partialize(se({},c()));return b.setItem(d.name,{state:A,version:d.version})},P=f.setState;f.setState=(A,M)=>{P(A,M),$()};const T=o((...A)=>{s(...A),$()},c,f);let C;const O=()=>{var A,M;if(!b)return;y=!1,_.forEach(L=>{var F;return L((F=c())!=null?F:T)});const j=((M=d.onRehydrateStorage)==null?void 0:M.call(d,(A=c())!=null?A:T))||void 0;return toThenable(b.getItem.bind(b))(d.name).then(L=>{if(L)if(typeof L.version=="number"&&L.version!==d.version){if(d.migrate)return d.migrate(L.state,L.version)}else return L.state}).then(L=>{var F;return C=d.merge(L,(F=c())!=null?F:T),s(C,!0),$()}).then(()=>{j==null||j(C,void 0),C=c(),y=!0,S.forEach(L=>L(C))}).catch(L=>{j==null||j(void 0,L)})};return f.persist={setOptions:A=>{d=se(se({},d),A),A.storage&&(b=A.storage)},clearStorage:()=>{b==null||b.removeItem(d.name)},getOptions:()=>d,rehydrate:()=>O(),hasHydrated:()=>y,onHydrate:A=>(_.add(A),()=>{_.delete(A)}),onFinishHydration:A=>(S.add(A),()=>{S.delete(A)})},d.skipHydration||O(),C||T},persistImpl=(o,a)=>"getStorage"in a||"serialize"in a||"deserialize"in a?oldImpl(o,a):newImpl(o,a),persist=persistImpl,useGlobalStore=create$1()(persist((o,a)=>({theme:"light",setTheme:s=>{o({theme:s})},preset:"#00A76F",setPreset:s=>{o({preset:s})},hasTabs:!0,setHasTabs:s=>{o({hasTabs:s})},hasCrumbs:!0,setHasCrumbs:s=>{o({hasCrumbs:s})}}),{name:"adminGlobal"}));var __defProp$2=Object.defineProperty,__export=(o,a)=>{for(var s in a)__defProp$2(o,s,{get:a[s],enumerable:!0})},globals_exports={};__export(globals_exports,{assign:()=>assign$1,colors:()=>colors,createStringInterpolator:()=>createStringInterpolator,skipAnimation:()=>skipAnimation,to:()=>to,willAdvance:()=>willAdvance});var updateQueue=makeQueue(),raf=o=>schedule(o,updateQueue),writeQueue=makeQueue();raf.write=o=>schedule(o,writeQueue);var onStartQueue=makeQueue();raf.onStart=o=>schedule(o,onStartQueue);var onFrameQueue=makeQueue();raf.onFrame=o=>schedule(o,onFrameQueue);var onFinishQueue=makeQueue();raf.onFinish=o=>schedule(o,onFinishQueue);var timeouts=[];raf.setTimeout=(o,a)=>{const s=raf.now()+a,c=()=>{const d=timeouts.findIndex(y=>y.cancel==c);~d&&timeouts.splice(d,1),pendingCount-=~d?1:0},f={time:s,handler:o,cancel:c};return timeouts.splice(findTimeout(s),0,f),pendingCount+=1,start(),f};var findTimeout=o=>~(~timeouts.findIndex(a=>a.time>o)||~timeouts.length);raf.cancel=o=>{onStartQueue.delete(o),onFrameQueue.delete(o),onFinishQueue.delete(o),updateQueue.delete(o),writeQueue.delete(o)};raf.sync=o=>{sync=!0,raf.batchedUpdates(o),sync=!1};raf.throttle=o=>{let a;function s(){try{o(...a)}finally{a=null}}function c(...f){a=f,raf.onStart(s)}return c.handler=o,c.cancel=()=>{onStartQueue.delete(s),a=null},c};var nativeRaf=typeof window!="undefined"?window.requestAnimationFrame:()=>{};raf.use=o=>nativeRaf=o;raf.now=typeof performance!="undefined"?()=>performance.now():Date.now;raf.batchedUpdates=o=>o();raf.catch=console.error;raf.frameLoop="always";raf.advance=()=>{raf.frameLoop!=="demand"||update()};var ts=-1,pendingCount=0,sync=!1;function schedule(o,a){sync?(a.delete(o),o(0)):(a.add(o),start())}function start(){ts<0&&(ts=0,raf.frameLoop!=="demand"&&nativeRaf(loop$1))}function stop(){ts=-1}function loop$1(){~ts&&(nativeRaf(loop$1),raf.batchedUpdates(update))}function update(){const o=ts;ts=raf.now();const a=findTimeout(ts);if(a&&(eachSafely(timeouts.splice(0,a),s=>s.handler()),pendingCount-=a),!pendingCount){stop();return}onStartQueue.flush(),updateQueue.flush(o?Math.min(64,ts-o):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()}function makeQueue(){let o=new Set,a=o;return{add(s){pendingCount+=a==o&&!o.has(s)?1:0,o.add(s)},delete(s){return pendingCount-=a==o&&o.has(s)?1:0,o.delete(s)},flush(s){a.size&&(o=new Set,pendingCount-=a.size,eachSafely(a,c=>c(s)&&o.add(c)),pendingCount+=o.size,a=o)}}}function eachSafely(o,a){o.forEach(s=>{try{a(s)}catch(c){raf.catch(c)}})}function noop$4(){}var defineHidden=(o,a,s)=>Object.defineProperty(o,a,{value:s,writable:!0,configurable:!0}),is$1={arr:Array.isArray,obj:o=>!!o&&o.constructor.name==="Object",fun:o=>typeof o=="function",str:o=>typeof o=="string",num:o=>typeof o=="number",und:o=>o===void 0};function isEqual$1(o,a){if(is$1.arr(o)){if(!is$1.arr(a)||o.length!==a.length)return!1;for(let s=0;so.forEach(a);function eachProp(o,a,s){if(is$1.arr(o)){for(let c=0;cis$1.und(o)?[]:is$1.arr(o)?o:[o];function flush(o,a){if(o.size){const s=Array.from(o);o.clear(),each$1(s,a)}}var flushCalls=(o,...a)=>flush(o,s=>s(...a)),isSSR$1=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),createStringInterpolator,to,colors=null,skipAnimation=!1,willAdvance=noop$4,assign$1=o=>{o.to&&(to=o.to),o.now&&(raf.now=o.now),o.colors!==void 0&&(colors=o.colors),o.skipAnimation!=null&&(skipAnimation=o.skipAnimation),o.createStringInterpolator&&(createStringInterpolator=o.createStringInterpolator),o.requestAnimationFrame&&raf.use(o.requestAnimationFrame),o.batchedUpdates&&(raf.batchedUpdates=o.batchedUpdates),o.willAdvance&&(willAdvance=o.willAdvance),o.frameLoop&&(raf.frameLoop=o.frameLoop)},startQueue=new Set,currentFrame=[],prevFrame=[],priority=0,frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(o){priority>o.priority?(startQueue.add(o),raf.onStart(flushStartQueue)):(startSafely(o),raf(advance))},advance,sort(o){if(priority)raf.onFrame(()=>frameLoop.sort(o));else{const a=currentFrame.indexOf(o);~a&&(currentFrame.splice(a,1),startUnsafely(o))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(o){currentFrame.includes(o)||startUnsafely(o)}function startUnsafely(o){currentFrame.splice(findIndex(currentFrame,a=>a.priority>o.priority),0,o)}function advance(o){const a=prevFrame;for(let s=0;s0}function findIndex(o,a){const s=o.findIndex(a);return s<0?o.length:s}var clamp$1=(o,a,s)=>Math.min(Math.max(s,o),a),colors2={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call$1(...o){return"\\(\\s*("+o.join(")\\s*,\\s*(")+")\\s*\\)"}var rgb=new RegExp("rgb"+call$1(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call$1(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call$1(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call$1(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(o){let a;return typeof o=="number"?o>>>0===o&&o>=0&&o<=4294967295?o:null:(a=hex6.exec(o))?parseInt(a[1]+"ff",16)>>>0:colors&&colors[o]!==void 0?colors[o]:(a=rgb.exec(o))?(parse255(a[1])<<24|parse255(a[2])<<16|parse255(a[3])<<8|255)>>>0:(a=rgba.exec(o))?(parse255(a[1])<<24|parse255(a[2])<<16|parse255(a[3])<<8|parse1(a[4]))>>>0:(a=hex3.exec(o))?parseInt(a[1]+a[1]+a[2]+a[2]+a[3]+a[3]+"ff",16)>>>0:(a=hex8.exec(o))?parseInt(a[1],16)>>>0:(a=hex4.exec(o))?parseInt(a[1]+a[1]+a[2]+a[2]+a[3]+a[3]+a[4]+a[4],16)>>>0:(a=hsl.exec(o))?(hslToRgb(parse360(a[1]),parsePercentage(a[2]),parsePercentage(a[3]))|255)>>>0:(a=hsla.exec(o))?(hslToRgb(parse360(a[1]),parsePercentage(a[2]),parsePercentage(a[3]))|parse1(a[4]))>>>0:null}function hue2rgb(o,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?o+(a-o)*6*s:s<1/2?a:s<2/3?o+(a-o)*(2/3-s)*6:o}function hslToRgb(o,a,s){const c=s<.5?s*(1+a):s+a-s*a,f=2*s-c,d=hue2rgb(f,c,o+1/3),y=hue2rgb(f,c,o),_=hue2rgb(f,c,o-1/3);return Math.round(d*255)<<24|Math.round(y*255)<<16|Math.round(_*255)<<8}function parse255(o){const a=parseInt(o,10);return a<0?0:a>255?255:a}function parse360(o){return(parseFloat(o)%360+360)%360/360}function parse1(o){const a=parseFloat(o);return a<0?0:a>1?255:Math.round(a*255)}function parsePercentage(o){const a=parseFloat(o);return a<0?0:a>100?1:a/100}function colorToRgba(o){let a=normalizeColor(o);if(a===null)return o;a=a||0;const s=(a&4278190080)>>>24,c=(a&16711680)>>>16,f=(a&65280)>>>8,d=(a&255)/255;return`rgba(${s}, ${c}, ${f}, ${d})`}var createInterpolator=(o,a,s)=>{if(is$1.fun(o))return o;if(is$1.arr(o))return createInterpolator({range:o,output:a,extrapolate:s});if(is$1.str(o.output[0]))return createStringInterpolator(o);const c=o,f=c.output,d=c.range||[0,1],y=c.extrapolateLeft||c.extrapolate||"extend",_=c.extrapolateRight||c.extrapolate||"extend",S=c.easing||(b=>b);return b=>{const $=findRange(b,d);return interpolate(b,d[$],d[$+1],f[$],f[$+1],S,y,_,c.map)}};function interpolate(o,a,s,c,f,d,y,_,S){let b=S?S(o):o;if(bs){if(_==="identity")return b;_==="clamp"&&(b=s)}return c===f?c:a===s?o<=a?c:f:(a===-1/0?b=-b:s===1/0?b=b-a:b=(b-a)/(s-a),b=d(b),c===-1/0?b=-b:f===1/0?b=b+c:b=b*(f-c)+c,b)}function findRange(o,a){for(var s=1;s=o);++s);return s-1}var steps=(o,a="end")=>s=>{s=a==="end"?Math.min(s,.999):Math.max(s,.001);const c=s*o,f=a==="end"?Math.floor(c):Math.ceil(c);return clamp$1(0,1,f/o)},c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=o=>o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375,easings={linear:o=>o,easeInQuad:o=>o*o,easeOutQuad:o=>1-(1-o)*(1-o),easeInOutQuad:o=>o<.5?2*o*o:1-Math.pow(-2*o+2,2)/2,easeInCubic:o=>o*o*o,easeOutCubic:o=>1-Math.pow(1-o,3),easeInOutCubic:o=>o<.5?4*o*o*o:1-Math.pow(-2*o+2,3)/2,easeInQuart:o=>o*o*o*o,easeOutQuart:o=>1-Math.pow(1-o,4),easeInOutQuart:o=>o<.5?8*o*o*o*o:1-Math.pow(-2*o+2,4)/2,easeInQuint:o=>o*o*o*o*o,easeOutQuint:o=>1-Math.pow(1-o,5),easeInOutQuint:o=>o<.5?16*o*o*o*o*o:1-Math.pow(-2*o+2,5)/2,easeInSine:o=>1-Math.cos(o*Math.PI/2),easeOutSine:o=>Math.sin(o*Math.PI/2),easeInOutSine:o=>-(Math.cos(Math.PI*o)-1)/2,easeInExpo:o=>o===0?0:Math.pow(2,10*o-10),easeOutExpo:o=>o===1?1:1-Math.pow(2,-10*o),easeInOutExpo:o=>o===0?0:o===1?1:o<.5?Math.pow(2,20*o-10)/2:(2-Math.pow(2,-20*o+10))/2,easeInCirc:o=>1-Math.sqrt(1-Math.pow(o,2)),easeOutCirc:o=>Math.sqrt(1-Math.pow(o-1,2)),easeInOutCirc:o=>o<.5?(1-Math.sqrt(1-Math.pow(2*o,2)))/2:(Math.sqrt(1-Math.pow(-2*o+2,2))+1)/2,easeInBack:o=>c3*o*o*o-c1*o*o,easeOutBack:o=>1+c3*Math.pow(o-1,3)+c1*Math.pow(o-1,2),easeInOutBack:o=>o<.5?Math.pow(2*o,2)*((c2+1)*2*o-c2)/2:(Math.pow(2*o-2,2)*((c2+1)*(o*2-2)+c2)+2)/2,easeInElastic:o=>o===0?0:o===1?1:-Math.pow(2,10*o-10)*Math.sin((o*10-10.75)*c4),easeOutElastic:o=>o===0?0:o===1?1:Math.pow(2,-10*o)*Math.sin((o*10-.75)*c4)+1,easeInOutElastic:o=>o===0?0:o===1?1:o<.5?-(Math.pow(2,20*o-10)*Math.sin((20*o-11.125)*c5))/2:Math.pow(2,-20*o+10)*Math.sin((20*o-11.125)*c5)/2+1,easeInBounce:o=>1-bounceOut(1-o),easeOutBounce:bounceOut,easeInOutBounce:o=>o<.5?(1-bounceOut(1-2*o))/2:(1+bounceOut(2*o-1))/2,steps},$get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=o=>!!(o&&o[$get]),getFluidValue=o=>o&&o[$get]?o[$get]():o,getFluidObservers=o=>o[$observers]||null;function callFluidObserver(o,a){o.eventObserved?o.eventObserved(a):o(a)}function callFluidObservers(o,a){const s=o[$observers];s&&s.forEach(c=>{callFluidObserver(c,a)})}var FluidValue=class{constructor(o){if(!o&&!(o=this.get))throw Error("Unknown getter");setFluidGetter(this,o)}},setFluidGetter=(o,a)=>setHidden(o,$get,a);function addFluidObserver(o,a){if(o[$get]){let s=o[$observers];s||setHidden(o,$observers,s=new Set),s.has(a)||(s.add(a),o.observerAdded&&o.observerAdded(s.size,a))}return a}function removeFluidObserver(o,a){const s=o[$observers];if(s&&s.has(a)){const c=s.size-1;c?s.delete(a):o[$observers]=null,o.observerRemoved&&o.observerRemoved(c,a)}}var setHidden=(o,a,s)=>Object.defineProperty(o,a,{value:s,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=o=>{const[a,s]=parseCSSVariable(o);if(!a||isSSR$1())return o;const c=window.getComputedStyle(document.documentElement).getPropertyValue(a);if(c)return c.trim();if(s&&s.startsWith("--")){const f=window.getComputedStyle(document.documentElement).getPropertyValue(s);return f||o}else{if(s&&cssVariableRegex.test(s))return variableToRgba(s);if(s)return s}return o},parseCSSVariable=o=>{const a=cssVariableRegex.exec(o);if(!a)return[,];const[,s,c]=a;return[s,c]},namedColorRegex,rgbaRound=(o,a,s,c,f)=>`rgba(${Math.round(a)}, ${Math.round(s)}, ${Math.round(c)}, ${f})`,createStringInterpolator2=o=>{namedColorRegex||(namedColorRegex=colors?new RegExp(`(${Object.keys(colors).join("|")})(?!\\w)`,"g"):/^\b$/);const a=o.output.map(d=>getFluidValue(d).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba)),s=a.map(d=>d.match(numberRegex).map(Number)),f=s[0].map((d,y)=>s.map(_=>{if(!(y in _))throw Error('The arity of each "output" value must be equal');return _[y]})).map(d=>createInterpolator($e(se({},o),{output:d})));return d=>{var S;const y=!unitRegex.test(a[0])&&((S=a.find(b=>unitRegex.test(b)))==null?void 0:S.replace(numberRegex,""));let _=0;return a[0].replace(numberRegex,()=>`${f[_++](d)}${y||""}`).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=o=>{const a=o;let s=!1;if(typeof a!="function")throw new TypeError(`${prefix}once requires a function parameter`);return(...c)=>{s||(a(...c),s=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString(o){return is$1.str(o)&&(o[0]=="#"||/\d/.test(o)||!isSSR$1()&&cssVariableRegex.test(o)||o in(colors||{}))}var useIsomorphicLayoutEffect$1=isSSR$1()?reactExports.useEffect:reactExports.useLayoutEffect,useIsMounted=()=>{const o=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>(o.current=!0,()=>{o.current=!1}),[]),o};function useForceUpdate(){const o=reactExports.useState()[1],a=useIsMounted();return()=>{a.current&&o(Math.random())}}function useMemoOne(o,a){const[s]=reactExports.useState(()=>({inputs:a,result:o()})),c=reactExports.useRef(),f=c.current;let d=f;return d?a&&d.inputs&&areInputsEqual(a,d.inputs)||(d={inputs:a,result:o()}):d=s,reactExports.useEffect(()=>{c.current=d,f==s&&(s.inputs=s.result=void 0)},[d]),d.result}function areInputsEqual(o,a){if(o.length!==a.length)return!1;for(let s=0;sreactExports.useEffect(o,emptyDeps),emptyDeps=[];function usePrev(o){const a=reactExports.useRef();return reactExports.useEffect(()=>{a.current=o}),a.current}var $node=Symbol.for("Animated:node"),isAnimated=o=>!!o&&o[$node]===o,getAnimated=o=>o&&o[$node],setAnimated=(o,a)=>defineHidden(o,$node,a),getPayload=o=>o&&o[$node]&&o[$node].getPayload(),Animated=class{constructor(){setAnimated(this,this)}getPayload(){return this.payload||[]}},AnimatedValue=class extends Animated{constructor(o){super(),this._value=o,this.done=!0,this.durationProgress=0,is$1.num(this._value)&&(this.lastPosition=this._value)}static create(o){return new AnimatedValue(o)}getPayload(){return[this]}getValue(){return this._value}setValue(o,a){return is$1.num(o)&&(this.lastPosition=o,a&&(o=Math.round(o/a)*a,this.done&&(this.lastPosition=o))),this._value===o?!1:(this._value=o,!0)}reset(){const{done:o}=this;this.done=!1,is$1.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,o&&(this.lastVelocity=null),this.v0=null)}},AnimatedString=class extends AnimatedValue{constructor(o){super(0),this._string=null,this._toString=createInterpolator({output:[o,o]})}static create(o){return new AnimatedString(o)}getValue(){const o=this._string;return o==null?this._string=this._toString(this._value):o}setValue(o){if(is$1.str(o)){if(o==this._string)return!1;this._string=o,this._value=1}else if(super.setValue(o))this._string=null;else return!1;return!0}reset(o){o&&(this._toString=createInterpolator({output:[this.getValue(),o]})),this._value=0,super.reset()}},TreeContext={dependencies:null},AnimatedObject=class extends Animated{constructor(o){super(),this.source=o,this.setValue(o)}getValue(o){const a={};return eachProp(this.source,(s,c)=>{isAnimated(s)?a[c]=s.getValue(o):hasFluidValue(s)?a[c]=getFluidValue(s):o||(a[c]=s)}),a}setValue(o){this.source=o,this.payload=this._makePayload(o)}reset(){this.payload&&each$1(this.payload,o=>o.reset())}_makePayload(o){if(o){const a=new Set;return eachProp(o,this._addToPayload,a),Array.from(a)}}_addToPayload(o){TreeContext.dependencies&&hasFluidValue(o)&&TreeContext.dependencies.add(o);const a=getPayload(o);a&&each$1(a,s=>this.add(s))}},AnimatedArray=class extends AnimatedObject{constructor(o){super(o)}static create(o){return new AnimatedArray(o)}getValue(){return this.source.map(o=>o.getValue())}setValue(o){const a=this.getPayload();return o.length==a.length?a.map((s,c)=>s.setValue(o[c])).some(Boolean):(super.setValue(o.map(makeAnimated)),!0)}};function makeAnimated(o){return(isAnimatedString(o)?AnimatedString:AnimatedValue).create(o)}function getAnimatedType(o){const a=getAnimated(o);return a?a.constructor:is$1.arr(o)?AnimatedArray:isAnimatedString(o)?AnimatedString:AnimatedValue}var withAnimated=(o,a)=>{const s=!is$1.fun(o)||o.prototype&&o.prototype.isReactComponent;return reactExports.forwardRef((c,f)=>{const d=reactExports.useRef(null),y=s&&reactExports.useCallback(O=>{d.current=updateRef(f,O)},[f]),[_,S]=getAnimatedState(c,a),b=useForceUpdate(),$=()=>{const O=d.current;if(s&&!O)return;(O?a.applyAnimatedValues(O,_.getValue(!0)):!1)===!1&&b()},P=new PropsObserver($,S),T=reactExports.useRef();useIsomorphicLayoutEffect$1(()=>(T.current=P,each$1(S,O=>addFluidObserver(O,P)),()=>{T.current&&(each$1(T.current.deps,O=>removeFluidObserver(O,T.current)),raf.cancel(T.current.update))})),reactExports.useEffect($,[]),useOnce(()=>()=>{const O=T.current;each$1(O.deps,A=>removeFluidObserver(A,O))});const C=a.getComponentProps(_.getValue());return reactExports.createElement(o,$e(se({},C),{ref:y}))})},PropsObserver=class{constructor(o,a){this.update=o,this.deps=a}eventObserved(o){o.type=="change"&&raf.write(this.update)}};function getAnimatedState(o,a){const s=new Set;return TreeContext.dependencies=s,o.style&&(o=$e(se({},o),{style:a.createAnimatedStyle(o.style)})),o=new AnimatedObject(o),TreeContext.dependencies=null,[o,s]}function updateRef(o,a){return o&&(is$1.fun(o)?o(a):o.current=a),a}var cacheKey=Symbol.for("AnimatedComponent"),createHost=(o,{applyAnimatedValues:a=()=>!1,createAnimatedStyle:s=f=>new AnimatedObject(f),getComponentProps:c=f=>f}={})=>{const f={applyAnimatedValues:a,createAnimatedStyle:s,getComponentProps:c},d=y=>{const _=getDisplayName(y)||"Anonymous";return is$1.str(y)?y=d[y]||(d[y]=withAnimated(y,f)):y=y[cacheKey]||(y[cacheKey]=withAnimated(y,f)),y.displayName=`Animated(${_})`,y};return eachProp(o,(y,_)=>{is$1.arr(o)&&(_=getDisplayName(y)),d[_]=d(y)}),{animated:d}},getDisplayName=o=>is$1.str(o)?o:o&&is$1.str(o.displayName)?o.displayName:is$1.fun(o)&&o.name||null;function callProp(o,...a){return is$1.fun(o)?o(...a):o}var matchProp=(o,a)=>o===!0||!!(a&&o&&(is$1.fun(o)?o(a):toArray$1(o).includes(a))),resolveProp=(o,a)=>is$1.obj(o)?a&&o[a]:o,getDefaultProp=(o,a)=>o.default===!0?o[a]:o.default?o.default[a]:void 0,noopTransform=o=>o,getDefaultProps=(o,a=noopTransform)=>{let s=DEFAULT_PROPS;o.default&&o.default!==!0&&(o=o.default,s=Object.keys(o));const c={};for(const f of s){const d=a(o[f],f);is$1.und(d)||(c[f]=d)}return c},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function getForwardProps(o){const a={};let s=0;if(eachProp(o,(c,f)=>{RESERVED_PROPS[f]||(a[f]=c,s++)}),s)return a}function inferTo(o){const a=getForwardProps(o);if(a){const s={to:a};return eachProp(o,(c,f)=>f in a||(s[f]=c)),s}return se({},o)}function computeGoal(o){return o=getFluidValue(o),is$1.arr(o)?o.map(computeGoal):isAnimatedString(o)?globals_exports.createStringInterpolator({range:[0,1],output:[o,o]})(1):o}function hasProps(o){for(const a in o)return!0;return!1}function isAsyncTo(o){return is$1.fun(o)||is$1.arr(o)&&is$1.obj(o[0])}function detachRefs(o,a){var s;(s=o.ref)==null||s.delete(o),a==null||a.delete(o)}function replaceRef(o,a){var s;a&&o.ref!==a&&((s=o.ref)==null||s.delete(o),a.add(o),o.ref=a)}var config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},defaults$4=$e(se({},config.default),{mass:1,damping:1,easing:easings.linear,clamp:!1}),AnimationConfig=class{constructor(){this.velocity=0,Object.assign(this,defaults$4)}};function mergeConfig$1(o,a,s){s&&(s=se({},s),sanitizeConfig(s,a),a=se(se({},s),a)),sanitizeConfig(o,a),Object.assign(o,a);for(const y in defaults$4)o[y]==null&&(o[y]=defaults$4[y]);let{frequency:c,damping:f}=o;const{mass:d}=o;return is$1.und(c)||(c<.01&&(c=.01),f<0&&(f=0),o.tension=Math.pow(2*Math.PI/c,2)*d,o.friction=4*Math.PI*f*d/c),o}function sanitizeConfig(o,a){if(!is$1.und(a.decay))o.duration=void 0;else{const s=!is$1.und(a.tension)||!is$1.und(a.friction);(s||!is$1.und(a.frequency)||!is$1.und(a.damping)||!is$1.und(a.mass))&&(o.duration=void 0,o.decay=void 0),s&&(o.frequency=void 0)}}var emptyArray=[],Animation$2=class{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.config=new AnimationConfig,this.immediate=!1}};function scheduleProps(o,{key:a,props:s,defaultProps:c,state:f,actions:d}){return new Promise((y,_)=>{var O;let S,b,$=matchProp((O=s.cancel)!=null?O:c==null?void 0:c.cancel,a);if($)C();else{is$1.und(s.pause)||(f.paused=matchProp(s.pause,a));let A=c==null?void 0:c.pause;A!==!0&&(A=f.paused||matchProp(A,a)),S=callProp(s.delay||0,a),A?(f.resumeQueue.add(T),d.pause()):(d.resume(),T())}function P(){f.resumeQueue.add(T),f.timeouts.delete(b),b.cancel(),S=b.time-raf.now()}function T(){S>0&&!globals_exports.skipAnimation?(f.delayed=!0,b=raf.setTimeout(C,S),f.pauseQueue.add(P),f.timeouts.add(b)):C()}function C(){f.delayed&&(f.delayed=!1),f.pauseQueue.delete(P),f.timeouts.delete(b),o<=(f.cancelId||0)&&($=!0);try{d.start($e(se({},s),{callId:o,cancel:$}),y)}catch(A){_(A)}}})}var getCombinedResult=(o,a)=>a.length==1?a[0]:a.some(s=>s.cancelled)?getCancelledResult(o.get()):a.every(s=>s.noop)?getNoopResult(o.get()):getFinishedResult(o.get(),a.every(s=>s.finished)),getNoopResult=o=>({value:o,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(o,a,s=!1)=>({value:o,finished:a,cancelled:s}),getCancelledResult=o=>({value:o,cancelled:!0,finished:!1});function runAsync(o,a,s,c){const{callId:f,parentId:d,onRest:y}=a,{asyncTo:_,promise:S}=s;return!d&&o===_&&!a.reset?S:s.promise=(()=>xt(this,null,function*(){s.asyncId=f,s.asyncTo=o;const b=getDefaultProps(a,(M,j)=>j==="onRest"?void 0:M);let $,P;const T=new Promise((M,j)=>($=M,P=j)),C=M=>{const j=f<=(s.cancelId||0)&&getCancelledResult(c)||f!==s.asyncId&&getFinishedResult(c,!1);if(j)throw M.result=j,P(M),M},O=(M,j)=>{const L=new BailSignal,F=new SkipAnimationSignal;return(()=>xt(this,null,function*(){if(globals_exports.skipAnimation)throw stopAsync(s),F.result=getFinishedResult(c,!1),P(F),F;C(L);const I=is$1.obj(M)?se({},M):$e(se({},j),{to:M});I.parentId=f,eachProp(b,(z,H)=>{is$1.und(I[H])&&(I[H]=z)});const U=yield c.start(I);return C(L),s.paused&&(yield new Promise(z=>{s.resumeQueue.add(z)})),U}))()};let A;if(globals_exports.skipAnimation)return stopAsync(s),getFinishedResult(c,!1);try{let M;is$1.arr(o)?M=(j=>xt(this,null,function*(){for(const L of j)yield O(L)}))(o):M=Promise.resolve(o(O,c.stop.bind(c))),yield Promise.all([M.then($),T]),A=getFinishedResult(c.get(),!0,!1)}catch(M){if(M instanceof BailSignal)A=M.result;else if(M instanceof SkipAnimationSignal)A=M.result;else throw M}finally{f==s.asyncId&&(s.asyncId=d,s.asyncTo=d?_:void 0,s.promise=d?S:void 0)}return is$1.fun(y)&&raf.batchedUpdates(()=>{y(A,c,c.item)}),A}))()}function stopAsync(o,a){flush(o.timeouts,s=>s.cancel()),o.pauseQueue.clear(),o.resumeQueue.clear(),o.asyncId=o.asyncTo=o.promise=void 0,a&&(o.cancelId=a)}var BailSignal=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},SkipAnimationSignal=class extends Error{constructor(){super("SkipAnimationSignal")}},isFrameValue=o=>o instanceof FrameValue,nextId=1,FrameValue=class extends FluidValue{constructor(){super(...arguments),this.id=nextId++,this._priority=0}get priority(){return this._priority}set priority(o){this._priority!=o&&(this._priority=o,this._onPriorityChange(o))}get(){const o=getAnimated(this);return o&&o.getValue()}to(...o){return globals_exports.to(this,o)}interpolate(...o){return deprecateInterpolate(),globals_exports.to(this,o)}toJSON(){return this.get()}observerAdded(o){o==1&&this._attach()}observerRemoved(o){o==0&&this._detach()}_attach(){}_detach(){}_onChange(o,a=!1){callFluidObservers(this,{type:"change",parent:this,value:o,idle:a})}_onPriorityChange(o){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:o})}},$P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=o=>(o[$P]&HAS_ANIMATED)>0,isAnimating=o=>(o[$P]&IS_ANIMATING)>0,isPaused=o=>(o[$P]&IS_PAUSED)>0,setActiveBit=(o,a)=>a?o[$P]|=IS_ANIMATING|HAS_ANIMATED:o[$P]&=~IS_ANIMATING,setPausedBit=(o,a)=>a?o[$P]|=IS_PAUSED:o[$P]&=~IS_PAUSED,SpringValue=class extends FrameValue{constructor(o,a){if(super(),this.animation=new Animation$2,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!is$1.und(o)||!is$1.und(a)){const s=is$1.obj(o)?se({},o):$e(se({},a),{from:o});is$1.und(s.default)&&(s.default=!0),this.start(s)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const o=getAnimated(this);return o instanceof AnimatedValue?o.lastVelocity||0:o.getPayload().map(a=>a.lastVelocity||0)}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(o){let a=!0,s=!1;const c=this.animation;let{toValues:f}=c;const{config:d}=c,y=getPayload(c.to);!y&&hasFluidValue(c.to)&&(f=toArray$1(getFluidValue(c.to))),c.values.forEach((b,$)=>{if(b.done)return;const P=b.constructor==AnimatedString?1:y?y[$].lastPosition:f[$];let T=c.immediate,C=P;if(!T){if(C=b.lastPosition,d.tension<=0){b.done=!0;return}let O=b.elapsedTime+=o;const A=c.fromValues[$],M=b.v0!=null?b.v0:b.v0=is$1.arr(d.velocity)?d.velocity[$]:d.velocity;let j;const L=d.precision||(A==P?.005:Math.min(1,Math.abs(P-A)*.001));if(is$1.und(d.duration))if(d.decay){const F=d.decay===!0?.998:d.decay,I=Math.exp(-(1-F)*O);C=A+M/(1-F)*(1-I),T=Math.abs(b.lastPosition-C)<=L,j=M*I}else{j=b.lastVelocity==null?M:b.lastVelocity;const F=d.restVelocity||L/10,I=d.clamp?0:d.bounce,U=!is$1.und(I),z=A==P?b.v0>0:AF,!(!H&&(T=Math.abs(P-C)<=L,T)));++K){U&&(G=C==P||C>P==z,G&&(j=-j*I,C=P));const ie=-d.tension*1e-6*(C-P),ee=-d.friction*.001*j,de=(ie+ee)/d.mass;j=j+de*X,C=C+j*X}}else{let F=1;d.duration>0&&(this._memoizedDuration!==d.duration&&(this._memoizedDuration=d.duration,b.durationProgress>0&&(b.elapsedTime=d.duration*b.durationProgress,O=b.elapsedTime+=o)),F=(d.progress||0)+O/this._memoizedDuration,F=F>1?1:F<0?0:F,b.durationProgress=F),C=A+d.easing(F)*(P-A),j=(C-b.lastPosition)/o,T=F==1}b.lastVelocity=j,Number.isNaN(C)&&(T=!0)}y&&!y[$].done&&(T=!1),T?b.done=!0:a=!1,b.setValue(C,d.round)&&(s=!0)});const _=getAnimated(this),S=_.getValue();if(a){const b=getFluidValue(c.to);(S!==b||s)&&!d.decay?(_.setValue(b),this._onChange(b)):s&&d.decay&&this._onChange(S),this._stop()}else s&&this._onChange(S)}set(o){return raf.batchedUpdates(()=>{this._stop(),this._focus(o),this._set(o)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:o,config:a}=this.animation;raf.batchedUpdates(()=>{this._onStart(),a.decay||this._set(o,!1),this._stop()})}return this}update(o){return(this.queue||(this.queue=[])).push(o),this}start(o,a){let s;return is$1.und(o)?(s=this.queue||[],this.queue=[]):s=[is$1.obj(o)?o:$e(se({},a),{to:o})],Promise.all(s.map(c=>this._update(c))).then(c=>getCombinedResult(this,c))}stop(o){const{to:a}=this.animation;return this._focus(this.get()),stopAsync(this._state,o&&this._lastCallId),raf.batchedUpdates(()=>this._stop(a,o)),this}reset(){this._update({reset:!0})}eventObserved(o){o.type=="change"?this._start():o.type=="priority"&&(this.priority=o.priority+1)}_prepareNode(o){const a=this.key||"";let{to:s,from:c}=o;s=is$1.obj(s)?s[a]:s,(s==null||isAsyncTo(s))&&(s=void 0),c=is$1.obj(c)?c[a]:c,c==null&&(c=void 0);const f={to:s,from:c};return hasAnimated(this)||(o.reverse&&([s,c]=[c,s]),c=getFluidValue(c),is$1.und(c)?getAnimated(this)||this._set(s):this._set(c)),f}_update(s,a){var o=er(s,[]);const{key:c,defaultProps:f}=this;o.default&&Object.assign(f,getDefaultProps(o,(_,S)=>/^on/.test(S)?resolveProp(_,c):_)),mergeActiveFn(this,o,"onProps"),sendEvent(this,"onProps",o,this);const d=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const y=this._state;return scheduleProps(++this._lastCallId,{key:c,props:o,defaultProps:f,state:y,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(y.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(y.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,d)}}).then(_=>{if(o.loop&&_.finished&&!(a&&_.noop)){const S=createLoopUpdate(o);if(S)return this._update(S,!0)}return _})}_merge(o,a,s){if(a.cancel)return this.stop(!0),s(getCancelledResult(this));const c=!is$1.und(o.to),f=!is$1.und(o.from);if(c||f)if(a.callId>this._lastToId)this._lastToId=a.callId;else return s(getCancelledResult(this));const{key:d,defaultProps:y,animation:_}=this,{to:S,from:b}=_;let{to:$=S,from:P=b}=o;f&&!c&&(!a.default||is$1.und($))&&($=P),a.reverse&&([$,P]=[P,$]);const T=!isEqual$1(P,b);T&&(_.from=P),P=getFluidValue(P);const C=!isEqual$1($,S);C&&this._focus($);const O=isAsyncTo(a.to),{config:A}=_,{decay:M,velocity:j}=A;(c||f)&&(A.velocity=0),a.config&&!O&&mergeConfig$1(A,callProp(a.config,d),a.config!==y.config?callProp(y.config,d):void 0);let L=getAnimated(this);if(!L||is$1.und($))return s(getFinishedResult(this,!0));const F=is$1.und(a.reset)?f&&!a.default:!is$1.und(P)&&matchProp(a.reset,d),I=F?P:this.get(),U=computeGoal($),z=is$1.num(U)||is$1.arr(U)||isAnimatedString(U),H=!O&&(!z||matchProp(y.immediate||a.immediate,d));if(C){const K=getAnimatedType($);if(K!==L.constructor)if(H)L=this._set(U);else throw Error(`Cannot animate between ${L.constructor.name} and ${K.name}, as the "to" prop suggests`)}const G=L.constructor;let X=hasFluidValue($),W=!1;if(!X){const K=F||!hasAnimated(this)&&T;(C||K)&&(W=isEqual$1(computeGoal(I),U),X=!W),(!isEqual$1(_.immediate,H)&&!H||!isEqual$1(A.decay,M)||!isEqual$1(A.velocity,j))&&(X=!0)}if(W&&isAnimating(this)&&(_.changed&&!F?X=!0:X||this._stop(S)),!O&&((X||hasFluidValue(S))&&(_.values=L.getPayload(),_.toValues=hasFluidValue($)?null:G==AnimatedString?[1]:toArray$1(U)),_.immediate!=H&&(_.immediate=H,!H&&!F&&this._set(S)),X)){const{onRest:K}=_;each$1(ACTIVE_EVENTS,ee=>mergeActiveFn(this,a,ee));const ie=getFinishedResult(this,checkFinished(this,S));flushCalls(this._pendingCalls,ie),this._pendingCalls.add(s),_.changed&&raf.batchedUpdates(()=>{var ee;_.changed=!F,K==null||K(ie,this),F?callProp(y.onRest,ie):(ee=_.onStart)==null||ee.call(_,ie,this)})}F&&this._set(I),O?s(runAsync(a.to,a,this._state,this)):X?this._start():isAnimating(this)&&!C?this._pendingCalls.add(s):s(getNoopResult(I))}_focus(o){const a=this.animation;o!==a.to&&(getFluidObservers(this)&&this._detach(),a.to=o,getFluidObservers(this)&&this._attach())}_attach(){let o=0;const{to:a}=this.animation;hasFluidValue(a)&&(addFluidObserver(a,this),isFrameValue(a)&&(o=a.priority+1)),this.priority=o}_detach(){const{to:o}=this.animation;hasFluidValue(o)&&removeFluidObserver(o,this)}_set(o,a=!0){const s=getFluidValue(o);if(!is$1.und(s)){const c=getAnimated(this);if(!c||!isEqual$1(s,c.getValue())){const f=getAnimatedType(s);!c||c.constructor!=f?setAnimated(this,f.create(s)):c.setValue(s),c&&raf.batchedUpdates(()=>{this._onChange(s,a)})}}return getAnimated(this)}_onStart(){const o=this.animation;o.changed||(o.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,o.to)),this))}_onChange(o,a){a||(this._onStart(),callProp(this.animation.onChange,o,this)),callProp(this.defaultProps.onChange,o,this),super._onChange(o,a)}_start(){const o=this.animation;getAnimated(this).reset(getFluidValue(o.to)),o.immediate||(o.fromValues=o.values.map(a=>a.lastPosition)),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals_exports.skipAnimation?this.finish():frameLoop.start(this)}_stop(o,a){if(isAnimating(this)){setActiveBit(this,!1);const s=this.animation;each$1(s.values,f=>{f.done=!0}),s.toValues&&(s.onChange=s.onPause=s.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const c=a?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,o!=null?o:s.to));flushCalls(this._pendingCalls,c),s.changed&&(s.changed=!1,sendEvent(this,"onRest",c,this))}}};function checkFinished(o,a){const s=computeGoal(a),c=computeGoal(o.get());return isEqual$1(c,s)}function createLoopUpdate(o,a=o.loop,s=o.to){const c=callProp(a);if(c){const f=c!==!0&&inferTo(c),d=(f||o).reverse,y=!f||f.reset;return createUpdate(se($e(se({},o),{loop:a,default:!1,pause:void 0,to:!d||isAsyncTo(s)?s:void 0,from:y?o.from:void 0,reset:y}),f))}}function createUpdate(o){const{to:a,from:s}=o=inferTo(o),c=new Set;return is$1.obj(a)&&findDefined(a,c),is$1.obj(s)&&findDefined(s,c),o.keys=c.size?Array.from(c):null,o}function declareUpdate(o){const a=createUpdate(o);return is$1.und(a.default)&&(a.default=getDefaultProps(a)),a}function findDefined(o,a){eachProp(o,(s,c)=>s!=null&&a.add(c))}var ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(o,a,s){o.animation[s]=a[s]!==getDefaultProp(a,s)?resolveProp(a[s],o.key):void 0}function sendEvent(o,a,...s){var c,f,d,y;(f=(c=o.animation)[a])==null||f.call(c,...s),(y=(d=o.defaultProps)[a])==null||y.call(d,...s)}var BATCHED_EVENTS=["onStart","onChange","onRest"],nextId2=1,Controller=class{constructor(o,a){this.id=nextId2++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),a&&(this._flush=a),o&&this.start(se({default:!0},o))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(o=>o.idle&&!o.isDelayed&&!o.isPaused)}get item(){return this._item}set item(o){this._item=o}get(){const o={};return this.each((a,s)=>o[s]=a.get()),o}set(o){for(const a in o){const s=o[a];is$1.und(s)||this.springs[a].set(s)}}update(o){return o&&this.queue.push(createUpdate(o)),this}start(o){let{queue:a}=this;return o?a=toArray$1(o).map(createUpdate):this.queue=[],this._flush?this._flush(this,a):(prepareKeys(this,a),flushUpdateQueue(this,a))}stop(o,a){if(o!==!!o&&(a=o),a){const s=this.springs;each$1(toArray$1(a),c=>s[c].stop(!!o))}else stopAsync(this._state,this._lastAsyncId),this.each(s=>s.stop(!!o));return this}pause(o){if(is$1.und(o))this.start({pause:!0});else{const a=this.springs;each$1(toArray$1(o),s=>a[s].pause())}return this}resume(o){if(is$1.und(o))this.start({pause:!1});else{const a=this.springs;each$1(toArray$1(o),s=>a[s].resume())}return this}each(o){eachProp(this.springs,o)}_onFrame(){const{onStart:o,onChange:a,onRest:s}=this._events,c=this._active.size>0,f=this._changed.size>0;(c&&!this._started||f&&!this._started)&&(this._started=!0,flush(o,([_,S])=>{S.value=this.get(),_(S,this,this._item)}));const d=!c&&this._started,y=f||d&&s.size?this.get():null;f&&a.size&&flush(a,([_,S])=>{S.value=y,_(S,this,this._item)}),d&&(this._started=!1,flush(s,([_,S])=>{S.value=y,_(S,this,this._item)}))}eventObserved(o){if(o.type=="change")this._changed.add(o.parent),o.idle||this._active.add(o.parent);else if(o.type=="idle")this._active.delete(o.parent);else return;raf.onFrame(this._onFrame)}};function flushUpdateQueue(o,a){return Promise.all(a.map(s=>flushUpdate(o,s))).then(s=>getCombinedResult(o,s))}function flushUpdate(o,a,s){return xt(this,null,function*(){const{keys:c,to:f,from:d,loop:y,onRest:_,onResolve:S}=a,b=is$1.obj(a.default)&&a.default;y&&(a.loop=!1),f===!1&&(a.to=null),d===!1&&(a.from=null);const $=is$1.arr(f)||is$1.fun(f)?f:void 0;$?(a.to=void 0,a.onRest=void 0,b&&(b.onRest=void 0)):each$1(BATCHED_EVENTS,A=>{const M=a[A];if(is$1.fun(M)){const j=o._events[A];a[A]=({finished:L,cancelled:F})=>{const I=j.get(M);I?(L||(I.finished=!1),F&&(I.cancelled=!0)):j.set(M,{value:null,finished:L||!1,cancelled:F||!1})},b&&(b[A]=a[A])}});const P=o._state;a.pause===!P.paused?(P.paused=a.pause,flushCalls(a.pause?P.pauseQueue:P.resumeQueue)):P.paused&&(a.pause=!0);const T=(c||Object.keys(o.springs)).map(A=>o.springs[A].start(a)),C=a.cancel===!0||getDefaultProp(a,"cancel")===!0;($||C&&P.asyncId)&&T.push(scheduleProps(++o._lastAsyncId,{props:a,state:P,actions:{pause:noop$4,resume:noop$4,start(A,M){C?(stopAsync(P,o._lastAsyncId),M(getCancelledResult(o))):(A.onRest=_,M(runAsync($,A,P,o)))}}})),P.paused&&(yield new Promise(A=>{P.resumeQueue.add(A)}));const O=getCombinedResult(o,yield Promise.all(T));if(y&&O.finished&&!(s&&O.noop)){const A=createLoopUpdate(a,y,f);if(A)return prepareKeys(o,[A]),flushUpdate(o,A,!0)}return S&&raf.batchedUpdates(()=>S(O,o,o.item)),O})}function getSprings(o,a){const s=se({},o.springs);return a&&each$1(toArray$1(a),c=>{is$1.und(c.keys)&&(c=createUpdate(c)),is$1.obj(c.to)||(c=$e(se({},c),{to:void 0})),prepareSprings(s,c,f=>createSpring(f))}),setSprings(o,s),s}function setSprings(o,a){eachProp(a,(s,c)=>{o.springs[c]||(o.springs[c]=s,addFluidObserver(s,o))})}function createSpring(o,a){const s=new SpringValue;return s.key=o,a&&addFluidObserver(s,a),s}function prepareSprings(o,a,s){a.keys&&each$1(a.keys,c=>{(o[c]||(o[c]=s(c)))._prepareNode(a)})}function prepareKeys(o,a){each$1(a,s=>{prepareSprings(o.springs,s,c=>createSpring(c,o))})}var SpringContext=s=>{var c=s,{children:o}=c,a=er(c,["children"]);const f=reactExports.useContext(ctx),d=a.pause||!!f.pause,y=a.immediate||!!f.immediate;a=useMemoOne(()=>({pause:d,immediate:y}),[d,y]);const{Provider:_}=ctx;return reactExports.createElement(_,{value:a},o)},ctx=makeContext(SpringContext,{});SpringContext.Provider=ctx.Provider;SpringContext.Consumer=ctx.Consumer;function makeContext(o,a){return Object.assign(o,reactExports.createContext(a)),o.Provider._context=o,o.Consumer._context=o,o}var SpringRef=()=>{const o=[],a=function(c){deprecateDirectCall();const f=[];return each$1(o,(d,y)=>{if(is$1.und(c))f.push(d.start());else{const _=s(c,d,y);_&&f.push(d.start(_))}}),f};a.current=o,a.add=function(c){o.includes(c)||o.push(c)},a.delete=function(c){const f=o.indexOf(c);~f&&o.splice(f,1)},a.pause=function(){return each$1(o,c=>c.pause(...arguments)),this},a.resume=function(){return each$1(o,c=>c.resume(...arguments)),this},a.set=function(c){each$1(o,(f,d)=>{const y=is$1.fun(c)?c(d,f):c;y&&f.set(y)})},a.start=function(c){const f=[];return each$1(o,(d,y)=>{if(is$1.und(c))f.push(d.start());else{const _=this._getProps(c,d,y);_&&f.push(d.start(_))}}),f},a.stop=function(){return each$1(o,c=>c.stop(...arguments)),this},a.update=function(c){return each$1(o,(f,d)=>f.update(this._getProps(c,f,d))),this};const s=function(c,f,d){return is$1.fun(c)?c(d,f):c};return a._getProps=s,a};function useSprings(o,a,s){const c=is$1.fun(a)&&a;c&&!s&&(s=[]);const f=reactExports.useMemo(()=>c||arguments.length==3?SpringRef():void 0,[]),d=reactExports.useRef(0),y=useForceUpdate(),_=reactExports.useMemo(()=>({ctrls:[],queue:[],flush(j,L){const F=getSprings(j,L);return d.current>0&&!_.queue.length&&!Object.keys(F).some(U=>!j.springs[U])?flushUpdateQueue(j,L):new Promise(U=>{setSprings(j,F),_.queue.push(()=>{U(flushUpdateQueue(j,L))}),y()})}}),[]),S=reactExports.useRef([..._.ctrls]),b=[],$=usePrev(o)||0;reactExports.useMemo(()=>{each$1(S.current.slice(o,$),j=>{detachRefs(j,f),j.stop(!0)}),S.current.length=o,P($,o)},[o]),reactExports.useMemo(()=>{P(0,Math.min($,o))},s);function P(j,L){for(let F=j;FgetSprings(j,b[L])),C=reactExports.useContext(SpringContext),O=usePrev(C),A=C!==O&&hasProps(C);useIsomorphicLayoutEffect$1(()=>{d.current++,_.ctrls=S.current;const{queue:j}=_;j.length&&(_.queue=[],each$1(j,L=>L())),each$1(S.current,(L,F)=>{f==null||f.add(L),A&&L.start({default:C});const I=b[F];I&&(replaceRef(L,I.ref),L.ref?L.queue.push(I):L.start(I))})}),useOnce(()=>()=>{each$1(_.ctrls,j=>j.stop(!0))});const M=T.map(j=>se({},j));return f?[M,f]:M}function useSpring(o,a){const s=is$1.fun(o),[[c],f]=useSprings(1,s?o:[o],s?a||[]:a);return s||arguments.length==2?[c,f]:c}var Interpolation=class extends FrameValue{constructor(o,a){super(),this.source=o,this.idle=!0,this._active=new Set,this.calc=createInterpolator(...a);const s=this._get(),c=getAnimatedType(s);setAnimated(this,c.create(s))}advance(o){const a=this._get(),s=this.get();isEqual$1(a,s)||(getAnimated(this).setValue(a),this._onChange(a,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const o=is$1.arr(this.source)?this.source.map(getFluidValue):toArray$1(getFluidValue(this.source));return this.calc(...o)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each$1(getPayload(this),o=>{o.done=!1}),globals_exports.skipAnimation?(raf.batchedUpdates(()=>this.advance()),becomeIdle(this)):frameLoop.start(this))}_attach(){let o=1;each$1(toArray$1(this.source),a=>{hasFluidValue(a)&&addFluidObserver(a,this),isFrameValue(a)&&(a.idle||this._active.add(a),o=Math.max(o,a.priority+1))}),this.priority=o,this._start()}_detach(){each$1(toArray$1(this.source),o=>{hasFluidValue(o)&&removeFluidObserver(o,this)}),this._active.clear(),becomeIdle(this)}eventObserved(o){o.type=="change"?o.idle?this.advance():(this._active.add(o.parent),this._start()):o.type=="idle"?this._active.delete(o.parent):o.type=="priority"&&(this.priority=toArray$1(this.source).reduce((a,s)=>Math.max(a,(isFrameValue(s)?s.priority:0)+1),0))}};function isIdle(o){return o.idle!==!1}function checkIdle(o){return!o.size||Array.from(o).every(isIdle)}function becomeIdle(o){o.idle||(o.idle=!0,each$1(getPayload(o),a=>{a.done=!0}),callFluidObservers(o,{type:"idle",parent:o}))}globals_exports.assign({createStringInterpolator:createStringInterpolator2,to:(o,a)=>new Interpolation(o,a)});var isCustomPropRE=/^--/;function dangerousStyleValue(o,a){return a==null||typeof a=="boolean"||a===""?"":typeof a=="number"&&a!==0&&!isCustomPropRE.test(o)&&!(isUnitlessNumber.hasOwnProperty(o)&&isUnitlessNumber[o])?a+"px":(""+a).trim()}var attributeCache={};function applyAnimatedValues(o,a){if(!o.nodeType||!o.setAttribute)return!1;const s=o.nodeName==="filter"||o.parentNode&&o.parentNode.nodeName==="filter",P=a,{style:c,children:f,scrollTop:d,scrollLeft:y,viewBox:_}=P,S=er(P,["style","children","scrollTop","scrollLeft","viewBox"]),b=Object.values(S),$=Object.keys(S).map(T=>s||o.hasAttribute(T)?T:attributeCache[T]||(attributeCache[T]=T.replace(/([A-Z])/g,C=>"-"+C.toLowerCase())));f!==void 0&&(o.textContent=f);for(const T in c)if(c.hasOwnProperty(T)){const C=dangerousStyleValue(T,c[T]);isCustomPropRE.test(T)?o.style.setProperty(T,C):o.style[T]=C}$.forEach((T,C)=>{o.setAttribute(T,b[C])}),d!==void 0&&(o.scrollTop=d),y!==void 0&&(o.scrollLeft=y),_!==void 0&&o.setAttribute("viewBox",_)}var isUnitlessNumber={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},prefixKey=(o,a)=>o+a.charAt(0).toUpperCase()+a.substring(1),prefixes$1=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce((o,a)=>(prefixes$1.forEach(s=>o[prefixKey(s,a)]=o[a]),o),isUnitlessNumber);var domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(o,a)=>is$1.num(o)&&o!==0?o+a:o,isValueIdentity=(o,a)=>is$1.arr(o)?o.every(s=>isValueIdentity(s,a)):is$1.num(o)?o===a:parseFloat(o)===a,AnimatedStyle=class extends AnimatedObject{constructor(f){var d=f,{x:o,y:a,z:s}=d,c=er(d,["x","y","z"]);const y=[],_=[];(o||a||s)&&(y.push([o||0,a||0,s||0]),_.push(S=>[`translate3d(${S.map(b=>addUnit(b,"px")).join(",")})`,isValueIdentity(S,0)])),eachProp(c,(S,b)=>{if(b==="transform")y.push([S||""]),_.push($=>[$,$===""]);else if(domTransforms.test(b)){if(delete c[b],is$1.und(S))return;const $=pxTransforms.test(b)?"px":degTransforms.test(b)?"deg":"";y.push(toArray$1(S)),_.push(b==="rotate3d"?([P,T,C,O])=>[`rotate3d(${P},${T},${C},${addUnit(O,$)})`,isValueIdentity(O,0)]:P=>[`${b}(${P.map(T=>addUnit(T,$)).join(",")})`,isValueIdentity(P,b.startsWith("scale")?1:0)])}}),y.length&&(c.transform=new FluidTransform(y,_)),super(c)}},FluidTransform=class extends FluidValue{constructor(o,a){super(),this.inputs=o,this.transforms=a,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let o="",a=!0;return each$1(this.inputs,(s,c)=>{const f=getFluidValue(s[0]),[d,y]=this.transforms[c](is$1.arr(f)?f:s.map(getFluidValue));o+=" "+d,a=a&&y}),a?"none":o}observerAdded(o){o==1&&each$1(this.inputs,a=>each$1(a,s=>hasFluidValue(s)&&addFluidObserver(s,this)))}observerRemoved(o){o==0&&each$1(this.inputs,a=>each$1(a,s=>hasFluidValue(s)&&removeFluidObserver(s,this)))}eventObserved(o){o.type=="change"&&(this._value=null),callFluidObservers(this,o)}},primitives=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];globals_exports.assign({batchedUpdates:reactDomExports.unstable_batchedUpdates,createStringInterpolator:createStringInterpolator2,colors:colors2});var host=createHost(primitives,{applyAnimatedValues,createAnimatedStyle:o=>new AnimatedStyle(o),getComponentProps:c=>{var f=c,{scrollTop:o,scrollLeft:a}=f,s=er(f,["scrollTop","scrollLeft"]);return s}}),animated=host.animated;const useStyles$g=createStyles(()=>({"svg-icon":{display:"inline-block",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}));function SvgIcon$1({name:o,prefix:a="icon",size:s=16,style:c,className:f}){const{styles:d}=useStyles$g(),y=`#${a}-${o}`,_=se({width:`${s}px`,height:`${s}px`},c);return jsxRuntimeExports.jsx("svg",{className:`${d["svg-icon"]} ${f}`,style:_,"aria-hidden":"true",children:jsxRuntimeExports.jsx("use",{href:y})})}const useStyles$f=createStyles(({token:o})=>({"custom-card":{boxShadow:"rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px",transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",".ant-card-body":{padding:o.paddingMD}}})),createDot=(o,a,s,c,f=0)=>{const d=document.createElement("div");return d.style.position="absolute",d.style.left=`${s}px`,d.style.top=`${c}px`,d.style.width=`${f}px`,d.style.height=`${f}px`,d.style.borderRadius="50%",d.style.background=a,d.style.transform="translate(-50%, -50%)",d.style.transition="all 1s ease-out",o.appendChild(d),d},createHolder=o=>{const{borderWidth:a}=getComputedStyle(o),s=parseInt(a,10),c=document.createElement("div");return c.style.position="absolute",c.style.inset=`-${s}px`,c.style.borderRadius="inherit",c.style.background="transparent",c.style.zIndex="999",c.style.pointerEvents="none",c.style.overflow="hidden",o.appendChild(c),c},showInsetEffect=(o,{event:a,component:s})=>{const c=createHolder(o),f=c.getBoundingClientRect(),d=a.clientX-f.left,y=a.clientY-f.top,_=createDot(c,"rgba(255, 255, 255, 0.65)",d,y);requestAnimationFrame(()=>{_.ontransitionend=()=>{c.remove()},_.style.width="400px",_.style.height="400px",_.style.opacity="0"})},GlobalConfig=s=>{var c=s,{children:o}=c,a=er(c,["children"]);const{styles:f}=useStyles$f(),d=()=>jsxRuntimeExports.jsxs("div",{style:{textAlign:"center"},children:[jsxRuntimeExports.jsx(SvgIcon$1,{name:"ic_content",size:120}),jsxRuntimeExports.jsx("p",{children:"Data Not Found"})]});return jsxRuntimeExports.jsx(ConfigProvider,$e(se({wave:{showEffect:showInsetEffect},card:{className:f["custom-card"]},renderEmpty:d},a),{children:jsxRuntimeExports.jsx(App$1,{children:o})}))};var lib$3={},slider={},innerSlider={},initialState$3={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},s=a;o.default=s})(initialState$3);var FUNC_ERROR_TEXT$3="Expected a function",NAN$2=0/0,symbolTag$5="[object Symbol]",reTrim$1=/^\s+|\s+$/g,reIsBadHex$2=/^[-+]0x[0-9a-f]+$/i,reIsBinary$2=/^0b[01]+$/i,reIsOctal$2=/^0o[0-7]+$/i,freeParseInt$2=parseInt,freeGlobal$5=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf$3=typeof self=="object"&&self&&self.Object===Object&&self,root$6=freeGlobal$5||freeSelf$3||Function("return this")(),objectProto$j=Object.prototype,objectToString$5=objectProto$j.toString,nativeMax$3=Math.max,nativeMin$3=Math.min,now$4=function(){return root$6.Date.now()};function debounce$4(o,a,s){var c,f,d,y,_,S,b=0,$=!1,P=!1,T=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT$3);a=toNumber$3(a)||0,isObject$9(s)&&($=!!s.leading,P="maxWait"in s,d=P?nativeMax$3(toNumber$3(s.maxWait)||0,a):d,T="trailing"in s?!!s.trailing:T);function C(z){var H=c,G=f;return c=f=void 0,b=z,y=o.apply(G,H),y}function O(z){return b=z,_=setTimeout(j,a),$?C(z):y}function A(z){var H=z-S,G=z-b,X=a-H;return P?nativeMin$3(X,d-G):X}function M(z){var H=z-S,G=z-b;return S===void 0||H>=a||H<0||P&&G>=d}function j(){var z=now$4();if(M(z))return L(z);_=setTimeout(j,A(z))}function L(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function F(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function I(){return _===void 0?y:L(now$4())}function U(){var z=now$4(),H=M(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return _=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=F,U.flush=I,U}function isObject$9(o){var a=typeof o;return!!o&&(a=="object"||a=="function")}function isObjectLike$5(o){return!!o&&typeof o=="object"}function isSymbol$4(o){return typeof o=="symbol"||isObjectLike$5(o)&&objectToString$5.call(o)==symbolTag$5}function toNumber$3(o){if(typeof o=="number")return o;if(isSymbol$4(o))return NAN$2;if(isObject$9(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=isObject$9(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=o.replace(reTrim$1,"");var s=reIsBinary$2.test(o);return s||reIsOctal$2.test(o)?freeParseInt$2(o.slice(2),s?2:8):reIsBadHex$2.test(o)?NAN$2:+o}var lodash_debounce=debounce$4;const debounce$5=getDefaultExportFromCjs(lodash_debounce);var innerSliderUtils={};Object.defineProperty(innerSliderUtils,"__esModule",{value:!0});innerSliderUtils.checkSpecKeys=innerSliderUtils.checkNavigable=innerSliderUtils.changeSlide=innerSliderUtils.canUseDOM=innerSliderUtils.canGoNext=void 0;innerSliderUtils.clamp=clamp;innerSliderUtils.swipeStart=innerSliderUtils.swipeMove=innerSliderUtils.swipeEnd=innerSliderUtils.slidesOnRight=innerSliderUtils.slidesOnLeft=innerSliderUtils.slideHandler=innerSliderUtils.siblingDirection=innerSliderUtils.safePreventDefault=innerSliderUtils.lazyStartIndex=innerSliderUtils.lazySlidesOnRight=innerSliderUtils.lazySlidesOnLeft=innerSliderUtils.lazyEndIndex=innerSliderUtils.keyHandler=innerSliderUtils.initializedState=innerSliderUtils.getWidth=innerSliderUtils.getTrackLeft=innerSliderUtils.getTrackCSS=innerSliderUtils.getTrackAnimateCSS=innerSliderUtils.getTotalSlides=innerSliderUtils.getSwipeDirection=innerSliderUtils.getSlideCount=innerSliderUtils.getRequiredLazySlides=innerSliderUtils.getPreClones=innerSliderUtils.getPostClones=innerSliderUtils.getOnDemandLazySlides=innerSliderUtils.getNavigableIndexes=innerSliderUtils.getHeight=innerSliderUtils.extractObject=void 0;var _react$5=_interopRequireDefault$a(reactExports);function _interopRequireDefault$a(o){return o&&o.__esModule?o:{default:o}}function ownKeys$n(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$m(o){for(var a=1;a0?1:0):0};innerSliderUtils.lazySlidesOnLeft=lazySlidesOnLeft;var lazySlidesOnRight=function(a){return a.centerMode?Math.floor((a.slidesToShow-1)/2)+1+(parseInt(a.centerPadding)>0?1:0):a.slidesToShow};innerSliderUtils.lazySlidesOnRight=lazySlidesOnRight;var getWidth=function(a){return a&&a.offsetWidth||0};innerSliderUtils.getWidth=getWidth;var getHeight=function(a){return a&&a.offsetHeight||0};innerSliderUtils.getHeight=getHeight;var getSwipeDirection=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c,f,d,y;return c=a.startX-a.curX,f=a.startY-a.curY,d=Math.atan2(f,c),y=Math.round(d*180/Math.PI),y<0&&(y=360-Math.abs(y)),y<=45&&y>=0||y<=360&&y>=315?"left":y>=135&&y<=225?"right":s===!0?y>=35&&y<=135?"up":"down":"vertical"};innerSliderUtils.getSwipeDirection=getSwipeDirection;var canGoNext=function(a){var s=!0;return a.infinite||(a.centerMode&&a.currentSlide>=a.slideCount-1||a.slideCount<=a.slidesToShow||a.currentSlide>=a.slideCount-a.slidesToShow)&&(s=!1),s};innerSliderUtils.canGoNext=canGoNext;var extractObject=function(a,s){var c={};return s.forEach(function(f){return c[f]=a[f]}),c};innerSliderUtils.extractObject=extractObject;var initializedState=function(a){var s=_react$5.default.Children.count(a.children),c=a.listRef,f=Math.ceil(getWidth(c)),d=a.trackRef&&a.trackRef.node,y=Math.ceil(getWidth(d)),_;if(a.vertical)_=f;else{var S=a.centerMode&&parseInt(a.centerPadding)*2;typeof a.centerPadding=="string"&&a.centerPadding.slice(-1)==="%"&&(S*=f/100),_=Math.ceil((f-S)/a.slidesToShow)}var b=c&&getHeight(c.querySelector('[data-index="0"]')),$=b*a.slidesToShow,P=a.currentSlide===void 0?a.initialSlide:a.currentSlide;a.rtl&&a.currentSlide===void 0&&(P=s-1-a.initialSlide);var T=a.lazyLoadedList||[],C=getOnDemandLazySlides(_objectSpread$m(_objectSpread$m({},a),{},{currentSlide:P,lazyLoadedList:T}));T=T.concat(C);var O={slideCount:s,slideWidth:_,listWidth:f,trackWidth:y,currentSlide:P,slideHeight:b,listHeight:$,lazyLoadedList:T};return a.autoplaying===null&&a.autoplay&&(O.autoplaying="playing"),O};innerSliderUtils.initializedState=initializedState;var slideHandler=function(a){var s=a.waitForAnimate,c=a.animating,f=a.fade,d=a.infinite,y=a.index,_=a.slideCount,S=a.lazyLoad,b=a.currentSlide,$=a.centerMode,P=a.slidesToScroll,T=a.slidesToShow,C=a.useCSS,O=a.lazyLoadedList;if(s&&c)return{};var A=y,M,j,L,F={},I={},U=d?y:clamp(y,0,_-1);if(f){if(!d&&(y<0||y>=_))return{};y<0?A=y+_:y>=_&&(A=y-_),S&&O.indexOf(A)<0&&(O=O.concat(A)),F={animating:!0,currentSlide:A,lazyLoadedList:O,targetSlide:A},I={animating:!1,targetSlide:A}}else M=A,A<0?(M=A+_,d?_%P!==0&&(M=_-_%P):M=0):!canGoNext(a)&&A>b?A=M=b:$&&A>=_?(A=d?_:_-1,M=d?0:_-1):A>=_&&(M=A-_,d?_%P!==0&&(M=0):M=_-T),!d&&A+T>=_&&(M=_-T),j=getTrackLeft(_objectSpread$m(_objectSpread$m({},a),{},{slideIndex:A})),L=getTrackLeft(_objectSpread$m(_objectSpread$m({},a),{},{slideIndex:M})),d||(j===L&&(A=M),j=L),S&&(O=O.concat(getOnDemandLazySlides(_objectSpread$m(_objectSpread$m({},a),{},{currentSlide:A})))),C?(F={animating:!0,currentSlide:M,trackStyle:getTrackAnimateCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:j})),lazyLoadedList:O,targetSlide:U},I={animating:!1,currentSlide:M,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:L})),swipeLeft:null,targetSlide:U}):F={currentSlide:M,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:L})),lazyLoadedList:O,targetSlide:U};return{state:F,nextState:I}};innerSliderUtils.slideHandler=slideHandler;var changeSlide=function(a,s){var c,f,d,y,_,S=a.slidesToScroll,b=a.slidesToShow,$=a.slideCount,P=a.currentSlide,T=a.targetSlide,C=a.lazyLoad,O=a.infinite;if(y=$%S!==0,c=y?0:($-P)%S,s.message==="previous")d=c===0?S:b-c,_=P-d,C&&!O&&(f=P-d,_=f===-1?$-1:f),O||(_=T-S);else if(s.message==="next")d=c===0?S:c,_=P+d,C&&!O&&(_=(P+S)%$+c),O||(_=T+S);else if(s.message==="dots")_=s.index*s.slidesToScroll;else if(s.message==="children"){if(_=s.index,O){var A=siblingDirection(_objectSpread$m(_objectSpread$m({},a),{},{targetSlide:_}));_>s.currentSlide&&A==="left"?_=_-$:_10)return{scrolling:!0};_&&(L.swipeLength=X);var W=(S?-1:1)*(L.curX>L.startX?1:-1);_&&(W=L.curY>L.startY?1:-1);var K=Math.ceil(A/M),ie=getSwipeDirection(s.touchObject,_),ee=L.swipeLength;return j||(b===0&&(ie==="right"||ie==="down")||b+1>=K&&(ie==="left"||ie==="up")||!canGoNext(s)&&(ie==="left"||ie==="up"))&&(ee=L.swipeLength*$,P===!1&&T&&(T(ie),H.edgeDragged=!0)),!C&&F&&(F(ie),H.swiped=!0),d?z=G+ee*(I/U)*W:S?z=G-ee*W:z=G+ee*W,_&&(z=G+ee*W),H=_objectSpread$m(_objectSpread$m({},H),{},{touchObject:L,swipeLeft:z,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},s),{},{left:z}))}),Math.abs(L.curX-L.startX)10&&(H.swiping=!0,safePreventDefault(a)),H}};innerSliderUtils.swipeMove=swipeMove;var swipeEnd=function(a,s){var c=s.dragging,f=s.swipe,d=s.touchObject,y=s.listWidth,_=s.touchThreshold,S=s.verticalSwiping,b=s.listHeight,$=s.swipeToSlide,P=s.scrolling,T=s.onSwipe,C=s.targetSlide,O=s.currentSlide,A=s.infinite;if(!c)return f&&safePreventDefault(a),{};var M=S?b/_:y/_,j=getSwipeDirection(d,S),L={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(P||!d.swipeLength)return L;if(d.swipeLength>M){safePreventDefault(a),T&&T(j);var F,I,U=A?O:C;switch(j){case"left":case"up":I=U+getSlideCount(s),F=$?checkNavigable(s,I):I,L.currentDirection=0;break;case"right":case"down":I=U-getSlideCount(s),F=$?checkNavigable(s,I):I,L.currentDirection=1;break;default:F=U}L.triggerSlideHandler=F}else{var z=getTrackLeft(s);L.trackStyle=getTrackAnimateCSS(_objectSpread$m(_objectSpread$m({},s),{},{left:z}))}return L};innerSliderUtils.swipeEnd=swipeEnd;var getNavigableIndexes=function(a){for(var s=a.infinite?a.slideCount*2:a.slideCount,c=a.infinite?a.slidesToShow*-1:0,f=a.infinite?a.slidesToShow*-1:0,d=[];cc[c.length-1])s=c[c.length-1];else for(var d in c){if(sa.swipeLeft*-1)return c=S,!1}else if(S.offsetLeft-s+getWidth(S)/2>a.swipeLeft*-1)return c=S,!1;return!0}),!c)return 0;var y=a.rtl===!0?a.slideCount-a.currentSlide:a.currentSlide,_=Math.abs(c.dataset.index-y)||1;return _}else return a.slidesToScroll};innerSliderUtils.getSlideCount=getSlideCount;var checkSpecKeys=function(a,s){return s.reduce(function(c,f){return c&&a.hasOwnProperty(f)},!0)?null:void 0};innerSliderUtils.checkSpecKeys=checkSpecKeys;var getTrackCSS=function(a){checkSpecKeys(a,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var s,c,f=a.slideCount+2*a.slidesToShow;a.vertical?c=f*a.slideHeight:s=getTotalSlides(a)*a.slideWidth;var d={opacity:1,transition:"",WebkitTransition:""};if(a.useTransform){var y=a.vertical?"translate3d(0px, "+a.left+"px, 0px)":"translate3d("+a.left+"px, 0px, 0px)",_=a.vertical?"translate3d(0px, "+a.left+"px, 0px)":"translate3d("+a.left+"px, 0px, 0px)",S=a.vertical?"translateY("+a.left+"px)":"translateX("+a.left+"px)";d=_objectSpread$m(_objectSpread$m({},d),{},{WebkitTransform:y,transform:_,msTransform:S})}else a.vertical?d.top=a.left:d.left=a.left;return a.fade&&(d={opacity:1}),s&&(d.width=s),c&&(d.height=c),window&&!window.addEventListener&&window.attachEvent&&(a.vertical?d.marginTop=a.left+"px":d.marginLeft=a.left+"px"),d};innerSliderUtils.getTrackCSS=getTrackCSS;var getTrackAnimateCSS=function(a){checkSpecKeys(a,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var s=getTrackCSS(a);return a.useTransform?(s.WebkitTransition="-webkit-transform "+a.speed+"ms "+a.cssEase,s.transition="transform "+a.speed+"ms "+a.cssEase):a.vertical?s.transition="top "+a.speed+"ms "+a.cssEase:s.transition="left "+a.speed+"ms "+a.cssEase,s};innerSliderUtils.getTrackAnimateCSS=getTrackAnimateCSS;var getTrackLeft=function(a){if(a.unslick)return 0;checkSpecKeys(a,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var s=a.slideIndex,c=a.trackRef,f=a.infinite,d=a.centerMode,y=a.slideCount,_=a.slidesToShow,S=a.slidesToScroll,b=a.slideWidth,$=a.listWidth,P=a.variableWidth,T=a.slideHeight,C=a.fade,O=a.vertical,A=0,M,j,L=0;if(C||a.slideCount===1)return 0;var F=0;if(f?(F=-getPreClones(a),y%S!==0&&s+S>y&&(F=-(s>y?_-(s-y):y%S)),d&&(F+=parseInt(_/2))):(y%S!==0&&s+S>y&&(F=_-y%S),d&&(F=parseInt(_/2))),A=F*b,L=F*T,O?M=s*T*-1+L:M=s*b*-1+A,P===!0){var I,U=c&&c.node;if(I=s+getPreClones(a),j=U&&U.childNodes[I],M=j?j.offsetLeft*-1:0,d===!0){I=f?s+getPreClones(a):s,j=U&&U.children[I],M=0;for(var z=0;za.currentSlide?a.targetSlide>a.currentSlide+slidesOnRight(a)?"left":"right":a.targetSlide0&&(y+=1),f&&s%2===0&&(y+=1),y}return f?0:s-1};innerSliderUtils.slidesOnRight=slidesOnRight;var slidesOnLeft=function(a){var s=a.slidesToShow,c=a.centerMode,f=a.rtl,d=a.centerPadding;if(c){var y=(s-1)/2+1;return parseInt(d)>0&&(y+=1),!f&&s%2===0&&(y+=1),y}return f?s-1:0};innerSliderUtils.slidesOnLeft=slidesOnLeft;var canUseDOM=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)};innerSliderUtils.canUseDOM=canUseDOM;var track={};function _typeof$i(o){"@babel/helpers - typeof";return _typeof$i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$i(o)}Object.defineProperty(track,"__esModule",{value:!0});track.Track=void 0;var _react$4=_interopRequireDefault$9(reactExports),_classnames$3=_interopRequireDefault$9(classnamesExports),_innerSliderUtils$3=innerSliderUtils;function _interopRequireDefault$9(o){return o&&o.__esModule?o:{default:o}}function _extends$e(){return _extends$e=Object.assign||function(o){for(var a=1;a=a.slideCount,a.centerMode?(d=Math.floor(a.slidesToShow/2),c=(y-a.currentSlide)%a.slideCount===0,y>a.currentSlide-d-1&&y<=a.currentSlide+d&&(s=!0)):s=a.currentSlide<=y&&y=a.slideCount?_=a.targetSlide-a.slideCount:_=a.targetSlide;var S=y===_;return{"slick-slide":!0,"slick-active":s,"slick-center":c,"slick-cloned":f,"slick-current":S}},getSlideStyle=function(a){var s={};return(a.variableWidth===void 0||a.variableWidth===!1)&&(s.width=a.slideWidth),a.fade&&(s.position="relative",a.vertical?s.top=-a.index*parseInt(a.slideHeight):s.left=-a.index*parseInt(a.slideWidth),s.opacity=a.currentSlide===a.index?1:0,a.useCSS&&(s.transition="opacity "+a.speed+"ms "+a.cssEase+", visibility "+a.speed+"ms "+a.cssEase)),s},getKey$1=function(a,s){return a.key||s},renderSlides=function(a){var s,c=[],f=[],d=[],y=_react$4.default.Children.count(a.children),_=(0,_innerSliderUtils$3.lazyStartIndex)(a),S=(0,_innerSliderUtils$3.lazyEndIndex)(a);return _react$4.default.Children.forEach(a.children,function(b,$){var P,T={message:"children",index:$,slidesToScroll:a.slidesToScroll,currentSlide:a.currentSlide};!a.lazyLoad||a.lazyLoad&&a.lazyLoadedList.indexOf($)>=0?P=b:P=_react$4.default.createElement("div",null);var C=getSlideStyle(_objectSpread$l(_objectSpread$l({},a),{},{index:$})),O=P.props.className||"",A=getSlideClasses(_objectSpread$l(_objectSpread$l({},a),{},{index:$}));if(c.push(_react$4.default.cloneElement(P,{key:"original"+getKey$1(P,$),"data-index":$,className:(0,_classnames$3.default)(A,O),tabIndex:"-1","aria-hidden":!A["slick-active"],style:_objectSpread$l(_objectSpread$l({outline:"none"},P.props.style||{}),C),onClick:function(L){P.props&&P.props.onClick&&P.props.onClick(L),a.focusOnSelect&&a.focusOnSelect(T)}})),a.infinite&&a.fade===!1){var M=y-$;M<=(0,_innerSliderUtils$3.getPreClones)(a)&&y!==a.slidesToShow&&(s=-M,s>=_&&(P=b),A=getSlideClasses(_objectSpread$l(_objectSpread$l({},a),{},{index:s})),f.push(_react$4.default.cloneElement(P,{key:"precloned"+getKey$1(P,s),"data-index":s,tabIndex:"-1",className:(0,_classnames$3.default)(A,O),"aria-hidden":!A["slick-active"],style:_objectSpread$l(_objectSpread$l({},P.props.style||{}),C),onClick:function(L){P.props&&P.props.onClick&&P.props.onClick(L),a.focusOnSelect&&a.focusOnSelect(T)}}))),y!==a.slidesToShow&&(s=y+$,s=I&&T<=L:T===I}),z={message:"dots",index:M,slidesToScroll:b,currentSlide:T},H=this.clickHandler.bind(this,z);A=A.concat(_react$3.default.createElement("li",{key:M,className:U},_react$3.default.cloneElement(this.props.customPaging(M),{onClick:H})))}return _react$3.default.cloneElement(this.props.appendDots(A),_objectSpread$k({className:this.props.dotsClass},O))}}]),s}(_react$3.default.PureComponent);dots.Dots=Dots;var arrows={};function _typeof$g(o){"@babel/helpers - typeof";return _typeof$g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$g(o)}Object.defineProperty(arrows,"__esModule",{value:!0});arrows.PrevArrow=arrows.NextArrow=void 0;var _react$2=_interopRequireDefault$7(reactExports),_classnames$1=_interopRequireDefault$7(classnamesExports),_innerSliderUtils$1=innerSliderUtils;function _interopRequireDefault$7(o){return o&&o.__esModule?o:{default:o}}function _extends$d(){return _extends$d=Object.assign||function(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$8(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function ownKeys$j(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$i(o){for(var a=1;a0&&(f.setState(function(S){return{lazyLoadedList:S.lazyLoadedList.concat(y)}}),f.props.onLazyLoad&&f.props.onLazyLoad(y))}var _=_objectSpread$i({listRef:f.list,trackRef:f.track},f.props);f.updateState(_,!0,function(){f.adaptHeight(),f.props.autoplay&&f.autoPlay("update")}),f.props.lazyLoad==="progressive"&&(f.lazyLoadTimer=setInterval(f.progressiveLazyLoad,1e3)),f.ro=new _resizeObserverPolyfill.default(function(){f.state.animating?(f.onWindowResized(!1),f.callbackTimers.push(setTimeout(function(){return f.onWindowResized()},f.props.speed))):f.onWindowResized()}),f.ro.observe(f.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(S){S.onfocus=f.props.pauseOnFocus?f.onSlideFocus:null,S.onblur=f.props.pauseOnFocus?f.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",f.onWindowResized):window.attachEvent("onresize",f.onWindowResized)}),_defineProperty$k(_assertThisInitialized$1(f),"componentWillUnmount",function(){f.animationEndCallback&&clearTimeout(f.animationEndCallback),f.lazyLoadTimer&&clearInterval(f.lazyLoadTimer),f.callbackTimers.length&&(f.callbackTimers.forEach(function(y){return clearTimeout(y)}),f.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",f.onWindowResized):window.detachEvent("onresize",f.onWindowResized),f.autoplayTimer&&clearInterval(f.autoplayTimer),f.ro.disconnect()}),_defineProperty$k(_assertThisInitialized$1(f),"componentDidUpdate",function(y){if(f.checkImagesLoad(),f.props.onReInit&&f.props.onReInit(),f.props.lazyLoad){var _=(0,_innerSliderUtils.getOnDemandLazySlides)(_objectSpread$i(_objectSpread$i({},f.props),f.state));_.length>0&&(f.setState(function($){return{lazyLoadedList:$.lazyLoadedList.concat(_)}}),f.props.onLazyLoad&&f.props.onLazyLoad(_))}f.adaptHeight();var S=_objectSpread$i(_objectSpread$i({listRef:f.list,trackRef:f.track},f.props),f.state),b=f.didPropsChange(y);b&&f.updateState(S,b,function(){f.state.currentSlide>=_react$1.default.Children.count(f.props.children)&&f.changeSlide({message:"index",index:_react$1.default.Children.count(f.props.children)-f.props.slidesToShow,currentSlide:f.state.currentSlide}),f.props.autoplay?f.autoPlay("update"):f.pause("paused")})}),_defineProperty$k(_assertThisInitialized$1(f),"onWindowResized",function(y){f.debouncedResize&&f.debouncedResize.cancel(),f.debouncedResize=(0,_lodash.default)(function(){return f.resizeWindow(y)},50),f.debouncedResize()}),_defineProperty$k(_assertThisInitialized$1(f),"resizeWindow",function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,_=!!(f.track&&f.track.node);if(_){var S=_objectSpread$i(_objectSpread$i({listRef:f.list,trackRef:f.track},f.props),f.state);f.updateState(S,y,function(){f.props.autoplay?f.autoPlay("update"):f.pause("paused")}),f.setState({animating:!1}),clearTimeout(f.animationEndCallback),delete f.animationEndCallback}}),_defineProperty$k(_assertThisInitialized$1(f),"updateState",function(y,_,S){var b=(0,_innerSliderUtils.initializedState)(y);y=_objectSpread$i(_objectSpread$i(_objectSpread$i({},y),b),{},{slideIndex:b.currentSlide});var $=(0,_innerSliderUtils.getTrackLeft)(y);y=_objectSpread$i(_objectSpread$i({},y),{},{left:$});var P=(0,_innerSliderUtils.getTrackCSS)(y);(_||_react$1.default.Children.count(f.props.children)!==_react$1.default.Children.count(y.children))&&(b.trackStyle=P),f.setState(b,S)}),_defineProperty$k(_assertThisInitialized$1(f),"ssrInit",function(){if(f.props.variableWidth){var y=0,_=0,S=[],b=(0,_innerSliderUtils.getPreClones)(_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{slideCount:f.props.children.length})),$=(0,_innerSliderUtils.getPostClones)(_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{slideCount:f.props.children.length}));f.props.children.forEach(function(H){S.push(H.props.style.width),y+=H.props.style.width});for(var P=0;P=_&&f.onWindowResized()};if(!b.onclick)b.onclick=function(){return b.parentNode.focus()};else{var P=b.onclick;b.onclick=function(){P(),b.parentNode.focus()}}b.onload||(f.props.lazyLoad?b.onload=function(){f.adaptHeight(),f.callbackTimers.push(setTimeout(f.onWindowResized,f.props.speed))}:(b.onload=$,b.onerror=function(){$(),f.props.onLazyLoadError&&f.props.onLazyLoadError()}))})}),_defineProperty$k(_assertThisInitialized$1(f),"progressiveLazyLoad",function(){for(var y=[],_=_objectSpread$i(_objectSpread$i({},f.props),f.state),S=f.state.currentSlide;S=-(0,_innerSliderUtils.getPreClones)(_);b--)if(f.state.lazyLoadedList.indexOf(b)<0){y.push(b);break}y.length>0?(f.setState(function($){return{lazyLoadedList:$.lazyLoadedList.concat(y)}}),f.props.onLazyLoad&&f.props.onLazyLoad(y)):f.lazyLoadTimer&&(clearInterval(f.lazyLoadTimer),delete f.lazyLoadTimer)}),_defineProperty$k(_assertThisInitialized$1(f),"slideHandler",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=f.props,b=S.asNavFor,$=S.beforeChange,P=S.onLazyLoad,T=S.speed,C=S.afterChange,O=f.state.currentSlide,A=(0,_innerSliderUtils.slideHandler)(_objectSpread$i(_objectSpread$i(_objectSpread$i({index:y},f.props),f.state),{},{trackRef:f.track,useCSS:f.props.useCSS&&!_})),M=A.state,j=A.nextState;if(M){$&&$(O,M.currentSlide);var L=M.lazyLoadedList.filter(function(F){return f.state.lazyLoadedList.indexOf(F)<0});P&&L.length>0&&P(L),!f.props.waitForAnimate&&f.animationEndCallback&&(clearTimeout(f.animationEndCallback),C&&C(O),delete f.animationEndCallback),f.setState(M,function(){b&&f.asNavForIndex!==y&&(f.asNavForIndex=y,b.innerSlider.slideHandler(y)),j&&(f.animationEndCallback=setTimeout(function(){var F=j.animating,I=_objectWithoutProperties$6(j,["animating"]);f.setState(I,function(){f.callbackTimers.push(setTimeout(function(){return f.setState({animating:F})},10)),C&&C(M.currentSlide),delete f.animationEndCallback})},T))})}}),_defineProperty$k(_assertThisInitialized$1(f),"changeSlide",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=_objectSpread$i(_objectSpread$i({},f.props),f.state),b=(0,_innerSliderUtils.changeSlide)(S,y);if(!(b!==0&&!b)&&(_===!0?f.slideHandler(b,_):f.slideHandler(b),f.props.autoplay&&f.autoPlay("update"),f.props.focusOnSelect)){var $=f.list.querySelectorAll(".slick-current");$[0]&&$[0].focus()}}),_defineProperty$k(_assertThisInitialized$1(f),"clickHandler",function(y){f.clickable===!1&&(y.stopPropagation(),y.preventDefault()),f.clickable=!0}),_defineProperty$k(_assertThisInitialized$1(f),"keyHandler",function(y){var _=(0,_innerSliderUtils.keyHandler)(y,f.props.accessibility,f.props.rtl);_!==""&&f.changeSlide({message:_})}),_defineProperty$k(_assertThisInitialized$1(f),"selectHandler",function(y){f.changeSlide(y)}),_defineProperty$k(_assertThisInitialized$1(f),"disableBodyScroll",function(){var y=function(S){S=S||window.event,S.preventDefault&&S.preventDefault(),S.returnValue=!1};window.ontouchmove=y}),_defineProperty$k(_assertThisInitialized$1(f),"enableBodyScroll",function(){window.ontouchmove=null}),_defineProperty$k(_assertThisInitialized$1(f),"swipeStart",function(y){f.props.verticalSwiping&&f.disableBodyScroll();var _=(0,_innerSliderUtils.swipeStart)(y,f.props.swipe,f.props.draggable);_!==""&&f.setState(_)}),_defineProperty$k(_assertThisInitialized$1(f),"swipeMove",function(y){var _=(0,_innerSliderUtils.swipeMove)(y,_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{trackRef:f.track,listRef:f.list,slideIndex:f.state.currentSlide}));_&&(_.swiping&&(f.clickable=!1),f.setState(_))}),_defineProperty$k(_assertThisInitialized$1(f),"swipeEnd",function(y){var _=(0,_innerSliderUtils.swipeEnd)(y,_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{trackRef:f.track,listRef:f.list,slideIndex:f.state.currentSlide}));if(_){var S=_.triggerSlideHandler;delete _.triggerSlideHandler,f.setState(_),S!==void 0&&(f.slideHandler(S),f.props.verticalSwiping&&f.enableBodyScroll())}}),_defineProperty$k(_assertThisInitialized$1(f),"touchEnd",function(y){f.swipeEnd(y),f.clickable=!0}),_defineProperty$k(_assertThisInitialized$1(f),"slickPrev",function(){f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"previous"})},0))}),_defineProperty$k(_assertThisInitialized$1(f),"slickNext",function(){f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"next"})},0))}),_defineProperty$k(_assertThisInitialized$1(f),"slickGoTo",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(y=Number(y),isNaN(y))return"";f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"index",index:y,currentSlide:f.state.currentSlide},_)},0))}),_defineProperty$k(_assertThisInitialized$1(f),"play",function(){var y;if(f.props.rtl)y=f.state.currentSlide-f.props.slidesToScroll;else if((0,_innerSliderUtils.canGoNext)(_objectSpread$i(_objectSpread$i({},f.props),f.state)))y=f.state.currentSlide+f.props.slidesToScroll;else return!1;f.slideHandler(y)}),_defineProperty$k(_assertThisInitialized$1(f),"autoPlay",function(y){f.autoplayTimer&&clearInterval(f.autoplayTimer);var _=f.state.autoplaying;if(y==="update"){if(_==="hovered"||_==="focused"||_==="paused")return}else if(y==="leave"){if(_==="paused"||_==="focused")return}else if(y==="blur"&&(_==="paused"||_==="hovered"))return;f.autoplayTimer=setInterval(f.play,f.props.autoplaySpeed+50),f.setState({autoplaying:"playing"})}),_defineProperty$k(_assertThisInitialized$1(f),"pause",function(y){f.autoplayTimer&&(clearInterval(f.autoplayTimer),f.autoplayTimer=null);var _=f.state.autoplaying;y==="paused"?f.setState({autoplaying:"paused"}):y==="focused"?(_==="hovered"||_==="playing")&&f.setState({autoplaying:"focused"}):_==="playing"&&f.setState({autoplaying:"hovered"})}),_defineProperty$k(_assertThisInitialized$1(f),"onDotsOver",function(){return f.props.autoplay&&f.pause("hovered")}),_defineProperty$k(_assertThisInitialized$1(f),"onDotsLeave",function(){return f.props.autoplay&&f.state.autoplaying==="hovered"&&f.autoPlay("leave")}),_defineProperty$k(_assertThisInitialized$1(f),"onTrackOver",function(){return f.props.autoplay&&f.pause("hovered")}),_defineProperty$k(_assertThisInitialized$1(f),"onTrackLeave",function(){return f.props.autoplay&&f.state.autoplaying==="hovered"&&f.autoPlay("leave")}),_defineProperty$k(_assertThisInitialized$1(f),"onSlideFocus",function(){return f.props.autoplay&&f.pause("focused")}),_defineProperty$k(_assertThisInitialized$1(f),"onSlideBlur",function(){return f.props.autoplay&&f.state.autoplaying==="focused"&&f.autoPlay("blur")}),_defineProperty$k(_assertThisInitialized$1(f),"render",function(){var y=(0,_classnames.default)("slick-slider",f.props.className,{"slick-vertical":f.props.vertical,"slick-initialized":!0}),_=_objectSpread$i(_objectSpread$i({},f.props),f.state),S=(0,_innerSliderUtils.extractObject)(_,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),b=f.props.pauseOnHover;S=_objectSpread$i(_objectSpread$i({},S),{},{onMouseEnter:b?f.onTrackOver:null,onMouseLeave:b?f.onTrackLeave:null,onMouseOver:b?f.onTrackOver:null,focusOnSelect:f.props.focusOnSelect&&f.clickable?f.selectHandler:null});var $;if(f.props.dots===!0&&f.state.slideCount>=f.props.slidesToShow){var P=(0,_innerSliderUtils.extractObject)(_,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),T=f.props.pauseOnDotsHover;P=_objectSpread$i(_objectSpread$i({},P),{},{clickHandler:f.changeSlide,onMouseEnter:T?f.onDotsLeave:null,onMouseOver:T?f.onDotsOver:null,onMouseLeave:T?f.onDotsLeave:null}),$=_react$1.default.createElement(_dots.Dots,P)}var C,O,A=(0,_innerSliderUtils.extractObject)(_,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);A.clickHandler=f.changeSlide,f.props.arrows&&(C=_react$1.default.createElement(_arrows.PrevArrow,A),O=_react$1.default.createElement(_arrows.NextArrow,A));var M=null;f.props.vertical&&(M={height:f.state.listHeight});var j=null;f.props.vertical===!1?f.props.centerMode===!0&&(j={padding:"0px "+f.props.centerPadding}):f.props.centerMode===!0&&(j={padding:f.props.centerPadding+" 0px"});var L=_objectSpread$i(_objectSpread$i({},M),j),F=f.props.touchMove,I={className:"slick-list",style:L,onClick:f.clickHandler,onMouseDown:F?f.swipeStart:null,onMouseMove:f.state.dragging&&F?f.swipeMove:null,onMouseUp:F?f.swipeEnd:null,onMouseLeave:f.state.dragging&&F?f.swipeEnd:null,onTouchStart:F?f.swipeStart:null,onTouchMove:f.state.dragging&&F?f.swipeMove:null,onTouchEnd:F?f.touchEnd:null,onTouchCancel:f.state.dragging&&F?f.swipeEnd:null,onKeyDown:f.props.accessibility?f.keyHandler:null},U={className:y,dir:"ltr",style:f.props.style};return f.props.unslick&&(I={className:"slick-list"},U={className:y}),_react$1.default.createElement("div",U,f.props.unslick?"":C,_react$1.default.createElement("div",_extends$c({ref:f.listRefHandler},I),_react$1.default.createElement(_track.Track,_extends$c({ref:f.trackRefHandler},S),f.props.children)),f.props.unslick?"":O,f.props.unslick?"":$)}),f.list=null,f.track=null,f.state=_objectSpread$i(_objectSpread$i({},_initialState.default),{},{currentSlide:f.props.initialSlide,slideCount:_react$1.default.Children.count(f.props.children)}),f.callbackTimers=[],f.clickable=!0,f.debouncedResize=null;var d=f.ssrInit();return f.state=_objectSpread$i(_objectSpread$i({},f.state),d),f}return _createClass$1(s,[{key:"didPropsChange",value:function(f){for(var d=!1,y=0,_=Object.keys(this.props);y<_.length;y++){var S=_[y];if(!f.hasOwnProperty(S)){d=!0;break}if(!(_typeof$f(f[S])==="object"||typeof f[S]=="function")&&f[S]!==this.props[S]){d=!0;break}}return d||_react$1.default.Children.count(this.props.children)!==_react$1.default.Children.count(f.children)}}]),s}(_react$1.default.Component);innerSlider.InnerSlider=InnerSlider;var defaultProps$1={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=s(reactExports);function s(d){return d&&d.__esModule?d:{default:d}}var c={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(y){return a.default.createElement("ul",{style:{display:"block"}},y)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(y){return a.default.createElement("button",null,y+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},f=c;o.default=f})(defaultProps$1);var QueryHandler_1,hasRequiredQueryHandler;function requireQueryHandler(){if(hasRequiredQueryHandler)return QueryHandler_1;hasRequiredQueryHandler=1;function o(a){this.options=a,!a.deferSetup&&this.setup()}return o.prototype={constructor:o,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},QueryHandler_1=o,QueryHandler_1}var Util$1,hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return Util$1;hasRequiredUtil=1;function o(c,f){var d=0,y=c.length,_;for(d;d1&&arguments[1]!==void 0?arguments[1]:!1;return ie.innerSlider.slickGoTo(ee,de)}),U(L(ie),"slickPause",function(){return ie.innerSlider.pause("paused")}),U(L(ie),"slickPlay",function(){return ie.innerSlider.autoPlay("play")}),ie.state={breakpoint:null},ie._responsiveMediaHandlers=[],ie}return C(W,[{key:"media",value:function(ie,ee){z.register(ie,ee),this._responsiveMediaHandlers.push({query:ie,handler:ee})}},{key:"componentDidMount",value:function(){var ie=this;if(this.props.responsive){var ee=this.props.responsive.map(function(Z){return Z.breakpoint});ee.sort(function(Z,Q){return Z-Q}),ee.forEach(function(Z,Q){var J;Q===0?J=(0,f.default)({minWidth:0,maxWidth:Z}):J=(0,f.default)({minWidth:ee[Q-1]+1,maxWidth:Z}),(0,y.canUseDOM)()&&ie.media(J,function(){ie.setState({breakpoint:Z})})});var de=(0,f.default)({minWidth:ee.slice(-1)[0]});(0,y.canUseDOM)()&&this.media(de,function(){ie.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(ie){z.unregister(ie.query,ie.handler)})}},{key:"render",value:function(){var ie=this,ee,de;this.state.breakpoint?(de=this.props.responsive.filter(function(pe){return pe.breakpoint===ie.state.breakpoint}),ee=de[0].settings==="unslick"?"unslick":$($($({},d.default),this.props),de[0].settings)):ee=$($({},d.default),this.props),ee.centerMode&&(ee.slidesToScroll>1,ee.slidesToScroll=1),ee.fade&&(ee.slidesToShow>1,ee.slidesToScroll>1,ee.slidesToShow=1,ee.slidesToScroll=1);var Z=s.default.Children.toArray(this.props.children);Z=Z.filter(function(pe){return typeof pe=="string"?!!pe.trim():!!pe}),ee.variableWidth&&(ee.rows>1||ee.slidesPerRow>1)&&(ee.variableWidth=!1);for(var Q=[],J=null,ne=0;ne=Z.length));ce+=1)ae.push(s.default.cloneElement(Z[ce],{key:100*ne+10*le+ce,tabIndex:-1,style:{width:"".concat(100/ee.slidesPerRow,"%"),display:"inline-block"}}));fe.push(s.default.createElement("div",{key:10*ne+le},ae))}ee.variableWidth?Q.push(s.default.createElement("div",{key:ne,style:{width:J}},fe)):Q.push(s.default.createElement("div",{key:ne},fe))}if(ee==="unslick"){var ge="regular slider "+(this.props.className||"");return s.default.createElement("div",{className:ge},Z)}else Q.length<=ee.slidesToShow&&(ee.unslick=!0);return s.default.createElement(c.InnerSlider,S({style:this.props.style,ref:this.innerSliderRefHandler},ee),Q)}}]),W}(s.default.Component);o.default=H})(slider);(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=s(slider);function s(f){return f&&f.__esModule?f:{default:f}}var c=a.default;o.default=c})(lib$3);const Slider=getDefaultExportFromCjs(lib$3);var lib$2={exports:{}},_FullInternals={},_CoreInternals={},Global={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o._registerNode=o.Konva=o.glob=void 0;const a=Math.PI/180;function s(){return typeof window!="undefined"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}o.glob=typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"?self:{},o.Konva={_global:o.glob,version:"9.3.3",isBrowser:s(),isUnminified:/param/.test(function(f){}.toString()),dblClickWindow:400,getAngle(f){return o.Konva.angleDeg?f*a:f},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window!="undefined"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return o.Konva.DD.isDragging},isDragReady(){return!!o.Konva.DD.node},releaseCanvasOnDestroy:!0,document:o.glob.document,_injectGlobal(f){o.glob.Konva=f}};const c=f=>{o.Konva[f.prototype.getClassName()]=f};o._registerNode=c,o.Konva._injectGlobal(o.Konva)})(Global);var Util={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Util=o.Transform=void 0;const a=Global;class s{constructor(I=[1,0,0,1,0,0]){this.dirty=!1,this.m=I&&I.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new s(this.m)}copyInto(I){I.m[0]=this.m[0],I.m[1]=this.m[1],I.m[2]=this.m[2],I.m[3]=this.m[3],I.m[4]=this.m[4],I.m[5]=this.m[5]}point(I){var U=this.m;return{x:U[0]*I.x+U[2]*I.y+U[4],y:U[1]*I.x+U[3]*I.y+U[5]}}translate(I,U){return this.m[4]+=this.m[0]*I+this.m[2]*U,this.m[5]+=this.m[1]*I+this.m[3]*U,this}scale(I,U){return this.m[0]*=I,this.m[1]*=I,this.m[2]*=U,this.m[3]*=U,this}rotate(I){var U=Math.cos(I),z=Math.sin(I),H=this.m[0]*U+this.m[2]*z,G=this.m[1]*U+this.m[3]*z,X=this.m[0]*-z+this.m[2]*U,W=this.m[1]*-z+this.m[3]*U;return this.m[0]=H,this.m[1]=G,this.m[2]=X,this.m[3]=W,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(I,U){var z=this.m[0]+this.m[2]*U,H=this.m[1]+this.m[3]*U,G=this.m[2]+this.m[0]*I,X=this.m[3]+this.m[1]*I;return this.m[0]=z,this.m[1]=H,this.m[2]=G,this.m[3]=X,this}multiply(I){var U=this.m[0]*I.m[0]+this.m[2]*I.m[1],z=this.m[1]*I.m[0]+this.m[3]*I.m[1],H=this.m[0]*I.m[2]+this.m[2]*I.m[3],G=this.m[1]*I.m[2]+this.m[3]*I.m[3],X=this.m[0]*I.m[4]+this.m[2]*I.m[5]+this.m[4],W=this.m[1]*I.m[4]+this.m[3]*I.m[5]+this.m[5];return this.m[0]=U,this.m[1]=z,this.m[2]=H,this.m[3]=G,this.m[4]=X,this.m[5]=W,this}invert(){var I=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),U=this.m[3]*I,z=-this.m[1]*I,H=-this.m[2]*I,G=this.m[0]*I,X=I*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),W=I*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=U,this.m[1]=z,this.m[2]=H,this.m[3]=G,this.m[4]=X,this.m[5]=W,this}getMatrix(){return this.m}decompose(){var I=this.m[0],U=this.m[1],z=this.m[2],H=this.m[3],G=this.m[4],X=this.m[5],W=I*H-U*z;let K={x:G,y:X,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(I!=0||U!=0){var ie=Math.sqrt(I*I+U*U);K.rotation=U>0?Math.acos(I/ie):-Math.acos(I/ie),K.scaleX=ie,K.scaleY=W/ie,K.skewX=(I*z+U*H)/W,K.skewY=0}else if(z!=0||H!=0){var ee=Math.sqrt(z*z+H*H);K.rotation=Math.PI/2-(H>0?Math.acos(-z/ee):-Math.acos(z/ee)),K.scaleX=W/ee,K.scaleY=ee,K.skewX=0,K.skewY=(I*z+U*H)/W}return K.rotation=o.Util._getRotation(K.rotation),K}}o.Transform=s;var c="[object Array]",f="[object Number]",d="[object String]",y="[object Boolean]",_=Math.PI/180,S=180/Math.PI,b="#",$="",P="0",T="Konva warning: ",C="Konva error: ",O="rgb(",A={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},M=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,j=[];const L=typeof requestAnimationFrame!="undefined"&&requestAnimationFrame||function(F){setTimeout(F,60)};o.Util={_isElement(F){return!!(F&&F.nodeType==1)},_isFunction(F){return!!(F&&F.constructor&&F.call&&F.apply)},_isPlainObject(F){return!!F&&F.constructor===Object},_isArray(F){return Object.prototype.toString.call(F)===c},_isNumber(F){return Object.prototype.toString.call(F)===f&&!isNaN(F)&&isFinite(F)},_isString(F){return Object.prototype.toString.call(F)===d},_isBoolean(F){return Object.prototype.toString.call(F)===y},isObject(F){return F instanceof Object},isValidSelector(F){if(typeof F!="string")return!1;var I=F[0];return I==="#"||I==="."||I===I.toUpperCase()},_sign(F){return F===0||F>0?1:-1},requestAnimFrame(F){j.push(F),j.length===1&&L(function(){const I=j;j=[],I.forEach(function(U){U()})})},createCanvasElement(){var F=document.createElement("canvas");try{F.style=F.style||{}}catch(I){}return F},createImageElement(){return document.createElement("img")},_isInDocument(F){for(;F=F.parentNode;)if(F==document)return!0;return!1},_urlToImage(F,I){var U=o.Util.createImageElement();U.onload=function(){I(U)},U.src=F},_rgbToHex(F,I,U){return((1<<24)+(F<<16)+(I<<8)+U).toString(16).slice(1)},_hexToRgb(F){F=F.replace(b,$);var I=parseInt(F,16);return{r:I>>16&255,g:I>>8&255,b:I&255}},getRandomColor(){for(var F=(Math.random()*16777215<<0).toString(16);F.length<6;)F=P+F;return b+F},getRGB(F){var I;return F in A?(I=A[F],{r:I[0],g:I[1],b:I[2]}):F[0]===b?this._hexToRgb(F.substring(1)):F.substr(0,4)===O?(I=M.exec(F.replace(/ /g,"")),{r:parseInt(I[1],10),g:parseInt(I[2],10),b:parseInt(I[3],10)}):{r:0,g:0,b:0}},colorToRGBA(F){return F=F||"black",o.Util._namedColorToRBA(F)||o.Util._hex3ColorToRGBA(F)||o.Util._hex4ColorToRGBA(F)||o.Util._hex6ColorToRGBA(F)||o.Util._hex8ColorToRGBA(F)||o.Util._rgbColorToRGBA(F)||o.Util._rgbaColorToRGBA(F)||o.Util._hslColorToRGBA(F)},_namedColorToRBA(F){var I=A[F.toLowerCase()];return I?{r:I[0],g:I[1],b:I[2],a:1}:null},_rgbColorToRGBA(F){if(F.indexOf("rgb(")===0){F=F.match(/rgb\(([^)]+)\)/)[1];var I=F.split(/ *, */).map(Number);return{r:I[0],g:I[1],b:I[2],a:1}}},_rgbaColorToRGBA(F){if(F.indexOf("rgba(")===0){F=F.match(/rgba\(([^)]+)\)/)[1];var I=F.split(/ *, */).map((U,z)=>U.slice(-1)==="%"?z===3?parseInt(U)/100:parseInt(U)/100*255:Number(U));return{r:I[0],g:I[1],b:I[2],a:I[3]}}},_hex8ColorToRGBA(F){if(F[0]==="#"&&F.length===9)return{r:parseInt(F.slice(1,3),16),g:parseInt(F.slice(3,5),16),b:parseInt(F.slice(5,7),16),a:parseInt(F.slice(7,9),16)/255}},_hex6ColorToRGBA(F){if(F[0]==="#"&&F.length===7)return{r:parseInt(F.slice(1,3),16),g:parseInt(F.slice(3,5),16),b:parseInt(F.slice(5,7),16),a:1}},_hex4ColorToRGBA(F){if(F[0]==="#"&&F.length===5)return{r:parseInt(F[1]+F[1],16),g:parseInt(F[2]+F[2],16),b:parseInt(F[3]+F[3],16),a:parseInt(F[4]+F[4],16)/255}},_hex3ColorToRGBA(F){if(F[0]==="#"&&F.length===4)return{r:parseInt(F[1]+F[1],16),g:parseInt(F[2]+F[2],16),b:parseInt(F[3]+F[3],16),a:1}},_hslColorToRGBA(F){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(F)){const[I,...U]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(F),z=Number(U[0])/360,H=Number(U[1])/100,G=Number(U[2])/100;let X,W,K;if(H===0)return K=G*255,{r:Math.round(K),g:Math.round(K),b:Math.round(K),a:1};G<.5?X=G*(1+H):X=G+H-G*H;const ie=2*G-X,ee=[0,0,0];for(let de=0;de<3;de++)W=z+1/3*-(de-1),W<0&&W++,W>1&&W--,6*W<1?K=ie+(X-ie)*6*W:2*W<1?K=X:3*W<2?K=ie+(X-ie)*(2/3-W)*6:K=ie,ee[de]=K*255;return{r:Math.round(ee[0]),g:Math.round(ee[1]),b:Math.round(ee[2]),a:1}}},haveIntersection(F,I){return!(I.x>F.x+F.width||I.x+I.widthF.y+F.height||I.y+I.height1?(X=U,W=z,K=(U-H)*(U-H)+(z-G)*(z-G)):(X=F+ee*(U-F),W=I+ee*(z-I),K=(X-H)*(X-H)+(W-G)*(W-G))}return[X,W,K]},_getProjectionToLine(F,I,U){var z=o.Util.cloneObject(F),H=Number.MAX_VALUE;return I.forEach(function(G,X){if(!(!U&&X===I.length-1)){var W=I[(X+1)%I.length],K=o.Util._getProjectionToSegment(G.x,G.y,W.x,W.y,F.x,F.y),ie=K[0],ee=K[1],de=K[2];deI.length){var X=I;I=F,F=X}for(z=0;z{I.width=0,I.height=0})},drawRoundedRectPath(F,I,U,z){let H=0,G=0,X=0,W=0;typeof z=="number"?H=G=X=W=Math.min(z,I/2,U/2):(H=Math.min(z[0]||0,I/2,U/2),G=Math.min(z[1]||0,I/2,U/2),W=Math.min(z[2]||0,I/2,U/2),X=Math.min(z[3]||0,I/2,U/2)),F.moveTo(H,0),F.lineTo(I-G,0),F.arc(I-G,G,G,Math.PI*3/2,0,!1),F.lineTo(I,U-W),F.arc(I-W,U-W,W,0,Math.PI/2,!1),F.lineTo(X,U),F.arc(X,U-X,X,Math.PI/2,Math.PI,!1),F.lineTo(0,H),F.arc(H,H,H,Math.PI,Math.PI*3/2,!1)}}})(Util);var Node$1={},Factory={},Validators={};Object.defineProperty(Validators,"__esModule",{value:!0});Validators.getComponentValidator=Validators.getBooleanValidator=Validators.getNumberArrayValidator=Validators.getFunctionValidator=Validators.getStringOrGradientValidator=Validators.getStringValidator=Validators.getNumberOrAutoValidator=Validators.getNumberOrArrayOfNumbersValidator=Validators.getNumberValidator=Validators.alphaComponent=Validators.RGBComponent=void 0;const Global_1$p=Global,Util_1$f=Util;function _formatValue(o){return Util_1$f.Util._isString(o)?'"'+o+'"':Object.prototype.toString.call(o)==="[object Number]"||Util_1$f.Util._isBoolean(o)?o:Object.prototype.toString.call(o)}function RGBComponent(o){return o>255?255:o<0?0:Math.round(o)}Validators.RGBComponent=RGBComponent;function alphaComponent(o){return o>1?1:o<1e-4?1e-4:o}Validators.alphaComponent=alphaComponent;function getNumberValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isNumber(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a number.'),o}}Validators.getNumberValidator=getNumberValidator;function getNumberOrArrayOfNumbersValidator(o){if(Global_1$p.Konva.isUnminified)return function(a,s){let c=Util_1$f.Util._isNumber(a),f=Util_1$f.Util._isArray(a)&&a.length==o;return!c&&!f&&Util_1$f.Util.warn(_formatValue(a)+' is a not valid value for "'+s+'" attribute. The value should be a number or Array('+o+")"),a}}Validators.getNumberOrArrayOfNumbersValidator=getNumberOrArrayOfNumbersValidator;function getNumberOrAutoValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){var s=Util_1$f.Util._isNumber(o),c=o==="auto";return s||c||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a number or "auto".'),o}}Validators.getNumberOrAutoValidator=getNumberOrAutoValidator;function getStringValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isString(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a string.'),o}}Validators.getStringValidator=getStringValidator;function getStringOrGradientValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){const s=Util_1$f.Util._isString(o),c=Object.prototype.toString.call(o)==="[object CanvasGradient]"||o&&o.addColorStop;return s||c||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a string or a native gradient.'),o}}Validators.getStringOrGradientValidator=getStringOrGradientValidator;function getFunctionValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isFunction(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a function.'),o}}Validators.getFunctionValidator=getFunctionValidator;function getNumberArrayValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){const s=Int8Array?Object.getPrototypeOf(Int8Array):null;return s&&o instanceof s||(Util_1$f.Util._isArray(o)?o.forEach(function(c){Util_1$f.Util._isNumber(c)||Util_1$f.Util.warn('"'+a+'" attribute has non numeric element '+c+". Make sure that all elements are numbers.")}):Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a array of numbers.')),o}}Validators.getNumberArrayValidator=getNumberArrayValidator;function getBooleanValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){var s=o===!0||o===!1;return s||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a boolean.'),o}}Validators.getBooleanValidator=getBooleanValidator;function getComponentValidator(o){if(Global_1$p.Konva.isUnminified)return function(a,s){return a==null||Util_1$f.Util.isObject(a)||Util_1$f.Util.warn(_formatValue(a)+' is a not valid value for "'+s+'" attribute. The value should be an object with properties '+o),a}}Validators.getComponentValidator=getComponentValidator;(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Factory=void 0;const a=Util,s=Validators;var c="get",f="set";o.Factory={addGetterSetter(d,y,_,S,b){o.Factory.addGetter(d,y,_),o.Factory.addSetter(d,y,S,b),o.Factory.addOverloadedGetterSetter(d,y)},addGetter(d,y,_){var S=c+a.Util._capitalize(y);d.prototype[S]=d.prototype[S]||function(){var b=this.attrs[y];return b===void 0?_:b}},addSetter(d,y,_,S){var b=f+a.Util._capitalize(y);d.prototype[b]||o.Factory.overWriteSetter(d,y,_,S)},overWriteSetter(d,y,_,S){var b=f+a.Util._capitalize(y);d.prototype[b]=function($){return _&&$!==void 0&&$!==null&&($=_.call(this,$,y)),this._setAttr(y,$),S&&S.call(this),this}},addComponentsGetterSetter(d,y,_,S,b){var $=_.length,P=a.Util._capitalize,T=c+P(y),C=f+P(y),O,A;d.prototype[T]=function(){var j={};for(O=0;O<$;O++)A=_[O],j[A]=this.getAttr(y+P(A));return j};var M=(0,s.getComponentValidator)(_);d.prototype[C]=function(j){var L=this.attrs[y],F;S&&(j=S.call(this,j)),M&&M.call(this,j,y);for(F in j)j.hasOwnProperty(F)&&this._setAttr(y+P(F),j[F]);return j||_.forEach(I=>{this._setAttr(y+P(I),void 0)}),this._fireChangeEvent(y,L,j),b&&b.call(this),this},o.Factory.addOverloadedGetterSetter(d,y)},addOverloadedGetterSetter(d,y){var _=a.Util._capitalize(y),S=f+_,b=c+_;d.prototype[y]=function(){return arguments.length?(this[S](arguments[0]),this):this[b]()}},addDeprecatedGetterSetter(d,y,_,S){a.Util.error("Adding deprecated "+y);var b=c+a.Util._capitalize(y),$=y+" property is deprecated and will be removed soon. Look at Konva change log for more information.";d.prototype[b]=function(){a.Util.error($);var P=this.attrs[y];return P===void 0?_:P},o.Factory.addSetter(d,y,S,function(){a.Util.error($)}),o.Factory.addOverloadedGetterSetter(d,y)},backCompat(d,y){a.Util.each(y,function(_,S){var b=d.prototype[S],$=c+a.Util._capitalize(_),P=f+a.Util._capitalize(_);function T(){b.apply(this,arguments),a.Util.error('"'+_+'" method is deprecated and will be removed soon. Use ""'+S+'" instead.')}d.prototype[_]=T,d.prototype[$]=T,d.prototype[P]=T})},afterSetFilter(){this._filterUpToDate=!1}}})(Factory);var Canvas$1={},Context$2={};Object.defineProperty(Context$2,"__esModule",{value:!0});Context$2.HitContext=Context$2.SceneContext=Context$2.Context=void 0;const Util_1$e=Util,Global_1$o=Global;function simplifyArray(o){var a=[],s=o.length,c=Util_1$e.Util,f,d;for(f=0;ftypeof $=="number"?Math.floor($):$)),d+=OPEN_PAREN+b.join(COMMA)+CLOSE_PAREN)):(d+=_.property,a||(d+=EQUALS+_.val)),d+=SEMICOLON;return d}clearTrace(){this.traceArr=[]}_trace(a){var s=this.traceArr,c;s.push(a),c=s.length,c>=traceArrMax&&s.shift()}reset(){var a=this.getCanvas().getPixelRatio();this.setTransform(1*a,0,0,1*a,0,0)}getCanvas(){return this.canvas}clear(a){var s=this.getCanvas();a?this.clearRect(a.x||0,a.y||0,a.width||0,a.height||0):this.clearRect(0,0,s.getWidth()/s.pixelRatio,s.getHeight()/s.pixelRatio)}_applyLineCap(a){const s=a.attrs.lineCap;s&&this.setAttr("lineCap",s)}_applyOpacity(a){var s=a.getAbsoluteOpacity();s!==1&&this.setAttr("globalAlpha",s)}_applyLineJoin(a){const s=a.attrs.lineJoin;s&&this.setAttr("lineJoin",s)}setAttr(a,s){this._context[a]=s}arc(a,s,c,f,d,y){this._context.arc(a,s,c,f,d,y)}arcTo(a,s,c,f,d){this._context.arcTo(a,s,c,f,d)}beginPath(){this._context.beginPath()}bezierCurveTo(a,s,c,f,d,y){this._context.bezierCurveTo(a,s,c,f,d,y)}clearRect(a,s,c,f){this._context.clearRect(a,s,c,f)}clip(...a){this._context.clip.apply(this._context,a)}closePath(){this._context.closePath()}createImageData(a,s){var c=arguments;if(c.length===2)return this._context.createImageData(a,s);if(c.length===1)return this._context.createImageData(a)}createLinearGradient(a,s,c,f){return this._context.createLinearGradient(a,s,c,f)}createPattern(a,s){return this._context.createPattern(a,s)}createRadialGradient(a,s,c,f,d,y){return this._context.createRadialGradient(a,s,c,f,d,y)}drawImage(a,s,c,f,d,y,_,S,b){var $=arguments,P=this._context;$.length===3?P.drawImage(a,s,c):$.length===5?P.drawImage(a,s,c,f,d):$.length===9&&P.drawImage(a,s,c,f,d,y,_,S,b)}ellipse(a,s,c,f,d,y,_,S){this._context.ellipse(a,s,c,f,d,y,_,S)}isPointInPath(a,s,c,f){return c?this._context.isPointInPath(c,a,s,f):this._context.isPointInPath(a,s,f)}fill(...a){this._context.fill.apply(this._context,a)}fillRect(a,s,c,f){this._context.fillRect(a,s,c,f)}strokeRect(a,s,c,f){this._context.strokeRect(a,s,c,f)}fillText(a,s,c,f){f?this._context.fillText(a,s,c,f):this._context.fillText(a,s,c)}measureText(a){return this._context.measureText(a)}getImageData(a,s,c,f){return this._context.getImageData(a,s,c,f)}lineTo(a,s){this._context.lineTo(a,s)}moveTo(a,s){this._context.moveTo(a,s)}rect(a,s,c,f){this._context.rect(a,s,c,f)}roundRect(a,s,c,f,d){this._context.roundRect(a,s,c,f,d)}putImageData(a,s,c){this._context.putImageData(a,s,c)}quadraticCurveTo(a,s,c,f){this._context.quadraticCurveTo(a,s,c,f)}restore(){this._context.restore()}rotate(a){this._context.rotate(a)}save(){this._context.save()}scale(a,s){this._context.scale(a,s)}setLineDash(a){this._context.setLineDash?this._context.setLineDash(a):"mozDash"in this._context?this._context.mozDash=a:"webkitLineDash"in this._context&&(this._context.webkitLineDash=a)}getLineDash(){return this._context.getLineDash()}setTransform(a,s,c,f,d,y){this._context.setTransform(a,s,c,f,d,y)}stroke(a){a?this._context.stroke(a):this._context.stroke()}strokeText(a,s,c,f){this._context.strokeText(a,s,c,f)}transform(a,s,c,f,d,y){this._context.transform(a,s,c,f,d,y)}translate(a,s){this._context.translate(a,s)}_enableTrace(){var a=this,s=CONTEXT_METHODS.length,c=this.setAttr,f,d,y=function(_){var S=a[_],b;a[_]=function(){return d=simplifyArray(Array.prototype.slice.call(arguments,0)),b=S.apply(a,arguments),a._trace({method:_,args:d}),b}};for(f=0;f{f.dragStatus==="dragging"&&(c=!0)}),c},justDragged:!1,get node(){var c;return o.DD._dragElements.forEach(f=>{c=f.node}),c},_dragElements:new Map,_drag(c){const f=[];o.DD._dragElements.forEach((d,y)=>{const{node:_}=d,S=_.getStage();S.setPointersPositions(c),d.pointerId===void 0&&(d.pointerId=s.Util._getFirstPointerId(c));const b=S._changedPointerPositions.find(T=>T.id===d.pointerId);if(b){if(d.dragStatus!=="dragging"){var $=_.dragDistance(),P=Math.max(Math.abs(b.x-d.startPointerPos.x),Math.abs(b.y-d.startPointerPos.y));if(P<$||(_.startDrag({evt:c}),!_.isDragging()))return}_._setDragPosition(c,d),f.push(_)}}),f.forEach(d=>{d.fire("dragmove",{type:"dragmove",target:d,evt:c},!0)})},_endDragBefore(c){const f=[];o.DD._dragElements.forEach(d=>{const{node:y}=d,_=y.getStage();if(c&&_.setPointersPositions(c),!_._changedPointerPositions.find($=>$.id===d.pointerId))return;(d.dragStatus==="dragging"||d.dragStatus==="stopped")&&(o.DD.justDragged=!0,a.Konva._mouseListenClick=!1,a.Konva._touchListenClick=!1,a.Konva._pointerListenClick=!1,d.dragStatus="stopped");const b=d.node.getLayer()||d.node instanceof a.Konva.Stage&&d.node;b&&f.indexOf(b)===-1&&f.push(b)}),f.forEach(d=>{d.draw()})},_endDragAfter(c){o.DD._dragElements.forEach((f,d)=>{f.dragStatus==="stopped"&&f.node.fire("dragend",{type:"dragend",target:f.node,evt:c},!0),f.dragStatus!=="dragging"&&o.DD._dragElements.delete(d)})}},a.Konva.isBrowser&&(window.addEventListener("mouseup",o.DD._endDragBefore,!0),window.addEventListener("touchend",o.DD._endDragBefore,!0),window.addEventListener("mousemove",o.DD._drag),window.addEventListener("touchmove",o.DD._drag),window.addEventListener("mouseup",o.DD._endDragAfter,!1),window.addEventListener("touchend",o.DD._endDragAfter,!1))})(DragAndDrop);Object.defineProperty(Node$1,"__esModule",{value:!0});Node$1.Node=void 0;const Util_1$c=Util,Factory_1$y=Factory,Canvas_1$1=Canvas$1,Global_1$m=Global,DragAndDrop_1=DragAndDrop,Validators_1$x=Validators;var ABSOLUTE_OPACITY="absoluteOpacity",ALL_LISTENERS="allEventListeners",ABSOLUTE_TRANSFORM="absoluteTransform",ABSOLUTE_SCALE="absoluteScale",CANVAS="canvas",CHANGE="Change",CHILDREN="children",KONVA="konva",LISTENING="listening",MOUSEENTER="mouseenter",MOUSELEAVE="mouseleave",SET="set",SHAPE="Shape",SPACE$2=" ",STAGE="stage",TRANSFORM="transform",UPPER_STAGE="Stage",VISIBLE="visible",TRANSFORM_CHANGE_STR$1=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(SPACE$2);let idCounter$1=1;class Node{constructor(a){this._id=idCounter$1++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(a),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(a){(a===TRANSFORM||a===ABSOLUTE_TRANSFORM)&&this._cache.get(a)?this._cache.get(a).dirty=!0:a?this._cache.delete(a):this._cache.clear()}_getCache(a,s){var c=this._cache.get(a),f=a===TRANSFORM||a===ABSOLUTE_TRANSFORM,d=c===void 0||f&&c.dirty===!0;return d&&(c=s.call(this),this._cache.set(a,c)),c}_calculate(a,s,c){if(!this._attachedDepsListeners.get(a)){const f=s.map(d=>d+"Change.konva").join(SPACE$2);this.on(f,()=>{this._clearCache(a)}),this._attachedDepsListeners.set(a,!0)}return this._getCache(a,c)}_getCanvasCache(){return this._cache.get(CANVAS)}_clearSelfAndDescendantCache(a){this._clearCache(a),a===ABSOLUTE_TRANSFORM&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(CANVAS)){const{scene:a,filter:s,hit:c}=this._cache.get(CANVAS);Util_1$c.Util.releaseCanvas(a,s,c),this._cache.delete(CANVAS)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(a){var s=a||{},c={};(s.x===void 0||s.y===void 0||s.width===void 0||s.height===void 0)&&(c=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var f=Math.ceil(s.width||c.width),d=Math.ceil(s.height||c.height),y=s.pixelRatio,_=s.x===void 0?Math.floor(c.x):s.x,S=s.y===void 0?Math.floor(c.y):s.y,b=s.offset||0,$=s.drawBorder||!1,P=s.hitCanvasPixelRatio||1;if(!f||!d){Util_1$c.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const T=Math.abs(Math.round(c.x)-_)>.5?1:0,C=Math.abs(Math.round(c.y)-S)>.5?1:0;f+=b*2+T,d+=b*2+C,_-=b,S-=b;var O=new Canvas_1$1.SceneCanvas({pixelRatio:y,width:f,height:d}),A=new Canvas_1$1.SceneCanvas({pixelRatio:y,width:0,height:0,willReadFrequently:!0}),M=new Canvas_1$1.HitCanvas({pixelRatio:P,width:f,height:d}),j=O.getContext(),L=M.getContext();return M.isCache=!0,O.isCache=!0,this._cache.delete(CANVAS),this._filterUpToDate=!1,s.imageSmoothingEnabled===!1&&(O.getContext()._context.imageSmoothingEnabled=!1,A.getContext()._context.imageSmoothingEnabled=!1),j.save(),L.save(),j.translate(-_,-S),L.translate(-_,-S),this._isUnderCache=!0,this._clearSelfAndDescendantCache(ABSOLUTE_OPACITY),this._clearSelfAndDescendantCache(ABSOLUTE_SCALE),this.drawScene(O,this),this.drawHit(M,this),this._isUnderCache=!1,j.restore(),L.restore(),$&&(j.save(),j.beginPath(),j.rect(0,0,f,d),j.closePath(),j.setAttr("strokeStyle","red"),j.setAttr("lineWidth",5),j.stroke(),j.restore()),this._cache.set(CANVAS,{scene:O,filter:A,hit:M,x:_,y:S}),this._requestDraw(),this}isCached(){return this._cache.has(CANVAS)}getClientRect(a){throw new Error('abstract "getClientRect" method call')}_transformedRect(a,s){var c=[{x:a.x,y:a.y},{x:a.x+a.width,y:a.y},{x:a.x+a.width,y:a.y+a.height},{x:a.x,y:a.y+a.height}],f=1/0,d=1/0,y=-1/0,_=-1/0,S=this.getAbsoluteTransform(s);return c.forEach(function(b){var $=S.point(b);f===void 0&&(f=y=$.x,d=_=$.y),f=Math.min(f,$.x),d=Math.min(d,$.y),y=Math.max(y,$.x),_=Math.max(_,$.y)}),{x:f,y:d,width:y-f,height:_-d}}_drawCachedSceneCanvas(a){a.save(),a._applyOpacity(this),a._applyGlobalCompositeOperation(this);const s=this._getCanvasCache();a.translate(s.x,s.y);var c=this._getCachedSceneCanvas(),f=c.pixelRatio;a.drawImage(c._canvas,0,0,c.width/f,c.height/f),a.restore()}_drawCachedHitCanvas(a){var s=this._getCanvasCache(),c=s.hit;a.save(),a.translate(s.x,s.y),a.drawImage(c._canvas,0,0,c.width/c.pixelRatio,c.height/c.pixelRatio),a.restore()}_getCachedSceneCanvas(){var a=this.filters(),s=this._getCanvasCache(),c=s.scene,f=s.filter,d=f.getContext(),y,_,S,b;if(a){if(!this._filterUpToDate){var $=c.pixelRatio;f.setSize(c.width/c.pixelRatio,c.height/c.pixelRatio);try{for(y=a.length,d.clear(),d.drawImage(c._canvas,0,0,c.getWidth()/$,c.getHeight()/$),_=d.getImageData(0,0,f.getWidth(),f.getHeight()),S=0;S{var s,c;if(!a)return this;for(s in a)s!==CHILDREN&&(c=SET+Util_1$c.Util._capitalize(s),Util_1$c.Util._isFunction(this[c])?this[c](a[s]):this._setAttr(s,a[s]))}),this}isListening(){return this._getCache(LISTENING,this._isListening)}_isListening(a){if(!this.listening())return!1;const c=this.getParent();return c&&c!==a&&this!==a?c._isListening(a):!0}isVisible(){return this._getCache(VISIBLE,this._isVisible)}_isVisible(a){if(!this.visible())return!1;const c=this.getParent();return c&&c!==a&&this!==a?c._isVisible(a):!0}shouldDrawHit(a,s=!1){if(a)return this._isVisible(a)&&this._isListening(a);var c=this.getLayer(),f=!1;DragAndDrop_1.DD._dragElements.forEach(y=>{y.dragStatus==="dragging"&&(y.node.nodeType==="Stage"||y.node.getLayer()===c)&&(f=!0)});var d=!s&&!Global_1$m.Konva.hitOnDragEnabled&&f;return this.isListening()&&this.isVisible()&&!d}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var a=this.getDepth(),s=this,c=0,f,d,y,_;function S($){for(f=[],d=$.length,y=0;y0&&f[0].getDepth()<=a&&S(f)}const b=this.getStage();return s.nodeType!==UPPER_STAGE&&b&&S(b.getChildren()),c}getDepth(){for(var a=0,s=this.parent;s;)a++,s=s.parent;return a}_batchTransformChanges(a){this._batchingTransformChange=!0,a(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(TRANSFORM),this._clearSelfAndDescendantCache(ABSOLUTE_TRANSFORM)),this._needClearTransformCache=!1}setPosition(a){return this._batchTransformChanges(()=>{this.x(a.x),this.y(a.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const a=this.getStage();if(!a)return null;var s=a.getPointerPosition();if(!s)return null;var c=this.getAbsoluteTransform().copy();return c.invert(),c.point(s)}getAbsolutePosition(a){let s=!1,c=this.parent;for(;c;){if(c.isCached()){s=!0;break}c=c.parent}s&&!a&&(a=!0);var f=this.getAbsoluteTransform(a).getMatrix(),d=new Util_1$c.Transform,y=this.offset();return d.m=f.slice(),d.translate(y.x,y.y),d.getTranslation()}setAbsolutePosition(a){const y=this._clearTransform(),{x:s,y:c}=y,f=er(y,["x","y"]);this.attrs.x=s,this.attrs.y=c,this._clearCache(TRANSFORM);var d=this._getAbsoluteTransform().copy();return d.invert(),d.translate(a.x,a.y),a={x:this.attrs.x+d.getTranslation().x,y:this.attrs.y+d.getTranslation().y},this._setTransform(f),this.setPosition({x:a.x,y:a.y}),this._clearCache(TRANSFORM),this._clearSelfAndDescendantCache(ABSOLUTE_TRANSFORM),this}_setTransform(a){var s;for(s in a)this.attrs[s]=a[s]}_clearTransform(){var a={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,a}move(a){var s=a.x,c=a.y,f=this.x(),d=this.y();return s!==void 0&&(f+=s),c!==void 0&&(d+=c),this.setPosition({x:f,y:d}),this}_eachAncestorReverse(a,s){var c=[],f=this.getParent(),d,y;if(!(s&&s._id===this._id)){for(c.unshift(this);f&&(!s||f._id!==s._id);)c.unshift(f),f=f.parent;for(d=c.length,y=0;y0?(this.parent.children.splice(a,1),this.parent.children.splice(a-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Util_1$c.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var a=this.index;return a>0?(this.parent.children.splice(a,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(a){if(!this.parent)return Util_1$c.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(a<0||a>=this.parent.children.length)&&Util_1$c.Util.warn("Unexpected value "+a+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var s=this.index;return this.parent.children.splice(s,1),this.parent.children.splice(a,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(ABSOLUTE_OPACITY,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var a=this.opacity(),s=this.getParent();return s&&!s._isUnderCache&&(a*=s.getAbsoluteOpacity()),a}moveTo(a){return this.getParent()!==a&&(this._remove(),a.add(this)),this}toObject(){var a=this.getAttrs(),s,c,f,d,y;const _={attrs:{},className:this.getClassName()};for(s in a)c=a[s],y=Util_1$c.Util.isObject(c)&&!Util_1$c.Util._isPlainObject(c)&&!Util_1$c.Util._isArray(c),!y&&(f=typeof this[s]=="function"&&this[s],delete a[s],d=f?f.call(this):null,a[s]=c,d!==c&&(_.attrs[s]=c));return Util_1$c.Util._prepareToStringify(_)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(a,s,c){var f=[];s&&this._isMatch(a)&&f.push(this);for(var d=this.parent;d;){if(d===c)return f;d._isMatch(a)&&f.push(d),d=d.parent}return f}isAncestorOf(a){return!1}findAncestor(a,s,c){return this.findAncestors(a,s,c)[0]}_isMatch(a){if(!a)return!1;if(typeof a=="function")return a(this);var s=a.replace(/ /g,"").split(","),c=s.length,f,d;for(f=0;f{try{const f=a==null?void 0:a.callback;f&&delete a.callback,Util_1$c.Util._urlToImage(this.toDataURL(a),function(d){s(d),f==null||f(d)})}catch(f){c(f)}})}toBlob(a){return new Promise((s,c)=>{try{const f=a==null?void 0:a.callback;f&&delete a.callback,this.toCanvas(a).toBlob(d=>{s(d),f==null||f(d)},a==null?void 0:a.mimeType,a==null?void 0:a.quality)}catch(f){c(f)}})}setSize(a){return this.width(a.width),this.height(a.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Global_1$m.Konva.dragDistance}_off(a,s,c){var f=this.eventListeners[a],d,y,_;for(d=0;d=0;if(c&&!this.isDragging()){var f=!1;DragAndDrop_1.DD._dragElements.forEach(d=>{this.isAncestorOf(d.node)&&(f=!0)}),f||this._createDragElement(a)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var a=this.getStage();if(!a)return;const s=DragAndDrop_1.DD._dragElements.get(this._id),c=s&&s.dragStatus==="dragging",f=s&&s.dragStatus==="ready";c?this.stopDrag():f&&DragAndDrop_1.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(a={x:0,y:0}){const s=this.getStage();if(!s)return!1;const c={x:-a.x,y:-a.y,width:s.width()+2*a.x,height:s.height()+2*a.y};return Util_1$c.Util.haveIntersection(c,this.getClientRect())}static create(a,s){return Util_1$c.Util._isString(a)&&(a=JSON.parse(a)),this._createNode(a,s)}static _createNode(a,s){var c=Node.prototype.getClassName.call(a),f=a.children,d,y,_;s&&(a.attrs.container=s),Global_1$m.Konva[c]||(Util_1$c.Util.warn('Can not find a node with class name "'+c+'". Fallback to "Shape".'),c="Shape");const S=Global_1$m.Konva[c];if(d=new S(a.attrs),f)for(y=f.length,_=0;_0}removeChildren(){return this.getChildren().forEach(a=>{a.parent=null,a.index=0,a.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(a=>{a.parent=null,a.index=0,a.destroy()}),this.children=[],this._requestDraw(),this}add(...a){if(a.length===0)return this;if(a.length>1){for(var s=0;s0?s[0]:void 0}_generalFind(a,s){var c=[];return this._descendants(f=>{const d=f._isMatch(a);return d&&c.push(f),!!(d&&s)}),c}_descendants(a){let s=!1;const c=this.getChildren();for(const f of c){if(s=a(f),s)return!0;if(f.hasChildren()&&(s=f._descendants(a),s))return!0}return!1}toObject(){var a=Node_1$h.Node.prototype.toObject.call(this);return a.children=[],this.getChildren().forEach(s=>{a.children.push(s.toObject())}),a}isAncestorOf(a){for(var s=a.getParent();s;){if(s._id===this._id)return!0;s=s.getParent()}return!1}clone(a){var s=Node_1$h.Node.prototype.clone.call(this,a);return this.getChildren().forEach(function(c){s.add(c.clone())}),s}getAllIntersections(a){var s=[];return this.find("Shape").forEach(c=>{c.isVisible()&&c.intersects(a)&&s.push(c)}),s}_clearSelfAndDescendantCache(a){var s;super._clearSelfAndDescendantCache(a),!this.isCached()&&((s=this.children)===null||s===void 0||s.forEach(function(c){c._clearSelfAndDescendantCache(a)}))}_setChildrenIndices(){var a;(a=this.children)===null||a===void 0||a.forEach(function(s,c){s.index=c}),this._requestDraw()}drawScene(a,s,c){var f=this.getLayer(),d=a||f&&f.getCanvas(),y=d&&d.getContext(),_=this._getCanvasCache(),S=_&&_.scene,b=d&&d.isCache;if(!this.isVisible()&&!b)return this;if(S){y.save();var $=this.getAbsoluteTransform(s).getMatrix();y.transform($[0],$[1],$[2],$[3],$[4],$[5]),this._drawCachedSceneCanvas(y),y.restore()}else this._drawChildren("drawScene",d,s,c);return this}drawHit(a,s){if(!this.shouldDrawHit(s))return this;var c=this.getLayer(),f=a||c&&c.hitCanvas,d=f&&f.getContext(),y=this._getCanvasCache(),_=y&&y.hit;if(_){d.save();var S=this.getAbsoluteTransform(s).getMatrix();d.transform(S[0],S[1],S[2],S[3],S[4],S[5]),this._drawCachedHitCanvas(d),d.restore()}else this._drawChildren("drawHit",f,s);return this}_drawChildren(a,s,c,f){var d,y=s&&s.getContext(),_=this.clipWidth(),S=this.clipHeight(),b=this.clipFunc(),$=_&&S||b;const P=c===this;if($){y.save();var T=this.getAbsoluteTransform(c),C=T.getMatrix();y.transform(C[0],C[1],C[2],C[3],C[4],C[5]),y.beginPath();let j;if(b)j=b.call(this,y,this);else{var O=this.clipX(),A=this.clipY();y.rect(O,A,_,S)}y.clip.apply(y,j),C=T.copy().invert().getMatrix(),y.transform(C[0],C[1],C[2],C[3],C[4],C[5])}var M=!P&&this.globalCompositeOperation()!=="source-over"&&a==="drawScene";M&&(y.save(),y._applyGlobalCompositeOperation(this)),(d=this.children)===null||d===void 0||d.forEach(function(j){j[a](s,c,f)}),M&&y.restore(),$&&y.restore()}getClientRect(a={}){var s,c=a.skipTransform,f=a.relativeTo,d,y,_,S,b={x:1/0,y:1/0,width:0,height:0},$=this;(s=this.children)===null||s===void 0||s.forEach(function(A){if(A.visible()){var M=A.getClientRect({relativeTo:$,skipShadow:a.skipShadow,skipStroke:a.skipStroke});M.width===0&&M.height===0||(d===void 0?(d=M.x,y=M.y,_=M.x+M.width,S=M.y+M.height):(d=Math.min(d,M.x),y=Math.min(y,M.y),_=Math.max(_,M.x+M.width),S=Math.max(S,M.y+M.height)))}});for(var P=this.find("Shape"),T=!1,C=0;CCe.indexOf("pointer")>=0?"pointer":Ce.indexOf("touch")>=0?"touch":"mouse",ce=Ce=>{const ue=ae(Ce);if(ue==="pointer")return f.Konva.pointerEventsEnabled&&le.pointer;if(ue==="touch")return le.touch;if(ue==="mouse")return le.mouse};function ge(Ce={}){return(Ce.clipFunc||Ce.clipWidth||Ce.clipHeight)&&a.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),Ce}const pe="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";o.stages=[];class Ie extends c.Container{constructor(ue){super(ge(ue)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),o.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{ge(this.attrs)}),this._checkVisibility()}_validateAdd(ue){const xe=ue.getType()==="Layer",Pe=ue.getType()==="FastLayer";xe||Pe||a.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const ue=this.visible()?"":"none";this.content.style.display=ue}setContainer(ue){if(typeof ue===$){if(ue.charAt(0)==="."){var xe=ue.slice(1);ue=document.getElementsByClassName(xe)[0]}else{var Pe;ue.charAt(0)!=="#"?Pe=ue:Pe=ue.slice(1),ue=document.getElementById(Pe)}if(!ue)throw"Can not find container in document with id "+Pe}return this._setAttr("container",ue),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),ue.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var ue=this.children,xe=ue.length,Pe;for(Pe=0;Pe-1&&o.stages.splice(xe,1),a.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const ue=this._pointerPositions[0]||this._changedPointerPositions[0];return ue?{x:ue.x,y:ue.y}:(a.Util.warn(pe),null)}_getPointerById(ue){return this._pointerPositions.find(xe=>xe.id===ue)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(ue){ue=ue||{},ue.x=ue.x||0,ue.y=ue.y||0,ue.width=ue.width||this.width(),ue.height=ue.height||this.height();var xe=new d.SceneCanvas({width:ue.width,height:ue.height,pixelRatio:ue.pixelRatio||1}),Pe=xe.getContext()._context,Ve=this.children;return(ue.x||ue.y)&&Pe.translate(-1*ue.x,-1*ue.y),Ve.forEach(function(je){if(je.isVisible()){var ze=je._toKonvaCanvas(ue);Pe.drawImage(ze._canvas,ue.x,ue.y,ze.getWidth()/ze.getPixelRatio(),ze.getHeight()/ze.getPixelRatio())}}),xe}getIntersection(ue){if(!ue)return null;var xe=this.children,Pe=xe.length,Ve=Pe-1,je;for(je=Ve;je>=0;je--){const ze=xe[je].getIntersection(ue);if(ze)return ze}return null}_resizeDOM(){var ue=this.width(),xe=this.height();this.content&&(this.content.style.width=ue+P,this.content.style.height=xe+P),this.bufferCanvas.setSize(ue,xe),this.bufferHitCanvas.setSize(ue,xe),this.children.forEach(Pe=>{Pe.setSize({width:ue,height:xe}),Pe.draw()})}add(ue,...xe){if(arguments.length>1){for(var Pe=0;Pene&&a.Util.warn("The stage has "+Ve+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),ue.setSize({width:this.width(),height:this.height()}),ue.draw(),f.Konva.isBrowser&&this.content.appendChild(ue.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(ue){return S.hasPointerCapture(ue,this)}setPointerCapture(ue){S.setPointerCapture(ue,this)}releaseCapture(ue){S.releaseCapture(ue,this)}getLayers(){return this.children}_bindContentEvents(){f.Konva.isBrowser&&fe.forEach(([ue,xe])=>{this.content.addEventListener(ue,Pe=>{this[xe](Pe)},{passive:!1})})}_pointerenter(ue){this.setPointersPositions(ue);const xe=ce(ue.type);xe&&this._fire(xe.pointerenter,{evt:ue,target:this,currentTarget:this})}_pointerover(ue){this.setPointersPositions(ue);const xe=ce(ue.type);xe&&this._fire(xe.pointerover,{evt:ue,target:this,currentTarget:this})}_getTargetShape(ue){let xe=this[ue+"targetShape"];return xe&&!xe.getStage()&&(xe=null),xe}_pointerleave(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(xe){this.setPointersPositions(ue);var Ve=this._getTargetShape(Pe),je=!y.DD.isDragging||f.Konva.hitOnDragEnabled;Ve&&je?(Ve._fireAndBubble(xe.pointerout,{evt:ue}),Ve._fireAndBubble(xe.pointerleave,{evt:ue}),this._fire(xe.pointerleave,{evt:ue,target:this,currentTarget:this}),this[Pe+"targetShape"]=null):je&&(this._fire(xe.pointerleave,{evt:ue,target:this,currentTarget:this}),this._fire(xe.pointerout,{evt:ue,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(xe){this.setPointersPositions(ue);var Ve=!1;this._changedPointerPositions.forEach(je=>{var ze=this.getIntersection(je);if(y.DD.justDragged=!1,f.Konva["_"+Pe+"ListenClick"]=!0,!ze||!ze.isListening())return;f.Konva.capturePointerEventsEnabled&&ze.setPointerCapture(je.id),this[Pe+"ClickStartShape"]=ze,ze._fireAndBubble(xe.pointerdown,{evt:ue,pointerId:je.id}),Ve=!0;const Xe=ue.type.indexOf("touch")>=0;ze.preventDefault()&&ue.cancelable&&Xe&&ue.preventDefault()}),Ve||this._fire(xe.pointerdown,{evt:ue,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(!xe)return;y.DD.isDragging&&y.DD.node.preventDefault()&&ue.cancelable&&ue.preventDefault(),this.setPointersPositions(ue);var Ve=!y.DD.isDragging||f.Konva.hitOnDragEnabled;if(!Ve)return;var je={};let ze=!1;var Xe=this._getTargetShape(Pe);this._changedPointerPositions.forEach(Ut=>{const Je=S.getCapturedShape(Ut.id)||this.getIntersection(Ut),Mt=Ut.id,It={evt:ue,pointerId:Mt};var ir=Xe!==Je;if(ir&&Xe&&(Xe._fireAndBubble(xe.pointerout,se({},It),Je),Xe._fireAndBubble(xe.pointerleave,se({},It),Je)),Je){if(je[Je._id])return;je[Je._id]=!0}Je&&Je.isListening()?(ze=!0,ir&&(Je._fireAndBubble(xe.pointerover,se({},It),Xe),Je._fireAndBubble(xe.pointerenter,se({},It),Xe),this[Pe+"targetShape"]=Je),Je._fireAndBubble(xe.pointermove,se({},It))):Xe&&(this._fire(xe.pointerover,{evt:ue,target:this,currentTarget:this,pointerId:Mt}),this[Pe+"targetShape"]=null)}),ze||this._fire(xe.pointermove,{evt:ue,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(!xe)return;this.setPointersPositions(ue);const Ve=this[Pe+"ClickStartShape"],je=this[Pe+"ClickEndShape"];var ze={};let Xe=!1;this._changedPointerPositions.forEach(Ut=>{const Je=S.getCapturedShape(Ut.id)||this.getIntersection(Ut);if(Je){if(Je.releaseCapture(Ut.id),ze[Je._id])return;ze[Je._id]=!0}const Mt=Ut.id,It={evt:ue,pointerId:Mt};let ir=!1;f.Konva["_"+Pe+"InDblClickWindow"]?(ir=!0,clearTimeout(this[Pe+"DblTimeout"])):y.DD.justDragged||(f.Konva["_"+Pe+"InDblClickWindow"]=!0,clearTimeout(this[Pe+"DblTimeout"])),this[Pe+"DblTimeout"]=setTimeout(function(){f.Konva["_"+Pe+"InDblClickWindow"]=!1},f.Konva.dblClickWindow),Je&&Je.isListening()?(Xe=!0,this[Pe+"ClickEndShape"]=Je,Je._fireAndBubble(xe.pointerup,se({},It)),f.Konva["_"+Pe+"ListenClick"]&&Ve&&Ve===Je&&(Je._fireAndBubble(xe.pointerclick,se({},It)),ir&&je&&je===Je&&Je._fireAndBubble(xe.pointerdblclick,se({},It)))):(this[Pe+"ClickEndShape"]=null,f.Konva["_"+Pe+"ListenClick"]&&this._fire(xe.pointerclick,{evt:ue,target:this,currentTarget:this,pointerId:Mt}),ir&&this._fire(xe.pointerdblclick,{evt:ue,target:this,currentTarget:this,pointerId:Mt}))}),Xe||this._fire(xe.pointerup,{evt:ue,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),f.Konva["_"+Pe+"ListenClick"]=!1,ue.cancelable&&Pe!=="touch"&&ue.preventDefault()}_contextmenu(ue){this.setPointersPositions(ue);var xe=this.getIntersection(this.getPointerPosition());xe&&xe.isListening()?xe._fireAndBubble(ie,{evt:ue}):this._fire(ie,{evt:ue,target:this,currentTarget:this})}_wheel(ue){this.setPointersPositions(ue);var xe=this.getIntersection(this.getPointerPosition());xe&&xe.isListening()?xe._fireAndBubble(J,{evt:ue}):this._fire(J,{evt:ue,target:this,currentTarget:this})}_pointercancel(ue){this.setPointersPositions(ue);const xe=S.getCapturedShape(ue.pointerId)||this.getIntersection(this.getPointerPosition());xe&&xe._fireAndBubble(U,S.createEvent(ue)),S.releaseCapture(ue.pointerId)}_lostpointercapture(ue){S.releaseCapture(ue.pointerId)}setPointersPositions(ue){var xe=this._getContentPosition(),Pe=null,Ve=null;ue=ue||window.event,ue.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(ue.touches,je=>{this._pointerPositions.push({id:je.identifier,x:(je.clientX-xe.left)/xe.scaleX,y:(je.clientY-xe.top)/xe.scaleY})}),Array.prototype.forEach.call(ue.changedTouches||ue.touches,je=>{this._changedPointerPositions.push({id:je.identifier,x:(je.clientX-xe.left)/xe.scaleX,y:(je.clientY-xe.top)/xe.scaleY})})):(Pe=(ue.clientX-xe.left)/xe.scaleX,Ve=(ue.clientY-xe.top)/xe.scaleY,this.pointerPos={x:Pe,y:Ve},this._pointerPositions=[{x:Pe,y:Ve,id:a.Util._getFirstPointerId(ue)}],this._changedPointerPositions=[{x:Pe,y:Ve,id:a.Util._getFirstPointerId(ue)}])}_setPointerPosition(ue){a.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(ue)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var ue=this.content.getBoundingClientRect();return{top:ue.top,left:ue.left,scaleX:ue.width/this.content.clientWidth||1,scaleY:ue.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new d.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new d.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!f.Konva.isBrowser){var ue=this.container();if(!ue)throw"Stage has no container. A container is required.";ue.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),ue.appendChild(this.content),this._resizeDOM()}}cache(){return a.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(ue){ue.batchDraw()}),this}}o.Stage=Ie,Ie.prototype.nodeType=b,(0,_._registerNode)(Ie),s.Factory.addGetterSetter(Ie,"container")})(Stage);var Layer$1={},Shape={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Shape=o.shapes=void 0;const a=Global,s=Util,c=Factory,f=Node$1,d=Validators,y=Global,_=PointerEvents;var S="hasShadow",b="shadowRGBA",$="patternImage",P="linearGradient",T="radialGradient";let C;function O(){return C||(C=s.Util.createCanvasElement().getContext("2d"),C)}o.shapes={};function A(X){const W=this.attrs.fillRule;W?X.fill(W):X.fill()}function M(X){X.stroke()}function j(X){X.fill()}function L(X){X.stroke()}function F(){this._clearCache(S)}function I(){this._clearCache(b)}function U(){this._clearCache($)}function z(){this._clearCache(P)}function H(){this._clearCache(T)}class G extends f.Node{constructor(W){super(W);let K;for(;K=s.Util.getRandomColor(),!(K&&!(K in o.shapes)););this.colorKey=K,o.shapes[K]=this}getContext(){return s.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return s.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(S,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache($,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var W=O();const K=W.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(K&&K.setTransform){const ie=new s.Transform;ie.translate(this.fillPatternX(),this.fillPatternY()),ie.rotate(a.Konva.getAngle(this.fillPatternRotation())),ie.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),ie.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const ee=ie.getMatrix(),de=typeof DOMMatrix=="undefined"?{a:ee[0],b:ee[1],c:ee[2],d:ee[3],e:ee[4],f:ee[5]}:new DOMMatrix(ee);K.setTransform(de)}return K}}_getLinearGradient(){return this._getCache(P,this.__getLinearGradient)}__getLinearGradient(){var W=this.fillLinearGradientColorStops();if(W){for(var K=O(),ie=this.fillLinearGradientStartPoint(),ee=this.fillLinearGradientEndPoint(),de=K.createLinearGradient(ie.x,ie.y,ee.x,ee.y),Z=0;Zthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const W=this.hitStrokeWidth();return W==="auto"?this.hasStroke():this.strokeEnabled()&&!!W}intersects(W){var K=this.getStage();if(!K)return!1;const ie=K.bufferHitCanvas;return ie.getContext().clear(),this.drawHit(ie,void 0,!0),ie.context.getImageData(Math.round(W.x),Math.round(W.y),1,1).data[3]>0}destroy(){return f.Node.prototype.destroy.call(this),delete o.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(W){var K;if(!((K=this.attrs.perfectDrawEnabled)!==null&&K!==void 0?K:!0))return!1;const ee=W||this.hasFill(),de=this.hasStroke(),Z=this.getAbsoluteOpacity()!==1;if(ee&&de&&Z)return!0;const Q=this.hasShadow(),J=this.shadowForStrokeEnabled();return!!(ee&&de&&Q&&J)}setStrokeHitEnabled(W){s.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),W?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var W=this.size();return{x:this._centroid?-W.width/2:0,y:this._centroid?-W.height/2:0,width:W.width,height:W.height}}getClientRect(W={}){const K=W.skipTransform,ie=W.relativeTo,ee=this.getSelfRect(),Z=!W.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=ee.width+Z,J=ee.height+Z,ne=!W.skipShadow&&this.hasShadow(),fe=ne?this.shadowOffsetX():0,le=ne?this.shadowOffsetY():0,ae=Q+Math.abs(fe),ce=J+Math.abs(le),ge=ne&&this.shadowBlur()||0,pe=ae+ge*2,Ie=ce+ge*2,Ce={width:pe,height:Ie,x:-(Z/2+ge)+Math.min(fe,0)+ee.x,y:-(Z/2+ge)+Math.min(le,0)+ee.y};return K?Ce:this._transformedRect(Ce,ie)}drawScene(W,K,ie){var ee=this.getLayer(),de=W||ee.getCanvas(),Z=de.getContext(),Q=this._getCanvasCache(),J=this.getSceneFunc(),ne=this.hasShadow(),fe,le,ae=de.isCache,ce=K===this;if(!this.isVisible()&&!ce)return this;if(Q){Z.save();var ge=this.getAbsoluteTransform(K).getMatrix();return Z.transform(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5]),this._drawCachedSceneCanvas(Z),Z.restore(),this}if(!J)return this;if(Z.save(),this._useBufferCanvas()&&!ae){fe=this.getStage();const Ce=ie||fe.bufferCanvas;le=Ce.getContext(),le.clear(),le.save(),le._applyLineJoin(this);var pe=this.getAbsoluteTransform(K).getMatrix();le.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5]),J.call(this,le,this),le.restore();var Ie=Ce.pixelRatio;ne&&Z._applyShadow(this),Z._applyOpacity(this),Z._applyGlobalCompositeOperation(this),Z.drawImage(Ce._canvas,0,0,Ce.width/Ie,Ce.height/Ie)}else{if(Z._applyLineJoin(this),!ce){var pe=this.getAbsoluteTransform(K).getMatrix();Z.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5]),Z._applyOpacity(this),Z._applyGlobalCompositeOperation(this)}ne&&Z._applyShadow(this),J.call(this,Z,this)}return Z.restore(),this}drawHit(W,K,ie=!1){if(!this.shouldDrawHit(K,ie))return this;var ee=this.getLayer(),de=W||ee.hitCanvas,Z=de&&de.getContext(),Q=this.hitFunc()||this.sceneFunc(),J=this._getCanvasCache(),ne=J&&J.hit;if(this.colorKey||s.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),ne){Z.save();var fe=this.getAbsoluteTransform(K).getMatrix();return Z.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5]),this._drawCachedHitCanvas(Z),Z.restore(),this}if(!Q)return this;if(Z.save(),Z._applyLineJoin(this),!(this===K)){var ae=this.getAbsoluteTransform(K).getMatrix();Z.transform(ae[0],ae[1],ae[2],ae[3],ae[4],ae[5])}return Q.call(this,Z,this),Z.restore(),this}drawHitFromCache(W=0){var K=this._getCanvasCache(),ie=this._getCachedSceneCanvas(),ee=K.hit,de=ee.getContext(),Z=ee.getWidth(),Q=ee.getHeight(),J,ne,fe,le,ae,ce;de.clear(),de.drawImage(ie._canvas,0,0,Z,Q);try{for(J=de.getImageData(0,0,Z,Q),ne=J.data,fe=ne.length,le=s.Util._hexToRgb(this.colorKey),ae=0;aeW?(ne[ae]=le.r,ne[ae+1]=le.g,ne[ae+2]=le.b,ne[ae+3]=255):ne[ae+3]=0;de.putImageData(J,0,0)}catch(ge){s.Util.error("Unable to draw hit graph from cached scene canvas. "+ge.message)}return this}hasPointerCapture(W){return _.hasPointerCapture(W,this)}setPointerCapture(W){_.setPointerCapture(W,this)}releaseCapture(W){_.releaseCapture(W,this)}}o.Shape=G,G.prototype._fillFunc=A,G.prototype._strokeFunc=M,G.prototype._fillFuncHit=j,G.prototype._strokeFuncHit=L,G.prototype._centroid=!1,G.prototype.nodeType="Shape",(0,y._registerNode)(G),G.prototype.eventListeners={},G.prototype.on.call(G.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",F),G.prototype.on.call(G.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",I),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",U),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",z),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",H),c.Factory.addGetterSetter(G,"stroke",void 0,(0,d.getStringOrGradientValidator)()),c.Factory.addGetterSetter(G,"strokeWidth",2,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillAfterStrokeEnabled",!1),c.Factory.addGetterSetter(G,"hitStrokeWidth","auto",(0,d.getNumberOrAutoValidator)()),c.Factory.addGetterSetter(G,"strokeHitEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"perfectDrawEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"shadowForStrokeEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"lineJoin"),c.Factory.addGetterSetter(G,"lineCap"),c.Factory.addGetterSetter(G,"sceneFunc"),c.Factory.addGetterSetter(G,"hitFunc"),c.Factory.addGetterSetter(G,"dash"),c.Factory.addGetterSetter(G,"dashOffset",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowColor",void 0,(0,d.getStringValidator)()),c.Factory.addGetterSetter(G,"shadowBlur",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowOpacity",1,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"shadowOffset",["x","y"]),c.Factory.addGetterSetter(G,"shadowOffsetX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowOffsetY",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternImage"),c.Factory.addGetterSetter(G,"fill",void 0,(0,d.getStringOrGradientValidator)()),c.Factory.addGetterSetter(G,"fillPatternX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternY",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillLinearGradientColorStops"),c.Factory.addGetterSetter(G,"strokeLinearGradientColorStops"),c.Factory.addGetterSetter(G,"fillRadialGradientStartRadius",0),c.Factory.addGetterSetter(G,"fillRadialGradientEndRadius",0),c.Factory.addGetterSetter(G,"fillRadialGradientColorStops"),c.Factory.addGetterSetter(G,"fillPatternRepeat","repeat"),c.Factory.addGetterSetter(G,"fillEnabled",!0),c.Factory.addGetterSetter(G,"strokeEnabled",!0),c.Factory.addGetterSetter(G,"shadowEnabled",!0),c.Factory.addGetterSetter(G,"dashEnabled",!0),c.Factory.addGetterSetter(G,"strokeScaleEnabled",!0),c.Factory.addGetterSetter(G,"fillPriority","color"),c.Factory.addComponentsGetterSetter(G,"fillPatternOffset",["x","y"]),c.Factory.addGetterSetter(G,"fillPatternOffsetX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternOffsetY",0,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"fillPatternScale",["x","y"]),c.Factory.addGetterSetter(G,"fillPatternScaleX",1,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternScaleY",1,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"fillLinearGradientStartPoint",["x","y"]),c.Factory.addComponentsGetterSetter(G,"strokeLinearGradientStartPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillLinearGradientStartPointX",0),c.Factory.addGetterSetter(G,"strokeLinearGradientStartPointX",0),c.Factory.addGetterSetter(G,"fillLinearGradientStartPointY",0),c.Factory.addGetterSetter(G,"strokeLinearGradientStartPointY",0),c.Factory.addComponentsGetterSetter(G,"fillLinearGradientEndPoint",["x","y"]),c.Factory.addComponentsGetterSetter(G,"strokeLinearGradientEndPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillLinearGradientEndPointX",0),c.Factory.addGetterSetter(G,"strokeLinearGradientEndPointX",0),c.Factory.addGetterSetter(G,"fillLinearGradientEndPointY",0),c.Factory.addGetterSetter(G,"strokeLinearGradientEndPointY",0),c.Factory.addComponentsGetterSetter(G,"fillRadialGradientStartPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillRadialGradientStartPointX",0),c.Factory.addGetterSetter(G,"fillRadialGradientStartPointY",0),c.Factory.addComponentsGetterSetter(G,"fillRadialGradientEndPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillRadialGradientEndPointX",0),c.Factory.addGetterSetter(G,"fillRadialGradientEndPointY",0),c.Factory.addGetterSetter(G,"fillPatternRotation",0),c.Factory.addGetterSetter(G,"fillRule",void 0,(0,d.getStringValidator)()),c.Factory.backCompat(G,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(Shape);Object.defineProperty(Layer$1,"__esModule",{value:!0});Layer$1.Layer=void 0;const Util_1$b=Util,Container_1$1=Container$1,Node_1$g=Node$1,Factory_1$w=Factory,Canvas_1=Canvas$1,Validators_1$v=Validators,Shape_1$g=Shape,Global_1$k=Global;var HASH="#",BEFORE_DRAW="beforeDraw",DRAW="draw",INTERSECTION_OFFSETS=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],INTERSECTION_OFFSETS_LEN=INTERSECTION_OFFSETS.length;class Layer extends Container_1$1.Container{constructor(a){super(a),this.canvas=new Canvas_1.SceneCanvas,this.hitCanvas=new Canvas_1.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(a){return this.getContext().clear(a),this.getHitCanvas().getContext().clear(a),this}setZIndex(a){super.setZIndex(a);var s=this.getStage();return s&&s.content&&(s.content.removeChild(this.getNativeCanvasElement()),a{this.draw(),this._waitingForDraw=!1})),this}getIntersection(a){if(!this.isListening()||!this.isVisible())return null;for(var s=1,c=!1;;){for(let f=0;f0)return{antialiased:!0};return{}}drawScene(a,s){var c=this.getLayer(),f=a||c&&c.getCanvas();return this._fire(BEFORE_DRAW,{node:this}),this.clearBeforeDraw()&&f.getContext().clear(),Container_1$1.Container.prototype.drawScene.call(this,f,s),this._fire(DRAW,{node:this}),this}drawHit(a,s){var c=this.getLayer(),f=a||c&&c.hitCanvas;return c&&c.clearBeforeDraw()&&c.getHitCanvas().getContext().clear(),Container_1$1.Container.prototype.drawHit.call(this,f,s),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(a){Util_1$b.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(a)}getHitGraphEnabled(a){return Util_1$b.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var a=this.parent,s=!!this.hitCanvas._canvas.parentNode;s?a.content.removeChild(this.hitCanvas._canvas):a.content.appendChild(this.hitCanvas._canvas)}}destroy(){return Util_1$b.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}Layer$1.Layer=Layer;Layer.prototype.nodeType="Layer";(0,Global_1$k._registerNode)(Layer);Factory_1$w.Factory.addGetterSetter(Layer,"imageSmoothingEnabled",!0);Factory_1$w.Factory.addGetterSetter(Layer,"clearBeforeDraw",!0);Factory_1$w.Factory.addGetterSetter(Layer,"hitGraphEnabled",!0,(0,Validators_1$v.getBooleanValidator)());var FastLayer$1={};Object.defineProperty(FastLayer$1,"__esModule",{value:!0});FastLayer$1.FastLayer=void 0;const Util_1$a=Util,Layer_1=Layer$1,Global_1$j=Global;class FastLayer extends Layer_1.Layer{constructor(a){super(a),this.listening(!1),Util_1$a.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}FastLayer$1.FastLayer=FastLayer;FastLayer.prototype.nodeType="FastLayer";(0,Global_1$j._registerNode)(FastLayer);var Group$1={};Object.defineProperty(Group$1,"__esModule",{value:!0});Group$1.Group=void 0;const Util_1$9=Util,Container_1=Container$1,Global_1$i=Global;class Group extends Container_1.Container{_validateAdd(a){var s=a.getType();s!=="Group"&&s!=="Shape"&&Util_1$9.Util.throw("You may only add groups and shapes to groups.")}}Group$1.Group=Group;Group.prototype.nodeType="Group";(0,Global_1$i._registerNode)(Group);var Animation$1={};Object.defineProperty(Animation$1,"__esModule",{value:!0});Animation$1.Animation=void 0;const Global_1$h=Global,Util_1$8=Util,now$3=function(){return Global_1$h.glob.performance&&Global_1$h.glob.performance.now?function(){return Global_1$h.glob.performance.now()}:function(){return new Date().getTime()}}();class Animation{constructor(a,s){this.id=Animation.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:now$3(),frameRate:0},this.func=a,this.setLayers(s)}setLayers(a){let s=[];return a&&(s=Array.isArray(a)?a:[a]),this.layers=s,this}getLayers(){return this.layers}addLayer(a){const s=this.layers,c=s.length;for(let f=0;fthis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():O<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=O,this.update())}getTime(){return this._time}setPosition(O){this.prevPos=this._pos,this.propFunc(O),this._pos=O}getPosition(O){return O===void 0&&(O=this._time),this.func(O,this.begin,this._change,this.duration)}play(){this.state=_,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=S,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(O){this.pause(),this._time=O,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var O=this.getTimer()-this._startTime;this.state===_?this.setTime(O):this.state===S&&this.setTime(this.duration-O)}pause(){this.state=y,this.fire("onPause")}getTimer(){return new Date().getTime()}}class T{constructor(O){var A=this,M=O.node,j=M._id,L,F=O.easing||o.Easings.Linear,I=!!O.yoyo,U;typeof O.duration=="undefined"?L=.3:O.duration===0?L=.001:L=O.duration,this.node=M,this._id=b++;var z=M.getLayer()||(M instanceof f.Konva.Stage?M.getLayers():null);z||a.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new s.Animation(function(){A.tween.onEnterFrame()},z),this.tween=new P(U,function(H){A._tweenFunc(H)},F,0,1,L*1e3,I),this._addListeners(),T.attrs[j]||(T.attrs[j]={}),T.attrs[j][this._id]||(T.attrs[j][this._id]={}),T.tweens[j]||(T.tweens[j]={});for(U in O)d[U]===void 0&&this._addAttr(U,O[U]);this.reset(),this.onFinish=O.onFinish,this.onReset=O.onReset,this.onUpdate=O.onUpdate}_addAttr(O,A){var M=this.node,j=M._id,L,F,I,U,z,H,G,X;if(I=T.tweens[j][O],I&&delete T.attrs[j][I][O],L=M.getAttr(O),a.Util._isArray(A))if(F=[],z=Math.max(A.length,L.length),O==="points"&&A.length!==L.length&&(A.length>L.length?(G=L,L=a.Util._prepareArrayForTween(L,A,M.closed())):(H=A,A=a.Util._prepareArrayForTween(A,L,M.closed()))),O.indexOf("fill")===0)for(U=0;U{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var O=this.node,A=T.attrs[O._id][this._id];A.points&&A.points.trueEnd&&O.setAttr("points",A.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var O=this.node,A=T.attrs[O._id][this._id];A.points&&A.points.trueStart&&O.points(A.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(O){return this.tween.seek(O*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var O=this.node._id,A=this._id,M=T.tweens[O],j;this.pause();for(j in M)delete T.tweens[O][j];delete T.attrs[O][A]}}o.Tween=T,T.attrs={},T.tweens={},c.Node.prototype.to=function(C){var O=C.onFinish;C.node=this,C.onFinish=function(){this.destroy(),O&&O()};var A=new T(C);A.play()},o.Easings={BackEaseIn(C,O,A,M){var j=1.70158;return A*(C/=M)*C*((j+1)*C-j)+O},BackEaseOut(C,O,A,M){var j=1.70158;return A*((C=C/M-1)*C*((j+1)*C+j)+1)+O},BackEaseInOut(C,O,A,M){var j=1.70158;return(C/=M/2)<1?A/2*(C*C*(((j*=1.525)+1)*C-j))+O:A/2*((C-=2)*C*(((j*=1.525)+1)*C+j)+2)+O},ElasticEaseIn(C,O,A,M,j,L){var F=0;return C===0?O:(C/=M)===1?O+A:(L||(L=M*.3),!j||j0?a:s),$=y*s,P=_*(_>0?a:s),T=S*(S>0?s:a);return{x:b,y:c?-1*T:P,width:$-b,height:T-P}}}Arc$1.Arc=Arc;Arc.prototype._centroid=!0;Arc.prototype.className="Arc";Arc.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Global_2$2._registerNode)(Arc);Factory_1$v.Factory.addGetterSetter(Arc,"innerRadius",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"outerRadius",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"angle",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"clockwise",!1,(0,Validators_1$u.getBooleanValidator)());var Arrow$1={},Line$1={};Object.defineProperty(Line$1,"__esModule",{value:!0});Line$1.Line=void 0;const Factory_1$u=Factory,Shape_1$e=Shape,Validators_1$t=Validators,Global_1$f=Global;function getControlPoints(o,a,s,c,f,d,y){var _=Math.sqrt(Math.pow(s-o,2)+Math.pow(c-a,2)),S=Math.sqrt(Math.pow(f-s,2)+Math.pow(d-c,2)),b=y*_/(_+S),$=y*S/(_+S),P=s-b*(f-o),T=c-b*(d-a),C=s+$*(f-o),O=c+$*(d-a);return[P,T,C,O]}function expandPoints(o,a){var s=o.length,c=[],f,d;for(f=2;f4){for(_=this.getTensionPoints(),S=_.length,b=d?0:4,d||a.quadraticCurveTo(_[0],_[1],_[2],_[3]);b{let b,$,P;b=S/2,$=0;for(let C=0;C<20;C++)P=b*o.tValues[20][C]+b,$+=o.cValues[20][C]*c(y,_,P);return b*$};o.getCubicArcLength=a;const s=(y,_,S)=>{S===void 0&&(S=1);const b=y[0]-2*y[1]+y[2],$=_[0]-2*_[1]+_[2],P=2*y[1]-2*y[0],T=2*_[1]-2*_[0],C=4*(b*b+$*$),O=4*(b*P+$*T),A=P*P+T*T;if(C===0)return S*Math.sqrt(Math.pow(y[2]-y[0],2)+Math.pow(_[2]-_[0],2));const M=O/(2*C),j=A/C,L=S+M,F=j-M*M,I=L*L+F>0?Math.sqrt(L*L+F):0,U=M*M+F>0?Math.sqrt(M*M+F):0,z=M+Math.sqrt(M*M+F)!==0?F*Math.log(Math.abs((L+I)/(M+U))):0;return Math.sqrt(C)/2*(L*I-M*U+z)};o.getQuadraticArcLength=s;function c(y,_,S){const b=f(1,S,y),$=f(1,S,_),P=b*b+$*$;return Math.sqrt(P)}const f=(y,_,S)=>{const b=S.length-1;let $,P;if(b===0)return 0;if(y===0){P=0;for(let T=0;T<=b;T++)P+=o.binomialCoefficients[b][T]*Math.pow(1-_,b-T)*Math.pow(_,T)*S[T];return P}else{$=new Array(b);for(let T=0;T{let b=1,$=y/_,P=(y-S($))/_,T=0;for(;b>.001;){const C=S($+P),O=Math.abs(y-C)/_;if(O500)break}return $};o.t2length=d})(BezierFunctions);Object.defineProperty(Path$1,"__esModule",{value:!0});Path$1.Path=void 0;const Factory_1$t=Factory,Shape_1$d=Shape,Global_1$e=Global,BezierFunctions_1=BezierFunctions;class Path extends Shape_1$d.Shape{constructor(a){super(a),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=Path.parsePathData(this.data()),this.pathLength=Path.getPathLength(this.dataArray)}_sceneFunc(a){var s=this.dataArray;a.beginPath();for(var c=!1,f=0;f$?b:$,M=b>$?1:b/$,j=b>$?$/b:1;a.translate(_,S),a.rotate(C),a.scale(M,j),a.arc(0,0,A,P,P+T,1-O),a.scale(1/M,1/j),a.rotate(-C),a.translate(-_,-S);break;case"z":c=!0,a.closePath();break}}!c&&!this.hasFill()?a.strokeShape(this):a.fillStrokeShape(this)}getSelfRect(){var a=[];this.dataArray.forEach(function(b){if(b.command==="A"){var $=b.points[4],P=b.points[5],T=b.points[4]+P,C=Math.PI/180;if(Math.abs($-T)T;O-=C){const A=Path.getPointOnEllipticalArc(b.points[0],b.points[1],b.points[2],b.points[3],O,0);a.push(A.x,A.y)}else for(let O=$+C;Os[f].pathLength;)a-=s[f].pathLength,++f;if(f===d)return c=s[f-1].points.slice(-2),{x:c[0],y:c[1]};if(a<.01)return c=s[f].points.slice(0,2),{x:c[0],y:c[1]};var y=s[f],_=y.points;switch(y.command){case"L":return Path.getPointOnLine(a,y.start.x,y.start.y,_[0],_[1]);case"C":return Path.getPointOnCubicBezier((0,BezierFunctions_1.t2length)(a,Path.getPathLength(s),A=>(0,BezierFunctions_1.getCubicArcLength)([y.start.x,_[0],_[2],_[4]],[y.start.y,_[1],_[3],_[5]],A)),y.start.x,y.start.y,_[0],_[1],_[2],_[3],_[4],_[5]);case"Q":return Path.getPointOnQuadraticBezier((0,BezierFunctions_1.t2length)(a,Path.getPathLength(s),A=>(0,BezierFunctions_1.getQuadraticArcLength)([y.start.x,_[0],_[2]],[y.start.y,_[1],_[3]],A)),y.start.x,y.start.y,_[0],_[1],_[2],_[3]);case"A":var S=_[0],b=_[1],$=_[2],P=_[3],T=_[4],C=_[5],O=_[6];return T+=C*a/y.pathLength,Path.getPointOnEllipticalArc(S,b,$,P,T,O)}return null}static getPointOnLine(a,s,c,f,d,y,_){y===void 0&&(y=s),_===void 0&&(_=c);var S=(d-c)/(f-s+1e-8),b=Math.sqrt(a*a/(1+S*S));f0&&!isNaN(O[0]);){var L="",F=[],I=S,U=b,z,H,G,X,W,K,ie,ee,de,Z;switch(C){case"l":S+=O.shift(),b+=O.shift(),L="L",F.push(S,b);break;case"L":S=O.shift(),b=O.shift(),F.push(S,b);break;case"m":var Q=O.shift(),J=O.shift();if(S+=Q,b+=J,L="M",y.length>2&&y[y.length-1].command==="z"){for(var ne=y.length-2;ne>=0;ne--)if(y[ne].command==="M"){S=y[ne].points[0]+Q,b=y[ne].points[1]+J;break}}F.push(S,b),C="l";break;case"M":S=O.shift(),b=O.shift(),L="M",F.push(S,b),C="L";break;case"h":S+=O.shift(),L="L",F.push(S,b);break;case"H":S=O.shift(),L="L",F.push(S,b);break;case"v":b+=O.shift(),L="L",F.push(S,b);break;case"V":b=O.shift(),L="L",F.push(S,b);break;case"C":F.push(O.shift(),O.shift(),O.shift(),O.shift()),S=O.shift(),b=O.shift(),F.push(S,b);break;case"c":F.push(S+O.shift(),b+O.shift(),S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),L="C",F.push(S,b);break;case"S":H=S,G=b,z=y[y.length-1],z.command==="C"&&(H=S+(S-z.points[2]),G=b+(b-z.points[3])),F.push(H,G,O.shift(),O.shift()),S=O.shift(),b=O.shift(),L="C",F.push(S,b);break;case"s":H=S,G=b,z=y[y.length-1],z.command==="C"&&(H=S+(S-z.points[2]),G=b+(b-z.points[3])),F.push(H,G,S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),L="C",F.push(S,b);break;case"Q":F.push(O.shift(),O.shift()),S=O.shift(),b=O.shift(),F.push(S,b);break;case"q":F.push(S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),L="Q",F.push(S,b);break;case"T":H=S,G=b,z=y[y.length-1],z.command==="Q"&&(H=S+(S-z.points[0]),G=b+(b-z.points[1])),S=O.shift(),b=O.shift(),L="Q",F.push(H,G,S,b);break;case"t":H=S,G=b,z=y[y.length-1],z.command==="Q"&&(H=S+(S-z.points[0]),G=b+(b-z.points[1])),S+=O.shift(),b+=O.shift(),L="Q",F.push(H,G,S,b);break;case"A":X=O.shift(),W=O.shift(),K=O.shift(),ie=O.shift(),ee=O.shift(),de=S,Z=b,S=O.shift(),b=O.shift(),L="A",F=this.convertEndpointToCenterParameterization(de,Z,S,b,ie,ee,X,W,K);break;case"a":X=O.shift(),W=O.shift(),K=O.shift(),ie=O.shift(),ee=O.shift(),de=S,Z=b,S+=O.shift(),b+=O.shift(),L="A",F=this.convertEndpointToCenterParameterization(de,Z,S,b,ie,ee,X,W,K);break}y.push({command:L||C,points:F,start:{x:I,y:U},pathLength:this.calcLength(I,U,L||C,F)})}(C==="z"||C==="Z")&&y.push({command:"z",points:[],start:void 0,pathLength:0})}return y}static calcLength(a,s,c,f){var d,y,_,S,b=Path;switch(c){case"L":return b.getLineLength(a,s,f[0],f[1]);case"C":return(0,BezierFunctions_1.getCubicArcLength)([a,f[0],f[2],f[4]],[s,f[1],f[3],f[5]],1);case"Q":return(0,BezierFunctions_1.getQuadraticArcLength)([a,f[0],f[2]],[s,f[1],f[3]],1);case"A":d=0;var $=f[4],P=f[5],T=f[4]+P,C=Math.PI/180;if(Math.abs($-T)T;S-=C)_=b.getPointOnEllipticalArc(f[0],f[1],f[2],f[3],S,0),d+=b.getLineLength(y.x,y.y,_.x,_.y),y=_;else for(S=$+C;S1&&(_*=Math.sqrt(C),S*=Math.sqrt(C));var O=Math.sqrt((_*_*(S*S)-_*_*(T*T)-S*S*(P*P))/(_*_*(T*T)+S*S*(P*P)));d===y&&(O*=-1),isNaN(O)&&(O=0);var A=O*_*T/S,M=O*-S*P/_,j=(a+c)/2+Math.cos($)*A-Math.sin($)*M,L=(s+f)/2+Math.sin($)*A+Math.cos($)*M,F=function(W){return Math.sqrt(W[0]*W[0]+W[1]*W[1])},I=function(W,K){return(W[0]*K[0]+W[1]*K[1])/(F(W)*F(K))},U=function(W,K){return(W[0]*K[1]=1&&(X=0),y===0&&X>0&&(X=X-2*Math.PI),y===1&&X<0&&(X=X+2*Math.PI),[j,L,_,S,z,X,$,y]}}Path$1.Path=Path;Path.prototype.className="Path";Path.prototype._attrsAffectingSize=["data"];(0,Global_1$e._registerNode)(Path);Factory_1$t.Factory.addGetterSetter(Path,"data");Object.defineProperty(Arrow$1,"__esModule",{value:!0});Arrow$1.Arrow=void 0;const Factory_1$s=Factory,Line_1$1=Line$1,Validators_1$s=Validators,Global_1$d=Global,Path_1$2=Path$1;class Arrow extends Line_1$1.Line{_sceneFunc(a){super._sceneFunc(a);var s=Math.PI*2,c=this.points(),f=c,d=this.tension()!==0&&c.length>4;d&&(f=this.getTensionPoints());var y=this.pointerLength(),_=c.length,S,b;if(d){const T=[f[f.length-4],f[f.length-3],f[f.length-2],f[f.length-1],c[_-2],c[_-1]],C=Path_1$2.Path.calcLength(f[f.length-4],f[f.length-3],"C",T),O=Path_1$2.Path.getPointOnQuadraticBezier(Math.min(1,1-y/C),T[0],T[1],T[2],T[3],T[4],T[5]);S=c[_-2]-O.x,b=c[_-1]-O.y}else S=c[_-2]-c[_-4],b=c[_-1]-c[_-3];var $=(Math.atan2(b,S)+s)%s,P=this.pointerWidth();this.pointerAtEnding()&&(a.save(),a.beginPath(),a.translate(c[_-2],c[_-1]),a.rotate($),a.moveTo(0,0),a.lineTo(-y,P/2),a.lineTo(-y,-P/2),a.closePath(),a.restore(),this.__fillStroke(a)),this.pointerAtBeginning()&&(a.save(),a.beginPath(),a.translate(c[0],c[1]),d?(S=(f[0]+f[2])/2-c[0],b=(f[1]+f[3])/2-c[1]):(S=c[2]-c[0],b=c[3]-c[1]),a.rotate((Math.atan2(-b,-S)+s)%s),a.moveTo(0,0),a.lineTo(-y,P/2),a.lineTo(-y,-P/2),a.closePath(),a.restore(),this.__fillStroke(a))}__fillStroke(a){var s=this.dashEnabled();s&&(this.attrs.dashEnabled=!1,a.setLineDash([])),a.fillStrokeShape(this),s&&(this.attrs.dashEnabled=!0)}getSelfRect(){const a=super.getSelfRect(),s=this.pointerWidth()/2;return{x:a.x-s,y:a.y-s,width:a.width+s*2,height:a.height+s*2}}}Arrow$1.Arrow=Arrow;Arrow.prototype.className="Arrow";(0,Global_1$d._registerNode)(Arrow);Factory_1$s.Factory.addGetterSetter(Arrow,"pointerLength",10,(0,Validators_1$s.getNumberValidator)());Factory_1$s.Factory.addGetterSetter(Arrow,"pointerWidth",10,(0,Validators_1$s.getNumberValidator)());Factory_1$s.Factory.addGetterSetter(Arrow,"pointerAtBeginning",!1);Factory_1$s.Factory.addGetterSetter(Arrow,"pointerAtEnding",!0);var Circle$1={};Object.defineProperty(Circle$1,"__esModule",{value:!0});Circle$1.Circle=void 0;const Factory_1$r=Factory,Shape_1$c=Shape,Validators_1$r=Validators,Global_1$c=Global;class Circle extends Shape_1$c.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius()!==a/2&&this.radius(a/2)}setHeight(a){this.radius()!==a/2&&this.radius(a/2)}}Circle$1.Circle=Circle;Circle.prototype._centroid=!0;Circle.prototype.className="Circle";Circle.prototype._attrsAffectingSize=["radius"];(0,Global_1$c._registerNode)(Circle);Factory_1$r.Factory.addGetterSetter(Circle,"radius",0,(0,Validators_1$r.getNumberValidator)());var Ellipse$1={};Object.defineProperty(Ellipse$1,"__esModule",{value:!0});Ellipse$1.Ellipse=void 0;const Factory_1$q=Factory,Shape_1$b=Shape,Validators_1$q=Validators,Global_1$b=Global;class Ellipse extends Shape_1$b.Shape{_sceneFunc(a){var s=this.radiusX(),c=this.radiusY();a.beginPath(),a.save(),s!==c&&a.scale(1,c/s),a.arc(0,0,s,0,Math.PI*2,!1),a.restore(),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(a){this.radiusX(a/2)}setHeight(a){this.radiusY(a/2)}}Ellipse$1.Ellipse=Ellipse;Ellipse.prototype.className="Ellipse";Ellipse.prototype._centroid=!0;Ellipse.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,Global_1$b._registerNode)(Ellipse);Factory_1$q.Factory.addComponentsGetterSetter(Ellipse,"radius",["x","y"]);Factory_1$q.Factory.addGetterSetter(Ellipse,"radiusX",0,(0,Validators_1$q.getNumberValidator)());Factory_1$q.Factory.addGetterSetter(Ellipse,"radiusY",0,(0,Validators_1$q.getNumberValidator)());var Image$1={};Object.defineProperty(Image$1,"__esModule",{value:!0});Image$1.Image=void 0;const Util_1$7=Util,Factory_1$p=Factory,Shape_1$a=Shape,Global_1$a=Global,Validators_1$p=Validators;class Image extends Shape_1$a.Shape{constructor(a){super(a),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const a=this.image();a&&a.complete||a&&a.readyState===4||a&&a.addEventListener&&a.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(a){const s=this.getWidth(),c=this.getHeight(),f=this.cornerRadius(),d=this.attrs.image;let y;if(d){const _=this.attrs.cropWidth,S=this.attrs.cropHeight;_&&S?y=[d,this.cropX(),this.cropY(),_,S,0,0,s,c]:y=[d,0,0,s,c]}(this.hasFill()||this.hasStroke()||f)&&(a.beginPath(),f?Util_1$7.Util.drawRoundedRectPath(a,s,c,f):a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)),d&&(f&&a.clip(),a.drawImage.apply(a,y))}_hitFunc(a){var s=this.width(),c=this.height(),f=this.cornerRadius();a.beginPath(),f?Util_1$7.Util.drawRoundedRectPath(a,s,c,f):a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)}getWidth(){var a,s;return(a=this.attrs.width)!==null&&a!==void 0?a:(s=this.image())===null||s===void 0?void 0:s.width}getHeight(){var a,s;return(a=this.attrs.height)!==null&&a!==void 0?a:(s=this.image())===null||s===void 0?void 0:s.height}static fromURL(a,s,c=null){var f=Util_1$7.Util.createImageElement();f.onload=function(){var d=new Image({image:f});s(d)},f.onerror=c,f.crossOrigin="Anonymous",f.src=a}}Image$1.Image=Image;Image.prototype.className="Image";(0,Global_1$a._registerNode)(Image);Factory_1$p.Factory.addGetterSetter(Image,"cornerRadius",0,(0,Validators_1$p.getNumberOrArrayOfNumbersValidator)(4));Factory_1$p.Factory.addGetterSetter(Image,"image");Factory_1$p.Factory.addComponentsGetterSetter(Image,"crop",["x","y","width","height"]);Factory_1$p.Factory.addGetterSetter(Image,"cropX",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropY",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropWidth",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropHeight",0,(0,Validators_1$p.getNumberValidator)());var Label$1={};Object.defineProperty(Label$1,"__esModule",{value:!0});Label$1.Tag=Label$1.Label=void 0;const Factory_1$o=Factory,Shape_1$9=Shape,Group_1$1=Group$1,Validators_1$o=Validators,Global_1$9=Global;var ATTR_CHANGE_LIST$2=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],CHANGE_KONVA$1="Change.konva",NONE$1="none",UP="up",RIGHT$1="right",DOWN="down",LEFT$1="left",attrChangeListLen$1=ATTR_CHANGE_LIST$2.length;class Label extends Group_1$1.Group{constructor(a){super(a),this.on("add.konva",function(s){this._addListeners(s.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(a){var s=this,c,f=function(){s._sync()};for(c=0;c{s=Math.min(s,y.x),c=Math.max(c,y.x),f=Math.min(f,y.y),d=Math.max(d,y.y)}),{x:s,y:f,width:c-s,height:d-f}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius(a/2)}setHeight(a){this.radius(a/2)}}RegularPolygon$1.RegularPolygon=RegularPolygon;RegularPolygon.prototype.className="RegularPolygon";RegularPolygon.prototype._centroid=!0;RegularPolygon.prototype._attrsAffectingSize=["radius"];(0,Global_1$7._registerNode)(RegularPolygon);Factory_1$m.Factory.addGetterSetter(RegularPolygon,"radius",0,(0,Validators_1$m.getNumberValidator)());Factory_1$m.Factory.addGetterSetter(RegularPolygon,"sides",0,(0,Validators_1$m.getNumberValidator)());var Ring$1={};Object.defineProperty(Ring$1,"__esModule",{value:!0});Ring$1.Ring=void 0;const Factory_1$l=Factory,Shape_1$6=Shape,Validators_1$l=Validators,Global_1$6=Global;var PIx2=Math.PI*2;class Ring extends Shape_1$6.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.innerRadius(),0,PIx2,!1),a.moveTo(this.outerRadius(),0),a.arc(0,0,this.outerRadius(),PIx2,0,!0),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(a){this.outerRadius(a/2)}setHeight(a){this.outerRadius(a/2)}}Ring$1.Ring=Ring;Ring.prototype.className="Ring";Ring.prototype._centroid=!0;Ring.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Global_1$6._registerNode)(Ring);Factory_1$l.Factory.addGetterSetter(Ring,"innerRadius",0,(0,Validators_1$l.getNumberValidator)());Factory_1$l.Factory.addGetterSetter(Ring,"outerRadius",0,(0,Validators_1$l.getNumberValidator)());var Sprite$1={};Object.defineProperty(Sprite$1,"__esModule",{value:!0});Sprite$1.Sprite=void 0;const Factory_1$k=Factory,Shape_1$5=Shape,Animation_1=Animation$1,Validators_1$k=Validators,Global_1$5=Global;class Sprite extends Shape_1$5.Shape{constructor(a){super(a),this._updated=!0,this.anim=new Animation_1.Animation(()=>{var s=this._updated;return this._updated=!1,s}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(a){var s=this.animation(),c=this.frameIndex(),f=c*4,d=this.animations()[s],y=this.frameOffsets(),_=d[f+0],S=d[f+1],b=d[f+2],$=d[f+3],P=this.image();if((this.hasFill()||this.hasStroke())&&(a.beginPath(),a.rect(0,0,b,$),a.closePath(),a.fillStrokeShape(this)),P)if(y){var T=y[s],C=c*2;a.drawImage(P,_,S,b,$,T[C+0],T[C+1],b,$)}else a.drawImage(P,_,S,b,$,0,0,b,$)}_hitFunc(a){var s=this.animation(),c=this.frameIndex(),f=c*4,d=this.animations()[s],y=this.frameOffsets(),_=d[f+2],S=d[f+3];if(a.beginPath(),y){var b=y[s],$=c*2;a.rect(b[$+0],b[$+1],_,S)}else a.rect(0,0,_,S);a.closePath(),a.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var a=this;this.interval=setInterval(function(){a._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var a=this.getLayer();this.anim.setLayers(a),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var a=this.frameIndex(),s=this.animation(),c=this.animations(),f=c[s],d=f.length/4;a{a=a.trim();const s=a.indexOf(" ")>=0,c=a.indexOf('"')>=0||a.indexOf("'")>=0;return s&&!c&&(a=`"${a}"`),a}).join(", ")}var dummyContext;function getDummyContext(){return dummyContext||(dummyContext=Util_1$5.Util.createCanvasElement().getContext(CONTEXT_2D),dummyContext)}function _fillFunc$1(o){o.fillText(this._partialText,this._partialTextX,this._partialTextY)}function _strokeFunc$1(o){o.setAttr("miterLimit",2),o.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function checkDefaultFill(o){return o=o||{},!o.fillLinearGradientColorStops&&!o.fillRadialGradientColorStops&&!o.fillPatternImage&&(o.fill=o.fill||"black"),o}let Text$3=class extends Shape_1$3.Shape{constructor(a){super(checkDefaultFill(a)),this._partialTextX=0,this._partialTextY=0;for(var s=0;s1&&(L+=y)}}}_hitFunc(a){var s=this.getWidth(),c=this.getHeight();a.beginPath(),a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)}setText(a){var s=Util_1$5.Util._isString(a)?a:a==null?"":a+"";return this._setAttr(TEXT,s),this}getWidth(){var a=this.attrs.width===AUTO||this.attrs.width===void 0;return a?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var a=this.attrs.height===AUTO||this.attrs.height===void 0;return a?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return Util_1$5.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(a){var s=getDummyContext(),c=this.fontSize(),f;return s.save(),s.font=this._getContextFont(),f=s.measureText(a),s.restore(),{width:f.width,height:c}}_getContextFont(){return this.fontStyle()+SPACE$1+this.fontVariant()+SPACE$1+(this.fontSize()+PX_SPACE)+normalizeFontFamily(this.fontFamily())}_addTextLine(a){this.align()===JUSTIFY&&(a=a.trim());var c=this._getTextWidth(a);return this.textArr.push({text:a,width:c,lastInParagraph:!1})}_getTextWidth(a){var s=this.letterSpacing(),c=a.length;return getDummyContext().measureText(a).width+(c?s*(c-1):0)}_setTextData(){var a=this.text().split(` +`),s=+this.fontSize(),c=0,f=this.lineHeight()*s,d=this.attrs.width,y=this.attrs.height,_=d!==AUTO&&d!==void 0,S=y!==AUTO&&y!==void 0,b=this.padding(),$=d-b*2,P=y-b*2,T=0,C=this.wrap(),O=C!==NONE,A=C!==CHAR&&O,M=this.ellipsis();this.textArr=[],getDummyContext().font=this._getContextFont();for(var j=M?this._getTextWidth(ELLIPSIS):0,L=0,F=a.length;L$)for(;I.length>0;){for(var z=0,H=I.length,G="",X=0;z>>1,K=I.slice(0,W+1),ie=this._getTextWidth(K)+j;ie<=$?(z=W+1,G=K,X=ie):H=W}if(G){if(A){var ee,de=I[G.length],Z=de===SPACE$1||de===DASH;Z&&X<=$?ee=G.length:ee=Math.max(G.lastIndexOf(SPACE$1),G.lastIndexOf(DASH))+1,ee>0&&(z=ee,G=G.slice(0,z),X=this._getTextWidth(G))}G=G.trimRight(),this._addTextLine(G),c=Math.max(c,X),T+=f;var Q=this._shouldHandleEllipsis(T);if(Q){this._tryToAddEllipsisToLastLine();break}if(I=I.slice(z),I=I.trimLeft(),I.length>0&&(U=this._getTextWidth(I),U<=$)){this._addTextLine(I),T+=f,c=Math.max(c,U);break}}else break}else this._addTextLine(I),T+=f,c=Math.max(c,U),this._shouldHandleEllipsis(T)&&LP)break}this.textHeight=s,this.textWidth=c}_shouldHandleEllipsis(a){var s=+this.fontSize(),c=this.lineHeight()*s,f=this.attrs.height,d=f!==AUTO&&f!==void 0,y=this.padding(),_=f-y*2,S=this.wrap(),b=S!==NONE;return!b||d&&a+c>_}_tryToAddEllipsisToLastLine(){var a=this.attrs.width,s=a!==AUTO&&a!==void 0,c=this.padding(),f=a-c*2,d=this.ellipsis(),y=this.textArr[this.textArr.length-1];if(!(!y||!d)){if(s){var _=this._getTextWidth(y.text+ELLIPSIS)s?null:Path_1$1.Path.getPointAtLengthOfDataArray(a,this.dataArray)}_readDataAttribute(){this.dataArray=Path_1$1.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(a){a.setAttr("font",this._getContextFont()),a.setAttr("textBaseline",this.textBaseline()),a.setAttr("textAlign","left"),a.save();var s=this.textDecoration(),c=this.fill(),f=this.fontSize(),d=this.glyphInfo;s==="underline"&&a.beginPath();for(var y=0;y=1){var c=s[0].p0;a.moveTo(c.x,c.y)}for(var f=0;fo+`.${EVENTS_NAME}`).join(" "),NODES_RECT="nodesRect",TRANSFORM_CHANGE_STR=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],ANGLES={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const TOUCH_DEVICE="ontouchstart"in Global_1$1.Konva._global;function getCursor(o,a,s){if(o==="rotater")return s;a+=Util_1$3.Util.degToRad(ANGLES[o]||0);var c=(Util_1$3.Util.radToDeg(a)%360+360)%360;return Util_1$3.Util._inRange(c,315+22.5,360)||Util_1$3.Util._inRange(c,0,22.5)?"ns-resize":Util_1$3.Util._inRange(c,45-22.5,45+22.5)?"nesw-resize":Util_1$3.Util._inRange(c,90-22.5,90+22.5)?"ew-resize":Util_1$3.Util._inRange(c,135-22.5,135+22.5)?"nwse-resize":Util_1$3.Util._inRange(c,180-22.5,180+22.5)?"ns-resize":Util_1$3.Util._inRange(c,225-22.5,225+22.5)?"nesw-resize":Util_1$3.Util._inRange(c,270-22.5,270+22.5)?"ew-resize":Util_1$3.Util._inRange(c,315-22.5,315+22.5)?"nwse-resize":(Util_1$3.Util.error("Transformer has unknown angle for cursor detection: "+c),"pointer")}var ANCHORS_NAMES=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],MAX_SAFE_INTEGER$2=1e8;function getCenter(o){return{x:o.x+o.width/2*Math.cos(o.rotation)+o.height/2*Math.sin(-o.rotation),y:o.y+o.height/2*Math.cos(o.rotation)+o.width/2*Math.sin(o.rotation)}}function rotateAroundPoint(o,a,s){const c=s.x+(o.x-s.x)*Math.cos(a)-(o.y-s.y)*Math.sin(a),f=s.y+(o.x-s.x)*Math.sin(a)+(o.y-s.y)*Math.cos(a);return $e(se({},o),{rotation:o.rotation+a,x:c,y:f})}function rotateAroundCenter(o,a){const s=getCenter(o);return rotateAroundPoint(o,a,s)}function getSnap(o,a,s){let c=a;for(let f=0;ff.isAncestorOf(this)?(Util_1$3.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=a=s,a.length===1&&this.useSingleNodeRotation()?this.rotation(a[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(f=>{const d=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},y=f._attrsAffectingSize.map(_=>_+"Change."+this._getEventNamespace()).join(" ");f.on(y,d),f.on(TRANSFORM_CHANGE_STR.map(_=>_+`.${this._getEventNamespace()}`).join(" "),d),f.on(`absoluteTransformChange.${this._getEventNamespace()}`,d),this._proxyDrag(f)}),this._resetTransformCache();var c=!!this.findOne(".top-left");return c&&this.update(),this}_proxyDrag(a){let s;a.on(`dragstart.${this._getEventNamespace()}`,c=>{s=a.getAbsolutePosition(),!this.isDragging()&&a!==this.findOne(".back")&&this.startDrag(c,!1)}),a.on(`dragmove.${this._getEventNamespace()}`,c=>{if(!s)return;const f=a.getAbsolutePosition(),d=f.x-s.x,y=f.y-s.y;this.nodes().forEach(_=>{if(_===a||_.isDragging())return;const S=_.getAbsolutePosition();_.setAbsolutePosition({x:S.x+d,y:S.y+y}),_.startDrag(c)}),s=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(a=>{a.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(NODES_RECT),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(NODES_RECT,this.__getNodeRect)}__getNodeShape(a,s=this.rotation(),c){var f=a.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),d=a.getAbsoluteScale(c),y=a.getAbsolutePosition(c),_=f.x*d.x-a.offsetX()*d.x,S=f.y*d.y-a.offsetY()*d.y;const b=(Global_1$1.Konva.getAngle(a.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),$={x:y.x+_*Math.cos(b)+S*Math.sin(-b),y:y.y+S*Math.cos(b)+_*Math.sin(b),width:f.width*d.x,height:f.height*d.y,rotation:b};return rotateAroundPoint($,-Global_1$1.Konva.getAngle(s),{x:0,y:0})}__getNodeRect(){var a=this.getNode();if(!a)return{x:-MAX_SAFE_INTEGER$2,y:-MAX_SAFE_INTEGER$2,width:0,height:0,rotation:0};const s=[];this.nodes().map(b=>{const $=b.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var P=[{x:$.x,y:$.y},{x:$.x+$.width,y:$.y},{x:$.x+$.width,y:$.y+$.height},{x:$.x,y:$.y+$.height}],T=b.getAbsoluteTransform();P.forEach(function(C){var O=T.point(C);s.push(O)})});const c=new Util_1$3.Transform;c.rotate(-Global_1$1.Konva.getAngle(this.rotation()));var f=1/0,d=1/0,y=-1/0,_=-1/0;s.forEach(function(b){var $=c.point(b);f===void 0&&(f=y=$.x,d=_=$.y),f=Math.min(f,$.x),d=Math.min(d,$.y),y=Math.max(y,$.x),_=Math.max(_,$.y)}),c.invert();const S=c.point({x:f,y:d});return{x:S.x,y:S.y,width:y-f,height:_-d,rotation:Global_1$1.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),ANCHORS_NAMES.forEach(a=>{this._createAnchor(a)}),this._createAnchor("rotater")}_createAnchor(a){var s=new Rect_1$1.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:a+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:TOUCH_DEVICE?10:"auto"}),c=this;s.on("mousedown touchstart",function(f){c._handleMouseDown(f)}),s.on("dragstart",f=>{s.stopDrag(),f.cancelBubble=!0}),s.on("dragend",f=>{f.cancelBubble=!0}),s.on("mouseenter",()=>{var f=Global_1$1.Konva.getAngle(this.rotation()),d=this.rotateAnchorCursor(),y=getCursor(a,f,d);s.getStage().content&&(s.getStage().content.style.cursor=y),this._cursorChange=!0}),s.on("mouseout",()=>{s.getStage().content&&(s.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(s)}_createBack(){var a=new Shape_1$1.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(s,c){var f=c.getParent(),d=f.padding();s.beginPath(),s.rect(-d,-d,c.width()+d*2,c.height()+d*2),s.moveTo(c.width()/2,-d),f.rotateEnabled()&&f.rotateLineVisible()&&s.lineTo(c.width()/2,-f.rotateAnchorOffset()*Util_1$3.Util._sign(c.height())-d),s.fillStrokeShape(c)},hitFunc:(s,c)=>{if(this.shouldOverdrawWholeArea()){var f=this.padding();s.beginPath(),s.rect(-f,-f,c.width()+f*2,c.height()+f*2),s.fillStrokeShape(c)}}});this.add(a),this._proxyDrag(a),a.on("dragstart",s=>{s.cancelBubble=!0}),a.on("dragmove",s=>{s.cancelBubble=!0}),a.on("dragend",s=>{s.cancelBubble=!0}),this.on("dragmove",s=>{this.update()})}_handleMouseDown(a){this._movingAnchorName=a.target.name().split(" ")[0];var s=this._getNodeRect(),c=s.width,f=s.height,d=Math.sqrt(Math.pow(c,2)+Math.pow(f,2));this.sin=Math.abs(f/d),this.cos=Math.abs(c/d),typeof window!="undefined"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var y=a.target.getAbsolutePosition(),_=a.target.getStage().getPointerPosition();this._anchorDragOffset={x:_.x-y.x,y:_.y-y.y},this._fire("transformstart",{evt:a.evt,target:this.getNode()}),this._nodes.forEach(S=>{S._fire("transformstart",{evt:a.evt,target:S})})}_handleMouseMove(a){var s,c,f,d=this.findOne("."+this._movingAnchorName),y=d.getStage();y.setPointersPositions(a);const _=y.getPointerPosition();let S={x:_.x-this._anchorDragOffset.x,y:_.y-this._anchorDragOffset.y};const b=d.getAbsolutePosition();this.anchorDragBoundFunc()&&(S=this.anchorDragBoundFunc()(b,S,a)),d.setAbsolutePosition(S);const $=d.getAbsolutePosition();if(!(b.x===$.x&&b.y===$.y)){if(this._movingAnchorName==="rotater"){var P=this._getNodeRect();s=d.x()-P.width/2,c=-d.y()+P.height/2;let ee=Math.atan2(-c,s)+Math.PI/2;P.height<0&&(ee-=Math.PI);var T=Global_1$1.Konva.getAngle(this.rotation());const de=T+ee,Z=Global_1$1.Konva.getAngle(this.rotationSnapTolerance()),J=getSnap(this.rotationSnaps(),de,Z)-P.rotation,ne=rotateAroundCenter(P,J);this._fitNodesInto(ne,a);return}var C=this.shiftBehavior(),O;C==="inverted"?O=this.keepRatio()&&!a.shiftKey:C==="none"?O=this.keepRatio():O=this.keepRatio()||a.shiftKey;var F=this.centeredScaling()||a.altKey;if(this._movingAnchorName==="top-left"){if(O){var A=F?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};f=Math.sqrt(Math.pow(A.x-d.x(),2)+Math.pow(A.y-d.y(),2));var M=this.findOne(".top-left").x()>A.x?-1:1,j=this.findOne(".top-left").y()>A.y?-1:1;s=f*this.cos*M,c=f*this.sin*j,this.findOne(".top-left").x(A.x-s),this.findOne(".top-left").y(A.y-c)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(d.y());else if(this._movingAnchorName==="top-right"){if(O){var A=F?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};f=Math.sqrt(Math.pow(d.x()-A.x,2)+Math.pow(A.y-d.y(),2));var M=this.findOne(".top-right").x()A.y?-1:1;s=f*this.cos*M,c=f*this.sin*j,this.findOne(".top-right").x(A.x+s),this.findOne(".top-right").y(A.y-c)}var L=d.position();this.findOne(".top-left").y(L.y),this.findOne(".bottom-right").x(L.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(d.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(d.x());else if(this._movingAnchorName==="bottom-left"){if(O){var A=F?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};f=Math.sqrt(Math.pow(A.x-d.x(),2)+Math.pow(d.y()-A.y,2));var M=A.x{c._fire("transformend",{evt:a,target:c})}),this._movingAnchorName=null}}_fitNodesInto(a,s){var c=this._getNodeRect();const f=1;if(Util_1$3.Util._inRange(a.width,-this.padding()*2-f,f)){this.update();return}if(Util_1$3.Util._inRange(a.height,-this.padding()*2-f,f)){this.update();return}var d=new Util_1$3.Transform;if(d.rotate(Global_1$1.Konva.getAngle(this.rotation())),this._movingAnchorName&&a.width<0&&this._movingAnchorName.indexOf("left")>=0){const T=d.point({x:-this.padding()*2,y:0});a.x+=T.x,a.y+=T.y,a.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y}else if(this._movingAnchorName&&a.width<0&&this._movingAnchorName.indexOf("right")>=0){const T=d.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.width+=this.padding()*2}if(this._movingAnchorName&&a.height<0&&this._movingAnchorName.indexOf("top")>=0){const T=d.point({x:0,y:-this.padding()*2});a.x+=T.x,a.y+=T.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.height+=this.padding()*2}else if(this._movingAnchorName&&a.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const T=d.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.height+=this.padding()*2}if(this.boundBoxFunc()){const T=this.boundBoxFunc()(c,a);T?a=T:Util_1$3.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const y=1e7,_=new Util_1$3.Transform;_.translate(c.x,c.y),_.rotate(c.rotation),_.scale(c.width/y,c.height/y);const S=new Util_1$3.Transform,b=a.width/y,$=a.height/y;this.flipEnabled()===!1?(S.translate(a.x,a.y),S.rotate(a.rotation),S.translate(a.width<0?a.width:0,a.height<0?a.height:0),S.scale(Math.abs(b),Math.abs($))):(S.translate(a.x,a.y),S.rotate(a.rotation),S.scale(b,$));const P=S.multiply(_.invert());this._nodes.forEach(T=>{var C;const O=T.getParent().getAbsoluteTransform(),A=T.getTransform().copy();A.translate(T.offsetX(),T.offsetY());const M=new Util_1$3.Transform;M.multiply(O.copy().invert()).multiply(P).multiply(O).multiply(A);const j=M.decompose();T.setAttrs(j),this._fire("transform",{evt:s,target:T}),T._fire("transform",{evt:s,target:T}),(C=T.getLayer())===null||C===void 0||C.batchDraw()}),this.rotation(Util_1$3.Util._getRotation(a.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(a,s){this.findOne(a).setAttrs(s)}update(){var a,s=this._getNodeRect();this.rotation(Util_1$3.Util._getRotation(s.rotation));var c=s.width,f=s.height,d=this.enabledAnchors(),y=this.resizeEnabled(),_=this.padding(),S=this.anchorSize();const b=this.find("._anchor");b.forEach(P=>{P.setAttrs({width:S,height:S,offsetX:S/2,offsetY:S/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:S/2+_,offsetY:S/2+_,visible:y&&d.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:c/2,y:0,offsetY:S/2+_,visible:y&&d.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:c,y:0,offsetX:S/2-_,offsetY:S/2+_,visible:y&&d.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:f/2,offsetX:S/2+_,visible:y&&d.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:c,y:f/2,offsetX:S/2-_,visible:y&&d.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:f,offsetX:S/2+_,offsetY:S/2-_,visible:y&&d.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:c/2,y:f,offsetY:S/2-_,visible:y&&d.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:c,y:f,offsetX:S/2-_,offsetY:S/2-_,visible:y&&d.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:c/2,y:-this.rotateAnchorOffset()*Util_1$3.Util._sign(f)-_,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:c,height:f,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const $=this.anchorStyleFunc();$&&b.forEach(P=>{$(P)}),(a=this.getLayer())===null||a===void 0||a.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var a=this.findOne("."+this._movingAnchorName);a&&a.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),Group_1.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Node_1$f.Node.prototype.toObject.call(this)}clone(a){var s=Node_1$f.Node.prototype.clone.call(this,a);return s}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}Transformer$1.Transformer=Transformer;function validateAnchors(o){return o instanceof Array||Util_1$3.Util.warn("enabledAnchors value should be an array"),o instanceof Array&&o.forEach(function(a){ANCHORS_NAMES.indexOf(a)===-1&&Util_1$3.Util.warn("Unknown anchor name: "+a+". Available names are: "+ANCHORS_NAMES.join(", "))}),o||[]}Transformer.prototype.className="Transformer";(0,Global_2$1._registerNode)(Transformer);Factory_1$g.Factory.addGetterSetter(Transformer,"enabledAnchors",ANCHORS_NAMES,validateAnchors);Factory_1$g.Factory.addGetterSetter(Transformer,"flipEnabled",!0,(0,Validators_1$g.getBooleanValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"resizeEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"anchorSize",10,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"rotateEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"rotateLineVisible",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"rotationSnaps",[]);Factory_1$g.Factory.addGetterSetter(Transformer,"rotateAnchorOffset",50,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"rotateAnchorCursor","crosshair");Factory_1$g.Factory.addGetterSetter(Transformer,"rotationSnapTolerance",5,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStroke","rgb(0, 161, 255)");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStrokeWidth",1,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"anchorFill","white");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorCornerRadius",0,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderStroke","rgb(0, 161, 255)");Factory_1$g.Factory.addGetterSetter(Transformer,"borderStrokeWidth",1,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderDash");Factory_1$g.Factory.addGetterSetter(Transformer,"keepRatio",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"shiftBehavior","default");Factory_1$g.Factory.addGetterSetter(Transformer,"centeredScaling",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"ignoreStroke",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"padding",0,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"node");Factory_1$g.Factory.addGetterSetter(Transformer,"nodes");Factory_1$g.Factory.addGetterSetter(Transformer,"boundBoxFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorDragBoundFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStyleFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"shouldOverdrawWholeArea",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"useSingleNodeRotation",!0);Factory_1$g.Factory.backCompat(Transformer,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var Wedge$1={};Object.defineProperty(Wedge$1,"__esModule",{value:!0});Wedge$1.Wedge=void 0;const Factory_1$f=Factory,Shape_1=Shape,Global_1=Global,Validators_1$f=Validators,Global_2=Global;class Wedge extends Shape_1.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.radius(),0,Global_1.Konva.getAngle(this.angle()),this.clockwise()),a.lineTo(0,0),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius(a/2)}setHeight(a){this.radius(a/2)}}Wedge$1.Wedge=Wedge;Wedge.prototype.className="Wedge";Wedge.prototype._centroid=!0;Wedge.prototype._attrsAffectingSize=["radius"];(0,Global_2._registerNode)(Wedge);Factory_1$f.Factory.addGetterSetter(Wedge,"radius",0,(0,Validators_1$f.getNumberValidator)());Factory_1$f.Factory.addGetterSetter(Wedge,"angle",0,(0,Validators_1$f.getNumberValidator)());Factory_1$f.Factory.addGetterSetter(Wedge,"clockwise",!1);Factory_1$f.Factory.backCompat(Wedge,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var Blur$1={};Object.defineProperty(Blur$1,"__esModule",{value:!0});Blur$1.Blur=void 0;const Factory_1$e=Factory,Node_1$e=Node$1,Validators_1$e=Validators;function BlurStack(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var mul_table=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],shg_table=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function filterGaussBlurRGBA(o,a){var s=o.data,c=o.width,f=o.height,d,y,_,S,b,$,P,T,C,O,A,M,j,L,F,I,U,z,H,G,X,W,K,ie,ee=a+a+1,de=c-1,Z=f-1,Q=a+1,J=Q*(Q+1)/2,ne=new BlurStack,fe=null,le=ne,ae=null,ce=null,ge=mul_table[a],pe=shg_table[a];for(_=1;_>pe,K!==0?(K=255/K,s[$]=(T*ge>>pe)*K,s[$+1]=(C*ge>>pe)*K,s[$+2]=(O*ge>>pe)*K):s[$]=s[$+1]=s[$+2]=0,T-=M,C-=j,O-=L,A-=F,M-=ae.r,j-=ae.g,L-=ae.b,F-=ae.a,S=P+((S=d+a+1)>pe,K>0?(K=255/K,s[S]=(T*ge>>pe)*K,s[S+1]=(C*ge>>pe)*K,s[S+2]=(O*ge>>pe)*K):s[S]=s[S+1]=s[S+2]=0,T-=M,C-=j,O-=L,A-=F,M-=ae.r,j-=ae.g,L-=ae.b,F-=ae.a,S=d+((S=y+Q)0&&filterGaussBlurRGBA(a,s)};Blur$1.Blur=Blur;Factory_1$e.Factory.addGetterSetter(Node_1$e.Node,"blurRadius",0,(0,Validators_1$e.getNumberValidator)(),Factory_1$e.Factory.afterSetFilter);var Brighten$1={};Object.defineProperty(Brighten$1,"__esModule",{value:!0});Brighten$1.Brighten=void 0;const Factory_1$d=Factory,Node_1$d=Node$1,Validators_1$d=Validators,Brighten=function(o){var a=this.brightness()*255,s=o.data,c=s.length,f;for(f=0;f255?255:f,d=d<0?0:d>255?255:d,y=y<0?0:y>255?255:y,s[_]=f,s[_+1]=d,s[_+2]=y};Contrast$1.Contrast=Contrast;Factory_1$c.Factory.addGetterSetter(Node_1$c.Node,"contrast",0,(0,Validators_1$c.getNumberValidator)(),Factory_1$c.Factory.afterSetFilter);var Emboss$1={};Object.defineProperty(Emboss$1,"__esModule",{value:!0});Emboss$1.Emboss=void 0;const Factory_1$b=Factory,Node_1$b=Node$1,Util_1$2=Util,Validators_1$b=Validators,Emboss=function(o){var a=this.embossStrength()*10,s=this.embossWhiteLevel()*255,c=this.embossDirection(),f=this.embossBlend(),d=0,y=0,_=o.data,S=o.width,b=o.height,$=S*4,P=b;switch(c){case"top-left":d=-1,y=-1;break;case"top":d=-1,y=0;break;case"top-right":d=-1,y=1;break;case"right":d=0,y=1;break;case"bottom-right":d=1,y=1;break;case"bottom":d=1,y=0;break;case"bottom-left":d=1,y=-1;break;case"left":d=0,y=-1;break;default:Util_1$2.Util.error("Unknown emboss direction: "+c)}do{var T=(P-1)*$,C=d;P+C<1&&(C=0),P+C>b&&(C=0);var O=(P-1+C)*S*4,A=S;do{var M=T+(A-1)*4,j=y;A+j<1&&(j=0),A+j>S&&(j=0);var L=O+(A-1+j)*4,F=_[M]-_[L],I=_[M+1]-_[L+1],U=_[M+2]-_[L+2],z=F,H=z>0?z:-z,G=I>0?I:-I,X=U>0?U:-U;if(G>H&&(z=I),X>H&&(z=U),z*=a,f){var W=_[M]+z,K=_[M+1]+z,ie=_[M+2]+z;_[M]=W>255?255:W<0?0:W,_[M+1]=K>255?255:K<0?0:K,_[M+2]=ie>255?255:ie<0?0:ie}else{var ee=s-z;ee<0?ee=0:ee>255&&(ee=255),_[M]=_[M+1]=_[M+2]=ee}}while(--A)}while(--P)};Emboss$1.Emboss=Emboss;Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossStrength",.5,(0,Validators_1$b.getNumberValidator)(),Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossWhiteLevel",.5,(0,Validators_1$b.getNumberValidator)(),Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossDirection","top-left",null,Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossBlend",!1,null,Factory_1$b.Factory.afterSetFilter);var Enhance$1={};Object.defineProperty(Enhance$1,"__esModule",{value:!0});Enhance$1.Enhance=void 0;const Factory_1$a=Factory,Node_1$a=Node$1,Validators_1$a=Validators;function remap(o,a,s,c,f){var d=s-a,y=f-c,_;return d===0?c+y/2:y===0?c:(_=(o-a)/d,_=y*_+c,_)}const Enhance=function(o){var a=o.data,s=a.length,c=a[0],f=c,d,y=a[1],_=y,S,b=a[2],$=b,P,T,C=this.enhance();if(C!==0){for(T=0;Tf&&(f=d),S=a[T+1],S_&&(_=S),P=a[T+2],P$&&($=P);f===c&&(f=255,c=0),_===y&&(_=255,y=0),$===b&&($=255,b=0);var O,A,M,j,L,F,I,U,z;for(C>0?(A=f+C*(255-f),M=c-C*(c-0),L=_+C*(255-_),F=y-C*(y-0),U=$+C*(255-$),z=b-C*(b-0)):(O=(f+c)*.5,A=f+C*(f-O),M=c+C*(c-O),j=(_+y)*.5,L=_+C*(_-j),F=y+C*(y-j),I=($+b)*.5,U=$+C*($-I),z=b+C*(b-I)),T=0;Tj?M:j;var L=y,F=d,I,U,z=360/F*Math.PI/180,H,G;for(U=0;UF?L:F;var I=y,U=d,z,H,G=s.polarRotation||0,X,W;for($=0;$a&&(I=F,U=0,z=-1),f=0;f=0&&C=0&&O=0&&C=0&&O=255*4?255:0}return y}function smoothEdgeMask(o,a,s){for(var c=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],f=Math.round(Math.sqrt(c.length)),d=Math.floor(f/2),y=[],_=0;_=0&&C=0&&O=s))for(d=A;d=c||(y=(s*d+f)*4,_+=I[y+0],S+=I[y+1],b+=I[y+2],$+=I[y+3],F+=1);for(_=_/F,S=S/F,b=b/F,$=$/F,f=C;f=s))for(d=A;d=c||(y=(s*d+f)*4,I[y+0]=_,I[y+1]=S,I[y+2]=b,I[y+3]=$)}};Pixelate$1.Pixelate=Pixelate;Factory_1$4.Factory.addGetterSetter(Node_1$4.Node,"pixelSize",8,(0,Validators_1$4.getNumberValidator)(),Factory_1$4.Factory.afterSetFilter);var Posterize$1={};Object.defineProperty(Posterize$1,"__esModule",{value:!0});Posterize$1.Posterize=void 0;const Factory_1$3=Factory,Node_1$3=Node$1,Validators_1$3=Validators,Posterize=function(o){var a=Math.round(this.levels()*254)+1,s=o.data,c=s.length,f=255/a,d;for(d=0;d255?255:o<0?0:Math.round(o)});Factory_1$2.Factory.addGetterSetter(Node_1$2.Node,"green",0,function(o){return this._filterUpToDate=!1,o>255?255:o<0?0:Math.round(o)});Factory_1$2.Factory.addGetterSetter(Node_1$2.Node,"blue",0,Validators_1$2.RGBComponent,Factory_1$2.Factory.afterSetFilter);var RGBA$1={};Object.defineProperty(RGBA$1,"__esModule",{value:!0});RGBA$1.RGBA=void 0;const Factory_1$1=Factory,Node_1$1=Node$1,Validators_1$1=Validators,RGBA=function(o){var a=o.data,s=a.length,c=this.red(),f=this.green(),d=this.blue(),y=this.alpha(),_,S;for(_=0;_255?255:o<0?0:Math.round(o)});Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"green",0,function(o){return this._filterUpToDate=!1,o>255?255:o<0?0:Math.round(o)});Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"blue",0,Validators_1$1.RGBComponent,Factory_1$1.Factory.afterSetFilter);Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"alpha",1,function(o){return this._filterUpToDate=!1,o>1?1:o<0?0:o});var Sepia$1={};Object.defineProperty(Sepia$1,"__esModule",{value:!0});Sepia$1.Sepia=void 0;const Sepia=function(o){var a=o.data,s=a.length,c,f,d,y;for(c=0;c127&&(b=255-b),$>127&&($=255-$),P>127&&(P=255-P),a[S]=b,a[S+1]=$,a[S+2]=P}while(--_)}while(--d)};Solarize$1.Solarize=Solarize;var Threshold$1={};Object.defineProperty(Threshold$1,"__esModule",{value:!0});Threshold$1.Threshold=void 0;const Factory_1=Factory,Node_1=Node$1,Validators_1=Validators,Threshold=function(o){var a=this.threshold()*255,s=o.data,c=s.length,f;for(f=0;fhe||D[te]!==V[he]){var ve=` -`+D[te].replace(" at new "," at ");return x.displayName&&ve.includes("")&&(ve=ve.replace("",x.displayName)),ve}while(1<=te&&0<=he);break}}}finally{Ui=!1,Error.prepareStackTrace=R}return(x=x?x.displayName||x.name:"")?Pn(x):""}var zo=Object.prototype.hasOwnProperty,Bi=[],Xr=-1;function Er(x){return{current:x}}function rt(x){0>Xr||(x.current=Bi[Xr],Bi[Xr]=null,Xr--)}function tt(x,E){Xr++,Bi[Xr]=x.current,x.current=E}var $r={},gt=Er($r),wt=Er(!1),Ur=$r;function Qr(x,E){var R=x.type.contextTypes;if(!R)return $r;var N=x.stateNode;if(N&&N.__reactInternalMemoizedUnmaskedChildContext===E)return N.__reactInternalMemoizedMaskedChildContext;var D={},V;for(V in R)D[V]=E[V];return N&&(x=x.stateNode,x.__reactInternalMemoizedUnmaskedChildContext=E,x.__reactInternalMemoizedMaskedChildContext=D),D}function Ot(x){return x=x.childContextTypes,x!=null}function Zn(){rt(wt),rt(gt)}function Ia(x,E,R){if(gt.current!==$r)throw Error(y(168));tt(gt,E),tt(wt,R)}function La(x,E,R){var N=x.stateNode;if(E=E.childContextTypes,typeof N.getChildContext!="function")return R;N=N.getChildContext();for(var D in N)if(!(D in E))throw Error(y(108,G(x)||"Unknown",D));return d({},R,N)}function ei(x){return x=(x=x.stateNode)&&x.__reactInternalMemoizedMergedChildContext||$r,Ur=gt.current,tt(gt,x),tt(wt,wt.current),!0}function Hi(x,E,R){var N=x.stateNode;if(!N)throw Error(y(169));R?(x=La(x,E,Ur),N.__reactInternalMemoizedMergedChildContext=x,rt(wt),rt(gt),tt(gt,x)):rt(wt),tt(wt,R)}var Yt=Math.clz32?Math.clz32:Ho,Bo=Math.log,Na=Math.LN2;function Ho(x){return x>>>=0,x===0?32:31-(Bo(x)/Na|0)|0}var ti=64,Tn=4194304;function On(x){switch(x&-x){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 x&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return x&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return x}}function ri(x,E){var R=x.pendingLanes;if(R===0)return 0;var N=0,D=x.suspendedLanes,V=x.pingedLanes,te=R&268435455;if(te!==0){var he=te&~D;he!==0?N=On(he):(V&=te,V!==0&&(N=On(V)))}else te=R&~D,te!==0?N=On(te):V!==0&&(N=On(V));if(N===0)return 0;if(E!==0&&E!==N&&!(E&D)&&(D=N&-N,V=E&-E,D>=V||D===16&&(V&4194240)!==0))return E;if(N&4&&(N|=R&16),E=x.entangledLanes,E!==0)for(x=x.entanglements,E&=N;0R;R++)E.push(x);return E}function Cn(x,E,R){x.pendingLanes|=E,E!==536870912&&(x.suspendedLanes=0,x.pingedLanes=0),x=x.eventTimes,E=31-Yt(E),x[E]=R}function Wo(x,E){var R=x.pendingLanes&~E;x.pendingLanes=E,x.suspendedLanes=0,x.pingedLanes=0,x.expiredLanes&=E,x.mutableReadLanes&=E,x.entangledLanes&=E,E=x.entanglements;var N=x.eventTimes;for(x=x.expirationTimes;0>=te,D-=te,gr=1<<32-Yt(E)+D|R<Ze?(St=Ge,Ge=null):St=Ge.sibling;var et=Te(ye,Ge,be[Ze],Oe);if(et===null){Ge===null&&(Ge=St);break}x&&Ge&&et.alternate===null&&E(ye,Ge),me=V(et,me,Ze),qe===null?ke=et:qe.sibling=et,qe=et,Ge=St}if(Ze===be.length)return R(ye,Ge),nt&&Pr(ye,Ze),ke;if(Ge===null){for(;ZeZe?(St=Ge,Ge=null):St=Ge.sibling;var cn=Te(ye,Ge,et.value,Oe);if(cn===null){Ge===null&&(Ge=St);break}x&&Ge&&cn.alternate===null&&E(ye,Ge),me=V(cn,me,Ze),qe===null?ke=cn:qe.sibling=cn,qe=cn,Ge=St}if(et.done)return R(ye,Ge),nt&&Pr(ye,Ze),ke;if(Ge===null){for(;!et.done;Ze++,et=be.next())et=He(ye,et.value,Oe),et!==null&&(me=V(et,me,Ze),qe===null?ke=et:qe.sibling=et,qe=et);return nt&&Pr(ye,Ze),ke}for(Ge=N(ye,Ge);!et.done;Ze++,et=be.next())et=at(Ge,ye,Ze,et.value,Oe),et!==null&&(x&&et.alternate!==null&&Ge.delete(et.key===null?Ze:et.key),me=V(et,me,Ze),qe===null?ke=et:qe.sibling=et,qe=et);return x&&Ge.forEach(function(Ku){return E(ye,Ku)}),nt&&Pr(ye,Ze),ke}function Vr(ye,me,be,Oe){if(typeof be=="object"&&be!==null&&be.type===$&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case S:e:{for(var ke=be.key,qe=me;qe!==null;){if(qe.key===ke){if(ke=be.type,ke===$){if(qe.tag===7){R(ye,qe.sibling),me=D(qe,be.props.children),me.return=ye,ye=me;break e}}else if(qe.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===M&&Re(ke)===qe.type){R(ye,qe.sibling),me=D(qe,be.props),me.ref=Y(ye,qe,be),me.return=ye,ye=me;break e}R(ye,qe);break}else E(ye,qe);qe=qe.sibling}be.type===$?(me=zn(be.props.children,ye.mode,Oe,be.key),me.return=ye,ye=me):(Oe=So(be.type,be.key,be.props,null,ye.mode,Oe),Oe.ref=Y(ye,me,be),Oe.return=ye,ye=Oe)}return te(ye);case b:e:{for(qe=be.key;me!==null;){if(me.key===qe)if(me.tag===4&&me.stateNode.containerInfo===be.containerInfo&&me.stateNode.implementation===be.implementation){R(ye,me.sibling),me=D(me,be.children||[]),me.return=ye,ye=me;break e}else{R(ye,me);break}else E(ye,me);me=me.sibling}me=Gs(be,ye.mode,Oe),me.return=ye,ye=me}return te(ye);case M:return qe=be._init,Vr(ye,me,qe(be._payload),Oe)}if(Z(be))return it(ye,me,be,Oe);if(z(be))return Kt(ye,me,be,Oe);Se(ye,be)}return typeof be=="string"&&be!==""||typeof be=="number"?(be=""+be,me!==null&&me.tag===6?(R(ye,me.sibling),me=D(me,be),me.return=ye,ye=me):(R(ye,me),me=Hs(be,ye.mode,Oe),me.return=ye,ye=me),te(ye)):R(ye,me)}return Vr}var jt=Ke(!0),nn=Ke(!1),oa={},lr=Er(oa),sa=Er(oa),mi=Er(oa);function Cr(x){if(x===oa)throw Error(y(174));return x}function Zo(x,E){tt(mi,E),tt(sa,x),tt(lr,oa),x=J(E),rt(lr),tt(lr,x)}function yi(){rt(lr),rt(sa),rt(mi)}function Ys(x){var E=Cr(mi.current),R=Cr(lr.current);E=ne(R,x.type,E),R!==E&&(tt(sa,x),tt(lr,E))}function es(x){sa.current===x&&(rt(lr),rt(sa))}var lt=Er(0);function Ka(x){for(var E=x;E!==null;){if(E.tag===13){var R=E.memoizedState;if(R!==null&&(R=R.dehydrated,R===null||Ca(R)||Qn(R)))return E}else if(E.tag===19&&E.memoizedProps.revealOrder!==void 0){if(E.flags&128)return E}else if(E.child!==null){E.child.return=E,E=E.child;continue}if(E===x)break;for(;E.sibling===null;){if(E.return===null||E.return===x)return null;E=E.return}E.sibling.return=E.return,E=E.sibling}return null}var rs=[];function ns(){for(var x=0;xR?R:4,x(!0);var N=as.transition;as.transition={};try{x(!1),E()}finally{Qe=R,as.transition=N}}function hl(){return ur().memoizedState}function Su(x,E,R){var N=sn(x);if(R={lane:N,action:R,hasEagerState:!1,eagerState:null,next:null},pl(x))gl(E,R);else if(R=Wa(x,E,R,N),R!==null){var D=Mt();cr(R,x,N,D),ml(R,E,N)}}function xu(x,E,R){var N=sn(x),D={lane:N,action:R,hasEagerState:!1,eagerState:null,next:null};if(pl(x))gl(E,D);else{var V=x.alternate;if(x.lanes===0&&(V===null||V.lanes===0)&&(V=E.lastRenderedReducer,V!==null))try{var te=E.lastRenderedState,he=V(te,R);if(D.hasEagerState=!0,D.eagerState=he,Xt(he,te)){var ve=E.interleaved;ve===null?(D.next=D,hi(E)):(D.next=ve.next,ve.next=D),E.interleaved=D;return}}catch(Ee){}finally{}R=Wa(x,E,D,N),R!==null&&(D=Mt(),cr(R,x,N,D),ml(R,E,N))}}function pl(x){var E=x.alternate;return x===ut||E!==null&&E===ut}function gl(x,E){la=Xa=!0;var R=x.pending;R===null?E.next=E:(E.next=R.next,R.next=E),x.pending=E}function ml(x,E,R){if(R&4194240){var N=E.lanes;N&=x.pendingLanes,R|=N,E.lanes=R,Wi(x,R)}}var Za={readContext:kt,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useInsertionEffect:Ct,useLayoutEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useMutableSource:Ct,useSyncExternalStore:Ct,useId:Ct,unstable_isNewReconciler:!1},Eu={readContext:kt,useCallback:function(x,E){return Rr().memoizedState=[x,E===void 0?null:E],x},useContext:kt,useEffect:al,useImperativeHandle:function(x,E,R){return R=R!=null?R.concat([x]):null,Qa(4194308,4,ll.bind(null,E,x),R)},useLayoutEffect:function(x,E){return Qa(4194308,4,x,E)},useInsertionEffect:function(x,E){return Qa(4,2,x,E)},useMemo:function(x,E){var R=Rr();return E=E===void 0?null:E,x=x(),R.memoizedState=[x,E],x},useReducer:function(x,E,R){var N=Rr();return E=R!==void 0?R(E):E,N.memoizedState=N.baseState=E,x={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:x,lastRenderedState:E},N.queue=x,x=x.dispatch=Su.bind(null,ut,x),[N.memoizedState,x]},useRef:function(x){var E=Rr();return x={current:x},E.memoizedState=x},useState:nl,useDebugValue:ps,useDeferredValue:function(x){return Rr().memoizedState=x},useTransition:function(){var x=nl(!1),E=x[0];return x=bu.bind(null,x[1]),Rr().memoizedState=x,[E,x]},useMutableSource:function(){},useSyncExternalStore:function(x,E,R){var N=ut,D=Rr();if(nt){if(R===void 0)throw Error(y(407));R=R()}else{if(R=E(),bt===null)throw Error(y(349));Nn&30||Js(N,E,R)}D.memoizedState=R;var V={value:R,getSnapshot:E};return D.queue=V,al(el.bind(null,N,V,x),[x]),N.flags|=2048,fa(9,Zs.bind(null,N,V,R,E),void 0,null),R},useId:function(){var x=Rr(),E=bt.identifierPrefix;if(nt){var R=mr,N=gr;R=(N&~(1<<32-Yt(N)-1)).toString(32)+R,E=":"+E+"R"+R,R=ua++,0")&&(ve=ve.replace("",x.displayName)),ve}while(1<=te&&0<=he);break}}}finally{Ui=!1,Error.prepareStackTrace=R}return(x=x?x.displayName||x.name:"")?Pn(x):""}var zo=Object.prototype.hasOwnProperty,Bi=[],Xr=-1;function Er(x){return{current:x}}function rt(x){0>Xr||(x.current=Bi[Xr],Bi[Xr]=null,Xr--)}function tt(x,E){Xr++,Bi[Xr]=x.current,x.current=E}var $r={},gt=Er($r),wt=Er(!1),Ur=$r;function Qr(x,E){var R=x.type.contextTypes;if(!R)return $r;var N=x.stateNode;if(N&&N.__reactInternalMemoizedUnmaskedChildContext===E)return N.__reactInternalMemoizedMaskedChildContext;var D={},V;for(V in R)D[V]=E[V];return N&&(x=x.stateNode,x.__reactInternalMemoizedUnmaskedChildContext=E,x.__reactInternalMemoizedMaskedChildContext=D),D}function Ot(x){return x=x.childContextTypes,x!=null}function Zn(){rt(wt),rt(gt)}function Ia(x,E,R){if(gt.current!==$r)throw Error(y(168));tt(gt,E),tt(wt,R)}function La(x,E,R){var N=x.stateNode;if(E=E.childContextTypes,typeof N.getChildContext!="function")return R;N=N.getChildContext();for(var D in N)if(!(D in E))throw Error(y(108,G(x)||"Unknown",D));return d({},R,N)}function ei(x){return x=(x=x.stateNode)&&x.__reactInternalMemoizedMergedChildContext||$r,Ur=gt.current,tt(gt,x),tt(wt,wt.current),!0}function Hi(x,E,R){var N=x.stateNode;if(!N)throw Error(y(169));R?(x=La(x,E,Ur),N.__reactInternalMemoizedMergedChildContext=x,rt(wt),rt(gt),tt(gt,x)):rt(wt),tt(wt,R)}var Yt=Math.clz32?Math.clz32:Ho,Bo=Math.log,ka=Math.LN2;function Ho(x){return x>>>=0,x===0?32:31-(Bo(x)/ka|0)|0}var ti=64,Tn=4194304;function On(x){switch(x&-x){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 x&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return x&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return x}}function ri(x,E){var R=x.pendingLanes;if(R===0)return 0;var N=0,D=x.suspendedLanes,V=x.pingedLanes,te=R&268435455;if(te!==0){var he=te&~D;he!==0?N=On(he):(V&=te,V!==0&&(N=On(V)))}else te=R&~D,te!==0?N=On(te):V!==0&&(N=On(V));if(N===0)return 0;if(E!==0&&E!==N&&!(E&D)&&(D=N&-N,V=E&-E,D>=V||D===16&&(V&4194240)!==0))return E;if(N&4&&(N|=R&16),E=x.entangledLanes,E!==0)for(x=x.entanglements,E&=N;0R;R++)E.push(x);return E}function Cn(x,E,R){x.pendingLanes|=E,E!==536870912&&(x.suspendedLanes=0,x.pingedLanes=0),x=x.eventTimes,E=31-Yt(E),x[E]=R}function Wo(x,E){var R=x.pendingLanes&~E;x.pendingLanes=E,x.suspendedLanes=0,x.pingedLanes=0,x.expiredLanes&=E,x.mutableReadLanes&=E,x.entangledLanes&=E,E=x.entanglements;var N=x.eventTimes;for(x=x.expirationTimes;0>=te,D-=te,gr=1<<32-Yt(E)+D|R<Ze?(St=Ge,Ge=null):St=Ge.sibling;var et=Te(ye,Ge,be[Ze],Oe);if(et===null){Ge===null&&(Ge=St);break}x&&Ge&&et.alternate===null&&E(ye,Ge),me=V(et,me,Ze),qe===null?Ne=et:qe.sibling=et,qe=et,Ge=St}if(Ze===be.length)return R(ye,Ge),nt&&Pr(ye,Ze),Ne;if(Ge===null){for(;ZeZe?(St=Ge,Ge=null):St=Ge.sibling;var cn=Te(ye,Ge,et.value,Oe);if(cn===null){Ge===null&&(Ge=St);break}x&&Ge&&cn.alternate===null&&E(ye,Ge),me=V(cn,me,Ze),qe===null?Ne=cn:qe.sibling=cn,qe=cn,Ge=St}if(et.done)return R(ye,Ge),nt&&Pr(ye,Ze),Ne;if(Ge===null){for(;!et.done;Ze++,et=be.next())et=He(ye,et.value,Oe),et!==null&&(me=V(et,me,Ze),qe===null?Ne=et:qe.sibling=et,qe=et);return nt&&Pr(ye,Ze),Ne}for(Ge=N(ye,Ge);!et.done;Ze++,et=be.next())et=at(Ge,ye,Ze,et.value,Oe),et!==null&&(x&&et.alternate!==null&&Ge.delete(et.key===null?Ze:et.key),me=V(et,me,Ze),qe===null?Ne=et:qe.sibling=et,qe=et);return x&&Ge.forEach(function(Ku){return E(ye,Ku)}),nt&&Pr(ye,Ze),Ne}function Vr(ye,me,be,Oe){if(typeof be=="object"&&be!==null&&be.type===$&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case S:e:{for(var Ne=be.key,qe=me;qe!==null;){if(qe.key===Ne){if(Ne=be.type,Ne===$){if(qe.tag===7){R(ye,qe.sibling),me=D(qe,be.props.children),me.return=ye,ye=me;break e}}else if(qe.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===F&&Re(Ne)===qe.type){R(ye,qe.sibling),me=D(qe,be.props),me.ref=Y(ye,qe,be),me.return=ye,ye=me;break e}R(ye,qe);break}else E(ye,qe);qe=qe.sibling}be.type===$?(me=zn(be.props.children,ye.mode,Oe,be.key),me.return=ye,ye=me):(Oe=So(be.type,be.key,be.props,null,ye.mode,Oe),Oe.ref=Y(ye,me,be),Oe.return=ye,ye=Oe)}return te(ye);case b:e:{for(qe=be.key;me!==null;){if(me.key===qe)if(me.tag===4&&me.stateNode.containerInfo===be.containerInfo&&me.stateNode.implementation===be.implementation){R(ye,me.sibling),me=D(me,be.children||[]),me.return=ye,ye=me;break e}else{R(ye,me);break}else E(ye,me);me=me.sibling}me=Gs(be,ye.mode,Oe),me.return=ye,ye=me}return te(ye);case F:return qe=be._init,Vr(ye,me,qe(be._payload),Oe)}if(Z(be))return it(ye,me,be,Oe);if(z(be))return Kt(ye,me,be,Oe);Se(ye,be)}return typeof be=="string"&&be!==""||typeof be=="number"?(be=""+be,me!==null&&me.tag===6?(R(ye,me.sibling),me=D(me,be),me.return=ye,ye=me):(R(ye,me),me=Hs(be,ye.mode,Oe),me.return=ye,ye=me),te(ye)):R(ye,me)}return Vr}var jt=Ke(!0),nn=Ke(!1),oa={},lr=Er(oa),sa=Er(oa),mi=Er(oa);function Cr(x){if(x===oa)throw Error(y(174));return x}function Zo(x,E){tt(mi,E),tt(sa,x),tt(lr,oa),x=J(E),rt(lr),tt(lr,x)}function yi(){rt(lr),rt(sa),rt(mi)}function Ys(x){var E=Cr(mi.current),R=Cr(lr.current);E=ne(R,x.type,E),R!==E&&(tt(sa,x),tt(lr,E))}function es(x){sa.current===x&&(rt(lr),rt(sa))}var lt=Er(0);function Ka(x){for(var E=x;E!==null;){if(E.tag===13){var R=E.memoizedState;if(R!==null&&(R=R.dehydrated,R===null||Ca(R)||Qn(R)))return E}else if(E.tag===19&&E.memoizedProps.revealOrder!==void 0){if(E.flags&128)return E}else if(E.child!==null){E.child.return=E,E=E.child;continue}if(E===x)break;for(;E.sibling===null;){if(E.return===null||E.return===x)return null;E=E.return}E.sibling.return=E.return,E=E.sibling}return null}var rs=[];function ns(){for(var x=0;xR?R:4,x(!0);var N=as.transition;as.transition={};try{x(!1),E()}finally{Qe=R,as.transition=N}}function hl(){return ur().memoizedState}function Su(x,E,R){var N=sn(x);if(R={lane:N,action:R,hasEagerState:!1,eagerState:null,next:null},pl(x))gl(E,R);else if(R=Wa(x,E,R,N),R!==null){var D=Ft();cr(R,x,N,D),ml(R,E,N)}}function xu(x,E,R){var N=sn(x),D={lane:N,action:R,hasEagerState:!1,eagerState:null,next:null};if(pl(x))gl(E,D);else{var V=x.alternate;if(x.lanes===0&&(V===null||V.lanes===0)&&(V=E.lastRenderedReducer,V!==null))try{var te=E.lastRenderedState,he=V(te,R);if(D.hasEagerState=!0,D.eagerState=he,Xt(he,te)){var ve=E.interleaved;ve===null?(D.next=D,hi(E)):(D.next=ve.next,ve.next=D),E.interleaved=D;return}}catch(Ee){}finally{}R=Wa(x,E,D,N),R!==null&&(D=Ft(),cr(R,x,N,D),ml(R,E,N))}}function pl(x){var E=x.alternate;return x===ut||E!==null&&E===ut}function gl(x,E){la=Xa=!0;var R=x.pending;R===null?E.next=E:(E.next=R.next,R.next=E),x.pending=E}function ml(x,E,R){if(R&4194240){var N=E.lanes;N&=x.pendingLanes,R|=N,E.lanes=R,Wi(x,R)}}var Za={readContext:Nt,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useInsertionEffect:Ct,useLayoutEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useMutableSource:Ct,useSyncExternalStore:Ct,useId:Ct,unstable_isNewReconciler:!1},Eu={readContext:Nt,useCallback:function(x,E){return Rr().memoizedState=[x,E===void 0?null:E],x},useContext:Nt,useEffect:al,useImperativeHandle:function(x,E,R){return R=R!=null?R.concat([x]):null,Qa(4194308,4,ll.bind(null,E,x),R)},useLayoutEffect:function(x,E){return Qa(4194308,4,x,E)},useInsertionEffect:function(x,E){return Qa(4,2,x,E)},useMemo:function(x,E){var R=Rr();return E=E===void 0?null:E,x=x(),R.memoizedState=[x,E],x},useReducer:function(x,E,R){var N=Rr();return E=R!==void 0?R(E):E,N.memoizedState=N.baseState=E,x={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:x,lastRenderedState:E},N.queue=x,x=x.dispatch=Su.bind(null,ut,x),[N.memoizedState,x]},useRef:function(x){var E=Rr();return x={current:x},E.memoizedState=x},useState:nl,useDebugValue:ps,useDeferredValue:function(x){return Rr().memoizedState=x},useTransition:function(){var x=nl(!1),E=x[0];return x=bu.bind(null,x[1]),Rr().memoizedState=x,[E,x]},useMutableSource:function(){},useSyncExternalStore:function(x,E,R){var N=ut,D=Rr();if(nt){if(R===void 0)throw Error(y(407));R=R()}else{if(R=E(),bt===null)throw Error(y(349));kn&30||Js(N,E,R)}D.memoizedState=R;var V={value:R,getSnapshot:E};return D.queue=V,al(el.bind(null,N,V,x),[x]),N.flags|=2048,fa(9,Zs.bind(null,N,V,R,E),void 0,null),R},useId:function(){var x=Rr(),E=bt.identifierPrefix;if(nt){var R=mr,N=gr;R=(N&~(1<<32-Yt(N)-1)).toString(32)+R,E=":"+E+"R"+R,R=ua++,0Ls&&(E.flags|=128,N=!0,pa(D,!1),E.lanes=4194304)}else{if(!N)if(x=Ka(V),x!==null){if(E.flags|=128,N=!0,x=x.updateQueue,x!==null&&(E.updateQueue=x,E.flags|=4),pa(D,!0),D.tail===null&&D.tailMode==="hidden"&&!V.alternate&&!nt)return Rt(E),null}else 2*dt()-D.renderingStartTime>Ls&&R!==1073741824&&(E.flags|=128,N=!0,pa(D,!1),E.lanes=4194304);D.isBackwards?(V.sibling=E.child,E.child=V):(x=D.last,x!==null?x.sibling=V:E.child=V,D.last=V)}return D.tail!==null?(E=D.tail,D.rendering=E,D.tail=E.sibling,D.renderingStartTime=dt(),E.sibling=null,x=lt.current,tt(lt,N?x&1|2:x&1),E):(Rt(E),null);case 22:case 23:return Us(),R=E.memoizedState!==null,x!==null&&x.memoizedState!==null!==R&&(E.flags|=8192),R&&E.mode&1?Zt&1073741824&&(Rt(E),je&&E.subtreeFlags&6&&(E.flags|=8192)):Rt(E),null;case 24:return null;case 25:return null}throw Error(y(156,E.tag))}function Au(x,E){switch(oi(E),E.tag){case 1:return Ot(E.type)&&Zn(),x=E.flags,x&65536?(E.flags=x&-65537|128,E):null;case 3:return yi(),rt(wt),rt(gt),ns(),x=E.flags,x&65536&&!(x&128)?(E.flags=x&-65537|128,E):null;case 5:return es(E),null;case 13:if(rt(lt),x=E.memoizedState,x!==null&&x.dehydrated!==null){if(E.alternate===null)throw Error(y(340));Zr()}return x=E.flags,x&65536?(E.flags=x&-65537|128,E):null;case 19:return rt(lt),null;case 4:return yi(),null;case 10:return ia(E.type._context),null;case 22:case 23:return Us(),null;case 24:return null;default:return null}}var ao=!1,At=!1,Mu=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function _i(x,E){var R=x.ref;if(R!==null)if(typeof R=="function")try{R(null)}catch(N){ot(x,E,N)}else R.current=null}function Es(x,E,R){try{R()}catch(N){ot(x,E,N)}}var Ll=!1;function Fu(x,E){for(fe(x.containerInfo),Ae=E;Ae!==null;)if(x=Ae,E=x.child,(x.subtreeFlags&1028)!==0&&E!==null)E.return=x,Ae=E;else for(;Ae!==null;){x=Ae;try{var R=x.alternate;if(x.flags&1024)switch(x.tag){case 0:case 11:case 15:break;case 1:if(R!==null){var N=R.memoizedProps,D=R.memoizedState,V=x.stateNode,te=V.getSnapshotBeforeUpdate(x.elementType===x.type?N:Gt(x.type,N),D);V.__reactInternalSnapshotBeforeUpdate=te}break;case 3:je&&Pa(x.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(he){ot(x,x.return,he)}if(E=x.sibling,E!==null){E.return=x.return,Ae=E;break}Ae=x.return}return R=Ll,Ll=!1,R}function ga(x,E,R){var N=E.updateQueue;if(N=N!==null?N.lastEffect:null,N!==null){var D=N=N.next;do{if((D.tag&x)===x){var V=D.destroy;D.destroy=void 0,V!==void 0&&Es(E,R,V)}D=D.next}while(D!==N)}}function oo(x,E){if(E=E.updateQueue,E=E!==null?E.lastEffect:null,E!==null){var R=E=E.next;do{if((R.tag&x)===x){var N=R.create;R.destroy=N()}R=R.next}while(R!==E)}}function $s(x){var E=x.ref;if(E!==null){var R=x.stateNode;switch(x.tag){case 5:x=Q(R);break;default:x=R}typeof E=="function"?E(x):E.current=x}}function Nl(x){var E=x.alternate;E!==null&&(x.alternate=null,Nl(E)),x.child=null,x.deletions=null,x.sibling=null,x.tag===5&&(E=x.stateNode,E!==null&&It(E)),x.stateNode=null,x.return=null,x.dependencies=null,x.memoizedProps=null,x.memoizedState=null,x.pendingProps=null,x.stateNode=null,x.updateQueue=null}function kl(x){return x.tag===5||x.tag===3||x.tag===4}function jl(x){e:for(;;){for(;x.sibling===null;){if(x.return===null||kl(x.return))return null;x=x.return}for(x.sibling.return=x.return,x=x.sibling;x.tag!==5&&x.tag!==6&&x.tag!==18;){if(x.flags&2||x.child===null||x.tag===4)continue e;x.child.return=x,x=x.child}if(!(x.flags&2))return x.stateNode}}function ws(x,E,R){var N=x.tag;if(N===5||N===6)x=x.stateNode,E?Ue(R,x,E):xn(R,x);else if(N!==4&&(x=x.child,x!==null))for(ws(x,E,R),x=x.sibling;x!==null;)ws(x,E,R),x=x.sibling}function Ps(x,E,R){var N=x.tag;if(N===5||N===6)x=x.stateNode,E?ct(R,x,E):Sn(R,x);else if(N!==4&&(x=x.child,x!==null))for(Ps(x,E,R),x=x.sibling;x!==null;)Ps(x,E,R),x=x.sibling}var Pt=null,br=!1;function Mr(x,E,R){for(R=R.child;R!==null;)Ts(x,E,R),R=R.sibling}function Ts(x,E,R){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(ni,R)}catch(he){}switch(R.tag){case 5:At||_i(R,E);case 6:if(je){var N=Pt,D=br;Pt=null,Mr(x,E,R),Pt=N,br=D,Pt!==null&&(br?Be(Pt,R.stateNode):De(Pt,R.stateNode))}else Mr(x,E,R);break;case 18:je&&Pt!==null&&(br?Ma(Pt,R.stateNode):Aa(Pt,R.stateNode));break;case 4:je?(N=Pt,D=br,Pt=R.stateNode.containerInfo,br=!0,Mr(x,E,R),Pt=N,br=D):(ze&&(N=R.stateNode.containerInfo,D=Yn(N),Xn(N,D)),Mr(x,E,R));break;case 0:case 11:case 14:case 15:if(!At&&(N=R.updateQueue,N!==null&&(N=N.lastEffect,N!==null))){D=N=N.next;do{var V=D,te=V.destroy;V=V.tag,te!==void 0&&(V&2||V&4)&&Es(R,E,te),D=D.next}while(D!==N)}Mr(x,E,R);break;case 1:if(!At&&(_i(R,E),N=R.stateNode,typeof N.componentWillUnmount=="function"))try{N.props=R.memoizedProps,N.state=R.memoizedState,N.componentWillUnmount()}catch(he){ot(R,E,he)}Mr(x,E,R);break;case 21:Mr(x,E,R);break;case 22:R.mode&1?(At=(N=At)||R.memoizedState!==null,Mr(x,E,R),At=N):Mr(x,E,R);break;default:Mr(x,E,R)}}function Dl(x){var E=x.updateQueue;if(E!==null){x.updateQueue=null;var R=x.stateNode;R===null&&(R=x.stateNode=new Mu),E.forEach(function(N){var D=Bu.bind(null,x,N);R.has(N)||(R.add(N),N.then(D,D))})}}function Sr(x,E){var R=E.deletions;if(R!==null)for(var N=0;N";case lo:return":has("+(Rs(x)||"")+")";case uo:return'[role="'+x.value+'"]';case fo:return'"'+x.value+'"';case co:return'[data-testname="'+x.value+'"]';default:throw Error(y(365))}}function Vl(x,E){var R=[];x=[x,0];for(var N=0;ND&&(D=te),N&=~V}if(N=D,N=dt()-N,N=(120>N?120:480>N?480:1080>N?1080:1920>N?1920:3e3>N?3e3:4320>N?4320:1960*Lu(N/1960))-N,10x?16:x,on===null)var N=!1;else{if(x=on,on=null,yo=0,Ye&6)throw Error(y(331));var D=Ye;for(Ye|=4,Ae=x.current;Ae!==null;){var V=Ae,te=V.child;if(Ae.flags&16){var he=V.deletions;if(he!==null){for(var ve=0;vedt()-Is?jn(x,0):Fs|=R),qt(x,E)}function eu(x,E){E===0&&(x.mode&1?(E=Tn,Tn<<=1,!(Tn&130023424)&&(Tn=4194304)):E=1);var R=Mt();x=Jt(x,E),x!==null&&(Cn(x,E,R),qt(x,R))}function zu(x){var E=x.memoizedState,R=0;E!==null&&(R=E.retryLane),eu(x,R)}function Bu(x,E){var R=0;switch(x.tag){case 13:var N=x.stateNode,D=x.memoizedState;D!==null&&(R=D.retryLane);break;case 19:N=x.stateNode;break;default:throw Error(y(314))}N!==null&&N.delete(E),eu(x,R)}var tu;tu=function(x,E,R){if(x!==null)if(x.memoizedProps!==E.pendingProps||wt.current)Vt=!0;else{if(!(x.lanes&R)&&!(E.flags&128))return Vt=!1,Cu(x,E,R);Vt=!!(x.flags&131072)}else Vt=!1,nt&&E.flags&1048576&&za(E,Rn,E.index);switch(E.lanes=0,E.tag){case 2:var N=E.type;ro(x,E),x=E.pendingProps;var D=Qr(E,gt.current);yr(E,R),D=us(null,E,N,x,D,R);var V=cs();return E.flags|=1,typeof D=="object"&&D!==null&&typeof D.render=="function"&&D.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Ot(N)?(V=!0,ei(E)):V=!1,E.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,tn(E),D.updater=rn,E.stateNode=D,D._reactInternals=E,B(E,N,x,R),E=vs(null,E,N,!0,V,R)):(E.tag=0,nt&&V&&Zi(E),Dt(null,E,D,R),E=E.child),E;case 16:N=E.elementType;e:{switch(ro(x,E),x=E.pendingProps,D=N._init,N=D(N._payload),E.type=N,D=E.tag=Gu(N),x=Gt(N,x),D){case 0:E=ys(null,E,N,x,R);break e;case 1:E=Tl(null,E,N,x,R);break e;case 11:E=xl(null,E,N,x,R);break e;case 14:E=El(null,E,N,Gt(N.type,x),R);break e}throw Error(y(306,N,""))}return E;case 0:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),ys(x,E,N,D,R);case 1:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),Tl(x,E,N,D,R);case 3:e:{if(Ol(E),x===null)throw Error(y(387));N=E.pendingProps,V=E.memoizedState,D=V.element,Fn(x,E),gi(E,N,null,R);var te=E.memoizedState;if(N=te.element,Xe&&V.isDehydrated)if(V={element:N,isDehydrated:!1,cache:te.cache,pendingSuspenseBoundaries:te.pendingSuspenseBoundaries,transitions:te.transitions},E.updateQueue.baseState=V,E.memoizedState=V,E.flags&256){D=vi(Error(y(423)),E),E=Cl(x,E,N,R,D);break e}else if(N!==D){D=vi(Error(y(424)),E),E=Cl(x,E,N,R,D);break e}else for(Xe&&(Ht=Fo(E.stateNode.containerInfo),Nt=E,nt=!0,Qt=null,An=!1),R=nn(E,null,N,R),E.child=R;R;)R.flags=R.flags&-3|4096,R=R.sibling;else{if(Zr(),N===D){E=Hr(x,E,R);break e}Dt(x,E,N,R)}E=E.child}return E;case 5:return Ys(E),x===null&&si(E),N=E.type,D=E.pendingProps,V=x!==null?x.memoizedProps:null,te=D.children,Ie(N,D)?te=null:V!==null&&Ie(N,V)&&(E.flags|=32),Pl(x,E),Dt(x,E,te,R),E.child;case 6:return x===null&&si(E),null;case 13:return Rl(x,E,R);case 4:return Zo(E,E.stateNode.containerInfo),N=E.pendingProps,x===null?E.child=jt(E,null,N,R):Dt(x,E,N,R),E.child;case 11:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),xl(x,E,N,D,R);case 7:return Dt(x,E,E.pendingProps,R),E.child;case 8:return Dt(x,E,E.pendingProps.children,R),E.child;case 12:return Dt(x,E,E.pendingProps.children,R),E.child;case 10:e:{if(N=E.type._context,D=E.pendingProps,V=E.memoizedProps,te=D.value,Va(E,N,te),V!==null)if(Xt(V.value,te)){if(V.children===D.children&&!wt.current){E=Hr(x,E,R);break e}}else for(V=E.child,V!==null&&(V.return=E);V!==null;){var he=V.dependencies;if(he!==null){te=V.child;for(var ve=he.firstContext;ve!==null;){if(ve.context===N){if(V.tag===1){ve=vr(-1,R&-R),ve.tag=2;var Ee=V.updateQueue;if(Ee!==null){Ee=Ee.shared;var Me=Ee.pending;Me===null?ve.next=ve:(ve.next=Me.next,Me.next=ve),Ee.pending=ve}}V.lanes|=R,ve=V.alternate,ve!==null&&(ve.lanes|=R),aa(V.return,R,E),he.lanes|=R;break}ve=ve.next}}else if(V.tag===10)te=V.type===E.type?null:V.child;else if(V.tag===18){if(te=V.return,te===null)throw Error(y(341));te.lanes|=R,he=te.alternate,he!==null&&(he.lanes|=R),aa(te,R,E),te=V.sibling}else te=V.child;if(te!==null)te.return=V;else for(te=V;te!==null;){if(te===E){te=null;break}if(V=te.sibling,V!==null){V.return=te.return,te=V;break}te=te.return}V=te}Dt(x,E,D.children,R),E=E.child}return E;case 9:return D=E.type,N=E.pendingProps.children,yr(E,R),D=kt(D),N=N(D),E.flags|=1,Dt(x,E,N,R),E.child;case 14:return N=E.type,D=Gt(N,E.pendingProps),D=Gt(N.type,D),El(x,E,N,D,R);case 15:return $l(x,E,E.type,E.pendingProps,R);case 17:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),ro(x,E),E.tag=1,Ot(N)?(x=!0,ei(E)):x=!1,yr(E,R),Ln(E,N,D),B(E,N,D,R),vs(null,E,N,!0,x,R);case 19:return Ml(x,E,R);case 22:return wl(x,E,R)}throw Error(y(156,E.tag))};function ru(x,E){return qi(x,E)}function Hu(x,E,R,N){this.tag=x,this.key=R,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=E,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fr(x,E,R,N){return new Hu(x,E,R,N)}function Bs(x){return x=x.prototype,!(!x||!x.isReactComponent)}function Gu(x){if(typeof x=="function")return Bs(x)?1:0;if(x!=null){if(x=x.$$typeof,x===A)return 11;if(x===L)return 14}return 2}function un(x,E){var R=x.alternate;return R===null?(R=fr(x.tag,E,x.key,x.mode),R.elementType=x.elementType,R.type=x.type,R.stateNode=x.stateNode,R.alternate=x,x.alternate=R):(R.pendingProps=E,R.type=x.type,R.flags=0,R.subtreeFlags=0,R.deletions=null),R.flags=x.flags&14680064,R.childLanes=x.childLanes,R.lanes=x.lanes,R.child=x.child,R.memoizedProps=x.memoizedProps,R.memoizedState=x.memoizedState,R.updateQueue=x.updateQueue,E=x.dependencies,R.dependencies=E===null?null:{lanes:E.lanes,firstContext:E.firstContext},R.sibling=x.sibling,R.index=x.index,R.ref=x.ref,R}function So(x,E,R,N,D,V){var te=2;if(N=x,typeof x=="function")Bs(x)&&(te=1);else if(typeof x=="string")te=5;else e:switch(x){case $:return zn(R.children,D,V,E);case P:te=8,D|=8;break;case T:return x=fr(12,R,E,D|2),x.elementType=T,x.lanes=V,x;case F:return x=fr(13,R,E,D),x.elementType=F,x.lanes=V,x;case j:return x=fr(19,R,E,D),x.elementType=j,x.lanes=V,x;case I:return xo(R,D,V,E);default:if(typeof x=="object"&&x!==null)switch(x.$$typeof){case C:te=10;break e;case O:te=9;break e;case A:te=11;break e;case L:te=14;break e;case M:te=16,N=null;break e}throw Error(y(130,x==null?x:typeof x,""))}return E=fr(te,R,E,D),E.elementType=x,E.type=N,E.lanes=V,E}function zn(x,E,R,N){return x=fr(7,x,N,E),x.lanes=R,x}function xo(x,E,R,N){return x=fr(22,x,N,E),x.elementType=I,x.lanes=R,x.stateNode={isHidden:!1},x}function Hs(x,E,R){return x=fr(6,x,null,E),x.lanes=R,x}function Gs(x,E,R){return E=fr(4,x.children!==null?x.children:[],x.key,E),E.lanes=R,E.stateNode={containerInfo:x.containerInfo,pendingChildren:null,implementation:x.implementation},E}function Vu(x,E,R,N,D){this.tag=E,this.containerInfo=x,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Pe,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vi(0),this.expirationTimes=Vi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vi(0),this.identifierPrefix=N,this.onRecoverableError=D,Xe&&(this.mutableSourceEagerHydrationData=null)}function nu(x,E,R,N,D,V,te,he,ve){return x=new Vu(x,E,R,he,ve),E===1?(E=1,V===!0&&(E|=8)):E=0,V=fr(3,null,null,E),x.current=V,V.stateNode=x,V.memoizedState={element:N,isDehydrated:R,cache:null,transitions:null,pendingSuspenseBoundaries:null},tn(V),x}function iu(x){if(!x)return $r;x=x._reactInternals;e:{if(X(x)!==x||x.tag!==1)throw Error(y(170));var E=x;do{switch(E.tag){case 3:E=E.stateNode.context;break e;case 1:if(Ot(E.type)){E=E.stateNode.__reactInternalMemoizedMergedChildContext;break e}}E=E.return}while(E!==null);throw Error(y(171))}if(x.tag===1){var R=x.type;if(Ot(R))return La(x,R,E)}return E}function au(x){var E=x._reactInternals;if(E===void 0)throw typeof x.render=="function"?Error(y(188)):(x=Object.keys(x).join(","),Error(y(268,x)));return x=ie(E),x===null?null:x.stateNode}function ou(x,E){if(x=x.memoizedState,x!==null&&x.dehydrated!==null){var R=x.retryLane;x.retryLane=R!==0&&R=Ee&&V>=He&&D<=Me&&te<=Te){x.splice(E,1);break}else if(N!==Ee||R.width!==ve.width||Tete){if(!(V!==He||R.height!==ve.height||MeD)){Ee>N&&(ve.width+=Ee-N,ve.x=N),MeV&&(ve.height+=He-V,ve.y=V),TeR&&(R=te)),teLs&&(E.flags|=128,N=!0,pa(D,!1),E.lanes=4194304)}else{if(!N)if(x=Ka(V),x!==null){if(E.flags|=128,N=!0,x=x.updateQueue,x!==null&&(E.updateQueue=x,E.flags|=4),pa(D,!0),D.tail===null&&D.tailMode==="hidden"&&!V.alternate&&!nt)return Rt(E),null}else 2*dt()-D.renderingStartTime>Ls&&R!==1073741824&&(E.flags|=128,N=!0,pa(D,!1),E.lanes=4194304);D.isBackwards?(V.sibling=E.child,E.child=V):(x=D.last,x!==null?x.sibling=V:E.child=V,D.last=V)}return D.tail!==null?(E=D.tail,D.rendering=E,D.tail=E.sibling,D.renderingStartTime=dt(),E.sibling=null,x=lt.current,tt(lt,N?x&1|2:x&1),E):(Rt(E),null);case 22:case 23:return Us(),R=E.memoizedState!==null,x!==null&&x.memoizedState!==null!==R&&(E.flags|=8192),R&&E.mode&1?Zt&1073741824&&(Rt(E),je&&E.subtreeFlags&6&&(E.flags|=8192)):Rt(E),null;case 24:return null;case 25:return null}throw Error(y(156,E.tag))}function Au(x,E){switch(oi(E),E.tag){case 1:return Ot(E.type)&&Zn(),x=E.flags,x&65536?(E.flags=x&-65537|128,E):null;case 3:return yi(),rt(wt),rt(gt),ns(),x=E.flags,x&65536&&!(x&128)?(E.flags=x&-65537|128,E):null;case 5:return es(E),null;case 13:if(rt(lt),x=E.memoizedState,x!==null&&x.dehydrated!==null){if(E.alternate===null)throw Error(y(340));Zr()}return x=E.flags,x&65536?(E.flags=x&-65537|128,E):null;case 19:return rt(lt),null;case 4:return yi(),null;case 10:return ia(E.type._context),null;case 22:case 23:return Us(),null;case 24:return null;default:return null}}var ao=!1,At=!1,Fu=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function _i(x,E){var R=x.ref;if(R!==null)if(typeof R=="function")try{R(null)}catch(N){ot(x,E,N)}else R.current=null}function Es(x,E,R){try{R()}catch(N){ot(x,E,N)}}var Ll=!1;function Mu(x,E){for(fe(x.containerInfo),Ae=E;Ae!==null;)if(x=Ae,E=x.child,(x.subtreeFlags&1028)!==0&&E!==null)E.return=x,Ae=E;else for(;Ae!==null;){x=Ae;try{var R=x.alternate;if(x.flags&1024)switch(x.tag){case 0:case 11:case 15:break;case 1:if(R!==null){var N=R.memoizedProps,D=R.memoizedState,V=x.stateNode,te=V.getSnapshotBeforeUpdate(x.elementType===x.type?N:Gt(x.type,N),D);V.__reactInternalSnapshotBeforeUpdate=te}break;case 3:je&&Pa(x.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(he){ot(x,x.return,he)}if(E=x.sibling,E!==null){E.return=x.return,Ae=E;break}Ae=x.return}return R=Ll,Ll=!1,R}function ga(x,E,R){var N=E.updateQueue;if(N=N!==null?N.lastEffect:null,N!==null){var D=N=N.next;do{if((D.tag&x)===x){var V=D.destroy;D.destroy=void 0,V!==void 0&&Es(E,R,V)}D=D.next}while(D!==N)}}function oo(x,E){if(E=E.updateQueue,E=E!==null?E.lastEffect:null,E!==null){var R=E=E.next;do{if((R.tag&x)===x){var N=R.create;R.destroy=N()}R=R.next}while(R!==E)}}function $s(x){var E=x.ref;if(E!==null){var R=x.stateNode;switch(x.tag){case 5:x=Q(R);break;default:x=R}typeof E=="function"?E(x):E.current=x}}function kl(x){var E=x.alternate;E!==null&&(x.alternate=null,kl(E)),x.child=null,x.deletions=null,x.sibling=null,x.tag===5&&(E=x.stateNode,E!==null&&It(E)),x.stateNode=null,x.return=null,x.dependencies=null,x.memoizedProps=null,x.memoizedState=null,x.pendingProps=null,x.stateNode=null,x.updateQueue=null}function Nl(x){return x.tag===5||x.tag===3||x.tag===4}function jl(x){e:for(;;){for(;x.sibling===null;){if(x.return===null||Nl(x.return))return null;x=x.return}for(x.sibling.return=x.return,x=x.sibling;x.tag!==5&&x.tag!==6&&x.tag!==18;){if(x.flags&2||x.child===null||x.tag===4)continue e;x.child.return=x,x=x.child}if(!(x.flags&2))return x.stateNode}}function ws(x,E,R){var N=x.tag;if(N===5||N===6)x=x.stateNode,E?Ue(R,x,E):xn(R,x);else if(N!==4&&(x=x.child,x!==null))for(ws(x,E,R),x=x.sibling;x!==null;)ws(x,E,R),x=x.sibling}function Ps(x,E,R){var N=x.tag;if(N===5||N===6)x=x.stateNode,E?ct(R,x,E):Sn(R,x);else if(N!==4&&(x=x.child,x!==null))for(Ps(x,E,R),x=x.sibling;x!==null;)Ps(x,E,R),x=x.sibling}var Pt=null,br=!1;function Fr(x,E,R){for(R=R.child;R!==null;)Ts(x,E,R),R=R.sibling}function Ts(x,E,R){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(ni,R)}catch(he){}switch(R.tag){case 5:At||_i(R,E);case 6:if(je){var N=Pt,D=br;Pt=null,Fr(x,E,R),Pt=N,br=D,Pt!==null&&(br?Be(Pt,R.stateNode):De(Pt,R.stateNode))}else Fr(x,E,R);break;case 18:je&&Pt!==null&&(br?Fa(Pt,R.stateNode):Aa(Pt,R.stateNode));break;case 4:je?(N=Pt,D=br,Pt=R.stateNode.containerInfo,br=!0,Fr(x,E,R),Pt=N,br=D):(ze&&(N=R.stateNode.containerInfo,D=Yn(N),Xn(N,D)),Fr(x,E,R));break;case 0:case 11:case 14:case 15:if(!At&&(N=R.updateQueue,N!==null&&(N=N.lastEffect,N!==null))){D=N=N.next;do{var V=D,te=V.destroy;V=V.tag,te!==void 0&&(V&2||V&4)&&Es(R,E,te),D=D.next}while(D!==N)}Fr(x,E,R);break;case 1:if(!At&&(_i(R,E),N=R.stateNode,typeof N.componentWillUnmount=="function"))try{N.props=R.memoizedProps,N.state=R.memoizedState,N.componentWillUnmount()}catch(he){ot(R,E,he)}Fr(x,E,R);break;case 21:Fr(x,E,R);break;case 22:R.mode&1?(At=(N=At)||R.memoizedState!==null,Fr(x,E,R),At=N):Fr(x,E,R);break;default:Fr(x,E,R)}}function Dl(x){var E=x.updateQueue;if(E!==null){x.updateQueue=null;var R=x.stateNode;R===null&&(R=x.stateNode=new Fu),E.forEach(function(N){var D=Bu.bind(null,x,N);R.has(N)||(R.add(N),N.then(D,D))})}}function Sr(x,E){var R=E.deletions;if(R!==null)for(var N=0;N";case lo:return":has("+(Rs(x)||"")+")";case uo:return'[role="'+x.value+'"]';case fo:return'"'+x.value+'"';case co:return'[data-testname="'+x.value+'"]';default:throw Error(y(365))}}function Vl(x,E){var R=[];x=[x,0];for(var N=0;ND&&(D=te),N&=~V}if(N=D,N=dt()-N,N=(120>N?120:480>N?480:1080>N?1080:1920>N?1920:3e3>N?3e3:4320>N?4320:1960*Lu(N/1960))-N,10x?16:x,on===null)var N=!1;else{if(x=on,on=null,yo=0,Ye&6)throw Error(y(331));var D=Ye;for(Ye|=4,Ae=x.current;Ae!==null;){var V=Ae,te=V.child;if(Ae.flags&16){var he=V.deletions;if(he!==null){for(var ve=0;vedt()-Is?jn(x,0):Ms|=R),qt(x,E)}function eu(x,E){E===0&&(x.mode&1?(E=Tn,Tn<<=1,!(Tn&130023424)&&(Tn=4194304)):E=1);var R=Ft();x=Jt(x,E),x!==null&&(Cn(x,E,R),qt(x,R))}function zu(x){var E=x.memoizedState,R=0;E!==null&&(R=E.retryLane),eu(x,R)}function Bu(x,E){var R=0;switch(x.tag){case 13:var N=x.stateNode,D=x.memoizedState;D!==null&&(R=D.retryLane);break;case 19:N=x.stateNode;break;default:throw Error(y(314))}N!==null&&N.delete(E),eu(x,R)}var tu;tu=function(x,E,R){if(x!==null)if(x.memoizedProps!==E.pendingProps||wt.current)Vt=!0;else{if(!(x.lanes&R)&&!(E.flags&128))return Vt=!1,Cu(x,E,R);Vt=!!(x.flags&131072)}else Vt=!1,nt&&E.flags&1048576&&za(E,Rn,E.index);switch(E.lanes=0,E.tag){case 2:var N=E.type;ro(x,E),x=E.pendingProps;var D=Qr(E,gt.current);yr(E,R),D=us(null,E,N,x,D,R);var V=cs();return E.flags|=1,typeof D=="object"&&D!==null&&typeof D.render=="function"&&D.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Ot(N)?(V=!0,ei(E)):V=!1,E.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,tn(E),D.updater=rn,E.stateNode=D,D._reactInternals=E,B(E,N,x,R),E=vs(null,E,N,!0,V,R)):(E.tag=0,nt&&V&&Zi(E),Dt(null,E,D,R),E=E.child),E;case 16:N=E.elementType;e:{switch(ro(x,E),x=E.pendingProps,D=N._init,N=D(N._payload),E.type=N,D=E.tag=Gu(N),x=Gt(N,x),D){case 0:E=ys(null,E,N,x,R);break e;case 1:E=Tl(null,E,N,x,R);break e;case 11:E=xl(null,E,N,x,R);break e;case 14:E=El(null,E,N,Gt(N.type,x),R);break e}throw Error(y(306,N,""))}return E;case 0:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),ys(x,E,N,D,R);case 1:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),Tl(x,E,N,D,R);case 3:e:{if(Ol(E),x===null)throw Error(y(387));N=E.pendingProps,V=E.memoizedState,D=V.element,Mn(x,E),gi(E,N,null,R);var te=E.memoizedState;if(N=te.element,Xe&&V.isDehydrated)if(V={element:N,isDehydrated:!1,cache:te.cache,pendingSuspenseBoundaries:te.pendingSuspenseBoundaries,transitions:te.transitions},E.updateQueue.baseState=V,E.memoizedState=V,E.flags&256){D=vi(Error(y(423)),E),E=Cl(x,E,N,R,D);break e}else if(N!==D){D=vi(Error(y(424)),E),E=Cl(x,E,N,R,D);break e}else for(Xe&&(Ht=Mo(E.stateNode.containerInfo),kt=E,nt=!0,Qt=null,An=!1),R=nn(E,null,N,R),E.child=R;R;)R.flags=R.flags&-3|4096,R=R.sibling;else{if(Zr(),N===D){E=Hr(x,E,R);break e}Dt(x,E,N,R)}E=E.child}return E;case 5:return Ys(E),x===null&&si(E),N=E.type,D=E.pendingProps,V=x!==null?x.memoizedProps:null,te=D.children,Ie(N,D)?te=null:V!==null&&Ie(N,V)&&(E.flags|=32),Pl(x,E),Dt(x,E,te,R),E.child;case 6:return x===null&&si(E),null;case 13:return Rl(x,E,R);case 4:return Zo(E,E.stateNode.containerInfo),N=E.pendingProps,x===null?E.child=jt(E,null,N,R):Dt(x,E,N,R),E.child;case 11:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),xl(x,E,N,D,R);case 7:return Dt(x,E,E.pendingProps,R),E.child;case 8:return Dt(x,E,E.pendingProps.children,R),E.child;case 12:return Dt(x,E,E.pendingProps.children,R),E.child;case 10:e:{if(N=E.type._context,D=E.pendingProps,V=E.memoizedProps,te=D.value,Va(E,N,te),V!==null)if(Xt(V.value,te)){if(V.children===D.children&&!wt.current){E=Hr(x,E,R);break e}}else for(V=E.child,V!==null&&(V.return=E);V!==null;){var he=V.dependencies;if(he!==null){te=V.child;for(var ve=he.firstContext;ve!==null;){if(ve.context===N){if(V.tag===1){ve=vr(-1,R&-R),ve.tag=2;var Ee=V.updateQueue;if(Ee!==null){Ee=Ee.shared;var Fe=Ee.pending;Fe===null?ve.next=ve:(ve.next=Fe.next,Fe.next=ve),Ee.pending=ve}}V.lanes|=R,ve=V.alternate,ve!==null&&(ve.lanes|=R),aa(V.return,R,E),he.lanes|=R;break}ve=ve.next}}else if(V.tag===10)te=V.type===E.type?null:V.child;else if(V.tag===18){if(te=V.return,te===null)throw Error(y(341));te.lanes|=R,he=te.alternate,he!==null&&(he.lanes|=R),aa(te,R,E),te=V.sibling}else te=V.child;if(te!==null)te.return=V;else for(te=V;te!==null;){if(te===E){te=null;break}if(V=te.sibling,V!==null){V.return=te.return,te=V;break}te=te.return}V=te}Dt(x,E,D.children,R),E=E.child}return E;case 9:return D=E.type,N=E.pendingProps.children,yr(E,R),D=Nt(D),N=N(D),E.flags|=1,Dt(x,E,N,R),E.child;case 14:return N=E.type,D=Gt(N,E.pendingProps),D=Gt(N.type,D),El(x,E,N,D,R);case 15:return $l(x,E,E.type,E.pendingProps,R);case 17:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),ro(x,E),E.tag=1,Ot(N)?(x=!0,ei(E)):x=!1,yr(E,R),Ln(E,N,D),B(E,N,D,R),vs(null,E,N,!0,x,R);case 19:return Fl(x,E,R);case 22:return wl(x,E,R)}throw Error(y(156,E.tag))};function ru(x,E){return qi(x,E)}function Hu(x,E,R,N){this.tag=x,this.key=R,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=E,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fr(x,E,R,N){return new Hu(x,E,R,N)}function Bs(x){return x=x.prototype,!(!x||!x.isReactComponent)}function Gu(x){if(typeof x=="function")return Bs(x)?1:0;if(x!=null){if(x=x.$$typeof,x===A)return 11;if(x===L)return 14}return 2}function un(x,E){var R=x.alternate;return R===null?(R=fr(x.tag,E,x.key,x.mode),R.elementType=x.elementType,R.type=x.type,R.stateNode=x.stateNode,R.alternate=x,x.alternate=R):(R.pendingProps=E,R.type=x.type,R.flags=0,R.subtreeFlags=0,R.deletions=null),R.flags=x.flags&14680064,R.childLanes=x.childLanes,R.lanes=x.lanes,R.child=x.child,R.memoizedProps=x.memoizedProps,R.memoizedState=x.memoizedState,R.updateQueue=x.updateQueue,E=x.dependencies,R.dependencies=E===null?null:{lanes:E.lanes,firstContext:E.firstContext},R.sibling=x.sibling,R.index=x.index,R.ref=x.ref,R}function So(x,E,R,N,D,V){var te=2;if(N=x,typeof x=="function")Bs(x)&&(te=1);else if(typeof x=="string")te=5;else e:switch(x){case $:return zn(R.children,D,V,E);case P:te=8,D|=8;break;case T:return x=fr(12,R,E,D|2),x.elementType=T,x.lanes=V,x;case M:return x=fr(13,R,E,D),x.elementType=M,x.lanes=V,x;case j:return x=fr(19,R,E,D),x.elementType=j,x.lanes=V,x;case I:return xo(R,D,V,E);default:if(typeof x=="object"&&x!==null)switch(x.$$typeof){case C:te=10;break e;case O:te=9;break e;case A:te=11;break e;case L:te=14;break e;case F:te=16,N=null;break e}throw Error(y(130,x==null?x:typeof x,""))}return E=fr(te,R,E,D),E.elementType=x,E.type=N,E.lanes=V,E}function zn(x,E,R,N){return x=fr(7,x,N,E),x.lanes=R,x}function xo(x,E,R,N){return x=fr(22,x,N,E),x.elementType=I,x.lanes=R,x.stateNode={isHidden:!1},x}function Hs(x,E,R){return x=fr(6,x,null,E),x.lanes=R,x}function Gs(x,E,R){return E=fr(4,x.children!==null?x.children:[],x.key,E),E.lanes=R,E.stateNode={containerInfo:x.containerInfo,pendingChildren:null,implementation:x.implementation},E}function Vu(x,E,R,N,D){this.tag=E,this.containerInfo=x,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Pe,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vi(0),this.expirationTimes=Vi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vi(0),this.identifierPrefix=N,this.onRecoverableError=D,Xe&&(this.mutableSourceEagerHydrationData=null)}function nu(x,E,R,N,D,V,te,he,ve){return x=new Vu(x,E,R,he,ve),E===1?(E=1,V===!0&&(E|=8)):E=0,V=fr(3,null,null,E),x.current=V,V.stateNode=x,V.memoizedState={element:N,isDehydrated:R,cache:null,transitions:null,pendingSuspenseBoundaries:null},tn(V),x}function iu(x){if(!x)return $r;x=x._reactInternals;e:{if(X(x)!==x||x.tag!==1)throw Error(y(170));var E=x;do{switch(E.tag){case 3:E=E.stateNode.context;break e;case 1:if(Ot(E.type)){E=E.stateNode.__reactInternalMemoizedMergedChildContext;break e}}E=E.return}while(E!==null);throw Error(y(171))}if(x.tag===1){var R=x.type;if(Ot(R))return La(x,R,E)}return E}function au(x){var E=x._reactInternals;if(E===void 0)throw typeof x.render=="function"?Error(y(188)):(x=Object.keys(x).join(","),Error(y(268,x)));return x=ie(E),x===null?null:x.stateNode}function ou(x,E){if(x=x.memoizedState,x!==null&&x.dehydrated!==null){var R=x.retryLane;x.retryLane=R!==0&&R=Ee&&V>=He&&D<=Fe&&te<=Te){x.splice(E,1);break}else if(N!==Ee||R.width!==ve.width||Tete){if(!(V!==He||R.height!==ve.height||FeD)){Ee>N&&(ve.width+=Ee-N,ve.x=N),FeV&&(ve.height+=He-V,ve.y=V),TeR&&(R=te)),te ")+` No matching component was found for: - `)+x.join(" > ")}return null},s.getPublicRootInstance=function(x){if(x=x.current,!x.child)return null;switch(x.child.tag){case 5:return Q(x.child.stateNode);default:return x.child.stateNode}},s.injectIntoDevTools=function(x){if(x={bundleType:x.bundleType,version:x.version,rendererPackageName:x.rendererPackageName,rendererConfig:x.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:Wu,findFiberByHostInstance:x.findFiberByHostInstance||qu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")x=!1;else{var E=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(E.isDisabled||!E.supportsFiber)x=!0;else{try{ni=E.inject(x),Lt=E}catch(R){}x=!!E.checkDCE}}return x},s.isAlreadyRendering=function(){return!1},s.observeVisibleRects=function(x,E,R,N){if(!kr)throw Error(y(363));x=As(x,E);var D=bn(x,R,N).disconnect;return{disconnect:function(){D()}}},s.registerMutableSourceForHydration=function(x,E){var R=E._getVersion;R=R(E._source),x.mutableSourceEagerHydrationData==null?x.mutableSourceEagerHydrationData=[E,R]:x.mutableSourceEagerHydrationData.push(E,R)},s.runWithPriority=function(x,E){var R=Qe;try{return Qe=x,E()}finally{Qe=R}},s.shouldError=function(){return null},s.shouldSuspend=function(){return!1},s.updateContainer=function(x,E,R,N){var D=E.current,V=Mt(),te=sn(D);return R=iu(R),E.context===null?E.context=R:E.pendingContext=R,E=vr(V,te),E.payload={element:x},N=N===void 0?null:N,N!==null&&(E.callback=N),x=_r(D,E,te),x!==null&&(cr(x,D,te,V),pi(x,D,te)),te},s};reactReconciler.exports=reactReconciler_production_min;var reactReconcilerExports=reactReconciler.exports;const ReactFiberReconciler=getDefaultExportFromCjs(reactReconcilerExports);var constants={exports:{}},reactReconcilerConstants_production_min={};/** + `)+x.join(" > ")}return null},s.getPublicRootInstance=function(x){if(x=x.current,!x.child)return null;switch(x.child.tag){case 5:return Q(x.child.stateNode);default:return x.child.stateNode}},s.injectIntoDevTools=function(x){if(x={bundleType:x.bundleType,version:x.version,rendererPackageName:x.rendererPackageName,rendererConfig:x.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:Wu,findFiberByHostInstance:x.findFiberByHostInstance||qu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")x=!1;else{var E=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(E.isDisabled||!E.supportsFiber)x=!0;else{try{ni=E.inject(x),Lt=E}catch(R){}x=!!E.checkDCE}}return x},s.isAlreadyRendering=function(){return!1},s.observeVisibleRects=function(x,E,R,N){if(!Nr)throw Error(y(363));x=As(x,E);var D=bn(x,R,N).disconnect;return{disconnect:function(){D()}}},s.registerMutableSourceForHydration=function(x,E){var R=E._getVersion;R=R(E._source),x.mutableSourceEagerHydrationData==null?x.mutableSourceEagerHydrationData=[E,R]:x.mutableSourceEagerHydrationData.push(E,R)},s.runWithPriority=function(x,E){var R=Qe;try{return Qe=x,E()}finally{Qe=R}},s.shouldError=function(){return null},s.shouldSuspend=function(){return!1},s.updateContainer=function(x,E,R,N){var D=E.current,V=Ft(),te=sn(D);return R=iu(R),E.context===null?E.context=R:E.pendingContext=R,E=vr(V,te),E.payload={element:x},N=N===void 0?null:N,N!==null&&(E.callback=N),x=_r(D,E,te),x!==null&&(cr(x,D,te,V),pi(x,D,te)),te},s};reactReconciler.exports=reactReconciler_production_min;var reactReconcilerExports=reactReconciler.exports;const ReactFiberReconciler=getDefaultExportFromCjs(reactReconcilerExports);var constants={exports:{}},reactReconcilerConstants_production_min={};/** * @license React * react-reconciler-constants.production.min.js * @@ -53,7 +53,7 @@ For more info see: https://github.com/konvajs/react-konva/issues/256 `,Z_INDEX_WARNING=`ReactKonva: You are using "zIndex" attribute for a Konva node. react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. For more info see: https://github.com/konvajs/react-konva/issues/194 -`,EMPTY_PROPS={};function applyNodeProps(o,a,s=EMPTY_PROPS){if(!zIndexWarningShowed&&"zIndex"in a&&(zIndexWarningShowed=!0),!dragWarningShowed&&a.draggable){var c=a.x!==void 0||a.y!==void 0,f=a.onDragEnd||a.onDragMove;c&&!f&&(dragWarningShowed=!0)}for(var d in s)if(!propsToSkip[d]){var y=d.slice(0,2)==="on",_=s[d]!==a[d];if(y&&_){var S=d.substr(2).toLowerCase();S.substr(0,7)==="content"&&(S="content"+S.substr(7,1).toUpperCase()+S.substr(8)),o.off(S,s[d])}var b=!a.hasOwnProperty(d);b&&o.setAttr(d,void 0)}var $=a._useStrictMode,P={},T=!1;const C={};for(var d in a)if(!propsToSkip[d]){var y=d.slice(0,2)==="on",O=s[d]!==a[d];if(y&&O){var S=d.substr(2).toLowerCase();S.substr(0,7)==="content"&&(S="content"+S.substr(7,1).toUpperCase()+S.substr(8)),a[d]&&(C[S]=a[d])}!y&&(a[d]!==s[d]||$&&a[d]!==o.getAttr(d))&&(T=!0,P[d]=a[d])}T&&(o.setAttrs(P),updatePicture(o));for(var S in C)o.on(S+EVENTS_NAMESPACE,C[S])}function updatePicture(o){if(!Global.Konva.autoDrawEnabled){var a=o.getLayer()||o.getStage();a&&a.batchDraw()}}const NO_CONTEXT={},UPDATE_SIGNAL={};Konva.Node.prototype._applyProps=applyNodeProps;function appendInitialChild(o,a){typeof a!="string"&&(o.add(a),updatePicture(o))}function createInstance$1(o,a,s){let c=Konva[o];c||(c=Konva.Group);const f={},d={};for(var y in a){var _=y.slice(0,2)==="on";_?d[y]=a[y]:f[y]=a[y]}const S=new c(f);return applyNodeProps(S,d),S}function createTextInstance(o,a,s){}function finalizeInitialChildren(o,a,s){return!1}function getPublicInstance(o){return o}function prepareForCommit(){return null}function preparePortalMount(){return null}function prepareUpdate(o,a,s,c){return UPDATE_SIGNAL}function resetAfterCommit(){}function resetTextContent(o){}function shouldDeprioritizeSubtree(o,a){return!1}function getRootHostContext(){return NO_CONTEXT}function getChildHostContext(){return NO_CONTEXT}const scheduleTimeout=setTimeout,cancelTimeout=clearTimeout,noTimeout=-1;function shouldSetTextContent(o,a){return!1}const isPrimaryRenderer=!1,warnsIfNotActing=!0,supportsMutation=!0;function appendChild(o,a){a.parent===o?a.moveToTop():o.add(a),updatePicture(o)}function appendChildToContainer(o,a){a.parent===o?a.moveToTop():o.add(a),updatePicture(o)}function insertBefore(o,a,s){a._remove(),o.add(a),a.setZIndex(s.getZIndex()),updatePicture(o)}function insertInContainerBefore(o,a,s){insertBefore(o,a,s)}function removeChild(o,a){a.destroy(),a.off(EVENTS_NAMESPACE),updatePicture(o)}function removeChildFromContainer(o,a){a.destroy(),a.off(EVENTS_NAMESPACE),updatePicture(o)}function commitTextUpdate(o,a,s){}function commitMount(o,a,s){}function commitUpdate(o,a,s,c,f){applyNodeProps(o,f,c)}function hideInstance(o){o.hide(),updatePicture(o)}function hideTextInstance(o){}function unhideInstance(o,a){(a.visible==null||a.visible)&&o.show()}function unhideTextInstance(o,a){}function clearContainer(o){}function detachDeletedInstance(){}const getCurrentEventPriority=()=>constantsExports.DefaultEventPriority,HostConfig=Object.freeze(Object.defineProperty({__proto__:null,appendChild,appendChildToContainer,appendInitialChild,cancelTimeout,clearContainer,commitMount,commitTextUpdate,commitUpdate,createInstance:createInstance$1,createTextInstance,detachDeletedInstance,finalizeInitialChildren,getChildHostContext,getCurrentEventPriority,getPublicInstance,getRootHostContext,hideInstance,hideTextInstance,idlePriority:schedulerExports.unstable_IdlePriority,insertBefore,insertInContainerBefore,isPrimaryRenderer,noTimeout,now:schedulerExports.unstable_now,prepareForCommit,preparePortalMount,prepareUpdate,removeChild,removeChildFromContainer,resetAfterCommit,resetTextContent,run:schedulerExports.unstable_runWithPriority,scheduleTimeout,shouldDeprioritizeSubtree,shouldSetTextContent,supportsMutation,unhideInstance,unhideTextInstance,warnsIfNotActing},Symbol.toStringTag,{value:"Module"}));var __defProp$1=Object.defineProperty,__defProps$1=Object.defineProperties,__getOwnPropDescs$1=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$1=Object.getOwnPropertySymbols,__hasOwnProp$1=Object.prototype.hasOwnProperty,__propIsEnum$1=Object.prototype.propertyIsEnumerable,__defNormalProp$1=(o,a,s)=>a in o?__defProp$1(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,__spreadValues$1=(o,a)=>{for(var s in a||(a={}))__hasOwnProp$1.call(a,s)&&__defNormalProp$1(o,s,a[s]);if(__getOwnPropSymbols$1)for(var s of __getOwnPropSymbols$1(a))__propIsEnum$1.call(a,s)&&__defNormalProp$1(o,s,a[s]);return o},__spreadProps$1=(o,a)=>__defProps$1(o,__getOwnPropDescs$1(a));function traverseFiber(o,a,s){if(!o)return;if(s(o)===!0)return o;let c=a?o.return:o.child;for(;c;){const f=traverseFiber(c,a,s);if(f)return f;c=a?null:c.sibling}}function wrapContext(o){try{return Object.defineProperties(o,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch(a){return o}}const FiberContext=wrapContext(reactExports.createContext(null));class FiberProvider extends reactExports.Component{render(){return reactExports.createElement(FiberContext.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner,ReactCurrentDispatcher}=reactExports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function useFiber(){const o=reactExports.useContext(FiberContext);if(o===null)throw new Error("its-fine: useFiber must be called within a !");const a=reactExports.useId();return reactExports.useMemo(()=>{for(const c of[ReactCurrentOwner==null?void 0:ReactCurrentOwner.current,o,o==null?void 0:o.alternate]){if(!c)continue;const f=traverseFiber(c,!1,d=>{let y=d.memoizedState;for(;y;){if(y.memoizedState===a)return!0;y=y.next}});if(f)return f}},[o,a])}function useContextMap(){var o,a;const s=useFiber(),[c]=reactExports.useState(()=>new Map);c.clear();let f=s;for(;f;){const d=(o=f.type)==null?void 0:o._context;d&&d!==FiberContext&&!c.has(d)&&c.set(d,(a=ReactCurrentDispatcher==null?void 0:ReactCurrentDispatcher.current)==null?void 0:a.readContext(wrapContext(d))),f=f.return}return c}function useContextBridge(){const o=useContextMap();return reactExports.useMemo(()=>Array.from(o.keys()).reduce((a,s)=>c=>reactExports.createElement(a,null,reactExports.createElement(s.Provider,__spreadProps$1(__spreadValues$1({},c),{value:o.get(s)}))),a=>reactExports.createElement(FiberProvider,__spreadValues$1({},a))),[o])}function usePrevious(o){const a=React$4.useRef({});return React$4.useLayoutEffect(()=>{a.current=o}),React$4.useLayoutEffect(()=>()=>{a.current={}},[]),a.current}const StageWrap=o=>{const a=React$4.useRef(),s=React$4.useRef(),c=React$4.useRef(),f=usePrevious(o),d=useContextBridge(),y=_=>{const{forwardedRef:S}=o;S&&(typeof S=="function"?S(_):S.current=_)};return React$4.useLayoutEffect(()=>(s.current=new Konva.Stage({width:o.width,height:o.height,container:a.current}),y(s.current),c.current=KonvaRenderer.createContainer(s.current,constantsExports.LegacyRoot,!1,null),KonvaRenderer.updateContainer(React$4.createElement(d,{},o.children),c.current),()=>{Konva.isBrowser&&(y(null),KonvaRenderer.updateContainer(null,c.current,null),s.current.destroy())}),[]),React$4.useLayoutEffect(()=>{y(s.current),applyNodeProps(s.current,o,f),KonvaRenderer.updateContainer(React$4.createElement(d,{},o.children),c.current,null)}),React$4.createElement("div",{ref:a,id:o.id,accessKey:o.accessKey,className:o.className,role:o.role,style:o.style,tabIndex:o.tabIndex,title:o.title})},KonvaRenderer=ReactFiberReconciler(HostConfig);KonvaRenderer.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:React$4.version,rendererPackageName:"react-konva"});React$4.forwardRef((o,a)=>React$4.createElement(FiberProvider,{},React$4.createElement(StageWrap,$e(se({},o),{forwardedRef:a}))));const cyanImg="/react-antd-admin-pnpm/assets/cyan-blur-b0a7d652.png",redImg="/react-antd-admin-pnpm/assets/red-blur-bf4de889.png";function _inheritsLoose$2(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,_setPrototypeOf$8(o,a)}function invariant(o,a){if(!o){var s=new Error("loadable: "+a);throw s.framesToPop=1,s.name="Invariant Violation",s}}var Context=React$4.createContext(),LOADABLE_SHARED={initialChunks:{}},STATUS_PENDING="PENDING",STATUS_RESOLVED="RESOLVED",STATUS_REJECTED="REJECTED";function resolveConstructor(o){return typeof o=="function"?{requireAsync:o,resolve:function(){},chunkName:function(){}}:o}var withChunkExtractor=function(a){var s=function(f){return React$4.createElement(Context.Consumer,null,function(d){return React$4.createElement(a,Object.assign({__chunkExtractor:d},f))})};return a.displayName&&(s.displayName=a.displayName+"WithChunkExtractor"),s},identity$2=function(a){return a};function createLoadable(o){var a=o.defaultResolveComponent,s=a===void 0?identity$2:a,c=o.render,f=o.onLoad;function d(_,S){S===void 0&&(S={});var b=resolveConstructor(_),$={};function P(j){return S.cacheKey?S.cacheKey(j):b.resolve?b.resolve(j):"static"}function T(j,L,M){var I=S.resolveComponent?S.resolveComponent(j,L):s(j);return hoistNonReactStatics(M,I,{preload:!0}),I}var C=function(L){var M=P(L),I=$[M];return(!I||I.status===STATUS_REJECTED)&&(I=b.requireAsync(L),I.status=STATUS_PENDING,$[M]=I,I.then(function(){I.status=STATUS_RESOLVED},function(U){I.status=STATUS_REJECTED})),I},O=function(j){_inheritsLoose$2(L,j),L.getDerivedStateFromProps=function(U,z){var H=P(U);return _extends$f({},z,{cacheKey:H,loading:z.loading||z.cacheKey!==H})};function L(I){var U;return U=j.call(this,I)||this,U.state={result:null,error:null,loading:!0,cacheKey:P(I)},invariant(!I.__chunkExtractor||b.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),I.__chunkExtractor?S.ssr===!1?_assertThisInitialized$6(U):(b.requireAsync(I).catch(function(){return null}),U.loadSync(),I.__chunkExtractor.addChunk(b.chunkName(I)),_assertThisInitialized$6(U)):(S.ssr!==!1&&(b.isReady&&b.isReady(I)||b.chunkName&&LOADABLE_SHARED.initialChunks[b.chunkName(I)])&&U.loadSync(),U)}var M=L.prototype;return M.componentDidMount=function(){this.mounted=!0;var U=this.getCache();U&&U.status===STATUS_REJECTED&&this.setCache(),this.state.loading&&this.loadAsync()},M.componentDidUpdate=function(U,z){z.cacheKey!==this.state.cacheKey&&this.loadAsync()},M.componentWillUnmount=function(){this.mounted=!1},M.safeSetState=function(U,z){this.mounted&&this.setState(U,z)},M.getCacheKey=function(){return P(this.props)},M.getCache=function(){return $[this.getCacheKey()]},M.setCache=function(U){U===void 0&&(U=void 0),$[this.getCacheKey()]=U},M.triggerOnLoad=function(){var U=this;f&&setTimeout(function(){f(U.state.result,U.props)})},M.loadSync=function(){if(this.state.loading)try{var U=b.requireSync(this.props),z=T(U,this.props,F);this.state.result=z,this.state.loading=!1}catch(H){this.state.error=H}},M.loadAsync=function(){var U=this,z=this.resolveAsync();return z.then(function(H){var G=T(H,U.props,F);U.safeSetState({result:G,loading:!1},function(){return U.triggerOnLoad()})}).catch(function(H){return U.safeSetState({error:H,loading:!1})}),z},M.resolveAsync=function(){var U=this.props;U.__chunkExtractor,U.forwardedRef;var z=_objectWithoutPropertiesLoose$9(U,["__chunkExtractor","forwardedRef"]);return C(z)},M.render=function(){var U=this.props,z=U.forwardedRef,H=U.fallback;U.__chunkExtractor;var G=_objectWithoutPropertiesLoose$9(U,["forwardedRef","fallback","__chunkExtractor"]),X=this.state,W=X.error,K=X.loading,ie=X.result;if(S.suspense){var ee=this.getCache()||this.loadAsync();if(ee.status===STATUS_PENDING)throw this.loadAsync()}if(W)throw W;var de=H||S.fallback||null;return K?de:c({fallback:de,result:ie,options:S,props:_extends$f({},G,{ref:z})})},L}(React$4.Component),A=withChunkExtractor(O),F=React$4.forwardRef(function(j,L){return React$4.createElement(A,Object.assign({forwardedRef:L},j))});return F.displayName="Loadable",F.preload=function(j){F.load(j)},F.load=function(j){return C(j)},F}function y(_,S){return d(_,_extends$f({},S,{suspense:!0}))}return{loadable:d,lazy:y}}function defaultResolveComponent(o){return o.__esModule?o.default:o.default||o}var _createLoadable=createLoadable({defaultResolveComponent,render:function(a){var s=a.result,c=a.props;return React$4.createElement(s,c)}}),loadable=_createLoadable.loadable,lazy=_createLoadable.lazy,_createLoadable$1=createLoadable({onLoad:function(a,s){a&&s.forwardedRef&&(typeof s.forwardedRef=="function"?s.forwardedRef(a):s.forwardedRef.current=a)},render:function(a){var s=a.result,c=a.props;return c.children?c.children(s):null}}),loadable$1=_createLoadable$1.loadable,lazy$1=_createLoadable$1.lazy,loadable$2=loadable;loadable$2.lib=loadable$1;var lazy$2=lazy;lazy$2.lib=lazy$1;const useStyles$e=createStyles(({css:o,token:a})=>({loadingContainer:o` +`,EMPTY_PROPS={};function applyNodeProps(o,a,s=EMPTY_PROPS){if(!zIndexWarningShowed&&"zIndex"in a&&(zIndexWarningShowed=!0),!dragWarningShowed&&a.draggable){var c=a.x!==void 0||a.y!==void 0,f=a.onDragEnd||a.onDragMove;c&&!f&&(dragWarningShowed=!0)}for(var d in s)if(!propsToSkip[d]){var y=d.slice(0,2)==="on",_=s[d]!==a[d];if(y&&_){var S=d.substr(2).toLowerCase();S.substr(0,7)==="content"&&(S="content"+S.substr(7,1).toUpperCase()+S.substr(8)),o.off(S,s[d])}var b=!a.hasOwnProperty(d);b&&o.setAttr(d,void 0)}var $=a._useStrictMode,P={},T=!1;const C={};for(var d in a)if(!propsToSkip[d]){var y=d.slice(0,2)==="on",O=s[d]!==a[d];if(y&&O){var S=d.substr(2).toLowerCase();S.substr(0,7)==="content"&&(S="content"+S.substr(7,1).toUpperCase()+S.substr(8)),a[d]&&(C[S]=a[d])}!y&&(a[d]!==s[d]||$&&a[d]!==o.getAttr(d))&&(T=!0,P[d]=a[d])}T&&(o.setAttrs(P),updatePicture(o));for(var S in C)o.on(S+EVENTS_NAMESPACE,C[S])}function updatePicture(o){if(!Global.Konva.autoDrawEnabled){var a=o.getLayer()||o.getStage();a&&a.batchDraw()}}const NO_CONTEXT={},UPDATE_SIGNAL={};Konva.Node.prototype._applyProps=applyNodeProps;function appendInitialChild(o,a){typeof a!="string"&&(o.add(a),updatePicture(o))}function createInstance$1(o,a,s){let c=Konva[o];c||(c=Konva.Group);const f={},d={};for(var y in a){var _=y.slice(0,2)==="on";_?d[y]=a[y]:f[y]=a[y]}const S=new c(f);return applyNodeProps(S,d),S}function createTextInstance(o,a,s){}function finalizeInitialChildren(o,a,s){return!1}function getPublicInstance(o){return o}function prepareForCommit(){return null}function preparePortalMount(){return null}function prepareUpdate(o,a,s,c){return UPDATE_SIGNAL}function resetAfterCommit(){}function resetTextContent(o){}function shouldDeprioritizeSubtree(o,a){return!1}function getRootHostContext(){return NO_CONTEXT}function getChildHostContext(){return NO_CONTEXT}const scheduleTimeout=setTimeout,cancelTimeout=clearTimeout,noTimeout=-1;function shouldSetTextContent(o,a){return!1}const isPrimaryRenderer=!1,warnsIfNotActing=!0,supportsMutation=!0;function appendChild(o,a){a.parent===o?a.moveToTop():o.add(a),updatePicture(o)}function appendChildToContainer(o,a){a.parent===o?a.moveToTop():o.add(a),updatePicture(o)}function insertBefore(o,a,s){a._remove(),o.add(a),a.setZIndex(s.getZIndex()),updatePicture(o)}function insertInContainerBefore(o,a,s){insertBefore(o,a,s)}function removeChild(o,a){a.destroy(),a.off(EVENTS_NAMESPACE),updatePicture(o)}function removeChildFromContainer(o,a){a.destroy(),a.off(EVENTS_NAMESPACE),updatePicture(o)}function commitTextUpdate(o,a,s){}function commitMount(o,a,s){}function commitUpdate(o,a,s,c,f){applyNodeProps(o,f,c)}function hideInstance(o){o.hide(),updatePicture(o)}function hideTextInstance(o){}function unhideInstance(o,a){(a.visible==null||a.visible)&&o.show()}function unhideTextInstance(o,a){}function clearContainer(o){}function detachDeletedInstance(){}const getCurrentEventPriority=()=>constantsExports.DefaultEventPriority,HostConfig=Object.freeze(Object.defineProperty({__proto__:null,appendChild,appendChildToContainer,appendInitialChild,cancelTimeout,clearContainer,commitMount,commitTextUpdate,commitUpdate,createInstance:createInstance$1,createTextInstance,detachDeletedInstance,finalizeInitialChildren,getChildHostContext,getCurrentEventPriority,getPublicInstance,getRootHostContext,hideInstance,hideTextInstance,idlePriority:schedulerExports.unstable_IdlePriority,insertBefore,insertInContainerBefore,isPrimaryRenderer,noTimeout,now:schedulerExports.unstable_now,prepareForCommit,preparePortalMount,prepareUpdate,removeChild,removeChildFromContainer,resetAfterCommit,resetTextContent,run:schedulerExports.unstable_runWithPriority,scheduleTimeout,shouldDeprioritizeSubtree,shouldSetTextContent,supportsMutation,unhideInstance,unhideTextInstance,warnsIfNotActing},Symbol.toStringTag,{value:"Module"}));var __defProp$1=Object.defineProperty,__defProps$1=Object.defineProperties,__getOwnPropDescs$1=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$1=Object.getOwnPropertySymbols,__hasOwnProp$1=Object.prototype.hasOwnProperty,__propIsEnum$1=Object.prototype.propertyIsEnumerable,__defNormalProp$1=(o,a,s)=>a in o?__defProp$1(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,__spreadValues$1=(o,a)=>{for(var s in a||(a={}))__hasOwnProp$1.call(a,s)&&__defNormalProp$1(o,s,a[s]);if(__getOwnPropSymbols$1)for(var s of __getOwnPropSymbols$1(a))__propIsEnum$1.call(a,s)&&__defNormalProp$1(o,s,a[s]);return o},__spreadProps$1=(o,a)=>__defProps$1(o,__getOwnPropDescs$1(a));function traverseFiber(o,a,s){if(!o)return;if(s(o)===!0)return o;let c=a?o.return:o.child;for(;c;){const f=traverseFiber(c,a,s);if(f)return f;c=a?null:c.sibling}}function wrapContext(o){try{return Object.defineProperties(o,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch(a){return o}}const FiberContext=wrapContext(reactExports.createContext(null));class FiberProvider extends reactExports.Component{render(){return reactExports.createElement(FiberContext.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner,ReactCurrentDispatcher}=reactExports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function useFiber(){const o=reactExports.useContext(FiberContext);if(o===null)throw new Error("its-fine: useFiber must be called within a !");const a=reactExports.useId();return reactExports.useMemo(()=>{for(const c of[ReactCurrentOwner==null?void 0:ReactCurrentOwner.current,o,o==null?void 0:o.alternate]){if(!c)continue;const f=traverseFiber(c,!1,d=>{let y=d.memoizedState;for(;y;){if(y.memoizedState===a)return!0;y=y.next}});if(f)return f}},[o,a])}function useContextMap(){var o,a;const s=useFiber(),[c]=reactExports.useState(()=>new Map);c.clear();let f=s;for(;f;){const d=(o=f.type)==null?void 0:o._context;d&&d!==FiberContext&&!c.has(d)&&c.set(d,(a=ReactCurrentDispatcher==null?void 0:ReactCurrentDispatcher.current)==null?void 0:a.readContext(wrapContext(d))),f=f.return}return c}function useContextBridge(){const o=useContextMap();return reactExports.useMemo(()=>Array.from(o.keys()).reduce((a,s)=>c=>reactExports.createElement(a,null,reactExports.createElement(s.Provider,__spreadProps$1(__spreadValues$1({},c),{value:o.get(s)}))),a=>reactExports.createElement(FiberProvider,__spreadValues$1({},a))),[o])}function usePrevious(o){const a=React$4.useRef({});return React$4.useLayoutEffect(()=>{a.current=o}),React$4.useLayoutEffect(()=>()=>{a.current={}},[]),a.current}const StageWrap=o=>{const a=React$4.useRef(),s=React$4.useRef(),c=React$4.useRef(),f=usePrevious(o),d=useContextBridge(),y=_=>{const{forwardedRef:S}=o;S&&(typeof S=="function"?S(_):S.current=_)};return React$4.useLayoutEffect(()=>(s.current=new Konva.Stage({width:o.width,height:o.height,container:a.current}),y(s.current),c.current=KonvaRenderer.createContainer(s.current,constantsExports.LegacyRoot,!1,null),KonvaRenderer.updateContainer(React$4.createElement(d,{},o.children),c.current),()=>{Konva.isBrowser&&(y(null),KonvaRenderer.updateContainer(null,c.current,null),s.current.destroy())}),[]),React$4.useLayoutEffect(()=>{y(s.current),applyNodeProps(s.current,o,f),KonvaRenderer.updateContainer(React$4.createElement(d,{},o.children),c.current,null)}),React$4.createElement("div",{ref:a,id:o.id,accessKey:o.accessKey,className:o.className,role:o.role,style:o.style,tabIndex:o.tabIndex,title:o.title})},KonvaRenderer=ReactFiberReconciler(HostConfig);KonvaRenderer.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:React$4.version,rendererPackageName:"react-konva"});React$4.forwardRef((o,a)=>React$4.createElement(FiberProvider,{},React$4.createElement(StageWrap,$e(se({},o),{forwardedRef:a}))));const cyanImg="/react-antd-admin-pnpm/assets/cyan-blur-b0a7d652.png",redImg="/react-antd-admin-pnpm/assets/red-blur-bf4de889.png";function _inheritsLoose$2(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,_setPrototypeOf$8(o,a)}function invariant(o,a){if(!o){var s=new Error("loadable: "+a);throw s.framesToPop=1,s.name="Invariant Violation",s}}var Context=React$4.createContext(),LOADABLE_SHARED={initialChunks:{}},STATUS_PENDING="PENDING",STATUS_RESOLVED="RESOLVED",STATUS_REJECTED="REJECTED";function resolveConstructor(o){return typeof o=="function"?{requireAsync:o,resolve:function(){},chunkName:function(){}}:o}var withChunkExtractor=function(a){var s=function(f){return React$4.createElement(Context.Consumer,null,function(d){return React$4.createElement(a,Object.assign({__chunkExtractor:d},f))})};return a.displayName&&(s.displayName=a.displayName+"WithChunkExtractor"),s},identity$2=function(a){return a};function createLoadable(o){var a=o.defaultResolveComponent,s=a===void 0?identity$2:a,c=o.render,f=o.onLoad;function d(_,S){S===void 0&&(S={});var b=resolveConstructor(_),$={};function P(j){return S.cacheKey?S.cacheKey(j):b.resolve?b.resolve(j):"static"}function T(j,L,F){var I=S.resolveComponent?S.resolveComponent(j,L):s(j);return hoistNonReactStatics(F,I,{preload:!0}),I}var C=function(L){var F=P(L),I=$[F];return(!I||I.status===STATUS_REJECTED)&&(I=b.requireAsync(L),I.status=STATUS_PENDING,$[F]=I,I.then(function(){I.status=STATUS_RESOLVED},function(U){I.status=STATUS_REJECTED})),I},O=function(j){_inheritsLoose$2(L,j),L.getDerivedStateFromProps=function(U,z){var H=P(U);return _extends$f({},z,{cacheKey:H,loading:z.loading||z.cacheKey!==H})};function L(I){var U;return U=j.call(this,I)||this,U.state={result:null,error:null,loading:!0,cacheKey:P(I)},invariant(!I.__chunkExtractor||b.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),I.__chunkExtractor?S.ssr===!1?_assertThisInitialized$6(U):(b.requireAsync(I).catch(function(){return null}),U.loadSync(),I.__chunkExtractor.addChunk(b.chunkName(I)),_assertThisInitialized$6(U)):(S.ssr!==!1&&(b.isReady&&b.isReady(I)||b.chunkName&&LOADABLE_SHARED.initialChunks[b.chunkName(I)])&&U.loadSync(),U)}var F=L.prototype;return F.componentDidMount=function(){this.mounted=!0;var U=this.getCache();U&&U.status===STATUS_REJECTED&&this.setCache(),this.state.loading&&this.loadAsync()},F.componentDidUpdate=function(U,z){z.cacheKey!==this.state.cacheKey&&this.loadAsync()},F.componentWillUnmount=function(){this.mounted=!1},F.safeSetState=function(U,z){this.mounted&&this.setState(U,z)},F.getCacheKey=function(){return P(this.props)},F.getCache=function(){return $[this.getCacheKey()]},F.setCache=function(U){U===void 0&&(U=void 0),$[this.getCacheKey()]=U},F.triggerOnLoad=function(){var U=this;f&&setTimeout(function(){f(U.state.result,U.props)})},F.loadSync=function(){if(this.state.loading)try{var U=b.requireSync(this.props),z=T(U,this.props,M);this.state.result=z,this.state.loading=!1}catch(H){this.state.error=H}},F.loadAsync=function(){var U=this,z=this.resolveAsync();return z.then(function(H){var G=T(H,U.props,M);U.safeSetState({result:G,loading:!1},function(){return U.triggerOnLoad()})}).catch(function(H){return U.safeSetState({error:H,loading:!1})}),z},F.resolveAsync=function(){var U=this.props;U.__chunkExtractor,U.forwardedRef;var z=_objectWithoutPropertiesLoose$9(U,["__chunkExtractor","forwardedRef"]);return C(z)},F.render=function(){var U=this.props,z=U.forwardedRef,H=U.fallback;U.__chunkExtractor;var G=_objectWithoutPropertiesLoose$9(U,["forwardedRef","fallback","__chunkExtractor"]),X=this.state,W=X.error,K=X.loading,ie=X.result;if(S.suspense){var ee=this.getCache()||this.loadAsync();if(ee.status===STATUS_PENDING)throw this.loadAsync()}if(W)throw W;var de=H||S.fallback||null;return K?de:c({fallback:de,result:ie,options:S,props:_extends$f({},G,{ref:z})})},L}(React$4.Component),A=withChunkExtractor(O),M=React$4.forwardRef(function(j,L){return React$4.createElement(A,Object.assign({forwardedRef:L},j))});return M.displayName="Loadable",M.preload=function(j){M.load(j)},M.load=function(j){return C(j)},M}function y(_,S){return d(_,_extends$f({},S,{suspense:!0}))}return{loadable:d,lazy:y}}function defaultResolveComponent(o){return o.__esModule?o.default:o.default||o}var _createLoadable=createLoadable({defaultResolveComponent,render:function(a){var s=a.result,c=a.props;return React$4.createElement(s,c)}}),loadable=_createLoadable.loadable,lazy=_createLoadable.lazy,_createLoadable$1=createLoadable({onLoad:function(a,s){a&&s.forwardedRef&&(typeof s.forwardedRef=="function"?s.forwardedRef(a):s.forwardedRef.current=a)},render:function(a){var s=a.result,c=a.props;return c.children?c.children(s):null}}),loadable$1=_createLoadable$1.loadable,lazy$1=_createLoadable$1.lazy,loadable$2=loadable;loadable$2.lib=loadable$1;var lazy$2=lazy;lazy$2.lib=lazy$1;const useStyles$e=createStyles(({css:o,token:a})=>({loadingContainer:o` width: 100%; height: 100%; display: flex; @@ -106,7 +106,7 @@ For more info see: https://github.com/konvajs/react-konva/issues/194 background-color: unset; } `])),s)}});function _typeof$d(o){"@babel/helpers - typeof";return _typeof$d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$d(o)}function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0;--le){var ae=this.tryEntries[le],ce=ae.completion;if(ae.tryLoc==="root")return fe("end");if(ae.tryLoc<=this.prev){var ge=c.call(ae,"catchLoc"),pe=c.call(ae,"finallyLoc");if(ge&&pe){if(this.prev=0;--fe){var le=this.tryEntries[fe];if(le.tryLoc<=this.prev&&c.call(le,"finallyLoc")&&this.prev=0;--ne){var fe=this.tryEntries[ne];if(fe.finallyLoc===J)return this.complete(fe.completion,fe.afterLoc),ee(fe),F}},catch:function(J){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var fe=this.tryEntries[ne];if(fe.tryLoc===J){var le=fe.completion;if(le.type==="throw"){var ae=le.arg;ee(fe)}return ae}}throw new Error("illegal catch attempt")},delegateYield:function(J,ne,fe){return this.delegate={iterator:Z(J),resultName:ne,nextLoc:fe},this.method==="next"&&(this.arg=o),F}},a}function asyncGeneratorStep$1(o,a,s,c,f,d,y){try{var _=o[d](y),S=_.value}catch(b){s(b);return}_.done?a(S):Promise.resolve(S).then(c,f)}function _asyncToGenerator$1(o){return function(){var a=this,s=arguments;return new Promise(function(c,f){var d=o.apply(a,s);function y(S){asyncGeneratorStep$1(d,c,f,y,_,"next",S)}function _(S){asyncGeneratorStep$1(d,c,f,y,_,"throw",S)}y(void 0)})}}function _toConsumableArray$9(o){return _arrayWithoutHoles$9(o)||_iterableToArray$9(o)||_unsupportedIterableToArray$a(o)||_nonIterableSpread$9()}function _nonIterableSpread$9(){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 _unsupportedIterableToArray$b(o,a){if(o){if(typeof o=="string")return _arrayLikeToArray$b(o,a);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray$b(o,a)}}function _arrayLikeToArray$b(o,a){(a==null||a>o.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0;--le){var ae=this.tryEntries[le],ce=ae.completion;if(ae.tryLoc==="root")return fe("end");if(ae.tryLoc<=this.prev){var ge=c.call(ae,"catchLoc"),pe=c.call(ae,"finallyLoc");if(ge&&pe){if(this.prev=0;--fe){var le=this.tryEntries[fe];if(le.tryLoc<=this.prev&&c.call(le,"finallyLoc")&&this.prev=0;--ne){var fe=this.tryEntries[ne];if(fe.finallyLoc===J)return this.complete(fe.completion,fe.afterLoc),ee(fe),M}},catch:function(J){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var fe=this.tryEntries[ne];if(fe.tryLoc===J){var le=fe.completion;if(le.type==="throw"){var ae=le.arg;ee(fe)}return ae}}throw new Error("illegal catch attempt")},delegateYield:function(J,ne,fe){return this.delegate={iterator:Z(J),resultName:ne,nextLoc:fe},this.method==="next"&&(this.arg=o),M}},a}function asyncGeneratorStep$1(o,a,s,c,f,d,y){try{var _=o[d](y),S=_.value}catch(b){s(b);return}_.done?a(S):Promise.resolve(S).then(c,f)}function _asyncToGenerator$1(o){return function(){var a=this,s=arguments;return new Promise(function(c,f){var d=o.apply(a,s);function y(S){asyncGeneratorStep$1(d,c,f,y,_,"next",S)}function _(S){asyncGeneratorStep$1(d,c,f,y,_,"throw",S)}y(void 0)})}}function _toConsumableArray$9(o){return _arrayWithoutHoles$9(o)||_iterableToArray$9(o)||_unsupportedIterableToArray$a(o)||_nonIterableSpread$9()}function _nonIterableSpread$9(){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 _iterableToArray$9(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function _arrayWithoutHoles$9(o){if(Array.isArray(o))return _arrayLikeToArray$a(o)}function _slicedToArray$6(o,a){return _arrayWithHoles$6(o)||_iterableToArrayLimit$6(o,a)||_unsupportedIterableToArray$a(o,a)||_nonIterableRest$6()}function _nonIterableRest$6(){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 _unsupportedIterableToArray$a(o,a){if(o){if(typeof o=="string")return _arrayLikeToArray$a(o,a);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray$a(o,a)}}function _arrayLikeToArray$a(o,a){(a==null||a>o.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$7(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function ownKeys$e(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$d(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$7(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function ownKeys$e(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$d(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$6(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var isExpression$1=function(a){return typeof a!="string"?!1:/^{{(.+)}}$/.test(a)};function parseExpression(o,a){var s=o.substring(2,o.length-2),c=s.replace(/formValues/g,JSON.stringify(a));try{return new Function("return ("+c+")")()}catch(f){}return c}function parseFields(o,a){var s=function c(f){var d=f.children,y=_objectWithoutProperties$4(f,_excluded$5);for(var _ in y)Array.isArray(y[_])&&_==="children"?y[_]=y[_].map(function(S){return c(_objectSpread$b({},S))}):isObj(y[_])&&!(dayjs(y[_]).isValid()||reactExports.isValidElement(y[_]))?y[_]=c(_objectSpread$b({},y[_])):isExpression$1(y[_])&&(y[_]=parseExpression(y[_],a));return _objectSpread$b(_objectSpread$b({},y),{},{children:d})};return o.map(function(c){return s(_objectSpread$b({},c))})}var getDateValue=function(a,s,c){var f,d=s!=null&&s.showTime||s!=null&&(f=s.props)!==null&&f!==void 0&&f.showTime?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";if(s.formatRule&&(d=s.formatRule),s.readonlyFormatRule&&c&&(d=s.readonlyFormatRule),s.type===FORM_TYPE_DATE)a=a?dayjs(a).format(d):null;else if(Array.isArray(a)&&s.type===FORM_TYPE_DATE_RANGE){var y=a,_=_slicedToArray$4(y,2),S=_[0],b=_[1];a=[S?dayjs(S).format(d):null,b?dayjs(b).format(d):null]}return a};function _typeof$7(o){"@babel/helpers - typeof";return _typeof$7=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$7(o)}var _excluded$4=["key","name"];function _extends$6(){return _extends$6=Object.assign?Object.assign.bind():function(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$5(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function _defineProperty$c(o,a,s){return a=_toPropertyKey$8(a),a in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s,o}function _toPropertyKey$8(o){var a=_toPrimitive$8(o,"string");return _typeof$7(a)=="symbol"?a:String(a)}function _toPrimitive$8(o,a){if(_typeof$7(o)!="object"||!o)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,a||"default");if(_typeof$7(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(o)}function _toConsumableArray$5(o){return _arrayWithoutHoles$5(o)||_iterableToArray$5(o)||_unsupportedIterableToArray$4(o)||_nonIterableSpread$5()}function _nonIterableSpread$5(){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 _iterableToArray$5(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function _arrayWithoutHoles$5(o){if(Array.isArray(o))return _arrayLikeToArray$4(o)}function _slicedToArray$3(o,a){return _arrayWithHoles$3(o)||_iterableToArrayLimit$3(o,a)||_unsupportedIterableToArray$4(o,a)||_nonIterableRest$3()}function _nonIterableRest$3(){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 _unsupportedIterableToArray$4(o,a){if(o){if(typeof o=="string")return _arrayLikeToArray$4(o,a);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray$4(o,a)}}function _arrayLikeToArray$4(o,a){(a==null||a>o.length)&&(a=o.length);for(var s=0,c=new Array(a);s_&&React$4.createElement("span",{className:"g-form-list-action",onClick:function(){return A(G,I)}},React$4.createElement(Tooltip,{title:locale.form.removeRow},React$4.createElement(DeleteOutlined,null)))))}),T=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$4(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s_&&React$4.createElement("span",{className:"g-form-list-action",onClick:function(){return A(G,I)}},React$4.createElement(Tooltip,{title:locale.form.removeRow},React$4.createElement(DeleteOutlined,null)))))}),T=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$4(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);s=a||H<0||P&&G>=d}function j(){var z=now$1();if(F(z))return L(z);_=setTimeout(j,A(z))}function L(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function M(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function I(){return _===void 0?y:L(now$1())}function U(){var z=now$1(),H=F(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return clearTimeout(_),_=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=M,U.flush=I,U}var debounce_1=debounce$2;const debounce$3=getDefaultExportFromCjs(debounce_1);var debounce$1=debounce_1,isObject$5=isObject_1,FUNC_ERROR_TEXT$1="Expected a function";function throttle$2(o,a,s){var c=!0,f=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$5(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),debounce$1(o,a,{leading:c,maxWait:a,trailing:f})}var throttle_1=throttle$2;const throttle$3=getDefaultExportFromCjs(throttle_1);var extendStatics=function(o,a){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var f in c)c.hasOwnProperty(f)&&(s[f]=c[f])},extendStatics(o,a)};function __extends$1(o,a){extendStatics(o,a);function s(){this.constructor=o}o.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}var __assign$1=function(){return __assign$1=Object.assign||function(a){for(var s,c=1,f=arguments.length;c0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const s=(o=window.document)===null||o===void 0||(o=o.documentElement)===null||o===void 0?void 0:o.style;if(!s||a in s)return"";for(let c=0;ca===s.identifier)||o.changedTouches&&(0,_shims$2.findInArray)(o.changedTouches,s=>a===s.identifier)}function getTouchIdentifier(o){if(o.targetTouches&&o.targetTouches[0])return o.targetTouches[0].identifier;if(o.changedTouches&&o.changedTouches[0])return o.changedTouches[0].identifier}function addUserSelectStyles(o){if(!o)return;let a=o.getElementById("react-draggable-style-el");a||(a=o.createElement("style"),a.type="text/css",a.id="react-draggable-style-el",a.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} + }`])));return{gSearch:c,gForm:d,inline:f,antCardBody:y}}),index$1="";var dist={},DetectableOverflow$1={};function isObject$8(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}var isObject_1=isObject$8,freeGlobal$4=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$4,freeGlobal$3=_freeGlobal,freeSelf$2=typeof self=="object"&&self&&self.Object===Object&&self,root$5=freeGlobal$3||freeSelf$2||Function("return this")(),_root=root$5,root$4=_root,now$2=function(){return root$4.Date.now()},now_1=now$2,reWhitespace=/\s/;function trimmedEndIndex$1(o){for(var a=o.length;a--&&reWhitespace.test(o.charAt(a)););return a}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(o){return o&&o.slice(0,trimmedEndIndex(o)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root$3=_root,Symbol$5=root$3.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$i=Object.prototype,hasOwnProperty$e=objectProto$i.hasOwnProperty,nativeObjectToString$3=objectProto$i.toString,symToStringTag$3=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$2(o){var a=hasOwnProperty$e.call(o,symToStringTag$3),s=o[symToStringTag$3];try{o[symToStringTag$3]=void 0;var c=!0}catch(d){}var f=nativeObjectToString$3.call(o);return c&&(a?o[symToStringTag$3]=s:delete o[symToStringTag$3]),f}var _getRawTag=getRawTag$2,objectProto$h=Object.prototype,nativeObjectToString$2=objectProto$h.toString;function objectToString$4(o){return nativeObjectToString$2.call(o)}var _objectToString=objectToString$4,Symbol$3=_Symbol,getRawTag$1=_getRawTag,objectToString$3=_objectToString,nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$2(o){return o==null?o===void 0?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(o)?getRawTag$1(o):objectToString$3(o)}var _baseGetTag=baseGetTag$2;function isObjectLike$4(o){return o!=null&&typeof o=="object"}var isObjectLike_1=isObjectLike$4,baseGetTag$1=_baseGetTag,isObjectLike$3=isObjectLike_1,symbolTag$4="[object Symbol]";function isSymbol$3(o){return typeof o=="symbol"||isObjectLike$3(o)&&baseGetTag$1(o)==symbolTag$4}var isSymbol_1=isSymbol$3,baseTrim=_baseTrim,isObject$7=isObject_1,isSymbol$2=isSymbol_1,NAN$1=0/0,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$2(o){if(typeof o=="number")return o;if(isSymbol$2(o))return NAN$1;if(isObject$7(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=isObject$7(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=baseTrim(o);var s=reIsBinary$1.test(o);return s||reIsOctal$1.test(o)?freeParseInt$1(o.slice(2),s?2:8):reIsBadHex$1.test(o)?NAN$1:+o}var toNumber_1=toNumber$2,isObject$6=isObject_1,now$1=now_1,toNumber$1=toNumber_1,FUNC_ERROR_TEXT$2="Expected a function",nativeMax$2=Math.max,nativeMin$2=Math.min;function debounce$2(o,a,s){var c,f,d,y,_,S,b=0,$=!1,P=!1,T=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT$2);a=toNumber$1(a)||0,isObject$6(s)&&($=!!s.leading,P="maxWait"in s,d=P?nativeMax$2(toNumber$1(s.maxWait)||0,a):d,T="trailing"in s?!!s.trailing:T);function C(z){var H=c,G=f;return c=f=void 0,b=z,y=o.apply(G,H),y}function O(z){return b=z,_=setTimeout(j,a),$?C(z):y}function A(z){var H=z-S,G=z-b,X=a-H;return P?nativeMin$2(X,d-G):X}function M(z){var H=z-S,G=z-b;return S===void 0||H>=a||H<0||P&&G>=d}function j(){var z=now$1();if(M(z))return L(z);_=setTimeout(j,A(z))}function L(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function F(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function I(){return _===void 0?y:L(now$1())}function U(){var z=now$1(),H=M(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return clearTimeout(_),_=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=F,U.flush=I,U}var debounce_1=debounce$2;const debounce$3=getDefaultExportFromCjs(debounce_1);var debounce$1=debounce_1,isObject$5=isObject_1,FUNC_ERROR_TEXT$1="Expected a function";function throttle$2(o,a,s){var c=!0,f=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$5(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),debounce$1(o,a,{leading:c,maxWait:a,trailing:f})}var throttle_1=throttle$2;const throttle$3=getDefaultExportFromCjs(throttle_1);var extendStatics=function(o,a){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var f in c)c.hasOwnProperty(f)&&(s[f]=c[f])},extendStatics(o,a)};function __extends$1(o,a){extendStatics(o,a);function s(){this.constructor=o}o.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}var __assign$1=function(){return __assign$1=Object.assign||function(a){for(var s,c=1,f=arguments.length;c0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const s=(o=window.document)===null||o===void 0||(o=o.documentElement)===null||o===void 0?void 0:o.style;if(!s||a in s)return"";for(let c=0;ca===s.identifier)||o.changedTouches&&(0,_shims$2.findInArray)(o.changedTouches,s=>a===s.identifier)}function getTouchIdentifier(o){if(o.targetTouches&&o.targetTouches[0])return o.targetTouches[0].identifier;if(o.changedTouches&&o.changedTouches[0])return o.changedTouches[0].identifier}function addUserSelectStyles(o){if(!o)return;let a=o.getElementById("react-draggable-style-el");a||(a=o.createElement("style"),a.type="text/css",a.id="react-draggable-style-el",a.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `,a.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,o.getElementsByTagName("head")[0].appendChild(a)),o.body&&addClassName(o.body,"react-draggable-transparent-selection")}function removeUserSelectStyles(o){if(o)try{if(o.body&&removeClassName(o.body,"react-draggable-transparent-selection"),o.selection)o.selection.empty();else{const a=(o.defaultView||window).getSelection();a&&a.type!=="Caret"&&a.removeAllRanges()}}catch(a){}}function addClassName(o,a){o.classList?o.classList.add(a):o.className.match(new RegExp("(?:^|\\s)".concat(a,"(?!\\S)")))||(o.className+=" ".concat(a))}function removeClassName(o,a){o.classList?o.classList.remove(a):o.className=o.className.replace(new RegExp("(?:^|\\s)".concat(a,"(?!\\S)"),"g"),"")}var positionFns={};Object.defineProperty(positionFns,"__esModule",{value:!0});positionFns.canDragX=canDragX;positionFns.canDragY=canDragY;positionFns.createCoreData=createCoreData;positionFns.createDraggableData=createDraggableData;positionFns.getBoundPosition=getBoundPosition;positionFns.getControlPosition=getControlPosition;positionFns.snapToGrid=snapToGrid;var _shims$1=shims,_domFns$1=domFns;function getBoundPosition(o,a,s){if(!o.props.bounds)return[a,s];let{bounds:c}=o.props;c=typeof c=="string"?c:cloneBounds(c);const f=findDOMNode(o);if(typeof c=="string"){const{ownerDocument:d}=f,y=d.defaultView;let _;if(c==="parent"?_=f.parentNode:_=d.querySelector(c),!(_ instanceof y.HTMLElement))throw new Error('Bounds selector "'+c+'" could not find an element.');const S=_,b=y.getComputedStyle(f),$=y.getComputedStyle(S);c={left:-f.offsetLeft+(0,_shims$1.int)($.paddingLeft)+(0,_shims$1.int)(b.marginLeft),top:-f.offsetTop+(0,_shims$1.int)($.paddingTop)+(0,_shims$1.int)(b.marginTop),right:(0,_domFns$1.innerWidth)(S)-(0,_domFns$1.outerWidth)(f)-f.offsetLeft+(0,_shims$1.int)($.paddingRight)-(0,_shims$1.int)(b.marginRight),bottom:(0,_domFns$1.innerHeight)(S)-(0,_domFns$1.outerHeight)(f)-f.offsetTop+(0,_shims$1.int)($.paddingBottom)-(0,_shims$1.int)(b.marginBottom)}}return(0,_shims$1.isNum)(c.right)&&(a=Math.min(a,c.right)),(0,_shims$1.isNum)(c.bottom)&&(s=Math.min(s,c.bottom)),(0,_shims$1.isNum)(c.left)&&(a=Math.max(a,c.left)),(0,_shims$1.isNum)(c.top)&&(s=Math.max(s,c.top)),[a,s]}function snapToGrid(o,a,s){const c=Math.round(a/o[0])*o[0],f=Math.round(s/o[1])*o[1];return[c,f]}function canDragX(o){return o.props.axis==="both"||o.props.axis==="x"}function canDragY(o){return o.props.axis==="both"||o.props.axis==="y"}function getControlPosition(o,a,s){const c=typeof a=="number"?(0,_domFns$1.getTouch)(o,a):null;if(typeof a=="number"&&!c)return null;const f=findDOMNode(s),d=s.props.offsetParent||f.offsetParent||f.ownerDocument.body;return(0,_domFns$1.offsetXYFromParent)(c||o,d,s.props.scale)}function createCoreData(o,a,s){const c=!(0,_shims$1.isNum)(o.lastX),f=findDOMNode(o);return c?{node:f,deltaX:0,deltaY:0,lastX:a,lastY:s,x:a,y:s}:{node:f,deltaX:a-o.lastX,deltaY:s-o.lastY,lastX:o.lastX,lastY:o.lastY,x:a,y:s}}function createDraggableData(o,a){const s=o.props.scale;return{node:a.node,x:o.state.x+a.deltaX/s,y:o.state.y+a.deltaY/s,deltaX:a.deltaX/s,deltaY:a.deltaY/s,lastX:o.state.x,lastY:o.state.y}}function cloneBounds(o){return{left:o.left,top:o.top,right:o.right,bottom:o.bottom}}function findDOMNode(o){const a=o.findDOMNode();if(!a)throw new Error(": Unmounted during event!");return a}var DraggableCore$2={},log$1={};Object.defineProperty(log$1,"__esModule",{value:!0});log$1.default=log;function log(){}Object.defineProperty(DraggableCore$2,"__esModule",{value:!0});DraggableCore$2.default=void 0;var React$2=_interopRequireWildcard$2(reactExports),_propTypes$3=_interopRequireDefault$5(propTypesExports),_reactDom=_interopRequireDefault$5(reactDomExports),_domFns=domFns,_positionFns=positionFns,_shims=shims,_log=_interopRequireDefault$5(log$1);function _interopRequireDefault$5(o){return o&&o.__esModule?o:{default:o}}function _getRequireWildcardCache$2(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(_getRequireWildcardCache$2=function(c){return c?s:a})(o)}function _interopRequireWildcard$2(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var s=_getRequireWildcardCache$2(a);if(s&&s.has(o))return s.get(o);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if(d!=="default"&&Object.prototype.hasOwnProperty.call(o,d)){var y=f?Object.getOwnPropertyDescriptor(o,d):null;y&&(y.get||y.set)?Object.defineProperty(c,d,y):c[d]=o[d]}return c.default=o,s&&s.set(o,c),c}function _defineProperty$a(o,a,s){return a=_toPropertyKey$6(a),a in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s,o}function _toPropertyKey$6(o){var a=_toPrimitive$6(o,"string");return typeof a=="symbol"?a:String(a)}function _toPrimitive$6(o,a){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,a||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(o)}const eventsFor={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let dragEventFor=eventsFor.mouse,DraggableCore$1=class extends React$2.Component{constructor(){super(...arguments),_defineProperty$a(this,"dragging",!1),_defineProperty$a(this,"lastX",NaN),_defineProperty$a(this,"lastY",NaN),_defineProperty$a(this,"touchIdentifier",null),_defineProperty$a(this,"mounted",!1),_defineProperty$a(this,"handleDragStart",a=>{if(this.props.onMouseDown(a),!this.props.allowAnyClick&&typeof a.button=="number"&&a.button!==0)return!1;const s=this.findDOMNode();if(!s||!s.ownerDocument||!s.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:c}=s;if(this.props.disabled||!(a.target instanceof c.defaultView.Node)||this.props.handle&&!(0,_domFns.matchesSelectorAndParentsTo)(a.target,this.props.handle,s)||this.props.cancel&&(0,_domFns.matchesSelectorAndParentsTo)(a.target,this.props.cancel,s))return;a.type==="touchstart"&&a.preventDefault();const f=(0,_domFns.getTouchIdentifier)(a);this.touchIdentifier=f;const d=(0,_positionFns.getControlPosition)(a,f,this);if(d==null)return;const{x:y,y:_}=d,S=(0,_positionFns.createCoreData)(this,y,_);(0,_log.default)("DraggableCore: handleDragStart: %j",S),(0,_log.default)("calling",this.props.onStart),!(this.props.onStart(a,S)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,_domFns.addUserSelectStyles)(c),this.dragging=!0,this.lastX=y,this.lastY=_,(0,_domFns.addEvent)(c,dragEventFor.move,this.handleDrag),(0,_domFns.addEvent)(c,dragEventFor.stop,this.handleDragStop))}),_defineProperty$a(this,"handleDrag",a=>{const s=(0,_positionFns.getControlPosition)(a,this.touchIdentifier,this);if(s==null)return;let{x:c,y:f}=s;if(Array.isArray(this.props.grid)){let _=c-this.lastX,S=f-this.lastY;if([_,S]=(0,_positionFns.snapToGrid)(this.props.grid,_,S),!_&&!S)return;c=this.lastX+_,f=this.lastY+S}const d=(0,_positionFns.createCoreData)(this,c,f);if((0,_log.default)("DraggableCore: handleDrag: %j",d),this.props.onDrag(a,d)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(_){const S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(S)}return}this.lastX=c,this.lastY=f}),_defineProperty$a(this,"handleDragStop",a=>{if(!this.dragging)return;const s=(0,_positionFns.getControlPosition)(a,this.touchIdentifier,this);if(s==null)return;let{x:c,y:f}=s;if(Array.isArray(this.props.grid)){let S=c-this.lastX||0,b=f-this.lastY||0;[S,b]=(0,_positionFns.snapToGrid)(this.props.grid,S,b),c=this.lastX+S,f=this.lastY+b}const d=(0,_positionFns.createCoreData)(this,c,f);if(this.props.onStop(a,d)===!1||this.mounted===!1)return!1;const _=this.findDOMNode();_&&this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(_.ownerDocument),(0,_log.default)("DraggableCore: handleDragStop: %j",d),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,_&&((0,_log.default)("DraggableCore: Removing handlers"),(0,_domFns.removeEvent)(_.ownerDocument,dragEventFor.move,this.handleDrag),(0,_domFns.removeEvent)(_.ownerDocument,dragEventFor.stop,this.handleDragStop))}),_defineProperty$a(this,"onMouseDown",a=>(dragEventFor=eventsFor.mouse,this.handleDragStart(a))),_defineProperty$a(this,"onMouseUp",a=>(dragEventFor=eventsFor.mouse,this.handleDragStop(a))),_defineProperty$a(this,"onTouchStart",a=>(dragEventFor=eventsFor.touch,this.handleDragStart(a))),_defineProperty$a(this,"onTouchEnd",a=>(dragEventFor=eventsFor.touch,this.handleDragStop(a)))}componentDidMount(){this.mounted=!0;const a=this.findDOMNode();a&&(0,_domFns.addEvent)(a,eventsFor.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const a=this.findDOMNode();if(a){const{ownerDocument:s}=a;(0,_domFns.removeEvent)(s,eventsFor.mouse.move,this.handleDrag),(0,_domFns.removeEvent)(s,eventsFor.touch.move,this.handleDrag),(0,_domFns.removeEvent)(s,eventsFor.mouse.stop,this.handleDragStop),(0,_domFns.removeEvent)(s,eventsFor.touch.stop,this.handleDragStop),(0,_domFns.removeEvent)(a,eventsFor.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(s)}}findDOMNode(){var a,s;return(a=this.props)!==null&&a!==void 0&&a.nodeRef?(s=this.props)===null||s===void 0||(s=s.nodeRef)===null||s===void 0?void 0:s.current:_reactDom.default.findDOMNode(this)}render(){return React$2.cloneElement(React$2.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};DraggableCore$2.default=DraggableCore$1;_defineProperty$a(DraggableCore$1,"displayName","DraggableCore");_defineProperty$a(DraggableCore$1,"propTypes",{allowAnyClick:_propTypes$3.default.bool,children:_propTypes$3.default.node.isRequired,disabled:_propTypes$3.default.bool,enableUserSelectHack:_propTypes$3.default.bool,offsetParent:function(o,a){if(o[a]&&o[a].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:_propTypes$3.default.arrayOf(_propTypes$3.default.number),handle:_propTypes$3.default.string,cancel:_propTypes$3.default.string,nodeRef:_propTypes$3.default.object,onStart:_propTypes$3.default.func,onDrag:_propTypes$3.default.func,onStop:_propTypes$3.default.func,onMouseDown:_propTypes$3.default.func,scale:_propTypes$3.default.number,className:_shims.dontSetMe,style:_shims.dontSetMe,transform:_shims.dontSetMe});_defineProperty$a(DraggableCore$1,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(o){Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"DraggableCore",{enumerable:!0,get:function(){return S.default}}),o.default=void 0;var a=T(reactExports),s=$(propTypesExports),c=$(reactDomExports),f=$(require$$3),d=domFns,y=positionFns,_=shims,S=$(DraggableCore$2),b=$(log$1);function $(L){return L&&L.__esModule?L:{default:L}}function P(L){if(typeof WeakMap!="function")return null;var M=new WeakMap,I=new WeakMap;return(P=function(U){return U?I:M})(L)}function T(L,M){if(!M&&L&&L.__esModule)return L;if(L===null||typeof L!="object"&&typeof L!="function")return{default:L};var I=P(M);if(I&&I.has(L))return I.get(L);var U={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in L)if(H!=="default"&&Object.prototype.hasOwnProperty.call(L,H)){var G=z?Object.getOwnPropertyDescriptor(L,H):null;G&&(G.get||G.set)?Object.defineProperty(U,H,G):U[H]=L[H]}return U.default=L,I&&I.set(L,U),U}function C(){return C=Object.assign?Object.assign.bind():function(L){for(var M=1;M{if((0,b.default)("Draggable: onDragStart: %j",U),this.props.onStart(I,(0,y.createDraggableData)(this,U))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),O(this,"onDrag",(I,U)=>{if(!this.state.dragging)return!1;(0,b.default)("Draggable: onDrag: %j",U);const z=(0,y.createDraggableData)(this,U),H={x:z.x,y:z.y,slackX:0,slackY:0};if(this.props.bounds){const{x:X,y:W}=H;H.x+=this.state.slackX,H.y+=this.state.slackY;const[K,ie]=(0,y.getBoundPosition)(this,H.x,H.y);H.x=K,H.y=ie,H.slackX=this.state.slackX+(X-H.x),H.slackY=this.state.slackY+(W-H.y),z.x=H.x,z.y=H.y,z.deltaX=H.x-this.state.x,z.deltaY=H.y-this.state.y}if(this.props.onDrag(I,z)===!1)return!1;this.setState(H)}),O(this,"onDragStop",(I,U)=>{if(!this.state.dragging||this.props.onStop(I,(0,y.createDraggableData)(this,U))===!1)return!1;(0,b.default)("Draggable: onDragStop: %j",U);const H={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:X,y:W}=this.props.position;H.x=X,H.y=W}this.setState(H)}),this.state={dragging:!1,dragged:!1,x:M.position?M.position.x:M.defaultPosition.x,y:M.position?M.position.y:M.defaultPosition.y,prevPropsPosition:se({},M.position),slackX:0,slackY:0,isElementSVG:!1},M.position&&(M.onDrag||M.onStop)}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var M,I;return(M=(I=this.props)===null||I===void 0||(I=I.nodeRef)===null||I===void 0?void 0:I.current)!==null&&M!==void 0?M:c.default.findDOMNode(this)}render(){const ae=this.props,{axis:M,bounds:I,children:U,defaultPosition:z,defaultClassName:H,defaultClassNameDragging:G,defaultClassNameDragged:X,position:W,positionOffset:K,scale:ie}=ae,ee=er(ae,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let de={},Z=null;const J=!!!W||this.state.dragging,ne=W||z,fe={x:(0,y.canDragX)(this)&&J?this.state.x:ne.x,y:(0,y.canDragY)(this)&&J?this.state.y:ne.y};this.state.isElementSVG?Z=(0,d.createSVGTransform)(fe,K):de=(0,d.createCSSTransform)(fe,K);const le=(0,f.default)(U.props.className||"",H,{[G]:this.state.dragging,[X]:this.state.dragged});return a.createElement(S.default,C({},ee,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),a.cloneElement(a.Children.only(U),{className:le,style:se(se({},U.props.style),de),transform:Z}))}}o.default=j,O(j,"displayName","Draggable"),O(j,"propTypes",$e(se({},S.default.propTypes),{axis:s.default.oneOf(["both","x","y","none"]),bounds:s.default.oneOfType([s.default.shape({left:s.default.number,right:s.default.number,top:s.default.number,bottom:s.default.number}),s.default.string,s.default.oneOf([!1])]),defaultClassName:s.default.string,defaultClassNameDragging:s.default.string,defaultClassNameDragged:s.default.string,defaultPosition:s.default.shape({x:s.default.number,y:s.default.number}),positionOffset:s.default.shape({x:s.default.oneOfType([s.default.number,s.default.string]),y:s.default.oneOfType([s.default.number,s.default.string])}),position:s.default.shape({x:s.default.number,y:s.default.number}),className:_.dontSetMe,style:_.dontSetMe,transform:_.dontSetMe})),O(j,"defaultProps",$e(se({},S.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))})(Draggable$1);const{default:Draggable,DraggableCore}=Draggable$1;cjs.exports=Draggable;cjs.exports.default=Draggable;cjs.exports.DraggableCore=DraggableCore;var cjsExports=cjs.exports,utils$5={};utils$5.__esModule=!0;utils$5.cloneElement=cloneElement;var _react=_interopRequireDefault$4(reactExports);function _interopRequireDefault$4(o){return o&&o.__esModule?o:{default:o}}function ownKeys$9(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$8(o){for(var a=1;a=0)&&(s[f]=o[f]);return s}function ownKeys$8(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$7(o){for(var a=1;aMath.abs(T*$)?d=f/$:f=d*$}var C=f,O=d,A=this.slack||[0,0],F=A[0],j=A[1];return f+=F,d+=j,_&&(f=Math.max(_[0],f),d=Math.max(_[1],d)),S&&(f=Math.min(S[0],f),d=Math.min(S[1],d)),this.slack=[F+(C-f),j+(O-d)],[f,d]},s.resizeHandler=function(f,d){var y=this;return function(_,S){var b=S.node,$=S.deltaX,P=S.deltaY;f==="onResizeStart"&&y.resetData();var T=(y.props.axis==="both"||y.props.axis==="x")&&d!=="n"&&d!=="s",C=(y.props.axis==="both"||y.props.axis==="y")&&d!=="e"&&d!=="w";if(!(!T&&!C)){var O=d[0],A=d[d.length-1],F=b.getBoundingClientRect();if(y.lastHandleRect!=null){if(A==="w"){var j=F.left-y.lastHandleRect.left;$+=j}if(O==="n"){var L=F.top-y.lastHandleRect.top;P+=L}}y.lastHandleRect=F,A==="w"&&($=-$),O==="n"&&(P=-P);var M=y.props.width+(T?$/y.props.transformScale:0),I=y.props.height+(C?P/y.props.transformScale:0),U=y.runConstraints(M,I);M=U[0],I=U[1];var z=M!==y.props.width||I!==y.props.height,H=typeof y.props[f]=="function"?y.props[f]:null,G=f==="onResize"&&!z;H&&!G&&(_.persist==null||_.persist(),H(_,{node:b,size:{width:M,height:I},handle:d})),f==="onResizeStop"&&y.resetData()}}},s.renderResizeHandle=function(f,d){var y=this.props.handle;if(!y)return React$1.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+f,ref:d});if(typeof y=="function")return y(f,d);var _=typeof y.type=="string",S=_objectSpread$7({ref:d},_?{}:{handleAxis:f});return React$1.cloneElement(y,S)},s.render=function(){var f=this,d=this.props,y=d.children,_=d.className,S=d.draggableOpts;d.width,d.height,d.handle,d.handleSize,d.lockAspectRatio,d.axis,d.minConstraints,d.maxConstraints,d.onResize,d.onResizeStop,d.onResizeStart;var b=d.resizeHandles;d.transformScale;var $=_objectWithoutPropertiesLoose$3(d,_excluded$2);return(0,_utils.cloneElement)(y,_objectSpread$7(_objectSpread$7({},$),{},{className:(_?_+" ":"")+"react-resizable",children:[].concat(y.props.children,b.map(function(P){var T,C=(T=f.handleRefs[P])!=null?T:f.handleRefs[P]=React$1.createRef();return React$1.createElement(_reactDraggable.DraggableCore,_extends$4({},S,{nodeRef:C,key:"resizableHandle-"+P,onStop:f.resizeHandler("onResizeStop",P),onStart:f.resizeHandler("onResizeStart",P),onDrag:f.resizeHandler("onResize",P)}),f.renderResizeHandle(P,C))}))}))},a}(React$1.Component);Resizable$2.default=Resizable$1;Resizable$1.propTypes=_propTypes$1.resizableProps;Resizable$1.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var ResizableBox$1={};ResizableBox$1.__esModule=!0;ResizableBox$1.default=void 0;var React=_interopRequireWildcard(reactExports),_propTypes=_interopRequireDefault$2(propTypesExports),_Resizable=_interopRequireDefault$2(Resizable$2),_propTypes2=propTypes,_excluded$1=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function _interopRequireDefault$2(o){return o&&o.__esModule?o:{default:o}}function _getRequireWildcardCache(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(_getRequireWildcardCache=function(f){return f?s:a})(o)}function _interopRequireWildcard(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var s=_getRequireWildcardCache(a);if(s&&s.has(o))return s.get(o);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if(d!=="default"&&Object.prototype.hasOwnProperty.call(o,d)){var y=f?Object.getOwnPropertyDescriptor(o,d):null;y&&(y.get||y.set)?Object.defineProperty(c,d,y):c[d]=o[d]}return c.default=o,s&&s.set(o,c),c}function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(o){for(var a=1;a=0)&&(s[f]=o[f]);return s}function _inheritsLoose(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,_setPrototypeOf$1(o,a)}function _setPrototypeOf$1(o,a){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},_setPrototypeOf$1(o,a)}var ResizableBox=function(o){_inheritsLoose(a,o);function a(){for(var c,f=arguments.length,d=new Array(f),y=0;y=a||H<0||P&&G>=d}function j(){var z=now();if(F(z))return L(z);_=setTimeout(j,A(z))}function L(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function M(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function I(){return _===void 0?y:L(now())}function U(){var z=now(),H=F(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return _=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=M,U.flush=I,U}function throttle(o,a,s){var c=!0,f=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$4(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),debounce(o,a,{leading:c,maxWait:a,trailing:f})}function isObject$4(o){var a=typeof o;return!!o&&(a=="object"||a=="function")}function isObjectLike$2(o){return!!o&&typeof o=="object"}function isSymbol$1(o){return typeof o=="symbol"||isObjectLike$2(o)&&objectToString$2.call(o)==symbolTag$3}function toNumber(o){if(typeof o=="number")return o;if(isSymbol$1(o))return NAN;if(isObject$4(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=isObject$4(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=o.replace(reTrim,"");var s=reIsBinary.test(o);return s||reIsOctal.test(o)?freeParseInt(o.slice(2),s?2:8):reIsBadHex.test(o)?NAN:+o}var lodash_throttle=throttle;const throttle$1=getDefaultExportFromCjs(lodash_throttle);var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,a,s)=>a in o?__defProp(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,__spreadValues=(o,a)=>{for(var s in a||(a={}))__hasOwnProp.call(a,s)&&__defNormalProp(o,s,a[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(a))__propIsEnum.call(a,s)&&__defNormalProp(o,s,a[s]);return o},__spreadProps=(o,a)=>__defProps(o,__getOwnPropDescs(a)),__objRest=(o,a)=>{var s={};for(var c in o)__hasOwnProp.call(o,c)&&a.indexOf(c)<0&&(s[c]=o[c]);if(o!=null&&__getOwnPropSymbols)for(var c of __getOwnPropSymbols(o))a.indexOf(c)<0&&__propIsEnum.call(o,c)&&(s[c]=o[c]);return s};function depthFirstSearch(o,a,s){const c=[...o];return function f(d){if(d)for(let y=0;y<(d==null?void 0:d.length);y++){if(a(d[y])){d[y]=__spreadProps(__spreadValues({},d[y]),{width:s});return}d[y].children&&f(d[y].children)}}(c),c}function isString$4(o){return typeof o=="string"}function isEmpty(o){return typeof o!="object"||o===null?!0:!(Array.isArray(o)&&o.length||Object.keys(o).length)}var useUnmountedRef=()=>{const o=reactExports.useRef(!1);return reactExports.useEffect(()=>(o.current=!1,()=>{o.current=!0}),[]),o};function useSafeState(o){const a=useUnmountedRef(),[s,c]=reactExports.useState(o),f=reactExports.useCallback(d=>{a.current||c(d)},[]);return[s,f]}var ResizableHeader=o=>{const a=o,{width:s,minWidth:c,maxWidth:f,resizable:d,hideInTable:y,onResize:_,onResizeStart:S,onResizeEnd:b,onMount:$,triggerRender:P,className:T,style:C,onClick:O,children:A,rowSpan:F,colSpan:j,title:L,scope:M,tooltipRender:I}=a,U=__objRest(a,["width","minWidth","maxWidth","resizable","hideInTable","onResize","onResizeStart","onResizeEnd","onMount","triggerRender","className","style","onClick","children","rowSpan","colSpan","title","scope","tooltipRender"]),[z,H]=useSafeState(0),{overflow:G,ref:X}=dist.useOverflowDetector({});if(reactExports.useEffect(()=>{s&&(H(s),$==null||$(s,{overflow:G}))},[P]),reactExports.useEffect(()=>{s&&H(s)},[H,s]),y)return null;if(!s||Number.isNaN(Number(s))||d===!1)return jsxRuntimeExports.jsx("th",__spreadProps(__spreadValues({},U),{"data-arh-disable":"true",style:C,className:T,onClick:O,rowSpan:F,colSpan:j,children:jsxRuntimeExports.jsx("span",{title:L,children:A})}));const W=Q=>{document.body.style.userSelect=Q?"none":"",document.body.style.pointerEvents=Q?"none":"",document.documentElement.style.cursor=Q?"col-resize":""},K=({},Q)=>{H(Q.size.width),W(!0),S==null||S(Q.size.width)},ie=({},Q)=>{H(Q.size.width)},ee=()=>{z<=0||(_(z,{overflow:G}),W(!1),b==null||b(z))},de=()=>{var Q,J;if(Array.isArray(A)){const ne=A[A.length-1];if(ne)return isString$4(ne)||((Q=ne.props)==null?void 0:Q.ellipsis)||isString$4((J=ne.props)==null?void 0:J.label)}return!1},Z=jsxRuntimeExports.jsx("div",__spreadProps(__spreadValues({},U),{ref:X,className:`resizable-title${de()?" ellipsis":""}`,children:A}));return jsxRuntimeExports.jsxs("th",{scope:M,className:`resizable-container ${T}`,style:__spreadProps(__spreadValues({},C),{overflow:"unset"}),"data-uarh-enable":"true",onClick:O,rowSpan:F,colSpan:j,children:[jsxRuntimeExports.jsx(Resizable,{className:"resizable-box",width:z,minConstraints:[c,0],maxConstraints:[f,0],height:0,handle:jsxRuntimeExports.jsx("div",{className:"resizable-handler",onClick:Q=>{Q.stopPropagation()},children:jsxRuntimeExports.jsx("div",{className:"resizable-line"})}),draggableOpts:{enableUserSelectHack:!1},onResizeStart:K,onResize:ie,onResizeStop:ee,children:jsxRuntimeExports.jsx("div",{style:{width:z,height:"100%"}})}),I?I({children:Z,open:G?void 0:!1,title:A}):Z]})},ResizableHeader_default=reactExports.memo(ResizableHeader);function useCreation(o,a){const{current:s}=reactExports.useRef({deps:a,obj:void 0,initialized:!1});return(s.initialized===!1||!depsAreSame(s.deps,a))&&(s.deps=a,s.obj=o(),s.initialized=!0),s.obj}function depsAreSame(o,a){if(o===a)return!0;for(let s=0;sdebounce$5((...y)=>c.current(...y),f,a),[]);return reactExports.useEffect(()=>{d.cancel()},[]),{run:d,cancel:d.cancel,flush:d.flush}}var GETKEY="dataIndex",ResizableUniqIdPrefix="resizable-table-id";function getUniqueId(o){return`${ResizableUniqIdPrefix}-${o}`}function getColumns(o){const a=o==null?void 0:o.filter(c=>!isEmpty(c));return a==null?void 0:a.map((c,f)=>{var d;return __spreadProps(__spreadValues({},c),{children:(d=c==null?void 0:c.children)!=null&&d.length?getColumns(c.children):void 0,[GETKEY]:c[GETKEY]||c.key||getUniqueId(`${c.title}-${f}`)})})}function useGetDataIndexColumns(o){return reactExports.useMemo(()=>getColumns(o),[o])||o}var isBrowser$2=!!(typeof window!="undefined"&&window.document&&window.document.createElement),useIsomorphicLayoutEffect=isBrowser$2?reactExports.useLayoutEffect:reactExports.useEffect;function useLatest$1(o){const a=reactExports.useRef(o);return a.current=o,a}function useMemoizedFn$1(o){const a=reactExports.useRef(o);a.current=reactExports.useMemo(()=>o,[o]);const s=reactExports.useRef();return s.current||(s.current=function(...c){return a.current.apply(this,c)}),s.current}function mergeColumns(o,a,s){const c=o;return Array.isArray(c)&&Array.isArray(a)&&c.forEach((f,d)=>{var y,_;f!=null&&f.children?mergeColumns(f.children,(y=a[d])==null?void 0:y.children,s):c[d][s]=((_=a.find(S=>S.dataIndex===c[d].dataIndex))==null?void 0:_[s])||c[d][s]}),c}function useLocalColumns({columnsState:o,resizableColumns:a,columns:s}){const c=useGetDataIndexColumns(s),f=useMemoizedFn$1(()=>{var S;const{persistenceType:b,persistenceKey:$}=o||{};if(!$||!b||typeof window=="undefined")return c;const P=window[b];try{const T=(S=JSON.parse((P==null?void 0:P.getItem($))||"{}"))==null?void 0:S.resizableColumns;return mergeColumns(c||[],T,"width")}catch(T){}}),[d,y]=reactExports.useState(f);reactExports.useEffect(()=>{y(f())},[c]),reactExports.useEffect(()=>{const{persistenceType:S,persistenceKey:b}=o||{};if(!b||!S||!(a!=null&&a.length)||typeof window=="undefined")return;const $=window[S];try{$.setItem(b,JSON.stringify(__spreadProps(__spreadValues({},JSON.parse(($==null?void 0:$.getItem(b))||"{}")),{resizableColumns:a.map(P=>{const T={dataIndex:P.dataIndex,key:P.key,width:P.width,children:P.children};return isString$4(P.title)&&(T.title=P.title),T})})))}catch(P){}},[a]);const _=useMemoizedFn$1(()=>{y([...c||[]])});return{localColumns:reactExports.useMemo(()=>d,[d]),resetLocalColumns:_}}var createUpdateEffect=o=>(a,s)=>{const c=reactExports.useRef(!1);o(()=>()=>{c.current=!1},[]),o(()=>{if(!c.current)c.current=!0;else return a()},s)};function useThrottleFn(o,a){var s;const c=reactExports.useRef(o);c.current=o;const f=(s=a==null?void 0:a.wait)!=null?s:1e3,d=useCreation(()=>throttle$1((...y)=>c.current(...y),f,a),[]);return reactExports.useEffect(()=>{d.cancel()},[]),{run:d,cancel:d.cancel,flush:d.flush}}var useUpdateEffect=createUpdateEffect(reactExports.useEffect);function useThrottleEffect(o,a,s){const[c,f]=reactExports.useState({}),{run:d,cancel:y}=useThrottleFn(()=>{f({})},s);reactExports.useEffect(()=>d(),a),reactExports.useEffect(y,[]),useUpdateEffect(o,[c])}var useUpdateThrottleEffect=createUpdateEffect(useThrottleEffect),errorMsgs=new Set,logger={errorOnce(o){errorMsgs.has(o)||errorMsgs.add(o)}};function traverseColumnsWidthAll(o){return!o||!o.length?!1:o.every(a=>a.children&&a.children.length?!1:!!a.width)}function validateColumnsFlex(o){traverseColumnsWidthAll(o)&&logger.errorOnce("[use-antd-resizable-header] 请不要在所有列上添加 `width` 属性,这将导致表格无法自适应")}var WIDTH=120;function useAntdResizableHeader(o){const{columns:a,defaultWidth:s=WIDTH,minConstraints:c=s/2,maxConstraints:f=Number.POSITIVE_INFINITY,cache:d=!0,columnsState:y,onResizeStart:_,onResizeEnd:S,tooltipRender:b}=o;validateColumnsFlex(a);const $=reactExports.useRef(new Map),[P,T]=useSafeState(a||[]),C=useLatest$1(P),{localColumns:O,resetLocalColumns:A}=useLocalColumns({columnsState:y,columns:a,resizableColumns:P}),[F,j]=useSafeState(),[L,M]=reactExports.useReducer(ee=>ee+1,0);let I;const U=useMemoizedFn$1(()=>{I=new Map,$.current=I,A()}),z=reactExports.useCallback(ee=>de=>{de&&T(Z=>{const Q=depthFirstSearch(Z,ne=>ne[GETKEY]===ee&&!!ne.width&&!ne.hideInTable,de);I=I||new Map;function J(ne){var fe;for(let le=0;lez,[z]),G=ee=>de=>{_==null||_(__spreadProps(__spreadValues({},ee),{width:de,resizableColumns:C.current}))},X=ee=>de=>{S==null||S(__spreadProps(__spreadValues({},ee),{width:de,resizableColumns:C.current}))},W=useMemoizedFn$1(ee=>(ee==null?void 0:ee.filter(Q=>!isEmpty(Q))).map(Q=>{var J,ne,fe,le;return __spreadProps(__spreadValues({},Q),{children:(J=Q==null?void 0:Q.children)!=null&&J.length?W(Q.children):void 0,onHeaderCell:ae=>{var ce,ge,pe;return{"data-index":ae.dataIndex,title:typeof(Q==null?void 0:Q.title)=="string"?Q==null?void 0:Q.title:"",width:d&&((pe=(ge=$.current)==null?void 0:ge.get((ce=ae[GETKEY])!=null?ce:""))==null?void 0:pe.width)||(ae==null?void 0:ae.width),resizable:ae.resizable,onMount:z(ae==null?void 0:ae[GETKEY]),onResize:H(ae==null?void 0:ae[GETKEY]),onResizeStart:G(ae),onResizeEnd:X(ae),minWidth:c,maxWidth:f,hideInTable:ae.hideInTable,tooltipRender:b,triggerRender:L}},width:d&&((le=(fe=$.current)==null?void 0:fe.get((ne=Q[GETKEY])!=null?ne:""))==null?void 0:le.width)||(Q==null?void 0:Q.width),[GETKEY]:Q[GETKEY]||Q.key})}));useIsomorphicLayoutEffect(()=>{if(O){const ee=W(O);T(ee)}},[O]),useUpdateThrottleEffect(()=>{const ee=W(P);T(ee)},[L],{wait:500}),useIsomorphicLayoutEffect(()=>{let ee=0;(function de(Z){for(let Q=0;Q(window.addEventListener("resize",K),()=>{window.removeEventListener("resize",K)}),[K]);const ie=reactExports.useMemo(()=>({header:{cell:ResizableHeader_default}}),[]);return{resizableColumns:P,components:ie,tableWidth:F,resetColumns:U}}var GListContext=reactExports.createContext({data:[],disabledKeys:[],setDisabledKeys:function(a){}});function _typeof$5(o){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$5(o)}var _excluded=["index"],_excluded2=["field","record","children","tableData","setTableData","rowKey","tableProps"],_excluded3=["field","record","children","tableData","setTableData","tableProps"];function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return a};var o,a={},s=Object.prototype,c=s.hasOwnProperty,f=Object.defineProperty||function(Q,J,ne){Q[J]=ne.value},d=typeof Symbol=="function"?Symbol:{},y=d.iterator||"@@iterator",_=d.asyncIterator||"@@asyncIterator",S=d.toStringTag||"@@toStringTag";function b(Q,J,ne){return Object.defineProperty(Q,J,{value:ne,enumerable:!0,configurable:!0,writable:!0}),Q[J]}try{b({},"")}catch(Q){b=function(ne,fe,le){return ne[fe]=le}}function $(Q,J,ne,fe){var le=J&&J.prototype instanceof j?J:j,ae=Object.create(le.prototype),ce=new de(fe||[]);return f(ae,"_invoke",{value:W(Q,ne,ce)}),ae}function P(Q,J,ne){try{return{type:"normal",arg:Q.call(J,ne)}}catch(fe){return{type:"throw",arg:fe}}}a.wrap=$;var T="suspendedStart",C="suspendedYield",O="executing",A="completed",F={};function j(){}function L(){}function M(){}var I={};b(I,y,function(){return this});var U=Object.getPrototypeOf,z=U&&U(U(Z([])));z&&z!==s&&c.call(z,y)&&(I=z);var H=M.prototype=j.prototype=Object.create(I);function G(Q){["next","throw","return"].forEach(function(J){b(Q,J,function(ne){return this._invoke(J,ne)})})}function X(Q,J){function ne(le,ae,ce,ge){var pe=P(Q[le],Q,ae);if(pe.type!=="throw"){var Ie=pe.arg,Ce=Ie.value;return Ce&&_typeof$5(Ce)=="object"&&c.call(Ce,"__await")?J.resolve(Ce.__await).then(function(ue){ne("next",ue,ce,ge)},function(ue){ne("throw",ue,ce,ge)}):J.resolve(Ce).then(function(ue){Ie.value=ue,ce(Ie)},function(ue){return ne("throw",ue,ce,ge)})}ge(pe.arg)}var fe;f(this,"_invoke",{value:function(ae,ce){function ge(){return new J(function(pe,Ie){ne(ae,ce,pe,Ie)})}return fe=fe?fe.then(ge,ge):ge()}})}function W(Q,J,ne){var fe=T;return function(le,ae){if(fe===O)throw new Error("Generator is already running");if(fe===A){if(le==="throw")throw ae;return{value:o,done:!0}}for(ne.method=le,ne.arg=ae;;){var ce=ne.delegate;if(ce){var ge=K(ce,ne);if(ge){if(ge===F)continue;return ge}}if(ne.method==="next")ne.sent=ne._sent=ne.arg;else if(ne.method==="throw"){if(fe===T)throw fe=A,ne.arg;ne.dispatchException(ne.arg)}else ne.method==="return"&&ne.abrupt("return",ne.arg);fe=O;var pe=P(Q,J,ne);if(pe.type==="normal"){if(fe=ne.done?A:C,pe.arg===F)continue;return{value:pe.arg,done:ne.done}}pe.type==="throw"&&(fe=A,ne.method="throw",ne.arg=pe.arg)}}}function K(Q,J){var ne=J.method,fe=Q.iterator[ne];if(fe===o)return J.delegate=null,ne==="throw"&&Q.iterator.return&&(J.method="return",J.arg=o,K(Q,J),J.method==="throw")||ne!=="return"&&(J.method="throw",J.arg=new TypeError("The iterator does not provide a '"+ne+"' method")),F;var le=P(fe,Q.iterator,J.arg);if(le.type==="throw")return J.method="throw",J.arg=le.arg,J.delegate=null,F;var ae=le.arg;return ae?ae.done?(J[Q.resultName]=ae.value,J.next=Q.nextLoc,J.method!=="return"&&(J.method="next",J.arg=o),J.delegate=null,F):ae:(J.method="throw",J.arg=new TypeError("iterator result is not an object"),J.delegate=null,F)}function ie(Q){var J={tryLoc:Q[0]};1 in Q&&(J.catchLoc=Q[1]),2 in Q&&(J.finallyLoc=Q[2],J.afterLoc=Q[3]),this.tryEntries.push(J)}function ee(Q){var J=Q.completion||{};J.type="normal",delete J.arg,Q.completion=J}function de(Q){this.tryEntries=[{tryLoc:"root"}],Q.forEach(ie,this),this.reset(!0)}function Z(Q){if(Q||Q===""){var J=Q[y];if(J)return J.call(Q);if(typeof Q.next=="function")return Q;if(!isNaN(Q.length)){var ne=-1,fe=function le(){for(;++ne=0;--le){var ae=this.tryEntries[le],ce=ae.completion;if(ae.tryLoc==="root")return fe("end");if(ae.tryLoc<=this.prev){var ge=c.call(ae,"catchLoc"),pe=c.call(ae,"finallyLoc");if(ge&&pe){if(this.prev=0;--fe){var le=this.tryEntries[fe];if(le.tryLoc<=this.prev&&c.call(le,"finallyLoc")&&this.prev=0;--ne){var fe=this.tryEntries[ne];if(fe.finallyLoc===J)return this.complete(fe.completion,fe.afterLoc),ee(fe),F}},catch:function(J){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var fe=this.tryEntries[ne];if(fe.tryLoc===J){var le=fe.completion;if(le.type==="throw"){var ae=le.arg;ee(fe)}return ae}}throw new Error("illegal catch attempt")},delegateYield:function(J,ne,fe){return this.delegate={iterator:Z(J),resultName:ne,nextLoc:fe},this.method==="next"&&(this.arg=o),F}},a}function _toConsumableArray$3(o){return _arrayWithoutHoles$3(o)||_iterableToArray$3(o)||_unsupportedIterableToArray$2(o)||_nonIterableSpread$3()}function _nonIterableSpread$3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +`,o.getElementsByTagName("head")[0].appendChild(a)),o.body&&addClassName(o.body,"react-draggable-transparent-selection")}function removeUserSelectStyles(o){if(o)try{if(o.body&&removeClassName(o.body,"react-draggable-transparent-selection"),o.selection)o.selection.empty();else{const a=(o.defaultView||window).getSelection();a&&a.type!=="Caret"&&a.removeAllRanges()}}catch(a){}}function addClassName(o,a){o.classList?o.classList.add(a):o.className.match(new RegExp("(?:^|\\s)".concat(a,"(?!\\S)")))||(o.className+=" ".concat(a))}function removeClassName(o,a){o.classList?o.classList.remove(a):o.className=o.className.replace(new RegExp("(?:^|\\s)".concat(a,"(?!\\S)"),"g"),"")}var positionFns={};Object.defineProperty(positionFns,"__esModule",{value:!0});positionFns.canDragX=canDragX;positionFns.canDragY=canDragY;positionFns.createCoreData=createCoreData;positionFns.createDraggableData=createDraggableData;positionFns.getBoundPosition=getBoundPosition;positionFns.getControlPosition=getControlPosition;positionFns.snapToGrid=snapToGrid;var _shims$1=shims,_domFns$1=domFns;function getBoundPosition(o,a,s){if(!o.props.bounds)return[a,s];let{bounds:c}=o.props;c=typeof c=="string"?c:cloneBounds(c);const f=findDOMNode(o);if(typeof c=="string"){const{ownerDocument:d}=f,y=d.defaultView;let _;if(c==="parent"?_=f.parentNode:_=d.querySelector(c),!(_ instanceof y.HTMLElement))throw new Error('Bounds selector "'+c+'" could not find an element.');const S=_,b=y.getComputedStyle(f),$=y.getComputedStyle(S);c={left:-f.offsetLeft+(0,_shims$1.int)($.paddingLeft)+(0,_shims$1.int)(b.marginLeft),top:-f.offsetTop+(0,_shims$1.int)($.paddingTop)+(0,_shims$1.int)(b.marginTop),right:(0,_domFns$1.innerWidth)(S)-(0,_domFns$1.outerWidth)(f)-f.offsetLeft+(0,_shims$1.int)($.paddingRight)-(0,_shims$1.int)(b.marginRight),bottom:(0,_domFns$1.innerHeight)(S)-(0,_domFns$1.outerHeight)(f)-f.offsetTop+(0,_shims$1.int)($.paddingBottom)-(0,_shims$1.int)(b.marginBottom)}}return(0,_shims$1.isNum)(c.right)&&(a=Math.min(a,c.right)),(0,_shims$1.isNum)(c.bottom)&&(s=Math.min(s,c.bottom)),(0,_shims$1.isNum)(c.left)&&(a=Math.max(a,c.left)),(0,_shims$1.isNum)(c.top)&&(s=Math.max(s,c.top)),[a,s]}function snapToGrid(o,a,s){const c=Math.round(a/o[0])*o[0],f=Math.round(s/o[1])*o[1];return[c,f]}function canDragX(o){return o.props.axis==="both"||o.props.axis==="x"}function canDragY(o){return o.props.axis==="both"||o.props.axis==="y"}function getControlPosition(o,a,s){const c=typeof a=="number"?(0,_domFns$1.getTouch)(o,a):null;if(typeof a=="number"&&!c)return null;const f=findDOMNode(s),d=s.props.offsetParent||f.offsetParent||f.ownerDocument.body;return(0,_domFns$1.offsetXYFromParent)(c||o,d,s.props.scale)}function createCoreData(o,a,s){const c=!(0,_shims$1.isNum)(o.lastX),f=findDOMNode(o);return c?{node:f,deltaX:0,deltaY:0,lastX:a,lastY:s,x:a,y:s}:{node:f,deltaX:a-o.lastX,deltaY:s-o.lastY,lastX:o.lastX,lastY:o.lastY,x:a,y:s}}function createDraggableData(o,a){const s=o.props.scale;return{node:a.node,x:o.state.x+a.deltaX/s,y:o.state.y+a.deltaY/s,deltaX:a.deltaX/s,deltaY:a.deltaY/s,lastX:o.state.x,lastY:o.state.y}}function cloneBounds(o){return{left:o.left,top:o.top,right:o.right,bottom:o.bottom}}function findDOMNode(o){const a=o.findDOMNode();if(!a)throw new Error(": Unmounted during event!");return a}var DraggableCore$2={},log$1={};Object.defineProperty(log$1,"__esModule",{value:!0});log$1.default=log;function log(){}Object.defineProperty(DraggableCore$2,"__esModule",{value:!0});DraggableCore$2.default=void 0;var React$2=_interopRequireWildcard$2(reactExports),_propTypes$3=_interopRequireDefault$5(propTypesExports),_reactDom=_interopRequireDefault$5(reactDomExports),_domFns=domFns,_positionFns=positionFns,_shims=shims,_log=_interopRequireDefault$5(log$1);function _interopRequireDefault$5(o){return o&&o.__esModule?o:{default:o}}function _getRequireWildcardCache$2(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(_getRequireWildcardCache$2=function(c){return c?s:a})(o)}function _interopRequireWildcard$2(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var s=_getRequireWildcardCache$2(a);if(s&&s.has(o))return s.get(o);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if(d!=="default"&&Object.prototype.hasOwnProperty.call(o,d)){var y=f?Object.getOwnPropertyDescriptor(o,d):null;y&&(y.get||y.set)?Object.defineProperty(c,d,y):c[d]=o[d]}return c.default=o,s&&s.set(o,c),c}function _defineProperty$a(o,a,s){return a=_toPropertyKey$6(a),a in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s,o}function _toPropertyKey$6(o){var a=_toPrimitive$6(o,"string");return typeof a=="symbol"?a:String(a)}function _toPrimitive$6(o,a){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,a||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(o)}const eventsFor={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let dragEventFor=eventsFor.mouse,DraggableCore$1=class extends React$2.Component{constructor(){super(...arguments),_defineProperty$a(this,"dragging",!1),_defineProperty$a(this,"lastX",NaN),_defineProperty$a(this,"lastY",NaN),_defineProperty$a(this,"touchIdentifier",null),_defineProperty$a(this,"mounted",!1),_defineProperty$a(this,"handleDragStart",a=>{if(this.props.onMouseDown(a),!this.props.allowAnyClick&&typeof a.button=="number"&&a.button!==0)return!1;const s=this.findDOMNode();if(!s||!s.ownerDocument||!s.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:c}=s;if(this.props.disabled||!(a.target instanceof c.defaultView.Node)||this.props.handle&&!(0,_domFns.matchesSelectorAndParentsTo)(a.target,this.props.handle,s)||this.props.cancel&&(0,_domFns.matchesSelectorAndParentsTo)(a.target,this.props.cancel,s))return;a.type==="touchstart"&&a.preventDefault();const f=(0,_domFns.getTouchIdentifier)(a);this.touchIdentifier=f;const d=(0,_positionFns.getControlPosition)(a,f,this);if(d==null)return;const{x:y,y:_}=d,S=(0,_positionFns.createCoreData)(this,y,_);(0,_log.default)("DraggableCore: handleDragStart: %j",S),(0,_log.default)("calling",this.props.onStart),!(this.props.onStart(a,S)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,_domFns.addUserSelectStyles)(c),this.dragging=!0,this.lastX=y,this.lastY=_,(0,_domFns.addEvent)(c,dragEventFor.move,this.handleDrag),(0,_domFns.addEvent)(c,dragEventFor.stop,this.handleDragStop))}),_defineProperty$a(this,"handleDrag",a=>{const s=(0,_positionFns.getControlPosition)(a,this.touchIdentifier,this);if(s==null)return;let{x:c,y:f}=s;if(Array.isArray(this.props.grid)){let _=c-this.lastX,S=f-this.lastY;if([_,S]=(0,_positionFns.snapToGrid)(this.props.grid,_,S),!_&&!S)return;c=this.lastX+_,f=this.lastY+S}const d=(0,_positionFns.createCoreData)(this,c,f);if((0,_log.default)("DraggableCore: handleDrag: %j",d),this.props.onDrag(a,d)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(_){const S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(S)}return}this.lastX=c,this.lastY=f}),_defineProperty$a(this,"handleDragStop",a=>{if(!this.dragging)return;const s=(0,_positionFns.getControlPosition)(a,this.touchIdentifier,this);if(s==null)return;let{x:c,y:f}=s;if(Array.isArray(this.props.grid)){let S=c-this.lastX||0,b=f-this.lastY||0;[S,b]=(0,_positionFns.snapToGrid)(this.props.grid,S,b),c=this.lastX+S,f=this.lastY+b}const d=(0,_positionFns.createCoreData)(this,c,f);if(this.props.onStop(a,d)===!1||this.mounted===!1)return!1;const _=this.findDOMNode();_&&this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(_.ownerDocument),(0,_log.default)("DraggableCore: handleDragStop: %j",d),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,_&&((0,_log.default)("DraggableCore: Removing handlers"),(0,_domFns.removeEvent)(_.ownerDocument,dragEventFor.move,this.handleDrag),(0,_domFns.removeEvent)(_.ownerDocument,dragEventFor.stop,this.handleDragStop))}),_defineProperty$a(this,"onMouseDown",a=>(dragEventFor=eventsFor.mouse,this.handleDragStart(a))),_defineProperty$a(this,"onMouseUp",a=>(dragEventFor=eventsFor.mouse,this.handleDragStop(a))),_defineProperty$a(this,"onTouchStart",a=>(dragEventFor=eventsFor.touch,this.handleDragStart(a))),_defineProperty$a(this,"onTouchEnd",a=>(dragEventFor=eventsFor.touch,this.handleDragStop(a)))}componentDidMount(){this.mounted=!0;const a=this.findDOMNode();a&&(0,_domFns.addEvent)(a,eventsFor.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const a=this.findDOMNode();if(a){const{ownerDocument:s}=a;(0,_domFns.removeEvent)(s,eventsFor.mouse.move,this.handleDrag),(0,_domFns.removeEvent)(s,eventsFor.touch.move,this.handleDrag),(0,_domFns.removeEvent)(s,eventsFor.mouse.stop,this.handleDragStop),(0,_domFns.removeEvent)(s,eventsFor.touch.stop,this.handleDragStop),(0,_domFns.removeEvent)(a,eventsFor.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(s)}}findDOMNode(){var a,s;return(a=this.props)!==null&&a!==void 0&&a.nodeRef?(s=this.props)===null||s===void 0||(s=s.nodeRef)===null||s===void 0?void 0:s.current:_reactDom.default.findDOMNode(this)}render(){return React$2.cloneElement(React$2.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};DraggableCore$2.default=DraggableCore$1;_defineProperty$a(DraggableCore$1,"displayName","DraggableCore");_defineProperty$a(DraggableCore$1,"propTypes",{allowAnyClick:_propTypes$3.default.bool,children:_propTypes$3.default.node.isRequired,disabled:_propTypes$3.default.bool,enableUserSelectHack:_propTypes$3.default.bool,offsetParent:function(o,a){if(o[a]&&o[a].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:_propTypes$3.default.arrayOf(_propTypes$3.default.number),handle:_propTypes$3.default.string,cancel:_propTypes$3.default.string,nodeRef:_propTypes$3.default.object,onStart:_propTypes$3.default.func,onDrag:_propTypes$3.default.func,onStop:_propTypes$3.default.func,onMouseDown:_propTypes$3.default.func,scale:_propTypes$3.default.number,className:_shims.dontSetMe,style:_shims.dontSetMe,transform:_shims.dontSetMe});_defineProperty$a(DraggableCore$1,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(o){Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"DraggableCore",{enumerable:!0,get:function(){return S.default}}),o.default=void 0;var a=T(reactExports),s=$(propTypesExports),c=$(reactDomExports),f=$(require$$3),d=domFns,y=positionFns,_=shims,S=$(DraggableCore$2),b=$(log$1);function $(L){return L&&L.__esModule?L:{default:L}}function P(L){if(typeof WeakMap!="function")return null;var F=new WeakMap,I=new WeakMap;return(P=function(U){return U?I:F})(L)}function T(L,F){if(!F&&L&&L.__esModule)return L;if(L===null||typeof L!="object"&&typeof L!="function")return{default:L};var I=P(F);if(I&&I.has(L))return I.get(L);var U={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in L)if(H!=="default"&&Object.prototype.hasOwnProperty.call(L,H)){var G=z?Object.getOwnPropertyDescriptor(L,H):null;G&&(G.get||G.set)?Object.defineProperty(U,H,G):U[H]=L[H]}return U.default=L,I&&I.set(L,U),U}function C(){return C=Object.assign?Object.assign.bind():function(L){for(var F=1;F{if((0,b.default)("Draggable: onDragStart: %j",U),this.props.onStart(I,(0,y.createDraggableData)(this,U))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),O(this,"onDrag",(I,U)=>{if(!this.state.dragging)return!1;(0,b.default)("Draggable: onDrag: %j",U);const z=(0,y.createDraggableData)(this,U),H={x:z.x,y:z.y,slackX:0,slackY:0};if(this.props.bounds){const{x:X,y:W}=H;H.x+=this.state.slackX,H.y+=this.state.slackY;const[K,ie]=(0,y.getBoundPosition)(this,H.x,H.y);H.x=K,H.y=ie,H.slackX=this.state.slackX+(X-H.x),H.slackY=this.state.slackY+(W-H.y),z.x=H.x,z.y=H.y,z.deltaX=H.x-this.state.x,z.deltaY=H.y-this.state.y}if(this.props.onDrag(I,z)===!1)return!1;this.setState(H)}),O(this,"onDragStop",(I,U)=>{if(!this.state.dragging||this.props.onStop(I,(0,y.createDraggableData)(this,U))===!1)return!1;(0,b.default)("Draggable: onDragStop: %j",U);const H={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:X,y:W}=this.props.position;H.x=X,H.y=W}this.setState(H)}),this.state={dragging:!1,dragged:!1,x:F.position?F.position.x:F.defaultPosition.x,y:F.position?F.position.y:F.defaultPosition.y,prevPropsPosition:se({},F.position),slackX:0,slackY:0,isElementSVG:!1},F.position&&(F.onDrag||F.onStop)}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var F,I;return(F=(I=this.props)===null||I===void 0||(I=I.nodeRef)===null||I===void 0?void 0:I.current)!==null&&F!==void 0?F:c.default.findDOMNode(this)}render(){const ae=this.props,{axis:F,bounds:I,children:U,defaultPosition:z,defaultClassName:H,defaultClassNameDragging:G,defaultClassNameDragged:X,position:W,positionOffset:K,scale:ie}=ae,ee=er(ae,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let de={},Z=null;const J=!!!W||this.state.dragging,ne=W||z,fe={x:(0,y.canDragX)(this)&&J?this.state.x:ne.x,y:(0,y.canDragY)(this)&&J?this.state.y:ne.y};this.state.isElementSVG?Z=(0,d.createSVGTransform)(fe,K):de=(0,d.createCSSTransform)(fe,K);const le=(0,f.default)(U.props.className||"",H,{[G]:this.state.dragging,[X]:this.state.dragged});return a.createElement(S.default,C({},ee,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),a.cloneElement(a.Children.only(U),{className:le,style:se(se({},U.props.style),de),transform:Z}))}}o.default=j,O(j,"displayName","Draggable"),O(j,"propTypes",$e(se({},S.default.propTypes),{axis:s.default.oneOf(["both","x","y","none"]),bounds:s.default.oneOfType([s.default.shape({left:s.default.number,right:s.default.number,top:s.default.number,bottom:s.default.number}),s.default.string,s.default.oneOf([!1])]),defaultClassName:s.default.string,defaultClassNameDragging:s.default.string,defaultClassNameDragged:s.default.string,defaultPosition:s.default.shape({x:s.default.number,y:s.default.number}),positionOffset:s.default.shape({x:s.default.oneOfType([s.default.number,s.default.string]),y:s.default.oneOfType([s.default.number,s.default.string])}),position:s.default.shape({x:s.default.number,y:s.default.number}),className:_.dontSetMe,style:_.dontSetMe,transform:_.dontSetMe})),O(j,"defaultProps",$e(se({},S.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))})(Draggable$1);const{default:Draggable,DraggableCore}=Draggable$1;cjs.exports=Draggable;cjs.exports.default=Draggable;cjs.exports.DraggableCore=DraggableCore;var cjsExports=cjs.exports,utils$5={};utils$5.__esModule=!0;utils$5.cloneElement=cloneElement;var _react=_interopRequireDefault$4(reactExports);function _interopRequireDefault$4(o){return o&&o.__esModule?o:{default:o}}function ownKeys$9(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$8(o){for(var a=1;a=0)&&(s[f]=o[f]);return s}function ownKeys$8(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$7(o){for(var a=1;aMath.abs(T*$)?d=f/$:f=d*$}var C=f,O=d,A=this.slack||[0,0],M=A[0],j=A[1];return f+=M,d+=j,_&&(f=Math.max(_[0],f),d=Math.max(_[1],d)),S&&(f=Math.min(S[0],f),d=Math.min(S[1],d)),this.slack=[M+(C-f),j+(O-d)],[f,d]},s.resizeHandler=function(f,d){var y=this;return function(_,S){var b=S.node,$=S.deltaX,P=S.deltaY;f==="onResizeStart"&&y.resetData();var T=(y.props.axis==="both"||y.props.axis==="x")&&d!=="n"&&d!=="s",C=(y.props.axis==="both"||y.props.axis==="y")&&d!=="e"&&d!=="w";if(!(!T&&!C)){var O=d[0],A=d[d.length-1],M=b.getBoundingClientRect();if(y.lastHandleRect!=null){if(A==="w"){var j=M.left-y.lastHandleRect.left;$+=j}if(O==="n"){var L=M.top-y.lastHandleRect.top;P+=L}}y.lastHandleRect=M,A==="w"&&($=-$),O==="n"&&(P=-P);var F=y.props.width+(T?$/y.props.transformScale:0),I=y.props.height+(C?P/y.props.transformScale:0),U=y.runConstraints(F,I);F=U[0],I=U[1];var z=F!==y.props.width||I!==y.props.height,H=typeof y.props[f]=="function"?y.props[f]:null,G=f==="onResize"&&!z;H&&!G&&(_.persist==null||_.persist(),H(_,{node:b,size:{width:F,height:I},handle:d})),f==="onResizeStop"&&y.resetData()}}},s.renderResizeHandle=function(f,d){var y=this.props.handle;if(!y)return React$1.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+f,ref:d});if(typeof y=="function")return y(f,d);var _=typeof y.type=="string",S=_objectSpread$7({ref:d},_?{}:{handleAxis:f});return React$1.cloneElement(y,S)},s.render=function(){var f=this,d=this.props,y=d.children,_=d.className,S=d.draggableOpts;d.width,d.height,d.handle,d.handleSize,d.lockAspectRatio,d.axis,d.minConstraints,d.maxConstraints,d.onResize,d.onResizeStop,d.onResizeStart;var b=d.resizeHandles;d.transformScale;var $=_objectWithoutPropertiesLoose$3(d,_excluded$2);return(0,_utils.cloneElement)(y,_objectSpread$7(_objectSpread$7({},$),{},{className:(_?_+" ":"")+"react-resizable",children:[].concat(y.props.children,b.map(function(P){var T,C=(T=f.handleRefs[P])!=null?T:f.handleRefs[P]=React$1.createRef();return React$1.createElement(_reactDraggable.DraggableCore,_extends$4({},S,{nodeRef:C,key:"resizableHandle-"+P,onStop:f.resizeHandler("onResizeStop",P),onStart:f.resizeHandler("onResizeStart",P),onDrag:f.resizeHandler("onResize",P)}),f.renderResizeHandle(P,C))}))}))},a}(React$1.Component);Resizable$2.default=Resizable$1;Resizable$1.propTypes=_propTypes$1.resizableProps;Resizable$1.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var ResizableBox$1={};ResizableBox$1.__esModule=!0;ResizableBox$1.default=void 0;var React=_interopRequireWildcard(reactExports),_propTypes=_interopRequireDefault$2(propTypesExports),_Resizable=_interopRequireDefault$2(Resizable$2),_propTypes2=propTypes,_excluded$1=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function _interopRequireDefault$2(o){return o&&o.__esModule?o:{default:o}}function _getRequireWildcardCache(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(_getRequireWildcardCache=function(f){return f?s:a})(o)}function _interopRequireWildcard(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var s=_getRequireWildcardCache(a);if(s&&s.has(o))return s.get(o);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if(d!=="default"&&Object.prototype.hasOwnProperty.call(o,d)){var y=f?Object.getOwnPropertyDescriptor(o,d):null;y&&(y.get||y.set)?Object.defineProperty(c,d,y):c[d]=o[d]}return c.default=o,s&&s.set(o,c),c}function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(o){for(var a=1;a=0)&&(s[f]=o[f]);return s}function _inheritsLoose(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,_setPrototypeOf$1(o,a)}function _setPrototypeOf$1(o,a){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},_setPrototypeOf$1(o,a)}var ResizableBox=function(o){_inheritsLoose(a,o);function a(){for(var c,f=arguments.length,d=new Array(f),y=0;y=a||H<0||P&&G>=d}function j(){var z=now();if(M(z))return L(z);_=setTimeout(j,A(z))}function L(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function F(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function I(){return _===void 0?y:L(now())}function U(){var z=now(),H=M(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return _=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=F,U.flush=I,U}function throttle(o,a,s){var c=!0,f=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$4(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),debounce(o,a,{leading:c,maxWait:a,trailing:f})}function isObject$4(o){var a=typeof o;return!!o&&(a=="object"||a=="function")}function isObjectLike$2(o){return!!o&&typeof o=="object"}function isSymbol$1(o){return typeof o=="symbol"||isObjectLike$2(o)&&objectToString$2.call(o)==symbolTag$3}function toNumber(o){if(typeof o=="number")return o;if(isSymbol$1(o))return NAN;if(isObject$4(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=isObject$4(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=o.replace(reTrim,"");var s=reIsBinary.test(o);return s||reIsOctal.test(o)?freeParseInt(o.slice(2),s?2:8):reIsBadHex.test(o)?NAN:+o}var lodash_throttle=throttle;const throttle$1=getDefaultExportFromCjs(lodash_throttle);var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,a,s)=>a in o?__defProp(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,__spreadValues=(o,a)=>{for(var s in a||(a={}))__hasOwnProp.call(a,s)&&__defNormalProp(o,s,a[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(a))__propIsEnum.call(a,s)&&__defNormalProp(o,s,a[s]);return o},__spreadProps=(o,a)=>__defProps(o,__getOwnPropDescs(a)),__objRest=(o,a)=>{var s={};for(var c in o)__hasOwnProp.call(o,c)&&a.indexOf(c)<0&&(s[c]=o[c]);if(o!=null&&__getOwnPropSymbols)for(var c of __getOwnPropSymbols(o))a.indexOf(c)<0&&__propIsEnum.call(o,c)&&(s[c]=o[c]);return s};function depthFirstSearch(o,a,s){const c=[...o];return function f(d){if(d)for(let y=0;y<(d==null?void 0:d.length);y++){if(a(d[y])){d[y]=__spreadProps(__spreadValues({},d[y]),{width:s});return}d[y].children&&f(d[y].children)}}(c),c}function isString$4(o){return typeof o=="string"}function isEmpty(o){return typeof o!="object"||o===null?!0:!(Array.isArray(o)&&o.length||Object.keys(o).length)}var useUnmountedRef=()=>{const o=reactExports.useRef(!1);return reactExports.useEffect(()=>(o.current=!1,()=>{o.current=!0}),[]),o};function useSafeState(o){const a=useUnmountedRef(),[s,c]=reactExports.useState(o),f=reactExports.useCallback(d=>{a.current||c(d)},[]);return[s,f]}var ResizableHeader=o=>{const a=o,{width:s,minWidth:c,maxWidth:f,resizable:d,hideInTable:y,onResize:_,onResizeStart:S,onResizeEnd:b,onMount:$,triggerRender:P,className:T,style:C,onClick:O,children:A,rowSpan:M,colSpan:j,title:L,scope:F,tooltipRender:I}=a,U=__objRest(a,["width","minWidth","maxWidth","resizable","hideInTable","onResize","onResizeStart","onResizeEnd","onMount","triggerRender","className","style","onClick","children","rowSpan","colSpan","title","scope","tooltipRender"]),[z,H]=useSafeState(0),{overflow:G,ref:X}=dist.useOverflowDetector({});if(reactExports.useEffect(()=>{s&&(H(s),$==null||$(s,{overflow:G}))},[P]),reactExports.useEffect(()=>{s&&H(s)},[H,s]),y)return null;if(!s||Number.isNaN(Number(s))||d===!1)return jsxRuntimeExports.jsx("th",__spreadProps(__spreadValues({},U),{"data-arh-disable":"true",style:C,className:T,onClick:O,rowSpan:M,colSpan:j,children:jsxRuntimeExports.jsx("span",{title:L,children:A})}));const W=Q=>{document.body.style.userSelect=Q?"none":"",document.body.style.pointerEvents=Q?"none":"",document.documentElement.style.cursor=Q?"col-resize":""},K=({},Q)=>{H(Q.size.width),W(!0),S==null||S(Q.size.width)},ie=({},Q)=>{H(Q.size.width)},ee=()=>{z<=0||(_(z,{overflow:G}),W(!1),b==null||b(z))},de=()=>{var Q,J;if(Array.isArray(A)){const ne=A[A.length-1];if(ne)return isString$4(ne)||((Q=ne.props)==null?void 0:Q.ellipsis)||isString$4((J=ne.props)==null?void 0:J.label)}return!1},Z=jsxRuntimeExports.jsx("div",__spreadProps(__spreadValues({},U),{ref:X,className:`resizable-title${de()?" ellipsis":""}`,children:A}));return jsxRuntimeExports.jsxs("th",{scope:F,className:`resizable-container ${T}`,style:__spreadProps(__spreadValues({},C),{overflow:"unset"}),"data-uarh-enable":"true",onClick:O,rowSpan:M,colSpan:j,children:[jsxRuntimeExports.jsx(Resizable,{className:"resizable-box",width:z,minConstraints:[c,0],maxConstraints:[f,0],height:0,handle:jsxRuntimeExports.jsx("div",{className:"resizable-handler",onClick:Q=>{Q.stopPropagation()},children:jsxRuntimeExports.jsx("div",{className:"resizable-line"})}),draggableOpts:{enableUserSelectHack:!1},onResizeStart:K,onResize:ie,onResizeStop:ee,children:jsxRuntimeExports.jsx("div",{style:{width:z,height:"100%"}})}),I?I({children:Z,open:G?void 0:!1,title:A}):Z]})},ResizableHeader_default=reactExports.memo(ResizableHeader);function useCreation(o,a){const{current:s}=reactExports.useRef({deps:a,obj:void 0,initialized:!1});return(s.initialized===!1||!depsAreSame(s.deps,a))&&(s.deps=a,s.obj=o(),s.initialized=!0),s.obj}function depsAreSame(o,a){if(o===a)return!0;for(let s=0;sdebounce$5((...y)=>c.current(...y),f,a),[]);return reactExports.useEffect(()=>{d.cancel()},[]),{run:d,cancel:d.cancel,flush:d.flush}}var GETKEY="dataIndex",ResizableUniqIdPrefix="resizable-table-id";function getUniqueId(o){return`${ResizableUniqIdPrefix}-${o}`}function getColumns(o){const a=o==null?void 0:o.filter(c=>!isEmpty(c));return a==null?void 0:a.map((c,f)=>{var d;return __spreadProps(__spreadValues({},c),{children:(d=c==null?void 0:c.children)!=null&&d.length?getColumns(c.children):void 0,[GETKEY]:c[GETKEY]||c.key||getUniqueId(`${c.title}-${f}`)})})}function useGetDataIndexColumns(o){return reactExports.useMemo(()=>getColumns(o),[o])||o}var isBrowser$2=!!(typeof window!="undefined"&&window.document&&window.document.createElement),useIsomorphicLayoutEffect=isBrowser$2?reactExports.useLayoutEffect:reactExports.useEffect;function useLatest$1(o){const a=reactExports.useRef(o);return a.current=o,a}function useMemoizedFn$1(o){const a=reactExports.useRef(o);a.current=reactExports.useMemo(()=>o,[o]);const s=reactExports.useRef();return s.current||(s.current=function(...c){return a.current.apply(this,c)}),s.current}function mergeColumns(o,a,s){const c=o;return Array.isArray(c)&&Array.isArray(a)&&c.forEach((f,d)=>{var y,_;f!=null&&f.children?mergeColumns(f.children,(y=a[d])==null?void 0:y.children,s):c[d][s]=((_=a.find(S=>S.dataIndex===c[d].dataIndex))==null?void 0:_[s])||c[d][s]}),c}function useLocalColumns({columnsState:o,resizableColumns:a,columns:s}){const c=useGetDataIndexColumns(s),f=useMemoizedFn$1(()=>{var S;const{persistenceType:b,persistenceKey:$}=o||{};if(!$||!b||typeof window=="undefined")return c;const P=window[b];try{const T=(S=JSON.parse((P==null?void 0:P.getItem($))||"{}"))==null?void 0:S.resizableColumns;return mergeColumns(c||[],T,"width")}catch(T){}}),[d,y]=reactExports.useState(f);reactExports.useEffect(()=>{y(f())},[c]),reactExports.useEffect(()=>{const{persistenceType:S,persistenceKey:b}=o||{};if(!b||!S||!(a!=null&&a.length)||typeof window=="undefined")return;const $=window[S];try{$.setItem(b,JSON.stringify(__spreadProps(__spreadValues({},JSON.parse(($==null?void 0:$.getItem(b))||"{}")),{resizableColumns:a.map(P=>{const T={dataIndex:P.dataIndex,key:P.key,width:P.width,children:P.children};return isString$4(P.title)&&(T.title=P.title),T})})))}catch(P){}},[a]);const _=useMemoizedFn$1(()=>{y([...c||[]])});return{localColumns:reactExports.useMemo(()=>d,[d]),resetLocalColumns:_}}var createUpdateEffect=o=>(a,s)=>{const c=reactExports.useRef(!1);o(()=>()=>{c.current=!1},[]),o(()=>{if(!c.current)c.current=!0;else return a()},s)};function useThrottleFn(o,a){var s;const c=reactExports.useRef(o);c.current=o;const f=(s=a==null?void 0:a.wait)!=null?s:1e3,d=useCreation(()=>throttle$1((...y)=>c.current(...y),f,a),[]);return reactExports.useEffect(()=>{d.cancel()},[]),{run:d,cancel:d.cancel,flush:d.flush}}var useUpdateEffect=createUpdateEffect(reactExports.useEffect);function useThrottleEffect(o,a,s){const[c,f]=reactExports.useState({}),{run:d,cancel:y}=useThrottleFn(()=>{f({})},s);reactExports.useEffect(()=>d(),a),reactExports.useEffect(y,[]),useUpdateEffect(o,[c])}var useUpdateThrottleEffect=createUpdateEffect(useThrottleEffect),errorMsgs=new Set,logger={errorOnce(o){errorMsgs.has(o)||errorMsgs.add(o)}};function traverseColumnsWidthAll(o){return!o||!o.length?!1:o.every(a=>a.children&&a.children.length?!1:!!a.width)}function validateColumnsFlex(o){traverseColumnsWidthAll(o)&&logger.errorOnce("[use-antd-resizable-header] 请不要在所有列上添加 `width` 属性,这将导致表格无法自适应")}var WIDTH=120;function useAntdResizableHeader(o){const{columns:a,defaultWidth:s=WIDTH,minConstraints:c=s/2,maxConstraints:f=Number.POSITIVE_INFINITY,cache:d=!0,columnsState:y,onResizeStart:_,onResizeEnd:S,tooltipRender:b}=o;validateColumnsFlex(a);const $=reactExports.useRef(new Map),[P,T]=useSafeState(a||[]),C=useLatest$1(P),{localColumns:O,resetLocalColumns:A}=useLocalColumns({columnsState:y,columns:a,resizableColumns:P}),[M,j]=useSafeState(),[L,F]=reactExports.useReducer(ee=>ee+1,0);let I;const U=useMemoizedFn$1(()=>{I=new Map,$.current=I,A()}),z=reactExports.useCallback(ee=>de=>{de&&T(Z=>{const Q=depthFirstSearch(Z,ne=>ne[GETKEY]===ee&&!!ne.width&&!ne.hideInTable,de);I=I||new Map;function J(ne){var fe;for(let le=0;lez,[z]),G=ee=>de=>{_==null||_(__spreadProps(__spreadValues({},ee),{width:de,resizableColumns:C.current}))},X=ee=>de=>{S==null||S(__spreadProps(__spreadValues({},ee),{width:de,resizableColumns:C.current}))},W=useMemoizedFn$1(ee=>(ee==null?void 0:ee.filter(Q=>!isEmpty(Q))).map(Q=>{var J,ne,fe,le;return __spreadProps(__spreadValues({},Q),{children:(J=Q==null?void 0:Q.children)!=null&&J.length?W(Q.children):void 0,onHeaderCell:ae=>{var ce,ge,pe;return{"data-index":ae.dataIndex,title:typeof(Q==null?void 0:Q.title)=="string"?Q==null?void 0:Q.title:"",width:d&&((pe=(ge=$.current)==null?void 0:ge.get((ce=ae[GETKEY])!=null?ce:""))==null?void 0:pe.width)||(ae==null?void 0:ae.width),resizable:ae.resizable,onMount:z(ae==null?void 0:ae[GETKEY]),onResize:H(ae==null?void 0:ae[GETKEY]),onResizeStart:G(ae),onResizeEnd:X(ae),minWidth:c,maxWidth:f,hideInTable:ae.hideInTable,tooltipRender:b,triggerRender:L}},width:d&&((le=(fe=$.current)==null?void 0:fe.get((ne=Q[GETKEY])!=null?ne:""))==null?void 0:le.width)||(Q==null?void 0:Q.width),[GETKEY]:Q[GETKEY]||Q.key})}));useIsomorphicLayoutEffect(()=>{if(O){const ee=W(O);T(ee)}},[O]),useUpdateThrottleEffect(()=>{const ee=W(P);T(ee)},[L],{wait:500}),useIsomorphicLayoutEffect(()=>{let ee=0;(function de(Z){for(let Q=0;Q(window.addEventListener("resize",K),()=>{window.removeEventListener("resize",K)}),[K]);const ie=reactExports.useMemo(()=>({header:{cell:ResizableHeader_default}}),[]);return{resizableColumns:P,components:ie,tableWidth:M,resetColumns:U}}var GListContext=reactExports.createContext({data:[],disabledKeys:[],setDisabledKeys:function(a){}});function _typeof$5(o){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$5(o)}var _excluded=["index"],_excluded2=["field","record","children","tableData","setTableData","rowKey","tableProps"],_excluded3=["field","record","children","tableData","setTableData","tableProps"];function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return a};var o,a={},s=Object.prototype,c=s.hasOwnProperty,f=Object.defineProperty||function(Q,J,ne){Q[J]=ne.value},d=typeof Symbol=="function"?Symbol:{},y=d.iterator||"@@iterator",_=d.asyncIterator||"@@asyncIterator",S=d.toStringTag||"@@toStringTag";function b(Q,J,ne){return Object.defineProperty(Q,J,{value:ne,enumerable:!0,configurable:!0,writable:!0}),Q[J]}try{b({},"")}catch(Q){b=function(ne,fe,le){return ne[fe]=le}}function $(Q,J,ne,fe){var le=J&&J.prototype instanceof j?J:j,ae=Object.create(le.prototype),ce=new de(fe||[]);return f(ae,"_invoke",{value:W(Q,ne,ce)}),ae}function P(Q,J,ne){try{return{type:"normal",arg:Q.call(J,ne)}}catch(fe){return{type:"throw",arg:fe}}}a.wrap=$;var T="suspendedStart",C="suspendedYield",O="executing",A="completed",M={};function j(){}function L(){}function F(){}var I={};b(I,y,function(){return this});var U=Object.getPrototypeOf,z=U&&U(U(Z([])));z&&z!==s&&c.call(z,y)&&(I=z);var H=F.prototype=j.prototype=Object.create(I);function G(Q){["next","throw","return"].forEach(function(J){b(Q,J,function(ne){return this._invoke(J,ne)})})}function X(Q,J){function ne(le,ae,ce,ge){var pe=P(Q[le],Q,ae);if(pe.type!=="throw"){var Ie=pe.arg,Ce=Ie.value;return Ce&&_typeof$5(Ce)=="object"&&c.call(Ce,"__await")?J.resolve(Ce.__await).then(function(ue){ne("next",ue,ce,ge)},function(ue){ne("throw",ue,ce,ge)}):J.resolve(Ce).then(function(ue){Ie.value=ue,ce(Ie)},function(ue){return ne("throw",ue,ce,ge)})}ge(pe.arg)}var fe;f(this,"_invoke",{value:function(ae,ce){function ge(){return new J(function(pe,Ie){ne(ae,ce,pe,Ie)})}return fe=fe?fe.then(ge,ge):ge()}})}function W(Q,J,ne){var fe=T;return function(le,ae){if(fe===O)throw new Error("Generator is already running");if(fe===A){if(le==="throw")throw ae;return{value:o,done:!0}}for(ne.method=le,ne.arg=ae;;){var ce=ne.delegate;if(ce){var ge=K(ce,ne);if(ge){if(ge===M)continue;return ge}}if(ne.method==="next")ne.sent=ne._sent=ne.arg;else if(ne.method==="throw"){if(fe===T)throw fe=A,ne.arg;ne.dispatchException(ne.arg)}else ne.method==="return"&&ne.abrupt("return",ne.arg);fe=O;var pe=P(Q,J,ne);if(pe.type==="normal"){if(fe=ne.done?A:C,pe.arg===M)continue;return{value:pe.arg,done:ne.done}}pe.type==="throw"&&(fe=A,ne.method="throw",ne.arg=pe.arg)}}}function K(Q,J){var ne=J.method,fe=Q.iterator[ne];if(fe===o)return J.delegate=null,ne==="throw"&&Q.iterator.return&&(J.method="return",J.arg=o,K(Q,J),J.method==="throw")||ne!=="return"&&(J.method="throw",J.arg=new TypeError("The iterator does not provide a '"+ne+"' method")),M;var le=P(fe,Q.iterator,J.arg);if(le.type==="throw")return J.method="throw",J.arg=le.arg,J.delegate=null,M;var ae=le.arg;return ae?ae.done?(J[Q.resultName]=ae.value,J.next=Q.nextLoc,J.method!=="return"&&(J.method="next",J.arg=o),J.delegate=null,M):ae:(J.method="throw",J.arg=new TypeError("iterator result is not an object"),J.delegate=null,M)}function ie(Q){var J={tryLoc:Q[0]};1 in Q&&(J.catchLoc=Q[1]),2 in Q&&(J.finallyLoc=Q[2],J.afterLoc=Q[3]),this.tryEntries.push(J)}function ee(Q){var J=Q.completion||{};J.type="normal",delete J.arg,Q.completion=J}function de(Q){this.tryEntries=[{tryLoc:"root"}],Q.forEach(ie,this),this.reset(!0)}function Z(Q){if(Q||Q===""){var J=Q[y];if(J)return J.call(Q);if(typeof Q.next=="function")return Q;if(!isNaN(Q.length)){var ne=-1,fe=function le(){for(;++ne=0;--le){var ae=this.tryEntries[le],ce=ae.completion;if(ae.tryLoc==="root")return fe("end");if(ae.tryLoc<=this.prev){var ge=c.call(ae,"catchLoc"),pe=c.call(ae,"finallyLoc");if(ge&&pe){if(this.prev=0;--fe){var le=this.tryEntries[fe];if(le.tryLoc<=this.prev&&c.call(le,"finallyLoc")&&this.prev=0;--ne){var fe=this.tryEntries[ne];if(fe.finallyLoc===J)return this.complete(fe.completion,fe.afterLoc),ee(fe),M}},catch:function(J){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var fe=this.tryEntries[ne];if(fe.tryLoc===J){var le=fe.completion;if(le.type==="throw"){var ae=le.arg;ee(fe)}return ae}}throw new Error("illegal catch attempt")},delegateYield:function(J,ne,fe){return this.delegate={iterator:Z(J),resultName:ne,nextLoc:fe},this.method==="next"&&(this.arg=o),M}},a}function _toConsumableArray$3(o){return _arrayWithoutHoles$3(o)||_iterableToArray$3(o)||_unsupportedIterableToArray$2(o)||_nonIterableSpread$3()}function _nonIterableSpread$3(){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 _iterableToArray$3(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function _arrayWithoutHoles$3(o){if(Array.isArray(o))return _arrayLikeToArray$2(o)}function ownKeys$6(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$5(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$1(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var Text$2=Typography.Text;function EditableRow(o){var a=o.index,s=_objectWithoutProperties$1(o,_excluded),c=Form.useForm(),f=_slicedToArray$1(c,1),d=f[0],y=reactExports.useContext(GSearchTableContext);return reactExports.useEffect(function(){y.setEditTableRow([{index:a,form:d}])},[]),React$4.createElement(Form,{form:d,component:!1},React$4.createElement(EditableContext.Provider,{value:d},React$4.createElement("tr",_extends$2({},s,{className:"editable-row ".concat(s.className||"")}))))}var RuleFormItem=function(a){var s=a.inputProps,c=a.input,f=a.extra,d=a.popoverProps,y=reactExports.useState(!1),_=_slicedToArray$1(y,2),S=_[0],b=_[1],$=reactExports.useState([]),P=_slicedToArray$1($,2),T=P[0],C=P[1];return reactExports.useEffect(function(){s.validateStatus!=="validating"&&C(s.errors)},[s.errors,s.validateStatus]),React$4.createElement(_Popover,_extends$2({key:"popover",trigger:"focus",placement:"topRight",open:T.length<1?!1:S,onVisibleChange:function(A){A!==S&&b(A)},content:React$4.createElement("div",{className:"g-form-item-with-help"},s.validateStatus==="validating"?React$4.createElement(LoadingOutlined,null):null,T.map(function(O){return React$4.createElement("div",{key:O},React$4.createElement(Text$2,{type:"danger"},React$4.createElement(Space,null,React$4.createElement(InfoCircleFilled,null),O)))}))},d),React$4.createElement("div",null,c,f))};function EditableCell(o){var a=o.field,s=o.record,c=o.children,f=o.tableData,d=o.setTableData;o.rowKey;var y=o.tableProps,_=_objectWithoutProperties$1(o,_excluded2),S=reactExports.useState(!1),b=_slicedToArray$1(S,2),$=b[0],P=b[1],T=reactExports.useContext(EditableContext),C,O=function(){P(!$)},A=function(){var I=_asyncToGenerator(_regeneratorRuntime().mark(function U(){var z,H,G,X;return _regeneratorRuntime().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,T.validateFields();case 2:z=K.sent,H=_objectSpread$5(_objectSpread$5({},s),z),G=_toConsumableArray$3(f),X=G.findIndex(function(ie){return getKey(ie,y.rowKey)===getKey(H,y.rowKey)}),G.splice(X,1,H),d(G),P(!1);case 9:case"end":return K.stop()}},U)}));return function(){return I.apply(this,arguments)}}();reactExports.useEffect(function(){$&&T.setFieldsValue(_defineProperty$6({},a.key,s[a.key]))},[$]);var F=c[1];if(F&&typeof F=="function"){var j=F({editing:$,save:A,toggleEdit:O,form:T,mode:"col"});$?C=React$4.createElement(Form.Item,_extends$2({name:a.key,style:{margin:"-5px 0"}},a.formItemProps),j):C=React$4.createElement("div",{className:classNames("editable-cell",a==null?void 0:a.editableCellClass),style:a==null?void 0:a.editableCellStyle,onClick:O},j)}else a||(C=c);var L=a!=null&&a.before?a.before({record:s,field:a,refreshRow:A}):null,M=a!=null&&a.after?a.after({record:s,field:a,refreshRow:A}):null;return React$4.createElement("td",_,L,C,M)}function EditableRowCell(o){var a=o.field,s=o.record,c=o.children,f=o.tableData,d=o.setTableData,y=o.tableProps,_=_objectWithoutProperties$1(o,_excluded3),S=reactExports.useContext(EditableContext),b=(s==null?void 0:s.editing)||!1,$;reactExports.useEffect(function(){b&&S.setFieldsValue(_objectSpread$5({},s))},[b]);var P=function(){var F=_asyncToGenerator(_regeneratorRuntime().mark(function j(){var L,M,I,U;return _regeneratorRuntime().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,S.validateFields();case 2:L=H.sent,M=_objectSpread$5(_objectSpread$5({},s),L),I=_toConsumableArray$3(f),U=I.findIndex(function(G){return getKey(G,y.rowKey)===getKey(M,y.rowKey)}),I.splice(U,1,M),d(I);case 8:case"end":return H.stop()}},j)}));return function(){return F.apply(this,arguments)}}(),T=c[1];if(T&&typeof T=="function"){var C=T({editing:b,form:S,mode:"row"});b?$=React$4.createElement(Form.Item,_extends$2({_internalItemRender:{mark:"pro_table_render",render:function(j,L){return React$4.createElement(RuleFormItem,_extends$2({inputProps:j},L,{popoverProps:a.popoverProps}))}},name:a.key,style:{margin:"-5px 0"}},a.formItemProps),C):$=React$4.createElement("div",{className:"editable-row-cell"},C)}else a||($=c);var O=a!=null&&a.before?a.before({record:s,field:a,refreshRow:P}):null,A=a!=null&&a.after?a.after({record:s,field:a,refreshRow:P}):null;return React$4.createElement("td",_,O,$,A)}var ColEditComponents={body:{row:EditableRow,cell:EditableCell}},RowEditComponents={body:{row:EditableRow,cell:EditableRowCell}},getComponents=function(a){if(a==="row")return RowEditComponents;if(a==="col")return ColEditComponents};function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$1(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var Text$2=Typography.Text;function EditableRow(o){var a=o.index,s=_objectWithoutProperties$1(o,_excluded),c=Form.useForm(),f=_slicedToArray$1(c,1),d=f[0],y=reactExports.useContext(GSearchTableContext);return reactExports.useEffect(function(){y.setEditTableRow([{index:a,form:d}])},[]),React$4.createElement(Form,{form:d,component:!1},React$4.createElement(EditableContext.Provider,{value:d},React$4.createElement("tr",_extends$2({},s,{className:"editable-row ".concat(s.className||"")}))))}var RuleFormItem=function(a){var s=a.inputProps,c=a.input,f=a.extra,d=a.popoverProps,y=reactExports.useState(!1),_=_slicedToArray$1(y,2),S=_[0],b=_[1],$=reactExports.useState([]),P=_slicedToArray$1($,2),T=P[0],C=P[1];return reactExports.useEffect(function(){s.validateStatus!=="validating"&&C(s.errors)},[s.errors,s.validateStatus]),React$4.createElement(_Popover,_extends$2({key:"popover",trigger:"focus",placement:"topRight",open:T.length<1?!1:S,onVisibleChange:function(A){A!==S&&b(A)},content:React$4.createElement("div",{className:"g-form-item-with-help"},s.validateStatus==="validating"?React$4.createElement(LoadingOutlined,null):null,T.map(function(O){return React$4.createElement("div",{key:O},React$4.createElement(Text$2,{type:"danger"},React$4.createElement(Space,null,React$4.createElement(InfoCircleFilled,null),O)))}))},d),React$4.createElement("div",null,c,f))};function EditableCell(o){var a=o.field,s=o.record,c=o.children,f=o.tableData,d=o.setTableData;o.rowKey;var y=o.tableProps,_=_objectWithoutProperties$1(o,_excluded2),S=reactExports.useState(!1),b=_slicedToArray$1(S,2),$=b[0],P=b[1],T=reactExports.useContext(EditableContext),C,O=function(){P(!$)},A=function(){var I=_asyncToGenerator(_regeneratorRuntime().mark(function U(){var z,H,G,X;return _regeneratorRuntime().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,T.validateFields();case 2:z=K.sent,H=_objectSpread$5(_objectSpread$5({},s),z),G=_toConsumableArray$3(f),X=G.findIndex(function(ie){return getKey(ie,y.rowKey)===getKey(H,y.rowKey)}),G.splice(X,1,H),d(G),P(!1);case 9:case"end":return K.stop()}},U)}));return function(){return I.apply(this,arguments)}}();reactExports.useEffect(function(){$&&T.setFieldsValue(_defineProperty$6({},a.key,s[a.key]))},[$]);var M=c[1];if(M&&typeof M=="function"){var j=M({editing:$,save:A,toggleEdit:O,form:T,mode:"col"});$?C=React$4.createElement(Form.Item,_extends$2({name:a.key,style:{margin:"-5px 0"}},a.formItemProps),j):C=React$4.createElement("div",{className:classNames("editable-cell",a==null?void 0:a.editableCellClass),style:a==null?void 0:a.editableCellStyle,onClick:O},j)}else a||(C=c);var L=a!=null&&a.before?a.before({record:s,field:a,refreshRow:A}):null,F=a!=null&&a.after?a.after({record:s,field:a,refreshRow:A}):null;return React$4.createElement("td",_,L,C,F)}function EditableRowCell(o){var a=o.field,s=o.record,c=o.children,f=o.tableData,d=o.setTableData,y=o.tableProps,_=_objectWithoutProperties$1(o,_excluded3),S=reactExports.useContext(EditableContext),b=(s==null?void 0:s.editing)||!1,$;reactExports.useEffect(function(){b&&S.setFieldsValue(_objectSpread$5({},s))},[b]);var P=function(){var M=_asyncToGenerator(_regeneratorRuntime().mark(function j(){var L,F,I,U;return _regeneratorRuntime().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,S.validateFields();case 2:L=H.sent,F=_objectSpread$5(_objectSpread$5({},s),L),I=_toConsumableArray$3(f),U=I.findIndex(function(G){return getKey(G,y.rowKey)===getKey(F,y.rowKey)}),I.splice(U,1,F),d(I);case 8:case"end":return H.stop()}},j)}));return function(){return M.apply(this,arguments)}}(),T=c[1];if(T&&typeof T=="function"){var C=T({editing:b,form:S,mode:"row"});b?$=React$4.createElement(Form.Item,_extends$2({_internalItemRender:{mark:"pro_table_render",render:function(j,L){return React$4.createElement(RuleFormItem,_extends$2({inputProps:j},L,{popoverProps:a.popoverProps}))}},name:a.key,style:{margin:"-5px 0"}},a.formItemProps),C):$=React$4.createElement("div",{className:"editable-row-cell"},C)}else a||($=c);var O=a!=null&&a.before?a.before({record:s,field:a,refreshRow:P}):null,A=a!=null&&a.after?a.after({record:s,field:a,refreshRow:P}):null;return React$4.createElement("td",_,O,$,A)}var ColEditComponents={body:{row:EditableRow,cell:EditableCell}},RowEditComponents={body:{row:EditableRow,cell:EditableRowCell}},getComponents=function(a){if(a==="row")return RowEditComponents;if(a==="col")return ColEditComponents};function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0&&(De.splice(Be,1),ue(De))},insertRow:function(Ue,De){var Be=_toConsumableArray$2(Ce),$t=Be.findIndex(function(pt){return getKey(pt,F)===De});Be.splice($t+1,0,Ue),ue(Be)},addRow:function(Ue){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"after",Be=_toConsumableArray$2(Ce);Be[De==="after"?"push":"unshift"](Ue),ue(Be)},clearFilters:function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],De=_objectSpread$3({},ce);for(var Be in De.filters)(!Ue.length||Ue.includes(Be))&&(De.filters[Be]=null);ge(De)},setFiltersValue:function(Ue){var De=_objectSpread$3({},ce);for(var Be in Ue)De.filters[Be]=Ue[Be];ge(De)},clearSorts:function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],De=_objectSpread$3({},ce);if(!Ue.length)De.sorts=[];else for(var Be=0;Be0)return!0}return!1},En=_objectSpread$3({showTotal:function(Ue){return"".concat(locale.table.totalBefore," ").concat(Ue," ").concat(locale.table.totalAfter)},showQuickJumper:!0,size:"default",total:Ft,current:ce.pagination.current,pageSize:ce.pagination.pageSize},z);return React$4.createElement(GListContext.Provider,{value:{data:Ce,disabledKeys:kr,setDisabledKeys:Ii}},React$4.createElement(Card,{className:"g-table ".concat(c||"")},Kn()?React$4.createElement("header",{className:"g-table-header"},React$4.createElement("div",{className:"g-table-header-left"},React$4.createElement(Space,null,typeof P=="string"?React$4.createElement("h2",{className:"g-table-title"},P):P)),React$4.createElement("div",{className:"g-table-header-right"},React$4.createElement(Space,null,ie,$))):null,y,Z,React$4.createElement("div",{className:"g-table-content"},React$4.createElement(Table,_extends({bordered:!0,rowClassName:f,onExpand:U,columns:Yr?jr:xe,components:Yr?_objectSpread$3(_objectSpread$3({},Pe),Li):Pe,dataSource:Ce,loading:ze,rowSelection:T,pagination:z===!1?!1:ne===void 0?En:!1,onChange:qn,rowKey:F,size:S,scroll:{x:Yr?Ni:j,y:ee}},tableDefaultProps,H)),ne===!1&&React$4.createElement(Pagination,_extends({className:"ant-table-pagination ant-table-pagination-right"},En)))))}),_templateObject,_templateObject2,_templateObject3,_templateObject4;function _taggedTemplateLiteral(o,a){return a||(a=o.slice(0)),Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}}))}createStyles(function(o){var a=o.token,s=o.css,c=s(_templateObject||(_templateObject=_taggedTemplateLiteral([` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(o,a){if(o){if(typeof o=="string")return _arrayLikeToArray$1(o,a);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray$1(o,a)}}function _arrayLikeToArray$1(o,a){(a==null||a>o.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0&&(De.splice(Be,1),ue(De))},insertRow:function(Ue,De){var Be=_toConsumableArray$2(Ce),$t=Be.findIndex(function(pt){return getKey(pt,M)===De});Be.splice($t+1,0,Ue),ue(Be)},addRow:function(Ue){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"after",Be=_toConsumableArray$2(Ce);Be[De==="after"?"push":"unshift"](Ue),ue(Be)},clearFilters:function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],De=_objectSpread$3({},ce);for(var Be in De.filters)(!Ue.length||Ue.includes(Be))&&(De.filters[Be]=null);ge(De)},setFiltersValue:function(Ue){var De=_objectSpread$3({},ce);for(var Be in Ue)De.filters[Be]=Ue[Be];ge(De)},clearSorts:function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],De=_objectSpread$3({},ce);if(!Ue.length)De.sorts=[];else for(var Be=0;Be0)return!0}return!1},En=_objectSpread$3({showTotal:function(Ue){return"".concat(locale.table.totalBefore," ").concat(Ue," ").concat(locale.table.totalAfter)},showQuickJumper:!0,size:"default",total:Mt,current:ce.pagination.current,pageSize:ce.pagination.pageSize},z);return React$4.createElement(GListContext.Provider,{value:{data:Ce,disabledKeys:Nr,setDisabledKeys:Ii}},React$4.createElement(Card,{className:"g-table ".concat(c||"")},Kn()?React$4.createElement("header",{className:"g-table-header"},React$4.createElement("div",{className:"g-table-header-left"},React$4.createElement(Space,null,typeof P=="string"?React$4.createElement("h2",{className:"g-table-title"},P):P)),React$4.createElement("div",{className:"g-table-header-right"},React$4.createElement(Space,null,ie,$))):null,y,Z,React$4.createElement("div",{className:"g-table-content"},React$4.createElement(Table,_extends({bordered:!0,rowClassName:f,onExpand:U,columns:Yr?jr:xe,components:Yr?_objectSpread$3(_objectSpread$3({},Pe),Li):Pe,dataSource:Ce,loading:ze,rowSelection:T,pagination:z===!1?!1:ne===void 0?En:!1,onChange:qn,rowKey:M,size:S,scroll:{x:Yr?ki:j,y:ee}},tableDefaultProps,H)),ne===!1&&React$4.createElement(Pagination,_extends({className:"ant-table-pagination ant-table-pagination-right"},En)))))}),_templateObject,_templateObject2,_templateObject3,_templateObject4;function _taggedTemplateLiteral(o,a){return a||(a=o.slice(0)),Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}}))}createStyles(function(o){var a=o.token,s=o.css,c=s(_templateObject||(_templateObject=_taggedTemplateLiteral([` .ant-card-body { padding: 0; } @@ -311,25 +311,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * author : Adam Draper * license : MIT * http://adamwdraper.github.com/Numeral-js/ - */(function(o){(function(a,s){o.exports?o.exports=s():a.numeral=s()})(commonjsGlobal,function(){var a,s,c="2.0.6",f={},d={},y={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},_={currentLocale:y.currentLocale,zeroFormat:y.zeroFormat,nullFormat:y.nullFormat,defaultFormat:y.defaultFormat,scalePercentBy100:y.scalePercentBy100};function S(b,$){this._input=b,this._value=$}return a=function(b){var $,P,T,C;if(a.isNumeral(b))$=b.value();else if(b===0||typeof b=="undefined")$=0;else if(b===null||s.isNaN(b))$=null;else if(typeof b=="string")if(_.zeroFormat&&b===_.zeroFormat)$=0;else if(_.nullFormat&&b===_.nullFormat||!b.replace(/[^0-9]+/g,"").length)$=null;else{for(P in f)if(C=typeof f[P].regexps.unformat=="function"?f[P].regexps.unformat():f[P].regexps.unformat,C&&b.match(C)){T=f[P].unformat;break}T=T||a._.stringToNumber,$=T(b)}else $=Number(b)||null;return new S(b,$)},a.version=c,a.isNumeral=function(b){return b instanceof S},a._=s={numberToFormat:function(b,$,P){var T=d[a.options.currentLocale],C=!1,O=!1,A=0,F="",j=1e12,L=1e9,M=1e6,I=1e3,U="",z=!1,H,G,X,W,K,ie,ee;if(b=b||0,G=Math.abs(b),a._.includes($,"(")?(C=!0,$=$.replace(/[\(|\)]/g,"")):(a._.includes($,"+")||a._.includes($,"-"))&&(K=a._.includes($,"+")?$.indexOf("+"):b<0?$.indexOf("-"):-1,$=$.replace(/[\+|\-]/g,"")),a._.includes($,"a")&&(H=$.match(/a(k|m|b|t)?/),H=H?H[1]:!1,a._.includes($," a")&&(F=" "),$=$.replace(new RegExp(F+"a[kmbt]?"),""),G>=j&&!H||H==="t"?(F+=T.abbreviations.trillion,b=b/j):G=L&&!H||H==="b"?(F+=T.abbreviations.billion,b=b/L):G=M&&!H||H==="m"?(F+=T.abbreviations.million,b=b/M):(G=I&&!H||H==="k")&&(F+=T.abbreviations.thousand,b=b/I)),a._.includes($,"[.]")&&(O=!0,$=$.replace("[.]",".")),X=b.toString().split(".")[0],W=$.split(".")[1],ie=$.indexOf(","),A=($.split(".")[0].split(",")[0].match(/0/g)||[]).length,W?(a._.includes(W,"[")?(W=W.replace("]",""),W=W.split("["),U=a._.toFixed(b,W[0].length+W[1].length,P,W[1].length)):U=a._.toFixed(b,W.length,P),X=U.split(".")[0],a._.includes(U,".")?U=T.delimiters.decimal+U.split(".")[1]:U="",O&&Number(U.slice(1))===0&&(U="")):X=a._.toFixed(b,0,P),F&&!H&&Number(X)>=1e3&&F!==T.abbreviations.trillion)switch(X=String(Number(X)/1e3),F){case T.abbreviations.thousand:F=T.abbreviations.million;break;case T.abbreviations.million:F=T.abbreviations.billion;break;case T.abbreviations.billion:F=T.abbreviations.trillion;break}if(a._.includes(X,"-")&&(X=X.slice(1),z=!0),X.length0;de--)X="0"+X;return ie>-1&&(X=X.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+T.delimiters.thousands)),$.indexOf(".")===0&&(X=""),ee=X+U+(F||""),C?ee=(C&&z?"(":"")+ee+(C&&z?")":""):K>=0?ee=K===0?(z?"-":"+")+ee:ee+(z?"-":"+"):z&&(ee="-"+ee),ee},stringToNumber:function(b){var $=d[_.currentLocale],P=b,T={thousand:3,million:6,billion:9,trillion:12},C,O,A;if(_.zeroFormat&&b===_.zeroFormat)O=0;else if(_.nullFormat&&b===_.nullFormat||!b.replace(/[^0-9]+/g,"").length)O=null;else{O=1,$.delimiters.decimal!=="."&&(b=b.replace(/\./g,"").replace($.delimiters.decimal,"."));for(C in T)if(A=new RegExp("[^a-zA-Z]"+$.abbreviations[C]+"(?:\\)|(\\"+$.currency.symbol+")?(?:\\))?)?$"),P.match(A)){O*=Math.pow(10,T[C]);break}O*=(b.split("-").length+Math.min(b.split("(").length-1,b.split(")").length-1))%2?1:-1,b=b.replace(/[^0-9\.]+/g,""),O*=Number(b)}return O},isNaN:function(b){return typeof b=="number"&&isNaN(b)},includes:function(b,$){return b.indexOf($)!==-1},insert:function(b,$,P){return b.slice(0,P)+$+b.slice(P)},reduce:function(b,$){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof $!="function")throw new TypeError($+" is not a function");var P=Object(b),T=P.length>>>0,C=0,O;if(arguments.length===3)O=arguments[2];else{for(;C=T)throw new TypeError("Reduce of empty array with no initial value");O=P[C++]}for(;CT?$:T},1)},toFixed:function(b,$,P,T){var C=b.toString().split("."),O=$-(T||0),A,F,j,L;return C.length===2?A=Math.min(Math.max(C[1].length,O),$):A=O,j=Math.pow(10,A),L=(P(b+"e+"+A)/j).toFixed(A),T>$-A&&(F=new RegExp("\\.?0{1,"+(T-($-A))+"}$"),L=L.replace(F,"")),L}},a.options=_,a.formats=f,a.locales=d,a.locale=function(b){return b&&(_.currentLocale=b.toLowerCase()),_.currentLocale},a.localeData=function(b){if(!b)return d[_.currentLocale];if(b=b.toLowerCase(),!d[b])throw new Error("Unknown locale : "+b);return d[b]},a.reset=function(){for(var b in y)_[b]=y[b]},a.zeroFormat=function(b){_.zeroFormat=typeof b=="string"?b:null},a.nullFormat=function(b){_.nullFormat=typeof b=="string"?b:null},a.defaultFormat=function(b){_.defaultFormat=typeof b=="string"?b:"0.0"},a.register=function(b,$,P){if($=$.toLowerCase(),this[b+"s"][$])throw new TypeError($+" "+b+" already registered.");return this[b+"s"][$]=P,P},a.validate=function(b,$){var P,T,C,O,A,F,j,L;if(typeof b!="string"&&(b+=""),b=b.trim(),b.match(/^\d+$/))return!0;if(b==="")return!1;try{j=a.localeData($)}catch(M){j=a.localeData(a.locale())}return C=j.currency.symbol,A=j.abbreviations,P=j.delimiters.decimal,j.delimiters.thousands==="."?T="\\.":T=j.delimiters.thousands,L=b.match(/^[^\d]+/),L!==null&&(b=b.substr(1),L[0]!==C)||(L=b.match(/[^\d]+$/),L!==null&&(b=b.slice(0,-1),L[0]!==A.thousand&&L[0]!==A.million&&L[0]!==A.billion&&L[0]!==A.trillion))?!1:(F=new RegExp(T+"{2}"),b.match(/[^\d.,]/g)?!1:(O=b.split(P),O.length>2?!1:O.length<2?!!O[0].match(/^\d+.*\d$/)&&!O[0].match(F):O[0].length===1?!!O[0].match(/^\d+$/)&&!O[0].match(F)&&!!O[1].match(/^\d+$/):!!O[0].match(/^\d+.*\d$/)&&!O[0].match(F)&&!!O[1].match(/^\d+$/)))},a.fn=S.prototype={clone:function(){return a(this)},format:function(b,$){var P=this._value,T=b||_.defaultFormat,C,O,A;if($=$||Math.round,P===0&&_.zeroFormat!==null)O=_.zeroFormat;else if(P===null&&_.nullFormat!==null)O=_.nullFormat;else{for(C in f)if(T.match(f[C].regexps.format)){A=f[C].format;break}A=A||a._.numberToFormat,O=A(P,T,$)}return O},value:function(){return this._value},input:function(){return this._input},set:function(b){return this._value=Number(b),this},add:function(b){var $=s.correctionFactor.call(null,this._value,b);function P(T,C,O,A){return T+Math.round($*C)}return this._value=s.reduce([this._value,b],P,0)/$,this},subtract:function(b){var $=s.correctionFactor.call(null,this._value,b);function P(T,C,O,A){return T-Math.round($*C)}return this._value=s.reduce([b],P,Math.round(this._value*$))/$,this},multiply:function(b){function $(P,T,C,O){var A=s.correctionFactor(P,T);return Math.round(P*A)*Math.round(T*A)/Math.round(A*A)}return this._value=s.reduce([this._value,b],$,1),this},divide:function(b){function $(P,T,C,O){var A=s.correctionFactor(P,T);return Math.round(P*A)/Math.round(T*A)}return this._value=s.reduce([this._value,b],$),this},difference:function(b){return Math.abs(a(this._value).subtract(b).value())}},a.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(b){var $=b%10;return~~(b%100/10)===1?"th":$===1?"st":$===2?"nd":$===3?"rd":"th"},currency:{symbol:"$"}}),function(){a.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(b,$,P){var T=a._.includes($," BPS")?" ":"",C;return b=b*1e4,$=$.replace(/\s?BPS/,""),C=a._.numberToFormat(b,$,P),a._.includes(C,")")?(C=C.split(""),C.splice(-1,0,T+"BPS"),C=C.join("")):C=C+T+"BPS",C},unformat:function(b){return+(a._.stringToNumber(b)*1e-4).toFixed(15)}})}(),function(){var b={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},$={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},P=b.suffixes.concat($.suffixes.filter(function(C){return b.suffixes.indexOf(C)<0})),T=P.join("|");T="("+T.replace("B","B(?!PS)")+")",a.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(T)},format:function(C,O,A){var F,j=a._.includes(O,"ib")?$:b,L=a._.includes(O," b")||a._.includes(O," ib")?" ":"",M,I,U;for(O=O.replace(/\s?i?b/,""),M=0;M<=j.suffixes.length;M++)if(I=Math.pow(j.base,M),U=Math.pow(j.base,M+1),C===null||C===0||C>=I&&C0&&(C=C/I);break}return F=a._.numberToFormat(C,O,A),F+L},unformat:function(C){var O=a._.stringToNumber(C),A,F;if(O){for(A=b.suffixes.length-1;A>=0;A--){if(a._.includes(C,b.suffixes[A])){F=Math.pow(b.base,A);break}if(a._.includes(C,$.suffixes[A])){F=Math.pow($.base,A);break}}O*=F||1}return O}})}(),function(){a.register("format","currency",{regexps:{format:/(\$)/},format:function(b,$,P){var T=a.locales[a.options.currentLocale],C={before:$.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:$.match(/([\+|\-|\)|\s|\$]*)$/)[0]},O,A,F;for($=$.replace(/\s?\$\s?/,""),O=a._.numberToFormat(b,$,P),b>=0?(C.before=C.before.replace(/[\-\(]/,""),C.after=C.after.replace(/[\-\)]/,"")):b<0&&!a._.includes(C.before,"-")&&!a._.includes(C.before,"(")&&(C.before="-"+C.before),F=0;F=0;F--)switch(A=C.after[F],A){case"$":O=F===C.after.length-1?O+T.currency.symbol:a._.insert(O,T.currency.symbol,-(C.after.length-(1+F)));break;case" ":O=F===C.after.length-1?O+" ":a._.insert(O," ",-(C.after.length-(1+F)+T.currency.symbol.length-1));break}return O}})}(),function(){a.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(b,$,P){var T,C=typeof b=="number"&&!a._.isNaN(b)?b.toExponential():"0e+0",O=C.split("e");return $=$.replace(/e[\+|\-]{1}0/,""),T=a._.numberToFormat(Number(O[0]),$,P),T+"e"+O[1]},unformat:function(b){var $=a._.includes(b,"e+")?b.split("e+"):b.split("e-"),P=Number($[0]),T=Number($[1]);T=a._.includes(b,"e-")?T*=-1:T;function C(O,A,F,j){var L=a._.correctionFactor(O,A),M=O*L*(A*L)/(L*L);return M}return a._.reduce([P,Math.pow(10,T)],C,1)}})}(),function(){a.register("format","ordinal",{regexps:{format:/(o)/},format:function(b,$,P){var T=a.locales[a.options.currentLocale],C,O=a._.includes($," o")?" ":"";return $=$.replace(/\s?o/,""),O+=T.ordinal(b),C=a._.numberToFormat(b,$,P),C+O}})}(),function(){a.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(b,$,P){var T=a._.includes($," %")?" ":"",C;return a.options.scalePercentBy100&&(b=b*100),$=$.replace(/\s?\%/,""),C=a._.numberToFormat(b,$,P),a._.includes(C,")")?(C=C.split(""),C.splice(-1,0,T+"%"),C=C.join("")):C=C+T+"%",C},unformat:function(b){var $=a._.stringToNumber(b);return a.options.scalePercentBy100?$*.01:$}})}(),function(){a.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(b,$,P){var T=Math.floor(b/60/60),C=Math.floor((b-T*60*60)/60),O=Math.round(b-T*60*60-C*60);return T+":"+(C<10?"0"+C:C)+":"+(O<10?"0"+O:O)},unformat:function(b){var $=b.split(":"),P=0;return $.length===3?(P=P+Number($[0])*60*60,P=P+Number($[1])*60,P=P+Number($[2])):$.length===2&&(P=P+Number($[0])*60,P=P+Number($[1])),Number(P)}})}(),a})})(numeral);var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$f=Object.prototype,hasOwnProperty$d=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(o){var a=hasOwnProperty$d.call(o,symToStringTag$1),s=o[symToStringTag$1];try{o[symToStringTag$1]=void 0;var c=!0}catch(d){}var f=nativeObjectToString$1.call(o);return c&&(a?o[symToStringTag$1]=s:delete o[symToStringTag$1]),f}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$1(o){return nativeObjectToString.call(o)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(o){return o==null?o===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(o)?getRawTag(o):objectToString$1(o)}function isObjectLike$1(o){return o!=null&&typeof o=="object"}function arrayMap(o,a){for(var s=-1,c=o==null?0:o.length,f=Array(c);++s0){if(++a>=HOT_COUNT)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}function constant(o){return function(){return o}}var defineProperty=function(){try{var o=getNative(Object,"defineProperty");return o({},"",{}),o}catch(a){}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(o,a){return defineProperty$1(o,"toString",{configurable:!0,enumerable:!1,value:constant(a),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach(o,a){for(var s=-1,c=o==null?0:o.length;++s-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(o,a){var s=typeof o;return a=a==null?MAX_SAFE_INTEGER$1:a,!!a&&(s=="number"||s!="symbol"&&reIsUint.test(o))&&o>-1&&o%1==0&&o-1&&o%1==0&&o<=MAX_SAFE_INTEGER}function isArrayLike(o){return o!=null&&isLength(o.length)&&!isFunction$2(o)}function isIterateeCall(o,a,s){if(!isObject$3(s))return!1;var c=typeof a;return(c=="number"?isArrayLike(s)&&isIndex(a,s.length):c=="string"&&a in s)?eq(s[a],o):!1}function createAssigner(o){return baseRest(function(a,s){var c=-1,f=s.length,d=f>1?s[f-1]:void 0,y=f>2?s[2]:void 0;for(d=o.length>3&&typeof d=="function"?(f--,d):void 0,y&&isIterateeCall(s[0],s[1],y)&&(d=f<3?void 0:d,f=1),a=Object(a);++c-1}function listCacheSet(o,a){var s=this.__data__,c=assocIndexOf(s,o);return c<0?(++this.size,s.push([o,a])):s[c][1]=a,this}function ListCache(o){var a=-1,s=o==null?0:o.length;for(this.clear();++a0&&s(_)?a>1?baseFlatten(_,a-1,s,c,f):arrayPush(f,_):c||(f[f.length]=_)}return f}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$4=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$4=objectProto$4.hasOwnProperty,objectCtorString$1=funcToString.call(Object);function isPlainObject$4(o){if(!isObjectLike$1(o)||baseGetTag(o)!=objectTag$3)return!1;var a=getPrototype$1(o);if(a===null)return!0;var s=hasOwnProperty$4.call(a,"constructor")&&a.constructor;return typeof s=="function"&&s instanceof s&&funcToString.call(s)==objectCtorString$1}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}function stackGet(o){return this.__data__.get(o)}function stackHas(o){return this.__data__.has(o)}var LARGE_ARRAY_SIZE$1=200;function stackSet(o,a){var s=this.__data__;if(s instanceof ListCache){var c=s.__data__;if(!Map$2||c.length_))return!1;var b=d.get(o),$=d.get(a);if(b&&$)return b==a&&$==o;var P=-1,T=!0,C=s&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(d.set(o,a),d.set(a,o);++P<_;){var O=o[P],A=a[P];if(c)var F=y?c(A,O,P,a,o,d):c(O,A,P,o,a,d);if(F!==void 0){if(F)continue;T=!1;break}if(C){if(!arraySome(a,function(j,L){if(!cacheHas(C,L)&&(O===j||f(O,j,s,c,d)))return C.push(L)})){T=!1;break}}else if(!(O===A||f(O,A,s,c,d))){T=!1;break}}return d.delete(o),d.delete(a),T}function mapToArray(o){var a=-1,s=Array(o.size);return o.forEach(function(c,f){s[++a]=[f,c]}),s}function setToArray(o){var a=-1,s=Array(o.size);return o.forEach(function(c){s[++a]=c}),s}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(o,a,s,c,f,d,y){switch(s){case dataViewTag:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case arrayBufferTag:return!(o.byteLength!=a.byteLength||!d(new Uint8Array$2(o),new Uint8Array$2(a)));case boolTag:case dateTag:case numberTag:return eq(+o,+a);case errorTag:return o.name==a.name&&o.message==a.message;case regexpTag:case stringTag$1:return o==a+"";case mapTag:var _=mapToArray;case setTag:var S=c&COMPARE_PARTIAL_FLAG$2;if(_||(_=setToArray),o.size!=a.size&&!S)return!1;var b=y.get(o);if(b)return b==a;c|=COMPARE_UNORDERED_FLAG,y.set(o,a);var $=equalArrays(_(o),_(a),c,f,d,y);return y.delete(o),$;case symbolTag:if(symbolValueOf)return symbolValueOf.call(o)==symbolValueOf.call(a)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects(o,a,s,c,f,d){var y=s&COMPARE_PARTIAL_FLAG$1,_=getAllKeys(o),S=_.length,b=getAllKeys(a),$=b.length;if(S!=$&&!y)return!1;for(var P=S;P--;){var T=_[P];if(!(y?T in a:hasOwnProperty$2.call(a,T)))return!1}var C=d.get(o),O=d.get(a);if(C&&O)return C==a&&O==o;var A=!0;d.set(o,a),d.set(a,o);for(var F=y;++P=120&&$.length>=120)?new SetCache(y&&$):void 0}$=o[0];var P=-1,T=_[0];e:for(;++P=LARGE_ARRAY_SIZE){var b=a?null:createSet$1(o);if(b)return setToArray(b);y=!1,f=cacheHas,S=new SetCache}else S=a?[]:_;e:for(;++c{var c,f;const s=(f=(c=o[a])==null?void 0:c.format)!=null?f:null;if(s&&typeof s=="function"&&(o[a]=o[a].format(DATE_TIME_FORMAT)),isString$3(a)){const d=o[a];d&&(o[a]=isString$3(d)?d.trim():JSON.stringify(d))}isObject$3(o[a])&&formatRequestDate(o[a])})}function joinTimestamp(o,a=!1){if(!o)return a?"":{};const s=new Date().getTime();return a?`?_t=${s}`:{_t:s}}function setObjToUrlParams(o,a){const s=Object.keys(a).map(c=>`${c}=${encodeURIComponent(a[c])}`).join("&");return s?`${o}?${s}`:o}function deepMerge(o,a,s="replace"){return a?o?mergeWith$1({},o,a,(c,f)=>{if(isArray$8(f)&&isArray$8(c))switch(s){case"union":return unionWith$1(c,f,isEqual);case"intersection":return intersectionWith$1(c,f,isEqual);case"concat":return c.concat(f);case"replace":return f;default:throw new Error(`Unknown merge array strategy: ${s}`)}if(isObject$3(f)&&isObject$3(c))return deepMerge(c,f,s)}):a:o}const getItem$1=o=>{let a=null;try{const s=window.localStorage.getItem(o);s!==null&&s!=="undefined"&&(a=JSON.parse(s))}catch(s){}return a},setItem=(o,a)=>{localStorage.setItem(o,JSON.stringify(a))},removeItem=o=>{localStorage.removeItem(o)},createStoreImpl=o=>{let a;const s=new Set,c=($,P)=>{const T=typeof $=="function"?$(a):$;if(!Object.is(T,a)){const C=a;a=(P!=null?P:typeof T!="object"||T===null)?T:Object.assign({},a,T),s.forEach(O=>O(a,C))}},f=()=>a,S={setState:c,getState:f,getInitialState:()=>b,subscribe:$=>(s.add($),()=>s.delete($)),destroy:()=>{s.clear()}},b=a=o(c,f,S);return S},createStore$2=o=>o?createStoreImpl(o):createStoreImpl,{useDebugValue}=React$4,{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;const identity=o=>o;function useStore(o,a=identity,s){const c=useSyncExternalStoreWithSelector(o.subscribe,o.getState,o.getServerState||o.getInitialState,a,s);return useDebugValue(c),c}const createImpl=o=>{const a=typeof o=="function"?createStore$2(o):o,s=(c,f)=>useStore(a,c,f);return Object.assign(s,a),s},create=o=>o?createImpl(o):createImpl;var BasicStatus=(o=>(o[o.DISABLE=0]="DISABLE",o[o.ENABLE=1]="ENABLE",o))(BasicStatus||{}),PermissionType=(o=>(o[o.CATALOGUE=0]="CATALOGUE",o[o.MENU=1]="MENU",o[o.BUTTON=2]="BUTTON",o))(PermissionType||{}),StorageEnum$1=(o=>(o.User="user",o.Token="token",o.Settings="settings",o.I18N="i18nextLng",o))(StorageEnum$1||{}),ThemeMode=(o=>(o.Light="light",o.Dark="dark",o))(ThemeMode||{}),ThemeLayout=(o=>(o.Vertical="vertical",o.Horizontal="horizontal",o.Mini="mini",o))(ThemeLayout||{}),ThemeColorPresets=(o=>(o.Default="default",o.Cyan="cyan",o.Purple="purple",o.Blue="blue",o.Orange="orange",o.Red="red",o))(ThemeColorPresets||{});const useSettingStore=create(o=>({settings:getItem$1(StorageEnum$1.Settings)||{themeColorPresets:ThemeColorPresets.Default,themeMode:ThemeMode.Light,themeLayout:ThemeLayout.Vertical,themeStretch:!1,breadCrumb:!0,multiTab:!0,unfold:!0},actions:{setSettings:a=>{o({settings:a}),setItem(StorageEnum$1.Settings,a)},clearSettings:()=>{removeItem(StorageEnum$1.Settings)}}})),useSettings=()=>useSettingStore(o=>o.settings),useSettingActions=()=>useSettingStore(o=>o.actions),useStyles$9=createStyles(({token:o,css:a})=>({"app-logo":{display:"flex",alignItems:"center",height:"48px",paddingLeft:"24px",cursor:"pointer",transition:"all 0.3s ease"},"logo-img":{display:"block",width:"32px",height:"32px"},"logo-name":{display:"block",width:"120px",height:"15px"},hidden:{display:"none"},container:{textAlign:"center"},text:{color:o.colorPrimary,fontSize:"20px",fontWeight:"bold",lineHeight:"32px",animation:"showup 0.6s linear forwards","@keyframes showup":{"0%":{filter:"blur(10px)",letterSpacing:"-1px"},"100%":{filter:"blur(0px)",letterSpacing:"2px"}}}})),AppLogo=()=>{const o=useTheme(),{styles:a}=useStyles$9(),c=useSettings().unfold;return jsxRuntimeExports.jsx("div",{className:classNames("anticon",a["app-logo"]),children:jsxRuntimeExports.jsxs(Space,{children:[jsxRuntimeExports.jsx(SvgIcon,{style:{color:o.colorPrimary},name:"logo",size:30}),jsxRuntimeExports.jsx("div",{className:a.container,children:c?"":jsxRuntimeExports.jsx("span",{className:a.text,children:"Beata Admin"})})]})})};var __assign=function(){return __assign=Object.assign||function(a){for(var s,c=1,f=arguments.length;c0&&d[d.length-1])&&(b[0]===6||b[0]===2)){s=0;continue}if(b[0]===3&&(!d||b[1]>d[0]&&b[1]0)&&!(f=c.next()).done;)d.push(f.value)}catch(_){y={error:_}}finally{try{f&&!f.done&&(s=c.return)&&s.call(c)}finally{if(y)throw y.error}}return d}function __spreadArray(o,a,s){if(s||arguments.length===2)for(var c=0,f=a.length,d;c=j&&!H||H==="t"?(M+=T.abbreviations.trillion,b=b/j):G=L&&!H||H==="b"?(M+=T.abbreviations.billion,b=b/L):G=F&&!H||H==="m"?(M+=T.abbreviations.million,b=b/F):(G=I&&!H||H==="k")&&(M+=T.abbreviations.thousand,b=b/I)),a._.includes($,"[.]")&&(O=!0,$=$.replace("[.]",".")),X=b.toString().split(".")[0],W=$.split(".")[1],ie=$.indexOf(","),A=($.split(".")[0].split(",")[0].match(/0/g)||[]).length,W?(a._.includes(W,"[")?(W=W.replace("]",""),W=W.split("["),U=a._.toFixed(b,W[0].length+W[1].length,P,W[1].length)):U=a._.toFixed(b,W.length,P),X=U.split(".")[0],a._.includes(U,".")?U=T.delimiters.decimal+U.split(".")[1]:U="",O&&Number(U.slice(1))===0&&(U="")):X=a._.toFixed(b,0,P),M&&!H&&Number(X)>=1e3&&M!==T.abbreviations.trillion)switch(X=String(Number(X)/1e3),M){case T.abbreviations.thousand:M=T.abbreviations.million;break;case T.abbreviations.million:M=T.abbreviations.billion;break;case T.abbreviations.billion:M=T.abbreviations.trillion;break}if(a._.includes(X,"-")&&(X=X.slice(1),z=!0),X.length0;de--)X="0"+X;return ie>-1&&(X=X.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+T.delimiters.thousands)),$.indexOf(".")===0&&(X=""),ee=X+U+(M||""),C?ee=(C&&z?"(":"")+ee+(C&&z?")":""):K>=0?ee=K===0?(z?"-":"+")+ee:ee+(z?"-":"+"):z&&(ee="-"+ee),ee},stringToNumber:function(b){var $=d[_.currentLocale],P=b,T={thousand:3,million:6,billion:9,trillion:12},C,O,A;if(_.zeroFormat&&b===_.zeroFormat)O=0;else if(_.nullFormat&&b===_.nullFormat||!b.replace(/[^0-9]+/g,"").length)O=null;else{O=1,$.delimiters.decimal!=="."&&(b=b.replace(/\./g,"").replace($.delimiters.decimal,"."));for(C in T)if(A=new RegExp("[^a-zA-Z]"+$.abbreviations[C]+"(?:\\)|(\\"+$.currency.symbol+")?(?:\\))?)?$"),P.match(A)){O*=Math.pow(10,T[C]);break}O*=(b.split("-").length+Math.min(b.split("(").length-1,b.split(")").length-1))%2?1:-1,b=b.replace(/[^0-9\.]+/g,""),O*=Number(b)}return O},isNaN:function(b){return typeof b=="number"&&isNaN(b)},includes:function(b,$){return b.indexOf($)!==-1},insert:function(b,$,P){return b.slice(0,P)+$+b.slice(P)},reduce:function(b,$){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof $!="function")throw new TypeError($+" is not a function");var P=Object(b),T=P.length>>>0,C=0,O;if(arguments.length===3)O=arguments[2];else{for(;C=T)throw new TypeError("Reduce of empty array with no initial value");O=P[C++]}for(;CT?$:T},1)},toFixed:function(b,$,P,T){var C=b.toString().split("."),O=$-(T||0),A,M,j,L;return C.length===2?A=Math.min(Math.max(C[1].length,O),$):A=O,j=Math.pow(10,A),L=(P(b+"e+"+A)/j).toFixed(A),T>$-A&&(M=new RegExp("\\.?0{1,"+(T-($-A))+"}$"),L=L.replace(M,"")),L}},a.options=_,a.formats=f,a.locales=d,a.locale=function(b){return b&&(_.currentLocale=b.toLowerCase()),_.currentLocale},a.localeData=function(b){if(!b)return d[_.currentLocale];if(b=b.toLowerCase(),!d[b])throw new Error("Unknown locale : "+b);return d[b]},a.reset=function(){for(var b in y)_[b]=y[b]},a.zeroFormat=function(b){_.zeroFormat=typeof b=="string"?b:null},a.nullFormat=function(b){_.nullFormat=typeof b=="string"?b:null},a.defaultFormat=function(b){_.defaultFormat=typeof b=="string"?b:"0.0"},a.register=function(b,$,P){if($=$.toLowerCase(),this[b+"s"][$])throw new TypeError($+" "+b+" already registered.");return this[b+"s"][$]=P,P},a.validate=function(b,$){var P,T,C,O,A,M,j,L;if(typeof b!="string"&&(b+=""),b=b.trim(),b.match(/^\d+$/))return!0;if(b==="")return!1;try{j=a.localeData($)}catch(F){j=a.localeData(a.locale())}return C=j.currency.symbol,A=j.abbreviations,P=j.delimiters.decimal,j.delimiters.thousands==="."?T="\\.":T=j.delimiters.thousands,L=b.match(/^[^\d]+/),L!==null&&(b=b.substr(1),L[0]!==C)||(L=b.match(/[^\d]+$/),L!==null&&(b=b.slice(0,-1),L[0]!==A.thousand&&L[0]!==A.million&&L[0]!==A.billion&&L[0]!==A.trillion))?!1:(M=new RegExp(T+"{2}"),b.match(/[^\d.,]/g)?!1:(O=b.split(P),O.length>2?!1:O.length<2?!!O[0].match(/^\d+.*\d$/)&&!O[0].match(M):O[0].length===1?!!O[0].match(/^\d+$/)&&!O[0].match(M)&&!!O[1].match(/^\d+$/):!!O[0].match(/^\d+.*\d$/)&&!O[0].match(M)&&!!O[1].match(/^\d+$/)))},a.fn=S.prototype={clone:function(){return a(this)},format:function(b,$){var P=this._value,T=b||_.defaultFormat,C,O,A;if($=$||Math.round,P===0&&_.zeroFormat!==null)O=_.zeroFormat;else if(P===null&&_.nullFormat!==null)O=_.nullFormat;else{for(C in f)if(T.match(f[C].regexps.format)){A=f[C].format;break}A=A||a._.numberToFormat,O=A(P,T,$)}return O},value:function(){return this._value},input:function(){return this._input},set:function(b){return this._value=Number(b),this},add:function(b){var $=s.correctionFactor.call(null,this._value,b);function P(T,C,O,A){return T+Math.round($*C)}return this._value=s.reduce([this._value,b],P,0)/$,this},subtract:function(b){var $=s.correctionFactor.call(null,this._value,b);function P(T,C,O,A){return T-Math.round($*C)}return this._value=s.reduce([b],P,Math.round(this._value*$))/$,this},multiply:function(b){function $(P,T,C,O){var A=s.correctionFactor(P,T);return Math.round(P*A)*Math.round(T*A)/Math.round(A*A)}return this._value=s.reduce([this._value,b],$,1),this},divide:function(b){function $(P,T,C,O){var A=s.correctionFactor(P,T);return Math.round(P*A)/Math.round(T*A)}return this._value=s.reduce([this._value,b],$),this},difference:function(b){return Math.abs(a(this._value).subtract(b).value())}},a.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(b){var $=b%10;return~~(b%100/10)===1?"th":$===1?"st":$===2?"nd":$===3?"rd":"th"},currency:{symbol:"$"}}),function(){a.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(b,$,P){var T=a._.includes($," BPS")?" ":"",C;return b=b*1e4,$=$.replace(/\s?BPS/,""),C=a._.numberToFormat(b,$,P),a._.includes(C,")")?(C=C.split(""),C.splice(-1,0,T+"BPS"),C=C.join("")):C=C+T+"BPS",C},unformat:function(b){return+(a._.stringToNumber(b)*1e-4).toFixed(15)}})}(),function(){var b={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},$={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},P=b.suffixes.concat($.suffixes.filter(function(C){return b.suffixes.indexOf(C)<0})),T=P.join("|");T="("+T.replace("B","B(?!PS)")+")",a.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(T)},format:function(C,O,A){var M,j=a._.includes(O,"ib")?$:b,L=a._.includes(O," b")||a._.includes(O," ib")?" ":"",F,I,U;for(O=O.replace(/\s?i?b/,""),F=0;F<=j.suffixes.length;F++)if(I=Math.pow(j.base,F),U=Math.pow(j.base,F+1),C===null||C===0||C>=I&&C0&&(C=C/I);break}return M=a._.numberToFormat(C,O,A),M+L},unformat:function(C){var O=a._.stringToNumber(C),A,M;if(O){for(A=b.suffixes.length-1;A>=0;A--){if(a._.includes(C,b.suffixes[A])){M=Math.pow(b.base,A);break}if(a._.includes(C,$.suffixes[A])){M=Math.pow($.base,A);break}}O*=M||1}return O}})}(),function(){a.register("format","currency",{regexps:{format:/(\$)/},format:function(b,$,P){var T=a.locales[a.options.currentLocale],C={before:$.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:$.match(/([\+|\-|\)|\s|\$]*)$/)[0]},O,A,M;for($=$.replace(/\s?\$\s?/,""),O=a._.numberToFormat(b,$,P),b>=0?(C.before=C.before.replace(/[\-\(]/,""),C.after=C.after.replace(/[\-\)]/,"")):b<0&&!a._.includes(C.before,"-")&&!a._.includes(C.before,"(")&&(C.before="-"+C.before),M=0;M=0;M--)switch(A=C.after[M],A){case"$":O=M===C.after.length-1?O+T.currency.symbol:a._.insert(O,T.currency.symbol,-(C.after.length-(1+M)));break;case" ":O=M===C.after.length-1?O+" ":a._.insert(O," ",-(C.after.length-(1+M)+T.currency.symbol.length-1));break}return O}})}(),function(){a.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(b,$,P){var T,C=typeof b=="number"&&!a._.isNaN(b)?b.toExponential():"0e+0",O=C.split("e");return $=$.replace(/e[\+|\-]{1}0/,""),T=a._.numberToFormat(Number(O[0]),$,P),T+"e"+O[1]},unformat:function(b){var $=a._.includes(b,"e+")?b.split("e+"):b.split("e-"),P=Number($[0]),T=Number($[1]);T=a._.includes(b,"e-")?T*=-1:T;function C(O,A,M,j){var L=a._.correctionFactor(O,A),F=O*L*(A*L)/(L*L);return F}return a._.reduce([P,Math.pow(10,T)],C,1)}})}(),function(){a.register("format","ordinal",{regexps:{format:/(o)/},format:function(b,$,P){var T=a.locales[a.options.currentLocale],C,O=a._.includes($," o")?" ":"";return $=$.replace(/\s?o/,""),O+=T.ordinal(b),C=a._.numberToFormat(b,$,P),C+O}})}(),function(){a.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(b,$,P){var T=a._.includes($," %")?" ":"",C;return a.options.scalePercentBy100&&(b=b*100),$=$.replace(/\s?\%/,""),C=a._.numberToFormat(b,$,P),a._.includes(C,")")?(C=C.split(""),C.splice(-1,0,T+"%"),C=C.join("")):C=C+T+"%",C},unformat:function(b){var $=a._.stringToNumber(b);return a.options.scalePercentBy100?$*.01:$}})}(),function(){a.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(b,$,P){var T=Math.floor(b/60/60),C=Math.floor((b-T*60*60)/60),O=Math.round(b-T*60*60-C*60);return T+":"+(C<10?"0"+C:C)+":"+(O<10?"0"+O:O)},unformat:function(b){var $=b.split(":"),P=0;return $.length===3?(P=P+Number($[0])*60*60,P=P+Number($[1])*60,P=P+Number($[2])):$.length===2&&(P=P+Number($[0])*60,P=P+Number($[1])),Number(P)}})}(),a})})(numeral);var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$f=Object.prototype,hasOwnProperty$d=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(o){var a=hasOwnProperty$d.call(o,symToStringTag$1),s=o[symToStringTag$1];try{o[symToStringTag$1]=void 0;var c=!0}catch(d){}var f=nativeObjectToString$1.call(o);return c&&(a?o[symToStringTag$1]=s:delete o[symToStringTag$1]),f}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$1(o){return nativeObjectToString.call(o)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(o){return o==null?o===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(o)?getRawTag(o):objectToString$1(o)}function isObjectLike$1(o){return o!=null&&typeof o=="object"}function arrayMap(o,a){for(var s=-1,c=o==null?0:o.length,f=Array(c);++s0){if(++a>=HOT_COUNT)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}function constant(o){return function(){return o}}var defineProperty=function(){try{var o=getNative(Object,"defineProperty");return o({},"",{}),o}catch(a){}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(o,a){return defineProperty$1(o,"toString",{configurable:!0,enumerable:!1,value:constant(a),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach(o,a){for(var s=-1,c=o==null?0:o.length;++s-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(o,a){var s=typeof o;return a=a==null?MAX_SAFE_INTEGER$1:a,!!a&&(s=="number"||s!="symbol"&&reIsUint.test(o))&&o>-1&&o%1==0&&o-1&&o%1==0&&o<=MAX_SAFE_INTEGER}function isArrayLike(o){return o!=null&&isLength(o.length)&&!isFunction$2(o)}function isIterateeCall(o,a,s){if(!isObject$3(s))return!1;var c=typeof a;return(c=="number"?isArrayLike(s)&&isIndex(a,s.length):c=="string"&&a in s)?eq(s[a],o):!1}function createAssigner(o){return baseRest(function(a,s){var c=-1,f=s.length,d=f>1?s[f-1]:void 0,y=f>2?s[2]:void 0;for(d=o.length>3&&typeof d=="function"?(f--,d):void 0,y&&isIterateeCall(s[0],s[1],y)&&(d=f<3?void 0:d,f=1),a=Object(a);++c-1}function listCacheSet(o,a){var s=this.__data__,c=assocIndexOf(s,o);return c<0?(++this.size,s.push([o,a])):s[c][1]=a,this}function ListCache(o){var a=-1,s=o==null?0:o.length;for(this.clear();++a0&&s(_)?a>1?baseFlatten(_,a-1,s,c,f):arrayPush(f,_):c||(f[f.length]=_)}return f}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$4=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$4=objectProto$4.hasOwnProperty,objectCtorString$1=funcToString.call(Object);function isPlainObject$4(o){if(!isObjectLike$1(o)||baseGetTag(o)!=objectTag$3)return!1;var a=getPrototype$1(o);if(a===null)return!0;var s=hasOwnProperty$4.call(a,"constructor")&&a.constructor;return typeof s=="function"&&s instanceof s&&funcToString.call(s)==objectCtorString$1}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}function stackGet(o){return this.__data__.get(o)}function stackHas(o){return this.__data__.has(o)}var LARGE_ARRAY_SIZE$1=200;function stackSet(o,a){var s=this.__data__;if(s instanceof ListCache){var c=s.__data__;if(!Map$2||c.length_))return!1;var b=d.get(o),$=d.get(a);if(b&&$)return b==a&&$==o;var P=-1,T=!0,C=s&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(d.set(o,a),d.set(a,o);++P<_;){var O=o[P],A=a[P];if(c)var M=y?c(A,O,P,a,o,d):c(O,A,P,o,a,d);if(M!==void 0){if(M)continue;T=!1;break}if(C){if(!arraySome(a,function(j,L){if(!cacheHas(C,L)&&(O===j||f(O,j,s,c,d)))return C.push(L)})){T=!1;break}}else if(!(O===A||f(O,A,s,c,d))){T=!1;break}}return d.delete(o),d.delete(a),T}function mapToArray(o){var a=-1,s=Array(o.size);return o.forEach(function(c,f){s[++a]=[f,c]}),s}function setToArray(o){var a=-1,s=Array(o.size);return o.forEach(function(c){s[++a]=c}),s}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(o,a,s,c,f,d,y){switch(s){case dataViewTag:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case arrayBufferTag:return!(o.byteLength!=a.byteLength||!d(new Uint8Array$2(o),new Uint8Array$2(a)));case boolTag:case dateTag:case numberTag:return eq(+o,+a);case errorTag:return o.name==a.name&&o.message==a.message;case regexpTag:case stringTag$1:return o==a+"";case mapTag:var _=mapToArray;case setTag:var S=c&COMPARE_PARTIAL_FLAG$2;if(_||(_=setToArray),o.size!=a.size&&!S)return!1;var b=y.get(o);if(b)return b==a;c|=COMPARE_UNORDERED_FLAG,y.set(o,a);var $=equalArrays(_(o),_(a),c,f,d,y);return y.delete(o),$;case symbolTag:if(symbolValueOf)return symbolValueOf.call(o)==symbolValueOf.call(a)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects(o,a,s,c,f,d){var y=s&COMPARE_PARTIAL_FLAG$1,_=getAllKeys(o),S=_.length,b=getAllKeys(a),$=b.length;if(S!=$&&!y)return!1;for(var P=S;P--;){var T=_[P];if(!(y?T in a:hasOwnProperty$2.call(a,T)))return!1}var C=d.get(o),O=d.get(a);if(C&&O)return C==a&&O==o;var A=!0;d.set(o,a),d.set(a,o);for(var M=y;++P=120&&$.length>=120)?new SetCache(y&&$):void 0}$=o[0];var P=-1,T=_[0];e:for(;++P=LARGE_ARRAY_SIZE){var b=a?null:createSet$1(o);if(b)return setToArray(b);y=!1,f=cacheHas,S=new SetCache}else S=a?[]:_;e:for(;++c{var c,f;const s=(f=(c=o[a])==null?void 0:c.format)!=null?f:null;if(s&&typeof s=="function"&&(o[a]=o[a].format(DATE_TIME_FORMAT)),isString$3(a)){const d=o[a];d&&(o[a]=isString$3(d)?d.trim():JSON.stringify(d))}isObject$3(o[a])&&formatRequestDate(o[a])})}function joinTimestamp(o,a=!1){if(!o)return a?"":{};const s=new Date().getTime();return a?`?_t=${s}`:{_t:s}}function setObjToUrlParams(o,a){const s=Object.keys(a).map(c=>`${c}=${encodeURIComponent(a[c])}`).join("&");return s?`${o}?${s}`:o}function deepMerge(o,a,s="replace"){return a?o?mergeWith$1({},o,a,(c,f)=>{if(isArray$8(f)&&isArray$8(c))switch(s){case"union":return unionWith$1(c,f,isEqual);case"intersection":return intersectionWith$1(c,f,isEqual);case"concat":return c.concat(f);case"replace":return f;default:throw new Error(`Unknown merge array strategy: ${s}`)}if(isObject$3(f)&&isObject$3(c))return deepMerge(c,f,s)}):a:o}const getItem$1=o=>{let a=null;try{const s=window.localStorage.getItem(o);s!==null&&s!=="undefined"&&(a=JSON.parse(s))}catch(s){}return a},setItem=(o,a)=>{localStorage.setItem(o,JSON.stringify(a))},removeItem=o=>{localStorage.removeItem(o)},createStoreImpl=o=>{let a;const s=new Set,c=($,P)=>{const T=typeof $=="function"?$(a):$;if(!Object.is(T,a)){const C=a;a=(P!=null?P:typeof T!="object"||T===null)?T:Object.assign({},a,T),s.forEach(O=>O(a,C))}},f=()=>a,S={setState:c,getState:f,getInitialState:()=>b,subscribe:$=>(s.add($),()=>s.delete($)),destroy:()=>{s.clear()}},b=a=o(c,f,S);return S},createStore$2=o=>o?createStoreImpl(o):createStoreImpl,{useDebugValue}=React$4,{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;const identity=o=>o;function useStore(o,a=identity,s){const c=useSyncExternalStoreWithSelector(o.subscribe,o.getState,o.getServerState||o.getInitialState,a,s);return useDebugValue(c),c}const createImpl=o=>{const a=typeof o=="function"?createStore$2(o):o,s=(c,f)=>useStore(a,c,f);return Object.assign(s,a),s},create=o=>o?createImpl(o):createImpl;var BasicStatus=(o=>(o[o.DISABLE=0]="DISABLE",o[o.ENABLE=1]="ENABLE",o))(BasicStatus||{}),PermissionType=(o=>(o[o.CATALOGUE=0]="CATALOGUE",o[o.MENU=1]="MENU",o[o.BUTTON=2]="BUTTON",o))(PermissionType||{}),StorageEnum$1=(o=>(o.User="user",o.Token="token",o.Settings="settings",o.I18N="i18nextLng",o))(StorageEnum$1||{}),ThemeMode=(o=>(o.Light="light",o.Dark="dark",o))(ThemeMode||{}),ThemeLayout=(o=>(o.Vertical="vertical",o.Horizontal="horizontal",o.Mini="mini",o))(ThemeLayout||{}),ThemeColorPresets=(o=>(o.Default="default",o.Cyan="cyan",o.Purple="purple",o.Blue="blue",o.Orange="orange",o.Red="red",o))(ThemeColorPresets||{});const useSettingStore=create(o=>({settings:getItem$1(StorageEnum$1.Settings)||{themeColorPresets:ThemeColorPresets.Default,themeMode:ThemeMode.Light,themeLayout:ThemeLayout.Vertical,themeStretch:!1,breadCrumb:!0,multiTab:!0,unfold:!0},actions:{setSettings:a=>{o({settings:a}),setItem(StorageEnum$1.Settings,a)},clearSettings:()=>{removeItem(StorageEnum$1.Settings)}}})),useSettings=()=>useSettingStore(o=>o.settings),useSettingActions=()=>useSettingStore(o=>o.actions),useStyles$9=createStyles(({token:o,css:a})=>({"app-logo":{display:"flex",alignItems:"center",height:"48px",paddingLeft:"24px",cursor:"pointer",transition:"all 0.3s ease"},"logo-img":{display:"block",width:"32px",height:"32px"},"logo-name":{display:"block",width:"120px",height:"15px"},hidden:{display:"none"},container:{textAlign:"center"},text:{color:o.colorPrimary,fontSize:"20px",fontWeight:"bold",lineHeight:"32px",animation:"showup 0.6s linear forwards","@keyframes showup":{"0%":{filter:"blur(10px)",letterSpacing:"-1px"},"100%":{filter:"blur(0px)",letterSpacing:"2px"}}}})),AppLogo=()=>{const o=useTheme(),{styles:a}=useStyles$9(),c=useSettings().unfold;return jsxRuntimeExports.jsx("div",{className:classNames("anticon",a["app-logo"]),children:jsxRuntimeExports.jsxs(Space,{children:[jsxRuntimeExports.jsx(SvgIcon,{style:{color:o.colorPrimary},name:"logo",size:30}),jsxRuntimeExports.jsx("div",{className:a.container,children:c?"":jsxRuntimeExports.jsx("span",{className:a.text,children:"Beata Admin"})})]})})};var __assign=function(){return __assign=Object.assign||function(a){for(var s,c=1,f=arguments.length;c0&&d[d.length-1])&&(b[0]===6||b[0]===2)){s=0;continue}if(b[0]===3&&(!d||b[1]>d[0]&&b[1]0)&&!(f=c.next()).done;)d.push(f.value)}catch(_){y={error:_}}finally{try{f&&!f.done&&(s=c.return)&&s.call(c)}finally{if(y)throw y.error}}return d}function __spreadArray(o,a,s){if(s||arguments.length===2)for(var c=0,f=a.length,d;c{for(const s of a){if(s.path===o||s.fullPath===o)return s;if(s.children){const c=searchRoute(o,s.children);if(c)return c}}return null};function useTitle(){const[o,a]=reactExports.useState("react-admin-design"),{pathname:s}=useLocation();reactExports.useEffect(()=>{const c=searchRoute(s,routeList);a(c==null?void 0:c.meta.title)},[s]),useTitle$1(o)}function DocLink(){return jsxRuntimeExports.jsx(Tooltip,{title:t("文档"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",size:"small",onClick:()=>openWindow("https://anyone-yuren.github.io/gbeata-admin-docs"),icon:jsxRuntimeExports.jsx(ReadOutlined,{})})})}function FullScreen(){const[o,{toggleFullscreen:a}]=useFullscreen$1(document.body);return jsxRuntimeExports.jsx(Tooltip,{title:t(o?"退出全屏":"进入全屏"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:a,size:"small",icon:o?jsxRuntimeExports.jsx(FullscreenExitOutlined,{}):jsxRuntimeExports.jsx(FullscreenOutlined,{})})})}function GithubLink(){function o(){openWindow("https://github.com/anyone-yuren/gbeata-react-admin")}return jsxRuntimeExports.jsx(Tooltip,{title:"github",placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:o,size:"small",icon:jsxRuntimeExports.jsx(GithubOutlined,{})})})}function isArray$6(o){return Array.isArray?Array.isArray(o):getTag(o)==="[object Array]"}const INFINITY=1/0;function baseToString(o){if(typeof o=="string")return o;let a=o+"";return a=="0"&&1/o==-INFINITY?"-0":a}function toString$2(o){return o==null?"":baseToString(o)}function isString$2(o){return typeof o=="string"}function isNumber$2(o){return typeof o=="number"}function isBoolean$3(o){return o===!0||o===!1||isObjectLike(o)&&getTag(o)=="[object Boolean]"}function isObject$2(o){return typeof o=="object"}function isObjectLike(o){return isObject$2(o)&&o!==null}function isDefined(o){return o!=null}function isBlank(o){return!o.trim().length}function getTag(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(o)}const EXTENDED_SEARCH_UNAVAILABLE="Extended search is not available",INCORRECT_INDEX_TYPE="Incorrect 'index' type",LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY=o=>`Invalid value for key ${o}`,PATTERN_LENGTH_TOO_LARGE=o=>`Pattern length exceeds max of ${o}.`,MISSING_KEY_PROPERTY=o=>`Missing ${o} property in key`,INVALID_KEY_WEIGHT_VALUE=o=>`Property 'weight' in key '${o}' must be a positive integer`,hasOwn$2=Object.prototype.hasOwnProperty;class KeyStore{constructor(a){this._keys=[],this._keyMap={};let s=0;a.forEach(c=>{let f=createKey(c);this._keys.push(f),this._keyMap[f.id]=f,s+=f.weight}),this._keys.forEach(c=>{c.weight/=s})}get(a){return this._keyMap[a]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function createKey(o){let a=null,s=null,c=null,f=1,d=null;if(isString$2(o)||isArray$6(o))c=o,a=createKeyPath(o),s=createKeyId(o);else{if(!hasOwn$2.call(o,"name"))throw new Error(MISSING_KEY_PROPERTY("name"));const y=o.name;if(c=y,hasOwn$2.call(o,"weight")&&(f=o.weight,f<=0))throw new Error(INVALID_KEY_WEIGHT_VALUE(y));a=createKeyPath(y),s=createKeyId(y),d=o.getFn}return{path:a,id:s,weight:f,src:c,getFn:d}}function createKeyPath(o){return isArray$6(o)?o:o.split(".")}function createKeyId(o){return isArray$6(o)?o.join("."):o}function get(o,a){let s=[],c=!1;const f=(d,y,_)=>{if(isDefined(d))if(!y[_])s.push(d);else{let S=y[_];const b=d[S];if(!isDefined(b))return;if(_===y.length-1&&(isString$2(b)||isNumber$2(b)||isBoolean$3(b)))s.push(toString$2(b));else if(isArray$6(b)){c=!0;for(let $=0,P=b.length;$o.score===a.score?o.idx{this._keysMap[s.id]=c})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,isString$2(this.docs[0])?this.docs.forEach((a,s)=>{this._addString(a,s)}):this.docs.forEach((a,s)=>{this._addObject(a,s)}),this.norm.clear())}add(a){const s=this.size();isString$2(a)?this._addString(a,s):this._addObject(a,s)}removeAt(a){this.records.splice(a,1);for(let s=a,c=this.size();s{let y=f.getFn?f.getFn(a):this.getFn(a,f.path);if(isDefined(y)){if(isArray$6(y)){let _=[];const S=[{nestedArrIndex:-1,value:y}];for(;S.length;){const{nestedArrIndex:b,value:$}=S.pop();if(isDefined($))if(isString$2($)&&!isBlank($)){let P={v:$,i:b,n:this.norm.get($)};_.push(P)}else isArray$6($)&&$.forEach((P,T)=>{S.push({nestedArrIndex:T,value:P})})}c.$[d]=_}else if(isString$2(y)&&!isBlank(y)){let _={v:y,n:this.norm.get(y)};c.$[d]=_}}}),this.records.push(c)}toJSON(){return{keys:this.keys,records:this.records}}}function createIndex(o,a,{getFn:s=Config.getFn,fieldNormWeight:c=Config.fieldNormWeight}={}){const f=new FuseIndex({getFn:s,fieldNormWeight:c});return f.setKeys(o.map(createKey)),f.setSources(a),f.create(),f}function parseIndex(o,{getFn:a=Config.getFn,fieldNormWeight:s=Config.fieldNormWeight}={}){const{keys:c,records:f}=o,d=new FuseIndex({getFn:a,fieldNormWeight:s});return d.setKeys(c),d.setIndexRecords(f),d}function computeScore$1(o,{errors:a=0,currentLocation:s=0,expectedLocation:c=0,distance:f=Config.distance,ignoreLocation:d=Config.ignoreLocation}={}){const y=a/o.length;if(d)return y;const _=Math.abs(c-s);return f?y+_/f:_?1:y}function convertMaskToIndices(o=[],a=Config.minMatchCharLength){let s=[],c=-1,f=-1,d=0;for(let y=o.length;d=a&&s.push([c,f]),c=-1)}return o[d-1]&&d-c>=a&&s.push([c,d-1]),s}const MAX_BITS=32;function search(o,a,s,{location:c=Config.location,distance:f=Config.distance,threshold:d=Config.threshold,findAllMatches:y=Config.findAllMatches,minMatchCharLength:_=Config.minMatchCharLength,includeMatches:S=Config.includeMatches,ignoreLocation:b=Config.ignoreLocation}={}){if(a.length>MAX_BITS)throw new Error(PATTERN_LENGTH_TOO_LARGE(MAX_BITS));const $=a.length,P=o.length,T=Math.max(0,Math.min(c,P));let C=d,O=T;const A=_>1||S,F=A?Array(P):[];let j;for(;(j=o.indexOf(a,O))>-1;){let H=computeScore$1(a,{currentLocation:j,expectedLocation:T,distance:f,ignoreLocation:b});if(C=Math.min(H,C),O=j+$,A){let G=0;for(;G<$;)F[j+G]=1,G+=1}}O=-1;let L=[],M=1,I=$+P;const U=1<<$-1;for(let H=0;H<$;H+=1){let G=0,X=I;for(;G=W;de-=1){let Z=de-1,Q=s[o.charAt(Z)];if(A&&(F[Z]=+!!Q),ie[de]=(ie[de+1]<<1|1)&Q,H&&(ie[de]|=(L[de+1]|L[de])<<1|1|L[de+1]),ie[de]&U&&(M=computeScore$1(a,{errors:H,currentLocation:Z,expectedLocation:T,distance:f,ignoreLocation:b}),M<=C)){if(C=M,O=Z,O<=T)break;W=Math.max(1,2*T-O)}}if(computeScore$1(a,{errors:H+1,currentLocation:T,expectedLocation:T,distance:f,ignoreLocation:b})>C)break;L=ie}const z={isMatch:O>=0,score:Math.max(.001,M)};if(A){const H=convertMaskToIndices(F,_);H.length?S&&(z.indices=H):z.isMatch=!1}return z}function createPatternAlphabet(o){let a={};for(let s=0,c=o.length;s{this.chunks.push({pattern:T,alphabet:createPatternAlphabet(T),startIndex:C})},P=this.pattern.length;if(P>MAX_BITS){let T=0;const C=P%MAX_BITS,O=P-C;for(;T{const{isMatch:j,score:L,indices:M}=search(a,O,A,{location:f+F,distance:d,threshold:y,findAllMatches:_,minMatchCharLength:S,includeMatches:c,ignoreLocation:b});j&&(T=!0),P+=L,j&&M&&($=[...$,...M])});let C={isMatch:T,score:T?P/this.chunks.length:1};return T&&c&&(C.indices=$),C}}class BaseMatch{constructor(a){this.pattern=a}static isMultiMatch(a){return getMatch(a,this.multiRegex)}static isSingleMatch(a){return getMatch(a,this.singleRegex)}search(){}}function getMatch(o,a){const s=o.match(a);return s?s[1]:null}class ExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(a){const s=a===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class InverseExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(a){const c=a.indexOf(this.pattern)===-1;return{isMatch:c,score:c?0:1,indices:[0,a.length-1]}}}class PrefixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(a){const s=a.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class InversePrefixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(a){const s=!a.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,a.length-1]}}}class SuffixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(a){const s=a.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[a.length-this.pattern.length,a.length-1]}}}class InverseSuffixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(a){const s=!a.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,a.length-1]}}}class FuzzyMatch extends BaseMatch{constructor(a,{location:s=Config.location,threshold:c=Config.threshold,distance:f=Config.distance,includeMatches:d=Config.includeMatches,findAllMatches:y=Config.findAllMatches,minMatchCharLength:_=Config.minMatchCharLength,isCaseSensitive:S=Config.isCaseSensitive,ignoreLocation:b=Config.ignoreLocation}={}){super(a),this._bitapSearch=new BitapSearch(a,{location:s,threshold:c,distance:f,includeMatches:d,findAllMatches:y,minMatchCharLength:_,isCaseSensitive:S,ignoreLocation:b})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(a){return this._bitapSearch.searchIn(a)}}class IncludeMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(a){let s=0,c;const f=[],d=this.pattern.length;for(;(c=a.indexOf(this.pattern,s))>-1;)s=c+d,f.push([c,s-1]);const y=!!f.length;return{isMatch:y,score:y?0:1,indices:f}}}const searchers=[ExactMatch,IncludeMatch,PrefixExactMatch,InversePrefixExactMatch,InverseSuffixExactMatch,SuffixExactMatch,InverseExactMatch,FuzzyMatch],searchersLen=searchers.length,SPACE_RE=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,OR_TOKEN="|";function parseQuery(o,a={}){return o.split(OR_TOKEN).map(s=>{let c=s.trim().split(SPACE_RE).filter(d=>d&&!!d.trim()),f=[];for(let d=0,y=c.length;d!!(o[LogicalOperator.AND]||o[LogicalOperator.OR]),isPath=o=>!!o[KeyType.PATH],isLeaf=o=>!isArray$6(o)&&isObject$2(o)&&!isExpression(o),convertToExplicit=o=>({[LogicalOperator.AND]:Object.keys(o).map(a=>({[a]:o[a]}))});function parse$3(o,a,{auto:s=!0}={}){const c=f=>{let d=Object.keys(f);const y=isPath(f);if(!y&&d.length>1&&!isExpression(f))return c(convertToExplicit(f));if(isLeaf(f)){const S=y?f[KeyType.PATH]:d[0],b=y?f[KeyType.PATTERN]:f[S];if(!isString$2(b))throw new Error(LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY(S));const $={keyId:createKeyId(S),pattern:b};return s&&($.searcher=createSearcher(b,a)),$}let _={children:[],operator:d[0]};return d.forEach(S=>{const b=f[S];isArray$6(b)&&b.forEach($=>{_.children.push(c($))})}),_};return isExpression(o)||(o=convertToExplicit(o)),c(o)}function computeScore(o,{ignoreFieldNorm:a=Config.ignoreFieldNorm}){o.forEach(s=>{let c=1;s.matches.forEach(({key:f,norm:d,score:y})=>{const _=f?f.weight:null;c*=Math.pow(y===0&&_?Number.EPSILON:y,(_||1)*(a?1:d))}),s.score=c})}function transformMatches(o,a){const s=o.matches;a.matches=[],isDefined(s)&&s.forEach(c=>{if(!isDefined(c.indices)||!c.indices.length)return;const{indices:f,value:d}=c;let y={indices:f,value:d};c.key&&(y.key=c.key.src),c.idx>-1&&(y.refIndex=c.idx),a.matches.push(y)})}function transformScore(o,a){a.score=o.score}function format(o,a,{includeMatches:s=Config.includeMatches,includeScore:c=Config.includeScore}={}){const f=[];return s&&f.push(transformMatches),c&&f.push(transformScore),o.map(d=>{const{idx:y}=d,_={item:a[y],refIndex:y};return f.length&&f.forEach(S=>{S(d,_)}),_})}class Fuse{constructor(a,s={},c){this.options=se(se({},Config),s),this.options.useExtendedSearch,this._keyStore=new KeyStore(this.options.keys),this.setCollection(a,c)}setCollection(a,s){if(this._docs=a,s&&!(s instanceof FuseIndex))throw new Error(INCORRECT_INDEX_TYPE);this._myIndex=s||createIndex(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(a){isDefined(a)&&(this._docs.push(a),this._myIndex.add(a))}remove(a=()=>!1){const s=[];for(let c=0,f=this._docs.length;c-1&&(S=S.slice(0,s)),format(S,this._docs,{includeMatches:c,includeScore:f})}_searchStringList(a){const s=createSearcher(a,this.options),{records:c}=this._myIndex,f=[];return c.forEach(({v:d,i:y,n:_})=>{if(!isDefined(d))return;const{isMatch:S,score:b,indices:$}=s.searchIn(d);S&&f.push({item:d,idx:y,matches:[{score:b,value:d,norm:_,indices:$}]})}),f}_searchLogical(a){const s=parse$3(a,this.options),c=(_,S,b)=>{if(!_.children){const{keyId:P,searcher:T}=_,C=this._findMatches({key:this._keyStore.get(P),value:this._myIndex.getValueForItemAtKeyId(S,P),searcher:T});return C&&C.length?[{idx:b,item:S,matches:C}]:[]}const $=[];for(let P=0,T=_.children.length;P{if(isDefined(_)){let b=c(s,_,S);b.length&&(d[S]||(d[S]={idx:S,item:_,matches:[]},y.push(d[S])),b.forEach(({matches:$})=>{d[S].matches.push(...$)}))}}),y}_searchObjectList(a){const s=createSearcher(a,this.options),{keys:c,records:f}=this._myIndex,d=[];return f.forEach(({$:y,i:_})=>{if(!isDefined(y))return;let S=[];c.forEach((b,$)=>{S.push(...this._findMatches({key:b,value:y[$],searcher:s}))}),S.length&&d.push({idx:_,item:y,matches:S})}),d}_findMatches({key:a,value:s,searcher:c}){if(!isDefined(s))return[];let f=[];if(isArray$6(s))s.forEach(({v:d,i:y,n:_})=>{if(!isDefined(d))return;const{isMatch:S,score:b,indices:$}=c.searchIn(d);S&&f.push({score:b,key:a,value:d,idx:y,norm:_,indices:$})});else{const{v:d,n:y}=s,{isMatch:_,score:S,indices:b}=c.searchIn(d);_&&f.push({score:S,key:a,value:d,norm:y,indices:b})}return f}}Fuse.version="7.0.0";Fuse.createIndex=createIndex;Fuse.parseIndex=parseIndex;Fuse.config=Config;Fuse.parseQuery=parse$3;register(ExtendedSearch);const DEFAULT_CONFIG={id:"id",children:"children",pid:"pid"},getConfig=o=>se(se({},DEFAULT_CONFIG),o);function treeToList(o,a={}){a=getConfig(a);const{children:s}=a,c=[...o];for(let f=0;ftreeMapEach(s,a))}function treeMapEach(o,{children:a="children",conversion:s}){const c=Array.isArray(o[a])&&o[a].length>0,f=s(o)||{};return c?$e(se({},f),{[a]:o[a].map(d=>treeMapEach(d,{children:a,conversion:s}))}):se({},f)}function joinParentPath(o,a=""){var s;for(let c=0;c{f.meta.hideChildrenInMenu&&(f.children=[]),s.push(f)});const c=treeMap(s,{conversion:f=>{const{meta:S={}}=f,b=S,{title:d,hideMenu:y=!1}=b,_=er(b,["title","hideMenu"]);return $e(se({},_||{}),{name:d,hideMenu:y,path:f.path})}});return joinParentPath(c),cloneDeep(c)}function genFullPath(o,a=""){var s;for(let c=0;c((a==null?void 0:a.orderNo)||o.length)-((s==null?void 0:s.orderNo)||o.length)),o.filter(a=>!a.hideMenu)})}const useStyle=createStyles(({token:o})=>({"my-modal-body":{".ant-list-item":{padding:`${o.paddingSM}px !important`,boxSizing:"border-box",borderStyle:"dashed",borderWidth:"1px",borderColor:`transparent transparent ${o.colorBorder}`,"&:hover":{border:`1px dashed ${o.colorPrimary}`,borderRadius:o.borderRadiusLG,backgroundColor:o.colorPrimaryBg}}},"my-modal-mask":{boxShadow:"inset 0 0 15px #fff",backdropFilter:"blur(4px) !important"},"my-modal-header":{borderBottom:`1px dotted ${o.colorPrimary}`},"my-modal-footer":{color:o.colorPrimary,borderTop:`1px dotted ${o.colorPrimary} !important`},"my-modal-content":{border:"1px solid #333"}})),SearchModal=reactExports.forwardRef((o,a)=>{const[s,c]=reactExports.useState(!1),[f,d]=reactExports.useState([]),{styles:y}=useStyle(),_=useTheme(),S={body:y["my-modal-body"],mask:y["my-modal-mask"],header:y["my-modal-header"],footer:y["my-modal-footer"],content:y["my-modal-content"]},b={header:{borderRadius:0,paddingInlineStart:5},body:{borderRadius:5,maxHeight:300,overflow:"auto",paddingInline:10},mask:{backdropFilter:"blur(10px)"},footer:{borderTop:"1px solid #333"},content:{boxShadow:"0 0 30px #99999994"}},$=()=>xt(void 0,null,function*(){try{const F=yield getAsyncMenus();d(F)}catch(F){return[]}});reactExports.useEffect(()=>{$()},[]);const P=reactExports.useCallback(()=>treeToList(f,{children:"children"}),[f]);reactExports.useImperativeHandle(a,()=>({open:()=>c(()=>!0),close:()=>c(()=>!1)}));const T=new Fuse(P(),{keys:["name","path"],threshold:.2}),[C,O]=reactExports.useState(""),A=(F,j)=>{const L=new RegExp(`(${j})`,"gi");return F.replace(L,(M,I)=>`${I}`)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Modal,{title:jsxRuntimeExports.jsx(Input,{size:"large",onChange:F=>O(F.target.value),value:C,placeholder:t("请输入搜索..."),prefix:jsxRuntimeExports.jsx(SearchOutlined,{}),suffix:jsxRuntimeExports.jsx(Badge,{count:"Esc",color:_.colorPrimaryHover})}),closeIcon:null,open:s,onOk:()=>c(()=>!1),onCancel:()=>c(()=>!1),footer:null,classNames:S,styles:b,children:jsxRuntimeExports.jsx(List,{itemLayout:"horizontal",dataSource:C?T.search(C).map(F=>F.item):P(),renderItem:F=>jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Link,{to:F.path,onClick:()=>c(()=>!1),dangerouslySetInnerHTML:{__html:A(F.name,C)}}),description:jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:A(F.path,C)}})})})})})})}),GlobalSearch=()=>{const o=reactExports.useRef(null);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{size:"small",shape:"circle",onClick:()=>{var a;return(a=o.current)==null?void 0:a.open()},icon:jsxRuntimeExports.jsx(SearchOutlined,{})}),jsxRuntimeExports.jsx(SearchModal,{ref:o})]})};function LayoutSettings(){const[o,a]=reactExports.useState("1"),s=useTheme(),c=[{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="1"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"fill",size:32})}),value:"1"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="2"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"filling",size:32})}),value:"2"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="3"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"topFill",size:32})}),value:"3"}];return jsxRuntimeExports.jsx(Segmented,{style:{backgroundColor:s.colorBgContainerDisabled},block:!0,value:o,onChange:f=>a(f),options:c})}var AppModeEnum=(o=>(o.DARK="dark",o.LIGHT="light",o))(AppModeEnum||{}),ThemeEnum=(o=>(o.DARK="dark",o.LIGHT="light",o))(ThemeEnum||{}),PageTransitionEnum=(o=>(o.FADE="fade",o.FADE_SIDE="fade-slide",o.FADE_BOTTOM="fade-bottom",o.FADE_SCALE="fade-scale",o.ZOOM_FADE="zoom-fade",o.ZOOM_OUT="zoom-out",o))(PageTransitionEnum||{}),PermissionModeEnum=(o=>(o.MAPPING="MAPPING",o.BACKEND="BACKEND",o))(PermissionModeEnum||{});AppModeEnum.LIGHT;const APP_THEME_COLOR_LIST=[{name:t("薄暮"),color:"#00A76F"},{name:t("火山"),color:"#ff3030"},{name:t("明青"),color:"#078dee"},{name:t("落霞"),color:"#fda92d"},{name:t("极客"),color:"#2065d1"},{name:t("酱紫"),color:"#7635dc"}],Presets=()=>{const{preset:o,setPreset:a}=useGlobalStore(),s=reactExports.useMemo(()=>APP_THEME_COLOR_LIST.map(c=>jsxRuntimeExports.jsx(Col,{span:8,children:jsxRuntimeExports.jsx(Button,{block:!0,size:"large",onClick:()=>a(c.color),children:jsxRuntimeExports.jsx(Badge,{styles:{root:{},indicator:o===c.color?{width:"16px",height:"16px"}:{width:"12px",height:"12px"}},status:o===c.color?"processing":"default",color:c.color})})},c.color)),[APP_THEME_COLOR_LIST,o]);return jsxRuntimeExports.jsx(Row,{gutter:[16,16],children:s})};function SlideTheme(){const{themeMode:o,setThemeMode:a}=useThemeMode(),s=useTheme(),c=[{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:s.colorPrimary},children:jsxRuntimeExports.jsx(SvgIcon,{style:{color:s.colorPrimary},name:"sun",size:18})}),value:"light"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:s.colorPrimary},children:jsxRuntimeExports.jsx(SvgIcon,{name:"moon",size:18})}),value:"dark"}];return jsxRuntimeExports.jsx(Segmented,{style:{backgroundColor:s.colorBgContainerDisabled},block:!0,value:o,onChange:f=>a(f),options:c})}const useStyles$8=createStyles(({token:o,isDarkMode:a})=>({driwer:{backdropFilter:"blur(2px) !important",backgroundColor:a?"rgba(0, 0, 0, 0.9) !important":"rgba(255, 255, 255, 0.9) !important",backgroundSize:"50% 50% !important",backgroundRepeat:"no-repeat !important",backgroundImage:`url(${o.paperCyanImg}), url(${o.paperRedImg}) !important`,backgroundPosition:"right top, left bottom !important"}})),{Text:Text$1}=Typography;function Settings(){const{styles:o}=useStyles$8(),[a,s]=reactExports.useState(!1),{hasTabs:c,setHasTabs:f,hasCrumbs:d,setHasCrumbs:y}=useGlobalStore(),_=()=>{s(!1)};return jsxRuntimeExports.jsxs(ErrorBoundary,{children:[jsxRuntimeExports.jsx(Tooltip,{title:t("设置"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:()=>s(!0),size:"small",icon:jsxRuntimeExports.jsx(SettingOutlined,{})})}),jsxRuntimeExports.jsx(Drawer,{classNames:{content:o.driwer},title:t("设置"),placement:"right",onClose:_,open:a,extra:jsxRuntimeExports.jsx(FullScreen,{}),children:jsxRuntimeExports.jsxs(List,{split:!1,children:[jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("主题")}),description:jsxRuntimeExports.jsx(SlideTheme,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("布局")}),description:jsxRuntimeExports.jsx(LayoutSettings,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("预设")}),description:jsxRuntimeExports.jsx(Presets,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("内容区域")}),description:jsxRuntimeExports.jsxs(List,{children:[jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{checked:c,onChange:S=>{f(S)}})],children:t("页签")}),jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{checked:d,onChange:S=>{y(S)}})],children:t("面包屑导航")}),jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{defaultChecked:!0,onChange:()=>{}})],children:t("系统名称")})]})})})]})})]})}function useMessage(){const[o,a]=Modal.useModal();return{createMessage:message,createConfirm:o.confirm,contextHolder:a}}var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},s=Symbol("test"),c=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var f=42;a[s]=f;for(s in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var d=Object.getOwnPropertySymbols(a);if(d.length!==1||d[0]!==s||!Object.prototype.propertyIsEnumerable.call(a,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(a,s);if(y.value!==f||y.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol!="undefined"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$1=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function(a,s){for(var c=[],f=0;f1&&typeof s!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,a)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var c=stringToPath(a),f=c.length>0?c[0]:"",d=getBaseIntrinsic("%"+f+"%",s),y=d.name,_=d.value,S=!1,b=d.alias;b&&(f=b[0],$spliceApply(c,$concat$1([0,1],b)));for(var $=1,P=!0;$=c.length){var A=$gOPD$1(_,T);P=!!A,P&&"get"in A&&!("originalValue"in A.get)?_=A.get:_=_[T]}else P=hasOwn$1(_,T),_=_[T];P&&!S&&(INTRINSICS[y]=_)}}return _},callBind$1={exports:{}},GetIntrinsic$5=getIntrinsic,$defineProperty$1=GetIntrinsic$5("%Object.defineProperty%",!0),hasPropertyDescriptors$1=function(){if($defineProperty$1)try{return $defineProperty$1({},"a",{value:1}),!0}catch(a){return!1}return!1};hasPropertyDescriptors$1.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors$1())return null;try{return $defineProperty$1([],"length",{value:1}).length!==1}catch(a){return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors$1,GetIntrinsic$4=getIntrinsic,$gOPD=GetIntrinsic$4("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch(o){$gOPD=null}var gopd$1=$gOPD,hasPropertyDescriptors=hasPropertyDescriptors_1(),GetIntrinsic$3=getIntrinsic,$defineProperty=hasPropertyDescriptors&&GetIntrinsic$3("%Object.defineProperty%",!0);if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(o){$defineProperty=!1}var $SyntaxError=GetIntrinsic$3("%SyntaxError%"),$TypeError$2=GetIntrinsic$3("%TypeError%"),gopd=gopd$1,defineDataProperty=function(a,s,c){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError$2("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new $TypeError$2("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$2("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,y=arguments.length>5?arguments[5]:null,_=arguments.length>6?arguments[6]:!1,S=!!gopd&&gopd(a,s);if($defineProperty)$defineProperty(a,s,{configurable:y===null&&S?S.configurable:!y,enumerable:f===null&&S?S.enumerable:!f,value:c,writable:d===null&&S?S.writable:!d});else if(_||!f&&!d&&!y)a[s]=c;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GetIntrinsic$2=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD=gopd$1,$TypeError$1=GetIntrinsic$2("%TypeError%"),$floor$1=GetIntrinsic$2("%Math.floor%"),setFunctionLength=function(a,s){if(typeof a!="function")throw new $TypeError$1("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||$floor$1(s)!==s)throw new $TypeError$1("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],f=!0,d=!0;if("length"in a&&gOPD){var y=gOPD(a,"length");y&&!y.configurable&&(f=!1),y&&!y.writable&&(d=!1)}return(f||d||!c)&&(hasDescriptors?define(a,"length",s,!0,!0):define(a,"length",s)),a};(function(o){var a=functionBind,s=getIntrinsic,c=setFunctionLength,f=s("%TypeError%"),d=s("%Function.prototype.apply%"),y=s("%Function.prototype.call%"),_=s("%Reflect.apply%",!0)||a.call(y,d),S=s("%Object.defineProperty%",!0),b=s("%Math.max%");if(S)try{S({},"a",{value:1})}catch(P){S=null}o.exports=function(T){if(typeof T!="function")throw new f("a function is required");var C=_(a,y,arguments);return c(C,1+b(0,T.length-(arguments.length-1)),!0)};var $=function(){return _(a,d,arguments)};S?S(o.exports,"apply",{value:$}):o.exports.apply=$})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(a,s){var c=GetIntrinsic$1(a,!!s);return typeof c=="function"&&$indexOf(a,".prototype.")>-1?callBind(c):c};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(o){return o.__proto__}:null);function addNumericSeparator(o,a){if(o===1/0||o===-1/0||o!==o||o&&o>-1e3&&o<1e3||$test.call(/e/,a))return a;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof o=="number"){var c=o<0?-$floor(-o):$floor(o);if(c!==o){var f=String(c),d=$slice.call(a,f.length+1);return $replace.call(f,s,"$&_")+"."+$replace.call($replace.call(d,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(a,s,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function o(a,s,c,f){var d=s||{};if(has$4(d,"quoteStyle")&&d.quoteStyle!=="single"&&d.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(d,"maxStringLength")&&(typeof d.maxStringLength=="number"?d.maxStringLength<0&&d.maxStringLength!==1/0:d.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=has$4(d,"customInspect")?d.customInspect:!0;if(typeof y!="boolean"&&y!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(d,"indent")&&d.indent!==null&&d.indent!==" "&&!(parseInt(d.indent,10)===d.indent&&d.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(d,"numericSeparator")&&typeof d.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _=d.numericSeparator;if(typeof a=="undefined")return"undefined";if(a===null)return"null";if(typeof a=="boolean")return a?"true":"false";if(typeof a=="string")return inspectString(a,d);if(typeof a=="number"){if(a===0)return 1/0/a>0?"0":"-0";var S=String(a);return _?addNumericSeparator(a,S):S}if(typeof a=="bigint"){var b=String(a)+"n";return _?addNumericSeparator(a,b):b}var $=typeof d.depth=="undefined"?5:d.depth;if(typeof c=="undefined"&&(c=0),c>=$&&$>0&&typeof a=="object")return isArray$5(a)?"[Array]":"[Object]";var P=getIndent(d,c);if(typeof f=="undefined")f=[];else if(indexOf(f,a)>=0)return"[Circular]";function T(ee,de,Z){if(de&&(f=$arrSlice.call(f),f.push(de)),Z){var Q={depth:d.depth};return has$4(d,"quoteStyle")&&(Q.quoteStyle=d.quoteStyle),o(ee,Q,c+1,f)}return o(ee,d,c+1,f)}if(typeof a=="function"&&!isRegExp$2(a)){var C=nameOf(a),O=arrObjKeys(a,T);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(O.length>0?" { "+$join.call(O,", ")+" }":"")}if(isSymbol(a)){var A=hasShammedSymbols?$replace.call(String(a),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(a);return typeof a=="object"&&!hasShammedSymbols?markBoxed(A):A}if(isElement(a)){for(var F="<"+$toLowerCase.call(String(a.nodeName)),j=a.attributes||[],L=0;L",F}if(isArray$5(a)){if(a.length===0)return"[]";var M=arrObjKeys(a,T);return P&&!singleLineValues(M)?"["+indentedJoin(M,P)+"]":"[ "+$join.call(M,", ")+" ]"}if(isError(a)){var I=arrObjKeys(a,T);return!("cause"in Error.prototype)&&"cause"in a&&!isEnumerable.call(a,"cause")?"{ ["+String(a)+"] "+$join.call($concat.call("[cause]: "+T(a.cause),I),", ")+" }":I.length===0?"["+String(a)+"]":"{ ["+String(a)+"] "+$join.call(I,", ")+" }"}if(typeof a=="object"&&y){if(inspectSymbol&&typeof a[inspectSymbol]=="function"&&utilInspect)return utilInspect(a,{depth:$-c});if(y!=="symbol"&&typeof a.inspect=="function")return a.inspect()}if(isMap$1(a)){var U=[];return mapForEach&&mapForEach.call(a,function(ee,de){U.push(T(de,a,!0)+" => "+T(ee,a))}),collectionOf("Map",mapSize.call(a),U,P)}if(isSet$1(a)){var z=[];return setForEach&&setForEach.call(a,function(ee){z.push(T(ee,a))}),collectionOf("Set",setSize.call(a),z,P)}if(isWeakMap(a))return weakCollectionOf("WeakMap");if(isWeakSet(a))return weakCollectionOf("WeakSet");if(isWeakRef(a))return weakCollectionOf("WeakRef");if(isNumber$1(a))return markBoxed(T(Number(a)));if(isBigInt(a))return markBoxed(T(bigIntValueOf.call(a)));if(isBoolean$2(a))return markBoxed(booleanValueOf.call(a));if(isString$1(a))return markBoxed(T(String(a)));if(typeof window!="undefined"&&a===window)return"{ [object Window] }";if(a===commonjsGlobal)return"{ [object globalThis] }";if(!isDate$2(a)&&!isRegExp$2(a)){var H=arrObjKeys(a,T),G=gPO?gPO(a)===Object.prototype:a instanceof Object||a.constructor===Object,X=a instanceof Object?"":"null prototype",W=!G&&toStringTag&&Object(a)===a&&toStringTag in a?$slice.call(toStr(a),8,-1):X?"Object":"",K=G||typeof a.constructor!="function"?"":a.constructor.name?a.constructor.name+" ":"",ie=K+(W||X?"["+$join.call($concat.call([],W||[],X||[]),": ")+"] ":"");return H.length===0?ie+"{}":P?ie+"{"+indentedJoin(H,P)+"}":ie+"{ "+$join.call(H,", ")+" }"}return String(a)};function wrapQuotes(o,a,s){var c=(s.quoteStyle||a)==="double"?'"':"'";return c+o+c}function quote(o){return $replace.call(String(o),/"/g,""")}function isArray$5(o){return toStr(o)==="[object Array]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isDate$2(o){return toStr(o)==="[object Date]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isRegExp$2(o){return toStr(o)==="[object RegExp]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isError(o){return toStr(o)==="[object Error]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isString$1(o){return toStr(o)==="[object String]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isNumber$1(o){return toStr(o)==="[object Number]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isBoolean$2(o){return toStr(o)==="[object Boolean]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isSymbol(o){if(hasShammedSymbols)return o&&typeof o=="object"&&o instanceof Symbol;if(typeof o=="symbol")return!0;if(!o||typeof o!="object"||!symToString)return!1;try{return symToString.call(o),!0}catch(a){}return!1}function isBigInt(o){if(!o||typeof o!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(o),!0}catch(a){}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(o){return o in this};function has$4(o,a){return hasOwn.call(o,a)}function toStr(o){return objectToString.call(o)}function nameOf(o){if(o.name)return o.name;var a=$match.call(functionToString.call(o),/^function\s*([\w$]+)/);return a?a[1]:null}function indexOf(o,a){if(o.indexOf)return o.indexOf(a);for(var s=0,c=o.length;sa.maxStringLength){var s=o.length-a.maxStringLength,c="... "+s+" more character"+(s>1?"s":"");return inspectString($slice.call(o,0,a.maxStringLength),a)+c}var f=$replace.call($replace.call(o,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(f,"single",a)}function lowbyte(o){var a=o.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return s?"\\"+s:"\\x"+(a<16?"0":"")+$toUpperCase.call(a.toString(16))}function markBoxed(o){return"Object("+o+")"}function weakCollectionOf(o){return o+" { ? }"}function collectionOf(o,a,s,c){var f=c?indentedJoin(s,c):$join.call(s,", ");return o+" ("+a+") {"+f+"}"}function singleLineValues(o){for(var a=0;a{for(const s of a){if(s.path===o||s.fullPath===o)return s;if(s.children){const c=searchRoute(o,s.children);if(c)return c}}return null};function useTitle(){const[o,a]=reactExports.useState("react-admin-design"),{pathname:s}=useLocation();reactExports.useEffect(()=>{const c=searchRoute(s,routeList);a(c==null?void 0:c.meta.title)},[s]),useTitle$1(o)}function DocLink(){return jsxRuntimeExports.jsx(Tooltip,{title:t("文档"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",size:"small",onClick:()=>openWindow("https://anyone-yuren.github.io/gbeata-admin-docs"),icon:jsxRuntimeExports.jsx(ReadOutlined,{})})})}function FullScreen(){const[o,{toggleFullscreen:a}]=useFullscreen$1(document.body);return jsxRuntimeExports.jsx(Tooltip,{title:t(o?"退出全屏":"进入全屏"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:a,size:"small",icon:o?jsxRuntimeExports.jsx(FullscreenExitOutlined,{}):jsxRuntimeExports.jsx(FullscreenOutlined,{})})})}function GithubLink(){function o(){openWindow("https://github.com/anyone-yuren/gbeata-react-admin")}return jsxRuntimeExports.jsx(Tooltip,{title:"github",placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:o,size:"small",icon:jsxRuntimeExports.jsx(GithubOutlined,{})})})}function isArray$6(o){return Array.isArray?Array.isArray(o):getTag(o)==="[object Array]"}const INFINITY=1/0;function baseToString(o){if(typeof o=="string")return o;let a=o+"";return a=="0"&&1/o==-INFINITY?"-0":a}function toString$2(o){return o==null?"":baseToString(o)}function isString$2(o){return typeof o=="string"}function isNumber$2(o){return typeof o=="number"}function isBoolean$3(o){return o===!0||o===!1||isObjectLike(o)&&getTag(o)=="[object Boolean]"}function isObject$2(o){return typeof o=="object"}function isObjectLike(o){return isObject$2(o)&&o!==null}function isDefined(o){return o!=null}function isBlank(o){return!o.trim().length}function getTag(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(o)}const EXTENDED_SEARCH_UNAVAILABLE="Extended search is not available",INCORRECT_INDEX_TYPE="Incorrect 'index' type",LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY=o=>`Invalid value for key ${o}`,PATTERN_LENGTH_TOO_LARGE=o=>`Pattern length exceeds max of ${o}.`,MISSING_KEY_PROPERTY=o=>`Missing ${o} property in key`,INVALID_KEY_WEIGHT_VALUE=o=>`Property 'weight' in key '${o}' must be a positive integer`,hasOwn$2=Object.prototype.hasOwnProperty;class KeyStore{constructor(a){this._keys=[],this._keyMap={};let s=0;a.forEach(c=>{let f=createKey(c);this._keys.push(f),this._keyMap[f.id]=f,s+=f.weight}),this._keys.forEach(c=>{c.weight/=s})}get(a){return this._keyMap[a]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function createKey(o){let a=null,s=null,c=null,f=1,d=null;if(isString$2(o)||isArray$6(o))c=o,a=createKeyPath(o),s=createKeyId(o);else{if(!hasOwn$2.call(o,"name"))throw new Error(MISSING_KEY_PROPERTY("name"));const y=o.name;if(c=y,hasOwn$2.call(o,"weight")&&(f=o.weight,f<=0))throw new Error(INVALID_KEY_WEIGHT_VALUE(y));a=createKeyPath(y),s=createKeyId(y),d=o.getFn}return{path:a,id:s,weight:f,src:c,getFn:d}}function createKeyPath(o){return isArray$6(o)?o:o.split(".")}function createKeyId(o){return isArray$6(o)?o.join("."):o}function get(o,a){let s=[],c=!1;const f=(d,y,_)=>{if(isDefined(d))if(!y[_])s.push(d);else{let S=y[_];const b=d[S];if(!isDefined(b))return;if(_===y.length-1&&(isString$2(b)||isNumber$2(b)||isBoolean$3(b)))s.push(toString$2(b));else if(isArray$6(b)){c=!0;for(let $=0,P=b.length;$o.score===a.score?o.idx{this._keysMap[s.id]=c})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,isString$2(this.docs[0])?this.docs.forEach((a,s)=>{this._addString(a,s)}):this.docs.forEach((a,s)=>{this._addObject(a,s)}),this.norm.clear())}add(a){const s=this.size();isString$2(a)?this._addString(a,s):this._addObject(a,s)}removeAt(a){this.records.splice(a,1);for(let s=a,c=this.size();s{let y=f.getFn?f.getFn(a):this.getFn(a,f.path);if(isDefined(y)){if(isArray$6(y)){let _=[];const S=[{nestedArrIndex:-1,value:y}];for(;S.length;){const{nestedArrIndex:b,value:$}=S.pop();if(isDefined($))if(isString$2($)&&!isBlank($)){let P={v:$,i:b,n:this.norm.get($)};_.push(P)}else isArray$6($)&&$.forEach((P,T)=>{S.push({nestedArrIndex:T,value:P})})}c.$[d]=_}else if(isString$2(y)&&!isBlank(y)){let _={v:y,n:this.norm.get(y)};c.$[d]=_}}}),this.records.push(c)}toJSON(){return{keys:this.keys,records:this.records}}}function createIndex(o,a,{getFn:s=Config.getFn,fieldNormWeight:c=Config.fieldNormWeight}={}){const f=new FuseIndex({getFn:s,fieldNormWeight:c});return f.setKeys(o.map(createKey)),f.setSources(a),f.create(),f}function parseIndex(o,{getFn:a=Config.getFn,fieldNormWeight:s=Config.fieldNormWeight}={}){const{keys:c,records:f}=o,d=new FuseIndex({getFn:a,fieldNormWeight:s});return d.setKeys(c),d.setIndexRecords(f),d}function computeScore$1(o,{errors:a=0,currentLocation:s=0,expectedLocation:c=0,distance:f=Config.distance,ignoreLocation:d=Config.ignoreLocation}={}){const y=a/o.length;if(d)return y;const _=Math.abs(c-s);return f?y+_/f:_?1:y}function convertMaskToIndices(o=[],a=Config.minMatchCharLength){let s=[],c=-1,f=-1,d=0;for(let y=o.length;d=a&&s.push([c,f]),c=-1)}return o[d-1]&&d-c>=a&&s.push([c,d-1]),s}const MAX_BITS=32;function search(o,a,s,{location:c=Config.location,distance:f=Config.distance,threshold:d=Config.threshold,findAllMatches:y=Config.findAllMatches,minMatchCharLength:_=Config.minMatchCharLength,includeMatches:S=Config.includeMatches,ignoreLocation:b=Config.ignoreLocation}={}){if(a.length>MAX_BITS)throw new Error(PATTERN_LENGTH_TOO_LARGE(MAX_BITS));const $=a.length,P=o.length,T=Math.max(0,Math.min(c,P));let C=d,O=T;const A=_>1||S,M=A?Array(P):[];let j;for(;(j=o.indexOf(a,O))>-1;){let H=computeScore$1(a,{currentLocation:j,expectedLocation:T,distance:f,ignoreLocation:b});if(C=Math.min(H,C),O=j+$,A){let G=0;for(;G<$;)M[j+G]=1,G+=1}}O=-1;let L=[],F=1,I=$+P;const U=1<<$-1;for(let H=0;H<$;H+=1){let G=0,X=I;for(;G=W;de-=1){let Z=de-1,Q=s[o.charAt(Z)];if(A&&(M[Z]=+!!Q),ie[de]=(ie[de+1]<<1|1)&Q,H&&(ie[de]|=(L[de+1]|L[de])<<1|1|L[de+1]),ie[de]&U&&(F=computeScore$1(a,{errors:H,currentLocation:Z,expectedLocation:T,distance:f,ignoreLocation:b}),F<=C)){if(C=F,O=Z,O<=T)break;W=Math.max(1,2*T-O)}}if(computeScore$1(a,{errors:H+1,currentLocation:T,expectedLocation:T,distance:f,ignoreLocation:b})>C)break;L=ie}const z={isMatch:O>=0,score:Math.max(.001,F)};if(A){const H=convertMaskToIndices(M,_);H.length?S&&(z.indices=H):z.isMatch=!1}return z}function createPatternAlphabet(o){let a={};for(let s=0,c=o.length;s{this.chunks.push({pattern:T,alphabet:createPatternAlphabet(T),startIndex:C})},P=this.pattern.length;if(P>MAX_BITS){let T=0;const C=P%MAX_BITS,O=P-C;for(;T{const{isMatch:j,score:L,indices:F}=search(a,O,A,{location:f+M,distance:d,threshold:y,findAllMatches:_,minMatchCharLength:S,includeMatches:c,ignoreLocation:b});j&&(T=!0),P+=L,j&&F&&($=[...$,...F])});let C={isMatch:T,score:T?P/this.chunks.length:1};return T&&c&&(C.indices=$),C}}class BaseMatch{constructor(a){this.pattern=a}static isMultiMatch(a){return getMatch(a,this.multiRegex)}static isSingleMatch(a){return getMatch(a,this.singleRegex)}search(){}}function getMatch(o,a){const s=o.match(a);return s?s[1]:null}class ExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(a){const s=a===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class InverseExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(a){const c=a.indexOf(this.pattern)===-1;return{isMatch:c,score:c?0:1,indices:[0,a.length-1]}}}class PrefixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(a){const s=a.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class InversePrefixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(a){const s=!a.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,a.length-1]}}}class SuffixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(a){const s=a.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[a.length-this.pattern.length,a.length-1]}}}class InverseSuffixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(a){const s=!a.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,a.length-1]}}}class FuzzyMatch extends BaseMatch{constructor(a,{location:s=Config.location,threshold:c=Config.threshold,distance:f=Config.distance,includeMatches:d=Config.includeMatches,findAllMatches:y=Config.findAllMatches,minMatchCharLength:_=Config.minMatchCharLength,isCaseSensitive:S=Config.isCaseSensitive,ignoreLocation:b=Config.ignoreLocation}={}){super(a),this._bitapSearch=new BitapSearch(a,{location:s,threshold:c,distance:f,includeMatches:d,findAllMatches:y,minMatchCharLength:_,isCaseSensitive:S,ignoreLocation:b})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(a){return this._bitapSearch.searchIn(a)}}class IncludeMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(a){let s=0,c;const f=[],d=this.pattern.length;for(;(c=a.indexOf(this.pattern,s))>-1;)s=c+d,f.push([c,s-1]);const y=!!f.length;return{isMatch:y,score:y?0:1,indices:f}}}const searchers=[ExactMatch,IncludeMatch,PrefixExactMatch,InversePrefixExactMatch,InverseSuffixExactMatch,SuffixExactMatch,InverseExactMatch,FuzzyMatch],searchersLen=searchers.length,SPACE_RE=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,OR_TOKEN="|";function parseQuery(o,a={}){return o.split(OR_TOKEN).map(s=>{let c=s.trim().split(SPACE_RE).filter(d=>d&&!!d.trim()),f=[];for(let d=0,y=c.length;d!!(o[LogicalOperator.AND]||o[LogicalOperator.OR]),isPath=o=>!!o[KeyType.PATH],isLeaf=o=>!isArray$6(o)&&isObject$2(o)&&!isExpression(o),convertToExplicit=o=>({[LogicalOperator.AND]:Object.keys(o).map(a=>({[a]:o[a]}))});function parse$3(o,a,{auto:s=!0}={}){const c=f=>{let d=Object.keys(f);const y=isPath(f);if(!y&&d.length>1&&!isExpression(f))return c(convertToExplicit(f));if(isLeaf(f)){const S=y?f[KeyType.PATH]:d[0],b=y?f[KeyType.PATTERN]:f[S];if(!isString$2(b))throw new Error(LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY(S));const $={keyId:createKeyId(S),pattern:b};return s&&($.searcher=createSearcher(b,a)),$}let _={children:[],operator:d[0]};return d.forEach(S=>{const b=f[S];isArray$6(b)&&b.forEach($=>{_.children.push(c($))})}),_};return isExpression(o)||(o=convertToExplicit(o)),c(o)}function computeScore(o,{ignoreFieldNorm:a=Config.ignoreFieldNorm}){o.forEach(s=>{let c=1;s.matches.forEach(({key:f,norm:d,score:y})=>{const _=f?f.weight:null;c*=Math.pow(y===0&&_?Number.EPSILON:y,(_||1)*(a?1:d))}),s.score=c})}function transformMatches(o,a){const s=o.matches;a.matches=[],isDefined(s)&&s.forEach(c=>{if(!isDefined(c.indices)||!c.indices.length)return;const{indices:f,value:d}=c;let y={indices:f,value:d};c.key&&(y.key=c.key.src),c.idx>-1&&(y.refIndex=c.idx),a.matches.push(y)})}function transformScore(o,a){a.score=o.score}function format(o,a,{includeMatches:s=Config.includeMatches,includeScore:c=Config.includeScore}={}){const f=[];return s&&f.push(transformMatches),c&&f.push(transformScore),o.map(d=>{const{idx:y}=d,_={item:a[y],refIndex:y};return f.length&&f.forEach(S=>{S(d,_)}),_})}class Fuse{constructor(a,s={},c){this.options=se(se({},Config),s),this.options.useExtendedSearch,this._keyStore=new KeyStore(this.options.keys),this.setCollection(a,c)}setCollection(a,s){if(this._docs=a,s&&!(s instanceof FuseIndex))throw new Error(INCORRECT_INDEX_TYPE);this._myIndex=s||createIndex(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(a){isDefined(a)&&(this._docs.push(a),this._myIndex.add(a))}remove(a=()=>!1){const s=[];for(let c=0,f=this._docs.length;c-1&&(S=S.slice(0,s)),format(S,this._docs,{includeMatches:c,includeScore:f})}_searchStringList(a){const s=createSearcher(a,this.options),{records:c}=this._myIndex,f=[];return c.forEach(({v:d,i:y,n:_})=>{if(!isDefined(d))return;const{isMatch:S,score:b,indices:$}=s.searchIn(d);S&&f.push({item:d,idx:y,matches:[{score:b,value:d,norm:_,indices:$}]})}),f}_searchLogical(a){const s=parse$3(a,this.options),c=(_,S,b)=>{if(!_.children){const{keyId:P,searcher:T}=_,C=this._findMatches({key:this._keyStore.get(P),value:this._myIndex.getValueForItemAtKeyId(S,P),searcher:T});return C&&C.length?[{idx:b,item:S,matches:C}]:[]}const $=[];for(let P=0,T=_.children.length;P{if(isDefined(_)){let b=c(s,_,S);b.length&&(d[S]||(d[S]={idx:S,item:_,matches:[]},y.push(d[S])),b.forEach(({matches:$})=>{d[S].matches.push(...$)}))}}),y}_searchObjectList(a){const s=createSearcher(a,this.options),{keys:c,records:f}=this._myIndex,d=[];return f.forEach(({$:y,i:_})=>{if(!isDefined(y))return;let S=[];c.forEach((b,$)=>{S.push(...this._findMatches({key:b,value:y[$],searcher:s}))}),S.length&&d.push({idx:_,item:y,matches:S})}),d}_findMatches({key:a,value:s,searcher:c}){if(!isDefined(s))return[];let f=[];if(isArray$6(s))s.forEach(({v:d,i:y,n:_})=>{if(!isDefined(d))return;const{isMatch:S,score:b,indices:$}=c.searchIn(d);S&&f.push({score:b,key:a,value:d,idx:y,norm:_,indices:$})});else{const{v:d,n:y}=s,{isMatch:_,score:S,indices:b}=c.searchIn(d);_&&f.push({score:S,key:a,value:d,norm:y,indices:b})}return f}}Fuse.version="7.0.0";Fuse.createIndex=createIndex;Fuse.parseIndex=parseIndex;Fuse.config=Config;Fuse.parseQuery=parse$3;register(ExtendedSearch);const DEFAULT_CONFIG={id:"id",children:"children",pid:"pid"},getConfig=o=>se(se({},DEFAULT_CONFIG),o);function treeToList(o,a={}){a=getConfig(a);const{children:s}=a,c=[...o];for(let f=0;ftreeMapEach(s,a))}function treeMapEach(o,{children:a="children",conversion:s}){const c=Array.isArray(o[a])&&o[a].length>0,f=s(o)||{};return c?$e(se({},f),{[a]:o[a].map(d=>treeMapEach(d,{children:a,conversion:s}))}):se({},f)}function joinParentPath(o,a=""){var s;for(let c=0;c{f.meta.hideChildrenInMenu&&(f.children=[]),s.push(f)});const c=treeMap(s,{conversion:f=>{const{meta:S={}}=f,b=S,{title:d,hideMenu:y=!1}=b,_=er(b,["title","hideMenu"]);return $e(se({},_||{}),{name:d,hideMenu:y,path:f.path})}});return joinParentPath(c),cloneDeep(c)}function genFullPath(o,a=""){var s;for(let c=0;c((a==null?void 0:a.orderNo)||o.length)-((s==null?void 0:s.orderNo)||o.length)),o.filter(a=>!a.hideMenu)})}const useStyle=createStyles(({token:o})=>({"my-modal-body":{".ant-list-item":{padding:`${o.paddingSM}px !important`,boxSizing:"border-box",borderStyle:"dashed",borderWidth:"1px",borderColor:`transparent transparent ${o.colorBorder}`,"&:hover":{border:`1px dashed ${o.colorPrimary}`,borderRadius:o.borderRadiusLG,backgroundColor:o.colorPrimaryBg}}},"my-modal-mask":{boxShadow:"inset 0 0 15px #fff",backdropFilter:"blur(4px) !important"},"my-modal-header":{borderBottom:`1px dotted ${o.colorPrimary}`},"my-modal-footer":{color:o.colorPrimary,borderTop:`1px dotted ${o.colorPrimary} !important`},"my-modal-content":{border:"1px solid #333"}})),SearchModal=reactExports.forwardRef((o,a)=>{const[s,c]=reactExports.useState(!1),[f,d]=reactExports.useState([]),{styles:y}=useStyle(),_=useTheme(),S={body:y["my-modal-body"],mask:y["my-modal-mask"],header:y["my-modal-header"],footer:y["my-modal-footer"],content:y["my-modal-content"]},b={header:{borderRadius:0,paddingInlineStart:5},body:{borderRadius:5,maxHeight:300,overflow:"auto",paddingInline:10},mask:{backdropFilter:"blur(10px)"},footer:{borderTop:"1px solid #333"},content:{boxShadow:"0 0 30px #99999994"}},$=()=>xt(void 0,null,function*(){try{const M=yield getAsyncMenus();d(M)}catch(M){return[]}});reactExports.useEffect(()=>{$()},[]);const P=reactExports.useCallback(()=>treeToList(f,{children:"children"}),[f]);reactExports.useImperativeHandle(a,()=>({open:()=>c(()=>!0),close:()=>c(()=>!1)}));const T=new Fuse(P(),{keys:["name","path"],threshold:.2}),[C,O]=reactExports.useState(""),A=(M,j)=>{const L=new RegExp(`(${j})`,"gi");return M.replace(L,(F,I)=>`${I}`)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Modal,{title:jsxRuntimeExports.jsx(Input,{size:"large",onChange:M=>O(M.target.value),value:C,placeholder:t("请输入搜索..."),prefix:jsxRuntimeExports.jsx(SearchOutlined,{}),suffix:jsxRuntimeExports.jsx(Badge,{count:"Esc",color:_.colorPrimaryHover})}),closeIcon:null,open:s,onOk:()=>c(()=>!1),onCancel:()=>c(()=>!1),footer:null,classNames:S,styles:b,children:jsxRuntimeExports.jsx(List,{itemLayout:"horizontal",dataSource:C?T.search(C).map(M=>M.item):P(),renderItem:M=>jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Link,{to:M.path,onClick:()=>c(()=>!1),dangerouslySetInnerHTML:{__html:A(M.name,C)}}),description:jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:A(M.path,C)}})})})})})})}),GlobalSearch=()=>{const o=reactExports.useRef(null);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{size:"small",shape:"circle",onClick:()=>{var a;return(a=o.current)==null?void 0:a.open()},icon:jsxRuntimeExports.jsx(SearchOutlined,{})}),jsxRuntimeExports.jsx(SearchModal,{ref:o})]})};function LayoutSettings(){const[o,a]=reactExports.useState("1"),s=useTheme(),c=[{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="1"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"fill",size:32})}),value:"1"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="2"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"filling",size:32})}),value:"2"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="3"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"topFill",size:32})}),value:"3"}];return jsxRuntimeExports.jsx(Segmented,{style:{backgroundColor:s.colorBgContainerDisabled},block:!0,value:o,onChange:f=>a(f),options:c})}var AppModeEnum=(o=>(o.DARK="dark",o.LIGHT="light",o))(AppModeEnum||{}),ThemeEnum=(o=>(o.DARK="dark",o.LIGHT="light",o))(ThemeEnum||{}),PageTransitionEnum=(o=>(o.FADE="fade",o.FADE_SIDE="fade-slide",o.FADE_BOTTOM="fade-bottom",o.FADE_SCALE="fade-scale",o.ZOOM_FADE="zoom-fade",o.ZOOM_OUT="zoom-out",o))(PageTransitionEnum||{}),PermissionModeEnum=(o=>(o.MAPPING="MAPPING",o.BACKEND="BACKEND",o))(PermissionModeEnum||{});AppModeEnum.LIGHT;const APP_THEME_COLOR_LIST=[{name:t("薄暮"),color:"#00A76F"},{name:t("火山"),color:"#ff3030"},{name:t("明青"),color:"#078dee"},{name:t("落霞"),color:"#fda92d"},{name:t("极客"),color:"#2065d1"},{name:t("酱紫"),color:"#7635dc"}],Presets=()=>{const{preset:o,setPreset:a}=useGlobalStore(),s=reactExports.useMemo(()=>APP_THEME_COLOR_LIST.map(c=>jsxRuntimeExports.jsx(Col,{span:8,children:jsxRuntimeExports.jsx(Button,{block:!0,size:"large",onClick:()=>a(c.color),children:jsxRuntimeExports.jsx(Badge,{styles:{root:{},indicator:o===c.color?{width:"16px",height:"16px"}:{width:"12px",height:"12px"}},status:o===c.color?"processing":"default",color:c.color})})},c.color)),[APP_THEME_COLOR_LIST,o]);return jsxRuntimeExports.jsx(Row,{gutter:[16,16],children:s})};function SlideTheme(){const{themeMode:o,setThemeMode:a}=useThemeMode(),s=useTheme(),c=[{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:s.colorPrimary},children:jsxRuntimeExports.jsx(SvgIcon,{style:{color:s.colorPrimary},name:"sun",size:18})}),value:"light"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:s.colorPrimary},children:jsxRuntimeExports.jsx(SvgIcon,{name:"moon",size:18})}),value:"dark"}];return jsxRuntimeExports.jsx(Segmented,{style:{backgroundColor:s.colorBgContainerDisabled},block:!0,value:o,onChange:f=>a(f),options:c})}const useStyles$8=createStyles(({token:o,isDarkMode:a})=>({driwer:{backdropFilter:"blur(2px) !important",backgroundColor:a?"rgba(0, 0, 0, 0.9) !important":"rgba(255, 255, 255, 0.9) !important",backgroundSize:"50% 50% !important",backgroundRepeat:"no-repeat !important",backgroundImage:`url(${o.paperCyanImg}), url(${o.paperRedImg}) !important`,backgroundPosition:"right top, left bottom !important"}})),{Text:Text$1}=Typography;function Settings(){const{styles:o}=useStyles$8(),[a,s]=reactExports.useState(!1),{hasTabs:c,setHasTabs:f,hasCrumbs:d,setHasCrumbs:y}=useGlobalStore(),_=()=>{s(!1)};return jsxRuntimeExports.jsxs(ErrorBoundary,{children:[jsxRuntimeExports.jsx(Tooltip,{title:t("设置"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:()=>s(!0),size:"small",icon:jsxRuntimeExports.jsx(SettingOutlined,{})})}),jsxRuntimeExports.jsx(Drawer,{classNames:{content:o.driwer},title:t("设置"),placement:"right",onClose:_,open:a,extra:jsxRuntimeExports.jsx(FullScreen,{}),children:jsxRuntimeExports.jsxs(List,{split:!1,children:[jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("主题")}),description:jsxRuntimeExports.jsx(SlideTheme,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("布局")}),description:jsxRuntimeExports.jsx(LayoutSettings,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("预设")}),description:jsxRuntimeExports.jsx(Presets,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("内容区域")}),description:jsxRuntimeExports.jsxs(List,{children:[jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{checked:c,onChange:S=>{f(S)}})],children:t("页签")}),jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{checked:d,onChange:S=>{y(S)}})],children:t("面包屑导航")}),jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{defaultChecked:!0,onChange:()=>{}})],children:t("系统名称")})]})})})]})})]})}function useMessage(){const[o,a]=Modal.useModal();return{createMessage:message,createConfirm:o.confirm,contextHolder:a}}var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},s=Symbol("test"),c=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var f=42;a[s]=f;for(s in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var d=Object.getOwnPropertySymbols(a);if(d.length!==1||d[0]!==s||!Object.prototype.propertyIsEnumerable.call(a,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(a,s);if(y.value!==f||y.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol!="undefined"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$1=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function(a,s){for(var c=[],f=0;f1&&typeof s!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,a)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var c=stringToPath(a),f=c.length>0?c[0]:"",d=getBaseIntrinsic("%"+f+"%",s),y=d.name,_=d.value,S=!1,b=d.alias;b&&(f=b[0],$spliceApply(c,$concat$1([0,1],b)));for(var $=1,P=!0;$=c.length){var A=$gOPD$1(_,T);P=!!A,P&&"get"in A&&!("originalValue"in A.get)?_=A.get:_=_[T]}else P=hasOwn$1(_,T),_=_[T];P&&!S&&(INTRINSICS[y]=_)}}return _},callBind$1={exports:{}},GetIntrinsic$5=getIntrinsic,$defineProperty$1=GetIntrinsic$5("%Object.defineProperty%",!0),hasPropertyDescriptors$1=function(){if($defineProperty$1)try{return $defineProperty$1({},"a",{value:1}),!0}catch(a){return!1}return!1};hasPropertyDescriptors$1.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors$1())return null;try{return $defineProperty$1([],"length",{value:1}).length!==1}catch(a){return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors$1,GetIntrinsic$4=getIntrinsic,$gOPD=GetIntrinsic$4("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch(o){$gOPD=null}var gopd$1=$gOPD,hasPropertyDescriptors=hasPropertyDescriptors_1(),GetIntrinsic$3=getIntrinsic,$defineProperty=hasPropertyDescriptors&&GetIntrinsic$3("%Object.defineProperty%",!0);if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(o){$defineProperty=!1}var $SyntaxError=GetIntrinsic$3("%SyntaxError%"),$TypeError$2=GetIntrinsic$3("%TypeError%"),gopd=gopd$1,defineDataProperty=function(a,s,c){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError$2("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new $TypeError$2("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$2("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,y=arguments.length>5?arguments[5]:null,_=arguments.length>6?arguments[6]:!1,S=!!gopd&&gopd(a,s);if($defineProperty)$defineProperty(a,s,{configurable:y===null&&S?S.configurable:!y,enumerable:f===null&&S?S.enumerable:!f,value:c,writable:d===null&&S?S.writable:!d});else if(_||!f&&!d&&!y)a[s]=c;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GetIntrinsic$2=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD=gopd$1,$TypeError$1=GetIntrinsic$2("%TypeError%"),$floor$1=GetIntrinsic$2("%Math.floor%"),setFunctionLength=function(a,s){if(typeof a!="function")throw new $TypeError$1("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||$floor$1(s)!==s)throw new $TypeError$1("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],f=!0,d=!0;if("length"in a&&gOPD){var y=gOPD(a,"length");y&&!y.configurable&&(f=!1),y&&!y.writable&&(d=!1)}return(f||d||!c)&&(hasDescriptors?define(a,"length",s,!0,!0):define(a,"length",s)),a};(function(o){var a=functionBind,s=getIntrinsic,c=setFunctionLength,f=s("%TypeError%"),d=s("%Function.prototype.apply%"),y=s("%Function.prototype.call%"),_=s("%Reflect.apply%",!0)||a.call(y,d),S=s("%Object.defineProperty%",!0),b=s("%Math.max%");if(S)try{S({},"a",{value:1})}catch(P){S=null}o.exports=function(T){if(typeof T!="function")throw new f("a function is required");var C=_(a,y,arguments);return c(C,1+b(0,T.length-(arguments.length-1)),!0)};var $=function(){return _(a,d,arguments)};S?S(o.exports,"apply",{value:$}):o.exports.apply=$})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(a,s){var c=GetIntrinsic$1(a,!!s);return typeof c=="function"&&$indexOf(a,".prototype.")>-1?callBind(c):c};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(o){return o.__proto__}:null);function addNumericSeparator(o,a){if(o===1/0||o===-1/0||o!==o||o&&o>-1e3&&o<1e3||$test.call(/e/,a))return a;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof o=="number"){var c=o<0?-$floor(-o):$floor(o);if(c!==o){var f=String(c),d=$slice.call(a,f.length+1);return $replace.call(f,s,"$&_")+"."+$replace.call($replace.call(d,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(a,s,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function o(a,s,c,f){var d=s||{};if(has$4(d,"quoteStyle")&&d.quoteStyle!=="single"&&d.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(d,"maxStringLength")&&(typeof d.maxStringLength=="number"?d.maxStringLength<0&&d.maxStringLength!==1/0:d.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=has$4(d,"customInspect")?d.customInspect:!0;if(typeof y!="boolean"&&y!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(d,"indent")&&d.indent!==null&&d.indent!==" "&&!(parseInt(d.indent,10)===d.indent&&d.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(d,"numericSeparator")&&typeof d.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _=d.numericSeparator;if(typeof a=="undefined")return"undefined";if(a===null)return"null";if(typeof a=="boolean")return a?"true":"false";if(typeof a=="string")return inspectString(a,d);if(typeof a=="number"){if(a===0)return 1/0/a>0?"0":"-0";var S=String(a);return _?addNumericSeparator(a,S):S}if(typeof a=="bigint"){var b=String(a)+"n";return _?addNumericSeparator(a,b):b}var $=typeof d.depth=="undefined"?5:d.depth;if(typeof c=="undefined"&&(c=0),c>=$&&$>0&&typeof a=="object")return isArray$5(a)?"[Array]":"[Object]";var P=getIndent(d,c);if(typeof f=="undefined")f=[];else if(indexOf(f,a)>=0)return"[Circular]";function T(ee,de,Z){if(de&&(f=$arrSlice.call(f),f.push(de)),Z){var Q={depth:d.depth};return has$4(d,"quoteStyle")&&(Q.quoteStyle=d.quoteStyle),o(ee,Q,c+1,f)}return o(ee,d,c+1,f)}if(typeof a=="function"&&!isRegExp$2(a)){var C=nameOf(a),O=arrObjKeys(a,T);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(O.length>0?" { "+$join.call(O,", ")+" }":"")}if(isSymbol(a)){var A=hasShammedSymbols?$replace.call(String(a),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(a);return typeof a=="object"&&!hasShammedSymbols?markBoxed(A):A}if(isElement(a)){for(var M="<"+$toLowerCase.call(String(a.nodeName)),j=a.attributes||[],L=0;L",M}if(isArray$5(a)){if(a.length===0)return"[]";var F=arrObjKeys(a,T);return P&&!singleLineValues(F)?"["+indentedJoin(F,P)+"]":"[ "+$join.call(F,", ")+" ]"}if(isError(a)){var I=arrObjKeys(a,T);return!("cause"in Error.prototype)&&"cause"in a&&!isEnumerable.call(a,"cause")?"{ ["+String(a)+"] "+$join.call($concat.call("[cause]: "+T(a.cause),I),", ")+" }":I.length===0?"["+String(a)+"]":"{ ["+String(a)+"] "+$join.call(I,", ")+" }"}if(typeof a=="object"&&y){if(inspectSymbol&&typeof a[inspectSymbol]=="function"&&utilInspect)return utilInspect(a,{depth:$-c});if(y!=="symbol"&&typeof a.inspect=="function")return a.inspect()}if(isMap$1(a)){var U=[];return mapForEach&&mapForEach.call(a,function(ee,de){U.push(T(de,a,!0)+" => "+T(ee,a))}),collectionOf("Map",mapSize.call(a),U,P)}if(isSet$1(a)){var z=[];return setForEach&&setForEach.call(a,function(ee){z.push(T(ee,a))}),collectionOf("Set",setSize.call(a),z,P)}if(isWeakMap(a))return weakCollectionOf("WeakMap");if(isWeakSet(a))return weakCollectionOf("WeakSet");if(isWeakRef(a))return weakCollectionOf("WeakRef");if(isNumber$1(a))return markBoxed(T(Number(a)));if(isBigInt(a))return markBoxed(T(bigIntValueOf.call(a)));if(isBoolean$2(a))return markBoxed(booleanValueOf.call(a));if(isString$1(a))return markBoxed(T(String(a)));if(typeof window!="undefined"&&a===window)return"{ [object Window] }";if(a===commonjsGlobal)return"{ [object globalThis] }";if(!isDate$2(a)&&!isRegExp$2(a)){var H=arrObjKeys(a,T),G=gPO?gPO(a)===Object.prototype:a instanceof Object||a.constructor===Object,X=a instanceof Object?"":"null prototype",W=!G&&toStringTag&&Object(a)===a&&toStringTag in a?$slice.call(toStr(a),8,-1):X?"Object":"",K=G||typeof a.constructor!="function"?"":a.constructor.name?a.constructor.name+" ":"",ie=K+(W||X?"["+$join.call($concat.call([],W||[],X||[]),": ")+"] ":"");return H.length===0?ie+"{}":P?ie+"{"+indentedJoin(H,P)+"}":ie+"{ "+$join.call(H,", ")+" }"}return String(a)};function wrapQuotes(o,a,s){var c=(s.quoteStyle||a)==="double"?'"':"'";return c+o+c}function quote(o){return $replace.call(String(o),/"/g,""")}function isArray$5(o){return toStr(o)==="[object Array]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isDate$2(o){return toStr(o)==="[object Date]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isRegExp$2(o){return toStr(o)==="[object RegExp]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isError(o){return toStr(o)==="[object Error]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isString$1(o){return toStr(o)==="[object String]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isNumber$1(o){return toStr(o)==="[object Number]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isBoolean$2(o){return toStr(o)==="[object Boolean]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isSymbol(o){if(hasShammedSymbols)return o&&typeof o=="object"&&o instanceof Symbol;if(typeof o=="symbol")return!0;if(!o||typeof o!="object"||!symToString)return!1;try{return symToString.call(o),!0}catch(a){}return!1}function isBigInt(o){if(!o||typeof o!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(o),!0}catch(a){}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(o){return o in this};function has$4(o,a){return hasOwn.call(o,a)}function toStr(o){return objectToString.call(o)}function nameOf(o){if(o.name)return o.name;var a=$match.call(functionToString.call(o),/^function\s*([\w$]+)/);return a?a[1]:null}function indexOf(o,a){if(o.indexOf)return o.indexOf(a);for(var s=0,c=o.length;sa.maxStringLength){var s=o.length-a.maxStringLength,c="... "+s+" more character"+(s>1?"s":"");return inspectString($slice.call(o,0,a.maxStringLength),a)+c}var f=$replace.call($replace.call(o,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(f,"single",a)}function lowbyte(o){var a=o.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return s?"\\"+s:"\\x"+(a<16?"0":"")+$toUpperCase.call(a.toString(16))}function markBoxed(o){return"Object("+o+")"}function weakCollectionOf(o){return o+" { ? }"}function collectionOf(o,a,s,c){var f=c?indentedJoin(s,c):$join.call(s,", ");return o+" ("+a+") {"+f+"}"}function singleLineValues(o){for(var a=0;a=0)return!1;return!0}function getIndent(o,a){var s;if(o.indent===" ")s=" ";else if(typeof o.indent=="number"&&o.indent>0)s=$join.call(Array(o.indent+1)," ");else return null;return{base:s,prev:$join.call(Array(a+1),s)}}function indentedJoin(o,a){if(o.length===0)return"";var s=` `+a.prev+a.base;return s+$join.call(o,","+s)+` -`+a.prev}function arrObjKeys(o,a){var s=isArray$5(o),c=[];if(s){c.length=o.length;for(var f=0;f1;){var s=a.pop(),c=s.obj[s.prop];if(isArray$4(c)){for(var f=[],d=0;d=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||d===formats$2.RFC1738&&(b===40||b===41)){_+=y.charAt(S);continue}if(b<128){_=_+hexTable[b];continue}if(b<2048){_=_+(hexTable[192|b>>6]+hexTable[128|b&63]);continue}if(b<55296||b>=57344){_=_+(hexTable[224|b>>12]+hexTable[128|b>>6&63]+hexTable[128|b&63]);continue}S+=1,b=65536+((b&1023)<<10|y.charCodeAt(S)&1023),_+=hexTable[240|b>>18]+hexTable[128|b>>12&63]+hexTable[128|b>>6&63]+hexTable[128|b&63]}return _},compact=function(a){for(var s=[{obj:{o:a},prop:"o"}],c=[],f=0;f0?j.join(",")||null:void 0}];else if(isArray$3(S))G=S;else{var X=Object.keys(j);G=b?X.sort(b):X}for(var W=f&&isArray$3(j)&&j.length===1?s+"[]":s,K=0;K0?O+C:""},utils$2=utils$4,has$1=Object.prototype.hasOwnProperty,isArray$2=Array.isArray,defaults$2={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$2.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(o){return o.replace(/&#(\d+);/g,function(a,s){return String.fromCharCode(parseInt(s,10))})},parseArrayValue=function(o,a){return o&&typeof o=="string"&&a.comma&&o.indexOf(",")>-1?o.split(","):o},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(a,s){var c={__proto__:null},f=s.ignoreQueryPrefix?a.replace(/^\?/,""):a,d=s.parameterLimit===1/0?void 0:s.parameterLimit,y=f.split(s.delimiter,d),_=-1,S,b=s.charset;if(s.charsetSentinel)for(S=0;S-1&&(O=isArray$2(O)?[O]:O),has$1.call(c,C)?c[C]=utils$2.combine(c[C],O):c[C]=O}return c},parseObject=function(o,a,s,c){for(var f=c?a:parseArrayValue(a,s),d=o.length-1;d>=0;--d){var y,_=o[d];if(_==="[]"&&s.parseArrays)y=[].concat(f);else{y=s.plainObjects?Object.create(null):{};var S=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,b=parseInt(S,10);!s.parseArrays&&S===""?y={0:f}:!isNaN(b)&&_!==S&&String(b)===S&&b>=0&&s.parseArrays&&b<=s.arrayLimit?(y=[],y[b]=f):S!=="__proto__"&&(y[S]=f)}f=y}return f},parseKeys=function(a,s,c,f){if(a){var d=c.allowDots?a.replace(/\.([^.[]+)/g,"[$1]"):a,y=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,S=c.depth>0&&y.exec(d),b=S?d.slice(0,S.index):d,$=[];if(b){if(!c.plainObjects&&has$1.call(Object.prototype,b)&&!c.allowPrototypes)return;$.push(b)}for(var P=0;c.depth>0&&(S=_.exec(d))!==null&&P-1};function normalizeName(o){if(typeof o!="string"&&(o=String(o)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(o)||o==="")throw new TypeError('Invalid character in header field name: "'+o+'"');return o.toLowerCase()}function normalizeValue$1(o){return typeof o!="string"&&(o=String(o)),o}function iteratorFor(o){var a={next:function(){var s=o.shift();return{done:s===void 0,value:s}}};return support.iterable&&(a[Symbol.iterator]=function(){return a}),a}function Headers(o){this.map={},o instanceof Headers?o.forEach(function(a,s){this.append(s,a)},this):Array.isArray(o)?o.forEach(function(a){if(a.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+a.length);this.append(a[0],a[1])},this):o&&Object.getOwnPropertyNames(o).forEach(function(a){this.append(a,o[a])},this)}Headers.prototype.append=function(o,a){o=normalizeName(o),a=normalizeValue$1(a);var s=this.map[o];this.map[o]=s?s+", "+a:a};Headers.prototype.delete=function(o){delete this.map[normalizeName(o)]};Headers.prototype.get=function(o){return o=normalizeName(o),this.has(o)?this.map[o]:null};Headers.prototype.has=function(o){return this.map.hasOwnProperty(normalizeName(o))};Headers.prototype.set=function(o,a){this.map[normalizeName(o)]=normalizeValue$1(a)};Headers.prototype.forEach=function(o,a){for(var s in this.map)this.map.hasOwnProperty(s)&&o.call(a,this.map[s],s,this)};Headers.prototype.keys=function(){var o=[];return this.forEach(function(a,s){o.push(s)}),iteratorFor(o)};Headers.prototype.values=function(){var o=[];return this.forEach(function(a){o.push(a)}),iteratorFor(o)};Headers.prototype.entries=function(){var o=[];return this.forEach(function(a,s){o.push([s,a])}),iteratorFor(o)};support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);function consumed(o){if(!o._noBody){if(o.bodyUsed)return Promise.reject(new TypeError("Already read"));o.bodyUsed=!0}}function fileReaderReady(o){return new Promise(function(a,s){o.onload=function(){a(o.result)},o.onerror=function(){s(o.error)}})}function readBlobAsArrayBuffer(o){var a=new FileReader,s=fileReaderReady(a);return a.readAsArrayBuffer(o),s}function readBlobAsText(o){var a=new FileReader,s=fileReaderReady(a),c=/charset=([A-Za-z0-9_-]+)/.exec(o.type),f=c?c[1]:"utf-8";return a.readAsText(o,f),s}function readArrayBufferAsText(o){for(var a=new Uint8Array(o),s=new Array(a.length),c=0;c-1?a:o}function Request(o,a){if(!(this instanceof Request))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');a=a||{};var s=a.body;if(o instanceof Request){if(o.bodyUsed)throw new TypeError("Already read");this.url=o.url,this.credentials=o.credentials,a.headers||(this.headers=new Headers(o.headers)),this.method=o.method,this.mode=o.mode,this.signal=o.signal,!s&&o._bodyInit!=null&&(s=o._bodyInit,o.bodyUsed=!0)}else this.url=String(o);if(this.credentials=a.credentials||this.credentials||"same-origin",(a.headers||!this.headers)&&(this.headers=new Headers(a.headers)),this.method=normalizeMethod(a.method||this.method||"GET"),this.mode=a.mode||this.mode||null,this.signal=a.signal||this.signal||function(){if("AbortController"in g){var d=new AbortController;return d.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&s)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),(this.method==="GET"||this.method==="HEAD")&&(a.cache==="no-store"||a.cache==="no-cache")){var c=/([?&])_=[^&]*/;if(c.test(this.url))this.url=this.url.replace(c,"$1_="+new Date().getTime());else{var f=/\?/;this.url+=(f.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(o){var a=new FormData;return o.trim().split("&").forEach(function(s){if(s){var c=s.split("="),f=c.shift().replace(/\+/g," "),d=c.join("=").replace(/\+/g," ");a.append(decodeURIComponent(f),decodeURIComponent(d))}}),a}function parseHeaders$1(o){var a=new Headers,s=o.replace(/\r?\n[\t ]+/g," ");return s.split("\r").map(function(c){return c.indexOf(` +`+a.prev}function arrObjKeys(o,a){var s=isArray$5(o),c=[];if(s){c.length=o.length;for(var f=0;f1;){var s=a.pop(),c=s.obj[s.prop];if(isArray$4(c)){for(var f=[],d=0;d=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||d===formats$2.RFC1738&&(b===40||b===41)){_+=y.charAt(S);continue}if(b<128){_=_+hexTable[b];continue}if(b<2048){_=_+(hexTable[192|b>>6]+hexTable[128|b&63]);continue}if(b<55296||b>=57344){_=_+(hexTable[224|b>>12]+hexTable[128|b>>6&63]+hexTable[128|b&63]);continue}S+=1,b=65536+((b&1023)<<10|y.charCodeAt(S)&1023),_+=hexTable[240|b>>18]+hexTable[128|b>>12&63]+hexTable[128|b>>6&63]+hexTable[128|b&63]}return _},compact=function(a){for(var s=[{obj:{o:a},prop:"o"}],c=[],f=0;f0?j.join(",")||null:void 0}];else if(isArray$3(S))G=S;else{var X=Object.keys(j);G=b?X.sort(b):X}for(var W=f&&isArray$3(j)&&j.length===1?s+"[]":s,K=0;K0?O+C:""},utils$2=utils$4,has$1=Object.prototype.hasOwnProperty,isArray$2=Array.isArray,defaults$2={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$2.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(o){return o.replace(/&#(\d+);/g,function(a,s){return String.fromCharCode(parseInt(s,10))})},parseArrayValue=function(o,a){return o&&typeof o=="string"&&a.comma&&o.indexOf(",")>-1?o.split(","):o},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(a,s){var c={__proto__:null},f=s.ignoreQueryPrefix?a.replace(/^\?/,""):a,d=s.parameterLimit===1/0?void 0:s.parameterLimit,y=f.split(s.delimiter,d),_=-1,S,b=s.charset;if(s.charsetSentinel)for(S=0;S-1&&(O=isArray$2(O)?[O]:O),has$1.call(c,C)?c[C]=utils$2.combine(c[C],O):c[C]=O}return c},parseObject=function(o,a,s,c){for(var f=c?a:parseArrayValue(a,s),d=o.length-1;d>=0;--d){var y,_=o[d];if(_==="[]"&&s.parseArrays)y=[].concat(f);else{y=s.plainObjects?Object.create(null):{};var S=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,b=parseInt(S,10);!s.parseArrays&&S===""?y={0:f}:!isNaN(b)&&_!==S&&String(b)===S&&b>=0&&s.parseArrays&&b<=s.arrayLimit?(y=[],y[b]=f):S!=="__proto__"&&(y[S]=f)}f=y}return f},parseKeys=function(a,s,c,f){if(a){var d=c.allowDots?a.replace(/\.([^.[]+)/g,"[$1]"):a,y=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,S=c.depth>0&&y.exec(d),b=S?d.slice(0,S.index):d,$=[];if(b){if(!c.plainObjects&&has$1.call(Object.prototype,b)&&!c.allowPrototypes)return;$.push(b)}for(var P=0;c.depth>0&&(S=_.exec(d))!==null&&P-1};function normalizeName(o){if(typeof o!="string"&&(o=String(o)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(o)||o==="")throw new TypeError('Invalid character in header field name: "'+o+'"');return o.toLowerCase()}function normalizeValue$1(o){return typeof o!="string"&&(o=String(o)),o}function iteratorFor(o){var a={next:function(){var s=o.shift();return{done:s===void 0,value:s}}};return support.iterable&&(a[Symbol.iterator]=function(){return a}),a}function Headers(o){this.map={},o instanceof Headers?o.forEach(function(a,s){this.append(s,a)},this):Array.isArray(o)?o.forEach(function(a){if(a.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+a.length);this.append(a[0],a[1])},this):o&&Object.getOwnPropertyNames(o).forEach(function(a){this.append(a,o[a])},this)}Headers.prototype.append=function(o,a){o=normalizeName(o),a=normalizeValue$1(a);var s=this.map[o];this.map[o]=s?s+", "+a:a};Headers.prototype.delete=function(o){delete this.map[normalizeName(o)]};Headers.prototype.get=function(o){return o=normalizeName(o),this.has(o)?this.map[o]:null};Headers.prototype.has=function(o){return this.map.hasOwnProperty(normalizeName(o))};Headers.prototype.set=function(o,a){this.map[normalizeName(o)]=normalizeValue$1(a)};Headers.prototype.forEach=function(o,a){for(var s in this.map)this.map.hasOwnProperty(s)&&o.call(a,this.map[s],s,this)};Headers.prototype.keys=function(){var o=[];return this.forEach(function(a,s){o.push(s)}),iteratorFor(o)};Headers.prototype.values=function(){var o=[];return this.forEach(function(a){o.push(a)}),iteratorFor(o)};Headers.prototype.entries=function(){var o=[];return this.forEach(function(a,s){o.push([s,a])}),iteratorFor(o)};support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);function consumed(o){if(!o._noBody){if(o.bodyUsed)return Promise.reject(new TypeError("Already read"));o.bodyUsed=!0}}function fileReaderReady(o){return new Promise(function(a,s){o.onload=function(){a(o.result)},o.onerror=function(){s(o.error)}})}function readBlobAsArrayBuffer(o){var a=new FileReader,s=fileReaderReady(a);return a.readAsArrayBuffer(o),s}function readBlobAsText(o){var a=new FileReader,s=fileReaderReady(a),c=/charset=([A-Za-z0-9_-]+)/.exec(o.type),f=c?c[1]:"utf-8";return a.readAsText(o,f),s}function readArrayBufferAsText(o){for(var a=new Uint8Array(o),s=new Array(a.length),c=0;c-1?a:o}function Request(o,a){if(!(this instanceof Request))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');a=a||{};var s=a.body;if(o instanceof Request){if(o.bodyUsed)throw new TypeError("Already read");this.url=o.url,this.credentials=o.credentials,a.headers||(this.headers=new Headers(o.headers)),this.method=o.method,this.mode=o.mode,this.signal=o.signal,!s&&o._bodyInit!=null&&(s=o._bodyInit,o.bodyUsed=!0)}else this.url=String(o);if(this.credentials=a.credentials||this.credentials||"same-origin",(a.headers||!this.headers)&&(this.headers=new Headers(a.headers)),this.method=normalizeMethod(a.method||this.method||"GET"),this.mode=a.mode||this.mode||null,this.signal=a.signal||this.signal||function(){if("AbortController"in g){var d=new AbortController;return d.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&s)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),(this.method==="GET"||this.method==="HEAD")&&(a.cache==="no-store"||a.cache==="no-cache")){var c=/([?&])_=[^&]*/;if(c.test(this.url))this.url=this.url.replace(c,"$1_="+new Date().getTime());else{var f=/\?/;this.url+=(f.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(o){var a=new FormData;return o.trim().split("&").forEach(function(s){if(s){var c=s.split("="),f=c.shift().replace(/\+/g," "),d=c.join("=").replace(/\+/g," ");a.append(decodeURIComponent(f),decodeURIComponent(d))}}),a}function parseHeaders$1(o){var a=new Headers,s=o.replace(/\r?\n[\t ]+/g," ");return s.split("\r").map(function(c){return c.indexOf(` `)===0?c.substr(1,c.length):c}).forEach(function(c){var f=c.split(":"),d=f.shift().trim();if(d){var y=f.join(":").trim();try{a.append(d,y)}catch(_){}}}),a}Body.call(Request.prototype);function Response(o,a){if(!(this instanceof Response))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(a||(a={}),this.type="default",this.status=a.status===void 0?200:a.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=a.statusText===void 0?"":""+a.statusText,this.headers=new Headers(a.headers),this.url=a.url||"",this._initBody(o)}Body.call(Response.prototype);Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})};Response.error=function(){var o=new Response(null,{status:200,statusText:""});return o.ok=!1,o.status=0,o.type="error",o};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(o,a){if(redirectStatuses.indexOf(a)===-1)throw new RangeError("Invalid status code");return new Response(null,{status:a,headers:{location:o}})};var DOMException=g.DOMException;try{new DOMException}catch(o){DOMException=function(a,s){this.message=a,this.name=s;var c=Error(a);this.stack=c.stack},DOMException.prototype=Object.create(Error.prototype),DOMException.prototype.constructor=DOMException}function fetch$1(o,a){return new Promise(function(s,c){var f=new Request(o,a);if(f.signal&&f.signal.aborted)return c(new DOMException("Aborted","AbortError"));var d=new XMLHttpRequest;function y(){d.abort()}d.onload=function(){var b={statusText:d.statusText,headers:parseHeaders$1(d.getAllResponseHeaders()||"")};f.url.indexOf("file://")===0&&(d.status<200||d.status>599)?b.status=200:b.status=d.status,b.url="responseURL"in d?d.responseURL:b.headers.get("X-Request-URL");var $="response"in d?d.response:d.responseText;setTimeout(function(){s(new Response($,b))},0)},d.onerror=function(){setTimeout(function(){c(new TypeError("Network request failed"))},0)},d.ontimeout=function(){setTimeout(function(){c(new TypeError("Network request timed out"))},0)},d.onabort=function(){setTimeout(function(){c(new DOMException("Aborted","AbortError"))},0)};function _(b){try{return b===""&&g.location.href?g.location.href:b}catch($){return b}}if(d.open(f.method,_(f.url),!0),f.credentials==="include"?d.withCredentials=!0:f.credentials==="omit"&&(d.withCredentials=!1),"responseType"in d&&(support.blob?d.responseType="blob":support.arrayBuffer&&(d.responseType="arraybuffer")),a&&typeof a.headers=="object"&&!(a.headers instanceof Headers||g.Headers&&a.headers instanceof g.Headers)){var S=[];Object.getOwnPropertyNames(a.headers).forEach(function(b){S.push(normalizeName(b)),d.setRequestHeader(b,normalizeValue$1(a.headers[b]))}),f.headers.forEach(function(b,$){S.indexOf($)===-1&&d.setRequestHeader($,b)})}else f.headers.forEach(function(b,$){d.setRequestHeader($,b)});f.signal&&(f.signal.addEventListener("abort",y),d.onreadystatechange=function(){d.readyState===4&&f.signal.removeEventListener("abort",y)}),d.send(typeof f._bodyInit=="undefined"?null:f._bodyInit)})}fetch$1.polyfill=!0;g.fetch||(g.fetch=fetch$1,g.Headers=Headers,g.Request=Request,g.Response=Response);self.fetch.bind(self);function ownKeys$3(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread2(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},f=!1,d=!1,y=!1;if(typeof c=="number"?(process&&process.env,f=!0,d=!1):_typeof$2(c)==="object"&&c&&(d=c.global||!1,f=c.core||!1,y=c.defaultInstance||!1),d){o.globalMiddlewares.splice(o.globalMiddlewares.length-o.defaultGlobalMiddlewaresLength,0,s);return}if(f){o.coreMiddlewares.splice(o.coreMiddlewares.length-o.defaultCoreMiddlewaresLength,0,s);return}if(y){this.defaultMiddlewares.push(s);return}this.middlewares.push(s)}},{key:"execute",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=compose$1([].concat(_toConsumableArray$1(this.middlewares),_toConsumableArray$1(this.defaultMiddlewares),_toConsumableArray$1(o.globalMiddlewares),_toConsumableArray$1(o.coreMiddlewares)));return c(s)}}]),o}();Onion.globalMiddlewares=[];Onion.defaultGlobalMiddlewaresLength=0;Onion.coreMiddlewares=[];Onion.defaultCoreMiddlewaresLength=0;var MapCache=function(){function o(a){_classCallCheck(this,o),this.cache=new Map,this.timer={},this.extendOptions(a)}return _createClass(o,[{key:"extendOptions",value:function(s){this.maxCache=s.maxCache||0}},{key:"get",value:function(s){return this.cache.get(JSON.stringify(s))}},{key:"set",value:function(s,c){var f=this,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var y=_toConsumableArray$1(this.cache.keys())[0];this.cache.delete(y),this.timer[y]&&clearTimeout(this.timer[y])}var _=JSON.stringify(s);this.cache.set(_,c),d>0&&(this.timer[_]=setTimeout(function(){f.cache.delete(_),delete f.timer[_]},d))}},{key:"delete",value:function(s){var c=JSON.stringify(s);return delete this.timer[c],this.cache.delete(c)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),o}(),RequestError=function(o){_inherits(s,o);var a=_createSuper(s);function s(c,f){var d,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return _classCallCheck(this,s),d=a.call(this,c),d.name="RequestError",d.request=f,d.type=y,d}return s}(_wrapNativeSuper(Error)),ResponseError=function(o){_inherits(s,o);var a=_createSuper(s);function s(c,f,d,y){var _,S=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return _classCallCheck(this,s),_=a.call(this,f||c.statusText),_.name="ResponseError",_.data=d,_.response=c,_.request=y,_.type=S,_}return s}(_wrapNativeSuper(Error));function readerGBK(o){return new Promise(function(a,s){var c=new FileReader;c.onload=function(){a(c.result)},c.onerror=s,c.readAsText(o,"GBK")})}function safeJsonParse(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(o)}catch(f){if(a)throw new ResponseError(s,"JSON.parse fail",o,c,"ParseError")}return o}function timeout2Throw(o,a,s){return new Promise(function(c,f){setTimeout(function(){f(new RequestError(a||"timeout of ".concat(o,"ms exceeded"),s,"Timeout"))},o)})}function cancel2Throw(o){return new Promise(function(a,s){o.cancelToken&&o.cancelToken.promise.then(function(c){s(c)})})}var toString$1=Object.prototype.toString;function getEnv(){var o;return typeof process!="undefined"&&toString$1.call(process)==="[object process]"&&(o="NODE"),typeof XMLHttpRequest!="undefined"&&(o="BROWSER"),o}function isArray$1(o){return _typeof$2(o)==="object"&&Object.prototype.toString.call(o)==="[object Array]"}function isURLSearchParams$1(o){return typeof URLSearchParams!="undefined"&&o instanceof URLSearchParams}function isDate$1(o){return _typeof$2(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function isObject$1(o){return o!==null&&_typeof$2(o)==="object"}function forEach2ObjArr(o,a){if(o)if(_typeof$2(o)!=="object"&&(o=[o]),isArray$1(o))for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},c=s.prefix,f=s.suffix;return c&&(a="".concat(c).concat(a)),f&&(a="".concat(a).concat(f)),{url:a,options:s}},warnedCoreType=!1;function __defaultValidateCache(o,a){var s=a.method,c=s===void 0?"get":s;return c.toLowerCase()==="get"}function fetchMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=s.url,y=d===void 0?"":d,_=o.cache,S=o.responseInterceptors,b=f.timeout,$=b===void 0?0:b,P=f.timeoutMessage,T=f.__umiRequestCoreType__,C=T===void 0?"normal":T,O=f.useCache,A=O===void 0?!1:O,F=f.method,j=F===void 0?"get":F,L=f.params,M=f.ttl,I=f.validateCache,U=I===void 0?__defaultValidateCache:I;if(C!=="normal")return process&&process.env,a();var z=fetch;if(!z)throw new Error("Global fetch not exist!");var H=getEnv()==="BROWSER",G=U(y,f)&&A&&H;if(G){var X=_.get({url:y,params:L,method:j});if(X)return X=X.clone(),X.useCache=!0,o.res=X,a()}var W;return $>0?W=Promise.race([cancel2Throw(f),z(y,f),timeout2Throw($,P,o.req)]):W=Promise.race([cancel2Throw(f),z(y,f)]),S.forEach(function(K){W=W.then(function(ie){var ee=typeof ie.clone=="function"?ie.clone():ie;return K(ee,f)})}),W.then(function(K){if(G&&K.status===200){var ie=K.clone();ie.useCache=!0,_.set({url:y,params:L,method:j},ie,M)}return o.res=K,a()})}function parseResponseMiddleware(o,a){var s;return a().then(function(){if(o){var c=o.res,f=c===void 0?{}:c,d=o.req,y=d===void 0?{}:d,_=y||{},S=_.options;S=S===void 0?{}:S;var b=S.responseType,$=b===void 0?"json":b,P=S.charset,T=P===void 0?"utf8":P;S.getResponse;var C=S.throwErrIfParseFail,O=C===void 0?!1:C,A=S.parseResponse,F=A===void 0?!0:A;if(F&&!(!f||!f.clone)){if(s=getEnv()==="BROWSER"?f.clone():f,s.useCache=f.useCache||!1,T==="gbk")try{return f.blob().then(readerGBK).then(function(j){return safeJsonParse(j,!1,s,y)})}catch(j){throw new ResponseError(s,j.message,null,y,"ParseError")}else if($==="json")return f.text().then(function(j){return safeJsonParse(j,O,s,y)});try{return f[$]()}catch(j){throw new ResponseError(s,"responseType not support",null,y,"ParseError")}}}}).then(function(c){if(o){o.res;var f=o.req,d=f===void 0?{}:f,y=d||{},_=y.options;_=_===void 0?{}:_;var S=_.getResponse,b=S===void 0?!1:S;if(s){if(s.status>=200&&s.status<300){if(b){o.res={data:c,response:s};return}o.res=c;return}throw new ResponseError(s,"http error",c,d,"HttpError")}}}).catch(function(c){if(c instanceof RequestError||c instanceof ResponseError)throw c;var f=o.req,d=o.res;throw c.request=c.request||f,c.response=c.response||d,c.type=c.type||c.name,c.data=c.data||void 0,c})}function simplePostMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=f.method,y=d===void 0?"get":d;if(["post","put","patch","delete"].indexOf(y.toLowerCase())===-1)return a();var _=f.requestType,S=_===void 0?"json":_,b=f.data;if(b){var $=Object.prototype.toString.call(b);$==="[object Object]"||$==="[object Array]"?S==="json"?(f.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},f.headers),f.body=JSON.stringify(b)):S==="form"&&(f.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},f.headers),f.body=reqStringify(b)):(f.headers=_objectSpread2({Accept:"application/json"},f.headers),f.body=b)}return o.req.options=f,a()}function paramsSerialize(o,a){var s,c;if(o)if(a)s=a(o);else if(isURLSearchParams$1(o))s=o.toString();else if(isArray$1(o))c=[],forEach2ObjArr(o,function(d){d===null||typeof d=="undefined"?c.push(d):c.push(isObject$1(d)?JSON.stringify(d):d)}),s=reqStringify(c);else{c={},forEach2ObjArr(o,function(d,y){var _=d;d===null||typeof d=="undefined"?c[y]=d:isDate$1(d)?_=d.toISOString():isArray$1(d)?_=d:isObject$1(d)&&(_=JSON.stringify(d)),c[y]=_});var f=reqStringify(c);s=f}return s}function simpleGetMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=f.paramsSerializer,y=f.params,_=o.req;_=_===void 0?{}:_;var S=_.url,b=S===void 0?"":S;f.method=f.method?f.method.toUpperCase():"GET",f.credentials=f.credentials||"same-origin";var $=paramsSerialize(y,d);if(o.req.originUrl=b,$){var P=b.indexOf("?")!==-1?"&":"?";o.req.url="".concat(b).concat(P).concat($)}return o.req.options=f,a()}var globalMiddlewares=[simplePostMiddleware,simpleGetMiddleware,parseResponseMiddleware],coreMiddlewares=[fetchMiddleware];Onion.globalMiddlewares=globalMiddlewares;Onion.defaultGlobalMiddlewaresLength=globalMiddlewares.length;Onion.coreMiddlewares=coreMiddlewares;Onion.defaultCoreMiddlewaresLength=coreMiddlewares.length;var Core=function(){function o(a){_classCallCheck(this,o),this.onion=new Onion([]),this.fetchIndex=0,this.mapCache=new MapCache(a),this.initOptions=a,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return _createClass(o,[{key:"use",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(s,c),this}},{key:"extendOptions",value:function(s){this.initOptions=mergeRequestOptions(this.initOptions,s),this.mapCache.extendOptions(s)}},{key:"dealRequestInterceptors",value:function(s){var c=function(y,_){return y.then(function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return s.req.url=S.url||s.req.url,s.req.options=S.options||s.req.options,_(s.req.url,s.req.options)})},f=[].concat(_toConsumableArray$1(o.requestInterceptors),_toConsumableArray$1(this.instanceRequestInterceptors));return f.reduce(c,Promise.resolve()).then(function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return s.req.url=d.url||s.req.url,s.req.options=d.options||s.req.options,Promise.resolve()})}},{key:"request",value:function(s,c){var f=this,d=this.onion,y={req:{url:s,options:_objectSpread2(_objectSpread2({},c),{},{url:s})},res:null,cache:this.mapCache,responseInterceptors:[].concat(_toConsumableArray$1(o.responseInterceptors),_toConsumableArray$1(this.instanceResponseInterceptors))};if(typeof s!="string")throw new Error("url MUST be a string");return new Promise(function(_,S){f.dealRequestInterceptors(y).then(function(){return d.execute(y)}).then(function(){_(y.res)}).catch(function(b){var $=y.req.options.errorHandler;if($)try{var P=$(b);_(P)}catch(T){S(T)}else S(b)})})}}],[{key:"requestUse",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof s!="function")throw new TypeError("Interceptor must be function!");c.global?o.requestInterceptors.push(s):this.instanceRequestInterceptors.push(s)}},{key:"responseUse",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof s!="function")throw new TypeError("Interceptor must be function!");c.global?o.responseInterceptors.push(s):this.instanceResponseInterceptors.push(s)}}]),o}();Core.requestInterceptors=[addfix];Core.responseInterceptors=[];function Cancel(o){this.message=o}Cancel.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};Cancel.prototype.__CANCEL__=!0;function CancelToken$2(o){if(typeof o!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(f){a=f});var s=this;o(function(f){s.reason||(s.reason=new Cancel(f),a(s.reason))})}CancelToken$2.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};CancelToken$2.source=function(){var a,s=new CancelToken$2(function(f){a=f});return{token:s,cancel:a}};function isCancel$1(o){return!!(o&&o.__CANCEL__)}var request=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=new Core(a),c=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=mergeRequestOptions(s.initOptions,_);return s.request(y,S)};c.use=s.use.bind(s),c.fetchIndex=s.fetchIndex,c.interceptors={request:{use:Core.requestUse.bind(s)},response:{use:Core.responseUse.bind(s)}};var f=["get","post","delete","put","patch","head","options","rpc"];return f.forEach(function(d){c[d]=function(y,_){return c(y,_objectSpread2(_objectSpread2({},_),{},{method:d}))}}),c.Cancel=Cancel,c.CancelToken=CancelToken$2,c.isCancel=isCancel$1,c.extendOptions=s.extendOptions.bind(s),c.middlewares={instance:s.onion.middlewares,defaultInstance:s.onion.defaultMiddlewares,global:Onion.globalMiddlewares,core:Onion.coreMiddlewares},c},extend$1=function(a){return request(a)};request({parseResponse:!1});request({});var ResultEnum=(o=>(o[o.SUCCESS=0]="SUCCESS",o[o.ERROR=-1]="ERROR",o[o.TIMEOUT=401]="TIMEOUT",o.TYPE="success",o))(ResultEnum||{}),RequestEnum=(o=>(o.GET="GET",o.POST="POST",o.PUT="PUT",o.DELETE="DELETE",o))(RequestEnum||{}),ContentTypeEnum=(o=>(o.JSON="application/json;charset=UTF-8",o.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",o.FORM_DATA="multipart/form-data;charset=UTF-8",o))(ContentTypeEnum||{}),StorageEnum=(o=>(o.Token="token",o))(StorageEnum||{});function bind(o,a){return function(){return o.apply(a,arguments)}}const{toString}=Object.prototype,{getPrototypeOf:getPrototypeOf$1}=Object,kindOf=(o=>a=>{const s=toString.call(a);return o[s]||(o[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=o=>(o=o.toLowerCase(),a=>kindOf(a)===o),typeOfTest=o=>a=>typeof a===o,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(o){return o!==null&&!isUndefined(o)&&o.constructor!==null&&!isUndefined(o.constructor)&&isFunction(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(o){let a;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?a=ArrayBuffer.isView(o):a=o&&o.buffer&&isArrayBuffer(o.buffer),a}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=o=>o!==null&&typeof o=="object",isBoolean$1=o=>o===!0||o===!1,isPlainObject$3=o=>{if(kindOf(o)!=="object")return!1;const a=getPrototypeOf$1(o);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in o)&&!(Symbol.iterator in o)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=o=>isObject(o)&&isFunction(o.pipe),isFormData=o=>{let a;return o&&(typeof FormData=="function"&&o instanceof FormData||isFunction(o.append)&&((a=kindOf(o))==="formdata"||a==="object"&&isFunction(o.toString)&&o.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(o,a,{allOwnKeys:s=!1}={}){if(o===null||typeof o=="undefined")return;let c,f;if(typeof o!="object"&&(o=[o]),isArray(o))for(c=0,f=o.length;c0;)if(f=s[c],a===f.toLowerCase())return f;return null}const _global=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),isContextDefined=o=>!isUndefined(o)&&o!==_global;function merge(){const{caseless:o}=isContextDefined(this)&&this||{},a={},s=(c,f)=>{const d=o&&findKey(a,f)||f;isPlainObject$3(a[d])&&isPlainObject$3(c)?a[d]=merge(a[d],c):isPlainObject$3(c)?a[d]=merge({},c):isArray(c)?a[d]=c.slice():a[d]=c};for(let c=0,f=arguments.length;c(forEach(a,(f,d)=>{s&&isFunction(f)?o[d]=bind(f,s):o[d]=f},{allOwnKeys:c}),o),stripBOM=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),inherits=(o,a,s,c)=>{o.prototype=Object.create(a.prototype,c),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:a.prototype}),s&&Object.assign(o.prototype,s)},toFlatObject=(o,a,s,c)=>{let f,d,y;const _={};if(a=a||{},o==null)return a;do{for(f=Object.getOwnPropertyNames(o),d=f.length;d-- >0;)y=f[d],(!c||c(y,o,a))&&!_[y]&&(a[y]=o[y],_[y]=!0);o=s!==!1&&getPrototypeOf$1(o)}while(o&&(!s||s(o,a))&&o!==Object.prototype);return a},endsWith=(o,a,s)=>{o=String(o),(s===void 0||s>o.length)&&(s=o.length),s-=a.length;const c=o.indexOf(a,s);return c!==-1&&c===s},toArray=o=>{if(!o)return null;if(isArray(o))return o;let a=o.length;if(!isNumber(a))return null;const s=new Array(a);for(;a-- >0;)s[a]=o[a];return s},isTypedArray=(o=>a=>o&&a instanceof o)(typeof Uint8Array!="undefined"&&getPrototypeOf$1(Uint8Array)),forEachEntry=(o,a)=>{const c=(o&&o[Symbol.iterator]).call(o);let f;for(;(f=c.next())&&!f.done;){const d=f.value;a.call(o,d[0],d[1])}},matchAll=(o,a)=>{let s;const c=[];for(;(s=o.exec(a))!==null;)c.push(s);return c},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,c,f){return c.toUpperCase()+f}),hasOwnProperty=(({hasOwnProperty:o})=>(a,s)=>o.call(a,s))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(o,a)=>{const s=Object.getOwnPropertyDescriptors(o),c={};forEach(s,(f,d)=>{let y;(y=a(f,d,o))!==!1&&(c[d]=y||f)}),Object.defineProperties(o,c)},freezeMethods=o=>{reduceDescriptors(o,(a,s)=>{if(isFunction(o)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const c=o[s];if(isFunction(c)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},toObjectSet=(o,a)=>{const s={},c=f=>{f.forEach(d=>{s[d]=!0})};return isArray(o)?c(o):c(String(o).split(a)),s},noop$2=()=>{},toFiniteNumber=(o,a)=>(o=+o,Number.isFinite(o)?o:a),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(o=16,a=ALPHABET.ALPHA_DIGIT)=>{let s="";const{length:c}=a;for(;o--;)s+=a[Math.random()*c|0];return s};function isSpecCompliantForm(o){return!!(o&&isFunction(o.append)&&o[Symbol.toStringTag]==="FormData"&&o[Symbol.iterator])}const toJSONObject=o=>{const a=new Array(10),s=(c,f)=>{if(isObject(c)){if(a.indexOf(c)>=0)return;if(!("toJSON"in c)){a[f]=c;const d=isArray(c)?[]:{};return forEach(c,(y,_)=>{const S=s(y,f+1);!isUndefined(S)&&(d[_]=S)}),a[f]=void 0,d}}return c};return s(o,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable$1=o=>o&&(isObject(o)||isFunction(o))&&isFunction(o.then)&&isFunction(o.catch),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean:isBoolean$1,isObject,isPlainObject:isPlainObject$3,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$2,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable:isThenable$1};function AxiosError(o,a,s,c,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",a&&(this.code=a),s&&(this.config=s),c&&(this.request=c),f&&(this.response=f)}utils$1.inherits(AxiosError,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:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["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(o=>{descriptors[o]={value:o}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(o,a,s,c,f,d)=>{const y=Object.create(prototype$1);return utils$1.toFlatObject(o,y,function(S){return S!==Error.prototype},_=>_!=="isAxiosError"),AxiosError.call(y,o.message,a,s,c,f),y.cause=o,y.name=o.name,d&&Object.assign(y,d),y};const httpAdapter=null;function isVisitable(o){return utils$1.isPlainObject(o)||utils$1.isArray(o)}function removeBrackets(o){return utils$1.endsWith(o,"[]")?o.slice(0,-2):o}function renderKey(o,a,s){return o?o.concat(a).map(function(f,d){return f=removeBrackets(f),!s&&d?"["+f+"]":f}).join(s?".":""):a}function isFlatArray(o){return utils$1.isArray(o)&&!o.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(a){return/^is[A-Z]/.test(a)});function toFormData(o,a,s){if(!utils$1.isObject(o))throw new TypeError("target must be an object");a=a||new FormData,s=utils$1.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,F){return!utils$1.isUndefined(F[A])});const c=s.metaTokens,f=s.visitor||$,d=s.dots,y=s.indexes,S=(s.Blob||typeof Blob!="undefined"&&Blob)&&utils$1.isSpecCompliantForm(a);if(!utils$1.isFunction(f))throw new TypeError("visitor must be a function");function b(O){if(O===null)return"";if(utils$1.isDate(O))return O.toISOString();if(!S&&utils$1.isBlob(O))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(O)||utils$1.isTypedArray(O)?S&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function $(O,A,F){let j=O;if(O&&!F&&typeof O=="object"){if(utils$1.endsWith(A,"{}"))A=c?A:A.slice(0,-2),O=JSON.stringify(O);else if(utils$1.isArray(O)&&isFlatArray(O)||(utils$1.isFileList(O)||utils$1.endsWith(A,"[]"))&&(j=utils$1.toArray(O)))return A=removeBrackets(A),j.forEach(function(M,I){!(utils$1.isUndefined(M)||M===null)&&a.append(y===!0?renderKey([A],I,d):y===null?A:A+"[]",b(M))}),!1}return isVisitable(O)?!0:(a.append(renderKey(F,A,d),b(O)),!1)}const P=[],T=Object.assign(predicates,{defaultVisitor:$,convertValue:b,isVisitable});function C(O,A){if(!utils$1.isUndefined(O)){if(P.indexOf(O)!==-1)throw Error("Circular reference detected in "+A.join("."));P.push(O),utils$1.forEach(O,function(j,L){(!(utils$1.isUndefined(j)||j===null)&&f.call(a,j,utils$1.isString(L)?L.trim():L,A,T))===!0&&C(j,A?A.concat(L):[L])}),P.pop()}}if(!utils$1.isObject(o))throw new TypeError("data must be an object");return C(o),a}function encode$1(o){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(c){return a[c]})}function AxiosURLSearchParams(o,a){this._pairs=[],o&&toFormData(o,this,a)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(a,s){this._pairs.push([a,s])};prototype.toString=function(a){const s=a?function(c){return a.call(this,c,encode$1)}:encode$1;return this._pairs.map(function(f){return s(f[0])+"="+s(f[1])},"").join("&")};function encode(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(o,a,s){if(!a)return o;const c=s&&s.encode||encode,f=s&&s.serialize;let d;if(f?d=f(a,s):d=utils$1.isURLSearchParams(a)?a.toString():new AxiosURLSearchParams(a,s).toString(c),d){const y=o.indexOf("#");y!==-1&&(o=o.slice(0,y)),o+=(o.indexOf("?")===-1?"?":"&")+d}return o}class InterceptorManager{constructor(){this.handlers=[]}use(a,s,c){return this.handlers.push({fulfilled:a,rejected:s,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){utils$1.forEach(this.handlers,function(c){c!==null&&a(c)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams!="undefined"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData!="undefined"?FormData:null,Blob$1=typeof Blob!="undefined"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window!="undefined"&&typeof document!="undefined",hasStandardBrowserEnv=(o=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(o)<0)(typeof navigator!="undefined"&&navigator.product),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"})),platform=se(se({},utils),platform$1);function toURLEncodedForm(o,a){return toFormData(o,new platform.classes.URLSearchParams,Object.assign({visitor:function(s,c,f,d){return platform.isNode&&utils$1.isBuffer(s)?(this.append(c,s.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},a))}function parsePropPath(o){return utils$1.matchAll(/\w+|\[(\w*)]/g,o).map(a=>a[0]==="[]"?"":a[1]||a[0])}function arrayToObject(o){const a={},s=Object.keys(o);let c;const f=s.length;let d;for(c=0;c=s.length;return y=!y&&utils$1.isArray(f)?f.length:y,S?(utils$1.hasOwnProp(f,y)?f[y]=[f[y],c]:f[y]=c,!_):((!f[y]||!utils$1.isObject(f[y]))&&(f[y]=[]),a(s,c,f[y],d)&&utils$1.isArray(f[y])&&(f[y]=arrayToObject(f[y])),!_)}if(utils$1.isFormData(o)&&utils$1.isFunction(o.entries)){const s={};return utils$1.forEachEntry(o,(c,f)=>{a(parsePropPath(c),f,s,0)}),s}return null}function stringifySafely(o,a,s){if(utils$1.isString(o))try{return(a||JSON.parse)(o),utils$1.trim(o)}catch(c){if(c.name!=="SyntaxError")throw c}return(s||JSON.stringify)(o)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(a,s){const c=s.getContentType()||"",f=c.indexOf("application/json")>-1,d=utils$1.isObject(a);if(d&&utils$1.isHTMLForm(a)&&(a=new FormData(a)),utils$1.isFormData(a))return f&&f?JSON.stringify(formDataToJSON(a)):a;if(utils$1.isArrayBuffer(a)||utils$1.isBuffer(a)||utils$1.isStream(a)||utils$1.isFile(a)||utils$1.isBlob(a))return a;if(utils$1.isArrayBufferView(a))return a.buffer;if(utils$1.isURLSearchParams(a))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let _;if(d){if(c.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(a,this.formSerializer).toString();if((_=utils$1.isFileList(a))||c.indexOf("multipart/form-data")>-1){const S=this.env&&this.env.FormData;return toFormData(_?{"files[]":a}:a,S&&new S,this.formSerializer)}}return d||f?(s.setContentType("application/json",!1),stringifySafely(a)):a}],transformResponse:[function(a){const s=this.transitional||defaults.transitional,c=s&&s.forcedJSONParsing,f=this.responseType==="json";if(a&&utils$1.isString(a)&&(c&&!this.responseType||f)){const y=!(s&&s.silentJSONParsing)&&f;try{return JSON.parse(a)}catch(_){if(y)throw _.name==="SyntaxError"?AxiosError.from(_,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):_}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],o=>{defaults.headers[o]={}});const defaults$1=defaults,ignoreDuplicateOf=utils$1.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"]),parseHeaders=o=>{const a={};let s,c,f;return o&&o.split(` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function compose$1(o){if(!Array.isArray(o))throw new TypeError("Middlewares must be an array!");for(var a=o.length,s=0;s1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},f=!1,d=!1,y=!1;if(typeof c=="number"?(process&&process.env,f=!0,d=!1):_typeof$2(c)==="object"&&c&&(d=c.global||!1,f=c.core||!1,y=c.defaultInstance||!1),d){o.globalMiddlewares.splice(o.globalMiddlewares.length-o.defaultGlobalMiddlewaresLength,0,s);return}if(f){o.coreMiddlewares.splice(o.coreMiddlewares.length-o.defaultCoreMiddlewaresLength,0,s);return}if(y){this.defaultMiddlewares.push(s);return}this.middlewares.push(s)}},{key:"execute",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=compose$1([].concat(_toConsumableArray$1(this.middlewares),_toConsumableArray$1(this.defaultMiddlewares),_toConsumableArray$1(o.globalMiddlewares),_toConsumableArray$1(o.coreMiddlewares)));return c(s)}}]),o}();Onion.globalMiddlewares=[];Onion.defaultGlobalMiddlewaresLength=0;Onion.coreMiddlewares=[];Onion.defaultCoreMiddlewaresLength=0;var MapCache=function(){function o(a){_classCallCheck(this,o),this.cache=new Map,this.timer={},this.extendOptions(a)}return _createClass(o,[{key:"extendOptions",value:function(s){this.maxCache=s.maxCache||0}},{key:"get",value:function(s){return this.cache.get(JSON.stringify(s))}},{key:"set",value:function(s,c){var f=this,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var y=_toConsumableArray$1(this.cache.keys())[0];this.cache.delete(y),this.timer[y]&&clearTimeout(this.timer[y])}var _=JSON.stringify(s);this.cache.set(_,c),d>0&&(this.timer[_]=setTimeout(function(){f.cache.delete(_),delete f.timer[_]},d))}},{key:"delete",value:function(s){var c=JSON.stringify(s);return delete this.timer[c],this.cache.delete(c)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),o}(),RequestError=function(o){_inherits(s,o);var a=_createSuper(s);function s(c,f){var d,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return _classCallCheck(this,s),d=a.call(this,c),d.name="RequestError",d.request=f,d.type=y,d}return s}(_wrapNativeSuper(Error)),ResponseError=function(o){_inherits(s,o);var a=_createSuper(s);function s(c,f,d,y){var _,S=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return _classCallCheck(this,s),_=a.call(this,f||c.statusText),_.name="ResponseError",_.data=d,_.response=c,_.request=y,_.type=S,_}return s}(_wrapNativeSuper(Error));function readerGBK(o){return new Promise(function(a,s){var c=new FileReader;c.onload=function(){a(c.result)},c.onerror=s,c.readAsText(o,"GBK")})}function safeJsonParse(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(o)}catch(f){if(a)throw new ResponseError(s,"JSON.parse fail",o,c,"ParseError")}return o}function timeout2Throw(o,a,s){return new Promise(function(c,f){setTimeout(function(){f(new RequestError(a||"timeout of ".concat(o,"ms exceeded"),s,"Timeout"))},o)})}function cancel2Throw(o){return new Promise(function(a,s){o.cancelToken&&o.cancelToken.promise.then(function(c){s(c)})})}var toString$1=Object.prototype.toString;function getEnv(){var o;return typeof process!="undefined"&&toString$1.call(process)==="[object process]"&&(o="NODE"),typeof XMLHttpRequest!="undefined"&&(o="BROWSER"),o}function isArray$1(o){return _typeof$2(o)==="object"&&Object.prototype.toString.call(o)==="[object Array]"}function isURLSearchParams$1(o){return typeof URLSearchParams!="undefined"&&o instanceof URLSearchParams}function isDate$1(o){return _typeof$2(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function isObject$1(o){return o!==null&&_typeof$2(o)==="object"}function forEach2ObjArr(o,a){if(o)if(_typeof$2(o)!=="object"&&(o=[o]),isArray$1(o))for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},c=s.prefix,f=s.suffix;return c&&(a="".concat(c).concat(a)),f&&(a="".concat(a).concat(f)),{url:a,options:s}},warnedCoreType=!1;function __defaultValidateCache(o,a){var s=a.method,c=s===void 0?"get":s;return c.toLowerCase()==="get"}function fetchMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=s.url,y=d===void 0?"":d,_=o.cache,S=o.responseInterceptors,b=f.timeout,$=b===void 0?0:b,P=f.timeoutMessage,T=f.__umiRequestCoreType__,C=T===void 0?"normal":T,O=f.useCache,A=O===void 0?!1:O,M=f.method,j=M===void 0?"get":M,L=f.params,F=f.ttl,I=f.validateCache,U=I===void 0?__defaultValidateCache:I;if(C!=="normal")return process&&process.env,a();var z=fetch;if(!z)throw new Error("Global fetch not exist!");var H=getEnv()==="BROWSER",G=U(y,f)&&A&&H;if(G){var X=_.get({url:y,params:L,method:j});if(X)return X=X.clone(),X.useCache=!0,o.res=X,a()}var W;return $>0?W=Promise.race([cancel2Throw(f),z(y,f),timeout2Throw($,P,o.req)]):W=Promise.race([cancel2Throw(f),z(y,f)]),S.forEach(function(K){W=W.then(function(ie){var ee=typeof ie.clone=="function"?ie.clone():ie;return K(ee,f)})}),W.then(function(K){if(G&&K.status===200){var ie=K.clone();ie.useCache=!0,_.set({url:y,params:L,method:j},ie,F)}return o.res=K,a()})}function parseResponseMiddleware(o,a){var s;return a().then(function(){if(o){var c=o.res,f=c===void 0?{}:c,d=o.req,y=d===void 0?{}:d,_=y||{},S=_.options;S=S===void 0?{}:S;var b=S.responseType,$=b===void 0?"json":b,P=S.charset,T=P===void 0?"utf8":P;S.getResponse;var C=S.throwErrIfParseFail,O=C===void 0?!1:C,A=S.parseResponse,M=A===void 0?!0:A;if(M&&!(!f||!f.clone)){if(s=getEnv()==="BROWSER"?f.clone():f,s.useCache=f.useCache||!1,T==="gbk")try{return f.blob().then(readerGBK).then(function(j){return safeJsonParse(j,!1,s,y)})}catch(j){throw new ResponseError(s,j.message,null,y,"ParseError")}else if($==="json")return f.text().then(function(j){return safeJsonParse(j,O,s,y)});try{return f[$]()}catch(j){throw new ResponseError(s,"responseType not support",null,y,"ParseError")}}}}).then(function(c){if(o){o.res;var f=o.req,d=f===void 0?{}:f,y=d||{},_=y.options;_=_===void 0?{}:_;var S=_.getResponse,b=S===void 0?!1:S;if(s){if(s.status>=200&&s.status<300){if(b){o.res={data:c,response:s};return}o.res=c;return}throw new ResponseError(s,"http error",c,d,"HttpError")}}}).catch(function(c){if(c instanceof RequestError||c instanceof ResponseError)throw c;var f=o.req,d=o.res;throw c.request=c.request||f,c.response=c.response||d,c.type=c.type||c.name,c.data=c.data||void 0,c})}function simplePostMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=f.method,y=d===void 0?"get":d;if(["post","put","patch","delete"].indexOf(y.toLowerCase())===-1)return a();var _=f.requestType,S=_===void 0?"json":_,b=f.data;if(b){var $=Object.prototype.toString.call(b);$==="[object Object]"||$==="[object Array]"?S==="json"?(f.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},f.headers),f.body=JSON.stringify(b)):S==="form"&&(f.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},f.headers),f.body=reqStringify(b)):(f.headers=_objectSpread2({Accept:"application/json"},f.headers),f.body=b)}return o.req.options=f,a()}function paramsSerialize(o,a){var s,c;if(o)if(a)s=a(o);else if(isURLSearchParams$1(o))s=o.toString();else if(isArray$1(o))c=[],forEach2ObjArr(o,function(d){d===null||typeof d=="undefined"?c.push(d):c.push(isObject$1(d)?JSON.stringify(d):d)}),s=reqStringify(c);else{c={},forEach2ObjArr(o,function(d,y){var _=d;d===null||typeof d=="undefined"?c[y]=d:isDate$1(d)?_=d.toISOString():isArray$1(d)?_=d:isObject$1(d)&&(_=JSON.stringify(d)),c[y]=_});var f=reqStringify(c);s=f}return s}function simpleGetMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=f.paramsSerializer,y=f.params,_=o.req;_=_===void 0?{}:_;var S=_.url,b=S===void 0?"":S;f.method=f.method?f.method.toUpperCase():"GET",f.credentials=f.credentials||"same-origin";var $=paramsSerialize(y,d);if(o.req.originUrl=b,$){var P=b.indexOf("?")!==-1?"&":"?";o.req.url="".concat(b).concat(P).concat($)}return o.req.options=f,a()}var globalMiddlewares=[simplePostMiddleware,simpleGetMiddleware,parseResponseMiddleware],coreMiddlewares=[fetchMiddleware];Onion.globalMiddlewares=globalMiddlewares;Onion.defaultGlobalMiddlewaresLength=globalMiddlewares.length;Onion.coreMiddlewares=coreMiddlewares;Onion.defaultCoreMiddlewaresLength=coreMiddlewares.length;var Core=function(){function o(a){_classCallCheck(this,o),this.onion=new Onion([]),this.fetchIndex=0,this.mapCache=new MapCache(a),this.initOptions=a,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return _createClass(o,[{key:"use",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(s,c),this}},{key:"extendOptions",value:function(s){this.initOptions=mergeRequestOptions(this.initOptions,s),this.mapCache.extendOptions(s)}},{key:"dealRequestInterceptors",value:function(s){var c=function(y,_){return y.then(function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return s.req.url=S.url||s.req.url,s.req.options=S.options||s.req.options,_(s.req.url,s.req.options)})},f=[].concat(_toConsumableArray$1(o.requestInterceptors),_toConsumableArray$1(this.instanceRequestInterceptors));return f.reduce(c,Promise.resolve()).then(function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return s.req.url=d.url||s.req.url,s.req.options=d.options||s.req.options,Promise.resolve()})}},{key:"request",value:function(s,c){var f=this,d=this.onion,y={req:{url:s,options:_objectSpread2(_objectSpread2({},c),{},{url:s})},res:null,cache:this.mapCache,responseInterceptors:[].concat(_toConsumableArray$1(o.responseInterceptors),_toConsumableArray$1(this.instanceResponseInterceptors))};if(typeof s!="string")throw new Error("url MUST be a string");return new Promise(function(_,S){f.dealRequestInterceptors(y).then(function(){return d.execute(y)}).then(function(){_(y.res)}).catch(function(b){var $=y.req.options.errorHandler;if($)try{var P=$(b);_(P)}catch(T){S(T)}else S(b)})})}}],[{key:"requestUse",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof s!="function")throw new TypeError("Interceptor must be function!");c.global?o.requestInterceptors.push(s):this.instanceRequestInterceptors.push(s)}},{key:"responseUse",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof s!="function")throw new TypeError("Interceptor must be function!");c.global?o.responseInterceptors.push(s):this.instanceResponseInterceptors.push(s)}}]),o}();Core.requestInterceptors=[addfix];Core.responseInterceptors=[];function Cancel(o){this.message=o}Cancel.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};Cancel.prototype.__CANCEL__=!0;function CancelToken$2(o){if(typeof o!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(f){a=f});var s=this;o(function(f){s.reason||(s.reason=new Cancel(f),a(s.reason))})}CancelToken$2.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};CancelToken$2.source=function(){var a,s=new CancelToken$2(function(f){a=f});return{token:s,cancel:a}};function isCancel$1(o){return!!(o&&o.__CANCEL__)}var request=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=new Core(a),c=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=mergeRequestOptions(s.initOptions,_);return s.request(y,S)};c.use=s.use.bind(s),c.fetchIndex=s.fetchIndex,c.interceptors={request:{use:Core.requestUse.bind(s)},response:{use:Core.responseUse.bind(s)}};var f=["get","post","delete","put","patch","head","options","rpc"];return f.forEach(function(d){c[d]=function(y,_){return c(y,_objectSpread2(_objectSpread2({},_),{},{method:d}))}}),c.Cancel=Cancel,c.CancelToken=CancelToken$2,c.isCancel=isCancel$1,c.extendOptions=s.extendOptions.bind(s),c.middlewares={instance:s.onion.middlewares,defaultInstance:s.onion.defaultMiddlewares,global:Onion.globalMiddlewares,core:Onion.coreMiddlewares},c},extend$1=function(a){return request(a)};request({parseResponse:!1});request({});var ResultEnum=(o=>(o[o.SUCCESS=0]="SUCCESS",o[o.ERROR=-1]="ERROR",o[o.TIMEOUT=401]="TIMEOUT",o.TYPE="success",o))(ResultEnum||{}),RequestEnum=(o=>(o.GET="GET",o.POST="POST",o.PUT="PUT",o.DELETE="DELETE",o))(RequestEnum||{}),ContentTypeEnum=(o=>(o.JSON="application/json;charset=UTF-8",o.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",o.FORM_DATA="multipart/form-data;charset=UTF-8",o))(ContentTypeEnum||{}),StorageEnum=(o=>(o.Token="token",o))(StorageEnum||{});function bind(o,a){return function(){return o.apply(a,arguments)}}const{toString}=Object.prototype,{getPrototypeOf:getPrototypeOf$1}=Object,kindOf=(o=>a=>{const s=toString.call(a);return o[s]||(o[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=o=>(o=o.toLowerCase(),a=>kindOf(a)===o),typeOfTest=o=>a=>typeof a===o,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(o){return o!==null&&!isUndefined(o)&&o.constructor!==null&&!isUndefined(o.constructor)&&isFunction(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(o){let a;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?a=ArrayBuffer.isView(o):a=o&&o.buffer&&isArrayBuffer(o.buffer),a}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=o=>o!==null&&typeof o=="object",isBoolean$1=o=>o===!0||o===!1,isPlainObject$3=o=>{if(kindOf(o)!=="object")return!1;const a=getPrototypeOf$1(o);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in o)&&!(Symbol.iterator in o)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=o=>isObject(o)&&isFunction(o.pipe),isFormData=o=>{let a;return o&&(typeof FormData=="function"&&o instanceof FormData||isFunction(o.append)&&((a=kindOf(o))==="formdata"||a==="object"&&isFunction(o.toString)&&o.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(o,a,{allOwnKeys:s=!1}={}){if(o===null||typeof o=="undefined")return;let c,f;if(typeof o!="object"&&(o=[o]),isArray(o))for(c=0,f=o.length;c0;)if(f=s[c],a===f.toLowerCase())return f;return null}const _global=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),isContextDefined=o=>!isUndefined(o)&&o!==_global;function merge(){const{caseless:o}=isContextDefined(this)&&this||{},a={},s=(c,f)=>{const d=o&&findKey(a,f)||f;isPlainObject$3(a[d])&&isPlainObject$3(c)?a[d]=merge(a[d],c):isPlainObject$3(c)?a[d]=merge({},c):isArray(c)?a[d]=c.slice():a[d]=c};for(let c=0,f=arguments.length;c(forEach(a,(f,d)=>{s&&isFunction(f)?o[d]=bind(f,s):o[d]=f},{allOwnKeys:c}),o),stripBOM=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),inherits=(o,a,s,c)=>{o.prototype=Object.create(a.prototype,c),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:a.prototype}),s&&Object.assign(o.prototype,s)},toFlatObject=(o,a,s,c)=>{let f,d,y;const _={};if(a=a||{},o==null)return a;do{for(f=Object.getOwnPropertyNames(o),d=f.length;d-- >0;)y=f[d],(!c||c(y,o,a))&&!_[y]&&(a[y]=o[y],_[y]=!0);o=s!==!1&&getPrototypeOf$1(o)}while(o&&(!s||s(o,a))&&o!==Object.prototype);return a},endsWith=(o,a,s)=>{o=String(o),(s===void 0||s>o.length)&&(s=o.length),s-=a.length;const c=o.indexOf(a,s);return c!==-1&&c===s},toArray=o=>{if(!o)return null;if(isArray(o))return o;let a=o.length;if(!isNumber(a))return null;const s=new Array(a);for(;a-- >0;)s[a]=o[a];return s},isTypedArray=(o=>a=>o&&a instanceof o)(typeof Uint8Array!="undefined"&&getPrototypeOf$1(Uint8Array)),forEachEntry=(o,a)=>{const c=(o&&o[Symbol.iterator]).call(o);let f;for(;(f=c.next())&&!f.done;){const d=f.value;a.call(o,d[0],d[1])}},matchAll=(o,a)=>{let s;const c=[];for(;(s=o.exec(a))!==null;)c.push(s);return c},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,c,f){return c.toUpperCase()+f}),hasOwnProperty=(({hasOwnProperty:o})=>(a,s)=>o.call(a,s))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(o,a)=>{const s=Object.getOwnPropertyDescriptors(o),c={};forEach(s,(f,d)=>{let y;(y=a(f,d,o))!==!1&&(c[d]=y||f)}),Object.defineProperties(o,c)},freezeMethods=o=>{reduceDescriptors(o,(a,s)=>{if(isFunction(o)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const c=o[s];if(isFunction(c)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},toObjectSet=(o,a)=>{const s={},c=f=>{f.forEach(d=>{s[d]=!0})};return isArray(o)?c(o):c(String(o).split(a)),s},noop$2=()=>{},toFiniteNumber=(o,a)=>(o=+o,Number.isFinite(o)?o:a),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(o=16,a=ALPHABET.ALPHA_DIGIT)=>{let s="";const{length:c}=a;for(;o--;)s+=a[Math.random()*c|0];return s};function isSpecCompliantForm(o){return!!(o&&isFunction(o.append)&&o[Symbol.toStringTag]==="FormData"&&o[Symbol.iterator])}const toJSONObject=o=>{const a=new Array(10),s=(c,f)=>{if(isObject(c)){if(a.indexOf(c)>=0)return;if(!("toJSON"in c)){a[f]=c;const d=isArray(c)?[]:{};return forEach(c,(y,_)=>{const S=s(y,f+1);!isUndefined(S)&&(d[_]=S)}),a[f]=void 0,d}}return c};return s(o,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable$1=o=>o&&(isObject(o)||isFunction(o))&&isFunction(o.then)&&isFunction(o.catch),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean:isBoolean$1,isObject,isPlainObject:isPlainObject$3,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$2,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable:isThenable$1};function AxiosError(o,a,s,c,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",a&&(this.code=a),s&&(this.config=s),c&&(this.request=c),f&&(this.response=f)}utils$1.inherits(AxiosError,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:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["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(o=>{descriptors[o]={value:o}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(o,a,s,c,f,d)=>{const y=Object.create(prototype$1);return utils$1.toFlatObject(o,y,function(S){return S!==Error.prototype},_=>_!=="isAxiosError"),AxiosError.call(y,o.message,a,s,c,f),y.cause=o,y.name=o.name,d&&Object.assign(y,d),y};const httpAdapter=null;function isVisitable(o){return utils$1.isPlainObject(o)||utils$1.isArray(o)}function removeBrackets(o){return utils$1.endsWith(o,"[]")?o.slice(0,-2):o}function renderKey(o,a,s){return o?o.concat(a).map(function(f,d){return f=removeBrackets(f),!s&&d?"["+f+"]":f}).join(s?".":""):a}function isFlatArray(o){return utils$1.isArray(o)&&!o.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(a){return/^is[A-Z]/.test(a)});function toFormData(o,a,s){if(!utils$1.isObject(o))throw new TypeError("target must be an object");a=a||new FormData,s=utils$1.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,M){return!utils$1.isUndefined(M[A])});const c=s.metaTokens,f=s.visitor||$,d=s.dots,y=s.indexes,S=(s.Blob||typeof Blob!="undefined"&&Blob)&&utils$1.isSpecCompliantForm(a);if(!utils$1.isFunction(f))throw new TypeError("visitor must be a function");function b(O){if(O===null)return"";if(utils$1.isDate(O))return O.toISOString();if(!S&&utils$1.isBlob(O))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(O)||utils$1.isTypedArray(O)?S&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function $(O,A,M){let j=O;if(O&&!M&&typeof O=="object"){if(utils$1.endsWith(A,"{}"))A=c?A:A.slice(0,-2),O=JSON.stringify(O);else if(utils$1.isArray(O)&&isFlatArray(O)||(utils$1.isFileList(O)||utils$1.endsWith(A,"[]"))&&(j=utils$1.toArray(O)))return A=removeBrackets(A),j.forEach(function(F,I){!(utils$1.isUndefined(F)||F===null)&&a.append(y===!0?renderKey([A],I,d):y===null?A:A+"[]",b(F))}),!1}return isVisitable(O)?!0:(a.append(renderKey(M,A,d),b(O)),!1)}const P=[],T=Object.assign(predicates,{defaultVisitor:$,convertValue:b,isVisitable});function C(O,A){if(!utils$1.isUndefined(O)){if(P.indexOf(O)!==-1)throw Error("Circular reference detected in "+A.join("."));P.push(O),utils$1.forEach(O,function(j,L){(!(utils$1.isUndefined(j)||j===null)&&f.call(a,j,utils$1.isString(L)?L.trim():L,A,T))===!0&&C(j,A?A.concat(L):[L])}),P.pop()}}if(!utils$1.isObject(o))throw new TypeError("data must be an object");return C(o),a}function encode$1(o){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(c){return a[c]})}function AxiosURLSearchParams(o,a){this._pairs=[],o&&toFormData(o,this,a)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(a,s){this._pairs.push([a,s])};prototype.toString=function(a){const s=a?function(c){return a.call(this,c,encode$1)}:encode$1;return this._pairs.map(function(f){return s(f[0])+"="+s(f[1])},"").join("&")};function encode(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(o,a,s){if(!a)return o;const c=s&&s.encode||encode,f=s&&s.serialize;let d;if(f?d=f(a,s):d=utils$1.isURLSearchParams(a)?a.toString():new AxiosURLSearchParams(a,s).toString(c),d){const y=o.indexOf("#");y!==-1&&(o=o.slice(0,y)),o+=(o.indexOf("?")===-1?"?":"&")+d}return o}class InterceptorManager{constructor(){this.handlers=[]}use(a,s,c){return this.handlers.push({fulfilled:a,rejected:s,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){utils$1.forEach(this.handlers,function(c){c!==null&&a(c)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams!="undefined"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData!="undefined"?FormData:null,Blob$1=typeof Blob!="undefined"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window!="undefined"&&typeof document!="undefined",hasStandardBrowserEnv=(o=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(o)<0)(typeof navigator!="undefined"&&navigator.product),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"})),platform=se(se({},utils),platform$1);function toURLEncodedForm(o,a){return toFormData(o,new platform.classes.URLSearchParams,Object.assign({visitor:function(s,c,f,d){return platform.isNode&&utils$1.isBuffer(s)?(this.append(c,s.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},a))}function parsePropPath(o){return utils$1.matchAll(/\w+|\[(\w*)]/g,o).map(a=>a[0]==="[]"?"":a[1]||a[0])}function arrayToObject(o){const a={},s=Object.keys(o);let c;const f=s.length;let d;for(c=0;c=s.length;return y=!y&&utils$1.isArray(f)?f.length:y,S?(utils$1.hasOwnProp(f,y)?f[y]=[f[y],c]:f[y]=c,!_):((!f[y]||!utils$1.isObject(f[y]))&&(f[y]=[]),a(s,c,f[y],d)&&utils$1.isArray(f[y])&&(f[y]=arrayToObject(f[y])),!_)}if(utils$1.isFormData(o)&&utils$1.isFunction(o.entries)){const s={};return utils$1.forEachEntry(o,(c,f)=>{a(parsePropPath(c),f,s,0)}),s}return null}function stringifySafely(o,a,s){if(utils$1.isString(o))try{return(a||JSON.parse)(o),utils$1.trim(o)}catch(c){if(c.name!=="SyntaxError")throw c}return(s||JSON.stringify)(o)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(a,s){const c=s.getContentType()||"",f=c.indexOf("application/json")>-1,d=utils$1.isObject(a);if(d&&utils$1.isHTMLForm(a)&&(a=new FormData(a)),utils$1.isFormData(a))return f&&f?JSON.stringify(formDataToJSON(a)):a;if(utils$1.isArrayBuffer(a)||utils$1.isBuffer(a)||utils$1.isStream(a)||utils$1.isFile(a)||utils$1.isBlob(a))return a;if(utils$1.isArrayBufferView(a))return a.buffer;if(utils$1.isURLSearchParams(a))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let _;if(d){if(c.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(a,this.formSerializer).toString();if((_=utils$1.isFileList(a))||c.indexOf("multipart/form-data")>-1){const S=this.env&&this.env.FormData;return toFormData(_?{"files[]":a}:a,S&&new S,this.formSerializer)}}return d||f?(s.setContentType("application/json",!1),stringifySafely(a)):a}],transformResponse:[function(a){const s=this.transitional||defaults.transitional,c=s&&s.forcedJSONParsing,f=this.responseType==="json";if(a&&utils$1.isString(a)&&(c&&!this.responseType||f)){const y=!(s&&s.silentJSONParsing)&&f;try{return JSON.parse(a)}catch(_){if(y)throw _.name==="SyntaxError"?AxiosError.from(_,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):_}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],o=>{defaults.headers[o]={}});const defaults$1=defaults,ignoreDuplicateOf=utils$1.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"]),parseHeaders=o=>{const a={};let s,c,f;return o&&o.split(` `).forEach(function(y){f=y.indexOf(":"),s=y.substring(0,f).trim().toLowerCase(),c=y.substring(f+1).trim(),!(!s||a[s]&&ignoreDuplicateOf[s])&&(s==="set-cookie"?a[s]?a[s].push(c):a[s]=[c]:a[s]=a[s]?a[s]+", "+c:c)}),a},$internals=Symbol("internals");function normalizeHeader(o){return o&&String(o).trim().toLowerCase()}function normalizeValue(o){return o===!1||o==null?o:utils$1.isArray(o)?o.map(normalizeValue):String(o)}function parseTokens(o){const a=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=s.exec(o);)a[c[1]]=c[2];return a}const isValidHeaderName=o=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function matchHeaderValue(o,a,s,c,f){if(utils$1.isFunction(c))return c.call(this,a,s);if(f&&(a=s),!!utils$1.isString(a)){if(utils$1.isString(c))return a.indexOf(c)!==-1;if(utils$1.isRegExp(c))return c.test(a)}}function formatHeader(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,s,c)=>s.toUpperCase()+c)}function buildAccessors(o,a){const s=utils$1.toCamelCase(" "+a);["get","set","has"].forEach(c=>{Object.defineProperty(o,c+s,{value:function(f,d,y){return this[c].call(this,a,f,d,y)},configurable:!0})})}class AxiosHeaders{constructor(a){a&&this.set(a)}set(a,s,c){const f=this;function d(_,S,b){const $=normalizeHeader(S);if(!$)throw new Error("header name must be a non-empty string");const P=utils$1.findKey(f,$);(!P||f[P]===void 0||b===!0||b===void 0&&f[P]!==!1)&&(f[P||S]=normalizeValue(_))}const y=(_,S)=>utils$1.forEach(_,(b,$)=>d(b,$,S));return utils$1.isPlainObject(a)||a instanceof this.constructor?y(a,s):utils$1.isString(a)&&(a=a.trim())&&!isValidHeaderName(a)?y(parseHeaders(a),s):a!=null&&d(s,a,c),this}get(a,s){if(a=normalizeHeader(a),a){const c=utils$1.findKey(this,a);if(c){const f=this[c];if(!s)return f;if(s===!0)return parseTokens(f);if(utils$1.isFunction(s))return s.call(this,f,c);if(utils$1.isRegExp(s))return s.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,s){if(a=normalizeHeader(a),a){const c=utils$1.findKey(this,a);return!!(c&&this[c]!==void 0&&(!s||matchHeaderValue(this,this[c],c,s)))}return!1}delete(a,s){const c=this;let f=!1;function d(y){if(y=normalizeHeader(y),y){const _=utils$1.findKey(c,y);_&&(!s||matchHeaderValue(c,c[_],_,s))&&(delete c[_],f=!0)}}return utils$1.isArray(a)?a.forEach(d):d(a),f}clear(a){const s=Object.keys(this);let c=s.length,f=!1;for(;c--;){const d=s[c];(!a||matchHeaderValue(this,this[d],d,a,!0))&&(delete this[d],f=!0)}return f}normalize(a){const s=this,c={};return utils$1.forEach(this,(f,d)=>{const y=utils$1.findKey(c,d);if(y){s[y]=normalizeValue(f),delete s[d];return}const _=a?formatHeader(d):String(d).trim();_!==d&&delete s[d],s[_]=normalizeValue(f),c[_]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const s=Object.create(null);return utils$1.forEach(this,(c,f)=>{c!=null&&c!==!1&&(s[f]=a&&utils$1.isArray(c)?c.join(", "):c)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,s])=>a+": "+s).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...s){const c=new this(a);return s.forEach(f=>c.set(f)),c}static accessor(a){const c=(this[$internals]=this[$internals]={accessors:{}}).accessors,f=this.prototype;function d(y){const _=normalizeHeader(y);c[_]||(buildAccessors(f,y),c[_]=!0)}return utils$1.isArray(a)?a.forEach(d):d(a),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:o},a)=>{let s=a[0].toUpperCase()+a.slice(1);return{get:()=>o,set(c){this[s]=c}}});utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(o,a){const s=this||defaults$1,c=a||s,f=AxiosHeaders$1.from(c.headers);let d=c.data;return utils$1.forEach(o,function(_){d=_.call(s,d,f.normalize(),a?a.status:void 0)}),f.normalize(),d}function isCancel(o){return!!(o&&o.__CANCEL__)}function CanceledError(o,a,s){AxiosError.call(this,o==null?"canceled":o,AxiosError.ERR_CANCELED,a,s),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(o,a,s){const c=s.config.validateStatus;!s.status||!c||c(s.status)?o(s):a(new AxiosError("Request failed with status code "+s.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}const cookies=platform.hasStandardBrowserEnv?{write(o,a,s,c,f,d){const y=[o+"="+encodeURIComponent(a)];utils$1.isNumber(s)&&y.push("expires="+new Date(s).toGMTString()),utils$1.isString(c)&&y.push("path="+c),utils$1.isString(f)&&y.push("domain="+f),d===!0&&y.push("secure"),document.cookie=y.join("; ")},read(o){const a=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function combineURLs(o,a){return a?o.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):o}function buildFullPath(o,a){return o&&!isAbsoluteURL(a)?combineURLs(o,a):a}const isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let c;function f(d){let y=d;return a&&(s.setAttribute("href",y),y=s.href),s.setAttribute("href",y),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return c=f(window.location.href),function(y){const _=utils$1.isString(y)?f(y):y;return _.protocol===c.protocol&&_.host===c.host}}():function(){return function(){return!0}}();function parseProtocol(o){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return a&&a[1]||""}function speedometer(o,a){o=o||10;const s=new Array(o),c=new Array(o);let f=0,d=0,y;return a=a!==void 0?a:1e3,function(S){const b=Date.now(),$=c[d];y||(y=b),s[f]=S,c[f]=b;let P=d,T=0;for(;P!==f;)T+=s[P++],P=P%o;if(f=(f+1)%o,f===d&&(d=(d+1)%o),b-y{const d=f.loaded,y=f.lengthComputable?f.total:void 0,_=d-s,S=c(_),b=d<=y;s=d;const $={loaded:d,total:y,progress:y?d/y:void 0,bytes:_,rate:S||void 0,estimated:S&&y&&b?(y-d)/S:void 0,event:f};$[a?"download":"upload"]=!0,o($)}}const isXHRAdapterSupported=typeof XMLHttpRequest!="undefined",xhrAdapter=isXHRAdapterSupported&&function(o){return new Promise(function(s,c){let f=o.data;const d=AxiosHeaders$1.from(o.headers).normalize();let{responseType:y,withXSRFToken:_}=o,S;function b(){o.cancelToken&&o.cancelToken.unsubscribe(S),o.signal&&o.signal.removeEventListener("abort",S)}let $;if(utils$1.isFormData(f)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)d.setContentType(!1);else if(($=d.getContentType())!==!1){const[A,...F]=$?$.split(";").map(j=>j.trim()).filter(Boolean):[];d.setContentType([A||"multipart/form-data",...F].join("; "))}}let P=new XMLHttpRequest;if(o.auth){const A=o.auth.username||"",F=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";d.set("Authorization","Basic "+btoa(A+":"+F))}const T=buildFullPath(o.baseURL,o.url);P.open(o.method.toUpperCase(),buildURL(T,o.params,o.paramsSerializer),!0),P.timeout=o.timeout;function C(){if(!P)return;const A=AxiosHeaders$1.from("getAllResponseHeaders"in P&&P.getAllResponseHeaders()),j={data:!y||y==="text"||y==="json"?P.responseText:P.response,status:P.status,statusText:P.statusText,headers:A,config:o,request:P};settle(function(M){s(M),b()},function(M){c(M),b()},j),P=null}if("onloadend"in P?P.onloadend=C:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(C)},P.onabort=function(){P&&(c(new AxiosError("Request aborted",AxiosError.ECONNABORTED,o,P)),P=null)},P.onerror=function(){c(new AxiosError("Network Error",AxiosError.ERR_NETWORK,o,P)),P=null},P.ontimeout=function(){let F=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||transitionalDefaults;o.timeoutErrorMessage&&(F=o.timeoutErrorMessage),c(new AxiosError(F,j.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,o,P)),P=null},platform.hasStandardBrowserEnv&&(_&&utils$1.isFunction(_)&&(_=_(o)),_||_!==!1&&isURLSameOrigin(T))){const A=o.xsrfHeaderName&&o.xsrfCookieName&&cookies.read(o.xsrfCookieName);A&&d.set(o.xsrfHeaderName,A)}f===void 0&&d.setContentType(null),"setRequestHeader"in P&&utils$1.forEach(d.toJSON(),function(F,j){P.setRequestHeader(j,F)}),utils$1.isUndefined(o.withCredentials)||(P.withCredentials=!!o.withCredentials),y&&y!=="json"&&(P.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&P.addEventListener("progress",progressEventReducer(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&P.upload&&P.upload.addEventListener("progress",progressEventReducer(o.onUploadProgress)),(o.cancelToken||o.signal)&&(S=A=>{P&&(c(!A||A.type?new CanceledError(null,o,P):A),P.abort(),P=null)},o.cancelToken&&o.cancelToken.subscribe(S),o.signal&&(o.signal.aborted?S():o.signal.addEventListener("abort",S)));const O=parseProtocol(T);if(O&&platform.protocols.indexOf(O)===-1){c(new AxiosError("Unsupported protocol "+O+":",AxiosError.ERR_BAD_REQUEST,o));return}P.send(f||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(o,a)=>{if(o){try{Object.defineProperty(o,"name",{value:a})}catch(s){}Object.defineProperty(o,"adapterName",{value:a})}});const renderReason=o=>`- ${o}`,isResolvedHandle=o=>utils$1.isFunction(o)||o===null||o===!1,adapters={getAdapter:o=>{o=utils$1.isArray(o)?o:[o];const{length:a}=o;let s,c;const f={};for(let d=0;d`adapter ${_} `+(S===!1?"is not supported by the environment":"is not available in the build"));let y=a?d.length>1?`since : +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...s){const c=new this(a);return s.forEach(f=>c.set(f)),c}static accessor(a){const c=(this[$internals]=this[$internals]={accessors:{}}).accessors,f=this.prototype;function d(y){const _=normalizeHeader(y);c[_]||(buildAccessors(f,y),c[_]=!0)}return utils$1.isArray(a)?a.forEach(d):d(a),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:o},a)=>{let s=a[0].toUpperCase()+a.slice(1);return{get:()=>o,set(c){this[s]=c}}});utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(o,a){const s=this||defaults$1,c=a||s,f=AxiosHeaders$1.from(c.headers);let d=c.data;return utils$1.forEach(o,function(_){d=_.call(s,d,f.normalize(),a?a.status:void 0)}),f.normalize(),d}function isCancel(o){return!!(o&&o.__CANCEL__)}function CanceledError(o,a,s){AxiosError.call(this,o==null?"canceled":o,AxiosError.ERR_CANCELED,a,s),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(o,a,s){const c=s.config.validateStatus;!s.status||!c||c(s.status)?o(s):a(new AxiosError("Request failed with status code "+s.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}const cookies=platform.hasStandardBrowserEnv?{write(o,a,s,c,f,d){const y=[o+"="+encodeURIComponent(a)];utils$1.isNumber(s)&&y.push("expires="+new Date(s).toGMTString()),utils$1.isString(c)&&y.push("path="+c),utils$1.isString(f)&&y.push("domain="+f),d===!0&&y.push("secure"),document.cookie=y.join("; ")},read(o){const a=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function combineURLs(o,a){return a?o.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):o}function buildFullPath(o,a){return o&&!isAbsoluteURL(a)?combineURLs(o,a):a}const isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let c;function f(d){let y=d;return a&&(s.setAttribute("href",y),y=s.href),s.setAttribute("href",y),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return c=f(window.location.href),function(y){const _=utils$1.isString(y)?f(y):y;return _.protocol===c.protocol&&_.host===c.host}}():function(){return function(){return!0}}();function parseProtocol(o){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return a&&a[1]||""}function speedometer(o,a){o=o||10;const s=new Array(o),c=new Array(o);let f=0,d=0,y;return a=a!==void 0?a:1e3,function(S){const b=Date.now(),$=c[d];y||(y=b),s[f]=S,c[f]=b;let P=d,T=0;for(;P!==f;)T+=s[P++],P=P%o;if(f=(f+1)%o,f===d&&(d=(d+1)%o),b-y{const d=f.loaded,y=f.lengthComputable?f.total:void 0,_=d-s,S=c(_),b=d<=y;s=d;const $={loaded:d,total:y,progress:y?d/y:void 0,bytes:_,rate:S||void 0,estimated:S&&y&&b?(y-d)/S:void 0,event:f};$[a?"download":"upload"]=!0,o($)}}const isXHRAdapterSupported=typeof XMLHttpRequest!="undefined",xhrAdapter=isXHRAdapterSupported&&function(o){return new Promise(function(s,c){let f=o.data;const d=AxiosHeaders$1.from(o.headers).normalize();let{responseType:y,withXSRFToken:_}=o,S;function b(){o.cancelToken&&o.cancelToken.unsubscribe(S),o.signal&&o.signal.removeEventListener("abort",S)}let $;if(utils$1.isFormData(f)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)d.setContentType(!1);else if(($=d.getContentType())!==!1){const[A,...M]=$?$.split(";").map(j=>j.trim()).filter(Boolean):[];d.setContentType([A||"multipart/form-data",...M].join("; "))}}let P=new XMLHttpRequest;if(o.auth){const A=o.auth.username||"",M=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";d.set("Authorization","Basic "+btoa(A+":"+M))}const T=buildFullPath(o.baseURL,o.url);P.open(o.method.toUpperCase(),buildURL(T,o.params,o.paramsSerializer),!0),P.timeout=o.timeout;function C(){if(!P)return;const A=AxiosHeaders$1.from("getAllResponseHeaders"in P&&P.getAllResponseHeaders()),j={data:!y||y==="text"||y==="json"?P.responseText:P.response,status:P.status,statusText:P.statusText,headers:A,config:o,request:P};settle(function(F){s(F),b()},function(F){c(F),b()},j),P=null}if("onloadend"in P?P.onloadend=C:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(C)},P.onabort=function(){P&&(c(new AxiosError("Request aborted",AxiosError.ECONNABORTED,o,P)),P=null)},P.onerror=function(){c(new AxiosError("Network Error",AxiosError.ERR_NETWORK,o,P)),P=null},P.ontimeout=function(){let M=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||transitionalDefaults;o.timeoutErrorMessage&&(M=o.timeoutErrorMessage),c(new AxiosError(M,j.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,o,P)),P=null},platform.hasStandardBrowserEnv&&(_&&utils$1.isFunction(_)&&(_=_(o)),_||_!==!1&&isURLSameOrigin(T))){const A=o.xsrfHeaderName&&o.xsrfCookieName&&cookies.read(o.xsrfCookieName);A&&d.set(o.xsrfHeaderName,A)}f===void 0&&d.setContentType(null),"setRequestHeader"in P&&utils$1.forEach(d.toJSON(),function(M,j){P.setRequestHeader(j,M)}),utils$1.isUndefined(o.withCredentials)||(P.withCredentials=!!o.withCredentials),y&&y!=="json"&&(P.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&P.addEventListener("progress",progressEventReducer(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&P.upload&&P.upload.addEventListener("progress",progressEventReducer(o.onUploadProgress)),(o.cancelToken||o.signal)&&(S=A=>{P&&(c(!A||A.type?new CanceledError(null,o,P):A),P.abort(),P=null)},o.cancelToken&&o.cancelToken.subscribe(S),o.signal&&(o.signal.aborted?S():o.signal.addEventListener("abort",S)));const O=parseProtocol(T);if(O&&platform.protocols.indexOf(O)===-1){c(new AxiosError("Unsupported protocol "+O+":",AxiosError.ERR_BAD_REQUEST,o));return}P.send(f||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(o,a)=>{if(o){try{Object.defineProperty(o,"name",{value:a})}catch(s){}Object.defineProperty(o,"adapterName",{value:a})}});const renderReason=o=>`- ${o}`,isResolvedHandle=o=>utils$1.isFunction(o)||o===null||o===!1,adapters={getAdapter:o=>{o=utils$1.isArray(o)?o:[o];const{length:a}=o;let s,c;const f={};for(let d=0;d`adapter ${_} `+(S===!1?"is not supported by the environment":"is not available in the build"));let y=a?d.length>1?`since : `+d.map(renderReason).join(` -`):" "+renderReason(d[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return c},adapters:knownAdapters};function throwIfCancellationRequested(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new CanceledError(null,o)}function dispatchRequest(o){return throwIfCancellationRequested(o),o.headers=AxiosHeaders$1.from(o.headers),o.data=transformData.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(o.adapter||defaults$1.adapter)(o).then(function(c){return throwIfCancellationRequested(o),c.data=transformData.call(o,o.transformResponse,c),c.headers=AxiosHeaders$1.from(c.headers),c},function(c){return isCancel(c)||(throwIfCancellationRequested(o),c&&c.response&&(c.response.data=transformData.call(o,o.transformResponse,c.response),c.response.headers=AxiosHeaders$1.from(c.response.headers))),Promise.reject(c)})}const headersToObject=o=>o instanceof AxiosHeaders$1?o.toJSON():o;function mergeConfig(o,a){a=a||{};const s={};function c(b,$,P){return utils$1.isPlainObject(b)&&utils$1.isPlainObject($)?utils$1.merge.call({caseless:P},b,$):utils$1.isPlainObject($)?utils$1.merge({},$):utils$1.isArray($)?$.slice():$}function f(b,$,P){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b,P)}else return c(b,$,P)}function d(b,$){if(!utils$1.isUndefined($))return c(void 0,$)}function y(b,$){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b)}else return c(void 0,$)}function _(b,$,P){if(P in a)return c(b,$);if(P in o)return c(void 0,b)}const S={url:d,method:d,data:d,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:_,headers:(b,$)=>f(headersToObject(b),headersToObject($),!0)};return utils$1.forEach(Object.keys(Object.assign({},o,a)),function($){const P=S[$]||f,T=P(o[$],a[$],$);utils$1.isUndefined(T)&&P!==_||(s[$]=T)}),s}const VERSION="1.6.5",validators$1={};["object","boolean","number","function","string","symbol"].forEach((o,a)=>{validators$1[o]=function(c){return typeof c===o||"a"+(a<1?"n ":" ")+o}});const deprecatedWarnings={};validators$1.transitional=function(a,s,c){function f(d,y){return"[Axios v"+VERSION+"] Transitional option '"+d+"'"+y+(c?". "+c:"")}return(d,y,_)=>{if(a===!1)throw new AxiosError(f(y," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[y]&&(deprecatedWarnings[y]=!0),a?a(d,y,_):!0}};function assertOptions(o,a,s){if(typeof o!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const c=Object.keys(o);let f=c.length;for(;f-- >0;){const d=c[f],y=a[d];if(y){const _=o[d],S=_===void 0||y(_,d,o);if(S!==!0)throw new AxiosError("option "+d+" must be "+S,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+d,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(a){this.defaults=a,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=mergeConfig(this.defaults,s);const{transitional:c,paramsSerializer:f,headers:d}=s;c!==void 0&&validator.assertOptions(c,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),f!=null&&(utils$1.isFunction(f)?s.paramsSerializer={serialize:f}:validator.assertOptions(f,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let y=d&&utils$1.merge(d.common,d[s.method]);d&&utils$1.forEach(["delete","get","head","post","put","patch","common"],O=>{delete d[O]}),s.headers=AxiosHeaders$1.concat(y,d);const _=[];let S=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(s)===!1||(S=S&&A.synchronous,_.unshift(A.fulfilled,A.rejected))});const b=[];this.interceptors.response.forEach(function(A){b.push(A.fulfilled,A.rejected)});let $,P=0,T;if(!S){const O=[dispatchRequest.bind(this),void 0];for(O.unshift.apply(O,_),O.push.apply(O,b),T=O.length,$=Promise.resolve(s);P{if(!c._listeners)return;let d=c._listeners.length;for(;d-- >0;)c._listeners[d](f);c._listeners=null}),this.promise.then=f=>{let d;const y=new Promise(_=>{c.subscribe(_),d=_}).then(f);return y.cancel=function(){c.unsubscribe(d)},y},a(function(d,y,_){c.reason||(c.reason=new CanceledError(d,y,_),s(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}static source(){let a;return{token:new CancelToken(function(f){a=f}),cancel:a}}}const CancelToken$1=CancelToken;function spread(o){return function(s){return o.apply(null,s)}}function isAxiosError(o){return utils$1.isObject(o)&&o.isAxiosError===!0}const HttpStatusCode={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(HttpStatusCode).forEach(([o,a])=>{HttpStatusCode[a]=o});const HttpStatusCode$1=HttpStatusCode;function createInstance(o){const a=new Axios$1(o),s=bind(Axios$1.prototype.request,a);return utils$1.extend(s,Axios$1.prototype,a,{allOwnKeys:!0}),utils$1.extend(s,a,null,{allOwnKeys:!0}),s.create=function(f){return createInstance(mergeConfig(o,f))},s}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(a){return Promise.all(a)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=o=>formDataToJSON(utils$1.isHTMLForm(o)?new FormData(o):o);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios,pendingMap=new Map;class AxiosCanceler{addPending(a){this.removePending(a);const s=getPendingUrl(a),c=new AbortController;a.signal=a.signal||c.signal,pendingMap.has(s)||pendingMap.set(s,c)}removePending(a){const s=getPendingUrl(a);if(pendingMap.has(s)){const c=pendingMap.get(s);c&&c.abort(s),pendingMap.delete(s)}}reset(){pendingMap.clear()}removeAllPending(){pendingMap.forEach(a=>{a&&a.abort()}),this.reset()}}function getPendingUrl(o){return[o.method,o.url].join("&")}class GAxios{constructor(a){tr(this,"axiosInstance");tr(this,"options");this.options=a,this.axiosInstance=axios$1.create(a),this.setupInterceptors()}createAxios(a){this.axiosInstance=axios$1.create(a)}getTransform(){const{transform:a}=this.options;return a}getAxios(){return this.axiosInstance}configAxios(a){this.axiosInstance&&this.createAxios(a)}setHeader(a){this.axiosInstance&&Object.assign(this.axiosInstance.defaults.headers,a)}setupInterceptors(){const{axiosInstance:a,options:{transform:s}}=this;if(!s)return;const{requestInterceptors:c,requestInterceptorsCatch:f,responseInterceptors:d,responseInterceptorsCatch:y}=s,_=new AxiosCanceler;this.axiosInstance.interceptors.request.use(S=>{var P,T;const b=(P=S.requestOptions)!=null?P:this.options.requestOptions;return!((T=b==null?void 0:b.ignoreCancelToken)!=null?T:!0)&&_.addPending(S),c&&isFunction$2(c)&&(S=c(S,this.options)),S},void 0),f&&isFunction$2(f)&&this.axiosInstance.interceptors.request.use(void 0,f),this.axiosInstance.interceptors.response.use(S=>(S&&_.removePending(S.config),d&&isFunction$2(d)&&(S=d(S)),S),void 0),y&&isFunction$2(y)&&this.axiosInstance.interceptors.response.use(void 0,S=>y(a,S))}uploadFile(a,s){const c=new window.FormData,f=s.name||"file";return s.filename?c.append(f,s.file,s.filename):c.append(f,s.file),s.data&&Object.keys(s.data).forEach(d=>{const y=s.data[d];if(Array.isArray(y)){y.forEach(_=>{c.append(`${d}[]`,_)});return}c.append(d,s.data[d])}),this.axiosInstance.request($e(se({},a),{method:"POST",data:c,headers:{"Content-type":ContentTypeEnum.FORM_DATA,ignoreCancelToken:!0}}))}supportFormData(a){var f;const s=a.headers||this.options.headers;return((s==null?void 0:s["Content-Type"])||(s==null?void 0:s["content-type"]))!==ContentTypeEnum.FORM_URLENCODED||!Reflect.has(a,"data")||((f=a.method)==null?void 0:f.toUpperCase())===RequestEnum.GET?a:$e(se({},a),{data:qs.stringify(a.data,{arrayFormat:"brackets"})})}get(a,s){return this.request($e(se({},a),{method:"GET"}),s)}post(a,s){return this.request($e(se({},a),{method:"POST"}),s)}put(a,s){return this.request($e(se({},a),{method:"PUT"}),s)}delete(a,s){return this.request($e(se({},a),{method:"DELETE"}),s)}request(a,s){let c=cloneDeep(a);a.cancelToken&&(c.cancelToken=a.cancelToken),a.signal&&(c.signal=a.signal);const f=this.getTransform(),{requestOptions:d}=this.options,y=Object.assign({},d,s),{beforeRequestHook:_,requestCatchHook:S,transformResponseHook:b}=f||{};return _&&isFunction$2(_)&&(c=_(c,y)),c.requestOptions=y,c=this.supportFormData(c),new Promise(($,P)=>{this.axiosInstance.request(c).then(T=>{if(b&&isFunction$2(b)){try{const C=b(T,y);$(C)}catch(C){P(C||new Error("request error!"))}return}$(T)}).catch(T=>{if(S&&isFunction$2(S)){P(S(T,y));return}axios$1.isAxiosError(T),P(T)})})}}const transform={transformResponseHook:(o,a)=>{const{isReturnNativeResponse:s,isTransformResponse:c}=a;if(s)return o;if(!c)return o.data.data;const{data:f}=o;if(!o.data)throw new Error("请求接口错误");const{code:d,message:y}=f;if(f&&Reflect.has(f,"code")&&d===ResultEnum.SUCCESS)return f.data;let S="";switch(d){case ResultEnum.TIMEOUT:S="登录超时,请重新登录";break;default:y&&(S=y)}throw new Error(S)},responseInterceptorsCatch:(o,a)=>{var S,b;const{response:s,code:c,message:f,config:d}=a||{},y=(b=(S=a==null?void 0:a.toString)==null?void 0:S.call(a))!=null?b:"";let _="";if(axios$1.isCancel(a))return Promise.reject(a);try{c==="ECONNABORTED"&&f.indexOf("timeout")!==-1&&(_="接口请求超时,请刷新页面重试!"),y!=null&&y.includes("Network Error")&&(_="网络异常,请检查您的网络连接是否正常")}catch($){throw new Error($)}switch(s==null?void 0:s.status){case 401:_="登录失效";break;case 403:_="拒绝访问";break;case 404:_="请求地址不存在";break;case 500:_="服务器内部错误";break;case 501:_="服务未实现";break;case 502:_="网关错误";break;case 503:_="服务不可用";break}return Promise.reject(a)},beforeRequestHook:(o,a)=>{var $;const{apiUrl:s,joinPrefix:c,joinParamsToUrl:f,formatDate:d,joinTime:y=!0,urlPrefix:_}=a;c&&(o.url=`${_}${o.url}`);const S=o.params||{},b=o.data||!1;return d&&b&&!isString$3(b)&&formatRequestDate(b),(($=o.method)==null?void 0:$.toUpperCase())===RequestEnum.GET?isString$3(S)?(o.url=o.url+S+`${joinTimestamp(y,!0)}`,o.params=void 0):o.params=Object.assign(S||{},joinTimestamp(y,!1)):isString$3(S)?(o.url=o.url+S,o.params=void 0):(d&&formatRequestDate(S),Reflect.has(o,"data")&&o.data&&(Object.keys(o.data).length>0||o.data instanceof FormData)?(o.data=b,o.params=S):(o.data=S,o.params=void 0),f&&(o.url=setObjToUrlParams(o.url,Object.assign({},o.params,o.data)))),o},requestInterceptors:(o,a)=>{var c;const s=getItem$1(StorageEnum.Token);return s&&((c=o.requestOptions)==null?void 0:c.withToken)!==!1&&(o.headers.Authorization=a.authenticationScheme?`${a.authenticationScheme} ${s}`:s),o}};function createAxios(o){return new GAxios(deepMerge({authenticationScheme:"Bearer",timeout:10*1e3,header:{"Content-Type":ContentTypeEnum.JSON},transform:clone(transform),requestOptions:{joinPrefix:!0,isReturnNativeResponse:!1,joinParamsToUrl:!1,joinTime:!0,ignoreCancelToken:!0,withToken:!0,retryRequest:{isOpenRetry:!0,count:5,waitTime:100},apiUrl:"",urlPrefix:"/api",formatDate:!0}},o||{}))}const defHttp=createAxios(),PREFIX="",GRequest=extend$1({timeout:6e4,prefix:PREFIX});let isRefreshingToken=!1;const requestQueue=[];GRequest.interceptors.request.use((o,a)=>{const{headers:s}=a;return{url:o,options:$e(se({},a),{headers:s})}});GRequest.interceptors.response.use((o,a)=>xt(void 0,null,function*(){const{status:s}=o;if(s===200){const c=yield o.clone().json();return c.code!==0?(notification.error({message:"请求错误",description:c.msg}),Promise.reject(c.msg)):c}if(s===401){if(!isRefreshingToken){const c=JSON.parse(localStorage.getItem("userInfo")||"{}");isRefreshingToken=!0;const f=yield GRequest("/User/ReLogin",{method:"POST",data:c});localStorage.setItem("userInfo",JSON.stringify(f.data)),isRefreshingToken=!1;const d=GRequest(a.url,a);return requestQueue.forEach(y=>y.resolve(GRequest(y.url,y.options))),d}return new Promise((c,f)=>{requestQueue.push({url:a.url,options:a,resolve:c,reject:f})})}return notification.error({message:"请求错误",description:o.statusText}),Promise.reject(o.statusText)}));const loginApi=o=>defHttp.post({url:"/login",data:o});function logoutApi(){return defHttp.get({url:"/logout"})}function getJueJinList(o){return defHttp.post({url:"/article/queryList",data:o})}function getUsersList(){return defHttp.get({url:"/user/getUserList"})}const headerImg="/react-antd-admin-pnpm/assets/avatar-9ee092e3.jpeg",useUserStore=create(o=>({userInfo:getItem$1(StorageEnum$1.User)||{},userToken:getItem$1(StorageEnum$1.Token)||{},actions:{setUserInfo:a=>{o({userInfo:a}),setItem(StorageEnum$1.User,a)},setUserToken:a=>{o({userToken:a}),setItem(StorageEnum$1.Token,a)},clearUserInfoAndToken:()=>{o({userInfo:{},userToken:{}}),removeItem(StorageEnum$1.User),removeItem(StorageEnum$1.Token)}}})),useUserToken=()=>useUserStore(o=>o.userToken),useUserPermissions=()=>useUserStore(o=>{var a;return(a=o.userInfo)==null?void 0:a.permissions}),useUserActions=()=>useUserStore(o=>o.actions),useSignIn=()=>{const{t:o}=useTranslation(),{notification:a,message:s}=App$1.useApp(),{setUserToken:c,setUserInfo:f}=useUserActions(),d=useMutation({mutationFn:loginApi}),y=_=>xt(void 0,null,function*(){try{const b=yield d.mutateAsync(_),S=b,{token:$}=S,P=er(S,["token"]);return c({token:$}),f(P),a.success({message:o("登录成功"),description:`欢迎回来: ${_.username}`,duration:3}),yield Promise.resolve(b)}catch(b){return s.error({content:b.message,duration:3}),Promise.reject(b)}});return reactExports.useCallback(y,[])};function UserDropdown(){const{createConfirm:o,contextHolder:a,createMessage:s}=useMessage(),{clearUserInfoAndToken:c}=useUserActions(),{t:f}=useTranslation(),{token:d}=useUserToken(),y=[{key:"lock",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(LockOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("锁定屏幕")})]})},{key:"logout",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(PoweroffOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("退出登录")})]})}],_=({key:P})=>{switch(P){case"lock":break;case"logout":b();break}},S=useNavigate(),b=()=>{o({title:jsxRuntimeExports.jsx("span",{children:f("温馨提醒")}),content:jsxRuntimeExports.jsx("span",{children:f("是否确认退出系统?")}),onOk:()=>xt(this,null,function*(){yield $(!0)})})},$=(P=!1)=>xt(this,null,function*(){if(d)try{yield logoutApi()}catch(T){s.error(f("注销失败!"))}c(),P&&S("/login")});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a,jsxRuntimeExports.jsx(Dropdown,{menu:{items:y,onClick:_},placement:"bottomRight",arrow:!0,children:jsxRuntimeExports.jsx("span",{className:"flex-center",style:{cursor:"pointer"},children:jsxRuntimeExports.jsx("img",{src:headerImg,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""})})})]})}const matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(o,a,s,c="")=>{const f=o.split(":");if(o.slice(0,1)==="@"){if(f.length<2||f.length>3)return null;c=f.shift().slice(1)}if(f.length>3||!f.length)return null;if(f.length>1){const _=f.pop(),S=f.pop(),b={provider:f.length>0?f[0]:c,prefix:S,name:_};return a&&!validateIconName(b)?null:b}const d=f[0],y=d.split("-");if(y.length>1){const _={provider:c,prefix:y.shift(),name:y.join("-")};return a&&!validateIconName(_)?null:_}if(s&&c===""){const _={provider:c,prefix:"",name:d};return a&&!validateIconName(_,s)?null:_}return null},validateIconName=(o,a)=>o?!!((o.provider===""||o.provider.match(matchIconName))&&(a&&o.prefix===""||o.prefix.match(matchIconName))&&o.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze(se(se({},defaultIconDimensions),defaultIconTransformations)),defaultExtendedIconProps=Object.freeze($e(se({},defaultIconProps),{body:"",hidden:!1}));function mergeIconTransformations(o,a){const s={};!o.hFlip!=!a.hFlip&&(s.hFlip=!0),!o.vFlip!=!a.vFlip&&(s.vFlip=!0);const c=((o.rotate||0)+(a.rotate||0))%4;return c&&(s.rotate=c),s}function mergeIconData(o,a){const s=mergeIconTransformations(o,a);for(const c in defaultExtendedIconProps)c in defaultIconTransformations?c in o&&!(c in s)&&(s[c]=defaultIconTransformations[c]):c in a?s[c]=a[c]:c in o&&(s[c]=o[c]);return s}function getIconsTree(o,a){const s=o.icons,c=o.aliases||Object.create(null),f=Object.create(null);function d(y){if(s[y])return f[y]=[];if(!(y in f)){f[y]=null;const _=c[y]&&c[y].parent,S=_&&d(_);S&&(f[y]=[_].concat(S))}return f[y]}return(a||Object.keys(s).concat(Object.keys(c))).forEach(d),f}function internalGetIconData(o,a,s){const c=o.icons,f=o.aliases||Object.create(null);let d={};function y(_){d=mergeIconData(c[_]||f[_],d)}return y(a),s.forEach(y),mergeIconData(o,d)}function parseIconSet(o,a){const s=[];if(typeof o!="object"||typeof o.icons!="object")return s;o.not_found instanceof Array&&o.not_found.forEach(f=>{a(f,null),s.push(f)});const c=getIconsTree(o);for(const f in c){const d=c[f];d&&(a(f,internalGetIconData(o,f,d)),s.push(f))}return s}const optionalPropertyDefaults=se({provider:"",aliases:{},not_found:{}},defaultIconDimensions);function checkOptionalProps(o,a){for(const s in a)if(s in o&&typeof o[s]!=typeof a[s])return!1;return!0}function quicklyValidateIconSet(o){if(typeof o!="object"||o===null)return null;const a=o;if(typeof a.prefix!="string"||!o.icons||typeof o.icons!="object"||!checkOptionalProps(o,optionalPropertyDefaults))return null;const s=a.icons;for(const f in s){const d=s[f];if(!f.match(matchIconName)||typeof d.body!="string"||!checkOptionalProps(d,defaultExtendedIconProps))return null}const c=a.aliases||Object.create(null);for(const f in c){const d=c[f],y=d.parent;if(!f.match(matchIconName)||typeof y!="string"||!s[y]&&!c[y]||!checkOptionalProps(d,defaultExtendedIconProps))return null}return a}const dataStorage=Object.create(null);function newStorage(o,a){return{provider:o,prefix:a,icons:Object.create(null),missing:new Set}}function getStorage$2(o,a){const s=dataStorage[o]||(dataStorage[o]=Object.create(null));return s[a]||(s[a]=newStorage(o,a))}function addIconSet(o,a){return quicklyValidateIconSet(a)?parseIconSet(a,(s,c)=>{c?o.icons[s]=c:o.missing.add(s)}):[]}function addIconToStorage(o,a,s){try{if(typeof s.body=="string")return o.icons[a]=se({},s),!0}catch(c){}return!1}let simpleNames=!1;function allowSimpleNames(o){return typeof o=="boolean"&&(simpleNames=o),simpleNames}function getIconData(o){const a=typeof o=="string"?stringToIcon(o,!0,simpleNames):o;if(a){const s=getStorage$2(a.provider,a.prefix),c=a.name;return s.icons[c]||(s.missing.has(c)?null:void 0)}}function addIcon(o,a){const s=stringToIcon(o,!0,simpleNames);if(!s)return!1;const c=getStorage$2(s.provider,s.prefix);return addIconToStorage(c,s.name,a)}function addCollection(o,a){if(typeof o!="object")return!1;if(typeof a!="string"&&(a=o.provider||""),simpleNames&&!a&&!o.prefix){let f=!1;return quicklyValidateIconSet(o)&&(o.prefix="",parseIconSet(o,(d,y)=>{y&&addIcon(d,y)&&(f=!0)})),f}const s=o.prefix;if(!validateIconName({provider:a,prefix:s,name:"a"}))return!1;const c=getStorage$2(a,s);return!!addIconSet(c,o)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze(se(se({},defaultIconSizeCustomisations),defaultIconTransformations)),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(o,a,s){if(a===1)return o;if(s=s||100,typeof o=="number")return Math.ceil(o*a*s)/s;if(typeof o!="string")return o;const c=o.split(unitsSplit);if(c===null||!c.length)return o;const f=[];let d=c.shift(),y=unitsTest.test(d);for(;;){if(y){const _=parseFloat(d);isNaN(_)?f.push(d):f.push(Math.ceil(_*a*s)/s)}else f.push(d);if(d=c.shift(),d===void 0)return f.join("");y=!y}}const isUnsetKeyword=o=>o==="unset"||o==="undefined"||o==="none";function iconToSVG(o,a){const s=se(se({},defaultIconProps),o),c=se(se({},defaultIconCustomisations),a),f={left:s.left,top:s.top,width:s.width,height:s.height};let d=s.body;[s,c].forEach(O=>{const A=[],F=O.hFlip,j=O.vFlip;let L=O.rotate;F?j?L+=2:(A.push("translate("+(f.width+f.left).toString()+" "+(0-f.top).toString()+")"),A.push("scale(-1 1)"),f.top=f.left=0):j&&(A.push("translate("+(0-f.left).toString()+" "+(f.height+f.top).toString()+")"),A.push("scale(1 -1)"),f.top=f.left=0);let M;switch(L<0&&(L-=Math.floor(L/4)*4),L=L%4,L){case 1:M=f.height/2+f.top,A.unshift("rotate(90 "+M.toString()+" "+M.toString()+")");break;case 2:A.unshift("rotate(180 "+(f.width/2+f.left).toString()+" "+(f.height/2+f.top).toString()+")");break;case 3:M=f.width/2+f.left,A.unshift("rotate(-90 "+M.toString()+" "+M.toString()+")");break}L%2===1&&(f.left!==f.top&&(M=f.left,f.left=f.top,f.top=M),f.width!==f.height&&(M=f.width,f.width=f.height,f.height=M)),A.length&&(d=''+d+"")});const y=c.width,_=c.height,S=f.width,b=f.height;let $,P;y===null?(P=_===null?"1em":_==="auto"?b:_,$=calculateSize(P,S/b)):($=y==="auto"?S:y,P=_===null?calculateSize($,b/S):_==="auto"?b:_);const T={},C=(O,A)=>{isUnsetKeyword(A)||(T[O]=A.toString())};return C("width",$),C("height",P),T.viewBox=f.left.toString()+" "+f.top.toString()+" "+S.toString()+" "+b.toString(),{attributes:T,body:d}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(o,a=randomPrefix){const s=[];let c;for(;c=regex.exec(o);)s.push(c[1]);if(!s.length)return o;const f="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(d=>{const y=typeof a=="function"?a(d):a+(counter++).toString(),_=d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");o=o.replace(new RegExp('([#;"])('+_+')([")]|\\.[a-z])',"g"),"$1"+y+f+"$3")}),o=o.replace(new RegExp(f,"g"),""),o}const storage=Object.create(null);function setAPIModule(o,a){storage[o]=a}function getAPIModule(o){return storage[o]||storage[""]}function createAPIConfig(o){let a;if(typeof o.resources=="string")a=[o.resources];else if(a=o.resources,!(a instanceof Array)||!a.length)return null;return{resources:a,path:o.path||"/",maxURL:o.maxURL||500,rotate:o.rotate||750,timeout:o.timeout||5e3,random:o.random===!0,index:o.index||0,dataAfterTimeout:o.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(o,a){const s=createAPIConfig(a);return s===null?!1:(configStorage[o]=s,!0)}function getAPIConfig(o){return configStorage[o]}const detectFetch=()=>{let o;try{if(o=fetch,typeof o=="function")return o}catch(a){}};let fetchModule=detectFetch();function calculateMaxLength(o,a){const s=getAPIConfig(o);if(!s)return 0;let c;if(!s.maxURL)c=0;else{let f=0;s.resources.forEach(y=>{f=Math.max(f,y.length)});const d=a+".json?icons=";c=s.maxURL-f-s.path.length-d.length}return c}function shouldAbort(o){return o===404}const prepare=(o,a,s)=>{const c=[],f=calculateMaxLength(o,a),d="icons";let y={type:d,provider:o,prefix:a,icons:[]},_=0;return s.forEach((S,b)=>{_+=S.length+1,_>=f&&b>0&&(c.push(y),y={type:d,provider:o,prefix:a,icons:[]},_=S.length),y.icons.push(S)}),c.push(y),c};function getPath(o){if(typeof o=="string"){const a=getAPIConfig(o);if(a)return a.path}return"/"}const send=(o,a,s)=>{if(!fetchModule){s("abort",424);return}let c=getPath(a.provider);switch(a.type){case"icons":{const d=a.prefix,_=a.icons.join(","),S=new URLSearchParams({icons:_});c+=d+".json?"+S.toString();break}case"custom":{const d=a.uri;c+=d.slice(0,1)==="/"?d.slice(1):d;break}default:s("abort",400);return}let f=503;fetchModule(o+c).then(d=>{const y=d.status;if(y!==200){setTimeout(()=>{s(shouldAbort(y)?"abort":"next",y)});return}return f=501,d.json()}).then(d=>{if(typeof d!="object"||d===null){setTimeout(()=>{d===404?s("abort",d):s("next",f)});return}setTimeout(()=>{s("success",d)})}).catch(()=>{s("next",f)})},fetchAPIModule={prepare,send};function sortIcons(o){const a={loaded:[],missing:[],pending:[]},s=Object.create(null);o.sort((f,d)=>f.provider!==d.provider?f.provider.localeCompare(d.provider):f.prefix!==d.prefix?f.prefix.localeCompare(d.prefix):f.name.localeCompare(d.name));let c={provider:"",prefix:"",name:""};return o.forEach(f=>{if(c.name===f.name&&c.prefix===f.prefix&&c.provider===f.provider)return;c=f;const d=f.provider,y=f.prefix,_=f.name,S=s[d]||(s[d]=Object.create(null)),b=S[y]||(S[y]=getStorage$2(d,y));let $;_ in b.icons?$=a.loaded:y===""||b.missing.has(_)?$=a.missing:$=a.pending;const P={provider:d,prefix:y,name:_};$.push(P)}),a}function removeCallback(o,a){o.forEach(s=>{const c=s.loaderCallbacks;c&&(s.loaderCallbacks=c.filter(f=>f.id!==a))})}function updateCallbacks(o){o.pendingCallbacksFlag||(o.pendingCallbacksFlag=!0,setTimeout(()=>{o.pendingCallbacksFlag=!1;const a=o.loaderCallbacks?o.loaderCallbacks.slice(0):[];if(!a.length)return;let s=!1;const c=o.provider,f=o.prefix;a.forEach(d=>{const y=d.icons,_=y.pending.length;y.pending=y.pending.filter(S=>{if(S.prefix!==f)return!0;const b=S.name;if(o.icons[b])y.loaded.push({provider:c,prefix:f,name:b});else if(o.missing.has(b))y.missing.push({provider:c,prefix:f,name:b});else return s=!0,!0;return!1}),y.pending.length!==_&&(s||removeCallback([o],d.id),d.callback(y.loaded.slice(0),y.missing.slice(0),y.pending.slice(0),d.abort))})}))}let idCounter=0;function storeCallback(o,a,s){const c=idCounter++,f=removeCallback.bind(null,s,c);if(!a.pending.length)return f;const d={id:c,icons:a,callback:o,abort:f};return s.forEach(y=>{(y.loaderCallbacks||(y.loaderCallbacks=[])).push(d)}),f}function listToIcons(o,a=!0,s=!1){const c=[];return o.forEach(f=>{const d=typeof f=="string"?stringToIcon(f,a,s):f;d&&c.push(d)}),c}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(o,a,s,c){const f=o.resources.length,d=o.random?Math.floor(Math.random()*f):o.index;let y;if(o.random){let z=o.resources.slice(0);for(y=[];z.length>1;){const H=Math.floor(Math.random()*z.length);y.push(z[H]),z=z.slice(0,H).concat(z.slice(H+1))}y=y.concat(z)}else y=o.resources.slice(d).concat(o.resources.slice(0,d));const _=Date.now();let S="pending",b=0,$,P=null,T=[],C=[];typeof c=="function"&&C.push(c);function O(){P&&(clearTimeout(P),P=null)}function A(){S==="pending"&&(S="aborted"),O(),T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function F(z,H){H&&(C=[]),typeof z=="function"&&C.push(z)}function j(){return{startTime:_,payload:a,status:S,queriesSent:b,queriesPending:T.length,subscribe:F,abort:A}}function L(){S="failed",C.forEach(z=>{z(void 0,$)})}function M(){T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function I(z,H,G){const X=H!=="success";switch(T=T.filter(W=>W!==z),S){case"pending":break;case"failed":if(X||!o.dataAfterTimeout)return;break;default:return}if(H==="abort"){$=G,L();return}if(X){$=G,T.length||(y.length?U():L());return}if(O(),M(),!o.random){const W=o.resources.indexOf(z.resource);W!==-1&&W!==o.index&&(o.index=W)}S="completed",C.forEach(W=>{W(G)})}function U(){if(S!=="pending")return;O();const z=y.shift();if(z===void 0){if(T.length){P=setTimeout(()=>{O(),S==="pending"&&(M(),L())},o.timeout);return}L();return}const H={status:"pending",resource:z,callback:(G,X)=>{I(H,G,X)}};T.push(H),b++,P=setTimeout(U,o.rotate),s(z,a,H.callback)}return setTimeout(U),j}function initRedundancy(o){const a=se(se({},defaultConfig),o);let s=[];function c(){s=s.filter(_=>_().status==="pending")}function f(_,S,b){const $=sendQuery(a,_,S,(P,T)=>{c(),b&&b(P,T)});return s.push($),$}function d(_){return s.find(S=>_(S))||null}return{query:f,find:d,setIndex:_=>{a.index=_},getIndex:()=>a.index,cleanup:c}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(o){if(!redundancyCache[o]){const a=getAPIConfig(o);if(!a)return;const s=initRedundancy(a),c={config:a,redundancy:s};redundancyCache[o]=c}return redundancyCache[o]}function sendAPIQuery(o,a,s){let c,f;if(typeof o=="string"){const d=getAPIModule(o);if(!d)return s(void 0,424),emptyCallback$1;f=d.send;const y=getRedundancyCache(o);y&&(c=y.redundancy)}else{const d=createAPIConfig(o);if(d){c=initRedundancy(d);const y=o.resources?o.resources[0]:"",_=getAPIModule(y);_&&(f=_.send)}}return!c||!f?(s(void 0,424),emptyCallback$1):c.query(a,f,s)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(o,a){try{return o.getItem(a)}catch(s){}}function setStoredItem(o,a,s){try{return o.setItem(a,s),!0}catch(c){}}function removeStoredItem(o,a){try{o.removeItem(a)}catch(s){}}function setBrowserStorageItemsCount(o,a){return setStoredItem(o,browserCacheCountKey,a.toString())}function getBrowserStorageItemsCount(o){return parseInt(getStoredItem(o,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(o){browserStorageStatus=o}let _window=typeof window=="undefined"?{}:window;function getBrowserStorage(o){const a=o+"Storage";try{if(_window&&_window[a]&&typeof _window[a].length=="number")return _window[a]}catch(s){}browserStorageConfig[o]=!1}function iterateBrowserStorage(o,a){const s=getBrowserStorage(o);if(!s)return;const c=getStoredItem(s,browserCacheVersionKey);if(c!==browserCacheVersion){if(c){const _=getBrowserStorageItemsCount(s);for(let S=0;S<_;S++)removeStoredItem(s,browserCachePrefix+S.toString())}setStoredItem(s,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(s,0);return}const f=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,d=_=>{const S=browserCachePrefix+_.toString(),b=getStoredItem(s,S);if(typeof b=="string"){try{const $=JSON.parse(b);if(typeof $=="object"&&typeof $.cached=="number"&&$.cached>f&&typeof $.provider=="string"&&typeof $.data=="object"&&typeof $.data.prefix=="string"&&a($,_))return!0}catch($){}removeStoredItem(s,S)}};let y=getBrowserStorageItemsCount(s);for(let _=y-1;_>=0;_--)d(_)||(_===y-1?(y--,setBrowserStorageItemsCount(s,y)):browserStorageEmptyItems[o].add(_))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const o in browserStorageConfig)iterateBrowserStorage(o,a=>{const s=a.data,c=a.provider,f=s.prefix,d=getStorage$2(c,f);if(!addIconSet(d,s).length)return!1;const y=s.lastModified||-1;return d.lastModifiedCached=d.lastModifiedCached?Math.min(d.lastModifiedCached,y):y,!0})}}function updateLastModified(o,a){const s=o.lastModifiedCached;if(s&&s>=a)return s===a;if(o.lastModifiedCached=a,s)for(const c in browserStorageConfig)iterateBrowserStorage(c,f=>{const d=f.data;return f.provider!==o.provider||d.prefix!==o.prefix||d.lastModified===a});return!0}function storeInBrowserStorage(o,a){browserStorageStatus||initBrowserStorage();function s(c){let f;if(!browserStorageConfig[c]||!(f=getBrowserStorage(c)))return;const d=browserStorageEmptyItems[c];let y;if(d.size)d.delete(y=Array.from(d).shift());else if(y=getBrowserStorageItemsCount(f),!setBrowserStorageItemsCount(f,y+1))return;const _={cached:Math.floor(Date.now()/browserStorageHour),provider:o.provider,data:a};return setStoredItem(f,browserCachePrefix+y.toString(),JSON.stringify(_))}a.lastModified&&!updateLastModified(o,a.lastModified)||Object.keys(a.icons).length&&(a.not_found&&(a=Object.assign({},a),delete a.not_found),s("local")||s("session"))}function emptyCallback(){}function loadedNewIcons(o){o.iconsLoaderFlag||(o.iconsLoaderFlag=!0,setTimeout(()=>{o.iconsLoaderFlag=!1,updateCallbacks(o)}))}function loadNewIcons(o,a){o.iconsToLoad?o.iconsToLoad=o.iconsToLoad.concat(a).sort():o.iconsToLoad=a,o.iconsQueueFlag||(o.iconsQueueFlag=!0,setTimeout(()=>{o.iconsQueueFlag=!1;const{provider:s,prefix:c}=o,f=o.iconsToLoad;delete o.iconsToLoad;let d;if(!f||!(d=getAPIModule(s)))return;d.prepare(s,c,f).forEach(_=>{sendAPIQuery(s,_,S=>{if(typeof S!="object")_.icons.forEach(b=>{o.missing.add(b)});else try{const b=addIconSet(o,S);if(!b.length)return;const $=o.pendingIcons;$&&b.forEach(P=>{$.delete(P)}),storeInBrowserStorage(o,S)}catch(b){}loadedNewIcons(o)})})}))}const loadIcons=(o,a)=>{const s=listToIcons(o,!0,allowSimpleNames()),c=sortIcons(s);if(!c.pending.length){let S=!0;return a&&setTimeout(()=>{S&&a(c.loaded,c.missing,c.pending,emptyCallback)}),()=>{S=!1}}const f=Object.create(null),d=[];let y,_;return c.pending.forEach(S=>{const{provider:b,prefix:$}=S;if($===_&&b===y)return;y=b,_=$,d.push(getStorage$2(b,$));const P=f[b]||(f[b]=Object.create(null));P[$]||(P[$]=[])}),c.pending.forEach(S=>{const{provider:b,prefix:$,name:P}=S,T=getStorage$2(b,$),C=T.pendingIcons||(T.pendingIcons=new Set);C.has(P)||(C.add(P),f[b][$].push(P))}),d.forEach(S=>{const{provider:b,prefix:$}=S;f[b][$].length&&loadNewIcons(S,f[b][$])}),a?storeCallback(a,c,d):emptyCallback};function mergeCustomisations(o,a){const s=se({},o);for(const c in a){const f=a[c],d=typeof f;c in defaultIconSizeCustomisations?(f===null||f&&(d==="string"||d==="number"))&&(s[c]=f):d===typeof s[c]&&(s[c]=c==="rotate"?f%4:f)}return s}const separator=/[\s,]+/;function flipFromString(o,a){a.split(separator).forEach(s=>{switch(s.trim()){case"horizontal":o.hFlip=!0;break;case"vertical":o.vFlip=!0;break}})}function rotateFromString(o,a=0){const s=o.replace(/^-?[0-9.]*/,"");function c(f){for(;f<0;)f+=4;return f%4}if(s===""){const f=parseInt(o);return isNaN(f)?0:c(f)}else if(s!==o){let f=0;switch(s){case"%":f=25;break;case"deg":f=90}if(f){let d=parseFloat(o.slice(0,o.length-s.length));return isNaN(d)?0:(d=d/f,d%1===0?c(d):0)}}return a}function iconToHTML(o,a){let s=o.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const c in a)s+=" "+c+'="'+a[c]+'"';return'"+o+""}function encodeSVGforURL(o){return o.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData(o){return"data:image/svg+xml,"+encodeSVGforURL(o)}function svgToURL(o){return'url("'+svgToData(o)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:o=>o})}catch(o){policy=null}}function cleanUpInnerHTML(o){return policy===void 0&&createPolicy(),policy?policy.createHTML(o):o}const defaultExtendedIconCustomisations=$e(se({},defaultIconCustomisations),{inline:!1}),svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const o in propsToAddTo){const a=propsToAddTo[o];for(const s in propsToAdd)a[o+s]=propsToAdd[s]}const inlineDefaults=$e(se({},defaultExtendedIconCustomisations),{inline:!0});function fixSize(o){return o+(o.match(/^[-0-9.]+$/)?"px":"")}const render=(o,a,s,c)=>{const f=s?inlineDefaults:defaultExtendedIconCustomisations,d=mergeCustomisations(f,a),y=a.mode||"svg",_={},S=a.style||{},b=$e(se({},y==="svg"?svgDefaults:{}),{ref:c});for(let j in a){const L=a[j];if(L!==void 0)switch(j){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":d[j]=L===!0||L==="true"||L===1;break;case"flip":typeof L=="string"&&flipFromString(d,L);break;case"color":_.color=L;break;case"rotate":typeof L=="string"?d[j]=rotateFromString(L):typeof L=="number"&&(d[j]=L);break;case"ariaHidden":case"aria-hidden":L!==!0&&L!=="true"&&delete b["aria-hidden"];break;default:f[j]===void 0&&(b[j]=L)}}const $=iconToSVG(o,d),P=$.attributes;if(d.inline&&(_.verticalAlign="-0.125em"),y==="svg"){b.style=se(se({},_),S),Object.assign(b,P);let j=0,L=a.id;return typeof L=="string"&&(L=L.replace(/-/g,"_")),b.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs($.body,L?()=>L+"ID"+j++:"iconifyReact"))},React$4.createElement("svg",b)}const{body:T,width:C,height:O}=o,A=y==="mask"||(y==="bg"?!1:T.indexOf("currentColor")!==-1),F=iconToHTML(T,$e(se({},P),{width:C+"",height:O+""}));return b.style=se(se(se($e(se({},_),{"--svg":svgToURL(F),width:fixSize(P.width),height:fixSize(P.height)}),commonProps),A?monotoneProps:coloredProps),S),React$4.createElement("span",b)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document!="undefined"&&typeof window!="undefined"){initBrowserStorage();const o=window;if(o.IconifyPreload!==void 0){const a=o.IconifyPreload,s="Invalid IconifyPreload syntax.";typeof a=="object"&&a!==null&&(a instanceof Array?a:[a]).forEach(c=>{try{typeof c!="object"||c===null||c instanceof Array||typeof c.icons!="object"||typeof c.prefix!="string"||addCollection(c)}catch(f){}})}if(o.IconifyProviders!==void 0){const a=o.IconifyProviders;if(typeof a=="object"&&a!==null)for(let s in a){const c="IconifyProviders["+s+"] is invalid.";try{const f=a[s];if(typeof f!="object"||!f||f.resources===void 0)continue;addAPIProvider(s,f)}catch(f){}}}}class IconComponent extends React$4.Component{constructor(a){super(a),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(a){this.state.icon!==a&&this.setState({icon:a})}_checkIcon(a){const s=this.state,c=this.props.icon;if(typeof c=="object"&&c!==null&&typeof c.body=="string"){this._icon="",this._abortLoading(),(a||s.icon===null)&&this._setData({data:c});return}let f;if(typeof c!="string"||(f=stringToIcon(c,!1,!0))===null){this._abortLoading(),this._setData(null);return}const d=getIconData(f);if(!d){(!this._loading||this._loading.name!==c)&&(this._abortLoading(),this._icon="",this._setData(null),d!==null&&(this._loading={name:c,abort:loadIcons([f],this._checkIcon.bind(this,!1))}));return}if(this._icon!==c||s.icon===null){this._abortLoading(),this._icon=c;const y=["iconify"];f.prefix!==""&&y.push("iconify--"+f.prefix),f.provider!==""&&y.push("iconify--"+f.provider),this._setData({data:d,classes:y}),this.props.onLoad&&this.props.onLoad(c)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(a){a.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const a=this.props,s=this.state.icon;if(s===null)return a.children?a.children:React$4.createElement("span",{});let c=a;return s.classes&&(c=$e(se({},a),{className:(typeof a.className=="string"?a.className+" ":"")+s.classes.join(" ")})),render(se(se({},defaultIconProps),s.data),c,a._inline,a._ref)}}const Icon=React$4.forwardRef(function(a,s){const c=$e(se({},a),{_ref:s,_inline:!1});return React$4.createElement(IconComponent,c)});React$4.forwardRef(function(a,s){const c=$e(se({},a),{_ref:s,_inline:!0});return React$4.createElement(IconComponent,c)});const Selectlangulage=()=>{const{i18n:o}=useTranslation(),a=[{key:"zh",label:"中文"},{key:"en",label:"English"}];return jsxRuntimeExports.jsx(Dropdown,{menu:{items:a,onClick:({key:s})=>o.changeLanguage(s)},trigger:["click"],children:jsxRuntimeExports.jsx(Button,{shape:"circle",size:"small",icon:jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(Icon,{icon:"ant-design:global-outlined"})})})})};function LayoutFeature(){return jsxRuntimeExports.jsxs(Space,{size:"middle",children:[jsxRuntimeExports.jsx(GlobalSearch,{}),jsxRuntimeExports.jsx(Selectlangulage,{}),jsxRuntimeExports.jsx(DocLink,{}),jsxRuntimeExports.jsx(GithubLink,{}),jsxRuntimeExports.jsx(Settings,{}),jsxRuntimeExports.jsx(UserDropdown,{})]})}function formatProdErrorMessage$2(o){return`Minified Redux error #${o}; visit https://redux.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var $$observable$1=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),symbol_observable_default=$$observable$1,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes$1={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes$1;function isPlainObject$2(o){if(typeof o!="object"||o===null)return!1;let a=o;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a||Object.getPrototypeOf(o)===null}function createStore$1(o,a,s){if(typeof o!="function")throw new Error(formatProdErrorMessage$2(2));if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$2(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage$2(1));return s(createStore$1)(o,a)}let c=o,f=a,d=new Map,y=d,_=0,S=!1;function b(){y===d&&(y=new Map,d.forEach((F,j)=>{y.set(j,F)}))}function $(){if(S)throw new Error(formatProdErrorMessage$2(3));return f}function P(F){if(typeof F!="function")throw new Error(formatProdErrorMessage$2(4));if(S)throw new Error(formatProdErrorMessage$2(5));let j=!0;b();const L=_++;return y.set(L,F),function(){if(j){if(S)throw new Error(formatProdErrorMessage$2(6));j=!1,b(),y.delete(L),d=null}}}function T(F){if(!isPlainObject$2(F))throw new Error(formatProdErrorMessage$2(7));if(typeof F.type=="undefined")throw new Error(formatProdErrorMessage$2(8));if(typeof F.type!="string")throw new Error(formatProdErrorMessage$2(17));if(S)throw new Error(formatProdErrorMessage$2(9));try{S=!0,f=c(f,F)}finally{S=!1}return(d=y).forEach(L=>{L()}),F}function C(F){if(typeof F!="function")throw new Error(formatProdErrorMessage$2(10));c=F,T({type:actionTypes_default.REPLACE})}function O(){const F=P;return{subscribe(j){if(typeof j!="object"||j===null)throw new Error(formatProdErrorMessage$2(11));function L(){const I=j;I.next&&I.next($())}return L(),{unsubscribe:F(L)}},[symbol_observable_default](){return this}}}return T({type:actionTypes_default.INIT}),{dispatch:T,subscribe:P,getState:$,replaceReducer:C,[symbol_observable_default]:O}}function assertReducerShape(o){Object.keys(o).forEach(a=>{const s=o[a];if(typeof s(void 0,{type:actionTypes_default.INIT})=="undefined")throw new Error(formatProdErrorMessage$2(12));if(typeof s(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(formatProdErrorMessage$2(13))})}function combineReducers(o){const a=Object.keys(o),s={};for(let d=0;da:o.length===1?o[0]:o.reduce((a,s)=>(...c)=>a(s(...c)))}function applyMiddleware(...o){return a=>(s,c)=>{const f=a(s,c);let d=()=>{throw new Error(formatProdErrorMessage$2(15))};const y={getState:f.getState,dispatch:(S,...b)=>d(S,...b)},_=o.map(S=>S(y));return d=compose(..._)(f.dispatch),$e(se({},f),{dispatch:d})}}function isAction(o){return isPlainObject$2(o)&&"type"in o&&typeof o.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(o,...a){throw new Error(`[Immer] minified error nr: ${o}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(o){return!!o&&!!o[DRAFT_STATE]}function isDraftable(o){var a;return o?isPlainObject$1(o)||Array.isArray(o)||!!o[DRAFTABLE]||!!((a=o.constructor)!=null&&a[DRAFTABLE])||isMap(o)||isSet(o):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject$1(o){if(!o||typeof o!="object")return!1;const a=getPrototypeOf(o);if(a===null)return!0;const s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object?!0:typeof s=="function"&&Function.toString.call(s)===objectCtorString}function each(o,a){getArchtype(o)===0?Object.entries(o).forEach(([s,c])=>{a(s,c,o)}):o.forEach((s,c)=>a(c,s,o))}function getArchtype(o){const a=o[DRAFT_STATE];return a?a.type_:Array.isArray(o)?1:isMap(o)?2:isSet(o)?3:0}function has(o,a){return getArchtype(o)===2?o.has(a):Object.prototype.hasOwnProperty.call(o,a)}function set(o,a,s){const c=getArchtype(o);c===2?o.set(a,s):c===3?o.add(s):o[a]=s}function is(o,a){return o===a?o!==0||1/o===1/a:o!==o&&a!==a}function isMap(o){return o instanceof Map}function isSet(o){return o instanceof Set}function latest(o){return o.copy_||o.base_}function shallowCopy(o,a){if(isMap(o))return new Map(o);if(isSet(o))return new Set(o);if(Array.isArray(o))return Array.prototype.slice.call(o);if(!a&&isPlainObject$1(o))return getPrototypeOf(o)?se({},o):Object.assign(Object.create(null),o);const s=Object.getOwnPropertyDescriptors(o);delete s[DRAFT_STATE];let c=Reflect.ownKeys(s);for(let f=0;f1&&(o.set=o.add=o.clear=o.delete=dontMutateFrozenCollections),Object.freeze(o),a&&each(o,(s,c)=>freeze(c,!0))),o}function dontMutateFrozenCollections(){die(2)}function isFrozen(o){return Object.isFrozen(o)}var plugins={};function getPlugin(o){const a=plugins[o];return a||die(0,o),a}var currentScope;function getCurrentScope(){return currentScope}function createScope(o,a){return{drafts_:[],parent_:o,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(o,a){a&&(getPlugin("Patches"),o.patches_=[],o.inversePatches_=[],o.patchListener_=a)}function revokeScope(o){leaveScope(o),o.drafts_.forEach(revokeDraft),o.drafts_=null}function leaveScope(o){o===currentScope&&(currentScope=o.parent_)}function enterScope(o){return currentScope=createScope(currentScope,o)}function revokeDraft(o){const a=o[DRAFT_STATE];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function processResult(o,a){a.unfinalizedDrafts_=a.drafts_.length;const s=a.drafts_[0];return o!==void 0&&o!==s?(s[DRAFT_STATE].modified_&&(revokeScope(a),die(4)),isDraftable(o)&&(o=finalize(a,o),a.parent_||maybeFreeze(a,o)),a.patches_&&getPlugin("Patches").generateReplacementPatches_(s[DRAFT_STATE].base_,o,a.patches_,a.inversePatches_)):o=finalize(a,s,[]),revokeScope(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),o!==NOTHING?o:void 0}function finalize(o,a,s){if(isFrozen(a))return a;const c=a[DRAFT_STATE];if(!c)return each(a,(f,d)=>finalizeProperty(o,c,a,f,d,s)),a;if(c.scope_!==o)return a;if(!c.modified_)return maybeFreeze(o,c.base_,!0),c.base_;if(!c.finalized_){c.finalized_=!0,c.scope_.unfinalizedDrafts_--;const f=c.copy_;let d=f,y=!1;c.type_===3&&(d=new Set(f),f.clear(),y=!0),each(d,(_,S)=>finalizeProperty(o,c,f,_,S,s,y)),maybeFreeze(o,f,!1),s&&o.patches_&&getPlugin("Patches").generatePatches_(c,s,o.patches_,o.inversePatches_)}return c.copy_}function finalizeProperty(o,a,s,c,f,d,y){if(isDraft(f)){const _=d&&a&&a.type_!==3&&!has(a.assigned_,c)?d.concat(c):void 0,S=finalize(o,f,_);if(set(s,c,S),isDraft(S))o.canAutoFreeze_=!1;else return}else y&&s.add(f);if(isDraftable(f)&&!isFrozen(f)){if(!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1)return;finalize(o,f),(!a||!a.scope_.parent_)&&maybeFreeze(o,f)}}function maybeFreeze(o,a,s=!1){!o.parent_&&o.immer_.autoFreeze_&&o.canAutoFreeze_&&freeze(a,s)}function createProxyProxy(o,a){const s=Array.isArray(o),c={type_:s?1:0,scope_:a?a.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:o,draft_:null,copy_:null,revoke_:null,isManual_:!1};let f=c,d=objectTraps;s&&(f=[c],d=arrayTraps);const{revoke:y,proxy:_}=Proxy.revocable(f,d);return c.draft_=_,c.revoke_=y,_}var objectTraps={get(o,a){if(a===DRAFT_STATE)return o;const s=latest(o);if(!has(s,a))return readPropFromProto(o,s,a);const c=s[a];return o.finalized_||!isDraftable(c)?c:c===peek(o.base_,a)?(prepareCopy(o),o.copy_[a]=createProxy(c,o)):c},has(o,a){return a in latest(o)},ownKeys(o){return Reflect.ownKeys(latest(o))},set(o,a,s){const c=getDescriptorFromProto(latest(o),a);if(c!=null&&c.set)return c.set.call(o.draft_,s),!0;if(!o.modified_){const f=peek(latest(o),a),d=f==null?void 0:f[DRAFT_STATE];if(d&&d.base_===s)return o.copy_[a]=s,o.assigned_[a]=!1,!0;if(is(s,f)&&(s!==void 0||has(o.base_,a)))return!0;prepareCopy(o),markChanged(o)}return o.copy_[a]===s&&(s!==void 0||a in o.copy_)||Number.isNaN(s)&&Number.isNaN(o.copy_[a])||(o.copy_[a]=s,o.assigned_[a]=!0),!0},deleteProperty(o,a){return peek(o.base_,a)!==void 0||a in o.base_?(o.assigned_[a]=!1,prepareCopy(o),markChanged(o)):delete o.assigned_[a],o.copy_&&delete o.copy_[a],!0},getOwnPropertyDescriptor(o,a){const s=latest(o),c=Reflect.getOwnPropertyDescriptor(s,a);return c&&{writable:!0,configurable:o.type_!==1||a!=="length",enumerable:c.enumerable,value:s[a]}},defineProperty(){die(11)},getPrototypeOf(o){return getPrototypeOf(o.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(o,a)=>{arrayTraps[o]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});arrayTraps.deleteProperty=function(o,a){return arrayTraps.set.call(this,o,a,void 0)};arrayTraps.set=function(o,a,s){return objectTraps.set.call(this,o[0],a,s,o[0])};function peek(o,a){const s=o[DRAFT_STATE];return(s?latest(s):o)[a]}function readPropFromProto(o,a,s){var f;const c=getDescriptorFromProto(a,s);return c?"value"in c?c.value:(f=c.get)==null?void 0:f.call(o.draft_):void 0}function getDescriptorFromProto(o,a){if(!(a in o))return;let s=getPrototypeOf(o);for(;s;){const c=Object.getOwnPropertyDescriptor(s,a);if(c)return c;s=getPrototypeOf(s)}}function markChanged(o){o.modified_||(o.modified_=!0,o.parent_&&markChanged(o.parent_))}function prepareCopy(o){o.copy_||(o.copy_=shallowCopy(o.base_,o.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(o){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(a,s,c)=>{if(typeof a=="function"&&typeof s!="function"){const d=s;s=a;const y=this;return function(S=d,...b){return y.produce(S,$=>s.call(this,$,...b))}}typeof s!="function"&&die(6),c!==void 0&&typeof c!="function"&&die(7);let f;if(isDraftable(a)){const d=enterScope(this),y=createProxy(a,void 0);let _=!0;try{f=s(y),_=!1}finally{_?revokeScope(d):leaveScope(d)}return usePatchesInScope(d,c),processResult(f,d)}else if(!a||typeof a!="object"){if(f=s(a),f===void 0&&(f=a),f===NOTHING&&(f=void 0),this.autoFreeze_&&freeze(f,!0),c){const d=[],y=[];getPlugin("Patches").generateReplacementPatches_(a,f,d,y),c(d,y)}return f}else die(1,a)},this.produceWithPatches=(a,s)=>{if(typeof a=="function")return(y,..._)=>this.produceWithPatches(y,S=>a(S,..._));let c,f;return[this.produce(a,s,(y,_)=>{c=y,f=_}),c,f]},typeof(o==null?void 0:o.autoFreeze)=="boolean"&&this.setAutoFreeze(o.autoFreeze),typeof(o==null?void 0:o.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(o.useStrictShallowCopy)}createDraft(o){isDraftable(o)||die(8),isDraft(o)&&(o=current(o));const a=enterScope(this),s=createProxy(o,void 0);return s[DRAFT_STATE].isManual_=!0,leaveScope(a),s}finishDraft(o,a){const s=o&&o[DRAFT_STATE];(!s||!s.isManual_)&&die(9);const{scope_:c}=s;return usePatchesInScope(c,a),processResult(void 0,c)}setAutoFreeze(o){this.autoFreeze_=o}setUseStrictShallowCopy(o){this.useStrictShallowCopy_=o}applyPatches(o,a){let s;for(s=a.length-1;s>=0;s--){const f=a[s];if(f.path.length===0&&f.op==="replace"){o=f.value;break}}s>-1&&(a=a.slice(s+1));const c=getPlugin("Patches").applyPatches_;return isDraft(o)?c(o,a):this.produce(o,f=>c(f,a))}};function createProxy(o,a){const s=isMap(o)?getPlugin("MapSet").proxyMap_(o,a):isSet(o)?getPlugin("MapSet").proxySet_(o,a):createProxyProxy(o,a);return(a?a.scope_:getCurrentScope()).drafts_.push(s),s}function current(o){return isDraft(o)||die(10,o),currentImpl(o)}function currentImpl(o){if(!isDraftable(o)||isFrozen(o))return o;const a=o[DRAFT_STATE];let s;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,s=shallowCopy(o,a.scope_.immer_.useStrictShallowCopy_)}else s=shallowCopy(o,!0);return each(s,(c,f)=>{set(s,c,currentImpl(f))}),a&&(a.finalized_=!1),s}var immer=new Immer2,produce=immer.produce;immer.produceWithPatches.bind(immer);immer.setAutoFreeze.bind(immer);immer.setUseStrictShallowCopy.bind(immer);immer.applyPatches.bind(immer);immer.createDraft.bind(immer);immer.finishDraft.bind(immer);function assertIsFunction(o,a=`expected a function, instead received ${typeof o}`){if(typeof o!="function")throw new TypeError(a)}function assertIsObject(o,a=`expected an object, instead received ${typeof o}`){if(typeof o!="object")throw new TypeError(a)}function assertIsArrayOfFunctions(o,a="expected all items to be functions, instead received the following types: "){if(!o.every(s=>typeof s=="function")){const s=o.map(c=>typeof c=="function"?`function ${c.name||"unnamed"}()`:typeof c).join(", ");throw new TypeError(`${a}[${s}]`)}}var ensureIsArray=o=>Array.isArray(o)?o:[o];function getDependencies(o){const a=Array.isArray(o[0])?o[0]:o;return assertIsArrayOfFunctions(a,"createSelector expects all input-selectors to be functions, but received the following types: "),a}function collectInputSelectorResults(o,a){const s=[],{length:c}=o;for(let f=0;f{s=createCacheNode(),y.resetResultsCount()},y.resultsCount=()=>d,y.resetResultsCount=()=>{d=0},y}function createSelectorCreator(o,...a){const s=typeof o=="function"?{memoize:o,memoizeOptions:a}:o,c=(...f)=>{let d=0,y=0,_,S={},b=f.pop();typeof b=="object"&&(S=b,b=f.pop()),assertIsFunction(b,`createSelector expects an output function after the inputs, but received: [${typeof b}]`);const $=se(se({},s),S),{memoize:P,memoizeOptions:T=[],argsMemoize:C=weakMapMemoize,argsMemoizeOptions:O=[],devModeChecks:A={}}=$,F=ensureIsArray(T),j=ensureIsArray(O),L=getDependencies(f),M=P(function(){return d++,b.apply(null,arguments)},...F),I=C(function(){y++;const z=collectInputSelectorResults(L,arguments);return _=M.apply(null,z),_},...j);return Object.assign(I,{resultFunc:b,memoizedResultFunc:M,dependencies:L,dependencyRecomputations:()=>y,resetDependencyRecomputations:()=>{y=0},lastResult:()=>_,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:P,argsMemoize:C})};return Object.assign(c,{withTypes:()=>c}),c}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign((o,a=createSelector)=>{assertIsObject(o,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof o}`);const s=Object.keys(o),c=s.map(d=>o[d]);return a(c,(...d)=>d.reduce((y,_,S)=>(y[s[S]]=_,y),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(o){return({dispatch:s,getState:c})=>f=>d=>typeof d=="function"?d(s,c,o):f(d)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,createDraftSafeSelectorCreator=(...o)=>{const a=createSelectorCreator(...o);return(...s)=>{const c=a(...s),f=(d,...y)=>c(isDraft(d)?current(d):d,...y);return Object.assign(f,c),f}};createDraftSafeSelectorCreator(weakMapMemoize);var composeWithDevTools=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)},hasMatchFunction=o=>o&&typeof o.match=="function";function createAction(o,a){function s(...c){if(a){let f=a(...c);if(!f)throw new Error(formatProdErrorMessage$1(0));return se(se({type:o,payload:f.payload},"meta"in f&&{meta:f.meta}),"error"in f&&{error:f.error})}return{type:o,payload:c[0]}}return s.toString=()=>`${o}`,s.type=o,s.match=c=>isAction(c)&&c.type===o,s}var Tuple=class ba extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,ba.prototype)}static get[Symbol.species](){return ba}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new ba(...a[0].concat(this)):new ba(...a.concat(this))}};function freezeDraftable(o){return isDraftable(o)?produce(o,()=>{}):o}function emplace(o,a,s){if(o.has(a)){let f=o.get(a);return s.update&&(f=s.update(f,a,o),o.set(a,f)),f}if(!s.insert)throw new Error(formatProdErrorMessage$1(10));const c=s.insert(a,o);return o.set(a,c),c}function isBoolean(o){return typeof o=="boolean"}var buildGetDefaultMiddleware=()=>function(a){const{thunk:s=!0,immutableCheck:c=!0,serializableCheck:f=!0,actionCreatorCheck:d=!0}=a!=null?a:{};let y=new Tuple;return s&&(isBoolean(s)?y.push(thunk):y.push(withExtraArgument(s.extraArgument))),y},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=o=>a=>{setTimeout(a,o)},rAF=typeof window!="undefined"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=(o={type:"raf"})=>a=>(...s)=>{const c=a(...s);let f=!0,d=!1,y=!1;const _=new Set,S=o.type==="tick"?queueMicrotask:o.type==="raf"?rAF:o.type==="callback"?o.queueNotification:createQueueWithTimer(o.timeout),b=()=>{y=!1,d&&(d=!1,_.forEach($=>$()))};return Object.assign({},c,{subscribe($){const P=()=>f&&$(),T=c.subscribe(P);return _.add($),()=>{T(),_.delete($)}},dispatch($){var P;try{return f=!((P=$==null?void 0:$.meta)!=null&&P[SHOULD_AUTOBATCH]),d=!f,d&&(y||(y=!0,S(b))),c.dispatch($)}finally{f=!0}}})},buildGetDefaultEnhancers=o=>function(s){const{autoBatch:c=!0}=s!=null?s:{};let f=new Tuple(o);return c&&f.push(autoBatchEnhancer(typeof c=="object"?c:void 0)),f},IS_PRODUCTION=!0;function configureStore(o){const a=buildGetDefaultMiddleware(),{reducer:s=void 0,middleware:c,devTools:f=!0,preloadedState:d=void 0,enhancers:y=void 0}=o||{};let _;if(typeof s=="function")_=s;else if(isPlainObject$2(s))_=combineReducers(s);else throw new Error(formatProdErrorMessage$1(1));let S;typeof c=="function"?S=c(a):S=a();let b=compose;f&&(b=composeWithDevTools(se({trace:!IS_PRODUCTION},typeof f=="object"&&f)));const $=applyMiddleware(...S),P=buildGetDefaultEnhancers($);let T=typeof y=="function"?y(P):P();const C=b(...T);return createStore$1(_,d,C)}function executeReducerBuilderCallback(o){const a={},s=[];let c;const f={addCase(d,y){const _=typeof d=="string"?d:d.type;if(!_)throw new Error(formatProdErrorMessage$1(28));if(_ in a)throw new Error(formatProdErrorMessage$1(29));return a[_]=y,f},addMatcher(d,y){return s.push({matcher:d,reducer:y}),f},addDefaultCase(d){return c=d,f}};return o(f),[a,s,c]}function isStateFunction(o){return typeof o=="function"}function createReducer(o,a){let[s,c,f]=executeReducerBuilderCallback(a),d;if(isStateFunction(o))d=()=>freezeDraftable(o());else{const _=freezeDraftable(o);d=()=>_}function y(_=d(),S){let b=[s[S.type],...c.filter(({matcher:$})=>$(S)).map(({reducer:$})=>$)];return b.filter($=>!!$).length===0&&(b=[f]),b.reduce(($,P)=>{if(P)if(isDraft($)){const C=P($,S);return C===void 0?$:C}else{if(isDraftable($))return produce($,T=>P(T,S));{const T=P($,S);if(T===void 0){if($===null)return $;throw new Error(formatProdErrorMessage$1(9))}return T}}return $},_)}return y.getInitialState=d,y}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=(o=21)=>{let a="",s=o;for(;s--;)a+=urlAlphabet[Math.random()*64|0];return a},matches=(o,a)=>hasMatchFunction(o)?o.match(a):o(a);function isAnyOf(...o){return a=>o.some(s=>matches(s,a))}var commonProperties=["name","message","stack","code"],RejectWithValue=class{constructor(o,a){tr(this,"_type");this.payload=o,this.meta=a}},FulfillWithMeta=class{constructor(o,a){tr(this,"_type");this.payload=o,this.meta=a}},miniSerializeError=o=>{if(typeof o=="object"&&o!==null){const a={};for(const s of commonProperties)typeof o[s]=="string"&&(a[s]=o[s]);return a}return{message:String(o)}},createAsyncThunk=(()=>{function o(a,s,c){const f=createAction(a+"/fulfilled",(S,b,$,P)=>({payload:S,meta:$e(se({},P||{}),{arg:$,requestId:b,requestStatus:"fulfilled"})})),d=createAction(a+"/pending",(S,b,$)=>({payload:void 0,meta:$e(se({},$||{}),{arg:b,requestId:S,requestStatus:"pending"})})),y=createAction(a+"/rejected",(S,b,$,P,T)=>({payload:P,error:(c&&c.serializeError||miniSerializeError)(S||"Rejected"),meta:$e(se({},T||{}),{arg:$,requestId:b,rejectedWithValue:!!P,requestStatus:"rejected",aborted:(S==null?void 0:S.name)==="AbortError",condition:(S==null?void 0:S.name)==="ConditionError"})}));function _(S){return(b,$,P)=>{const T=c!=null&&c.idGenerator?c.idGenerator(S):nanoid(),C=new AbortController;let O;function A(j){O=j,C.abort()}const F=function(){return xt(this,null,function*(){var M,I;let j;try{let U=(M=c==null?void 0:c.condition)==null?void 0:M.call(c,S,{getState:$,extra:P});if(isThenable(U)&&(U=yield U),U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((H,G)=>C.signal.addEventListener("abort",()=>G({name:"AbortError",message:O||"Aborted"})));b(d(T,S,(I=c==null?void 0:c.getPendingMeta)==null?void 0:I.call(c,{requestId:T,arg:S},{getState:$,extra:P}))),j=yield Promise.race([z,Promise.resolve(s(S,{dispatch:b,getState:$,extra:P,requestId:T,signal:C.signal,abort:A,rejectWithValue:(H,G)=>new RejectWithValue(H,G),fulfillWithValue:(H,G)=>new FulfillWithMeta(H,G)})).then(H=>{if(H instanceof RejectWithValue)throw H;return H instanceof FulfillWithMeta?f(H.payload,T,S,H.meta):f(H,T,S)})])}catch(U){j=U instanceof RejectWithValue?y(null,T,S,U.payload,U.meta):y(U,T,S)}return c&&!c.dispatchConditionRejection&&y.match(j)&&j.meta.condition||b(j),j})}();return Object.assign(F,{abort:A,requestId:T,arg:S,unwrap(){return F.then(unwrapResult)}})}}return Object.assign(_,{pending:d,rejected:y,fulfilled:f,settled:isAnyOf(y,f),typePrefix:a})}return o.withTypes=()=>o,o})();function unwrapResult(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function isThenable(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(o,a){return`${o}/${a}`}function buildCreateSlice({creators:o}={}){var s;const a=(s=o==null?void 0:o.asyncThunk)==null?void 0:s[asyncThunkSymbol];return function(f){const{name:d,reducerPath:y=d}=f;if(!d)throw new Error(formatProdErrorMessage$1(11));const _=(typeof f.reducers=="function"?f.reducers(buildReducerCreators()):f.reducers)||{},S=Object.keys(_),b={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},$={addCase(F,j){const L=typeof F=="string"?F:F.type;if(!L)throw new Error(formatProdErrorMessage$1(12));if(L in b.sliceCaseReducersByType)throw new Error(formatProdErrorMessage$1(13));return b.sliceCaseReducersByType[L]=j,$},addMatcher(F,j){return b.sliceMatchers.push({matcher:F,reducer:j}),$},exposeAction(F,j){return b.actionCreators[F]=j,$},exposeCaseReducer(F,j){return b.sliceCaseReducersByName[F]=j,$}};S.forEach(F=>{const j=_[F],L={reducerName:F,type:getType(d,F),createNotation:typeof f.reducers=="function"};isAsyncThunkSliceReducerDefinition(j)?handleThunkCaseReducerDefinition(L,j,$,a):handleNormalReducerDefinition(L,j,$)});function P(){const[F={},j=[],L=void 0]=typeof f.extraReducers=="function"?executeReducerBuilderCallback(f.extraReducers):[f.extraReducers],M=se(se({},F),b.sliceCaseReducersByType);return createReducer(f.initialState,I=>{for(let U in M)I.addCase(U,M[U]);for(let U of b.sliceMatchers)I.addMatcher(U.matcher,U.reducer);for(let U of j)I.addMatcher(U.matcher,U.reducer);L&&I.addDefaultCase(L)})}const T=F=>F,C=new WeakMap;let O;const A={name:d,reducerPath:y,reducer(F,j){return O||(O=P()),O(F,j)},actions:b.actionCreators,caseReducers:b.sliceCaseReducersByName,getInitialState(){return O||(O=P()),O.getInitialState()},getSelectors(F=T){const j=emplace(C,this,{insert:()=>new WeakMap});return emplace(j,F,{insert:()=>{var M;const L={};for(const[I,U]of Object.entries((M=f.selectors)!=null?M:{}))L[I]=wrapSelector(this,U,F,this!==A);return L}})},selectSlice(F){let j=F[this.reducerPath];return typeof j=="undefined"&&this!==A&&(j=this.getInitialState()),j},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(F,M={}){var I=M,{reducerPath:j}=I,L=er(I,["reducerPath"]);const U=j!=null?j:this.reducerPath;return F.inject({reducerPath:U,reducer:this.reducer},L),$e(se({},this),{reducerPath:U})}};return A}}function wrapSelector(o,a,s,c){function f(d,...y){let _=s.call(o,d);return typeof _=="undefined"&&c&&(_=o.getInitialState()),a(_,...y)}return f.unwrapped=a,f}var createSlice=buildCreateSlice();function buildReducerCreators(){function o(a,s){return se({_reducerDefinitionType:"asyncThunk",payloadCreator:a},s)}return o.withTypes=()=>o,{reducer(a){return Object.assign({[a.name](...s){return a(...s)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,s){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:s}},asyncThunk:o}}function handleNormalReducerDefinition({type:o,reducerName:a,createNotation:s},c,f){let d,y;if("reducer"in c){if(s&&!isCaseReducerWithPrepareDefinition(c))throw new Error(formatProdErrorMessage$1(17));d=c.reducer,y=c.prepare}else d=c;f.addCase(o,d).exposeCaseReducer(a,d).exposeAction(a,y?createAction(o,y):createAction(o))}function isAsyncThunkSliceReducerDefinition(o){return o._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(o){return o._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:o,reducerName:a},s,c,f){if(!f)throw new Error(formatProdErrorMessage$1(18));const{payloadCreator:d,fulfilled:y,pending:_,rejected:S,settled:b,options:$}=s,P=f(o,d,$);c.exposeAction(a,P),y&&c.addCase(P.fulfilled,y),_&&c.addCase(P.pending,_),S&&c.addCase(P.rejected,S),b&&c.addMatcher(P.settled,b),c.exposeCaseReducer(a,{fulfilled:y||noop$1,pending:_||noop$1,rejected:S||noop$1,settled:b||noop$1})}function noop$1(){}var alm="listenerMiddleware";createAction(`${alm}/add`);createAction(`${alm}/removeAll`);createAction(`${alm}/remove`);function formatProdErrorMessage$1(o){return`Minified Redux Toolkit error #${o}; visit https://redux-toolkit.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var KEY_PREFIX="persist:",FLUSH="persist/FLUSH",REHYDRATE="persist/REHYDRATE",PAUSE="persist/PAUSE",PERSIST="persist/PERSIST",PURGE="persist/PURGE",REGISTER="persist/REGISTER",DEFAULT_VERSION=-1;function _typeof$1(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(s){return typeof s}:_typeof$1=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(o)}function ownKeys$2(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$2(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var DEFAULT_TIMEOUT=5e3;function persistReducer(o,a){var s=o.version!==void 0?o.version:DEFAULT_VERSION;o.debug;var c=o.stateReconciler===void 0?autoMergeLevel1:o.stateReconciler,f=o.getStoredState||getStoredState,d=o.timeout!==void 0?o.timeout:DEFAULT_TIMEOUT,y=null,_=!1,S=!0,b=function(P){return P._persist.rehydrated&&y&&!S&&y.update(P),P};return function($,P){var T=$||{},C=T._persist,O=_objectWithoutProperties(T,["_persist"]),A=O;if(P.type===PERSIST){var F=!1,j=function(G,X){F||(P.rehydrate(o.key,G,X),F=!0)};if(d&&setTimeout(function(){!F&&j(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(o.key,'"')))},d),S=!1,y||(y=createPersistoid(o)),C)return _objectSpread$1({},a(A,P),{_persist:C});if(typeof P.rehydrate!="function"||typeof P.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return P.register(o.key),f(o).then(function(H){var G=o.migrate||function(X,W){return Promise.resolve(X)};G(H,s).then(function(X){j(X)},function(X){j(void 0,X)})},function(H){j(void 0,H)}),_objectSpread$1({},a(A,P),{_persist:{version:s,rehydrated:!1}})}else{if(P.type===PURGE)return _=!0,P.result(purgeStoredState(o)),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===FLUSH)return P.result(y&&y.flush()),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===PAUSE)S=!0;else if(P.type===REHYDRATE){if(_)return _objectSpread$1({},A,{_persist:_objectSpread$1({},C,{rehydrated:!0})});if(P.key===o.key){var L=a(A,P),M=P.payload,I=c!==!1&&M!==void 0?c(M,$,L,o):L,U=_objectSpread$1({},I,{_persist:_objectSpread$1({},C,{rehydrated:!0})});return b(U)}}}if(!C)return a($,P);var z=a(A,P);return z===A?$:b(_objectSpread$1({},z,{_persist:C}))}}function formatProdErrorMessage(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var $$observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(o){if(typeof o!="object"||o===null)return!1;for(var a=o;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a}function createStore(o,a,s){var c;if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage(1));return s(createStore)(o,a)}if(typeof o!="function")throw new Error(formatProdErrorMessage(2));var f=o,d=a,y=[],_=y,S=!1;function b(){_===y&&(_=y.slice())}function $(){if(S)throw new Error(formatProdErrorMessage(3));return d}function P(A){if(typeof A!="function")throw new Error(formatProdErrorMessage(4));if(S)throw new Error(formatProdErrorMessage(5));var F=!0;return b(),_.push(A),function(){if(F){if(S)throw new Error(formatProdErrorMessage(6));F=!1,b();var L=_.indexOf(A);_.splice(L,1),y=null}}}function T(A){if(!isPlainObject(A))throw new Error(formatProdErrorMessage(7));if(typeof A.type=="undefined")throw new Error(formatProdErrorMessage(8));if(S)throw new Error(formatProdErrorMessage(9));try{S=!0,d=f(d,A)}finally{S=!1}for(var F=y=_,j=0;j0&&arguments[0]!==void 0?arguments[0]:initialState$2,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case REGISTER:return _objectSpread({},a,{registry:[].concat(_toConsumableArray(a.registry),[s.key])});case REHYDRATE:var c=a.registry.indexOf(s.key),f=_toConsumableArray(a.registry);return f.splice(c,1),_objectSpread({},a,{registry:f,bootstrapped:f.length===0});default:return a}};function persistStore(o,a,s){var c=s||!1,f=createStore(persistorReducer,initialState$2,a&&a.enhancer?a.enhancer:void 0),d=function(b){f.dispatch({type:REGISTER,key:b})},y=function(b,$,P){var T={type:REHYDRATE,payload:$,err:P,key:b};o.dispatch(T),f.dispatch(T),c&&_.getState().bootstrapped&&(c(),c=!1)},_=_objectSpread({},f,{purge:function(){var b=[];return o.dispatch({type:PURGE,result:function(P){b.push(P)}}),Promise.all(b)},flush:function(){var b=[];return o.dispatch({type:FLUSH,result:function(P){b.push(P)}}),Promise.all(b)},pause:function(){o.dispatch({type:PAUSE})},persist:function(){o.dispatch({type:PERSIST,register:d,rehydrate:y})}});return a&&a.manualPersist||_.persist(),_}var createWebStorage$1={},getStorage$1={};getStorage$1.__esModule=!0;getStorage$1.default=getStorage;function _typeof(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(s){return typeof s}:_typeof=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(o)}function noop(){}var noopStorage={getItem:noop,setItem:noop,removeItem:noop};function hasStorage(o){if((typeof self=="undefined"?"undefined":_typeof(self))!=="object"||!(o in self))return!1;try{var a=self[o],s="redux-persist ".concat(o," test");a.setItem(s,"test"),a.getItem(s),a.removeItem(s)}catch(c){return!1}return!0}function getStorage(o){var a="".concat(o,"Storage");return hasStorage(a)?self[a]:noopStorage}createWebStorage$1.__esModule=!0;createWebStorage$1.default=createWebStorage;var _getStorage=_interopRequireDefault$1(getStorage$1);function _interopRequireDefault$1(o){return o&&o.__esModule?o:{default:o}}function createWebStorage(o){var a=(0,_getStorage.default)(o);return{getItem:function(c){return new Promise(function(f,d){f(a.getItem(c))})},setItem:function(c,f){return new Promise(function(d,y){d(a.setItem(c,f))})},removeItem:function(c){return new Promise(function(f,d){f(a.removeItem(c))})}}}var default_1=void 0,_createWebStorage=_interopRequireDefault(createWebStorage$1);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var _default=(0,_createWebStorage.default)("local");default_1=_default;const initialState$1={menuList:[],isCollapse:!1},menu=createSlice({name:"menu",initialState:initialState$1,reducers:{setMenuList:(o,a)=>{o.menuList=a.payload},updateCollapse:(o,a)=>{o.isCollapse=a.payload}}}),{setMenuList,updateCollapse}=menu.actions,menuSlice=menu.reducer,initialState={visitedTags:[],cachedTags:[]},createAppAsyncThunk=createAsyncThunk.withTypes(),tags=createSlice({name:"tags",initialState,reducers:{addVisitedTags:(o,a)=>{const s=o.visitedTags.findIndex(c=>c.path===a.payload.path);s<0?o.visitedTags.push(a.payload):o.visitedTags[s]=se(se({},o.visitedTags[s]),a.payload)},updateVisitedTags:(o,a)=>{o.visitedTags=a.payload},closeTagsByType:(o,a)=>{let s=[];const{type:c,path:f}=a.payload,{visitedTags:d}=o,y=d.findIndex(S=>S.fullPath===f),_=d.filter(S=>{var b;return(b=S==null?void 0:S.meta)==null?void 0:b.affix});switch(c){case"left":s=d.slice(y);break;case"right":s=d.slice(0,y+1);break;case"other":s=d.filter(S=>S.fullPath===f);break}o.visitedTags=_.concat(s.filter(S=>{var b;return!((b=S.meta)!=null&&b.affix)}))}}}),closeTagByKey=createAppAsyncThunk("tags/closeTagByKey",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.findIndex(y=>y.fullPath===o),d=c.filter(y=>y.fullPath!==o);return s(updateVisitedTags(d)),Promise.resolve({tagIndex:f,tagsList:d})}),closeAllTags=createAppAsyncThunk("tags/closeAllTags",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.filter(d=>{var y;return(y=d==null?void 0:d.meta)==null?void 0:y.affix});return s(updateVisitedTags(f)),Promise.resolve(f)}),{addVisitedTags,updateVisitedTags,closeTagsByType}=tags.actions,tagsSlice=tags.reducer,persistConfig={key:"redux-persist",storage:default_1},store=configureStore({reducer:{menu:persistReducer(persistConfig,menuSlice),tags:persistReducer(persistConfig,tagsSlice)},middleware:o=>o({serializableCheck:!1}),devTools:!0}),persistor=persistStore(store),useAppDispatch=useDispatch,useAppSelector=useSelector,useStyles$7=createStyles(({token:o},a)=>{const{active:s}=a;return{"compo_tag-item":{display:"inline-block",verticalAlign:"top",height:"24px",margin:"0 2px",padding:"0 8px",borderRadius:"3px",lineHeight:"24px",color:s?"#fff":"#555",background:s?o.colorPrimary:"#fff",overflow:"hidden",cursor:"pointer","&__dot":{display:"inline-block",verticalAlign:"baseline",width:"8px",height:"8px",marginRight:"6px",borderRadius:"50%",background:s?"#fff":"#dcdee0"},"&__name":{fontSize:"12px"}},verticalAlign:"baseline",svg:{width:"8px",height:"8px"},active:{border:"none",color:"#fff",background:o.colorPrimary,".anticon-close":{color:"#fff"}}}}),TagItem=({name:o,fixed:a,active:s=!1,closeTag:c,onClick:f})=>{const{styles:d}=useStyles$7({active:s});return jsxRuntimeExports.jsxs(Tag$1,{className:classNames(d["compo_tag-item"],{[d.active]:s}),closable:!a,onClose:c,onClick:f,children:[jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__dot`}),jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__name`,children:o})]})},useStyles$6=createStyles(()=>({layout_tags:{zIndex:"299",display:"flex",justifyContent:"space-between",height:"32px",padding:"4px 12px",lineHeight:"32px","&__main":{position:"relative",width:"calc(100% - 116px)",height:"24px",overflow:"hidden","&-body":{position:"absolute",height:"100%",padding:"0 2px",overflow:"visible",whiteSpace:"nowrap",transition:"left .5s ease"}},"&__btn-space":{marginLeft:"4px"}}})),LayoutTags=()=>{const{t:o}=useTranslation(),{styles:a}=useStyles$6(),s=[{key:"left",label:o("关闭左侧")},{key:"right",label:o("关闭右侧")},{key:"other",label:o("关闭其它")},{key:"all",label:o("关闭所有")}],c=({key:z})=>{z==="all"?P(closeAllTags()).then(({payload:H})=>{const G=H.slice(-1)[0];T!==(G==null?void 0:G.fullPath)&&b(G==null?void 0:G.fullPath)}):P(closeTagsByType({type:z,path:T}))},f=reactExports.useRef(null),d=reactExports.useRef(null),[y,_]=reactExports.useState(0),{pathname:S}=useLocation(),b=useNavigate(),$=useAppSelector(z=>z.tags.visitedTags),P=useAppDispatch(),[T,C]=reactExports.useState(S);reactExports.useEffect(()=>{O(routeList).forEach(H=>{P(addVisitedTags(H))})},[]),reactExports.useEffect(()=>{const z=searchRoute(S,routeList);z&&P(addVisitedTags(z)),C(S)},[S]),reactExports.useEffect(()=>{var G;const z=(G=d.current)==null?void 0:G.childNodes,H=Array.from(z).find(X=>X.dataset.path===T);A(H)},[T]);const O=(z,H="/")=>{const G=[],X=W=>{var K;if((K=W.meta)!=null&&K.affix){const ie=W.path.startsWith("/")?W.path:H+W.path;G.push($e(se({},W),{path:ie}))}W.children&&W.children.length&&W.children.forEach(ie=>X(ie))};return z.forEach(W=>X(W)),G},A=z=>{var K,ie,ee,de,Z,Q,J,ne,fe,le,ae;let H=0;const G=4,X=(K=f.current)==null?void 0:K.offsetWidth;((ie=d.current)==null?void 0:ie.offsetWidth)-y&&((Q=z==null?void 0:z.offsetLeft)!=null?Q:0)+((J=z==null?void 0:z.offsetWidth)!=null?J:0)<-y+X?H=Math.min(0,X-((ne=z==null?void 0:z.offsetWidth)!=null?ne:0)-((fe=z==null?void 0:z.offsetLeft)!=null?fe:0)-G):H=-(((le=z==null?void 0:z.offsetLeft)!=null?le:0)-(X-G-((ae=z==null?void 0:z.offsetWidth)!=null?ae:0))),_(H)},F=z=>{var W,K;let H=0;const G=(W=f.current)==null?void 0:W.offsetWidth,X=(K=d.current)==null?void 0:K.offsetWidth;z>0?H=Math.min(0,y+z):G=-(X-G)&&(H=Math.max(y+z,G-X)):H=0,_(H)},j=z=>{const{type:H}=z;let G=0;H==="wheel"&&(G=z.deltaY?z.deltaY*2:-(z.detail||0)*2),F(G)},L=z=>{P(closeTagByKey(z)).then(({payload:H})=>{let G={};const{tagIndex:X,tagsList:W}=H,K=W.length;z===T&&(X<=K-1?G=W[X]:G=W[K-1],b(G==null?void 0:G.fullPath))})},M=z=>{C(z),b(z)};function I(){return new Date().getTime().toString()}const U=()=>{$.findIndex(H=>H.fullPath===T)>=0&&b(T,{replace:!0,state:{key:I()}})};return jsxRuntimeExports.jsxs("div",{className:a.layout_tags,children:[jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(LeftOutlined,{}),size:"small",onClick:()=>F(200)}),jsxRuntimeExports.jsx("div",{ref:f,className:`${a.layout_tags}__main`,onWheel:j,children:jsxRuntimeExports.jsx("div",{ref:d,className:`${a.layout_tags}__main-body`,style:{left:`${y}px`},children:$.map(z=>{var H,G;return jsxRuntimeExports.jsx("span",{"data-path":z.fullPath,children:jsxRuntimeExports.jsx(TagItem,{name:o((H=z.meta)==null?void 0:H.title),active:T===z.fullPath,fixed:(G=z.meta)==null?void 0:G.affix,onClick:()=>M(z.fullPath),closeTag:()=>L(z.fullPath)},z.key)},z.fullPath)})})}),jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(RightOutlined,{}),size:"small",onClick:()=>F(-200)}),jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(RedoOutlined,{}),size:"small",onClick:()=>U()}),jsxRuntimeExports.jsx(Dropdown,{menu:{items:s,onClick:c},placement:"bottomLeft",children:jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(CloseOutlined,{}),size:"small"})})]})};function LayoutBreadcrumb(o){const{t:a,i18n:s}=useTranslation(),[c,f]=reactExports.useState([]),{pathname:d}=useLocation(),y=useAppSelector(_=>_.menu.menuList);return reactExports.useEffect(()=>{const S=(matchRoutes(y,d)||[]).map(b=>{const{name:$,icon:P=""}=b==null?void 0:b.route;return{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[P&&jsxRuntimeExports.jsx(SvgIcon,{name:P,style:{marginRight:8}}),jsxRuntimeExports.jsx("span",{children:a($)})]})}});f(S)},[d,s.language]),jsxRuntimeExports.jsx("div",{className:"flex-center-v",style:{padding:"0 16px"},children:jsxRuntimeExports.jsx(Breadcrumb,{items:c})})}const useStyles$5=createStyles(()=>({"compo_fold-trigger":{display:"flex",alignItems:"center",cursor:"pointer"},unfold:{svg:{transform:"scaleX(-1)",transition:"transform 0.2s"}}}));function FoldTrigger(){const{styles:o,cx:a}=useStyles$5(),s=useSettings(),{setSettings:c}=useSettingActions();function f(){c($e(se({},s),{unfold:!s.unfold}))}return jsxRuntimeExports.jsx("span",{className:a(o["compo_fold-trigger"],{[o.unfold]:!s.unfold}),onClick:f,children:jsxRuntimeExports.jsx(SvgIcon,{name:"unfold",size:20})})}const useStyles$4=createStyles(({token:o})=>({"layout-header":{flexDirection:"column",height:"auto",background:o.colorBgBase,padding:0,boxShadow:o.boxShadowTertiary}})),LayoutHeader=o=>{const{Header:a}=Layout,{styles:s}=useStyles$4(),{hasCrumbs:c,hasTabs:f}=useGlobalStore();return jsxRuntimeExports.jsxs(a,{className:classNames("flex-between-h",s["layout-header"]),children:[jsxRuntimeExports.jsxs("div",{className:"flex-between-h",style:{padding:"0 12px"},children:[jsxRuntimeExports.jsxs("div",{className:"flex-center-v",children:[jsxRuntimeExports.jsx(FoldTrigger,{}),c&&jsxRuntimeExports.jsx(LayoutBreadcrumb,{})]}),jsxRuntimeExports.jsx(LayoutFeature,{})]}),f?jsxRuntimeExports.jsx(LayoutTags,{}):null]})},useStyles$3=createStyles(({token:o})=>({layout_wrapper:{display:"flex",width:"100%",height:"100vh",overflowX:"hidden",background:o.colorBgContainer,".ant-layout-content":{height:"calc(100vh - 48px)",boxSizing:"border-box",flex:"1",padding:o.paddingMD,overflowX:"hidden"},".ant-layout-sider":{height:"calc(100vh)",borderInlineEnd:"1px solid rgba(5, 5, 5, 0.06)",marginInlineEnd:"-1px"},".ant-layout":{background:o.colorBgContainer}}})),useStyles$2=createStyles(()=>({anticon:{display:"inline-flex",alignItems:"center",verticalAlign:"middle",cursor:"pointer",svg:{display:"inline-block"}}}));function IconifyIcon(c){var f=c,{icon:o,size:a}=f,s=er(f,["icon","size"]);const{styles:d}=useStyles$2();return jsxRuntimeExports.jsx(Icon,$e(se({icon:o},s),{className:d.anticon,width:a}))}const getOpenKeys=o=>{let a="";const s=[];return o.split("/").forEach(c=>{c&&(a+=`/${c}`,s.push(a))}),s.slice(0,-1)},getItem=(o,a,s,c,f)=>({label:o,key:a,icon:s,children:c,type:f}),LayoutMenu=o=>{const{pathname:a}=useLocation(),{setMenuList:s}=o,[c,f]=reactExports.useState(!1),[d,y]=reactExports.useState([]),[_,S]=reactExports.useState([]),[b,$]=reactExports.useState([a]),{t:P,i18n:T}=useTranslation();reactExports.useEffect(()=>{$([a]),S(getOpenKeys(a))},[a]);const C=(M,I)=>M?M.startsWith("gbeata-")?jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(IconifyIcon,{icon:M.replace("gbeata-",""),size:I||16})}):jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(SvgIcon,{name:M,size:I||16})}):null,O=(M,I=[])=>(M.forEach(U=>{var z;if(!((z=U==null?void 0:U.children)!=null&&z.length))return I.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize)));I.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize),O(U.children)))}),I),A=()=>xt(void 0,null,function*(){f(!0);try{const M=yield getAsyncMenus();y(O(M)),s(M)}finally{f(!1)}});reactExports.useEffect(()=>{A()},[T.language]);const F=M=>{if(M.length===0||M.length===1)return S(M);const I=M[M.length-1];if(I.includes(M[0]))return S(M);S([I])},j=useNavigate(),L=({key:M})=>{j(M)};return jsxRuntimeExports.jsx("div",{className:"layout_menu",children:jsxRuntimeExports.jsx(Spin,{spinning:c,tip:"Loading...",children:jsxRuntimeExports.jsx(Menu,{style:{border:"none"},mode:"inline",triggerSubMenuAction:"click",inlineIndent:20,subMenuOpenDelay:.2,openKeys:_,selectedKeys:b,items:d,onClick:L,onOpenChange:F})})})},mapStateToProps=o=>o.menu,mapDispatchToProps={setMenuList},LayoutMenu$1=connect(mapStateToProps,mapDispatchToProps)(LayoutMenu),BasicLayout=o=>{const{state:a}=useLocation(),{unfold:s}=useSettings(),{key:c="key"}=a||{};useTitle();const{Sider:f,Content:d}=Layout,{styles:y}=useStyles$3();return jsxRuntimeExports.jsxs(Layout,{className:y.layout_wrapper,children:[jsxRuntimeExports.jsxs(f,{width:240,trigger:null,theme:"light",collapsed:s,className:"ant-layout-sider",children:[jsxRuntimeExports.jsx(AppLogo,{}),jsxRuntimeExports.jsx(LayoutMenu$1,{})]}),jsxRuntimeExports.jsxs(Layout,{children:[jsxRuntimeExports.jsx(LayoutHeader,{}),jsxRuntimeExports.jsx(d,{children:jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsx(Outlet,{},c)})})]})]})},GuardRoute=({children:o})=>{const a=["/","/home","/login"],{pathname:s}=useLocation(),{token:c}=useUserToken();return c?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o}):a.includes(s)?jsxRuntimeExports.jsx(Navigate,{to:"/login",replace:!0}):jsxRuntimeExports.jsx(Navigate,{to:`/login?redirect=${s}`,replace:!0})},LayoutGuard=()=>jsxRuntimeExports.jsx(GuardRoute,{children:jsxRuntimeExports.jsx(BasicLayout,{})}),CompoRoute={path:"/compo",name:"Compo",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"组件",icon:"compo",orderNo:6},children:[{path:"image-upload",name:"ImageUpload",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../image-upload-87284309.js"),["assets/image-upload-87284309.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-69561885.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"图片上传",key:"imageUpload"}},{path:"drag",name:"Drag",meta:{title:"拖拽"},children:[{path:"drag-list",name:"DragList",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-list-7462ea32.js"),["assets/drag-list-7462ea32.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-69561885.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"列表拖拽",key:"dragList"}},{path:"drag-resize",name:"DragResize",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-resize-33f7a149.js"),["assets/drag-resize-33f7a149.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-69561885.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"组件拖拽",key:"dragResize"}}]},{path:"transfer",name:"Transfer",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-f6885d90.js"),["assets/index-f6885d90.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-69561885.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"穿梭框"}},{path:"count-up",name:"CountUp",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../count-up-48edea88.js"),["assets/count-up-48edea88.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-646dffa4.js","assets/websiteSetting-69561885.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"数字滚动",key:"countUp"}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:CompoRoute},Symbol.toStringTag,{value:"Module"}));var ExceptionEnum=(o=>(o[o.PAGE_NOT_ACCESS=403]="PAGE_NOT_ACCESS",o[o.PAGE_NOT_FOUND=404]="PAGE_NOT_FOUND",o[o.SERVER_ERROR=500]="SERVER_ERROR",o))(ExceptionEnum||{});const ExceptionRoute={path:"/exception",name:"ExceptionPage",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"异常页面",icon:"bug",orderNo:11},children:[{path:"page-403",name:"Page403",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"403页面",key:"page403"},loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!0})},{path:"page-404",name:"Page404",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"404页面",key:"page404"},loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!0})},{path:"page-500",name:"Page500",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"500页面",key:"page500"},loader:()=>({status:ExceptionEnum.SERVER_ERROR,withCard:!0})}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:ExceptionRoute},Symbol.toStringTag,{value:"Module"})),FormRoute={path:"/form",name:"Form",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"表单",icon:"form",orderNo:3},children:[{path:"basic-form",name:"BasicForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-7f59d8be.js"),["assets/index-7f59d8be.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-69561885.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"基础表单",key:"basicForm"}},{path:"search-form",name:"SearchForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-a3765b7b.js"),["assets/index-a3765b7b.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-fa5fcbe6.js","assets/websiteSetting-69561885.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"查询表单",key:"searchForm"}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormRoute},Symbol.toStringTag,{value:"Module"})),HomePage=lazy$2(()=>__vitePreload(()=>import("../index-4e2f5616.js"),["assets/index-4e2f5616.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-14e57f5a.js","assets/Translatex-79fd201f.js","assets/index-646dffa4.js","assets/index-bca57653.js","assets/index-fa5fcbe6.js"])),HomeRoute={path:"/home",element:jsxRuntimeExports.jsx(LayoutGuard,{}),loader:()=>null,meta:{title:"首页",icon:"home",affix:!0,orderNo:1,hideChildrenInMenu:!0},children:[{path:"",element:LazyLoad(HomePage),meta:{title:"首页",key:"home",icon:"home",orderNo:1,hideMenu:!0}}]},__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:HomeRoute},Symbol.toStringTag,{value:"Module"})),UserRoute$1={path:"/system",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:t("系统设置"),icon:"gbeata-ant-design:setting-outlined",orderNo:13,iconSize:20},children:[{path:"role",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-4c932eeb.js"),["assets/index-4c932eeb.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/api-adec7257.js","assets/index-bca57653.js","assets/index-fa5fcbe6.js"]))),meta:{title:t("角色管理"),key:"role"}},{path:"user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-7bd58267.js"),["assets/index-7bd58267.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/api-adec7257.js","assets/index-bca57653.js","assets/index-fa5fcbe6.js"]))),meta:{title:t("用户管理"),key:"user"}},{path:"permission",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-66bd2c8e.js"),["assets/index-66bd2c8e.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-bca57653.js","assets/index-fa5fcbe6.js"]))),meta:{title:t("权限管理"),key:"permission"}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute$1},Symbol.toStringTag,{value:"Module"})),UserRoute={path:"/user",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"用户管理",icon:"ic_user",orderNo:2,iconSize:20},children:[{path:"profile",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-ef7ae87b.js"),["assets/index-ef7ae87b.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/Translatex-79fd201f.js","assets/index-14e57f5a.js"]))),meta:{title:"个人中心",key:"profile"}},{path:"user-list",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-0e54c7e1.js"),["assets/index-0e54c7e1.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-14e57f5a.js","assets/Translatex-79fd201f.js"]))),meta:{title:"用户列表",key:"userList"}},{path:"add-user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-c414dc67.js"),["assets/index-c414dc67.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/Translatex-79fd201f.js"]))),meta:{title:"添加用户",key:"addUser"}}]},__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute},Symbol.toStringTag,{value:"Module"})),TOKEN_KEY="TOKEN_KEY",APP_LOCAL_CACHE_KEY="APP_LOCAL_CACHE_KEY",APP_SESSION_CACHE_KEY="APP_SESSION_CACHE_KEY";var CacheTypeEnum=(o=>(o[o.SESSION=0]="SESSION",o[o.LOCAL=1]="LOCAL",o))(CacheTypeEnum||{}),MenuTypeEnum=(o=>(o.SIDER_MENU="sider-menu",o.HEADER_MENU="header-menu",o.HYBRID_MENU="hybrid-menu",o))(MenuTypeEnum||{}),MenuModeEnum=(o=>(o.VERTICAL="vertical",o.HORIZONTAL="horizontal",o.INLINE="inline",o))(MenuModeEnum||{}),MenuFoldBtnEnum=(o=>(o.NONE="none",o.HEADER="header",o.SIDER="sider",o))(MenuFoldBtnEnum||{});const appSetting={themeColor:"#1890ff",permissionCacheType:CacheTypeEnum.LOCAL,headerSetting:{showBreadCrumb:!0,showTags:!0,showSearch:!0,showFullScreen:!0,showLocale:!1,showDoc:!1,showGithub:!0},menuSetting:{menuType:MenuTypeEnum.SIDER_MENU,menuMode:MenuModeEnum.INLINE,menuTheme:ThemeEnum.DARK,menuSplit:!1,menuCanDrag:!1,menuFold:!1,menuFoldBtn:MenuFoldBtnEnum.HEADER,menuFoldShowTitle:!1,menuWidth:210,menuFixed:!1,menuHidden:!1},transitionSetting:{openNProgress:!1,openPageLoading:!1,openTransition:!0,basicTransition:PageTransitionEnum.FADE},permissionMode:PermissionModeEnum.MAPPING,tagsCached:!1,openKeepAlive:!0,lockScreenTime:0,showFooter:!1,colorWeak:!1,grayMode:!1};function isDevMode(){return!1}const DEFAULT_CACHE_TIME=60*60*24*7,cacheCipher={key:"_11111000001111@",iv:"@11111000001111_"},enableStorageEncryption=!isDevMode();var aes={exports:{}},core={exports:{}},hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(o,a){(function(s,c){o.exports=c()})(commonjsGlobal,function(){var s=s||function(c,f){var d;if(typeof window!="undefined"&&window.crypto&&(d=window.crypto),typeof self!="undefined"&&self.crypto&&(d=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(d=globalThis.crypto),!d&&typeof window!="undefined"&&window.msCrypto&&(d=window.msCrypto),!d&&typeof commonjsGlobal!="undefined"&&commonjsGlobal.crypto&&(d=commonjsGlobal.crypto),!d&&typeof commonjsRequire=="function")try{d=require$$0}catch(L){}var y=function(){if(d){if(typeof d.getRandomValues=="function")try{return d.getRandomValues(new Uint32Array(1))[0]}catch(L){}if(typeof d.randomBytes=="function")try{return d.randomBytes(4).readInt32LE()}catch(L){}}throw new Error("Native crypto module could not be used to get secure random number.")},_=Object.create||function(){function L(){}return function(M){var I;return L.prototype=M,I=new L,L.prototype=null,I}}(),S={},b=S.lib={},$=b.Base=function(){return{extend:function(L){var M=_(this);return L&&M.mixIn(L),(!M.hasOwnProperty("init")||this.init===M.init)&&(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var L=this.extend();return L.init.apply(L,arguments),L},init:function(){},mixIn:function(L){for(var M in L)L.hasOwnProperty(M)&&(this[M]=L[M]);L.hasOwnProperty("toString")&&(this.toString=L.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),P=b.WordArray=$.extend({init:function(L,M){L=this.words=L||[],M!=f?this.sigBytes=M:this.sigBytes=L.length*4},toString:function(L){return(L||C).stringify(this)},concat:function(L){var M=this.words,I=L.words,U=this.sigBytes,z=L.sigBytes;if(this.clamp(),U%4)for(var H=0;H>>2]>>>24-H%4*8&255;M[U+H>>>2]|=G<<24-(U+H)%4*8}else for(var X=0;X>>2]=I[X>>>2];return this.sigBytes+=z,this},clamp:function(){var L=this.words,M=this.sigBytes;L[M>>>2]&=4294967295<<32-M%4*8,L.length=c.ceil(M/4)},clone:function(){var L=$.clone.call(this);return L.words=this.words.slice(0),L},random:function(L){for(var M=[],I=0;I>>2]>>>24-z%4*8&255;U.push((H>>>4).toString(16)),U.push((H&15).toString(16))}return U.join("")},parse:function(L){for(var M=L.length,I=[],U=0;U>>3]|=parseInt(L.substr(U,2),16)<<24-U%8*4;return new P.init(I,M/2)}},O=T.Latin1={stringify:function(L){for(var M=L.words,I=L.sigBytes,U=[],z=0;z>>2]>>>24-z%4*8&255;U.push(String.fromCharCode(H))}return U.join("")},parse:function(L){for(var M=L.length,I=[],U=0;U>>2]|=(L.charCodeAt(U)&255)<<24-U%4*8;return new P.init(I,M)}},A=T.Utf8={stringify:function(L){try{return decodeURIComponent(escape(O.stringify(L)))}catch(M){throw new Error("Malformed UTF-8 data")}},parse:function(L){return O.parse(unescape(encodeURIComponent(L)))}},F=b.BufferedBlockAlgorithm=$.extend({reset:function(){this._data=new P.init,this._nDataBytes=0},_append:function(L){typeof L=="string"&&(L=A.parse(L)),this._data.concat(L),this._nDataBytes+=L.sigBytes},_process:function(L){var M,I=this._data,U=I.words,z=I.sigBytes,H=this.blockSize,G=H*4,X=z/G;L?X=c.ceil(X):X=c.max((X|0)-this._minBufferSize,0);var W=X*H,K=c.min(W*4,z);if(W){for(var ie=0;ie>>2]>>>24-C%4*8&255,A=b[C+1>>>2]>>>24-(C+1)%4*8&255,F=b[C+2>>>2]>>>24-(C+2)%4*8&255,j=O<<16|A<<8|F,L=0;L<4&&C+L*.75<$;L++)T.push(P.charAt(j>>>6*(3-L)&63));var M=P.charAt(64);if(M)for(;T.length%4;)T.push(M);return T.join("")},parse:function(S){var b=S.length,$=this._map,P=this._reverseMap;if(!P){P=this._reverseMap=[];for(var T=0;T<$.length;T++)P[$.charCodeAt(T)]=T}var C=$.charAt(64);if(C){var O=S.indexOf(C);O!==-1&&(b=O)}return _(S,b,P)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function _(S,b,$){for(var P=[],T=0,C=0;C>>6-C%4*2,F=O|A;P[T>>>2]|=F<<24-T%4*8,T++}return d.create(P,T)}}(),s.enc.Base64})}(encBase64)),encBase64.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(c){var f=s,d=f.lib,y=d.WordArray,_=d.Hasher,S=f.algo,b=[];(function(){for(var A=0;A<64;A++)b[A]=c.abs(c.sin(A+1))*4294967296|0})();var $=S.MD5=_.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(A,F){for(var j=0;j<16;j++){var L=F+j,M=A[L];A[L]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var I=this._hash.words,U=A[F+0],z=A[F+1],H=A[F+2],G=A[F+3],X=A[F+4],W=A[F+5],K=A[F+6],ie=A[F+7],ee=A[F+8],de=A[F+9],Z=A[F+10],Q=A[F+11],J=A[F+12],ne=A[F+13],fe=A[F+14],le=A[F+15],ae=I[0],ce=I[1],ge=I[2],pe=I[3];ae=P(ae,ce,ge,pe,U,7,b[0]),pe=P(pe,ae,ce,ge,z,12,b[1]),ge=P(ge,pe,ae,ce,H,17,b[2]),ce=P(ce,ge,pe,ae,G,22,b[3]),ae=P(ae,ce,ge,pe,X,7,b[4]),pe=P(pe,ae,ce,ge,W,12,b[5]),ge=P(ge,pe,ae,ce,K,17,b[6]),ce=P(ce,ge,pe,ae,ie,22,b[7]),ae=P(ae,ce,ge,pe,ee,7,b[8]),pe=P(pe,ae,ce,ge,de,12,b[9]),ge=P(ge,pe,ae,ce,Z,17,b[10]),ce=P(ce,ge,pe,ae,Q,22,b[11]),ae=P(ae,ce,ge,pe,J,7,b[12]),pe=P(pe,ae,ce,ge,ne,12,b[13]),ge=P(ge,pe,ae,ce,fe,17,b[14]),ce=P(ce,ge,pe,ae,le,22,b[15]),ae=T(ae,ce,ge,pe,z,5,b[16]),pe=T(pe,ae,ce,ge,K,9,b[17]),ge=T(ge,pe,ae,ce,Q,14,b[18]),ce=T(ce,ge,pe,ae,U,20,b[19]),ae=T(ae,ce,ge,pe,W,5,b[20]),pe=T(pe,ae,ce,ge,Z,9,b[21]),ge=T(ge,pe,ae,ce,le,14,b[22]),ce=T(ce,ge,pe,ae,X,20,b[23]),ae=T(ae,ce,ge,pe,de,5,b[24]),pe=T(pe,ae,ce,ge,fe,9,b[25]),ge=T(ge,pe,ae,ce,G,14,b[26]),ce=T(ce,ge,pe,ae,ee,20,b[27]),ae=T(ae,ce,ge,pe,ne,5,b[28]),pe=T(pe,ae,ce,ge,H,9,b[29]),ge=T(ge,pe,ae,ce,ie,14,b[30]),ce=T(ce,ge,pe,ae,J,20,b[31]),ae=C(ae,ce,ge,pe,W,4,b[32]),pe=C(pe,ae,ce,ge,ee,11,b[33]),ge=C(ge,pe,ae,ce,Q,16,b[34]),ce=C(ce,ge,pe,ae,fe,23,b[35]),ae=C(ae,ce,ge,pe,z,4,b[36]),pe=C(pe,ae,ce,ge,X,11,b[37]),ge=C(ge,pe,ae,ce,ie,16,b[38]),ce=C(ce,ge,pe,ae,Z,23,b[39]),ae=C(ae,ce,ge,pe,ne,4,b[40]),pe=C(pe,ae,ce,ge,U,11,b[41]),ge=C(ge,pe,ae,ce,G,16,b[42]),ce=C(ce,ge,pe,ae,K,23,b[43]),ae=C(ae,ce,ge,pe,de,4,b[44]),pe=C(pe,ae,ce,ge,J,11,b[45]),ge=C(ge,pe,ae,ce,le,16,b[46]),ce=C(ce,ge,pe,ae,H,23,b[47]),ae=O(ae,ce,ge,pe,U,6,b[48]),pe=O(pe,ae,ce,ge,ie,10,b[49]),ge=O(ge,pe,ae,ce,fe,15,b[50]),ce=O(ce,ge,pe,ae,W,21,b[51]),ae=O(ae,ce,ge,pe,J,6,b[52]),pe=O(pe,ae,ce,ge,G,10,b[53]),ge=O(ge,pe,ae,ce,Z,15,b[54]),ce=O(ce,ge,pe,ae,z,21,b[55]),ae=O(ae,ce,ge,pe,ee,6,b[56]),pe=O(pe,ae,ce,ge,le,10,b[57]),ge=O(ge,pe,ae,ce,K,15,b[58]),ce=O(ce,ge,pe,ae,ne,21,b[59]),ae=O(ae,ce,ge,pe,X,6,b[60]),pe=O(pe,ae,ce,ge,Q,10,b[61]),ge=O(ge,pe,ae,ce,H,15,b[62]),ce=O(ce,ge,pe,ae,de,21,b[63]),I[0]=I[0]+ae|0,I[1]=I[1]+ce|0,I[2]=I[2]+ge|0,I[3]=I[3]+pe|0},_doFinalize:function(){var A=this._data,F=A.words,j=this._nDataBytes*8,L=A.sigBytes*8;F[L>>>5]|=128<<24-L%32;var M=c.floor(j/4294967296),I=j;F[(L+64>>>9<<4)+15]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,F[(L+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,A.sigBytes=(F.length+1)*4,this._process();for(var U=this._hash,z=U.words,H=0;H<4;H++){var G=z[H];z[H]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}return U},clone:function(){var A=_.clone.call(this);return A._hash=this._hash.clone(),A}});function P(A,F,j,L,M,I,U){var z=A+(F&j|~F&L)+M+U;return(z<>>32-I)+F}function T(A,F,j,L,M,I,U){var z=A+(F&L|j&~L)+M+U;return(z<>>32-I)+F}function C(A,F,j,L,M,I,U){var z=A+(F^j^L)+M+U;return(z<>>32-I)+F}function O(A,F,j,L,M,I,U){var z=A+(j^(F|~L))+M+U;return(z<>>32-I)+F}f.MD5=_._createHelper($),f.HmacMD5=_._createHmacHelper($)}(Math),s.MD5})}(md5)),md5.exports}var evpkdf={exports:{}},sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.WordArray,y=f.Hasher,_=c.algo,S=[],b=_.SHA1=y.extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function($,P){for(var T=this._hash.words,C=T[0],O=T[1],A=T[2],F=T[3],j=T[4],L=0;L<80;L++){if(L<16)S[L]=$[P+L]|0;else{var M=S[L-3]^S[L-8]^S[L-14]^S[L-16];S[L]=M<<1|M>>>31}var I=(C<<5|C>>>27)+j+S[L];L<20?I+=(O&A|~O&F)+1518500249:L<40?I+=(O^A^F)+1859775393:L<60?I+=(O&A|O&F|A&F)-1894007588:I+=(O^A^F)-899497514,j=F,F=A,A=O<<30|O>>>2,O=C,C=I}T[0]=T[0]+C|0,T[1]=T[1]+O|0,T[2]=T[2]+A|0,T[3]=T[3]+F|0,T[4]=T[4]+j|0},_doFinalize:function(){var $=this._data,P=$.words,T=this._nDataBytes*8,C=$.sigBytes*8;return P[C>>>5]|=128<<24-C%32,P[(C+64>>>9<<4)+14]=Math.floor(T/4294967296),P[(C+64>>>9<<4)+15]=T,$.sigBytes=P.length*4,this._process(),this._hash},clone:function(){var $=y.clone.call(this);return $._hash=this._hash.clone(),$}});c.SHA1=y._createHelper(b),c.HmacSHA1=y._createHmacHelper(b)}(),s.SHA1})}(sha1)),sha1.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){(function(){var c=s,f=c.lib,d=f.Base,y=c.enc,_=y.Utf8,S=c.algo;S.HMAC=d.extend({init:function(b,$){b=this._hasher=new b.init,typeof $=="string"&&($=_.parse($));var P=b.blockSize,T=P*4;$.sigBytes>T&&($=b.finalize($)),$.clamp();for(var C=this._oKey=$.clone(),O=this._iKey=$.clone(),A=C.words,F=O.words,j=0;j>>2]&255;W.sigBytes-=K}};d.BlockCipher=C.extend({cfg:C.cfg.extend({mode:F,padding:L}),reset:function(){var W;C.reset.call(this);var K=this.cfg,ie=K.iv,ee=K.mode;this._xformMode==this._ENC_XFORM_MODE?W=ee.createEncryptor:(W=ee.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==W?this._mode.init(this,ie&&ie.words):(this._mode=W.call(ee,this,ie&&ie.words),this._mode.__creator=W)},_doProcessBlock:function(W,K){this._mode.processBlock(W,K)},_doFinalize:function(){var W,K=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(K.pad(this._data,this.blockSize),W=this._process(!0)):(W=this._process(!0),K.unpad(W)),W},blockSize:128/32});var M=d.CipherParams=y.extend({init:function(W){this.mixIn(W)},toString:function(W){return(W||this.formatter).stringify(this)}}),I=f.format={},U=I.OpenSSL={stringify:function(W){var K,ie=W.ciphertext,ee=W.salt;return ee?K=_.create([1398893684,1701076831]).concat(ee).concat(ie):K=ie,K.toString($)},parse:function(W){var K,ie=$.parse(W),ee=ie.words;return ee[0]==1398893684&&ee[1]==1701076831&&(K=_.create(ee.slice(2,4)),ee.splice(0,4),ie.sigBytes-=16),M.create({ciphertext:ie,salt:K})}},z=d.SerializableCipher=y.extend({cfg:y.extend({format:U}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=W.createEncryptor(ie,ee),Z=de.finalize(K),Q=de.cfg;return M.create({ciphertext:Z,key:ie,iv:Q.iv,algorithm:W,mode:Q.mode,padding:Q.padding,blockSize:W.blockSize,formatter:ee.format})},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=W.createDecryptor(ie,ee).finalize(K.ciphertext);return de},_parse:function(W,K){return typeof W=="string"?K.parse(W,this):W}}),H=f.kdf={},G=H.OpenSSL={execute:function(W,K,ie,ee,de){if(ee||(ee=_.random(64/8)),de)var Z=T.create({keySize:K+ie,hasher:de}).compute(W,ee);else var Z=T.create({keySize:K+ie}).compute(W,ee);var Q=_.create(Z.words.slice(K),ie*4);return Z.sigBytes=K*4,M.create({key:Z,iv:Q,salt:ee})}},X=d.PasswordBasedCipher=z.extend({cfg:z.cfg.extend({kdf:G}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,ee.salt,ee.hasher);ee.iv=de.iv;var Z=z.encrypt.call(this,W,K,de.key,ee);return Z.mixIn(de),Z},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,K.salt,ee.hasher);ee.iv=de.iv;var Z=z.decrypt.call(this,W,K,de.key,ee);return Z}})}()})}(cipherCore)),cipherCore.exports}(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.BlockCipher,y=c.algo,_=[],S=[],b=[],$=[],P=[],T=[],C=[],O=[],A=[],F=[];(function(){for(var M=[],I=0;I<256;I++)I<128?M[I]=I<<1:M[I]=I<<1^283;for(var U=0,z=0,I=0;I<256;I++){var H=z^z<<1^z<<2^z<<3^z<<4;H=H>>>8^H&255^99,_[U]=H,S[H]=U;var G=M[U],X=M[G],W=M[X],K=M[H]*257^H*16843008;b[U]=K<<24|K>>>8,$[U]=K<<16|K>>>16,P[U]=K<<8|K>>>24,T[U]=K;var K=W*16843009^X*65537^G*257^U*16843008;C[H]=K<<24|K>>>8,O[H]=K<<16|K>>>16,A[H]=K<<8|K>>>24,F[H]=K,U?(U=G^M[M[M[W^G]]],z^=M[M[z]]):U=z=1}})();var j=[0,1,2,4,8,16,32,64,128,27,54],L=y.AES=d.extend({_doReset:function(){var M;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var I=this._keyPriorReset=this._key,U=I.words,z=I.sigBytes/4,H=this._nRounds=z+6,G=(H+1)*4,X=this._keySchedule=[],W=0;W6&&W%z==4&&(M=_[M>>>24]<<24|_[M>>>16&255]<<16|_[M>>>8&255]<<8|_[M&255]):(M=M<<8|M>>>24,M=_[M>>>24]<<24|_[M>>>16&255]<<16|_[M>>>8&255]<<8|_[M&255],M^=j[W/z|0]<<24),X[W]=X[W-z]^M);for(var K=this._invKeySchedule=[],ie=0;ie>>24]]^O[_[M>>>16&255]]^A[_[M>>>8&255]]^F[_[M&255]]}}},encryptBlock:function(M,I){this._doCryptBlock(M,I,this._keySchedule,b,$,P,T,_)},decryptBlock:function(M,I){var U=M[I+1];M[I+1]=M[I+3],M[I+3]=U,this._doCryptBlock(M,I,this._invKeySchedule,C,O,A,F,S);var U=M[I+1];M[I+1]=M[I+3],M[I+3]=U},_doCryptBlock:function(M,I,U,z,H,G,X,W){for(var K=this._nRounds,ie=M[I]^U[0],ee=M[I+1]^U[1],de=M[I+2]^U[2],Z=M[I+3]^U[3],Q=4,J=1;J>>24]^H[ee>>>16&255]^G[de>>>8&255]^X[Z&255]^U[Q++],fe=z[ee>>>24]^H[de>>>16&255]^G[Z>>>8&255]^X[ie&255]^U[Q++],le=z[de>>>24]^H[Z>>>16&255]^G[ie>>>8&255]^X[ee&255]^U[Q++],ae=z[Z>>>24]^H[ie>>>16&255]^G[ee>>>8&255]^X[de&255]^U[Q++];ie=ne,ee=fe,de=le,Z=ae}var ne=(W[ie>>>24]<<24|W[ee>>>16&255]<<16|W[de>>>8&255]<<8|W[Z&255])^U[Q++],fe=(W[ee>>>24]<<24|W[de>>>16&255]<<16|W[Z>>>8&255]<<8|W[ie&255])^U[Q++],le=(W[de>>>24]<<24|W[Z>>>16&255]<<16|W[ie>>>8&255]<<8|W[ee&255])^U[Q++],ae=(W[Z>>>24]<<24|W[ie>>>16&255]<<16|W[ee>>>8&255]<<8|W[de&255])^U[Q++];M[I]=ne,M[I+1]=fe,M[I+2]=le,M[I+3]=ae},keySize:256/32});c.AES=d._createHelper(L)}(),s.AES})})(aes);var aesExports=aes.exports,encUtf8={exports:{}};(function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return s.enc.Utf8})})(encUtf8);var encUtf8Exports=encUtf8.exports;const UTF8=getDefaultExportFromCjs(encUtf8Exports);var modeEcb={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.mode.ECB=function(){var c=s.lib.BlockCipherMode.extend();return c.Encryptor=c.extend({processBlock:function(f,d){this._cipher.encryptBlock(f,d)}}),c.Decryptor=c.extend({processBlock:function(f,d){this._cipher.decryptBlock(f,d)}}),c}(),s.mode.ECB})})(modeEcb);var modeEcbExports=modeEcb.exports;const ECB=getDefaultExportFromCjs(modeEcbExports);var padPkcs7={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.pad.Pkcs7})})(padPkcs7);var padPkcs7Exports=padPkcs7.exports;const PKCS7=getDefaultExportFromCjs(padPkcs7Exports);class AesEncrypt{constructor(a={}){tr(this,"key");tr(this,"iv");const{key:s,iv:c}=a;s&&(this.key=encUtf8Exports.parse(s)),c&&(this.iv=encUtf8Exports.parse(c))}get getOptions(){return{mode:ECB,padding:PKCS7,iv:this.iv}}encryptByAES(a){return aesExports.encrypt(a,this.key,this.getOptions).toString()}decryptByAES(a){return aesExports.decrypt(a,this.key,this.getOptions).toString(UTF8)}}const createStorage$1=({prefixKey:o="",storage:a=sessionStorage,hasEncrypt:s=!0,key:c=cacheCipher.key,iv:f=cacheCipher.iv,timeout:d=null}={})=>{if(s&&[c.length,f.length].some(S=>S!==16))throw new Error("When hasEncrypt is true, the key or iv must be 16 bits!");const y=new AesEncrypt({key:c,iv:f}),_=class{constructor(){tr(this,"storage");tr(this,"prefixKey");tr(this,"encrypt");tr(this,"hasEncrypt");this.storage=a,this.prefixKey=o,this.encrypt=y,this.hasEncrypt=s}getKey(b){return`${this.prefixKey}${b}`.toUpperCase()}set(b,$,P=d){const T=JSON.stringify({value:$,time:Date.now(),expire:isNullOrUnDef(P)?null:new Date().getTime()+P*1e3}),C=this.hasEncrypt?this.encrypt.encryptByAES(T):T;this.storage.setItem(this.getKey(b),C)}get(b,$=null){const P=this.storage.getItem(this.getKey(b));if(!P)return $;try{const T=this.hasEncrypt?this.encrypt.decryptByAES(P):P,C=JSON.parse(T),{value:O,expire:A}=C;if(isNullOrUnDef(A)||A>=new Date().getTime())return O;this.remove(b)}catch(T){return $}}remove(b){this.storage.removeItem(this.getKey(b))}clear(){this.storage.clear()}};return new _},createOptions=(o,a={})=>se({hasEncrypt:enableStorageEncryption,storage:o,prefixKey:"react-admin-design__"},a);createStorage$1(createOptions(sessionStorage));const createStorage=(o=sessionStorage,a={})=>createStorage$1(createOptions(o,a)),createSessionStorage=(o={})=>createStorage(sessionStorage,$e(se({},o),{timeout:DEFAULT_CACHE_TIME})),createLocalStorage=(o={})=>createStorage(localStorage,$e(se({},o),{timeout:DEFAULT_CACHE_TIME}));class Memory{constructor(a=0){tr(this,"cache",{});tr(this,"alive");this.alive=a*1e3}get getCache(){return this.cache}get(a){return this.cache[a]}set(a,s,c){let f=this.get(a);if((!c||c<=0)&&(c=this.alive),f?(f.timeoutId&&(clearTimeout(f.timeoutId),f.timeoutId=void 0),f.value=s):(f={value:s,alive:c},this.cache[a]=f),!c)return s;const d=new Date().getTime();return f.time=d+this.alive,f.timeoutId=setTimeout(()=>{this.remove(a)},c>d?c-d:c),s}remove(a){const s=this.get(a);if(Reflect.deleteProperty(this.cache,a),s)return clearTimeout(s.timeoutId),s.value}resetCache(a){Object.keys(a).forEach(s=>{const c=s,f=a[c];if(f&&f.time){const d=new Date().getTime(),y=f.time;y>d&&this.set(c,f.value,y)}})}clear(){Object.keys(this.cache).forEach(a=>{const s=this.cache[a];s.timeoutId&&clearTimeout(s.timeoutId)}),this.cache={}}}const ls=createLocalStorage(),ss=createSessionStorage(),localMemory=new Memory(DEFAULT_CACHE_TIME),sessionMemory=new Memory(DEFAULT_CACHE_TIME);function initPersistentMemory(){const o=ls.get(APP_LOCAL_CACHE_KEY),a=ss.get(APP_SESSION_CACHE_KEY);o&&localMemory.resetCache(o),a&&sessionMemory.resetCache(a)}class Persistent{static getLocal(a){var s;return(s=localMemory.get(a))==null?void 0:s.value}static setLocal(a,s,c=!1){localMemory.set(a,s),c&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static removeLocal(a,s=!1){localMemory.remove(a),s&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static clearLocal(a=!1){localMemory.clear(),a&&ls.clear()}static getSession(a){var s;return(s=sessionMemory.get(a))==null?void 0:s.value}static setSession(a,s,c=!1){sessionMemory.set(a,s),c&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static removeSession(a,s=!1){sessionMemory.remove(a),s&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static clearSession(a=!1){sessionMemory.clear(),a&&ss.clear()}static clearAll(a=!1){sessionMemory.clear(),localMemory.clear(),a&&(ls.clear(),ss.clear())}}function storageChange(o){const{key:a,newValue:s,oldValue:c}=o;if(!a){Persistent.clearAll();return}s&&c&&(APP_LOCAL_CACHE_KEY===a&&Persistent.clearLocal(),APP_SESSION_CACHE_KEY===a&&Persistent.clearSession())}window.addEventListener("storage",storageChange);initPersistentMemory();const{permissionCacheType}=appSetting,isLocal=permissionCacheType===CacheTypeEnum.LOCAL;function getAuthCache(o){return(isLocal?Persistent.getLocal:Persistent.getSession)(o)}const subTitleMap=new Map([[403,t("对不起,您没有权限访问此页面。")],[404,t("对不起,您访问的页面不存在。")],[500,t("对不起,服务器发生错误。")]]),PageException=()=>{const o=useNavigate(),{status:a,withCard:s}=useLoaderData(),c=()=>{o("/home")},f=({children:d})=>s?jsxRuntimeExports.jsx(Card,{bordered:!1,children:d}):jsxRuntimeExports.jsx("div",{className:"flex-center",style:{height:"100vh"},children:d});return jsxRuntimeExports.jsx(f,{children:jsxRuntimeExports.jsx(Result,{title:a,icon:jsxRuntimeExports.jsx(SvgIcon,{size:380,name:a}),subTitle:subTitleMap.get(a),extra:jsxRuntimeExports.jsx(Button,{type:"primary",onClick:c,children:t("返回首页")})})})},index=Object.freeze(Object.defineProperty({__proto__:null,default:PageException},Symbol.toStringTag,{value:"Module"})),illustrationDashboard="/react-antd-admin-pnpm/assets/illustration_dashboard-e36a7900.png",overlay="/react-antd-admin-pnpm/assets/overlay_2-613a921a.jpg",useStyles$1=createStyles(({token:o})=>({"login-container":{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center",height:"100vh"},"login-img":{maxWidth:"560px",height:"auto"},"login-form":{padding:`${o.paddingLG*7}px ${o.paddingLG*5}px`,".title":{margin:0},".login-info":{margin:`${o.marginLG}px 0`},".login-btn":{backgroundColor:o.colorDefault}},"login-left":{gap:"80px",flexGrow:1,height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",background:`linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)) center center / cover no-repeat, url(${overlay})`,".logo":{width:"100%",padding:o.paddingSM,position:"absolute",top:0,left:0,svg:{color:o.colorPrimary}}}})),{Title,Text}=Typography,LoginPage=()=>{const[o]=Form.useForm(),a=reactExports.useRef(null),[s,c]=reactExports.useState(!1),f=useSignIn(),d=useNavigate(),[y]=useSearchParams(),{styles:_}=useStyles$1(),S=b=>xt(void 0,null,function*(){c(!0);try{(yield f({username:b.username,password:b.password}))&&d(y.get("redirect")||"/")}catch($){message.error($.message)}finally{c(!1)}});return jsxRuntimeExports.jsxs("div",{className:_["login-container"],children:[jsxRuntimeExports.jsxs("div",{className:_["login-left"],children:[jsxRuntimeExports.jsx(Title,{className:"logo",level:3,children:jsxRuntimeExports.jsx(SvgIcon,{name:"logo",size:30})}),jsxRuntimeExports.jsx(Title,{level:2,children:t("Hi, 欢迎回来!")}),jsxRuntimeExports.jsx("img",{src:illustrationDashboard,alt:"",className:_["login-img"]})]}),jsxRuntimeExports.jsxs("div",{className:_["login-form"],children:[jsxRuntimeExports.jsxs("div",{className:"login-info",children:[jsxRuntimeExports.jsx(Title,{className:"title",level:3,children:t("登录 Gbeata Admin")}),jsxRuntimeExports.jsxs(Text,{type:"secondary",children:[" ",t("新用户?"),jsxRuntimeExports.jsx(Button,{type:"link",style:{padding:0},color:"primary",children:t("立即注册")})]}),jsxRuntimeExports.jsx(Alert,{message:t("登录信息: 用户名:admin 密码:123456"),type:"info",showIcon:!0})]}),jsxRuntimeExports.jsxs(Form,{ref:a,form:o,initialValues:{username:"admin",password:"123456",remember:!0},className:"login-box-form",onFinish:S,children:[jsxRuntimeExports.jsx(Form.Item,{name:"username",rules:[{required:!0,message:t("请输入账号")}],children:jsxRuntimeExports.jsx(Input,{placeholder:t("请输入账号"),size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsx(Form.Item,{name:"password",rules:[{required:!0,message:t("请输入密码")}],children:jsxRuntimeExports.jsx(Input,{type:"password",placeholder:t("请输入密码"),size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsxs(Form.Item,{children:[jsxRuntimeExports.jsx(Form.Item,{name:"remember",className:classNames("fl","no-margin"),valuePropName:"checked",children:jsxRuntimeExports.jsx(Checkbox,{children:t("记住我")})}),jsxRuntimeExports.jsx(Form.Item,{className:classNames("fr","no-margin"),children:jsxRuntimeExports.jsx("a",{href:"",children:t("忘记密码?")})})]}),jsxRuntimeExports.jsx(Form.Item,{children:jsxRuntimeExports.jsx(Button,{type:"primary",block:!0,htmlType:"submit",size:"large",className:"login-btn",loading:s,children:t("登 录")})})]})]})]})},metaRoutes=Object.assign({"./routes/compo.tsx":__vite_glob_0_0$1,"./routes/exception.tsx":__vite_glob_0_1$1,"./routes/form.tsx":__vite_glob_0_2$1,"./routes/home.tsx":__vite_glob_0_3,"./routes/management.tsx":__vite_glob_0_4,"./routes/user.tsx":__vite_glob_0_5}),routeList=[];Object.keys(metaRoutes).forEach(o=>{const a=metaRoutes[o].default||{},s=Array.isArray(a)?[...a]:[a];genFullPath(s),routeList.push(...s)});const rootRoutes=[{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/home"})},{path:"/login",element:jsxRuntimeExports.jsx(LoginPage,{}),meta:{title:t("登录页"),key:"login"},loader:()=>getAuthCache(TOKEN_KEY)?redirect("/"):null},...routeList,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/404"})},{path:"/403",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!1})},{path:"/404",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!1})}],router=createHashRouter(rootRoutes),CustomGlobal=createGlobalStyle` +`):" "+renderReason(d[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return c},adapters:knownAdapters};function throwIfCancellationRequested(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new CanceledError(null,o)}function dispatchRequest(o){return throwIfCancellationRequested(o),o.headers=AxiosHeaders$1.from(o.headers),o.data=transformData.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(o.adapter||defaults$1.adapter)(o).then(function(c){return throwIfCancellationRequested(o),c.data=transformData.call(o,o.transformResponse,c),c.headers=AxiosHeaders$1.from(c.headers),c},function(c){return isCancel(c)||(throwIfCancellationRequested(o),c&&c.response&&(c.response.data=transformData.call(o,o.transformResponse,c.response),c.response.headers=AxiosHeaders$1.from(c.response.headers))),Promise.reject(c)})}const headersToObject=o=>o instanceof AxiosHeaders$1?o.toJSON():o;function mergeConfig(o,a){a=a||{};const s={};function c(b,$,P){return utils$1.isPlainObject(b)&&utils$1.isPlainObject($)?utils$1.merge.call({caseless:P},b,$):utils$1.isPlainObject($)?utils$1.merge({},$):utils$1.isArray($)?$.slice():$}function f(b,$,P){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b,P)}else return c(b,$,P)}function d(b,$){if(!utils$1.isUndefined($))return c(void 0,$)}function y(b,$){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b)}else return c(void 0,$)}function _(b,$,P){if(P in a)return c(b,$);if(P in o)return c(void 0,b)}const S={url:d,method:d,data:d,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:_,headers:(b,$)=>f(headersToObject(b),headersToObject($),!0)};return utils$1.forEach(Object.keys(Object.assign({},o,a)),function($){const P=S[$]||f,T=P(o[$],a[$],$);utils$1.isUndefined(T)&&P!==_||(s[$]=T)}),s}const VERSION="1.6.5",validators$1={};["object","boolean","number","function","string","symbol"].forEach((o,a)=>{validators$1[o]=function(c){return typeof c===o||"a"+(a<1?"n ":" ")+o}});const deprecatedWarnings={};validators$1.transitional=function(a,s,c){function f(d,y){return"[Axios v"+VERSION+"] Transitional option '"+d+"'"+y+(c?". "+c:"")}return(d,y,_)=>{if(a===!1)throw new AxiosError(f(y," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[y]&&(deprecatedWarnings[y]=!0),a?a(d,y,_):!0}};function assertOptions(o,a,s){if(typeof o!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const c=Object.keys(o);let f=c.length;for(;f-- >0;){const d=c[f],y=a[d];if(y){const _=o[d],S=_===void 0||y(_,d,o);if(S!==!0)throw new AxiosError("option "+d+" must be "+S,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+d,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(a){this.defaults=a,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=mergeConfig(this.defaults,s);const{transitional:c,paramsSerializer:f,headers:d}=s;c!==void 0&&validator.assertOptions(c,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),f!=null&&(utils$1.isFunction(f)?s.paramsSerializer={serialize:f}:validator.assertOptions(f,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let y=d&&utils$1.merge(d.common,d[s.method]);d&&utils$1.forEach(["delete","get","head","post","put","patch","common"],O=>{delete d[O]}),s.headers=AxiosHeaders$1.concat(y,d);const _=[];let S=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(s)===!1||(S=S&&A.synchronous,_.unshift(A.fulfilled,A.rejected))});const b=[];this.interceptors.response.forEach(function(A){b.push(A.fulfilled,A.rejected)});let $,P=0,T;if(!S){const O=[dispatchRequest.bind(this),void 0];for(O.unshift.apply(O,_),O.push.apply(O,b),T=O.length,$=Promise.resolve(s);P{if(!c._listeners)return;let d=c._listeners.length;for(;d-- >0;)c._listeners[d](f);c._listeners=null}),this.promise.then=f=>{let d;const y=new Promise(_=>{c.subscribe(_),d=_}).then(f);return y.cancel=function(){c.unsubscribe(d)},y},a(function(d,y,_){c.reason||(c.reason=new CanceledError(d,y,_),s(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}static source(){let a;return{token:new CancelToken(function(f){a=f}),cancel:a}}}const CancelToken$1=CancelToken;function spread(o){return function(s){return o.apply(null,s)}}function isAxiosError(o){return utils$1.isObject(o)&&o.isAxiosError===!0}const HttpStatusCode={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(HttpStatusCode).forEach(([o,a])=>{HttpStatusCode[a]=o});const HttpStatusCode$1=HttpStatusCode;function createInstance(o){const a=new Axios$1(o),s=bind(Axios$1.prototype.request,a);return utils$1.extend(s,Axios$1.prototype,a,{allOwnKeys:!0}),utils$1.extend(s,a,null,{allOwnKeys:!0}),s.create=function(f){return createInstance(mergeConfig(o,f))},s}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(a){return Promise.all(a)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=o=>formDataToJSON(utils$1.isHTMLForm(o)?new FormData(o):o);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios,pendingMap=new Map;class AxiosCanceler{addPending(a){this.removePending(a);const s=getPendingUrl(a),c=new AbortController;a.signal=a.signal||c.signal,pendingMap.has(s)||pendingMap.set(s,c)}removePending(a){const s=getPendingUrl(a);if(pendingMap.has(s)){const c=pendingMap.get(s);c&&c.abort(s),pendingMap.delete(s)}}reset(){pendingMap.clear()}removeAllPending(){pendingMap.forEach(a=>{a&&a.abort()}),this.reset()}}function getPendingUrl(o){return[o.method,o.url].join("&")}class GAxios{constructor(a){tr(this,"axiosInstance");tr(this,"options");this.options=a,this.axiosInstance=axios$1.create(a),this.setupInterceptors()}createAxios(a){this.axiosInstance=axios$1.create(a)}getTransform(){const{transform:a}=this.options;return a}getAxios(){return this.axiosInstance}configAxios(a){this.axiosInstance&&this.createAxios(a)}setHeader(a){this.axiosInstance&&Object.assign(this.axiosInstance.defaults.headers,a)}setupInterceptors(){const{axiosInstance:a,options:{transform:s}}=this;if(!s)return;const{requestInterceptors:c,requestInterceptorsCatch:f,responseInterceptors:d,responseInterceptorsCatch:y}=s,_=new AxiosCanceler;this.axiosInstance.interceptors.request.use(S=>{var P,T;const b=(P=S.requestOptions)!=null?P:this.options.requestOptions;return!((T=b==null?void 0:b.ignoreCancelToken)!=null?T:!0)&&_.addPending(S),c&&isFunction$2(c)&&(S=c(S,this.options)),S},void 0),f&&isFunction$2(f)&&this.axiosInstance.interceptors.request.use(void 0,f),this.axiosInstance.interceptors.response.use(S=>(S&&_.removePending(S.config),d&&isFunction$2(d)&&(S=d(S)),S),void 0),y&&isFunction$2(y)&&this.axiosInstance.interceptors.response.use(void 0,S=>y(a,S))}uploadFile(a,s){const c=new window.FormData,f=s.name||"file";return s.filename?c.append(f,s.file,s.filename):c.append(f,s.file),s.data&&Object.keys(s.data).forEach(d=>{const y=s.data[d];if(Array.isArray(y)){y.forEach(_=>{c.append(`${d}[]`,_)});return}c.append(d,s.data[d])}),this.axiosInstance.request($e(se({},a),{method:"POST",data:c,headers:{"Content-type":ContentTypeEnum.FORM_DATA,ignoreCancelToken:!0}}))}supportFormData(a){var f;const s=a.headers||this.options.headers;return((s==null?void 0:s["Content-Type"])||(s==null?void 0:s["content-type"]))!==ContentTypeEnum.FORM_URLENCODED||!Reflect.has(a,"data")||((f=a.method)==null?void 0:f.toUpperCase())===RequestEnum.GET?a:$e(se({},a),{data:qs.stringify(a.data,{arrayFormat:"brackets"})})}get(a,s){return this.request($e(se({},a),{method:"GET"}),s)}post(a,s){return this.request($e(se({},a),{method:"POST"}),s)}put(a,s){return this.request($e(se({},a),{method:"PUT"}),s)}delete(a,s){return this.request($e(se({},a),{method:"DELETE"}),s)}request(a,s){let c=cloneDeep(a);a.cancelToken&&(c.cancelToken=a.cancelToken),a.signal&&(c.signal=a.signal);const f=this.getTransform(),{requestOptions:d}=this.options,y=Object.assign({},d,s),{beforeRequestHook:_,requestCatchHook:S,transformResponseHook:b}=f||{};return _&&isFunction$2(_)&&(c=_(c,y)),c.requestOptions=y,c=this.supportFormData(c),new Promise(($,P)=>{this.axiosInstance.request(c).then(T=>{if(b&&isFunction$2(b)){try{const C=b(T,y);$(C)}catch(C){P(C||new Error("request error!"))}return}$(T)}).catch(T=>{if(S&&isFunction$2(S)){P(S(T,y));return}axios$1.isAxiosError(T),P(T)})})}}const transform={transformResponseHook:(o,a)=>{const{isReturnNativeResponse:s,isTransformResponse:c}=a;if(s)return o;if(!c)return o.data.data;const{data:f}=o;if(!o.data)throw new Error("请求接口错误");const{code:d,message:y}=f;if(f&&Reflect.has(f,"code")&&d===ResultEnum.SUCCESS)return f.data;let S="";switch(d){case ResultEnum.TIMEOUT:S="登录超时,请重新登录";break;default:y&&(S=y)}throw new Error(S)},responseInterceptorsCatch:(o,a)=>{var S,b;const{response:s,code:c,message:f,config:d}=a||{},y=(b=(S=a==null?void 0:a.toString)==null?void 0:S.call(a))!=null?b:"";let _="";if(axios$1.isCancel(a))return Promise.reject(a);try{c==="ECONNABORTED"&&f.indexOf("timeout")!==-1&&(_="接口请求超时,请刷新页面重试!"),y!=null&&y.includes("Network Error")&&(_="网络异常,请检查您的网络连接是否正常")}catch($){throw new Error($)}switch(s==null?void 0:s.status){case 401:_="登录失效";break;case 403:_="拒绝访问";break;case 404:_="请求地址不存在";break;case 500:_="服务器内部错误";break;case 501:_="服务未实现";break;case 502:_="网关错误";break;case 503:_="服务不可用";break}return Promise.reject(a)},beforeRequestHook:(o,a)=>{var $;const{apiUrl:s,joinPrefix:c,joinParamsToUrl:f,formatDate:d,joinTime:y=!0,urlPrefix:_}=a;c&&(o.url=`${_}${o.url}`);const S=o.params||{},b=o.data||!1;return d&&b&&!isString$3(b)&&formatRequestDate(b),(($=o.method)==null?void 0:$.toUpperCase())===RequestEnum.GET?isString$3(S)?(o.url=o.url+S+`${joinTimestamp(y,!0)}`,o.params=void 0):o.params=Object.assign(S||{},joinTimestamp(y,!1)):isString$3(S)?(o.url=o.url+S,o.params=void 0):(d&&formatRequestDate(S),Reflect.has(o,"data")&&o.data&&(Object.keys(o.data).length>0||o.data instanceof FormData)?(o.data=b,o.params=S):(o.data=S,o.params=void 0),f&&(o.url=setObjToUrlParams(o.url,Object.assign({},o.params,o.data)))),o},requestInterceptors:(o,a)=>{var c;const s=getItem$1(StorageEnum.Token);return s&&((c=o.requestOptions)==null?void 0:c.withToken)!==!1&&(o.headers.Authorization=a.authenticationScheme?`${a.authenticationScheme} ${s}`:s),o}};function createAxios(o){return new GAxios(deepMerge({authenticationScheme:"Bearer",timeout:10*1e3,header:{"Content-Type":ContentTypeEnum.JSON},transform:clone(transform),requestOptions:{joinPrefix:!0,isReturnNativeResponse:!1,joinParamsToUrl:!1,joinTime:!0,ignoreCancelToken:!0,withToken:!0,retryRequest:{isOpenRetry:!0,count:5,waitTime:100},apiUrl:"",urlPrefix:"/api",formatDate:!0}},o||{}))}const defHttp=createAxios(),PREFIX="",GRequest=extend$1({timeout:6e4,prefix:PREFIX});let isRefreshingToken=!1;const requestQueue=[];GRequest.interceptors.request.use((o,a)=>{const{headers:s}=a;return{url:o,options:$e(se({},a),{headers:s})}});GRequest.interceptors.response.use((o,a)=>xt(void 0,null,function*(){const{status:s}=o;if(s===200){const c=yield o.clone().json();return c.code!==0?(notification.error({message:"请求错误",description:c.msg}),Promise.reject(c.msg)):c}if(s===401){if(!isRefreshingToken){const c=JSON.parse(localStorage.getItem("userInfo")||"{}");isRefreshingToken=!0;const f=yield GRequest("/User/ReLogin",{method:"POST",data:c});localStorage.setItem("userInfo",JSON.stringify(f.data)),isRefreshingToken=!1;const d=GRequest(a.url,a);return requestQueue.forEach(y=>y.resolve(GRequest(y.url,y.options))),d}return new Promise((c,f)=>{requestQueue.push({url:a.url,options:a,resolve:c,reject:f})})}return notification.error({message:"请求错误",description:o.statusText}),Promise.reject(o.statusText)}));const loginApi=o=>defHttp.post({url:"/login",data:o});function logoutApi(){return defHttp.get({url:"/logout"})}function getJueJinList(o){return defHttp.post({url:"/article/queryList",data:o})}function getUsersList(){return defHttp.get({url:"/user/getUserList"})}const headerImg="/react-antd-admin-pnpm/assets/avatar-9ee092e3.jpeg",useUserStore=create(o=>({userInfo:getItem$1(StorageEnum$1.User)||{},userToken:getItem$1(StorageEnum$1.Token)||{},actions:{setUserInfo:a=>{o({userInfo:a}),setItem(StorageEnum$1.User,a)},setUserToken:a=>{o({userToken:a}),setItem(StorageEnum$1.Token,a)},clearUserInfoAndToken:()=>{o({userInfo:{},userToken:{}}),removeItem(StorageEnum$1.User),removeItem(StorageEnum$1.Token)}}})),useUserToken=()=>useUserStore(o=>o.userToken),useUserPermissions=()=>useUserStore(o=>{var a;return(a=o.userInfo)==null?void 0:a.permissions}),useUserActions=()=>useUserStore(o=>o.actions),useSignIn=()=>{const{t:o}=useTranslation(),{notification:a,message:s}=App$1.useApp(),{setUserToken:c,setUserInfo:f}=useUserActions(),d=useMutation({mutationFn:loginApi}),y=_=>xt(void 0,null,function*(){try{const b=yield d.mutateAsync(_),S=b,{token:$}=S,P=er(S,["token"]);return c({token:$}),f(P),a.success({message:o("登录成功"),description:`欢迎回来: ${_.username}`,duration:3}),yield Promise.resolve(b)}catch(b){return s.error({content:b.message,duration:3}),Promise.reject(b)}});return reactExports.useCallback(y,[])};function UserDropdown(){const{createConfirm:o,contextHolder:a,createMessage:s}=useMessage(),{clearUserInfoAndToken:c}=useUserActions(),{t:f}=useTranslation(),{token:d}=useUserToken(),y=[{key:"lock",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(LockOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("锁定屏幕")})]})},{key:"logout",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(PoweroffOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("退出登录")})]})}],_=({key:P})=>{switch(P){case"lock":break;case"logout":b();break}},S=useNavigate(),b=()=>{o({title:jsxRuntimeExports.jsx("span",{children:f("温馨提醒")}),content:jsxRuntimeExports.jsx("span",{children:f("是否确认退出系统?")}),onOk:()=>xt(this,null,function*(){yield $(!0)})})},$=(P=!1)=>xt(this,null,function*(){if(d)try{yield logoutApi()}catch(T){s.error(f("注销失败!"))}c(),P&&S("/login")});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a,jsxRuntimeExports.jsx(Dropdown,{menu:{items:y,onClick:_},placement:"bottomRight",arrow:!0,children:jsxRuntimeExports.jsx("span",{className:"flex-center",style:{cursor:"pointer"},children:jsxRuntimeExports.jsx("img",{src:headerImg,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""})})})]})}const matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(o,a,s,c="")=>{const f=o.split(":");if(o.slice(0,1)==="@"){if(f.length<2||f.length>3)return null;c=f.shift().slice(1)}if(f.length>3||!f.length)return null;if(f.length>1){const _=f.pop(),S=f.pop(),b={provider:f.length>0?f[0]:c,prefix:S,name:_};return a&&!validateIconName(b)?null:b}const d=f[0],y=d.split("-");if(y.length>1){const _={provider:c,prefix:y.shift(),name:y.join("-")};return a&&!validateIconName(_)?null:_}if(s&&c===""){const _={provider:c,prefix:"",name:d};return a&&!validateIconName(_,s)?null:_}return null},validateIconName=(o,a)=>o?!!((o.provider===""||o.provider.match(matchIconName))&&(a&&o.prefix===""||o.prefix.match(matchIconName))&&o.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze(se(se({},defaultIconDimensions),defaultIconTransformations)),defaultExtendedIconProps=Object.freeze($e(se({},defaultIconProps),{body:"",hidden:!1}));function mergeIconTransformations(o,a){const s={};!o.hFlip!=!a.hFlip&&(s.hFlip=!0),!o.vFlip!=!a.vFlip&&(s.vFlip=!0);const c=((o.rotate||0)+(a.rotate||0))%4;return c&&(s.rotate=c),s}function mergeIconData(o,a){const s=mergeIconTransformations(o,a);for(const c in defaultExtendedIconProps)c in defaultIconTransformations?c in o&&!(c in s)&&(s[c]=defaultIconTransformations[c]):c in a?s[c]=a[c]:c in o&&(s[c]=o[c]);return s}function getIconsTree(o,a){const s=o.icons,c=o.aliases||Object.create(null),f=Object.create(null);function d(y){if(s[y])return f[y]=[];if(!(y in f)){f[y]=null;const _=c[y]&&c[y].parent,S=_&&d(_);S&&(f[y]=[_].concat(S))}return f[y]}return(a||Object.keys(s).concat(Object.keys(c))).forEach(d),f}function internalGetIconData(o,a,s){const c=o.icons,f=o.aliases||Object.create(null);let d={};function y(_){d=mergeIconData(c[_]||f[_],d)}return y(a),s.forEach(y),mergeIconData(o,d)}function parseIconSet(o,a){const s=[];if(typeof o!="object"||typeof o.icons!="object")return s;o.not_found instanceof Array&&o.not_found.forEach(f=>{a(f,null),s.push(f)});const c=getIconsTree(o);for(const f in c){const d=c[f];d&&(a(f,internalGetIconData(o,f,d)),s.push(f))}return s}const optionalPropertyDefaults=se({provider:"",aliases:{},not_found:{}},defaultIconDimensions);function checkOptionalProps(o,a){for(const s in a)if(s in o&&typeof o[s]!=typeof a[s])return!1;return!0}function quicklyValidateIconSet(o){if(typeof o!="object"||o===null)return null;const a=o;if(typeof a.prefix!="string"||!o.icons||typeof o.icons!="object"||!checkOptionalProps(o,optionalPropertyDefaults))return null;const s=a.icons;for(const f in s){const d=s[f];if(!f.match(matchIconName)||typeof d.body!="string"||!checkOptionalProps(d,defaultExtendedIconProps))return null}const c=a.aliases||Object.create(null);for(const f in c){const d=c[f],y=d.parent;if(!f.match(matchIconName)||typeof y!="string"||!s[y]&&!c[y]||!checkOptionalProps(d,defaultExtendedIconProps))return null}return a}const dataStorage=Object.create(null);function newStorage(o,a){return{provider:o,prefix:a,icons:Object.create(null),missing:new Set}}function getStorage$2(o,a){const s=dataStorage[o]||(dataStorage[o]=Object.create(null));return s[a]||(s[a]=newStorage(o,a))}function addIconSet(o,a){return quicklyValidateIconSet(a)?parseIconSet(a,(s,c)=>{c?o.icons[s]=c:o.missing.add(s)}):[]}function addIconToStorage(o,a,s){try{if(typeof s.body=="string")return o.icons[a]=se({},s),!0}catch(c){}return!1}let simpleNames=!1;function allowSimpleNames(o){return typeof o=="boolean"&&(simpleNames=o),simpleNames}function getIconData(o){const a=typeof o=="string"?stringToIcon(o,!0,simpleNames):o;if(a){const s=getStorage$2(a.provider,a.prefix),c=a.name;return s.icons[c]||(s.missing.has(c)?null:void 0)}}function addIcon(o,a){const s=stringToIcon(o,!0,simpleNames);if(!s)return!1;const c=getStorage$2(s.provider,s.prefix);return addIconToStorage(c,s.name,a)}function addCollection(o,a){if(typeof o!="object")return!1;if(typeof a!="string"&&(a=o.provider||""),simpleNames&&!a&&!o.prefix){let f=!1;return quicklyValidateIconSet(o)&&(o.prefix="",parseIconSet(o,(d,y)=>{y&&addIcon(d,y)&&(f=!0)})),f}const s=o.prefix;if(!validateIconName({provider:a,prefix:s,name:"a"}))return!1;const c=getStorage$2(a,s);return!!addIconSet(c,o)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze(se(se({},defaultIconSizeCustomisations),defaultIconTransformations)),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(o,a,s){if(a===1)return o;if(s=s||100,typeof o=="number")return Math.ceil(o*a*s)/s;if(typeof o!="string")return o;const c=o.split(unitsSplit);if(c===null||!c.length)return o;const f=[];let d=c.shift(),y=unitsTest.test(d);for(;;){if(y){const _=parseFloat(d);isNaN(_)?f.push(d):f.push(Math.ceil(_*a*s)/s)}else f.push(d);if(d=c.shift(),d===void 0)return f.join("");y=!y}}const isUnsetKeyword=o=>o==="unset"||o==="undefined"||o==="none";function iconToSVG(o,a){const s=se(se({},defaultIconProps),o),c=se(se({},defaultIconCustomisations),a),f={left:s.left,top:s.top,width:s.width,height:s.height};let d=s.body;[s,c].forEach(O=>{const A=[],M=O.hFlip,j=O.vFlip;let L=O.rotate;M?j?L+=2:(A.push("translate("+(f.width+f.left).toString()+" "+(0-f.top).toString()+")"),A.push("scale(-1 1)"),f.top=f.left=0):j&&(A.push("translate("+(0-f.left).toString()+" "+(f.height+f.top).toString()+")"),A.push("scale(1 -1)"),f.top=f.left=0);let F;switch(L<0&&(L-=Math.floor(L/4)*4),L=L%4,L){case 1:F=f.height/2+f.top,A.unshift("rotate(90 "+F.toString()+" "+F.toString()+")");break;case 2:A.unshift("rotate(180 "+(f.width/2+f.left).toString()+" "+(f.height/2+f.top).toString()+")");break;case 3:F=f.width/2+f.left,A.unshift("rotate(-90 "+F.toString()+" "+F.toString()+")");break}L%2===1&&(f.left!==f.top&&(F=f.left,f.left=f.top,f.top=F),f.width!==f.height&&(F=f.width,f.width=f.height,f.height=F)),A.length&&(d=''+d+"")});const y=c.width,_=c.height,S=f.width,b=f.height;let $,P;y===null?(P=_===null?"1em":_==="auto"?b:_,$=calculateSize(P,S/b)):($=y==="auto"?S:y,P=_===null?calculateSize($,b/S):_==="auto"?b:_);const T={},C=(O,A)=>{isUnsetKeyword(A)||(T[O]=A.toString())};return C("width",$),C("height",P),T.viewBox=f.left.toString()+" "+f.top.toString()+" "+S.toString()+" "+b.toString(),{attributes:T,body:d}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(o,a=randomPrefix){const s=[];let c;for(;c=regex.exec(o);)s.push(c[1]);if(!s.length)return o;const f="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(d=>{const y=typeof a=="function"?a(d):a+(counter++).toString(),_=d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");o=o.replace(new RegExp('([#;"])('+_+')([")]|\\.[a-z])',"g"),"$1"+y+f+"$3")}),o=o.replace(new RegExp(f,"g"),""),o}const storage=Object.create(null);function setAPIModule(o,a){storage[o]=a}function getAPIModule(o){return storage[o]||storage[""]}function createAPIConfig(o){let a;if(typeof o.resources=="string")a=[o.resources];else if(a=o.resources,!(a instanceof Array)||!a.length)return null;return{resources:a,path:o.path||"/",maxURL:o.maxURL||500,rotate:o.rotate||750,timeout:o.timeout||5e3,random:o.random===!0,index:o.index||0,dataAfterTimeout:o.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(o,a){const s=createAPIConfig(a);return s===null?!1:(configStorage[o]=s,!0)}function getAPIConfig(o){return configStorage[o]}const detectFetch=()=>{let o;try{if(o=fetch,typeof o=="function")return o}catch(a){}};let fetchModule=detectFetch();function calculateMaxLength(o,a){const s=getAPIConfig(o);if(!s)return 0;let c;if(!s.maxURL)c=0;else{let f=0;s.resources.forEach(y=>{f=Math.max(f,y.length)});const d=a+".json?icons=";c=s.maxURL-f-s.path.length-d.length}return c}function shouldAbort(o){return o===404}const prepare=(o,a,s)=>{const c=[],f=calculateMaxLength(o,a),d="icons";let y={type:d,provider:o,prefix:a,icons:[]},_=0;return s.forEach((S,b)=>{_+=S.length+1,_>=f&&b>0&&(c.push(y),y={type:d,provider:o,prefix:a,icons:[]},_=S.length),y.icons.push(S)}),c.push(y),c};function getPath(o){if(typeof o=="string"){const a=getAPIConfig(o);if(a)return a.path}return"/"}const send=(o,a,s)=>{if(!fetchModule){s("abort",424);return}let c=getPath(a.provider);switch(a.type){case"icons":{const d=a.prefix,_=a.icons.join(","),S=new URLSearchParams({icons:_});c+=d+".json?"+S.toString();break}case"custom":{const d=a.uri;c+=d.slice(0,1)==="/"?d.slice(1):d;break}default:s("abort",400);return}let f=503;fetchModule(o+c).then(d=>{const y=d.status;if(y!==200){setTimeout(()=>{s(shouldAbort(y)?"abort":"next",y)});return}return f=501,d.json()}).then(d=>{if(typeof d!="object"||d===null){setTimeout(()=>{d===404?s("abort",d):s("next",f)});return}setTimeout(()=>{s("success",d)})}).catch(()=>{s("next",f)})},fetchAPIModule={prepare,send};function sortIcons(o){const a={loaded:[],missing:[],pending:[]},s=Object.create(null);o.sort((f,d)=>f.provider!==d.provider?f.provider.localeCompare(d.provider):f.prefix!==d.prefix?f.prefix.localeCompare(d.prefix):f.name.localeCompare(d.name));let c={provider:"",prefix:"",name:""};return o.forEach(f=>{if(c.name===f.name&&c.prefix===f.prefix&&c.provider===f.provider)return;c=f;const d=f.provider,y=f.prefix,_=f.name,S=s[d]||(s[d]=Object.create(null)),b=S[y]||(S[y]=getStorage$2(d,y));let $;_ in b.icons?$=a.loaded:y===""||b.missing.has(_)?$=a.missing:$=a.pending;const P={provider:d,prefix:y,name:_};$.push(P)}),a}function removeCallback(o,a){o.forEach(s=>{const c=s.loaderCallbacks;c&&(s.loaderCallbacks=c.filter(f=>f.id!==a))})}function updateCallbacks(o){o.pendingCallbacksFlag||(o.pendingCallbacksFlag=!0,setTimeout(()=>{o.pendingCallbacksFlag=!1;const a=o.loaderCallbacks?o.loaderCallbacks.slice(0):[];if(!a.length)return;let s=!1;const c=o.provider,f=o.prefix;a.forEach(d=>{const y=d.icons,_=y.pending.length;y.pending=y.pending.filter(S=>{if(S.prefix!==f)return!0;const b=S.name;if(o.icons[b])y.loaded.push({provider:c,prefix:f,name:b});else if(o.missing.has(b))y.missing.push({provider:c,prefix:f,name:b});else return s=!0,!0;return!1}),y.pending.length!==_&&(s||removeCallback([o],d.id),d.callback(y.loaded.slice(0),y.missing.slice(0),y.pending.slice(0),d.abort))})}))}let idCounter=0;function storeCallback(o,a,s){const c=idCounter++,f=removeCallback.bind(null,s,c);if(!a.pending.length)return f;const d={id:c,icons:a,callback:o,abort:f};return s.forEach(y=>{(y.loaderCallbacks||(y.loaderCallbacks=[])).push(d)}),f}function listToIcons(o,a=!0,s=!1){const c=[];return o.forEach(f=>{const d=typeof f=="string"?stringToIcon(f,a,s):f;d&&c.push(d)}),c}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(o,a,s,c){const f=o.resources.length,d=o.random?Math.floor(Math.random()*f):o.index;let y;if(o.random){let z=o.resources.slice(0);for(y=[];z.length>1;){const H=Math.floor(Math.random()*z.length);y.push(z[H]),z=z.slice(0,H).concat(z.slice(H+1))}y=y.concat(z)}else y=o.resources.slice(d).concat(o.resources.slice(0,d));const _=Date.now();let S="pending",b=0,$,P=null,T=[],C=[];typeof c=="function"&&C.push(c);function O(){P&&(clearTimeout(P),P=null)}function A(){S==="pending"&&(S="aborted"),O(),T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function M(z,H){H&&(C=[]),typeof z=="function"&&C.push(z)}function j(){return{startTime:_,payload:a,status:S,queriesSent:b,queriesPending:T.length,subscribe:M,abort:A}}function L(){S="failed",C.forEach(z=>{z(void 0,$)})}function F(){T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function I(z,H,G){const X=H!=="success";switch(T=T.filter(W=>W!==z),S){case"pending":break;case"failed":if(X||!o.dataAfterTimeout)return;break;default:return}if(H==="abort"){$=G,L();return}if(X){$=G,T.length||(y.length?U():L());return}if(O(),F(),!o.random){const W=o.resources.indexOf(z.resource);W!==-1&&W!==o.index&&(o.index=W)}S="completed",C.forEach(W=>{W(G)})}function U(){if(S!=="pending")return;O();const z=y.shift();if(z===void 0){if(T.length){P=setTimeout(()=>{O(),S==="pending"&&(F(),L())},o.timeout);return}L();return}const H={status:"pending",resource:z,callback:(G,X)=>{I(H,G,X)}};T.push(H),b++,P=setTimeout(U,o.rotate),s(z,a,H.callback)}return setTimeout(U),j}function initRedundancy(o){const a=se(se({},defaultConfig),o);let s=[];function c(){s=s.filter(_=>_().status==="pending")}function f(_,S,b){const $=sendQuery(a,_,S,(P,T)=>{c(),b&&b(P,T)});return s.push($),$}function d(_){return s.find(S=>_(S))||null}return{query:f,find:d,setIndex:_=>{a.index=_},getIndex:()=>a.index,cleanup:c}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(o){if(!redundancyCache[o]){const a=getAPIConfig(o);if(!a)return;const s=initRedundancy(a),c={config:a,redundancy:s};redundancyCache[o]=c}return redundancyCache[o]}function sendAPIQuery(o,a,s){let c,f;if(typeof o=="string"){const d=getAPIModule(o);if(!d)return s(void 0,424),emptyCallback$1;f=d.send;const y=getRedundancyCache(o);y&&(c=y.redundancy)}else{const d=createAPIConfig(o);if(d){c=initRedundancy(d);const y=o.resources?o.resources[0]:"",_=getAPIModule(y);_&&(f=_.send)}}return!c||!f?(s(void 0,424),emptyCallback$1):c.query(a,f,s)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(o,a){try{return o.getItem(a)}catch(s){}}function setStoredItem(o,a,s){try{return o.setItem(a,s),!0}catch(c){}}function removeStoredItem(o,a){try{o.removeItem(a)}catch(s){}}function setBrowserStorageItemsCount(o,a){return setStoredItem(o,browserCacheCountKey,a.toString())}function getBrowserStorageItemsCount(o){return parseInt(getStoredItem(o,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(o){browserStorageStatus=o}let _window=typeof window=="undefined"?{}:window;function getBrowserStorage(o){const a=o+"Storage";try{if(_window&&_window[a]&&typeof _window[a].length=="number")return _window[a]}catch(s){}browserStorageConfig[o]=!1}function iterateBrowserStorage(o,a){const s=getBrowserStorage(o);if(!s)return;const c=getStoredItem(s,browserCacheVersionKey);if(c!==browserCacheVersion){if(c){const _=getBrowserStorageItemsCount(s);for(let S=0;S<_;S++)removeStoredItem(s,browserCachePrefix+S.toString())}setStoredItem(s,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(s,0);return}const f=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,d=_=>{const S=browserCachePrefix+_.toString(),b=getStoredItem(s,S);if(typeof b=="string"){try{const $=JSON.parse(b);if(typeof $=="object"&&typeof $.cached=="number"&&$.cached>f&&typeof $.provider=="string"&&typeof $.data=="object"&&typeof $.data.prefix=="string"&&a($,_))return!0}catch($){}removeStoredItem(s,S)}};let y=getBrowserStorageItemsCount(s);for(let _=y-1;_>=0;_--)d(_)||(_===y-1?(y--,setBrowserStorageItemsCount(s,y)):browserStorageEmptyItems[o].add(_))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const o in browserStorageConfig)iterateBrowserStorage(o,a=>{const s=a.data,c=a.provider,f=s.prefix,d=getStorage$2(c,f);if(!addIconSet(d,s).length)return!1;const y=s.lastModified||-1;return d.lastModifiedCached=d.lastModifiedCached?Math.min(d.lastModifiedCached,y):y,!0})}}function updateLastModified(o,a){const s=o.lastModifiedCached;if(s&&s>=a)return s===a;if(o.lastModifiedCached=a,s)for(const c in browserStorageConfig)iterateBrowserStorage(c,f=>{const d=f.data;return f.provider!==o.provider||d.prefix!==o.prefix||d.lastModified===a});return!0}function storeInBrowserStorage(o,a){browserStorageStatus||initBrowserStorage();function s(c){let f;if(!browserStorageConfig[c]||!(f=getBrowserStorage(c)))return;const d=browserStorageEmptyItems[c];let y;if(d.size)d.delete(y=Array.from(d).shift());else if(y=getBrowserStorageItemsCount(f),!setBrowserStorageItemsCount(f,y+1))return;const _={cached:Math.floor(Date.now()/browserStorageHour),provider:o.provider,data:a};return setStoredItem(f,browserCachePrefix+y.toString(),JSON.stringify(_))}a.lastModified&&!updateLastModified(o,a.lastModified)||Object.keys(a.icons).length&&(a.not_found&&(a=Object.assign({},a),delete a.not_found),s("local")||s("session"))}function emptyCallback(){}function loadedNewIcons(o){o.iconsLoaderFlag||(o.iconsLoaderFlag=!0,setTimeout(()=>{o.iconsLoaderFlag=!1,updateCallbacks(o)}))}function loadNewIcons(o,a){o.iconsToLoad?o.iconsToLoad=o.iconsToLoad.concat(a).sort():o.iconsToLoad=a,o.iconsQueueFlag||(o.iconsQueueFlag=!0,setTimeout(()=>{o.iconsQueueFlag=!1;const{provider:s,prefix:c}=o,f=o.iconsToLoad;delete o.iconsToLoad;let d;if(!f||!(d=getAPIModule(s)))return;d.prepare(s,c,f).forEach(_=>{sendAPIQuery(s,_,S=>{if(typeof S!="object")_.icons.forEach(b=>{o.missing.add(b)});else try{const b=addIconSet(o,S);if(!b.length)return;const $=o.pendingIcons;$&&b.forEach(P=>{$.delete(P)}),storeInBrowserStorage(o,S)}catch(b){}loadedNewIcons(o)})})}))}const loadIcons=(o,a)=>{const s=listToIcons(o,!0,allowSimpleNames()),c=sortIcons(s);if(!c.pending.length){let S=!0;return a&&setTimeout(()=>{S&&a(c.loaded,c.missing,c.pending,emptyCallback)}),()=>{S=!1}}const f=Object.create(null),d=[];let y,_;return c.pending.forEach(S=>{const{provider:b,prefix:$}=S;if($===_&&b===y)return;y=b,_=$,d.push(getStorage$2(b,$));const P=f[b]||(f[b]=Object.create(null));P[$]||(P[$]=[])}),c.pending.forEach(S=>{const{provider:b,prefix:$,name:P}=S,T=getStorage$2(b,$),C=T.pendingIcons||(T.pendingIcons=new Set);C.has(P)||(C.add(P),f[b][$].push(P))}),d.forEach(S=>{const{provider:b,prefix:$}=S;f[b][$].length&&loadNewIcons(S,f[b][$])}),a?storeCallback(a,c,d):emptyCallback};function mergeCustomisations(o,a){const s=se({},o);for(const c in a){const f=a[c],d=typeof f;c in defaultIconSizeCustomisations?(f===null||f&&(d==="string"||d==="number"))&&(s[c]=f):d===typeof s[c]&&(s[c]=c==="rotate"?f%4:f)}return s}const separator=/[\s,]+/;function flipFromString(o,a){a.split(separator).forEach(s=>{switch(s.trim()){case"horizontal":o.hFlip=!0;break;case"vertical":o.vFlip=!0;break}})}function rotateFromString(o,a=0){const s=o.replace(/^-?[0-9.]*/,"");function c(f){for(;f<0;)f+=4;return f%4}if(s===""){const f=parseInt(o);return isNaN(f)?0:c(f)}else if(s!==o){let f=0;switch(s){case"%":f=25;break;case"deg":f=90}if(f){let d=parseFloat(o.slice(0,o.length-s.length));return isNaN(d)?0:(d=d/f,d%1===0?c(d):0)}}return a}function iconToHTML(o,a){let s=o.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const c in a)s+=" "+c+'="'+a[c]+'"';return'"+o+""}function encodeSVGforURL(o){return o.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData(o){return"data:image/svg+xml,"+encodeSVGforURL(o)}function svgToURL(o){return'url("'+svgToData(o)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:o=>o})}catch(o){policy=null}}function cleanUpInnerHTML(o){return policy===void 0&&createPolicy(),policy?policy.createHTML(o):o}const defaultExtendedIconCustomisations=$e(se({},defaultIconCustomisations),{inline:!1}),svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const o in propsToAddTo){const a=propsToAddTo[o];for(const s in propsToAdd)a[o+s]=propsToAdd[s]}const inlineDefaults=$e(se({},defaultExtendedIconCustomisations),{inline:!0});function fixSize(o){return o+(o.match(/^[-0-9.]+$/)?"px":"")}const render=(o,a,s,c)=>{const f=s?inlineDefaults:defaultExtendedIconCustomisations,d=mergeCustomisations(f,a),y=a.mode||"svg",_={},S=a.style||{},b=$e(se({},y==="svg"?svgDefaults:{}),{ref:c});for(let j in a){const L=a[j];if(L!==void 0)switch(j){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":d[j]=L===!0||L==="true"||L===1;break;case"flip":typeof L=="string"&&flipFromString(d,L);break;case"color":_.color=L;break;case"rotate":typeof L=="string"?d[j]=rotateFromString(L):typeof L=="number"&&(d[j]=L);break;case"ariaHidden":case"aria-hidden":L!==!0&&L!=="true"&&delete b["aria-hidden"];break;default:f[j]===void 0&&(b[j]=L)}}const $=iconToSVG(o,d),P=$.attributes;if(d.inline&&(_.verticalAlign="-0.125em"),y==="svg"){b.style=se(se({},_),S),Object.assign(b,P);let j=0,L=a.id;return typeof L=="string"&&(L=L.replace(/-/g,"_")),b.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs($.body,L?()=>L+"ID"+j++:"iconifyReact"))},React$4.createElement("svg",b)}const{body:T,width:C,height:O}=o,A=y==="mask"||(y==="bg"?!1:T.indexOf("currentColor")!==-1),M=iconToHTML(T,$e(se({},P),{width:C+"",height:O+""}));return b.style=se(se(se($e(se({},_),{"--svg":svgToURL(M),width:fixSize(P.width),height:fixSize(P.height)}),commonProps),A?monotoneProps:coloredProps),S),React$4.createElement("span",b)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document!="undefined"&&typeof window!="undefined"){initBrowserStorage();const o=window;if(o.IconifyPreload!==void 0){const a=o.IconifyPreload,s="Invalid IconifyPreload syntax.";typeof a=="object"&&a!==null&&(a instanceof Array?a:[a]).forEach(c=>{try{typeof c!="object"||c===null||c instanceof Array||typeof c.icons!="object"||typeof c.prefix!="string"||addCollection(c)}catch(f){}})}if(o.IconifyProviders!==void 0){const a=o.IconifyProviders;if(typeof a=="object"&&a!==null)for(let s in a){const c="IconifyProviders["+s+"] is invalid.";try{const f=a[s];if(typeof f!="object"||!f||f.resources===void 0)continue;addAPIProvider(s,f)}catch(f){}}}}class IconComponent extends React$4.Component{constructor(a){super(a),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(a){this.state.icon!==a&&this.setState({icon:a})}_checkIcon(a){const s=this.state,c=this.props.icon;if(typeof c=="object"&&c!==null&&typeof c.body=="string"){this._icon="",this._abortLoading(),(a||s.icon===null)&&this._setData({data:c});return}let f;if(typeof c!="string"||(f=stringToIcon(c,!1,!0))===null){this._abortLoading(),this._setData(null);return}const d=getIconData(f);if(!d){(!this._loading||this._loading.name!==c)&&(this._abortLoading(),this._icon="",this._setData(null),d!==null&&(this._loading={name:c,abort:loadIcons([f],this._checkIcon.bind(this,!1))}));return}if(this._icon!==c||s.icon===null){this._abortLoading(),this._icon=c;const y=["iconify"];f.prefix!==""&&y.push("iconify--"+f.prefix),f.provider!==""&&y.push("iconify--"+f.provider),this._setData({data:d,classes:y}),this.props.onLoad&&this.props.onLoad(c)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(a){a.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const a=this.props,s=this.state.icon;if(s===null)return a.children?a.children:React$4.createElement("span",{});let c=a;return s.classes&&(c=$e(se({},a),{className:(typeof a.className=="string"?a.className+" ":"")+s.classes.join(" ")})),render(se(se({},defaultIconProps),s.data),c,a._inline,a._ref)}}const Icon=React$4.forwardRef(function(a,s){const c=$e(se({},a),{_ref:s,_inline:!1});return React$4.createElement(IconComponent,c)});React$4.forwardRef(function(a,s){const c=$e(se({},a),{_ref:s,_inline:!0});return React$4.createElement(IconComponent,c)});const Selectlangulage=()=>{const{i18n:o}=useTranslation(),a=[{key:"zh",label:"中文"},{key:"en",label:"English"}];return jsxRuntimeExports.jsx(Dropdown,{menu:{items:a,onClick:({key:s})=>o.changeLanguage(s)},trigger:["click"],children:jsxRuntimeExports.jsx(Button,{shape:"circle",size:"small",icon:jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(Icon,{icon:"ant-design:global-outlined"})})})})};function LayoutFeature(){return jsxRuntimeExports.jsxs(Space,{size:"middle",children:[jsxRuntimeExports.jsx(GlobalSearch,{}),jsxRuntimeExports.jsx(Selectlangulage,{}),jsxRuntimeExports.jsx(DocLink,{}),jsxRuntimeExports.jsx(GithubLink,{}),jsxRuntimeExports.jsx(Settings,{}),jsxRuntimeExports.jsx(UserDropdown,{})]})}function formatProdErrorMessage$2(o){return`Minified Redux error #${o}; visit https://redux.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var $$observable$1=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),symbol_observable_default=$$observable$1,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes$1={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes$1;function isPlainObject$2(o){if(typeof o!="object"||o===null)return!1;let a=o;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a||Object.getPrototypeOf(o)===null}function createStore$1(o,a,s){if(typeof o!="function")throw new Error(formatProdErrorMessage$2(2));if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$2(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage$2(1));return s(createStore$1)(o,a)}let c=o,f=a,d=new Map,y=d,_=0,S=!1;function b(){y===d&&(y=new Map,d.forEach((M,j)=>{y.set(j,M)}))}function $(){if(S)throw new Error(formatProdErrorMessage$2(3));return f}function P(M){if(typeof M!="function")throw new Error(formatProdErrorMessage$2(4));if(S)throw new Error(formatProdErrorMessage$2(5));let j=!0;b();const L=_++;return y.set(L,M),function(){if(j){if(S)throw new Error(formatProdErrorMessage$2(6));j=!1,b(),y.delete(L),d=null}}}function T(M){if(!isPlainObject$2(M))throw new Error(formatProdErrorMessage$2(7));if(typeof M.type=="undefined")throw new Error(formatProdErrorMessage$2(8));if(typeof M.type!="string")throw new Error(formatProdErrorMessage$2(17));if(S)throw new Error(formatProdErrorMessage$2(9));try{S=!0,f=c(f,M)}finally{S=!1}return(d=y).forEach(L=>{L()}),M}function C(M){if(typeof M!="function")throw new Error(formatProdErrorMessage$2(10));c=M,T({type:actionTypes_default.REPLACE})}function O(){const M=P;return{subscribe(j){if(typeof j!="object"||j===null)throw new Error(formatProdErrorMessage$2(11));function L(){const I=j;I.next&&I.next($())}return L(),{unsubscribe:M(L)}},[symbol_observable_default](){return this}}}return T({type:actionTypes_default.INIT}),{dispatch:T,subscribe:P,getState:$,replaceReducer:C,[symbol_observable_default]:O}}function assertReducerShape(o){Object.keys(o).forEach(a=>{const s=o[a];if(typeof s(void 0,{type:actionTypes_default.INIT})=="undefined")throw new Error(formatProdErrorMessage$2(12));if(typeof s(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(formatProdErrorMessage$2(13))})}function combineReducers(o){const a=Object.keys(o),s={};for(let d=0;da:o.length===1?o[0]:o.reduce((a,s)=>(...c)=>a(s(...c)))}function applyMiddleware(...o){return a=>(s,c)=>{const f=a(s,c);let d=()=>{throw new Error(formatProdErrorMessage$2(15))};const y={getState:f.getState,dispatch:(S,...b)=>d(S,...b)},_=o.map(S=>S(y));return d=compose(..._)(f.dispatch),$e(se({},f),{dispatch:d})}}function isAction(o){return isPlainObject$2(o)&&"type"in o&&typeof o.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(o,...a){throw new Error(`[Immer] minified error nr: ${o}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(o){return!!o&&!!o[DRAFT_STATE]}function isDraftable(o){var a;return o?isPlainObject$1(o)||Array.isArray(o)||!!o[DRAFTABLE]||!!((a=o.constructor)!=null&&a[DRAFTABLE])||isMap(o)||isSet(o):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject$1(o){if(!o||typeof o!="object")return!1;const a=getPrototypeOf(o);if(a===null)return!0;const s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object?!0:typeof s=="function"&&Function.toString.call(s)===objectCtorString}function each(o,a){getArchtype(o)===0?Object.entries(o).forEach(([s,c])=>{a(s,c,o)}):o.forEach((s,c)=>a(c,s,o))}function getArchtype(o){const a=o[DRAFT_STATE];return a?a.type_:Array.isArray(o)?1:isMap(o)?2:isSet(o)?3:0}function has(o,a){return getArchtype(o)===2?o.has(a):Object.prototype.hasOwnProperty.call(o,a)}function set(o,a,s){const c=getArchtype(o);c===2?o.set(a,s):c===3?o.add(s):o[a]=s}function is(o,a){return o===a?o!==0||1/o===1/a:o!==o&&a!==a}function isMap(o){return o instanceof Map}function isSet(o){return o instanceof Set}function latest(o){return o.copy_||o.base_}function shallowCopy(o,a){if(isMap(o))return new Map(o);if(isSet(o))return new Set(o);if(Array.isArray(o))return Array.prototype.slice.call(o);if(!a&&isPlainObject$1(o))return getPrototypeOf(o)?se({},o):Object.assign(Object.create(null),o);const s=Object.getOwnPropertyDescriptors(o);delete s[DRAFT_STATE];let c=Reflect.ownKeys(s);for(let f=0;f1&&(o.set=o.add=o.clear=o.delete=dontMutateFrozenCollections),Object.freeze(o),a&&each(o,(s,c)=>freeze(c,!0))),o}function dontMutateFrozenCollections(){die(2)}function isFrozen(o){return Object.isFrozen(o)}var plugins={};function getPlugin(o){const a=plugins[o];return a||die(0,o),a}var currentScope;function getCurrentScope(){return currentScope}function createScope(o,a){return{drafts_:[],parent_:o,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(o,a){a&&(getPlugin("Patches"),o.patches_=[],o.inversePatches_=[],o.patchListener_=a)}function revokeScope(o){leaveScope(o),o.drafts_.forEach(revokeDraft),o.drafts_=null}function leaveScope(o){o===currentScope&&(currentScope=o.parent_)}function enterScope(o){return currentScope=createScope(currentScope,o)}function revokeDraft(o){const a=o[DRAFT_STATE];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function processResult(o,a){a.unfinalizedDrafts_=a.drafts_.length;const s=a.drafts_[0];return o!==void 0&&o!==s?(s[DRAFT_STATE].modified_&&(revokeScope(a),die(4)),isDraftable(o)&&(o=finalize(a,o),a.parent_||maybeFreeze(a,o)),a.patches_&&getPlugin("Patches").generateReplacementPatches_(s[DRAFT_STATE].base_,o,a.patches_,a.inversePatches_)):o=finalize(a,s,[]),revokeScope(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),o!==NOTHING?o:void 0}function finalize(o,a,s){if(isFrozen(a))return a;const c=a[DRAFT_STATE];if(!c)return each(a,(f,d)=>finalizeProperty(o,c,a,f,d,s)),a;if(c.scope_!==o)return a;if(!c.modified_)return maybeFreeze(o,c.base_,!0),c.base_;if(!c.finalized_){c.finalized_=!0,c.scope_.unfinalizedDrafts_--;const f=c.copy_;let d=f,y=!1;c.type_===3&&(d=new Set(f),f.clear(),y=!0),each(d,(_,S)=>finalizeProperty(o,c,f,_,S,s,y)),maybeFreeze(o,f,!1),s&&o.patches_&&getPlugin("Patches").generatePatches_(c,s,o.patches_,o.inversePatches_)}return c.copy_}function finalizeProperty(o,a,s,c,f,d,y){if(isDraft(f)){const _=d&&a&&a.type_!==3&&!has(a.assigned_,c)?d.concat(c):void 0,S=finalize(o,f,_);if(set(s,c,S),isDraft(S))o.canAutoFreeze_=!1;else return}else y&&s.add(f);if(isDraftable(f)&&!isFrozen(f)){if(!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1)return;finalize(o,f),(!a||!a.scope_.parent_)&&maybeFreeze(o,f)}}function maybeFreeze(o,a,s=!1){!o.parent_&&o.immer_.autoFreeze_&&o.canAutoFreeze_&&freeze(a,s)}function createProxyProxy(o,a){const s=Array.isArray(o),c={type_:s?1:0,scope_:a?a.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:o,draft_:null,copy_:null,revoke_:null,isManual_:!1};let f=c,d=objectTraps;s&&(f=[c],d=arrayTraps);const{revoke:y,proxy:_}=Proxy.revocable(f,d);return c.draft_=_,c.revoke_=y,_}var objectTraps={get(o,a){if(a===DRAFT_STATE)return o;const s=latest(o);if(!has(s,a))return readPropFromProto(o,s,a);const c=s[a];return o.finalized_||!isDraftable(c)?c:c===peek(o.base_,a)?(prepareCopy(o),o.copy_[a]=createProxy(c,o)):c},has(o,a){return a in latest(o)},ownKeys(o){return Reflect.ownKeys(latest(o))},set(o,a,s){const c=getDescriptorFromProto(latest(o),a);if(c!=null&&c.set)return c.set.call(o.draft_,s),!0;if(!o.modified_){const f=peek(latest(o),a),d=f==null?void 0:f[DRAFT_STATE];if(d&&d.base_===s)return o.copy_[a]=s,o.assigned_[a]=!1,!0;if(is(s,f)&&(s!==void 0||has(o.base_,a)))return!0;prepareCopy(o),markChanged(o)}return o.copy_[a]===s&&(s!==void 0||a in o.copy_)||Number.isNaN(s)&&Number.isNaN(o.copy_[a])||(o.copy_[a]=s,o.assigned_[a]=!0),!0},deleteProperty(o,a){return peek(o.base_,a)!==void 0||a in o.base_?(o.assigned_[a]=!1,prepareCopy(o),markChanged(o)):delete o.assigned_[a],o.copy_&&delete o.copy_[a],!0},getOwnPropertyDescriptor(o,a){const s=latest(o),c=Reflect.getOwnPropertyDescriptor(s,a);return c&&{writable:!0,configurable:o.type_!==1||a!=="length",enumerable:c.enumerable,value:s[a]}},defineProperty(){die(11)},getPrototypeOf(o){return getPrototypeOf(o.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(o,a)=>{arrayTraps[o]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});arrayTraps.deleteProperty=function(o,a){return arrayTraps.set.call(this,o,a,void 0)};arrayTraps.set=function(o,a,s){return objectTraps.set.call(this,o[0],a,s,o[0])};function peek(o,a){const s=o[DRAFT_STATE];return(s?latest(s):o)[a]}function readPropFromProto(o,a,s){var f;const c=getDescriptorFromProto(a,s);return c?"value"in c?c.value:(f=c.get)==null?void 0:f.call(o.draft_):void 0}function getDescriptorFromProto(o,a){if(!(a in o))return;let s=getPrototypeOf(o);for(;s;){const c=Object.getOwnPropertyDescriptor(s,a);if(c)return c;s=getPrototypeOf(s)}}function markChanged(o){o.modified_||(o.modified_=!0,o.parent_&&markChanged(o.parent_))}function prepareCopy(o){o.copy_||(o.copy_=shallowCopy(o.base_,o.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(o){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(a,s,c)=>{if(typeof a=="function"&&typeof s!="function"){const d=s;s=a;const y=this;return function(S=d,...b){return y.produce(S,$=>s.call(this,$,...b))}}typeof s!="function"&&die(6),c!==void 0&&typeof c!="function"&&die(7);let f;if(isDraftable(a)){const d=enterScope(this),y=createProxy(a,void 0);let _=!0;try{f=s(y),_=!1}finally{_?revokeScope(d):leaveScope(d)}return usePatchesInScope(d,c),processResult(f,d)}else if(!a||typeof a!="object"){if(f=s(a),f===void 0&&(f=a),f===NOTHING&&(f=void 0),this.autoFreeze_&&freeze(f,!0),c){const d=[],y=[];getPlugin("Patches").generateReplacementPatches_(a,f,d,y),c(d,y)}return f}else die(1,a)},this.produceWithPatches=(a,s)=>{if(typeof a=="function")return(y,..._)=>this.produceWithPatches(y,S=>a(S,..._));let c,f;return[this.produce(a,s,(y,_)=>{c=y,f=_}),c,f]},typeof(o==null?void 0:o.autoFreeze)=="boolean"&&this.setAutoFreeze(o.autoFreeze),typeof(o==null?void 0:o.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(o.useStrictShallowCopy)}createDraft(o){isDraftable(o)||die(8),isDraft(o)&&(o=current(o));const a=enterScope(this),s=createProxy(o,void 0);return s[DRAFT_STATE].isManual_=!0,leaveScope(a),s}finishDraft(o,a){const s=o&&o[DRAFT_STATE];(!s||!s.isManual_)&&die(9);const{scope_:c}=s;return usePatchesInScope(c,a),processResult(void 0,c)}setAutoFreeze(o){this.autoFreeze_=o}setUseStrictShallowCopy(o){this.useStrictShallowCopy_=o}applyPatches(o,a){let s;for(s=a.length-1;s>=0;s--){const f=a[s];if(f.path.length===0&&f.op==="replace"){o=f.value;break}}s>-1&&(a=a.slice(s+1));const c=getPlugin("Patches").applyPatches_;return isDraft(o)?c(o,a):this.produce(o,f=>c(f,a))}};function createProxy(o,a){const s=isMap(o)?getPlugin("MapSet").proxyMap_(o,a):isSet(o)?getPlugin("MapSet").proxySet_(o,a):createProxyProxy(o,a);return(a?a.scope_:getCurrentScope()).drafts_.push(s),s}function current(o){return isDraft(o)||die(10,o),currentImpl(o)}function currentImpl(o){if(!isDraftable(o)||isFrozen(o))return o;const a=o[DRAFT_STATE];let s;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,s=shallowCopy(o,a.scope_.immer_.useStrictShallowCopy_)}else s=shallowCopy(o,!0);return each(s,(c,f)=>{set(s,c,currentImpl(f))}),a&&(a.finalized_=!1),s}var immer=new Immer2,produce=immer.produce;immer.produceWithPatches.bind(immer);immer.setAutoFreeze.bind(immer);immer.setUseStrictShallowCopy.bind(immer);immer.applyPatches.bind(immer);immer.createDraft.bind(immer);immer.finishDraft.bind(immer);function assertIsFunction(o,a=`expected a function, instead received ${typeof o}`){if(typeof o!="function")throw new TypeError(a)}function assertIsObject(o,a=`expected an object, instead received ${typeof o}`){if(typeof o!="object")throw new TypeError(a)}function assertIsArrayOfFunctions(o,a="expected all items to be functions, instead received the following types: "){if(!o.every(s=>typeof s=="function")){const s=o.map(c=>typeof c=="function"?`function ${c.name||"unnamed"}()`:typeof c).join(", ");throw new TypeError(`${a}[${s}]`)}}var ensureIsArray=o=>Array.isArray(o)?o:[o];function getDependencies(o){const a=Array.isArray(o[0])?o[0]:o;return assertIsArrayOfFunctions(a,"createSelector expects all input-selectors to be functions, but received the following types: "),a}function collectInputSelectorResults(o,a){const s=[],{length:c}=o;for(let f=0;f{s=createCacheNode(),y.resetResultsCount()},y.resultsCount=()=>d,y.resetResultsCount=()=>{d=0},y}function createSelectorCreator(o,...a){const s=typeof o=="function"?{memoize:o,memoizeOptions:a}:o,c=(...f)=>{let d=0,y=0,_,S={},b=f.pop();typeof b=="object"&&(S=b,b=f.pop()),assertIsFunction(b,`createSelector expects an output function after the inputs, but received: [${typeof b}]`);const $=se(se({},s),S),{memoize:P,memoizeOptions:T=[],argsMemoize:C=weakMapMemoize,argsMemoizeOptions:O=[],devModeChecks:A={}}=$,M=ensureIsArray(T),j=ensureIsArray(O),L=getDependencies(f),F=P(function(){return d++,b.apply(null,arguments)},...M),I=C(function(){y++;const z=collectInputSelectorResults(L,arguments);return _=F.apply(null,z),_},...j);return Object.assign(I,{resultFunc:b,memoizedResultFunc:F,dependencies:L,dependencyRecomputations:()=>y,resetDependencyRecomputations:()=>{y=0},lastResult:()=>_,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:P,argsMemoize:C})};return Object.assign(c,{withTypes:()=>c}),c}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign((o,a=createSelector)=>{assertIsObject(o,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof o}`);const s=Object.keys(o),c=s.map(d=>o[d]);return a(c,(...d)=>d.reduce((y,_,S)=>(y[s[S]]=_,y),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(o){return({dispatch:s,getState:c})=>f=>d=>typeof d=="function"?d(s,c,o):f(d)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,createDraftSafeSelectorCreator=(...o)=>{const a=createSelectorCreator(...o);return(...s)=>{const c=a(...s),f=(d,...y)=>c(isDraft(d)?current(d):d,...y);return Object.assign(f,c),f}};createDraftSafeSelectorCreator(weakMapMemoize);var composeWithDevTools=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)},hasMatchFunction=o=>o&&typeof o.match=="function";function createAction(o,a){function s(...c){if(a){let f=a(...c);if(!f)throw new Error(formatProdErrorMessage$1(0));return se(se({type:o,payload:f.payload},"meta"in f&&{meta:f.meta}),"error"in f&&{error:f.error})}return{type:o,payload:c[0]}}return s.toString=()=>`${o}`,s.type=o,s.match=c=>isAction(c)&&c.type===o,s}var Tuple=class ba extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,ba.prototype)}static get[Symbol.species](){return ba}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new ba(...a[0].concat(this)):new ba(...a.concat(this))}};function freezeDraftable(o){return isDraftable(o)?produce(o,()=>{}):o}function emplace(o,a,s){if(o.has(a)){let f=o.get(a);return s.update&&(f=s.update(f,a,o),o.set(a,f)),f}if(!s.insert)throw new Error(formatProdErrorMessage$1(10));const c=s.insert(a,o);return o.set(a,c),c}function isBoolean(o){return typeof o=="boolean"}var buildGetDefaultMiddleware=()=>function(a){const{thunk:s=!0,immutableCheck:c=!0,serializableCheck:f=!0,actionCreatorCheck:d=!0}=a!=null?a:{};let y=new Tuple;return s&&(isBoolean(s)?y.push(thunk):y.push(withExtraArgument(s.extraArgument))),y},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=o=>a=>{setTimeout(a,o)},rAF=typeof window!="undefined"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=(o={type:"raf"})=>a=>(...s)=>{const c=a(...s);let f=!0,d=!1,y=!1;const _=new Set,S=o.type==="tick"?queueMicrotask:o.type==="raf"?rAF:o.type==="callback"?o.queueNotification:createQueueWithTimer(o.timeout),b=()=>{y=!1,d&&(d=!1,_.forEach($=>$()))};return Object.assign({},c,{subscribe($){const P=()=>f&&$(),T=c.subscribe(P);return _.add($),()=>{T(),_.delete($)}},dispatch($){var P;try{return f=!((P=$==null?void 0:$.meta)!=null&&P[SHOULD_AUTOBATCH]),d=!f,d&&(y||(y=!0,S(b))),c.dispatch($)}finally{f=!0}}})},buildGetDefaultEnhancers=o=>function(s){const{autoBatch:c=!0}=s!=null?s:{};let f=new Tuple(o);return c&&f.push(autoBatchEnhancer(typeof c=="object"?c:void 0)),f},IS_PRODUCTION=!0;function configureStore(o){const a=buildGetDefaultMiddleware(),{reducer:s=void 0,middleware:c,devTools:f=!0,preloadedState:d=void 0,enhancers:y=void 0}=o||{};let _;if(typeof s=="function")_=s;else if(isPlainObject$2(s))_=combineReducers(s);else throw new Error(formatProdErrorMessage$1(1));let S;typeof c=="function"?S=c(a):S=a();let b=compose;f&&(b=composeWithDevTools(se({trace:!IS_PRODUCTION},typeof f=="object"&&f)));const $=applyMiddleware(...S),P=buildGetDefaultEnhancers($);let T=typeof y=="function"?y(P):P();const C=b(...T);return createStore$1(_,d,C)}function executeReducerBuilderCallback(o){const a={},s=[];let c;const f={addCase(d,y){const _=typeof d=="string"?d:d.type;if(!_)throw new Error(formatProdErrorMessage$1(28));if(_ in a)throw new Error(formatProdErrorMessage$1(29));return a[_]=y,f},addMatcher(d,y){return s.push({matcher:d,reducer:y}),f},addDefaultCase(d){return c=d,f}};return o(f),[a,s,c]}function isStateFunction(o){return typeof o=="function"}function createReducer(o,a){let[s,c,f]=executeReducerBuilderCallback(a),d;if(isStateFunction(o))d=()=>freezeDraftable(o());else{const _=freezeDraftable(o);d=()=>_}function y(_=d(),S){let b=[s[S.type],...c.filter(({matcher:$})=>$(S)).map(({reducer:$})=>$)];return b.filter($=>!!$).length===0&&(b=[f]),b.reduce(($,P)=>{if(P)if(isDraft($)){const C=P($,S);return C===void 0?$:C}else{if(isDraftable($))return produce($,T=>P(T,S));{const T=P($,S);if(T===void 0){if($===null)return $;throw new Error(formatProdErrorMessage$1(9))}return T}}return $},_)}return y.getInitialState=d,y}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=(o=21)=>{let a="",s=o;for(;s--;)a+=urlAlphabet[Math.random()*64|0];return a},matches=(o,a)=>hasMatchFunction(o)?o.match(a):o(a);function isAnyOf(...o){return a=>o.some(s=>matches(s,a))}var commonProperties=["name","message","stack","code"],RejectWithValue=class{constructor(o,a){tr(this,"_type");this.payload=o,this.meta=a}},FulfillWithMeta=class{constructor(o,a){tr(this,"_type");this.payload=o,this.meta=a}},miniSerializeError=o=>{if(typeof o=="object"&&o!==null){const a={};for(const s of commonProperties)typeof o[s]=="string"&&(a[s]=o[s]);return a}return{message:String(o)}},createAsyncThunk=(()=>{function o(a,s,c){const f=createAction(a+"/fulfilled",(S,b,$,P)=>({payload:S,meta:$e(se({},P||{}),{arg:$,requestId:b,requestStatus:"fulfilled"})})),d=createAction(a+"/pending",(S,b,$)=>({payload:void 0,meta:$e(se({},$||{}),{arg:b,requestId:S,requestStatus:"pending"})})),y=createAction(a+"/rejected",(S,b,$,P,T)=>({payload:P,error:(c&&c.serializeError||miniSerializeError)(S||"Rejected"),meta:$e(se({},T||{}),{arg:$,requestId:b,rejectedWithValue:!!P,requestStatus:"rejected",aborted:(S==null?void 0:S.name)==="AbortError",condition:(S==null?void 0:S.name)==="ConditionError"})}));function _(S){return(b,$,P)=>{const T=c!=null&&c.idGenerator?c.idGenerator(S):nanoid(),C=new AbortController;let O;function A(j){O=j,C.abort()}const M=function(){return xt(this,null,function*(){var F,I;let j;try{let U=(F=c==null?void 0:c.condition)==null?void 0:F.call(c,S,{getState:$,extra:P});if(isThenable(U)&&(U=yield U),U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((H,G)=>C.signal.addEventListener("abort",()=>G({name:"AbortError",message:O||"Aborted"})));b(d(T,S,(I=c==null?void 0:c.getPendingMeta)==null?void 0:I.call(c,{requestId:T,arg:S},{getState:$,extra:P}))),j=yield Promise.race([z,Promise.resolve(s(S,{dispatch:b,getState:$,extra:P,requestId:T,signal:C.signal,abort:A,rejectWithValue:(H,G)=>new RejectWithValue(H,G),fulfillWithValue:(H,G)=>new FulfillWithMeta(H,G)})).then(H=>{if(H instanceof RejectWithValue)throw H;return H instanceof FulfillWithMeta?f(H.payload,T,S,H.meta):f(H,T,S)})])}catch(U){j=U instanceof RejectWithValue?y(null,T,S,U.payload,U.meta):y(U,T,S)}return c&&!c.dispatchConditionRejection&&y.match(j)&&j.meta.condition||b(j),j})}();return Object.assign(M,{abort:A,requestId:T,arg:S,unwrap(){return M.then(unwrapResult)}})}}return Object.assign(_,{pending:d,rejected:y,fulfilled:f,settled:isAnyOf(y,f),typePrefix:a})}return o.withTypes=()=>o,o})();function unwrapResult(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function isThenable(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(o,a){return`${o}/${a}`}function buildCreateSlice({creators:o}={}){var s;const a=(s=o==null?void 0:o.asyncThunk)==null?void 0:s[asyncThunkSymbol];return function(f){const{name:d,reducerPath:y=d}=f;if(!d)throw new Error(formatProdErrorMessage$1(11));const _=(typeof f.reducers=="function"?f.reducers(buildReducerCreators()):f.reducers)||{},S=Object.keys(_),b={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},$={addCase(M,j){const L=typeof M=="string"?M:M.type;if(!L)throw new Error(formatProdErrorMessage$1(12));if(L in b.sliceCaseReducersByType)throw new Error(formatProdErrorMessage$1(13));return b.sliceCaseReducersByType[L]=j,$},addMatcher(M,j){return b.sliceMatchers.push({matcher:M,reducer:j}),$},exposeAction(M,j){return b.actionCreators[M]=j,$},exposeCaseReducer(M,j){return b.sliceCaseReducersByName[M]=j,$}};S.forEach(M=>{const j=_[M],L={reducerName:M,type:getType(d,M),createNotation:typeof f.reducers=="function"};isAsyncThunkSliceReducerDefinition(j)?handleThunkCaseReducerDefinition(L,j,$,a):handleNormalReducerDefinition(L,j,$)});function P(){const[M={},j=[],L=void 0]=typeof f.extraReducers=="function"?executeReducerBuilderCallback(f.extraReducers):[f.extraReducers],F=se(se({},M),b.sliceCaseReducersByType);return createReducer(f.initialState,I=>{for(let U in F)I.addCase(U,F[U]);for(let U of b.sliceMatchers)I.addMatcher(U.matcher,U.reducer);for(let U of j)I.addMatcher(U.matcher,U.reducer);L&&I.addDefaultCase(L)})}const T=M=>M,C=new WeakMap;let O;const A={name:d,reducerPath:y,reducer(M,j){return O||(O=P()),O(M,j)},actions:b.actionCreators,caseReducers:b.sliceCaseReducersByName,getInitialState(){return O||(O=P()),O.getInitialState()},getSelectors(M=T){const j=emplace(C,this,{insert:()=>new WeakMap});return emplace(j,M,{insert:()=>{var F;const L={};for(const[I,U]of Object.entries((F=f.selectors)!=null?F:{}))L[I]=wrapSelector(this,U,M,this!==A);return L}})},selectSlice(M){let j=M[this.reducerPath];return typeof j=="undefined"&&this!==A&&(j=this.getInitialState()),j},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(M,F={}){var I=F,{reducerPath:j}=I,L=er(I,["reducerPath"]);const U=j!=null?j:this.reducerPath;return M.inject({reducerPath:U,reducer:this.reducer},L),$e(se({},this),{reducerPath:U})}};return A}}function wrapSelector(o,a,s,c){function f(d,...y){let _=s.call(o,d);return typeof _=="undefined"&&c&&(_=o.getInitialState()),a(_,...y)}return f.unwrapped=a,f}var createSlice=buildCreateSlice();function buildReducerCreators(){function o(a,s){return se({_reducerDefinitionType:"asyncThunk",payloadCreator:a},s)}return o.withTypes=()=>o,{reducer(a){return Object.assign({[a.name](...s){return a(...s)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,s){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:s}},asyncThunk:o}}function handleNormalReducerDefinition({type:o,reducerName:a,createNotation:s},c,f){let d,y;if("reducer"in c){if(s&&!isCaseReducerWithPrepareDefinition(c))throw new Error(formatProdErrorMessage$1(17));d=c.reducer,y=c.prepare}else d=c;f.addCase(o,d).exposeCaseReducer(a,d).exposeAction(a,y?createAction(o,y):createAction(o))}function isAsyncThunkSliceReducerDefinition(o){return o._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(o){return o._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:o,reducerName:a},s,c,f){if(!f)throw new Error(formatProdErrorMessage$1(18));const{payloadCreator:d,fulfilled:y,pending:_,rejected:S,settled:b,options:$}=s,P=f(o,d,$);c.exposeAction(a,P),y&&c.addCase(P.fulfilled,y),_&&c.addCase(P.pending,_),S&&c.addCase(P.rejected,S),b&&c.addMatcher(P.settled,b),c.exposeCaseReducer(a,{fulfilled:y||noop$1,pending:_||noop$1,rejected:S||noop$1,settled:b||noop$1})}function noop$1(){}var alm="listenerMiddleware";createAction(`${alm}/add`);createAction(`${alm}/removeAll`);createAction(`${alm}/remove`);function formatProdErrorMessage$1(o){return`Minified Redux Toolkit error #${o}; visit https://redux-toolkit.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var KEY_PREFIX="persist:",FLUSH="persist/FLUSH",REHYDRATE="persist/REHYDRATE",PAUSE="persist/PAUSE",PERSIST="persist/PERSIST",PURGE="persist/PURGE",REGISTER="persist/REGISTER",DEFAULT_VERSION=-1;function _typeof$1(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(s){return typeof s}:_typeof$1=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(o)}function ownKeys$2(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$2(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var DEFAULT_TIMEOUT=5e3;function persistReducer(o,a){var s=o.version!==void 0?o.version:DEFAULT_VERSION;o.debug;var c=o.stateReconciler===void 0?autoMergeLevel1:o.stateReconciler,f=o.getStoredState||getStoredState,d=o.timeout!==void 0?o.timeout:DEFAULT_TIMEOUT,y=null,_=!1,S=!0,b=function(P){return P._persist.rehydrated&&y&&!S&&y.update(P),P};return function($,P){var T=$||{},C=T._persist,O=_objectWithoutProperties(T,["_persist"]),A=O;if(P.type===PERSIST){var M=!1,j=function(G,X){M||(P.rehydrate(o.key,G,X),M=!0)};if(d&&setTimeout(function(){!M&&j(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(o.key,'"')))},d),S=!1,y||(y=createPersistoid(o)),C)return _objectSpread$1({},a(A,P),{_persist:C});if(typeof P.rehydrate!="function"||typeof P.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return P.register(o.key),f(o).then(function(H){var G=o.migrate||function(X,W){return Promise.resolve(X)};G(H,s).then(function(X){j(X)},function(X){j(void 0,X)})},function(H){j(void 0,H)}),_objectSpread$1({},a(A,P),{_persist:{version:s,rehydrated:!1}})}else{if(P.type===PURGE)return _=!0,P.result(purgeStoredState(o)),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===FLUSH)return P.result(y&&y.flush()),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===PAUSE)S=!0;else if(P.type===REHYDRATE){if(_)return _objectSpread$1({},A,{_persist:_objectSpread$1({},C,{rehydrated:!0})});if(P.key===o.key){var L=a(A,P),F=P.payload,I=c!==!1&&F!==void 0?c(F,$,L,o):L,U=_objectSpread$1({},I,{_persist:_objectSpread$1({},C,{rehydrated:!0})});return b(U)}}}if(!C)return a($,P);var z=a(A,P);return z===A?$:b(_objectSpread$1({},z,{_persist:C}))}}function formatProdErrorMessage(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var $$observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(o){if(typeof o!="object"||o===null)return!1;for(var a=o;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a}function createStore(o,a,s){var c;if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage(1));return s(createStore)(o,a)}if(typeof o!="function")throw new Error(formatProdErrorMessage(2));var f=o,d=a,y=[],_=y,S=!1;function b(){_===y&&(_=y.slice())}function $(){if(S)throw new Error(formatProdErrorMessage(3));return d}function P(A){if(typeof A!="function")throw new Error(formatProdErrorMessage(4));if(S)throw new Error(formatProdErrorMessage(5));var M=!0;return b(),_.push(A),function(){if(M){if(S)throw new Error(formatProdErrorMessage(6));M=!1,b();var L=_.indexOf(A);_.splice(L,1),y=null}}}function T(A){if(!isPlainObject(A))throw new Error(formatProdErrorMessage(7));if(typeof A.type=="undefined")throw new Error(formatProdErrorMessage(8));if(S)throw new Error(formatProdErrorMessage(9));try{S=!0,d=f(d,A)}finally{S=!1}for(var M=y=_,j=0;j0&&arguments[0]!==void 0?arguments[0]:initialState$2,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case REGISTER:return _objectSpread({},a,{registry:[].concat(_toConsumableArray(a.registry),[s.key])});case REHYDRATE:var c=a.registry.indexOf(s.key),f=_toConsumableArray(a.registry);return f.splice(c,1),_objectSpread({},a,{registry:f,bootstrapped:f.length===0});default:return a}};function persistStore(o,a,s){var c=s||!1,f=createStore(persistorReducer,initialState$2,a&&a.enhancer?a.enhancer:void 0),d=function(b){f.dispatch({type:REGISTER,key:b})},y=function(b,$,P){var T={type:REHYDRATE,payload:$,err:P,key:b};o.dispatch(T),f.dispatch(T),c&&_.getState().bootstrapped&&(c(),c=!1)},_=_objectSpread({},f,{purge:function(){var b=[];return o.dispatch({type:PURGE,result:function(P){b.push(P)}}),Promise.all(b)},flush:function(){var b=[];return o.dispatch({type:FLUSH,result:function(P){b.push(P)}}),Promise.all(b)},pause:function(){o.dispatch({type:PAUSE})},persist:function(){o.dispatch({type:PERSIST,register:d,rehydrate:y})}});return a&&a.manualPersist||_.persist(),_}var createWebStorage$1={},getStorage$1={};getStorage$1.__esModule=!0;getStorage$1.default=getStorage;function _typeof(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(s){return typeof s}:_typeof=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(o)}function noop(){}var noopStorage={getItem:noop,setItem:noop,removeItem:noop};function hasStorage(o){if((typeof self=="undefined"?"undefined":_typeof(self))!=="object"||!(o in self))return!1;try{var a=self[o],s="redux-persist ".concat(o," test");a.setItem(s,"test"),a.getItem(s),a.removeItem(s)}catch(c){return!1}return!0}function getStorage(o){var a="".concat(o,"Storage");return hasStorage(a)?self[a]:noopStorage}createWebStorage$1.__esModule=!0;createWebStorage$1.default=createWebStorage;var _getStorage=_interopRequireDefault$1(getStorage$1);function _interopRequireDefault$1(o){return o&&o.__esModule?o:{default:o}}function createWebStorage(o){var a=(0,_getStorage.default)(o);return{getItem:function(c){return new Promise(function(f,d){f(a.getItem(c))})},setItem:function(c,f){return new Promise(function(d,y){d(a.setItem(c,f))})},removeItem:function(c){return new Promise(function(f,d){f(a.removeItem(c))})}}}var default_1=void 0,_createWebStorage=_interopRequireDefault(createWebStorage$1);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var _default=(0,_createWebStorage.default)("local");default_1=_default;const initialState$1={menuList:[],isCollapse:!1},menu=createSlice({name:"menu",initialState:initialState$1,reducers:{setMenuList:(o,a)=>{o.menuList=a.payload},updateCollapse:(o,a)=>{o.isCollapse=a.payload}}}),{setMenuList,updateCollapse}=menu.actions,menuSlice=menu.reducer,initialState={visitedTags:[],cachedTags:[]},createAppAsyncThunk=createAsyncThunk.withTypes(),tags=createSlice({name:"tags",initialState,reducers:{addVisitedTags:(o,a)=>{const s=o.visitedTags.findIndex(c=>c.path===a.payload.path);s<0?o.visitedTags.push(a.payload):o.visitedTags[s]=se(se({},o.visitedTags[s]),a.payload)},updateVisitedTags:(o,a)=>{o.visitedTags=a.payload},closeTagsByType:(o,a)=>{let s=[];const{type:c,path:f}=a.payload,{visitedTags:d}=o,y=d.findIndex(S=>S.fullPath===f),_=d.filter(S=>{var b;return(b=S==null?void 0:S.meta)==null?void 0:b.affix});switch(c){case"left":s=d.slice(y);break;case"right":s=d.slice(0,y+1);break;case"other":s=d.filter(S=>S.fullPath===f);break}o.visitedTags=_.concat(s.filter(S=>{var b;return!((b=S.meta)!=null&&b.affix)}))}}}),closeTagByKey=createAppAsyncThunk("tags/closeTagByKey",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.findIndex(y=>y.fullPath===o),d=c.filter(y=>y.fullPath!==o);return s(updateVisitedTags(d)),Promise.resolve({tagIndex:f,tagsList:d})}),closeAllTags=createAppAsyncThunk("tags/closeAllTags",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.filter(d=>{var y;return(y=d==null?void 0:d.meta)==null?void 0:y.affix});return s(updateVisitedTags(f)),Promise.resolve(f)}),{addVisitedTags,updateVisitedTags,closeTagsByType}=tags.actions,tagsSlice=tags.reducer,persistConfig={key:"redux-persist",storage:default_1},store=configureStore({reducer:{menu:persistReducer(persistConfig,menuSlice),tags:persistReducer(persistConfig,tagsSlice)},middleware:o=>o({serializableCheck:!1}),devTools:!0}),persistor=persistStore(store),useAppDispatch=useDispatch,useAppSelector=useSelector,useStyles$7=createStyles(({token:o},a)=>{const{active:s}=a;return{"compo_tag-item":{display:"inline-block",verticalAlign:"top",height:"24px",margin:"0 2px",padding:"0 8px",borderRadius:"3px",lineHeight:"24px",color:s?"#fff":"#555",background:s?o.colorPrimary:"#fff",overflow:"hidden",cursor:"pointer","&__dot":{display:"inline-block",verticalAlign:"baseline",width:"8px",height:"8px",marginRight:"6px",borderRadius:"50%",background:s?"#fff":"#dcdee0"},"&__name":{fontSize:"12px"}},verticalAlign:"baseline",svg:{width:"8px",height:"8px"},active:{border:"none",color:"#fff",background:o.colorPrimary,".anticon-close":{color:"#fff"}}}}),TagItem=({name:o,fixed:a,active:s=!1,closeTag:c,onClick:f})=>{const{styles:d}=useStyles$7({active:s});return jsxRuntimeExports.jsxs(Tag$1,{className:classNames(d["compo_tag-item"],{[d.active]:s}),closable:!a,onClose:c,onClick:f,children:[jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__dot`}),jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__name`,children:o})]})},useStyles$6=createStyles(()=>({layout_tags:{zIndex:"299",display:"flex",justifyContent:"space-between",height:"32px",padding:"4px 12px",lineHeight:"32px","&__main":{position:"relative",width:"calc(100% - 116px)",height:"24px",overflow:"hidden","&-body":{position:"absolute",height:"100%",padding:"0 2px",overflow:"visible",whiteSpace:"nowrap",transition:"left .5s ease"}},"&__btn-space":{marginLeft:"4px"}}})),LayoutTags=()=>{const{t:o}=useTranslation(),{styles:a}=useStyles$6(),s=[{key:"left",label:o("关闭左侧")},{key:"right",label:o("关闭右侧")},{key:"other",label:o("关闭其它")},{key:"all",label:o("关闭所有")}],c=({key:z})=>{z==="all"?P(closeAllTags()).then(({payload:H})=>{const G=H.slice(-1)[0];T!==(G==null?void 0:G.fullPath)&&b(G==null?void 0:G.fullPath)}):P(closeTagsByType({type:z,path:T}))},f=reactExports.useRef(null),d=reactExports.useRef(null),[y,_]=reactExports.useState(0),{pathname:S}=useLocation(),b=useNavigate(),$=useAppSelector(z=>z.tags.visitedTags),P=useAppDispatch(),[T,C]=reactExports.useState(S);reactExports.useEffect(()=>{O(routeList).forEach(H=>{P(addVisitedTags(H))})},[]),reactExports.useEffect(()=>{const z=searchRoute(S,routeList);z&&P(addVisitedTags(z)),C(S)},[S]),reactExports.useEffect(()=>{var G;const z=(G=d.current)==null?void 0:G.childNodes,H=Array.from(z).find(X=>X.dataset.path===T);A(H)},[T]);const O=(z,H="/")=>{const G=[],X=W=>{var K;if((K=W.meta)!=null&&K.affix){const ie=W.path.startsWith("/")?W.path:H+W.path;G.push($e(se({},W),{path:ie}))}W.children&&W.children.length&&W.children.forEach(ie=>X(ie))};return z.forEach(W=>X(W)),G},A=z=>{var K,ie,ee,de,Z,Q,J,ne,fe,le,ae;let H=0;const G=4,X=(K=f.current)==null?void 0:K.offsetWidth;((ie=d.current)==null?void 0:ie.offsetWidth)-y&&((Q=z==null?void 0:z.offsetLeft)!=null?Q:0)+((J=z==null?void 0:z.offsetWidth)!=null?J:0)<-y+X?H=Math.min(0,X-((ne=z==null?void 0:z.offsetWidth)!=null?ne:0)-((fe=z==null?void 0:z.offsetLeft)!=null?fe:0)-G):H=-(((le=z==null?void 0:z.offsetLeft)!=null?le:0)-(X-G-((ae=z==null?void 0:z.offsetWidth)!=null?ae:0))),_(H)},M=z=>{var W,K;let H=0;const G=(W=f.current)==null?void 0:W.offsetWidth,X=(K=d.current)==null?void 0:K.offsetWidth;z>0?H=Math.min(0,y+z):G=-(X-G)&&(H=Math.max(y+z,G-X)):H=0,_(H)},j=z=>{const{type:H}=z;let G=0;H==="wheel"&&(G=z.deltaY?z.deltaY*2:-(z.detail||0)*2),M(G)},L=z=>{P(closeTagByKey(z)).then(({payload:H})=>{let G={};const{tagIndex:X,tagsList:W}=H,K=W.length;z===T&&(X<=K-1?G=W[X]:G=W[K-1],b(G==null?void 0:G.fullPath))})},F=z=>{C(z),b(z)};function I(){return new Date().getTime().toString()}const U=()=>{$.findIndex(H=>H.fullPath===T)>=0&&b(T,{replace:!0,state:{key:I()}})};return jsxRuntimeExports.jsxs("div",{className:a.layout_tags,children:[jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(LeftOutlined,{}),size:"small",onClick:()=>M(200)}),jsxRuntimeExports.jsx("div",{ref:f,className:`${a.layout_tags}__main`,onWheel:j,children:jsxRuntimeExports.jsx("div",{ref:d,className:`${a.layout_tags}__main-body`,style:{left:`${y}px`},children:$.map(z=>{var H,G;return jsxRuntimeExports.jsx("span",{"data-path":z.fullPath,children:jsxRuntimeExports.jsx(TagItem,{name:o((H=z.meta)==null?void 0:H.title),active:T===z.fullPath,fixed:(G=z.meta)==null?void 0:G.affix,onClick:()=>F(z.fullPath),closeTag:()=>L(z.fullPath)},z.key)},z.fullPath)})})}),jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(RightOutlined,{}),size:"small",onClick:()=>M(-200)}),jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(RedoOutlined,{}),size:"small",onClick:()=>U()}),jsxRuntimeExports.jsx(Dropdown,{menu:{items:s,onClick:c},placement:"bottomLeft",children:jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(CloseOutlined,{}),size:"small"})})]})};function LayoutBreadcrumb(o){const{t:a,i18n:s}=useTranslation(),[c,f]=reactExports.useState([]),{pathname:d}=useLocation(),y=useAppSelector(_=>_.menu.menuList);return reactExports.useEffect(()=>{const S=(matchRoutes(y,d)||[]).map(b=>{const{name:$,icon:P=""}=b==null?void 0:b.route;return{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[P&&jsxRuntimeExports.jsx(SvgIcon,{name:P,style:{marginRight:8}}),jsxRuntimeExports.jsx("span",{children:a($)})]})}});f(S)},[d,s.language]),jsxRuntimeExports.jsx("div",{className:"flex-center-v",style:{padding:"0 16px"},children:jsxRuntimeExports.jsx(Breadcrumb,{items:c})})}const useStyles$5=createStyles(()=>({"compo_fold-trigger":{display:"flex",alignItems:"center",cursor:"pointer"},unfold:{svg:{transform:"scaleX(-1)",transition:"transform 0.2s"}}}));function FoldTrigger(){const{styles:o,cx:a}=useStyles$5(),s=useSettings(),{setSettings:c}=useSettingActions();function f(){c($e(se({},s),{unfold:!s.unfold}))}return jsxRuntimeExports.jsx("span",{className:a(o["compo_fold-trigger"],{[o.unfold]:!s.unfold}),onClick:f,children:jsxRuntimeExports.jsx(SvgIcon,{name:"unfold",size:20})})}const useStyles$4=createStyles(({token:o})=>({"layout-header":{flexDirection:"column",height:"auto",background:o.colorBgBase,padding:0,boxShadow:o.boxShadowTertiary}})),LayoutHeader=o=>{const{Header:a}=Layout,{styles:s}=useStyles$4(),{hasCrumbs:c,hasTabs:f}=useGlobalStore();return jsxRuntimeExports.jsxs(a,{className:classNames("flex-between-h",s["layout-header"]),children:[jsxRuntimeExports.jsxs("div",{className:"flex-between-h",style:{padding:"0 12px"},children:[jsxRuntimeExports.jsxs("div",{className:"flex-center-v",children:[jsxRuntimeExports.jsx(FoldTrigger,{}),c&&jsxRuntimeExports.jsx(LayoutBreadcrumb,{})]}),jsxRuntimeExports.jsx(LayoutFeature,{})]}),f?jsxRuntimeExports.jsx(LayoutTags,{}):null]})},useStyles$3=createStyles(({token:o})=>({layout_wrapper:{display:"flex",width:"100%",height:"100vh",overflowX:"hidden",background:o.colorBgContainer,".ant-layout-content":{height:"calc(100vh - 48px)",boxSizing:"border-box",flex:"1",padding:o.paddingMD,overflowX:"hidden"},".ant-layout-sider":{height:"calc(100vh)",borderInlineEnd:"1px solid rgba(5, 5, 5, 0.06)",marginInlineEnd:"-1px"},".ant-layout":{background:o.colorBgContainer}}})),useStyles$2=createStyles(()=>({anticon:{display:"inline-flex",alignItems:"center",verticalAlign:"middle",cursor:"pointer",svg:{display:"inline-block"}}}));function IconifyIcon(c){var f=c,{icon:o,size:a}=f,s=er(f,["icon","size"]);const{styles:d}=useStyles$2();return jsxRuntimeExports.jsx(Icon,$e(se({icon:o},s),{className:d.anticon,width:a}))}const getOpenKeys=o=>{let a="";const s=[];return o.split("/").forEach(c=>{c&&(a+=`/${c}`,s.push(a))}),s.slice(0,-1)},getItem=(o,a,s,c,f)=>({label:o,key:a,icon:s,children:c,type:f}),LayoutMenu=o=>{const{pathname:a}=useLocation(),{setMenuList:s}=o,[c,f]=reactExports.useState(!1),[d,y]=reactExports.useState([]),[_,S]=reactExports.useState([]),[b,$]=reactExports.useState([a]),{t:P,i18n:T}=useTranslation();reactExports.useEffect(()=>{$([a]),S(getOpenKeys(a))},[a]);const C=(F,I)=>F?F.startsWith("gbeata-")?jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(IconifyIcon,{icon:F.replace("gbeata-",""),size:I||16})}):jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(SvgIcon,{name:F,size:I||16})}):null,O=(F,I=[])=>(F.forEach(U=>{var z;if(!((z=U==null?void 0:U.children)!=null&&z.length))return I.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize)));I.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize),O(U.children)))}),I),A=()=>xt(void 0,null,function*(){f(!0);try{const F=yield getAsyncMenus();y(O(F)),s(F)}finally{f(!1)}});reactExports.useEffect(()=>{A()},[T.language]);const M=F=>{if(F.length===0||F.length===1)return S(F);const I=F[F.length-1];if(I.includes(F[0]))return S(F);S([I])},j=useNavigate(),L=({key:F})=>{j(F)};return jsxRuntimeExports.jsx("div",{className:"layout_menu",children:jsxRuntimeExports.jsx(Spin,{spinning:c,tip:"Loading...",children:jsxRuntimeExports.jsx(Menu,{style:{border:"none"},mode:"inline",triggerSubMenuAction:"click",inlineIndent:20,subMenuOpenDelay:.2,openKeys:_,selectedKeys:b,items:d,onClick:L,onOpenChange:M})})})},mapStateToProps=o=>o.menu,mapDispatchToProps={setMenuList},LayoutMenu$1=connect(mapStateToProps,mapDispatchToProps)(LayoutMenu),BasicLayout=o=>{const{state:a}=useLocation(),{unfold:s}=useSettings(),{key:c="key"}=a||{};useTitle();const{Sider:f,Content:d}=Layout,{styles:y}=useStyles$3();return jsxRuntimeExports.jsxs(Layout,{className:y.layout_wrapper,children:[jsxRuntimeExports.jsxs(f,{width:240,trigger:null,theme:"light",collapsed:s,className:"ant-layout-sider",children:[jsxRuntimeExports.jsx(AppLogo,{}),jsxRuntimeExports.jsx(LayoutMenu$1,{})]}),jsxRuntimeExports.jsxs(Layout,{children:[jsxRuntimeExports.jsx(LayoutHeader,{}),jsxRuntimeExports.jsx(d,{children:jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsx(Outlet,{},c)})})]})]})},GuardRoute=({children:o})=>{const a=["/","/home","/login"],{pathname:s}=useLocation(),{token:c}=useUserToken();return c?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o}):a.includes(s)?jsxRuntimeExports.jsx(Navigate,{to:"/login",replace:!0}):jsxRuntimeExports.jsx(Navigate,{to:`/login?redirect=${s}`,replace:!0})},LayoutGuard=()=>jsxRuntimeExports.jsx(GuardRoute,{children:jsxRuntimeExports.jsx(BasicLayout,{})}),CompoRoute={path:"/compo",name:"Compo",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"组件",icon:"compo",orderNo:6},children:[{path:"image-upload",name:"ImageUpload",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../image-upload-64969e02.js"),["assets/image-upload-64969e02.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-da01dae2.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"图片上传",key:"imageUpload"}},{path:"drag",name:"Drag",meta:{title:"拖拽"},children:[{path:"drag-list",name:"DragList",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-list-916004ad.js"),["assets/drag-list-916004ad.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-da01dae2.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"列表拖拽",key:"dragList"}},{path:"drag-resize",name:"DragResize",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-resize-d08fdbd2.js"),["assets/drag-resize-d08fdbd2.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-da01dae2.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"组件拖拽",key:"dragResize"}}]},{path:"transfer",name:"Transfer",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-7de6860e.js"),["assets/index-7de6860e.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-da01dae2.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"穿梭框"}},{path:"count-up",name:"CountUp",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../count-up-e2512a30.js"),["assets/count-up-e2512a30.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-646dffa4.js","assets/websiteSetting-da01dae2.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"数字滚动",key:"countUp"}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:CompoRoute},Symbol.toStringTag,{value:"Module"}));var ExceptionEnum=(o=>(o[o.PAGE_NOT_ACCESS=403]="PAGE_NOT_ACCESS",o[o.PAGE_NOT_FOUND=404]="PAGE_NOT_FOUND",o[o.SERVER_ERROR=500]="SERVER_ERROR",o))(ExceptionEnum||{});const ExceptionRoute={path:"/exception",name:"ExceptionPage",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"异常页面",icon:"bug",orderNo:11},children:[{path:"page-403",name:"Page403",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"403页面",key:"page403"},loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!0})},{path:"page-404",name:"Page404",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"404页面",key:"page404"},loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!0})},{path:"page-500",name:"Page500",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"500页面",key:"page500"},loader:()=>({status:ExceptionEnum.SERVER_ERROR,withCard:!0})}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:ExceptionRoute},Symbol.toStringTag,{value:"Module"})),FormRoute={path:"/form",name:"Form",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"表单",icon:"form",orderNo:3},children:[{path:"basic-form",name:"BasicForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-c70257b5.js"),["assets/index-c70257b5.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-da01dae2.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"基础表单",key:"basicForm"}},{path:"search-form",name:"SearchForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-df7dc3bf.js"),["assets/index-df7dc3bf.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-12dfe086.js","assets/websiteSetting-da01dae2.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"查询表单",key:"searchForm"}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormRoute},Symbol.toStringTag,{value:"Module"})),HomePage=lazy$2(()=>__vitePreload(()=>import("../index-9a160d80.js"),["assets/index-9a160d80.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-781865e5.js","assets/Translatex-227cdacd.js","assets/index-646dffa4.js","assets/index-5e07c034.js","assets/index-12dfe086.js"])),HomeRoute={path:"/home",element:jsxRuntimeExports.jsx(LayoutGuard,{}),loader:()=>null,meta:{title:"首页",icon:"home",affix:!0,orderNo:1,hideChildrenInMenu:!0},children:[{path:"",element:LazyLoad(HomePage),meta:{title:"首页",key:"home",icon:"home",orderNo:1,hideMenu:!0}}]},__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:HomeRoute},Symbol.toStringTag,{value:"Module"})),UserRoute$1={path:"/system",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:t("系统设置"),icon:"gbeata-ant-design:setting-outlined",orderNo:13,iconSize:20},children:[{path:"role",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-12eb48de.js"),["assets/index-12eb48de.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/api-74c8c574.js","assets/index-5e07c034.js","assets/index-12dfe086.js"]))),meta:{title:t("角色管理"),key:"role"}},{path:"user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-dad21183.js"),["assets/index-dad21183.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/api-74c8c574.js","assets/index-5e07c034.js","assets/index-12dfe086.js"]))),meta:{title:t("用户管理"),key:"user"}},{path:"permission",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-e4a40f17.js"),["assets/index-e4a40f17.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-5e07c034.js","assets/index-12dfe086.js"]))),meta:{title:t("权限管理"),key:"permission"}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute$1},Symbol.toStringTag,{value:"Module"})),UserRoute={path:"/user",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"用户管理",icon:"ic_user",orderNo:2,iconSize:20},children:[{path:"profile",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-f560b6f4.js"),["assets/index-f560b6f4.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/Translatex-227cdacd.js","assets/index-781865e5.js"]))),meta:{title:"个人中心",key:"profile"}},{path:"user-list",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-0a18a3d2.js"),["assets/index-0a18a3d2.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-781865e5.js","assets/Translatex-227cdacd.js"]))),meta:{title:"用户列表",key:"userList"}},{path:"add-user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-e62322f7.js"),["assets/index-e62322f7.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/Translatex-227cdacd.js"]))),meta:{title:"添加用户",key:"addUser"}}]},__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute},Symbol.toStringTag,{value:"Module"})),TOKEN_KEY="TOKEN_KEY",APP_LOCAL_CACHE_KEY="APP_LOCAL_CACHE_KEY",APP_SESSION_CACHE_KEY="APP_SESSION_CACHE_KEY";var CacheTypeEnum=(o=>(o[o.SESSION=0]="SESSION",o[o.LOCAL=1]="LOCAL",o))(CacheTypeEnum||{}),MenuTypeEnum=(o=>(o.SIDER_MENU="sider-menu",o.HEADER_MENU="header-menu",o.HYBRID_MENU="hybrid-menu",o))(MenuTypeEnum||{}),MenuModeEnum=(o=>(o.VERTICAL="vertical",o.HORIZONTAL="horizontal",o.INLINE="inline",o))(MenuModeEnum||{}),MenuFoldBtnEnum=(o=>(o.NONE="none",o.HEADER="header",o.SIDER="sider",o))(MenuFoldBtnEnum||{});const appSetting={themeColor:"#1890ff",permissionCacheType:CacheTypeEnum.LOCAL,headerSetting:{showBreadCrumb:!0,showTags:!0,showSearch:!0,showFullScreen:!0,showLocale:!1,showDoc:!1,showGithub:!0},menuSetting:{menuType:MenuTypeEnum.SIDER_MENU,menuMode:MenuModeEnum.INLINE,menuTheme:ThemeEnum.DARK,menuSplit:!1,menuCanDrag:!1,menuFold:!1,menuFoldBtn:MenuFoldBtnEnum.HEADER,menuFoldShowTitle:!1,menuWidth:210,menuFixed:!1,menuHidden:!1},transitionSetting:{openNProgress:!1,openPageLoading:!1,openTransition:!0,basicTransition:PageTransitionEnum.FADE},permissionMode:PermissionModeEnum.MAPPING,tagsCached:!1,openKeepAlive:!0,lockScreenTime:0,showFooter:!1,colorWeak:!1,grayMode:!1};function isDevMode(){return!1}const DEFAULT_CACHE_TIME=60*60*24*7,cacheCipher={key:"_11111000001111@",iv:"@11111000001111_"},enableStorageEncryption=!isDevMode();var aes={exports:{}},core={exports:{}},hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(o,a){(function(s,c){o.exports=c()})(commonjsGlobal,function(){var s=s||function(c,f){var d;if(typeof window!="undefined"&&window.crypto&&(d=window.crypto),typeof self!="undefined"&&self.crypto&&(d=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(d=globalThis.crypto),!d&&typeof window!="undefined"&&window.msCrypto&&(d=window.msCrypto),!d&&typeof commonjsGlobal!="undefined"&&commonjsGlobal.crypto&&(d=commonjsGlobal.crypto),!d&&typeof commonjsRequire=="function")try{d=require$$0}catch(L){}var y=function(){if(d){if(typeof d.getRandomValues=="function")try{return d.getRandomValues(new Uint32Array(1))[0]}catch(L){}if(typeof d.randomBytes=="function")try{return d.randomBytes(4).readInt32LE()}catch(L){}}throw new Error("Native crypto module could not be used to get secure random number.")},_=Object.create||function(){function L(){}return function(F){var I;return L.prototype=F,I=new L,L.prototype=null,I}}(),S={},b=S.lib={},$=b.Base=function(){return{extend:function(L){var F=_(this);return L&&F.mixIn(L),(!F.hasOwnProperty("init")||this.init===F.init)&&(F.init=function(){F.$super.init.apply(this,arguments)}),F.init.prototype=F,F.$super=this,F},create:function(){var L=this.extend();return L.init.apply(L,arguments),L},init:function(){},mixIn:function(L){for(var F in L)L.hasOwnProperty(F)&&(this[F]=L[F]);L.hasOwnProperty("toString")&&(this.toString=L.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),P=b.WordArray=$.extend({init:function(L,F){L=this.words=L||[],F!=f?this.sigBytes=F:this.sigBytes=L.length*4},toString:function(L){return(L||C).stringify(this)},concat:function(L){var F=this.words,I=L.words,U=this.sigBytes,z=L.sigBytes;if(this.clamp(),U%4)for(var H=0;H>>2]>>>24-H%4*8&255;F[U+H>>>2]|=G<<24-(U+H)%4*8}else for(var X=0;X>>2]=I[X>>>2];return this.sigBytes+=z,this},clamp:function(){var L=this.words,F=this.sigBytes;L[F>>>2]&=4294967295<<32-F%4*8,L.length=c.ceil(F/4)},clone:function(){var L=$.clone.call(this);return L.words=this.words.slice(0),L},random:function(L){for(var F=[],I=0;I>>2]>>>24-z%4*8&255;U.push((H>>>4).toString(16)),U.push((H&15).toString(16))}return U.join("")},parse:function(L){for(var F=L.length,I=[],U=0;U>>3]|=parseInt(L.substr(U,2),16)<<24-U%8*4;return new P.init(I,F/2)}},O=T.Latin1={stringify:function(L){for(var F=L.words,I=L.sigBytes,U=[],z=0;z>>2]>>>24-z%4*8&255;U.push(String.fromCharCode(H))}return U.join("")},parse:function(L){for(var F=L.length,I=[],U=0;U>>2]|=(L.charCodeAt(U)&255)<<24-U%4*8;return new P.init(I,F)}},A=T.Utf8={stringify:function(L){try{return decodeURIComponent(escape(O.stringify(L)))}catch(F){throw new Error("Malformed UTF-8 data")}},parse:function(L){return O.parse(unescape(encodeURIComponent(L)))}},M=b.BufferedBlockAlgorithm=$.extend({reset:function(){this._data=new P.init,this._nDataBytes=0},_append:function(L){typeof L=="string"&&(L=A.parse(L)),this._data.concat(L),this._nDataBytes+=L.sigBytes},_process:function(L){var F,I=this._data,U=I.words,z=I.sigBytes,H=this.blockSize,G=H*4,X=z/G;L?X=c.ceil(X):X=c.max((X|0)-this._minBufferSize,0);var W=X*H,K=c.min(W*4,z);if(W){for(var ie=0;ie>>2]>>>24-C%4*8&255,A=b[C+1>>>2]>>>24-(C+1)%4*8&255,M=b[C+2>>>2]>>>24-(C+2)%4*8&255,j=O<<16|A<<8|M,L=0;L<4&&C+L*.75<$;L++)T.push(P.charAt(j>>>6*(3-L)&63));var F=P.charAt(64);if(F)for(;T.length%4;)T.push(F);return T.join("")},parse:function(S){var b=S.length,$=this._map,P=this._reverseMap;if(!P){P=this._reverseMap=[];for(var T=0;T<$.length;T++)P[$.charCodeAt(T)]=T}var C=$.charAt(64);if(C){var O=S.indexOf(C);O!==-1&&(b=O)}return _(S,b,P)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function _(S,b,$){for(var P=[],T=0,C=0;C>>6-C%4*2,M=O|A;P[T>>>2]|=M<<24-T%4*8,T++}return d.create(P,T)}}(),s.enc.Base64})}(encBase64)),encBase64.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(c){var f=s,d=f.lib,y=d.WordArray,_=d.Hasher,S=f.algo,b=[];(function(){for(var A=0;A<64;A++)b[A]=c.abs(c.sin(A+1))*4294967296|0})();var $=S.MD5=_.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(A,M){for(var j=0;j<16;j++){var L=M+j,F=A[L];A[L]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360}var I=this._hash.words,U=A[M+0],z=A[M+1],H=A[M+2],G=A[M+3],X=A[M+4],W=A[M+5],K=A[M+6],ie=A[M+7],ee=A[M+8],de=A[M+9],Z=A[M+10],Q=A[M+11],J=A[M+12],ne=A[M+13],fe=A[M+14],le=A[M+15],ae=I[0],ce=I[1],ge=I[2],pe=I[3];ae=P(ae,ce,ge,pe,U,7,b[0]),pe=P(pe,ae,ce,ge,z,12,b[1]),ge=P(ge,pe,ae,ce,H,17,b[2]),ce=P(ce,ge,pe,ae,G,22,b[3]),ae=P(ae,ce,ge,pe,X,7,b[4]),pe=P(pe,ae,ce,ge,W,12,b[5]),ge=P(ge,pe,ae,ce,K,17,b[6]),ce=P(ce,ge,pe,ae,ie,22,b[7]),ae=P(ae,ce,ge,pe,ee,7,b[8]),pe=P(pe,ae,ce,ge,de,12,b[9]),ge=P(ge,pe,ae,ce,Z,17,b[10]),ce=P(ce,ge,pe,ae,Q,22,b[11]),ae=P(ae,ce,ge,pe,J,7,b[12]),pe=P(pe,ae,ce,ge,ne,12,b[13]),ge=P(ge,pe,ae,ce,fe,17,b[14]),ce=P(ce,ge,pe,ae,le,22,b[15]),ae=T(ae,ce,ge,pe,z,5,b[16]),pe=T(pe,ae,ce,ge,K,9,b[17]),ge=T(ge,pe,ae,ce,Q,14,b[18]),ce=T(ce,ge,pe,ae,U,20,b[19]),ae=T(ae,ce,ge,pe,W,5,b[20]),pe=T(pe,ae,ce,ge,Z,9,b[21]),ge=T(ge,pe,ae,ce,le,14,b[22]),ce=T(ce,ge,pe,ae,X,20,b[23]),ae=T(ae,ce,ge,pe,de,5,b[24]),pe=T(pe,ae,ce,ge,fe,9,b[25]),ge=T(ge,pe,ae,ce,G,14,b[26]),ce=T(ce,ge,pe,ae,ee,20,b[27]),ae=T(ae,ce,ge,pe,ne,5,b[28]),pe=T(pe,ae,ce,ge,H,9,b[29]),ge=T(ge,pe,ae,ce,ie,14,b[30]),ce=T(ce,ge,pe,ae,J,20,b[31]),ae=C(ae,ce,ge,pe,W,4,b[32]),pe=C(pe,ae,ce,ge,ee,11,b[33]),ge=C(ge,pe,ae,ce,Q,16,b[34]),ce=C(ce,ge,pe,ae,fe,23,b[35]),ae=C(ae,ce,ge,pe,z,4,b[36]),pe=C(pe,ae,ce,ge,X,11,b[37]),ge=C(ge,pe,ae,ce,ie,16,b[38]),ce=C(ce,ge,pe,ae,Z,23,b[39]),ae=C(ae,ce,ge,pe,ne,4,b[40]),pe=C(pe,ae,ce,ge,U,11,b[41]),ge=C(ge,pe,ae,ce,G,16,b[42]),ce=C(ce,ge,pe,ae,K,23,b[43]),ae=C(ae,ce,ge,pe,de,4,b[44]),pe=C(pe,ae,ce,ge,J,11,b[45]),ge=C(ge,pe,ae,ce,le,16,b[46]),ce=C(ce,ge,pe,ae,H,23,b[47]),ae=O(ae,ce,ge,pe,U,6,b[48]),pe=O(pe,ae,ce,ge,ie,10,b[49]),ge=O(ge,pe,ae,ce,fe,15,b[50]),ce=O(ce,ge,pe,ae,W,21,b[51]),ae=O(ae,ce,ge,pe,J,6,b[52]),pe=O(pe,ae,ce,ge,G,10,b[53]),ge=O(ge,pe,ae,ce,Z,15,b[54]),ce=O(ce,ge,pe,ae,z,21,b[55]),ae=O(ae,ce,ge,pe,ee,6,b[56]),pe=O(pe,ae,ce,ge,le,10,b[57]),ge=O(ge,pe,ae,ce,K,15,b[58]),ce=O(ce,ge,pe,ae,ne,21,b[59]),ae=O(ae,ce,ge,pe,X,6,b[60]),pe=O(pe,ae,ce,ge,Q,10,b[61]),ge=O(ge,pe,ae,ce,H,15,b[62]),ce=O(ce,ge,pe,ae,de,21,b[63]),I[0]=I[0]+ae|0,I[1]=I[1]+ce|0,I[2]=I[2]+ge|0,I[3]=I[3]+pe|0},_doFinalize:function(){var A=this._data,M=A.words,j=this._nDataBytes*8,L=A.sigBytes*8;M[L>>>5]|=128<<24-L%32;var F=c.floor(j/4294967296),I=j;M[(L+64>>>9<<4)+15]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,M[(L+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,A.sigBytes=(M.length+1)*4,this._process();for(var U=this._hash,z=U.words,H=0;H<4;H++){var G=z[H];z[H]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}return U},clone:function(){var A=_.clone.call(this);return A._hash=this._hash.clone(),A}});function P(A,M,j,L,F,I,U){var z=A+(M&j|~M&L)+F+U;return(z<>>32-I)+M}function T(A,M,j,L,F,I,U){var z=A+(M&L|j&~L)+F+U;return(z<>>32-I)+M}function C(A,M,j,L,F,I,U){var z=A+(M^j^L)+F+U;return(z<>>32-I)+M}function O(A,M,j,L,F,I,U){var z=A+(j^(M|~L))+F+U;return(z<>>32-I)+M}f.MD5=_._createHelper($),f.HmacMD5=_._createHmacHelper($)}(Math),s.MD5})}(md5)),md5.exports}var evpkdf={exports:{}},sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.WordArray,y=f.Hasher,_=c.algo,S=[],b=_.SHA1=y.extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function($,P){for(var T=this._hash.words,C=T[0],O=T[1],A=T[2],M=T[3],j=T[4],L=0;L<80;L++){if(L<16)S[L]=$[P+L]|0;else{var F=S[L-3]^S[L-8]^S[L-14]^S[L-16];S[L]=F<<1|F>>>31}var I=(C<<5|C>>>27)+j+S[L];L<20?I+=(O&A|~O&M)+1518500249:L<40?I+=(O^A^M)+1859775393:L<60?I+=(O&A|O&M|A&M)-1894007588:I+=(O^A^M)-899497514,j=M,M=A,A=O<<30|O>>>2,O=C,C=I}T[0]=T[0]+C|0,T[1]=T[1]+O|0,T[2]=T[2]+A|0,T[3]=T[3]+M|0,T[4]=T[4]+j|0},_doFinalize:function(){var $=this._data,P=$.words,T=this._nDataBytes*8,C=$.sigBytes*8;return P[C>>>5]|=128<<24-C%32,P[(C+64>>>9<<4)+14]=Math.floor(T/4294967296),P[(C+64>>>9<<4)+15]=T,$.sigBytes=P.length*4,this._process(),this._hash},clone:function(){var $=y.clone.call(this);return $._hash=this._hash.clone(),$}});c.SHA1=y._createHelper(b),c.HmacSHA1=y._createHmacHelper(b)}(),s.SHA1})}(sha1)),sha1.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){(function(){var c=s,f=c.lib,d=f.Base,y=c.enc,_=y.Utf8,S=c.algo;S.HMAC=d.extend({init:function(b,$){b=this._hasher=new b.init,typeof $=="string"&&($=_.parse($));var P=b.blockSize,T=P*4;$.sigBytes>T&&($=b.finalize($)),$.clamp();for(var C=this._oKey=$.clone(),O=this._iKey=$.clone(),A=C.words,M=O.words,j=0;j>>2]&255;W.sigBytes-=K}};d.BlockCipher=C.extend({cfg:C.cfg.extend({mode:M,padding:L}),reset:function(){var W;C.reset.call(this);var K=this.cfg,ie=K.iv,ee=K.mode;this._xformMode==this._ENC_XFORM_MODE?W=ee.createEncryptor:(W=ee.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==W?this._mode.init(this,ie&&ie.words):(this._mode=W.call(ee,this,ie&&ie.words),this._mode.__creator=W)},_doProcessBlock:function(W,K){this._mode.processBlock(W,K)},_doFinalize:function(){var W,K=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(K.pad(this._data,this.blockSize),W=this._process(!0)):(W=this._process(!0),K.unpad(W)),W},blockSize:128/32});var F=d.CipherParams=y.extend({init:function(W){this.mixIn(W)},toString:function(W){return(W||this.formatter).stringify(this)}}),I=f.format={},U=I.OpenSSL={stringify:function(W){var K,ie=W.ciphertext,ee=W.salt;return ee?K=_.create([1398893684,1701076831]).concat(ee).concat(ie):K=ie,K.toString($)},parse:function(W){var K,ie=$.parse(W),ee=ie.words;return ee[0]==1398893684&&ee[1]==1701076831&&(K=_.create(ee.slice(2,4)),ee.splice(0,4),ie.sigBytes-=16),F.create({ciphertext:ie,salt:K})}},z=d.SerializableCipher=y.extend({cfg:y.extend({format:U}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=W.createEncryptor(ie,ee),Z=de.finalize(K),Q=de.cfg;return F.create({ciphertext:Z,key:ie,iv:Q.iv,algorithm:W,mode:Q.mode,padding:Q.padding,blockSize:W.blockSize,formatter:ee.format})},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=W.createDecryptor(ie,ee).finalize(K.ciphertext);return de},_parse:function(W,K){return typeof W=="string"?K.parse(W,this):W}}),H=f.kdf={},G=H.OpenSSL={execute:function(W,K,ie,ee,de){if(ee||(ee=_.random(64/8)),de)var Z=T.create({keySize:K+ie,hasher:de}).compute(W,ee);else var Z=T.create({keySize:K+ie}).compute(W,ee);var Q=_.create(Z.words.slice(K),ie*4);return Z.sigBytes=K*4,F.create({key:Z,iv:Q,salt:ee})}},X=d.PasswordBasedCipher=z.extend({cfg:z.cfg.extend({kdf:G}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,ee.salt,ee.hasher);ee.iv=de.iv;var Z=z.encrypt.call(this,W,K,de.key,ee);return Z.mixIn(de),Z},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,K.salt,ee.hasher);ee.iv=de.iv;var Z=z.decrypt.call(this,W,K,de.key,ee);return Z}})}()})}(cipherCore)),cipherCore.exports}(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.BlockCipher,y=c.algo,_=[],S=[],b=[],$=[],P=[],T=[],C=[],O=[],A=[],M=[];(function(){for(var F=[],I=0;I<256;I++)I<128?F[I]=I<<1:F[I]=I<<1^283;for(var U=0,z=0,I=0;I<256;I++){var H=z^z<<1^z<<2^z<<3^z<<4;H=H>>>8^H&255^99,_[U]=H,S[H]=U;var G=F[U],X=F[G],W=F[X],K=F[H]*257^H*16843008;b[U]=K<<24|K>>>8,$[U]=K<<16|K>>>16,P[U]=K<<8|K>>>24,T[U]=K;var K=W*16843009^X*65537^G*257^U*16843008;C[H]=K<<24|K>>>8,O[H]=K<<16|K>>>16,A[H]=K<<8|K>>>24,M[H]=K,U?(U=G^F[F[F[W^G]]],z^=F[F[z]]):U=z=1}})();var j=[0,1,2,4,8,16,32,64,128,27,54],L=y.AES=d.extend({_doReset:function(){var F;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var I=this._keyPriorReset=this._key,U=I.words,z=I.sigBytes/4,H=this._nRounds=z+6,G=(H+1)*4,X=this._keySchedule=[],W=0;W6&&W%z==4&&(F=_[F>>>24]<<24|_[F>>>16&255]<<16|_[F>>>8&255]<<8|_[F&255]):(F=F<<8|F>>>24,F=_[F>>>24]<<24|_[F>>>16&255]<<16|_[F>>>8&255]<<8|_[F&255],F^=j[W/z|0]<<24),X[W]=X[W-z]^F);for(var K=this._invKeySchedule=[],ie=0;ie>>24]]^O[_[F>>>16&255]]^A[_[F>>>8&255]]^M[_[F&255]]}}},encryptBlock:function(F,I){this._doCryptBlock(F,I,this._keySchedule,b,$,P,T,_)},decryptBlock:function(F,I){var U=F[I+1];F[I+1]=F[I+3],F[I+3]=U,this._doCryptBlock(F,I,this._invKeySchedule,C,O,A,M,S);var U=F[I+1];F[I+1]=F[I+3],F[I+3]=U},_doCryptBlock:function(F,I,U,z,H,G,X,W){for(var K=this._nRounds,ie=F[I]^U[0],ee=F[I+1]^U[1],de=F[I+2]^U[2],Z=F[I+3]^U[3],Q=4,J=1;J>>24]^H[ee>>>16&255]^G[de>>>8&255]^X[Z&255]^U[Q++],fe=z[ee>>>24]^H[de>>>16&255]^G[Z>>>8&255]^X[ie&255]^U[Q++],le=z[de>>>24]^H[Z>>>16&255]^G[ie>>>8&255]^X[ee&255]^U[Q++],ae=z[Z>>>24]^H[ie>>>16&255]^G[ee>>>8&255]^X[de&255]^U[Q++];ie=ne,ee=fe,de=le,Z=ae}var ne=(W[ie>>>24]<<24|W[ee>>>16&255]<<16|W[de>>>8&255]<<8|W[Z&255])^U[Q++],fe=(W[ee>>>24]<<24|W[de>>>16&255]<<16|W[Z>>>8&255]<<8|W[ie&255])^U[Q++],le=(W[de>>>24]<<24|W[Z>>>16&255]<<16|W[ie>>>8&255]<<8|W[ee&255])^U[Q++],ae=(W[Z>>>24]<<24|W[ie>>>16&255]<<16|W[ee>>>8&255]<<8|W[de&255])^U[Q++];F[I]=ne,F[I+1]=fe,F[I+2]=le,F[I+3]=ae},keySize:256/32});c.AES=d._createHelper(L)}(),s.AES})})(aes);var aesExports=aes.exports,encUtf8={exports:{}};(function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return s.enc.Utf8})})(encUtf8);var encUtf8Exports=encUtf8.exports;const UTF8=getDefaultExportFromCjs(encUtf8Exports);var modeEcb={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.mode.ECB=function(){var c=s.lib.BlockCipherMode.extend();return c.Encryptor=c.extend({processBlock:function(f,d){this._cipher.encryptBlock(f,d)}}),c.Decryptor=c.extend({processBlock:function(f,d){this._cipher.decryptBlock(f,d)}}),c}(),s.mode.ECB})})(modeEcb);var modeEcbExports=modeEcb.exports;const ECB=getDefaultExportFromCjs(modeEcbExports);var padPkcs7={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.pad.Pkcs7})})(padPkcs7);var padPkcs7Exports=padPkcs7.exports;const PKCS7=getDefaultExportFromCjs(padPkcs7Exports);class AesEncrypt{constructor(a={}){tr(this,"key");tr(this,"iv");const{key:s,iv:c}=a;s&&(this.key=encUtf8Exports.parse(s)),c&&(this.iv=encUtf8Exports.parse(c))}get getOptions(){return{mode:ECB,padding:PKCS7,iv:this.iv}}encryptByAES(a){return aesExports.encrypt(a,this.key,this.getOptions).toString()}decryptByAES(a){return aesExports.decrypt(a,this.key,this.getOptions).toString(UTF8)}}const createStorage$1=({prefixKey:o="",storage:a=sessionStorage,hasEncrypt:s=!0,key:c=cacheCipher.key,iv:f=cacheCipher.iv,timeout:d=null}={})=>{if(s&&[c.length,f.length].some(S=>S!==16))throw new Error("When hasEncrypt is true, the key or iv must be 16 bits!");const y=new AesEncrypt({key:c,iv:f}),_=class{constructor(){tr(this,"storage");tr(this,"prefixKey");tr(this,"encrypt");tr(this,"hasEncrypt");this.storage=a,this.prefixKey=o,this.encrypt=y,this.hasEncrypt=s}getKey(b){return`${this.prefixKey}${b}`.toUpperCase()}set(b,$,P=d){const T=JSON.stringify({value:$,time:Date.now(),expire:isNullOrUnDef(P)?null:new Date().getTime()+P*1e3}),C=this.hasEncrypt?this.encrypt.encryptByAES(T):T;this.storage.setItem(this.getKey(b),C)}get(b,$=null){const P=this.storage.getItem(this.getKey(b));if(!P)return $;try{const T=this.hasEncrypt?this.encrypt.decryptByAES(P):P,C=JSON.parse(T),{value:O,expire:A}=C;if(isNullOrUnDef(A)||A>=new Date().getTime())return O;this.remove(b)}catch(T){return $}}remove(b){this.storage.removeItem(this.getKey(b))}clear(){this.storage.clear()}};return new _},createOptions=(o,a={})=>se({hasEncrypt:enableStorageEncryption,storage:o,prefixKey:"react-admin-design__"},a);createStorage$1(createOptions(sessionStorage));const createStorage=(o=sessionStorage,a={})=>createStorage$1(createOptions(o,a)),createSessionStorage=(o={})=>createStorage(sessionStorage,$e(se({},o),{timeout:DEFAULT_CACHE_TIME})),createLocalStorage=(o={})=>createStorage(localStorage,$e(se({},o),{timeout:DEFAULT_CACHE_TIME}));class Memory{constructor(a=0){tr(this,"cache",{});tr(this,"alive");this.alive=a*1e3}get getCache(){return this.cache}get(a){return this.cache[a]}set(a,s,c){let f=this.get(a);if((!c||c<=0)&&(c=this.alive),f?(f.timeoutId&&(clearTimeout(f.timeoutId),f.timeoutId=void 0),f.value=s):(f={value:s,alive:c},this.cache[a]=f),!c)return s;const d=new Date().getTime();return f.time=d+this.alive,f.timeoutId=setTimeout(()=>{this.remove(a)},c>d?c-d:c),s}remove(a){const s=this.get(a);if(Reflect.deleteProperty(this.cache,a),s)return clearTimeout(s.timeoutId),s.value}resetCache(a){Object.keys(a).forEach(s=>{const c=s,f=a[c];if(f&&f.time){const d=new Date().getTime(),y=f.time;y>d&&this.set(c,f.value,y)}})}clear(){Object.keys(this.cache).forEach(a=>{const s=this.cache[a];s.timeoutId&&clearTimeout(s.timeoutId)}),this.cache={}}}const ls=createLocalStorage(),ss=createSessionStorage(),localMemory=new Memory(DEFAULT_CACHE_TIME),sessionMemory=new Memory(DEFAULT_CACHE_TIME);function initPersistentMemory(){const o=ls.get(APP_LOCAL_CACHE_KEY),a=ss.get(APP_SESSION_CACHE_KEY);o&&localMemory.resetCache(o),a&&sessionMemory.resetCache(a)}class Persistent{static getLocal(a){var s;return(s=localMemory.get(a))==null?void 0:s.value}static setLocal(a,s,c=!1){localMemory.set(a,s),c&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static removeLocal(a,s=!1){localMemory.remove(a),s&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static clearLocal(a=!1){localMemory.clear(),a&&ls.clear()}static getSession(a){var s;return(s=sessionMemory.get(a))==null?void 0:s.value}static setSession(a,s,c=!1){sessionMemory.set(a,s),c&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static removeSession(a,s=!1){sessionMemory.remove(a),s&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static clearSession(a=!1){sessionMemory.clear(),a&&ss.clear()}static clearAll(a=!1){sessionMemory.clear(),localMemory.clear(),a&&(ls.clear(),ss.clear())}}function storageChange(o){const{key:a,newValue:s,oldValue:c}=o;if(!a){Persistent.clearAll();return}s&&c&&(APP_LOCAL_CACHE_KEY===a&&Persistent.clearLocal(),APP_SESSION_CACHE_KEY===a&&Persistent.clearSession())}window.addEventListener("storage",storageChange);initPersistentMemory();const{permissionCacheType}=appSetting,isLocal=permissionCacheType===CacheTypeEnum.LOCAL;function getAuthCache(o){return(isLocal?Persistent.getLocal:Persistent.getSession)(o)}const subTitleMap=new Map([[403,t("对不起,您没有权限访问此页面。")],[404,t("对不起,您访问的页面不存在。")],[500,t("对不起,服务器发生错误。")]]),PageException=()=>{const o=useNavigate(),{status:a,withCard:s}=useLoaderData(),c=()=>{o("/home")},f=({children:d})=>s?jsxRuntimeExports.jsx(Card,{bordered:!1,children:d}):jsxRuntimeExports.jsx("div",{className:"flex-center",style:{height:"100vh"},children:d});return jsxRuntimeExports.jsx(f,{children:jsxRuntimeExports.jsx(Result,{title:a,icon:jsxRuntimeExports.jsx(SvgIcon,{size:380,name:a}),subTitle:subTitleMap.get(a),extra:jsxRuntimeExports.jsx(Button,{type:"primary",onClick:c,children:t("返回首页")})})})},index=Object.freeze(Object.defineProperty({__proto__:null,default:PageException},Symbol.toStringTag,{value:"Module"})),illustrationDashboard="/react-antd-admin-pnpm/assets/illustration_dashboard-e36a7900.png",overlay="/react-antd-admin-pnpm/assets/overlay_2-613a921a.jpg",useStyles$1=createStyles(({token:o})=>({"login-container":{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center",height:"100vh"},"login-img":{maxWidth:"560px",height:"auto"},"login-form":{padding:`${o.paddingLG*7}px ${o.paddingLG*5}px`,".title":{margin:0},".login-info":{margin:`${o.marginLG}px 0`},".login-btn":{backgroundColor:o.colorDefault}},"login-left":{gap:"80px",flexGrow:1,height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",background:`linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)) center center / cover no-repeat, url(${overlay})`,".logo":{width:"100%",padding:o.paddingSM,position:"absolute",top:0,left:0,svg:{color:o.colorPrimary}}}})),{Title,Text}=Typography,LoginPage=()=>{const[o]=Form.useForm(),a=reactExports.useRef(null),[s,c]=reactExports.useState(!1),f=useSignIn(),d=useNavigate(),[y]=useSearchParams(),{styles:_}=useStyles$1(),S=b=>xt(void 0,null,function*(){c(!0);try{(yield f({username:b.username,password:b.password}))&&d(y.get("redirect")||"/")}catch($){message.error($.message)}finally{c(!1)}});return jsxRuntimeExports.jsxs("div",{className:_["login-container"],children:[jsxRuntimeExports.jsxs("div",{className:_["login-left"],children:[jsxRuntimeExports.jsx(Title,{className:"logo",level:3,children:jsxRuntimeExports.jsx(SvgIcon,{name:"logo",size:30})}),jsxRuntimeExports.jsx(Title,{level:2,children:t("Hi, 欢迎回来!")}),jsxRuntimeExports.jsx("img",{src:illustrationDashboard,alt:"",className:_["login-img"]})]}),jsxRuntimeExports.jsxs("div",{className:_["login-form"],children:[jsxRuntimeExports.jsxs("div",{className:"login-info",children:[jsxRuntimeExports.jsx(Title,{className:"title",level:3,children:t("登录 Gbeata Admin")}),jsxRuntimeExports.jsxs(Text,{type:"secondary",children:[" ",t("新用户?"),jsxRuntimeExports.jsx(Button,{type:"link",style:{padding:0},color:"primary",children:t("立即注册")})]}),jsxRuntimeExports.jsx(Alert,{message:t("登录信息: 用户名:admin 密码:123456"),type:"info",showIcon:!0})]}),jsxRuntimeExports.jsxs(Form,{ref:a,form:o,initialValues:{username:"admin",password:"123456",remember:!0},className:"login-box-form",onFinish:S,children:[jsxRuntimeExports.jsx(Form.Item,{name:"username",rules:[{required:!0,message:t("请输入账号")}],children:jsxRuntimeExports.jsx(Input,{placeholder:t("请输入账号"),size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsx(Form.Item,{name:"password",rules:[{required:!0,message:t("请输入密码")}],children:jsxRuntimeExports.jsx(Input,{type:"password",placeholder:t("请输入密码"),size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsxs(Form.Item,{children:[jsxRuntimeExports.jsx(Form.Item,{name:"remember",className:classNames("fl","no-margin"),valuePropName:"checked",children:jsxRuntimeExports.jsx(Checkbox,{children:t("记住我")})}),jsxRuntimeExports.jsx(Form.Item,{className:classNames("fr","no-margin"),children:jsxRuntimeExports.jsx("a",{href:"",children:t("忘记密码?")})})]}),jsxRuntimeExports.jsx(Form.Item,{children:jsxRuntimeExports.jsx(Button,{type:"primary",block:!0,htmlType:"submit",size:"large",className:"login-btn",loading:s,children:t("登 录")})})]})]})]})},metaRoutes=Object.assign({"./routes/compo.tsx":__vite_glob_0_0$1,"./routes/exception.tsx":__vite_glob_0_1$1,"./routes/form.tsx":__vite_glob_0_2$1,"./routes/home.tsx":__vite_glob_0_3,"./routes/management.tsx":__vite_glob_0_4,"./routes/user.tsx":__vite_glob_0_5}),routeList=[];Object.keys(metaRoutes).forEach(o=>{const a=metaRoutes[o].default||{},s=Array.isArray(a)?[...a]:[a];genFullPath(s),routeList.push(...s)});const rootRoutes=[{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/home"})},{path:"/login",element:jsxRuntimeExports.jsx(LoginPage,{}),meta:{title:t("登录页"),key:"login"},loader:()=>getAuthCache(TOKEN_KEY)?redirect("/"):null},...routeList,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/404"})},{path:"/403",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!1})},{path:"/404",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!1})}],router=createHashRouter(rootRoutes),CustomGlobal=createGlobalStyle` .g-paper { border-radius: ${o=>o.theme.borderRadius*2}px; } @@ -338,8 +338,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Mock - 模拟请求 & 模拟数据 https://github.com/nuysoft/Mock 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com -*/var $={Handler:c,Random:d,Util:f,XHR:b,RE:y,toJSONSchema:_,valid:S,heredoc:f.heredoc,setup:function(P){return b.setup(P)},_mocked:{}};$.version="1.0.1-beta3",b&&(b.Mock=$),$.mock=function(P,T,C){return arguments.length===1?c.gen(P):(arguments.length===2&&(C=T,T=void 0),b&&(window.XMLHttpRequest=b),$._mocked[P+(T||"")]={rurl:P,rtype:T,template:C},$)},o.exports=$},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(o,a,s){a=a==null?"":a+"",s=s||{},s={path:s.path||[Constant.GUID],templatePath:s.templatePath||[Constant.GUID++],currentContext:s.currentContext,templateCurrentContext:s.templateCurrentContext||o,root:s.root||s.currentContext,templateRoot:s.templateRoot||s.templateCurrentContext||o};var c=Parser.parse(a),f=Util.type(o),d;return Handler[f]?(d=Handler[f]({type:f,template:o,name:a,parsedName:a&&a.replace(Constant.RE_KEY,"$1"),rule:c,context:s}),s.root||(s.root=d),d):o},Handler.extend({array:function(o){var a=[],s,c;if(o.template.length===0)return a;if(o.rule.parameters)if(o.rule.min===1&&o.rule.max===void 0)o.context.path.push(o.name),o.context.templatePath.push(o.name),a=Random.pick(Handler.gen(o.template,void 0,{path:o.context.path,templatePath:o.context.templatePath,currentContext:a,templateCurrentContext:o.template,root:o.context.root||a,templateRoot:o.context.templateRoot||o.template})),o.context.path.pop(),o.context.templatePath.pop();else if(o.rule.parameters[2])o.template.__order_index=o.template.__order_index||0,o.context.path.push(o.name),o.context.templatePath.push(o.name),a=Handler.gen(o.template,void 0,{path:o.context.path,templatePath:o.context.templatePath,currentContext:a,templateCurrentContext:o.template,root:o.context.root||a,templateRoot:o.context.templateRoot||o.template})[o.template.__order_index%o.template.length],o.template.__order_index+=+o.rule.parameters[2],o.context.path.pop(),o.context.templatePath.pop();else for(s=0;s1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(f=a.context.path.slice(0),f.pop(),f=this.normalizePath(f.concat(c)));try{o=c[c.length-1];for(var d=a.context.root,y=a.context.templateRoot,_=1;_1/(s+c)*s?!f:f):Math.random()>=.5},bool:function(s,c,f){return this.boolean(s,c,f)},natural:function(s,c){return s=typeof s!="undefined"?parseInt(s,10):0,c=typeof c!="undefined"?parseInt(c,10):9007199254740992,Math.round(Math.random()*(c-s))+s},integer:function(s,c){return s=typeof s!="undefined"?parseInt(s,10):-9007199254740992,c=typeof c!="undefined"?parseInt(c,10):9007199254740992,Math.round(Math.random()*(c-s))+s},int:function(s,c){return this.integer(s,c)},float:function(s,c,f,d){f=f===void 0?0:f,f=Math.max(Math.min(f,17),0),d=d===void 0?17:d,d=Math.max(Math.min(d,17),0);for(var y=this.integer(s,c)+".",_=0,S=this.natural(f,d);_1&&b--,6*b<1?P=_+(S-_)*6*b:2*b<1?P=S:3*b<2?P=_+(S-_)*(2/3-b)*6:P=_,$[T]=P*255;return $},hsl2hsv:function(c){var f=c[0],d=c[1]/100,y=c[2]/100,_,S;return y*=2,d*=y<=1?y:2-y,S=(y+d)/2,_=2*d/(y+d),[f,_*100,S*100]},hsv2rgb:function(c){var f=c[0]/60,d=c[1]/100,y=c[2]/100,_=Math.floor(f)%6,S=f-Math.floor(f),b=255*y*(1-d),$=255*y*(1-d*S),P=255*y*(1-d*(1-S));switch(y=255*y,_){case 0:return[y,P,b];case 1:return[$,y,b];case 2:return[b,y,P];case 3:return[b,$,y];case 4:return[P,b,y];case 5:return[y,b,$]}},hsv2hsl:function(c){var f=c[0],d=c[1]/100,y=c[2]/100,_,S;return S=(2-d)*y,_=d*y,_/=S<=1?S:2-S,S/=2,[f,_*100,S*100]},rgb2hex:function(s,c,f){return"#"+((256+s<<8|c)<<8|f).toString(16).slice(1)},hex2rgb:function(s){return s="0x"+s.slice(1).replace(s.length>4?s:/./g,"$&$&")|0,[s>>16,s>>8&255,s&255]}}},function(o,a){o.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(o,a,s){var c=s(6),f=s(14);function d(y,_,S,b){return S===void 0?c.natural(y,_):b===void 0?S:c.natural(parseInt(S,10),parseInt(b,10))}o.exports={paragraph:function(y,_){for(var S=d(3,7,y,_),b=[],$=0;$1&&(d=[].slice.call(arguments,0));var y=f.options,_=y.context.templatePath.join("."),S=f.cache[_]=f.cache[_]||{index:0,array:d};return S.array[S.index++%S.array.length]}}},function(o,a){o.exports={first:function(){var s=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(s)},last:function(){var s=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(s)},name:function(s){return this.first()+" "+(s?this.first()+" ":"")+this.last()},cfirst:function(){var s="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(s)},clast:function(){var s="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(s)},cname:function(){return this.cfirst()+this.clast()}}},function(o,a){o.exports={url:function(s,c){return(s||this.protocol())+"://"+(c||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(s){return this.word()+"."+(s||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(s){return this.character("lower")+"."+this.word()+"@"+(s||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(o,a,s){var c=s(18),f=["东北","华北","华东","华中","华南","西南","西北"];o.exports={region:function(){return this.pick(f)},province:function(){return this.pick(c).name},city:function(d){var y=this.pick(c),_=this.pick(y.children);return d?[y.name,_.name].join(" "):_.name},county:function(d){var y=this.pick(c),_=this.pick(y.children),S=this.pick(_.children)||{name:"-"};return d?[y.name,_.name,S.name].join(" "):S.name},zip:function(d){for(var y="",_=0;_<(d||6);_++)y+=this.natural(0,9);return y}}},function(o,a){var s={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function c(d){for(var y={},_=0,S;_jt;jt++)nn=H.charAt(jt),nn===` -`?(Se.seenCR||Se.line++,Se.column=1,Se.seenCR=!1):nn==="\r"||nn==="\u2028"||nn==="\u2029"?(Se.line++,Se.column=1,Se.seenCR=!0):(Se.column++,Se.seenCR=!1)}return Br!==B&&(Br>B&&(Br=0,rn={line:1,column:1,seenCR:!1}),Y(rn,Br,B),Br=B),rn}function K(B){In>oe||(oe>In&&(In=oe,Ln=[]),Ln.push(B))}function ie(B){var Y=0;for(B.sort();Yoe?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(Mn)),Se!==null?(Le=B,Y=en(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}function pt(){var B,Y,Se;return B=oe,H.charCodeAt(oe)===92?(Y=fi,oe++):(Y=null,we===0&&K(di)),Y!==null?(Va.test(H.charAt(oe))?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(ia)),Se!==null?(Le=B,Y=aa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}function ar(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===yr?(Y=yr,oe+=2):(Y=null,we===0&&K(kt)),Y!==null){if(Se=[],Tr.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(hi)),Re!==null)for(;Re!==null;)Se.push(Re),Tr.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(hi));else Se=Fe;Se!==null?(Le=B,Y=Wa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function $n(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===Jt?(Y=Jt,oe+=2):(Y=null,we===0&&K(Or)),Y!==null){if(Se=[],tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn)),Re!==null)for(;Re!==null;)Se.push(Re),tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn));else Se=Fe;Se!==null?(Le=B,Y=vr(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function wa(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===_r?(Y=_r,oe+=2):(Y=null,we===0&&K(pi)),Y!==null){if(Se=[],tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn)),Re!==null)for(;Re!==null;)Se.push(Re),tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn));else Se=Fe;Se!==null?(Le=B,Y=qa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function Pa(){var B,Y;return B=oe,H.substr(oe,2)===yr?(Y=yr,oe+=2):(Y=null,we===0&&K(kt)),Y!==null&&(Le=B,Y=gi()),Y===null&&(oe=B),B=Y,B}function Ta(){var B,Y,Se;return B=oe,H.charCodeAt(oe)===92?(Y=fi,oe++):(Y=null,we===0&&K(di)),Y!==null?(H.length>oe?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(Mn)),Se!==null?(Le=B,Y=Ki(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}var Yn,wn=arguments.length>1?arguments[1]:{},Oa={regexp:ee},Xn=ee,Fe=null,Dr="",Oo="|",Co='"|"',Ro=function(B,Y){return Y?new c(B,Y[1]):B},Ca=function(B,Y,Se){return new f([B].concat(Y).concat([Se]))},Qn="^",Ra='"^"',Ao=function(){return new s("start")},Jn="$",Mo='"$"',Fo=function(){return new s("end")},Io=function(B,Y){return new _(B,Y)},Lo="Quantifier",No=function(B,Y){return Y&&(B.greedy=!1),B},ki="{",ji='"{"',ko=",",jo='","',Aa="}",Ma='"}"',Do=function(B,Y){return new S(B,Y)},Fa=",}",Uo='",}"',Di=function(B){return new S(B,1/0)},Pn=function(B){return new S(B,B)},Ui="+",zi='"+"',zo=function(){return new S(1,1/0)},Bi="*",Xr='"*"',Er=function(){return new S(0,1/0)},rt="?",tt='"?"',$r=function(){return new S(0,1)},gt=/^[0-9]/,wt="[0-9]",Ur=function(B){return+B.join("")},Qr="(",Ot='"("',Zn=")",Ia='")"',La=function(B){return B},ei=function(B){return new y(B)},Hi="?:",Yt='"?:"',Bo=function(B){return new d("non-capture-group",B)},Na="?=",Ho='"?="',ti=function(B){return new d("positive-lookahead",B)},Tn="?!",On='"?!"',ri=function(B){return new d("negative-lookahead",B)},Go="CharacterSet",Vo="[",Gi='"["',ka="]",Vi='"]"',Cn=function(B,Y){return new b(!!B,Y)},Wo="CharacterRange",Wi="-",Qe='"-"',ja=function(B,Y){return new $(B,Y)},qi="Character",Da=/^[^\\\]]/,qo="[^\\\\\\]]",Ki=function(B){return new P(B)},dt=".",Yi='"."',Ko=function(){return new s("any-character")},Xi="Literal",Yo=/^[^|\\\/.[()?+*$\^]/,ni="[^|\\\\\\/.[()?+*$\\^]",Lt="\\b",Ua='"\\\\b"',Xo=function(){return new s("backspace")},Xt=function(){return new s("word-boundary")},or="\\B",ii='"\\\\B"',Qi=function(){return new s("non-word-boundary")},Ji="\\d",Qo='"\\\\d"',sr=function(){return new s("digit")},zr="\\D",Jr='"\\\\D"',ai=function(){return new s("non-digit")},Rn="\\f",zt='"\\\\f"',Bt=function(){return new s("form-feed")},wr="\\n",gr='"\\\\n"',mr=function(){return new s("line-feed")},Pr="\\r",za='"\\\\r"',Zi=function(){return new s("carriage-return")},oi="\\s",Nt='"\\\\s"',Ht=function(){return new s("white-space")},nt="\\S",An='"\\\\S"',Qt=function(){return new s("non-white-space")},ea="\\t",Ba='"\\\\t"',ta=function(){return new s("tab")},si="\\v",Ha='"\\\\v"',li=function(){return new s("vertical-tab")},ra="\\w",Zr='"\\\\w"',na=function(){return new s("word")},Ga="\\W",ui='"\\\\W"',Jo=function(){return new s("non-word")},Gt="\\c",ci='"\\\\c"',Mn="any character",en=function(B){return new F(B)},fi="\\",di='"\\\\"',Va=/^[1-9]/,ia="[1-9]",aa=function(B){return new A(B)},yr="\\0",kt='"\\\\0"',Tr=/^[0-7]/,hi="[0-7]",Wa=function(B){return new O(B.join(""))},Jt="\\x",Or='"\\\\x"',tn=/^[0-9a-fA-F]/,Fn="[0-9a-fA-F]",vr=function(B){return new C(B.join(""))},_r="\\u",pi='"\\\\u"',qa=function(B){return new T(B.join(""))},gi=function(){return new s("null-character")},oe=0,Le=0,Br=0,rn={line:1,column:1,seenCR:!1},In=0,Ln=[],we=0;if("startRule"in wn){if(!(wn.startRule in Oa))throw new Error(`Can't start parsing from rule "`+wn.startRule+'".');Xn=Oa[wn.startRule]}if(s.offset=X,s.text=G,Yn=Xn(),Yn!==null&&oe===H.length)return Yn;throw ie(Ln),Le=Math.max(oe,In),new U(Ln,LeT)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is greater than",message:O};return A.message=S.message(A),C.push(A),!1},lessThan:function(b,$,P,T,C,O){if(P=T)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is greater than or equal to",message:O};return A.message=S.message(A),C.push(A),!1},lessThanOrEqualTo:function(b,$,P,T,C,O){if(P<=T)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is less than or equal to",message:O};return A.message=S.message(A),C.push(A),!1}};y.Diff=_,y.Assert=S,o.exports=y},function(o,a,s){o.exports=s(28)},function(o,a,s){var c=s(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(C){window.Event=function(O,A,F,j){var L=document.createEvent("CustomEvent");return L.initCustomEvent(O,A,F,j),L}}var f={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d="readystatechange loadstart progress abort error load timeout loadend".split(" "),y="timeout withCredentials".split(" "),_="readyState responseURL status statusText responseType response responseText responseXML".split(" "),S={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function b(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}b._settings={timeout:"10-100"},b.setup=function(C){return c.extend(b._settings,C),b._settings},c.extend(b,f),c.extend(b.prototype,f),b.prototype.mock=!0,b.prototype.match=!1,c.extend(b.prototype,{open:function(C,O,A,F,j){var L=this;c.extend(this.custom,{method:C,url:O,async:typeof A=="boolean"?A:!0,username:F,password:j,options:{url:O,type:C}}),this.custom.timeout=function(G){if(typeof G=="number")return G;if(typeof G=="string"&&!~G.indexOf("-"))return parseInt(G,10);if(typeof G=="string"&&~G.indexOf("-")){var X=G.split("-"),W=parseInt(X[0],10),K=parseInt(X[1],10);return Math.round(Math.random()*(K-W))+W}}(b._settings.timeout);var M=P(this.custom.options);function I(G){for(var X=0;X<_.length;X++)try{L[_[X]]=U[_[X]]}catch(W){}L.dispatchEvent(new Event(G.type))}if(!M){var U=$();this.custom.xhr=U;for(var z=0;z=s.length?s.slice(c,s.length):s.slice(c,c+Number(a))}function resultPageSuccess(o,a,s,{message:c="ok"}={}){const f=pagination(o,a,s);return $e(se({},resultSuccess({list:f,total:s.length})),{message:c})}const getPhone=()=>{const o=[135,136,137,138,139,155,158,183,185,189],a=Math.floor(Math.random()*10),s=o[a]+Math.random().toString().slice(-8);return Number(s)},getEducation=()=>{const o=["小学","初中","高中","专科","本科","研究生"],a=Math.floor(Math.random()*o.length);return o[a]},getMarried=()=>Math.floor(Math.random()*4),getHobby=()=>{const o=[],a=["羽毛球","乒乓球","篮球","排球","网球","游泳","滑雪","跳高","滑翔","潜水"],s=[3,4][Number(mockExports.Random.boolean())];for(let c=0;c{const o=[];for(let a=0;a<100;a++){const s=a<10?`0${a}`:a;o.push({id:+`10${s}`+1,name:mockExports.Random.cname(),sex:["男","女"][Number(mockExports.Random.boolean())],phone:getPhone(),education:getEducation(),married:getMarried(),forbid:mockExports.Random.boolean(),hobby:getHobby()})}return o},articleListData=[{article_id:"7303048156967026714",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640419505209e3,6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/84274f1176744240b47471a79d920a2f~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1276&h=638&s=1250001&e=gif&f=46&b=d3d9dc",is_gfw:0,title:"3D数字孪生 - 智能仓储管理平台-开源啦💐",brief_content:" 截止目前,相信你在社区上很难找到开源且真正对前期的你学习有帮助的案例和文章,之所以做这类分享,纯粹的是用爱发电,新的领域学习,让我痛苦的度过了好多个夜晚,值得庆幸自己的思路和计划都能按照设想的方案实",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1700465692",mtime:"1700532628",rtime:"-62135596800",draft_id:"7302787905043693577",view_count:397,collect_count:5,digg_count:7,comment_count:0,hot_index:26,is_hot:0,rank_index:12e-8,status:1,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1012,read_time:"3分钟"},{article_id:"7299709109879324691",user_id:"2682464101469480",category_id:"6809637776263217160",tag_ids:[6809640407484334e3,6809640402103042e3,6809640419505209e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/941af6d2401c4600b2867fc314dbbeaf~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1886&h=1186&s=505219&e=png&b=260947",is_gfw:0,title:"仿mac系统交互设计的车载Pad操作系统",brief_content:"时隔100天,我又来水文了!3D数字孪生的系列好多小伙伴都感兴趣,项目在10月就已经完结了,后续我会将继续补充如何完整的做完一个3D数字孪生项目",is_english:0,is_original:1,user_index:11.437480020762536,original_type:0,original_author:"",content:"",ctime:"1699636366",mtime:"1699778058",rtime:"1699778058",draft_id:"7299506825875226661",view_count:2077,collect_count:10,digg_count:15,comment_count:2,hot_index:120,is_hot:0,rank_index:.01209184,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1841,read_time:"6分钟"},{article_id:"7256964915133694008",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640404791591e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/b5542f51a3274f8791ce1d8257dc4039~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"制造业领域,我是如何被逼到做顶级架构设计的",brief_content:"什么是顶级?还是澄清下吧; 这里的顶级并非说“最牛&”、最高档次,而指的是在开发一个复杂系统或软件时的最高层次设计的过程。 接下来,我要介绍的是,我是如何被逼到从单业务系统到系统与系统层面的顶级设计。",is_english:0,is_original:1,user_index:10.070339420019154,original_type:0,original_author:"",content:"",ctime:"1689652100",mtime:"1689668573",rtime:"1689668573",draft_id:"7255491496831631416",view_count:1404,collect_count:21,digg_count:19,comment_count:6,hot_index:95,is_hot:0,rank_index:.00212567,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:2360,read_time:"8分钟"},{article_id:"7250318500882432057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640525595935e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/3727534baa6a478e9bbcb30d7472d40f~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机控制器(五)",brief_content:"机器学习 oz@0xozram 9号在twitter上发了这样的一个短视频: 当然,这属于机器学习领域的内容,也就是大名鼎鼎的 google 在2015开源的 tensorflow,TensorFlo",is_english:0,is_original:1,user_index:9.463944942479607,original_type:0,original_author:"",content:"",ctime:"1688108878",mtime:"1688831884",rtime:"1688831884",draft_id:"7249765949742530597",view_count:2280,collect_count:24,digg_count:16,comment_count:5,hot_index:135,is_hot:0,rank_index:.0027185,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1808,read_time:"6分钟"},{article_id:"7248545082130169893",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640497393435e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/05bba1c501124628a6bd11dc7f93a96a~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机(四)",brief_content:"承上 在第一篇# 3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)有介绍,在使用 three/filber 的Canvas组件时,默认情况下,会自动添加初始化一个透视相机(Perspe",is_english:0,is_original:1,user_index:9.01959424539129,original_type:0,original_author:"",content:"",ctime:"1687694967",mtime:"1687748103",rtime:"1687748103",draft_id:"7248466120364343333",view_count:1752,collect_count:32,digg_count:22,comment_count:1,hot_index:110,is_hot:0,rank_index:.0020533,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1576,read_time:"5分钟"},{article_id:"7246657502842945597",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1465296be96f41f58e9a2c9a35551736~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景材质(三)",brief_content:"接上文# 3D数字孪生 - Three.js 场景光源(二)最后的问题: “为何已关闭场景中所有光源,仍然有些面是亮的呢?” 我们不妨近距离的观察一下,打开场景中的方向光 DirectionalLig",is_english:0,is_original:1,user_index:8.52173105363898,original_type:0,original_author:"",content:"",ctime:"1687251948",mtime:"1687335742",rtime:"1687335742",draft_id:"7246564869222580282",view_count:1869,collect_count:24,digg_count:13,comment_count:0,hot_index:106,is_hot:0,rank_index:.00191366,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1284,read_time:"4分钟"},{article_id:"7246316652048269373",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/638de6b1ba4b48bab0229b70095e718e~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景光源(二)",brief_content:'前言 接下来的项目实战讲解过程中,有必要多花几个篇幅介绍一下项目中用到的两个库。 "@react-three/drei": "^9.70.3", "@react-three/fiber": "^8.1',is_english:0,is_original:1,user_index:9.158795645897236,original_type:0,original_author:"",content:"",ctime:"1687179552",mtime:"1687331693",rtime:"1687239614",draft_id:"7246311040267370556",view_count:1414,collect_count:19,digg_count:10,comment_count:2,hot_index:82,is_hot:0,rank_index:.00151119,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1143,read_time:"4分钟"},{article_id:"7244894506305536057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640357354013e3,6809640407484334e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/6dac5e4b92d048409629828852b2d79d~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1919&h=959&s=1380008&e=png&b=e0dede",is_gfw:0,title:"3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)",brief_content:"3D数字孪生,生成3D可视化仓库地图,实时监控仓库库位坐标、调度任务状态、车辆位置等信息。 根据调度信息,动态展现小车任务状态",is_english:0,is_original:1,user_index:8.905619350311529,original_type:0,original_author:"",content:"",ctime:"1686886155",mtime:"1702997867",rtime:"1686908640",draft_id:"7244785030567886907",view_count:9415,collect_count:186,digg_count:86,comment_count:33,hot_index:589,is_hot:0,rank_index:.00966501,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:10,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1859,read_time:"6分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:9,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:9,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"}],table=[{url:"/api/table/getTableList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList$1())}},{url:"/api/article/queryList",timeout:200,method:"post",response:({body:o,headers:a,query:s})=>{const{current:c=1,pageSize:f=10}=o;return resultPageSuccess(c,f,articleListData)}}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));mockExports.Random.cparagraph(),mockExports.Random.cparagraph(),mockExports.Random.cparagraph();const DASHBOARD_PERMISSION={id:"9100714781927703",parentId:"",label:"sys.menu.dashboard",name:"Dashboard",icon:"ic-analysis",type:PermissionType.CATALOGUE,route:"dashboard",order:1,children:[{id:"8426999229400979",parentId:"9100714781927703",label:"sys.menu.workbench",name:"Workbench",type:PermissionType.MENU,route:"workbench",component:"/dashboard/workbench/index.tsx"},{id:"9710971640510357",parentId:"9100714781927703",label:"sys.menu.analysis",name:"Analysis",type:PermissionType.MENU,route:"analysis",component:"/dashboard/analysis/index.tsx"}]},MANAGEMENT_PERMISSION={id:"0901673425580518",parentId:"",label:"sys.menu.management",name:"Management",icon:"ic-management",type:PermissionType.CATALOGUE,route:"management",order:2,children:[{id:"2781684678535711",parentId:"0901673425580518",label:"sys.menu.user.index",name:"User",type:PermissionType.CATALOGUE,route:"user",children:[{id:"4754063958766648",parentId:"2781684678535711",label:"sys.menu.user.profile",name:"Profile",type:PermissionType.MENU,route:"profile",component:"/management/user/profile/index.tsx"},{id:"2516598794787938",parentId:"2781684678535711",label:"sys.menu.user.account",name:"Account",type:PermissionType.MENU,route:"account",component:"/management/user/account/index.tsx"}]},{id:"0249937641030250",parentId:"0901673425580518",label:"sys.menu.system.index",name:"System",type:PermissionType.CATALOGUE,route:"system",children:[{id:"1985890042972842",parentId:"0249937641030250",label:"sys.menu.system.organization",name:"Organization",type:PermissionType.MENU,route:"organization",component:"/management/system/organization/index.tsx"},{id:"4359580910369984",parentId:"0249937641030250",label:"sys.menu.system.permission",name:"Permission",type:PermissionType.MENU,route:"permission",component:"/management/system/permission/index.tsx"},{id:"1689241785490759",parentId:"0249937641030250",label:"sys.menu.system.role",name:"Role",type:PermissionType.MENU,route:"role",component:"/management/system/role/index.tsx"},{id:"0157880245365433",parentId:"0249937641030250",label:"sys.menu.system.user",name:"User",type:PermissionType.MENU,route:"user",component:"/management/system/user/index.tsx"}]}]},COMPONENTS_PERMISSION={id:"2271615060673773",parentId:"",label:"sys.menu.components",name:"Components",icon:"solar:widget-5-bold-duotone",type:PermissionType.CATALOGUE,route:"components",order:3,children:[{id:"2478488238255411",parentId:"2271615060673773",label:"sys.menu.icon",name:"Icon",type:PermissionType.MENU,route:"icon",component:"/components/icon/index.tsx"},{id:"6755238352318767",parentId:"2271615060673773",label:"sys.menu.animate",name:"Animate",type:PermissionType.MENU,route:"animate",component:"/components/animate/index.tsx"},{id:"9992476513546805",parentId:"2271615060673773",label:"sys.menu.scroll",name:"Scroll",type:PermissionType.MENU,route:"scroll",component:"/components/scroll/index.tsx"},{id:"1755562695856395",parentId:"2271615060673773",label:"sys.menu.markdown",name:"Markdown",type:PermissionType.MENU,route:"markdown",component:"/components/markdown/index.tsx"},{id:"2122547769468069",parentId:"2271615060673773",label:"sys.menu.editor",name:"Editor",type:PermissionType.MENU,route:"editor",component:"/components/editor/index.tsx"},{id:"2501920741714350",parentId:"2271615060673773",label:"sys.menu.i18n",name:"Multi Language",type:PermissionType.MENU,route:"i18n",component:"/components/multi-language/index.tsx"},{id:"2013577074467956",parentId:"2271615060673773",label:"sys.menu.upload",name:"upload",type:PermissionType.MENU,route:"Upload",component:"/components/upload/index.tsx"},{id:"7749726274771764",parentId:"2271615060673773",label:"sys.menu.chart",name:"Chart",type:PermissionType.MENU,route:"chart",component:"/components/chart/index.tsx"}]},FUNCTIONS_PERMISSION={id:"8132044808088488",parentId:"",label:"sys.menu.functions",name:"functions",icon:"solar:plain-2-bold-duotone",type:PermissionType.CATALOGUE,route:"functions",order:4,children:[{id:"3667930780705750",parentId:"8132044808088488",label:"sys.menu.clipboard",name:"Clipboard",type:PermissionType.MENU,route:"clipboard",component:"/functions/clipboard/index.tsx"}]},MENU_LEVEL_PERMISSION={id:"0194818428516575",parentId:"",label:"sys.menu.menulevel.index",name:"Menu Level",icon:"ic-menulevel",type:PermissionType.CATALOGUE,route:"menu-level",order:5,children:[{id:"0144431332471389",parentId:"0194818428516575",label:"sys.menu.menulevel.1a",name:"Menu Level 1a",type:PermissionType.MENU,route:"menu-level-1a",component:"/menu-level/menu-level-1a/index.tsx"},{id:"7572529636800586",parentId:"0194818428516575",label:"sys.menu.menulevel.1b.index",name:"Menu Level 1b",type:PermissionType.CATALOGUE,route:"menu-level-1b",children:[{id:"3653745576583237",parentId:"7572529636800586",label:"sys.menu.menulevel.1b.2a",name:"Menu Level 2a",type:PermissionType.MENU,route:"menu-level-2a",component:"/menu-level/menu-level-1b/menu-level-2a/index.tsx"},{id:"4873136353891364",parentId:"7572529636800586",label:"sys.menu.menulevel.1b.2b.index",name:"Menu Level 2b",type:PermissionType.CATALOGUE,route:"menu-level-2b",children:[{id:"4233029726998055",parentId:"4873136353891364",label:"sys.menu.menulevel.1b.2b.3a",name:"Menu Level 3a",type:PermissionType.MENU,route:"menu-level-3a",component:"/menu-level/menu-level-1b/menu-level-2b/menu-level-3a/index.tsx"},{id:"3298034742548454",parentId:"4873136353891364",label:"sys.menu.menulevel.1b.2b.3b",name:"Menu Level 3b",type:PermissionType.MENU,route:"menu-level-3b",component:"/menu-level/menu-level-1b/menu-level-2b/menu-level-3b/index.tsx"}]}]}]},ERRORS_PERMISSION={id:"9406067785553476",parentId:"",label:"sys.menu.error.index",name:"Error",icon:"bxs:error-alt",type:PermissionType.CATALOGUE,route:"error",order:6,children:[{id:"8557056851997154",parentId:"9406067785553476",label:"sys.menu.error.403",name:"403",type:PermissionType.MENU,route:"403",component:"/sys/error/Page403.tsx"},{id:"5095669208159005",parentId:"9406067785553476",label:"sys.menu.error.404",name:"404",type:PermissionType.MENU,route:"404",component:"/sys/error/Page404.tsx"},{id:"0225992135973772",parentId:"9406067785553476",label:"sys.menu.error.500",name:"500",type:PermissionType.MENU,route:"500",component:"/sys/error/Page500.tsx"}]},OTHERS_PERMISSION=[{id:"3981225257359246",parentId:"",label:"sys.menu.calendar",name:"Calendar",icon:"solar:calendar-bold-duotone",type:PermissionType.MENU,route:"calendar",component:"/sys/others/calendar/index.tsx"},{id:"3513985683886393",parentId:"",label:"sys.menu.kanban",name:"kanban",icon:"solar:clipboard-bold-duotone",type:PermissionType.MENU,route:"kanban",component:"/sys/others/kanban/index.tsx"},{id:"5455837930804461",parentId:"",label:"sys.menu.disabled",name:"Disabled",icon:"ic_disabled",type:PermissionType.MENU,route:"disabled",status:BasicStatus.DISABLE,component:"/sys/others/calendar/index.tsx"},{id:"7728048658221587",parentId:"",label:"sys.menu.label",name:"Label",icon:"ic_label",type:PermissionType.MENU,route:"label",newFeature:!0,component:"/sys/others/blank.tsx"},{id:"5733704222120995",parentId:"",label:"sys.menu.frame",name:"Frame",icon:"ic_external",type:PermissionType.CATALOGUE,route:"frame",children:[{id:"9884486809510480",parentId:"5733704222120995",label:"sys.menu.external_link",name:"External Link",type:PermissionType.MENU,route:"external_link",component:"/sys/others/iframe/external-link.tsx",frameSrc:"https://ant.design/"},{id:"9299640886731819",parentId:"5733704222120995",label:"sys.menu.iframe",name:"Iframe",type:PermissionType.MENU,route:"frame",component:"/sys/others/iframe/index.tsx",frameSrc:"https://ant.design/"}]},{id:"0941594969900756",parentId:"",label:"sys.menu.blank",name:"Disabled",icon:"ic_blank",type:PermissionType.MENU,route:"blank",component:"/sys/others/blank.tsx"}],PERMISSION_LIST=[DASHBOARD_PERMISSION,MANAGEMENT_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION,MENU_LEVEL_PERMISSION,ERRORS_PERMISSION,...OTHERS_PERMISSION],ADMIN_ROLE={id:"4281707933534332",name:"Admin",label:"admin",status:BasicStatus.ENABLE,order:1,desc:"Super Admin",permission:PERMISSION_LIST},TEST_ROLE={id:"9931665660771476",name:"Test",label:"test",status:BasicStatus.ENABLE,order:2,desc:"test",permission:[DASHBOARD_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION]},DEFAULT_USER={id:mockExports.Random.guid(),username:"admin",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",email:mockExports.Random.email(),createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),password:"123456",role:ADMIN_ROLE,token:"gbeataToken",permissions:ADMIN_ROLE.permission,homePath:"/home"},TEST_USER={id:mockExports.Random.guid(),username:"test",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",password:"123456",email:mockExports.Random.email(),token:"gbeataToken",createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),role:TEST_ROLE,permissions:TEST_ROLE.permission,homePath:"/home"},USER_LIST=[DEFAULT_USER,TEST_USER];function createFakeUserList(){return[{userId:"10000",username:"admin",realName:"react admin design",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",desc:"super admin",password:"123456",token:"gbeataToken",homePath:"/home"}]}const user=[{url:"/api/login",timeout:500,method:"post",response:({body:o})=>{const{username:a,password:s}=o,c=USER_LIST.find(f=>f.username===a);return c?resultSuccess(se({},c)):resultError("Incorrect account or password!")}},{url:"/api/getUserInfo",method:"get",response:o=>{const a=getRequestToken(o);if(!a)return resultError("Invalid token!");const s=createFakeUserList().find(c=>c.token===a);return s?resultSuccess(s):resultError("The corresponding user information was not obtained!")}},{url:"/api/logout",timeout:200,method:"get",response:()=>resultSuccess(void 0,{message:"Token has been destroyed!"})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,createFakeUserList,default:user},Symbol.toStringTag,{value:"Module"})),geFollwer=()=>Math.floor(Math.random()*4),getPosition=()=>{const o=["HR Manager","Data Observer","Frontend Engineer","Backend Engineer","Project Manager","QA Engineer","Fullstack Engineer","Registered Nurse","Business Analyst","Creative Director","Software Developer","Research Scientist"],a=Math.floor(Math.random()*o.length);return o[a]},genList=()=>{const o=[];for(let a=0;a<100;a+=1){const s=a<10?`0${a}`:a;o.push({id:+`10${s}`+1,name:mockExports.Random.name(),position:getPosition(),sex:["男","女"][Number(mockExports.Random.boolean())],follwer:geFollwer(),mits:Math.floor(Math.random()*10),forbid:mockExports.Random.boolean()})}return o},userList=[{url:"/api/user/getUserList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList())}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:userList},Symbol.toStringTag,{value:"Module"}));function lexer(o){for(var a=[],s=0;s=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||y===95){f+=o[d++];continue}break}if(!f)throw new TypeError("Missing parameter name at ".concat(s));a.push({type:"NAME",index:s,value:f}),s=d;continue}if(c==="("){var _=1,S="",d=s+1;if(o[d]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(d));for(;d)?(?!\?)/g,c=0,f=s.exec(o.source);f;)a.push({name:f[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),f=s.exec(o.source);return o}function arrayToRegexp(o,a,s){var c=o.map(function(f){return pathToRegexp(f,a,s).source});return new RegExp("(?:".concat(c.join("|"),")"),flags(s))}function stringToRegexp(o,a,s){return tokensToRegexp(parse(o,s),a,s)}function tokensToRegexp(o,a,s){s===void 0&&(s={});for(var c=s.strict,f=c===void 0?!1:c,d=s.start,y=d===void 0?!0:d,_=s.end,S=_===void 0?!0:_,b=s.encode,$=b===void 0?function(W){return W}:b,P=s.delimiter,T=P===void 0?"/#?":P,C=s.endsWith,O=C===void 0?"":C,A="[".concat(escapeString(O),"]|$"),F="[".concat(escapeString(T),"]"),j=y?"^":"",L=0,M=o;L-1:G===void 0;f||(j+="(?:".concat(F,"(?=").concat(A,"))?")),X||(j+="(?=".concat(F,"|").concat(A,")"))}return new RegExp(j,flags(s))}function pathToRegexp(o,a,s){return o instanceof RegExp?regexpToRegexp(o,a):Array.isArray(o)?arrayToRegexp(o,a,s):stringToRegexp(o,a,s)}const Mock=mockJs;function createProdMockServer(o){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const a={};for(let s in this.custom.requestHeaders)a[s.toString().toLowerCase()]=this.custom.requestHeaders[s];this.custom.options=Object.assign({},this.custom.options,{headers:a})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let a=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&a&&(this.custom.xhr.responseType=a)};for(const{url:a,method:s,response:c,timeout:f}of o)__setupMock__(f),Mock.mock(pathToRegexp(a,void 0,{end:!1}),s||"get",__XHR2ExpressReqWrapper__(c))}function __param2Obj__(o){const a=o.split("?")[1];return a?JSON.parse('{"'+decodeURIComponent(a).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__(o){return function(a){let s=null;if(typeof o=="function"){const{body:c,type:f,url:d,headers:y}=a;let _=c;try{_=JSON.parse(c)}catch(S){}s=o({method:f,body:_,query:__param2Obj__(d),headers:y})}else s=o;return Mock.mock(s)}}function __setupMock__(o=0){o&&Mock.setup({timeout:o})}const modules=Object.assign({"../mock/data/table.ts":__vite_glob_0_0,"../mock/data/user.ts":__vite_glob_0_1,"../mock/data/userList.ts":__vite_glob_0_2}),mockModules=[];Object.keys(modules).forEach(o=>{if(o.includes("/_"))return;const a=modules[o].default||{},s=Array.isArray(a)?[...a]:[a];mockModules.push(...s)});function setupProdMockServer(){createProdMockServer(mockModules)}const queryClient=new QueryClient({defaultOptions:{queries:{refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:3,staleTime:5*60*1e3,gcTime:5*60*1e3}}});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React$4.StrictMode,{children:jsxRuntimeExports.jsx(Provider,{store,children:jsxRuntimeExports.jsx(PersistGate,{persistor,children:jsxRuntimeExports.jsxs(QueryClientProvider,{client:queryClient,children:[jsxRuntimeExports.jsx(ReactQueryDevtools2,{initialIsOpen:!1}),jsxRuntimeExports.jsx(App,{})]})})})}));setupProdMockServer();export{GForm as A,omitObj as B,CTRL_DEFAULT_MORE_TEXT as C,getKey as D,getDefaultValue as E,FiberProvider as F,GAction as G,GSearchTableContext as H,GTable as I,isObj as J,optionObj as K,getActionProps as L,useStyles$b as M,FORM_TYPE_DATE as N,FORM_TYPE_DATE_RANGE as O,SvgIcon$1 as P,__assign as Q,isBrowser$1 as R,SvgIcon as S,throttle$3 as T,__awaiter as U,__generator as V,__rest as W,useMemoizedFn as X,getUsersList as Y,__spreadArray as _,animated as a,Slider as b,cloneDeep as c,isFunction$1 as d,useLatest as e,debounce$3 as f,__read as g,useUnmount$1 as h,isDev$1 as i,useContextBridge as j,createRoot as k,getJueJinList as l,useTranslation as m,locale as n,openWindow as o,propTypesExports as p,hasPermission as q,require$$3 as r,GButton as s,t,useSpring as u,CTRL_DEFAULT_MAX as v,treeToList as w,useUserPermissions as x,convertChildrenToField as y,GDialog as z}; +*/var $={Handler:c,Random:d,Util:f,XHR:b,RE:y,toJSONSchema:_,valid:S,heredoc:f.heredoc,setup:function(P){return b.setup(P)},_mocked:{}};$.version="1.0.1-beta3",b&&(b.Mock=$),$.mock=function(P,T,C){return arguments.length===1?c.gen(P):(arguments.length===2&&(C=T,T=void 0),b&&(window.XMLHttpRequest=b),$._mocked[P+(T||"")]={rurl:P,rtype:T,template:C},$)},o.exports=$},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(o,a,s){a=a==null?"":a+"",s=s||{},s={path:s.path||[Constant.GUID],templatePath:s.templatePath||[Constant.GUID++],currentContext:s.currentContext,templateCurrentContext:s.templateCurrentContext||o,root:s.root||s.currentContext,templateRoot:s.templateRoot||s.templateCurrentContext||o};var c=Parser.parse(a),f=Util.type(o),d;return Handler[f]?(d=Handler[f]({type:f,template:o,name:a,parsedName:a&&a.replace(Constant.RE_KEY,"$1"),rule:c,context:s}),s.root||(s.root=d),d):o},Handler.extend({array:function(o){var a=[],s,c;if(o.template.length===0)return a;if(o.rule.parameters)if(o.rule.min===1&&o.rule.max===void 0)o.context.path.push(o.name),o.context.templatePath.push(o.name),a=Random.pick(Handler.gen(o.template,void 0,{path:o.context.path,templatePath:o.context.templatePath,currentContext:a,templateCurrentContext:o.template,root:o.context.root||a,templateRoot:o.context.templateRoot||o.template})),o.context.path.pop(),o.context.templatePath.pop();else if(o.rule.parameters[2])o.template.__order_index=o.template.__order_index||0,o.context.path.push(o.name),o.context.templatePath.push(o.name),a=Handler.gen(o.template,void 0,{path:o.context.path,templatePath:o.context.templatePath,currentContext:a,templateCurrentContext:o.template,root:o.context.root||a,templateRoot:o.context.templateRoot||o.template})[o.template.__order_index%o.template.length],o.template.__order_index+=+o.rule.parameters[2],o.context.path.pop(),o.context.templatePath.pop();else for(s=0;s1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(f=a.context.path.slice(0),f.pop(),f=this.normalizePath(f.concat(c)));try{o=c[c.length-1];for(var d=a.context.root,y=a.context.templateRoot,_=1;_1/(s+c)*s?!f:f):Math.random()>=.5},bool:function(s,c,f){return this.boolean(s,c,f)},natural:function(s,c){return s=typeof s!="undefined"?parseInt(s,10):0,c=typeof c!="undefined"?parseInt(c,10):9007199254740992,Math.round(Math.random()*(c-s))+s},integer:function(s,c){return s=typeof s!="undefined"?parseInt(s,10):-9007199254740992,c=typeof c!="undefined"?parseInt(c,10):9007199254740992,Math.round(Math.random()*(c-s))+s},int:function(s,c){return this.integer(s,c)},float:function(s,c,f,d){f=f===void 0?0:f,f=Math.max(Math.min(f,17),0),d=d===void 0?17:d,d=Math.max(Math.min(d,17),0);for(var y=this.integer(s,c)+".",_=0,S=this.natural(f,d);_1&&b--,6*b<1?P=_+(S-_)*6*b:2*b<1?P=S:3*b<2?P=_+(S-_)*(2/3-b)*6:P=_,$[T]=P*255;return $},hsl2hsv:function(c){var f=c[0],d=c[1]/100,y=c[2]/100,_,S;return y*=2,d*=y<=1?y:2-y,S=(y+d)/2,_=2*d/(y+d),[f,_*100,S*100]},hsv2rgb:function(c){var f=c[0]/60,d=c[1]/100,y=c[2]/100,_=Math.floor(f)%6,S=f-Math.floor(f),b=255*y*(1-d),$=255*y*(1-d*S),P=255*y*(1-d*(1-S));switch(y=255*y,_){case 0:return[y,P,b];case 1:return[$,y,b];case 2:return[b,y,P];case 3:return[b,$,y];case 4:return[P,b,y];case 5:return[y,b,$]}},hsv2hsl:function(c){var f=c[0],d=c[1]/100,y=c[2]/100,_,S;return S=(2-d)*y,_=d*y,_/=S<=1?S:2-S,S/=2,[f,_*100,S*100]},rgb2hex:function(s,c,f){return"#"+((256+s<<8|c)<<8|f).toString(16).slice(1)},hex2rgb:function(s){return s="0x"+s.slice(1).replace(s.length>4?s:/./g,"$&$&")|0,[s>>16,s>>8&255,s&255]}}},function(o,a){o.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(o,a,s){var c=s(6),f=s(14);function d(y,_,S,b){return S===void 0?c.natural(y,_):b===void 0?S:c.natural(parseInt(S,10),parseInt(b,10))}o.exports={paragraph:function(y,_){for(var S=d(3,7,y,_),b=[],$=0;$1&&(d=[].slice.call(arguments,0));var y=f.options,_=y.context.templatePath.join("."),S=f.cache[_]=f.cache[_]||{index:0,array:d};return S.array[S.index++%S.array.length]}}},function(o,a){o.exports={first:function(){var s=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(s)},last:function(){var s=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(s)},name:function(s){return this.first()+" "+(s?this.first()+" ":"")+this.last()},cfirst:function(){var s="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(s)},clast:function(){var s="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(s)},cname:function(){return this.cfirst()+this.clast()}}},function(o,a){o.exports={url:function(s,c){return(s||this.protocol())+"://"+(c||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(s){return this.word()+"."+(s||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(s){return this.character("lower")+"."+this.word()+"@"+(s||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(o,a,s){var c=s(18),f=["东北","华北","华东","华中","华南","西南","西北"];o.exports={region:function(){return this.pick(f)},province:function(){return this.pick(c).name},city:function(d){var y=this.pick(c),_=this.pick(y.children);return d?[y.name,_.name].join(" "):_.name},county:function(d){var y=this.pick(c),_=this.pick(y.children),S=this.pick(_.children)||{name:"-"};return d?[y.name,_.name,S.name].join(" "):S.name},zip:function(d){for(var y="",_=0;_<(d||6);_++)y+=this.natural(0,9);return y}}},function(o,a){var s={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function c(d){for(var y={},_=0,S;_jt;jt++)nn=H.charAt(jt),nn===` +`?(Se.seenCR||Se.line++,Se.column=1,Se.seenCR=!1):nn==="\r"||nn==="\u2028"||nn==="\u2029"?(Se.line++,Se.column=1,Se.seenCR=!0):(Se.column++,Se.seenCR=!1)}return Br!==B&&(Br>B&&(Br=0,rn={line:1,column:1,seenCR:!1}),Y(rn,Br,B),Br=B),rn}function K(B){In>oe||(oe>In&&(In=oe,Ln=[]),Ln.push(B))}function ie(B){var Y=0;for(B.sort();Yoe?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(Fn)),Se!==null?(Le=B,Y=en(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Me)):(oe=B,B=Me),B}function pt(){var B,Y,Se;return B=oe,H.charCodeAt(oe)===92?(Y=fi,oe++):(Y=null,we===0&&K(di)),Y!==null?(Va.test(H.charAt(oe))?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(ia)),Se!==null?(Le=B,Y=aa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Me)):(oe=B,B=Me),B}function ar(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===yr?(Y=yr,oe+=2):(Y=null,we===0&&K(Nt)),Y!==null){if(Se=[],Tr.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(hi)),Re!==null)for(;Re!==null;)Se.push(Re),Tr.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(hi));else Se=Me;Se!==null?(Le=B,Y=Wa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Me)}else oe=B,B=Me;return B}function $n(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===Jt?(Y=Jt,oe+=2):(Y=null,we===0&&K(Or)),Y!==null){if(Se=[],tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Mn)),Re!==null)for(;Re!==null;)Se.push(Re),tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Mn));else Se=Me;Se!==null?(Le=B,Y=vr(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Me)}else oe=B,B=Me;return B}function wa(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===_r?(Y=_r,oe+=2):(Y=null,we===0&&K(pi)),Y!==null){if(Se=[],tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Mn)),Re!==null)for(;Re!==null;)Se.push(Re),tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Mn));else Se=Me;Se!==null?(Le=B,Y=qa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Me)}else oe=B,B=Me;return B}function Pa(){var B,Y;return B=oe,H.substr(oe,2)===yr?(Y=yr,oe+=2):(Y=null,we===0&&K(Nt)),Y!==null&&(Le=B,Y=gi()),Y===null&&(oe=B),B=Y,B}function Ta(){var B,Y,Se;return B=oe,H.charCodeAt(oe)===92?(Y=fi,oe++):(Y=null,we===0&&K(di)),Y!==null?(H.length>oe?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(Fn)),Se!==null?(Le=B,Y=Ki(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Me)):(oe=B,B=Me),B}var Yn,wn=arguments.length>1?arguments[1]:{},Oa={regexp:ee},Xn=ee,Me=null,Dr="",Oo="|",Co='"|"',Ro=function(B,Y){return Y?new c(B,Y[1]):B},Ca=function(B,Y,Se){return new f([B].concat(Y).concat([Se]))},Qn="^",Ra='"^"',Ao=function(){return new s("start")},Jn="$",Fo='"$"',Mo=function(){return new s("end")},Io=function(B,Y){return new _(B,Y)},Lo="Quantifier",ko=function(B,Y){return Y&&(B.greedy=!1),B},Ni="{",ji='"{"',No=",",jo='","',Aa="}",Fa='"}"',Do=function(B,Y){return new S(B,Y)},Ma=",}",Uo='",}"',Di=function(B){return new S(B,1/0)},Pn=function(B){return new S(B,B)},Ui="+",zi='"+"',zo=function(){return new S(1,1/0)},Bi="*",Xr='"*"',Er=function(){return new S(0,1/0)},rt="?",tt='"?"',$r=function(){return new S(0,1)},gt=/^[0-9]/,wt="[0-9]",Ur=function(B){return+B.join("")},Qr="(",Ot='"("',Zn=")",Ia='")"',La=function(B){return B},ei=function(B){return new y(B)},Hi="?:",Yt='"?:"',Bo=function(B){return new d("non-capture-group",B)},ka="?=",Ho='"?="',ti=function(B){return new d("positive-lookahead",B)},Tn="?!",On='"?!"',ri=function(B){return new d("negative-lookahead",B)},Go="CharacterSet",Vo="[",Gi='"["',Na="]",Vi='"]"',Cn=function(B,Y){return new b(!!B,Y)},Wo="CharacterRange",Wi="-",Qe='"-"',ja=function(B,Y){return new $(B,Y)},qi="Character",Da=/^[^\\\]]/,qo="[^\\\\\\]]",Ki=function(B){return new P(B)},dt=".",Yi='"."',Ko=function(){return new s("any-character")},Xi="Literal",Yo=/^[^|\\\/.[()?+*$\^]/,ni="[^|\\\\\\/.[()?+*$\\^]",Lt="\\b",Ua='"\\\\b"',Xo=function(){return new s("backspace")},Xt=function(){return new s("word-boundary")},or="\\B",ii='"\\\\B"',Qi=function(){return new s("non-word-boundary")},Ji="\\d",Qo='"\\\\d"',sr=function(){return new s("digit")},zr="\\D",Jr='"\\\\D"',ai=function(){return new s("non-digit")},Rn="\\f",zt='"\\\\f"',Bt=function(){return new s("form-feed")},wr="\\n",gr='"\\\\n"',mr=function(){return new s("line-feed")},Pr="\\r",za='"\\\\r"',Zi=function(){return new s("carriage-return")},oi="\\s",kt='"\\\\s"',Ht=function(){return new s("white-space")},nt="\\S",An='"\\\\S"',Qt=function(){return new s("non-white-space")},ea="\\t",Ba='"\\\\t"',ta=function(){return new s("tab")},si="\\v",Ha='"\\\\v"',li=function(){return new s("vertical-tab")},ra="\\w",Zr='"\\\\w"',na=function(){return new s("word")},Ga="\\W",ui='"\\\\W"',Jo=function(){return new s("non-word")},Gt="\\c",ci='"\\\\c"',Fn="any character",en=function(B){return new M(B)},fi="\\",di='"\\\\"',Va=/^[1-9]/,ia="[1-9]",aa=function(B){return new A(B)},yr="\\0",Nt='"\\\\0"',Tr=/^[0-7]/,hi="[0-7]",Wa=function(B){return new O(B.join(""))},Jt="\\x",Or='"\\\\x"',tn=/^[0-9a-fA-F]/,Mn="[0-9a-fA-F]",vr=function(B){return new C(B.join(""))},_r="\\u",pi='"\\\\u"',qa=function(B){return new T(B.join(""))},gi=function(){return new s("null-character")},oe=0,Le=0,Br=0,rn={line:1,column:1,seenCR:!1},In=0,Ln=[],we=0;if("startRule"in wn){if(!(wn.startRule in Oa))throw new Error(`Can't start parsing from rule "`+wn.startRule+'".');Xn=Oa[wn.startRule]}if(s.offset=X,s.text=G,Yn=Xn(),Yn!==null&&oe===H.length)return Yn;throw ie(Ln),Le=Math.max(oe,In),new U(Ln,LeT)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is greater than",message:O};return A.message=S.message(A),C.push(A),!1},lessThan:function(b,$,P,T,C,O){if(P=T)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is greater than or equal to",message:O};return A.message=S.message(A),C.push(A),!1},lessThanOrEqualTo:function(b,$,P,T,C,O){if(P<=T)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is less than or equal to",message:O};return A.message=S.message(A),C.push(A),!1}};y.Diff=_,y.Assert=S,o.exports=y},function(o,a,s){o.exports=s(28)},function(o,a,s){var c=s(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(C){window.Event=function(O,A,M,j){var L=document.createEvent("CustomEvent");return L.initCustomEvent(O,A,M,j),L}}var f={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d="readystatechange loadstart progress abort error load timeout loadend".split(" "),y="timeout withCredentials".split(" "),_="readyState responseURL status statusText responseType response responseText responseXML".split(" "),S={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function b(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}b._settings={timeout:"10-100"},b.setup=function(C){return c.extend(b._settings,C),b._settings},c.extend(b,f),c.extend(b.prototype,f),b.prototype.mock=!0,b.prototype.match=!1,c.extend(b.prototype,{open:function(C,O,A,M,j){var L=this;c.extend(this.custom,{method:C,url:O,async:typeof A=="boolean"?A:!0,username:M,password:j,options:{url:O,type:C}}),this.custom.timeout=function(G){if(typeof G=="number")return G;if(typeof G=="string"&&!~G.indexOf("-"))return parseInt(G,10);if(typeof G=="string"&&~G.indexOf("-")){var X=G.split("-"),W=parseInt(X[0],10),K=parseInt(X[1],10);return Math.round(Math.random()*(K-W))+W}}(b._settings.timeout);var F=P(this.custom.options);function I(G){for(var X=0;X<_.length;X++)try{L[_[X]]=U[_[X]]}catch(W){}L.dispatchEvent(new Event(G.type))}if(!F){var U=$();this.custom.xhr=U;for(var z=0;z=s.length?s.slice(c,s.length):s.slice(c,c+Number(a))}function resultPageSuccess(o,a,s,{message:c="ok"}={}){const f=pagination(o,a,s);return $e(se({},resultSuccess({list:f,total:s.length})),{message:c})}const getPhone=()=>{const o=[135,136,137,138,139,155,158,183,185,189],a=Math.floor(Math.random()*10),s=o[a]+Math.random().toString().slice(-8);return Number(s)},getEducation=()=>{const o=["小学","初中","高中","专科","本科","研究生"],a=Math.floor(Math.random()*o.length);return o[a]},getMarried=()=>Math.floor(Math.random()*4),getHobby=()=>{const o=[],a=["羽毛球","乒乓球","篮球","排球","网球","游泳","滑雪","跳高","滑翔","潜水"],s=[3,4][Number(mockExports.Random.boolean())];for(let c=0;c{const o=[];for(let a=0;a<100;a++){const s=a<10?`0${a}`:a;o.push({id:+`10${s}`+1,name:mockExports.Random.cname(),sex:["男","女"][Number(mockExports.Random.boolean())],phone:getPhone(),education:getEducation(),married:getMarried(),forbid:mockExports.Random.boolean(),hobby:getHobby()})}return o},articleListData=[{article_id:"7303048156967026714",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640419505209e3,6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/84274f1176744240b47471a79d920a2f~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1276&h=638&s=1250001&e=gif&f=46&b=d3d9dc",is_gfw:0,title:"3D数字孪生 - 智能仓储管理平台-开源啦💐",brief_content:" 截止目前,相信你在社区上很难找到开源且真正对前期的你学习有帮助的案例和文章,之所以做这类分享,纯粹的是用爱发电,新的领域学习,让我痛苦的度过了好多个夜晚,值得庆幸自己的思路和计划都能按照设想的方案实",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1700465692",mtime:"1700532628",rtime:"-62135596800",draft_id:"7302787905043693577",view_count:397,collect_count:25,digg_count:20,comment_count:0,hot_index:26,is_hot:0,rank_index:12e-8,status:1,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1012,read_time:"3分钟"},{article_id:"7299709109879324691",user_id:"2682464101469480",category_id:"6809637776263217160",tag_ids:[6809640407484334e3,6809640402103042e3,6809640419505209e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/941af6d2401c4600b2867fc314dbbeaf~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1886&h=1186&s=505219&e=png&b=260947",is_gfw:0,title:"仿mac系统交互设计的车载Pad操作系统",brief_content:"时隔100天,我又来水文了!3D数字孪生的系列好多小伙伴都感兴趣,项目在10月就已经完结了,后续我会将继续补充如何完整的做完一个3D数字孪生项目",is_english:0,is_original:1,user_index:11.437480020762536,original_type:0,original_author:"",content:"",ctime:"1699636366",mtime:"1699778058",rtime:"1699778058",draft_id:"7299506825875226661",view_count:2077,collect_count:30,digg_count:37,comment_count:2,hot_index:120,is_hot:0,rank_index:.01209184,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1841,read_time:"6分钟"},{article_id:"7256964915133694008",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640404791591e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/b5542f51a3274f8791ce1d8257dc4039~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"制造业领域,我是如何被逼到做顶级架构设计的",brief_content:"什么是顶级?还是澄清下吧; 这里的顶级并非说“最牛&”、最高档次,而指的是在开发一个复杂系统或软件时的最高层次设计的过程。 接下来,我要介绍的是,我是如何被逼到从单业务系统到系统与系统层面的顶级设计。",is_english:0,is_original:1,user_index:10.070339420019154,original_type:0,original_author:"",content:"",ctime:"1689652100",mtime:"1689668573",rtime:"1689668573",draft_id:"7255491496831631416",view_count:1404,collect_count:41,digg_count:21,comment_count:6,hot_index:95,is_hot:0,rank_index:.00212567,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:2360,read_time:"8分钟"},{article_id:"7250318500882432057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640525595935e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/3727534baa6a478e9bbcb30d7472d40f~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机控制器(五)",brief_content:"机器学习 oz@0xozram 9号在twitter上发了这样的一个短视频: 当然,这属于机器学习领域的内容,也就是大名鼎鼎的 google 在2015开源的 tensorflow,TensorFlo",is_english:0,is_original:1,user_index:9.463944942479607,original_type:0,original_author:"",content:"",ctime:"1688108878",mtime:"1688831884",rtime:"1688831884",draft_id:"7249765949742530597",view_count:2280,collect_count:34,digg_count:28,comment_count:5,hot_index:135,is_hot:0,rank_index:.0027185,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1808,read_time:"6分钟"},{article_id:"7248545082130169893",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640497393435e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/05bba1c501124628a6bd11dc7f93a96a~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机(四)",brief_content:"承上 在第一篇# 3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)有介绍,在使用 three/filber 的Canvas组件时,默认情况下,会自动添加初始化一个透视相机(Perspe",is_english:0,is_original:1,user_index:9.01959424539129,original_type:0,original_author:"",content:"",ctime:"1687694967",mtime:"1687748103",rtime:"1687748103",draft_id:"7248466120364343333",view_count:1752,collect_count:52,digg_count:39,comment_count:1,hot_index:110,is_hot:0,rank_index:.0020533,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1576,read_time:"5分钟"},{article_id:"7246657502842945597",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1465296be96f41f58e9a2c9a35551736~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景材质(三)",brief_content:"接上文# 3D数字孪生 - Three.js 场景光源(二)最后的问题: “为何已关闭场景中所有光源,仍然有些面是亮的呢?” 我们不妨近距离的观察一下,打开场景中的方向光 DirectionalLig",is_english:0,is_original:1,user_index:8.52173105363898,original_type:0,original_author:"",content:"",ctime:"1687251948",mtime:"1687335742",rtime:"1687335742",draft_id:"7246564869222580282",view_count:1869,collect_count:34,digg_count:27,comment_count:0,hot_index:106,is_hot:0,rank_index:.00191366,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1284,read_time:"4分钟"},{article_id:"7246316652048269373",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/638de6b1ba4b48bab0229b70095e718e~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景光源(二)",brief_content:'前言 接下来的项目实战讲解过程中,有必要多花几个篇幅介绍一下项目中用到的两个库。 "@react-three/drei": "^9.70.3", "@react-three/fiber": "^8.1',is_english:0,is_original:1,user_index:9.158795645897236,original_type:0,original_author:"",content:"",ctime:"1687179552",mtime:"1687331693",rtime:"1687239614",draft_id:"7246311040267370556",view_count:1414,collect_count:29,digg_count:17,comment_count:2,hot_index:82,is_hot:0,rank_index:.00151119,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1143,read_time:"4分钟"},{article_id:"7244894506305536057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640357354013e3,6809640407484334e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/6dac5e4b92d048409629828852b2d79d~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1919&h=959&s=1380008&e=png&b=e0dede",is_gfw:0,title:"3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)",brief_content:"3D数字孪生,生成3D可视化仓库地图,实时监控仓库库位坐标、调度任务状态、车辆位置等信息。 根据调度信息,动态展现小车任务状态",is_english:0,is_original:1,user_index:8.905619350311529,original_type:0,original_author:"",content:"",ctime:"1686886155",mtime:"1702997867",rtime:"1686908640",draft_id:"7244785030567886907",view_count:9415,collect_count:386,digg_count:145,comment_count:33,hot_index:589,is_hot:0,rank_index:.00966501,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:10,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1859,read_time:"6分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:49,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:91,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"}],table=[{url:"/api/table/getTableList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList$1())}},{url:"/api/article/queryList",timeout:200,method:"post",response:({body:o,headers:a,query:s})=>{const{current:c=1,pageSize:f=10}=o;return resultPageSuccess(c,f,articleListData)}}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));mockExports.Random.cparagraph(),mockExports.Random.cparagraph(),mockExports.Random.cparagraph();const DASHBOARD_PERMISSION={id:"9100714781927703",key:"9100714781927703",parentId:"",label:"首页",name:"Dashboard",icon:"home",type:PermissionType.CATALOGUE,route:"home",order:1},MANAGEMENT_PERMISSION={id:"0901673425580518",key:"0901673425580518",parentId:"",label:"系统设置",name:"Management",icon:"gbeata-ant-design:setting-outlined",type:PermissionType.CATALOGUE,route:"system",order:6,children:[{id:"4359580910369984",parentId:"0249937641030250",label:"授权管理",name:"Permission",type:PermissionType.MENU,route:"permission",component:"/management/permission/index.tsx"},{id:"1689241785490759",parentId:"0249937641030250",label:"角色管理",name:"Role",type:PermissionType.MENU,route:"role",component:"/management/role/index.tsx"},{id:"0157880245365433",parentId:"0249937641030250",label:"用户管理",name:"User",type:PermissionType.MENU,route:"user",component:"/management/user/index.tsx"}]},COMPONENTS_PERMISSION={id:"2271615060673773",key:"2271615060673773",parentId:"",label:"表单",name:"Form",icon:"form",type:PermissionType.CATALOGUE,route:"form",order:3,children:[{id:"2478488238255411",parentId:"2271615060673773",label:"基础表单",name:"BasicForm",type:PermissionType.MENU,route:"basic-form",component:"/form/basic-form/index.tsx"},{id:"6755238352318767",parentId:"2271615060673773",label:"查询表单",name:"SearchForm",type:PermissionType.MENU,route:"search-form",component:"/form/search-form/index.tsx"}]},FUNCTIONS_PERMISSION={id:"8132044808088488",key:"8132044808088488",parentId:"",label:"组件",name:"Compo",icon:"solar:plain-2-bold-duotone",type:PermissionType.CATALOGUE,route:"compo",order:4,children:[{id:"3667930780705750",parentId:"8132044808088488",label:"图片上传",name:"ImageUpload",type:PermissionType.MENU,route:"image-upload",component:"/compo/image-upload/index.tsx"},{id:"3667930780705750",key:"3667930780705750",parentId:"8132044808088488",label:"拖拽",name:"Drag",type:PermissionType.CATALOGUE,route:"drag",children:[{id:"3667930780705710",parentId:"3667930780705750",label:"列表拖拽",name:"DragList",type:PermissionType.MENU,route:"drag-list",component:"/compo/drag/drag-list.tsx"},{id:"3667930780705711",parentId:"3667930780705750",label:"组件拖拽",name:"DragResize",type:PermissionType.MENU,route:"drag-resize",component:"/compo/drag/drag-resize.tsx"}]},{id:"3667930780705751",parentId:"8132044808088488",label:"穿梭框",name:"Transfer",type:PermissionType.MENU,route:"transfer",component:"/compo/transfer/index.tsx"}]},ERRORS_PERMISSION={id:"9406067785553476",key:"9406067785553476",parentId:"",label:"异常页面",name:"Exception",icon:"bxs:error-alt",type:PermissionType.CATALOGUE,route:"exception",order:6,children:[{id:"8557056851997154",parentId:"9406067785553476",label:"403页面",name:"403",type:PermissionType.MENU,route:"403",component:"/exception/index.tsx"},{id:"5095669208159005",parentId:"9406067785553476",label:"404页面",name:"404",type:PermissionType.MENU,route:"404",component:"/exception/index.tsx"},{id:"0225992135973772",parentId:"9406067785553476",label:"500页面",name:"500",type:PermissionType.MENU,route:"500",component:"/exception/index.tsx"}]},PERMISSION_LIST=[DASHBOARD_PERMISSION,MANAGEMENT_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION,ERRORS_PERMISSION],ADMIN_ROLE={id:"4281707933534332",name:"Admin",label:"admin",status:BasicStatus.ENABLE,order:1,desc:"Super Admin",permission:PERMISSION_LIST},TEST_ROLE={id:"9931665660771476",name:"Test",label:"test",status:BasicStatus.ENABLE,order:2,desc:"test",permission:[DASHBOARD_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION]},DEFAULT_USER={id:mockExports.Random.guid(),username:"admin",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",email:mockExports.Random.email(),createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),password:"123456",role:ADMIN_ROLE,token:"gbeataToken",permissions:ADMIN_ROLE.permission,homePath:"/home"},TEST_USER={id:mockExports.Random.guid(),username:"test",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",password:"123456",email:mockExports.Random.email(),token:"gbeataToken",createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),role:TEST_ROLE,permissions:TEST_ROLE.permission,homePath:"/home"},USER_LIST=[DEFAULT_USER,TEST_USER];function createFakeUserList(){return[{userId:"10000",username:"admin",realName:"react admin design",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",desc:"super admin",password:"123456",token:"gbeataToken",homePath:"/home"}]}const user=[{url:"/api/login",timeout:500,method:"post",response:({body:o})=>{const{username:a,password:s}=o,c=USER_LIST.find(f=>f.username===a);return c?resultSuccess(se({},c)):resultError("Incorrect account or password!")}},{url:"/api/getUserInfo",method:"get",response:o=>{const a=getRequestToken(o);if(!a)return resultError("Invalid token!");const s=createFakeUserList().find(c=>c.token===a);return s?resultSuccess(s):resultError("The corresponding user information was not obtained!")}},{url:"/api/logout",timeout:200,method:"get",response:()=>resultSuccess(void 0,{message:"Token has been destroyed!"})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,createFakeUserList,default:user},Symbol.toStringTag,{value:"Module"})),geFollwer=()=>Math.floor(Math.random()*4),getPosition=()=>{const o=["HR Manager","Data Observer","Frontend Engineer","Backend Engineer","Project Manager","QA Engineer","Fullstack Engineer","Registered Nurse","Business Analyst","Creative Director","Software Developer","Research Scientist"],a=Math.floor(Math.random()*o.length);return o[a]},genList=()=>{const o=[];for(let a=0;a<100;a+=1){const s=a<10?`0${a}`:a;o.push({id:+`10${s}`+1,name:mockExports.Random.name(),position:getPosition(),sex:["男","女"][Number(mockExports.Random.boolean())],follwer:geFollwer(),mits:Math.floor(Math.random()*10),forbid:mockExports.Random.boolean()})}return o},userList=[{url:"/api/user/getUserList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList())}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:userList},Symbol.toStringTag,{value:"Module"}));function lexer(o){for(var a=[],s=0;s=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||y===95){f+=o[d++];continue}break}if(!f)throw new TypeError("Missing parameter name at ".concat(s));a.push({type:"NAME",index:s,value:f}),s=d;continue}if(c==="("){var _=1,S="",d=s+1;if(o[d]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(d));for(;d)?(?!\?)/g,c=0,f=s.exec(o.source);f;)a.push({name:f[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),f=s.exec(o.source);return o}function arrayToRegexp(o,a,s){var c=o.map(function(f){return pathToRegexp(f,a,s).source});return new RegExp("(?:".concat(c.join("|"),")"),flags(s))}function stringToRegexp(o,a,s){return tokensToRegexp(parse(o,s),a,s)}function tokensToRegexp(o,a,s){s===void 0&&(s={});for(var c=s.strict,f=c===void 0?!1:c,d=s.start,y=d===void 0?!0:d,_=s.end,S=_===void 0?!0:_,b=s.encode,$=b===void 0?function(W){return W}:b,P=s.delimiter,T=P===void 0?"/#?":P,C=s.endsWith,O=C===void 0?"":C,A="[".concat(escapeString(O),"]|$"),M="[".concat(escapeString(T),"]"),j=y?"^":"",L=0,F=o;L-1:G===void 0;f||(j+="(?:".concat(M,"(?=").concat(A,"))?")),X||(j+="(?=".concat(M,"|").concat(A,")"))}return new RegExp(j,flags(s))}function pathToRegexp(o,a,s){return o instanceof RegExp?regexpToRegexp(o,a):Array.isArray(o)?arrayToRegexp(o,a,s):stringToRegexp(o,a,s)}const Mock=mockJs;function createProdMockServer(o){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const a={};for(let s in this.custom.requestHeaders)a[s.toString().toLowerCase()]=this.custom.requestHeaders[s];this.custom.options=Object.assign({},this.custom.options,{headers:a})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let a=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&a&&(this.custom.xhr.responseType=a)};for(const{url:a,method:s,response:c,timeout:f}of o)__setupMock__(f),Mock.mock(pathToRegexp(a,void 0,{end:!1}),s||"get",__XHR2ExpressReqWrapper__(c))}function __param2Obj__(o){const a=o.split("?")[1];return a?JSON.parse('{"'+decodeURIComponent(a).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__(o){return function(a){let s=null;if(typeof o=="function"){const{body:c,type:f,url:d,headers:y}=a;let _=c;try{_=JSON.parse(c)}catch(S){}s=o({method:f,body:_,query:__param2Obj__(d),headers:y})}else s=o;return Mock.mock(s)}}function __setupMock__(o=0){o&&Mock.setup({timeout:o})}const modules=Object.assign({"../mock/data/table.ts":__vite_glob_0_0,"../mock/data/user.ts":__vite_glob_0_1,"../mock/data/userList.ts":__vite_glob_0_2}),mockModules=[];Object.keys(modules).forEach(o=>{if(o.includes("/_"))return;const a=modules[o].default||{},s=Array.isArray(a)?[...a]:[a];mockModules.push(...s)});function setupProdMockServer(){createProdMockServer(mockModules)}const queryClient=new QueryClient({defaultOptions:{queries:{refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:3,staleTime:5*60*1e3,gcTime:5*60*1e3}}});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React$4.StrictMode,{children:jsxRuntimeExports.jsx(Provider,{store,children:jsxRuntimeExports.jsx(PersistGate,{persistor,children:jsxRuntimeExports.jsxs(QueryClientProvider,{client:queryClient,children:[jsxRuntimeExports.jsx(ReactQueryDevtools2,{initialIsOpen:!1}),jsxRuntimeExports.jsx(App,{})]})})})}));setupProdMockServer();export{GForm as A,omitObj as B,CTRL_DEFAULT_MORE_TEXT as C,getKey as D,getDefaultValue as E,FiberProvider as F,GAction as G,GSearchTableContext as H,GTable as I,isObj as J,optionObj as K,getActionProps as L,useStyles$b as M,FORM_TYPE_DATE as N,FORM_TYPE_DATE_RANGE as O,SvgIcon$1 as P,__assign as Q,isBrowser$1 as R,SvgIcon as S,throttle$3 as T,__awaiter as U,__generator as V,__rest as W,useMemoizedFn as X,getUsersList as Y,__spreadArray as _,animated as a,Slider as b,cloneDeep as c,isFunction$1 as d,useLatest as e,debounce$3 as f,__read as g,useUnmount$1 as h,isDev$1 as i,useContextBridge as j,createRoot as k,getJueJinList as l,useTranslation as m,locale as n,openWindow as o,propTypesExports as p,hasPermission as q,require$$3 as r,GButton as s,t,useSpring as u,CTRL_DEFAULT_MAX as v,treeToList as w,useUserPermissions as x,convertChildrenToField as y,GDialog as z}; diff --git a/assets/image-upload-87284309.js b/assets/image-upload-64969e02.js similarity index 93% rename from assets/image-upload-87284309.js rename to assets/image-upload-64969e02.js index fc2194a..ac8ac0e 100644 --- a/assets/image-upload-87284309.js +++ b/assets/image-upload-64969e02.js @@ -1 +1 @@ -var b=(c,g,a)=>new Promise((m,l)=>{var u=t=>{try{n(a.next(t))}catch(r){l(r)}},p=t=>{try{n(a.throw(t))}catch(r){l(r)}},n=t=>t.done?m(t.value):Promise.resolve(t.value).then(u,p);n((a=a.apply(c,g)).next())});import{j as e,J as L,K as h,n as j,ap as v,aq as x,i as O,P as S,M as k}from"./antd-66264537.js";import{t as i}from"./entry/index-13ba62d4.1715696327646.js";import{r as o}from"./react-f288da4a.js";import{P as N,U as T}from"./websiteSetting-69561885.js";const A=()=>{const{Dragger:c}=x,[g,a]=o.useState(!1),[m,l]=o.useState(""),[u,p]=o.useState(""),n=[{uid:"-1",name:"beautiful-girl.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg"}],[t,r]=o.useState([{uid:"-1",name:"beautiful-girl.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg"}]),w=s=>b(void 0,null,function*(){!s.url&&!s.preview&&(s.preview=yield f(s.originFileObj)),l(s.url||s.preview),a(!0),p(s.name||s.url.substring(s.url.lastIndexOf("/")+1))}),f=s=>new Promise((C,U)=>{const d=new FileReader;d.readAsDataURL(s),d.onload=()=>C(d.result),d.onerror=I=>U(I)}),y=({fileList:s})=>r(s),P=()=>{a(!1),p("")};return e.jsx(N,{plugin:T,children:e.jsxs(L,{gutter:12,children:[e.jsx(h,{span:8,children:e.jsx(j,{title:i("拖拽上传"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(c,{defaultFileList:n,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,children:[e.jsx("p",{className:"ant-upload-drag-icon",style:{marginBottom:0},children:e.jsx(v,{rev:void 0})}),e.jsxs("p",{children:[i("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(h,{span:8,children:e.jsx(j,{title:i("列表样式"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(x,{defaultFileList:[...t],action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture",className:"list-upload",children:[e.jsxs(O,{type:"primary",children:[e.jsx(v,{rev:void 0}),e.jsx("span",{children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsxs(h,{span:8,children:[e.jsx(j,{title:i("照片墙"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(x,{fileList:t,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture-card",className:"list-upload",onPreview:w,onChange:y,children:e.jsxs("div",{children:[e.jsx(S,{rev:void 0}),e.jsx("div",{style:{marginTop:"8px"},children:i("点击上传")})]})})}),e.jsx(k,{open:g,title:u,footer:null,onCancel:P,children:e.jsx("img",{src:m,style:{width:"100%"}})})]})]})})};export{A as default}; +var b=(c,g,a)=>new Promise((m,l)=>{var u=t=>{try{n(a.next(t))}catch(r){l(r)}},p=t=>{try{n(a.throw(t))}catch(r){l(r)}},n=t=>t.done?m(t.value):Promise.resolve(t.value).then(u,p);n((a=a.apply(c,g)).next())});import{j as e,J as L,K as h,n as j,ap as v,aq as x,i as O,P as S,M as k}from"./antd-66264537.js";import{t as i}from"./entry/index-3324e23b.1715700059687.js";import{r as o}from"./react-f288da4a.js";import{P as N,U as T}from"./websiteSetting-da01dae2.js";const A=()=>{const{Dragger:c}=x,[g,a]=o.useState(!1),[m,l]=o.useState(""),[u,p]=o.useState(""),n=[{uid:"-1",name:"beautiful-girl.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg"}],[t,r]=o.useState([{uid:"-1",name:"beautiful-girl.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg"}]),w=s=>b(void 0,null,function*(){!s.url&&!s.preview&&(s.preview=yield f(s.originFileObj)),l(s.url||s.preview),a(!0),p(s.name||s.url.substring(s.url.lastIndexOf("/")+1))}),f=s=>new Promise((C,U)=>{const d=new FileReader;d.readAsDataURL(s),d.onload=()=>C(d.result),d.onerror=I=>U(I)}),y=({fileList:s})=>r(s),P=()=>{a(!1),p("")};return e.jsx(N,{plugin:T,children:e.jsxs(L,{gutter:12,children:[e.jsx(h,{span:8,children:e.jsx(j,{title:i("拖拽上传"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(c,{defaultFileList:n,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,children:[e.jsx("p",{className:"ant-upload-drag-icon",style:{marginBottom:0},children:e.jsx(v,{rev:void 0})}),e.jsxs("p",{children:[i("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(h,{span:8,children:e.jsx(j,{title:i("列表样式"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(x,{defaultFileList:[...t],action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture",className:"list-upload",children:[e.jsxs(O,{type:"primary",children:[e.jsx(v,{rev:void 0}),e.jsx("span",{children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsxs(h,{span:8,children:[e.jsx(j,{title:i("照片墙"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(x,{fileList:t,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture-card",className:"list-upload",onPreview:w,onChange:y,children:e.jsxs("div",{children:[e.jsx(S,{rev:void 0}),e.jsx("div",{style:{marginTop:"8px"},children:i("点击上传")})]})})}),e.jsx(k,{open:g,title:u,footer:null,onCancel:P,children:e.jsx("img",{src:m,style:{width:"100%"}})})]})]})})};export{A as default}; diff --git a/assets/index-0e54c7e1.js b/assets/index-0a18a3d2.js similarity index 98% rename from assets/index-0e54c7e1.js rename to assets/index-0a18a3d2.js index 7efce68..d080134 100644 --- a/assets/index-0e54c7e1.js +++ b/assets/index-0a18a3d2.js @@ -1 +1 @@ -import{c as X,j as w,aF as _,i as Y,P as q,J as Z,K as k}from"./antd-66264537.js";import{_ as p,g as b,Q as y,h as B,f as I,R as D,T as ee,i as V,d as G,U as ne,V as re,W as J,e as te,X as T,t as ie,Y as ue}from"./entry/index-13ba62d4.1715696327646.js";import{r as h,h as ae}from"./react-f288da4a.js";import{U as oe}from"./index-14e57f5a.js";import"./Translatex-79fd201f.js";var se=function(e){return function(r,n){var t=h.useRef(!1);e(function(){return function(){t.current=!1}},[]),e(function(){if(!t.current)t.current=!0;else return r()},n)}};const W=se(h.useEffect);var K=function(e,r){var n=r.manual,t=r.ready,u=t===void 0?!0:t,o=r.defaultParams,a=o===void 0?[]:o,c=r.refreshDeps,s=c===void 0?[]:c,i=r.refreshDepsAction,v=h.useRef(!1);return v.current=!1,W(function(){!n&&u&&(v.current=!0,e.run.apply(e,p([],b(a),!1)))},[u]),W(function(){v.current||n||(v.current=!0,i?i():e.refresh())},p([],b(s),!1)),{onBefore:function(){if(!u)return{stopNow:!0}}}};K.onInit=function(e){var r=e.ready,n=r===void 0?!0:r,t=e.manual;return{loading:!t&&n}};const ce=K;function fe(e,r){if(e===r)return!0;for(var n=0;n-1&&(u=setTimeout(function(){O.delete(e)},r)),O.set(e,y(y({},n),{timer:u}))},de=function(e){return O.get(e)},F=new Map,ve=function(e){return F.get(e)},he=function(e,r){F.set(e,r),r.then(function(n){return F.delete(e),n}).catch(function(){F.delete(e)})},C={},me=function(e,r){C[e]&&C[e].forEach(function(n){return n(r)})},M=function(e,r){return C[e]||(C[e]=[]),C[e].push(r),function(){var t=C[e].indexOf(r);C[e].splice(t,1)}},ge=function(e,r){var n=r.cacheKey,t=r.cacheTime,u=t===void 0?5*60*1e3:t,o=r.staleTime,a=o===void 0?0:o,c=r.setCache,s=r.getCache,i=h.useRef(),v=h.useRef(),d=function(f,l){c?c(l):le(f,u,l),me(f,l.data)},m=function(f,l){return l===void 0&&(l=[]),s?s(l):de(f)};return Q(function(){if(n){var f=m(n);f&&Object.hasOwnProperty.call(f,"data")&&(e.state.data=f.data,e.state.params=f.params,(a===-1||new Date().getTime()-f.time<=a)&&(e.state.loading=!1)),i.current=M(n,function(l){e.setState({data:l})})}},[]),B(function(){var f;(f=i.current)===null||f===void 0||f.call(i)}),n?{onBefore:function(f){var l=m(n,f);return!l||!Object.hasOwnProperty.call(l,"data")?{}:a===-1||new Date().getTime()-l.time<=a?{loading:!1,data:l==null?void 0:l.data,error:void 0,returnNow:!0}:{data:l==null?void 0:l.data,error:void 0}},onRequest:function(f,l){var g=ve(n);return g&&g!==v.current?{servicePromise:g}:(g=f.apply(void 0,p([],b(l),!1)),v.current=g,he(n,g),{servicePromise:g})},onSuccess:function(f,l){var g;n&&((g=i.current)===null||g===void 0||g.call(i),d(n,{data:f,params:l,time:new Date().getTime()}),i.current=M(n,function(A){e.setState({data:A})}))},onMutate:function(f){var l;n&&((l=i.current)===null||l===void 0||l.call(i),d(n,{data:f,params:e.state.params,time:new Date().getTime()}),i.current=M(n,function(g){e.setState({data:g})}))}}:{}};const pe=ge;var be=function(e,r){var n=r.debounceWait,t=r.debounceLeading,u=r.debounceTrailing,o=r.debounceMaxWait,a=h.useRef(),c=h.useMemo(function(){var s={};return t!==void 0&&(s.leading=t),u!==void 0&&(s.trailing=u),o!==void 0&&(s.maxWait=o),s},[t,u,o]);return h.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=I(function(i){i()},n,c),e.runAsync=function(){for(var i=[],v=0;v-1&&j.splice(n,1)}}if(D){var z=function(){if(!(!H()||!je()))for(var e=0;e({"add-button":{background:e.colorDefault}})),Ye=()=>{const{styles:e,theme:r,cx:n}=Ve(),t=ae(),[u,o]=h.useState([]),{data:a,loading:c}=ze(ue);return h.useEffect(()=>{o((a==null?void 0:a.list)||[])},[a]),w.jsxs(_,{gap:16,vertical:!0,children:[w.jsx(_,{justify:"end",children:w.jsx(Y,{className:n(e["add-button"]),type:"primary",icon:w.jsx(q,{}),onClick:()=>t("/user/add-user"),children:ie("新建")})}),w.jsx(Z,{gutter:[16,16],children:u==null?void 0:u.map((s,i)=>w.jsx(k,{span:8,children:w.jsx(oe,{data:s,index:i,loading:c})},s.id))})]})};export{Ye as default}; +import{c as X,j as w,aF as _,i as Y,P as q,J as Z,K as k}from"./antd-66264537.js";import{_ as p,g as b,Q as y,h as B,f as I,R as D,T as ee,i as V,d as G,U as ne,V as re,W as J,e as te,X as T,t as ie,Y as ue}from"./entry/index-3324e23b.1715700059687.js";import{r as h,h as ae}from"./react-f288da4a.js";import{U as oe}from"./index-781865e5.js";import"./Translatex-227cdacd.js";var se=function(e){return function(r,n){var t=h.useRef(!1);e(function(){return function(){t.current=!1}},[]),e(function(){if(!t.current)t.current=!0;else return r()},n)}};const W=se(h.useEffect);var K=function(e,r){var n=r.manual,t=r.ready,u=t===void 0?!0:t,o=r.defaultParams,a=o===void 0?[]:o,c=r.refreshDeps,s=c===void 0?[]:c,i=r.refreshDepsAction,v=h.useRef(!1);return v.current=!1,W(function(){!n&&u&&(v.current=!0,e.run.apply(e,p([],b(a),!1)))},[u]),W(function(){v.current||n||(v.current=!0,i?i():e.refresh())},p([],b(s),!1)),{onBefore:function(){if(!u)return{stopNow:!0}}}};K.onInit=function(e){var r=e.ready,n=r===void 0?!0:r,t=e.manual;return{loading:!t&&n}};const ce=K;function fe(e,r){if(e===r)return!0;for(var n=0;n-1&&(u=setTimeout(function(){O.delete(e)},r)),O.set(e,y(y({},n),{timer:u}))},de=function(e){return O.get(e)},F=new Map,ve=function(e){return F.get(e)},he=function(e,r){F.set(e,r),r.then(function(n){return F.delete(e),n}).catch(function(){F.delete(e)})},C={},me=function(e,r){C[e]&&C[e].forEach(function(n){return n(r)})},M=function(e,r){return C[e]||(C[e]=[]),C[e].push(r),function(){var t=C[e].indexOf(r);C[e].splice(t,1)}},ge=function(e,r){var n=r.cacheKey,t=r.cacheTime,u=t===void 0?5*60*1e3:t,o=r.staleTime,a=o===void 0?0:o,c=r.setCache,s=r.getCache,i=h.useRef(),v=h.useRef(),d=function(f,l){c?c(l):le(f,u,l),me(f,l.data)},m=function(f,l){return l===void 0&&(l=[]),s?s(l):de(f)};return Q(function(){if(n){var f=m(n);f&&Object.hasOwnProperty.call(f,"data")&&(e.state.data=f.data,e.state.params=f.params,(a===-1||new Date().getTime()-f.time<=a)&&(e.state.loading=!1)),i.current=M(n,function(l){e.setState({data:l})})}},[]),B(function(){var f;(f=i.current)===null||f===void 0||f.call(i)}),n?{onBefore:function(f){var l=m(n,f);return!l||!Object.hasOwnProperty.call(l,"data")?{}:a===-1||new Date().getTime()-l.time<=a?{loading:!1,data:l==null?void 0:l.data,error:void 0,returnNow:!0}:{data:l==null?void 0:l.data,error:void 0}},onRequest:function(f,l){var g=ve(n);return g&&g!==v.current?{servicePromise:g}:(g=f.apply(void 0,p([],b(l),!1)),v.current=g,he(n,g),{servicePromise:g})},onSuccess:function(f,l){var g;n&&((g=i.current)===null||g===void 0||g.call(i),d(n,{data:f,params:l,time:new Date().getTime()}),i.current=M(n,function(A){e.setState({data:A})}))},onMutate:function(f){var l;n&&((l=i.current)===null||l===void 0||l.call(i),d(n,{data:f,params:e.state.params,time:new Date().getTime()}),i.current=M(n,function(g){e.setState({data:g})}))}}:{}};const pe=ge;var be=function(e,r){var n=r.debounceWait,t=r.debounceLeading,u=r.debounceTrailing,o=r.debounceMaxWait,a=h.useRef(),c=h.useMemo(function(){var s={};return t!==void 0&&(s.leading=t),u!==void 0&&(s.trailing=u),o!==void 0&&(s.maxWait=o),s},[t,u,o]);return h.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=I(function(i){i()},n,c),e.runAsync=function(){for(var i=[],v=0;v-1&&j.splice(n,1)}}if(D){var z=function(){if(!(!H()||!je()))for(var e=0;e({"add-button":{background:e.colorDefault}})),Ye=()=>{const{styles:e,theme:r,cx:n}=Ve(),t=ae(),[u,o]=h.useState([]),{data:a,loading:c}=ze(ue);return h.useEffect(()=>{o((a==null?void 0:a.list)||[])},[a]),w.jsxs(_,{gap:16,vertical:!0,children:[w.jsx(_,{justify:"end",children:w.jsx(Y,{className:n(e["add-button"]),type:"primary",icon:w.jsx(q,{}),onClick:()=>t("/user/add-user"),children:ie("新建")})}),w.jsx(Z,{gutter:[16,16],children:u==null?void 0:u.map((s,i)=>w.jsx(k,{span:8,children:w.jsx(oe,{data:s,index:i,loading:c})},s.id))})]})};export{Ye as default}; diff --git a/assets/index-fa5fcbe6.js b/assets/index-12dfe086.js similarity index 98% rename from assets/index-fa5fcbe6.js rename to assets/index-12dfe086.js index 24f73dc..8ca9896 100644 --- a/assets/index-fa5fcbe6.js +++ b/assets/index-12dfe086.js @@ -1,2 +1,2 @@ -import{n as ie,g as ae,K as oe,G as le,S as ue,a2 as se,ay as ce,o as fe,aC as me}from"./antd-66264537.js";import{r as m,a as c}from"./react-f288da4a.js";import{M as de,A as pe,s as A,n as _,N as ye,O as ve}from"./entry/index-13ba62d4.1715696327646.js";var ge=["fields","onConfirm","onReset","formExtend","defaultOpen","toggleVisible","openRow","actionVisible","inline"];function E(t){"@babel/helpers - typeof";return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(t)}function M(){return M=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ee(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,s;for(s=0;s=0)&&(r[a]=t[a]);return r}function $(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function F(t){for(var e=1;e24?(p+=24-f,f=24-b):f+=b,f===24&&(f=0),p+=b,r&&p>s*24-a&&g!==0&&(u.hidden=!0),u.span=b,u}),{searchFields:y,span:p}},Me=function(e){return e?_.search.collapsed:_.search.expand},xe=["getFieldValue","getFieldsValue","getFieldError","getFieldsError","isFieldTouched","isFieldsTouched","isFieldValidating","resetFields","scrollToField","setFields","setFieldsValue","submit","validateFields"],De=m.forwardRef(function(e,r){var n=e.fields,a=e.onConfirm,s=e.onReset,v=e.formExtend,p=e.defaultOpen,f=e.toggleVisible,y=e.openRow,o=y===void 0?Pe:y,g=e.actionVisible,u=e.inline,b=we(e,ge),k=de(),x=k.styles,P=m.useRef(),C=m.useRef(0),H=m.useState(!p),V=B(H,2),h=V[0],U=V[1],Y=m.useState("large"),I=B(Y,2),T=I[0],q=I[1],S=m.useMemo(function(){return _e[T]},[T]),D=Ae(n,h,T,S,o,u||!1),R=D.searchFields,O=D.span,G=m.useMemo(function(){if(!u){if(O<=18)return 6;var i=0,l=0,d=0;R.forEach(function(re,ne){var w=re.span||S;w+l>24?(i+=24-l,l=24-w):l+=w,l===24&&(l=0),i+w+S>o*24&&!d&&ne!==0&&(d=i),i+=w}),d===0&&(d=i);var z=24-(h?d:i)%24;return z}},[R,S,h,O,u]),L=m.useMemo(function(){return O>=24-S},[O]),J=m.useMemo(function(){var i={};return L?i.textAlign="right":i.paddingLeft=50,u&&(i={}),i},[L,u]),j=m.useRef(),N={resize:function(){return W()}};xe.forEach(function(i){N[i]=function(){var l;return(l=j.current)[i].apply(l,arguments)}}),m.useImperativeHandle(r,function(){return N});var Q=function(){U(!h)},X=function(){try{var l=P.current.offsetWidth,d="large";l>1300?d="large":l>900?d="middle":l>700?d="small":d="mini",q(d)}catch(z){}},W=function(){var l=Date.now();l-C.current>100&&(X(),C.current=l)};m.useLayoutEffect(function(){var i=new window.ResizeObserver(function(){W()});return i.observe(P.current),function(){i.disconnect()}},[]);var Z=function(){j.current.resetFields(),j.current.submit(),s&&s()},ee=function(l){a&&a(l)},te=function(){return c.createElement(A,{type:"link",onClick:Q},Me(h),h?c.createElement(fe,null):c.createElement(me,null))};return c.createElement(ie,{className:ae(x.gSearch,u?"":"full-width",u?x.inline:"")},c.createElement("div",{className:"g-search-content",ref:P},c.createElement(pe,M({layout:{labelCol:{flex:"100px"}},ref:j,fields:R,span:S,gutter:u?0:16,formLayout:u?"inline":"horizontal",onConfirm:ee},b,v),g!==!1&&c.createElement(oe,{span:G,style:J},c.createElement(le.Item,null,c.createElement(ue,null,c.createElement(A,{htmlType:"submit",type:"primary",icon:c.createElement(se,null)},_.search.search),c.createElement(A,{icon:c.createElement(ce,null),onClick:Z},_.search.reset),f!==!1&&!u?O>o*24-(G||0)&&R.length>1&&c.createElement(te,null):null))))))});export{De as G}; diff --git a/assets/index-4c932eeb.js b/assets/index-12eb48de.js similarity index 77% rename from assets/index-4c932eeb.js rename to assets/index-12eb48de.js index 0aa6cdb..692b4cb 100644 --- a/assets/index-4c932eeb.js +++ b/assets/index-12eb48de.js @@ -1 +1 @@ -import{j as e}from"./antd-66264537.js";import{G as r}from"./entry/index-13ba62d4.1715696327646.js";import"./react-f288da4a.js";import{l as o,G as a,A as l}from"./api-adec7257.js";import{G as s}from"./index-bca57653.js";import"./index-fa5fcbe6.js";const i=[{title:"角色名称",key:"cn1",search:!0,dialog:{required:!0}},{title:"状态",key:"index",sort:!0,type:"radio-group",defaultValue:1,options:[{label:"启用",value:1},{label:"禁用",value:2}],dialog:{required:!0}}],d={width:200,render:(n,t)=>e.jsxs(a,{children:[e.jsx(l,{record:t,children:"授权"}),e.jsx(r,{record:t,action:"update",children:"编辑"}),e.jsx(r,{record:t,danger:!0,action:"delete",children:"删除"})]})};function f(){return e.jsx(s,{api:o,ctrl:d,fields:i,rowKey:"sort_id",dialogFormExtend:{fields:i},children:e.jsx(r,{action:"add",children:"新增"})})}export{f as default}; +import{j as e}from"./antd-66264537.js";import{G as r}from"./entry/index-3324e23b.1715700059687.js";import"./react-f288da4a.js";import{l as o,G as a,A as l}from"./api-74c8c574.js";import{G as s}from"./index-5e07c034.js";import"./index-12dfe086.js";const i=[{title:"角色名称",key:"cn1",search:!0,dialog:{required:!0}},{title:"状态",key:"index",sort:!0,type:"radio-group",defaultValue:1,options:[{label:"启用",value:1},{label:"禁用",value:2}],dialog:{required:!0}}],d={width:200,render:(n,t)=>e.jsxs(a,{children:[e.jsx(l,{record:t,children:"授权"}),e.jsx(r,{record:t,action:"update",children:"编辑"}),e.jsx(r,{record:t,danger:!0,action:"delete",children:"删除"})]})};function f(){return e.jsx(s,{api:o,ctrl:d,fields:i,rowKey:"sort_id",dialogFormExtend:{fields:i},children:e.jsx(r,{action:"add",children:"新增"})})}export{f as default}; diff --git a/assets/index-bca57653.js b/assets/index-5e07c034.js similarity index 99% rename from assets/index-bca57653.js rename to assets/index-5e07c034.js index 9039681..ecc4763 100644 --- a/assets/index-bca57653.js +++ b/assets/index-5e07c034.js @@ -1,4 +1,4 @@ -import{ai as _t,S as st,k as se,ay as wt,ab as At,aj as ze,az as Ot,$ as Ft,a0 as xt,v as Tt,I as Pt,aA as Ct,aB as jt,a7 as Dt,T as Rt,N as Vt,al as $t,g as It}from"./antd-66264537.js";import{r as d,a as i}from"./react-f288da4a.js";import{y as ft,z as dt,A as mt,B as yt,n as A,s as Je,D as Z,G as kt,E as Kt,H as Mt,I as Nt,J as zt,K as Bt,L as Ht}from"./entry/index-13ba62d4.1715696327646.js";import{G as Lt}from"./index-fa5fcbe6.js";function je(t){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(t)}function Ue(){return Ue=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);rnew Promise(i=>{setTimeout(()=>{i({content:t,totalCount:t==null?void 0:t.length})},1e3)}),fields:o,rowKey:"sort_id",dialogFormExtend:{fields:o},children:r.jsx(l,{action:"add",children:"新增"})})}export{p as default}; diff --git a/assets/index-14e57f5a.js b/assets/index-781865e5.js similarity index 95% rename from assets/index-14e57f5a.js rename to assets/index-781865e5.js index 8ed4c77..1eb5df9 100644 --- a/assets/index-14e57f5a.js +++ b/assets/index-781865e5.js @@ -1 +1 @@ -var p=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var x=(s,t)=>{var o={};for(var a in s)g.call(s,a)&&t.indexOf(a)<0&&(o[a]=s[a]);if(s!=null&&p)for(var a of p(s))t.indexOf(a)<0&&b.call(s,a)&&(o[a]=s[a]);return o};import{c as y,j as e,n as u,aO as r,aF as w,i,L as T}from"./antd-66264537.js";import{a as h}from"./react-f288da4a.js";import{S as n}from"./entry/index-13ba62d4.1715696327646.js";import{T as N}from"./Translatex-79fd201f.js";const F="/react-antd-admin-pnpm/assets/avatar_2-ce7fcb30.jpg",R="/react-antd-admin-pnpm/assets/cover_5-5698cb6c.jpg",S=y(({token:s})=>({"user-card":{width:"100%",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-card-cover":{maxHeight:"200px",overflow:"hidden"},".cover":{position:"relative",filter:"blur(0)","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"relative",".info":{paddingTop:s.margin*2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},".avatar-svg":{color:s.colorBgContainer,width:"144px !important",height:"62px !important",top:"-56px",position:"absolute",transform:"translateX(-50%)",left:"50%"},".avatar":{width:"64px",height:"64px",borderRadius:"50%",overflow:"hidden",position:"absolute",top:"-50px",transform:"translateX(-50%)",left:"50%"}}}})),{Text:j,Title:v}=T,c=({name:s,count:t})=>e.jsxs("div",{className:"footer",children:[e.jsx(j,{type:"secondary",children:s}),e.jsxs(v,{style:{margin:0},level:5,children:[t,"K"]})]}),G=a=>{var l=a,{data:s={id:1,name:"Gbeata",position:"Front-end",sex:"male",follwer:1341,mits:231,forbid:!1},index:t=1}=l,o=x(l,["data","index"]);const[d,f]=h.useState(!0),{styles:m}=S();return h.useEffect(()=>{setTimeout(()=>{f(!1)},500)},[]),e.jsxs(e.Fragment,{children:[d&&e.jsx(u,{className:m["user-card"],actions:[e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"})],cover:e.jsx(r.Image,{active:!0}),children:e.jsx(r,{loading:!0,avatar:!0,active:!0})}),e.jsx(N,{direction:"up",run:!d,delay:t*100,children:e.jsx(u,{className:m["user-card"],cover:e.jsx("span",{className:"cover",children:e.jsx("img",{alt:"example",src:R})}),actions:[e.jsx(c,{name:"Foloower",count:s.follwer}),e.jsx(c,{name:"Folowing",count:s.mits}),e.jsx(c,{name:"Total Post",count:s.total})],children:e.jsxs("div",{className:"user_info",children:[e.jsx(n,{className:"avatar-svg",name:"wave"}),e.jsx("div",{className:"avatar",children:e.jsx("img",{src:F})}),e.jsxs("div",{className:"info",children:[e.jsx(v,{style:{margin:0},level:5,children:s.name}),e.jsx(j,{type:"secondary",children:s.position}),e.jsxs(w,{style:{marginTop:8},gap:8,children:[e.jsx(i,{shape:"circle",icon:e.jsx(n,{style:{color:"#1890ff"},name:"github"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"message"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"like"})})]})]})]})})})]})};export{G as U,c as a,F as b,R as c}; +var p=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var x=(s,t)=>{var o={};for(var a in s)g.call(s,a)&&t.indexOf(a)<0&&(o[a]=s[a]);if(s!=null&&p)for(var a of p(s))t.indexOf(a)<0&&b.call(s,a)&&(o[a]=s[a]);return o};import{c as y,j as e,n as u,aO as r,aF as w,i,L as T}from"./antd-66264537.js";import{a as h}from"./react-f288da4a.js";import{S as n}from"./entry/index-3324e23b.1715700059687.js";import{T as N}from"./Translatex-227cdacd.js";const F="/react-antd-admin-pnpm/assets/avatar_2-ce7fcb30.jpg",R="/react-antd-admin-pnpm/assets/cover_5-5698cb6c.jpg",S=y(({token:s})=>({"user-card":{width:"100%",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-card-cover":{maxHeight:"200px",overflow:"hidden"},".cover":{position:"relative",filter:"blur(0)","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"relative",".info":{paddingTop:s.margin*2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},".avatar-svg":{color:s.colorBgContainer,width:"144px !important",height:"62px !important",top:"-56px",position:"absolute",transform:"translateX(-50%)",left:"50%"},".avatar":{width:"64px",height:"64px",borderRadius:"50%",overflow:"hidden",position:"absolute",top:"-50px",transform:"translateX(-50%)",left:"50%"}}}})),{Text:j,Title:v}=T,c=({name:s,count:t})=>e.jsxs("div",{className:"footer",children:[e.jsx(j,{type:"secondary",children:s}),e.jsxs(v,{style:{margin:0},level:5,children:[t,"K"]})]}),G=a=>{var l=a,{data:s={id:1,name:"Gbeata",position:"Front-end",sex:"male",follwer:1341,mits:231,forbid:!1},index:t=1}=l,o=x(l,["data","index"]);const[d,f]=h.useState(!0),{styles:m}=S();return h.useEffect(()=>{setTimeout(()=>{f(!1)},500)},[]),e.jsxs(e.Fragment,{children:[d&&e.jsx(u,{className:m["user-card"],actions:[e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"})],cover:e.jsx(r.Image,{active:!0}),children:e.jsx(r,{loading:!0,avatar:!0,active:!0})}),e.jsx(N,{direction:"up",run:!d,delay:t*100,children:e.jsx(u,{className:m["user-card"],cover:e.jsx("span",{className:"cover",children:e.jsx("img",{alt:"example",src:R})}),actions:[e.jsx(c,{name:"Foloower",count:s.follwer}),e.jsx(c,{name:"Folowing",count:s.mits}),e.jsx(c,{name:"Total Post",count:s.total})],children:e.jsxs("div",{className:"user_info",children:[e.jsx(n,{className:"avatar-svg",name:"wave"}),e.jsx("div",{className:"avatar",children:e.jsx("img",{src:F})}),e.jsxs("div",{className:"info",children:[e.jsx(v,{style:{margin:0},level:5,children:s.name}),e.jsx(j,{type:"secondary",children:s.position}),e.jsxs(w,{style:{marginTop:8},gap:8,children:[e.jsx(i,{shape:"circle",icon:e.jsx(n,{style:{color:"#1890ff"},name:"github"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"message"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"like"})})]})]})]})})})]})};export{G as U,c as a,F as b,R as c}; diff --git a/assets/index-f6885d90.js b/assets/index-7de6860e.js similarity index 96% rename from assets/index-f6885d90.js rename to assets/index-7de6860e.js index 371f47d..4162068 100644 --- a/assets/index-f6885d90.js +++ b/assets/index-7de6860e.js @@ -1 +1 @@ -var U=Object.defineProperty,W=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var C=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))T.call(t,r)&&C(e,r,t[r]);if(y)for(var r of y(t))w.call(t,r)&&C(e,r,t[r]);return e},E=(e,t)=>W(e,z(t));var N=(e,t)=>{var r={};for(var c in e)T.call(e,c)&&t.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&y)for(var c of y(e))t.indexOf(c)<0&&w.call(e,c)&&(r[c]=e[c]);return r};import{j as n,J as F,K as u,n as S,ar as f,as as M,W as q}from"./antd-66264537.js";import{t as l}from"./entry/index-13ba62d4.1715696327646.js";import{r as k}from"./react-f288da4a.js";import{P as v,T as B}from"./websiteSetting-69561885.js";const j=[];for(let e=1;e<10;e++)j.push({key:e.toString(),title:l("备选项{{i}}",{i:e})});const A=[{key:"1",title:l("备选项 1")},{key:"2",title:l("备选项 2"),children:[{key:"2-1",title:l("备选项 2-1")},{key:"2-2",title:l("备选项 2-2")},{key:"2-3",title:l("备选项 2-3")}]},{key:"3",title:l("备选项 3-1")},{key:"4",title:l("备选项 4"),children:[{key:"4-1",title:l("备选项 4-1")},{key:"4-2",title:l("备选项 4-2"),children:[{key:"4-2-1",title:l("备选项 4-2-1")}]},{key:"4-3",title:l("备选项 4-3")}]}],x=[];function O(e=[]){e.forEach(t=>{x==null||x.push(t),O(t.children)})}O(JSON.parse(JSON.stringify(A)));const X=()=>{const[e,t]=k.useState(["1","5"]),[r,c]=k.useState(["2","6"]),[p,P]=k.useState([]),m=s=>{t(s)},J=(s,i)=>{c([...s,...i])},K=(s,i)=>s.includes(i),b=(s=[],i=[])=>s.map(d=>{var o=d,{children:h}=o,a=N(o,["children"]);return E(R({},a),{disabled:i.includes(a.key),children:b(h,i)})}),_=s=>{P(s)},D=({selectedKeys:s,onItemSelectAll:i,onItemSelect:h})=>({onSelectAll(a,d){const o=d.filter(g=>!g.disabled).map(({key:g})=>g);i(o,a)},onSelect({key:a},d){h(a,d)},selectedRowKeys:s});return n.jsx(v,{plugin:B,children:n.jsxs(F,{gutter:12,children:[n.jsx(u,{span:8,children:n.jsx(S,{title:l("基础用法"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,selectedKeys:r,dataSource:j,render:s=>s.title,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,onSelectChange:J})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("树穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:p,dataSource:x,render:s=>s.title,showSelectAll:!1,listStyle:{width:"230px",height:"360px"},onChange:_,children:({direction:s,selectedKeys:i,onItemSelect:h})=>{if(s==="left"){const a=[...i,...p];return n.jsx(M,{blockNode:!0,checkable:!0,checkStrictly:!0,defaultExpandAll:!0,checkedKeys:a,treeData:b(A,p),onCheck:(d,{node:{key:o}})=>{h(o,!K(a,o))},onSelect:(d,{node:{key:o}})=>{h(o,!K(a,o))}})}}})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("表格穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,dataSource:j,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,children:({filteredItems:s,selectedKeys:i,onItemSelectAll:h,onItemSelect:a})=>n.jsx(q,{rowSelection:D({selectedKeys:i,onItemSelectAll:h,onItemSelect:a}),columns:[{dataIndex:"title",title:"Name"}],dataSource:s,size:"small",pagination:!1,onRow:({key:d})=>({onClick:()=>{a(d,!i.includes(d))}})})})})})]})})};export{X as default}; +var U=Object.defineProperty,W=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var C=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))T.call(t,r)&&C(e,r,t[r]);if(y)for(var r of y(t))w.call(t,r)&&C(e,r,t[r]);return e},E=(e,t)=>W(e,z(t));var N=(e,t)=>{var r={};for(var c in e)T.call(e,c)&&t.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&y)for(var c of y(e))t.indexOf(c)<0&&w.call(e,c)&&(r[c]=e[c]);return r};import{j as n,J as F,K as u,n as S,ar as f,as as M,W as q}from"./antd-66264537.js";import{t as l}from"./entry/index-3324e23b.1715700059687.js";import{r as k}from"./react-f288da4a.js";import{P as v,T as B}from"./websiteSetting-da01dae2.js";const j=[];for(let e=1;e<10;e++)j.push({key:e.toString(),title:l("备选项{{i}}",{i:e})});const A=[{key:"1",title:l("备选项 1")},{key:"2",title:l("备选项 2"),children:[{key:"2-1",title:l("备选项 2-1")},{key:"2-2",title:l("备选项 2-2")},{key:"2-3",title:l("备选项 2-3")}]},{key:"3",title:l("备选项 3-1")},{key:"4",title:l("备选项 4"),children:[{key:"4-1",title:l("备选项 4-1")},{key:"4-2",title:l("备选项 4-2"),children:[{key:"4-2-1",title:l("备选项 4-2-1")}]},{key:"4-3",title:l("备选项 4-3")}]}],x=[];function O(e=[]){e.forEach(t=>{x==null||x.push(t),O(t.children)})}O(JSON.parse(JSON.stringify(A)));const X=()=>{const[e,t]=k.useState(["1","5"]),[r,c]=k.useState(["2","6"]),[p,P]=k.useState([]),m=s=>{t(s)},J=(s,i)=>{c([...s,...i])},K=(s,i)=>s.includes(i),b=(s=[],i=[])=>s.map(d=>{var o=d,{children:h}=o,a=N(o,["children"]);return E(R({},a),{disabled:i.includes(a.key),children:b(h,i)})}),_=s=>{P(s)},D=({selectedKeys:s,onItemSelectAll:i,onItemSelect:h})=>({onSelectAll(a,d){const o=d.filter(g=>!g.disabled).map(({key:g})=>g);i(o,a)},onSelect({key:a},d){h(a,d)},selectedRowKeys:s});return n.jsx(v,{plugin:B,children:n.jsxs(F,{gutter:12,children:[n.jsx(u,{span:8,children:n.jsx(S,{title:l("基础用法"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,selectedKeys:r,dataSource:j,render:s=>s.title,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,onSelectChange:J})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("树穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:p,dataSource:x,render:s=>s.title,showSelectAll:!1,listStyle:{width:"230px",height:"360px"},onChange:_,children:({direction:s,selectedKeys:i,onItemSelect:h})=>{if(s==="left"){const a=[...i,...p];return n.jsx(M,{blockNode:!0,checkable:!0,checkStrictly:!0,defaultExpandAll:!0,checkedKeys:a,treeData:b(A,p),onCheck:(d,{node:{key:o}})=>{h(o,!K(a,o))},onSelect:(d,{node:{key:o}})=>{h(o,!K(a,o))}})}}})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("表格穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,dataSource:j,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,children:({filteredItems:s,selectedKeys:i,onItemSelectAll:h,onItemSelect:a})=>n.jsx(q,{rowSelection:D({selectedKeys:i,onItemSelectAll:h,onItemSelect:a}),columns:[{dataIndex:"title",title:"Name"}],dataSource:s,size:"small",pagination:!1,onRow:({key:d})=>({onClick:()=>{a(d,!i.includes(d))}})})})})})]})})};export{X as default}; diff --git a/assets/index-4e2f5616.js b/assets/index-9a160d80.js similarity index 99% rename from assets/index-4e2f5616.js rename to assets/index-9a160d80.js index 3e7b7e1..035f59e 100644 --- a/assets/index-4e2f5616.js +++ b/assets/index-9a160d80.js @@ -1,4 +1,4 @@ -var EW=Object.defineProperty,RW=Object.defineProperties;var PW=Object.getOwnPropertyDescriptors;var im=Object.getOwnPropertySymbols;var q2=Object.prototype.hasOwnProperty,Q2=Object.prototype.propertyIsEnumerable;var QS=Math.pow,K2=(n,e,t)=>e in n?EW(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,At=(n,e)=>{for(var t in e||(e={}))q2.call(e,t)&&K2(n,t,e[t]);if(im)for(var t of im(e))Q2.call(e,t)&&K2(n,t,e[t]);return n},mr=(n,e)=>RW(n,PW(e));var di=(n,e)=>{var t={};for(var r in n)q2.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&im)for(var r of im(n))e.indexOf(r)<0&&Q2.call(n,r)&&(t[r]=n[r]);return t};var ch=(n,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(u){i(u)}},o=l=>{try{s(t.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((t=t.apply(n,e)).next())});import{j as ee,n as kF,a as Yf,c as UF,Y as GF,K as Oo,g as $S,L as cT,J as $2,aw as DW,i as IW}from"./antd-66264537.js";import{r as q,g as zF,a as na}from"./react-f288da4a.js";import{u as LW,a as BW,b as OW,i as NW,d as FW,e as kW,f as UW,_ as GW,g as zW,h as HW,F as VW,j as WW,k as XW,t as Yn,S as $0,l as YW,m as JW}from"./entry/index-13ba62d4.1715696327646.js";import{c as ZW,U as jW}from"./index-14e57f5a.js";import{_ as e1}from"./index-646dffa4.js";import{T as $r}from"./Translatex-79fd201f.js";import{G as KW}from"./index-bca57653.js";import"./index-fa5fcbe6.js";function qW(n){const e=q.useRef(null),t=At({mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},n.panelConfig),[{xys:r},i]=LW(()=>({xys:[0,0,1],config:t}),[t]),a=()=>i.start({xys:[0,0,1]}),o=s=>{var u;const l=(u=e.current)==null?void 0:u.getBoundingClientRect();i.start({xys:QW(s.clientX,s.clientY,l)})};return ee.jsx("div",{ref:e,children:ee.jsxs(BW.div,{className:"border border-solid ",style:{transform:r.to($W)},onMouseLeave:a,onMouseMove:o,children:[ee.jsxs("p",{className:"text-sm flex justify-between border-solid",children:[n.title," ",n.right]}),n.children]})})}const QW=(n,e,t)=>[-(e-t.top-t.height/2)/150,(n-t.left-t.width/2)/150,1],$W=(n,e,t)=>`perspective(600px) rotateX(${n}deg) rotateY(${e}deg) scale(${t})`,t1=n=>{const i=n,{loading:e=!0,delay:t=200}=i,r=di(i,["loading","delay"]);return ee.jsx($r,{direction:"top",delay:t,run:!0,children:ee.jsx(kF,mr(At({hoverable:!0,loading:e},r),{children:n.children}))})};function e8(n){const i=n,{sliderConfig:e,children:t}=i,r=di(i,["sliderConfig","children"]);return ee.jsx(OW,mr(At(At({},r),e),{children:t}))}function t8(n,e){var t;NW&&FW(n);var r=kW(n),i=(t=e==null?void 0:e.wait)!==null&&t!==void 0?t:1e3,a=q.useMemo(function(){return UW(function(){for(var o=[],s=0;se in n?EW(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,At=(n,e)=>{for(var t in e||(e={}))q2.call(e,t)&&K2(n,t,e[t]);if(im)for(var t of im(e))Q2.call(e,t)&&K2(n,t,e[t]);return n},mr=(n,e)=>RW(n,PW(e));var di=(n,e)=>{var t={};for(var r in n)q2.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&im)for(var r of im(n))e.indexOf(r)<0&&Q2.call(n,r)&&(t[r]=n[r]);return t};var ch=(n,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(u){i(u)}},o=l=>{try{s(t.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((t=t.apply(n,e)).next())});import{j as ee,n as kF,a as Yf,c as UF,Y as GF,K as Oo,g as $S,L as cT,J as $2,aw as DW,i as IW}from"./antd-66264537.js";import{r as q,g as zF,a as na}from"./react-f288da4a.js";import{u as LW,a as BW,b as OW,i as NW,d as FW,e as kW,f as UW,_ as GW,g as zW,h as HW,F as VW,j as WW,k as XW,t as Yn,S as $0,l as YW,m as JW}from"./entry/index-3324e23b.1715700059687.js";import{c as ZW,U as jW}from"./index-781865e5.js";import{_ as e1}from"./index-646dffa4.js";import{T as $r}from"./Translatex-227cdacd.js";import{G as KW}from"./index-5e07c034.js";import"./index-12dfe086.js";function qW(n){const e=q.useRef(null),t=At({mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},n.panelConfig),[{xys:r},i]=LW(()=>({xys:[0,0,1],config:t}),[t]),a=()=>i.start({xys:[0,0,1]}),o=s=>{var u;const l=(u=e.current)==null?void 0:u.getBoundingClientRect();i.start({xys:QW(s.clientX,s.clientY,l)})};return ee.jsx("div",{ref:e,children:ee.jsxs(BW.div,{className:"border border-solid ",style:{transform:r.to($W)},onMouseLeave:a,onMouseMove:o,children:[ee.jsxs("p",{className:"text-sm flex justify-between border-solid",children:[n.title," ",n.right]}),n.children]})})}const QW=(n,e,t)=>[-(e-t.top-t.height/2)/150,(n-t.left-t.width/2)/150,1],$W=(n,e,t)=>`perspective(600px) rotateX(${n}deg) rotateY(${e}deg) scale(${t})`,t1=n=>{const i=n,{loading:e=!0,delay:t=200}=i,r=di(i,["loading","delay"]);return ee.jsx($r,{direction:"top",delay:t,run:!0,children:ee.jsx(kF,mr(At({hoverable:!0,loading:e},r),{children:n.children}))})};function e8(n){const i=n,{sliderConfig:e,children:t}=i,r=di(i,["sliderConfig","children"]);return ee.jsx(OW,mr(At(At({},r),e),{children:t}))}function t8(n,e){var t;NW&&FW(n);var r=kW(n),i=(t=e==null?void 0:e.wait)!==null&&t!==void 0?t:1e3,a=q.useMemo(function(){return UW(function(){for(var o=[],s=0;ss in i?R(i,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[s]=r,y=(i,s)=>{for(var r in s||(s={}))B.call(s,r)&&C(i,r,s[r]);if(f)for(var r of f(s))M.call(s,r)&&C(i,r,s[r]);return i};import{G as l,j as a,n as A,I as m,t as E,J as h,K as n,s as w,x as O,at as W,u as Z,z as q,au as I,av as v,w as G,v as J,i as N}from"./antd-66264537.js";import{t as e}from"./entry/index-13ba62d4.1715696327646.js";import{r as p}from"./react-f288da4a.js";import{P as _,F as H}from"./websiteSetting-69561885.js";const k=["guangdong","Zhejiang","Jiangsu"],x={guangdong:["guangzhou","shenzhen","foshan","dongguan","zhuhai"],Zhejiang:["Hangzhou","Ningbo","Wenzhou"],Jiangsu:["Nanjing","Suzhou","Zhenjiang","wuxi"]},K=[{value:"zhinan",label:e("指南"),children:[{value:"shejiyuanze",label:e("设计原则"),children:[{value:"yizhi",label:e("一致")},{value:"fankui",label:e("反馈")},{value:"xiaolv",label:e("效率")},{value:"kekong",label:e("可控")}]},{value:"daohang",label:e("导航"),children:[{value:"cexiangdaohang",label:e("侧向导航")},{value:"dingbudaohang",label:e("顶部导航")}]}]},{value:"zujian",label:e("组件"),children:[{value:"basic",label:"Basic",children:[{value:"layout",label:e("layout 布局")},{value:"color",label:e("Color 色彩")},{value:"typography",label:e("Typography 字体")},{value:"icon",label:e("Icon 图标")},{value:"button",label:e("Button 按钮")}]},{value:"form",label:"Form",children:[{value:"radio",label:e("Radio 单选框")},{value:"checkbox",label:e("Checkbox 多选框")},{value:"input",label:e("Input 输入框")},{value:"input-number",label:e("InputNumber 计数器")},{value:"select",label:e("Select 选择器")},{value:"cascader",label:e("Cascader 级联选择器")},{value:"switch",label:e("Switch 开关")},{value:"slider",label:e("Slider 滑块")},{value:"time-picker",label:e("TimePicker 时间选择器")},{value:"date-picker",label:e("DatePicker 日期选择器")},{value:"datetime-picker",label:e("DateTimePicker 日期时间选择器")},{value:"upload",label:e("Upload 上传")},{value:"rate",label:e("Rate 评分")},{value:"form",label:e("Form 表单")}]},{value:"data",label:"Data",children:[{value:"table",label:e("Table 表格")},{value:"tag",label:e("Tag 标签")},{value:"progress",label:e("Progress 进度条")},{value:"tree",label:e("Tree 树形控件")},{value:"pagination",label:e("Pagination 分页")},{value:"badge",label:e("Badge 标记")}]},{value:"notice",label:"Notice",children:[{value:"alert",label:e("Alert 警告")},{value:"loading",label:e("Loading 加载")},{value:"message",label:e("Message 消息提示")},{value:"message-box",label:e("MessageBox 弹框")},{value:"notification",label:e("Notification 通知")}]},{value:"navigation",label:"Navigation",children:[{value:"menu",label:e("NavMenu 导航菜单")},{value:"tabs",label:e("Tabs 标签页")},{value:"breadcrumb",label:e("Breadcrumb 面包屑")},{value:"dropdown",label:e("Dropdown 下拉菜单")},{value:"steps",label:e("Steps 步骤条")}]},{value:"others",label:"Others",children:[{value:"dialog",label:e("Dialog 对话框")},{value:"tooltip",label:e("Tooltip 文字提示")},{value:"popover",label:e("Popover 弹出框")},{value:"card",label:e("Card 卡片")},{value:"carousel",label:e("Carousel 走马灯")},{value:"collapse",label:e("Collapse 折叠面板")}]}]},{value:"ziyuan",label:e("资源"),children:[{value:"axure",label:"Axure Components"},{value:"sketch",label:"Sketch Templates"},{value:"jiaohu",label:e("组件交互文档")}]}],U=[{title:"Node1",value:"0-0",children:[{title:"Child Node1",value:"0-0-0",children:[{title:"Child Node6",value:"0-0-1"}]}]},{title:"Node2",value:"0-1",children:[{title:"Child Node3",value:"0-1-0",disabled:!0},{title:"Child Node4",value:"0-1-1"},{title:"Child Node5",value:"0-1-2"}]}],$=[{label:e("免费"),value:"free"},{label:e("收费"),value:"fee"},{label:e("赞助"),value:"sponsor"},{label:e("线上"),value:"online",disabled:!0},{label:e("线下"),value:"offline",disabled:!0}],Q=[{label:e("游泳"),value:"swim"},{label:e("跑步"),value:"run"},{label:e("健身"),value:"fit"},{label:e("阅读"),value:"read",disabled:!0},{label:e("音乐"),value:"music",disabled:!0},{label:e("电影"),value:"movie"}],se=()=>{const[i]=l.useForm(),s=k[0],[r,X]=p.useState({inputLimit:"",inputNum:"",password:"",selectProvince:s,selectCity:x[s][0],dateVal:"",timeVal:"",switchVal:!0,sliderVal:32,cascaderVal:[],cascaderLazy:[],treeVal:["0-0-1"],treeLazy:"1",radioVal:"offline",checkboxVal:["read"],textareaVal:""}),b={inputLimit:[{required:!0,message:e("内容不能为空")}],inputNum:[{required:!0,message:e("内容不能为空")},{type:"number",message:e("内容必须为数字值")}],password:[{required:!0,message:e("内容不能为空")},{min:6,max:16,message:e("密码长度在 6 到 16 个字符")},{pattern:/^[a-zA-Z0-9_-]{6,16}$/,message:e("密码只支持字母、数字和下划线")}]},V=l.useWatch("switchVal",i),[g,z]=p.useState([{value:1,label:e("选项1"),isLeaf:!1}]),[c,T]=p.useState([{id:1,pId:0,value:"1",title:"Expand to load"},{id:2,pId:0,value:"2",title:"Expand to load"},{id:3,pId:0,value:"3",title:"Tree Node",isLeaf:!0}]),S=t=>{i.setFieldsValue({selectCity:x[t][0]})},L=t=>{const o=t[t.length-1];o.loading=!0,setTimeout(()=>{o.loading=!1;let u=t.length;const d=t.length;o.children=Array.from({length:d+1}).map(()=>({value:++u,label:e("选项{{id}}",{id:u}),isLeaf:d>=2})),z([...g])},1e3)},P=({id:t})=>{const o=(u,d=!1)=>{const j=Math.random().toString(36).substring(2,6);return{id:j,pId:u,value:j,title:d?"Tree Node":"Expand to load",isLeaf:d}};return new Promise(u=>{setTimeout(()=>{T(c==null?void 0:c.concat([o(t,!1),o(t,!0),o(t,!0)])),u(void 0)},500)})},D=t=>{},F=()=>{i.resetFields()};return a.jsx(_,{plugin:H,children:a.jsx(A,{bordered:!1,children:a.jsxs(l,{form:i,labelCol:{span:6},wrapperCol:{span:18},initialValues:y({},r),style:{width:"40%",margin:"0 auto"},onFinish:D,children:[a.jsx(l.Item,{label:e("输入框(长度限制):"),name:"inputLimit",rules:b.inputLimit,children:a.jsx(m,{showCount:!0,maxLength:20,placeholder:e("请输入内容")})}),a.jsx(l.Item,{label:e("输入框(纯数字):"),name:"inputNum",rules:b.inputNum,children:a.jsx(E,{style:{width:"100%"},placeholder:e("请输入数字")})}),a.jsx(l.Item,{label:e("输入框(密码隐藏):"),name:"password",rules:b.password,children:a.jsx(m.Password,{maxLength:16,autoComplete:"off",placeholder:e("请输入密码")})}),a.jsx(l.Item,{label:e("select选择器(联动):"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectProvince",children:a.jsx(w,{options:k.map(t=>({value:t})),onChange:S})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectCity",children:a.jsx(w,{options:x[r.selectProvince].map(t=>({value:t}))})})})]})}),a.jsx(l.Item,{label:e("日期和时间选择器:"),name:"dateVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(O,{placeholder:e("选择日期"),style:{width:"100%"}})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"timeVal",children:a.jsx(W,{placeholder:e("选择时间"),style:{width:"100%"}})})})]})}),a.jsx(l.Item,{label:e("switch开关(显示隐藏):"),name:"switchVal",valuePropName:"checked",children:a.jsx(Z,{})}),V?a.jsxs(a.Fragment,{children:[a.jsx(l.Item,{label:e("滑块条(初始值):"),name:"sliderVal",children:a.jsx(q,{})}),a.jsx(l.Item,{label:e("级联选择器:"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderVal",children:a.jsx(I,{options:K,placeholder:e("请选择")})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderLazy",children:a.jsx(I,{options:g,loadData:L,changeOnSelect:!0,placeholder:e("请输入")})})})]})}),a.jsx(l.Item,{label:e("树选择器(可勾选):"),name:"treeVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(v,{treeData:U,treeCheckable:!0,allowClear:!0,showCheckedStrategy:v.SHOW_PARENT,placeholder:e("请选择")})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"treeLazy",children:a.jsx(v,{treeDataSimpleMode:!0,treeData:c,loadData:P,placeholder:e("请选择")})})})]})}),a.jsx(l.Item,{label:e("单选框(带禁止):"),name:"radioVal",children:a.jsx(G.Group,{options:$})}),a.jsx(l.Item,{label:e("多选框(带禁止):"),name:"checkboxVal",children:a.jsx(J.Group,{options:Q})}),a.jsx(l.Item,{label:e("文本域(长度限制):"),name:"textareaVal",children:a.jsx(m.TextArea,{maxLength:50,rows:3,placeholder:e("请输入内容")})})]}):null,a.jsxs(l.Item,{wrapperCol:{span:12,offset:12},children:[a.jsx(N,{type:"primary",htmlType:"submit",children:e("提交")}),a.jsx(N,{style:{marginLeft:"12px"},onClick:F,children:e("重置")})]})]})})})};export{se as default}; +var R=Object.defineProperty;var f=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var C=(i,s,r)=>s in i?R(i,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[s]=r,y=(i,s)=>{for(var r in s||(s={}))B.call(s,r)&&C(i,r,s[r]);if(f)for(var r of f(s))M.call(s,r)&&C(i,r,s[r]);return i};import{G as l,j as a,n as A,I as m,t as E,J as h,K as n,s as w,x as O,at as W,u as Z,z as q,au as I,av as v,w as G,v as J,i as N}from"./antd-66264537.js";import{t as e}from"./entry/index-3324e23b.1715700059687.js";import{r as p}from"./react-f288da4a.js";import{P as _,F as H}from"./websiteSetting-da01dae2.js";const k=["guangdong","Zhejiang","Jiangsu"],x={guangdong:["guangzhou","shenzhen","foshan","dongguan","zhuhai"],Zhejiang:["Hangzhou","Ningbo","Wenzhou"],Jiangsu:["Nanjing","Suzhou","Zhenjiang","wuxi"]},K=[{value:"zhinan",label:e("指南"),children:[{value:"shejiyuanze",label:e("设计原则"),children:[{value:"yizhi",label:e("一致")},{value:"fankui",label:e("反馈")},{value:"xiaolv",label:e("效率")},{value:"kekong",label:e("可控")}]},{value:"daohang",label:e("导航"),children:[{value:"cexiangdaohang",label:e("侧向导航")},{value:"dingbudaohang",label:e("顶部导航")}]}]},{value:"zujian",label:e("组件"),children:[{value:"basic",label:"Basic",children:[{value:"layout",label:e("layout 布局")},{value:"color",label:e("Color 色彩")},{value:"typography",label:e("Typography 字体")},{value:"icon",label:e("Icon 图标")},{value:"button",label:e("Button 按钮")}]},{value:"form",label:"Form",children:[{value:"radio",label:e("Radio 单选框")},{value:"checkbox",label:e("Checkbox 多选框")},{value:"input",label:e("Input 输入框")},{value:"input-number",label:e("InputNumber 计数器")},{value:"select",label:e("Select 选择器")},{value:"cascader",label:e("Cascader 级联选择器")},{value:"switch",label:e("Switch 开关")},{value:"slider",label:e("Slider 滑块")},{value:"time-picker",label:e("TimePicker 时间选择器")},{value:"date-picker",label:e("DatePicker 日期选择器")},{value:"datetime-picker",label:e("DateTimePicker 日期时间选择器")},{value:"upload",label:e("Upload 上传")},{value:"rate",label:e("Rate 评分")},{value:"form",label:e("Form 表单")}]},{value:"data",label:"Data",children:[{value:"table",label:e("Table 表格")},{value:"tag",label:e("Tag 标签")},{value:"progress",label:e("Progress 进度条")},{value:"tree",label:e("Tree 树形控件")},{value:"pagination",label:e("Pagination 分页")},{value:"badge",label:e("Badge 标记")}]},{value:"notice",label:"Notice",children:[{value:"alert",label:e("Alert 警告")},{value:"loading",label:e("Loading 加载")},{value:"message",label:e("Message 消息提示")},{value:"message-box",label:e("MessageBox 弹框")},{value:"notification",label:e("Notification 通知")}]},{value:"navigation",label:"Navigation",children:[{value:"menu",label:e("NavMenu 导航菜单")},{value:"tabs",label:e("Tabs 标签页")},{value:"breadcrumb",label:e("Breadcrumb 面包屑")},{value:"dropdown",label:e("Dropdown 下拉菜单")},{value:"steps",label:e("Steps 步骤条")}]},{value:"others",label:"Others",children:[{value:"dialog",label:e("Dialog 对话框")},{value:"tooltip",label:e("Tooltip 文字提示")},{value:"popover",label:e("Popover 弹出框")},{value:"card",label:e("Card 卡片")},{value:"carousel",label:e("Carousel 走马灯")},{value:"collapse",label:e("Collapse 折叠面板")}]}]},{value:"ziyuan",label:e("资源"),children:[{value:"axure",label:"Axure Components"},{value:"sketch",label:"Sketch Templates"},{value:"jiaohu",label:e("组件交互文档")}]}],U=[{title:"Node1",value:"0-0",children:[{title:"Child Node1",value:"0-0-0",children:[{title:"Child Node6",value:"0-0-1"}]}]},{title:"Node2",value:"0-1",children:[{title:"Child Node3",value:"0-1-0",disabled:!0},{title:"Child Node4",value:"0-1-1"},{title:"Child Node5",value:"0-1-2"}]}],$=[{label:e("免费"),value:"free"},{label:e("收费"),value:"fee"},{label:e("赞助"),value:"sponsor"},{label:e("线上"),value:"online",disabled:!0},{label:e("线下"),value:"offline",disabled:!0}],Q=[{label:e("游泳"),value:"swim"},{label:e("跑步"),value:"run"},{label:e("健身"),value:"fit"},{label:e("阅读"),value:"read",disabled:!0},{label:e("音乐"),value:"music",disabled:!0},{label:e("电影"),value:"movie"}],se=()=>{const[i]=l.useForm(),s=k[0],[r,X]=p.useState({inputLimit:"",inputNum:"",password:"",selectProvince:s,selectCity:x[s][0],dateVal:"",timeVal:"",switchVal:!0,sliderVal:32,cascaderVal:[],cascaderLazy:[],treeVal:["0-0-1"],treeLazy:"1",radioVal:"offline",checkboxVal:["read"],textareaVal:""}),b={inputLimit:[{required:!0,message:e("内容不能为空")}],inputNum:[{required:!0,message:e("内容不能为空")},{type:"number",message:e("内容必须为数字值")}],password:[{required:!0,message:e("内容不能为空")},{min:6,max:16,message:e("密码长度在 6 到 16 个字符")},{pattern:/^[a-zA-Z0-9_-]{6,16}$/,message:e("密码只支持字母、数字和下划线")}]},V=l.useWatch("switchVal",i),[g,z]=p.useState([{value:1,label:e("选项1"),isLeaf:!1}]),[c,T]=p.useState([{id:1,pId:0,value:"1",title:"Expand to load"},{id:2,pId:0,value:"2",title:"Expand to load"},{id:3,pId:0,value:"3",title:"Tree Node",isLeaf:!0}]),S=t=>{i.setFieldsValue({selectCity:x[t][0]})},L=t=>{const o=t[t.length-1];o.loading=!0,setTimeout(()=>{o.loading=!1;let u=t.length;const d=t.length;o.children=Array.from({length:d+1}).map(()=>({value:++u,label:e("选项{{id}}",{id:u}),isLeaf:d>=2})),z([...g])},1e3)},P=({id:t})=>{const o=(u,d=!1)=>{const j=Math.random().toString(36).substring(2,6);return{id:j,pId:u,value:j,title:d?"Tree Node":"Expand to load",isLeaf:d}};return new Promise(u=>{setTimeout(()=>{T(c==null?void 0:c.concat([o(t,!1),o(t,!0),o(t,!0)])),u(void 0)},500)})},D=t=>{},F=()=>{i.resetFields()};return a.jsx(_,{plugin:H,children:a.jsx(A,{bordered:!1,children:a.jsxs(l,{form:i,labelCol:{span:6},wrapperCol:{span:18},initialValues:y({},r),style:{width:"40%",margin:"0 auto"},onFinish:D,children:[a.jsx(l.Item,{label:e("输入框(长度限制):"),name:"inputLimit",rules:b.inputLimit,children:a.jsx(m,{showCount:!0,maxLength:20,placeholder:e("请输入内容")})}),a.jsx(l.Item,{label:e("输入框(纯数字):"),name:"inputNum",rules:b.inputNum,children:a.jsx(E,{style:{width:"100%"},placeholder:e("请输入数字")})}),a.jsx(l.Item,{label:e("输入框(密码隐藏):"),name:"password",rules:b.password,children:a.jsx(m.Password,{maxLength:16,autoComplete:"off",placeholder:e("请输入密码")})}),a.jsx(l.Item,{label:e("select选择器(联动):"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectProvince",children:a.jsx(w,{options:k.map(t=>({value:t})),onChange:S})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectCity",children:a.jsx(w,{options:x[r.selectProvince].map(t=>({value:t}))})})})]})}),a.jsx(l.Item,{label:e("日期和时间选择器:"),name:"dateVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(O,{placeholder:e("选择日期"),style:{width:"100%"}})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"timeVal",children:a.jsx(W,{placeholder:e("选择时间"),style:{width:"100%"}})})})]})}),a.jsx(l.Item,{label:e("switch开关(显示隐藏):"),name:"switchVal",valuePropName:"checked",children:a.jsx(Z,{})}),V?a.jsxs(a.Fragment,{children:[a.jsx(l.Item,{label:e("滑块条(初始值):"),name:"sliderVal",children:a.jsx(q,{})}),a.jsx(l.Item,{label:e("级联选择器:"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderVal",children:a.jsx(I,{options:K,placeholder:e("请选择")})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderLazy",children:a.jsx(I,{options:g,loadData:L,changeOnSelect:!0,placeholder:e("请输入")})})})]})}),a.jsx(l.Item,{label:e("树选择器(可勾选):"),name:"treeVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(v,{treeData:U,treeCheckable:!0,allowClear:!0,showCheckedStrategy:v.SHOW_PARENT,placeholder:e("请选择")})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"treeLazy",children:a.jsx(v,{treeDataSimpleMode:!0,treeData:c,loadData:P,placeholder:e("请选择")})})})]})}),a.jsx(l.Item,{label:e("单选框(带禁止):"),name:"radioVal",children:a.jsx(G.Group,{options:$})}),a.jsx(l.Item,{label:e("多选框(带禁止):"),name:"checkboxVal",children:a.jsx(J.Group,{options:Q})}),a.jsx(l.Item,{label:e("文本域(长度限制):"),name:"textareaVal",children:a.jsx(m.TextArea,{maxLength:50,rows:3,placeholder:e("请输入内容")})})]}):null,a.jsxs(l.Item,{wrapperCol:{span:12,offset:12},children:[a.jsx(N,{type:"primary",htmlType:"submit",children:e("提交")}),a.jsx(N,{style:{marginLeft:"12px"},onClick:F,children:e("重置")})]})]})})})};export{se as default}; diff --git a/assets/index-7bd58267.js b/assets/index-dad21183.js similarity index 76% rename from assets/index-7bd58267.js rename to assets/index-dad21183.js index f5f8b6a..9f499fc 100644 --- a/assets/index-7bd58267.js +++ b/assets/index-dad21183.js @@ -1 +1 @@ -import{j as r}from"./antd-66264537.js";import{G as e}from"./entry/index-13ba62d4.1715696327646.js";import"./react-f288da4a.js";import{l as o,G as s,A as a}from"./api-adec7257.js";import{G as d}from"./index-bca57653.js";import"./index-fa5fcbe6.js";const i=[{title:"用户名称",key:"cn1",search:!0,dialog:{required:!0}},{title:"所属组织",key:"index",sort:!0,search:!0,dialog:{required:!0}},{title:"状态",key:"index",sort:!0,dialog:{required:!0}}],n={width:200,render:(l,t)=>r.jsxs(s,{children:[r.jsx(e,{record:t,action:"view",children:"详情"}),r.jsx(e,{record:t,action:"update",children:"编辑"}),r.jsx(a,{record:t,children:"授权"})]})};function j(){return r.jsx(d,{api:o,ctrl:n,fields:i,rowKey:"sort_id",dialogFormExtend:{fields:i},children:r.jsx(e,{action:"add",children:"新增"})})}export{j as default}; +import{j as r}from"./antd-66264537.js";import{G as e}from"./entry/index-3324e23b.1715700059687.js";import"./react-f288da4a.js";import{l as o,G as s,A as a}from"./api-74c8c574.js";import{G as d}from"./index-5e07c034.js";import"./index-12dfe086.js";const i=[{title:"用户名称",key:"cn1",search:!0,dialog:{required:!0}},{title:"所属组织",key:"index",sort:!0,search:!0,dialog:{required:!0}},{title:"状态",key:"index",sort:!0,dialog:{required:!0}}],n={width:200,render:(l,t)=>r.jsxs(s,{children:[r.jsx(e,{record:t,action:"view",children:"详情"}),r.jsx(e,{record:t,action:"update",children:"编辑"}),r.jsx(a,{record:t,children:"授权"})]})};function j(){return r.jsx(d,{api:o,ctrl:n,fields:i,rowKey:"sort_id",dialogFormExtend:{fields:i},children:r.jsx(e,{action:"add",children:"新增"})})}export{j as default}; diff --git a/assets/index-a3765b7b.js b/assets/index-df7dc3bf.js similarity index 91% rename from assets/index-a3765b7b.js rename to assets/index-df7dc3bf.js index ea8677b..1c60cfe 100644 --- a/assets/index-a3765b7b.js +++ b/assets/index-df7dc3bf.js @@ -1 +1 @@ -import{j as e,J as x,K as n,n as a,al as r,z as d}from"./antd-66264537.js";import{t}from"./entry/index-13ba62d4.1715696327646.js";import{r as h}from"./react-f288da4a.js";import{G as o}from"./index-fa5fcbe6.js";import{P as j,a as c}from"./websiteSetting-69561885.js";const g=()=>{const[s,i]=h.useState(100),l=[{title:t("第一个"),key:"1",type:"date"},{title:t("第二个"),key:"2"},{title:t("第三个"),key:"3"},{title:t("第四个"),key:"4"},{title:t("第五个"),key:"5"},{title:t("第六个"),key:"6"},{title:t("第七个"),key:"7"},{title:t("第八个"),key:"8"},{title:t("第九个"),key:"9"},{title:t("第十个"),key:"10"}];return e.jsx(j,{plugin:c,children:e.jsxs(x,{gutter:[12,12],children:[e.jsx(n,{span:24,children:e.jsxs(a,{title:t("基础用法"),children:[e.jsx(r,{message:t("拖拽我,看看我的变化:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("超过一行就折叠"),children:[e.jsx(r,{message:t("设置openRow,控制超过几行就折叠:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,openRow:1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("默认展开全部"),children:[e.jsx(r,{message:t("设置defaultOpen"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("平铺展示"),children:[e.jsx(r,{message:t("inline 状态下,所有的查询项的 title 不再有效,且会变成 placeholder,不断地平铺下去。"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0,inline:!0,toggleVisible:!1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("跨格"),children:[e.jsx(r,{message:t("GSearch 的 span 值是无效的,请使用 grid 来指定占格"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l.concat([{title:t("第一个"),key:"1",grid:{large:12,middle:16,small:24,mini:24}}]),defaultOpen:!0})})]})})]})})};export{g as default}; +import{j as e,J as x,K as n,n as a,al as r,z as d}from"./antd-66264537.js";import{t}from"./entry/index-3324e23b.1715700059687.js";import{r as h}from"./react-f288da4a.js";import{G as o}from"./index-12dfe086.js";import{P as j,a as c}from"./websiteSetting-da01dae2.js";const g=()=>{const[s,i]=h.useState(100),l=[{title:t("第一个"),key:"1",type:"date"},{title:t("第二个"),key:"2"},{title:t("第三个"),key:"3"},{title:t("第四个"),key:"4"},{title:t("第五个"),key:"5"},{title:t("第六个"),key:"6"},{title:t("第七个"),key:"7"},{title:t("第八个"),key:"8"},{title:t("第九个"),key:"9"},{title:t("第十个"),key:"10"}];return e.jsx(j,{plugin:c,children:e.jsxs(x,{gutter:[12,12],children:[e.jsx(n,{span:24,children:e.jsxs(a,{title:t("基础用法"),children:[e.jsx(r,{message:t("拖拽我,看看我的变化:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("超过一行就折叠"),children:[e.jsx(r,{message:t("设置openRow,控制超过几行就折叠:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,openRow:1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("默认展开全部"),children:[e.jsx(r,{message:t("设置defaultOpen"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("平铺展示"),children:[e.jsx(r,{message:t("inline 状态下,所有的查询项的 title 不再有效,且会变成 placeholder,不断地平铺下去。"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0,inline:!0,toggleVisible:!1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("跨格"),children:[e.jsx(r,{message:t("GSearch 的 span 值是无效的,请使用 grid 来指定占格"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l.concat([{title:t("第一个"),key:"1",grid:{large:12,middle:16,small:24,mini:24}}]),defaultOpen:!0})})]})})]})})};export{g as default}; diff --git a/assets/index-e4a40f17.js b/assets/index-e4a40f17.js new file mode 100644 index 0000000..506dd0b --- /dev/null +++ b/assets/index-e4a40f17.js @@ -0,0 +1 @@ +import{j as i}from"./antd-66264537.js";import{x as a,G as l,t as e}from"./entry/index-3324e23b.1715700059687.js";import"./react-f288da4a.js";import{G as u}from"./index-5e07c034.js";import"./index-12dfe086.js";const o=[{title:e("别名"),key:"label",search:!0,dialog:{required:!0}},{title:e("名称"),key:"name",search:!0,dialog:{required:!0}},{title:e("类型"),key:"type",sort:!0,search:!0,dialog:{required:!0}},{title:e("图标"),key:"icon",dialog:{required:!0}},{title:e("状态"),key:"status",sort:!0,type:"radio-group",defaultValue:1,options:[{label:"启用",value:"0"},{label:"禁用",value:"1"}],dialog:{required:!0}},{title:e("组件"),key:"component"},{title:e("路径"),key:"path"}];function p(){const t=a();return i.jsx(u,{rowKey:r=>r.id,api:()=>new Promise(r=>{setTimeout(()=>{r({content:t,totalCount:t==null?void 0:t.length})},1e3)}),fields:o,dialogFormExtend:{fields:o},children:i.jsx(l,{action:"add",children:"新增"})})}export{p as default}; diff --git a/assets/index-c414dc67.js b/assets/index-e62322f7.js similarity index 95% rename from assets/index-c414dc67.js rename to assets/index-e62322f7.js index 260a233..3f554e2 100644 --- a/assets/index-c414dc67.js +++ b/assets/index-e62322f7.js @@ -1 +1 @@ -import{c,j as e,T as p,J as u,K as t,n as d,aF as o,aq as h}from"./antd-66264537.js";import{t as a,P as x,A as m,s as g}from"./entry/index-13ba62d4.1715696327646.js";import{h as b}from"./react-f288da4a.js";import{T as j}from"./Translatex-79fd201f.js";const f=c(({token:r})=>({"custom-upload-drag":{".ant-upload-drag":{background:"#fff",border:"none","&:hover":{".add-phone-box":{border:`1px dashed ${r.colorPrimary}`,".add-phone":{background:r.colorBgTextActive}}},".add-phone-box":{width:"144px",height:"144px",borderRadius:"50%",overflow:"hidden",cursor:"pointer",margin:"0 auto",padding:r.paddingSM,border:`1px dashed ${r.colorBorderSecondary}`,transition:"border-color .3s ease","&:hover":{border:`1px dashed ${r.colorPrimary}`},".add-phone":{width:"100%",height:"100%",background:r.colorBgContainerDisabled,borderRadius:"50%",color:r.colorTextDisabled,transition:"all .3s ease","&:hover":{background:r.colorBgTextActive}}}}},"add-user-form":{".ant-input":{borderRadius:r.borderRadiusLG}},"btn-submit":{width:"100%"}})),R=()=>{const r=b(),{Dragger:l}=h,{styles:s}=f(),i=[{title:a("全名"),key:"input",required:!0,defaultValue:"Gbeata"},{title:a("密码"),type:"password",key:"password",defaultValue:"gbeata"},{title:a("城市"),type:"select",key:"select",defaultValue:1,options:[{label:e.jsx(p,{children:a("选项A")}),value:1},{label:a("选项2"),value:2}]},{title:a("电话号码"),key:"number",required:!0,defaultValue:15305999999},{title:a("地址"),type:"textarea",key:"textarea",defaultValue:a("广东省深圳市南山区科技园"),span:24}],n=y=>{r("/user/user-list")};return e.jsx(j,{direction:"left",run:!0,delay:100,children:e.jsxs(u,{gutter:[16,16],children:[e.jsx(t,{span:8,children:e.jsx(d,{children:e.jsxs(l,{action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,className:s["custom-upload-drag"],children:[e.jsx("div",{className:"add-phone-box",children:e.jsxs(o,{align:"center",vertical:!0,justify:"center",className:"add-phone",children:[e.jsx(x,{name:"camera",size:24}),e.jsx("span",{children:"upload phone"})]})}),e.jsxs("p",{children:[a("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:a("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:a("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(t,{span:16,children:e.jsx(d,{children:e.jsx(m,{fields:i,span:12,onConfirm:n,children:e.jsx(o,{justify:"end",className:s["btn-submit"],children:e.jsx(g,{type:"primary",htmlType:"submit",children:a("创建用户")})})})})})]})})};export{R as default}; +import{c,j as e,T as p,J as u,K as t,n as d,aF as o,aq as h}from"./antd-66264537.js";import{t as a,P as x,A as m,s as g}from"./entry/index-3324e23b.1715700059687.js";import{h as b}from"./react-f288da4a.js";import{T as j}from"./Translatex-227cdacd.js";const f=c(({token:r})=>({"custom-upload-drag":{".ant-upload-drag":{background:"#fff",border:"none","&:hover":{".add-phone-box":{border:`1px dashed ${r.colorPrimary}`,".add-phone":{background:r.colorBgTextActive}}},".add-phone-box":{width:"144px",height:"144px",borderRadius:"50%",overflow:"hidden",cursor:"pointer",margin:"0 auto",padding:r.paddingSM,border:`1px dashed ${r.colorBorderSecondary}`,transition:"border-color .3s ease","&:hover":{border:`1px dashed ${r.colorPrimary}`},".add-phone":{width:"100%",height:"100%",background:r.colorBgContainerDisabled,borderRadius:"50%",color:r.colorTextDisabled,transition:"all .3s ease","&:hover":{background:r.colorBgTextActive}}}}},"add-user-form":{".ant-input":{borderRadius:r.borderRadiusLG}},"btn-submit":{width:"100%"}})),R=()=>{const r=b(),{Dragger:l}=h,{styles:s}=f(),i=[{title:a("全名"),key:"input",required:!0,defaultValue:"Gbeata"},{title:a("密码"),type:"password",key:"password",defaultValue:"gbeata"},{title:a("城市"),type:"select",key:"select",defaultValue:1,options:[{label:e.jsx(p,{children:a("选项A")}),value:1},{label:a("选项2"),value:2}]},{title:a("电话号码"),key:"number",required:!0,defaultValue:15305999999},{title:a("地址"),type:"textarea",key:"textarea",defaultValue:a("广东省深圳市南山区科技园"),span:24}],n=y=>{r("/user/user-list")};return e.jsx(j,{direction:"left",run:!0,delay:100,children:e.jsxs(u,{gutter:[16,16],children:[e.jsx(t,{span:8,children:e.jsx(d,{children:e.jsxs(l,{action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,className:s["custom-upload-drag"],children:[e.jsx("div",{className:"add-phone-box",children:e.jsxs(o,{align:"center",vertical:!0,justify:"center",className:"add-phone",children:[e.jsx(x,{name:"camera",size:24}),e.jsx("span",{children:"upload phone"})]})}),e.jsxs("p",{children:[a("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:a("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:a("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(t,{span:16,children:e.jsx(d,{children:e.jsx(m,{fields:i,span:12,onConfirm:n,children:e.jsx(o,{justify:"end",className:s["btn-submit"],children:e.jsx(g,{type:"primary",htmlType:"submit",children:a("创建用户")})})})})})]})})};export{R as default}; diff --git a/assets/index-ef7ae87b.js b/assets/index-f560b6f4.js similarity index 98% rename from assets/index-ef7ae87b.js rename to assets/index-f560b6f4.js index 0be1ad9..ebc968c 100644 --- a/assets/index-ef7ae87b.js +++ b/assets/index-f560b6f4.js @@ -1 +1 @@ -import{j as e,J as g,K as p,n as d,v as S,s as F,u as N,c as y,S as w,D as L,aD as D,ab as I,i as c,aE as T,aF as n,aG as x,L as v,I as R,aw as _,a3 as o,aH as $,V as M,aI as O,aJ as A,aK as P,a1 as E,aL as H,aM as J,aN as B,a4 as K}from"./antd-66264537.js";import{t as a,P as l}from"./entry/index-13ba62d4.1715696327646.js";import{a as f}from"./react-f288da4a.js";import{T as m}from"./Translatex-79fd201f.js";import{a as z,c as U,b as V}from"./index-14e57f5a.js";const W=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12})]})}),u="/react-antd-admin-pnpm/assets/travel_3-0a78a2d4.jpg",G=y(({token:s})=>({"custom-image":{borderRadius:s.borderRadiusLG},"card-action":{position:"absolute",right:s.paddingSM,top:s.paddingSM}})),{Title:Y,Text:Z}=v,q=()=>{const{styles:s,cx:r}=G(),j=[{key:"1",label:e.jsxs(w,{size:8,children:[e.jsx(L,{rev:void 0}),e.jsx("span",{children:a("删除")})]})},{key:"2",label:e.jsxs(w,{size:8,children:[e.jsx(D,{rev:void 0}),e.jsx("span",{children:a("修改")})]})}],h=({key:i})=>{},t=[{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")}];return e.jsx(e.Fragment,{children:e.jsx(g,{gutter:[16,16],children:t.map((i,b)=>e.jsx(p,{span:8,children:e.jsxs(d,{children:[e.jsx(I,{menu:{items:j,onClick:h},placement:"bottomRight",arrow:!0,children:e.jsx(c,{className:r(s["card-action"]),shape:"circle",type:"text",icon:e.jsx(T,{})})}),e.jsxs(n,{gap:8,vertical:!0,align:"center",children:[e.jsx(x,{size:64,src:i.avatar}),e.jsx(Y,{style:{margin:0},level:5,children:i.name}),e.jsx(Z,{type:"secondary",children:i.title}),e.jsxs(n,{style:{marginTop:8},gap:8,children:[e.jsx(c,{shape:"circle",icon:e.jsx(l,{style:{color:"#1890ff"},name:"github"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"message"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"like"})})]})]})]})},b))})})},Q=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"})]})})]})}),X="/react-antd-admin-pnpm/assets/avatar_1-329667d0.jpg",ee="/react-antd-admin-pnpm/assets/avatar_4-2497c77c.jpg",C="/react-antd-admin-pnpm/assets/avatar_6-1e41071d.jpg",se="/react-antd-admin-pnpm/assets/avatar_8-1956d908.jpg",ae=y(({token:s})=>({"message-list":{".message_content":{flex:1,padding:s.paddingSM,backgroundColor:s.colorBgLayout,borderRadius:s.borderRadiusLG}}})),{Title:te,Text:ie}=v,ne=({avatar:s,time:r,content:j,user:h})=>{const{styles:t}=ae();return e.jsxs(n,{gap:8,className:t["message-list"],children:[e.jsx("div",{children:s}),e.jsxs("div",{className:"message_content",children:[e.jsxs(n,{justify:"space-between",align:"center",children:[e.jsx(te,{level:5,children:h}),e.jsx("div",{children:r})]}),e.jsx(ie,{type:"secondary",children:j})]})]})},le=y(({token:s})=>({"send-box":{".send-content":{flex:1,borderRadius:s.borderRadiusLG}}})),re=({avatar:s=C,time:r,content:j,user:h})=>{const{styles:t}=le();return e.jsxs(n,{gap:8,align:"center",className:t["send-box"],children:[e.jsx(x,{src:s}),e.jsx("div",{className:"send-content",children:e.jsx(R,{placeholder:a("请在这里输入您的留言"),suffix:e.jsxs(n,{children:[e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"picture"})}),e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"express"})})]})})})]})},{Text:k}=v,ce=()=>{const{styles:s}=G(),r=[{title:a("深圳市"),icon:e.jsx(l,{name:"point",size:24})},{title:"shoplazza.nyg@gmail.com",icon:e.jsx(l,{name:"email",size:24})},{title:a("前端开发"),icon:e.jsx(l,{name:"work",size:24})}],j=[{title:"https://github.com/anyone-yuren",icon:e.jsx(E,{style:{fontSize:24}})},{title:"nhf066901@sina.com",icon:e.jsx(H,{style:{fontSize:24}})},{title:"leio-forver",icon:e.jsx(J,{style:{fontSize:24}})},{title:"https://juejin.cn/user/2682464101469480/posts",icon:e.jsx(B,{style:{fontSize:24}})}],h=[{avatar:e.jsx(x,{src:ee}),time:a("2小时前"),content:a("做普通人,干正经事,可以爱小钱,但必有大胸怀。"),user:"anyone"},{avatar:e.jsx(x,{src:X}),time:"27 Dec 2023",content:a("多年后,一个埋我的人被指定,这些年,我偶尔想一想死亡的事情,把活着,当成了一种习惯"),user:a("倾盆大雨")}];return e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:8,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{align:"middle",justify:"space-evenly",children:[e.jsx(z,{name:"Follower",count:12}),e.jsx(_,{style:{height:"auto"},type:"vertical"}),e.jsx(z,{name:"Following",count:112})]})}),e.jsxs(d,{title:a("关于我"),children:[e.jsx(k,{type:"secondary",children:a("如果给你寄一本书, 我不会寄给你诗歌, 我要给你一本关于植物,关于庄稼的, 告诉你稻子和稗子的区别, 告诉你一棵稗子提心吊胆的春天。")}),e.jsx(o,{itemLayout:"horizontal",dataSource:r,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})]}),e.jsx(d,{title:a("社交"),children:e.jsx(o,{itemLayout:"horizontal",dataSource:j,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})})]})}),e.jsx(p,{span:16,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx($,{rows:4,placeholder:a("分享你想对我说的话"),maxLength:6}),e.jsx(n,{justify:"end",children:e.jsx(c,{type:"primary",children:a("发布")})})]})}),e.jsx(d,{title:e.jsxs(n,{justify:"space-between",align:"center",gap:16,children:[e.jsx(o,{children:e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:e.jsx(x,{src:se,size:48}),title:"Gbeata",description:"25 Dec 2023"})},"1")}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(T,{})})]}),children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(k,{children:a("我填平了山海,却发现你在云端。")}),e.jsx(M,{className:s["custom-image"],width:"100%",height:400,src:u}),e.jsxs(n,{justify:"space-between",align:"content-center",children:[e.jsxs(n,{align:"center",children:[e.jsx(c,{id:"like",size:"small",type:"text",icon:e.jsx(l,{name:"love"}),children:"3"}),e.jsxs(x.Group,{maxCount:2,maxStyle:{color:"#f56a00",backgroundColor:"#fde3cf"},children:[e.jsx(x,{src:"https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"}),e.jsx(x,{src:C,style:{backgroundColor:"#f56a00"},children:"K"}),e.jsx(x,{style:{backgroundColor:"#1677ff"},icon:e.jsx(O,{})})]})]}),e.jsxs("div",{children:[e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(A,{})}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(P,{})})]})]}),h.map(t=>e.jsx(ne,{avatar:t.avatar,time:t.time,content:t.content,user:t.user})),e.jsx(re,{})]})})]})})]})})},de=y(({token:s})=>({"user-card":{width:"100%",position:"relative",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-segmented-item-label":{lineHeight:"48px !important",minHeight:"48px !important",padding:"0 16px !important"},".profile":{verticalAlign:"-0.35em"},".ant-card-body":{padding:0,textAlign:"right"},".ant-card-cover":{minHeight:"200px",position:"relative",background:`url(${U})`,filter:"blur(0)",backgroundRepeat:"no-repeat",backgroundSize:"cover","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"absolute",display:"flex",flexDirection:"row",zIndex:2,bottom:"-24px",left:"24px",gap:"16px",".info":{display:"flex",flexDirection:"column",justifyContent:"center",color:"white"},".avatar":{width:"128px",height:"128px",borderRadius:"50%",overflow:"hidden"}}},translatex:{margin:`${s.marginSM}px 0`},content:{position:"relative"}})),{Text:oe,Title:xe}=v,je=s=>{const[r,j]=f.useState("Profile"),[h,t]=f.useState(!0),{styles:i}=de();return f.useEffect(()=>{setTimeout(()=>{t(!1)},1500)},[]),e.jsxs("div",{className:i.content,children:[e.jsx(d,{hoverable:!0,className:i["user-card"],cover:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"user_info",children:[e.jsx("div",{className:"avatar",children:e.jsx("img",{src:V})}),e.jsxs("div",{className:"info",children:[e.jsx(xe,{style:{margin:0,color:"inherit"},level:3,children:"Gbeata"}),e.jsx(oe,{style:{color:"inherit",opacity:.7},children:a("来历不明")})]})]})}),children:e.jsx(K,{size:"large",onChange:b=>{j(b)},value:r,options:[{label:"Profile",value:"Profile",icon:e.jsx(l,{className:"profile",name:"profile",size:24})},{label:"Followers",value:"Followers",icon:e.jsx(l,{className:"profile",name:"followers",size:24})},{label:"Friends",value:"Friends",icon:e.jsx(l,{className:"profile",name:"friends",size:24})},{label:"Gallery",value:"Gallery",icon:e.jsx(l,{className:"profile",name:"gallery",size:24})}]})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Profile",delay:100,children:e.jsx(ce,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Gallery",delay:100,children:e.jsx(Q,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Followers",delay:100,children:e.jsx(W,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Friends",delay:100,children:e.jsx(q,{})})]})},ye=()=>e.jsx(je,{});export{ye as default}; +import{j as e,J as g,K as p,n as d,v as S,s as F,u as N,c as y,S as w,D as L,aD as D,ab as I,i as c,aE as T,aF as n,aG as x,L as v,I as R,aw as _,a3 as o,aH as $,V as M,aI as O,aJ as A,aK as P,a1 as E,aL as H,aM as J,aN as B,a4 as K}from"./antd-66264537.js";import{t as a,P as l}from"./entry/index-3324e23b.1715700059687.js";import{a as f}from"./react-f288da4a.js";import{T as m}from"./Translatex-227cdacd.js";import{a as z,c as U,b as V}from"./index-781865e5.js";const W=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12})]})}),u="/react-antd-admin-pnpm/assets/travel_3-0a78a2d4.jpg",G=y(({token:s})=>({"custom-image":{borderRadius:s.borderRadiusLG},"card-action":{position:"absolute",right:s.paddingSM,top:s.paddingSM}})),{Title:Y,Text:Z}=v,q=()=>{const{styles:s,cx:r}=G(),j=[{key:"1",label:e.jsxs(w,{size:8,children:[e.jsx(L,{rev:void 0}),e.jsx("span",{children:a("删除")})]})},{key:"2",label:e.jsxs(w,{size:8,children:[e.jsx(D,{rev:void 0}),e.jsx("span",{children:a("修改")})]})}],h=({key:i})=>{},t=[{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")}];return e.jsx(e.Fragment,{children:e.jsx(g,{gutter:[16,16],children:t.map((i,b)=>e.jsx(p,{span:8,children:e.jsxs(d,{children:[e.jsx(I,{menu:{items:j,onClick:h},placement:"bottomRight",arrow:!0,children:e.jsx(c,{className:r(s["card-action"]),shape:"circle",type:"text",icon:e.jsx(T,{})})}),e.jsxs(n,{gap:8,vertical:!0,align:"center",children:[e.jsx(x,{size:64,src:i.avatar}),e.jsx(Y,{style:{margin:0},level:5,children:i.name}),e.jsx(Z,{type:"secondary",children:i.title}),e.jsxs(n,{style:{marginTop:8},gap:8,children:[e.jsx(c,{shape:"circle",icon:e.jsx(l,{style:{color:"#1890ff"},name:"github"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"message"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"like"})})]})]})]})},b))})})},Q=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"})]})})]})}),X="/react-antd-admin-pnpm/assets/avatar_1-329667d0.jpg",ee="/react-antd-admin-pnpm/assets/avatar_4-2497c77c.jpg",C="/react-antd-admin-pnpm/assets/avatar_6-1e41071d.jpg",se="/react-antd-admin-pnpm/assets/avatar_8-1956d908.jpg",ae=y(({token:s})=>({"message-list":{".message_content":{flex:1,padding:s.paddingSM,backgroundColor:s.colorBgLayout,borderRadius:s.borderRadiusLG}}})),{Title:te,Text:ie}=v,ne=({avatar:s,time:r,content:j,user:h})=>{const{styles:t}=ae();return e.jsxs(n,{gap:8,className:t["message-list"],children:[e.jsx("div",{children:s}),e.jsxs("div",{className:"message_content",children:[e.jsxs(n,{justify:"space-between",align:"center",children:[e.jsx(te,{level:5,children:h}),e.jsx("div",{children:r})]}),e.jsx(ie,{type:"secondary",children:j})]})]})},le=y(({token:s})=>({"send-box":{".send-content":{flex:1,borderRadius:s.borderRadiusLG}}})),re=({avatar:s=C,time:r,content:j,user:h})=>{const{styles:t}=le();return e.jsxs(n,{gap:8,align:"center",className:t["send-box"],children:[e.jsx(x,{src:s}),e.jsx("div",{className:"send-content",children:e.jsx(R,{placeholder:a("请在这里输入您的留言"),suffix:e.jsxs(n,{children:[e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"picture"})}),e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"express"})})]})})})]})},{Text:k}=v,ce=()=>{const{styles:s}=G(),r=[{title:a("深圳市"),icon:e.jsx(l,{name:"point",size:24})},{title:"shoplazza.nyg@gmail.com",icon:e.jsx(l,{name:"email",size:24})},{title:a("前端开发"),icon:e.jsx(l,{name:"work",size:24})}],j=[{title:"https://github.com/anyone-yuren",icon:e.jsx(E,{style:{fontSize:24}})},{title:"nhf066901@sina.com",icon:e.jsx(H,{style:{fontSize:24}})},{title:"leio-forver",icon:e.jsx(J,{style:{fontSize:24}})},{title:"https://juejin.cn/user/2682464101469480/posts",icon:e.jsx(B,{style:{fontSize:24}})}],h=[{avatar:e.jsx(x,{src:ee}),time:a("2小时前"),content:a("做普通人,干正经事,可以爱小钱,但必有大胸怀。"),user:"anyone"},{avatar:e.jsx(x,{src:X}),time:"27 Dec 2023",content:a("多年后,一个埋我的人被指定,这些年,我偶尔想一想死亡的事情,把活着,当成了一种习惯"),user:a("倾盆大雨")}];return e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:8,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{align:"middle",justify:"space-evenly",children:[e.jsx(z,{name:"Follower",count:12}),e.jsx(_,{style:{height:"auto"},type:"vertical"}),e.jsx(z,{name:"Following",count:112})]})}),e.jsxs(d,{title:a("关于我"),children:[e.jsx(k,{type:"secondary",children:a("如果给你寄一本书, 我不会寄给你诗歌, 我要给你一本关于植物,关于庄稼的, 告诉你稻子和稗子的区别, 告诉你一棵稗子提心吊胆的春天。")}),e.jsx(o,{itemLayout:"horizontal",dataSource:r,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})]}),e.jsx(d,{title:a("社交"),children:e.jsx(o,{itemLayout:"horizontal",dataSource:j,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})})]})}),e.jsx(p,{span:16,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx($,{rows:4,placeholder:a("分享你想对我说的话"),maxLength:6}),e.jsx(n,{justify:"end",children:e.jsx(c,{type:"primary",children:a("发布")})})]})}),e.jsx(d,{title:e.jsxs(n,{justify:"space-between",align:"center",gap:16,children:[e.jsx(o,{children:e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:e.jsx(x,{src:se,size:48}),title:"Gbeata",description:"25 Dec 2023"})},"1")}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(T,{})})]}),children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(k,{children:a("我填平了山海,却发现你在云端。")}),e.jsx(M,{className:s["custom-image"],width:"100%",height:400,src:u}),e.jsxs(n,{justify:"space-between",align:"content-center",children:[e.jsxs(n,{align:"center",children:[e.jsx(c,{id:"like",size:"small",type:"text",icon:e.jsx(l,{name:"love"}),children:"3"}),e.jsxs(x.Group,{maxCount:2,maxStyle:{color:"#f56a00",backgroundColor:"#fde3cf"},children:[e.jsx(x,{src:"https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"}),e.jsx(x,{src:C,style:{backgroundColor:"#f56a00"},children:"K"}),e.jsx(x,{style:{backgroundColor:"#1677ff"},icon:e.jsx(O,{})})]})]}),e.jsxs("div",{children:[e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(A,{})}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(P,{})})]})]}),h.map(t=>e.jsx(ne,{avatar:t.avatar,time:t.time,content:t.content,user:t.user})),e.jsx(re,{})]})})]})})]})})},de=y(({token:s})=>({"user-card":{width:"100%",position:"relative",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-segmented-item-label":{lineHeight:"48px !important",minHeight:"48px !important",padding:"0 16px !important"},".profile":{verticalAlign:"-0.35em"},".ant-card-body":{padding:0,textAlign:"right"},".ant-card-cover":{minHeight:"200px",position:"relative",background:`url(${U})`,filter:"blur(0)",backgroundRepeat:"no-repeat",backgroundSize:"cover","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"absolute",display:"flex",flexDirection:"row",zIndex:2,bottom:"-24px",left:"24px",gap:"16px",".info":{display:"flex",flexDirection:"column",justifyContent:"center",color:"white"},".avatar":{width:"128px",height:"128px",borderRadius:"50%",overflow:"hidden"}}},translatex:{margin:`${s.marginSM}px 0`},content:{position:"relative"}})),{Text:oe,Title:xe}=v,je=s=>{const[r,j]=f.useState("Profile"),[h,t]=f.useState(!0),{styles:i}=de();return f.useEffect(()=>{setTimeout(()=>{t(!1)},1500)},[]),e.jsxs("div",{className:i.content,children:[e.jsx(d,{hoverable:!0,className:i["user-card"],cover:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"user_info",children:[e.jsx("div",{className:"avatar",children:e.jsx("img",{src:V})}),e.jsxs("div",{className:"info",children:[e.jsx(xe,{style:{margin:0,color:"inherit"},level:3,children:"Gbeata"}),e.jsx(oe,{style:{color:"inherit",opacity:.7},children:a("来历不明")})]})]})}),children:e.jsx(K,{size:"large",onChange:b=>{j(b)},value:r,options:[{label:"Profile",value:"Profile",icon:e.jsx(l,{className:"profile",name:"profile",size:24})},{label:"Followers",value:"Followers",icon:e.jsx(l,{className:"profile",name:"followers",size:24})},{label:"Friends",value:"Friends",icon:e.jsx(l,{className:"profile",name:"friends",size:24})},{label:"Gallery",value:"Gallery",icon:e.jsx(l,{className:"profile",name:"gallery",size:24})}]})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Profile",delay:100,children:e.jsx(ce,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Gallery",delay:100,children:e.jsx(Q,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Followers",delay:100,children:e.jsx(W,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Friends",delay:100,children:e.jsx(q,{})})]})},ye=()=>e.jsx(je,{});export{ye as default}; diff --git a/assets/websiteSetting-69561885.js b/assets/websiteSetting-da01dae2.js similarity index 98% rename from assets/websiteSetting-69561885.js rename to assets/websiteSetting-da01dae2.js index 26b16e3..2dc0215 100644 --- a/assets/websiteSetting-69561885.js +++ b/assets/websiteSetting-da01dae2.js @@ -1 +1 @@ -import{j as t,i}from"./antd-66264537.js";import{S as m,t as e,o as p}from"./entry/index-13ba62d4.1715696327646.js";const n={"compo_page-wrapper":"_compo_page-wrapper_s53in_1","page-header":"_page-header_s53in_1","page-header-name":"_page-header-name_s53in_9","page-content":"_page-content_s53in_17"},l=a=>{var s,r;function o(){var c;p((c=a.plugin)==null?void 0:c.url)}return t.jsxs("div",{className:n["compo_page-wrapper"],children:[t.jsxs("div",{className:n["page-header"],children:[t.jsxs("div",{className:n["page-header-name"],children:[t.jsx(m,{name:"hints",size:18}),t.jsx("span",{children:(s=a.plugin)==null?void 0:s.name})]}),t.jsx("p",{children:(r=a.plugin)==null?void 0:r.desc}),t.jsxs("p",{children:[t.jsx("span",{children:e("github源码:")}),t.jsx(i,{type:"link",size:"small",onClick:o,children:e("立即访问")})]})]}),t.jsx("div",{className:n["page-content"],children:a.children})]})},u={name:e("Form表单"),url:"https://www.antdv.com/components/form",desc:e("ant-design-form: 使用 ant-design 的 form 组件, 可用以收集、校验和提交数据等操作。")},h={name:e("Form查询表单"),url:e("暂未发布,可直接查看 /packages/gbeata 组件库"),desc:e("GSearchForm: 使用 ant-design 的 form 组件, 进行二次封装的组件,具体实现可查看 /packages/gbeata/src/GSearchForm 组件库")};e("Form表单设计器"),e("form-create-designer: 一个通过拖拽的方式快速创建表单的设计器组件, 能提高开发者对表单的开发效率, 节省开发者的时间。");e("Table表格"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行相关操作。");e("Table表格(可编辑行)"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行行数据编辑操作。");e("Tree树形控件"),e("ant-design-tree: 基于Ant-Design的Tree组件, 可以完整展现其中的层级关系, 并具有展开收起选择等交互功能。");const b={name:e("Transfer穿梭框"),url:"https://ant-design.antgroup.com/components/transfer",desc:e("ant-design-transfer: 使用 ant-design 的 transfer 组件, 可用于对列表数据进行选中、取消等操作。")},x={name:e("Upload图片上传组件"),url:"https://antdv.com/components/upload",desc:e("ant-design-upload: 使用 ant-design 的 upload 组件, 并具有多种列表展示方式。")};e("Video视频播放器"),e("Video-React: 一个使用 React 为 HTML5 构建的web视频播放器, 适用于目前主流网络视频的播放。");e("JS-xlsx插件"),e("JS-xlsx: 由SheetJS出品的一款非常方便的只需要纯JS即可读取和导出excel的工具库, 功能强大, 支持xlsx、csv、txt等格式。");const R={name:e("Sortable拖拽列表"),url:"https://github.com/SortableJS/react-sortablejs",desc:e("ReactSortable: 基于Sortable.js的react组件, 用以实现拖拽功能。")},_={name:e("React-Rnd拖拽组件"),url:"https://github.com/bokuweb/react-rnd",desc:e("React-Rnd: 一款可调整大小和可拖拽的React组件。")};e("React-Cropper图片裁剪"),e("react-cropper: 一个优雅的图片裁剪插件, 可实现图片裁剪、图片生成等功能, 并支持生成png、jpeg、webp等图片格式。");e("Image图片合成"),e("图片合成: 基于VueDRR拖拽功能, 在其上通过叠加图片、文字等, 实现图片的叠加伪合成功能。");e("Image图片压缩"),e("ImageCompress: 纯JS实现对图片的等比压缩和放大的功能, 并能对图片进行下载。");const S={name:e("CountUp数字滚动"),url:"https://github.com/glennreyes/react-countup",desc:e("React-CountUp: 一个无依赖、轻量级的react数字滚动插件, 以更有趣的方式显示数字数据。")};e("CodeMirror代码编辑器"),e("React-CodeMirror: 是一款基于 react 的代码编辑器, 可支持html、javascript、typescript等。");e("AntV-G6流程图"),e("antv-g6: 一个图可视化引擎。它提供了图的绘制、布局、分析、交互、动画等图可视化的基础能力。");e("Tree-Org树状组织图"),e("react-tree-org: 基于 react 的树结构组织图, 可用于公司组织架构展示。");e("富文本编辑器"),e("wangEditor: 基于javascript和css开发的 Web富文本编辑器, 轻量、简洁、易用、开源免费。");e("Markdown编辑器"),e("React-Md-Editor: 是一款基于 react 的 Markdown 编辑器,比较适合博客系统。");export{S as C,u as F,l as P,_ as R,R as S,b as T,x as U,h as a}; +import{j as t,i}from"./antd-66264537.js";import{S as m,t as e,o as p}from"./entry/index-3324e23b.1715700059687.js";const n={"compo_page-wrapper":"_compo_page-wrapper_s53in_1","page-header":"_page-header_s53in_1","page-header-name":"_page-header-name_s53in_9","page-content":"_page-content_s53in_17"},l=a=>{var s,r;function o(){var c;p((c=a.plugin)==null?void 0:c.url)}return t.jsxs("div",{className:n["compo_page-wrapper"],children:[t.jsxs("div",{className:n["page-header"],children:[t.jsxs("div",{className:n["page-header-name"],children:[t.jsx(m,{name:"hints",size:18}),t.jsx("span",{children:(s=a.plugin)==null?void 0:s.name})]}),t.jsx("p",{children:(r=a.plugin)==null?void 0:r.desc}),t.jsxs("p",{children:[t.jsx("span",{children:e("github源码:")}),t.jsx(i,{type:"link",size:"small",onClick:o,children:e("立即访问")})]})]}),t.jsx("div",{className:n["page-content"],children:a.children})]})},u={name:e("Form表单"),url:"https://www.antdv.com/components/form",desc:e("ant-design-form: 使用 ant-design 的 form 组件, 可用以收集、校验和提交数据等操作。")},h={name:e("Form查询表单"),url:e("暂未发布,可直接查看 /packages/gbeata 组件库"),desc:e("GSearchForm: 使用 ant-design 的 form 组件, 进行二次封装的组件,具体实现可查看 /packages/gbeata/src/GSearchForm 组件库")};e("Form表单设计器"),e("form-create-designer: 一个通过拖拽的方式快速创建表单的设计器组件, 能提高开发者对表单的开发效率, 节省开发者的时间。");e("Table表格"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行相关操作。");e("Table表格(可编辑行)"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行行数据编辑操作。");e("Tree树形控件"),e("ant-design-tree: 基于Ant-Design的Tree组件, 可以完整展现其中的层级关系, 并具有展开收起选择等交互功能。");const b={name:e("Transfer穿梭框"),url:"https://ant-design.antgroup.com/components/transfer",desc:e("ant-design-transfer: 使用 ant-design 的 transfer 组件, 可用于对列表数据进行选中、取消等操作。")},x={name:e("Upload图片上传组件"),url:"https://antdv.com/components/upload",desc:e("ant-design-upload: 使用 ant-design 的 upload 组件, 并具有多种列表展示方式。")};e("Video视频播放器"),e("Video-React: 一个使用 React 为 HTML5 构建的web视频播放器, 适用于目前主流网络视频的播放。");e("JS-xlsx插件"),e("JS-xlsx: 由SheetJS出品的一款非常方便的只需要纯JS即可读取和导出excel的工具库, 功能强大, 支持xlsx、csv、txt等格式。");const R={name:e("Sortable拖拽列表"),url:"https://github.com/SortableJS/react-sortablejs",desc:e("ReactSortable: 基于Sortable.js的react组件, 用以实现拖拽功能。")},_={name:e("React-Rnd拖拽组件"),url:"https://github.com/bokuweb/react-rnd",desc:e("React-Rnd: 一款可调整大小和可拖拽的React组件。")};e("React-Cropper图片裁剪"),e("react-cropper: 一个优雅的图片裁剪插件, 可实现图片裁剪、图片生成等功能, 并支持生成png、jpeg、webp等图片格式。");e("Image图片合成"),e("图片合成: 基于VueDRR拖拽功能, 在其上通过叠加图片、文字等, 实现图片的叠加伪合成功能。");e("Image图片压缩"),e("ImageCompress: 纯JS实现对图片的等比压缩和放大的功能, 并能对图片进行下载。");const S={name:e("CountUp数字滚动"),url:"https://github.com/glennreyes/react-countup",desc:e("React-CountUp: 一个无依赖、轻量级的react数字滚动插件, 以更有趣的方式显示数字数据。")};e("CodeMirror代码编辑器"),e("React-CodeMirror: 是一款基于 react 的代码编辑器, 可支持html、javascript、typescript等。");e("AntV-G6流程图"),e("antv-g6: 一个图可视化引擎。它提供了图的绘制、布局、分析、交互、动画等图可视化的基础能力。");e("Tree-Org树状组织图"),e("react-tree-org: 基于 react 的树结构组织图, 可用于公司组织架构展示。");e("富文本编辑器"),e("wangEditor: 基于javascript和css开发的 Web富文本编辑器, 轻量、简洁、易用、开源免费。");e("Markdown编辑器"),e("React-Md-Editor: 是一款基于 react 的 Markdown 编辑器,比较适合博客系统。");export{S as C,u as F,l as P,_ as R,R as S,b as T,x as U,h as a}; diff --git a/index.html b/index.html index 5583819..375bbb8 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css" /> - +