@nocobase/plugin-mobile 1.4.0-alpha.20241105053324 → 1.4.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,12 +8,12 @@
8
8
  */
9
9
 
10
10
  (function(){"use strict";try{if(typeof document!="undefined"){var a=document.createElement("style");a.id="@nocobase/plugin-mobile",a.appendChild(document.createTextNode(':root{--adm-radius-s: 4px;--adm-radius-m: 8px;--adm-radius-l: 12px;--adm-font-size-1: 9px;--adm-font-size-2: 10px;--adm-font-size-3: 11px;--adm-font-size-4: 12px;--adm-font-size-5: 13px;--adm-font-size-6: 14px;--adm-font-size-7: 15px;--adm-font-size-8: 16px;--adm-font-size-9: 17px;--adm-font-size-10: 18px;--adm-color-primary: #1677ff;--adm-color-success: #00b578;--adm-color-warning: #ff8f1f;--adm-color-danger: #ff3141;--adm-color-yellow: #ff9f18;--adm-color-orange: #ff6430;--adm-color-wathet: #e7f1ff;--adm-color-text: #333333;--adm-color-text-secondary: #666666;--adm-color-weak: #999999;--adm-color-light: #cccccc;--adm-color-border: #eeeeee;--adm-color-background: #ffffff;--adm-color-highlight: var(--adm-color-danger);--adm-color-white: #ffffff;--adm-color-box: #f5f5f5;--adm-color-text-light-solid: var(--adm-color-white);--adm-color-text-dark-solid: #000000;--adm-color-fill-content: var(--adm-color-box);--adm-font-size-main: var(--adm-font-size-5);--adm-font-family: -apple-system, blinkmacsystemfont, "Helvetica Neue", helvetica, segoe ui, arial, roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--adm-border-color: var(--adm-color-border)}html[data-prefers-color-scheme=dark]{--adm-color-primary: #3086ff;--adm-color-success: #34b368;--adm-color-warning: #ffa930;--adm-color-danger: #ff4a58;--adm-color-yellow: #ffa930;--adm-color-orange: #e65a2b;--adm-color-wathet: #0d2543;--adm-color-text: #e6e6e6;--adm-color-text-secondary: #b3b3b3;--adm-color-weak: #808080;--adm-color-light: #4d4d4d;--adm-color-border: #2b2b2b;--adm-color-box: #0a0a0a;--adm-color-background: #1a1a1a;--adm-color-background-body: var(--adm-color-background);--adm-border-color: var(--adm-color-border)}:root{-webkit-tap-highlight-color:rgba(0,0,0,0)}html{background-color:var(--adm-color-background-body)}body{color:var(--adm-color-text);font-size:var(--adm-font-size-main);font-family:var(--adm-font-family)}a,button{cursor:pointer}a{color:var(--adm-color-primary);transition:opacity ease-in-out .2s}a:active{opacity:.8}.adm-plain-anchor{color:unset;transition:none}.adm-plain-anchor:active{opacity:unset}body.adm-overflow-hidden{overflow:hidden!important}div.adm-px-tester{--size: 1;height:calc(var(--size) / 2 * 2px);width:0;position:fixed;left:-100vw;top:-100vh;-webkit-user-select:none;user-select:none;pointer-events:none}.adm-popup{--z-index: var(--adm-popup-z-index, 1000);position:fixed;z-index:var(--z-index)}.adm-popup-body{position:fixed;background-color:var(--adm-color-background);z-index:calc(var(--z-index) + 10)}.adm-popup-body .adm-popup-close-icon{position:absolute;z-index:100}.adm-popup-body-position-bottom{width:100%;bottom:0;left:0}.adm-popup-body-position-bottom .adm-popup-close-icon{right:8px;top:8px}.adm-popup-body-position-top{width:100%;top:0;left:0}.adm-popup-body-position-top .adm-popup-close-icon{right:8px;bottom:8px}.adm-popup-body-position-left{height:100%;top:0;left:0}.adm-popup-body-position-left .adm-popup-close-icon{right:8px;top:8px}.adm-popup-body-position-right{height:100%;top:0;right:0}.adm-popup-body-position-right .adm-popup-close-icon{left:8px;top:8px}.adm-popup-close-icon{cursor:pointer;padding:4px;font-size:18px;line-height:1;color:var(--adm-color-weak)}.adm-mask{--z-index: var(--adm-mask-z-index, 1000);position:fixed;top:0;left:0;z-index:var(--z-index);display:block;width:100%;height:100%}.adm-mask-aria-button{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;pointer-events:none}.adm-mask-content{z-index:1}.adm-safe-area{--multiple: var(--adm-safe-area-multiple, 1);display:block;width:100%}.adm-safe-area-position-top{padding-top:calc(env(safe-area-inset-top) * var(--multiple))}.adm-safe-area-position-bottom{padding-bottom:calc(env(safe-area-inset-bottom) * var(--multiple))}.adm-badge-wrapper{display:inline-block;position:relative}.adm-badge{display:inline-flex;vertical-align:middle;box-sizing:content-box;border-radius:100px;background-color:var(--color);--right: 0;--top: 0;--color: var(--adm-badge-color, var(--adm-color-highlight))}.adm-badge-content{color:var(--adm-color-text-light-solid);box-sizing:border-box;min-width:8px;padding:1px 4px;font-size:var(--adm-font-size-1);line-height:12px;white-space:nowrap;font-weight:400;text-align:center}.adm-badge-fixed{position:absolute;right:var(--right);top:var(--top);transform:translate(50%,-50%)}.adm-badge-dot{min-width:10px;width:10px;height:10px;border-radius:5px}.adm-badge-bordered{border:solid 1px var(--adm-color-text-light-solid)}.adm-button{--color: var(--adm-color-text-light-solid);--text-color: var(--adm-button-text-color, var(--adm-color-text));--background-color: var(--adm-button-background-color, var(--adm-color-background));--border-radius: var(--adm-button-border-radius, 4px);--border-width: var(--adm-button-border-width, 1px);--border-style: var(--adm-button-border-style, solid);--border-color: var(--adm-button-border-color, var(--adm-color-border));color:var(--text-color);background-color:var(--background-color);position:relative;display:inline-block;box-sizing:border-box;height:auto;padding:7px 12px;margin:0;font-size:var(--adm-font-size-9);line-height:1.4;text-align:center;border:var(--border-width) var(--border-style) var(--border-color);border-radius:var(--border-radius);cursor:pointer;transition:opacity ease .15s;-webkit-user-select:none;user-select:none}.adm-button:focus{outline:none}.adm-button:before{position:absolute;top:0;left:0;transform:translate(calc(var(--border-width) * -1),calc(var(--border-width) * -1));width:100%;height:100%;background-color:var(--adm-color-text-dark-solid);border:var(--border-width) var(--border-style) var(--adm-color-text-dark-solid);border-radius:var(--border-radius);opacity:0;content:" ";box-sizing:content-box}.adm-button:active:before{opacity:.08}.adm-button-default.adm-button-fill-outline{--background-color: transparent;--border-color: var(--adm-color-text)}.adm-button-default.adm-button-fill-none{--background-color: transparent;--border-width: 0px}.adm-button:not(.adm-button-default){--text-color: var(--adm-color-text-light-solid);--background-color: var(--color);--border-color: var(--color)}.adm-button:not(.adm-button-default).adm-button-fill-outline{--text-color: var(--color);--background-color: transparent}.adm-button:not(.adm-button-default).adm-button-fill-none{--text-color: var(--color);--background-color: transparent;--border-width: 0px}.adm-button-primary{--color: var(--adm-color-primary)}.adm-button-success{--color: var(--adm-color-success)}.adm-button-danger{--color: var(--adm-color-danger)}.adm-button-warning{--color: var(--adm-color-warning)}.adm-button-block{display:block;width:100%}.adm-button-disabled{cursor:not-allowed;opacity:.4}.adm-button-disabled:active:before{display:none}.adm-button.adm-button-mini{padding-top:3px;padding-bottom:3px;font-size:var(--adm-font-size-main)}.adm-button.adm-button-mini.adm-button-shape-rounded{padding-left:9px;padding-right:9px}.adm-button.adm-button-small{padding-top:3px;padding-bottom:3px;font-size:var(--adm-font-size-7)}.adm-button.adm-button-large{padding-top:11px;padding-bottom:11px;font-size:var(--adm-font-size-10)}.adm-button.adm-button-shape-rounded{--border-radius: 1000px}.adm-button.adm-button-shape-rectangular{--border-radius: 0}.adm-button-loading{vertical-align:bottom}.adm-button-loading-wrapper{display:flex;height:1.4em;align-items:center;justify-content:center}.adm-button-loading-wrapper>.adm-loading{opacity:.6}.adm-dot-loading{display:inline-block}.adm-tabs{--title-font-size: var(--adm-font-size-9);--content-padding: 12px;--active-line-height: 2px;--active-line-border-radius: var(--active-line-height);--active-line-color: var(--adm-color-primary);--active-title-color: var(--adm-color-primary);position:relative;min-width:0}.adm-tabs-header{position:relative;border-bottom:solid 1px var(--adm-color-border)}.adm-tabs-tab-list{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;position:relative;overflow-x:scroll;scrollbar-width:none}.adm-tabs-tab-list::-webkit-scrollbar{display:none}.adm-tabs-tab-wrapper{padding:0 12px}.adm-tabs-tab-wrapper-stretch{flex:auto}.adm-tabs-tab{white-space:nowrap;padding:8px 0 10px;width:-webkit-min-content;width:min-content;margin:0 auto;font-size:var(--title-font-size);position:relative;cursor:pointer}.adm-tabs-tab-active{color:var(--active-title-color)}.adm-tabs-tab-disabled{opacity:.5;cursor:not-allowed}.adm-tabs-tab-line{position:absolute;bottom:0;height:var(--active-line-height);background:var(--active-line-color);border-radius:var(--active-line-border-radius)}.adm-tabs-content{padding:var(--content-padding)}.adm-tabs-header-mask{position:absolute;top:0;bottom:0;z-index:1;width:30px;height:100%;pointer-events:none}.adm-tabs-header-mask-left{left:0;background:linear-gradient(to right,var(--adm-color-background),rgba(255,255,255,0))}.adm-tabs-header-mask-right{right:0;background:linear-gradient(to left,var(--adm-color-background),rgba(255,255,255,0))}.adm-error-block{--color: var(--adm-color-text);--image-height: var(--adm-error-block-image-height, 100px);--image-height-full-page: var(--adm-error-block-image-height-full-page, 200px);--image-width: var(--adm-error-block-image-width, auto);--image-width-full-page: var(--adm-error-block-image-width-full-page, auto);box-sizing:border-box;text-align:center}.adm-error-block-image{height:var(--image-height);width:var(--image-width);max-width:100%}.adm-error-block-image svg,.adm-error-block-image img{height:100%}.adm-error-block-description{font-size:var(--adm-font-size-4);color:var(--adm-color-weak);line-height:1.4;margin-top:12px}.adm-error-block-description-title{font-size:var(--adm-font-size-7)}.adm-error-block-description-subtitle{margin-top:8px}.adm-error-block-content{margin-top:12px}.adm-error-block-full-page{padding-top:calc(50vh - var(--image-height-full-page))}.adm-error-block-full-page .adm-error-block-image{height:var(--image-height-full-page);width:var(--image-width-full-page)}.adm-error-block-full-page .adm-error-block-description{margin-top:20px;font-size:var(--adm-font-size-main)}.adm-error-block-full-page .adm-error-block-description-title{font-size:20px;color:var(--adm-color-text)}.adm-space-item{flex:none}.adm-space{display:inline-flex;--gap: 8px;--gap-vertical: var(--gap);--gap-horizontal: var(--gap)}.adm-space-vertical{flex-direction:column}.adm-space-vertical>.adm-space-item{margin-bottom:var(--gap-vertical)}.adm-space-vertical>.adm-space-item:last-child{margin-bottom:0}.adm-space-horizontal{flex-direction:row}.adm-space-horizontal>.adm-space-item{margin-right:var(--gap-horizontal)}.adm-space-horizontal>.adm-space-item:last-child{margin-right:0}.adm-space-horizontal.adm-space-wrap{flex-wrap:wrap;margin-bottom:calc(var(--gap-vertical) * -1)}.adm-space-horizontal.adm-space-wrap>.adm-space-item{padding-bottom:var(--gap-vertical)}.adm-space.adm-space-block{display:flex}.adm-space-align-center{align-items:center}.adm-space-align-start{align-items:flex-start}.adm-space-align-end{align-items:flex-end}.adm-space-align-baseline{align-items:baseline}.adm-space-justify-center{justify-content:center}.adm-space-justify-start{justify-content:flex-start}.adm-space-justify-end{justify-content:flex-end}.adm-space-justify-between{justify-content:space-between}.adm-space-justify-around{justify-content:space-around}.adm-space-justify-evenly{justify-content:space-evenly}.adm-space-justify-stretch{justify-content:stretch}.adm-nav-bar{--height: 45px;--border-bottom: none;display:flex;align-items:center;height:var(--height);border-bottom:var(--border-bottom);padding:0 12px;white-space:nowrap}.adm-nav-bar-left,.adm-nav-bar-right{flex:1}.adm-nav-bar-title{flex:auto;text-align:center;overflow:hidden;text-overflow:ellipsis}.adm-nav-bar-back{display:flex;align-items:center;margin-right:16px;padding:6px 0;cursor:pointer}.adm-nav-bar-back-arrow{font-size:24px;margin-right:4px}.adm-nav-bar-left{font-size:var(--adm-font-size-7);display:flex;justify-content:flex-start;align-items:center}.adm-nav-bar-title{justify-content:center;white-space:nowrap;font-size:var(--adm-font-size-10);padding:0 12px}.adm-nav-bar-right{text-align:right}.adm-tab-bar-wrap{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;min-height:48px}.adm-tab-bar-item{flex:1;color:var(--adm-color-text-secondary);white-space:nowrap;padding:4px 8px;width:-webkit-min-content;width:min-content;position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-direction:column}.adm-tab-bar-item-icon{font-size:24px;height:24px;line-height:1}.adm-tab-bar-item-title{font-size:var(--adm-font-size-2);line-height:15px}.adm-tab-bar-item-title-with-icon{margin-top:2px}.adm-tab-bar-item-active{color:var(--adm-color-primary)}.adm-tab-bar-icon-badge{--top: 6px}.adm-tab-bar-title-badge{--right: -2px;--top: -2px}')),document.head.appendChild(a)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
11
- (function(x,d){typeof exports=="object"&&typeof module!="undefined"?d(exports,require("react/jsx-runtime"),require("@nocobase/client"),require("react-router-dom"),require("react-i18next"),require("react"),require("@formily/react"),require("antd"),require("ahooks"),require("react-dom"),require("lodash"),require("antd-style"),require("@formily/shared"),require("@emotion/css"),require("@ant-design/icons"),require("@formily/antd-v5"),require("@nocobase/plugin-acl/client"),require("@formily/core")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@nocobase/client","react-router-dom","react-i18next","react","@formily/react","antd","ahooks","react-dom","lodash","antd-style","@formily/shared","@emotion/css","@ant-design/icons","@formily/antd-v5","@nocobase/plugin-acl/client","@formily/core"],d):(x=typeof globalThis!="undefined"?globalThis:x||self,d(x["@nocobase/plugin-mobile"]={},x.jsxRuntime,x["@nocobase/client"],x["react-router-dom"],x["react-i18next"],x.react,x["@formily/react"],x.antd,x.ahooks,x["react-dom"],x.lodash,x["antd-style"],x["@formily/shared"],x["@emotion/css"],x["@ant-design/icons"],x["@formily/antd-v5"],x["@nocobase/plugin-acl"],x["@formily/core"]))})(this,function(x,d,g,V,Je,a,D,F,X,$e,Ue,lt,ei,un,Nr,Al,Lr,Dr){"use strict";var O0=Object.defineProperty,F0=Object.defineProperties;var B0=Object.getOwnPropertyDescriptors;var dn=Object.getOwnPropertySymbols;var _l=Object.prototype.hasOwnProperty,Il=Object.prototype.propertyIsEnumerable;var Br=(x,d,g)=>d in x?O0(x,d,{enumerable:!0,configurable:!0,writable:!0,value:g}):x[d]=g,B=(x,d)=>{for(var g in d||(d={}))_l.call(d,g)&&Br(x,g,d[g]);if(dn)for(var g of dn(d))Il.call(d,g)&&Br(x,g,d[g]);return x},R=(x,d)=>F0(x,B0(d));var Rt=(x,d)=>{var g={};for(var V in x)_l.call(x,V)&&d.indexOf(V)<0&&(g[V]=x[V]);if(x!=null&&dn)for(var V of dn(x))d.indexOf(V)<0&&Il.call(x,V)&&(g[V]=x[V]);return g};var zr=(x,d,g)=>(Br(x,typeof d!="symbol"?d+"":d,g),g);var Q=(x,d,g)=>new Promise((V,Je)=>{var a=X=>{try{F(g.next(X))}catch($e){Je($e)}},D=X=>{try{F(g.throw(X))}catch($e){Je($e)}},F=X=>X.done?V(X.value):Promise.resolve(X.value).then(a,D);F((g=g.apply(x,d)).next())});function Ol(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const ee=Ol(a),Zr="@nocobase/plugin-mobile",fn={name:Zr,version:"1.4.0-alpha.20241105053324",main:"dist/server/index.js",homepage:"https://docs.nocobase.com/handbook/mobile","homepage.zh-CN":"https://docs-cn.nocobase.com/handbook/mobile",license:"AGPL-3.0",displayName:"Mobile","displayName.zh-CN":"移动端",description:"Provides the ability to configure mobile pages.","description.zh-CN":"提供移动端页面配置的能力。",peerDependencies:{"@nocobase/client":"1.x","@nocobase/plugin-acl":"1.x","@nocobase/server":"1.x","@nocobase/test":"1.x"},devDependencies:{"@ant-design/icons":"5.x","@emotion/css":"11.x","@formily/antd-v5":"1.x","@formily/core":"2.x","@formily/react":"2.x","@formily/shared":"2.x","@types/react":"17.x","@types/react-dom":"17.x",ahooks:"3.x",antd:"5.x","antd-mobile":"^5.36.1",lodash:"4.x","re-resizable":"6.6.0","react-device-detect":"2.2.3","react-i18next":"11.x"}};function de(){return Je.useTranslation([fn.name,"client"],{nsMode:"fallback"})}function Z(t){return`{{t('${t}', { ns: ['${fn.name}', 'client'], nsMode: 'fallback' })}}`}var Fl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Vr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var M={},hn={exports:{}};(function(t,e){(function(i,n){var r="1.0.38",o="",s="?",l="function",h="undefined",u="object",p="string",y="major",c="model",m="name",f="type",b="vendor",v="version",C="architecture",S="console",w="mobile",k="tablet",P="smarttv",T="wearable",L="embedded",q=500,ne="Amazon",K="Apple",ue="ASUS",$="BlackBerry",Y="Browser",Te="Chrome",Xt="Edge",Ze="Firefox",kt="Google",on="Huawei",st="LG",ze="Microsoft",at="Motorola",Ve="Opera",Xe="Samsung",sn="Sharp",an="Sony",_r="Xiaomi",Ir="Zebra",Sl="Facebook",kl="Chromium OS",El="Mac OS",_0=function(N,W){var O={};for(var G in N)W[G]&&W[G].length%2===0?O[G]=W[G].concat(N[G]):O[G]=N[G];return O},ln=function(N){for(var W={},O=0;O<N.length;O++)W[N[O].toUpperCase()]=N[O];return W},Cl=function(N,W){return typeof N===p?Jt(W).indexOf(Jt(N))!==-1:!1},Jt=function(N){return N.toLowerCase()},I0=function(N){return typeof N===p?N.replace(/[^\d\.]/g,o).split(".")[0]:n},Ar=function(N,W){if(typeof N===p)return N=N.replace(/^\s\s*/,o),typeof W===h?N:N.substring(0,q)},$t=function(N,W){for(var O=0,G,je,Ne,j,I,Le;O<W.length&&!I;){var Fr=W[O],Tl=W[O+1];for(G=je=0;G<Fr.length&&!I&&Fr[G];)if(I=Fr[G++].exec(N),I)for(Ne=0;Ne<Tl.length;Ne++)Le=I[++je],j=Tl[Ne],typeof j===u&&j.length>0?j.length===2?typeof j[1]==l?this[j[0]]=j[1].call(this,Le):this[j[0]]=j[1]:j.length===3?typeof j[1]===l&&!(j[1].exec&&j[1].test)?this[j[0]]=Le?j[1].call(this,Le,j[2]):n:this[j[0]]=Le?Le.replace(j[1],j[2]):n:j.length===4&&(this[j[0]]=Le?j[3].call(this,Le.replace(j[1],j[2])):n):this[j]=Le||n;O+=2}},Or=function(N,W){for(var O in W)if(typeof W[O]===u&&W[O].length>0){for(var G=0;G<W[O].length;G++)if(Cl(W[O][G],N))return O===s?n:O}else if(Cl(W[O],N))return O===s?n:O;return N},A0={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Pl={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ml={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,v],[/opios[\/ ]+([\w\.]+)/i],[v,[m,Ve+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[m,Ve+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[m,Ve]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[m,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[m,v],[/\bddg\/([\w\.]+)/i],[v,[m,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[m,"UC"+Y]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[m,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[m,"Smart Lenovo "+Y]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+)/,"$1 Secure "+Y],v],[/\bfocus\/([\w\.]+)/i],[v,[m,Ze+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[m,Ve+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[m,Ve+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[m,"MIUI "+Y]],[/fxios\/([-\w\.]+)/i],[v,[m,Ze]],[/\bqihu|(qi?ho?o?|360)browser/i],[[m,"360 "+Y]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1 "+Y],v],[/samsungbrowser\/([\w\.]+)/i],[v,[m,Xe+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],v],[/metasr[\/ ]?([\d\.]+)/i],[v,[m,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[m,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[m,v],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,Sl],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[m,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[m,Te+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,Te+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[m,"Android "+Y]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[v,Or,A0]],[/(webkit|khtml)\/([\w\.]+)/i],[m,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[m,Ze+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[m,v],[/(cobalt)\/([\w\.]+)/i],[m,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[C,"amd64"]],[/(ia32(?=;))/i],[[C,Jt]],[/((?:i[346]|x)86)[;\)]/i],[[C,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/windows (ce|mobile); ppc;/i],[[C,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[C,/ower/,o,Jt]],[/(sun4\w)[;\)]/i],[[C,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[C,Jt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[b,Xe],[f,k]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[b,Xe],[f,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[b,K],[f,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[b,K],[f,k]],[/(macintosh);/i],[c,[b,K]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[b,sn],[f,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[b,on],[f,k]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[b,on],[f,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[b,_r],[f,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[b,_r],[f,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[b,"OPPO"],[f,w]],[/\b(opd2\d{3}a?) bui/i],[c,[b,"OPPO"],[f,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[b,"Vivo"],[f,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[b,"Realme"],[f,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[b,at],[f,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[b,at],[f,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[b,st],[f,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[b,st],[f,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[b,"Lenovo"],[f,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[b,"Nokia"],[f,w]],[/(pixel c)\b/i],[c,[b,kt],[f,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[b,kt],[f,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[b,an],[f,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[b,an],[f,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[b,"OnePlus"],[f,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[b,ne],[f,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[b,ne],[f,w]],[/(playbook);[-\w\),; ]+(rim)/i],[c,b,[f,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[b,$],[f,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[b,ue],[f,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[b,ue],[f,w]],[/(nexus 9)/i],[c,[b,"HTC"],[f,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[c,/_/g," "],[f,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[b,"Acer"],[f,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[b,"Meizu"],[f,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[b,"Ulefone"],[f,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[b,c,[f,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,c,[f,k]],[/(surface duo)/i],[c,[b,ze],[f,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[b,"Fairphone"],[f,w]],[/(u304aa)/i],[c,[b,"AT&T"],[f,w]],[/\bsie-(\w*)/i],[c,[b,"Siemens"],[f,w]],[/\b(rct\w+) b/i],[c,[b,"RCA"],[f,k]],[/\b(venue[\d ]{2,7}) b/i],[c,[b,"Dell"],[f,k]],[/\b(q(?:mv|ta)\w+) b/i],[c,[b,"Verizon"],[f,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[b,"Barnes & Noble"],[f,k]],[/\b(tm\d{3}\w+) b/i],[c,[b,"NuVision"],[f,k]],[/\b(k88) b/i],[c,[b,"ZTE"],[f,k]],[/\b(nx\d{3}j) b/i],[c,[b,"ZTE"],[f,w]],[/\b(gen\d{3}) b.+49h/i],[c,[b,"Swiss"],[f,w]],[/\b(zur\d{3}) b/i],[c,[b,"Swiss"],[f,k]],[/\b((zeki)?tb.*\b) b/i],[c,[b,"Zeki"],[f,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],c,[f,k]],[/\b(ns-?\w{0,9}) b/i],[c,[b,"Insignia"],[f,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[b,"NextBook"],[f,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],c,[f,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],c,[f,w]],[/\b(ph-1) /i],[c,[b,"Essential"],[f,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[b,"Envizen"],[f,k]],[/\b(trio[-\w\. ]+) b/i],[c,[b,"MachSpeed"],[f,k]],[/\btu_(1491) b/i],[c,[b,"Rotor"],[f,k]],[/(shield[\w ]+) b/i],[c,[b,"Nvidia"],[f,k]],[/(sprint) (\w+)/i],[b,c,[f,w]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[b,ze],[f,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[b,Ir],[f,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[b,Ir],[f,w]],[/smart-tv.+(samsung)/i],[b,[f,P]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[b,Xe],[f,P]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,st],[f,P]],[/(apple) ?tv/i],[b,[c,K+" TV"],[f,P]],[/crkey/i],[[c,Te+"cast"],[b,kt],[f,P]],[/droid.+aft(\w+)( bui|\))/i],[c,[b,ne],[f,P]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[b,sn],[f,P]],[/(bravia[\w ]+)( bui|\))/i],[c,[b,an],[f,P]],[/(mitv-\w{5}) bui/i],[c,[b,_r],[f,P]],[/Hbbtv.*(technisat) (.*);/i],[b,c,[f,P]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,Ar],[c,Ar],[f,P]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,P]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,c,[f,S]],[/droid.+; (shield) bui/i],[c,[b,"Nvidia"],[f,S]],[/(playstation [345portablevi]+)/i],[c,[b,an],[f,S]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[b,ze],[f,S]],[/((pebble))app/i],[b,c,[f,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[b,K],[f,T]],[/droid.+; (glass) \d/i],[c,[b,kt],[f,T]],[/droid.+; (wt63?0{2,3})\)/i],[c,[b,Ir],[f,T]],[/(quest( \d| pro)?)/i],[c,[b,Sl],[f,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[f,L]],[/(aeobc)\b/i],[c,[b,ne],[f,L]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[f,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,w]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[m,Xt+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[m,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[m,[v,Or,Pl]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,Or,Pl],[m,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,El],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,m],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[m,v],[/\(bb(10);/i],[v,[m,$]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[m,Ze+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[m,Te+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,kl],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[m,v],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,v]]},_e=function(N,W){if(typeof N===u&&(W=N,N=n),!(this instanceof _e))return new _e(N,W).getResult();var O=typeof i!==h&&i.navigator?i.navigator:n,G=N||(O&&O.userAgent?O.userAgent:o),je=O&&O.userAgentData?O.userAgentData:n,Ne=W?_0(Ml,W):Ml,j=O&&O.userAgent==G;return this.getBrowser=function(){var I={};return I[m]=n,I[v]=n,$t.call(I,G,Ne.browser),I[y]=I0(I[v]),j&&O&&O.brave&&typeof O.brave.isBrave==l&&(I[m]="Brave"),I},this.getCPU=function(){var I={};return I[C]=n,$t.call(I,G,Ne.cpu),I},this.getDevice=function(){var I={};return I[b]=n,I[c]=n,I[f]=n,$t.call(I,G,Ne.device),j&&!I[f]&&je&&je.mobile&&(I[f]=w),j&&I[c]=="Macintosh"&&O&&typeof O.standalone!==h&&O.maxTouchPoints&&O.maxTouchPoints>2&&(I[c]="iPad",I[f]=k),I},this.getEngine=function(){var I={};return I[m]=n,I[v]=n,$t.call(I,G,Ne.engine),I},this.getOS=function(){var I={};return I[m]=n,I[v]=n,$t.call(I,G,Ne.os),j&&!I[m]&&je&&je.platform&&je.platform!="Unknown"&&(I[m]=je.platform.replace(/chrome os/i,kl).replace(/macos/i,El)),I},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return G},this.setUA=function(I){return G=typeof I===p&&I.length>q?Ar(I,q):I,this},this.setUA(G),this};_e.VERSION=r,_e.BROWSER=ln([m,v,y]),_e.CPU=ln([C]),_e.DEVICE=ln([c,b,f,S,w,P,k,T,L]),_e.ENGINE=_e.OS=ln([m,v]),t.exports&&(e=t.exports=_e),e.UAParser=_e;var Et=typeof i!==h&&(i.jQuery||i.Zepto);if(Et&&!Et.ua){var cn=new _e;Et.ua=cn.getResult(),Et.ua.get=function(){return cn.getUA()},Et.ua.set=function(N){cn.setUA(N);var W=cn.getResult();for(var O in W)Et.ua[O]=W[O]}}})(typeof window=="object"?window:Fl)})(hn,hn.exports);var Bl=hn.exports;Object.defineProperty(M,"__esModule",{value:!0});function zl(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var oe=a,H=zl(oe),jr=Bl,We=new jr,se=We.getBrowser(),Nl=We.getCPU(),be=We.getDevice(),pn=We.getEngine(),qe=We.getOS(),Ct=We.getUA(),Ur=function(e){return We.setUA(e)},Pt=function(e){if(!e){console.error("No userAgent string was provided");return}var i=new jr(e);return{UA:i,browser:i.getBrowser(),cpu:i.getCPU(),device:i.getDevice(),engine:i.getEngine(),os:i.getOS(),ua:i.getUA(),setUserAgent:function(r){return i.setUA(r)}}},Wr=Object.freeze({ClientUAInstance:We,browser:se,cpu:Nl,device:be,engine:pn,os:qe,ua:Ct,setUa:Ur,parseUserAgent:Pt});function qr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,n)}return i}function Ll(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?qr(Object(i),!0).forEach(function(n){jl(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):qr(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function Mt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mt=function(e){return typeof e}:Mt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}function Dl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zl(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Vl(t,e,i){return e&&Zl(t.prototype,e),t}function jl(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function mn(){return mn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},mn.apply(this,arguments)}function Ul(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gn(t,e)}function bn(t){return bn=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},bn(t)}function gn(t,e){return gn=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},gn(t,e)}function Wl(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}function ye(t,e){if(t==null)return{};var i=Wl(t,e),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ti(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ql(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ti(t)}function Hl(t,e){return Kl(t)||Gl(t,e)||Yl(t,e)||Ql()}function Kl(t){if(Array.isArray(t))return t}function Gl(t,e){var i=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var n=[],r=!0,o=!1,s,l;try{for(i=i.call(t);!(r=(s=i.next()).done)&&(n.push(s.value),!(e&&n.length===e));r=!0);}catch(h){o=!0,l=h}finally{try{!r&&i.return!=null&&i.return()}finally{if(o)throw l}}return n}}function Yl(t,e){if(t){if(typeof t=="string")return Hr(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Hr(t,e)}}function Hr(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Ql(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ae={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},fe={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},ct={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},Xl={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Jl=function(e){switch(e){case ae.Mobile:return{isMobile:!0};case ae.Tablet:return{isTablet:!0};case ae.SmartTv:return{isSmartTV:!0};case ae.Console:return{isConsole:!0};case ae.Wearable:return{isWearable:!0};case ae.Browser:return{isBrowser:!0};case ae.Embedded:return{isEmbedded:!0};default:return Xl}},$l=function(e){return Ur(e)},_=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return e||i},vn=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},yn=function(e){var i=vn();return i&&i.platform&&(i.platform.indexOf(e)!==-1||i.platform==="MacIntel"&&i.maxTouchPoints>1&&!window.MSStream)},Rl=function(e,i,n,r,o){return{isBrowser:e,browserMajorVersion:_(i.major),browserFullVersion:_(i.version),browserName:_(i.name),engineName:_(n.name),engineVersion:_(n.version),osName:_(r.name),osVersion:_(r.version),userAgent:_(o)}},Kr=function(e,i,n,r){return Ll({},e,{vendor:_(i.vendor),model:_(i.model),os:_(n.name),osVersion:_(n.version),ua:_(r)})},ec=function(e,i,n,r){return{isSmartTV:e,engineName:_(i.name),engineVersion:_(i.version),osName:_(n.name),osVersion:_(n.version),userAgent:_(r)}},tc=function(e,i,n,r){return{isConsole:e,engineName:_(i.name),engineVersion:_(i.version),osName:_(n.name),osVersion:_(n.version),userAgent:_(r)}},ic=function(e,i,n,r){return{isWearable:e,engineName:_(i.name),engineVersion:_(i.version),osName:_(n.name),osVersion:_(n.version),userAgent:_(r)}},nc=function(e,i,n,r,o){return{isEmbedded:e,vendor:_(i.vendor),model:_(i.model),engineName:_(n.name),engineVersion:_(n.version),osName:_(r.name),osVersion:_(r.version),userAgent:_(o)}};function rc(t){var e=t?Pt(t):Wr,i=e.device,n=e.browser,r=e.engine,o=e.os,s=e.ua,l=Jl(i.type),h=l.isBrowser,u=l.isMobile,p=l.isTablet,y=l.isSmartTV,c=l.isConsole,m=l.isWearable,f=l.isEmbedded;if(h)return Rl(h,n,r,o,s);if(y)return ec(y,r,o,s);if(c)return tc(c,r,o,s);if(u||p)return Kr(l,i,o,s);if(m)return ic(m,r,o,s);if(f)return nc(f,i,r,o,s)}var Gr=function(e){var i=e.type;return i===ae.Mobile},Yr=function(e){var i=e.type;return i===ae.Tablet},Qr=function(e){var i=e.type;return i===ae.Mobile||i===ae.Tablet},Xr=function(e){var i=e.type;return i===ae.SmartTv},ii=function(e){var i=e.type;return i===ae.Browser},Jr=function(e){var i=e.type;return i===ae.Wearable},$r=function(e){var i=e.type;return i===ae.Console},Rr=function(e){var i=e.type;return i===ae.Embedded},eo=function(e){var i=e.vendor;return _(i)},to=function(e){var i=e.model;return _(i)},io=function(e){var i=e.type;return _(i,"browser")},no=function(e){var i=e.name;return i===ct.Android},ro=function(e){var i=e.name;return i===ct.Windows},oo=function(e){var i=e.name;return i===ct.MAC_OS},so=function(e){var i=e.name;return i===ct.WindowsPhone},ao=function(e){var i=e.name;return i===ct.IOS},lo=function(e){var i=e.version;return _(i)},co=function(e){var i=e.name;return _(i)},uo=function(e){var i=e.name;return i===fe.Chrome},fo=function(e){var i=e.name;return i===fe.Firefox},ho=function(e){var i=e.name;return i===fe.Chromium},ni=function(e){var i=e.name;return i===fe.Edge},po=function(e){var i=e.name;return i===fe.Yandex},mo=function(e){var i=e.name;return i===fe.Safari||i===fe.MobileSafari},bo=function(e){var i=e.name;return i===fe.MobileSafari},go=function(e){var i=e.name;return i===fe.Opera},vo=function(e){var i=e.name;return i===fe.InternetExplorer||i===fe.Ie},yo=function(e){var i=e.name;return i===fe.MIUI},wo=function(e){var i=e.name;return i===fe.SamsungBrowser},xo=function(e){var i=e.version;return _(i)},So=function(e){var i=e.major;return _(i)},ko=function(e){var i=e.name;return _(i)},Eo=function(e){var i=e.name;return _(i)},Co=function(e){var i=e.version;return _(i)},Po=function(){var e=vn(),i=e&&e.userAgent&&e.userAgent.toLowerCase();return typeof i=="string"?/electron/.test(i):!1},dt=function(e){return typeof e=="string"&&e.indexOf("Edg/")!==-1},Mo=function(){var e=vn();return e&&(/iPad|iPhone|iPod/.test(e.platform)||e.platform==="MacIntel"&&e.maxTouchPoints>1)&&!window.MSStream},Ie=function(){return yn("iPad")},To=function(){return yn("iPhone")},_o=function(){return yn("iPod")},Io=function(e){return _(e)};function Ao(t){var e=t||Wr,i=e.device,n=e.browser,r=e.os,o=e.engine,s=e.ua;return{isSmartTV:Xr(i),isConsole:$r(i),isWearable:Jr(i),isEmbedded:Rr(i),isMobileSafari:bo(n)||Ie(),isChromium:ho(n),isMobile:Qr(i)||Ie(),isMobileOnly:Gr(i),isTablet:Yr(i)||Ie(),isBrowser:ii(i),isDesktop:ii(i),isAndroid:no(r),isWinPhone:so(r),isIOS:ao(r)||Ie(),isChrome:uo(n),isFirefox:fo(n),isSafari:mo(n),isOpera:go(n),isIE:vo(n),osVersion:lo(r),osName:co(r),fullBrowserVersion:xo(n),browserVersion:So(n),browserName:ko(n),mobileVendor:eo(i),mobileModel:to(i),engineName:Eo(o),engineVersion:Co(o),getUA:Io(s),isEdge:ni(n)||dt(s),isYandex:po(n),deviceType:io(i),isIOS13:Mo(),isIPad13:Ie(),isIPhone13:To(),isIPod13:_o(),isElectron:Po(),isEdgeChromium:dt(s),isLegacyEdge:ni(n)&&!dt(s),isWindows:ro(r),isMacOs:oo(r),isMIUI:yo(n),isSamsungBrowser:wo(n)}}var Oo=Xr(be),Fo=$r(be),Bo=Jr(be),oc=Rr(be),sc=bo(se)||Ie(),ac=ho(se),ri=Qr(be)||Ie(),zo=Gr(be),No=Yr(be)||Ie(),Lo=ii(be),lc=ii(be),Do=no(qe),Zo=so(qe),Vo=ao(qe)||Ie(),cc=uo(se),dc=fo(se),uc=mo(se),fc=go(se),jo=vo(se),hc=lo(qe),pc=co(qe),mc=xo(se),bc=So(se),gc=ko(se),vc=eo(be),yc=to(be),wc=Eo(pn),xc=Co(pn),Sc=Io(Ct),kc=ni(se)||dt(Ct),Ec=po(se),Cc=io(be),Pc=Mo(),Mc=Ie(),Tc=To(),_c=_o(),Ic=Po(),Ac=dt(Ct),Oc=ni(se)&&!dt(Ct),Fc=ro(qe),Bc=oo(qe),zc=yo(se),Nc=wo(se),Lc=function(e){if(!e||typeof e!="string"){console.error("No valid user agent string was provided");return}var i=Pt(e),n=i.device,r=i.browser,o=i.os,s=i.engine,l=i.ua;return Ao({device:n,browser:r,os:o,engine:s,ua:l})},Dc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Do?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Zc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Lo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Vc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return jo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},jc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Vo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Uc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return ri?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Wc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return No?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},qc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Zo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Hc=function(e){var i=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=ye(e,["renderWithFragment","children","viewClassName","style"]);return zo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Kc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Oo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Gc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Fo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Yc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Bo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Qc=function(e){var i=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=e.condition,o=ye(e,["renderWithFragment","children","viewClassName","style","condition"]);return r?i?H.createElement(oe.Fragment,null,n):H.createElement("div",o,n):null};function Xc(t){return function(e){Ul(i,e);function i(n){var r;return Dl(this,i),r=ql(this,bn(i).call(this,n)),r.isEventListenerAdded=!1,r.handleOrientationChange=r.handleOrientationChange.bind(ti(r)),r.onOrientationChange=r.onOrientationChange.bind(ti(r)),r.onPageLoad=r.onPageLoad.bind(ti(r)),r.state={isLandscape:!1,isPortrait:!1},r}return Vl(i,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var r=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:r===0,isLandscape:r===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":Mt(window))!==void 0&&ri&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return H.createElement(t,mn({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),i}(H.Component)}function Jc(){var t=oe.useState(function(){var o=window.innerWidth>window.innerHeight?90:0;return{isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"}}),e=Hl(t,2),i=e[0],n=e[1],r=oe.useCallback(function(){var o=window.innerWidth>window.innerHeight?90:0,s={isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"};i.orientation!==s.orientation&&n(s)},[i.orientation]);return oe.useEffect(function(){return(typeof window=="undefined"?"undefined":Mt(window))!==void 0&&ri&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}},[r]),i}function Uo(t){var e=t||window.navigator.userAgent;return Pt(e)}function $c(t){var e=t||window.navigator.userAgent,i=Uo(e),n=Ao(i);return[n,i]}M.AndroidView=Dc,M.BrowserTypes=fe,M.BrowserView=Zc,M.ConsoleView=Gc,M.CustomView=Qc,M.IEView=Vc,M.IOSView=jc,M.MobileOnlyView=Hc,M.MobileView=Uc,M.OsTypes=ct,M.SmartTVView=Kc,M.TabletView=Wc,M.WearableView=Yc,M.WinPhoneView=qc,M.browserName=gc,M.browserVersion=bc,M.deviceDetect=rc,M.deviceType=Cc,M.engineName=wc,M.engineVersion=xc,M.fullBrowserVersion=mc,M.getSelectorsByUserAgent=Lc,M.getUA=Sc,M.isAndroid=Do,M.isBrowser=Lo,M.isChrome=cc,M.isChromium=ac,M.isConsole=Fo;var Wo=M.isDesktop=lc;M.isEdge=kc,M.isEdgeChromium=Ac,M.isElectron=Ic,M.isEmbedded=oc,M.isFirefox=dc,M.isIE=jo,M.isIOS=Vo,M.isIOS13=Pc,M.isIPad13=Mc,M.isIPhone13=Tc,M.isIPod13=_c,M.isLegacyEdge=Oc,M.isMIUI=zc,M.isMacOs=Bc;var Rc=M.isMobile=ri;M.isMobileOnly=zo,M.isMobileSafari=sc,M.isOpera=fc,M.isSafari=uc,M.isSamsungBrowser=Nc,M.isSmartTV=Oo,M.isTablet=No,M.isWearable=Bo,M.isWinPhone=Zo,M.isWindows=Fc,M.isYandex=Ec,M.mobileModel=yc,M.mobileVendor=vc,M.osName=pc,M.osVersion=hc,M.parseUserAgent=Pt,M.setUserAgent=$l,M.useDeviceData=Uo,M.useDeviceSelectors=$c,M.useMobileOrientation=Jc,M.withOrientationChange=Xc;const oi=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);oi&&document.addEventListener("touchstart",()=>{},!0);function ed(t,e,i,n){function r(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function l(p){try{u(n.next(p))}catch(y){s(y)}}function h(p){try{u(n.throw(p))}catch(y){s(y)}}function u(p){p.done?o(p.value):r(p.value).then(l,h)}u((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const ge="${label}不是一个有效的${type}",td={current:{locale:{locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",today:"今日",markItems:["一","二","三","四","五","六","日"],yearAndMonth:"${year}年${month}月"},Cascader:{placeholder:"请选择"},Dialog:{ok:"我知道了"},DatePicker:{tillNow:"至今"},ErrorBlock:{default:{title:"页面遇到一些小问题",description:"待会来试试"},busy:{title:"前方拥堵",description:"刷新试试"},disconnected:{title:"网络有点忙",description:"动动手指帮忙修复"},empty:{title:"没有找到你需要的东西",description:"找找其他的吧"}},Form:{required:"必填",optional:"选填",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:ge,method:ge,array:ge,object:ge,number:ge,date:ge,boolean:ge,integer:ge,float:ge,regexp:ge,email:ge,url:ge,hex:ge},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},ImageUploader:{uploading:"上传中...",upload:"上传"},InfiniteScroll:{noMore:"没有更多了",failedToLoad:"加载失败",retry:"重新加载"},Input:{clear:"清除"},Mask:{name:"背景蒙层"},Modal:{ok:"我知道了"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}}}};function id(){return td.current}const nd=a.createContext(null);function si(){var t;return(t=a.useContext(nd))!==null&&t!==void 0?t:id()}function qo(t,e){const i=t;for(const n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);return i}var Ho={exports:{}};/*!
11
+ (function(x,d){typeof exports=="object"&&typeof module!="undefined"?d(exports,require("react/jsx-runtime"),require("@nocobase/client"),require("react-router-dom"),require("react-i18next"),require("react"),require("@formily/react"),require("antd"),require("ahooks"),require("react-dom"),require("lodash"),require("antd-style"),require("@formily/shared"),require("@emotion/css"),require("@ant-design/icons"),require("@nocobase/utils/client"),require("@formily/antd-v5"),require("@nocobase/plugin-acl/client"),require("@formily/core")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@nocobase/client","react-router-dom","react-i18next","react","@formily/react","antd","ahooks","react-dom","lodash","antd-style","@formily/shared","@emotion/css","@ant-design/icons","@nocobase/utils/client","@formily/antd-v5","@nocobase/plugin-acl/client","@formily/core"],d):(x=typeof globalThis!="undefined"?globalThis:x||self,d(x["@nocobase/plugin-mobile"]={},x.jsxRuntime,x["@nocobase/client"],x["react-router-dom"],x["react-i18next"],x.react,x["@formily/react"],x.antd,x.ahooks,x["react-dom"],x.lodash,x["antd-style"],x["@formily/shared"],x["@emotion/css"],x["@ant-design/icons"],x["@nocobase/utils"],x["@formily/antd-v5"],x["@nocobase/plugin-acl"],x["@formily/core"]))})(this,function(x,d,g,V,Je,a,D,F,X,$e,Ue,lt,ei,un,Lr,Al,Ol,Dr,Zr){"use strict";var F0=Object.defineProperty,B0=Object.defineProperties;var z0=Object.getOwnPropertyDescriptors;var dn=Object.getOwnPropertySymbols;var _l=Object.prototype.hasOwnProperty,Il=Object.prototype.propertyIsEnumerable;var zr=(x,d,g)=>d in x?F0(x,d,{enumerable:!0,configurable:!0,writable:!0,value:g}):x[d]=g,B=(x,d)=>{for(var g in d||(d={}))_l.call(d,g)&&zr(x,g,d[g]);if(dn)for(var g of dn(d))Il.call(d,g)&&zr(x,g,d[g]);return x},R=(x,d)=>B0(x,z0(d));var Rt=(x,d)=>{var g={};for(var V in x)_l.call(x,V)&&d.indexOf(V)<0&&(g[V]=x[V]);if(x!=null&&dn)for(var V of dn(x))d.indexOf(V)<0&&Il.call(x,V)&&(g[V]=x[V]);return g};var Nr=(x,d,g)=>(zr(x,typeof d!="symbol"?d+"":d,g),g);var Q=(x,d,g)=>new Promise((V,Je)=>{var a=X=>{try{F(g.next(X))}catch($e){Je($e)}},D=X=>{try{F(g.throw(X))}catch($e){Je($e)}},F=X=>X.done?V(X.value):Promise.resolve(X.value).then(a,D);F((g=g.apply(x,d)).next())});function Fl(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const ee=Fl(a),Vr="@nocobase/plugin-mobile",fn={name:Vr,version:"1.4.0-alpha.3",main:"dist/server/index.js",homepage:"https://docs.nocobase.com/handbook/mobile","homepage.zh-CN":"https://docs-cn.nocobase.com/handbook/mobile",license:"AGPL-3.0",displayName:"Mobile","displayName.zh-CN":"移动端",description:"Provides the ability to configure mobile pages.","description.zh-CN":"提供移动端页面配置的能力。",peerDependencies:{"@nocobase/client":"1.x","@nocobase/plugin-acl":"1.x","@nocobase/server":"1.x","@nocobase/test":"1.x"},devDependencies:{"@ant-design/icons":"5.x","@emotion/css":"11.x","@formily/antd-v5":"1.x","@formily/core":"2.x","@formily/react":"2.x","@formily/shared":"2.x","@types/react":"17.x","@types/react-dom":"17.x",ahooks:"3.x",antd:"5.x","antd-mobile":"^5.38",lodash:"4.x","re-resizable":"6.6.0","react-device-detect":"2.2.3","react-i18next":"11.x"}};function de(){return Je.useTranslation([fn.name,"client"],{nsMode:"fallback"})}function Z(t){return`{{t('${t}', { ns: ['${fn.name}', 'client'], nsMode: 'fallback' })}}`}var Bl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function jr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var M={},hn={exports:{}};(function(t,e){(function(i,n){var r="1.0.38",o="",s="?",l="function",h="undefined",u="object",p="string",y="major",c="model",m="name",f="type",b="vendor",v="version",C="architecture",S="console",w="mobile",k="tablet",P="smarttv",T="wearable",L="embedded",q=500,ne="Amazon",K="Apple",ue="ASUS",$="BlackBerry",Y="Browser",Te="Chrome",Xt="Edge",Ze="Firefox",kt="Google",on="Huawei",st="LG",ze="Microsoft",at="Motorola",Ve="Opera",Xe="Samsung",sn="Sharp",an="Sony",Ir="Xiaomi",Ar="Zebra",Sl="Facebook",kl="Chromium OS",El="Mac OS",I0=function(N,W){var O={};for(var G in N)W[G]&&W[G].length%2===0?O[G]=W[G].concat(N[G]):O[G]=N[G];return O},ln=function(N){for(var W={},O=0;O<N.length;O++)W[N[O].toUpperCase()]=N[O];return W},Cl=function(N,W){return typeof N===p?Jt(W).indexOf(Jt(N))!==-1:!1},Jt=function(N){return N.toLowerCase()},A0=function(N){return typeof N===p?N.replace(/[^\d\.]/g,o).split(".")[0]:n},Or=function(N,W){if(typeof N===p)return N=N.replace(/^\s\s*/,o),typeof W===h?N:N.substring(0,q)},$t=function(N,W){for(var O=0,G,je,Ne,j,I,Le;O<W.length&&!I;){var Br=W[O],Tl=W[O+1];for(G=je=0;G<Br.length&&!I&&Br[G];)if(I=Br[G++].exec(N),I)for(Ne=0;Ne<Tl.length;Ne++)Le=I[++je],j=Tl[Ne],typeof j===u&&j.length>0?j.length===2?typeof j[1]==l?this[j[0]]=j[1].call(this,Le):this[j[0]]=j[1]:j.length===3?typeof j[1]===l&&!(j[1].exec&&j[1].test)?this[j[0]]=Le?j[1].call(this,Le,j[2]):n:this[j[0]]=Le?Le.replace(j[1],j[2]):n:j.length===4&&(this[j[0]]=Le?j[3].call(this,Le.replace(j[1],j[2])):n):this[j]=Le||n;O+=2}},Fr=function(N,W){for(var O in W)if(typeof W[O]===u&&W[O].length>0){for(var G=0;G<W[O].length;G++)if(Cl(W[O][G],N))return O===s?n:O}else if(Cl(W[O],N))return O===s?n:O;return N},O0={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Pl={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ml={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,v],[/opios[\/ ]+([\w\.]+)/i],[v,[m,Ve+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[m,Ve+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[m,Ve]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[m,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[m,v],[/\bddg\/([\w\.]+)/i],[v,[m,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[m,"UC"+Y]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[m,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[m,"Smart Lenovo "+Y]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+)/,"$1 Secure "+Y],v],[/\bfocus\/([\w\.]+)/i],[v,[m,Ze+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[m,Ve+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[m,Ve+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[m,"MIUI "+Y]],[/fxios\/([-\w\.]+)/i],[v,[m,Ze]],[/\bqihu|(qi?ho?o?|360)browser/i],[[m,"360 "+Y]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1 "+Y],v],[/samsungbrowser\/([\w\.]+)/i],[v,[m,Xe+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],v],[/metasr[\/ ]?([\d\.]+)/i],[v,[m,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[m,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[m,v],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,Sl],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[m,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[m,Te+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,Te+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[m,"Android "+Y]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[v,Fr,O0]],[/(webkit|khtml)\/([\w\.]+)/i],[m,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[m,Ze+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[m,v],[/(cobalt)\/([\w\.]+)/i],[m,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[C,"amd64"]],[/(ia32(?=;))/i],[[C,Jt]],[/((?:i[346]|x)86)[;\)]/i],[[C,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/windows (ce|mobile); ppc;/i],[[C,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[C,/ower/,o,Jt]],[/(sun4\w)[;\)]/i],[[C,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[C,Jt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[b,Xe],[f,k]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[b,Xe],[f,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[b,K],[f,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[b,K],[f,k]],[/(macintosh);/i],[c,[b,K]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[b,sn],[f,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[b,on],[f,k]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[b,on],[f,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[b,Ir],[f,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[b,Ir],[f,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[b,"OPPO"],[f,w]],[/\b(opd2\d{3}a?) bui/i],[c,[b,"OPPO"],[f,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[b,"Vivo"],[f,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[b,"Realme"],[f,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[b,at],[f,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[b,at],[f,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[b,st],[f,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[b,st],[f,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[b,"Lenovo"],[f,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[b,"Nokia"],[f,w]],[/(pixel c)\b/i],[c,[b,kt],[f,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[b,kt],[f,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[b,an],[f,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[b,an],[f,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[b,"OnePlus"],[f,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[b,ne],[f,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[b,ne],[f,w]],[/(playbook);[-\w\),; ]+(rim)/i],[c,b,[f,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[b,$],[f,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[b,ue],[f,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[b,ue],[f,w]],[/(nexus 9)/i],[c,[b,"HTC"],[f,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[c,/_/g," "],[f,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[b,"Acer"],[f,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[b,"Meizu"],[f,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[b,"Ulefone"],[f,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[b,c,[f,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,c,[f,k]],[/(surface duo)/i],[c,[b,ze],[f,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[b,"Fairphone"],[f,w]],[/(u304aa)/i],[c,[b,"AT&T"],[f,w]],[/\bsie-(\w*)/i],[c,[b,"Siemens"],[f,w]],[/\b(rct\w+) b/i],[c,[b,"RCA"],[f,k]],[/\b(venue[\d ]{2,7}) b/i],[c,[b,"Dell"],[f,k]],[/\b(q(?:mv|ta)\w+) b/i],[c,[b,"Verizon"],[f,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[b,"Barnes & Noble"],[f,k]],[/\b(tm\d{3}\w+) b/i],[c,[b,"NuVision"],[f,k]],[/\b(k88) b/i],[c,[b,"ZTE"],[f,k]],[/\b(nx\d{3}j) b/i],[c,[b,"ZTE"],[f,w]],[/\b(gen\d{3}) b.+49h/i],[c,[b,"Swiss"],[f,w]],[/\b(zur\d{3}) b/i],[c,[b,"Swiss"],[f,k]],[/\b((zeki)?tb.*\b) b/i],[c,[b,"Zeki"],[f,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],c,[f,k]],[/\b(ns-?\w{0,9}) b/i],[c,[b,"Insignia"],[f,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[b,"NextBook"],[f,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],c,[f,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],c,[f,w]],[/\b(ph-1) /i],[c,[b,"Essential"],[f,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[b,"Envizen"],[f,k]],[/\b(trio[-\w\. ]+) b/i],[c,[b,"MachSpeed"],[f,k]],[/\btu_(1491) b/i],[c,[b,"Rotor"],[f,k]],[/(shield[\w ]+) b/i],[c,[b,"Nvidia"],[f,k]],[/(sprint) (\w+)/i],[b,c,[f,w]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[b,ze],[f,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[b,Ar],[f,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[b,Ar],[f,w]],[/smart-tv.+(samsung)/i],[b,[f,P]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[b,Xe],[f,P]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,st],[f,P]],[/(apple) ?tv/i],[b,[c,K+" TV"],[f,P]],[/crkey/i],[[c,Te+"cast"],[b,kt],[f,P]],[/droid.+aft(\w+)( bui|\))/i],[c,[b,ne],[f,P]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[b,sn],[f,P]],[/(bravia[\w ]+)( bui|\))/i],[c,[b,an],[f,P]],[/(mitv-\w{5}) bui/i],[c,[b,Ir],[f,P]],[/Hbbtv.*(technisat) (.*);/i],[b,c,[f,P]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,Or],[c,Or],[f,P]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,P]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,c,[f,S]],[/droid.+; (shield) bui/i],[c,[b,"Nvidia"],[f,S]],[/(playstation [345portablevi]+)/i],[c,[b,an],[f,S]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[b,ze],[f,S]],[/((pebble))app/i],[b,c,[f,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[b,K],[f,T]],[/droid.+; (glass) \d/i],[c,[b,kt],[f,T]],[/droid.+; (wt63?0{2,3})\)/i],[c,[b,Ar],[f,T]],[/(quest( \d| pro)?)/i],[c,[b,Sl],[f,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[f,L]],[/(aeobc)\b/i],[c,[b,ne],[f,L]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[f,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,w]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[m,Xt+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[m,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[m,[v,Fr,Pl]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,Fr,Pl],[m,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,El],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,m],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[m,v],[/\(bb(10);/i],[v,[m,$]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[m,Ze+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[m,Te+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,kl],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[m,v],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,v]]},_e=function(N,W){if(typeof N===u&&(W=N,N=n),!(this instanceof _e))return new _e(N,W).getResult();var O=typeof i!==h&&i.navigator?i.navigator:n,G=N||(O&&O.userAgent?O.userAgent:o),je=O&&O.userAgentData?O.userAgentData:n,Ne=W?I0(Ml,W):Ml,j=O&&O.userAgent==G;return this.getBrowser=function(){var I={};return I[m]=n,I[v]=n,$t.call(I,G,Ne.browser),I[y]=A0(I[v]),j&&O&&O.brave&&typeof O.brave.isBrave==l&&(I[m]="Brave"),I},this.getCPU=function(){var I={};return I[C]=n,$t.call(I,G,Ne.cpu),I},this.getDevice=function(){var I={};return I[b]=n,I[c]=n,I[f]=n,$t.call(I,G,Ne.device),j&&!I[f]&&je&&je.mobile&&(I[f]=w),j&&I[c]=="Macintosh"&&O&&typeof O.standalone!==h&&O.maxTouchPoints&&O.maxTouchPoints>2&&(I[c]="iPad",I[f]=k),I},this.getEngine=function(){var I={};return I[m]=n,I[v]=n,$t.call(I,G,Ne.engine),I},this.getOS=function(){var I={};return I[m]=n,I[v]=n,$t.call(I,G,Ne.os),j&&!I[m]&&je&&je.platform&&je.platform!="Unknown"&&(I[m]=je.platform.replace(/chrome os/i,kl).replace(/macos/i,El)),I},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return G},this.setUA=function(I){return G=typeof I===p&&I.length>q?Or(I,q):I,this},this.setUA(G),this};_e.VERSION=r,_e.BROWSER=ln([m,v,y]),_e.CPU=ln([C]),_e.DEVICE=ln([c,b,f,S,w,P,k,T,L]),_e.ENGINE=_e.OS=ln([m,v]),t.exports&&(e=t.exports=_e),e.UAParser=_e;var Et=typeof i!==h&&(i.jQuery||i.Zepto);if(Et&&!Et.ua){var cn=new _e;Et.ua=cn.getResult(),Et.ua.get=function(){return cn.getUA()},Et.ua.set=function(N){cn.setUA(N);var W=cn.getResult();for(var O in W)Et.ua[O]=W[O]}}})(typeof window=="object"?window:Bl)})(hn,hn.exports);var zl=hn.exports;Object.defineProperty(M,"__esModule",{value:!0});function Nl(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var oe=a,H=Nl(oe),Ur=zl,We=new Ur,se=We.getBrowser(),Ll=We.getCPU(),be=We.getDevice(),pn=We.getEngine(),qe=We.getOS(),Ct=We.getUA(),Wr=function(e){return We.setUA(e)},Pt=function(e){if(!e){console.error("No userAgent string was provided");return}var i=new Ur(e);return{UA:i,browser:i.getBrowser(),cpu:i.getCPU(),device:i.getDevice(),engine:i.getEngine(),os:i.getOS(),ua:i.getUA(),setUserAgent:function(r){return i.setUA(r)}}},qr=Object.freeze({ClientUAInstance:We,browser:se,cpu:Ll,device:be,engine:pn,os:qe,ua:Ct,setUa:Wr,parseUserAgent:Pt});function Hr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,n)}return i}function Dl(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?Hr(Object(i),!0).forEach(function(n){Ul(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Hr(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function Mt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mt=function(e){return typeof e}:Mt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}function Zl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vl(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function jl(t,e,i){return e&&Vl(t.prototype,e),t}function Ul(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function mn(){return mn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},mn.apply(this,arguments)}function Wl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gn(t,e)}function bn(t){return bn=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},bn(t)}function gn(t,e){return gn=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},gn(t,e)}function ql(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}function ye(t,e){if(t==null)return{};var i=ql(t,e),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ti(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hl(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ti(t)}function Kl(t,e){return Gl(t)||Yl(t,e)||Ql(t,e)||Xl()}function Gl(t){if(Array.isArray(t))return t}function Yl(t,e){var i=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var n=[],r=!0,o=!1,s,l;try{for(i=i.call(t);!(r=(s=i.next()).done)&&(n.push(s.value),!(e&&n.length===e));r=!0);}catch(h){o=!0,l=h}finally{try{!r&&i.return!=null&&i.return()}finally{if(o)throw l}}return n}}function Ql(t,e){if(t){if(typeof t=="string")return Kr(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Kr(t,e)}}function Kr(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Xl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ae={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},fe={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},ct={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},Jl={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},$l=function(e){switch(e){case ae.Mobile:return{isMobile:!0};case ae.Tablet:return{isTablet:!0};case ae.SmartTv:return{isSmartTV:!0};case ae.Console:return{isConsole:!0};case ae.Wearable:return{isWearable:!0};case ae.Browser:return{isBrowser:!0};case ae.Embedded:return{isEmbedded:!0};default:return Jl}},Rl=function(e){return Wr(e)},_=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return e||i},vn=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},yn=function(e){var i=vn();return i&&i.platform&&(i.platform.indexOf(e)!==-1||i.platform==="MacIntel"&&i.maxTouchPoints>1&&!window.MSStream)},ec=function(e,i,n,r,o){return{isBrowser:e,browserMajorVersion:_(i.major),browserFullVersion:_(i.version),browserName:_(i.name),engineName:_(n.name),engineVersion:_(n.version),osName:_(r.name),osVersion:_(r.version),userAgent:_(o)}},Gr=function(e,i,n,r){return Dl({},e,{vendor:_(i.vendor),model:_(i.model),os:_(n.name),osVersion:_(n.version),ua:_(r)})},tc=function(e,i,n,r){return{isSmartTV:e,engineName:_(i.name),engineVersion:_(i.version),osName:_(n.name),osVersion:_(n.version),userAgent:_(r)}},ic=function(e,i,n,r){return{isConsole:e,engineName:_(i.name),engineVersion:_(i.version),osName:_(n.name),osVersion:_(n.version),userAgent:_(r)}},nc=function(e,i,n,r){return{isWearable:e,engineName:_(i.name),engineVersion:_(i.version),osName:_(n.name),osVersion:_(n.version),userAgent:_(r)}},rc=function(e,i,n,r,o){return{isEmbedded:e,vendor:_(i.vendor),model:_(i.model),engineName:_(n.name),engineVersion:_(n.version),osName:_(r.name),osVersion:_(r.version),userAgent:_(o)}};function oc(t){var e=t?Pt(t):qr,i=e.device,n=e.browser,r=e.engine,o=e.os,s=e.ua,l=$l(i.type),h=l.isBrowser,u=l.isMobile,p=l.isTablet,y=l.isSmartTV,c=l.isConsole,m=l.isWearable,f=l.isEmbedded;if(h)return ec(h,n,r,o,s);if(y)return tc(y,r,o,s);if(c)return ic(c,r,o,s);if(u||p)return Gr(l,i,o,s);if(m)return nc(m,r,o,s);if(f)return rc(f,i,r,o,s)}var Yr=function(e){var i=e.type;return i===ae.Mobile},Qr=function(e){var i=e.type;return i===ae.Tablet},Xr=function(e){var i=e.type;return i===ae.Mobile||i===ae.Tablet},Jr=function(e){var i=e.type;return i===ae.SmartTv},ii=function(e){var i=e.type;return i===ae.Browser},$r=function(e){var i=e.type;return i===ae.Wearable},Rr=function(e){var i=e.type;return i===ae.Console},eo=function(e){var i=e.type;return i===ae.Embedded},to=function(e){var i=e.vendor;return _(i)},io=function(e){var i=e.model;return _(i)},no=function(e){var i=e.type;return _(i,"browser")},ro=function(e){var i=e.name;return i===ct.Android},oo=function(e){var i=e.name;return i===ct.Windows},so=function(e){var i=e.name;return i===ct.MAC_OS},ao=function(e){var i=e.name;return i===ct.WindowsPhone},lo=function(e){var i=e.name;return i===ct.IOS},co=function(e){var i=e.version;return _(i)},uo=function(e){var i=e.name;return _(i)},fo=function(e){var i=e.name;return i===fe.Chrome},ho=function(e){var i=e.name;return i===fe.Firefox},po=function(e){var i=e.name;return i===fe.Chromium},ni=function(e){var i=e.name;return i===fe.Edge},mo=function(e){var i=e.name;return i===fe.Yandex},bo=function(e){var i=e.name;return i===fe.Safari||i===fe.MobileSafari},go=function(e){var i=e.name;return i===fe.MobileSafari},vo=function(e){var i=e.name;return i===fe.Opera},yo=function(e){var i=e.name;return i===fe.InternetExplorer||i===fe.Ie},wo=function(e){var i=e.name;return i===fe.MIUI},xo=function(e){var i=e.name;return i===fe.SamsungBrowser},So=function(e){var i=e.version;return _(i)},ko=function(e){var i=e.major;return _(i)},Eo=function(e){var i=e.name;return _(i)},Co=function(e){var i=e.name;return _(i)},Po=function(e){var i=e.version;return _(i)},Mo=function(){var e=vn(),i=e&&e.userAgent&&e.userAgent.toLowerCase();return typeof i=="string"?/electron/.test(i):!1},dt=function(e){return typeof e=="string"&&e.indexOf("Edg/")!==-1},To=function(){var e=vn();return e&&(/iPad|iPhone|iPod/.test(e.platform)||e.platform==="MacIntel"&&e.maxTouchPoints>1)&&!window.MSStream},Ie=function(){return yn("iPad")},_o=function(){return yn("iPhone")},Io=function(){return yn("iPod")},Ao=function(e){return _(e)};function Oo(t){var e=t||qr,i=e.device,n=e.browser,r=e.os,o=e.engine,s=e.ua;return{isSmartTV:Jr(i),isConsole:Rr(i),isWearable:$r(i),isEmbedded:eo(i),isMobileSafari:go(n)||Ie(),isChromium:po(n),isMobile:Xr(i)||Ie(),isMobileOnly:Yr(i),isTablet:Qr(i)||Ie(),isBrowser:ii(i),isDesktop:ii(i),isAndroid:ro(r),isWinPhone:ao(r),isIOS:lo(r)||Ie(),isChrome:fo(n),isFirefox:ho(n),isSafari:bo(n),isOpera:vo(n),isIE:yo(n),osVersion:co(r),osName:uo(r),fullBrowserVersion:So(n),browserVersion:ko(n),browserName:Eo(n),mobileVendor:to(i),mobileModel:io(i),engineName:Co(o),engineVersion:Po(o),getUA:Ao(s),isEdge:ni(n)||dt(s),isYandex:mo(n),deviceType:no(i),isIOS13:To(),isIPad13:Ie(),isIPhone13:_o(),isIPod13:Io(),isElectron:Mo(),isEdgeChromium:dt(s),isLegacyEdge:ni(n)&&!dt(s),isWindows:oo(r),isMacOs:so(r),isMIUI:wo(n),isSamsungBrowser:xo(n)}}var Fo=Jr(be),Bo=Rr(be),zo=$r(be),sc=eo(be),ac=go(se)||Ie(),lc=po(se),ri=Xr(be)||Ie(),No=Yr(be),Lo=Qr(be)||Ie(),Do=ii(be),cc=ii(be),Zo=ro(qe),Vo=ao(qe),jo=lo(qe)||Ie(),dc=fo(se),uc=ho(se),fc=bo(se),hc=vo(se),Uo=yo(se),pc=co(qe),mc=uo(qe),bc=So(se),gc=ko(se),vc=Eo(se),yc=to(be),wc=io(be),xc=Co(pn),Sc=Po(pn),kc=Ao(Ct),Ec=ni(se)||dt(Ct),Cc=mo(se),Pc=no(be),Mc=To(),Tc=Ie(),_c=_o(),Ic=Io(),Ac=Mo(),Oc=dt(Ct),Fc=ni(se)&&!dt(Ct),Bc=oo(qe),zc=so(qe),Nc=wo(se),Lc=xo(se),Dc=function(e){if(!e||typeof e!="string"){console.error("No valid user agent string was provided");return}var i=Pt(e),n=i.device,r=i.browser,o=i.os,s=i.engine,l=i.ua;return Oo({device:n,browser:r,os:o,engine:s,ua:l})},Zc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Zo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Vc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Do?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},jc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Uo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Uc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return jo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Wc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return ri?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},qc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Lo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Hc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Vo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Kc=function(e){var i=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=ye(e,["renderWithFragment","children","viewClassName","style"]);return No?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Gc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Fo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Yc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Bo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Qc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return zo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Xc=function(e){var i=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=e.condition,o=ye(e,["renderWithFragment","children","viewClassName","style","condition"]);return r?i?H.createElement(oe.Fragment,null,n):H.createElement("div",o,n):null};function Jc(t){return function(e){Wl(i,e);function i(n){var r;return Zl(this,i),r=Hl(this,bn(i).call(this,n)),r.isEventListenerAdded=!1,r.handleOrientationChange=r.handleOrientationChange.bind(ti(r)),r.onOrientationChange=r.onOrientationChange.bind(ti(r)),r.onPageLoad=r.onPageLoad.bind(ti(r)),r.state={isLandscape:!1,isPortrait:!1},r}return jl(i,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var r=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:r===0,isLandscape:r===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":Mt(window))!==void 0&&ri&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return H.createElement(t,mn({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),i}(H.Component)}function $c(){var t=oe.useState(function(){var o=window.innerWidth>window.innerHeight?90:0;return{isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"}}),e=Kl(t,2),i=e[0],n=e[1],r=oe.useCallback(function(){var o=window.innerWidth>window.innerHeight?90:0,s={isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"};i.orientation!==s.orientation&&n(s)},[i.orientation]);return oe.useEffect(function(){return(typeof window=="undefined"?"undefined":Mt(window))!==void 0&&ri&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}},[r]),i}function Wo(t){var e=t||window.navigator.userAgent;return Pt(e)}function Rc(t){var e=t||window.navigator.userAgent,i=Wo(e),n=Oo(i);return[n,i]}M.AndroidView=Zc,M.BrowserTypes=fe,M.BrowserView=Vc,M.ConsoleView=Yc,M.CustomView=Xc,M.IEView=jc,M.IOSView=Uc,M.MobileOnlyView=Kc,M.MobileView=Wc,M.OsTypes=ct,M.SmartTVView=Gc,M.TabletView=qc,M.WearableView=Qc,M.WinPhoneView=Hc,M.browserName=vc,M.browserVersion=gc,M.deviceDetect=oc,M.deviceType=Pc,M.engineName=xc,M.engineVersion=Sc,M.fullBrowserVersion=bc,M.getSelectorsByUserAgent=Dc,M.getUA=kc,M.isAndroid=Zo,M.isBrowser=Do,M.isChrome=dc,M.isChromium=lc,M.isConsole=Bo;var qo=M.isDesktop=cc;M.isEdge=Ec,M.isEdgeChromium=Oc,M.isElectron=Ac,M.isEmbedded=sc,M.isFirefox=uc,M.isIE=Uo,M.isIOS=jo,M.isIOS13=Mc,M.isIPad13=Tc,M.isIPhone13=_c,M.isIPod13=Ic,M.isLegacyEdge=Fc,M.isMIUI=Nc,M.isMacOs=zc;var ed=M.isMobile=ri;M.isMobileOnly=No,M.isMobileSafari=ac,M.isOpera=hc,M.isSafari=fc,M.isSamsungBrowser=Lc,M.isSmartTV=Fo,M.isTablet=Lo,M.isWearable=zo,M.isWinPhone=Vo,M.isWindows=Bc,M.isYandex=Cc,M.mobileModel=wc,M.mobileVendor=yc,M.osName=mc,M.osVersion=pc,M.parseUserAgent=Pt,M.setUserAgent=Rl,M.useDeviceData=Wo,M.useDeviceSelectors=Rc,M.useMobileOrientation=$c,M.withOrientationChange=Jc;const oi=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);oi&&document.addEventListener("touchstart",()=>{},!0);function td(t,e,i,n){function r(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function l(p){try{u(n.next(p))}catch(y){s(y)}}function h(p){try{u(n.throw(p))}catch(y){s(y)}}function u(p){p.done?o(p.value):r(p.value).then(l,h)}u((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const ge="${label}不是一个有效的${type}",id={current:{locale:{locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",today:"今日",markItems:["一","二","三","四","五","六","日"],yearAndMonth:"${year}年${month}月"},Cascader:{placeholder:"请选择"},Dialog:{ok:"我知道了"},DatePicker:{tillNow:"至今"},ErrorBlock:{default:{title:"页面遇到一些小问题",description:"待会来试试"},busy:{title:"前方拥堵",description:"刷新试试"},disconnected:{title:"网络有点忙",description:"动动手指帮忙修复"},empty:{title:"没有找到你需要的东西",description:"找找其他的吧"}},Form:{required:"必填",optional:"选填",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:ge,method:ge,array:ge,object:ge,number:ge,date:ge,boolean:ge,integer:ge,float:ge,regexp:ge,email:ge,url:ge,hex:ge},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},ImageUploader:{uploading:"上传中...",upload:"上传"},InfiniteScroll:{noMore:"没有更多了",failedToLoad:"加载失败",retry:"重新加载"},Input:{clear:"清除"},Mask:{name:"背景蒙层"},Modal:{ok:"我知道了"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}}}};function nd(){return id.current}const rd=a.createContext(null);function si(){var t;return(t=a.useContext(rd))!==null&&t!==void 0?t:nd()}function Ho(t,e){const i=t;for(const n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);return i}var Ko={exports:{}};/*!
13
13
  Copyright (c) 2018 Jed Watson.
14
14
  Licensed under the MIT License (MIT), see
15
15
  http://jedwatson.github.io/classnames
16
- */(function(t){(function(){var e={}.hasOwnProperty;function i(){for(var o="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(o=r(o,n(l)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return i.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var l in o)e.call(o,l)&&o[l]&&(s=r(s,l));return s}function r(o,s){return s?o?o+" "+s:o+s:o}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(Ho);var rd=Ho.exports;const te=Vr(rd);function Ce(t,e){const i=Object.assign({},e.props);t.className&&(i.className=te(e.props.className,t.className)),t.style&&(i.style=Object.assign(Object.assign({},i.style),t.style)),t.tabIndex!==void 0&&(i.tabIndex=t.tabIndex);for(const n in t)t.hasOwnProperty(n)&&(n.startsWith("data-")||n.startsWith("aria-"))&&(i[n]=t[n]);return a.cloneElement(e,i)}function He(...t){const e={};return t.forEach(i=>{i&&Object.keys(i).forEach(n=>{i[n]!==void 0&&(e[n]=i[n])})}),e}function od(t,...e){for(let i=e.length-1;i>=0;i-=1)if(e[i]!==void 0)return e[i];return t}const Ko=10;function sd(t,e){return t>e&&t>Ko?"horizontal":e>t&&e>Ko?"vertical":""}function ad(){const t=a.useRef(0),e=a.useRef(0),i=a.useRef(0),n=a.useRef(0),r=a.useRef(0),o=a.useRef(0),s=a.useRef(""),l=()=>s.current==="vertical",h=()=>s.current==="horizontal",u=()=>{i.current=0,n.current=0,r.current=0,o.current=0,s.current=""};return{move:c=>{const m=c.touches[0];i.current=m.clientX<0?0:m.clientX-t.current,n.current=m.clientY-e.current,r.current=Math.abs(i.current),o.current=Math.abs(n.current),s.current||(s.current=sd(r.current,o.current))},start:c=>{u(),t.current=c.touches[0].clientX,e.current=c.touches[0].clientY},reset:u,startX:t,startY:e,deltaX:i,deltaY:n,offsetX:r,offsetY:o,direction:s,isVertical:l,isHorizontal:h}}const ld=oi?window:void 0,cd=["scroll","auto","overlay"];function dd(t){return t.nodeType===1}function ud(t,e=ld){let i=t;for(;i&&i!==e&&dd(i);){if(i===document.body)return e;const{overflowY:n}=window.getComputedStyle(i);if(cd.includes(n)&&i.scrollHeight>i.clientHeight)return i;i=i.parentNode}return e}let wn=!1;if(oi)try{const t={};Object.defineProperty(t,"passive",{get(){wn=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}let Tt=0;const Go="adm-overflow-hidden";function fd(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function Yo(t,e){const i=ad(),n=s=>{i.move(s);const l=i.deltaY.current>0?"10":"01",h=ud(s.target,t.current);if(!h)return;if(e==="strict"){const f=fd(s.target);if(f===document.body||f===document.documentElement){s.preventDefault();return}}const{scrollHeight:u,offsetHeight:p,scrollTop:y}=h,{height:c}=h.getBoundingClientRect();let m="11";y===0?m=p>=u?"00":"01":u<=Math.round(c+y)&&(m="10"),m!=="11"&&i.isVertical()&&!(parseInt(m,2)&parseInt(l,2))&&s.cancelable&&wn&&s.preventDefault()},r=()=>{document.addEventListener("touchstart",i.start),document.addEventListener("touchmove",n,wn?{passive:!1}:!1),Tt||document.body.classList.add(Go),Tt++},o=()=>{Tt&&(document.removeEventListener("touchstart",i.start),document.removeEventListener("touchmove",n),Tt--,Tt||document.body.classList.remove(Go))};a.useEffect(()=>{if(e)return r(),()=>{o()}},[e])}let xn=It();const A=t=>_t(t,xn);let Sn=It();A.write=t=>_t(t,Sn);let ai=It();A.onStart=t=>_t(t,ai);let kn=It();A.onFrame=t=>_t(t,kn);let En=It();A.onFinish=t=>_t(t,En);let ut=[];A.setTimeout=(t,e)=>{let i=A.now()+e,n=()=>{let o=ut.findIndex(s=>s.cancel==n);~o&&ut.splice(o,1),Ge-=~o?1:0},r={time:i,handler:t,cancel:n};return ut.splice(Qo(i),0,r),Ge+=1,Xo(),r};let Qo=t=>~(~ut.findIndex(e=>e.time>t)||~ut.length);A.cancel=t=>{ai.delete(t),kn.delete(t),En.delete(t),xn.delete(t),Sn.delete(t)},A.sync=t=>{Pn=!0,A.batchedUpdates(t),Pn=!1},A.throttle=t=>{let e;function i(){try{t(...e)}finally{e=null}}function n(...r){e=r,A.onStart(i)}return n.handler=t,n.cancel=()=>{ai.delete(i),e=null},n};let Cn=typeof window!="undefined"?window.requestAnimationFrame:()=>{};A.use=t=>Cn=t,A.now=typeof performance!="undefined"?()=>performance.now():Date.now,A.batchedUpdates=t=>t(),A.catch=console.error,A.frameLoop="always",A.advance=()=>{A.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):$o()};let Ke=-1,Ge=0,Pn=!1;function _t(t,e){Pn?(e.delete(t),t(0)):(e.add(t),Xo())}function Xo(){Ke<0&&(Ke=0,A.frameLoop!=="demand"&&Cn(Jo))}function hd(){Ke=-1}function Jo(){~Ke&&(Cn(Jo),A.batchedUpdates($o))}function $o(){let t=Ke;Ke=A.now();let e=Qo(Ke);if(e&&(Ro(ut.splice(0,e),i=>i.handler()),Ge-=e),!Ge){hd();return}ai.flush(),xn.flush(t?Math.min(64,Ke-t):16.667),kn.flush(),Sn.flush(),En.flush()}function It(){let t=new Set,e=t;return{add(i){Ge+=e==t&&!t.has(i)?1:0,t.add(i)},delete(i){return Ge-=e==t&&t.has(i)?1:0,t.delete(i)},flush(i){e.size&&(t=new Set,Ge-=e.size,Ro(e,n=>n(i)&&t.add(n)),Ge+=t.size,e=t)}}}function Ro(t,e){t.forEach(i=>{try{e(i)}catch(n){A.catch(n)}})}function Mn(){}const pd=(t,e,i)=>Object.defineProperty(t,e,{value:i,writable:!0,configurable:!0}),E={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function De(t,e){if(E.arr(t)){if(!E.arr(e)||t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}return t===e}const z=(t,e)=>t.forEach(e);function Ae(t,e,i){if(E.arr(t)){for(let n=0;n<t.length;n++)e.call(i,t[n],`${n}`);return}for(const n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n)}const ve=t=>E.und(t)?[]:E.arr(t)?t:[t];function At(t,e){if(t.size){const i=Array.from(t);t.clear(),z(i,e)}}const Ot=(t,...e)=>At(t,i=>i(...e)),Tn=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let _n,es,Ye=null,ts=!1,In=Mn;var Oe=Object.freeze({__proto__:null,get createStringInterpolator(){return _n},get to(){return es},get colors(){return Ye},get skipAnimation(){return ts},get willAdvance(){return In},assign:t=>{t.to&&(es=t.to),t.now&&(A.now=t.now),t.colors!==void 0&&(Ye=t.colors),t.skipAnimation!=null&&(ts=t.skipAnimation),t.createStringInterpolator&&(_n=t.createStringInterpolator),t.requestAnimationFrame&&A.use(t.requestAnimationFrame),t.batchedUpdates&&(A.batchedUpdates=t.batchedUpdates),t.willAdvance&&(In=t.willAdvance),t.frameLoop&&(A.frameLoop=t.frameLoop)}});const Ft=new Set;let we=[],An=[],li=0;const ci={get idle(){return!Ft.size&&!we.length},start(t){li>t.priority?(Ft.add(t),A.onStart(md)):(is(t),A(On))},advance:On,sort(t){if(li)A.onFrame(()=>ci.sort(t));else{const e=we.indexOf(t);~e&&(we.splice(e,1),ns(t))}},clear(){we=[],Ft.clear()}};function md(){Ft.forEach(is),Ft.clear(),A(On)}function is(t){we.includes(t)||ns(t)}function ns(t){we.splice(bd(we,e=>e.priority>t.priority),0,t)}function On(t){const e=An;for(let i=0;i<we.length;i++){const n=we[i];li=n.priority,n.idle||(In(n),n.advance(t),n.idle||e.push(n))}return li=0,An=we,An.length=0,we=e,we.length>0}function bd(t,e){const i=t.findIndex(e);return i<0?t.length:i}const gd=(t,e,i)=>Math.min(Math.max(i,t),e),vd={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},Pe="[-+]?\\d*\\.?\\d+",di=Pe+"%";function ui(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const yd=new RegExp("rgb"+ui(Pe,Pe,Pe)),wd=new RegExp("rgba"+ui(Pe,Pe,Pe,Pe)),xd=new RegExp("hsl"+ui(Pe,di,di)),Sd=new RegExp("hsla"+ui(Pe,di,di,Pe)),kd=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ed=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cd=/^#([0-9a-fA-F]{6})$/,Pd=/^#([0-9a-fA-F]{8})$/;function Md(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Cd.exec(t))?parseInt(e[1]+"ff",16)>>>0:Ye&&Ye[t]!==void 0?Ye[t]:(e=yd.exec(t))?(ft(e[1])<<24|ft(e[2])<<16|ft(e[3])<<8|255)>>>0:(e=wd.exec(t))?(ft(e[1])<<24|ft(e[2])<<16|ft(e[3])<<8|ss(e[4]))>>>0:(e=kd.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Pd.exec(t))?parseInt(e[1],16)>>>0:(e=Ed.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=xd.exec(t))?(rs(os(e[1]),fi(e[2]),fi(e[3]))|255)>>>0:(e=Sd.exec(t))?(rs(os(e[1]),fi(e[2]),fi(e[3]))|ss(e[4]))>>>0:null}function Fn(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function rs(t,e,i){const n=i<.5?i*(1+e):i+e-i*e,r=2*i-n,o=Fn(r,n,t+1/3),s=Fn(r,n,t),l=Fn(r,n,t-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(l*255)<<8}function ft(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function os(t){return(parseFloat(t)%360+360)%360/360}function ss(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function fi(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function as(t){let e=Md(t);if(e===null)return t;e=e||0;let i=(e&4278190080)>>>24,n=(e&16711680)>>>16,r=(e&65280)>>>8,o=(e&255)/255;return`rgba(${i}, ${n}, ${r}, ${o})`}const Bt=(t,e,i)=>{if(E.fun(t))return t;if(E.arr(t))return Bt({range:t,output:e,extrapolate:i});if(E.str(t.output[0]))return _n(t);const n=t,r=n.output,o=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",l=n.extrapolateRight||n.extrapolate||"extend",h=n.easing||(u=>u);return u=>{const p=_d(u,o);return Td(u,o[p],o[p+1],r[p],r[p+1],h,s,l,n.map)}};function Td(t,e,i,n,r,o,s,l,h){let u=h?h(t):t;if(u<e){if(s==="identity")return u;s==="clamp"&&(u=e)}if(u>i){if(l==="identity")return u;l==="clamp"&&(u=i)}return n===r?n:e===i?t<=e?n:r:(e===-1/0?u=-u:i===1/0?u=u-e:u=(u-e)/(i-e),u=o(u),n===-1/0?u=-u:r===1/0?u=u+n:u=u*(r-n)+n,u)}function _d(t,e){for(var i=1;i<e.length-1&&!(e[i]>=t);++i);return i-1}const Id=(t,e="end")=>i=>{i=e==="end"?Math.min(i,.999):Math.max(i,.001);const n=i*t,r=e==="end"?Math.floor(n):Math.ceil(n);return gd(0,1,r/t)},hi=1.70158,pi=hi*1.525,ls=hi+1,cs=2*Math.PI/3,ds=2*Math.PI/4.5,mi=t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,Ad={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>t===0?0:Math.pow(2,10*t-10),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>ls*t*t*t-hi*t*t,easeOutBack:t=>1+ls*Math.pow(t-1,3)+hi*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*((pi+1)*2*t-pi)/2:(Math.pow(2*t-2,2)*((pi+1)*(t*2-2)+pi)+2)/2,easeInElastic:t=>t===0?0:t===1?1:-Math.pow(2,10*t-10)*Math.sin((t*10-10.75)*cs),easeOutElastic:t=>t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t*10-.75)*cs)+1,easeInOutElastic:t=>t===0?0:t===1?1:t<.5?-(Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*ds))/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*ds)/2+1,easeInBounce:t=>1-mi(1-t),easeOutBounce:mi,easeInOutBounce:t=>t<.5?(1-mi(1-2*t))/2:(1+mi(2*t-1))/2,steps:Id};function Bn(){return Bn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Bn.apply(this,arguments)}const ht=Symbol.for("FluidValue.get"),Re=Symbol.for("FluidValue.observers"),xe=t=>!!(t&&t[ht]),he=t=>t&&t[ht]?t[ht]():t,us=t=>t[Re]||null;function Od(t,e){t.eventObserved?t.eventObserved(e):t(e)}function zt(t,e){let i=t[Re];i&&i.forEach(n=>{Od(n,e)})}class fs{constructor(e){if(this[ht]=void 0,this[Re]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Fd(this,e)}}const Fd=(t,e)=>hs(t,ht,e);function pt(t,e){if(t[ht]){let i=t[Re];i||hs(t,Re,i=new Set),i.has(e)||(i.add(e),t.observerAdded&&t.observerAdded(i.size,e))}return e}function Nt(t,e){let i=t[Re];if(i&&i.has(e)){const n=i.size-1;n?i.delete(e):t[Re]=null,t.observerRemoved&&t.observerRemoved(n,e)}}const hs=(t,e,i)=>Object.defineProperty(t,e,{value:i,writable:!0,configurable:!0}),bi=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Bd=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ps=new RegExp(`(${bi.source})(%|[a-z]+)`,"i"),zd=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,gi=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ms=t=>{const[e,i]=Nd(t);if(!e||Tn())return t;const n=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(n)return n.trim();if(i&&i.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(i);return r||t}else{if(i&&gi.test(i))return ms(i);if(i)return i}return t},Nd=t=>{const e=gi.exec(t);if(!e)return[,];const[,i,n]=e;return[i,n]};let zn;const Ld=(t,e,i,n,r)=>`rgba(${Math.round(e)}, ${Math.round(i)}, ${Math.round(n)}, ${r})`,bs=t=>{zn||(zn=Ye?new RegExp(`(${Object.keys(Ye).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(o=>he(o).replace(gi,ms).replace(Bd,as).replace(zn,as)),i=e.map(o=>o.match(bi).map(Number)),r=i[0].map((o,s)=>i.map(l=>{if(!(s in l))throw Error('The arity of each "output" value must be equal');return l[s]})).map(o=>Bt(Bn({},t,{output:o})));return o=>{var s;const l=!ps.test(e[0])&&((s=e.find(u=>ps.test(u)))==null?void 0:s.replace(bi,""));let h=0;return e[0].replace(bi,()=>`${r[h++](o)}${l||""}`).replace(zd,Ld)}},Nn="react-spring: ",gs=t=>{const e=t;let i=!1;if(typeof e!="function")throw new TypeError(`${Nn}once requires a function parameter`);return(...n)=>{i||(e(...n),i=!0)}},Dd=gs(console.warn);function Zd(){Dd(`${Nn}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Vd=gs(console.warn);function jd(){Vd(`${Nn}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 vi(t){return E.str(t)&&(t[0]=="#"||/\d/.test(t)||!Tn()&&gi.test(t)||t in(Ye||{}))}const Ln=Tn()?a.useEffect:a.useLayoutEffect,Ud=()=>{const t=a.useRef(!1);return Ln(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function vs(){const t=a.useState()[1],e=Ud();return()=>{e.current&&t(Math.random())}}function Wd(t,e){const[i]=a.useState(()=>({inputs:e,result:t()})),n=a.useRef(),r=n.current;let o=r;return o?e&&o.inputs&&qd(e,o.inputs)||(o={inputs:e,result:t()}):o=i,a.useEffect(()=>{n.current=o,r==i&&(i.inputs=i.result=void 0)},[o]),o.result}function qd(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const ys=t=>a.useEffect(t,Hd),Hd=[];function ws(t){const e=a.useRef();return a.useEffect(()=>{e.current=t}),e.current}const Lt=Symbol.for("Animated:node"),Kd=t=>!!t&&t[Lt]===t,Fe=t=>t&&t[Lt],Dn=(t,e)=>pd(t,Lt,e),yi=t=>t&&t[Lt]&&t[Lt].getPayload();class xs{constructor(){this.payload=void 0,Dn(this,this)}getPayload(){return this.payload||[]}}class mt extends xs{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,E.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new mt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,i){return E.num(e)&&(this.lastPosition=e,i&&(e=Math.round(e/i)*i,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,E.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class bt extends mt{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Bt({output:[e,e]})}static create(e){return new bt(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(E.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Bt({output:[this.getValue(),e]})),this._value=0,super.reset()}}const wi={dependencies:null};class xi extends xs{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const i={};return Ae(this.source,(n,r)=>{Kd(n)?i[r]=n.getValue(e):xe(n)?i[r]=he(n):e||(i[r]=n)}),i}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&z(this.payload,e=>e.reset())}_makePayload(e){if(e){const i=new Set;return Ae(e,this._addToPayload,i),Array.from(i)}}_addToPayload(e){wi.dependencies&&xe(e)&&wi.dependencies.add(e);const i=yi(e);i&&z(i,n=>this.add(n))}}class Zn extends xi{constructor(e){super(e)}static create(e){return new Zn(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const i=this.getPayload();return e.length==i.length?i.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Gd)),!0)}}function Gd(t){return(vi(t)?bt:mt).create(t)}function Vn(t){const e=Fe(t);return e?e.constructor:E.arr(t)?Zn:vi(t)?bt:mt}function Si(){return Si=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Si.apply(this,arguments)}const Ss=(t,e)=>{const i=!E.fun(t)||t.prototype&&t.prototype.isReactComponent;return a.forwardRef((n,r)=>{const o=a.useRef(null),s=i&&a.useCallback(f=>{o.current=Xd(r,f)},[r]),[l,h]=Qd(n,e),u=vs(),p=()=>{const f=o.current;if(i&&!f)return;(f?e.applyAnimatedValues(f,l.getValue(!0)):!1)===!1&&u()},y=new Yd(p,h),c=a.useRef();Ln(()=>(c.current=y,z(h,f=>pt(f,y)),()=>{c.current&&(z(c.current.deps,f=>Nt(f,c.current)),A.cancel(c.current.update))})),a.useEffect(p,[]),ys(()=>()=>{const f=c.current;z(f.deps,b=>Nt(b,f))});const m=e.getComponentProps(l.getValue());return ee.createElement(t,Si({},m,{ref:s}))})};class Yd{constructor(e,i){this.update=e,this.deps=i}eventObserved(e){e.type=="change"&&A.write(this.update)}}function Qd(t,e){const i=new Set;return wi.dependencies=i,t.style&&(t=Si({},t,{style:e.createAnimatedStyle(t.style)})),t=new xi(t),wi.dependencies=null,[t,i]}function Xd(t,e){return t&&(E.fun(t)?t(e):t.current=e),e}const ks=Symbol.for("AnimatedComponent"),Jd=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:i=r=>new xi(r),getComponentProps:n=r=>r}={})=>{const r={applyAnimatedValues:e,createAnimatedStyle:i,getComponentProps:n},o=s=>{const l=Es(s)||"Anonymous";return E.str(s)?s=o[s]||(o[s]=Ss(s,r)):s=s[ks]||(s[ks]=Ss(s,r)),s.displayName=`Animated(${l})`,s};return Ae(t,(s,l)=>{E.arr(t)&&(l=Es(s)),o[l]=o(s)}),{animated:o}},Es=t=>E.str(t)?t:t&&E.str(t.displayName)?t.displayName:E.fun(t)&&t.name||null;function ie(){return ie=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},ie.apply(this,arguments)}function et(t,...e){return E.fun(t)?t(...e):t}const Dt=(t,e)=>t===!0||!!(e&&t&&(E.fun(t)?t(e):ve(t).includes(e))),Cs=(t,e)=>E.obj(t)?e&&t[e]:t,Ps=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,$d=t=>t,jn=(t,e=$d)=>{let i=Rd;t.default&&t.default!==!0&&(t=t.default,i=Object.keys(t));const n={};for(const r of i){const o=e(t[r],r);E.und(o)||(n[r]=o)}return n},Rd=["config","onProps","onStart","onChange","onPause","onResume","onRest"],eu={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 tu(t){const e={};let i=0;if(Ae(t,(n,r)=>{eu[r]||(e[r]=n,i++)}),i)return e}function Ms(t){const e=tu(t);if(e){const i={to:e};return Ae(t,(n,r)=>r in e||(i[r]=n)),i}return ie({},t)}function Zt(t){return t=he(t),E.arr(t)?t.map(Zt):vi(t)?Oe.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function iu(t){for(const e in t)return!0;return!1}function Un(t){return E.fun(t)||E.arr(t)&&E.obj(t[0])}function nu(t,e){var i;(i=t.ref)==null||i.delete(t),e==null||e.delete(t)}function ru(t,e){if(e&&t.ref!==e){var i;(i=t.ref)==null||i.delete(t),e.add(t),t.ref=e}}const Wn=ie({},{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}}.default,{mass:1,damping:1,easing:Ad.linear,clamp:!1});class ou{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Wn)}}function su(t,e,i){i&&(i=ie({},i),Ts(i,e),e=ie({},i,e)),Ts(t,e),Object.assign(t,e);for(const s in Wn)t[s]==null&&(t[s]=Wn[s]);let{mass:n,frequency:r,damping:o}=t;return E.und(r)||(r<.01&&(r=.01),o<0&&(o=0),t.tension=Math.pow(2*Math.PI/r,2)*n,t.friction=4*Math.PI*o*n/r),t}function Ts(t,e){if(!E.und(e.decay))t.duration=void 0;else{const i=!E.und(e.tension)||!E.und(e.friction);(i||!E.und(e.frequency)||!E.und(e.damping)||!E.und(e.mass))&&(t.duration=void 0,t.decay=void 0),i&&(t.frequency=void 0)}}const _s=[];class au{constructor(){this.changed=!1,this.values=_s,this.toValues=null,this.fromValues=_s,this.to=void 0,this.from=void 0,this.config=new ou,this.immediate=!1}}function Is(t,{key:e,props:i,defaultProps:n,state:r,actions:o}){return new Promise((s,l)=>{var h;let u,p,y=Dt((h=i.cancel)!=null?h:n==null?void 0:n.cancel,e);if(y)f();else{E.und(i.pause)||(r.paused=Dt(i.pause,e));let b=n==null?void 0:n.pause;b!==!0&&(b=r.paused||Dt(b,e)),u=et(i.delay||0,e),b?(r.resumeQueue.add(m),o.pause()):(o.resume(),m())}function c(){r.resumeQueue.add(m),r.timeouts.delete(p),p.cancel(),u=p.time-A.now()}function m(){u>0&&!Oe.skipAnimation?(r.delayed=!0,p=A.setTimeout(f,u),r.pauseQueue.add(c),r.timeouts.add(p)):f()}function f(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(c),r.timeouts.delete(p),t<=(r.cancelId||0)&&(y=!0);try{o.start(ie({},i,{callId:t,cancel:y}),s)}catch(b){l(b)}}})}const qn=(t,e)=>e.length==1?e[0]:e.some(i=>i.cancelled)?gt(t.get()):e.every(i=>i.noop)?As(t.get()):Me(t.get(),e.every(i=>i.finished)),As=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Me=(t,e,i=!1)=>({value:t,finished:e,cancelled:i}),gt=t=>({value:t,cancelled:!0,finished:!1});function Os(t,e,i,n){const{callId:r,parentId:o,onRest:s}=e,{asyncTo:l,promise:h}=i;return!o&&t===l&&!e.reset?h:i.promise=Q(this,null,function*(){i.asyncId=r,i.asyncTo=t;const u=jn(e,(v,C)=>C==="onRest"?void 0:v);let p,y;const c=new Promise((v,C)=>(p=v,y=C)),m=v=>{const C=r<=(i.cancelId||0)&&gt(n)||r!==i.asyncId&&Me(n,!1);if(C)throw v.result=C,y(v),v},f=(v,C)=>{const S=new Fs,w=new Bs;return Q(this,null,function*(){if(Oe.skipAnimation)throw Vt(i),w.result=Me(n,!1),y(w),w;m(S);const k=E.obj(v)?ie({},v):ie({},C,{to:v});k.parentId=r,Ae(u,(T,L)=>{E.und(k[L])&&(k[L]=T)});const P=yield n.start(k);return m(S),i.paused&&(yield new Promise(T=>{i.resumeQueue.add(T)})),P})};let b;if(Oe.skipAnimation)return Vt(i),Me(n,!1);try{let v;E.arr(t)?v=(C=>Q(this,null,function*(){for(const S of C)yield f(S)}))(t):v=Promise.resolve(t(f,n.stop.bind(n))),yield Promise.all([v.then(p),c]),b=Me(n.get(),!0,!1)}catch(v){if(v instanceof Fs)b=v.result;else if(v instanceof Bs)b=v.result;else throw v}finally{r==i.asyncId&&(i.asyncId=o,i.asyncTo=o?l:void 0,i.promise=o?h:void 0)}return E.fun(s)&&A.batchedUpdates(()=>{s(b,n,n.item)}),b})}function Vt(t,e){At(t.timeouts,i=>i.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class Fs 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."),this.result=void 0}}class Bs extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Hn=t=>t instanceof Kn;let lu=1;class Kn extends fs{constructor(...e){super(...e),this.id=lu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Fe(this);return e&&e.getValue()}to(...e){return Oe.to(this,e)}interpolate(...e){return Zd(),Oe.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,i=!1){zt(this,{type:"change",parent:this,value:e,idle:i})}_onPriorityChange(e){this.idle||ci.sort(this),zt(this,{type:"priority",parent:this,priority:e})}}const tt=Symbol.for("SpringPhase"),zs=1,Gn=2,Yn=4,Qn=t=>(t[tt]&zs)>0,Qe=t=>(t[tt]&Gn)>0,jt=t=>(t[tt]&Yn)>0,Ns=(t,e)=>e?t[tt]|=Gn|zs:t[tt]&=~Gn,Ls=(t,e)=>e?t[tt]|=Yn:t[tt]&=~Yn;class cu extends Kn{constructor(e,i){if(super(),this.key=void 0,this.animation=new au,this.queue=void 0,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,!E.und(e)||!E.und(i)){const n=E.obj(e)?ie({},e):ie({},i,{from:e});E.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Qe(this)||this._state.asyncTo)||jt(this)}get goal(){return he(this.animation.to)}get velocity(){const e=Fe(this);return e instanceof mt?e.lastVelocity||0:e.getPayload().map(i=>i.lastVelocity||0)}get hasAnimated(){return Qn(this)}get isAnimating(){return Qe(this)}get isPaused(){return jt(this)}get isDelayed(){return this._state.delayed}advance(e){let i=!0,n=!1;const r=this.animation;let{config:o,toValues:s}=r;const l=yi(r.to);!l&&xe(r.to)&&(s=ve(he(r.to))),r.values.forEach((p,y)=>{if(p.done)return;const c=p.constructor==bt?1:l?l[y].lastPosition:s[y];let m=r.immediate,f=c;if(!m){if(f=p.lastPosition,o.tension<=0){p.done=!0;return}let b=p.elapsedTime+=e;const v=r.fromValues[y],C=p.v0!=null?p.v0:p.v0=E.arr(o.velocity)?o.velocity[y]:o.velocity;let S;const w=o.precision||(v==c?.005:Math.min(1,Math.abs(c-v)*.001));if(E.und(o.duration))if(o.decay){const k=o.decay===!0?.998:o.decay,P=Math.exp(-(1-k)*b);f=v+C/(1-k)*(1-P),m=Math.abs(p.lastPosition-f)<=w,S=C*P}else{S=p.lastVelocity==null?C:p.lastVelocity;const k=o.restVelocity||w/10,P=o.clamp?0:o.bounce,T=!E.und(P),L=v==c?p.v0>0:v<c;let q,ne=!1;const K=1,ue=Math.ceil(e/K);for(let $=0;$<ue&&(q=Math.abs(S)>k,!(!q&&(m=Math.abs(c-f)<=w,m)));++$){T&&(ne=f==c||f>c==L,ne&&(S=-S*P,f=c));const Y=-o.tension*1e-6*(f-c),Te=-o.friction*.001*S,Xt=(Y+Te)/o.mass;S=S+Xt*K,f=f+S*K}}else{let k=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,p.durationProgress>0&&(p.elapsedTime=o.duration*p.durationProgress,b=p.elapsedTime+=e)),k=(o.progress||0)+b/this._memoizedDuration,k=k>1?1:k<0?0:k,p.durationProgress=k),f=v+o.easing(k)*(c-v),S=(f-p.lastPosition)/e,m=k==1}p.lastVelocity=S,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),m=!0)}l&&!l[y].done&&(m=!1),m?p.done=!0:i=!1,p.setValue(f,o.round)&&(n=!0)});const h=Fe(this),u=h.getValue();if(i){const p=he(r.to);(u!==p||n)&&!o.decay?(h.setValue(p),this._onChange(p)):n&&o.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return A.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Qe(this)){const{to:e,config:i}=this.animation;A.batchedUpdates(()=>{this._onStart(),i.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,i){let n;return E.und(e)?(n=this.queue||[],this.queue=[]):n=[E.obj(e)?e:ie({},i,{to:e})],Promise.all(n.map(r=>this._update(r))).then(r=>qn(this,r))}stop(e){const{to:i}=this.animation;return this._focus(this.get()),Vt(this._state,e&&this._lastCallId),A.batchedUpdates(()=>this._stop(i,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const i=this.key||"";let{to:n,from:r}=e;n=E.obj(n)?n[i]:n,(n==null||Un(n))&&(n=void 0),r=E.obj(r)?r[i]:r,r==null&&(r=void 0);const o={to:n,from:r};return Qn(this)||(e.reverse&&([n,r]=[r,n]),r=he(r),E.und(r)?Fe(this)||this._set(n):this._set(r)),o}_update(e,i){let n=ie({},e);const{key:r,defaultProps:o}=this;n.default&&Object.assign(o,jn(n,(h,u)=>/^on/.test(u)?Cs(h,r):h)),Vs(this,n,"onProps"),qt(this,"onProps",n,this);const s=this._prepareNode(n);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 l=this._state;return Is(++this._lastCallId,{key:r,props:n,defaultProps:o,state:l,actions:{pause:()=>{jt(this)||(Ls(this,!0),Ot(l.pauseQueue),qt(this,"onPause",Me(this,Ut(this,this.animation.to)),this))},resume:()=>{jt(this)&&(Ls(this,!1),Qe(this)&&this._resume(),Ot(l.resumeQueue),qt(this,"onResume",Me(this,Ut(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(h=>{if(n.loop&&h.finished&&!(i&&h.noop)){const u=Ds(n);if(u)return this._update(u,!0)}return h})}_merge(e,i,n){if(i.cancel)return this.stop(!0),n(gt(this));const r=!E.und(e.to),o=!E.und(e.from);if(r||o)if(i.callId>this._lastToId)this._lastToId=i.callId;else return n(gt(this));const{key:s,defaultProps:l,animation:h}=this,{to:u,from:p}=h;let{to:y=u,from:c=p}=e;o&&!r&&(!i.default||E.und(y))&&(y=c),i.reverse&&([y,c]=[c,y]);const m=!De(c,p);m&&(h.from=c),c=he(c);const f=!De(y,u);f&&this._focus(y);const b=Un(i.to),{config:v}=h,{decay:C,velocity:S}=v;(r||o)&&(v.velocity=0),i.config&&!b&&su(v,et(i.config,s),i.config!==l.config?et(l.config,s):void 0);let w=Fe(this);if(!w||E.und(y))return n(Me(this,!0));const k=E.und(i.reset)?o&&!i.default:!E.und(c)&&Dt(i.reset,s),P=k?c:this.get(),T=Zt(y),L=E.num(T)||E.arr(T)||vi(T),q=!b&&(!L||Dt(l.immediate||i.immediate,s));if(f){const $=Vn(y);if($!==w.constructor)if(q)w=this._set(T);else throw Error(`Cannot animate between ${w.constructor.name} and ${$.name}, as the "to" prop suggests`)}const ne=w.constructor;let K=xe(y),ue=!1;if(!K){const $=k||!Qn(this)&&m;(f||$)&&(ue=De(Zt(P),T),K=!ue),(!De(h.immediate,q)&&!q||!De(v.decay,C)||!De(v.velocity,S))&&(K=!0)}if(ue&&Qe(this)&&(h.changed&&!k?K=!0:K||this._stop(u)),!b&&((K||xe(u))&&(h.values=w.getPayload(),h.toValues=xe(y)?null:ne==bt?[1]:ve(T)),h.immediate!=q&&(h.immediate=q,!q&&!k&&this._set(u)),K)){const{onRest:$}=h;z(uu,Te=>Vs(this,i,Te));const Y=Me(this,Ut(this,u));Ot(this._pendingCalls,Y),this._pendingCalls.add(n),h.changed&&A.batchedUpdates(()=>{h.changed=!k,$==null||$(Y,this),k?et(l.onRest,Y):h.onStart==null||h.onStart(Y,this)})}k&&this._set(P),b?n(Os(i.to,i,this._state,this)):K?this._start():Qe(this)&&!f?this._pendingCalls.add(n):n(As(P))}_focus(e){const i=this.animation;e!==i.to&&(us(this)&&this._detach(),i.to=e,us(this)&&this._attach())}_attach(){let e=0;const{to:i}=this.animation;xe(i)&&(pt(i,this),Hn(i)&&(e=i.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;xe(e)&&Nt(e,this)}_set(e,i=!0){const n=he(e);if(!E.und(n)){const r=Fe(this);if(!r||!De(n,r.getValue())){const o=Vn(n);!r||r.constructor!=o?Dn(this,o.create(n)):r.setValue(n),r&&A.batchedUpdates(()=>{this._onChange(n,i)})}}return Fe(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,qt(this,"onStart",Me(this,Ut(this,e.to)),this))}_onChange(e,i){i||(this._onStart(),et(this.animation.onChange,e,this)),et(this.defaultProps.onChange,e,this),super._onChange(e,i)}_start(){const e=this.animation;Fe(this).reset(he(e.to)),e.immediate||(e.fromValues=e.values.map(i=>i.lastPosition)),Qe(this)||(Ns(this,!0),jt(this)||this._resume())}_resume(){Oe.skipAnimation?this.finish():ci.start(this)}_stop(e,i){if(Qe(this)){Ns(this,!1);const n=this.animation;z(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),zt(this,{type:"idle",parent:this});const r=i?gt(this.get()):Me(this.get(),Ut(this,e!=null?e:n.to));Ot(this._pendingCalls,r),n.changed&&(n.changed=!1,qt(this,"onRest",r,this))}}}function Ut(t,e){const i=Zt(e),n=Zt(t.get());return De(n,i)}function Ds(t,e=t.loop,i=t.to){let n=et(e);if(n){const r=n!==!0&&Ms(n),o=(r||t).reverse,s=!r||r.reset;return Wt(ie({},t,{loop:e,default:!1,pause:void 0,to:!o||Un(i)?i:void 0,from:s?t.from:void 0,reset:s},r))}}function Wt(t){const{to:e,from:i}=t=Ms(t),n=new Set;return E.obj(e)&&Zs(e,n),E.obj(i)&&Zs(i,n),t.keys=n.size?Array.from(n):null,t}function du(t){const e=Wt(t);return E.und(e.default)&&(e.default=jn(e)),e}function Zs(t,e){Ae(t,(i,n)=>i!=null&&e.add(n))}const uu=["onStart","onRest","onChange","onPause","onResume"];function Vs(t,e,i){t.animation[i]=e[i]!==Ps(e,i)?Cs(e[i],t.key):void 0}function qt(t,e,...i){var n,r,o,s;(n=(r=t.animation)[e])==null||n.call(r,...i),(o=(s=t.defaultProps)[e])==null||o.call(s,...i)}const fu=["onStart","onChange","onRest"];let hu=1,pu=class{constructor(e,i){this.id=hu++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,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),i&&(this._flush=i),e&&this.start(ie({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((i,n)=>e[n]=i.get()),e}set(e){for(const i in e){const n=e[i];E.und(n)||this.springs[i].set(n)}}update(e){return e&&this.queue.push(Wt(e)),this}start(e){let{queue:i}=this;return e?i=ve(e).map(Wt):this.queue=[],this._flush?this._flush(this,i):(Ks(this,i),Xn(this,i))}stop(e,i){if(e!==!!e&&(i=e),i){const n=this.springs;z(ve(i),r=>n[r].stop(!!e))}else Vt(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(E.und(e))this.start({pause:!0});else{const i=this.springs;z(ve(e),n=>i[n].pause())}return this}resume(e){if(E.und(e))this.start({pause:!1});else{const i=this.springs;z(ve(e),n=>i[n].resume())}return this}each(e){Ae(this.springs,e)}_onFrame(){const{onStart:e,onChange:i,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,At(e,([h,u])=>{u.value=this.get(),h(u,this,this._item)}));const s=!r&&this._started,l=o||s&&n.size?this.get():null;o&&i.size&&At(i,([h,u])=>{u.value=l,h(u,this,this._item)}),s&&(this._started=!1,At(n,([h,u])=>{u.value=l,h(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;A.onFrame(this._onFrame)}};function Xn(t,e){return Promise.all(e.map(i=>js(t,i))).then(i=>qn(t,i))}function js(t,e,i){return Q(this,null,function*(){const{keys:n,to:r,from:o,loop:s,onRest:l,onResolve:h}=e,u=E.obj(e.default)&&e.default;s&&(e.loop=!1),r===!1&&(e.to=null),o===!1&&(e.from=null);const p=E.arr(r)||E.fun(r)?r:void 0;p?(e.to=void 0,e.onRest=void 0,u&&(u.onRest=void 0)):z(fu,b=>{const v=e[b];if(E.fun(v)){const C=t._events[b];e[b]=({finished:S,cancelled:w})=>{const k=C.get(v);k?(S||(k.finished=!1),w&&(k.cancelled=!0)):C.set(v,{value:null,finished:S||!1,cancelled:w||!1})},u&&(u[b]=e[b])}});const y=t._state;e.pause===!y.paused?(y.paused=e.pause,Ot(e.pause?y.pauseQueue:y.resumeQueue)):y.paused&&(e.pause=!0);const c=(n||Object.keys(t.springs)).map(b=>t.springs[b].start(e)),m=e.cancel===!0||Ps(e,"cancel")===!0;(p||m&&y.asyncId)&&c.push(Is(++t._lastAsyncId,{props:e,state:y,actions:{pause:Mn,resume:Mn,start(b,v){m?(Vt(y,t._lastAsyncId),v(gt(t))):(b.onRest=l,v(Os(p,b,y,t)))}}})),y.paused&&(yield new Promise(b=>{y.resumeQueue.add(b)}));const f=qn(t,yield Promise.all(c));if(s&&f.finished&&!(i&&f.noop)){const b=Ds(e,s,r);if(b)return Ks(t,[b]),js(t,b,!0)}return h&&A.batchedUpdates(()=>h(f,t,t.item)),f})}function Us(t,e){const i=ie({},t.springs);return e&&z(ve(e),n=>{E.und(n.keys)&&(n=Wt(n)),E.obj(n.to)||(n=ie({},n,{to:void 0})),Hs(i,n,r=>qs(r))}),Ws(t,i),i}function Ws(t,e){Ae(e,(i,n)=>{t.springs[n]||(t.springs[n]=i,pt(i,t))})}function qs(t,e){const i=new cu;return i.key=t,e&&pt(i,e),i}function Hs(t,e,i){e.keys&&z(e.keys,n=>{(t[n]||(t[n]=i(n)))._prepareNode(e)})}function Ks(t,e){z(e,i=>{Hs(t.springs,i,n=>qs(n,t))})}function mu(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}const bu=["children"],ki=t=>{let{children:e}=t,i=mu(t,bu);const n=a.useContext(Ei),r=i.pause||!!n.pause,o=i.immediate||!!n.immediate;i=Wd(()=>({pause:r,immediate:o}),[r,o]);const{Provider:s}=Ei;return ee.createElement(s,{value:i},e)},Ei=gu(ki,{});ki.Provider=Ei.Provider,ki.Consumer=Ei.Consumer;function gu(t,e){return Object.assign(t,ee.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}const vu=()=>{const t=[],e=function(r){jd();const o=[];return z(t,(s,l)=>{if(E.und(r))o.push(s.start());else{const h=i(r,s,l);h&&o.push(s.start(h))}}),o};e.current=t,e.add=function(n){t.includes(n)||t.push(n)},e.delete=function(n){const r=t.indexOf(n);~r&&t.splice(r,1)},e.pause=function(){return z(t,n=>n.pause(...arguments)),this},e.resume=function(){return z(t,n=>n.resume(...arguments)),this},e.set=function(n){z(t,r=>r.set(n))},e.start=function(n){const r=[];return z(t,(o,s)=>{if(E.und(n))r.push(o.start());else{const l=this._getProps(n,o,s);l&&r.push(o.start(l))}}),r},e.stop=function(){return z(t,n=>n.stop(...arguments)),this},e.update=function(n){return z(t,(r,o)=>r.update(this._getProps(n,r,o))),this};const i=function(r,o,s){return E.fun(r)?r(s,o):r};return e._getProps=i,e};function yu(t,e,i){const n=E.fun(e)&&e;n&&!i&&(i=[]);const r=a.useMemo(()=>n||arguments.length==3?vu():void 0,[]),o=a.useRef(0),s=vs(),l=a.useMemo(()=>({ctrls:[],queue:[],flush(C,S){const w=Us(C,S);return o.current>0&&!l.queue.length&&!Object.keys(w).some(P=>!C.springs[P])?Xn(C,S):new Promise(P=>{Ws(C,w),l.queue.push(()=>{P(Xn(C,S))}),s()})}}),[]),h=a.useRef([...l.ctrls]),u=[],p=ws(t)||0;a.useMemo(()=>{z(h.current.slice(t,p),C=>{nu(C,r),C.stop(!0)}),h.current.length=t,y(p,t)},[t]),a.useMemo(()=>{y(0,Math.min(p,t))},i);function y(C,S){for(let w=C;w<S;w++){const k=h.current[w]||(h.current[w]=new pu(null,l.flush)),P=n?n(w,k):e[w];P&&(u[w]=du(P))}}const c=h.current.map((C,S)=>Us(C,u[S])),m=a.useContext(ki),f=ws(m),b=m!==f&&iu(m);Ln(()=>{o.current++,l.ctrls=h.current;const{queue:C}=l;C.length&&(l.queue=[],z(C,S=>S())),z(h.current,(S,w)=>{r==null||r.add(S),b&&S.start({default:m});const k=u[w];k&&(ru(S,k.ref),S.ref?S.queue.push(k):S.start(k))})}),ys(()=>()=>{z(l.ctrls,C=>C.stop(!0))});const v=c.map(C=>ie({},C));return r?[v,r]:v}function Ht(t,e){const i=E.fun(t),[[n],r]=yu(1,i?t:[t],i?[]:e);return i||arguments.length==2?[n,r]:n}let Gs;(function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"})(Gs||(Gs={}));class wu extends Kn{constructor(e,i){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Bt(...i);const n=this._get(),r=Vn(n);Dn(this,r.create(n))}advance(e){const i=this._get(),n=this.get();De(i,n)||(Fe(this).setValue(i),this._onChange(i,this.idle)),!this.idle&&Ys(this._active)&&Jn(this)}_get(){const e=E.arr(this.source)?this.source.map(he):ve(he(this.source));return this.calc(...e)}_start(){this.idle&&!Ys(this._active)&&(this.idle=!1,z(yi(this),e=>{e.done=!1}),Oe.skipAnimation?(A.batchedUpdates(()=>this.advance()),Jn(this)):ci.start(this))}_attach(){let e=1;z(ve(this.source),i=>{xe(i)&&pt(i,this),Hn(i)&&(i.idle||this._active.add(i),e=Math.max(e,i.priority+1))}),this.priority=e,this._start()}_detach(){z(ve(this.source),e=>{xe(e)&&Nt(e,this)}),this._active.clear(),Jn(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=ve(this.source).reduce((i,n)=>Math.max(i,(Hn(n)?n.priority:0)+1),0))}}function xu(t){return t.idle!==!1}function Ys(t){return!t.size||Array.from(t).every(xu)}function Jn(t){t.idle||(t.idle=!0,z(yi(t),e=>{e.done=!0}),zt(t,{type:"idle",parent:t}))}Oe.assign({createStringInterpolator:bs,to:(t,e)=>new wu(t,e)});function $n(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}const Su=["style","children","scrollTop","scrollLeft","viewBox"],Qs=/^--/;function ku(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!Qs.test(t)&&!(Kt.hasOwnProperty(t)&&Kt[t])?e+"px":(""+e).trim()}const Xs={};function Eu(t,e){if(!t.nodeType||!t.setAttribute)return!1;const i=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",n=e,{style:r,children:o,scrollTop:s,scrollLeft:l,viewBox:h}=n,u=$n(n,Su),p=Object.values(u),y=Object.keys(u).map(c=>i||t.hasAttribute(c)?c:Xs[c]||(Xs[c]=c.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));o!==void 0&&(t.textContent=o);for(let c in r)if(r.hasOwnProperty(c)){const m=ku(c,r[c]);Qs.test(c)?t.style.setProperty(c,m):t.style[c]=m}y.forEach((c,m)=>{t.setAttribute(c,p[m])}),s!==void 0&&(t.scrollTop=s),l!==void 0&&(t.scrollLeft=l),h!==void 0&&t.setAttribute("viewBox",h)}let Kt={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};const Cu=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),Pu=["Webkit","Ms","Moz","O"];Kt=Object.keys(Kt).reduce((t,e)=>(Pu.forEach(i=>t[Cu(i,e)]=t[e]),t),Kt);const Mu=["x","y","z"],Tu=/^(matrix|translate|scale|rotate|skew)/,_u=/^(translate)/,Iu=/^(rotate|skew)/,Rn=(t,e)=>E.num(t)&&t!==0?t+e:t,Ci=(t,e)=>E.arr(t)?t.every(i=>Ci(i,e)):E.num(t)?t===e:parseFloat(t)===e;class Au extends xi{constructor(e){let{x:i,y:n,z:r}=e,o=$n(e,Mu);const s=[],l=[];(i||n||r)&&(s.push([i||0,n||0,r||0]),l.push(h=>[`translate3d(${h.map(u=>Rn(u,"px")).join(",")})`,Ci(h,0)])),Ae(o,(h,u)=>{if(u==="transform")s.push([h||""]),l.push(p=>[p,p===""]);else if(Tu.test(u)){if(delete o[u],E.und(h))return;const p=_u.test(u)?"px":Iu.test(u)?"deg":"";s.push(ve(h)),l.push(u==="rotate3d"?([y,c,m,f])=>[`rotate3d(${y},${c},${m},${Rn(f,p)})`,Ci(f,0)]:y=>[`${u}(${y.map(c=>Rn(c,p)).join(",")})`,Ci(y,u.startsWith("scale")?1:0)])}}),s.length&&(o.transform=new Ou(s,l)),super(o)}}class Ou extends fs{constructor(e,i){super(),this._value=null,this.inputs=e,this.transforms=i}get(){return this._value||(this._value=this._get())}_get(){let e="",i=!0;return z(this.inputs,(n,r)=>{const o=he(n[0]),[s,l]=this.transforms[r](E.arr(o)?o:n.map(he));e+=" "+s,i=i&&l}),i?"none":e}observerAdded(e){e==1&&z(this.inputs,i=>z(i,n=>xe(n)&&pt(n,this)))}observerRemoved(e){e==0&&z(this.inputs,i=>z(i,n=>xe(n)&&Nt(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),zt(this,e)}}const Fu=["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"],Bu=["scrollTop","scrollLeft"];Oe.assign({batchedUpdates:$e.unstable_batchedUpdates,createStringInterpolator:bs,colors:vd});const vt=Jd(Fu,{applyAnimatedValues:Eu,createAnimatedStyle:t=>new Au(t),getComponentProps:t=>$n(t,Bu)}).animated;function zu(t){return(typeof t=="function"?t():t)||document.body}function Js(t,e){if(oi&&t){const i=zu(t);return $e.createPortal(e,i)}return e}function Nu(t){const e=a.useRef(t);return t&&(e.current=!0),!!e.current}const er=t=>Lu(t.active,t.forceRender,t.destroyOnClose)?t.children:null;function Lu(t,e,i){const n=Nu(t);return e||t?!0:n?!i:!1}const Du={click:"onClick",touchstart:"onTouchStart"};function $s(t,e){const i=Object.assign({},e.props);for(const n of t){const r=Du[n];i[r]=function(o){var s,l;o.stopPropagation(),(l=(s=e.props)[r])===null||l===void 0||l.call(s,o)}}return a.cloneElement(e,i)}const tr="adm-mask",Zu={default:.55,thin:.35,thick:.75},Vu={black:"0, 0, 0",white:"255, 255, 255"},ju={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},Uu=t=>{const e=He(ju,t),{locale:i}=si(),n=a.useRef(null);Yo(n,e.visible&&e.disableBodyScroll);const r=a.useMemo(()=>{var p;const y=(p=Zu[e.opacity])!==null&&p!==void 0?p:e.opacity,c=Vu[e.color];return c?`rgba(${c}, ${y})`:e.color},[e.color,e.opacity]),[o,s]=a.useState(e.visible),l=X.useUnmountedRef(),{opacity:h}=Ht({opacity:e.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{s(!0)},onRest:()=>{var p,y;l.current||(s(e.visible),e.visible?(p=e.afterShow)===null||p===void 0||p.call(e):(y=e.afterClose)===null||y===void 0||y.call(e))}}),u=$s(e.stopPropagation,Ce(e,a.createElement(vt.div,{className:tr,ref:n,"aria-hidden":!0,style:Object.assign(Object.assign({},e.style),{background:r,opacity:h,display:o?void 0:"none"}),onClick:p=>{var y;p.target===p.currentTarget&&((y=e.onMaskClick)===null||y===void 0||y.call(e,p))}},e.onMaskClick&&a.createElement("div",{className:`${tr}-aria-button`,role:"button","aria-label":i.Mask.name,onClick:e.onMaskClick}),a.createElement("div",{className:`${tr}-content`},e.children))));return a.createElement(er,{active:o,forceRender:e.forceRender,destroyOnClose:e.destroyOnClose},Js(e.getContainer,u))};function it(t){return ee.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),ee.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},ee.createElement("g",{id:"CloseOutline-编组"},ee.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),ee.createElement("path",{d:"M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",id:"CloseOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Rs(t){return ee.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),ee.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},ee.createElement("g",{id:"LeftOutline-编组"},ee.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),ee.createElement("path",{d:"M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",id:"LeftOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}const Wu={closeOnMaskClick:!1,closeIcon:a.createElement(it,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function qu(t){const[e,i]=a.useState(t);return X.useIsomorphicLayoutEffect(()=>{i(t)},[t]),e}function Hu(t,e,i){return Math.max(e,Math.min(t,i))}const le={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function ea(t,e,i){return e===0||Math.abs(e)===1/0?Math.pow(t,i*5):t*e*i/(e+i*t)}function ta(t,e,i,n=.15){return n===0?Hu(t,e,i):t<e?-ea(e-t,i-e,n)+e:t>i?+ea(t-i,i-e,n)+i:t}function Ku(t,[e,i],[n,r]){const[[o,s],[l,h]]=t;return[ta(e,o,s,n),ta(i,l,h,r)]}function Gu(t,e){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Yu(t){var e=Gu(t,"string");return typeof e=="symbol"?e:String(e)}function pe(t,e,i){return e=Yu(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function ia(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,n)}return i}function J(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?ia(Object(i),!0).forEach(function(n){pe(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ia(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}const na={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function ra(t){return t?t[0].toUpperCase()+t.slice(1):""}const Qu=["enter","leave"];function Xu(t=!1,e){return t&&!Qu.includes(e)}function Ju(t,e="",i=!1){const n=na[t],r=n&&n[e]||e;return"on"+ra(t)+ra(r)+(Xu(i,r)?"Capture":"")}const $u=["gotpointercapture","lostpointercapture"];function Ru(t){let e=t.substring(2).toLowerCase();const i=!!~e.indexOf("passive");i&&(e=e.replace("passive",""));const n=$u.includes(e)?"capturecapture":"capture",r=!!~e.indexOf(n);return r&&(e=e.replace("capture","")),{device:e,capture:r,passive:i}}function ef(t,e=""){const i=na[t],n=i&&i[e]||e;return t+n}function Pi(t){return"touches"in t}function oa(t){return Pi(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function tf(t){return Array.from(t.touches).filter(e=>{var i,n;return e.target===t.currentTarget||((i=t.currentTarget)===null||i===void 0||(n=i.contains)===null||n===void 0?void 0:n.call(i,e.target))})}function nf(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function sa(t){return Pi(t)?nf(t)[0]:t}function rf(t){return tf(t).map(e=>e.identifier)}function ir(t){const e=sa(t);return Pi(t)?e.identifier:e.pointerId}function aa(t){const e=sa(t);return[e.clientX,e.clientY]}function of(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:i,altKey:n,metaKey:r,ctrlKey:o}=t;Object.assign(e,{shiftKey:i,altKey:n,metaKey:r,ctrlKey:o})}return e}function Mi(t,...e){return typeof t=="function"?t(...e):t}function sf(){}function af(...t){return t.length===0?sf:t.length===1?t[0]:function(){let e;for(const i of t)e=i.apply(this,arguments)||e;return e}}function la(t,e){return Object.assign({},e,t||{})}const lf=32;class cf{constructor(e,i,n){this.ctrl=e,this.args=i,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:i,ingKey:n,args:r}=this;i[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const i=this.state,n=this.config;i._active||(this.reset(),this.computeInitial(),i._active=!0,i.target=e.target,i.currentTarget=e.currentTarget,i.lastOffset=n.from?Mi(n.from,i):i.offset,i.offset=i.lastOffset,i.startTime=i.timeStamp=e.timeStamp)}computeValues(e){const i=this.state;i._values=e,i.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:i,config:n,shared:r}=this;i.args=this.args;let o=0;if(e&&(i.event=e,n.preventDefault&&e.cancelable&&i.event.preventDefault(),i.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,of(e)),r.down=r.pressed=r.buttons%2===1||r.touches>0,o=e.timeStamp-i.timeStamp,i.timeStamp=e.timeStamp,i.elapsedTime=i.timeStamp-i.startTime),i._active){const T=i._delta.map(Math.abs);le.addTo(i._distance,T)}this.axisIntent&&this.axisIntent(e);const[s,l]=i._movement,[h,u]=n.threshold,{_step:p,values:y}=i;if(n.hasCustomTransform?(p[0]===!1&&(p[0]=Math.abs(s)>=h&&y[0]),p[1]===!1&&(p[1]=Math.abs(l)>=u&&y[1])):(p[0]===!1&&(p[0]=Math.abs(s)>=h&&Math.sign(s)*h),p[1]===!1&&(p[1]=Math.abs(l)>=u&&Math.sign(l)*u)),i.intentional=p[0]!==!1||p[1]!==!1,!i.intentional)return;const c=[0,0];if(n.hasCustomTransform){const[T,L]=y;c[0]=p[0]!==!1?T-p[0]:0,c[1]=p[1]!==!1?L-p[1]:0}else c[0]=p[0]!==!1?s-p[0]:0,c[1]=p[1]!==!1?l-p[1]:0;this.restrictToAxis&&!i._blocked&&this.restrictToAxis(c);const m=i.offset,f=i._active&&!i._blocked||i.active;f&&(i.first=i._active&&!i.active,i.last=!i._active&&i.active,i.active=r[this.ingKey]=i._active,e&&(i.first&&("bounds"in n&&(i._bounds=Mi(n.bounds,i)),this.setup&&this.setup()),i.movement=c,this.computeOffset()));const[b,v]=i.offset,[[C,S],[w,k]]=i._bounds;i.overflow=[b<C?-1:b>S?1:0,v<w?-1:v>k?1:0],i._movementBound[0]=i.overflow[0]?i._movementBound[0]===!1?i._movement[0]:i._movementBound[0]:!1,i._movementBound[1]=i.overflow[1]?i._movementBound[1]===!1?i._movement[1]:i._movementBound[1]:!1;const P=i._active?n.rubberband||[0,0]:[0,0];if(i.offset=Ku(i._bounds,i.offset,P),i.delta=le.sub(i.offset,m),this.computeMovement(),f&&(!i.last||o>lf)){i.delta=le.sub(i.offset,m);const T=i.delta.map(Math.abs);le.addTo(i.distance,T),i.direction=i.delta.map(Math.sign),i._direction=i._delta.map(Math.sign),!i.first&&o>0&&(i.velocity=[T[0]/o,T[1]/o],i.timeDelta=o)}}emit(){const e=this.state,i=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(J(J(J({},i),e),{},{[this.aliasKey]:e.values}));r!==void 0&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function df([t,e],i){const n=Math.abs(t),r=Math.abs(e);if(n>r&&n>i)return"x";if(r>n&&r>i)return"y"}class uf extends cf{constructor(...e){super(...e),pe(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=le.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=le.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const i=this.state,n=this.config;if(!i.axis&&e){const r=typeof n.axisThreshold=="object"?n.axisThreshold[oa(e)]:n.axisThreshold;i.axis=df(i._movement,r)}i._blocked=(n.lockDirection||!!n.axis)&&!i.axis||!!n.axis&&n.axis!==i.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const ff=t=>t,ca=.15,da={enabled(t=!0){return t},eventOptions(t,e,i){return J(J({},i.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[ca,ca];case!1:return[0,0];default:return le.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return le.toVector(t)},transform(t,e,i){const n=t||i.shared.transform;return this.hasCustomTransform=!!n,n||ff},threshold(t){return le.toVector(t,0)}},hf=0,Gt=J(J({},da),{},{axis(t,e,{axis:i}){if(this.lockDirection=i==="lock",!this.lockDirection)return i},axisThreshold(t=hf){return t},bounds(t={}){if(typeof t=="function")return o=>Gt.bounds(t(o));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:i=1/0,top:n=-1/0,bottom:r=1/0}=t;return[[e,i],[n,r]]}}),ua={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};class pf extends uf{constructor(...e){super(...e),pe(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const i=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:i.left-n.left+e.offset[0],right:i.right-n.right+e.offset[0],top:i.top-n.top+e.offset[1],bottom:i.bottom-n.bottom+e.offset[1]};e._bounds=Gt.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const i=this.config,n=this.state;if(e.buttons!=null&&(Array.isArray(i.pointerButtons)?!i.pointerButtons.includes(e.buttons):i.pointerButtons!==-1&&i.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);i.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(r&&r.size>1&&n._pointerActive)&&(this.start(e),this.setupPointer(e),n._pointerId=ir(e),n._pointerActive=!0,this.computeValues(aa(e)),this.computeInitial(),i.preventScrollAxis&&oa(e)!=="mouse"?(n._active=!1,this.setupScrollPrevention(e)):i.delay>0?(this.setupDelayTrigger(e),i.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const i=this.state;i._active=!0,i._preventScroll=!0,i._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const i=this.state,n=this.config;if(!i._pointerActive)return;const r=ir(e);if(i._pointerId!==void 0&&r!==i._pointerId)return;const o=aa(e);if(document.pointerLockElement===e.target?i._delta=[e.movementX,e.movementY]:(i._delta=le.sub(o,i._values),this.computeValues(o)),le.addTo(i._movement,i._delta),this.compute(e),i._delayed&&i.intentional){this.timeoutStore.remove("dragDelay"),i.active=!1,this.startPointerDrag(e);return}if(n.preventScrollAxis&&!i._preventScroll)if(i.axis)if(i.axis===n.preventScrollAxis||n.preventScrollAxis==="xy"){i._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(l){}const i=this.state,n=this.config;if(!i._active||!i._pointerActive)return;const r=ir(e);if(i._pointerId!==void 0&&r!==i._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=i._distance;if(i.tap=o<=n.tapsThreshold&&s<=n.tapsThreshold,i.tap&&n.filterTaps)i._force=!0;else{const[l,h]=i._delta,[u,p]=i._movement,[y,c]=n.swipe.velocity,[m,f]=n.swipe.distance,b=n.swipe.duration;if(i.elapsedTime<b){const v=Math.abs(l/i.timeDelta),C=Math.abs(h/i.timeDelta);v>y&&Math.abs(u)>m&&(i.swipe[0]=Math.sign(l)),C>c&&Math.abs(p)>f&&(i.swipe[1]=Math.sign(h))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const i=this.config,n=i.device;i.pointerLock&&e.currentTarget.requestPointerLock(),i.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,mf(e);const i=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",i),this.eventStore.add(this.sharedConfig.window,"touch","cancel",i),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const i=ua[e.key];if(i){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=i(this.config.keyboardDisplacement,r),n._keyboardActive=!0,le.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in ua&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const i=this.config.device;e(i,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(i,"change",this.pointerMove.bind(this)),e(i,"end",this.pointerUp.bind(this)),e(i,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function mf(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const Yt=typeof window!="undefined"&&window.document&&window.document.createElement;function fa(){return Yt&&"ontouchstart"in window}function bf(){return fa()||Yt&&window.navigator.maxTouchPoints>1}function gf(){return Yt&&"onpointerdown"in window}function vf(){return Yt&&"exitPointerLock"in window.document}function yf(){try{return"constructor"in GestureEvent}catch(t){return!1}}const Se={isBrowser:Yt,gesture:yf(),touch:fa(),touchscreen:bf(),pointer:gf(),pointerLock:vf()},wf=250,xf=180,Sf=.5,kf=50,Ef=250,Cf=10,ha={mouse:0,touch:0,pen:8},Pf=J(J({},Gt),{},{device(t,e,{pointer:{touch:i=!1,lock:n=!1,mouse:r=!1}={}}){return this.pointerLock=n&&Se.pointerLock,Se.touch&&i?"touch":this.pointerLock?"mouse":Se.pointer&&!r?"pointer":Se.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:i}){if(this.preventScrollDelay=typeof i=="number"?i:i||i===void 0&&t?wf:void 0,!(!Se.touchscreen||i===!1))return t||(i!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:i=!0,buttons:n=1,keys:r=!0}={}}){return this.pointerButtons=n,this.keys=r,!this.pointerLock&&this.device==="pointer"&&i},threshold(t,e,{filterTaps:i=!1,tapsThreshold:n=3,axis:r=void 0}){const o=le.toVector(t,i?n:r?1:0);return this.filterTaps=i,this.tapsThreshold=n,o},swipe({velocity:t=Sf,distance:e=kf,duration:i=Ef}={}){return{velocity:this.transform(le.toVector(t)),distance:this.transform(le.toVector(e)),duration:i}},delay(t=0){switch(t){case!0:return xf;case!1:return 0;default:return t}},axisThreshold(t){return t?J(J({},ha),t):ha},keyboardDisplacement(t=Cf){return t}});J(J({},da),{},{device(t,e,{shared:i,pointer:{touch:n=!1}={}}){if(i.target&&!Se.touch&&Se.gesture)return"gesture";if(Se.touch&&n)return"touch";if(Se.touchscreen){if(Se.pointer)return"pointer";if(Se.touch)return"touch"}},bounds(t,e,{scaleBounds:i={},angleBounds:n={}}){const r=s=>{const l=la(Mi(i,s),{min:-1/0,max:1/0});return[l.min,l.max]},o=s=>{const l=la(Mi(n,s),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof i!="function"&&typeof n!="function"?[r(),o()]:s=>[r(s),o(s)]},threshold(t,e,i){return this.lockDirection=i.axis==="lock",le.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}}),J(J({},Gt),{},{mouseOnly:(t=!0)=>t}),J(J({},Gt),{},{mouseOnly:(t=!0)=>t});const pa=new Map,nr=new Map;function Mf(t){pa.set(t.key,t.engine),nr.set(t.key,t.resolver)}const Tf={key:"drag",engine:pf,resolver:Pf};function _f(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}function If(t,e){if(t==null)return{};var i=_f(t,e),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}const Af={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=Se.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},Of=["target","eventOptions","window","enabled","transform"];function Ti(t={},e){const i={};for(const[n,r]of Object.entries(e))switch(typeof r){case"function":i[n]=r.call(i,t[n],n,t);break;case"object":i[n]=Ti(t[n],r);break;case"boolean":r&&(i[n]=t[n]);break}return i}function Ff(t,e,i={}){const n=t,{target:r,eventOptions:o,window:s,enabled:l,transform:h}=n,u=If(n,Of);if(i.shared=Ti({target:r,eventOptions:o,window:s,enabled:l,transform:h},Af),e){const p=nr.get(e);i[e]=Ti(J({shared:i.shared},u),p)}else for(const p in u){const y=nr.get(p);y&&(i[p]=Ti(J({shared:i.shared},u[p]),y))}return i}class ma{constructor(e,i){pe(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=i}add(e,i,n,r,o){const s=this._listeners,l=ef(i,n),h=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=J(J({},h),o);e.addEventListener(l,r,u);const p=()=>{e.removeEventListener(l,r,u),s.delete(p)};return s.add(p),p}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class Bf{constructor(){pe(this,"_timeouts",new Map)}add(e,i,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(i,n,...r))}remove(e){const i=this._timeouts.get(e);i&&window.clearTimeout(i)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class zf{constructor(e){pe(this,"gestures",new Set),pe(this,"_targetEventStore",new ma(this)),pe(this,"gestureEventStores",{}),pe(this,"gestureTimeoutStores",{}),pe(this,"handlers",{}),pe(this,"config",{}),pe(this,"pointerIds",new Set),pe(this,"touchIds",new Set),pe(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Nf(this,e)}setEventIds(e){if(Pi(e))return this.touchIds=new Set(rf(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,i){this.handlers=e,this.nativeHandlers=i}applyConfig(e,i){this.config=Ff(e,i,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const i=this.config.shared,n={};let r;if(!(i.target&&(r=i.target(),!r))){if(i.enabled){for(const s of this.gestures){const l=this.config[s],h=ba(n,l.eventOptions,!!r);if(l.enabled){const u=pa.get(s);new u(this,e,s).bind(h)}}const o=ba(n,i.eventOptions,!!r);for(const s in this.nativeHandlers)o(s,"",l=>this.nativeHandlers[s](J(J({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const o in n)n[o]=af(...n[o]);if(!r)return n;for(const o in n){const{device:s,capture:l,passive:h}=Ru(o);this._targetEventStore.add(r,s,"",n[o],{capture:l,passive:h})}}}}function yt(t,e){t.gestures.add(e),t.gestureEventStores[e]=new ma(t,e),t.gestureTimeoutStores[e]=new Bf}function Nf(t,e){e.drag&&yt(t,"drag"),e.wheel&&yt(t,"wheel"),e.scroll&&yt(t,"scroll"),e.move&&yt(t,"move"),e.pinch&&yt(t,"pinch"),e.hover&&yt(t,"hover")}const ba=(t,e,i)=>(n,r,o,s={},l=!1)=>{var h,u;const p=(h=s.capture)!==null&&h!==void 0?h:e.capture,y=(u=s.passive)!==null&&u!==void 0?u:e.passive;let c=l?n:Ju(n,r,p);i&&y&&(c+="Passive"),t[c]=t[c]||[],t[c].push(o)};function Lf(t,e={},i,n){const r=a.useMemo(()=>new zf(t),[]);if(r.applyHandlers(t,n),r.applyConfig(e,i),a.useEffect(r.effect.bind(r)),a.useEffect(()=>r.clean.bind(r),[]),e.target===void 0)return r.bind.bind(r)}function Df(t,e){return Mf(Tf),Lf({drag:t},e||{},"drag")}const _i="adm-popup",Zf=Object.assign(Object.assign({},Wu),{closeOnSwipe:!1,position:"bottom"}),rr=t=>{const{locale:e,popup:i={}}=si(),n=He(Zf,i,t),r=te(`${_i}-body`,n.bodyClassName,`${_i}-body-position-${n.position}`),[o,s]=a.useState(n.visible),l=a.useRef(null);Yo(l,n.disableBodyScroll&&o?"strict":!1),X.useIsomorphicLayoutEffect(()=>{n.visible&&s(!0)},[n.visible]);const h=X.useUnmountedRef(),{percent:u}=Ht({percent:n.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var m,f;h.current||(s(n.visible),n.visible?(m=n.afterShow)===null||m===void 0||m.call(n):(f=n.afterClose)===null||f===void 0||f.call(n))}}),p=Df(({swipe:[,m]})=>{var f;n.closeOnSwipe&&(m===1&&n.position==="bottom"||m===-1&&n.position==="top")&&((f=n.onClose)===null||f===void 0||f.call(n))},{axis:"y",enabled:["top","bottom"].includes(n.position)}),y=qu(o&&n.visible),c=$s(n.stopPropagation,Ce(n,a.createElement("div",Object.assign({className:_i,onClick:n.onClick,style:{display:o?void 0:"none",touchAction:["top","bottom"].includes(n.position)?"none":"auto"}},p()),n.mask&&a.createElement(Uu,{visible:y,forceRender:n.forceRender,destroyOnClose:n.destroyOnClose,onMaskClick:m=>{var f,b;(f=n.onMaskClick)===null||f===void 0||f.call(n,m),n.closeOnMaskClick&&((b=n.onClose)===null||b===void 0||b.call(n))},className:n.maskClassName,style:n.maskStyle,disableBodyScroll:!1,stopPropagation:n.stopPropagation}),a.createElement(vt.div,{className:r,style:Object.assign(Object.assign({},n.bodyStyle),{pointerEvents:u.to(m=>m===0?"unset":"none"),transform:u.to(m=>n.position==="bottom"?`translate(0, ${m}%)`:n.position==="top"?`translate(0, -${m}%)`:n.position==="left"?`translate(-${m}%, 0)`:n.position==="right"?`translate(${m}%, 0)`:"none")}),ref:l},n.showCloseButton&&a.createElement("a",{className:te(`${_i}-close-icon`,"adm-plain-anchor"),onClick:()=>{var m;(m=n.onClose)===null||m===void 0||m.call(n)},role:"button","aria-label":e.common.close},n.closeIcon),n.children))));return a.createElement(er,{active:o,forceRender:n.forceRender,destroyOnClose:n.destroyOnClose},Js(n.getContainer,c))},ga="adm-safe-area",va=t=>Ce(t,a.createElement("div",{className:te(ga,`${ga}-position-${t.position}`)})),Vf=X.createUpdateEffect(X.useIsomorphicLayoutEffect),wt="adm-badge",ya=a.createElement(a.Fragment,null),jf=qo(t=>{const{content:e,color:i,children:n}=t,r=e===ya,o=te(wt,{[`${wt}-fixed`]:!!n,[`${wt}-dot`]:r,[`${wt}-bordered`]:t.bordered}),s=e||e===0?Ce(t,a.createElement("div",{className:o,style:{"--color":i}},!r&&a.createElement("div",{className:`${wt}-content`},e))):null;return n?a.createElement("div",{className:te(`${wt}-wrapper`,t.wrapperClassName),style:t.wrapperStyle},n,s):s},{dot:ya}),Uf="adm-dot-loading",Wf={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},qf={color:"default"},Hf=a.memo(t=>{var e;const i=He(qf,t);return Ce(i,a.createElement("div",{style:{color:(e=Wf[i.color])!==null&&e!==void 0?e:i.color},className:te("adm-loading",Uf)},a.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(-100.000000, -71.000000)"},a.createElement("g",{transform:"translate(95.000000, 71.000000)"},a.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(n=>a.createElement("rect",{key:n,fill:"currentColor",x:20+n*26,y:"16",width:"8",height:"8",rx:"2"},a.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${n*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});function Kf(t){return!!t&&typeof t=="object"&&typeof t.then=="function"}const ke="adm-button",Gf={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:a.createElement(Hf,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},Ii=a.forwardRef((t,e)=>{const i=He(Gf,t),[n,r]=a.useState(!1),o=a.useRef(null),s=i.loading==="auto"?n:i.loading,l=i.disabled||s;a.useImperativeHandle(e,()=>({get nativeElement(){return o.current}}));const h=u=>ed(void 0,void 0,void 0,function*(){if(!i.onClick)return;const p=i.onClick(u);if(Kf(p))try{r(!0),yield p,r(!1)}catch(y){throw r(!1),y}});return Ce(i,a.createElement("button",{ref:o,type:i.type,onClick:h,className:te(ke,{[`${ke}-${i.color}`]:i.color,[`${ke}-block`]:i.block,[`${ke}-disabled`]:l,[`${ke}-fill-outline`]:i.fill==="outline",[`${ke}-fill-none`]:i.fill==="none",[`${ke}-mini`]:i.size==="mini",[`${ke}-small`]:i.size==="small",[`${ke}-large`]:i.size==="large",[`${ke}-loading`]:s},`${ke}-shape-${i.shape}`),disabled:l,onMouseDown:i.onMouseDown,onMouseUp:i.onMouseUp,onTouchStart:i.onTouchStart,onTouchEnd:i.onTouchEnd},s?a.createElement("div",{className:`${ke}-loading-wrapper`},i.loadingIcon,i.loadingText):a.createElement("span",null,i.children)))});function Yf(t){const{value:e,defaultValue:i,onChange:n}=t,r=X.useUpdate(),o=a.useRef(e!==void 0?e:i);e!==void 0&&(o.current=e);const s=X.useMemoizedFn((l,h=!1)=>{const u=typeof l=="function"?l(o.current):l;if(!(!h&&u===o.current))return o.current=u,r(),n==null?void 0:n(u)});return[o.current,s]}function Qf(t,e){const i=X.useMemoizedFn(t);X.useIsomorphicLayoutEffect(()=>{const n=e.current;if(n)if(window.ResizeObserver){let r;const o=new ResizeObserver(()=>{r=window.requestAnimationFrame(()=>i(n))});return o.observe(n),()=>{window.cancelAnimationFrame(r),o.disconnect()}}else i(n)},[e])}function Xf(t,e,i){if(t&&typeof MutationObserver!="undefined"){let n=new MutationObserver(()=>{i()});return n.observe(t,e),()=>{n&&(n.disconnect(),n=null)}}return()=>{}}function Jf(t,e,i){const n=X.useMemoizedFn(t);a.useEffect(()=>Xf(e.current,i,n),[e])}function wa(t,e,i){let n=t;return n=Math.max(t,e),i!==void 0&&(n=Math.min(n,i)),n}var xa={exports:{}},U={};/**
16
+ */(function(t){(function(){var e={}.hasOwnProperty;function i(){for(var o="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(o=r(o,n(l)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return i.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var l in o)e.call(o,l)&&o[l]&&(s=r(s,l));return s}function r(o,s){return s?o?o+" "+s:o+s:o}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(Ko);var od=Ko.exports;const te=jr(od);function Ce(t,e){const i=Object.assign({},e.props);t.className&&(i.className=te(e.props.className,t.className)),t.style&&(i.style=Object.assign(Object.assign({},i.style),t.style)),t.tabIndex!==void 0&&(i.tabIndex=t.tabIndex);for(const n in t)t.hasOwnProperty(n)&&(n.startsWith("data-")||n.startsWith("aria-"))&&(i[n]=t[n]);return a.cloneElement(e,i)}function He(...t){const e={};return t.forEach(i=>{i&&Object.keys(i).forEach(n=>{i[n]!==void 0&&(e[n]=i[n])})}),e}function sd(t,...e){for(let i=e.length-1;i>=0;i-=1)if(e[i]!==void 0)return e[i];return t}const Go=10;function ad(t,e){return t>e&&t>Go?"horizontal":e>t&&e>Go?"vertical":""}function ld(){const t=a.useRef(0),e=a.useRef(0),i=a.useRef(0),n=a.useRef(0),r=a.useRef(0),o=a.useRef(0),s=a.useRef(""),l=()=>s.current==="vertical",h=()=>s.current==="horizontal",u=()=>{i.current=0,n.current=0,r.current=0,o.current=0,s.current=""};return{move:c=>{const m=c.touches[0];i.current=m.clientX<0?0:m.clientX-t.current,n.current=m.clientY-e.current,r.current=Math.abs(i.current),o.current=Math.abs(n.current),s.current||(s.current=ad(r.current,o.current))},start:c=>{u(),t.current=c.touches[0].clientX,e.current=c.touches[0].clientY},reset:u,startX:t,startY:e,deltaX:i,deltaY:n,offsetX:r,offsetY:o,direction:s,isVertical:l,isHorizontal:h}}const cd=oi?window:void 0,dd=["scroll","auto","overlay"];function ud(t){return t.nodeType===1}function fd(t,e=cd){let i=t;for(;i&&i!==e&&ud(i);){if(i===document.body)return e;const{overflowY:n}=window.getComputedStyle(i);if(dd.includes(n)&&i.scrollHeight>i.clientHeight)return i;i=i.parentNode}return e}let wn=!1;if(oi)try{const t={};Object.defineProperty(t,"passive",{get(){wn=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}let Tt=0;const Yo="adm-overflow-hidden";function hd(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function Qo(t,e){const i=ld(),n=s=>{i.move(s);const l=i.deltaY.current>0?"10":"01",h=fd(s.target,t.current);if(!h)return;if(e==="strict"){const f=hd(s.target);if(f===document.body||f===document.documentElement){s.preventDefault();return}}const{scrollHeight:u,offsetHeight:p,scrollTop:y}=h,{height:c}=h.getBoundingClientRect();let m="11";y===0?m=p>=u?"00":"01":u<=Math.round(c+y)&&(m="10"),m!=="11"&&i.isVertical()&&!(parseInt(m,2)&parseInt(l,2))&&s.cancelable&&wn&&s.preventDefault()},r=()=>{document.addEventListener("touchstart",i.start),document.addEventListener("touchmove",n,wn?{passive:!1}:!1),Tt||document.body.classList.add(Yo),Tt++},o=()=>{Tt&&(document.removeEventListener("touchstart",i.start),document.removeEventListener("touchmove",n),Tt--,Tt||document.body.classList.remove(Yo))};a.useEffect(()=>{if(e)return r(),()=>{o()}},[e])}let xn=It();const A=t=>_t(t,xn);let Sn=It();A.write=t=>_t(t,Sn);let ai=It();A.onStart=t=>_t(t,ai);let kn=It();A.onFrame=t=>_t(t,kn);let En=It();A.onFinish=t=>_t(t,En);let ut=[];A.setTimeout=(t,e)=>{let i=A.now()+e,n=()=>{let o=ut.findIndex(s=>s.cancel==n);~o&&ut.splice(o,1),Ge-=~o?1:0},r={time:i,handler:t,cancel:n};return ut.splice(Xo(i),0,r),Ge+=1,Jo(),r};let Xo=t=>~(~ut.findIndex(e=>e.time>t)||~ut.length);A.cancel=t=>{ai.delete(t),kn.delete(t),En.delete(t),xn.delete(t),Sn.delete(t)},A.sync=t=>{Pn=!0,A.batchedUpdates(t),Pn=!1},A.throttle=t=>{let e;function i(){try{t(...e)}finally{e=null}}function n(...r){e=r,A.onStart(i)}return n.handler=t,n.cancel=()=>{ai.delete(i),e=null},n};let Cn=typeof window!="undefined"?window.requestAnimationFrame:()=>{};A.use=t=>Cn=t,A.now=typeof performance!="undefined"?()=>performance.now():Date.now,A.batchedUpdates=t=>t(),A.catch=console.error,A.frameLoop="always",A.advance=()=>{A.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ro()};let Ke=-1,Ge=0,Pn=!1;function _t(t,e){Pn?(e.delete(t),t(0)):(e.add(t),Jo())}function Jo(){Ke<0&&(Ke=0,A.frameLoop!=="demand"&&Cn($o))}function pd(){Ke=-1}function $o(){~Ke&&(Cn($o),A.batchedUpdates(Ro))}function Ro(){let t=Ke;Ke=A.now();let e=Xo(Ke);if(e&&(es(ut.splice(0,e),i=>i.handler()),Ge-=e),!Ge){pd();return}ai.flush(),xn.flush(t?Math.min(64,Ke-t):16.667),kn.flush(),Sn.flush(),En.flush()}function It(){let t=new Set,e=t;return{add(i){Ge+=e==t&&!t.has(i)?1:0,t.add(i)},delete(i){return Ge-=e==t&&t.has(i)?1:0,t.delete(i)},flush(i){e.size&&(t=new Set,Ge-=e.size,es(e,n=>n(i)&&t.add(n)),Ge+=t.size,e=t)}}}function es(t,e){t.forEach(i=>{try{e(i)}catch(n){A.catch(n)}})}function Mn(){}const md=(t,e,i)=>Object.defineProperty(t,e,{value:i,writable:!0,configurable:!0}),E={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function De(t,e){if(E.arr(t)){if(!E.arr(e)||t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}return t===e}const z=(t,e)=>t.forEach(e);function Ae(t,e,i){if(E.arr(t)){for(let n=0;n<t.length;n++)e.call(i,t[n],`${n}`);return}for(const n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n)}const ve=t=>E.und(t)?[]:E.arr(t)?t:[t];function At(t,e){if(t.size){const i=Array.from(t);t.clear(),z(i,e)}}const Ot=(t,...e)=>At(t,i=>i(...e)),Tn=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let _n,ts,Ye=null,is=!1,In=Mn;var Oe=Object.freeze({__proto__:null,get createStringInterpolator(){return _n},get to(){return ts},get colors(){return Ye},get skipAnimation(){return is},get willAdvance(){return In},assign:t=>{t.to&&(ts=t.to),t.now&&(A.now=t.now),t.colors!==void 0&&(Ye=t.colors),t.skipAnimation!=null&&(is=t.skipAnimation),t.createStringInterpolator&&(_n=t.createStringInterpolator),t.requestAnimationFrame&&A.use(t.requestAnimationFrame),t.batchedUpdates&&(A.batchedUpdates=t.batchedUpdates),t.willAdvance&&(In=t.willAdvance),t.frameLoop&&(A.frameLoop=t.frameLoop)}});const Ft=new Set;let we=[],An=[],li=0;const ci={get idle(){return!Ft.size&&!we.length},start(t){li>t.priority?(Ft.add(t),A.onStart(bd)):(ns(t),A(On))},advance:On,sort(t){if(li)A.onFrame(()=>ci.sort(t));else{const e=we.indexOf(t);~e&&(we.splice(e,1),rs(t))}},clear(){we=[],Ft.clear()}};function bd(){Ft.forEach(ns),Ft.clear(),A(On)}function ns(t){we.includes(t)||rs(t)}function rs(t){we.splice(gd(we,e=>e.priority>t.priority),0,t)}function On(t){const e=An;for(let i=0;i<we.length;i++){const n=we[i];li=n.priority,n.idle||(In(n),n.advance(t),n.idle||e.push(n))}return li=0,An=we,An.length=0,we=e,we.length>0}function gd(t,e){const i=t.findIndex(e);return i<0?t.length:i}const vd=(t,e,i)=>Math.min(Math.max(i,t),e),yd={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},Pe="[-+]?\\d*\\.?\\d+",di=Pe+"%";function ui(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const wd=new RegExp("rgb"+ui(Pe,Pe,Pe)),xd=new RegExp("rgba"+ui(Pe,Pe,Pe,Pe)),Sd=new RegExp("hsl"+ui(Pe,di,di)),kd=new RegExp("hsla"+ui(Pe,di,di,Pe)),Ed=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cd=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Pd=/^#([0-9a-fA-F]{6})$/,Md=/^#([0-9a-fA-F]{8})$/;function Td(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Pd.exec(t))?parseInt(e[1]+"ff",16)>>>0:Ye&&Ye[t]!==void 0?Ye[t]:(e=wd.exec(t))?(ft(e[1])<<24|ft(e[2])<<16|ft(e[3])<<8|255)>>>0:(e=xd.exec(t))?(ft(e[1])<<24|ft(e[2])<<16|ft(e[3])<<8|as(e[4]))>>>0:(e=Ed.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Md.exec(t))?parseInt(e[1],16)>>>0:(e=Cd.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Sd.exec(t))?(os(ss(e[1]),fi(e[2]),fi(e[3]))|255)>>>0:(e=kd.exec(t))?(os(ss(e[1]),fi(e[2]),fi(e[3]))|as(e[4]))>>>0:null}function Fn(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function os(t,e,i){const n=i<.5?i*(1+e):i+e-i*e,r=2*i-n,o=Fn(r,n,t+1/3),s=Fn(r,n,t),l=Fn(r,n,t-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(l*255)<<8}function ft(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function ss(t){return(parseFloat(t)%360+360)%360/360}function as(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function fi(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function ls(t){let e=Td(t);if(e===null)return t;e=e||0;let i=(e&4278190080)>>>24,n=(e&16711680)>>>16,r=(e&65280)>>>8,o=(e&255)/255;return`rgba(${i}, ${n}, ${r}, ${o})`}const Bt=(t,e,i)=>{if(E.fun(t))return t;if(E.arr(t))return Bt({range:t,output:e,extrapolate:i});if(E.str(t.output[0]))return _n(t);const n=t,r=n.output,o=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",l=n.extrapolateRight||n.extrapolate||"extend",h=n.easing||(u=>u);return u=>{const p=Id(u,o);return _d(u,o[p],o[p+1],r[p],r[p+1],h,s,l,n.map)}};function _d(t,e,i,n,r,o,s,l,h){let u=h?h(t):t;if(u<e){if(s==="identity")return u;s==="clamp"&&(u=e)}if(u>i){if(l==="identity")return u;l==="clamp"&&(u=i)}return n===r?n:e===i?t<=e?n:r:(e===-1/0?u=-u:i===1/0?u=u-e:u=(u-e)/(i-e),u=o(u),n===-1/0?u=-u:r===1/0?u=u+n:u=u*(r-n)+n,u)}function Id(t,e){for(var i=1;i<e.length-1&&!(e[i]>=t);++i);return i-1}const Ad=(t,e="end")=>i=>{i=e==="end"?Math.min(i,.999):Math.max(i,.001);const n=i*t,r=e==="end"?Math.floor(n):Math.ceil(n);return vd(0,1,r/t)},hi=1.70158,pi=hi*1.525,cs=hi+1,ds=2*Math.PI/3,us=2*Math.PI/4.5,mi=t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,Od={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>t===0?0:Math.pow(2,10*t-10),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>cs*t*t*t-hi*t*t,easeOutBack:t=>1+cs*Math.pow(t-1,3)+hi*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*((pi+1)*2*t-pi)/2:(Math.pow(2*t-2,2)*((pi+1)*(t*2-2)+pi)+2)/2,easeInElastic:t=>t===0?0:t===1?1:-Math.pow(2,10*t-10)*Math.sin((t*10-10.75)*ds),easeOutElastic:t=>t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t*10-.75)*ds)+1,easeInOutElastic:t=>t===0?0:t===1?1:t<.5?-(Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*us))/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*us)/2+1,easeInBounce:t=>1-mi(1-t),easeOutBounce:mi,easeInOutBounce:t=>t<.5?(1-mi(1-2*t))/2:(1+mi(2*t-1))/2,steps:Ad};function Bn(){return Bn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Bn.apply(this,arguments)}const ht=Symbol.for("FluidValue.get"),Re=Symbol.for("FluidValue.observers"),xe=t=>!!(t&&t[ht]),he=t=>t&&t[ht]?t[ht]():t,fs=t=>t[Re]||null;function Fd(t,e){t.eventObserved?t.eventObserved(e):t(e)}function zt(t,e){let i=t[Re];i&&i.forEach(n=>{Fd(n,e)})}class hs{constructor(e){if(this[ht]=void 0,this[Re]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Bd(this,e)}}const Bd=(t,e)=>ps(t,ht,e);function pt(t,e){if(t[ht]){let i=t[Re];i||ps(t,Re,i=new Set),i.has(e)||(i.add(e),t.observerAdded&&t.observerAdded(i.size,e))}return e}function Nt(t,e){let i=t[Re];if(i&&i.has(e)){const n=i.size-1;n?i.delete(e):t[Re]=null,t.observerRemoved&&t.observerRemoved(n,e)}}const ps=(t,e,i)=>Object.defineProperty(t,e,{value:i,writable:!0,configurable:!0}),bi=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,zd=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ms=new RegExp(`(${bi.source})(%|[a-z]+)`,"i"),Nd=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,gi=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,bs=t=>{const[e,i]=Ld(t);if(!e||Tn())return t;const n=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(n)return n.trim();if(i&&i.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(i);return r||t}else{if(i&&gi.test(i))return bs(i);if(i)return i}return t},Ld=t=>{const e=gi.exec(t);if(!e)return[,];const[,i,n]=e;return[i,n]};let zn;const Dd=(t,e,i,n,r)=>`rgba(${Math.round(e)}, ${Math.round(i)}, ${Math.round(n)}, ${r})`,gs=t=>{zn||(zn=Ye?new RegExp(`(${Object.keys(Ye).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(o=>he(o).replace(gi,bs).replace(zd,ls).replace(zn,ls)),i=e.map(o=>o.match(bi).map(Number)),r=i[0].map((o,s)=>i.map(l=>{if(!(s in l))throw Error('The arity of each "output" value must be equal');return l[s]})).map(o=>Bt(Bn({},t,{output:o})));return o=>{var s;const l=!ms.test(e[0])&&((s=e.find(u=>ms.test(u)))==null?void 0:s.replace(bi,""));let h=0;return e[0].replace(bi,()=>`${r[h++](o)}${l||""}`).replace(Nd,Dd)}},Nn="react-spring: ",vs=t=>{const e=t;let i=!1;if(typeof e!="function")throw new TypeError(`${Nn}once requires a function parameter`);return(...n)=>{i||(e(...n),i=!0)}},Zd=vs(console.warn);function Vd(){Zd(`${Nn}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const jd=vs(console.warn);function Ud(){jd(`${Nn}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 vi(t){return E.str(t)&&(t[0]=="#"||/\d/.test(t)||!Tn()&&gi.test(t)||t in(Ye||{}))}const Ln=Tn()?a.useEffect:a.useLayoutEffect,Wd=()=>{const t=a.useRef(!1);return Ln(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function ys(){const t=a.useState()[1],e=Wd();return()=>{e.current&&t(Math.random())}}function qd(t,e){const[i]=a.useState(()=>({inputs:e,result:t()})),n=a.useRef(),r=n.current;let o=r;return o?e&&o.inputs&&Hd(e,o.inputs)||(o={inputs:e,result:t()}):o=i,a.useEffect(()=>{n.current=o,r==i&&(i.inputs=i.result=void 0)},[o]),o.result}function Hd(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const ws=t=>a.useEffect(t,Kd),Kd=[];function xs(t){const e=a.useRef();return a.useEffect(()=>{e.current=t}),e.current}const Lt=Symbol.for("Animated:node"),Gd=t=>!!t&&t[Lt]===t,Fe=t=>t&&t[Lt],Dn=(t,e)=>md(t,Lt,e),yi=t=>t&&t[Lt]&&t[Lt].getPayload();class Ss{constructor(){this.payload=void 0,Dn(this,this)}getPayload(){return this.payload||[]}}class mt extends Ss{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,E.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new mt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,i){return E.num(e)&&(this.lastPosition=e,i&&(e=Math.round(e/i)*i,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,E.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class bt extends mt{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Bt({output:[e,e]})}static create(e){return new bt(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(E.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Bt({output:[this.getValue(),e]})),this._value=0,super.reset()}}const wi={dependencies:null};class xi extends Ss{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const i={};return Ae(this.source,(n,r)=>{Gd(n)?i[r]=n.getValue(e):xe(n)?i[r]=he(n):e||(i[r]=n)}),i}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&z(this.payload,e=>e.reset())}_makePayload(e){if(e){const i=new Set;return Ae(e,this._addToPayload,i),Array.from(i)}}_addToPayload(e){wi.dependencies&&xe(e)&&wi.dependencies.add(e);const i=yi(e);i&&z(i,n=>this.add(n))}}class Zn extends xi{constructor(e){super(e)}static create(e){return new Zn(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const i=this.getPayload();return e.length==i.length?i.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Yd)),!0)}}function Yd(t){return(vi(t)?bt:mt).create(t)}function Vn(t){const e=Fe(t);return e?e.constructor:E.arr(t)?Zn:vi(t)?bt:mt}function Si(){return Si=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Si.apply(this,arguments)}const ks=(t,e)=>{const i=!E.fun(t)||t.prototype&&t.prototype.isReactComponent;return a.forwardRef((n,r)=>{const o=a.useRef(null),s=i&&a.useCallback(f=>{o.current=Jd(r,f)},[r]),[l,h]=Xd(n,e),u=ys(),p=()=>{const f=o.current;if(i&&!f)return;(f?e.applyAnimatedValues(f,l.getValue(!0)):!1)===!1&&u()},y=new Qd(p,h),c=a.useRef();Ln(()=>(c.current=y,z(h,f=>pt(f,y)),()=>{c.current&&(z(c.current.deps,f=>Nt(f,c.current)),A.cancel(c.current.update))})),a.useEffect(p,[]),ws(()=>()=>{const f=c.current;z(f.deps,b=>Nt(b,f))});const m=e.getComponentProps(l.getValue());return ee.createElement(t,Si({},m,{ref:s}))})};class Qd{constructor(e,i){this.update=e,this.deps=i}eventObserved(e){e.type=="change"&&A.write(this.update)}}function Xd(t,e){const i=new Set;return wi.dependencies=i,t.style&&(t=Si({},t,{style:e.createAnimatedStyle(t.style)})),t=new xi(t),wi.dependencies=null,[t,i]}function Jd(t,e){return t&&(E.fun(t)?t(e):t.current=e),e}const Es=Symbol.for("AnimatedComponent"),$d=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:i=r=>new xi(r),getComponentProps:n=r=>r}={})=>{const r={applyAnimatedValues:e,createAnimatedStyle:i,getComponentProps:n},o=s=>{const l=Cs(s)||"Anonymous";return E.str(s)?s=o[s]||(o[s]=ks(s,r)):s=s[Es]||(s[Es]=ks(s,r)),s.displayName=`Animated(${l})`,s};return Ae(t,(s,l)=>{E.arr(t)&&(l=Cs(s)),o[l]=o(s)}),{animated:o}},Cs=t=>E.str(t)?t:t&&E.str(t.displayName)?t.displayName:E.fun(t)&&t.name||null;function ie(){return ie=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},ie.apply(this,arguments)}function et(t,...e){return E.fun(t)?t(...e):t}const Dt=(t,e)=>t===!0||!!(e&&t&&(E.fun(t)?t(e):ve(t).includes(e))),Ps=(t,e)=>E.obj(t)?e&&t[e]:t,Ms=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,Rd=t=>t,jn=(t,e=Rd)=>{let i=eu;t.default&&t.default!==!0&&(t=t.default,i=Object.keys(t));const n={};for(const r of i){const o=e(t[r],r);E.und(o)||(n[r]=o)}return n},eu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],tu={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 iu(t){const e={};let i=0;if(Ae(t,(n,r)=>{tu[r]||(e[r]=n,i++)}),i)return e}function Ts(t){const e=iu(t);if(e){const i={to:e};return Ae(t,(n,r)=>r in e||(i[r]=n)),i}return ie({},t)}function Zt(t){return t=he(t),E.arr(t)?t.map(Zt):vi(t)?Oe.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function nu(t){for(const e in t)return!0;return!1}function Un(t){return E.fun(t)||E.arr(t)&&E.obj(t[0])}function ru(t,e){var i;(i=t.ref)==null||i.delete(t),e==null||e.delete(t)}function ou(t,e){if(e&&t.ref!==e){var i;(i=t.ref)==null||i.delete(t),e.add(t),t.ref=e}}const Wn=ie({},{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}}.default,{mass:1,damping:1,easing:Od.linear,clamp:!1});class su{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Wn)}}function au(t,e,i){i&&(i=ie({},i),_s(i,e),e=ie({},i,e)),_s(t,e),Object.assign(t,e);for(const s in Wn)t[s]==null&&(t[s]=Wn[s]);let{mass:n,frequency:r,damping:o}=t;return E.und(r)||(r<.01&&(r=.01),o<0&&(o=0),t.tension=Math.pow(2*Math.PI/r,2)*n,t.friction=4*Math.PI*o*n/r),t}function _s(t,e){if(!E.und(e.decay))t.duration=void 0;else{const i=!E.und(e.tension)||!E.und(e.friction);(i||!E.und(e.frequency)||!E.und(e.damping)||!E.und(e.mass))&&(t.duration=void 0,t.decay=void 0),i&&(t.frequency=void 0)}}const Is=[];class lu{constructor(){this.changed=!1,this.values=Is,this.toValues=null,this.fromValues=Is,this.to=void 0,this.from=void 0,this.config=new su,this.immediate=!1}}function As(t,{key:e,props:i,defaultProps:n,state:r,actions:o}){return new Promise((s,l)=>{var h;let u,p,y=Dt((h=i.cancel)!=null?h:n==null?void 0:n.cancel,e);if(y)f();else{E.und(i.pause)||(r.paused=Dt(i.pause,e));let b=n==null?void 0:n.pause;b!==!0&&(b=r.paused||Dt(b,e)),u=et(i.delay||0,e),b?(r.resumeQueue.add(m),o.pause()):(o.resume(),m())}function c(){r.resumeQueue.add(m),r.timeouts.delete(p),p.cancel(),u=p.time-A.now()}function m(){u>0&&!Oe.skipAnimation?(r.delayed=!0,p=A.setTimeout(f,u),r.pauseQueue.add(c),r.timeouts.add(p)):f()}function f(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(c),r.timeouts.delete(p),t<=(r.cancelId||0)&&(y=!0);try{o.start(ie({},i,{callId:t,cancel:y}),s)}catch(b){l(b)}}})}const qn=(t,e)=>e.length==1?e[0]:e.some(i=>i.cancelled)?gt(t.get()):e.every(i=>i.noop)?Os(t.get()):Me(t.get(),e.every(i=>i.finished)),Os=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Me=(t,e,i=!1)=>({value:t,finished:e,cancelled:i}),gt=t=>({value:t,cancelled:!0,finished:!1});function Fs(t,e,i,n){const{callId:r,parentId:o,onRest:s}=e,{asyncTo:l,promise:h}=i;return!o&&t===l&&!e.reset?h:i.promise=Q(this,null,function*(){i.asyncId=r,i.asyncTo=t;const u=jn(e,(v,C)=>C==="onRest"?void 0:v);let p,y;const c=new Promise((v,C)=>(p=v,y=C)),m=v=>{const C=r<=(i.cancelId||0)&&gt(n)||r!==i.asyncId&&Me(n,!1);if(C)throw v.result=C,y(v),v},f=(v,C)=>{const S=new Bs,w=new zs;return Q(this,null,function*(){if(Oe.skipAnimation)throw Vt(i),w.result=Me(n,!1),y(w),w;m(S);const k=E.obj(v)?ie({},v):ie({},C,{to:v});k.parentId=r,Ae(u,(T,L)=>{E.und(k[L])&&(k[L]=T)});const P=yield n.start(k);return m(S),i.paused&&(yield new Promise(T=>{i.resumeQueue.add(T)})),P})};let b;if(Oe.skipAnimation)return Vt(i),Me(n,!1);try{let v;E.arr(t)?v=(C=>Q(this,null,function*(){for(const S of C)yield f(S)}))(t):v=Promise.resolve(t(f,n.stop.bind(n))),yield Promise.all([v.then(p),c]),b=Me(n.get(),!0,!1)}catch(v){if(v instanceof Bs)b=v.result;else if(v instanceof zs)b=v.result;else throw v}finally{r==i.asyncId&&(i.asyncId=o,i.asyncTo=o?l:void 0,i.promise=o?h:void 0)}return E.fun(s)&&A.batchedUpdates(()=>{s(b,n,n.item)}),b})}function Vt(t,e){At(t.timeouts,i=>i.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class Bs 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."),this.result=void 0}}class zs extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Hn=t=>t instanceof Kn;let cu=1;class Kn extends hs{constructor(...e){super(...e),this.id=cu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Fe(this);return e&&e.getValue()}to(...e){return Oe.to(this,e)}interpolate(...e){return Vd(),Oe.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,i=!1){zt(this,{type:"change",parent:this,value:e,idle:i})}_onPriorityChange(e){this.idle||ci.sort(this),zt(this,{type:"priority",parent:this,priority:e})}}const tt=Symbol.for("SpringPhase"),Ns=1,Gn=2,Yn=4,Qn=t=>(t[tt]&Ns)>0,Qe=t=>(t[tt]&Gn)>0,jt=t=>(t[tt]&Yn)>0,Ls=(t,e)=>e?t[tt]|=Gn|Ns:t[tt]&=~Gn,Ds=(t,e)=>e?t[tt]|=Yn:t[tt]&=~Yn;class du extends Kn{constructor(e,i){if(super(),this.key=void 0,this.animation=new lu,this.queue=void 0,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,!E.und(e)||!E.und(i)){const n=E.obj(e)?ie({},e):ie({},i,{from:e});E.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Qe(this)||this._state.asyncTo)||jt(this)}get goal(){return he(this.animation.to)}get velocity(){const e=Fe(this);return e instanceof mt?e.lastVelocity||0:e.getPayload().map(i=>i.lastVelocity||0)}get hasAnimated(){return Qn(this)}get isAnimating(){return Qe(this)}get isPaused(){return jt(this)}get isDelayed(){return this._state.delayed}advance(e){let i=!0,n=!1;const r=this.animation;let{config:o,toValues:s}=r;const l=yi(r.to);!l&&xe(r.to)&&(s=ve(he(r.to))),r.values.forEach((p,y)=>{if(p.done)return;const c=p.constructor==bt?1:l?l[y].lastPosition:s[y];let m=r.immediate,f=c;if(!m){if(f=p.lastPosition,o.tension<=0){p.done=!0;return}let b=p.elapsedTime+=e;const v=r.fromValues[y],C=p.v0!=null?p.v0:p.v0=E.arr(o.velocity)?o.velocity[y]:o.velocity;let S;const w=o.precision||(v==c?.005:Math.min(1,Math.abs(c-v)*.001));if(E.und(o.duration))if(o.decay){const k=o.decay===!0?.998:o.decay,P=Math.exp(-(1-k)*b);f=v+C/(1-k)*(1-P),m=Math.abs(p.lastPosition-f)<=w,S=C*P}else{S=p.lastVelocity==null?C:p.lastVelocity;const k=o.restVelocity||w/10,P=o.clamp?0:o.bounce,T=!E.und(P),L=v==c?p.v0>0:v<c;let q,ne=!1;const K=1,ue=Math.ceil(e/K);for(let $=0;$<ue&&(q=Math.abs(S)>k,!(!q&&(m=Math.abs(c-f)<=w,m)));++$){T&&(ne=f==c||f>c==L,ne&&(S=-S*P,f=c));const Y=-o.tension*1e-6*(f-c),Te=-o.friction*.001*S,Xt=(Y+Te)/o.mass;S=S+Xt*K,f=f+S*K}}else{let k=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,p.durationProgress>0&&(p.elapsedTime=o.duration*p.durationProgress,b=p.elapsedTime+=e)),k=(o.progress||0)+b/this._memoizedDuration,k=k>1?1:k<0?0:k,p.durationProgress=k),f=v+o.easing(k)*(c-v),S=(f-p.lastPosition)/e,m=k==1}p.lastVelocity=S,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),m=!0)}l&&!l[y].done&&(m=!1),m?p.done=!0:i=!1,p.setValue(f,o.round)&&(n=!0)});const h=Fe(this),u=h.getValue();if(i){const p=he(r.to);(u!==p||n)&&!o.decay?(h.setValue(p),this._onChange(p)):n&&o.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return A.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Qe(this)){const{to:e,config:i}=this.animation;A.batchedUpdates(()=>{this._onStart(),i.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,i){let n;return E.und(e)?(n=this.queue||[],this.queue=[]):n=[E.obj(e)?e:ie({},i,{to:e})],Promise.all(n.map(r=>this._update(r))).then(r=>qn(this,r))}stop(e){const{to:i}=this.animation;return this._focus(this.get()),Vt(this._state,e&&this._lastCallId),A.batchedUpdates(()=>this._stop(i,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const i=this.key||"";let{to:n,from:r}=e;n=E.obj(n)?n[i]:n,(n==null||Un(n))&&(n=void 0),r=E.obj(r)?r[i]:r,r==null&&(r=void 0);const o={to:n,from:r};return Qn(this)||(e.reverse&&([n,r]=[r,n]),r=he(r),E.und(r)?Fe(this)||this._set(n):this._set(r)),o}_update(e,i){let n=ie({},e);const{key:r,defaultProps:o}=this;n.default&&Object.assign(o,jn(n,(h,u)=>/^on/.test(u)?Ps(h,r):h)),js(this,n,"onProps"),qt(this,"onProps",n,this);const s=this._prepareNode(n);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 l=this._state;return As(++this._lastCallId,{key:r,props:n,defaultProps:o,state:l,actions:{pause:()=>{jt(this)||(Ds(this,!0),Ot(l.pauseQueue),qt(this,"onPause",Me(this,Ut(this,this.animation.to)),this))},resume:()=>{jt(this)&&(Ds(this,!1),Qe(this)&&this._resume(),Ot(l.resumeQueue),qt(this,"onResume",Me(this,Ut(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(h=>{if(n.loop&&h.finished&&!(i&&h.noop)){const u=Zs(n);if(u)return this._update(u,!0)}return h})}_merge(e,i,n){if(i.cancel)return this.stop(!0),n(gt(this));const r=!E.und(e.to),o=!E.und(e.from);if(r||o)if(i.callId>this._lastToId)this._lastToId=i.callId;else return n(gt(this));const{key:s,defaultProps:l,animation:h}=this,{to:u,from:p}=h;let{to:y=u,from:c=p}=e;o&&!r&&(!i.default||E.und(y))&&(y=c),i.reverse&&([y,c]=[c,y]);const m=!De(c,p);m&&(h.from=c),c=he(c);const f=!De(y,u);f&&this._focus(y);const b=Un(i.to),{config:v}=h,{decay:C,velocity:S}=v;(r||o)&&(v.velocity=0),i.config&&!b&&au(v,et(i.config,s),i.config!==l.config?et(l.config,s):void 0);let w=Fe(this);if(!w||E.und(y))return n(Me(this,!0));const k=E.und(i.reset)?o&&!i.default:!E.und(c)&&Dt(i.reset,s),P=k?c:this.get(),T=Zt(y),L=E.num(T)||E.arr(T)||vi(T),q=!b&&(!L||Dt(l.immediate||i.immediate,s));if(f){const $=Vn(y);if($!==w.constructor)if(q)w=this._set(T);else throw Error(`Cannot animate between ${w.constructor.name} and ${$.name}, as the "to" prop suggests`)}const ne=w.constructor;let K=xe(y),ue=!1;if(!K){const $=k||!Qn(this)&&m;(f||$)&&(ue=De(Zt(P),T),K=!ue),(!De(h.immediate,q)&&!q||!De(v.decay,C)||!De(v.velocity,S))&&(K=!0)}if(ue&&Qe(this)&&(h.changed&&!k?K=!0:K||this._stop(u)),!b&&((K||xe(u))&&(h.values=w.getPayload(),h.toValues=xe(y)?null:ne==bt?[1]:ve(T)),h.immediate!=q&&(h.immediate=q,!q&&!k&&this._set(u)),K)){const{onRest:$}=h;z(fu,Te=>js(this,i,Te));const Y=Me(this,Ut(this,u));Ot(this._pendingCalls,Y),this._pendingCalls.add(n),h.changed&&A.batchedUpdates(()=>{h.changed=!k,$==null||$(Y,this),k?et(l.onRest,Y):h.onStart==null||h.onStart(Y,this)})}k&&this._set(P),b?n(Fs(i.to,i,this._state,this)):K?this._start():Qe(this)&&!f?this._pendingCalls.add(n):n(Os(P))}_focus(e){const i=this.animation;e!==i.to&&(fs(this)&&this._detach(),i.to=e,fs(this)&&this._attach())}_attach(){let e=0;const{to:i}=this.animation;xe(i)&&(pt(i,this),Hn(i)&&(e=i.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;xe(e)&&Nt(e,this)}_set(e,i=!0){const n=he(e);if(!E.und(n)){const r=Fe(this);if(!r||!De(n,r.getValue())){const o=Vn(n);!r||r.constructor!=o?Dn(this,o.create(n)):r.setValue(n),r&&A.batchedUpdates(()=>{this._onChange(n,i)})}}return Fe(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,qt(this,"onStart",Me(this,Ut(this,e.to)),this))}_onChange(e,i){i||(this._onStart(),et(this.animation.onChange,e,this)),et(this.defaultProps.onChange,e,this),super._onChange(e,i)}_start(){const e=this.animation;Fe(this).reset(he(e.to)),e.immediate||(e.fromValues=e.values.map(i=>i.lastPosition)),Qe(this)||(Ls(this,!0),jt(this)||this._resume())}_resume(){Oe.skipAnimation?this.finish():ci.start(this)}_stop(e,i){if(Qe(this)){Ls(this,!1);const n=this.animation;z(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),zt(this,{type:"idle",parent:this});const r=i?gt(this.get()):Me(this.get(),Ut(this,e!=null?e:n.to));Ot(this._pendingCalls,r),n.changed&&(n.changed=!1,qt(this,"onRest",r,this))}}}function Ut(t,e){const i=Zt(e),n=Zt(t.get());return De(n,i)}function Zs(t,e=t.loop,i=t.to){let n=et(e);if(n){const r=n!==!0&&Ts(n),o=(r||t).reverse,s=!r||r.reset;return Wt(ie({},t,{loop:e,default:!1,pause:void 0,to:!o||Un(i)?i:void 0,from:s?t.from:void 0,reset:s},r))}}function Wt(t){const{to:e,from:i}=t=Ts(t),n=new Set;return E.obj(e)&&Vs(e,n),E.obj(i)&&Vs(i,n),t.keys=n.size?Array.from(n):null,t}function uu(t){const e=Wt(t);return E.und(e.default)&&(e.default=jn(e)),e}function Vs(t,e){Ae(t,(i,n)=>i!=null&&e.add(n))}const fu=["onStart","onRest","onChange","onPause","onResume"];function js(t,e,i){t.animation[i]=e[i]!==Ms(e,i)?Ps(e[i],t.key):void 0}function qt(t,e,...i){var n,r,o,s;(n=(r=t.animation)[e])==null||n.call(r,...i),(o=(s=t.defaultProps)[e])==null||o.call(s,...i)}const hu=["onStart","onChange","onRest"];let pu=1,mu=class{constructor(e,i){this.id=pu++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,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),i&&(this._flush=i),e&&this.start(ie({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((i,n)=>e[n]=i.get()),e}set(e){for(const i in e){const n=e[i];E.und(n)||this.springs[i].set(n)}}update(e){return e&&this.queue.push(Wt(e)),this}start(e){let{queue:i}=this;return e?i=ve(e).map(Wt):this.queue=[],this._flush?this._flush(this,i):(Gs(this,i),Xn(this,i))}stop(e,i){if(e!==!!e&&(i=e),i){const n=this.springs;z(ve(i),r=>n[r].stop(!!e))}else Vt(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(E.und(e))this.start({pause:!0});else{const i=this.springs;z(ve(e),n=>i[n].pause())}return this}resume(e){if(E.und(e))this.start({pause:!1});else{const i=this.springs;z(ve(e),n=>i[n].resume())}return this}each(e){Ae(this.springs,e)}_onFrame(){const{onStart:e,onChange:i,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,At(e,([h,u])=>{u.value=this.get(),h(u,this,this._item)}));const s=!r&&this._started,l=o||s&&n.size?this.get():null;o&&i.size&&At(i,([h,u])=>{u.value=l,h(u,this,this._item)}),s&&(this._started=!1,At(n,([h,u])=>{u.value=l,h(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;A.onFrame(this._onFrame)}};function Xn(t,e){return Promise.all(e.map(i=>Us(t,i))).then(i=>qn(t,i))}function Us(t,e,i){return Q(this,null,function*(){const{keys:n,to:r,from:o,loop:s,onRest:l,onResolve:h}=e,u=E.obj(e.default)&&e.default;s&&(e.loop=!1),r===!1&&(e.to=null),o===!1&&(e.from=null);const p=E.arr(r)||E.fun(r)?r:void 0;p?(e.to=void 0,e.onRest=void 0,u&&(u.onRest=void 0)):z(hu,b=>{const v=e[b];if(E.fun(v)){const C=t._events[b];e[b]=({finished:S,cancelled:w})=>{const k=C.get(v);k?(S||(k.finished=!1),w&&(k.cancelled=!0)):C.set(v,{value:null,finished:S||!1,cancelled:w||!1})},u&&(u[b]=e[b])}});const y=t._state;e.pause===!y.paused?(y.paused=e.pause,Ot(e.pause?y.pauseQueue:y.resumeQueue)):y.paused&&(e.pause=!0);const c=(n||Object.keys(t.springs)).map(b=>t.springs[b].start(e)),m=e.cancel===!0||Ms(e,"cancel")===!0;(p||m&&y.asyncId)&&c.push(As(++t._lastAsyncId,{props:e,state:y,actions:{pause:Mn,resume:Mn,start(b,v){m?(Vt(y,t._lastAsyncId),v(gt(t))):(b.onRest=l,v(Fs(p,b,y,t)))}}})),y.paused&&(yield new Promise(b=>{y.resumeQueue.add(b)}));const f=qn(t,yield Promise.all(c));if(s&&f.finished&&!(i&&f.noop)){const b=Zs(e,s,r);if(b)return Gs(t,[b]),Us(t,b,!0)}return h&&A.batchedUpdates(()=>h(f,t,t.item)),f})}function Ws(t,e){const i=ie({},t.springs);return e&&z(ve(e),n=>{E.und(n.keys)&&(n=Wt(n)),E.obj(n.to)||(n=ie({},n,{to:void 0})),Ks(i,n,r=>Hs(r))}),qs(t,i),i}function qs(t,e){Ae(e,(i,n)=>{t.springs[n]||(t.springs[n]=i,pt(i,t))})}function Hs(t,e){const i=new du;return i.key=t,e&&pt(i,e),i}function Ks(t,e,i){e.keys&&z(e.keys,n=>{(t[n]||(t[n]=i(n)))._prepareNode(e)})}function Gs(t,e){z(e,i=>{Ks(t.springs,i,n=>Hs(n,t))})}function bu(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}const gu=["children"],ki=t=>{let{children:e}=t,i=bu(t,gu);const n=a.useContext(Ei),r=i.pause||!!n.pause,o=i.immediate||!!n.immediate;i=qd(()=>({pause:r,immediate:o}),[r,o]);const{Provider:s}=Ei;return ee.createElement(s,{value:i},e)},Ei=vu(ki,{});ki.Provider=Ei.Provider,ki.Consumer=Ei.Consumer;function vu(t,e){return Object.assign(t,ee.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}const yu=()=>{const t=[],e=function(r){Ud();const o=[];return z(t,(s,l)=>{if(E.und(r))o.push(s.start());else{const h=i(r,s,l);h&&o.push(s.start(h))}}),o};e.current=t,e.add=function(n){t.includes(n)||t.push(n)},e.delete=function(n){const r=t.indexOf(n);~r&&t.splice(r,1)},e.pause=function(){return z(t,n=>n.pause(...arguments)),this},e.resume=function(){return z(t,n=>n.resume(...arguments)),this},e.set=function(n){z(t,r=>r.set(n))},e.start=function(n){const r=[];return z(t,(o,s)=>{if(E.und(n))r.push(o.start());else{const l=this._getProps(n,o,s);l&&r.push(o.start(l))}}),r},e.stop=function(){return z(t,n=>n.stop(...arguments)),this},e.update=function(n){return z(t,(r,o)=>r.update(this._getProps(n,r,o))),this};const i=function(r,o,s){return E.fun(r)?r(s,o):r};return e._getProps=i,e};function wu(t,e,i){const n=E.fun(e)&&e;n&&!i&&(i=[]);const r=a.useMemo(()=>n||arguments.length==3?yu():void 0,[]),o=a.useRef(0),s=ys(),l=a.useMemo(()=>({ctrls:[],queue:[],flush(C,S){const w=Ws(C,S);return o.current>0&&!l.queue.length&&!Object.keys(w).some(P=>!C.springs[P])?Xn(C,S):new Promise(P=>{qs(C,w),l.queue.push(()=>{P(Xn(C,S))}),s()})}}),[]),h=a.useRef([...l.ctrls]),u=[],p=xs(t)||0;a.useMemo(()=>{z(h.current.slice(t,p),C=>{ru(C,r),C.stop(!0)}),h.current.length=t,y(p,t)},[t]),a.useMemo(()=>{y(0,Math.min(p,t))},i);function y(C,S){for(let w=C;w<S;w++){const k=h.current[w]||(h.current[w]=new mu(null,l.flush)),P=n?n(w,k):e[w];P&&(u[w]=uu(P))}}const c=h.current.map((C,S)=>Ws(C,u[S])),m=a.useContext(ki),f=xs(m),b=m!==f&&nu(m);Ln(()=>{o.current++,l.ctrls=h.current;const{queue:C}=l;C.length&&(l.queue=[],z(C,S=>S())),z(h.current,(S,w)=>{r==null||r.add(S),b&&S.start({default:m});const k=u[w];k&&(ou(S,k.ref),S.ref?S.queue.push(k):S.start(k))})}),ws(()=>()=>{z(l.ctrls,C=>C.stop(!0))});const v=c.map(C=>ie({},C));return r?[v,r]:v}function Ht(t,e){const i=E.fun(t),[[n],r]=wu(1,i?t:[t],i?[]:e);return i||arguments.length==2?[n,r]:n}let Ys;(function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"})(Ys||(Ys={}));class xu extends Kn{constructor(e,i){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Bt(...i);const n=this._get(),r=Vn(n);Dn(this,r.create(n))}advance(e){const i=this._get(),n=this.get();De(i,n)||(Fe(this).setValue(i),this._onChange(i,this.idle)),!this.idle&&Qs(this._active)&&Jn(this)}_get(){const e=E.arr(this.source)?this.source.map(he):ve(he(this.source));return this.calc(...e)}_start(){this.idle&&!Qs(this._active)&&(this.idle=!1,z(yi(this),e=>{e.done=!1}),Oe.skipAnimation?(A.batchedUpdates(()=>this.advance()),Jn(this)):ci.start(this))}_attach(){let e=1;z(ve(this.source),i=>{xe(i)&&pt(i,this),Hn(i)&&(i.idle||this._active.add(i),e=Math.max(e,i.priority+1))}),this.priority=e,this._start()}_detach(){z(ve(this.source),e=>{xe(e)&&Nt(e,this)}),this._active.clear(),Jn(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=ve(this.source).reduce((i,n)=>Math.max(i,(Hn(n)?n.priority:0)+1),0))}}function Su(t){return t.idle!==!1}function Qs(t){return!t.size||Array.from(t).every(Su)}function Jn(t){t.idle||(t.idle=!0,z(yi(t),e=>{e.done=!0}),zt(t,{type:"idle",parent:t}))}Oe.assign({createStringInterpolator:gs,to:(t,e)=>new xu(t,e)});function $n(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}const ku=["style","children","scrollTop","scrollLeft","viewBox"],Xs=/^--/;function Eu(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!Xs.test(t)&&!(Kt.hasOwnProperty(t)&&Kt[t])?e+"px":(""+e).trim()}const Js={};function Cu(t,e){if(!t.nodeType||!t.setAttribute)return!1;const i=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",n=e,{style:r,children:o,scrollTop:s,scrollLeft:l,viewBox:h}=n,u=$n(n,ku),p=Object.values(u),y=Object.keys(u).map(c=>i||t.hasAttribute(c)?c:Js[c]||(Js[c]=c.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));o!==void 0&&(t.textContent=o);for(let c in r)if(r.hasOwnProperty(c)){const m=Eu(c,r[c]);Xs.test(c)?t.style.setProperty(c,m):t.style[c]=m}y.forEach((c,m)=>{t.setAttribute(c,p[m])}),s!==void 0&&(t.scrollTop=s),l!==void 0&&(t.scrollLeft=l),h!==void 0&&t.setAttribute("viewBox",h)}let Kt={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};const Pu=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),Mu=["Webkit","Ms","Moz","O"];Kt=Object.keys(Kt).reduce((t,e)=>(Mu.forEach(i=>t[Pu(i,e)]=t[e]),t),Kt);const Tu=["x","y","z"],_u=/^(matrix|translate|scale|rotate|skew)/,Iu=/^(translate)/,Au=/^(rotate|skew)/,Rn=(t,e)=>E.num(t)&&t!==0?t+e:t,Ci=(t,e)=>E.arr(t)?t.every(i=>Ci(i,e)):E.num(t)?t===e:parseFloat(t)===e;class Ou extends xi{constructor(e){let{x:i,y:n,z:r}=e,o=$n(e,Tu);const s=[],l=[];(i||n||r)&&(s.push([i||0,n||0,r||0]),l.push(h=>[`translate3d(${h.map(u=>Rn(u,"px")).join(",")})`,Ci(h,0)])),Ae(o,(h,u)=>{if(u==="transform")s.push([h||""]),l.push(p=>[p,p===""]);else if(_u.test(u)){if(delete o[u],E.und(h))return;const p=Iu.test(u)?"px":Au.test(u)?"deg":"";s.push(ve(h)),l.push(u==="rotate3d"?([y,c,m,f])=>[`rotate3d(${y},${c},${m},${Rn(f,p)})`,Ci(f,0)]:y=>[`${u}(${y.map(c=>Rn(c,p)).join(",")})`,Ci(y,u.startsWith("scale")?1:0)])}}),s.length&&(o.transform=new Fu(s,l)),super(o)}}class Fu extends hs{constructor(e,i){super(),this._value=null,this.inputs=e,this.transforms=i}get(){return this._value||(this._value=this._get())}_get(){let e="",i=!0;return z(this.inputs,(n,r)=>{const o=he(n[0]),[s,l]=this.transforms[r](E.arr(o)?o:n.map(he));e+=" "+s,i=i&&l}),i?"none":e}observerAdded(e){e==1&&z(this.inputs,i=>z(i,n=>xe(n)&&pt(n,this)))}observerRemoved(e){e==0&&z(this.inputs,i=>z(i,n=>xe(n)&&Nt(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),zt(this,e)}}const Bu=["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"],zu=["scrollTop","scrollLeft"];Oe.assign({batchedUpdates:$e.unstable_batchedUpdates,createStringInterpolator:gs,colors:yd});const vt=$d(Bu,{applyAnimatedValues:Cu,createAnimatedStyle:t=>new Ou(t),getComponentProps:t=>$n(t,zu)}).animated;function Nu(t){return(typeof t=="function"?t():t)||document.body}function $s(t,e){if(oi&&t){const i=Nu(t);return $e.createPortal(e,i)}return e}function Lu(t){const e=a.useRef(t);return t&&(e.current=!0),!!e.current}const er=t=>Du(t.active,t.forceRender,t.destroyOnClose)?t.children:null;function Du(t,e,i){const n=Lu(t);return e||t?!0:n?!i:!1}const Zu={click:"onClick",touchstart:"onTouchStart"};function Rs(t,e){const i=Object.assign({},e.props);for(const n of t){const r=Zu[n];i[r]=function(o){var s,l;o.stopPropagation(),(l=(s=e.props)[r])===null||l===void 0||l.call(s,o)}}return a.cloneElement(e,i)}const tr="adm-mask",Vu={default:.55,thin:.35,thick:.75},ju={black:"0, 0, 0",white:"255, 255, 255"},Uu={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},Wu=t=>{const e=He(Uu,t),{locale:i}=si(),n=a.useRef(null);Qo(n,e.visible&&e.disableBodyScroll);const r=a.useMemo(()=>{var p;const y=(p=Vu[e.opacity])!==null&&p!==void 0?p:e.opacity,c=ju[e.color];return c?`rgba(${c}, ${y})`:e.color},[e.color,e.opacity]),[o,s]=a.useState(e.visible),l=X.useUnmountedRef(),{opacity:h}=Ht({opacity:e.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{s(!0)},onRest:()=>{var p,y;l.current||(s(e.visible),e.visible?(p=e.afterShow)===null||p===void 0||p.call(e):(y=e.afterClose)===null||y===void 0||y.call(e))}}),u=Rs(e.stopPropagation,Ce(e,a.createElement(vt.div,{className:tr,ref:n,"aria-hidden":!0,style:Object.assign(Object.assign({},e.style),{background:r,opacity:h,display:o?void 0:"none"}),onClick:p=>{var y;p.target===p.currentTarget&&((y=e.onMaskClick)===null||y===void 0||y.call(e,p))}},e.onMaskClick&&a.createElement("div",{className:`${tr}-aria-button`,role:"button","aria-label":i.Mask.name,onClick:e.onMaskClick}),a.createElement("div",{className:`${tr}-content`},e.children))));return a.createElement(er,{active:o,forceRender:e.forceRender,destroyOnClose:e.destroyOnClose},$s(e.getContainer,u))};function it(t){return ee.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),ee.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},ee.createElement("g",{id:"CloseOutline-编组"},ee.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),ee.createElement("path",{d:"M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",id:"CloseOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function ea(t){return ee.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),ee.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},ee.createElement("g",{id:"LeftOutline-编组"},ee.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),ee.createElement("path",{d:"M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",id:"LeftOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}const qu={closeOnMaskClick:!1,closeIcon:a.createElement(it,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function Hu(t){const[e,i]=a.useState(t);return X.useIsomorphicLayoutEffect(()=>{i(t)},[t]),e}function Ku(t,e,i){return Math.max(e,Math.min(t,i))}const le={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function ta(t,e,i){return e===0||Math.abs(e)===1/0?Math.pow(t,i*5):t*e*i/(e+i*t)}function ia(t,e,i,n=.15){return n===0?Ku(t,e,i):t<e?-ta(e-t,i-e,n)+e:t>i?+ta(t-i,i-e,n)+i:t}function Gu(t,[e,i],[n,r]){const[[o,s],[l,h]]=t;return[ia(e,o,s,n),ia(i,l,h,r)]}function Yu(t,e){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Qu(t){var e=Yu(t,"string");return typeof e=="symbol"?e:String(e)}function pe(t,e,i){return e=Qu(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function na(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,n)}return i}function J(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?na(Object(i),!0).forEach(function(n){pe(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):na(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}const ra={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function oa(t){return t?t[0].toUpperCase()+t.slice(1):""}const Xu=["enter","leave"];function Ju(t=!1,e){return t&&!Xu.includes(e)}function $u(t,e="",i=!1){const n=ra[t],r=n&&n[e]||e;return"on"+oa(t)+oa(r)+(Ju(i,r)?"Capture":"")}const Ru=["gotpointercapture","lostpointercapture"];function ef(t){let e=t.substring(2).toLowerCase();const i=!!~e.indexOf("passive");i&&(e=e.replace("passive",""));const n=Ru.includes(e)?"capturecapture":"capture",r=!!~e.indexOf(n);return r&&(e=e.replace("capture","")),{device:e,capture:r,passive:i}}function tf(t,e=""){const i=ra[t],n=i&&i[e]||e;return t+n}function Pi(t){return"touches"in t}function sa(t){return Pi(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function nf(t){return Array.from(t.touches).filter(e=>{var i,n;return e.target===t.currentTarget||((i=t.currentTarget)===null||i===void 0||(n=i.contains)===null||n===void 0?void 0:n.call(i,e.target))})}function rf(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function aa(t){return Pi(t)?rf(t)[0]:t}function of(t){return nf(t).map(e=>e.identifier)}function ir(t){const e=aa(t);return Pi(t)?e.identifier:e.pointerId}function la(t){const e=aa(t);return[e.clientX,e.clientY]}function sf(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:i,altKey:n,metaKey:r,ctrlKey:o}=t;Object.assign(e,{shiftKey:i,altKey:n,metaKey:r,ctrlKey:o})}return e}function Mi(t,...e){return typeof t=="function"?t(...e):t}function af(){}function lf(...t){return t.length===0?af:t.length===1?t[0]:function(){let e;for(const i of t)e=i.apply(this,arguments)||e;return e}}function ca(t,e){return Object.assign({},e,t||{})}const cf=32;class df{constructor(e,i,n){this.ctrl=e,this.args=i,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:i,ingKey:n,args:r}=this;i[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const i=this.state,n=this.config;i._active||(this.reset(),this.computeInitial(),i._active=!0,i.target=e.target,i.currentTarget=e.currentTarget,i.lastOffset=n.from?Mi(n.from,i):i.offset,i.offset=i.lastOffset,i.startTime=i.timeStamp=e.timeStamp)}computeValues(e){const i=this.state;i._values=e,i.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:i,config:n,shared:r}=this;i.args=this.args;let o=0;if(e&&(i.event=e,n.preventDefault&&e.cancelable&&i.event.preventDefault(),i.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,sf(e)),r.down=r.pressed=r.buttons%2===1||r.touches>0,o=e.timeStamp-i.timeStamp,i.timeStamp=e.timeStamp,i.elapsedTime=i.timeStamp-i.startTime),i._active){const T=i._delta.map(Math.abs);le.addTo(i._distance,T)}this.axisIntent&&this.axisIntent(e);const[s,l]=i._movement,[h,u]=n.threshold,{_step:p,values:y}=i;if(n.hasCustomTransform?(p[0]===!1&&(p[0]=Math.abs(s)>=h&&y[0]),p[1]===!1&&(p[1]=Math.abs(l)>=u&&y[1])):(p[0]===!1&&(p[0]=Math.abs(s)>=h&&Math.sign(s)*h),p[1]===!1&&(p[1]=Math.abs(l)>=u&&Math.sign(l)*u)),i.intentional=p[0]!==!1||p[1]!==!1,!i.intentional)return;const c=[0,0];if(n.hasCustomTransform){const[T,L]=y;c[0]=p[0]!==!1?T-p[0]:0,c[1]=p[1]!==!1?L-p[1]:0}else c[0]=p[0]!==!1?s-p[0]:0,c[1]=p[1]!==!1?l-p[1]:0;this.restrictToAxis&&!i._blocked&&this.restrictToAxis(c);const m=i.offset,f=i._active&&!i._blocked||i.active;f&&(i.first=i._active&&!i.active,i.last=!i._active&&i.active,i.active=r[this.ingKey]=i._active,e&&(i.first&&("bounds"in n&&(i._bounds=Mi(n.bounds,i)),this.setup&&this.setup()),i.movement=c,this.computeOffset()));const[b,v]=i.offset,[[C,S],[w,k]]=i._bounds;i.overflow=[b<C?-1:b>S?1:0,v<w?-1:v>k?1:0],i._movementBound[0]=i.overflow[0]?i._movementBound[0]===!1?i._movement[0]:i._movementBound[0]:!1,i._movementBound[1]=i.overflow[1]?i._movementBound[1]===!1?i._movement[1]:i._movementBound[1]:!1;const P=i._active?n.rubberband||[0,0]:[0,0];if(i.offset=Gu(i._bounds,i.offset,P),i.delta=le.sub(i.offset,m),this.computeMovement(),f&&(!i.last||o>cf)){i.delta=le.sub(i.offset,m);const T=i.delta.map(Math.abs);le.addTo(i.distance,T),i.direction=i.delta.map(Math.sign),i._direction=i._delta.map(Math.sign),!i.first&&o>0&&(i.velocity=[T[0]/o,T[1]/o],i.timeDelta=o)}}emit(){const e=this.state,i=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(J(J(J({},i),e),{},{[this.aliasKey]:e.values}));r!==void 0&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function uf([t,e],i){const n=Math.abs(t),r=Math.abs(e);if(n>r&&n>i)return"x";if(r>n&&r>i)return"y"}class ff extends df{constructor(...e){super(...e),pe(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=le.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=le.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const i=this.state,n=this.config;if(!i.axis&&e){const r=typeof n.axisThreshold=="object"?n.axisThreshold[sa(e)]:n.axisThreshold;i.axis=uf(i._movement,r)}i._blocked=(n.lockDirection||!!n.axis)&&!i.axis||!!n.axis&&n.axis!==i.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const hf=t=>t,da=.15,ua={enabled(t=!0){return t},eventOptions(t,e,i){return J(J({},i.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[da,da];case!1:return[0,0];default:return le.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return le.toVector(t)},transform(t,e,i){const n=t||i.shared.transform;return this.hasCustomTransform=!!n,n||hf},threshold(t){return le.toVector(t,0)}},pf=0,Gt=J(J({},ua),{},{axis(t,e,{axis:i}){if(this.lockDirection=i==="lock",!this.lockDirection)return i},axisThreshold(t=pf){return t},bounds(t={}){if(typeof t=="function")return o=>Gt.bounds(t(o));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:i=1/0,top:n=-1/0,bottom:r=1/0}=t;return[[e,i],[n,r]]}}),fa={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};class mf extends ff{constructor(...e){super(...e),pe(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const i=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:i.left-n.left+e.offset[0],right:i.right-n.right+e.offset[0],top:i.top-n.top+e.offset[1],bottom:i.bottom-n.bottom+e.offset[1]};e._bounds=Gt.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const i=this.config,n=this.state;if(e.buttons!=null&&(Array.isArray(i.pointerButtons)?!i.pointerButtons.includes(e.buttons):i.pointerButtons!==-1&&i.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);i.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(r&&r.size>1&&n._pointerActive)&&(this.start(e),this.setupPointer(e),n._pointerId=ir(e),n._pointerActive=!0,this.computeValues(la(e)),this.computeInitial(),i.preventScrollAxis&&sa(e)!=="mouse"?(n._active=!1,this.setupScrollPrevention(e)):i.delay>0?(this.setupDelayTrigger(e),i.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const i=this.state;i._active=!0,i._preventScroll=!0,i._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const i=this.state,n=this.config;if(!i._pointerActive)return;const r=ir(e);if(i._pointerId!==void 0&&r!==i._pointerId)return;const o=la(e);if(document.pointerLockElement===e.target?i._delta=[e.movementX,e.movementY]:(i._delta=le.sub(o,i._values),this.computeValues(o)),le.addTo(i._movement,i._delta),this.compute(e),i._delayed&&i.intentional){this.timeoutStore.remove("dragDelay"),i.active=!1,this.startPointerDrag(e);return}if(n.preventScrollAxis&&!i._preventScroll)if(i.axis)if(i.axis===n.preventScrollAxis||n.preventScrollAxis==="xy"){i._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(l){}const i=this.state,n=this.config;if(!i._active||!i._pointerActive)return;const r=ir(e);if(i._pointerId!==void 0&&r!==i._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=i._distance;if(i.tap=o<=n.tapsThreshold&&s<=n.tapsThreshold,i.tap&&n.filterTaps)i._force=!0;else{const[l,h]=i._delta,[u,p]=i._movement,[y,c]=n.swipe.velocity,[m,f]=n.swipe.distance,b=n.swipe.duration;if(i.elapsedTime<b){const v=Math.abs(l/i.timeDelta),C=Math.abs(h/i.timeDelta);v>y&&Math.abs(u)>m&&(i.swipe[0]=Math.sign(l)),C>c&&Math.abs(p)>f&&(i.swipe[1]=Math.sign(h))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const i=this.config,n=i.device;i.pointerLock&&e.currentTarget.requestPointerLock(),i.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,bf(e);const i=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",i),this.eventStore.add(this.sharedConfig.window,"touch","cancel",i),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const i=fa[e.key];if(i){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=i(this.config.keyboardDisplacement,r),n._keyboardActive=!0,le.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in fa&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const i=this.config.device;e(i,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(i,"change",this.pointerMove.bind(this)),e(i,"end",this.pointerUp.bind(this)),e(i,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function bf(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const Yt=typeof window!="undefined"&&window.document&&window.document.createElement;function ha(){return Yt&&"ontouchstart"in window}function gf(){return ha()||Yt&&window.navigator.maxTouchPoints>1}function vf(){return Yt&&"onpointerdown"in window}function yf(){return Yt&&"exitPointerLock"in window.document}function wf(){try{return"constructor"in GestureEvent}catch(t){return!1}}const Se={isBrowser:Yt,gesture:wf(),touch:ha(),touchscreen:gf(),pointer:vf(),pointerLock:yf()},xf=250,Sf=180,kf=.5,Ef=50,Cf=250,Pf=10,pa={mouse:0,touch:0,pen:8},Mf=J(J({},Gt),{},{device(t,e,{pointer:{touch:i=!1,lock:n=!1,mouse:r=!1}={}}){return this.pointerLock=n&&Se.pointerLock,Se.touch&&i?"touch":this.pointerLock?"mouse":Se.pointer&&!r?"pointer":Se.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:i}){if(this.preventScrollDelay=typeof i=="number"?i:i||i===void 0&&t?xf:void 0,!(!Se.touchscreen||i===!1))return t||(i!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:i=!0,buttons:n=1,keys:r=!0}={}}){return this.pointerButtons=n,this.keys=r,!this.pointerLock&&this.device==="pointer"&&i},threshold(t,e,{filterTaps:i=!1,tapsThreshold:n=3,axis:r=void 0}){const o=le.toVector(t,i?n:r?1:0);return this.filterTaps=i,this.tapsThreshold=n,o},swipe({velocity:t=kf,distance:e=Ef,duration:i=Cf}={}){return{velocity:this.transform(le.toVector(t)),distance:this.transform(le.toVector(e)),duration:i}},delay(t=0){switch(t){case!0:return Sf;case!1:return 0;default:return t}},axisThreshold(t){return t?J(J({},pa),t):pa},keyboardDisplacement(t=Pf){return t}});J(J({},ua),{},{device(t,e,{shared:i,pointer:{touch:n=!1}={}}){if(i.target&&!Se.touch&&Se.gesture)return"gesture";if(Se.touch&&n)return"touch";if(Se.touchscreen){if(Se.pointer)return"pointer";if(Se.touch)return"touch"}},bounds(t,e,{scaleBounds:i={},angleBounds:n={}}){const r=s=>{const l=ca(Mi(i,s),{min:-1/0,max:1/0});return[l.min,l.max]},o=s=>{const l=ca(Mi(n,s),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof i!="function"&&typeof n!="function"?[r(),o()]:s=>[r(s),o(s)]},threshold(t,e,i){return this.lockDirection=i.axis==="lock",le.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}}),J(J({},Gt),{},{mouseOnly:(t=!0)=>t}),J(J({},Gt),{},{mouseOnly:(t=!0)=>t});const ma=new Map,nr=new Map;function Tf(t){ma.set(t.key,t.engine),nr.set(t.key,t.resolver)}const _f={key:"drag",engine:mf,resolver:Mf};function If(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}function Af(t,e){if(t==null)return{};var i=If(t,e),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}const Of={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=Se.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},Ff=["target","eventOptions","window","enabled","transform"];function Ti(t={},e){const i={};for(const[n,r]of Object.entries(e))switch(typeof r){case"function":i[n]=r.call(i,t[n],n,t);break;case"object":i[n]=Ti(t[n],r);break;case"boolean":r&&(i[n]=t[n]);break}return i}function Bf(t,e,i={}){const n=t,{target:r,eventOptions:o,window:s,enabled:l,transform:h}=n,u=Af(n,Ff);if(i.shared=Ti({target:r,eventOptions:o,window:s,enabled:l,transform:h},Of),e){const p=nr.get(e);i[e]=Ti(J({shared:i.shared},u),p)}else for(const p in u){const y=nr.get(p);y&&(i[p]=Ti(J({shared:i.shared},u[p]),y))}return i}class ba{constructor(e,i){pe(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=i}add(e,i,n,r,o){const s=this._listeners,l=tf(i,n),h=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=J(J({},h),o);e.addEventListener(l,r,u);const p=()=>{e.removeEventListener(l,r,u),s.delete(p)};return s.add(p),p}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class zf{constructor(){pe(this,"_timeouts",new Map)}add(e,i,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(i,n,...r))}remove(e){const i=this._timeouts.get(e);i&&window.clearTimeout(i)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class Nf{constructor(e){pe(this,"gestures",new Set),pe(this,"_targetEventStore",new ba(this)),pe(this,"gestureEventStores",{}),pe(this,"gestureTimeoutStores",{}),pe(this,"handlers",{}),pe(this,"config",{}),pe(this,"pointerIds",new Set),pe(this,"touchIds",new Set),pe(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Lf(this,e)}setEventIds(e){if(Pi(e))return this.touchIds=new Set(of(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,i){this.handlers=e,this.nativeHandlers=i}applyConfig(e,i){this.config=Bf(e,i,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const i=this.config.shared,n={};let r;if(!(i.target&&(r=i.target(),!r))){if(i.enabled){for(const s of this.gestures){const l=this.config[s],h=ga(n,l.eventOptions,!!r);if(l.enabled){const u=ma.get(s);new u(this,e,s).bind(h)}}const o=ga(n,i.eventOptions,!!r);for(const s in this.nativeHandlers)o(s,"",l=>this.nativeHandlers[s](J(J({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const o in n)n[o]=lf(...n[o]);if(!r)return n;for(const o in n){const{device:s,capture:l,passive:h}=ef(o);this._targetEventStore.add(r,s,"",n[o],{capture:l,passive:h})}}}}function yt(t,e){t.gestures.add(e),t.gestureEventStores[e]=new ba(t,e),t.gestureTimeoutStores[e]=new zf}function Lf(t,e){e.drag&&yt(t,"drag"),e.wheel&&yt(t,"wheel"),e.scroll&&yt(t,"scroll"),e.move&&yt(t,"move"),e.pinch&&yt(t,"pinch"),e.hover&&yt(t,"hover")}const ga=(t,e,i)=>(n,r,o,s={},l=!1)=>{var h,u;const p=(h=s.capture)!==null&&h!==void 0?h:e.capture,y=(u=s.passive)!==null&&u!==void 0?u:e.passive;let c=l?n:$u(n,r,p);i&&y&&(c+="Passive"),t[c]=t[c]||[],t[c].push(o)};function Df(t,e={},i,n){const r=a.useMemo(()=>new Nf(t),[]);if(r.applyHandlers(t,n),r.applyConfig(e,i),a.useEffect(r.effect.bind(r)),a.useEffect(()=>r.clean.bind(r),[]),e.target===void 0)return r.bind.bind(r)}function Zf(t,e){return Tf(_f),Df({drag:t},e||{},"drag")}const _i="adm-popup",Vf=Object.assign(Object.assign({},qu),{closeOnSwipe:!1,position:"bottom"}),rr=t=>{const{locale:e,popup:i={}}=si(),n=He(Vf,i,t),r=te(`${_i}-body`,n.bodyClassName,`${_i}-body-position-${n.position}`),[o,s]=a.useState(n.visible),l=a.useRef(null);Qo(l,n.disableBodyScroll&&o?"strict":!1),X.useIsomorphicLayoutEffect(()=>{n.visible&&s(!0)},[n.visible]);const h=X.useUnmountedRef(),{percent:u}=Ht({percent:n.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var m,f;h.current||(s(n.visible),n.visible?(m=n.afterShow)===null||m===void 0||m.call(n):(f=n.afterClose)===null||f===void 0||f.call(n))}}),p=Zf(({swipe:[,m]})=>{var f;n.closeOnSwipe&&(m===1&&n.position==="bottom"||m===-1&&n.position==="top")&&((f=n.onClose)===null||f===void 0||f.call(n))},{axis:"y",enabled:["top","bottom"].includes(n.position)}),y=Hu(o&&n.visible),c=Rs(n.stopPropagation,Ce(n,a.createElement("div",Object.assign({className:_i,onClick:n.onClick,style:{display:o?void 0:"none",touchAction:["top","bottom"].includes(n.position)?"none":"auto"}},p()),n.mask&&a.createElement(Wu,{visible:y,forceRender:n.forceRender,destroyOnClose:n.destroyOnClose,onMaskClick:m=>{var f,b;(f=n.onMaskClick)===null||f===void 0||f.call(n,m),n.closeOnMaskClick&&((b=n.onClose)===null||b===void 0||b.call(n))},className:n.maskClassName,style:n.maskStyle,disableBodyScroll:!1,stopPropagation:n.stopPropagation}),a.createElement(vt.div,{className:r,style:Object.assign(Object.assign({},n.bodyStyle),{pointerEvents:u.to(m=>m===0?"unset":"none"),transform:u.to(m=>n.position==="bottom"?`translate(0, ${m}%)`:n.position==="top"?`translate(0, -${m}%)`:n.position==="left"?`translate(-${m}%, 0)`:n.position==="right"?`translate(${m}%, 0)`:"none")}),ref:l},n.showCloseButton&&a.createElement("a",{className:te(`${_i}-close-icon`,"adm-plain-anchor"),onClick:()=>{var m;(m=n.onClose)===null||m===void 0||m.call(n)},role:"button","aria-label":e.common.close},n.closeIcon),n.children))));return a.createElement(er,{active:o,forceRender:n.forceRender,destroyOnClose:n.destroyOnClose},$s(n.getContainer,c))},va="adm-safe-area",ya=t=>Ce(t,a.createElement("div",{className:te(va,`${va}-position-${t.position}`)})),jf=X.createUpdateEffect(X.useIsomorphicLayoutEffect),wt="adm-badge",wa=a.createElement(a.Fragment,null),Uf=Ho(t=>{const{content:e,color:i,children:n}=t,r=e===wa,o=te(wt,{[`${wt}-fixed`]:!!n,[`${wt}-dot`]:r,[`${wt}-bordered`]:t.bordered}),s=e||e===0?Ce(t,a.createElement("div",{className:o,style:{"--color":i}},!r&&a.createElement("div",{className:`${wt}-content`},e))):null;return n?a.createElement("div",{className:te(`${wt}-wrapper`,t.wrapperClassName),style:t.wrapperStyle},n,s):s},{dot:wa}),Wf="adm-dot-loading",qf={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},Hf={color:"default"},Kf=a.memo(t=>{var e;const i=He(Hf,t);return Ce(i,a.createElement("div",{style:{color:(e=qf[i.color])!==null&&e!==void 0?e:i.color},className:te("adm-loading",Wf)},a.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(-100.000000, -71.000000)"},a.createElement("g",{transform:"translate(95.000000, 71.000000)"},a.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(n=>a.createElement("rect",{key:n,fill:"currentColor",x:20+n*26,y:"16",width:"8",height:"8",rx:"2"},a.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${n*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});function Gf(t){return!!t&&typeof t=="object"&&typeof t.then=="function"}const ke="adm-button",Yf={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:a.createElement(Kf,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},Ii=a.forwardRef((t,e)=>{const i=He(Yf,t),[n,r]=a.useState(!1),o=a.useRef(null),s=i.loading==="auto"?n:i.loading,l=i.disabled||s;a.useImperativeHandle(e,()=>({get nativeElement(){return o.current}}));const h=u=>td(void 0,void 0,void 0,function*(){if(!i.onClick)return;const p=i.onClick(u);if(Gf(p))try{r(!0),yield p,r(!1)}catch(y){throw r(!1),y}});return Ce(i,a.createElement("button",{ref:o,type:i.type,onClick:h,className:te(ke,{[`${ke}-${i.color}`]:i.color,[`${ke}-block`]:i.block,[`${ke}-disabled`]:l,[`${ke}-fill-outline`]:i.fill==="outline",[`${ke}-fill-none`]:i.fill==="none",[`${ke}-mini`]:i.size==="mini",[`${ke}-small`]:i.size==="small",[`${ke}-large`]:i.size==="large",[`${ke}-loading`]:s},`${ke}-shape-${i.shape}`),disabled:l,onMouseDown:i.onMouseDown,onMouseUp:i.onMouseUp,onTouchStart:i.onTouchStart,onTouchEnd:i.onTouchEnd},s?a.createElement("div",{className:`${ke}-loading-wrapper`},i.loadingIcon,i.loadingText):a.createElement("span",null,i.children)))});function Qf(t){const{value:e,defaultValue:i,onChange:n}=t,r=X.useUpdate(),o=a.useRef(e!==void 0?e:i);e!==void 0&&(o.current=e);const s=X.useMemoizedFn((l,h=!1)=>{const u=typeof l=="function"?l(o.current):l;if(!(!h&&u===o.current))return o.current=u,r(),n==null?void 0:n(u)});return[o.current,s]}function Xf(t,e){const i=X.useMemoizedFn(t);X.useIsomorphicLayoutEffect(()=>{const n=e.current;if(n)if(window.ResizeObserver){let r;const o=new ResizeObserver(()=>{r=window.requestAnimationFrame(()=>i(n))});return o.observe(n),()=>{window.cancelAnimationFrame(r),o.disconnect()}}else i(n)},[e])}function Jf(t,e,i){if(t&&typeof MutationObserver!="undefined"){let n=new MutationObserver(()=>{i()});return n.observe(t,e),()=>{n&&(n.disconnect(),n=null)}}return()=>{}}function $f(t,e,i){const n=X.useMemoizedFn(t);a.useEffect(()=>Jf(e.current,i,n),[e])}function xa(t,e,i){let n=t;return n=Math.max(t,e),i!==void 0&&(n=Math.min(n,i)),n}var Sa={exports:{}},U={};/**
17
17
  * @license React
18
18
  * react-is.production.min.js
19
19
  *
@@ -21,7 +21,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
21
21
  *
22
22
  * This source code is licensed under the MIT license found in the
23
23
  * LICENSE file in the root directory of this source tree.
24
- */var or=Symbol.for("react.element"),sr=Symbol.for("react.portal"),Ai=Symbol.for("react.fragment"),Oi=Symbol.for("react.strict_mode"),Fi=Symbol.for("react.profiler"),Bi=Symbol.for("react.provider"),zi=Symbol.for("react.context"),$f=Symbol.for("react.server_context"),Ni=Symbol.for("react.forward_ref"),Li=Symbol.for("react.suspense"),Di=Symbol.for("react.suspense_list"),Zi=Symbol.for("react.memo"),Vi=Symbol.for("react.lazy"),Rf=Symbol.for("react.offscreen"),Sa;Sa=Symbol.for("react.module.reference");function Ee(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case or:switch(t=t.type,t){case Ai:case Fi:case Oi:case Li:case Di:return t;default:switch(t=t&&t.$$typeof,t){case $f:case zi:case Ni:case Vi:case Zi:case Bi:return t;default:return e}}case sr:return e}}}U.ContextConsumer=zi,U.ContextProvider=Bi,U.Element=or,U.ForwardRef=Ni,U.Fragment=Ai,U.Lazy=Vi,U.Memo=Zi,U.Portal=sr,U.Profiler=Fi,U.StrictMode=Oi,U.Suspense=Li,U.SuspenseList=Di,U.isAsyncMode=function(){return!1},U.isConcurrentMode=function(){return!1},U.isContextConsumer=function(t){return Ee(t)===zi},U.isContextProvider=function(t){return Ee(t)===Bi},U.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===or},U.isForwardRef=function(t){return Ee(t)===Ni},U.isFragment=function(t){return Ee(t)===Ai},U.isLazy=function(t){return Ee(t)===Vi},U.isMemo=function(t){return Ee(t)===Zi},U.isPortal=function(t){return Ee(t)===sr},U.isProfiler=function(t){return Ee(t)===Fi},U.isStrictMode=function(t){return Ee(t)===Oi},U.isSuspense=function(t){return Ee(t)===Li},U.isSuspenseList=function(t){return Ee(t)===Di},U.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Ai||t===Fi||t===Oi||t===Li||t===Di||t===Rf||typeof t=="object"&&t!==null&&(t.$$typeof===Vi||t.$$typeof===Zi||t.$$typeof===Bi||t.$$typeof===zi||t.$$typeof===Ni||t.$$typeof===Sa||t.getModuleId!==void 0)},U.typeOf=Ee,xa.exports=U;var e1=xa.exports;function t1(t,e){let i=0;function n(r){a.Children.forEach(r,o=>{e1.isFragment(o)?n(o.props.children):(e(o,i),i+=1)})}n(t)}const me="adm-tabs",i1=()=>null,n1={activeLineMode:"auto",stretch:!0,direction:"ltr"},ji=qo(t=>{var e;const i=He(n1,t),n=a.useRef(null),r=a.useRef(null),o={};let s=null;const l=[],h=i.direction==="rtl";t1(i.children,(P,T)=>{if(!a.isValidElement(P))return;const L=P.key;if(typeof L!="string")return;T===0&&(s=L);const q=l.push(P);o[L]=q-1});const[u,p]=Yf({value:i.activeKey,defaultValue:(e=i.defaultActiveKey)!==null&&e!==void 0?e:s,onChange:P=>{var T;P!==null&&((T=i.onChange)===null||T===void 0||T.call(i,P))}}),[{x:y,width:c},m]=Ht(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:f},b]=Ht(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:v,rightMaskOpacity:C},S]=Ht(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function w(P=!1,T=!1){const L=n.current;if(!L)return;const q=o[u];if(q===void 0){m.start({x:0,width:0,immediate:!0});return}const ne=r.current;if(!ne)return;const K=L.children.item(q+1),ue=K.children.item(0),$=ue.offsetLeft,Y=ue.offsetWidth,Te=K.offsetLeft,Xt=K.offsetWidth,Ze=L.offsetWidth,kt=L.scrollWidth,on=L.scrollLeft,st=ne.offsetWidth;let ze=0,at=0;if(i.activeLineMode==="auto"?(ze=$,at=Y):i.activeLineMode==="full"?(ze=Te,at=Xt):ze=$+(Y-st)/2,h){const sn=["auto","full"].includes(i.activeLineMode)?at:st;ze=-(Ze-ze-sn)}m.start({x:ze,width:at,immediate:P});const Ve=kt-Ze;if(Ve<=0)return;let Xe=0;h?Xe=-wa(Ze/2-$+Y/2-st,0,Ve):Xe=wa($-(Ze-Y)/2,0,Ve),(!T||i.autoScroll!==!1)&&b.start({scrollLeft:Xe,from:{scrollLeft:on},immediate:P})}X.useIsomorphicLayoutEffect(()=>{w(!y.isAnimating)},[]),Vf(()=>{w()},[u]),Qf(()=>{w(!y.isAnimating)},n),Jf(()=>{w(!y.isAnimating,!0)},n,{subtree:!0,childList:!0,characterData:!0});const{run:k}=X.useThrottleFn((P=!1)=>{const T=n.current;if(!T)return;const L=T.scrollLeft;let q=!1,ne=!1;h?(q=Math.round(-L)+T.offsetWidth<T.scrollWidth,ne=L<0):(q=L>0,ne=L+T.offsetWidth<T.scrollWidth),S.start({leftMaskOpacity:q?1:0,rightMaskOpacity:ne?1:0,immediate:P})},{wait:100,trailing:!0,leading:!0});return X.useIsomorphicLayoutEffect(()=>{k(!0)},[]),Ce(i,a.createElement("div",{className:me,style:{direction:i.direction}},a.createElement("div",{className:`${me}-header`},a.createElement(vt.div,{className:te(`${me}-header-mask`,`${me}-header-mask-left`),style:{opacity:v}}),a.createElement(vt.div,{className:te(`${me}-header-mask`,`${me}-header-mask-right`),style:{opacity:C}}),a.createElement(vt.div,{className:`${me}-tab-list`,ref:n,scrollLeft:f,onScroll:k,role:"tablist"},a.createElement(vt.div,{ref:r,className:`${me}-tab-line`,style:{width:i.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":c,x:y}}),l.map(P=>Ce(P.props,a.createElement("div",{key:P.key,className:te(`${me}-tab-wrapper`,{[`${me}-tab-wrapper-stretch`]:i.stretch})},a.createElement("div",{onClick:()=>{const{key:T}=P;P.props.disabled||T!=null&&p(T.toString())},className:te(`${me}-tab`,{[`${me}-tab-active`]:P.key===u,[`${me}-tab-disabled`]:P.props.disabled}),role:"tab","aria-selected":P.key===u},P.props.title)))))),l.map(P=>{if(P.props.children===void 0)return null;const T=P.key===u;return a.createElement(er,{key:P.key,active:T,forceRender:P.props.forceRender,destroyOnClose:P.props.destroyOnClose},a.createElement("div",{className:`${me}-content`,style:{display:T?"block":"none"}},P.props.children))})))},{Tab:i1}),nt="adm-error-block",r1={status:"default"};function o1(t){return i=>{var n;const r=He(r1,i),{locale:o}=si(),s=o.ErrorBlock[r.status],l="description"in r?r.description:s.description,h="title"in r?r.title:s.title,u=(n=r.image)!==null&&n!==void 0?n:t[r.status],p=typeof u=="string"?a.createElement("img",{src:u,alt:"error block image"}):u;return Ce(r,a.createElement("div",{className:te(nt,{[`${nt}-full-page`]:r.fullPage})},a.createElement("div",{className:`${nt}-image`},p),a.createElement("div",{className:`${nt}-description`},![void 0,null].includes(h)&&a.createElement("div",{className:`${nt}-description-title`},h),![void 0,null].includes(l)&&a.createElement("div",{className:`${nt}-description-subtitle`},l)),r.children&&a.createElement("div",{className:`${nt}-content`},r.children)))}}const s1=a.createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-default-a"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.createElement("circle",{id:"error-block-image-default-d",cx:18.823,cy:18.823,r:18.823}),a.createElement("rect",{id:"error-block-image-default-b",x:3.5,y:9,width:51.429,height:88,rx:4.571})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M73.557.004c19.435-.311 38.696 17.016 51.523 35.287 8.708-10.822 17.127-16.233 25.255-16.233 13.333 0 28.35 14.274 45.053 42.822 1.769 3.024-3.582 7.435-16.054 13.231l-41.322 1.37c-7.343 5.872-31.225.626-69.152 1.234-27.79.445-45.759-1.234-53.908-5.037C3.2 71.143-1.625 68.686.48 65.308 27.371 22.12 51.73.353 73.557.003Zm93.098 49.53a1.125 1.125 0 0 0-.401.072l-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.283 1.719 4.153 3.898 4.314l.026.001v3.805c0 .39.25.705.56.705.31 0 .56-.316.56-.705l.001-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734Zm-100-5a1.125 1.125 0 0 0-.331.05l-.035.01-.035.012-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.212 1.613 4.036 3.695 4.294l.203.02.026.001v3.805c0 .39.25.705.56.705.282 0 .515-.26.555-.6l.006-.105v-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734ZM52.64 38.348l-.15.008-.149.023-.032.007-.032.008-.078.022-.045.015-.045.016-.06.023-.038.017-.038.017-.058.028-.022.011a2.201 2.201 0 0 0-.323.204l-.05.038-.05.04-.025.02-.025.021a3.742 3.742 0 0 0-.31.294l-.036.04c-.035.037-.07.076-.105.116-.01.012-.02.025-.031.036a3.275 3.275 0 0 0-.081.098l-.063.078c-2.031 2.583-3.48 8.692-3.48 11.027 0 2.636 1.846 4.832 4.292 5.323l.224.04-.064-.012.105.018.103.014v4.618c0 .47.299.85.667.85.337 0 .615-.32.659-.735l.006-.115v-4.618c.18-.023.355-.054.527-.094l.256-.067.196-.06c2.136-.706 3.68-2.75 3.68-5.162 0-2.996-2.383-12.207-5.325-12.207Z",transform:"translate(2.286 22.286)",fill:"url(#error-block-image-default-a)"}),a.createElement("g",{transform:"rotate(-90 102.429 55.357)"},a.createElement("path",{d:"M6.857 0H52a6.857 6.857 0 0 1 6.857 6.857v92A6.857 6.857 0 0 1 52 105.714H6.857A6.857 6.857 0 0 1 0 98.857v-92A6.857 6.857 0 0 1 6.857 0Z",fill:"#7EACFF"}),a.createElement("mask",{id:"error-block-image-default-c",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-default-b"})),a.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-default-b"}),a.createElement("path",{d:"M11.838 91.8a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-2.858 0a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.16-2.305a.64.64 0 0 1 .628.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-2.982-.04a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm5.268-.531a.64.64 0 0 1 .628.651.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.858-1.143a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-6.37-.917c.209 0 .377.175.377.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm3.512-.798.093.007a.644.644 0 0 1 .535.645.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.652.627-.652Zm5.715 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-11.429 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.261.241c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm11.833-.812a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.628-.651c0-.36.281-.652.628-.652Zm-4.851.399c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm10.313-2.056a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-2.354-.128a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.652.628-.652Zm-13.798.311c.207 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.377-.39c0-.217.169-.392.377-.392Zm11.832-.812a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-6.285 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm3.428 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-6.118.24c.208 0 .376.176.376.392a.384.384 0 0 1-.376.39.384.384 0 0 1-.377-.39c0-.216.169-.391.377-.391Zm11.261-2.525a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm-3.557.484c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.478-.555a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.512-.26c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.857 0c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-4.571 0c.207 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm14.898-1.835a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-8.027-.245c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.169-.391.376-.391Zm6.271-1.349c.208 0 .377.175.377.391a.384.384 0 0 1-.377.391.384.384 0 0 1-.376-.39c0-.217.169-.392.376-.392Zm-11.484-.481c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm15.103-.972c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.39c0-.217.168-.392.376-.392Zm-9.333-1.404c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-6.819-.405c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-default-c)",transform:"rotate(116 12.367 83.503)"}),a.createElement("path",{stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"M36.774 5.474H21.523"}),a.createElement("path",{d:"m67.818 94.025-4.996 3.913m4.996 11.91-4.996-3.912m-1.142 9.145-1.143-6.288m10.71-6.768h-7.262",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("circle",{cx:8.571,cy:8.571,r:8.571,transform:"translate(22.857 142)",fill:"#FFCD6B",fillRule:"nonzero"}),a.createElement("g",{transform:"translate(132.857 124)"},a.createElement("mask",{id:"error-block-image-default-e",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-default-d"})),a.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-default-d"}),a.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:13.886,cy:15.12,r:18.823}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:23.4,cy:29.057,r:1}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.343,cy:29.829,r:1}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:18.771,cy:32.657,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:29.571,cy:25.971,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:19.286,cy:7.971,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:26.486,cy:5.914,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:11.057,cy:6.943,r:1}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.086,cy:15.686,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:22.886,cy:14.657,r:1})),a.createElement("path",{d:"m87.429 135.123 6.591-9.378v-.08h-5.99v-2.559h10.038v1.787l-6.44 9.254v.082h6.56v2.557h-10.76v-1.663Zm12.185-5.889 4.948-7.047v-.056h-4.498v-1.917h7.536v1.34l-4.849 6.942v.059h4.923v1.92h-8.06v-1.24Zm10.345.702 3.708-5.274v-.045h-3.372v-1.437h5.648v1.003l-3.628 5.206v.045H116v1.438h-6.041v-.936Z",fill:"#FFF",fillRule:"nonzero"}))),a1=a.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("title",null,"@反馈/异常/网络服务异常"),a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-disconnected-c"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.createElement("circle",{id:"error-block-image-disconnected-d",cx:22.309,cy:22.309,r:22.309}),a.createElement("path",{id:"error-block-image-disconnected-a",d:"M0 0h400v400H0z"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("mask",{id:"error-block-image-disconnected-b",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-disconnected-a"})),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"url(#error-block-image-disconnected-c)"},a.createElement("path",{d:"M151.686 45.58c38.869-.623 77.391 34.03 103.046 70.573 17.416-21.644 34.253-32.465 50.51-32.465 26.666 0 56.701 28.548 90.105 85.643 3.539 6.05-7.164 14.87-32.107 26.462l-82.643 2.741c-14.686 11.745-62.45 1.252-138.305 2.467-55.58.89-91.518-2.468-107.816-10.074-23.505-3.07-33.154-7.983-28.946-14.74C59.313 89.813 108.03 46.278 151.686 45.58Zm186.195 99.06-.127.003-.126.01a2.32 2.32 0 0 0-.465.103l-.032.01-.031.01a2.364 2.364 0 0 0-.181.071 2.52 2.52 0 0 0-.116.054l-.133.067-.042.024-.036.02a2.946 2.946 0 0 0-.133.08l-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024a4.906 4.906 0 0 0-.31.27l-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.108.008v7.608c0 .779.502 1.41 1.121 1.41.62 0 1.121-.632 1.121-1.41v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-200-10-.127.003-.126.01a2.32 2.32 0 0 0-.368.073l-.049.014-.048.016-.032.01-.031.01a2.364 2.364 0 0 0-.181.071l-.058.026-.058.028-.133.067-.042.024-.036.02-.066.039-.067.041-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024l-.156.13-.154.14-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.054.004.054.004v7.608c0 .779.502 1.41 1.121 1.41.58 0 1.058-.556 1.115-1.266l.006-.144v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-28.029-12.373-.107.002-.106.006a2.978 2.978 0 0 0-.551.095 3.444 3.444 0 0 0-.323.104 3.962 3.962 0 0 0-.61.297c-.076.045-.15.092-.226.141-4.964 3.312-8.728 18.445-8.728 23.77 0 5.434 3.922 9.935 9.04 10.726l.28.04v9.236c0 .886.532 1.614 1.21 1.692l.121.007.122-.007c.638-.074 1.147-.723 1.204-1.538l.006-.155v-9.235c5.254-.668 9.32-5.234 9.32-10.767 0-5.993-4.77-24.414-10.652-24.414Z"})),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},a.createElement("g",{transform:"translate(85.858 150.644)"},a.createElement("path",{d:"M116.26 28.467c1.352 0 2.703.018 4.054.054 3.923.385 10.188 4.248 9.267 11.061-.878 6.496-5.836 9.089-8.962 9.529a130.762 130.762 0 0 0-4.36-.072c-28.567 0-60.654 10.149-96.22 30.676l-2.227 1.297c-.744.437-1.49.878-2.236 1.323-4.878 2.911-11.193 1.316-14.103-3.562C-1.438 73.894.157 67.58 5.035 64.67 45.34 40.62 82.4 28.467 116.26 28.467Zm22 11.63c1.03-5.942 6.376-8.618 11.084-8.08C172.14 36.91 194.83 46.86 217.37 61.794c4.735 3.138 6.03 9.52 2.893 14.255-3.138 4.736-9.52 6.031-14.256 2.893-20.111-13.325-40.075-22.165-59.935-26.584a9.974 9.974 0 0 0-.325-.088c-3.987-1.015-8.602-5.738-7.487-12.175ZM116.26 77.418c22.777 0 45.4 7.057 67.73 20.988 4.82 3.007 6.289 9.351 3.282 14.17-3.007 4.82-9.351 6.29-14.17 3.283-19.194-11.974-38.095-17.87-56.842-17.87s-37.648 5.896-56.842 17.87c-4.82 3.007-11.164 1.537-14.17-3.282-3.007-4.82-1.538-11.164 3.282-14.171 22.33-13.931 44.953-20.988 67.73-20.988ZM117.974 124.67c9.85 0 17.303 1.69 25.687 5.082l.82.337 2.9 1.231 3.008 1.252.77.305.107.04c5.326 1.976 8.042 7.895 6.066 13.221-1.976 5.326-7.895 8.042-13.221 6.067l-.713-.27-.726-.285-.763-.31-1.263-.527-2.944-1.26-1.125-.473c-6.393-2.648-11.433-3.838-18.603-3.838-8.223 0-16.532 2.126-25.028 6.475-5.056 2.588-11.254.587-13.842-4.47-2.589-5.056-.588-11.253 4.47-13.842 11.313-5.791 22.814-8.735 34.4-8.735ZM118.235 197.047c7.15 0 13.77-.897 19.841-2.721 5.44-1.635 8.526-7.37 6.892-12.81-1.635-5.44-7.37-8.526-12.81-6.892-4.072 1.224-8.707 1.851-13.923 1.851-4.36 0-8.79-1.045-13.373-3.21l-.626-.301c-5.095-2.512-11.262-.418-13.773 4.678-2.512 5.095-.418 11.261 4.678 13.773 7.559 3.727 15.288 5.632 23.094 5.632Z",fill:"#377EFF",fillRule:"nonzero"}),a.createElement("path",{d:"M198.35 62.413c2.755-4.967 9.016-6.76 13.984-4.004 13.068 7.25 19.124 18.535 17.615 30.952-1.157 9.515-6.83 18.757-14.096 24.352-13.364 10.29-34.915 9.401-49.363-1.91-4.472-3.502-5.26-9.967-1.758-14.44 3.436-4.388 9.724-5.229 14.185-1.952l.255.194c7.283 5.702 18.475 6.164 24.13 1.809 3.072-2.366 5.766-6.754 6.226-10.536.467-3.844-1.21-7.07-6.796-10.267l-.378-.213c-4.967-2.756-6.76-9.017-4.004-13.985ZM61.35 103.092c-2.84-4.92-9.13-6.607-14.05-3.768-20.662 11.922-21.772 35.751-6.018 51.69 13.752 13.914 33.192 13.447 50.507 1.158 4.633-3.288 5.723-9.708 2.436-14.34-3.288-4.633-9.709-5.724-14.341-2.436-9.763 6.928-18.07 7.128-23.97 1.158-6.761-6.84-6.498-14.501 1.35-19.225l.317-.187c4.92-2.84 6.608-9.13 3.769-14.05ZM129.103 135.702c1.688-5.424 7.454-8.453 12.878-6.764 14.776 4.599 23.437 13.727 25.259 25.58 1.316 8.561-1.228 17.533-5.58 24.052-3.132 4.688-7.388 8.287-12.504 11.112-3.03 1.673-5.75 2.811-9.37 4.066l-1.4.477c-5.387 1.806-11.217-1.097-13.022-6.484-1.805-5.386 1.098-11.216 6.484-13.02l1.09-.374c6.032-2.112 9.602-4.19 11.613-7.201 1.693-2.535 2.818-6.502 2.356-9.503-.564-3.673-3.432-6.696-11.04-9.063-5.424-1.689-8.452-7.454-6.764-12.878Z",fill:"#377EFF",fillRule:"nonzero"}),a.createElement("path",{d:"M148.072 181.58c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.236-9.096-10.275-9.707",stroke:"#FFF",strokeWidth:.571,strokeLinecap:"round"}),a.createElement("ellipse",{fill:"#7EACFF",transform:"rotate(10 147 41.933)",cx:147,cy:41.933,rx:9.143,ry:10.286}),a.createElement("path",{d:"M210.422 107.472c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.668-9.883-11.572-12.067M51.604 131.769c-3.15-6.8-3.537-12.694-1.161-17.685 2.376-4.99 5.57-8.136 9.583-9.438",stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M21.53 64.408c4.946-3.389 9.817-6.026 14.612-7.912",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"m113.243 15.444 9.588 8.314M144.31 9.405l-5.775 11.3m18.389-1.246-11.907 4.643M127.64 5.66l2.77 14.255",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}))),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},a.createElement("g",{transform:"translate(275.143 302.571)"},a.createElement("mask",{id:"error-block-image-disconnected-e",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-disconnected-d"})),a.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-disconnected-d"}),a.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:16.457,cy:17.92,r:22.309}),a.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:14.263,cy:12.069,r:2.194}))),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"#FBBE47",fillRule:"nonzero"},a.createElement("circle",{cx:12,cy:12,r:12,transform:"translate(84 297.714)"})))),l1=a.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-empty-a"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.createElement("path",{d:"M146.183 18.461c31.705 23.336 33.349 71.85 4.93 96.614-.252.22 6.172 5.602 13.577 11.414l.686.537.69.54.695.54.348.27.698.54a341.27 341.27 0 0 0 8.806 6.596c1.114.802 4.643-.853 10.587-4.965l-.532 12.218a1.2 1.2 0 0 1-.481.91l-10.868 8.111c-1.405 1.048-3.32 1.185-4.854.072l-35.578-25.834c-33.414 17.333-79.913 15-109.804-7-33.444-24.616-33.444-75.95 0-100.563 33.443-24.615 87.657-24.615 121.1 0Zm-60.469 7.653C51.63 26.114 24 44.534 24 67.257S51.63 108.4 85.714 108.4s61.715-18.42 61.715-41.143c0-22.722-27.63-41.143-61.715-41.143Z",id:"error-block-image-empty-b"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M157.964 244.661H0L3.806 100.13a4.572 4.572 0 0 1 4.353-4.446l.217-.006h45.588V68.2a4.572 4.572 0 0 1 4.356-4.567l.216-.005h65.498l2.554-58.689a4.571 4.571 0 0 1 4.779-4.367l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.212 3.146 69.652L301.634 64.9a4.571 4.571 0 0 1 5.628 4.231l.005.215v43.955l56.162.001v130.264h-56.163v.001h-82.383v-.004h-66.919v1.098ZM89.503 160.03h-9.968v8.436h9.968v-8.436Zm0-14.507h-9.968v8.435h9.968v-8.435Zm197.985-5.15h-9.967v8.432h9.967v-8.431Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.436h9.967v-8.436Zm-84.643-3.29h-30.8v8.436h30.8v-8.436Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 50.286)",fill:"url(#error-block-image-empty-a)"}),a.createElement("g",{transform:"translate(108.571 189.886)"},a.createElement("mask",{id:"error-block-image-empty-c",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-empty-b"})),a.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-empty-b"}),a.createElement("path",{d:"M131.429 134.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM128 133.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM120 128.971a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.142.125.006a1.143 1.143 0 1 1-.125-.006Zm11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-22.857 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm17.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM136 125.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-13.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm18.857-2.286a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-37.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm13.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm18.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-28 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm17.715-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-4.571a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.428 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.143 1.142a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-9.143 0a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm30.286-3.429a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM124 109.543a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.858-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-11.428-3.429a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM124 99.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM49.143 55.829a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-9.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM52 52.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-19.429-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-1.142a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-13.143 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM64 44.4a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.125.007a1.143 1.143 0 1 1-.125-.007Zm11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.858 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM30.286 44.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM44 43.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM72 38.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-28 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm5.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM56 37.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM60.57 32.97a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM44 34.114a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm30.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-15.429 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.857-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-11.429-3.428a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM41.714 20.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-empty-c)"})),a.createElement("path",{d:"M295.213 319.24c.744.546.745 1.433.002 1.98l-11.806 8.81c-1.069.799-3.326.474-4.853-.609l-35.622-25.241c-33.375 17.037-79.545 14.615-109.28-7.271-33.443-24.615-33.443-64.521 0-89.133 33.443-24.616 87.657-24.616 121.1 0 31.706 23.336 33.35 60.42 4.931 85.185-.543.473 35.528 26.278 35.528 26.278ZM148.06 220.015c-25.44 17.853-25.44 46.8 0 64.652 25.44 17.85 66.689 17.85 92.129 0 25.436-17.853 25.436-46.799 0-64.652-25.44-17.853-66.688-17.853-92.129 0Z",fill:"#5D96FE"}),a.createElement("path",{d:"M123.514 233.021c2.185-5.241 5.67-9.735 10.453-13.482M264.967 271.54c-2.185 5.24-5.67 9.734-10.453 13.481",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M81.143 252.571c7.574 0 13.714 23.88 13.714 31.649 0 6.97-4.942 12.755-11.429 13.871v11.672c0 1.235-.767 2.237-1.713 2.237-.904 0-1.644-.912-1.71-2.07l-.005-.167v-11.526c-7.04-.595-12.571-6.644-12.571-14.017 0-7.024 5.02-27.222 11.581-31.027l.096-.053c.027-.016.055-.03.082-.045l.067-.035.066-.033.1-.05.094-.041a3.34 3.34 0 0 1 .224-.093l.11-.042.097-.032c.038-.013.077-.025.115-.036l.053-.016.053-.014a3.351 3.351 0 0 1 .23-.055l.085-.016a3.95 3.95 0 0 1 .441-.054l.11-.005.11-.002Z",fill:"#FFCD6B",fillRule:"nonzero"}),a.createElement("g",{transform:"translate(283.429 177.143)",fillRule:"nonzero"},a.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.49 0-2.707-1.46-2.79-3.301l-.004-.2-.001-19.018C8.659 71.92.13 62.518.13 51.123.13 40.071 8.154 8.49 18.694 2.015l.054-.031a5.94 5.94 0 0 1 .214-.128l.088-.048c.213-.12.427-.228.642-.326l.135-.06.18-.075.135-.053a5.796 5.796 0 0 1 .464-.16 4.44 4.44 0 0 1 .33-.092l.124-.03a7.122 7.122 0 0 1 .31-.065l.018-.003a6.305 6.305 0 0 1 .756-.088l.165-.007.166-.002Z",fill:"#FFCD6B"}),a.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.543 0-2.794-1.566-2.794-3.5V73.295C8.659 71.921.13 62.518.13 51.123.13 38.783 10.134.847 22.475.847Z",fill:"#FFCD6B"}),a.createElement("circle",{fill:"#FFB400",cx:26.4,cy:56.869,r:1.45}),a.createElement("circle",{fill:"#FFB400",cx:39.453,cy:58.319,r:1}),a.createElement("circle",{fill:"#FFB400",cx:17.698,cy:63.637,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:38.002,cy:51.068,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:18.665,cy:17.228,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:32.201,cy:13.36,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:26.83,cy:20.666,r:1.45}),a.createElement("circle",{fill:"#FFB400",cx:38.969,cy:31.731,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:25.433,cy:29.797,r:1.45}),a.createElement("path",{d:"M34.197 53.033c0 9.825-6.934 18.017-16.172 19.987a22.44 22.44 0 0 0 4.45.448c12.34 0 22.344-10.004 22.344-22.345C44.82 38.783 34.815.847 22.475.847c8.947 14.03 11.722 40.891 11.722 52.186Z",fill:"#FBBE47"})))),c1=a.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-busy-a"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.createElement("circle",{id:"error-block-image-busy-b",cx:34.857,cy:34.857,r:34.857})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M157.964 243.667H0L3.806 99.134a4.572 4.572 0 0 1 4.353-4.446l.217-.005h45.588V67.205a4.572 4.572 0 0 1 4.356-4.566l.216-.005 65.498-.001 2.554-58.688a4.571 4.571 0 0 1 4.779-4.368l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.213 3.146 69.652 74.976-17.906a4.571 4.571 0 0 1 5.628 4.23l.005.216v43.955h56.162v130.265l-56.163-.001v.002h-82.383v-.004h-66.919v1.098Zm-68.461-84.631h-9.968v8.435h9.968v-8.435Zm0-14.508h-9.968v8.436h9.968v-8.436Zm197.985-5.149h-9.967v8.432h9.967v-8.432Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.435h9.967v-8.435Zm-84.643-3.29h-30.8v8.435h30.8v-8.435Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 51.286)",fill:"url(#error-block-image-busy-a)"}),a.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l.958-.01c-.376 7.363 3.679 59.93 34.894 62.659 4.203.367 7.432.39 7.475 4.609.042 4.218-3.176 4.307-7.37 4.76-34.593 3.737-34.136 56.004-33.61 63.357l-.957.01c-5.276.053-9.51 4.373-9.455 9.649.053 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.054 9.508-4.374 9.455-9.648-.055-5.276-4.374-9.51-9.65-9.455l-.958.01c.377-7.363-.729-59.672-34.894-62.66-4.202-.367-7.432-.39-7.474-4.608-.043-4.219 3.175-4.308 7.369-4.76 31.276-3.377 34.136-56.004 33.61-63.357l.958-.01c5.276-.053 9.508-4.373 9.455-9.649-.055-5.276-4.374-9.509-9.65-9.454Z",fill:"#377EFF"}),a.createElement("path",{d:"M233.524 314.422c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.894-5.644c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.149 17.865c.108.684.773 1.147 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm-2.144-8.182c.109.684.773 1.148 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-1.586-4.694c.108.684.772 1.148 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.013-5.88c.109.685.773 1.148 1.484 1.036.71-.113 1.2-.759 1.09-1.443-.107-.684-.772-1.148-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm.236 15.575c.108.685.772 1.148 1.483 1.035.71-.112 1.2-.758 1.09-1.442-.107-.685-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.442Zm-.4 4.494c.108.684.772 1.147 1.483 1.035.71-.113 1.2-.759 1.091-1.443-.108-.684-.773-1.148-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-3.88-8.601c.108.684.772 1.147 1.483 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-.524-7.186c.065.41.463.688.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-2.265-4.102c.109.684.773 1.148 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.147-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm-.545-6.518c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm2.098 23.629c.109.684.773 1.147 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.443Zm-.756-9.65c.043.274.309.46.593.414a.512.512 0 0 0 .437-.577.512.512 0 0 0-.594-.414.512.512 0 0 0-.436.577Zm-.808 20.96c.109.684.773 1.147 1.484 1.034.71-.112 1.2-.758 1.09-1.442-.108-.685-.772-1.148-1.483-1.036-.71.113-1.199.759-1.09 1.443Zm-4.691-31.966c.065.41.463.689.89.621.426-.068.72-.455.654-.866-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm2.098 23.628c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.967-12.416c.109.684.773 1.147 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm1.073 6.772c.108.685.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.036-.711.113-1.2.759-1.091 1.443Zm-.009-3.131c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.43-9.03c.065.41.463.688.89.62.426-.067.72-.454.655-.865-.065-.41-.464-.689-.89-.62-.427.067-.72.454-.655.865ZM214.5 333.38c.108.685.772 1.148 1.483 1.036.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.711.112-1.2.758-1.091 1.442Zm-.156-7.178c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm-1.871-4.72c.108.684.773 1.147 1.483 1.034.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.035-.71.112-1.2.758-1.091 1.442Zm-1.614-6.857c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-.894-5.644c.065.41.464.689.89.621.427-.067.72-.455.655-.866-.065-.41-.463-.688-.89-.62-.427.067-.72.455-.655.865Zm-1.43-9.03c.065.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.958 14.225c.065.41.463.689.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-.703 12.81c.065.41.464.688.89.62.427-.067.72-.455.655-.865-.065-.41-.463-.689-.89-.621-.427.067-.72.455-.655.866Zm-4.543-22.536c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm2.806 30.138c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm-5.694-17.996c.065.41.463.688.89.62.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.866Zm-2.935-13.343c.066.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.463-.689-.89-.621-.426.068-.72.455-.655.866Z",fill:"#003CFF",fillRule:"nonzero"}),a.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l101.963-1.04c5.276-.052 9.508-4.372 9.455-9.648-.055-5.276-4.374-9.509-9.65-9.454ZM252.64 331.241l-101.964 1.038c-5.275.054-9.508 4.374-9.454 9.65.054 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.053 9.507-4.373 9.454-9.649-.054-5.275-4.374-9.508-9.649-9.454Z",fill:"#7EACFF"}),a.createElement("path",{stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"m196.824 197.298 52.216-.506M193.329 330.5h52.215"}),a.createElement("path",{d:"M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("circle",{cx:14.857,cy:14.857,r:14.857,transform:"translate(106.857 248.571)",fill:"#FFCD6B",fillRule:"nonzero"}),a.createElement("g",{transform:"translate(236.571 284.571)"},a.createElement("mask",{id:"error-block-image-busy-c",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-busy-b"})),a.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-busy-b"}),a.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:25.714,cy:28,r:34.857}),a.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:22.286,cy:18.857,r:3.429})))),d1=o1({default:s1,disconnected:a1,empty:l1,busy:c1}),rt="adm-space",u1={direction:"horizontal"},Ui=t=>{const e=He(u1,t),{direction:i,onClick:n}=e;return Ce(e,a.createElement("div",{className:te(rt,{[`${rt}-wrap`]:e.wrap,[`${rt}-block`]:e.block,[`${rt}-${i}`]:!0,[`${rt}-align-${e.align}`]:!!e.align,[`${rt}-justify-${e.justify}`]:!!e.justify}),onClick:n},a.Children.map(e.children,r=>r!=null&&a.createElement("div",{className:`${rt}-item`},r))))},xt="adm-nav-bar",ka=a.createElement(Rs,null),f1=t=>{const{navBar:e={}}=si(),i=He(e,t),{back:n,backIcon:r,backArrow:o}=i,s=e.backIcon||ka,l=od(ka,e.backIcon,o===!0?s:o,r===!0?s:r);return Ce(i,a.createElement("div",{className:te(xt)},a.createElement("div",{className:`${xt}-left`,role:"button"},n!==null&&a.createElement("div",{className:`${xt}-back`,onClick:i.onBack},l&&a.createElement("span",{className:`${xt}-back-arrow`},l),a.createElement("span",{"aria-hidden":"true"},n)),i.left),a.createElement("div",{className:`${xt}-title`},i.children),a.createElement("div",{className:`${xt}-right`},i.right)))},Ea=g.createStyles(({css:t,token:e})=>({header:t`
24
+ */var or=Symbol.for("react.element"),sr=Symbol.for("react.portal"),Ai=Symbol.for("react.fragment"),Oi=Symbol.for("react.strict_mode"),Fi=Symbol.for("react.profiler"),Bi=Symbol.for("react.provider"),zi=Symbol.for("react.context"),Rf=Symbol.for("react.server_context"),Ni=Symbol.for("react.forward_ref"),Li=Symbol.for("react.suspense"),Di=Symbol.for("react.suspense_list"),Zi=Symbol.for("react.memo"),Vi=Symbol.for("react.lazy"),e1=Symbol.for("react.offscreen"),ka;ka=Symbol.for("react.module.reference");function Ee(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case or:switch(t=t.type,t){case Ai:case Fi:case Oi:case Li:case Di:return t;default:switch(t=t&&t.$$typeof,t){case Rf:case zi:case Ni:case Vi:case Zi:case Bi:return t;default:return e}}case sr:return e}}}U.ContextConsumer=zi,U.ContextProvider=Bi,U.Element=or,U.ForwardRef=Ni,U.Fragment=Ai,U.Lazy=Vi,U.Memo=Zi,U.Portal=sr,U.Profiler=Fi,U.StrictMode=Oi,U.Suspense=Li,U.SuspenseList=Di,U.isAsyncMode=function(){return!1},U.isConcurrentMode=function(){return!1},U.isContextConsumer=function(t){return Ee(t)===zi},U.isContextProvider=function(t){return Ee(t)===Bi},U.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===or},U.isForwardRef=function(t){return Ee(t)===Ni},U.isFragment=function(t){return Ee(t)===Ai},U.isLazy=function(t){return Ee(t)===Vi},U.isMemo=function(t){return Ee(t)===Zi},U.isPortal=function(t){return Ee(t)===sr},U.isProfiler=function(t){return Ee(t)===Fi},U.isStrictMode=function(t){return Ee(t)===Oi},U.isSuspense=function(t){return Ee(t)===Li},U.isSuspenseList=function(t){return Ee(t)===Di},U.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Ai||t===Fi||t===Oi||t===Li||t===Di||t===e1||typeof t=="object"&&t!==null&&(t.$$typeof===Vi||t.$$typeof===Zi||t.$$typeof===Bi||t.$$typeof===zi||t.$$typeof===Ni||t.$$typeof===ka||t.getModuleId!==void 0)},U.typeOf=Ee,Sa.exports=U;var t1=Sa.exports;function i1(t,e){let i=0;function n(r){a.Children.forEach(r,o=>{t1.isFragment(o)?n(o.props.children):(e(o,i),i+=1)})}n(t)}const me="adm-tabs",n1=()=>null,r1={activeLineMode:"auto",stretch:!0,direction:"ltr"},ji=Ho(t=>{var e;const i=He(r1,t),n=a.useRef(null),r=a.useRef(null),o={};let s=null;const l=[],h=i.direction==="rtl";i1(i.children,(P,T)=>{if(!a.isValidElement(P))return;const L=P.key;if(typeof L!="string")return;T===0&&(s=L);const q=l.push(P);o[L]=q-1});const[u,p]=Qf({value:i.activeKey,defaultValue:(e=i.defaultActiveKey)!==null&&e!==void 0?e:s,onChange:P=>{var T;P!==null&&((T=i.onChange)===null||T===void 0||T.call(i,P))}}),[{x:y,width:c},m]=Ht(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:f},b]=Ht(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:v,rightMaskOpacity:C},S]=Ht(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function w(P=!1,T=!1){const L=n.current;if(!L)return;const q=o[u];if(q===void 0){m.start({x:0,width:0,immediate:!0});return}const ne=r.current;if(!ne)return;const K=L.children.item(q+1),ue=K.children.item(0),$=ue.offsetLeft,Y=ue.offsetWidth,Te=K.offsetLeft,Xt=K.offsetWidth,Ze=L.offsetWidth,kt=L.scrollWidth,on=L.scrollLeft,st=ne.offsetWidth;let ze=0,at=0;if(i.activeLineMode==="auto"?(ze=$,at=Y):i.activeLineMode==="full"?(ze=Te,at=Xt):ze=$+(Y-st)/2,h){const sn=["auto","full"].includes(i.activeLineMode)?at:st;ze=-(Ze-ze-sn)}m.start({x:ze,width:at,immediate:P});const Ve=kt-Ze;if(Ve<=0)return;let Xe=0;h?Xe=-xa(Ze/2-$+Y/2-st,0,Ve):Xe=xa($-(Ze-Y)/2,0,Ve),(!T||i.autoScroll!==!1)&&b.start({scrollLeft:Xe,from:{scrollLeft:on},immediate:P})}X.useIsomorphicLayoutEffect(()=>{w(!y.isAnimating)},[]),jf(()=>{w()},[u,h,i.activeLineMode]),Xf(()=>{w(!y.isAnimating)},n),$f(()=>{w(!y.isAnimating,!0)},n,{subtree:!0,childList:!0,characterData:!0});const{run:k}=X.useThrottleFn((P=!1)=>{const T=n.current;if(!T)return;const L=T.scrollLeft;let q=!1,ne=!1;h?(q=Math.round(-L)+T.offsetWidth<T.scrollWidth,ne=L<0):(q=L>0,ne=L+T.offsetWidth<T.scrollWidth),S.start({leftMaskOpacity:q?1:0,rightMaskOpacity:ne?1:0,immediate:P})},{wait:100,trailing:!0,leading:!0});return X.useIsomorphicLayoutEffect(()=>{k(!0)},[]),Ce(i,a.createElement("div",{className:me,style:{direction:i.direction}},a.createElement("div",{className:`${me}-header`},a.createElement(vt.div,{className:te(`${me}-header-mask`,`${me}-header-mask-left`),style:{opacity:v}}),a.createElement(vt.div,{className:te(`${me}-header-mask`,`${me}-header-mask-right`),style:{opacity:C}}),a.createElement(vt.div,{className:`${me}-tab-list`,ref:n,scrollLeft:f,onScroll:k,role:"tablist"},a.createElement(vt.div,{ref:r,className:`${me}-tab-line`,style:{width:i.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":c,x:y}}),l.map(P=>Ce(P.props,a.createElement("div",{key:P.key,className:te(`${me}-tab-wrapper`,{[`${me}-tab-wrapper-stretch`]:i.stretch})},a.createElement("div",{onClick:()=>{const{key:T}=P;P.props.disabled||T!=null&&p(T.toString())},className:te(`${me}-tab`,{[`${me}-tab-active`]:P.key===u,[`${me}-tab-disabled`]:P.props.disabled}),role:"tab","aria-selected":P.key===u},P.props.title)))))),l.map(P=>{if(P.props.children===void 0)return null;const T=P.key===u;return a.createElement(er,{key:P.key,active:T,forceRender:P.props.forceRender,destroyOnClose:P.props.destroyOnClose},a.createElement("div",{className:`${me}-content`,style:{display:T?"block":"none"}},P.props.children))})))},{Tab:n1}),nt="adm-error-block",o1={status:"default"};function s1(t){return i=>{var n;const r=He(o1,i),{locale:o}=si(),s=o.ErrorBlock[r.status],l="description"in r?r.description:s.description,h="title"in r?r.title:s.title,u=(n=r.image)!==null&&n!==void 0?n:t[r.status],p=typeof u=="string"?a.createElement("img",{src:u,alt:"error block image"}):u;return Ce(r,a.createElement("div",{className:te(nt,{[`${nt}-full-page`]:r.fullPage})},a.createElement("div",{className:`${nt}-image`},p),a.createElement("div",{className:`${nt}-description`},![void 0,null].includes(h)&&a.createElement("div",{className:`${nt}-description-title`},h),![void 0,null].includes(l)&&a.createElement("div",{className:`${nt}-description-subtitle`},l)),r.children&&a.createElement("div",{className:`${nt}-content`},r.children)))}}const a1=a.createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-default-a"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.createElement("circle",{id:"error-block-image-default-d",cx:18.823,cy:18.823,r:18.823}),a.createElement("rect",{id:"error-block-image-default-b",x:3.5,y:9,width:51.429,height:88,rx:4.571})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M73.557.004c19.435-.311 38.696 17.016 51.523 35.287 8.708-10.822 17.127-16.233 25.255-16.233 13.333 0 28.35 14.274 45.053 42.822 1.769 3.024-3.582 7.435-16.054 13.231l-41.322 1.37c-7.343 5.872-31.225.626-69.152 1.234-27.79.445-45.759-1.234-53.908-5.037C3.2 71.143-1.625 68.686.48 65.308 27.371 22.12 51.73.353 73.557.003Zm93.098 49.53a1.125 1.125 0 0 0-.401.072l-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.283 1.719 4.153 3.898 4.314l.026.001v3.805c0 .39.25.705.56.705.31 0 .56-.316.56-.705l.001-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734Zm-100-5a1.125 1.125 0 0 0-.331.05l-.035.01-.035.012-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.212 1.613 4.036 3.695 4.294l.203.02.026.001v3.805c0 .39.25.705.56.705.282 0 .515-.26.555-.6l.006-.105v-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734ZM52.64 38.348l-.15.008-.149.023-.032.007-.032.008-.078.022-.045.015-.045.016-.06.023-.038.017-.038.017-.058.028-.022.011a2.201 2.201 0 0 0-.323.204l-.05.038-.05.04-.025.02-.025.021a3.742 3.742 0 0 0-.31.294l-.036.04c-.035.037-.07.076-.105.116-.01.012-.02.025-.031.036a3.275 3.275 0 0 0-.081.098l-.063.078c-2.031 2.583-3.48 8.692-3.48 11.027 0 2.636 1.846 4.832 4.292 5.323l.224.04-.064-.012.105.018.103.014v4.618c0 .47.299.85.667.85.337 0 .615-.32.659-.735l.006-.115v-4.618c.18-.023.355-.054.527-.094l.256-.067.196-.06c2.136-.706 3.68-2.75 3.68-5.162 0-2.996-2.383-12.207-5.325-12.207Z",transform:"translate(2.286 22.286)",fill:"url(#error-block-image-default-a)"}),a.createElement("g",{transform:"rotate(-90 102.429 55.357)"},a.createElement("path",{d:"M6.857 0H52a6.857 6.857 0 0 1 6.857 6.857v92A6.857 6.857 0 0 1 52 105.714H6.857A6.857 6.857 0 0 1 0 98.857v-92A6.857 6.857 0 0 1 6.857 0Z",fill:"#7EACFF"}),a.createElement("mask",{id:"error-block-image-default-c",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-default-b"})),a.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-default-b"}),a.createElement("path",{d:"M11.838 91.8a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-2.858 0a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.16-2.305a.64.64 0 0 1 .628.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-2.982-.04a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm5.268-.531a.64.64 0 0 1 .628.651.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.858-1.143a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-6.37-.917c.209 0 .377.175.377.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm3.512-.798.093.007a.644.644 0 0 1 .535.645.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.652.627-.652Zm5.715 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-11.429 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.261.241c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm11.833-.812a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.628-.651c0-.36.281-.652.628-.652Zm-4.851.399c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm10.313-2.056a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-2.354-.128a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.652.628-.652Zm-13.798.311c.207 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.377-.39c0-.217.169-.392.377-.392Zm11.832-.812a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-6.285 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm3.428 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-6.118.24c.208 0 .376.176.376.392a.384.384 0 0 1-.376.39.384.384 0 0 1-.377-.39c0-.216.169-.391.377-.391Zm11.261-2.525a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm-3.557.484c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.478-.555a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.512-.26c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.857 0c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-4.571 0c.207 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm14.898-1.835a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-8.027-.245c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.169-.391.376-.391Zm6.271-1.349c.208 0 .377.175.377.391a.384.384 0 0 1-.377.391.384.384 0 0 1-.376-.39c0-.217.169-.392.376-.392Zm-11.484-.481c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm15.103-.972c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.39c0-.217.168-.392.376-.392Zm-9.333-1.404c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-6.819-.405c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-default-c)",transform:"rotate(116 12.367 83.503)"}),a.createElement("path",{stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"M36.774 5.474H21.523"}),a.createElement("path",{d:"m67.818 94.025-4.996 3.913m4.996 11.91-4.996-3.912m-1.142 9.145-1.143-6.288m10.71-6.768h-7.262",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("circle",{cx:8.571,cy:8.571,r:8.571,transform:"translate(22.857 142)",fill:"#FFCD6B",fillRule:"nonzero"}),a.createElement("g",{transform:"translate(132.857 124)"},a.createElement("mask",{id:"error-block-image-default-e",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-default-d"})),a.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-default-d"}),a.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:13.886,cy:15.12,r:18.823}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:23.4,cy:29.057,r:1}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.343,cy:29.829,r:1}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:18.771,cy:32.657,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:29.571,cy:25.971,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:19.286,cy:7.971,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:26.486,cy:5.914,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:11.057,cy:6.943,r:1}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.086,cy:15.686,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:22.886,cy:14.657,r:1})),a.createElement("path",{d:"m87.429 135.123 6.591-9.378v-.08h-5.99v-2.559h10.038v1.787l-6.44 9.254v.082h6.56v2.557h-10.76v-1.663Zm12.185-5.889 4.948-7.047v-.056h-4.498v-1.917h7.536v1.34l-4.849 6.942v.059h4.923v1.92h-8.06v-1.24Zm10.345.702 3.708-5.274v-.045h-3.372v-1.437h5.648v1.003l-3.628 5.206v.045H116v1.438h-6.041v-.936Z",fill:"#FFF",fillRule:"nonzero"}))),l1=a.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("title",null,"@反馈/异常/网络服务异常"),a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-disconnected-c"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.createElement("circle",{id:"error-block-image-disconnected-d",cx:22.309,cy:22.309,r:22.309}),a.createElement("path",{id:"error-block-image-disconnected-a",d:"M0 0h400v400H0z"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("mask",{id:"error-block-image-disconnected-b",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-disconnected-a"})),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"url(#error-block-image-disconnected-c)"},a.createElement("path",{d:"M151.686 45.58c38.869-.623 77.391 34.03 103.046 70.573 17.416-21.644 34.253-32.465 50.51-32.465 26.666 0 56.701 28.548 90.105 85.643 3.539 6.05-7.164 14.87-32.107 26.462l-82.643 2.741c-14.686 11.745-62.45 1.252-138.305 2.467-55.58.89-91.518-2.468-107.816-10.074-23.505-3.07-33.154-7.983-28.946-14.74C59.313 89.813 108.03 46.278 151.686 45.58Zm186.195 99.06-.127.003-.126.01a2.32 2.32 0 0 0-.465.103l-.032.01-.031.01a2.364 2.364 0 0 0-.181.071 2.52 2.52 0 0 0-.116.054l-.133.067-.042.024-.036.02a2.946 2.946 0 0 0-.133.08l-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024a4.906 4.906 0 0 0-.31.27l-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.108.008v7.608c0 .779.502 1.41 1.121 1.41.62 0 1.121-.632 1.121-1.41v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-200-10-.127.003-.126.01a2.32 2.32 0 0 0-.368.073l-.049.014-.048.016-.032.01-.031.01a2.364 2.364 0 0 0-.181.071l-.058.026-.058.028-.133.067-.042.024-.036.02-.066.039-.067.041-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024l-.156.13-.154.14-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.054.004.054.004v7.608c0 .779.502 1.41 1.121 1.41.58 0 1.058-.556 1.115-1.266l.006-.144v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-28.029-12.373-.107.002-.106.006a2.978 2.978 0 0 0-.551.095 3.444 3.444 0 0 0-.323.104 3.962 3.962 0 0 0-.61.297c-.076.045-.15.092-.226.141-4.964 3.312-8.728 18.445-8.728 23.77 0 5.434 3.922 9.935 9.04 10.726l.28.04v9.236c0 .886.532 1.614 1.21 1.692l.121.007.122-.007c.638-.074 1.147-.723 1.204-1.538l.006-.155v-9.235c5.254-.668 9.32-5.234 9.32-10.767 0-5.993-4.77-24.414-10.652-24.414Z"})),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},a.createElement("g",{transform:"translate(85.858 150.644)"},a.createElement("path",{d:"M116.26 28.467c1.352 0 2.703.018 4.054.054 3.923.385 10.188 4.248 9.267 11.061-.878 6.496-5.836 9.089-8.962 9.529a130.762 130.762 0 0 0-4.36-.072c-28.567 0-60.654 10.149-96.22 30.676l-2.227 1.297c-.744.437-1.49.878-2.236 1.323-4.878 2.911-11.193 1.316-14.103-3.562C-1.438 73.894.157 67.58 5.035 64.67 45.34 40.62 82.4 28.467 116.26 28.467Zm22 11.63c1.03-5.942 6.376-8.618 11.084-8.08C172.14 36.91 194.83 46.86 217.37 61.794c4.735 3.138 6.03 9.52 2.893 14.255-3.138 4.736-9.52 6.031-14.256 2.893-20.111-13.325-40.075-22.165-59.935-26.584a9.974 9.974 0 0 0-.325-.088c-3.987-1.015-8.602-5.738-7.487-12.175ZM116.26 77.418c22.777 0 45.4 7.057 67.73 20.988 4.82 3.007 6.289 9.351 3.282 14.17-3.007 4.82-9.351 6.29-14.17 3.283-19.194-11.974-38.095-17.87-56.842-17.87s-37.648 5.896-56.842 17.87c-4.82 3.007-11.164 1.537-14.17-3.282-3.007-4.82-1.538-11.164 3.282-14.171 22.33-13.931 44.953-20.988 67.73-20.988ZM117.974 124.67c9.85 0 17.303 1.69 25.687 5.082l.82.337 2.9 1.231 3.008 1.252.77.305.107.04c5.326 1.976 8.042 7.895 6.066 13.221-1.976 5.326-7.895 8.042-13.221 6.067l-.713-.27-.726-.285-.763-.31-1.263-.527-2.944-1.26-1.125-.473c-6.393-2.648-11.433-3.838-18.603-3.838-8.223 0-16.532 2.126-25.028 6.475-5.056 2.588-11.254.587-13.842-4.47-2.589-5.056-.588-11.253 4.47-13.842 11.313-5.791 22.814-8.735 34.4-8.735ZM118.235 197.047c7.15 0 13.77-.897 19.841-2.721 5.44-1.635 8.526-7.37 6.892-12.81-1.635-5.44-7.37-8.526-12.81-6.892-4.072 1.224-8.707 1.851-13.923 1.851-4.36 0-8.79-1.045-13.373-3.21l-.626-.301c-5.095-2.512-11.262-.418-13.773 4.678-2.512 5.095-.418 11.261 4.678 13.773 7.559 3.727 15.288 5.632 23.094 5.632Z",fill:"#377EFF",fillRule:"nonzero"}),a.createElement("path",{d:"M198.35 62.413c2.755-4.967 9.016-6.76 13.984-4.004 13.068 7.25 19.124 18.535 17.615 30.952-1.157 9.515-6.83 18.757-14.096 24.352-13.364 10.29-34.915 9.401-49.363-1.91-4.472-3.502-5.26-9.967-1.758-14.44 3.436-4.388 9.724-5.229 14.185-1.952l.255.194c7.283 5.702 18.475 6.164 24.13 1.809 3.072-2.366 5.766-6.754 6.226-10.536.467-3.844-1.21-7.07-6.796-10.267l-.378-.213c-4.967-2.756-6.76-9.017-4.004-13.985ZM61.35 103.092c-2.84-4.92-9.13-6.607-14.05-3.768-20.662 11.922-21.772 35.751-6.018 51.69 13.752 13.914 33.192 13.447 50.507 1.158 4.633-3.288 5.723-9.708 2.436-14.34-3.288-4.633-9.709-5.724-14.341-2.436-9.763 6.928-18.07 7.128-23.97 1.158-6.761-6.84-6.498-14.501 1.35-19.225l.317-.187c4.92-2.84 6.608-9.13 3.769-14.05ZM129.103 135.702c1.688-5.424 7.454-8.453 12.878-6.764 14.776 4.599 23.437 13.727 25.259 25.58 1.316 8.561-1.228 17.533-5.58 24.052-3.132 4.688-7.388 8.287-12.504 11.112-3.03 1.673-5.75 2.811-9.37 4.066l-1.4.477c-5.387 1.806-11.217-1.097-13.022-6.484-1.805-5.386 1.098-11.216 6.484-13.02l1.09-.374c6.032-2.112 9.602-4.19 11.613-7.201 1.693-2.535 2.818-6.502 2.356-9.503-.564-3.673-3.432-6.696-11.04-9.063-5.424-1.689-8.452-7.454-6.764-12.878Z",fill:"#377EFF",fillRule:"nonzero"}),a.createElement("path",{d:"M148.072 181.58c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.236-9.096-10.275-9.707",stroke:"#FFF",strokeWidth:.571,strokeLinecap:"round"}),a.createElement("ellipse",{fill:"#7EACFF",transform:"rotate(10 147 41.933)",cx:147,cy:41.933,rx:9.143,ry:10.286}),a.createElement("path",{d:"M210.422 107.472c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.668-9.883-11.572-12.067M51.604 131.769c-3.15-6.8-3.537-12.694-1.161-17.685 2.376-4.99 5.57-8.136 9.583-9.438",stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M21.53 64.408c4.946-3.389 9.817-6.026 14.612-7.912",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"m113.243 15.444 9.588 8.314M144.31 9.405l-5.775 11.3m18.389-1.246-11.907 4.643M127.64 5.66l2.77 14.255",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}))),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},a.createElement("g",{transform:"translate(275.143 302.571)"},a.createElement("mask",{id:"error-block-image-disconnected-e",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-disconnected-d"})),a.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-disconnected-d"}),a.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:16.457,cy:17.92,r:22.309}),a.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:14.263,cy:12.069,r:2.194}))),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"#FBBE47",fillRule:"nonzero"},a.createElement("circle",{cx:12,cy:12,r:12,transform:"translate(84 297.714)"})))),c1=a.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-empty-a"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.createElement("path",{d:"M146.183 18.461c31.705 23.336 33.349 71.85 4.93 96.614-.252.22 6.172 5.602 13.577 11.414l.686.537.69.54.695.54.348.27.698.54a341.27 341.27 0 0 0 8.806 6.596c1.114.802 4.643-.853 10.587-4.965l-.532 12.218a1.2 1.2 0 0 1-.481.91l-10.868 8.111c-1.405 1.048-3.32 1.185-4.854.072l-35.578-25.834c-33.414 17.333-79.913 15-109.804-7-33.444-24.616-33.444-75.95 0-100.563 33.443-24.615 87.657-24.615 121.1 0Zm-60.469 7.653C51.63 26.114 24 44.534 24 67.257S51.63 108.4 85.714 108.4s61.715-18.42 61.715-41.143c0-22.722-27.63-41.143-61.715-41.143Z",id:"error-block-image-empty-b"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M157.964 244.661H0L3.806 100.13a4.572 4.572 0 0 1 4.353-4.446l.217-.006h45.588V68.2a4.572 4.572 0 0 1 4.356-4.567l.216-.005h65.498l2.554-58.689a4.571 4.571 0 0 1 4.779-4.367l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.212 3.146 69.652L301.634 64.9a4.571 4.571 0 0 1 5.628 4.231l.005.215v43.955l56.162.001v130.264h-56.163v.001h-82.383v-.004h-66.919v1.098ZM89.503 160.03h-9.968v8.436h9.968v-8.436Zm0-14.507h-9.968v8.435h9.968v-8.435Zm197.985-5.15h-9.967v8.432h9.967v-8.431Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.436h9.967v-8.436Zm-84.643-3.29h-30.8v8.436h30.8v-8.436Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 50.286)",fill:"url(#error-block-image-empty-a)"}),a.createElement("g",{transform:"translate(108.571 189.886)"},a.createElement("mask",{id:"error-block-image-empty-c",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-empty-b"})),a.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-empty-b"}),a.createElement("path",{d:"M131.429 134.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM128 133.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM120 128.971a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.142.125.006a1.143 1.143 0 1 1-.125-.006Zm11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-22.857 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm17.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM136 125.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-13.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm18.857-2.286a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-37.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm13.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm18.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-28 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm17.715-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-4.571a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.428 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.143 1.142a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-9.143 0a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm30.286-3.429a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM124 109.543a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.858-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-11.428-3.429a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM124 99.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM49.143 55.829a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-9.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM52 52.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-19.429-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-1.142a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-13.143 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM64 44.4a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.125.007a1.143 1.143 0 1 1-.125-.007Zm11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.858 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM30.286 44.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM44 43.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM72 38.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-28 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm5.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM56 37.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM60.57 32.97a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM44 34.114a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm30.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-15.429 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.857-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-11.429-3.428a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM41.714 20.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-empty-c)"})),a.createElement("path",{d:"M295.213 319.24c.744.546.745 1.433.002 1.98l-11.806 8.81c-1.069.799-3.326.474-4.853-.609l-35.622-25.241c-33.375 17.037-79.545 14.615-109.28-7.271-33.443-24.615-33.443-64.521 0-89.133 33.443-24.616 87.657-24.616 121.1 0 31.706 23.336 33.35 60.42 4.931 85.185-.543.473 35.528 26.278 35.528 26.278ZM148.06 220.015c-25.44 17.853-25.44 46.8 0 64.652 25.44 17.85 66.689 17.85 92.129 0 25.436-17.853 25.436-46.799 0-64.652-25.44-17.853-66.688-17.853-92.129 0Z",fill:"#5D96FE"}),a.createElement("path",{d:"M123.514 233.021c2.185-5.241 5.67-9.735 10.453-13.482M264.967 271.54c-2.185 5.24-5.67 9.734-10.453 13.481",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M81.143 252.571c7.574 0 13.714 23.88 13.714 31.649 0 6.97-4.942 12.755-11.429 13.871v11.672c0 1.235-.767 2.237-1.713 2.237-.904 0-1.644-.912-1.71-2.07l-.005-.167v-11.526c-7.04-.595-12.571-6.644-12.571-14.017 0-7.024 5.02-27.222 11.581-31.027l.096-.053c.027-.016.055-.03.082-.045l.067-.035.066-.033.1-.05.094-.041a3.34 3.34 0 0 1 .224-.093l.11-.042.097-.032c.038-.013.077-.025.115-.036l.053-.016.053-.014a3.351 3.351 0 0 1 .23-.055l.085-.016a3.95 3.95 0 0 1 .441-.054l.11-.005.11-.002Z",fill:"#FFCD6B",fillRule:"nonzero"}),a.createElement("g",{transform:"translate(283.429 177.143)",fillRule:"nonzero"},a.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.49 0-2.707-1.46-2.79-3.301l-.004-.2-.001-19.018C8.659 71.92.13 62.518.13 51.123.13 40.071 8.154 8.49 18.694 2.015l.054-.031a5.94 5.94 0 0 1 .214-.128l.088-.048c.213-.12.427-.228.642-.326l.135-.06.18-.075.135-.053a5.796 5.796 0 0 1 .464-.16 4.44 4.44 0 0 1 .33-.092l.124-.03a7.122 7.122 0 0 1 .31-.065l.018-.003a6.305 6.305 0 0 1 .756-.088l.165-.007.166-.002Z",fill:"#FFCD6B"}),a.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.543 0-2.794-1.566-2.794-3.5V73.295C8.659 71.921.13 62.518.13 51.123.13 38.783 10.134.847 22.475.847Z",fill:"#FFCD6B"}),a.createElement("circle",{fill:"#FFB400",cx:26.4,cy:56.869,r:1.45}),a.createElement("circle",{fill:"#FFB400",cx:39.453,cy:58.319,r:1}),a.createElement("circle",{fill:"#FFB400",cx:17.698,cy:63.637,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:38.002,cy:51.068,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:18.665,cy:17.228,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:32.201,cy:13.36,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:26.83,cy:20.666,r:1.45}),a.createElement("circle",{fill:"#FFB400",cx:38.969,cy:31.731,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:25.433,cy:29.797,r:1.45}),a.createElement("path",{d:"M34.197 53.033c0 9.825-6.934 18.017-16.172 19.987a22.44 22.44 0 0 0 4.45.448c12.34 0 22.344-10.004 22.344-22.345C44.82 38.783 34.815.847 22.475.847c8.947 14.03 11.722 40.891 11.722 52.186Z",fill:"#FBBE47"})))),d1=a.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-busy-a"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.createElement("circle",{id:"error-block-image-busy-b",cx:34.857,cy:34.857,r:34.857})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M157.964 243.667H0L3.806 99.134a4.572 4.572 0 0 1 4.353-4.446l.217-.005h45.588V67.205a4.572 4.572 0 0 1 4.356-4.566l.216-.005 65.498-.001 2.554-58.688a4.571 4.571 0 0 1 4.779-4.368l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.213 3.146 69.652 74.976-17.906a4.571 4.571 0 0 1 5.628 4.23l.005.216v43.955h56.162v130.265l-56.163-.001v.002h-82.383v-.004h-66.919v1.098Zm-68.461-84.631h-9.968v8.435h9.968v-8.435Zm0-14.508h-9.968v8.436h9.968v-8.436Zm197.985-5.149h-9.967v8.432h9.967v-8.432Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.435h9.967v-8.435Zm-84.643-3.29h-30.8v8.435h30.8v-8.435Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 51.286)",fill:"url(#error-block-image-busy-a)"}),a.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l.958-.01c-.376 7.363 3.679 59.93 34.894 62.659 4.203.367 7.432.39 7.475 4.609.042 4.218-3.176 4.307-7.37 4.76-34.593 3.737-34.136 56.004-33.61 63.357l-.957.01c-5.276.053-9.51 4.373-9.455 9.649.053 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.054 9.508-4.374 9.455-9.648-.055-5.276-4.374-9.51-9.65-9.455l-.958.01c.377-7.363-.729-59.672-34.894-62.66-4.202-.367-7.432-.39-7.474-4.608-.043-4.219 3.175-4.308 7.369-4.76 31.276-3.377 34.136-56.004 33.61-63.357l.958-.01c5.276-.053 9.508-4.373 9.455-9.649-.055-5.276-4.374-9.509-9.65-9.454Z",fill:"#377EFF"}),a.createElement("path",{d:"M233.524 314.422c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.894-5.644c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.149 17.865c.108.684.773 1.147 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm-2.144-8.182c.109.684.773 1.148 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-1.586-4.694c.108.684.772 1.148 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.013-5.88c.109.685.773 1.148 1.484 1.036.71-.113 1.2-.759 1.09-1.443-.107-.684-.772-1.148-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm.236 15.575c.108.685.772 1.148 1.483 1.035.71-.112 1.2-.758 1.09-1.442-.107-.685-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.442Zm-.4 4.494c.108.684.772 1.147 1.483 1.035.71-.113 1.2-.759 1.091-1.443-.108-.684-.773-1.148-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-3.88-8.601c.108.684.772 1.147 1.483 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-.524-7.186c.065.41.463.688.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-2.265-4.102c.109.684.773 1.148 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.147-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm-.545-6.518c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm2.098 23.629c.109.684.773 1.147 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.443Zm-.756-9.65c.043.274.309.46.593.414a.512.512 0 0 0 .437-.577.512.512 0 0 0-.594-.414.512.512 0 0 0-.436.577Zm-.808 20.96c.109.684.773 1.147 1.484 1.034.71-.112 1.2-.758 1.09-1.442-.108-.685-.772-1.148-1.483-1.036-.71.113-1.199.759-1.09 1.443Zm-4.691-31.966c.065.41.463.689.89.621.426-.068.72-.455.654-.866-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm2.098 23.628c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.967-12.416c.109.684.773 1.147 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm1.073 6.772c.108.685.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.036-.711.113-1.2.759-1.091 1.443Zm-.009-3.131c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.43-9.03c.065.41.463.688.89.62.426-.067.72-.454.655-.865-.065-.41-.464-.689-.89-.62-.427.067-.72.454-.655.865ZM214.5 333.38c.108.685.772 1.148 1.483 1.036.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.711.112-1.2.758-1.091 1.442Zm-.156-7.178c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm-1.871-4.72c.108.684.773 1.147 1.483 1.034.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.035-.71.112-1.2.758-1.091 1.442Zm-1.614-6.857c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-.894-5.644c.065.41.464.689.89.621.427-.067.72-.455.655-.866-.065-.41-.463-.688-.89-.62-.427.067-.72.455-.655.865Zm-1.43-9.03c.065.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.958 14.225c.065.41.463.689.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-.703 12.81c.065.41.464.688.89.62.427-.067.72-.455.655-.865-.065-.41-.463-.689-.89-.621-.427.067-.72.455-.655.866Zm-4.543-22.536c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm2.806 30.138c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm-5.694-17.996c.065.41.463.688.89.62.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.866Zm-2.935-13.343c.066.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.463-.689-.89-.621-.426.068-.72.455-.655.866Z",fill:"#003CFF",fillRule:"nonzero"}),a.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l101.963-1.04c5.276-.052 9.508-4.372 9.455-9.648-.055-5.276-4.374-9.509-9.65-9.454ZM252.64 331.241l-101.964 1.038c-5.275.054-9.508 4.374-9.454 9.65.054 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.053 9.507-4.373 9.454-9.649-.054-5.275-4.374-9.508-9.649-9.454Z",fill:"#7EACFF"}),a.createElement("path",{stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"m196.824 197.298 52.216-.506M193.329 330.5h52.215"}),a.createElement("path",{d:"M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("circle",{cx:14.857,cy:14.857,r:14.857,transform:"translate(106.857 248.571)",fill:"#FFCD6B",fillRule:"nonzero"}),a.createElement("g",{transform:"translate(236.571 284.571)"},a.createElement("mask",{id:"error-block-image-busy-c",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-busy-b"})),a.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-busy-b"}),a.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:25.714,cy:28,r:34.857}),a.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:22.286,cy:18.857,r:3.429})))),u1=s1({default:a1,disconnected:l1,empty:c1,busy:d1}),rt="adm-space",f1={direction:"horizontal"},Ui=t=>{const e=He(f1,t),{direction:i,onClick:n}=e;return Ce(e,a.createElement("div",{className:te(rt,{[`${rt}-wrap`]:e.wrap,[`${rt}-block`]:e.block,[`${rt}-${i}`]:!0,[`${rt}-align-${e.align}`]:!!e.align,[`${rt}-justify-${e.justify}`]:!!e.justify}),onClick:n},a.Children.map(e.children,r=>r!=null&&a.createElement("div",{className:`${rt}-item`},r))))},xt="adm-nav-bar",Ea=a.createElement(ea,null),h1=t=>{const{navBar:e={}}=si(),i=He(e,t),{back:n,backIcon:r,backArrow:o}=i,s=e.backIcon||Ea,l=sd(Ea,e.backIcon,o===!0?s:o,r===!0?s:r);return Ce(i,a.createElement("div",{className:te(xt)},a.createElement("div",{className:`${xt}-left`,role:"button"},n!==null&&a.createElement("div",{className:`${xt}-back`,onClick:i.onBack},l&&a.createElement("span",{className:`${xt}-back-arrow`},l),a.createElement("span",{"aria-hidden":"true"},n)),i.left),a.createElement("div",{className:`${xt}-title`},i.children),a.createElement("div",{className:`${xt}-right`},i.right)))},Ca=g.createStyles(({css:t,token:e})=>({header:t`
25
25
  height: var(--nb-mobile-page-header-height);
26
26
  display: flex;
27
27
  align-items: center;
@@ -76,7 +76,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
76
76
  .ant-btn {
77
77
  margin-left: 8px;
78
78
  }
79
- `})),Qt=10,h1=g.Filter.Action,Ca=g.withDynamicSchemaProps(t=>d.jsx(h1,R(B({},t),{Container:e=>{const{visiblePopup:i,popupContainerRef:n}=ar(e.open),r=g.useZIndexContext(),{styles:o}=Ea(),{t:s}=Je.useTranslation(),l=r+Qt,h=a.useCallback(()=>{e.onOpenChange(!1)},[e]),u=a.useMemo(()=>({token:{zIndexPopupBase:l}}),[l]),p=a.useMemo(()=>({borderTopLeftRadius:"8px",borderTopRightRadius:"8px",maxHeight:"calc(100% - var(--nb-mobile-page-header-height))",overflow:"auto",zIndex:l}),[l]),y=a.useMemo(()=>({zIndex:l}),[l]),c=a.useCallback(()=>n.current,[n]);return d.jsxs(F.ConfigProvider,{theme:u,children:[e.children,d.jsxs(rr,{visible:i,onClose:h,onMaskClick:h,getContainer:c,bodyStyle:p,maskStyle:y,closeOnSwipe:!0,children:[d.jsxs("div",{className:o.header,children:[d.jsx("span",{className:o.placeholder,children:d.jsx(it,{})}),d.jsx("span",{children:s("Filter")}),d.jsx("span",{className:o.closeIcon,onClick:h,children:d.jsx(it,{})})]}),d.jsx("div",{style:{padding:12},children:e.content}),d.jsx("div",{style:{height:150}})]})]})}})));Ca.displayName="FilterAction";const p1=g.Filter.Action,m1=()=>{g.Filter.Action=Ca,a.useEffect(()=>()=>{g.Filter.Action=p1},[])},ar=t=>{const[e]=a.useState(()=>document.querySelector(".mobile-container")),[i,n]=a.useState(!1),r=a.useRef(null),s=g.useZIndexContext()+Qt;return a.useEffect(()=>{if(!t){n(!1),r.current&&setTimeout(()=>{e.contains(r.current)&&e.removeChild(r.current),r.current=null},300);return}const l=document.createElement("div");return l.style.transform="translateZ(0)",l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.right="0",l.style.bottom="0",l.style.overflow="hidden",l.style.zIndex=s.toString(),e.appendChild(l),r.current=l,n(!0),()=>{r.current&&setTimeout(()=>{e.contains(r.current)&&e.removeChild(r.current),r.current=null},300)}},[e,s,t]),{visiblePopup:i,popupContainerRef:r}},lr=D.observer(t=>{const e=D.useFieldSchema(),i=D.useField(),{visible:n,setVisible:r}=g.useActionContext(),{popupContainerRef:o,visiblePopup:s}=ar(n),{styles:l}=Ea(),h=g.useZIndexContext(),u=y1(e)||v1(e),p=u?"Action.Drawer.Footer":t.footerNodeName,y=u?{backgroundColor:"white"}:{},c=h+Qt,m=a.useMemo(()=>({zIndex:c}),[c]),f=e.reduceProperties((w,k)=>k["x-component"]===p?k:w),b=i.title||"",v=18,C=a.useCallback(()=>{r(!1)},[r]),S=a.useMemo(()=>({token:{marginBlock:v,borderRadiusBlock:0,boxShadowTertiary:"none",zIndexPopupBase:c}}),[c]);return d.jsx(g.zIndexContext.Provider,{value:c,children:d.jsx(F.ConfigProvider,{theme:S,children:d.jsxs(rr,{visible:s,onClose:C,onMaskClick:C,getContainer:()=>o.current,bodyClassName:l.body,bodyStyle:m,maskStyle:m,closeOnSwipe:!0,children:[d.jsxs("div",{className:l.header,children:[d.jsx("span",{className:l.placeholder,children:d.jsx(it,{})}),d.jsx("span",{children:b}),d.jsx("span",{className:l.closeIcon,onClick:C,children:d.jsx(it,{})})]}),u?d.jsx("div",{style:B({padding:12},y),children:d.jsx(g.SchemaComponent,{schema:e,filterProperties:w=>w["x-component"]!==p})}):d.jsx(g.SchemaComponent,{schema:e,onlyRenderProperties:!0,filterProperties:w=>w["x-component"]!==p}),f?d.jsx("div",{className:l.footer,style:u?y:null,children:d.jsx(D.RecursionField,{basePath:i.address,schema:e,onlyRenderProperties:!0,filterProperties:w=>w["x-component"]===p})}):null]})})})});lr.displayName="ActionDrawerUsedInMobile";const b1=g.Action.Drawer,g1=()=>{g.Action.Drawer=lr,a.useEffect(()=>()=>{g.Action.Drawer=b1},[])};function v1(t){return t.title==='{{t("Edit profile")}}'}function y1(t){return t.title==='{{t("Change password")}}'}const w1=g.createStyles(({css:t,token:e})=>({header:t`
79
+ `})),Qt=10,p1=g.Filter.Action,Pa=g.withDynamicSchemaProps(t=>d.jsx(p1,R(B({},t),{Container:e=>{const{visiblePopup:i,popupContainerRef:n}=ar(e.open),r=g.useZIndexContext(),{styles:o}=Ca(),{t:s}=Je.useTranslation(),l=r+Qt,h=a.useCallback(()=>{e.onOpenChange(!1)},[e]),u=a.useMemo(()=>({token:{zIndexPopupBase:l}}),[l]),p=a.useMemo(()=>({borderTopLeftRadius:"8px",borderTopRightRadius:"8px",maxHeight:"calc(100% - var(--nb-mobile-page-header-height))",overflow:"auto",zIndex:l}),[l]),y=a.useMemo(()=>({zIndex:l}),[l]),c=a.useCallback(()=>n.current,[n]);return d.jsxs(F.ConfigProvider,{theme:u,children:[e.children,d.jsxs(rr,{visible:i,onClose:h,onMaskClick:h,getContainer:c,bodyStyle:p,maskStyle:y,closeOnSwipe:!0,children:[d.jsxs("div",{className:o.header,children:[d.jsx("span",{className:o.placeholder,children:d.jsx(it,{})}),d.jsx("span",{children:s("Filter")}),d.jsx("span",{className:o.closeIcon,onClick:h,children:d.jsx(it,{})})]}),d.jsx("div",{style:{padding:12},children:e.content}),d.jsx("div",{style:{height:150}})]})]})}})));Pa.displayName="FilterAction";const m1=g.Filter.Action,b1=()=>{g.Filter.Action=Pa,a.useEffect(()=>()=>{g.Filter.Action=m1},[])},ar=t=>{const[e]=a.useState(()=>document.querySelector(".mobile-container")),[i,n]=a.useState(!1),r=a.useRef(null),s=g.useZIndexContext()+Qt;return a.useEffect(()=>{if(!t){n(!1),r.current&&setTimeout(()=>{e.contains(r.current)&&e.removeChild(r.current),r.current=null},300);return}const l=document.createElement("div");return l.style.transform="translateZ(0)",l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.right="0",l.style.bottom="0",l.style.overflow="hidden",l.style.zIndex=s.toString(),e.appendChild(l),r.current=l,n(!0),()=>{r.current&&setTimeout(()=>{e.contains(r.current)&&e.removeChild(r.current),r.current=null},300)}},[e,s,t]),{visiblePopup:i,popupContainerRef:r}},lr=D.observer(t=>{const e=D.useFieldSchema(),i=D.useField(),{visible:n,setVisible:r}=g.useActionContext(),{popupContainerRef:o,visiblePopup:s}=ar(n),{styles:l}=Ca(),h=g.useZIndexContext(),u=w1(e)||y1(e),p=u?"Action.Drawer.Footer":t.footerNodeName,y=u?{backgroundColor:"white"}:{},c=h+Qt,m=a.useMemo(()=>({zIndex:c}),[c]),f=e.reduceProperties((w,k)=>k["x-component"]===p?k:w),b=i.title||"",v=18,C=a.useCallback(()=>{r(!1)},[r]),S=a.useMemo(()=>({token:{marginBlock:v,borderRadiusBlock:0,boxShadowTertiary:"none",zIndexPopupBase:c}}),[c]);return d.jsx(g.zIndexContext.Provider,{value:c,children:d.jsx(F.ConfigProvider,{theme:S,children:d.jsxs(rr,{visible:s,onClose:C,onMaskClick:C,getContainer:()=>o.current,bodyClassName:l.body,bodyStyle:m,maskStyle:m,closeOnSwipe:!0,children:[d.jsxs("div",{className:l.header,children:[d.jsx("span",{className:l.placeholder,children:d.jsx(it,{})}),d.jsx("span",{children:b}),d.jsx("span",{className:l.closeIcon,onClick:C,children:d.jsx(it,{})})]}),u?d.jsx("div",{style:B({padding:12},y),children:d.jsx(g.SchemaComponent,{schema:e,filterProperties:w=>w["x-component"]!==p})}):d.jsx(g.SchemaComponent,{schema:e,onlyRenderProperties:!0,filterProperties:w=>w["x-component"]!==p}),f?d.jsx("div",{className:l.footer,style:u?y:null,children:d.jsx(D.RecursionField,{basePath:i.address,schema:e,onlyRenderProperties:!0,filterProperties:w=>w["x-component"]===p})}):null]})})})});lr.displayName="ActionDrawerUsedInMobile";const g1=g.Action.Drawer,v1=()=>{g.Action.Drawer=lr,a.useEffect(()=>()=>{g.Action.Drawer=g1},[])};function y1(t){return t.title==='{{t("Edit profile")}}'}function w1(t){return t.title==='{{t("Change password")}}'}const x1=g.createStyles(({css:t,token:e})=>({header:t`
80
80
  height: var(--nb-mobile-page-header-height);
81
81
  display: flex;
82
82
  align-items: center;
@@ -129,7 +129,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
129
129
  z-index: 1000;
130
130
  border-top: 1px solid ${e.colorSplit};
131
131
  background-color: ${e.colorBgLayout};
132
- `})),x1=t=>{const{onOpenChange:e}=t,{visiblePopup:i,popupContainerRef:n}=ar(t.open),{styles:r}=w1(),o=D.useField(),l=g.useZIndexContext()+Qt,h=o.title||"",u=a.useMemo(()=>({zIndex:l}),[l]),p=a.useCallback(()=>{e(!1)},[e]),y=a.useCallback(()=>{e(!0)},[e]),c=a.useMemo(()=>({token:{zIndexPopupBase:l}}),[l]);return d.jsx(g.zIndexContext.Provider,{value:l,children:d.jsxs(F.ConfigProvider,{theme:c,children:[d.jsx("div",{onClick:y,children:t.children}),d.jsxs(rr,{visible:i,onClose:p,onMaskClick:p,getContainer:()=>n.current,bodyClassName:r.body,bodyStyle:u,maskStyle:u,showCloseButton:!0,closeOnSwipe:!0,children:[d.jsxs("div",{className:r.header,children:[d.jsx("span",{className:r.placeholder,children:d.jsx(it,{})}),d.jsx("span",{children:h}),d.jsx("span",{className:r.closeIcon,onClick:p,children:d.jsx(it,{})})]}),t.content,d.jsx("div",{style:{height:50}})]})]})})},S1=t=>{const{OriginComponent:e}=t;return d.jsx(e,R(B({},t),{Container:x1}))},k1=t=>{const e=t.options.items.find(r=>r.name==="dataBlocks"),i=t.options.items.find(r=>r.name==="otherBlocks"),n=["details","editForm","createForm","table","gridCard"];return new g.SchemaInitializer(R(B({},t.options),{name:"mobile:popup:common:addBlock",items:[R(B({},e),{children:[],useChildren:()=>e.useChildren().filter(r=>n.includes(r.name)),title:'{{t("Desktop data blocks")}}'}),R(B({},i),{title:'{{t("Other desktop blocks")}}'})]}))},E1=()=>{const t=g.useApp(),e=t.schemaInitializerManager.get("popup:common:addBlock");if(!e)return;const i=k1(e);t.schemaInitializerManager.add(i)},C1=g.createStyles(({css:t,token:e})=>({container:t`
132
+ `})),S1=t=>{const{onOpenChange:e}=t,{visiblePopup:i,popupContainerRef:n}=ar(t.open),{styles:r}=x1(),o=D.useField(),l=g.useZIndexContext()+Qt,h=o.title||"",u=a.useMemo(()=>({zIndex:l}),[l]),p=a.useCallback(()=>{e(!1)},[e]),y=a.useCallback(()=>{e(!0)},[e]),c=a.useMemo(()=>({token:{zIndexPopupBase:l}}),[l]);return d.jsx(g.zIndexContext.Provider,{value:l,children:d.jsxs(F.ConfigProvider,{theme:c,children:[d.jsx("div",{onClick:y,children:t.children}),d.jsxs(rr,{visible:i,onClose:p,onMaskClick:p,getContainer:()=>n.current,bodyClassName:r.body,bodyStyle:u,maskStyle:u,showCloseButton:!0,closeOnSwipe:!0,children:[d.jsxs("div",{className:r.header,children:[d.jsx("span",{className:r.placeholder,children:d.jsx(it,{})}),d.jsx("span",{children:h}),d.jsx("span",{className:r.closeIcon,onClick:p,children:d.jsx(it,{})})]}),t.content,d.jsx("div",{style:{height:50}})]})]})})},k1=t=>{const{OriginComponent:e}=t;return d.jsx(e,R(B({},t),{Container:S1}))},E1=t=>{const e=t.options.items.find(r=>r.name==="dataBlocks"),i=t.options.items.find(r=>r.name==="otherBlocks"),n=["details","editForm","createForm","table","gridCard"];return new g.SchemaInitializer(R(B({},t.options),{name:"mobile:popup:common:addBlock",items:[R(B({},e),{children:[],useChildren:()=>e.useChildren().filter(r=>n.includes(r.name)),title:'{{t("Desktop data blocks")}}'}),R(B({},i),{title:'{{t("Other desktop blocks")}}'})]}))},C1=()=>{const t=g.useApp(),e=t.schemaInitializerManager.get("popup:common:addBlock");if(!e)return;const i=E1(e);t.schemaInitializerManager.add(i)},P1=g.createStyles(({css:t,token:e})=>({container:t`
133
133
  position: absolute !important;
134
134
  top: 0;
135
135
  left: 0;
@@ -152,7 +152,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
152
152
  right: 0;
153
153
  background-color: white;
154
154
  z-index: 1000;
155
- `})),Pa=()=>{const{pageSchemaUid:t}=V.useParams(),[e,i]=a.useState(!1),n=a.useCallback(()=>{i(!0)},[]);return e?d.jsx(g.RemoteSchemaComponent,{uid:t,NotFoundPage:"MobileNotFoundPage",memoized:!1,onPageNotFind:n}):d.jsxs(d.Fragment,{children:[d.jsx(g.RemoteSchemaComponent,{uid:t,NotFoundPage:"MobileNotFoundPage",memoized:!1,onPageNotFind:n}),d.jsx(V.Outlet,{}),d.jsx("div",{className:"nb-mobile-subpages-slot"})]})},Wi=a.createContext(null);Wi.displayName="MobileTitleContext";const Ma=({children:t,title:e})=>{const[i,n]=a.useState(e);return d.jsx(Wi.Provider,{value:{title:i,setTitle:n},children:t})},cr=()=>a.useContext(Wi),qi=a.createContext(null);qi.displayName="MobileRoutesContext";const ce=()=>a.useContext(qi);function P1(t){const{pathname:e}=V.useLocation(),i=t.reduce((r,o)=>{var l;const s=o.schemaUid?`/${o.type}/${o.schemaUid}`:(l=o.options)==null?void 0:l.url;return s&&(r[s]=o),o.children&&o.children.forEach(h=>{var p;const u=h.schemaUid?`${s}/${h.type}/${h.schemaUid}`:(p=h.options)==null?void 0:p.url;u&&(r[u]=h)}),r},{}),n=Object.values(i).find(r=>r.schemaUid?e.includes(`/${r.schemaUid}`):r.options.url?e.includes(r.options.url):!1);return{activeTabBarItem:n,activeTabItem:i[e]||n}}function M1(t){const e=cr();a.useEffect(()=>{e&&t&&(e.setTitle(t.title),document.title=t.title)},[t,e])}const dr=({children:t,refreshRef:e,manual:i,action:n="listAccessible"})=>{const r=g.useAPIClient(),o=a.useMemo(()=>r.resource("mobileRoutes"),[r]),s=a.useMemo(()=>r.resource("uiSchemas"),[r]),{data:l,runAsync:h,loading:u}=g.useRequest(()=>o[n]({tree:!0,sort:"sort"}).then(f=>f.data),{manual:i});e&&(e.current=h);const p=a.useMemo(()=>(l==null?void 0:l.data)||[],[l]),{activeTabBarItem:y,activeTabItem:c}=P1(p);M1(y);const m=a.useMemo(()=>({api:r,activeTabBarItem:y,activeTabItem:c,routeList:p,refresh:h,resource:o,schemaResource:s}),[y,c,r,h,o,p,s]);return u?d.jsx("div",{"data-testid":"mobile-loading",style:{textAlign:"center",margin:"20px 0"},children:d.jsx(F.Spin,{})}):d.jsx(qi.Provider,{value:m,children:t})},T1=({children:t})=>{const{designable:e}=g.useDesignable(),{routeList:i}=ce(),{t:n}=de();return(!e||Rc)&&Ue.isEmpty(i)?d.jsx(d1,{status:"empty",fullPage:!0,title:n("No accessible pages found"),description:n("This might be due to permission configuration issues")}):d.jsx(d.Fragment,{children:t})},Ta=({children:t})=>(a.useEffect(()=>{document.body.style.setProperty("--nb-mobile-page-tabs-content-padding","12px"),document.body.style.setProperty("--nb-mobile-page-header-height","50px")},[]),d.jsx(Ma,{children:d.jsx(dr,{children:d.jsx(T1,{children:t})})})),_1=lt.createStyles(()=>({mobilePageContent:{maxWidth:"100%",overflowX:"hidden"}})),_a=({children:t,hideTabBar:e})=>{const{styles:i}=_1(),[n,r]=a.useState(0),[o,s]=a.useState(0);return a.useEffect(()=>{const l=Ue.last(document.querySelectorAll(".mobile-page-header"));if(s(l==null?void 0:l.offsetHeight),!e){const h=document.querySelector(".mobile-tab-bar");r(h==null?void 0:h.offsetHeight)}}),d.jsxs(d.Fragment,{children:[o?d.jsx("div",{style:{height:o}}):null,d.jsx("div",{className:`${i.mobilePageContent} mobile-page-content`,"data-testid":"mobile-page-content",style:{height:`calc(100% - ${(n||0)+(o||0)}px)`,boxSizing:"border-box"},children:t}),n?d.jsx("div",{style:{height:n}}):null]})},Ia=()=>{var i,n;const{tabSchemaUid:t}=V.useParams(),{activeTabBarItem:e}=ce();return d.jsx(_a,{children:d.jsx(g.RemoteSchemaComponent,{uid:t||((n=(i=e==null?void 0:e.children)==null?void 0:i[0])==null?void 0:n.schemaUid),NotFoundPage:"MobileNotFoundPage",memoized:!1})})},ur=new g.SchemaInitializer({title:'{{t("Add block")}}',name:"mobile:addBlock",icon:"PlusOutlined",wrap:g.gridRowColWrap,style:{margin:20},items:[{name:"dataBlocks",title:'{{t("Desktop data blocks")}}',type:"itemGroup",children:[{name:"table",title:'{{t("Table")}}',Component:"TableBlockInitializer"},{name:"form",title:'{{t("Form")}}',Component:"FormBlockInitializer"},{name:"details",title:'{{t("Details")}}',Component:"DetailsBlockInitializer"},{name:"gridCard",title:'{{t("Grid Card")}}',Component:"GridCardBlockInitializer"}]},{name:"filterBlocks",title:'{{t("Desktop filter blocks")}}',type:"itemGroup",children:[{name:"filterForm",title:'{{t("Form")}}',Component:"FilterFormBlockInitializer"}]},{name:"otherBlocks",type:"itemGroup",title:'{{t("Other desktop blocks")}}',children:[{name:"markdown",title:'{{t("Markdown")}}',Component:"MarkdownBlockInitializer"},{name:"settings",title:Z("Settings"),Component:"MobileSettingsBlockInitializer"}]}]});function Aa(t){return{type:"void","x-component":"MobilePageContent",properties:{[t]:fr(t)}}}function fr(t){return{type:"void","x-uid":t,"x-async":!0,"x-component":"Grid","x-component-props":{showDivider:!1},"x-initializer":ur.name}}const Hi=a.createContext(null);Hi.displayName="MobilePageContext";const Oa=i=>{var n=i,{children:t}=n,e=Rt(n,["children"]);return d.jsx(Hi.Provider,{value:e,children:t})},Ki=()=>a.useContext(Hi),I1=lt.createStyles(()=>({mobilePageHeader:{position:"absolute",top:0,left:0,right:0,borderBottom:"1px solid var(--adm-color-border)",backgroundColor:"var(--adm-color-background)"}})),hr=({children:t})=>{const{displayPageHeader:e=!0}=Ki()||{},{styles:i}=I1();return e?d.jsxs("div",{className:g.cx(i.mobilePageHeader,"mobile-page-header"),"data-testid":"mobile-page-header",children:[d.jsx(va,{position:"top"}),t]}):null},pr=new g.SchemaInitializer({name:"mobile:tabs",Component:()=>{const{refresh:t,resource:e,activeTabBarItem:i}=ce(),{insert:n}=g.useSchemaInitializer(),{t:r}=de(),{message:o}=F.App.useApp();return d.jsx(g.SchemaInitializerActionModal,{title:Z("Add tab"),btnStyles:{width:32,padding:0,marginRight:12},onSubmit:h=>Q(this,[h],function*({title:s,icon:l}){if(s&&s.trim().length==0)return o.error(r("Title field is required")),Promise.reject(new Error("Title field is required"));const u=ei.uid();yield e.create({values:{type:"tabs",title:s,icon:l,schemaUid:u,parentId:i.id}}),n(fr(u)),yield t()}),schema:{title:{type:"string",title:Z("Title"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{title:Z("Icon"),type:"string","x-decorator":"FormItem","x-component":"IconPicker"}}})}}),Fa=()=>{const{render:t}=g.useSchemaInitializerRender(pr.name);return t()},A1=g.createTextSettingsItem({name:"remove",title:Z("Delete"),useTextClick:()=>{const{t}=de(),{tab:e}=g.useSchemaToolbar(),{refresh:i,resource:n,activeTabBarItem:r,api:o}=ce(),s=V.useNavigate(),{modal:l,message:h}=F.App.useApp();return()=>Q(this,null,function*(){l.confirm({title:t("Delete action"),content:t("Are you sure you want to delete it?"),onOk:()=>Q(this,null,function*(){yield n.destroy({filterByTk:e.id}),yield i(),yield o.request({url:`/uiSchemas:remove/${e.schemaUid}`,method:"delete"});const u=r.children.find(p=>p.id!==e.id);s(`/${r.type}/${r.schemaUid}/${u.type}/${u.schemaUid}`),h.success({content:"Delete successfully"})})})})},useVisible(){var e;const{activeTabBarItem:t}=ce();return((e=t.children)==null?void 0:e.length)>1}}),O1={name:"title",type:"actionModal",useComponentProps(){const{t}=de(),{tab:e}=g.useSchemaToolbar(),{refresh:i,resource:n}=ce(),{message:r}=F.App.useApp();return{title:t("Edit"),schema:{type:"object",properties:{title:{type:"string",title:Z("Title"),default:e.title,"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{title:Z("Icon"),type:"string","x-decorator":"FormItem",default:e.icon,"x-component":"IconPicker"}}},onSubmit(h){return Q(this,arguments,function*({title:s,icon:l}){if(s&&s.trim().length==0)return r.error(t("Title field is required")),Promise.reject(new Error("Title field is required"));yield n.update({filterByTk:e.id,values:{title:s,icon:l}}),i()})}}}},mr=new g.SchemaSettings({name:"mobile:tabs",items:[O1,A1]}),Ba=({tab:t})=>d.jsx(g.SchemaToolbarProvider,{tab:t,children:d.jsx(g.SchemaToolbar,{settings:mr,showBackground:!0,showBorder:!1,toolbarStyle:{inset:"-15px -12px"},spaceWrapperStyle:{top:3}})}),br=lt.createStyles(()=>({mobilePageTabs:{display:"flex",alignItems:"center",justifyContent:"space-between"},mobilePageTabsList:{".adm-tabs-header":{borderBottomWidth:0},".adm-tabs-tab":{height:49,padding:"10px 0 10px"}}})),za=()=>{var y;const{activeTabBarItem:t,resource:e,refresh:i}=ce(),{displayTabs:n=!1}=Ki(),r=V.useNavigate(),{styles:o}=br(),{tabSchemaUid:s}=V.useParams(),[l,h]=a.useState(()=>{var c,m;return s||((m=(c=t==null?void 0:t.children)==null?void 0:c[0])==null?void 0:m.schemaUid)}),u=c=>{h(c),r(`/${t.type}/${t.schemaUid}/tabs/${c}`)},p=a.useCallback(c=>Q(this,null,function*(){const{active:m,over:f}=c,b=m==null?void 0:m.id,v=f==null?void 0:f.id;!b||!v||b===v||(yield e.move({sourceId:b,targetId:v,sortField:"sort"}),yield i())}),[e,i]);return t?n?d.jsxs("div",{className:o.mobilePageTabs,"data-testid":"mobile-page-tabs",children:[d.jsx(g.DndContext,{onDragEnd:p,children:d.jsx(ji,{activeKey:l,onChange:u,className:o.mobilePageTabsList,children:(y=t.children)==null?void 0:y.map(c=>d.jsx(ji.Tab,{"data-testid":`mobile-page-tabs-${c.title}`,title:d.jsxs(g.SortableItem,{id:c.id,children:[d.jsx(Ba,{tab:c}),c.icon?d.jsxs(Ui,{children:[d.jsx(g.Icon,{type:c.icon}),c.title]}):c.title]})},String(c.schemaUid)))})}),d.jsx("div",{children:d.jsx(Fa,{})})]}):null:d.jsx(V.Navigate,{replace:!0,to:"/"})},F1=["default","primary","success","danger","warning"],Na=D.connect(t=>d.jsx(F.Radio.Group,R(B({},t),{children:F1.map(e=>d.jsx(F.Radio,{value:e,children:d.jsx(Ii,{color:e,size:"mini",style:{width:10,height:18},onClick:()=>t.onChange(e)})},e))}))),B1=["solid","outline"],La=D.connect(t=>d.jsx(F.Radio.Group,R(B({},t),{children:B1.map(e=>d.jsx(F.Radio,{value:e,children:d.jsx(Ii,{color:"primary",size:"mini",fill:e,style:{width:10,height:18},onClick:()=>t.onChange(e)})},e))}))),z1=t=>g.createModalSettingsItem({title:Z("Edit button"),name:"action",parentSchemaKey:"x-component-props",schema:e=>({type:"object",title:Z("Edit"),properties:{title:{title:Z("Title"),type:"string",default:e.title,"x-decorator":"FormItem","x-component":"Input","x-reactions":{target:"icon",fulfill:{state:{required:"{{!$self.value}}"}}}},icon:{title:Z("Icon"),type:"string",default:e.icon,"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":{target:"title",fulfill:{state:{required:"{{!$self.value}}"}}}},color:{type:"string",default:e.color,title:Z("Color"),"x-decorator":"FormItem","x-component":Na},fill:{type:"boolean",default:e.fill,title:Z("Fill"),"x-decorator":"FormItem","x-component":La,"x-reactions":[{dependencies:["title","icon"],fulfill:{state:{visible:"{{!!$deps[0] && !!$deps[1]}}"}}}]}}})}),N1={title:{type:"string",title:Z("Title"),"x-decorator":"FormItem","x-component":"Input","x-reactions":[{target:"icon",fulfill:{state:{required:"{{!$self.value}}"}}}]},icon:{type:"string",title:Z("Icon"),"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":[{target:"title",fulfill:{state:{required:"{{!$self.value}}"}}}]},color:{type:"string",title:Z("Color"),"x-decorator":"FormItem","x-component":Na},fill:{type:"boolean",title:Z("Fill"),"x-decorator":"FormItem","x-component":La,"x-reactions":[{dependencies:["title","icon"],fulfill:{state:{visible:"{{!!$deps[0] && !!$deps[1]}}"}}}]}},gr=new g.SchemaSettings({name:"mobile:navigation-bar:actions:link",items:[z1(),{name:"editLink",Component:g.SchemaSettingsActionLinkItem},{name:"remove",type:"remove",componentProps:{title:Z("Delete action")}}]}),Da=()=>{const{onClick:t}=g.useLinkActionProps();return{onClick:t}},Za=t=>({type:"void","x-component":"Action","x-toolbar":"ActionSchemaToolbar","x-settings":gr.name,"x-use-component-props":"useMobileNavigationBarLink","x-component-props":R(B({},t),{component:"MobileNavigationBarAction"})}),Va={name:"link",type:"actionModal",useComponentProps(){const{insert:t}=g.useSchemaInitializer(),{t:e}=de(),{message:i}=F.App.useApp();return{title:e("Add link"),buttonText:e("Link"),schema:N1,isItem:!0,onSubmit(n){if((!n.title||n.title.trim().length===0)&&!n.icon)return i.error(e("Please enter title or select icon")),Promise.reject(new Error("Please enter title or select icon"));t(Za(n))}}}},vr=new g.SchemaInitializer({name:"mobile:navigation-bar:actions",icon:"PlusOutlined",items:[Va]}),L1=lt.createStyles(()=>({navigationBarAction:{maxWidth:"10em",".adm-space":{maxWidth:"100%",overflow:"hidden"}},navigationBarActionIcon:{width:24,height:24,lineHeight:"24px",fontSize:24,padding:0,display:"flex",alignItems:"center",justifyContent:"center",".schema-toolbar":{inset:"-15px -8px"}},navigationBarActionTitle:{fontSize:17,padding:0,".schema-toolbar":{inset:"-15px -8px"}},navigationBarActionIconAndTitle:{height:"32px !important",fontSize:"17px !important",padding:"0 6px !important",".schema-toolbar":{inset:"-15px"}}})),yr=a.forwardRef((t,e)=>{const{icon:i,color:n,fill:r,children:o,style:s={},className:l,onClick:h}=t,{position:u}=g.useSchemaToolbar(),p=o[0],y=o[1],c=[i,p].filter(Boolean).length,m=a.useMemo(()=>typeof i=="string"?d.jsx(g.Icon,{type:i}):i,[i]),{styles:f}=L1();return d.jsx("div",{ref:e,children:d.jsxs(Ii,{onClick:h,color:n,size:c<=1?void 0:"mini",className:g.cx(l,f.navigationBarAction,{[f.navigationBarActionIconAndTitle]:c>1,[f.navigationBarActionTitle]:c===1&&p,[f.navigationBarActionIcon]:c===1&&i}),style:s,fill:c<=1?"none":r,children:[y,c>1?u==="left"?d.jsxs(Ui,{style:{"--gap":"6px"},children:[m,d.jsx("span",{children:p})]}):d.jsxs(Ui,{style:{"--gap":"6px"},children:[d.jsx("span",{children:p}),m]}):d.jsx(Ui,{children:m||p})]})})});yr.displayName="MobileNavigationBarAction";const ja=a.createContext({container:void 0}),D1=i=>{var n=i,{children:t}=n,e=Rt(n,["children"]);return d.jsx(ja.Provider,{value:e,children:t})},Ua=()=>a.useContext(ja),Wa=g.withDynamicSchemaProps(D.observer(t=>{const{forceProps:e={}}=Ua(),h=B(B({},g.useProps(t)),e),{style:i,spaceProps:n}=h,r=Rt(h,["style","spaceProps"]),{position:o}=g.useSchemaToolbar(),s=D.useFieldSchema(),{render:l}=g.useSchemaInitializerRender(s["x-initializer"],R(B({},s["x-initializer-props"]),{wrap(u){return B({"x-position":o},u)}}));return d.jsx(g.DndContext,{children:o!=="bottom"?d.jsxs("div",R(B({style:R(B({display:"flex",alignItems:"center",gap:12},i),{marginTop:0,justifyContent:o==="left"?"flex-start":"flex-end"})},r),{"data-testid":`mobile-navigation-action-bar-${o}`,className:un.cx(r.className,"nb-action-bar"),children:[o==="left"&&l({}),t.children&&d.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:d.jsx(D.RecursionField,{onlyRenderProperties:!0,schema:s,filterProperties:u=>u["x-position"]===o})}),o==="right"&&l({})]})):d.jsx(D.RecursionField,{onlyRenderProperties:!0,schema:s,filterProperties:u=>u["x-position"]===o})})}),{displayName:"MobileNavigationActionBar"}),Z1=lt.createStyles(()=>({mobilePageNavigationBar:{".adm-nav-bar":{maxWidth:"100%",height:49,overflow:"hidden",".adm-nav-bar-left":{display:"flex",alignItems:"center",justifyContent:"flex-start"},".adm-nav-bar-right":{display:"flex",alignItems:"center",justifyContent:"flex-end"}}}})),qa=()=>{const{title:t}=cr(),{displayNavigationBar:e=!0,displayPageTitle:i=!0}=Ki(),n=D.useFieldSchema(),{styles:r}=Z1();return e?d.jsxs("div",{className:g.cx("mobile-page-navigation-bar",r.mobilePageNavigationBar),"data-testid":"mobile-page-navigation-bar",children:[d.jsx(f1,{backArrow:!1,back:null,left:d.jsx(g.SchemaToolbarProvider,{position:"left",children:d.jsx(D.RecursionField,{name:"actionBarLeft",schema:n,onlyRenderProperties:!0})}),right:d.jsx(g.SchemaToolbarProvider,{position:"right",children:d.jsx(D.RecursionField,{name:"actionBarRight",schema:n,onlyRenderProperties:!0})}),children:i?t:null}),d.jsx(g.SchemaToolbarProvider,{position:"bottom",children:d.jsx(D.RecursionField,{name:"actionBarBottom",schema:n,onlyRenderProperties:!0})})]}):null},Ha={type:"void","x-component":"MobilePageHeader",properties:{pageNavigationBar:{type:"void","x-component":"MobilePageNavigationBar",properties:{actionBar:{type:"void","x-component":"MobileNavigationActionBar","x-initializer":vr.name,"x-component-props":{spaceProps:{style:{flexWrap:"nowrap"}}},properties:{}}}},pageTabs:{type:"void","x-component":"MobilePageTabs"}}},wr=new g.SchemaSettings({name:"mobile:page",items:[{type:"itemGroup",name:"app",useComponentProps(){const{t}=de();return{title:t("App settings")}},useVisible(){return!!en()},children:[{name:"enableTabBar",type:"switch",useComponentProps(){const{t}=de(),{showTabBar:e,setShowTabBar:i}=en(),{refresh:n}=g.useDesignable();return{title:t("Display tab bar"),checked:e,onChange(r){i(r),n()}}}}]},{type:"itemGroup",name:"page",useComponentProps(){const{t}=de();return{title:t("Page settings")}},children:[g.createSwitchSettingsItem({name:"displayPageHeader",title:Z("Display page header"),defaultValue:!0,schemaKey:"x-component-props.displayPageHeader"}),g.createSwitchSettingsItem({name:"displayNavigationBar",title:Z("Display navigation bar"),defaultValue:!0,schemaKey:"x-component-props.displayNavigationBar",useVisible(){var e;return((e=D.useFieldSchema()["x-component-props"])==null?void 0:e.displayPageHeader)!==!1}}),g.createSwitchSettingsItem({name:"displayPageTitle",title:Z("Display page title"),defaultValue:!0,schemaKey:"x-component-props.displayPageTitle",useVisible(){var e,i;const t=D.useFieldSchema();return((e=t["x-component-props"])==null?void 0:e.displayNavigationBar)!==!1&&((i=t["x-component-props"])==null?void 0:i.displayPageHeader)!==!1}}),g.createSwitchSettingsItem({name:"displayTabs",title:Z("Display tabs"),defaultValue:!1,schemaKey:"x-component-props.displayTabs",useVisible(){var e;return((e=D.useFieldSchema()["x-component-props"])==null?void 0:e.displayPageHeader)!==!1}})]}]}),V1=g.css(`
155
+ `})),Ma=()=>{const{pageSchemaUid:t}=V.useParams(),[e,i]=a.useState(!1),n=a.useCallback(()=>{i(!0)},[]);return e?d.jsx(g.RemoteSchemaComponent,{uid:t,NotFoundPage:"MobileNotFoundPage",memoized:!1,onPageNotFind:n}):d.jsxs(d.Fragment,{children:[d.jsx(g.RemoteSchemaComponent,{uid:t,NotFoundPage:"MobileNotFoundPage",memoized:!1,onPageNotFind:n}),d.jsx(V.Outlet,{}),d.jsx("div",{className:"nb-mobile-subpages-slot"})]})},Wi=a.createContext(null);Wi.displayName="MobileTitleContext";const Ta=({children:t,title:e})=>{const[i,n]=a.useState(e);return d.jsx(Wi.Provider,{value:{title:i,setTitle:n},children:t})},cr=()=>a.useContext(Wi),qi=a.createContext(null);qi.displayName="MobileRoutesContext";const ce=()=>a.useContext(qi);function M1(t){const{pathname:e}=V.useLocation(),i=t.reduce((r,o)=>{var l;const s=o.schemaUid?`/${o.type}/${o.schemaUid}`:(l=o.options)==null?void 0:l.url;return s&&(r[s]=o),o.children&&o.children.forEach(h=>{var p;const u=h.schemaUid?`${s}/${h.type}/${h.schemaUid}`:(p=h.options)==null?void 0:p.url;u&&(r[u]=h)}),r},{}),n=Object.values(i).find(r=>r.schemaUid?e.includes(`/${r.schemaUid}`):r.options.url?e.includes(r.options.url):!1);return{activeTabBarItem:n,activeTabItem:i[e]||n}}function T1(t){const e=cr();a.useEffect(()=>{e&&t&&(e.setTitle(t.title),document.title=t.title)},[t,e])}const dr=({children:t,refreshRef:e,manual:i,action:n="listAccessible"})=>{const r=g.useAPIClient(),o=a.useMemo(()=>r.resource("mobileRoutes"),[r]),s=a.useMemo(()=>r.resource("uiSchemas"),[r]),{data:l,runAsync:h,loading:u}=g.useRequest(()=>o[n]({tree:!0,sort:"sort"}).then(f=>f.data),{manual:i});e&&(e.current=h);const p=a.useMemo(()=>(l==null?void 0:l.data)||[],[l]),{activeTabBarItem:y,activeTabItem:c}=M1(p);T1(y);const m=a.useMemo(()=>({api:r,activeTabBarItem:y,activeTabItem:c,routeList:p,refresh:h,resource:o,schemaResource:s}),[y,c,r,h,o,p,s]);return u?d.jsx("div",{"data-testid":"mobile-loading",style:{textAlign:"center",margin:"20px 0"},children:d.jsx(F.Spin,{})}):d.jsx(qi.Provider,{value:m,children:t})},_1=({children:t})=>{const{designable:e}=g.useDesignable(),{routeList:i}=ce(),{t:n}=de();return(!e||ed)&&Ue.isEmpty(i)?d.jsx(u1,{status:"empty",fullPage:!0,title:n("No accessible pages found"),description:n("This might be due to permission configuration issues")}):d.jsx(d.Fragment,{children:t})},_a=({children:t})=>(a.useEffect(()=>{document.body.style.setProperty("--nb-mobile-page-tabs-content-padding","12px"),document.body.style.setProperty("--nb-mobile-page-header-height","50px")},[]),d.jsx(Ta,{children:d.jsx(dr,{children:d.jsx(_1,{children:t})})})),I1=lt.createStyles(()=>({mobilePageContent:{maxWidth:"100%",overflowX:"hidden"}})),ur=({children:t,hideTabBar:e})=>{const{styles:i}=I1(),[n,r]=a.useState(0),[o,s]=a.useState(0);return a.useEffect(()=>{const l=Ue.last(document.querySelectorAll(".mobile-page-header"));if(s(l==null?void 0:l.offsetHeight),!e){const h=document.querySelector(".mobile-tab-bar");r(h==null?void 0:h.offsetHeight)}}),d.jsxs(d.Fragment,{children:[o?d.jsx("div",{style:{height:o}}):null,d.jsx("div",{className:`${i.mobilePageContent} mobile-page-content`,"data-testid":"mobile-page-content",style:{height:`calc(100% - ${(n||0)+(o||0)}px)`,boxSizing:"border-box"},children:t}),n?d.jsx("div",{style:{height:n}}):null]})},Ia=()=>{var i,n;const{tabSchemaUid:t}=V.useParams(),{activeTabBarItem:e}=ce();return d.jsx(ur,{children:d.jsx(g.RemoteSchemaComponent,{uid:t||((n=(i=e==null?void 0:e.children)==null?void 0:i[0])==null?void 0:n.schemaUid),NotFoundPage:"MobileNotFoundPage",memoized:!1})})},fr=new g.SchemaInitializer({title:'{{t("Add block")}}',name:"mobile:addBlock",icon:"PlusOutlined",wrap:g.gridRowColWrap,style:{margin:20},items:[{name:"dataBlocks",title:'{{t("Desktop data blocks")}}',type:"itemGroup",children:[{name:"table",title:'{{t("Table")}}',Component:"TableBlockInitializer"},{name:"form",title:'{{t("Form")}}',Component:"FormBlockInitializer"},{name:"details",title:'{{t("Details")}}',Component:"DetailsBlockInitializer"},{name:"gridCard",title:'{{t("Grid Card")}}',Component:"GridCardBlockInitializer"}]},{name:"filterBlocks",title:'{{t("Desktop filter blocks")}}',type:"itemGroup",children:[{name:"filterForm",title:'{{t("Form")}}',Component:"FilterFormBlockInitializer"}]},{name:"otherBlocks",type:"itemGroup",title:'{{t("Other desktop blocks")}}',children:[{name:"markdown",title:'{{t("Markdown")}}',Component:"MarkdownBlockInitializer"},{name:"settings",title:Z("Settings"),Component:"MobileSettingsBlockInitializer"}]}]});function Aa(t){return{type:"void","x-component":"MobilePageContent",properties:{[t]:hr(t)}}}function hr(t){return{type:"void","x-uid":t,"x-async":!0,"x-component":"Grid","x-component-props":{showDivider:!1},"x-initializer":fr.name}}const Hi=a.createContext(null);Hi.displayName="MobilePageContext";const Oa=i=>{var n=i,{children:t}=n,e=Rt(n,["children"]);return d.jsx(Hi.Provider,{value:e,children:t})},Ki=()=>a.useContext(Hi),A1=lt.createStyles(()=>({mobilePageHeader:{position:"absolute",top:0,left:0,right:0,borderBottom:"1px solid var(--adm-color-border)",backgroundColor:"var(--adm-color-background)"}})),pr=({children:t})=>{const{displayPageHeader:e=!0}=Ki()||{},{styles:i}=A1();return e?d.jsxs("div",{className:g.cx(i.mobilePageHeader,"mobile-page-header"),"data-testid":"mobile-page-header",children:[d.jsx(ya,{position:"top"}),t]}):null},mr=new g.SchemaInitializer({name:"mobile:tabs",Component:()=>{const{refresh:t,resource:e,activeTabBarItem:i}=ce(),{insert:n}=g.useSchemaInitializer(),{t:r}=de(),{message:o}=F.App.useApp();return d.jsx(g.SchemaInitializerActionModal,{title:Z("Add tab"),btnStyles:{width:32,padding:0,marginRight:12},onSubmit:h=>Q(this,[h],function*({title:s,icon:l}){if(s&&s.trim().length==0)return o.error(r("Title field is required")),Promise.reject(new Error("Title field is required"));const u=ei.uid();yield e.create({values:{type:"tabs",title:s,icon:l,schemaUid:u,parentId:i.id}}),n(hr(u)),yield t()}),schema:{title:{type:"string",title:Z("Title"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{title:Z("Icon"),type:"string","x-decorator":"FormItem","x-component":"IconPicker"}}})}}),Fa=()=>{const{render:t}=g.useSchemaInitializerRender(mr.name);return t()},O1=g.createTextSettingsItem({name:"remove",title:Z("Delete"),useTextClick:()=>{const{t}=de(),{tab:e}=g.useSchemaToolbar(),{refresh:i,resource:n,activeTabBarItem:r,api:o}=ce(),s=V.useNavigate(),{modal:l,message:h}=F.App.useApp();return()=>Q(this,null,function*(){l.confirm({title:t("Delete action"),content:t("Are you sure you want to delete it?"),onOk:()=>Q(this,null,function*(){yield n.destroy({filterByTk:e.id}),yield i(),yield o.request({url:`/uiSchemas:remove/${e.schemaUid}`,method:"delete"});const u=r.children.find(p=>p.id!==e.id);s(`/${r.type}/${r.schemaUid}/${u.type}/${u.schemaUid}`),h.success({content:"Delete successfully"})})})})},useVisible(){var e;const{activeTabBarItem:t}=ce();return((e=t.children)==null?void 0:e.length)>1}}),F1={name:"title",type:"actionModal",useComponentProps(){const{t}=de(),{tab:e}=g.useSchemaToolbar(),{refresh:i,resource:n}=ce(),{message:r}=F.App.useApp();return{title:t("Edit"),schema:{type:"object",properties:{title:{type:"string",title:Z("Title"),default:e.title,"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{title:Z("Icon"),type:"string","x-decorator":"FormItem",default:e.icon,"x-component":"IconPicker"}}},onSubmit(h){return Q(this,arguments,function*({title:s,icon:l}){if(s&&s.trim().length==0)return r.error(t("Title field is required")),Promise.reject(new Error("Title field is required"));yield n.update({filterByTk:e.id,values:{title:s,icon:l}}),i()})}}}},br=new g.SchemaSettings({name:"mobile:tabs",items:[F1,O1]}),Ba=({tab:t})=>d.jsx(g.SchemaToolbarProvider,{tab:t,children:d.jsx(g.SchemaToolbar,{settings:br,showBackground:!0,showBorder:!1,toolbarStyle:{inset:"-15px -12px"},spaceWrapperStyle:{top:3}})}),gr=lt.createStyles(()=>({mobilePageTabs:{display:"flex",alignItems:"center",justifyContent:"space-between"},mobilePageTabsList:{".adm-tabs-header":{borderBottomWidth:0},".adm-tabs-tab":{height:49,padding:"10px 0 10px"}}})),za=()=>{var y;const{activeTabBarItem:t,resource:e,refresh:i}=ce(),{displayTabs:n=!1}=Ki(),r=V.useNavigate(),{styles:o}=gr(),{tabSchemaUid:s}=V.useParams(),[l,h]=a.useState(()=>{var c,m;return s||((m=(c=t==null?void 0:t.children)==null?void 0:c[0])==null?void 0:m.schemaUid)}),u=c=>{h(c),r(`/${t.type}/${t.schemaUid}/tabs/${c}`)},p=a.useCallback(c=>Q(this,null,function*(){const{active:m,over:f}=c,b=m==null?void 0:m.id,v=f==null?void 0:f.id;!b||!v||b===v||(yield e.move({sourceId:b,targetId:v,sortField:"sort"}),yield i())}),[e,i]);return t?n?d.jsxs("div",{className:o.mobilePageTabs,"data-testid":"mobile-page-tabs",children:[d.jsx(g.DndContext,{onDragEnd:p,children:d.jsx(ji,{activeKey:l,onChange:u,className:o.mobilePageTabsList,children:(y=t.children)==null?void 0:y.map(c=>d.jsx(ji.Tab,{"data-testid":`mobile-page-tabs-${c.title}`,title:d.jsxs(g.SortableItem,{id:c.id,children:[d.jsx(Ba,{tab:c}),c.icon?d.jsxs(Ui,{children:[d.jsx(g.Icon,{type:c.icon}),c.title]}):c.title]})},String(c.schemaUid)))})}),d.jsx("div",{children:d.jsx(Fa,{})})]}):null:d.jsx(V.Navigate,{replace:!0,to:"/"})},B1=["default","primary","success","danger","warning"],Na=D.connect(t=>d.jsx(F.Radio.Group,R(B({},t),{children:B1.map(e=>d.jsx(F.Radio,{value:e,children:d.jsx(Ii,{color:e,size:"mini",style:{width:10,height:18},onClick:()=>t.onChange(e)})},e))}))),z1=["solid","outline"],La=D.connect(t=>d.jsx(F.Radio.Group,R(B({},t),{children:z1.map(e=>d.jsx(F.Radio,{value:e,children:d.jsx(Ii,{color:"primary",size:"mini",fill:e,style:{width:10,height:18},onClick:()=>t.onChange(e)})},e))}))),N1=t=>g.createModalSettingsItem({title:Z("Edit button"),name:"action",parentSchemaKey:"x-component-props",schema:e=>({type:"object",title:Z("Edit"),properties:{title:{title:Z("Title"),type:"string",default:e.title,"x-decorator":"FormItem","x-component":"Input","x-reactions":{target:"icon",fulfill:{state:{required:"{{!$self.value}}"}}}},icon:{title:Z("Icon"),type:"string",default:e.icon,"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":{target:"title",fulfill:{state:{required:"{{!$self.value}}"}}}},color:{type:"string",default:e.color,title:Z("Color"),"x-decorator":"FormItem","x-component":Na},fill:{type:"boolean",default:e.fill,title:Z("Fill"),"x-decorator":"FormItem","x-component":La,"x-reactions":[{dependencies:["title","icon"],fulfill:{state:{visible:"{{!!$deps[0] && !!$deps[1]}}"}}}]}}})}),L1={title:{type:"string",title:Z("Title"),"x-decorator":"FormItem","x-component":"Input","x-reactions":[{target:"icon",fulfill:{state:{required:"{{!$self.value}}"}}}]},icon:{type:"string",title:Z("Icon"),"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":[{target:"title",fulfill:{state:{required:"{{!$self.value}}"}}}]},color:{type:"string",title:Z("Color"),"x-decorator":"FormItem","x-component":Na},fill:{type:"boolean",title:Z("Fill"),"x-decorator":"FormItem","x-component":La,"x-reactions":[{dependencies:["title","icon"],fulfill:{state:{visible:"{{!!$deps[0] && !!$deps[1]}}"}}}]}},vr=new g.SchemaSettings({name:"mobile:navigation-bar:actions:link",items:[N1(),{name:"editLink",Component:g.SchemaSettingsActionLinkItem},{name:"remove",type:"remove",componentProps:{title:Z("Delete action")}}]}),Da=()=>{const{onClick:t}=g.useLinkActionProps();return{onClick:t}},Za=t=>({type:"void","x-component":"Action","x-toolbar":"ActionSchemaToolbar","x-settings":vr.name,"x-use-component-props":"useMobileNavigationBarLink","x-component-props":R(B({},t),{component:"MobileNavigationBarAction"})}),Va={name:"link",type:"actionModal",useComponentProps(){const{insert:t}=g.useSchemaInitializer(),{t:e}=de(),{message:i}=F.App.useApp();return{title:e("Add link"),buttonText:e("Link"),schema:L1,isItem:!0,onSubmit(n){if((!n.title||n.title.trim().length===0)&&!n.icon)return i.error(e("Please enter title or select icon")),Promise.reject(new Error("Please enter title or select icon"));t(Za(n))}}}},yr=new g.SchemaInitializer({name:"mobile:navigation-bar:actions",icon:"PlusOutlined",items:[Va]}),D1=lt.createStyles(()=>({navigationBarAction:{maxWidth:"10em",".adm-space":{maxWidth:"100%",overflow:"hidden"}},navigationBarActionIcon:{width:24,height:24,lineHeight:"24px",fontSize:24,padding:0,display:"flex",alignItems:"center",justifyContent:"center",".schema-toolbar":{inset:"-15px -8px"}},navigationBarActionTitle:{fontSize:17,padding:0,".schema-toolbar":{inset:"-15px -8px"}},navigationBarActionIconAndTitle:{height:"32px !important",fontSize:"17px !important",padding:"0 6px !important",".schema-toolbar":{inset:"-15px"}}})),wr=a.forwardRef((t,e)=>{const{icon:i,color:n,fill:r,children:o,style:s={},className:l,onClick:h}=t,{position:u}=g.useSchemaToolbar(),p=o[0],y=o[1],c=[i,p].filter(Boolean).length,m=a.useMemo(()=>typeof i=="string"?d.jsx(g.Icon,{type:i}):i,[i]),{styles:f}=D1();return d.jsx("div",{ref:e,children:d.jsxs(Ii,{onClick:h,color:n,size:c<=1?void 0:"mini",className:g.cx(l,f.navigationBarAction,{[f.navigationBarActionIconAndTitle]:c>1,[f.navigationBarActionTitle]:c===1&&p,[f.navigationBarActionIcon]:c===1&&i}),style:s,fill:c<=1?"none":r,children:[y,c>1?u==="left"?d.jsxs(Ui,{style:{"--gap":"6px"},children:[m,d.jsx("span",{children:p})]}):d.jsxs(Ui,{style:{"--gap":"6px"},children:[d.jsx("span",{children:p}),m]}):d.jsx(Ui,{children:m||p})]})})});wr.displayName="MobileNavigationBarAction";const ja=a.createContext({container:void 0}),Z1=i=>{var n=i,{children:t}=n,e=Rt(n,["children"]);return d.jsx(ja.Provider,{value:e,children:t})},Ua=()=>a.useContext(ja),Wa=g.withDynamicSchemaProps(D.observer(t=>{const{forceProps:e={}}=Ua(),h=B(B({},g.useProps(t)),e),{style:i,spaceProps:n}=h,r=Rt(h,["style","spaceProps"]),{position:o}=g.useSchemaToolbar(),s=D.useFieldSchema(),{render:l}=g.useSchemaInitializerRender(s["x-initializer"],R(B({},s["x-initializer-props"]),{wrap(u){return B({"x-position":o},u)}}));return d.jsx(g.DndContext,{children:o!=="bottom"?d.jsxs("div",R(B({style:R(B({display:"flex",alignItems:"center",gap:12},i),{marginTop:0,justifyContent:o==="left"?"flex-start":"flex-end"})},r),{"data-testid":`mobile-navigation-action-bar-${o}`,className:un.cx(r.className,"nb-action-bar"),children:[o==="left"&&l({}),t.children&&d.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:d.jsx(D.RecursionField,{onlyRenderProperties:!0,schema:s,filterProperties:u=>u["x-position"]===o})}),o==="right"&&l({})]})):d.jsx(D.RecursionField,{onlyRenderProperties:!0,schema:s,filterProperties:u=>u["x-position"]===o})})}),{displayName:"MobileNavigationActionBar"}),V1=lt.createStyles(()=>({mobilePageNavigationBar:{".adm-nav-bar":{maxWidth:"100%",height:49,overflow:"hidden",".adm-nav-bar-left":{display:"flex",alignItems:"center",justifyContent:"flex-start"},".adm-nav-bar-right":{display:"flex",alignItems:"center",justifyContent:"flex-end"}}}})),qa=()=>{const{title:t}=cr(),{displayNavigationBar:e=!0,displayPageTitle:i=!0}=Ki(),n=D.useFieldSchema(),{styles:r}=V1();return e?d.jsxs("div",{className:g.cx("mobile-page-navigation-bar",r.mobilePageNavigationBar),"data-testid":"mobile-page-navigation-bar",children:[d.jsx(h1,{backArrow:!1,back:null,left:d.jsx(g.SchemaToolbarProvider,{position:"left",children:d.jsx(D.RecursionField,{name:"actionBarLeft",schema:n,onlyRenderProperties:!0})}),right:d.jsx(g.SchemaToolbarProvider,{position:"right",children:d.jsx(D.RecursionField,{name:"actionBarRight",schema:n,onlyRenderProperties:!0})}),children:i?t:null}),d.jsx(g.SchemaToolbarProvider,{position:"bottom",children:d.jsx(D.RecursionField,{name:"actionBarBottom",schema:n,onlyRenderProperties:!0})})]}):null},Ha={type:"void","x-component":"MobilePageHeader",properties:{pageNavigationBar:{type:"void","x-component":"MobilePageNavigationBar",properties:{actionBar:{type:"void","x-component":"MobileNavigationActionBar","x-initializer":yr.name,"x-component-props":{spaceProps:{style:{flexWrap:"nowrap"}}},properties:{}}}},pageTabs:{type:"void","x-component":"MobilePageTabs"}}},xr=new g.SchemaSettings({name:"mobile:page",items:[{type:"itemGroup",name:"app",useComponentProps(){const{t}=de();return{title:t("App settings")}},useVisible(){return!!en()},children:[{name:"enableTabBar",type:"switch",useComponentProps(){const{t}=de(),{showTabBar:e,setShowTabBar:i}=en(),{refresh:n}=g.useDesignable();return{title:t("Display tab bar"),checked:e,onChange(r){i(r),n()}}}}]},{type:"itemGroup",name:"page",useComponentProps(){const{t}=de();return{title:t("Page settings")}},children:[g.createSwitchSettingsItem({name:"displayPageHeader",title:Z("Display page header"),defaultValue:!0,schemaKey:"x-component-props.displayPageHeader"}),g.createSwitchSettingsItem({name:"displayNavigationBar",title:Z("Display navigation bar"),defaultValue:!0,schemaKey:"x-component-props.displayNavigationBar",useVisible(){var e;return((e=D.useFieldSchema()["x-component-props"])==null?void 0:e.displayPageHeader)!==!1}}),g.createSwitchSettingsItem({name:"displayPageTitle",title:Z("Display page title"),defaultValue:!0,schemaKey:"x-component-props.displayPageTitle",useVisible(){var e,i;const t=D.useFieldSchema();return((e=t["x-component-props"])==null?void 0:e.displayNavigationBar)!==!1&&((i=t["x-component-props"])==null?void 0:i.displayPageHeader)!==!1}}),g.createSwitchSettingsItem({name:"displayTabs",title:Z("Display tabs"),defaultValue:!1,schemaKey:"x-component-props.displayTabs",useVisible(){var e;return((e=D.useFieldSchema()["x-component-props"])==null?void 0:e.displayPageHeader)!==!1}})]}]}),j1=g.css(`
156
156
  &:first-child {
157
157
  .ant-space-item {
158
158
  width: 30px;
@@ -167,7 +167,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
167
167
  }
168
168
  }
169
169
  }
170
- `);function Ka(t,e){return{schema:{type:"void",name:t,"x-uid":t,"x-component":"MobilePageProvider","x-settings":wr.name,"x-decorator":"BlockItem","x-decorator-props":{style:{height:"100%"}},"x-toolbar-props":{draggable:!1,spaceWrapperStyle:{right:-15,top:-15},spaceClassName:V1,toolbarStyle:{overflowX:"hidden"}},properties:{header:Ha,content:Aa(e)}}}}function j1(t){return t==null||t.mapProperties(e=>{e["x-component"]==="Grid"&&(e["x-component-props"]=R(B({},e["x-component-props"]),{showDivider:!1}))}),t}const U1=g.createStyles(({css:t,token:e})=>({container:t`
170
+ `);function Ka(t,e){return{schema:{type:"void",name:t,"x-uid":t,"x-component":"MobilePageProvider","x-settings":xr.name,"x-decorator":"BlockItem","x-decorator-props":{style:{height:"100%"}},"x-toolbar-props":{draggable:!1,spaceWrapperStyle:{right:-15,top:-15},spaceClassName:j1,toolbarStyle:{overflowX:"hidden"}},properties:{header:Ha,content:Aa(e)}}}}function U1(t){return t==null||t.mapProperties(e=>{e["x-component"]==="Grid"&&(e["x-component-props"]=R(B({},e["x-component-props"]),{showDivider:!1}))}),t}const W1=g.createStyles(({css:t,token:e})=>({container:t`
171
171
  cursor: pointer;
172
172
  text-align: right;
173
173
  flex: 1;
@@ -195,7 +195,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
195
195
  font-size: 24px;
196
196
  height: 50px;
197
197
  width: 50px;
198
- `})),xr=D.observer(t=>{const e=D.useFieldSchema(),{render:i}=g.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]),{activeKey:n,onChange:r}=g.useTabsContext()||{},[o,s]=a.useState(n),{styles:l}=br(),{styles:h}=U1(),{goBack:u}=g.useBackButton(),p=a.useRef({}),y=a.useCallback(f=>{s(f),r==null||r(f)},[r]);a.useEffect(()=>{s(n)},[n]);const c=a.useMemo(()=>e.mapProperties((b,v)=>(p.current[v]=d.jsx(g.SchemaComponent,{name:v,schema:b,onlyRenderProperties:!0,distributed:!0}),d.jsx(ji.Tab,{title:d.jsx(D.RecursionField,{name:v,schema:b,onlyRenderSelf:!0})},v))),[e.mapProperties((f,b)=>b).join()]),m=a.useMemo(()=>{var b,v;const f=e.mapProperties((C,S)=>(C=j1(C),{key:S,node:d.jsx(g.SchemaComponent,{name:S,schema:C,onlyRenderProperties:!0,distributed:!0})}));return o?(v=f.find(C=>C.key===o))==null?void 0:v.node:(b=f[0])==null?void 0:b.node},[o,e]);return d.jsxs(d.Fragment,{children:[d.jsx(hr,{children:d.jsxs("div",{className:l.mobilePageTabs,"data-testid":"mobile-action-page-tabs",children:[d.jsx("div",{className:h.backButton,onClick:u,children:d.jsx(Rs,{})}),d.jsx(g.DndContext,{children:d.jsx(ji,{activeKey:o,onChange:y,className:l.mobilePageTabsList,children:c})}),d.jsx("div",{className:h.container,children:i()})]})}),d.jsx(_a,{hideTabBar:!0,children:m})]})},{displayName:"MobileTabsForMobileActionPage"}),W1=g.css`
198
+ `})),Sr=D.observer(t=>{const e=D.useFieldSchema(),{render:i}=g.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]),{activeKey:n,onChange:r}=g.useTabsContext()||{},[o,s]=a.useState(n),{styles:l}=gr(),{styles:h}=W1(),{goBack:u}=g.useBackButton(),p=a.useRef({}),y=a.useCallback(f=>{s(f),r==null||r(f)},[r]);a.useEffect(()=>{s(n)},[n]);const c=a.useMemo(()=>e.mapProperties((b,v)=>(p.current[v]=d.jsx(g.SchemaComponent,{name:v,schema:b,onlyRenderProperties:!0,distributed:!0}),d.jsx(ji.Tab,{title:d.jsx(D.RecursionField,{name:v,schema:b,onlyRenderSelf:!0})},v))),[e.mapProperties((f,b)=>b).join()]),m=a.useMemo(()=>{var b,v;const f=e.mapProperties((C,S)=>(C=U1(C),{key:S,node:d.jsx(g.SchemaComponent,{name:S,schema:C,onlyRenderProperties:!0,distributed:!0})}));return o?(v=f.find(C=>C.key===o))==null?void 0:v.node:(b=f[0])==null?void 0:b.node},[o,e]);return d.jsxs(d.Fragment,{children:[d.jsx(pr,{children:d.jsxs("div",{className:l.mobilePageTabs,"data-testid":"mobile-action-page-tabs",children:[d.jsx("div",{className:h.backButton,onClick:u,children:d.jsx(ea,{})}),d.jsx(g.DndContext,{children:d.jsx(ji,{activeKey:o,onChange:y,className:l.mobilePageTabsList,children:c})}),d.jsx("div",{className:h.container,children:i()})]})}),d.jsx(ur,{hideTabBar:!0,children:m})]})},{displayName:"MobileTabsForMobileActionPage"}),q1=g.css`
199
199
  position: relative;
200
200
  &:hover {
201
201
  > .general-schema-designer {
@@ -241,7 +241,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
241
241
  }
242
242
  }
243
243
  }
244
- `;xr.TabPane=D.observer(t=>{const e=g.useDesigner(),i=D.useField();return d.jsxs(g.SortableItem,{className:te("nb-action-link",W1,t.className),children:[t.icon&&d.jsx(g.Icon,{style:{marginRight:2},type:t.icon})," ",t.tab||i.title,d.jsx(e,{})]})},{displayName:"MobileTabsForMobileActionPage.TabPane"}),xr.Designer=g.Tabs.Designer;const q1={Tabs:xr},H1=({level:t,footerNodeName:e})=>{const i=D.useField(),n=D.useFieldSchema(),r=g.useActionContext(),{styles:o}=C1(),s=g.useTabsContext(),l=a.useMemo(()=>document.querySelector(".nb-mobile-subpages-slot"),[]),u=g.useZIndexContext()+Qt+(t||1),p=n.reduceProperties((m,f)=>f["x-component"]===e?f:m),y=a.useMemo(()=>({zIndex:u}),[u]);if(!r.visible)return null;const c=d.jsx(g.zIndexContext.Provider,{value:u,children:d.jsxs("div",{className:o.container,style:y,children:[d.jsx(g.TabsContextProvider,R(B({},s),{tabBarExtraContent:d.jsx(g.BackButtonUsedInSubPage,{}),tabBarGutter:48,children:d.jsx(g.SchemaComponent,{components:q1,schema:n,onlyRenderProperties:!0})})),p&&d.jsx("div",{className:o.footer,style:y,children:d.jsx(D.RecursionField,{basePath:i.address,schema:n,onlyRenderProperties:!0,filterProperties:m=>m["x-component"]===e})})]})});return l?$e.createPortal(c,l):c},K1=(t,e)=>{const i=e(t);return R(B({},i),{columnCount:{lg:1,md:1,xs:1,xxl:1}})},G1=t=>{const{scope:e}=g.useSchemaOptionsContext(),i=a.useMemo(()=>({useGridCardBlockDecoratorProps:n=>K1(n,e==null?void 0:e.useGridCardBlockDecoratorProps)}),[e==null?void 0:e.useGridCardBlockDecoratorProps]);return d.jsx(g.SchemaComponentOptions,{scope:i,children:t.children})},Y1=50,Ga="#f5f5f5",Sr=a.createContext(null);Sr.displayName="SizeContext";function Ya(){return a.useContext(Sr)}const Q1=({children:t})=>{const[e,i]=a.useState({width:375,height:667});return d.jsx(Sr.Provider,{value:{size:e,setSize:i},children:t})},X1=()=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("title",{children:"pad icon"}),d.jsx("rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2"}),d.jsx("line",{x1:"12",x2:"12.01",y1:"18",y2:"18"})]}),J1=()=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("title",{children:"mobile icon"}),d.jsx("rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),d.jsx("path",{d:"M12 18h.01"})]}),$1=t=>d.jsx(g.Icon,B({type:"",component:X1},t)),R1=t=>d.jsx(g.Icon,B({type:"",component:J1},t)),Qa=()=>{const{t}=de(),e=g.useApp(),{setSize:i}=Ya(),[n,r]=a.useState(!1),{allowConfigUI:o}=g.useUIConfigurationPermissions(),s=l=>{r(l)};return d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",color:"white",height:"100%"},className:g.css`
244
+ `;Sr.TabPane=D.observer(t=>{const e=g.useDesigner(),i=D.useField();return d.jsxs(g.SortableItem,{className:te("nb-action-link",q1,t.className),children:[t.icon&&d.jsx(g.Icon,{style:{marginRight:2},type:t.icon})," ",t.tab||i.title,d.jsx(e,{})]})},{displayName:"MobileTabsForMobileActionPage.TabPane"}),Sr.Designer=g.Tabs.Designer;const H1={Tabs:Sr},K1=({level:t,footerNodeName:e})=>{const i=D.useField(),n=D.useFieldSchema(),r=g.useActionContext(),{styles:o}=P1(),s=g.useTabsContext(),l=a.useMemo(()=>document.querySelector(".nb-mobile-subpages-slot"),[]),u=g.useZIndexContext()+Qt+(t||1),p=n.reduceProperties((m,f)=>f["x-component"]===e?f:m),y=a.useMemo(()=>({zIndex:u}),[u]);if(!r.visible)return null;const c=d.jsx(g.zIndexContext.Provider,{value:u,children:d.jsxs("div",{className:o.container,style:y,children:[d.jsx(g.TabsContextProvider,R(B({},s),{tabBarExtraContent:d.jsx(g.BackButtonUsedInSubPage,{}),tabBarGutter:48,children:d.jsx(g.SchemaComponent,{components:H1,schema:n,onlyRenderProperties:!0})})),p&&d.jsx("div",{className:o.footer,style:y,children:d.jsx(D.RecursionField,{basePath:i.address,schema:n,onlyRenderProperties:!0,filterProperties:m=>m["x-component"]===e})})]})});return l?$e.createPortal(c,l):c},G1=(t,e)=>{const i=e(t);return R(B({},i),{columnCount:{lg:1,md:1,xs:1,xxl:1}})},Y1=t=>{const{scope:e}=g.useSchemaOptionsContext(),i=a.useMemo(()=>({useGridCardBlockDecoratorProps:n=>G1(n,e==null?void 0:e.useGridCardBlockDecoratorProps)}),[e==null?void 0:e.useGridCardBlockDecoratorProps]);return d.jsx(g.SchemaComponentOptions,{scope:i,children:t.children})},Q1=50,Ga="#f5f5f5",kr=a.createContext(null);kr.displayName="SizeContext";function Ya(){return a.useContext(kr)}const X1=({children:t})=>{const[e,i]=a.useState({width:375,height:667});return d.jsx(kr.Provider,{value:{size:e,setSize:i},children:t})},J1=()=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("title",{children:"pad icon"}),d.jsx("rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2"}),d.jsx("line",{x1:"12",x2:"12.01",y1:"18",y2:"18"})]}),$1=()=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("title",{children:"mobile icon"}),d.jsx("rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),d.jsx("path",{d:"M12 18h.01"})]}),R1=t=>d.jsx(g.Icon,B({type:"",component:J1},t)),e0=t=>d.jsx(g.Icon,B({type:"",component:$1},t)),Qa=()=>{const{t}=de(),e=g.useApp(),{setSize:i}=Ya(),[n,r]=a.useState(!1),{allowConfigUI:o}=g.useUIConfigurationPermissions(),s=l=>{r(l)};return d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",color:"white",height:"100%"},className:g.css`
245
245
  .ant-btn {
246
246
  border: 0;
247
247
  height: 46px;
@@ -265,11 +265,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
265
265
  .ant-btn-default {
266
266
  box-shadow: none;
267
267
  }
268
- `,children:[d.jsx(F.Button,{style:{color:"white"},href:e.getRouteUrl("/admin"),children:t("Back")}),d.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o?d.jsx(g.DesignableSwitch,{}):null,d.jsx(F.Button,{onClick:()=>{i({width:768,height:667})},"data-testid":"desktop-mode-size-pad",icon:d.jsx($1,{})}),d.jsx(F.Button,{onClick:()=>{i({width:375,height:667})},"data-testid":"desktop-mode-size-mobile",icon:d.jsx(R1,{})}),d.jsx(F.Popover,{trigger:"hover",open:n,onOpenChange:s,content:n?d.jsx(F.QRCode,{value:window.location.href,bordered:!1}):" ",children:d.jsx(F.Button,{icon:d.jsx(Nr.QrcodeOutlined,{style:{fontSize:"24px",cursor:"pointer"},"data-testid":"desktop-mode-qrcode"})})})]})]})};var e0=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},t(e,i)};return function(e,i){t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),Gi=function(){return Gi=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Gi.apply(this,arguments)},t0={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},i0=function(t){e0(e,t);function e(){var i=t!==null&&t.apply(this,arguments)||this;return i.onMouseDown=function(n){i.props.onResizeStart(n,i.props.direction)},i.onTouchStart=function(n){i.props.onResizeStart(n,i.props.direction)},i}return e.prototype.render=function(){return ee.createElement("div",{className:this.props.className||"",style:Gi(Gi({position:"absolute",userSelect:"none"},t0[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},e}(ee.PureComponent),kr={exports:{}};function n0(t,e){var i=e&&e.cache?e.cache:c0,n=e&&e.serializer?e.serializer:l0,r=e&&e.strategy?e.strategy:o0;return r(t,{cache:i,serializer:n})}function r0(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Xa(t,e,i,n){var r=r0(n)?n:i(n),o=e.get(r);return typeof o=="undefined"&&(o=t.call(this,n),e.set(r,o)),o}function Ja(t,e,i){var n=Array.prototype.slice.call(arguments,3),r=i(n),o=e.get(r);return typeof o=="undefined"&&(o=t.apply(this,n),e.set(r,o)),o}function Er(t,e,i,n,r){return i.bind(e,t,n,r)}function o0(t,e){var i=t.length===1?Xa:Ja;return Er(t,this,i,e.cache.create(),e.serializer)}function s0(t,e){var i=Ja;return Er(t,this,i,e.cache.create(),e.serializer)}function a0(t,e){var i=Xa;return Er(t,this,i,e.cache.create(),e.serializer)}function l0(){return JSON.stringify(arguments)}function Yi(){this.cache=Object.create(null)}Yi.prototype.has=function(t){return t in this.cache},Yi.prototype.get=function(t){return this.cache[t]},Yi.prototype.set=function(t,e){this.cache[t]=e};var c0={create:function(){return new Yi}};kr.exports=n0,kr.exports.strategies={variadic:s0,monadic:a0};var d0=kr.exports;const ot=Vr(d0);var u0=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},t(e,i)};return function(e,i){t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),Be=function(){return Be=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Be.apply(this,arguments)},f0={width:"auto",height:"auto"},Qi=ot(function(t,e,i){return Math.max(Math.min(t,i),e)}),$a=ot(function(t,e){return Math.round(t/e)*e}),Xi=ot(function(t,e){return new RegExp(t,"i").test(e)}),Ji=function(t){return!!(t.touches&&t.touches.length)},h0=function(t){return!!((t.clientX||t.clientX===0)&&(t.clientY||t.clientY===0))},Ra=ot(function(t,e,i){i===void 0&&(i=0);var n=e.reduce(function(o,s,l){return Math.abs(s-t)<Math.abs(e[o]-t)?l:o},0),r=Math.abs(e[n]-t);return i===0||r<i?e[n]:t}),re=ot(function(t,e){return t.substr(t.length-e.length,e.length)===e}),Cr=ot(function(t){return t=t.toString(),t==="auto"||re(t,"px")||re(t,"%")||re(t,"vh")||re(t,"vw")||re(t,"vmax")||re(t,"vmin")?t:t+"px"}),$i=function(t,e,i,n){if(t&&typeof t=="string"){if(re(t,"%")){var r=Number(t.replace("%",""))/100;return e*r}else if(re(t,"vw")){var r=Number(t.replace("vw",""))/100;return i*r}else if(re(t,"vh")){var r=Number(t.replace("vh",""))/100;return n*r}}return t},p0=ot(function(t,e,i,n,r,o,s){return n=$i(n,t.width,e,i),r=$i(r,t.height,e,i),o=$i(o,t.width,e,i),s=$i(s,t.height,e,i),{maxWidth:typeof n=="undefined"?void 0:Number(n),maxHeight:typeof r=="undefined"?void 0:Number(r),minWidth:typeof o=="undefined"?void 0:Number(o),minHeight:typeof s=="undefined"?void 0:Number(s)}}),m0=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],el="__resizable_base__",b0=function(t){u0(e,t);function e(i){var n=t.call(this,i)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var r=n.parentNode;if(!r)return null;var o=n.window.document.createElement("div");return o.style.width="100%",o.style.height="100%",o.style.position="absolute",o.style.transform="scale(0, 0)",o.style.left="0",o.style.flex="0",o.classList?o.classList.add(el):o.className+=el,r.appendChild(o),o},n.removeBase=function(r){var o=n.parentNode;o&&o.removeChild(r)},n.ref=function(r){r&&(n.resizable=r)},n.state={isResizing:!1,width:typeof(n.propsSize&&n.propsSize.width)=="undefined"?"auto":n.propsSize&&n.propsSize.width,height:typeof(n.propsSize&&n.propsSize.height)=="undefined"?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||f0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){var i=0,n=0;if(this.resizable&&this.window){var r=this.resizable.offsetWidth,o=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),i=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:r,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:o,this.resizable.style.position=s}return{width:i,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeStyle",{get:function(){var i=this,n=this.props.size,r=function(l){if(typeof i.state[l]=="undefined"||i.state[l]==="auto")return"auto";if(i.propsSize&&i.propsSize[l]&&re(i.propsSize[l].toString(),"%")){if(re(i.state[l].toString(),"%"))return i.state[l].toString();var h=i.getParentSize(),u=Number(i.state[l].toString().replace("px","")),p=u/h[l]*100;return p+"%"}return Cr(i.state[l])},o=n&&typeof n.width!="undefined"&&!this.state.isResizing?Cr(n.width):r("width"),s=n&&typeof n.height!="undefined"&&!this.state.isResizing?Cr(n.height):r("height");return{width:o,height:s}},enumerable:!1,configurable:!0}),e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var i=this.appendBase();if(!i)return{width:0,height:0};var n=!1,r=this.parentNode.style.flexWrap;r!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),i.style.position="relative",i.style.minWidth="100%";var o={width:i.offsetWidth,height:i.offsetHeight};return n&&(this.parentNode.style.flexWrap=r),this.removeBase(i),o},e.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},e.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},e.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var i=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:i.flexBasis!=="auto"?i.flexBasis:void 0})}},e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},e.prototype.createSizeForCssProperty=function(i,n){var r=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===i&&(typeof r=="undefined"||r==="auto")?"auto":i},e.prototype.calculateNewMaxFromBoundary=function(i,n){if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var o=r.offsetWidth+(this.parentLeft-this.resizableLeft),s=r.offsetHeight+(this.parentTop-this.resizableTop);i=i&&i<o?i:o,n=n&&n<s?n:s}}else if(this.props.bounds==="window"){if(this.window){var o=this.window.innerWidth-this.resizableLeft,s=this.window.innerHeight-this.resizableTop;i=i&&i<o?i:o,n=n&&n<s?n:s}}else if(this.props.bounds){var o=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),s=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);i=i&&i<o?i:o,n=n&&n<s?n:s}return{maxWidth:i,maxHeight:n}},e.prototype.calculateNewSizeFromDirection=function(i,n){var r=this.props.scale||1,o=this.props.resizeRatio||1,s=this.state,l=s.direction,h=s.original,u=this.props,p=u.lockAspectRatio,y=u.lockAspectRatioExtraHeight,c=u.lockAspectRatioExtraWidth,m=h.width,f=h.height,b=y||0,v=c||0;return Xi("right",l)&&(m=h.width+(i-h.x)*o/r,p&&(f=(m-v)/this.ratio+b)),Xi("left",l)&&(m=h.width-(i-h.x)*o/r,p&&(f=(m-v)/this.ratio+b)),Xi("bottom",l)&&(f=h.height+(n-h.y)*o/r,p&&(m=(f-b)*this.ratio+v)),Xi("top",l)&&(f=h.height-(n-h.y)*o/r,p&&(m=(f-b)*this.ratio+v)),{newWidth:m,newHeight:f}},e.prototype.calculateNewSizeFromAspectRatio=function(i,n,r,o){var s=this.props,l=s.lockAspectRatio,h=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,p=typeof o.width=="undefined"?10:o.width,y=typeof r.width=="undefined"||r.width<0?i:r.width,c=typeof o.height=="undefined"?10:o.height,m=typeof r.height=="undefined"||r.height<0?n:r.height,f=h||0,b=u||0;if(l){var v=(c-f)*this.ratio+b,C=(m-f)*this.ratio+b,S=(p-b)/this.ratio+f,w=(y-b)/this.ratio+f,k=Math.max(p,v),P=Math.min(y,C),T=Math.max(c,S),L=Math.min(m,w);i=Qi(i,k,P),n=Qi(n,T,L)}else i=Qi(i,p,y),n=Qi(n,c,m);return{newWidth:i,newHeight:n}},e.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var i=this.parentNode;if(i){var n=i.getBoundingClientRect();this.parentLeft=n.left,this.parentTop=n.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left,this.targetTop=r.top}if(this.resizable){var o=this.resizable.getBoundingClientRect(),s=o.left,l=o.top;this.resizableLeft=s,this.resizableTop=l}},e.prototype.onResizeStart=function(i,n){if(!(!this.resizable||!this.window)){var r=0,o=0;if(i.nativeEvent&&h0(i.nativeEvent)){if(r=i.nativeEvent.clientX,o=i.nativeEvent.clientY,i.nativeEvent.which===3)return}else i.nativeEvent&&Ji(i.nativeEvent)&&(r=i.nativeEvent.touches[0].clientX,o=i.nativeEvent.touches[0].clientY);if(this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(i,n,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height!="undefined"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width!="undefined"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var l,h=this.window.getComputedStyle(this.resizable);if(h.flexBasis!=="auto"){var u=this.parentNode;if(u){var p=this.window.getComputedStyle(u).flexDirection;this.flexDir=p.startsWith("row")?"row":"column",l=h.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var y={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Be(Be({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(i.target).cursor||"auto"}),direction:n,flexBasis:l};this.setState(y)}},e.prototype.onMouseMove=function(i){if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Ji(i))try{i.preventDefault(),i.stopPropagation()}catch(Te){}var n=this.props,r=n.maxWidth,o=n.maxHeight,s=n.minWidth,l=n.minHeight,h=Ji(i)?i.touches[0].clientX:i.clientX,u=Ji(i)?i.touches[0].clientY:i.clientY,p=this.state,y=p.direction,c=p.original,m=p.width,f=p.height,b=this.getParentSize(),v=p0(b,this.window.innerWidth,this.window.innerHeight,r,o,s,l);r=v.maxWidth,o=v.maxHeight,s=v.minWidth,l=v.minHeight;var C=this.calculateNewSizeFromDirection(h,u),S=C.newHeight,w=C.newWidth,k=this.calculateNewMaxFromBoundary(r,o),P=this.calculateNewSizeFromAspectRatio(w,S,{width:k.maxWidth,height:k.maxHeight},{width:s,height:l});if(w=P.newWidth,S=P.newHeight,this.props.grid){var T=$a(w,this.props.grid[0]),L=$a(S,this.props.grid[1]),q=this.props.snapGap||0;w=q===0||Math.abs(T-w)<=q?T:w,S=q===0||Math.abs(L-S)<=q?L:S}this.props.snap&&this.props.snap.x&&(w=Ra(w,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(S=Ra(S,this.props.snap.y,this.props.snapGap));var ne={width:w-c.width,height:S-c.height};if(m&&typeof m=="string"){if(re(m,"%")){var K=w/b.width*100;w=K+"%"}else if(re(m,"vw")){var ue=w/this.window.innerWidth*100;w=ue+"vw"}else if(re(m,"vh")){var $=w/this.window.innerHeight*100;w=$+"vh"}}if(f&&typeof f=="string"){if(re(f,"%")){var K=S/b.height*100;S=K+"%"}else if(re(f,"vw")){var ue=S/this.window.innerWidth*100;S=ue+"vw"}else if(re(f,"vh")){var $=S/this.window.innerHeight*100;S=$+"vh"}}var Y={width:this.createSizeForCssProperty(w,"width"),height:this.createSizeForCssProperty(S,"height")};this.flexDir==="row"?Y.flexBasis=Y.width:this.flexDir==="column"&&(Y.flexBasis=Y.height),this.setState(Y),this.props.onResize&&this.props.onResize(i,y,this.resizable,ne)}},e.prototype.onMouseUp=function(i){var n=this.state,r=n.isResizing,o=n.direction,s=n.original;if(!(!r||!this.resizable)){var l={width:this.size.width-s.width,height:this.size.height-s.height};this.props.onResizeStop&&this.props.onResizeStop(i,o,this.resizable,l),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Be(Be({},this.state.backgroundStyle),{cursor:"auto"})})}},e.prototype.updateSize=function(i){this.setState({width:i.width,height:i.height})},e.prototype.renderResizer=function(){var i=this,n=this.props,r=n.enable,o=n.handleStyles,s=n.handleClasses,l=n.handleWrapperStyle,h=n.handleWrapperClass,u=n.handleComponent;if(!r)return null;var p=Object.keys(r).map(function(y){return r[y]!==!1?ee.createElement(i0,{key:y,direction:y,onResizeStart:i.onResizeStart,replaceStyles:o&&o[y],className:s&&s[y]},u&&u[y]?u[y]:null):null});return ee.createElement("span",{className:h,style:l},p)},e.prototype.render=function(){var i=this,n=Object.keys(this.props).reduce(function(s,l){return m0.indexOf(l)!==-1||(s[l]=i.props[l]),s},{}),r=Be(Be(Be({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return ee.createElement(o,Be({ref:this.ref,style:r,className:this.props.className},n),this.state.isResizing&&ee.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},e.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},e}(ee.PureComponent);const tl=({children:t})=>{const{size:e,setSize:i}=Ya();return d.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",boxSizing:"border-box",overflow:"auto",padding:80},className:un.css`
268
+ `,children:[d.jsx(F.Button,{style:{color:"white"},href:e.getRouteUrl("/admin"),children:t("Back")}),d.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o?d.jsx(g.DesignableSwitch,{}):null,d.jsx(F.Button,{onClick:()=>{i({width:768,height:667})},"data-testid":"desktop-mode-size-pad",icon:d.jsx(R1,{})}),d.jsx(F.Button,{onClick:()=>{i({width:375,height:667})},"data-testid":"desktop-mode-size-mobile",icon:d.jsx(e0,{})}),d.jsx(F.Popover,{trigger:"hover",open:n,onOpenChange:s,content:n?d.jsx(F.QRCode,{value:window.location.href,bordered:!1}):" ",children:d.jsx(F.Button,{icon:d.jsx(Lr.QrcodeOutlined,{style:{fontSize:"24px",cursor:"pointer"},"data-testid":"desktop-mode-qrcode"})})})]})]})};var t0=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},t(e,i)};return function(e,i){t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),Gi=function(){return Gi=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Gi.apply(this,arguments)},i0={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},n0=function(t){t0(e,t);function e(){var i=t!==null&&t.apply(this,arguments)||this;return i.onMouseDown=function(n){i.props.onResizeStart(n,i.props.direction)},i.onTouchStart=function(n){i.props.onResizeStart(n,i.props.direction)},i}return e.prototype.render=function(){return ee.createElement("div",{className:this.props.className||"",style:Gi(Gi({position:"absolute",userSelect:"none"},i0[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},e}(ee.PureComponent),Er={exports:{}};function r0(t,e){var i=e&&e.cache?e.cache:d0,n=e&&e.serializer?e.serializer:c0,r=e&&e.strategy?e.strategy:s0;return r(t,{cache:i,serializer:n})}function o0(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Xa(t,e,i,n){var r=o0(n)?n:i(n),o=e.get(r);return typeof o=="undefined"&&(o=t.call(this,n),e.set(r,o)),o}function Ja(t,e,i){var n=Array.prototype.slice.call(arguments,3),r=i(n),o=e.get(r);return typeof o=="undefined"&&(o=t.apply(this,n),e.set(r,o)),o}function Cr(t,e,i,n,r){return i.bind(e,t,n,r)}function s0(t,e){var i=t.length===1?Xa:Ja;return Cr(t,this,i,e.cache.create(),e.serializer)}function a0(t,e){var i=Ja;return Cr(t,this,i,e.cache.create(),e.serializer)}function l0(t,e){var i=Xa;return Cr(t,this,i,e.cache.create(),e.serializer)}function c0(){return JSON.stringify(arguments)}function Yi(){this.cache=Object.create(null)}Yi.prototype.has=function(t){return t in this.cache},Yi.prototype.get=function(t){return this.cache[t]},Yi.prototype.set=function(t,e){this.cache[t]=e};var d0={create:function(){return new Yi}};Er.exports=r0,Er.exports.strategies={variadic:a0,monadic:l0};var u0=Er.exports;const ot=jr(u0);var f0=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},t(e,i)};return function(e,i){t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),Be=function(){return Be=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Be.apply(this,arguments)},h0={width:"auto",height:"auto"},Qi=ot(function(t,e,i){return Math.max(Math.min(t,i),e)}),$a=ot(function(t,e){return Math.round(t/e)*e}),Xi=ot(function(t,e){return new RegExp(t,"i").test(e)}),Ji=function(t){return!!(t.touches&&t.touches.length)},p0=function(t){return!!((t.clientX||t.clientX===0)&&(t.clientY||t.clientY===0))},Ra=ot(function(t,e,i){i===void 0&&(i=0);var n=e.reduce(function(o,s,l){return Math.abs(s-t)<Math.abs(e[o]-t)?l:o},0),r=Math.abs(e[n]-t);return i===0||r<i?e[n]:t}),re=ot(function(t,e){return t.substr(t.length-e.length,e.length)===e}),Pr=ot(function(t){return t=t.toString(),t==="auto"||re(t,"px")||re(t,"%")||re(t,"vh")||re(t,"vw")||re(t,"vmax")||re(t,"vmin")?t:t+"px"}),$i=function(t,e,i,n){if(t&&typeof t=="string"){if(re(t,"%")){var r=Number(t.replace("%",""))/100;return e*r}else if(re(t,"vw")){var r=Number(t.replace("vw",""))/100;return i*r}else if(re(t,"vh")){var r=Number(t.replace("vh",""))/100;return n*r}}return t},m0=ot(function(t,e,i,n,r,o,s){return n=$i(n,t.width,e,i),r=$i(r,t.height,e,i),o=$i(o,t.width,e,i),s=$i(s,t.height,e,i),{maxWidth:typeof n=="undefined"?void 0:Number(n),maxHeight:typeof r=="undefined"?void 0:Number(r),minWidth:typeof o=="undefined"?void 0:Number(o),minHeight:typeof s=="undefined"?void 0:Number(s)}}),b0=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],el="__resizable_base__",g0=function(t){f0(e,t);function e(i){var n=t.call(this,i)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var r=n.parentNode;if(!r)return null;var o=n.window.document.createElement("div");return o.style.width="100%",o.style.height="100%",o.style.position="absolute",o.style.transform="scale(0, 0)",o.style.left="0",o.style.flex="0",o.classList?o.classList.add(el):o.className+=el,r.appendChild(o),o},n.removeBase=function(r){var o=n.parentNode;o&&o.removeChild(r)},n.ref=function(r){r&&(n.resizable=r)},n.state={isResizing:!1,width:typeof(n.propsSize&&n.propsSize.width)=="undefined"?"auto":n.propsSize&&n.propsSize.width,height:typeof(n.propsSize&&n.propsSize.height)=="undefined"?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||h0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){var i=0,n=0;if(this.resizable&&this.window){var r=this.resizable.offsetWidth,o=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),i=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:r,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:o,this.resizable.style.position=s}return{width:i,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeStyle",{get:function(){var i=this,n=this.props.size,r=function(l){if(typeof i.state[l]=="undefined"||i.state[l]==="auto")return"auto";if(i.propsSize&&i.propsSize[l]&&re(i.propsSize[l].toString(),"%")){if(re(i.state[l].toString(),"%"))return i.state[l].toString();var h=i.getParentSize(),u=Number(i.state[l].toString().replace("px","")),p=u/h[l]*100;return p+"%"}return Pr(i.state[l])},o=n&&typeof n.width!="undefined"&&!this.state.isResizing?Pr(n.width):r("width"),s=n&&typeof n.height!="undefined"&&!this.state.isResizing?Pr(n.height):r("height");return{width:o,height:s}},enumerable:!1,configurable:!0}),e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var i=this.appendBase();if(!i)return{width:0,height:0};var n=!1,r=this.parentNode.style.flexWrap;r!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),i.style.position="relative",i.style.minWidth="100%";var o={width:i.offsetWidth,height:i.offsetHeight};return n&&(this.parentNode.style.flexWrap=r),this.removeBase(i),o},e.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},e.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},e.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var i=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:i.flexBasis!=="auto"?i.flexBasis:void 0})}},e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},e.prototype.createSizeForCssProperty=function(i,n){var r=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===i&&(typeof r=="undefined"||r==="auto")?"auto":i},e.prototype.calculateNewMaxFromBoundary=function(i,n){if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var o=r.offsetWidth+(this.parentLeft-this.resizableLeft),s=r.offsetHeight+(this.parentTop-this.resizableTop);i=i&&i<o?i:o,n=n&&n<s?n:s}}else if(this.props.bounds==="window"){if(this.window){var o=this.window.innerWidth-this.resizableLeft,s=this.window.innerHeight-this.resizableTop;i=i&&i<o?i:o,n=n&&n<s?n:s}}else if(this.props.bounds){var o=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),s=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);i=i&&i<o?i:o,n=n&&n<s?n:s}return{maxWidth:i,maxHeight:n}},e.prototype.calculateNewSizeFromDirection=function(i,n){var r=this.props.scale||1,o=this.props.resizeRatio||1,s=this.state,l=s.direction,h=s.original,u=this.props,p=u.lockAspectRatio,y=u.lockAspectRatioExtraHeight,c=u.lockAspectRatioExtraWidth,m=h.width,f=h.height,b=y||0,v=c||0;return Xi("right",l)&&(m=h.width+(i-h.x)*o/r,p&&(f=(m-v)/this.ratio+b)),Xi("left",l)&&(m=h.width-(i-h.x)*o/r,p&&(f=(m-v)/this.ratio+b)),Xi("bottom",l)&&(f=h.height+(n-h.y)*o/r,p&&(m=(f-b)*this.ratio+v)),Xi("top",l)&&(f=h.height-(n-h.y)*o/r,p&&(m=(f-b)*this.ratio+v)),{newWidth:m,newHeight:f}},e.prototype.calculateNewSizeFromAspectRatio=function(i,n,r,o){var s=this.props,l=s.lockAspectRatio,h=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,p=typeof o.width=="undefined"?10:o.width,y=typeof r.width=="undefined"||r.width<0?i:r.width,c=typeof o.height=="undefined"?10:o.height,m=typeof r.height=="undefined"||r.height<0?n:r.height,f=h||0,b=u||0;if(l){var v=(c-f)*this.ratio+b,C=(m-f)*this.ratio+b,S=(p-b)/this.ratio+f,w=(y-b)/this.ratio+f,k=Math.max(p,v),P=Math.min(y,C),T=Math.max(c,S),L=Math.min(m,w);i=Qi(i,k,P),n=Qi(n,T,L)}else i=Qi(i,p,y),n=Qi(n,c,m);return{newWidth:i,newHeight:n}},e.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var i=this.parentNode;if(i){var n=i.getBoundingClientRect();this.parentLeft=n.left,this.parentTop=n.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left,this.targetTop=r.top}if(this.resizable){var o=this.resizable.getBoundingClientRect(),s=o.left,l=o.top;this.resizableLeft=s,this.resizableTop=l}},e.prototype.onResizeStart=function(i,n){if(!(!this.resizable||!this.window)){var r=0,o=0;if(i.nativeEvent&&p0(i.nativeEvent)){if(r=i.nativeEvent.clientX,o=i.nativeEvent.clientY,i.nativeEvent.which===3)return}else i.nativeEvent&&Ji(i.nativeEvent)&&(r=i.nativeEvent.touches[0].clientX,o=i.nativeEvent.touches[0].clientY);if(this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(i,n,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height!="undefined"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width!="undefined"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var l,h=this.window.getComputedStyle(this.resizable);if(h.flexBasis!=="auto"){var u=this.parentNode;if(u){var p=this.window.getComputedStyle(u).flexDirection;this.flexDir=p.startsWith("row")?"row":"column",l=h.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var y={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Be(Be({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(i.target).cursor||"auto"}),direction:n,flexBasis:l};this.setState(y)}},e.prototype.onMouseMove=function(i){if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Ji(i))try{i.preventDefault(),i.stopPropagation()}catch(Te){}var n=this.props,r=n.maxWidth,o=n.maxHeight,s=n.minWidth,l=n.minHeight,h=Ji(i)?i.touches[0].clientX:i.clientX,u=Ji(i)?i.touches[0].clientY:i.clientY,p=this.state,y=p.direction,c=p.original,m=p.width,f=p.height,b=this.getParentSize(),v=m0(b,this.window.innerWidth,this.window.innerHeight,r,o,s,l);r=v.maxWidth,o=v.maxHeight,s=v.minWidth,l=v.minHeight;var C=this.calculateNewSizeFromDirection(h,u),S=C.newHeight,w=C.newWidth,k=this.calculateNewMaxFromBoundary(r,o),P=this.calculateNewSizeFromAspectRatio(w,S,{width:k.maxWidth,height:k.maxHeight},{width:s,height:l});if(w=P.newWidth,S=P.newHeight,this.props.grid){var T=$a(w,this.props.grid[0]),L=$a(S,this.props.grid[1]),q=this.props.snapGap||0;w=q===0||Math.abs(T-w)<=q?T:w,S=q===0||Math.abs(L-S)<=q?L:S}this.props.snap&&this.props.snap.x&&(w=Ra(w,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(S=Ra(S,this.props.snap.y,this.props.snapGap));var ne={width:w-c.width,height:S-c.height};if(m&&typeof m=="string"){if(re(m,"%")){var K=w/b.width*100;w=K+"%"}else if(re(m,"vw")){var ue=w/this.window.innerWidth*100;w=ue+"vw"}else if(re(m,"vh")){var $=w/this.window.innerHeight*100;w=$+"vh"}}if(f&&typeof f=="string"){if(re(f,"%")){var K=S/b.height*100;S=K+"%"}else if(re(f,"vw")){var ue=S/this.window.innerWidth*100;S=ue+"vw"}else if(re(f,"vh")){var $=S/this.window.innerHeight*100;S=$+"vh"}}var Y={width:this.createSizeForCssProperty(w,"width"),height:this.createSizeForCssProperty(S,"height")};this.flexDir==="row"?Y.flexBasis=Y.width:this.flexDir==="column"&&(Y.flexBasis=Y.height),this.setState(Y),this.props.onResize&&this.props.onResize(i,y,this.resizable,ne)}},e.prototype.onMouseUp=function(i){var n=this.state,r=n.isResizing,o=n.direction,s=n.original;if(!(!r||!this.resizable)){var l={width:this.size.width-s.width,height:this.size.height-s.height};this.props.onResizeStop&&this.props.onResizeStop(i,o,this.resizable,l),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Be(Be({},this.state.backgroundStyle),{cursor:"auto"})})}},e.prototype.updateSize=function(i){this.setState({width:i.width,height:i.height})},e.prototype.renderResizer=function(){var i=this,n=this.props,r=n.enable,o=n.handleStyles,s=n.handleClasses,l=n.handleWrapperStyle,h=n.handleWrapperClass,u=n.handleComponent;if(!r)return null;var p=Object.keys(r).map(function(y){return r[y]!==!1?ee.createElement(n0,{key:y,direction:y,onResizeStart:i.onResizeStart,replaceStyles:o&&o[y],className:s&&s[y]},u&&u[y]?u[y]:null):null});return ee.createElement("span",{className:h,style:l},p)},e.prototype.render=function(){var i=this,n=Object.keys(this.props).reduce(function(s,l){return b0.indexOf(l)!==-1||(s[l]=i.props[l]),s},{}),r=Be(Be(Be({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return ee.createElement(o,Be({ref:this.ref,style:r,className:this.props.className},n),this.state.isResizing&&ee.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},e.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},e}(ee.PureComponent);const tl=({children:t})=>{const{size:e,setSize:i}=Ya();return d.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",boxSizing:"border-box",overflow:"auto",padding:80},className:un.css`
269
269
  .adm-error-block-full-page {
270
270
  padding-top: 100px;
271
271
  }
272
- `,children:d.jsx(b0,{style:{boxShadow:"0 0 15px rgba(0, 0, 0, 0.3)"},"data-testid":"desktop-mode-resizable",size:{width:e.width,height:e.height},onResizeStop:(n,r,o,s)=>{i({width:e.width+s.width,height:e.height+s.height})},children:t})})},il=({children:t})=>Wo?d.jsx(Q1,{children:d.jsxs(F.Layout,{style:{height:"100%",background:Ga},children:[d.jsx(F.Layout.Header,{style:{height:46},children:d.jsx(Qa,{})}),d.jsx(F.Layout.Content,{children:d.jsx(tl,{children:t})})]})}):d.jsx(d.Fragment,{children:t}),Ri=a.createContext(void 0);Ri.displayName="MobileAppContext";const nl=({children:t})=>{var o,s;const e=g.usePlugin(rn),[i,n]=a.useState((s=(o=e.getPluginOptions())==null?void 0:o.showTabBar)!=null?s:!0),r=l=>{n(l),e.updateOptions({showTabBar:l})};return d.jsx(Ri.Provider,{value:{showTabBar:i,setShowTabBar:r},children:t})},en=()=>a.useContext(Ri),g0=g.createStyles(({token:t,css:e})=>({nbMobile:e`
272
+ `,children:d.jsx(g0,{style:{boxShadow:"0 0 15px rgba(0, 0, 0, 0.3)"},"data-testid":"desktop-mode-resizable",size:{width:e.width,height:e.height},onResizeStop:(n,r,o,s)=>{i({width:e.width+s.width,height:e.height+s.height})},children:t})})},il=({children:t})=>qo?d.jsx(X1,{children:d.jsxs(F.Layout,{style:{height:"100%",background:Ga},children:[d.jsx(F.Layout.Header,{style:{height:46},children:d.jsx(Qa,{})}),d.jsx(F.Layout.Content,{children:d.jsx(tl,{children:t})})]})}):d.jsx(d.Fragment,{children:t}),Ri=a.createContext(void 0);Ri.displayName="MobileAppContext";const nl=({children:t})=>{var o,s;const e=g.usePlugin(rn),[i,n]=a.useState((s=(o=e.getPluginOptions())==null?void 0:o.showTabBar)!=null?s:!0),r=l=>{n(l),e.updateOptions({showTabBar:l})};return d.jsx(Ri.Provider,{value:{showTabBar:i,setShowTabBar:r},children:t})},en=()=>a.useContext(Ri),v0=g.createStyles(({token:t,css:e})=>({nbMobile:e`
273
273
  -webkit-overflow-scrolling: touch;
274
274
  display: initial;
275
275
 
@@ -334,7 +334,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
334
334
  width: 100% !important;
335
335
  max-width: 100% !important;
336
336
  }
337
- `})),rl=()=>{var s,l;m1(),g1(),E1();const{styles:t}=g0(),e=g.usePlugin(rn),i=e.getRouterComponent(),n=(l=(s=e==null?void 0:e.options)==null?void 0:s.config)!=null&&l.skipLogin?a.Fragment:g.AdminProvider;a.useEffect(()=>{if(!Wo){let h=document.querySelector('meta[name="viewport"]');h||(h=document.createElement("meta"),h.setAttribute("name","viewport"),document.head.appendChild(h)),h.setAttribute("content","width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"),document.body.style.backgroundColor=Ga,document.body.style.overflow="hidden";const u=document.createElement("div");document.body.appendChild(u),document.body.removeChild(u)}},[]);const r=e.desktopMode===!1?a.Fragment:il,o=a.useMemo(()=>({PopoverNester:h=>{const{getDefaultComponent:u}=g.useAssociationFieldModeContext(),p=u(g.AssociationFieldMode.PopoverNester);return d.jsx(S1,R(B({},h),{OriginComponent:p}))}}),[]);return d.jsx(n,{children:d.jsx(r,{children:d.jsx(g.GlobalThemeProvider,{theme:{token:{marginBlock:18,borderRadiusBlock:0,boxShadowTertiary:"none"}},children:d.jsx(g.AntdAppProvider,{className:`mobile-container ${t.nbMobile}`,children:d.jsx(g.OpenModeProvider,{defaultOpenMode:"page",isMobile:!0,hideOpenMode:!0,openModeToComponent:{page:H1,drawer:lr,modal:g.Action.Modal},children:d.jsx(g.BlockTemplateProvider,{componentNamePrefix:"mobile-",children:d.jsx(nl,{children:d.jsx(G1,{children:d.jsx(g.AssociationFieldModeProvider,{modeToComponent:o,children:d.jsx(g.zIndexContext.Provider,{value:100,children:d.jsx(i,{})})})})})})})})})})})},v0=lt.createStyles(()=>({mobileTabBar:{position:"absolute",bottom:0,left:0,right:0,height:Y1,boxSizing:"border-box",borderTop:"1px solid var(--adm-color-border)",backgroundColor:"var(--adm-color-background)"},mobileTabBarContent:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1em",height:"100%"},mobileTabBarList:{display:"flex",justifyContent:"space-around",flex:1,alignItems:"center",overflowX:"auto",".adm-tab-bar-item":{maxWidth:"100%",".adm-tab-bar-item-title":{maxWidth:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},"&>div":{flex:1,display:"flex",justifyContent:"center",alignItems:"center"},".ant-btn-icon":{marginInlineEnd:"0 !important"}}}));function ol(t){return t?t.startsWith("/")&&!t.startsWith("//"):!1}function y0(t,e){const{icon:i,selectedIcon:n}=t,r=e&&n?n:i;if(r)return typeof r=="string"?d.jsx(g.Icon,{type:r}):i}const tn=t=>{const{title:e,onClick:i,selected:n,badge:r}=t,o=y0(t,n);return d.jsxs("div",{onClick:i,"data-testid":`mobile-tab-bar-${e}`,className:te("adm-tab-bar-item",{"adm-tab-bar-item-active":n}),style:{lineHeight:1},children:[d.jsx(jf,{content:r,children:d.jsx("span",{className:"adm-tab-bar-item-icon",children:o})}),d.jsx("span",{className:te("adm-tab-bar-item-title",{"adm-tab-bar-item-title-with-icon":o}),children:e})]})};function sl(){const{refresh:t,resource:e}=ce(),i=D.useFieldSchema(),{t:n}=de(),{message:r}=F.App.useApp();return o=>Q(this,null,function*(){if(!o.title||o.title.trim()==="")return r.error(n("Title field is required")),Promise.reject(new Error(n("Title field is required")));if(!o.icon)return r.error(n("Icon field is required")),Promise.reject(new Error(n("Icon field is required")));const s=i.toJSON(),l=Number(s.name),h=s["x-component-props"].title,u=s["x-component-props"].icon,p=Ue.omit(s["x-component-props"],"title","icon");yield e.update({filterByTk:l,values:{title:h,icon:u,options:p}}),t()})}const nn=(t={})=>({title:{title:Z("Title"),type:"string",default:t.title,"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{title:Z("Icon"),type:"string",default:t.icon,"x-decorator":"FormItem","x-component":"IconPicker",required:!0}}),Pr=t=>g.createModalSettingsItem({title:Z("Edit button"),name:"tabBarItem",parentSchemaKey:"x-component-props",schema:e=>({type:"object",title:"Edit button",properties:B(B({},nn(e)),t?t(e):{})}),useSubmit:sl}),Mr=g.createTextSettingsItem({name:"remove",title:Z("Delete"),useTextClick:()=>{const t=D.useFieldSchema(),e=Number(t.toJSON().name),{refresh:i,resource:n,routeList:r,api:o}=ce(),s=V.useNavigate(),{t:l}=de(),{modal:h,message:u}=F.App.useApp();return()=>Q(this,null,function*(){h.confirm({title:l("Delete action"),content:l("Are you sure you want to delete it?"),onOk:()=>Q(this,null,function*(){yield n.destroy({filterByTk:e}),yield n.destroy({filter:{parentId:e}});const p=r.find(y=>y.id===e);yield o.request({url:`/uiSchemas:remove/${p.schemaUid}`,method:"delete"}),yield i(),s("/"),u.success({content:"Delete successfully"})})})})}});function al(t){return{name:t.id,type:"void","x-decorator":"BlockItem","x-settings":`mobile:tab-bar:${t.type}`,"x-component":`MobileTabBar.${Ue.upperFirst(t.type)}`,"x-toolbar-props":{showBorder:!1,showBackground:!0},"x-component-props":B({title:t.title,icon:t.icon,schemaUid:t.schemaUid},t.options||{})}}const ll=t=>{const e=V.useLocation(),{onClick:i}=g.useLinkActionProps(t),n=e.pathname===t.url;return d.jsx(tn,R(B({},t),{onClick:i,selected:n}))},w0=()=>{const t=D.useFieldSchema(),{t:e}=Je.useTranslation(),{urlSchema:i,paramsSchema:n,openInNewWindowSchema:r}=g.useURLAndHTMLSchema(),{resource:o,refresh:s}=ce(),l=t["x-component-props"]||{},h={url:l.url,params:l.params||[{}],openInNewWindow:l.openInNewWindow};return d.jsx(g.SchemaSettingsModalItem,{title:e("Edit link"),components:{ArrayItems:Al.ArrayItems},schema:{type:"object",title:e("Edit link"),properties:{url:R(B({},i),{required:!0}),params:n,openInNewWindow:r}},onSubmit:c=>Q(this,[c],function*({url:u,params:p,openInNewWindow:y}){const m=t.toJSON(),f=Number(m.name);yield o.update({filterByTk:f,values:{options:R(B({},m["x-component-props"]),{url:u,params:p,openInNewWindow:y})}}),s()}),initialValues:h})},cl=new g.SchemaSettings({name:"mobile:tab-bar:link",items:[Pr(),{name:"editLink",Component:w0},{name:"divider",type:"divider"},Mr]}),dl={name:"link",type:"actionModal",useComponentProps(){const{resource:t,refresh:e}=ce(),{t:i}=de(),{message:n}=F.App.useApp();return{isItem:!0,title:Z("Add link"),buttonText:Z("Link"),schema:nn(),onSubmit(o){return Q(this,null,function*(){if(!o.title||o.title.trim()==="")return n.error(i("Title field is required")),Promise.reject(new Error(i("Title field is required")));if(!o.icon)return n.error(i("Icon field is required")),Promise.reject(new Error(i("Icon field is required")));yield t.create({values:{type:"link",title:o.title,icon:o.icon}}),yield e()})}}}},ul=t=>{const h=t,{schemaUid:e}=h,i=Rt(h,["schemaUid"]),n=V.useNavigate(),r=V.useLocation(),o=a.useMemo(()=>`/page/${e}`,[e]),s=a.useCallback(()=>{n(o)},[o,n]),l=r.pathname.startsWith(o);return d.jsx(tn,R(B({},i),{onClick:s,selected:l}))},fl=new g.SchemaSettings({name:"mobile:tab-bar:page",items:[Pr(),{name:"divider",type:"divider"},Mr]}),hl=()=>{var n;const{routeList:t}=ce(),e=t.find(r=>{var o;return r.schemaUid||ol((o=r.options)==null?void 0:o.url)});if(!e)return null;const i=((n=e==null?void 0:e.options)==null?void 0:n.url)||`/${e.type}/${e.schemaUid}`;return i?d.jsx(V.Navigate,{to:i,replace:!0}):null},pl=()=>{const t=V.useNavigate(),{t:e}=de();return d.jsx(F.Result,{status:"404",title:"404",subTitle:e("Sorry, the page you visited does not exist."),extra:d.jsx(Ii,{onClick:()=>t("/",{replace:!0}),color:"primary",fill:"solid",children:e("Back Home")})})},ml={name:"schema",type:"actionModal",useComponentProps(){const{resource:t,refresh:e,schemaResource:i}=ce(),n=V.useNavigate(),{t:r}=de(),{message:o}=F.App.useApp();return{isItem:!0,title:Z("Add page"),buttonText:Z("Page"),schema:nn(),onSubmit(l){return Q(this,null,function*(){if(!l.title||l.title.trim()==="")return o.error(r("Title field is required")),Promise.reject(new Error(r("Title field is required")));if(!l.icon)return o.error(r("Icon field is required")),Promise.reject(new Error(r("Icon field is required")));const h=ei.uid(),u=ei.uid(),p=`/page/${h}`,{data:y}=yield t.create({values:{type:"page",schemaUid:h,title:l.title,icon:l.icon}});yield i.insertAdjacent({resourceIndex:"mobile",position:"beforeEnd",values:Ka(h,u)});const c=y.data.id;yield t.create({values:{type:"tabs",parentId:c,title:"Unnamed",schemaUid:u}}),yield e(),n(p)})}}}},Tr=new g.SchemaInitializer({name:"mobile:tab-bar",icon:"PlusOutlined",style:{marginRight:12},items:[ml,dl]}),bl=()=>{const{render:t}=g.useSchemaInitializerRender(Tr.name);return t({"data-testid":"schema-initializer-MobileTabBar"})},St=({enableTabBar:t=!0})=>{const{styles:e}=v0(),{designable:i}=g.useDesignable(),{routeList:n,activeTabBarItem:r,resource:o,refresh:s}=ce(),l=n.filter(u=>{var p;return u.schemaUid||ol((p=u.options)==null?void 0:p.url)}),h=a.useCallback(u=>Q(this,null,function*(){const{active:p,over:y}=u,c=p==null?void 0:p.id,m=y==null?void 0:y.id;if(!c||!m||c===m)return;const f=Number(c.replace("nocobase-mobile.tabBar.","")),b=Number(m.replace("nocobase-mobile.tabBar.",""));yield o.move({sourceId:f,targetId:b,sortField:"sort"}),yield s()}),[o,s]);return!t||!r&&l.length>0?null:d.jsxs("div",{className:g.cx(e.mobileTabBar,"mobile-tab-bar"),"data-testid":"mobile-tab-bar",children:[d.jsxs("div",{className:e.mobileTabBarContent,children:[d.jsx(g.DndContext,{onDragEnd:h,children:d.jsx("div",{className:g.cx(e.mobileTabBarList,g.css({maxWidth:i?"calc(100% - 58px)":"100%"})),children:n.map(u=>d.jsx(g.SchemaComponent,{schema:al(u)},u.id))})}),d.jsx(bl,{})]}),d.jsx(va,{position:"bottom"})]})};St.Item=tn,St.Link=ll,St.Page=ul;const gl=()=>{const{showTabBar:t}=en();return d.jsxs(Ta,{children:[d.jsx(V.Outlet,{}),d.jsx(St,{enableTabBar:t})]})},x0=un.css`
337
+ `})),rl=()=>{var s,l;b1(),v1(),C1();const{styles:t}=v0(),e=g.usePlugin(rn),i=e.getRouterComponent(),n=(l=(s=e==null?void 0:e.options)==null?void 0:s.config)!=null&&l.skipLogin?a.Fragment:g.AdminProvider;a.useEffect(()=>{if(!qo){let h=document.querySelector('meta[name="viewport"]');h||(h=document.createElement("meta"),h.setAttribute("name","viewport"),document.head.appendChild(h)),h.setAttribute("content","width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"),document.body.style.backgroundColor=Ga,document.body.style.overflow="hidden";const u=document.createElement("div");document.body.appendChild(u),document.body.removeChild(u)}},[]);const r=e.desktopMode===!1?a.Fragment:il,o=a.useMemo(()=>({PopoverNester:h=>{const{getDefaultComponent:u}=g.useAssociationFieldModeContext(),p=u(g.AssociationFieldMode.PopoverNester);return d.jsx(k1,R(B({},h),{OriginComponent:p}))}}),[]);return d.jsx(n,{children:d.jsx(r,{children:d.jsx(g.GlobalThemeProvider,{theme:{token:{marginBlock:18,borderRadiusBlock:0,boxShadowTertiary:"none"}},children:d.jsx(g.AntdAppProvider,{className:`mobile-container ${t.nbMobile}`,children:d.jsx(g.OpenModeProvider,{defaultOpenMode:"page",isMobile:!0,hideOpenMode:!0,openModeToComponent:{page:K1,drawer:lr,modal:g.Action.Modal},children:d.jsx(g.BlockTemplateProvider,{componentNamePrefix:"mobile-",children:d.jsx(nl,{children:d.jsx(Y1,{children:d.jsx(g.AssociationFieldModeProvider,{modeToComponent:o,children:d.jsx(g.zIndexContext.Provider,{value:100,children:d.jsx(i,{})})})})})})})})})})})},y0=lt.createStyles(()=>({mobileTabBar:{position:"absolute",bottom:0,left:0,right:0,height:Q1,boxSizing:"border-box",borderTop:"1px solid var(--adm-color-border)",backgroundColor:"var(--adm-color-background)"},mobileTabBarContent:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1em",height:"100%"},mobileTabBarList:{display:"flex",justifyContent:"space-around",flex:1,alignItems:"center",overflowX:"auto",".adm-tab-bar-item":{maxWidth:"100%",".adm-tab-bar-item-title":{maxWidth:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},"&>div":{flex:1,display:"flex",justifyContent:"center",alignItems:"center"},".ant-btn-icon":{marginInlineEnd:"0 !important"}}}));function ol(t){return t?t.startsWith("/")&&!t.startsWith("//"):!1}function w0(t,e){const{icon:i,selectedIcon:n}=t,r=e&&n?n:i;if(r)return typeof r=="string"?d.jsx(g.Icon,{type:r}):i}const tn=t=>{const{title:e,onClick:i,selected:n,badge:r}=t,o=w0(t,n);return d.jsxs("div",{onClick:i,"data-testid":`mobile-tab-bar-${e}`,className:te("adm-tab-bar-item",{"adm-tab-bar-item-active":n}),style:{lineHeight:1},children:[d.jsx(Uf,{content:r,style:{"--top":"5px"},children:d.jsx("span",{className:"adm-tab-bar-item-icon",children:o})}),d.jsx("span",{className:te("adm-tab-bar-item-title",{"adm-tab-bar-item-title-with-icon":o}),children:e})]})};function sl(){const{refresh:t,resource:e}=ce(),i=D.useFieldSchema(),{t:n}=de(),{message:r}=F.App.useApp();return o=>Q(this,null,function*(){if(!o.title||o.title.trim()==="")return r.error(n("Title field is required")),Promise.reject(new Error(n("Title field is required")));if(!o.icon)return r.error(n("Icon field is required")),Promise.reject(new Error(n("Icon field is required")));const s=i.toJSON(),l=Number(s.name),h=s["x-component-props"].title,u=s["x-component-props"].icon,p=Ue.omit(s["x-component-props"],"title","icon");yield e.update({filterByTk:l,values:{title:h,icon:u,options:p}}),t()})}const nn=(t={})=>({title:{title:Z("Title"),type:"string",default:t.title,"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{title:Z("Icon"),type:"string",default:t.icon,"x-decorator":"FormItem","x-component":"IconPicker",required:!0}}),Mr=t=>g.createModalSettingsItem({title:Z("Edit button"),name:"tabBarItem",parentSchemaKey:"x-component-props",schema:e=>({type:"object",title:"Edit button",properties:B(B({},nn(e)),t?t(e):{})}),useSubmit:sl}),Tr=g.createTextSettingsItem({name:"remove",title:Z("Delete"),useTextClick:()=>{const t=D.useFieldSchema(),e=Number(t.toJSON().name),{refresh:i,resource:n,routeList:r,api:o}=ce(),s=V.useNavigate(),{t:l}=de(),{modal:h,message:u}=F.App.useApp();return()=>Q(this,null,function*(){h.confirm({title:l("Delete action"),content:l("Are you sure you want to delete it?"),onOk:()=>Q(this,null,function*(){yield n.destroy({filterByTk:e}),yield n.destroy({filter:{parentId:e}});const p=r.find(y=>y.id===e);yield o.request({url:`/uiSchemas:remove/${p.schemaUid}`,method:"delete"}),yield i(),s("/"),u.success({content:"Delete successfully"})})})})}});function al(t){var i,n;const e={name:t.id,type:"void","x-decorator":"BlockItem","x-settings":`mobile:tab-bar:${t.type}`,"x-component":`MobileTabBar.${Ue.upperFirst(t.type)}`,"x-toolbar-props":{showBorder:!1,showBackground:!0},"x-component-props":B({title:t.title,icon:t.icon,schemaUid:t.schemaUid},t.options||{})};return Al.merge(e,(n=(i=t.options)==null?void 0:i.schema)!=null?n:{})}const ll=t=>{const e=V.useLocation(),{onClick:i}=g.useLinkActionProps(t),n=e.pathname===t.url;return d.jsx(tn,R(B({},t),{onClick:i,selected:n}))},x0=()=>{const t=D.useFieldSchema(),{t:e}=Je.useTranslation(),{urlSchema:i,paramsSchema:n,openInNewWindowSchema:r}=g.useURLAndHTMLSchema(),{resource:o,refresh:s}=ce(),l=t["x-component-props"]||{},h={url:l.url,params:l.params||[{}],openInNewWindow:l.openInNewWindow};return d.jsx(g.SchemaSettingsModalItem,{title:e("Edit link"),components:{ArrayItems:Ol.ArrayItems},schema:{type:"object",title:e("Edit link"),properties:{url:R(B({},i),{required:!0}),params:n,openInNewWindow:r}},onSubmit:c=>Q(this,[c],function*({url:u,params:p,openInNewWindow:y}){const m=t.toJSON(),f=Number(m.name);yield o.update({filterByTk:f,values:{options:R(B({},m["x-component-props"]),{url:u,params:p,openInNewWindow:y})}}),s()}),initialValues:h})},cl=new g.SchemaSettings({name:"mobile:tab-bar:link",items:[Mr(),{name:"editLink",Component:x0},{name:"divider",type:"divider"},Tr]}),dl={name:"link",type:"actionModal",useComponentProps(){const{resource:t,refresh:e}=ce(),{t:i}=de(),{message:n}=F.App.useApp();return{isItem:!0,title:Z("Add link"),buttonText:Z("Link"),schema:nn(),onSubmit(o){return Q(this,null,function*(){if(!o.title||o.title.trim()==="")return n.error(i("Title field is required")),Promise.reject(new Error(i("Title field is required")));if(!o.icon)return n.error(i("Icon field is required")),Promise.reject(new Error(i("Icon field is required")));yield t.create({values:{type:"link",title:o.title,icon:o.icon}}),yield e()})}}}},ul=t=>{const h=t,{schemaUid:e}=h,i=Rt(h,["schemaUid"]),n=V.useNavigate(),r=V.useLocation(),o=a.useMemo(()=>e?`/page/${e}`:i.url?`${i.url}`:"/",[e,i.url]),s=a.useCallback(()=>{n(o)},[o,n]),l=r.pathname.startsWith(o);return d.jsx(tn,R(B({},i),{onClick:s,selected:l}))},fl=new g.SchemaSettings({name:"mobile:tab-bar:page",items:[Mr(),{name:"divider",type:"divider"},Tr]}),hl=()=>{var n;const{routeList:t}=ce(),e=t.find(r=>{var o;return r.schemaUid||ol((o=r.options)==null?void 0:o.url)});if(!e)return null;const i=((n=e==null?void 0:e.options)==null?void 0:n.url)||`/${e.type}/${e.schemaUid}`;return i?d.jsx(V.Navigate,{to:i,replace:!0}):null},pl=()=>{const t=V.useNavigate(),{t:e}=de();return d.jsx(F.Result,{status:"404",title:"404",subTitle:e("Sorry, the page you visited does not exist."),extra:d.jsx(Ii,{onClick:()=>t("/",{replace:!0}),color:"primary",fill:"solid",children:e("Back Home")})})},ml={name:"schema",type:"actionModal",useComponentProps(){const{resource:t,refresh:e,schemaResource:i}=ce(),n=V.useNavigate(),{t:r}=de(),{message:o}=F.App.useApp();return{isItem:!0,title:Z("Add page"),buttonText:Z("Page"),schema:nn(),onSubmit(l){return Q(this,null,function*(){if(!l.title||l.title.trim()==="")return o.error(r("Title field is required")),Promise.reject(new Error(r("Title field is required")));if(!l.icon)return o.error(r("Icon field is required")),Promise.reject(new Error(r("Icon field is required")));const h=ei.uid(),u=ei.uid(),p=`/page/${h}`,{data:y}=yield t.create({values:{type:"page",schemaUid:h,title:l.title,icon:l.icon}});yield i.insertAdjacent({resourceIndex:"mobile",position:"beforeEnd",values:Ka(h,u)});const c=y.data.id;yield t.create({values:{type:"tabs",parentId:c,title:"Unnamed",schemaUid:u}}),yield e(),n(p)})}}}},_r=new g.SchemaInitializer({name:"mobile:tab-bar",icon:"PlusOutlined",style:{marginRight:12},items:[ml,dl]}),bl=()=>{const{render:t}=g.useSchemaInitializerRender(_r.name);return t({"data-testid":"schema-initializer-MobileTabBar"})},St=({enableTabBar:t=!0})=>{const{styles:e}=y0(),{designable:i}=g.useDesignable(),{routeList:n,activeTabBarItem:r,resource:o,refresh:s}=ce(),l=n.filter(u=>{var p;return u.schemaUid||ol((p=u.options)==null?void 0:p.url)}),h=a.useCallback(u=>Q(this,null,function*(){const{active:p,over:y}=u,c=p==null?void 0:p.id,m=y==null?void 0:y.id;if(!c||!m||c===m)return;const f=Number(c.replace("nocobase-mobile.tabBar.","")),b=Number(m.replace("nocobase-mobile.tabBar.",""));yield o.move({sourceId:f,targetId:b,sortField:"sort"}),yield s()}),[o,s]);return!t||!r&&l.length>0?null:d.jsxs("div",{className:g.cx(e.mobileTabBar,"mobile-tab-bar"),"data-testid":"mobile-tab-bar",children:[d.jsxs("div",{className:e.mobileTabBarContent,children:[d.jsx(g.DndContext,{onDragEnd:h,children:d.jsx("div",{className:g.cx(e.mobileTabBarList,g.css({maxWidth:i?"calc(100% - 58px)":"100%"})),children:n.map(u=>d.jsx(g.SchemaComponent,{schema:al(u)},u.id))})}),d.jsx(bl,{})]}),d.jsx(ya,{position:"bottom"})]})};St.Item=tn,St.Link=ll,St.Page=ul;const gl=()=>{const{showTabBar:t}=en();return d.jsxs(_a,{children:[d.jsx(V.Outlet,{}),d.jsx(St,{enableTabBar:t})]})},S0=un.css`
338
338
  .ant-table-cell {
339
339
  > .ant-space-horizontal {
340
340
  .ant-space-item-split:has(+ .ant-space-item:empty) {
@@ -342,4 +342,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
342
342
  }
343
343
  }
344
344
  }
345
- `,vl=(t,e)=>t.map(i=>{const n=e(i.title);return i.children?R(B({},i),{title:n,children:vl(i.children,e)}):R(B({},i),{title:n})}),yl=t=>{if(!Array.isArray(t))return[];const e=[];for(const i of t)e.push(i.id),i.hideChildren&&!Ue.isNil(i.firstTabId)&&e.push(i.firstTabId),e.push(...yl(i.children));return e},wl=(t,e)=>Array.isArray(t)?t.map(i=>{var o;const n=wl(i.children,i),r=n.length<=1;return{title:i.title,id:i.id,children:r?null:n,hideChildren:r,firstTabId:(o=n[0])==null?void 0:o.id,parent:e}}):[],S0=({active:t})=>{const{routeList:e}=ce(),i=wl(e),{role:n,setRole:r}=a.useContext(Lr.RolesManagerContext),o=g.useAPIClient(),{t:s}=Je.useTranslation(),l=yl(i),[h,u]=a.useState([]),{loading:p,refresh:y}=g.useRequest({resource:"roles.mobileRoutes",resourceOf:n.name,action:"list",params:{paginate:!1}},{ready:!!n&&t,refreshDeps:[n==null?void 0:n.name],onSuccess(C){var S;u(((S=C==null?void 0:C.data)==null?void 0:S.map(w=>w.id))||[])}}),c=o.resource("roles.mobileRoutes",n.name),m=l.length===h.length,f=(C,S)=>Q(this,null,function*(){if(C){let w=h.filter(P=>P!==S.id);const k=[S.id];S.parent&&S.parent.children.filter(T=>w.includes(T.id)).length===0&&(w=w.filter(T=>T!==S.parent.id),k.push(S.parent.id)),S.children&&(w=w.filter(P=>!S.children.map(T=>T.id).includes(P)),k.push(...S.children.map(P=>P.id))),S.hideChildren&&!Ue.isNil(S.firstTabId)&&(k.push(S.firstTabId),w=w.filter(P=>P!==S.firstTabId)),u(w),yield c.remove({values:k})}else{const w=[...h,S.id],k=[S.id];if(S.parent&&(w.includes(S.parent.id)||(w.push(S.parent.id),k.push(S.parent.id))),S.children){const P=S.children.map(T=>T.id);w.push(...P),k.push(...P)}S.hideChildren&&!Ue.isNil(S.firstTabId)&&(k.push(S.firstTabId),w.push(S.firstTabId)),u(Ue.uniq(w)),yield c.add({values:k})}F.message.success(s("Saved successfully"))}),b=X.useMemoizedFn(C=>Q(this,null,function*(){yield o.resource("roles").update({filterByTk:n.name,values:C.values}),r(B(B({},n),C.values)),F.message.success(s("Saved successfully"))})),v=a.useMemo(()=>Dr.createForm({values:n,effects(){Dr.onFormValuesChange(C=>Q(this,null,function*(){yield b(C)}))}}),[n,b]);return d.jsxs(d.Fragment,{children:[d.jsx(g.SchemaComponent,{schema:{type:"void",name:ei.uid(),"x-component":"FormV2","x-component-props":{form:v},properties:{allowNewMobileMenu:{title:s("Menu permissions"),"x-decorator":"FormItem","x-component":"Checkbox","x-content":s("New menu items are allowed to be accessed by default.")}}}}),d.jsx(F.Table,{className:x0,loading:p,rowKey:"id",pagination:!1,expandable:{defaultExpandAllRows:!0},columns:[{dataIndex:"title",title:s("Menu item title")},{dataIndex:"accessible",title:d.jsxs(d.Fragment,{children:[d.jsx(F.Checkbox,{checked:m,onChange:C=>Q(this,null,function*(){m?yield c.set({values:[]}):yield c.set({values:l}),y(),F.message.success(s("Saved successfully"))})})," ",s("Accessible")]}),render:(C,S)=>{const w=h.includes(S.id);return d.jsx(F.Checkbox,{checked:w,onChange:()=>f(w,S)})}}],dataSource:vl(i,s)})]})},k0=({children:t,active:e})=>{const i=a.useRef(()=>{});return a.useEffect(()=>{var n;e&&((n=i.current)==null||n.call(i))},[e]),d.jsx(dr,{action:"list",refreshRef:i,manual:!0,children:t})},E0=()=>window.JsBridge,C0=(t,e)=>E0().invoke(t,e),xl={onBackPressed:()=>{history.length===1?C0({action:"moveTaskToBack"}):history.back()}};Object.keys(xl).forEach(t=>{window[t]=xl[t]});const P0=()=>{const t=g.useDesigner(),{token:e}=g.useToken(),i=a.useMemo(()=>({marginBottom:e.marginBlock}),[e.marginBlock]);return d.jsxs(g.SortableItem,{className:g.cx("nb-mobile-setting"),style:i,children:[d.jsx(t,{}),d.jsx(g.SettingsMenu,{})]})},M0=()=>{const t=g.useSchemaInitializerItem(),{insert:e}=g.useSchemaInitializer();return d.jsx(g.SchemaInitializerItem,B({icon:d.jsx(Nr.SettingOutlined,{}),onClick:()=>Q(this,null,function*(){e({type:"void","x-component":"MobileSettings","x-settings":"blockSettings:mobileSettings","x-component-props":{}})})},t))},T0=new g.SchemaSettings({name:"blockSettings:mobileSettings",items:[{name:"delete",type:"remove",useComponentProps(){const{t}=de();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}}}}]});class rn extends g.Plugin{constructor(){super(...arguments);zr(this,"mobileRouter");zr(this,"mobilePath","/m")}get desktopMode(){var i,n,r;return(r=(n=(i=this.options)==null?void 0:i.config)==null?void 0:n.desktopMode)!=null?r:!0}get mobileBasename(){return`${this.router.getBasename()}m`}updateOptions(i){return Q(this,null,function*(){var n;return this.options||(this.options={}),this.options.options=B(B({},(n=this.options)==null?void 0:n.options),i),this.app.apiClient.request({url:"applicationPlugins:update",method:"post",params:{filter:{packageName:Zr}},data:{options:this.options.options}})})}getPluginOptions(){var i;return(i=this.options)==null?void 0:i.options}afterAdd(){return Q(this,null,function*(){this.setMobileRouter()})}load(){return Q(this,null,function*(){this.addComponents(),this.addAppRoutes(),this.addRoutes(),this.addInitializers(),this.addSettings(),this.addScopes(),this.addPermissionsSettingsUI(),this.app.pluginSettingsManager.add("mobile",{title:Z("Mobile"),icon:"MobileOutlined",link:this.mobileBasename})})}addScopes(){this.app.addScopes({useMobileNavigationBarLink:Da})}addInitializers(){this.app.schemaInitializerManager.add(ur,Tr,pr,vr)}addSettings(){this.app.schemaSettingsManager.add(wr,fl,cl,mr,gr,T0)}addComponents(){this.app.addComponents({MobilePageProvider:Oa,MobileNavigationBarAction:yr,MobilePageNavigationBar:qa,MobileHomePage:hl,MobilePageContent:Ia,MobileTabBar:St,MobilePageHeader:hr,MobilePageTabs:za,MobileNavigationActionBar:Wa,MobileNotFoundPage:pl,MobileSettingsBlockInitializer:M0,MobileSettings:P0})}setMobileRouter(){var n,r;const i=g.createRouterManager(((r=(n=this.options)==null?void 0:n.config)==null?void 0:r.router)||{type:"browser",basename:this.mobileBasename},this.app);this.mobileRouter=i}addRoutes(){this.app.addComponents({MobileLayout:gl,MobilePage:Pa}),this.mobileRouter.add("mobile",{Component:"MobileLayout"}),this.mobileRouter.add("mobile.home",{path:"/",Component:"MobileHomePage"}),this.mobileRouter.add("signin",{path:"/signin",Component:()=>(window.location.href=window.location.href.replace(this.mobilePath+"/","/").replace("redirect=",`redirect=${this.mobilePath}`),null)}),this.mobileRouter.add("admin",{path:"/admin/*",Component:()=>(window.location.pathname.includes(`${this.mobilePath}/admin/`)&&window.location.replace(window.location.href.replace(this.mobilePath+"/","/")),null)}),this.mobileRouter.add("mobile.schema",{element:d.jsx(V.Outlet,{})}),this.mobileRouter.add("mobile.schema.page",{path:"/page/:pageSchemaUid",Component:"MobilePage"}),this.mobileRouter.add("mobile.schema.page.popup",{path:"/page/:pageSchemaUid/popups/*",Component:g.PagePopups}),this.mobileRouter.add("mobile.schema.tabs",{element:d.jsx(V.Outlet,{})}),this.mobileRouter.add("mobile.schema.tabs.page",{path:"/page/:pageSchemaUid/tabs/:tabSchemaUid",Component:"MobilePage"}),this.mobileRouter.add("mobile.schema.tabs.page.popup",{path:"/page/:pageSchemaUid/tabs/:tabSchemaUid/popups/*",Component:g.PagePopups}),this.mobileRouter.add("not-found",{path:"*",Component:"MobileNotFoundPage"})}addAppRoutes(){this.app.addComponents({Mobile:rl}),this.app.router.add("m",{path:`${this.mobilePath}/*`,Component:"Mobile"})}getRouterComponent(){return this.mobileRouter.getRouterComponent()}addPermissionsSettingsUI(){var i;(i=this.app.pm.get(Lr))==null||i.settingsUI.addPermissionsTab(({t:n,TabLayout:r,activeKey:o,currentUserRole:s})=>s&&(!s.snippets.includes("pm.mobile")&&!s.snippets.includes("pm.*")||s.snippets.includes("!pm.mobile"))?null:{key:"mobile-menu",label:n("Mobile menu",{ns:fn.name}),children:d.jsx(r,{children:d.jsx(k0,{active:o==="mobile-menu",children:d.jsx(S0,{active:o==="mobile-menu"})})})})}}x.ActionBarProvider=D1,x.DesktopMode=il,x.DesktopModeContent=tl,x.DesktopModeHeader=Qa,x.Mobile=rl,x.MobileAppContext=Ri,x.MobileAppProvider=nl,x.MobileHomePage=hl,x.MobileLayout=gl,x.MobileNavigationActionBar=Wa,x.MobileNavigationBarAction=yr,x.MobileNotFoundPage=pl,x.MobilePage=Pa,x.MobilePageContent=Ia,x.MobilePageContext=Hi,x.MobilePageHeader=hr,x.MobilePageNavigationBar=qa,x.MobilePageProvider=Oa,x.MobilePageTabInitializer=Fa,x.MobilePageTabs=za,x.MobilePageTabsSettings=Ba,x.MobileProviders=Ta,x.MobileRoutesContext=qi,x.MobileRoutesProvider=dr,x.MobileTabBar=St,x.MobileTabBarInitializer=bl,x.MobileTabBarItem=tn,x.MobileTabBarLink=ll,x.MobileTabBarPage=ul,x.MobileTitleContext=Wi,x.MobileTitleProvider=Ma,x.PluginMobileClient=rn,x.default=rn,x.editTabItemSettingsItem=Pr,x.getMobileNavigationBarLinkSchema=Za,x.getMobilePageContentSchema=Aa,x.getMobilePageSchema=Ka,x.getMobileTabBarItemSchema=al,x.getMobileTabBarItemSchemaFields=nn,x.getPageContentTabSchema=fr,x.mobileAddBlockInitializer=ur,x.mobileNavigationBarActionsInitializer=vr,x.mobileNavigationBarLinkInitializerItem=Va,x.mobileNavigationBarLinkSettings=gr,x.mobilePageHeaderSchema=Ha,x.mobilePageSettings=wr,x.mobilePageTabsSettings=mr,x.mobilePagesTabInitializer=pr,x.mobileTabBarInitializer=Tr,x.mobileTabBarLinkInitializerItem=dl,x.mobileTabBarLinkSettings=cl,x.mobileTabBarPageSettings=fl,x.mobileTabBarSchemaInitializerItem=ml,x.removeTabItemSettingsItem=Mr,x.useActionBarContext=Ua,x.useMobileApp=en,x.useMobileNavigationBarLink=Da,x.useMobilePage=Ki,x.useMobileRoutes=ce,x.useMobileTitle=cr,x.useStyles=br,x.useUpdateTabBarItem=sl,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
345
+ `,vl=(t,e)=>t.map(i=>{const n=e(i.title);return i.children?R(B({},i),{title:n,children:vl(i.children,e)}):R(B({},i),{title:n})}),yl=t=>{if(!Array.isArray(t))return[];const e=[];for(const i of t)e.push(i.id),i.hideChildren&&!Ue.isNil(i.firstTabId)&&e.push(i.firstTabId),e.push(...yl(i.children));return e},wl=(t,e)=>Array.isArray(t)?t.map(i=>{var o;const n=wl(i.children,i),r=n.length<=1;return{title:i.title,id:i.id,children:r?null:n,hideChildren:r,firstTabId:(o=n[0])==null?void 0:o.id,parent:e}}):[],k0=({active:t})=>{const{routeList:e}=ce(),i=wl(e),{role:n,setRole:r}=a.useContext(Dr.RolesManagerContext),o=g.useAPIClient(),{t:s}=Je.useTranslation(),l=yl(i),[h,u]=a.useState([]),{loading:p,refresh:y}=g.useRequest({resource:"roles.mobileRoutes",resourceOf:n.name,action:"list",params:{paginate:!1}},{ready:!!n&&t,refreshDeps:[n==null?void 0:n.name],onSuccess(C){var S;u(((S=C==null?void 0:C.data)==null?void 0:S.map(w=>w.id))||[])}}),c=o.resource("roles.mobileRoutes",n.name),m=l.length===h.length,f=(C,S)=>Q(this,null,function*(){if(C){let w=h.filter(P=>P!==S.id);const k=[S.id];S.parent&&S.parent.children.filter(T=>w.includes(T.id)).length===0&&(w=w.filter(T=>T!==S.parent.id),k.push(S.parent.id)),S.children&&(w=w.filter(P=>!S.children.map(T=>T.id).includes(P)),k.push(...S.children.map(P=>P.id))),S.hideChildren&&!Ue.isNil(S.firstTabId)&&(k.push(S.firstTabId),w=w.filter(P=>P!==S.firstTabId)),u(w),yield c.remove({values:k})}else{const w=[...h,S.id],k=[S.id];if(S.parent&&(w.includes(S.parent.id)||(w.push(S.parent.id),k.push(S.parent.id))),S.children){const P=S.children.map(T=>T.id);w.push(...P),k.push(...P)}S.hideChildren&&!Ue.isNil(S.firstTabId)&&(k.push(S.firstTabId),w.push(S.firstTabId)),u(Ue.uniq(w)),yield c.add({values:k})}F.message.success(s("Saved successfully"))}),b=X.useMemoizedFn(C=>Q(this,null,function*(){yield o.resource("roles").update({filterByTk:n.name,values:C.values}),r(B(B({},n),C.values)),F.message.success(s("Saved successfully"))})),v=a.useMemo(()=>Zr.createForm({values:n,effects(){Zr.onFormValuesChange(C=>Q(this,null,function*(){yield b(C)}))}}),[n,b]);return d.jsxs(d.Fragment,{children:[d.jsx(g.SchemaComponent,{schema:{type:"void",name:ei.uid(),"x-component":"FormV2","x-component-props":{form:v},properties:{allowNewMobileMenu:{title:s("Menu permissions"),"x-decorator":"FormItem","x-component":"Checkbox","x-content":s("New menu items are allowed to be accessed by default.")}}}}),d.jsx(F.Table,{className:S0,loading:p,rowKey:"id",pagination:!1,expandable:{defaultExpandAllRows:!0},columns:[{dataIndex:"title",title:s("Menu item title")},{dataIndex:"accessible",title:d.jsxs(d.Fragment,{children:[d.jsx(F.Checkbox,{checked:m,onChange:C=>Q(this,null,function*(){m?yield c.set({values:[]}):yield c.set({values:l}),y(),F.message.success(s("Saved successfully"))})})," ",s("Accessible")]}),render:(C,S)=>{const w=h.includes(S.id);return d.jsx(F.Checkbox,{checked:w,onChange:()=>f(w,S)})}}],dataSource:vl(i,s)})]})},E0=({children:t,active:e})=>{const i=a.useRef(()=>{});return a.useEffect(()=>{var n;e&&((n=i.current)==null||n.call(i))},[e]),d.jsx(dr,{action:"list",refreshRef:i,manual:!0,children:t})},C0=()=>window.JsBridge,P0=(t,e)=>C0().invoke(t,e),xl={onBackPressed:()=>{history.length===1?P0({action:"moveTaskToBack"}):history.back()}};Object.keys(xl).forEach(t=>{window[t]=xl[t]});const M0=()=>{const t=g.useDesigner(),{token:e}=g.useToken(),i=a.useMemo(()=>({marginBottom:e.marginBlock}),[e.marginBlock]);return d.jsxs(g.SortableItem,{className:g.cx("nb-mobile-setting"),style:i,children:[d.jsx(t,{}),d.jsx(g.SettingsMenu,{})]})},T0=()=>{const t=g.useSchemaInitializerItem(),{insert:e}=g.useSchemaInitializer();return d.jsx(g.SchemaInitializerItem,B({icon:d.jsx(Lr.SettingOutlined,{}),onClick:()=>Q(this,null,function*(){e({type:"void","x-component":"MobileSettings","x-settings":"blockSettings:mobileSettings","x-component-props":{}})})},t))},_0=new g.SchemaSettings({name:"blockSettings:mobileSettings",items:[{name:"delete",type:"remove",useComponentProps(){const{t}=de();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}}}}]});class rn extends g.Plugin{constructor(){super(...arguments);Nr(this,"mobileRouter");Nr(this,"mobilePath","/m")}get desktopMode(){var i,n,r;return(r=(n=(i=this.options)==null?void 0:i.config)==null?void 0:n.desktopMode)!=null?r:!0}get mobileBasename(){return`${this.router.getBasename()}m`}updateOptions(i){return Q(this,null,function*(){var n;return this.options||(this.options={}),this.options.options=B(B({},(n=this.options)==null?void 0:n.options),i),this.app.apiClient.request({url:"applicationPlugins:update",method:"post",params:{filter:{packageName:Vr}},data:{options:this.options.options}})})}getPluginOptions(){var i;return(i=this.options)==null?void 0:i.options}afterAdd(){return Q(this,null,function*(){this.setMobileRouter()})}load(){return Q(this,null,function*(){this.addComponents(),this.addAppRoutes(),this.addRoutes(),this.addInitializers(),this.addSettings(),this.addScopes(),this.addPermissionsSettingsUI(),this.app.pluginSettingsManager.add("mobile",{title:Z("Mobile"),icon:"MobileOutlined",link:this.mobileBasename})})}addScopes(){this.app.addScopes({useMobileNavigationBarLink:Da})}addInitializers(){this.app.schemaInitializerManager.add(fr,_r,mr,yr)}addSettings(){this.app.schemaSettingsManager.add(xr,fl,cl,br,vr,_0)}addComponents(){this.app.addComponents({MobilePageProvider:Oa,MobileNavigationBarAction:wr,MobilePageNavigationBar:qa,MobileHomePage:hl,MobilePageContent:Ia,MobileTabBar:St,MobilePageHeader:pr,MobilePageTabs:za,MobileNavigationActionBar:Wa,MobileNotFoundPage:pl,MobileSettingsBlockInitializer:T0,MobileSettings:M0})}setMobileRouter(){var n,r;const i=g.createRouterManager(((r=(n=this.options)==null?void 0:n.config)==null?void 0:r.router)||{type:"browser",basename:this.mobileBasename},this.app);this.mobileRouter=i}addRoutes(){this.app.addComponents({MobileLayout:gl,MobilePage:Ma}),this.mobileRouter.add("mobile",{Component:"MobileLayout"}),this.mobileRouter.add("mobile.home",{path:"/",Component:"MobileHomePage"}),this.mobileRouter.add("signin",{path:"/signin",Component:()=>(window.location.href=window.location.href.replace(this.mobilePath+"/","/").replace("redirect=",`redirect=${this.mobilePath}`),null)}),this.mobileRouter.add("admin",{path:"/admin/*",Component:()=>(window.location.pathname.includes(`${this.mobilePath}/admin/`)&&window.location.replace(window.location.href.replace(this.mobilePath+"/","/")),null)}),this.mobileRouter.add("mobile.schema",{element:d.jsx(V.Outlet,{})}),this.mobileRouter.add("mobile.schema.page",{path:"/page/:pageSchemaUid",Component:"MobilePage"}),this.mobileRouter.add("mobile.schema.page.popup",{path:"/page/:pageSchemaUid/popups/*",Component:g.PagePopups}),this.mobileRouter.add("mobile.schema.tabs",{element:d.jsx(V.Outlet,{})}),this.mobileRouter.add("mobile.schema.tabs.page",{path:"/page/:pageSchemaUid/tabs/:tabSchemaUid",Component:"MobilePage"}),this.mobileRouter.add("mobile.schema.tabs.page.popup",{path:"/page/:pageSchemaUid/tabs/:tabSchemaUid/popups/*",Component:g.PagePopups}),this.mobileRouter.add("not-found",{path:"*",Component:"MobileNotFoundPage"})}addAppRoutes(){this.app.addComponents({Mobile:rl}),this.app.router.add("m",{path:`${this.mobilePath}/*`,Component:"Mobile"})}getRouterComponent(){return this.mobileRouter.getRouterComponent()}addPermissionsSettingsUI(){var i;(i=this.app.pm.get(Dr))==null||i.settingsUI.addPermissionsTab(({t:n,TabLayout:r,activeKey:o,currentUserRole:s})=>s&&(!s.snippets.includes("pm.mobile")&&!s.snippets.includes("pm.*")||s.snippets.includes("!pm.mobile"))?null:{key:"mobile-menu",label:n("Mobile menu",{ns:fn.name}),children:d.jsx(r,{children:d.jsx(E0,{active:o==="mobile-menu",children:d.jsx(k0,{active:o==="mobile-menu"})})})})}}x.ActionBarProvider=Z1,x.DesktopMode=il,x.DesktopModeContent=tl,x.DesktopModeHeader=Qa,x.Mobile=rl,x.MobileAppContext=Ri,x.MobileAppProvider=nl,x.MobileHomePage=hl,x.MobileLayout=gl,x.MobileNavigationActionBar=Wa,x.MobileNavigationBarAction=wr,x.MobileNotFoundPage=pl,x.MobilePage=Ma,x.MobilePageContent=Ia,x.MobilePageContentContainer=ur,x.MobilePageContext=Hi,x.MobilePageHeader=pr,x.MobilePageNavigationBar=qa,x.MobilePageProvider=Oa,x.MobilePageTabInitializer=Fa,x.MobilePageTabs=za,x.MobilePageTabsSettings=Ba,x.MobileProviders=_a,x.MobileRoutesContext=qi,x.MobileRoutesProvider=dr,x.MobileTabBar=St,x.MobileTabBarInitializer=bl,x.MobileTabBarItem=tn,x.MobileTabBarLink=ll,x.MobileTabBarPage=ul,x.MobileTitleContext=Wi,x.MobileTitleProvider=Ta,x.PluginMobileClient=rn,x.default=rn,x.editTabItemSettingsItem=Mr,x.getMobileNavigationBarLinkSchema=Za,x.getMobilePageContentSchema=Aa,x.getMobilePageSchema=Ka,x.getMobileTabBarItemSchema=al,x.getMobileTabBarItemSchemaFields=nn,x.getPageContentTabSchema=hr,x.mobileAddBlockInitializer=fr,x.mobileNavigationBarActionsInitializer=yr,x.mobileNavigationBarLinkInitializerItem=Va,x.mobileNavigationBarLinkSettings=vr,x.mobilePageHeaderSchema=Ha,x.mobilePageSettings=xr,x.mobilePageTabsSettings=br,x.mobilePagesTabInitializer=mr,x.mobileTabBarInitializer=_r,x.mobileTabBarLinkInitializerItem=dl,x.mobileTabBarLinkSettings=cl,x.mobileTabBarPageSettings=fl,x.mobileTabBarSchemaInitializerItem=ml,x.removeTabItemSettingsItem=Tr,x.useActionBarContext=Ua,x.useMobileApp=en,x.useMobileNavigationBarLink=Da,x.useMobilePage=Ki,x.useMobileRoutes=ce,x.useMobileTitle=cr,x.useStyles=gr,x.useUpdateTabBarItem=sl,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});